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

3603 lines
2.3 MiB

This file contains ambiguous Unicode characters!

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

!(function(){var sc=Math.pow;var Vc=(An,Jt,ne)=>new Promise((oe,de)=>{var Fe=Me=>{try{Se(ne.next(Me))}catch(ce){de(ce)}},Xe=Me=>{try{Se(ne.throw(Me))}catch(ce){de(ce)}},Se=Me=>Me.done?oe(Me.value):Promise.resolve(Me.value).then(Fe,Xe);Se((ne=ne.apply(An,Jt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[28286],{33463:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},28575:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},18299:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},81893:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},42922:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},25877:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},63237:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},99569:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},73148:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},56747:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},50881:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},22751:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},37388:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},34182:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},38308:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},74664:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},17663:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},91034:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},72395:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},53978:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(ge,Be){return de.createElement(Se.Z,(0,oe.Z)({},ge,{ref:Be,icon:Xe}))},ce=de.forwardRef(Me)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(An,Jt){"use strict";Jt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},45954:function(){"use strict"},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 An={},Jt="5.0",ne={},oe=null,de=!1,Fe=!1,Xe=null,Se=!1,Me=null,ce=null,we=0;we<arguments.length;we++){var ge=arguments[we];if(ge!==null)switch(typeof ge){case"number":Jt=ge.toFixed(1);break;case"string":ge.match(new RegExp("^[0-9]\\.[0-9]+$"))?Jt=ge:Xe=ge;break;case"object":typeof ge.is3D!="undefined"?oe=ge:ne=ge;break;case"boolean":de=ge,Fe=!0;break}}oe===null&&(oe={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ne.material_id!==void 0&&!Fe&&(de=!0)),Xe!==null&&ne.id===void 0&&(ne.id=Xe);var Be="",Qe="",Oe=!1,et=null,ot=null,nt=null,Ve=!1,xe=null,mt=null,Lt=null,it=null,pt=null;ne.height!==void 0&&(ne.height=Math.round(ne.height)),ne.width!==void 0&&(ne.width=Math.round(ne.width));var Ce=function(Ct){return parseFloat(Ct)>4?parseFloat(Ct):5};An.setHTML5Codebase=function(Ct,Rt){ce=Ct,Bt(Ct,Rt)},An.setJavaCodebase=An.setJavaCodebaseVersion=An.isCompiledInstalled=An.setPreCompiledScriptPath=An.setPreCompiledResourcePath=function(){},An.setHTML5CodebaseVersion=function(Ct,Rt){var tn=parseFloat(Ct);if(tn!==NaN&&tn<5){console.log("The GeoGebra HTML5 codebase version "+tn+" is deprecated. Using version latest instead.");return}Me=Ct,Ae(Ct,Rt)},An.getHTML5CodebaseVersion=function(){return ot},An.getParameters=function(){return ne},An.setFontsCSSURL=function(Ct){it=Ct},An.setGiacJSURL=function(Ct){},An.setJNLPFile=function(Ct){Be=Ct},An.setJNLPBaseDir=function(Ct){},An.inject=function(){function Ct(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Rt="auto",tn=ne.id,cr,Gn=!1,qt=0;qt<arguments.length;qt++){var Fn=arguments[qt];typeof Fn=="string"?(Fn=Fn.toLowerCase(),Fn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Rt=Fn:tn=arguments[qt]):typeof Fn=="boolean"?Gn=Fn:Fn instanceof HTMLElement&&(cr=Fn)}lr();function lr(){if(!Se){setTimeout(lr,200);return}Rt=rt(Rt);var nn=cr||document.getElementById(tn);if(!nn){console.log("possibly bug on ajax loading? ");return}if(An.removeExistingApplet(nn,!1),ne.width===void 0&&nn.clientWidth&&(ne.width=nn.clientWidth),ne.height===void 0&&nn.clientHeight&&(ne.height=nn.clientHeight),!(ne.width&&ne.height)&&Rt==="html5"&&(delete ne.width,delete ne.height),et=Rt,Rt==="screenshot")wt(nn,ne);else{var ze=!1;ne.hasOwnProperty("playButton")&&ne.playButton||ne.hasOwnProperty("clickToLoad")&&ne.clickToLoad?ze=!0:ne.hasOwnProperty("playButtonAutoDecide")&&ne.playButtonAutoDecide&&(ze=(!be()||Ct())&&Ze()),ze?(et="screenshot",Ft(nn,ne,Gn,Rt)):Vt(nn,ne,Gn)}}};function be(){try{return window.self!==window.top}catch(Ct){return!0}}function Ze(){return ne.hasOwnProperty("screenshotGenerator")&&ne.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}An.getViews=function(){return oe},An.isJavaInstalled=function(){return!1};var je=function(Ct){var Rt=function(qt){var Fn=JSON.parse(qt),lr=function(ue){return ue.type=="G"||ue.type=="E"},nn=Fn.elements?Fn.elements.filter(lr)[0]:Fn;if(!nn||!nn.url){tn();return}ne.fileName=nn.url,Et(nn.settings||{}),oe.is3D=!0;var ze="https://www.geogebra.org/images/";An.setPreviewImage(xe||nn.previewUrl,ze+"GeoGebra_loading.png",ze+"applet_play.png"),Ct()},tn=function(){ne.onError&&ne.onError(),Cn("Error: Fetching material (id "+ne.material_id+") failed.",ne)},cr=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Gn="/materials/"+ne.material_id+"?scope=basic";ft("https://"+cr+"/api/proxy.php?path="+encodeURIComponent(Gn),Rt,tn)};function Et(Ct){var Rt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(tn){Ct[tn]=!!Ct[tn]}),Rt.forEach(function(tn){ne[tn]===void 0&&Ct[tn]!==void 0&&(ne[tn]=Ct[tn])}),ne.showToolBarHelp===void 0&&(ne.showToolBarHelp=ne.showToolBar)}function ft(Ct,Rt,tn){var cr=new XMLHttpRequest;cr.open("GET",Ct),cr.onload=function(){Rt(cr.responseText)},cr.onerror=tn,cr.send()}An.isHTML5Installed=function(){return!0},An.getLoadedAppletType=function(){return et},An.setPreviewImage=function(Ct,Rt,tn){xe=Ct,mt=Rt,Lt=tn},An.removeExistingApplet=function(Ct,Rt){var tn;typeof Ct=="string"&&(Ct=document.getElementById(Ct)),et=null;var cr=null;for(tn=0;tn<Ct.childNodes.length;tn++){var Gn=Ct.childNodes[tn],qt=Gn.className;qt==="applet_screenshot"?Rt?(Gn.style.display="block",et="screenshot"):Gn.style.display="none":qt!=="applet_scaler prerender"&&(Ct.removeChild(Gn),cr=qt&&qt.indexOf("appletParameters")!=-1?Gn.id:null,tn--)}var Fn=ne.id!==void 0?ne.id:cr,lr=window[Fn];lr&&typeof lr.getBase64=="function"&&(lr.remove(),window[Fn]=null)},An.refreshHitPoints=function(){if(Ce(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ct=An.getAppletObject();return Ct&&typeof Ct.recalculateEnvironments=="function"?(Ct.recalculateEnvironments(),!0):!1},An.startAnimation=function(){var Ct=An.getAppletObject();return Ct&&typeof Ct.startAnimation=="function"?(Ct.startAnimation(),!0):!1},An.stopAnimation=function(){var Ct=An.getAppletObject();return Ct&&typeof Ct.stopAnimation=="function"?(Ct.stopAnimation(),!0):!1},An.getAppletObject=function(){var Ct=ne.id!==void 0?ne.id:"ggbApplet";return window[Ct]},An.resize=function(){};var ut=function(Ct,Rt,tn){var cr=document.createElement("param");cr.setAttribute("name",Rt),cr.setAttribute("value",tn),Ct.appendChild(cr)},Re=function(Ct){return Ct&&Ct!=="false"},Vt=function(Ct,Rt,tn){Ce(ot)<=4.2&&(tn=!0);var cr=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ot||ggbHTML5LoadedCodebaseIsWebSimple&&!Ve)&&(cr=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Gn=document.createElement("div");Gn.classList.add("appletParameters","notranslate");var qt=Rt.width,Fn=Rt.height;if(Rt.disableAutoScale=Rt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Rt.disableAutoScale,Rt.width!==void 0)if(Ce(ot)<=4.4)Re(Rt.showToolBar)&&(Rt.height-=7),Re(Rt.showAlgebraInput)&&(Rt.height-=37),Rt.width<605&&Re(Rt.showToolBar)&&(Rt.width=605,qt=605);else{var lr=100;(Re(Rt.showToolBar)||Re(Rt.showMenuBar))&&(Rt.hasOwnProperty("customToolBar")&&(Rt.customToolbar=Rt.customToolBar),lr=Re(Rt.showMenuBar)?245:155),qt<lr&&(Rt.width=lr,qt=lr)}Gn.style.border="none",Gn.style.display="inline-block";for(var nn in Rt)Rt.hasOwnProperty(nn)&&nn!=="appletOnLoad"&&Gn.setAttribute("data-param-"+nn,Rt[nn]);it&&Gn.setAttribute("data-param-fontscssurl",it),An.resize=function(){GGBAppletUtils.responsiveResize(Ct,Rt)},window.addEventListener("resize",function(Ot){An.resize()});var ze=typeof Rt.appletOnLoad=="function"?Rt.appletOnLoad:function(){};if(!tn&&Rt.width!==void 0){Rt.hasOwnProperty("showSplash")||Gn.setAttribute("data-param-showSplash","false");var ue=Ct.querySelector(".applet_scaler.prerender"),fe=ue!==null;if(fe)var ve=ue.querySelector(".ggb_preview");else{var ve=Kn(qt,Fn,Rt.borderColor,!1);ue=document.createElement("div"),ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.style.width=qt+"px",ue.style.height=Fn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ue,"66%"),Ce(ot)>=5?(Rt.appletOnLoad=function(Ot){var ht=Ct.querySelector(".ggb_preview");ht&&ht.parentNode.removeChild(ht),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ue),window.GGBT_wsf_view&&$(window).trigger("resize"),ze(Ot)},fe||ue.appendChild(ve)):Gn.appendChild(ve),ue.appendChild(Gn),fe||Ct.appendChild(ue),setTimeout(function(){An.resize()},1)}else{var he=document.createElement("div");he.className="applet_scaler",he.style.position="relative",he.style.display="block",he.appendChild(Gn),Ct.appendChild(he),Rt.appletOnLoad=function(Ot){An.resize(),ze(Ot)}}function le(Ot,ht){ht&&typeof ht.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ot,ht.appletOnLoad):renderGGBElement(Ot),Cn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ht)}function Ne(Ot,ht){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ot,params:ht}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(It){le(It.article,It.params)}),html5AppletsToProcess=null)},Ce(ot)<5&&(Ot.className+=" geogebraweb")):le(Ot,ht)}if(cr){scriptLoadStarted=!0;for(var Te=0;Te<Gn.childNodes.length;Te++){var gt=Gn.childNodes[Te].tagName;gt==="TABLE"&&(Gn.removeChild(Gn.childNodes[Te]),Te--)}if(ggbHTML5LoadedScript!==null){var At=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');At!=null&&At.parentNode.removeChild(At)}var Tt=document.createElement("script"),zt=function(){Ne(Gn,Rt)};Tt.src=Qe+nt,ggbHTML5LoadedCodebaseIsWebSimple=Ve,ggbHTML5LoadedCodebaseVersion=ot,ggbHTML5LoadedScript=Tt.src,Cn("GeoGebra HTML5 codebase loaded: '"+Qe+"'.",Rt),!ce&&(!Me||Me=="5.0")?(Ve?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),zt()):Qe.requirejs?__webpack_require__.e(12).then(function(){var Ot=[__webpack_require__(12)];zt.apply(null,Ot)}.bind(this)).catch(__webpack_require__.oe):(Tt.onload=zt,Ct.appendChild(Tt))}else Ne(Gn,Rt);Rt.height=Fn,Rt.width=qt},wt=function(Ct,Rt,tn){var cr=Kn(Rt.width,Rt.height,Rt.borderColor,tn),Gn=document.createElement("div");Gn.style.position="relative",Gn.style.display="block",Gn.style.width=Rt.width+"px",Gn.style.height=Rt.height+"px",Gn.className="applet_screenshot applet_scaler"+(tn?" applet_screenshot_play":""),Gn.appendChild(cr);var qt=GGBAppletUtils.getScale(Rt,Ct,tn);tn?(Ct.appendChild(ln()),window.GGBT_wsf_view||(Ct.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Gn,"66%"),Ct.appendChild(Gn),qt!==1&&!isNaN(qt)&&(GGBAppletUtils.scaleElement(Gn,qt),Gn.style.width=Rt.width+"px",Gn.style.height=Rt.height+"px",Gn.parentNode.style.width=Rt.width*qt+"px",Gn.parentNode.style.height=Rt.height*qt+"px"),An.resize=function(){yn(Ct,cr,Gn,tn)},window.addEventListener("resize",function(Fn){An.resize()}),An.resize()};function yn(Ct,Rt,tn,cr){if(Ct.contains(Rt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ct.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ct)}var Gn=GGBAppletUtils.getScale(ne,Ct,cr);tn.parentNode!==null&&(!isNaN(Gn)&&Gn!==1?(GGBAppletUtils.scaleElement(tn,Gn),tn.parentNode.style.width=ne.width*Gn+"px",tn.parentNode.style.height=ne.height*Gn+"px"):(GGBAppletUtils.scaleElement(tn,1),tn.parentNode.style.width=ne.width+"px",tn.parentNode.style.height=ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ct),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}An.onExitFullscreen=function(Ct,Rt){Rt.appendChild(Ct)};var Ft=function(Ct,Rt,tn,cr){wt(Ct,Rt,!0);for(var Gn=function(){var lr=[];for(Fn=0;Fn<Ct.childNodes.length;Fn++)lr.push(Ct.childNodes[Fn]);if(window.GGBT_wsf_view){var nn=window.GGBT_wsf_view.renderFullScreen(Ct,Rt.id),ze=document.getElementById("fullscreencontainer"),ue=jQuery(Ct).find(".fullscreencontent");ue.length>0?(nn.remove(),ue.attr("id","fullscreencontent").show(),jQuery(ze).append(ue),window.dispatchEvent(new Event("resize"))):Vt(nn,Rt,!1),window.GGBT_wsf_view.launchFullScreen(ze)}else et=cr,Vt(Ct,Rt,!1);if(!window.GGBT_wsf_view)for(Fn=0;Fn<lr.length;Fn++)Ct.removeChild(lr[Fn])},qt=Ct.getElementsByClassName("ggb_preview_play"),Fn=0;Fn<qt.length;Fn++)qt[Fn].addEventListener("click",Gn,!1),qt[Fn].addEventListener("ontouchstart",Gn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ct),Ze()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ln=function(){var Ct=document.createElement("div");if(Ct.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Rt='.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");}',tn=document.createElement("style");tn.styleSheet?tn.styleSheet.cssText=Rt:tn.appendChild(document.createTextNode(Rt)),document.getElementsByTagName("head")[0].appendChild(tn)}return Ct},Kn=function(Ct,Rt,tn,cr){var Gn=document.createElement("div");Gn.className="ggb_preview",Gn.style.position="absolute",Gn.style.zIndex="90",Gn.style.width=Ct-2+"px",Gn.style.height=Rt-2+"px",Gn.style.top="0px",Gn.style.left="0px",Gn.style.overflow="hidden",Gn.style.backgroundColor="white";var qt="lightgrey";tn!==void 0&&(tn==="none"?qt="transparent":qt=tn),Gn.style.border="1px solid "+qt;var Fn=document.createElement("img");if(Fn.style.position="relative",Fn.style.zIndex="1000",Fn.style.top="-1px",Fn.style.left="-1px",xe!==null&&Fn.setAttribute("src",xe),Fn.style.opacity=.7,mt!==null){var lr,nn,ze;if(!cr){lr=document.createElement("img"),lr.style.position="absolute",lr.style.zIndex="1001",lr.style.opacity=1,Fn.style.opacity=.3,nn=360,nn>Ct/4*3&&(nn=Ct/4*3),ze=nn/5.8,lr.setAttribute("src",mt),lr.setAttribute("width",nn),lr.setAttribute("height",ze);var ue=(Ct-nn)/2,fe=(Rt-ze)/2;lr.style.left=ue+"px",lr.style.top=fe+"px",Gn.appendChild(lr)}}return Gn.appendChild(Fn),Gn},rt=function(Ct){return Ct=Ct.toLowerCase(),Ct==="html5"||Ct==="screenshot"?Ct:"html5"},dt=["web","webSimple","web3d","tablet","tablet3d","phone"],Ae=function(Ct,Rt){if(ot=Ct,Rt){Bt(ot,!0);return}var tn=!de;if(tn){var cr=Ce(ot);!isNaN(cr)&&cr<4.4&&(tn=!1)}var Gn,qt;window.location.protocol.substr(0,4)==="http"?Gn=window.location.protocol:Gn="http:";var Fn=ot.indexOf("//");Fn>0?qt=ot:Fn===0?qt=Gn+ot:qt="https://www.geogebra.org/apps/5.2.814.0/";for(var lr in dt)if(ot.slice(dt[lr].length*-1)===dt[lr]||ot.slice((dt[lr].length+1)*-1)===dt[lr]+"/"){Bt(qt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&tn&&!oe.is3D&&!oe.AV&&!oe.SV&&!oe.CV&&!oe.EV2&&!oe.CP&&!oe.PC&&!oe.DA&&!oe.FI&&!oe.PV&&!Re(ne.showToolBar)&&!Re(ne.showMenuBar)&&!Re(ne.showAlgebraInput)&&!Re(ne.enableRightClick)&&(!ne.appName||ne.appName=="classic")?qt+="webSimple/":qt+="web3d/",Bt(qt,!1)},Bt=function(Ct,Rt){if(Ct.requirejs){Qe=Ct;return}Ct.slice(-1)!=="/"&&(Ct+="/"),Qe=Ct,Rt===null&&(Rt=Ct.indexOf("http")===-1),Oe=Rt,nt="web.nocache.js",Ve=!1;var tn=Qe.split("/");tn.length>1&&(!Rt&&tn[tn.length-2]==="webSimple"?(nt="webSimple.nocache.js",Ve=!0):dt.indexOf(tn[tn.length-2])>=0&&(nt=tn[tn.length-2]+".nocache.js")),tn=Ct.split("/"),ot=tn[tn.length-3],ot.substr(0,4)==="test"?ot=ot.substr(4,1)+"."+ot.substr(5,1):(ot.substr(0,3)==="war"||ot.substr(0,4)==="beta")&&(ot="5.0");var cr=parseFloat(ot);cr!==NaN&&cr<5&&Ct.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+cr+" is deprecated. Using version latest instead."),Ae("5.0",Rt))},Cn=function(Ct,Rt){window.console&&window.console.log&&(!Rt||typeof Rt.showLogging=="undefined"||Rt.showLogging&&Rt.showLogging!=="false")&&console.log(Ct)};ne.material_id!==void 0?je(en):en();function en(){var Ct=Jt;Me!==null?Ct=Me:parseFloat(Ct)<5&&(Ct="5.0"),Ae(Ct,!1),ce!==null&&Bt(ce,Oe),Se=!0}return An},GGBAppletUtils=function(){"use strict";function An(){return window.GGBT_wsf_edit!==void 0}function Jt(Se,Me){Me!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+Me+","+Me+")",Se.style.webkitTransform="scale("+Me+","+Me+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function ne(Se,Me,ce,we,ge,Be){var Qe=null;if(Be!=null&&Be!="")for(var Oe=Se.parentNode;Oe!=null;)if((" "+Oe.className+" ").indexOf(" "+Be+" ")>-1){Qe=Oe;break}else Oe=Oe.parentNode;var et=0,ot=0,nt=0,Ve=0,xe=0,mt=0,Lt=0;if(Qe)et=Qe.offsetWidth,ot=Math.max(we?Qe.offsetWidth:0,Qe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(et=Math.min(window.innerWidth,document.documentElement.clientWidth),ot=Math.min(window.innerHeight,document.documentElement.clientHeight),nt=et):(et=window.innerWidth,ot=window.innerHeight,nt=window.innerWidth),Se){var it=Se.getBoundingClientRect();it.left>0&&it.left<=et&&(ge===void 0||!ge)&&(document.dir==="rtl"?(xe=et-it.width-it.left,mt=nt<=480?10:30):(mt=it.left,xe=nt<=480?10:30),Ve=mt+xe)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pt=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ve=40,Lt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ve=0,Lt=40)}}return Se&&((ce===void 0||!ce)&&Me>0&&Me+Ve<et?et=Me:et-=Ve,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce===void 0||!ce)&&(ot-=Lt)),{width:et,height:ot}}function oe(Se,Me,ce,we,ge){if(Se.isScreenshoGenerator)return 1;var Be=we!==void 0&&we,Qe=Se.noScaleMargin!=null&&Se.noScaleMargin,Oe=function(pt){return pt&&pt!=="false"},et=Oe(Se.autoHeight),ot=ne(Me,Se.width,ce,et,Be&&window.GGBT_wsf_view||Qe,ge),nt=parseInt(ot.width),Ve=Se.width,xe=Se.height;if(Ve===void 0){var mt=Me.querySelector(".appletParameters");mt&&(Ve=mt.offsetWidth,xe=mt.offsetHeight)}var Lt=nt/Ve,it=Be?1:ot.height/xe;return ce!==void 0&&!ce&&(Lt=Math.min(1,Lt),it=Math.min(1,it)),Math.min(Lt,it)}function de(Se,Me,ce){var we=1,ge,Be=!1;if(Se.hasOwnProperty("allowUpscale")&&(Be=Se.allowUpscale),Se.hasOwnProperty("scale")&&(we=parseFloat(Se.scale),(isNaN(we)||we===null||we===0)&&(we=1),we>1&&(Be=!0)),Me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Be=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))ge=oe(Se,Me,Be,ce,Se.scaleContainerClass);else return we;return Be&&(!Se.hasOwnProperty("scale")||we===1)?ge:Math.min(we,ge)}function Fe(Se){var Me=Math.min(window.innerWidth,document.documentElement.clientWidth),ce=Math.min(window.innerHeight,document.documentElement.clientHeight),we=Se.getBoundingClientRect(),ge=(Me-we.width)/2,Be=(ce-we.height)/2;Be<0&&(Be=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ge<40?Se.style.left="40px":Se.style.left=ge+"px",Se.style.top=Be+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Be<40?Se.style.top="40px":Se.style.top=Be+"px",Se.style.left=ge+"px")}function Xe(Se,Me){var ce=Se.querySelector(".appletParameters");if(ce){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Me.id!==ce.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(ce.parentElement&&/fullscreen/.test(ce.parentElement.className))return;var we=de(Me,Se);An()&&ce.setAttribute("data-param-scale",we);for(var ge=null,Be=0;Be<Se.childNodes.length;Be++)if(Se.childNodes[Be].className!==void 0&&Se.childNodes[Be].className.match(/^applet_scaler/)){ge=Se.childNodes[Be];break}if(ge!==null&&ge.querySelector(".noscale")!==null)return;var Qe=Me.id!==void 0?Me.id:"ggbApplet",Oe=window[Qe];(Oe==null||!Oe.recalculateEnvironments)&&ge!==null&&!ge.className.match(/fullscreen/)&&(ge.parentNode.style.transform="",!isNaN(we)&&we!==1?(ge.parentNode.style.width=Me.width*we+"px",ge.parentNode.style.height=Me.height*we+"px",Jt(ge,we)):(Jt(ge,1),ge.parentNode.style.width=Me.width+"px",ge.parentNode.style.height=Me.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Fe(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ce).parents(".content-added-content"))}}return{responsiveResize:Xe,isFlexibleWorksheetEditor:An,positionCenter:Fe,getScale:de,scaleElement:Jt}}();__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 An=n.location.search;return An.indexOf(J)!=-1||An.indexOf(K)!=-1}function q(An,Jt){}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(An){var Jt=s[L].bindings;s[L].bindings=function(){for(var ne=Jt?Jt():{},oe=An[webModule.__softPermutationId],de=O;de<oe.length;de++){var Fe=oe[de];ne[Fe[O]]=Fe[P]}return ne}};var t;function u(){return v(),t}function v(){if(!t){var An=o.createElement(Q);if(An.id=L,An.style.cssText=R+S,An.tabIndex=-1,o.body.appendChild(An),t=An.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Jt=document.compatMode==U?V:W;t.write(Jt+X),t.close()}}}function w(An){function Jt(oe){function de(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Fe=de();if(Fe){oe();return}function Xe(){if(!Fe){if(!de())return;Fe=!0,oe(),o.removeEventListener&&o.removeEventListener(Z,Xe,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,Xe,!1);var Se=setInterval(function(){Xe()},$)}function ne(oe){var de=u(),Fe=de.body,Xe=de.createElement(_);Xe.language=ab,Xe.crossOrigin=W,Xe.src=oe,webModule.__errFn&&(Xe.onerror=function(){webModule.__errFn(L,new Error(bb+oe))}),Fe.appendChild(Xe)}Jt(function(){ne(An)})}webModule.__startLoadingFragment=function(An){return C(An)},webModule.__installRunAsyncCode=function(An){var Jt=u(),ne=Jt.body,oe=Jt.createElement(_);oe.language=ab,oe.text=An,ne.appendChild(oe),ne.removeChild(oe)};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(An){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(An){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(An){var Jt=c[An];return Jt==null?null:Jt},r=d,webModule.__errFn=e}function B(){function An(Se){var Me=Se.lastIndexOf(rb);Me==-1&&(Me=Se.length);var ce=Se.indexOf(sb);ce==-1&&(ce=Se.length);var we=Se.lastIndexOf(tb,Math.min(ce,Me));return we>=O?Se.substring(O,we+P):W}function Jt(Se){if(!Se.match(/^\w+:\/\//)){var Me=o.createElement(ub);Me.src=Se+vb,Se=An(Me.src)}return Se}function ne(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function oe(){for(var Se=o.getElementsByTagName(_),Me=O;Me<Se.length;++Me)if(Se[Me].src.indexOf(xb)!=-1)return An(Se[Me].src);return W}function de(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function Fe(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var Xe=ne();return Xe==W&&(Xe=oe()),Xe==W&&(Xe=de()),Xe==W&&Fe()&&(Xe=An(o.location.href)),Xe=Jt(Xe),Xe}function C(An){return An.match(/^\//)||An.match(/^[a-zA-Z]+:\/\//)?An:webModule.__moduleBase+An}function D(){var An=[],Jt=O,ne=[],oe=[];function de(Se){var Me=oe[Se](),ce=ne[Se];if(Me in ce)return Me;var we=[];for(var ge in ce)we[ce[ge]]=ge;throw r&&r(Se,we,Me),null}if(__gwt_isKnownPropertyValue=function(Se,Me){return Me in ne[Se]},webModule.__getPropMap=function(){var Se={};for(var Me in ne)ne.hasOwnProperty(Me)&&(Se[Me]=de(Me));return Se},webModule.__computePropValue=de,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Fe;try{Fe=Cb;var Xe=Fe.indexOf(Db);Xe!=-1&&(Jt=parseInt(Fe.substring(Xe+P),$),Fe=Fe.substring(O,Xe))}catch(Se){}return webModule.__softPermutationId=Jt,C(Fe+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(An,Jt,ne){"use strict";ne.d(Jt,{Ax:function(){return Xe},Ds:function(){return Se},KI:function(){return ce},SI:function(){return Fe},f1:function(){return de}});var oe=ne(11320);function de(we){let ge=!0;if(we.length>0){for(let Be=0;Be<we.length;Be++)if(we[Be].compile_success==0||!we[Be].compile_success){ge=!1;break}}else ge=!1;return ge}function Fe(we,ge=""){let Be=[];for(let Qe=0;Qe<we.length;Qe++){let Oe=we[Qe],et=ge?`${ge}/${Oe.name}`:`${Oe.name}`;Be.push({title:Oe.name,type:Oe.type,isLeaf:Oe.type!=="tree",key:et})}return Be}function Xe(we,ge,Be){for(let Qe=0;Qe<we.length;Qe++){let Oe=we[Qe];if(Oe.key===ge){Oe.children=Be;break}Oe.children&&Xe(Oe.children,ge,Be)}return we}function Se(we,ge,Be){let Qe;return function(){let Oe=this,et=arguments,ot=function(){Qe=null,Be||we.apply(Oe,et)},nt=Be&&!Qe;clearTimeout(Qe),Qe=setTimeout(ot,ge),nt&&we.apply(Oe,et)}}const Me=!0,ce=oe.Z.API_SERVER},60580:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ot}});var oe=ne(71577),de=ne(67294),Fe=Object.defineProperty,Xe=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,ge=(nt,Ve,xe)=>Ve in nt?Fe(nt,Ve,{enumerable:!0,configurable:!0,writable:!0,value:xe}):nt[Ve]=xe,Be=(nt,Ve)=>{for(var xe in Ve||(Ve={}))ce.call(Ve,xe)&&ge(nt,xe,Ve[xe]);if(Me)for(var xe of Me(Ve))we.call(Ve,xe)&&ge(nt,xe,Ve[xe]);return nt},Qe=(nt,Ve)=>Xe(nt,Se(Ve)),Oe=(nt,Ve)=>{var xe={};for(var mt in nt)ce.call(nt,mt)&&Ve.indexOf(mt)<0&&(xe[mt]=nt[mt]);if(nt!=null&&Me)for(var mt of Me(nt))Ve.indexOf(mt)<0&&we.call(nt,mt)&&(xe[mt]=nt[mt]);return xe},et=(nt,Ve,xe)=>new Promise((mt,Lt)=>{var it=be=>{try{Ce(xe.next(be))}catch(Ze){Lt(Ze)}},pt=be=>{try{Ce(xe.throw(be))}catch(Ze){Lt(Ze)}},Ce=be=>be.done?mt(be.value):Promise.resolve(be.value).then(it,pt);Ce((xe=xe.apply(nt,Ve)).next())});const ot=nt=>{var Ve=nt,{children:xe}=Ve,mt=Oe(Ve,["children"]);const[Lt,it]=(0,de.useState)(!1);return de.createElement(oe.ZP,Qe(Be({},mt),{loading:Lt,onClick:pt=>et(void 0,null,function*(){try{it(!0),yield mt.onClick(pt),it(!1)}catch(Ce){console.error(Ce),it(!1)}})}),xe)}},63205:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Qe}});var oe=ne(67294),de={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Fe=ne(94184),Xe=ne.n(Fe),Se=ne(57953),Me=ne(15979),ce=ne(33170),we=ne(28706),ge=(Oe,et,ot)=>new Promise((nt,Ve)=>{var xe=it=>{try{Lt(ot.next(it))}catch(pt){Ve(pt)}},mt=it=>{try{Lt(ot.throw(it))}catch(pt){Ve(pt)}},Lt=it=>it.done?nt(it.value):Promise.resolve(it.value).then(xe,mt);Lt((ot=ot.apply(Oe,et)).next())}),Qe=({data:Oe,className:et,fullWidth:ot,style:nt={},onClose:Ve,onOk:xe,showFullTools:mt,noAssociationId:Lt})=>{const it=(0,oe.useRef)(null),pt=(0,oe.useRef)(null),Ce=(0,oe.useRef)(null),be=(0,oe.useRef)(null),[Ze,je]=(0,oe.useState)(!1),[Et,ft]=(0,oe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,oe.useEffect)(()=>{Ce.current||(Ce.current=document.createElement("style"),document.head.appendChild(Ce.current)),Oe!=null&&Oe.visible?(document.body.setAttribute("data-custom","y-hidden"),Ce.current.innerHTML=" html { overflow-y: hidden; }",Oe!=null&&Oe.src&&ut()):(document.body.removeAttribute("data-custom"),Ce.current&&(document.head.removeChild(Ce.current),Ce.current=null))},[Oe==null?void 0:Oe.visible]);const ut=()=>ge(void 0,null,function*(){je(!0),ft("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ft=yield(0,we.ZJ)(Oe==null?void 0:Oe.src);it.current.src="",it.current.src=Ft,it.current.onload=function(){yn()},je(!1),ft("")}),Re=()=>{document.body.removeAttribute("data-custom"),Ce.current.innerHTML=" ",Ve()},Vt=Ft=>ge(void 0,null,function*(){je(!0),ft("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ln=yield(0,ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Oe.title,file:Ft.dataUrl}});ln!=null&&ln.id&&!Lt?(yield(0,ce.ZP)(`/api/attachments/${Oe.id}/add_subitem.json`,{method:"post",body:{subitem_id:ln==null?void 0:ln.id,settings:JSON.stringify(Ft.state)}})).status===0&&xe():ln!=null&&ln.id&&xe(ln),document.body.removeAttribute("data-custom"),Ce.current.innerHTML=" ",je(!1),ft("")}),wt=()=>{const Ft=document.querySelector('a[href="https://markerjs.com/"]');Ft&&Ft.parentNode&&(Ft.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(Kn=>{const rt=document.querySelector(Kn.name);rt&&rt.setAttribute("title",Kn.title)})},yn=()=>{pt.current=new Me.hP(it.current),pt.current.targetRoot=be.current,pt.current.addEventListener("render",Vt),pt.current.addEventListener("beforeclose",Re),mt&&(pt.current.availableMarkerTypes=pt.current.ALL_MARKER_TYPES,pt.current.uiStyleSettings.redoButtonVisible=!0,pt.current.uiStyleSettings.notesButtonVisible=!0,pt.current.uiStyleSettings.zoomButtonVisible=!0,pt.current.uiStyleSettings.zoomOutButtonVisible=!0,pt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=pt.current.uiStyleSettings,pt.current.show(),Oe!=null&&Oe.snapshotData&&pt.current.restoreState(Oe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),wt()},300)};return oe.createElement(oe.Fragment,null,(Oe==null?void 0:Oe.visible)&&oe.createElement(Se.Z,{spinning:Ze,tip:Et,style:{position:"absolute"}},oe.createElement("div",{ref:be,className:Xe()(de.imageDimensions,et,ot?de.fullWidth:""),style:nt},oe.createElement("img",{className:de.img,ref:it}))))}},36527:function(An,Jt,ne){"use strict";var oe=ne(67294),de=ne(71230),Fe=ne(15746),Xe=ne(66368),Se=ne(71577),Me=ne(35598),ce=ne(71736),we=ne(84279),ge=ne(67294);const Be=(0,oe.forwardRef)(({callback:Qe,showSaveButton:Oe,value:et=""},ot)=>{const nt=(0,oe.useRef)(),Ve=[{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 "}]}]}],xe=[{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}`}]}]}],mt=pt=>{nt.current.setValue(nt.current.getValue()+" "+pt.value+" ")},Lt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ge.createElement(de.Z,{className:ce.Z.lists,gutter:[10,10]},Ve.map((pt,Ce)=>ge.createElement(Fe.Z,{flex:"110px",className:ce.Z.item},ge.createElement("div",null,ge.createElement(Me.Z,{value:`$$${pt.value}$$`}),pt.name),ge.createElement("div",{className:ce.Z.children},pt.children.map((be,Ze)=>ge.createElement("div",{key:Ze},ge.createElement("h1",null,be.name),ge.createElement(de.Z,{gutter:[10,10]},be.data.map((je,Et)=>ge.createElement(Fe.Z,{key:Et,onClick:()=>mt(je),className:ce.Z.diamond},ge.createElement(Me.Z,{value:"`$$"+je.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ge.createElement(de.Z,{className:ce.Z.lists,gutter:[10,10]},xe.map((pt,Ce)=>ge.createElement(Fe.Z,{flex:"110px",className:ce.Z.item},ge.createElement("div",null,ge.createElement(Me.Z,{value:"`$$"+pt.value+"$$`"}),pt.name),ge.createElement("div",{className:ce.Z.children},pt.children.map((be,Ze)=>ge.createElement("div",{key:Ze},be.name&&ge.createElement("h1",null,be.name),ge.createElement(de.Z,{gutter:[10,10]},be.data.map((je,Et)=>ge.createElement(Fe.Z,{key:Et,onClick:()=>mt(je),className:ce.Z.diamond},ge.createElement(Me.Z,{value:"`$$"+je.value+"$$`"}))))))))))}],it=()=>{var pt=document.createElement("div");pt.innerHTML=nt.current.getValue();var Ce=pt.innerText;return Qe&&Qe(Ce),Ce};return(0,oe.useImperativeHandle)(ot,()=>({getData:it})),ge.createElement("div",{className:ce.Z.mathWrap},ge.createElement(Xe.default,{defaultActiveKey:"1",items:Lt}),ge.createElement("math-field",{locale:"zh_cn",className:ce.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:nt,style:{width:800,marginTop:30,fontSize:18}},et||""),Oe&&ge.createElement("div",{className:ce.Z.button},ge.createElement(Se.ZP,{size:"large",onClick:it,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Jt.Z=Be},57444:function(An,Jt,ne){"use strict";ne.d(Jt,{h:function(){return pt}});var oe=ne(67294),de=ne(11713),Fe=ne(22150),Xe=ne(71577),Se=ne(4631),Me=ne.n(Se),ce=ne(71749),we=ne(30483),ge=Object.defineProperty,Be=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,nt=(Ce,be,Ze)=>be in Ce?ge(Ce,be,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Ce[be]=Ze,Ve=(Ce,be)=>{for(var Ze in be||(be={}))et.call(be,Ze)&&nt(Ce,Ze,be[Ze]);if(Oe)for(var Ze of Oe(be))ot.call(be,Ze)&&nt(Ce,Ze,be[Ze]);return Ce},xe=(Ce,be)=>Be(Ce,Qe(be));const mt=de.default.Option,Lt={labelCol:{span:4},wrapperCol:{span:20}},it={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"]};Jt.Z=({callback:Ce,onCancel:be})=>{const[Ze,je]=(0,oe.useState)("python");function Et(ut){je(it[ut][1])}function ft(ut){Ce(ut)}return oe.createElement(Fe.default,xe(Ve({},Lt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ft,style:{width:500}}),oe.createElement(Fe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},oe.createElement(de.default,{getPopupContainer:ut=>ut.parentNode,onChange:Et},Object.keys(it).map(ut=>oe.createElement(mt,{key:ut,value:ut},it[ut][0])))),oe.createElement(Fe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},oe.createElement(pt,{mode:Ze})),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(Xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Xe.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))};function pt({value:Ce,onChange:be,mode:Ze,options:je={}}){const Et=(0,oe.useRef)(),[ft,ut]=(0,oe.useState)();return(0,oe.useEffect)(()=>{if(ft){let Re=function(Vt){const wt=Vt.getValue();be&&be(wt)};return ft.on("change",Re),()=>{ft.off("change",Re)}}},[ft,be]),(0,oe.useEffect)(()=>{ft&&ft.setOption("mode",Ze)},[ft,Ze]),(0,oe.useEffect)(()=>{ft&&(Ce!==ft.getValue()||Ce==="")&&setTimeout(()=>{ft.setValue(Ce||"")},300)},[ft,Ce]),(0,oe.useEffect)(()=>{if(Et.current&&!ft){const Re=Me().fromTextArea(Et.current,Ve({mode:Ze,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},je));ut(Re)}},[Et.current,ft]),oe.createElement("div",{className:"my-codemirror-container"},oe.createElement("textarea",{ref:Et}))}},91304:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return wr}});var oe=ne(67294),de=ne(4631),Fe=ne.n(de),Xe=ne(91033),Se=ne(71749),Me=ne(57341),ce=ne(82801),we=ne(88386),ge=ne(49047),Be=ne(80785),Qe=ne(35598),Oe=({value:nr="",className:St,showTextOnly:Zt,showLines:jt,style:kn={}})=>{const lt=(0,oe.useMemo)(()=>"",[nr]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{dangerouslySetInnerHTML:{__html:lt}}))},et=ne(67294),ot=Object.defineProperty,nt=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,xe=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,it=(nr,St,Zt)=>St in nr?ot(nr,St,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):nr[St]=Zt,pt=(nr,St)=>{for(var Zt in St||(St={}))mt.call(St,Zt)&&it(nr,Zt,St[Zt]);if(xe)for(var Zt of xe(St))Lt.call(St,Zt)&&it(nr,Zt,St[Zt]);return nr},Ce=(nr,St)=>nt(nr,Ve(St));let be=[{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:nr,title:St,icon:Zt,actionName:jt,className:kn="",children:lt}){function Ut(){nr(jt)}return et.createElement("a",{title:St,className:kn,onClick:Ut},et.createElement("i",{className:`${Zt}`}),lt)}var je=({watch:nr,showNullButton:St,showNullProgramButton:Zt,onActionCallback:jt,fullScreen:kn,insertTemp:lt,hidetoolBar:Ut,extraUse:ke})=>{const an=[...be,{title:`${nr?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${nr?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return et.createElement("ul",{className:"markdown-toolbar-container"},!Ut&&an.map((kt,Tn)=>et.createElement("li",{key:Tn},kt.actionName?et.createElement(Ze,Ce(pt({},kt),{onActionCallback:jt})):et.createElement("span",{className:"v-line"}))),St?et.createElement("li",null,et.createElement(Ze,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:jt},et.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Zt?et.createElement(et.Fragment,null,et.createElement("li",null,et.createElement(Ze,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:jt},et.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),et.createElement("li",null,et.createElement(Ze,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:jt},et.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,lt&&et.createElement("li",null,et.createElement(Ze,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${lt}`,onActionCallback:jt},et.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ke&&et.createElement("li",null,ke),et.createElement("li",{className:"btn-full-screen"},et.createElement(Ze,{icon:`${kn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:kn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:jt})))},Et=ne(76621),ft=ne(22150),ut=ne(69677),Re=ne(71577),Vt=Object.defineProperty,wt=Object.defineProperties,yn=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,Kn=Object.prototype.propertyIsEnumerable,rt=(nr,St,Zt)=>St in nr?Vt(nr,St,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):nr[St]=Zt,dt=(nr,St)=>{for(var Zt in St||(St={}))ln.call(St,Zt)&&rt(nr,Zt,St[Zt]);if(Ft)for(var Zt of Ft(St))Kn.call(St,Zt)&&rt(nr,Zt,St[Zt]);return nr},Ae=(nr,St)=>wt(nr,yn(St));const Bt={labelCol:{span:4},wrapperCol:{span:20}};var Cn=({callback:nr,onCancel:St})=>{function Zt(jt){nr(jt)}return oe.createElement(ft.default,Ae(dt({},Bt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Zt,style:{width:500}}),oe.createElement(ft.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},oe.createElement(ut.default,null)),oe.createElement(ft.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},oe.createElement(ut.default,null)),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Re.ZP,{type:"ghost",onClick:St},"\u53D6\u6D88")))},en=ne(57444),Ct=ne(70859),Rt=ne(14446),tn=ne(71230),cr=ne(63205),Gn=ne(67294),qt=({callback:nr,onCancel:St})=>{const Zt=document.createElement("canvas"),jt=Zt.getContext("2d");Zt.width=1e3,Zt.height=800,jt.fillStyle="#ffffff",jt.fillRect(0,0,Zt.width,Zt.height);const kn=Zt.toDataURL("image/png");return Gn.createElement(Rt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Gn.createElement(tn.Z,{style:{height:"100vh"}},Gn.createElement(cr.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:kn,visible:!0,title:String(Date.now())},onOk:lt=>{nr({src:lt.url})},onClose:St})))},Fn=ne(72565),lr=ne(15746),nn=ne(2453),ze={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ue=ne(67294),ve=(0,oe.forwardRef)(({onCancel:nr,editImgId:St,callback:Zt},jt)=>{let kn=(0,oe.useRef)(),lt=(0,oe.useRef)(),Ut=(0,oe.useRef)(),ke=(0,oe.useRef)(!1);const an=(0,oe.useRef)(!1);console.log("ref:",jt);const[kt,Tn]=(0,oe.useState)(0),[rr,Gr]=(0,oe.useState)("100vh");return(0,oe.useEffect)(()=>{Tn(1);try{indexedDB.databases().then(Nr=>{Nr.forEach(Lr=>indexedDB.deleteDatabase(Lr.name))})}catch(Nr){}},[]),(0,oe.useImperativeHandle)(jt,()=>({setHeight:Gr})),ue.createElement("div",{ref:an,className:"body-overflow-initial"},ue.createElement(Fn.Z,{width:"100vw",height:rr,footer:null,closable:!0,placement:"bottom",open:!!kt,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ze.drawerWrap}`,onClose:()=>{window.saveDrawData(Nr=>{Zt({src:`/api/attachments/${Nr}`,id:Nr})})},title:ue.createElement(tn.Z,{align:"middle"},ue.createElement(lr.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ue.createElement(lr.Z,{onClick:()=>{Gr(rr==="60px"?"100vh":"60px")}},ue.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ue.createElement(lr.Z,{onClick:()=>{window.saveDrawData(Nr=>{if(Nr===null){nn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}nn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Zt({src:`/api/attachments/${Nr}`,id:Nr,disabledClose:!0})})}},ue.createElement(Re.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ue.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${St||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:lt})))}),he=ne(11320),le=ne(78045),Ne=ne(31795);const Te=le.ZP.Group,gt={margin:"0 8px"};var At=({callback:nr,onCancel:St})=>{function Zt(jt){nr(jt)}return oe.createElement(ft.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Zt},oe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},oe.createElement("span",{style:gt},"\u5355\u5143\u683C\u6570\uFF1A"),oe.createElement("span",{style:gt},"\u884C\u6570"),oe.createElement(ft.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},oe.createElement(Ne.Z,null)),oe.createElement("span",{style:gt},"\u5217\u6570"),oe.createElement(ft.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},oe.createElement(Ne.Z,null))),oe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},oe.createElement("span",{style:gt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),oe.createElement(ft.default.Item,{name:"align"},oe.createElement(Te,null,oe.createElement(le.ZP,{value:"default"},oe.createElement("i",{className:"fa fa-align-justify"})),oe.createElement(le.ZP,{value:"left"},oe.createElement("i",{className:"fa fa-align-left"})),oe.createElement(le.ZP,{value:"center"},oe.createElement("i",{className:"fa fa-align-center"})),oe.createElement(le.ZP,{value:"right"},oe.createElement("i",{className:"fa fa-align-right"}))))),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Re.ZP,{type:"ghost",onClick:St},"\u53D6\u6D88")))},Tt=ne(47897),zt=ne(61016),Ot=ne.n(zt),It=(0,oe.forwardRef)(({use3d:nr,width:St,height:Zt,callback:jt,showSaveButton:kn},lt)=>{const Ut=(0,oe.useRef)(),ke=(0,oe.useRef)(),[an,kt]=(0,oe.useState)(!1),Tn=(0,oe.useRef)({id:Ut,appName:"graphing",width:St||1e3,height:Zt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,oe.useEffect)(()=>{ke.current=new(Ot())(Tn.current,!0),window.onload=function(){ke.current.inject("applet_container")}},[]);const rr=()=>{var Gr=window.ggbApplet.getPNGBase64(1,!0,72);return jt&&jt(Gr),Gr};return(0,oe.useEffect)(()=>{Tn.current.appName=an?"3D":"graphing",ke.current.inject("applet_container")},[an]),(0,oe.useEffect)(()=>{kt(nr)},[nr]),(0,oe.useImperativeHandle)(lt,()=>({getImgData:rr})),oe.createElement(oe.Fragment,null,oe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ut}),oe.createElement(tn.Z,{align:"middle"},oe.createElement(lr.Z,{flex:1},oe.createElement(Tt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:an,onChange:Gr=>kt(Gr)})),oe.createElement(lr.Z,null,oe.createElement(Re.ZP,{size:"large",onClick:rr,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),xt=ne(36527),sn=ne(25934);const Kt="link",Un="upload-image",bt="add-flowchart",Pt="draw-image",vn="add-flowchart",mn="code-block",gn="add-table",or="------------",er={default:or,left:`:${or}`,center:`:${or}:`,right:`${or}:`};var tr=ne(99914),Hr=(nr,St,Zt)=>new Promise((jt,kn)=>{var lt=an=>{try{ke(Zt.next(an))}catch(kt){kn(kt)}},Ut=an=>{try{ke(Zt.throw(an))}catch(kt){kn(kt)}},ke=an=>an.done?jt(an.value):Promise.resolve(an.value).then(lt,Ut);ke((Zt=Zt.apply(nr,St)).next())});function jr(){}let vr=0;const Kr=1e4,yr="\u2581",br="@\u2581\u2581@",Cr="@\u2581@",zr=`
**\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`,Wt=["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 On(nr){return/^\d+$/.test(nr)?`${nr}px`:nr}const zn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Jn={[zn+"-B"]:"bold",[zn+"-I"]:"italic"},pr={[Kt]:"\u6DFB\u52A0\u94FE\u63A5",[mn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Un]:"\u6DFB\u52A0\u56FE\u7247",[Pt]:"\u6DFB\u52A0\u753B\u56FE",[bt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[gn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var wr=({defaultValue:nr="",onChange:St,width:Zt="100%",height:jt=400,miniToolbar:kn=!1,isFocus:lt=!1,watch:Ut,insertTemp:ke,mode:an="markdown",id:kt="markdown-editor-id",showResizeBar:Tn=!1,noStorage:rr=!1,showNullButton:Gr=!1,showNullProgramButton:Nr=!1,hidetoolBar:Lr=!1,fullScreen:Ur=!1,onBlur:Sr,onCMBeforeChange:ai,onFullScreen:ir,className:Rr="",disablePaste:Di=!1,disabled:Gi=!1,disabledFill:qr=!1,placeholder:di="",values:Yi="",extraUse:Xr,onAddBlank:Pi})=>{const[Mr,ua]=(0,oe.useState)(null),[ta,Ra]=(0,oe.useState)(nr),[ca,Xi]=(0,oe.useState)(Ut),[Oi,la]=(0,oe.useState)(Ur),[Ji,Sa]=(0,oe.useState)(""),[Ya,ka]=(0,oe.useState)(0),[ba,Ba]=(0,oe.useState)(jt),[fa,ja]=(0,oe.useState)(!1),Ri=(0,oe.useRef)((0,sn.Z)()),hn=(0,oe.useRef)(!1),$t=(0,oe.useRef)(),[Zn,gr]=(0,oe.useState)(0),[Er,ri]=(0,oe.useState)(0),pi=(0,oe.useRef)(),Si=(0,oe.useRef)(),vi=(0,oe.useRef)(),Ai=(0,oe.useRef)(),Ti=(0,oe.useRef)(),$i=(0,oe.useRef)(),qi=()=>Hr(void 0,null,function*(){var Nn;const Bn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ri.current}});(Nn=Bn==null?void 0:Bn.attachments)!=null&&Nn.length&&(console.log("cm:",Mr,pi),Bn.attachments.map(rn=>{rn.content_type.indexOf("image")>-1?Mr.replaceSelection(`![,](/api/attachments/${rn.id}?type=${rn.content_type})`):rn.content_type.indexOf("video")>-1?Mr.replaceSelection(`<video width="100%" controls src="${he.Z.API_SERVER}/api/attachments/${data.id}"></video>`):rn.content_type.indexOf("pdf")>-1?Mr.replaceSelection(`<a href="${he.Z.API_SERVER}/api/attachments/${rn.id}?type=${rn.content_type}&disposition=inline" target="_blank">${rn.name}</a>`):Mr.replaceSelection(`[${rn.name}](${he.Z.API_SERVER}/api/attachments/${rn.id}?type=${rn.content_type})`)}))});(0,oe.useEffect)(()=>{const Nn=window.scrollY||window.pageYOffset;Ra(Yi),Mr==null||Mr.setValue(Yi),window.scrollTo(0,Nn)},[Yi]),(0,oe.useEffect)(()=>{ir==null||ir(Oi)},[Oi]),(0,oe.useEffect)(()=>{if(pi.current){let Nn=function(rn,Xn){var Ar;if(Di){Xn.preventDefault();return}const ur=Xn.clipboardData;if(ur){const Mn=ur.types.toString(),mr=ur.items;if(Mn==="Files"||ur.types.indexOf("Files")>-1){if(Xn.preventDefault(),an=="stex")return;try{let Dr=mr[1];((Ar=mr[0])==null?void 0:Ar.kind)==="file"&&(Dr=mr[0]);const _r=Dr.getAsFile(),tt=_r.name.split(".").pop();(0,Ct.I)(_r,at=>{var on,Qt,Dn;at.id?((on=_r==null?void 0:_r.type)==null?void 0:on.indexOf("image"))>-1?Bn.replaceSelection(`<img width="100%" src="/api/attachments/${at.id}?type=${at.content_type})" alt="" />`):((Qt=_r==null?void 0:_r.type)==null?void 0:Qt.indexOf("video"))>-1?Bn.replaceSelection(`<video width="100%" controls src="/api/attachments/${at.id}"></video>`):((Dn=_r==null?void 0:_r.type)==null?void 0:Dn.indexOf("pdf"))>-1?Bn.replaceSelection(`<a href="/api/attachments/${at.id}?type=${_r.type}&disposition=inline" target="_blank">${_r.name}</a>`):Wt.includes(tt)?Bn.replaceSelection(`<a href="/api/attachments/${at.id}?type=office&disposition=inline" target="_blank">${_r.name}</a>`):Bn.replaceSelection(`[${_r.name}](/api/attachments/${at.id}?type=${at.content_type})`):(at==null?void 0:at.status)===401&&(nn.ZP.warning((at==null?void 0:at.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Dr){nn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Bn=Fe().fromTextArea(pi.current,{mode:an,lineNumbers:!kn,lineWrapping:!0,value:nr,autoCloseTags:!Nr,autoCloseBrackets:!0});return Bn.on("keyup",function(rn,Xn){Xn.keyCode===8&&(rn.getValue()==""?Bn.setOption("placeholder",di):Bn.setOption("placeholder",null))}),Bn.on("keydown",function(rn,Xn){if(Xn.keyCode===8){var Ar=In(rn);Ar&&Xn.preventDefault()}}),lt&&Bn.focus(),Bn.on("paste",Nn),Bn.on("dragleave",function(rn,Xn){Si.current.classList.remove("mouse-hover-md")}),Gi&&Bn.on("beforeChange",function(rn,Xn){(Xn.origin==="paste"||Xn.origin==="+input")&&Xn.cancel()}),ua(Bn),()=>{Bn.off("paste",Nn)}}},[]);const Pn=(0,oe.useCallback)(()=>{if(Si.current)try{}catch(Nn){console.log(Nn,"---- to set md editor body height")}},[ba,Si,Oi]);(0,oe.useEffect)(()=>{function Nn(){let Bn=new Xe.Z(rn=>{for(let Xn of rn)(Xn.target.offsetHeight>0||Xn.target.offsetWidth>0)&&(Pn(),Mr.setSize("100%","100%"),Mr.refresh())});return Bn.observe(pi.current.parentElement),Bn}if(Mr){const Bn=Nn();return()=>{var rn,Xn;(rn=pi.current)!=null&&rn.parentElement&&Bn.unobserve((Xn=pi.current)==null?void 0:Xn.parentElement)}}},[Mr,Pn]),(0,oe.useEffect)(()=>{if(Mr){let Nn=[];for(const[Bn,rn]of Object.entries(Jn)){let Xn={[Bn]:()=>{Vn(rn)}};Nn.push(Xn),Mr.addKeyMap(Xn)}return $t.current=setInterval(()=>{hn.current&&qi()},4e3),()=>{clearInterval($t.current);for(let Bn of Nn)Mr.removeKeyMap(Bn)}}},[Mr]),(0,oe.useEffect)(()=>{Ur!==Oi&&la(Ur)},[Ur]),(0,tr.Z)(()=>{if(!rr&&Ya>0){let Nn=new Date().getTime(),Bn=window.sessionStorage.getItem(kt);Nn>=Ya+Kr&&(!Bn||Bn!==ta)&&(window.sessionStorage.setItem(kt,ta),ja(!0))}},Kr),(0,oe.useEffect)(()=>{Xi(Ut)},[Mr,Ut]),(0,oe.useEffect)(()=>{Mr&&lt&&Mr.focus()},[Mr,lt]),(0,oe.useEffect)(()=>{if(ca&&Mr){let Nn=function(rn){let Xn=rn.target;if(Ai.current){let Ar=Xn.scrollTop/Xn.scrollHeight;Ai.current.scrollTop=Ai.current.scrollHeight*Ar}};const Bn=Mr.getScrollerElement();return Bn.addEventListener("scroll",Nn),()=>{Bn.removeEventListener("scroll",Nn)}}},[Mr,ca]),(0,oe.useEffect)(()=>{if(Mr&&ai){let Nn=function(Bn,rn){ai(Bn,rn)};return Mr.on("beforeChange",Nn),()=>{Mr.off("beforeChange",Nn)}}},[Mr,ai]),(0,oe.useEffect)(()=>{if(Mr&&Sr){let Nn=function(){Sr(Mr.getValue())};return Mr.on("blur",Nn),()=>{Mr.off("blur",Nn)}}},[Mr,Sr]);function In(Nn,Bn){var rn=Nn.getDoc(),Xn=rn.getCursor(),Ar=rn.getLine(Xn.line),ur=Ar.charAt(Xn.ch-1),Mn=Ar.lastIndexOf("@\u2581@",Xn.ch),mr=Ar.lastIndexOf("@\u2581\u2581@",Xn.ch),Dr=Mn>mr?Mn:mr,_r=Mn>mr?3:4;if(br.indexOf(ur)===-1)return null;if(console.log("change1:",Bn,Nn,Ar,Xn,Dr,Mn,mr,ur),Dr>=0&&Xn.ch-Dr<5){var tt=Dr+_r;return rn.replaceRange("",{line:Xn.line,ch:Dr},{line:Xn.line,ch:tt}),{line:Xn.line,ch:tt}}return null}(0,oe.useEffect)(()=>{if(Mr){let Nn=function(Bn,rn){const Xn=Bn.getValue();Ra(Xn),ka(new Date().getTime()),Bn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),St&&(Nr?St(Xn,Xt(Xn)):St(Xn))};return Mr.on("change",Nn),()=>{Mr.off("change",Nn)}}},[Mr,St]),(0,oe.useEffect)(()=>{if(Mr)if(nr==null)Mr.setValue(""),Ra("");else{const Nn=window.scrollY||window.pageYOffset;nr!==Mr.getValue()&&(Mr.setValue(nr),Ra(nr),Mr.setCursor(Gi?1:Mr.lineCount(),0),window.scrollTo(0,Nn))}},[Mr,nr]);const Vn=(0,oe.useCallback)(Nn=>{const Bn=Mr.getCursor(),rn=Mr.getSelection();let Xn=rn.split(`
`);switch(Nn){case"bold":return Mr.replaceSelection("**"+rn+"**"),rn===""&&Mr.setCursor(Bn.line,Bn.ch+2),Mr.focus();case"italic":return Mr.replaceSelection("*"+rn+"*"),rn===""&&Mr.setCursor(Bn.line,Bn.ch+1),Mr.focus();case"code":return Mr.replaceSelection("`"+rn+"`"),rn===""&&Mr.setCursor(Bn.line,Bn.ch+1),Mr.focus();case"inline-latex":return Sa("inline-latex"),Mr.focus();case"latex":return Mr.replaceSelection("```latex\n"+rn+"\n```"),Mr.setCursor(Bn.line+1,rn.length+1),Mr.focus();case"line-break":return Mr.replaceSelection(`<br/>
`),Mr.focus();case"list-ul":return rn===""?Mr.replaceSelection("- "+rn):Mr.replaceSelection(Xn.map(Ar=>Ar===""?"":`- ${Ar}`).join(`
`)),Mr.focus();case"list-ol":return rn===""?Mr.replaceSelection("1. "+rn):Mr.replaceSelection(Xn.map((Ar,ur)=>Ar===""?"":`${ur+1}. ${Ar}`).join(`
`)),Mr.focus();case"add-null-ch":Pi==null||Pi();return;case"add-signal":return rn===""&&Mr.setCursor(Bn.line,Bn.ch),Mr.replaceSelection(Cr),Mr.focus();case"add-multiple":return rn===""&&Mr.setCursor(Bn.line,Bn.ch),Mr.replaceSelection(br),Mr.focus();case"inster-template-1":return rn===""&&Mr.setCursor(Bn.line,Bn.ch),Mr.replaceSelection(zr),Mr.focus();case"eraser":return Mr.setValue(""),Mr.focus();case"trigger-watch":return Xi(!ca),Mr.focus();case"trigger-full-screen":return la(!Oi),Mr.focus();case Kt:Sa(Kt);return;case mn:Sa(mn);return;case Un:Sa(Un);return;case Pt:Sa(Pt);return;case"maths-latex":Sa("maths-latex");return;case bt:Ti.current="",sessionStorage.removeItem("file_id"),Sa(bt);return;case gn:Sa(gn);return;default:throw new Error}},[Mr,ca,Oi]),me=(0,oe.useCallback)((Nn,Bn)=>{var rn,Xn,Ar,ur,Mn,mr;Sa("");const{src:Dr,alt:_r,id:tt}=Nn||{};switch(Ji){case Kt:const{title:sr,link:Mt}=Nn;return Mr.replaceSelection(`[${sr}](${Mt})`),Mr.focus();case mn:const{language:Dt,content:Nt}=Nn;return Mr.replaceSelection(["```"+Dt,Nt,"```"].join(`
`)),Mr.focus();case"maths-latex":for(var at=atob(Nn),on=new Uint8Array(at.length),Qt=0;Qt<at.length;Qt++)on[Qt]=at.charCodeAt(Qt);var Dn=new Blob([on],{type:"image/png"});(0,Ct.I)(Dn,bn=>{bn.id?Mr.replaceSelection(`![,](/api/attachments/${bn.id}?type=${bn.content_type})`):(bn==null?void 0:bn.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Mr.replaceSelection("`$$"+Nn+"$$`");break;case vn:if(!tt)return;Mr.focus(),Mr.getValue().indexOf(Dr)===-1?Mr.replaceSelection(`<center><img id="${tt}" width="80%" src="${Dr}" class="draw-flowchart" alt="${_r||""}" /></center>`):document.getElementById(tt).src=he.Z.API_SERVER+Dr+"?t="+Date.now();try{setTimeout(()=>{Sr(Mr.getValue())},100)}catch(bn){}break;case Un:case Pt:const Gt=Bn,Rn=(Ar=(Xn=(rn=Gt==null?void 0:Gt.name)==null?void 0:rn.split("."))==null?void 0:Xn.pop)==null?void 0:Ar.call(Xn);return((ur=Gt==null?void 0:Gt.type)==null?void 0:ur.indexOf("image"))>-1||!(Gt!=null&&Gt.type)?Gt!=null&&Gt.align||Gt!=null&&Gt.width?Mr.replaceSelection(`<p style="text-align:${Gt.align||"initial"}"><img width="${Gt.width?Gt.width+"%":"initial"}" src="${Dr}" alt="${_r||""}" /></p>`):Mr.replaceSelection(`<img width="100%" src="${Dr}" alt="${_r||""}" />`):((Mn=Gt==null?void 0:Gt.type)==null?void 0:Mn.indexOf("video"))>-1?Mr.replaceSelection(`<video width="100%" controls src="${Dr}"></video>`):((mr=Gt==null?void 0:Gt.type)==null?void 0:mr.indexOf("pdf"))>-1?Mr.replaceSelection(`<a href="${Dr}?type=${Gt.type}&disposition=inline" target="_blank">${Gt.name}</a>`):Wt.includes(Rn)?Mr.replaceSelection(`<a href="${Dr}?type=office&disposition=inline" target="_blank">${Gt.name}</a>`):Mr.replaceSelection(`[${Gt.name}](${Dr})`),Mr.focus();case gn:const{row:Qn,col:wn,align:Yn}=Nn;let kr=`
`;for(let bn=0;bn<Qn;bn++){let pn=[],_n=[];for(let Tr=0;Tr<wn;Tr++)bn===1&&_n.push(er[Yn]),pn.push(" ");bn===1&&(kr+=`| ${_n.join(" | ")} |
`),kr+=`| ${pn.join(wn===1?"":" | ")} |
`}return Mr.replaceSelection(kr+`
`),Mr.focus();default:throw new Error}},[Mr,Ji]),_e=(0,oe.useMemo)(()=>{switch(Ji){case Kt:return oe.createElement(Cn,{callback:me,onCancel:Ke});case mn:return oe.createElement(en.Z,{callback:me,onCancel:Ke});case Un:return oe.createElement(Ct.Z,{callback:me,onCancel:Ke});case bt:return oe.createElement(ve,{editImgId:Ti.current,callback:me,onCancel:Ke});case gn:return oe.createElement(At,{callback:me,onCancel:Ke});case"maths-latex":return oe.createElement(It,{showSaveButton:!0,callback:me});case"inline-latex":return oe.createElement(xt.Z,{showSaveButton:!0,callback:me});default:return null}},[Ji]);function Ke(){Sa("")}(0,oe.useEffect)(()=>{if(vi.current){let Nn=function(Mn){Ar=!0,ur=Mn.pageY},Bn=function(){Ar=!1},rn=function(Mn){if(Ar){let mr=Mn.pageY-ur;mr<0&&(mr=0),mr>300&&(mr=300);let Dr=jt+mr+"px";Ba(Dr)}},Xn=vi.current,Ar=!1,ur=0;return Xn.addEventListener("mousedown",Nn),document.addEventListener("mousemove",rn),document.addEventListener("mouseup",Bn),()=>{Xn.removeEventListener("mousedown",Nn),document.removeEventListener("mousemove",rn),document.removeEventListener("mouseup",Bn)}}},[Mr,vi]),(0,oe.useEffect)(()=>{Ba(jt)},[jt]);const Ye=On(Zt),Je=On(ba),$e={width:Ye,height:Je},Ge=(0,oe.useMemo)(()=>{if(Ya){let Nn=new Date(Ya),Bn=Nn.getHours(),rn=Nn.getMinutes(),Xn=Nn.getSeconds();return Bn=Bn<10?"0"+Bn:Bn,rn=rn<10?"0"+rn:rn,Xn=Xn<10?"0"+Xn:Xn,`${Bn}:${rn}:${Xn}`}return 0},[Ya]),Xt=Nn=>{const Bn=[];if(Nr){let rn=-1;Nn=Nn.replace(/(@▁▁@|@▁@)/g,function(Xn,Ar,ur){Bn.push({multiLine:Xn!==Cr})})}return Bn};function un(){window.sessionStorage.removeItem(kt),ja(!1),ka(0)}function Wn(){ja(!1),ka(0),Mr.setValue(window.sessionStorage.getItem(kt))}(0,oe.useEffect)(()=>{pr[Ji]&&Ji!==Pt&&Ji!==bt&&setTimeout(()=>{const Nn=document.getElementsByClassName("markdown-popup-form")[0],Bn=window.innerWidth/2-Nn.offsetWidth/2,rn=window.innerHeight/2-Nn.offsetHeight/2;gr(Bn),ri(rn)},0)},[Ji]);const ar=Nn=>{Nn.preventDefault();const Bn=Nn.clientX-Zn,rn=Nn.clientY-Er;document.body.onmousemove=Xn=>{let Ar=Xn.clientX-Bn,ur=Xn.clientY-rn;const Mn=document.getElementsByClassName("markdown-popup-form")[0],mr=window.innerWidth-Mn.offsetWidth,Dr=window.innerHeight-Mn.offsetHeight;Ar=Math.max(0,Math.min(Ar,mr)),ur=Math.max(0,Math.min(ur,Dr)),$n(Xn.clientX,Xn.clientY,Bn,rn)&&(gr(Ar),ri(ur))},document.body.onmouseup=function(){document.body.onmousemove=null}},$n=(Nn,Bn,rn,Xn)=>{const Ar=document.body.clientHeight,ur=document.body.clientWidth;return Nn<20&&rn>Nn||Nn>ur-20&&rn<Nn||Bn<20&&Xn>Bn||Bn>Ar-20&&Xn<Bn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:"markdown-editor-wrapper",ref:Si},oe.createElement("div",{className:`markdown-editor-container ${Rr} ${ca?"on-preview":""} ${kn?"mini":""} ${Oi?"full-screen":""}`,style:$e},oe.createElement(je,{insertTemp:ke,watch:ca,fullScreen:Oi,showNullButton:Gr,showNullProgramButton:Nr,onActionCallback:Vn,hidetoolBar:Lr,extraUse:Xr}),oe.createElement("div",{className:"markdown-editor-body"},oe.createElement("div",{className:"codemirror-container"},oe.createElement("textarea",{ref:pi,placeholder:di})),ca?oe.createElement("div",{ref:Ai,className:"preview-container"},an==="stex"&&oe.createElement(Oe,{value:ta}),an!=="stex"&&oe.createElement(Qe.Z,{edit:!0,disabledFill:qr,showProgramFill:Nr,value:ta,openEditor:Nn=>{var Bn;Ti.current=Nn,(Bn=$i.current)==null||Bn.setHeight("100vh"),setTimeout(()=>{Sa("add-flowchart")},150)}})):null))),Tn?oe.createElement("a",{ref:vi,className:"editor-resize"}):null,Ji===Pt&&oe.createElement(qt,{callback:me,onCancel:Ke}),Ji===bt&&oe.createElement(ve,{ref:$i,editImgId:Ti.current,callback:me,onCancel:Ke}),oe.createElement(Et.Z,null,pr[Ji]&&Ji!==Pt&&Ji!==bt?oe.createElement(Rt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Zn,top:Er},title:oe.createElement("div",{style:{cursor:"move"},onMouseDown:ar},pr[Ji]),open:!0,onCancel:Ke,footer:null,destroyOnClose:!0,width:Ji===bt?"1200px":null,height:Ji===bt?"80vh":null,className:"markdown-popup-form"},_e):null))}},70859:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Ze},I:function(){return Et}});var oe=ne(22150),de=ne(2453),Fe=ne(69677),Xe=ne(93421),Se=ne(31795),Me=ne(78045),ce=ne(71577),we=ne(15476),ge=ne(67294),Be=ne(52262),Qe=ne(67294),Oe=Object.defineProperty,et=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,mt=(ft,ut,Re)=>ut in ft?Oe(ft,ut,{enumerable:!0,configurable:!0,writable:!0,value:Re}):ft[ut]=Re,Lt=(ft,ut)=>{for(var Re in ut||(ut={}))Ve.call(ut,Re)&&mt(ft,Re,ut[Re]);if(nt)for(var Re of nt(ut))xe.call(ut,Re)&&mt(ft,Re,ut[Re]);return ft},it=(ft,ut)=>et(ft,ot(ut));const{useForm:pt}=oe.default,Ce={width:280,marginRight:10},be={labelCol:{span:5},wrapperCol:{span:19}};var Ze=({callback:ft,onCancel:ut})=>{const[Re]=pt();let Vt=(0,ge.useRef)();function wt(ln){Vt.current.width=Re.getFieldValue("width"),Vt.current.align=Re.getFieldValue("align"),ft(ln,Vt.current)}function yn(ln,Kn){if(ln.status===-1){de.ZP.error(ln.message);return}Re.setFieldsValue({src:`/api/attachments/${ln.id}`,type:Kn.type})}function Ft(ln){let Kn=ln.target.files[0];Vt.current=Kn,Et(Kn,yn)}return Qe.createElement(oe.default,it(Lt({form:Re},be),{className:"upload-image-panel",onFinish:wt,style:{width:470,overflow:"hidden"}}),Qe.createElement(oe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Qe.createElement("div",{className:"flex-container"},Qe.createElement(oe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Qe.createElement(Fe.default,{style:Ce})),Qe.createElement(je,{onFileChange:Ft}))),Qe.createElement(oe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Qe.createElement(Fe.default,{style:{width:264}})),Qe.createElement(oe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Qe.createElement(Xe.Z,null,Qe.createElement(oe.default.Item,{name:"width",style:{margin:0}},Qe.createElement(Se.Z,{style:{width:264}})),Qe.createElement("span",{className:"ml8"},"%"))),Qe.createElement(oe.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Qe.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"}]})),Qe.createElement("aside",null,Qe.createElement(oe.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Qe.createElement(ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Qe.createElement(ce.ZP,{type:"default",onClick:ut},"\u53D6\u6D88"))))};function je({onFileChange:ft}){return Qe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Qe.createElement("input",{type:"file",onChange:ft}))}function Et(ft,ut){if(!ft)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Be.bg)())throw de.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Re=new FormData;Re.append("editormd-image-file",ft),Re.append("file_param_name","editormd-image-file"),Re.append("byxhr","true");var Vt=new window.XMLHttpRequest;Vt.withCredentials=!0,Vt.addEventListener("load",function(wt){ut(JSON.parse(wt.target.responseText),ft)},!1),Vt.addEventListener("error",function(wt){console.error(wt)},!1),Vt.open("POST",`${we.KI}/api/attachments.json`),Vt.send(Re)}},76621:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Fe}});var oe=ne(67294),de=ne(73935);class Fe extends oe.Component{constructor(Se){super(Se);const Me=window.document;this.node=Me.createElement("div"),Me.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,de.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},5476:function(An,Jt,ne){"use strict";ne.d(Jt,{i:function(){return be},Z:function(){return je}});var oe={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=ne(57953),Fe=ne(83062),Xe=ne(38703),Se=ne(94184),Me=ne.n(Se),ce=ne(28706),we=ne(26194),ge=ne(52262),Be=ne(79005),Qe=ne(20345),Oe=ne(77882),et=ne(31081),ot=ne(75309),nt=ne(71979),Ve=ne(47558),xe=ne(60345),mt=ne(66832),Lt=ne(96593),it=ne(19664),pt=ne(91833),Ce=ne(67294);const be=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Be,swimg:Qe},{name:"101\u8BA1\u5212",ptimg:Oe,swimg:et},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:ot,swimg:nt},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:Ve,swimg:xe},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:mt,swimg:Lt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:it,swimg:pt}];var je=({className:Et,dataSource:ft=[],col:ut=4,right:Re,bottom:Vt=23,precision:wt=0,wrapWidth:yn=1200,trackEventItems:Ft,loading:ln,onRemove:Kn=()=>{},isCurrent:rt=!0,showAlias:dt=!1,showProgress:Ae=!1})=>{const Bt=Math.floor((yn-(ut-1)*Re)/ut),Cn=[{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(en=>(window.ENV==="build"&&(en.ptimg=`/react/build${en.ptimg}`,en.swimg=`/react/build${en.swimg}`),en));return Ce.createElement(de.Z,{spinning:ln},Ce.createElement("div",{className:Me()(oe.list,Et)},!!(ft!=null&&ft.length)&&(ft==null?void 0:ft.map((en,Ct)=>{var Rt,tn,cr,Gn,qt,Fn;const{name:lr,id:nn,identifier:ze,featured:ue,school_name:fe,image_url:ve,excellent:he,is_plan:le}=en;return Ce.createElement("div",{key:nn,className:rt&&Ae?oe.wrapisCurrent:oe.wrap,style:{width:Bt,marginRight:(1+Ct)%ut===0?0:Re+wt,marginBottom:Vt}},Ce.createElement("a",{className:oe.li,onClick:Ne=>{Ne.preventDefault(),Ne.stopPropagation(),Ft&&(0,ce.L9)([Ft]),(0,ce.xg)(`/paths/${ze}`)}},Ce.createElement("div",{className:oe.img},Ce.createElement("img",{className:oe.cover,src:`${ve}`}),rt&&(0,ge.bg)()&&(en==null?void 0:en.studying)&&Ce.createElement("div",{className:`${oe.movebq} user-path-items`,onClick:Ne=>{Ne.stopPropagation(),Kn(en)}},Ce.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Ce.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Rt=en==null?void 0:en.subject_tags)==null?void 0:Rt.map((Ne,Te)=>{var gt,At;if(Te===0){const zt=(gt=Cn.find(Ot=>Ot.name==Ne))==null?void 0:gt.swimg;return Ce.createElement("img",{className:oe.sign,src:zt,style:{left:"-4px"}})}const Tt=(At=Cn.find(zt=>zt.name==Ne))==null?void 0:At.ptimg;return Ce.createElement("img",{className:oe.sign,src:Tt,style:{left:`${48+52*(Te-1)+2*Te}px`}})}),Ce.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(en==null?void 0:en.excellent)&&Ce.createElement("div",{className:oe.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Ce.createElement("div",{className:oe.name},Ce.createElement(Fe.Z,{title:dt&&(en!=null&&en.excellent_alias_name)?Ce.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${lr}`,Ce.createElement("br",null),Ce.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${en==null?void 0:en.excellent_alias_name}`)):lr},Ce.createElement("span",{className:oe.e},dt&&(en==null?void 0:en.excellent_alias_name)||lr))),rt&&Ae&&((tn=en==null?void 0:en.progress)==null?void 0:tn.all_score)!=0&&Ce.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Ce.createElement(Xe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((cr=en==null?void 0:en.progress)==null?void 0:cr.my_score)/((Gn=en==null?void 0:en.progress)==null?void 0:Gn.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(qt=en==null?void 0:en.progress)==null?void 0:qt.my_score,"/",(Fn=en==null?void 0:en.progress)==null?void 0:Fn.all_score),(!rt||!Ae)&&Ce.createElement("div",{className:oe.tags},Ce.createElement("div",null,Ce.createElement(Fe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ce.createElement("span",null,Ce.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ce.createElement("span",null,en.stages_count))),Ce.createElement(Fe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ce.createElement("span",null,Ce.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ce.createElement("span",null,en.members_count)))))))})),!ft.length&&Ce.createElement(we.Z,null)))}},78311:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Me}});var oe=ne(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"},Fe=ne(94184),Xe=ne.n(Fe),Me=({dataSource:ce=[],value:we,onChange:ge,className:Be,style:Qe={}})=>oe.createElement("div",{style:Qe,className:Xe()(de.tabs,Be)},ce.map(Oe=>oe.createElement("span",{onClick:()=>ge(Oe.id),className:we===Oe.id?de.active:"",key:Oe.id},Oe.name)))},64743:function(An,Jt,ne){"use strict";ne.d(Jt,{jL:function(){return Se},w9:function(){return zn},vv:function(){return kn},dN:function(){return nr},QD:function(){return $t},cQ:function(){return le.Z},vg:function(){return Cr},Oz:function(){return Hr},op:function(){return ba},O5:function(){return $e},_b:function(){return Si},t7:function(){return ut},tT:function(){return wt},Gi:function(){return Sr},YG:function(){return an},Ed:function(){return Lr},kT:function(){return rr},qp:function(){return xe},Um:function(){return be},K3:function(){return it},vr:function(){return Er},qE:function(){return ja},Je:function(){return ln},wb:function(){return Gn},rC:function(){return he},lB:function(){return lr},cq:function(){return qr},kO:function(){return Pi},tp:function(){return Ze.Z},Si:function(){return un},k8:function(){return sr},Du:function(){return Ar}});var oe=ne(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"},Fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3f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RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Se=({dataSource:Mt=[],img:Dt,imgWidth:Nt=346,title:Gt,sunTitle:Rn,bannerExtraContent:Qn})=>oe.createElement("div",{className:de.banner},oe.createElement("div",{className:de.content},oe.createElement("aside",null,oe.createElement("p",null,oe.createElement("b",null,Gt),oe.createElement("span",null,Rn)),Mt.length>0&&oe.createElement("div",{className:de.btns},Mt.map((wn,Yn)=>oe.createElement("div",{key:Yn,onClick:wn.click},wn.name,wn.sign?oe.createElement("img",{src:Fe,width:39}):null))),Qn),Dt&&oe.createElement("img",{style:{marginTop:33,marginRight:38},src:Dt,width:Nt}))),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"},ce=ne(94184),we=ne.n(ce),ge=ne(96486),Be=Object.defineProperty,Qe=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,ot=(Mt,Dt,Nt)=>Dt in Mt?Be(Mt,Dt,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):Mt[Dt]=Nt,nt=(Mt,Dt)=>{for(var Nt in Dt||(Dt={}))Oe.call(Dt,Nt)&&ot(Mt,Nt,Dt[Nt]);if(Qe)for(var Nt of Qe(Dt))et.call(Dt,Nt)&&ot(Mt,Nt,Dt[Nt]);return Mt},xe=({dataSource:Mt=[],value:Dt,onChange:Nt,onTitleChange:Gt,className:Rn,title:Qn,titleWidth:wn=41,style:Yn={},fontColor:kr="#6A7283",showCount:bn,classNameActive:pn,styleItem:_n={}})=>{const[Tr,Ir]=(0,oe.useState)(0),[Jr,Zr]=(0,oe.useState)(!1),Br=(0,oe.useRef)(null),si=(0,oe.useRef)(null);return(0,oe.useEffect)(()=>{var oi;Mt.length!==0&&(((oi=Br==null?void 0:Br.current)==null?void 0:oi.clientHeight)>97?Ir(1):Ir(0)),Mt.length===0&&Ir(0),Zr(!1)},[Mt]),oe.createElement("div",{className:we()(Me.row,Rn),style:Yn},oe.createElement("div",{onClick:(0,ge.throttle)(()=>Gt==null?void 0:Gt(),2e3),style:{width:wn,marginTop:Jr?12:4},className:`${Me.title} ${Gt?"current":""}`},Qn),oe.createElement("div",{className:Jr?`${Me.tagsWrap} ${Me.tagsBorderWrap}`:Me.tagsWrap},oe.createElement("div",{className:Me.bar,ref:si,style:Tr>0?{height:Tr===1?97:"auto",overflow:Tr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},oe.createElement("div",{className:Me.tag,ref:Br},Mt==null?void 0:Mt.map(oi=>oe.createElement("span",{onClick:()=>Nt(oi.id),key:oi.id,style:nt(nt({color:kr},_n),(oi==null?void 0:oi.style)||{}),className:Dt===oi.id?we()(pn||Me.active,oi.classNameActive):""},oe.createElement("span",{title:oi.name,className:Me.name},oi.name),!!bn&&oe.createElement("span",{className:Me.num},oi.count))))),!!Tr&&oe.createElement(oe.Fragment,null,Tr===1?oe.createElement("div",{onClick:()=>{var oi;Ir(2),((oi=Br==null?void 0:Br.current)==null?void 0:oi.clientHeight)>245?Zr(!0):Zr(!1)},className:Me.action},"\u5C55\u5F00",oe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):oe.createElement("div",{onClick:()=>{si.current.scrollTop=0,Ir(1),Zr(!1)},className:Me.action},"\u6536\u8D77",oe.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},mt={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"},it=({dataSource:Mt=[],value:Dt,onChange:Nt,onTitleChange:Gt,className:Rn,title:Qn,titleWidth:wn=41,style:Yn={},fontColor:kr="#6A7283",showCount:bn,expand:pn=!0})=>{const[_n,Tr]=(0,oe.useState)(0),[Ir,Jr]=(0,oe.useState)(!1),Zr=(0,oe.useRef)(null),Br=(0,oe.useRef)(null),[si,oi]=(0,oe.useState)(pn);return oe.createElement("div",{className:we()(mt.row,Rn),style:Yn},oe.createElement("div",{className:"flex item-center justify-between"},oe.createElement("div",{onClick:(0,ge.throttle)(()=>Gt==null?void 0:Gt(),2e3),style:{width:wn,marginTop:Ir?12:4},className:`${mt.title} ${Gt?"current":""}`},Qn),oe.createElement("i",{className:`iconfont ${si?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:si?8:10},onClick:()=>oi(!si)})),si&&oe.createElement("div",{className:Ir?`${mt.tagsWrap} ${mt.tagsBorderWrap}`:mt.tagsWrap},oe.createElement("div",{className:mt.fenge}),oe.createElement("div",{className:mt.bar,ref:Br},oe.createElement("div",{className:mt.tag,ref:Zr},Mt==null?void 0:Mt.map(vt=>oe.createElement("span",{onClick:()=>Nt(vt.id),key:vt.id,style:{color:kr},className:Dt===vt.id?mt.active:""},oe.createElement("span",{title:vt.name,className:mt.name},vt.name),!!bn&&oe.createElement("span",{className:mt.num},vt.count)))))))},pt={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"},be=({dataSource:Mt=[],value:Dt,onChange:Nt,onTitleChange:Gt,className:Rn,title:Qn,titleWidth:wn=41,style:Yn={},fontColor:kr="#fff",showCount:bn,expand:pn=!0})=>{const[_n,Tr]=(0,oe.useState)(0),[Ir,Jr]=(0,oe.useState)(!1),Zr=(0,oe.useRef)(null),Br=(0,oe.useRef)(null),[si,oi]=(0,oe.useState)(pn);return oe.createElement("div",{className:we()(pt.row,Rn),style:Yn},oe.createElement("div",{className:"flex item-center justify-between"},oe.createElement("div",{onClick:(0,ge.throttle)(()=>Gt==null?void 0:Gt(),2e3),style:{width:wn},className:`${pt.title} ${Gt?"current":""}`},Qn),oe.createElement("i",{className:`iconfont ${si?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:si?"#00DDC7":"#037F74",fontSize:si?10:12},onClick:()=>oi(!si)})),si&&oe.createElement("div",{className:Ir?`${pt.tagsWrap} ${pt.tagsBorderWrap}`:pt.tagsWrap},oe.createElement("div",{className:pt.bar,ref:Br},oe.createElement("div",{className:pt.tag,ref:Zr},Mt==null?void 0:Mt.map(vt=>oe.createElement("span",{onClick:()=>Nt(vt.id),key:vt.id,style:{color:kr},className:Dt===vt.id?pt.active:""},oe.createElement("span",{title:vt.name,className:pt.name},vt.name),!!bn&&oe.createElement("span",{className:pt.num},vt.count)))))))},Ze=ne(78311),je={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"},Et=ne(69677),ut=({dataSource:Mt=[],value:Dt="",onChange:Nt,onInputChange:Gt=()=>{},className:Rn,style:Qn={},placeholder:wn,allowClear:Yn=!1})=>{var kr;const[bn,pn]=(0,oe.useState)(""),[_n,Tr]=(0,oe.useState)("");(0,oe.useEffect)(()=>{var Zr;let Br=Dt;(Zr=JSON.stringify(Dt))!=null&&Zr.includes("{")&&(pn(Dt.id),Br=Dt.value||"");try{Tr(decodeURIComponent(Br||""))}catch(si){Tr(decodeURIComponent(Br||""))}},[Dt]);const Ir=()=>{Nt(encodeURIComponent(_n),bn||null)},Jr=Zr=>{Zr!==bn&&(pn(Zr),Nt(encodeURIComponent(_n),Zr))};return oe.createElement("div",{className:we()(je.input,Rn),style:Qn},!!Mt.length&&oe.createElement("div",{className:je.dropdown},oe.createElement("div",{className:je.text},(kr=Mt.find(Zr=>Zr.id===bn))==null?void 0:kr.name,oe.createElement("i",{className:"iconfont icon-zhankai4"}),oe.createElement("b",{className:je.b1}),oe.createElement("b",{className:je.b2})),oe.createElement("div",{className:je.menu},Mt.map((Zr,Br)=>oe.createElement("div",{key:Br,onClick:()=>Jr(Zr.id)},Zr.name)))),oe.createElement(Et.default,{onPressEnter:Ir,value:_n,onChange:Zr=>{Tr(Zr.target.value),Gt(encodeURIComponent(Zr.target.value),bn||null)},bordered:!1,placeholder:wn}),oe.createElement("i",{onClick:Ir,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Re={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"},wt=({dataSource:Mt=[],value:Dt="",onChange:Nt,onInputChange:Gt=()=>{},className:Rn,style:Qn={},placeholder:wn,allowClear:Yn=!1})=>{var kr;const[bn,pn]=(0,oe.useState)(""),[_n,Tr]=(0,oe.useState)("");(0,oe.useEffect)(()=>{var Zr;let Br=Dt;(Zr=JSON.stringify(Dt))!=null&&Zr.includes("{")&&(pn(Dt.id),Br=Dt.value||"");try{Tr(decodeURIComponent(Br||""))}catch(si){Tr(decodeURIComponent(Br||""))}},[Dt]);const Ir=()=>{Nt(encodeURIComponent(_n),bn||null)},Jr=Zr=>{Zr!==bn&&(pn(Zr),Nt(encodeURIComponent(_n),Zr))};return oe.createElement("div",{className:we()(Re.input,Rn),style:Qn},!!Mt.length&&oe.createElement("div",{className:Re.dropdown},oe.createElement("div",{className:Re.text},(kr=Mt.find(Zr=>Zr.id===bn))==null?void 0:kr.name,oe.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),oe.createElement("div",{className:Re.menu},Mt.map((Zr,Br)=>oe.createElement("div",{key:Br,onClick:()=>Jr(Zr.id)},Zr.name)))),oe.createElement(Et.default,{onPressEnter:Ir,value:_n,onChange:Zr=>{Tr(Zr.target.value),Gt(encodeURIComponent(Zr.target.value),bn||null)},bordered:!1,placeholder:wn}),oe.createElement("i",{onClick:Ir,className:"iconfont icon-sousuo9 font14 pl10 current"}))},yn={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"},ln=({value:Mt,onChange:Dt,className:Nt,total:Gt,pageSize:Rn,style:Qn={}})=>{const wn=Mt<2,Yn=Mt>=Math.ceil(Gt/Rn);return Gt<=Rn?oe.createElement(oe.Fragment,null):oe.createElement("div",{className:we()(yn.quickPager,Nt),style:Qn},oe.createElement("div",{onClick:()=>{wn||Dt(Mt-1,"prev")},className:wn?yn.disabled:""},"\u4E0A\u4E00\u9875"),oe.createElement("div",{onClick:()=>{Yn||Dt(Mt+1,"next")},className:Yn?yn.disabled:""},"\u4E0B\u4E00\u9875"))},Kn={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"},rt=ne(57953),dt=ne(83062),Ae=ne(12604),Bt=ne(11320),Cn=ne(28706),en=ne(96908),Ct=ne(57177),Rt=ne(81378),tn=ne(26194),Gn=({className:Mt,dataSource:Dt=[],col:Nt=4,right:Gt,bottom:Rn=23,precision:Qn=0,wrapWidth:wn=1200,trackEventItems:Yn,loading:kr})=>{const bn=Math.floor((wn-(Nt-1)*Gt)/Nt);return oe.createElement(rt.Z,{spinning:kr},oe.createElement("div",{className:we()(Kn.list,Mt)},!!Dt.length&&Dt.map((pn,_n)=>{const{name:Tr,id:Ir,identifier:Jr,power:Zr,cover_image_id:Br,pic:si}=pn;return oe.createElement("div",{className:Kn.wrap,key:Ir,style:{width:bn,marginRight:(1+_n)%Nt===0?0:Gt+Qn,marginBottom:Rn}},oe.createElement("a",{target:"_blank",href:`/shixuns/${Jr}/challenges`,className:Kn.li,onClick:oi=>{oi.preventDefault(),Yn&&(0,Cn.L9)([Yn]),Zr&&(0,Cn.xg)(`/shixuns/${Jr}/challenges`)}},oe.createElement("div",{className:Kn.img},oe.createElement("img",{className:Kn.cover,src:`${si}`}),pn.is_jupyter&&oe.createElement("img",{className:Kn.sign,src:en}),pn.is_jupyter_lab&&oe.createElement("img",{className:Kn.sign,src:Ct}),pn.is_unity_3d&&oe.createElement("img",{className:Kn.sign,src:Rt})),oe.createElement("div",{className:Kn.name},oe.createElement(dt.Z,{title:Tr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:Kn.e},Tr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),oe.createElement("div",{className:Kn.tags},oe.createElement(dt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),oe.createElement("span",null,pn.challenges_count))),!!pn.myshixuns_count&&oe.createElement(dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),oe.createElement("span",null,pn.myshixuns_count))),oe.createElement(dt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},oe.createElement("span",null,oe.createElement("span",null,pn.level))),oe.createElement("div",{className:Kn.rate},oe.createElement(Ae.Z,{allowHalf:!0,disabled:!0,defaultValue:pn.score_info}),oe.createElement("span",null,"\xA0",pn.score_info?`${pn.score_info}\u5206`:"5\u5206")))),!Zr&&oe.createElement("div",{className:Kn.lockWrap},oe.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Dt.length&&oe.createElement(tn.Z,null)))},qt={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"},lr=({className:Mt,dataSource:Dt=[],col:Nt=4,right:Gt,bottom:Rn=23,precision:Qn=0,wrapWidth:wn=1200,wrapClassName:Yn,trackEventItems:kr,loading:bn})=>{const pn=Math.floor((wn-(Nt-1)*Gt)/Nt);return oe.createElement(rt.Z,{spinning:bn},oe.createElement("div",{className:we()(qt.list,Mt)},!!Dt.length&&Dt.map((_n,Tr)=>{const{name:Ir,id:Jr,identifier:Zr,power:Br,cover_image_id:si,pic:oi}=_n;return oe.createElement("div",{className:we()(qt.wrap,Yn),key:Jr,style:{width:pn,marginRight:(1+Tr)%Nt===0?0:Gt+Qn,marginBottom:Rn}},oe.createElement("a",{target:"_blank",href:`/shixuns/${Zr}/challenges`,className:qt.li,onClick:vt=>{vt.preventDefault(),kr&&(0,Cn.L9)([kr]),Br&&(0,Cn.xg)(`/shixuns/${Zr}/challenges`)}},oe.createElement("img",{src:ne(79633),className:qt.titleBg}),oe.createElement("div",{className:qt.name},oe.createElement(dt.Z,{title:Ir||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:qt.e},Ir||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),oe.createElement("div",{style:{padding:"14px",paddingBottom:0}},oe.createElement("div",{className:qt.img},oe.createElement("img",{className:qt.cover,src:si?`${Bt.Z.API_SERVER}/api/attachments/${si}`:`${Bt.Z.IMG_SERVER+oi}`}),_n.is_jupyter&&oe.createElement("div",{className:qt.bq},"Jupyter"),_n.is_jupyter_lab&&oe.createElement("div",{className:qt.bq},"JupyterLab"),_n.is_unity_3d&&oe.createElement("div",{className:qt.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),oe.createElement("div",{className:"mt20 flex item-center justify-between"},oe.createElement("div",null,oe.createElement("span",{className:qt.text},"\u5B66\u4E60\u4EBA\u6570"),oe.createElement("span",{className:qt.value},_n.myshixuns_count)),oe.createElement("div",null,oe.createElement("span",{className:qt.text},"\u56F0\u96BE\u7B49\u7EA7"),oe.createElement("span",{className:qt.value},_n.level))),oe.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},oe.createElement("div",null,oe.createElement("span",{className:qt.text},"\u5173\u5361\u6570"),oe.createElement("span",{className:qt.value},_n.challenges_count)),oe.createElement("div",{className:qt.rate},oe.createElement(Ae.Z,{allowHalf:!0,disabled:!0,defaultValue:_n.score_info}),oe.createElement("span",{className:qt.value,style:{color:"#FF9C00"}},"\xA0",_n.score_info?`${_n.score_info}\u5206`:"5\u5206"))))),!Br&&oe.createElement("div",{className:qt.lockWrap},oe.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Dt.length&&oe.createElement(tn.Z,null)))},nn={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"},ze="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+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTos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anSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",he=({className:Mt,dataSource:Dt=[],col:Nt=4,right:Gt,bottom:Rn=23,precision:Qn=0,wrapWidth:wn=1200,trackEventItems:Yn,loading:kr,wrapClassName:bn,imgClassName:pn})=>{const _n=Math.floor((wn-(Nt-1)*Gt)/Nt);return oe.createElement(rt.Z,{spinning:kr},oe.createElement("div",{className:we()(nn.list,Mt)},!!Dt.length&&Dt.map((Tr,Ir)=>{const{name:Jr,id:Zr,identifier:Br,power:si,cover_image_id:oi,pic:vt}=Tr;return oe.createElement("div",{className:we()(nn.wrap,bn),key:Zr,style:{width:_n,marginRight:(1+Ir)%Nt===0?0:Gt+Qn,marginBottom:Rn}},oe.createElement("a",{target:"_blank",href:`/shixuns/${Br}/challenges`,className:nn.li,onClick:dn=>{dn.preventDefault(),Yn&&(0,Cn.L9)([Yn]),si&&(0,Cn.xg)(`/shixuns/${Br}/challenges`)}},oe.createElement("div",{className:we()(nn.img,pn)},oe.createElement("img",{className:nn.cover,src:oi?`${Bt.Z.API_SERVER}/api/attachments/${oi}`:`${Bt.Z.IMG_SERVER+vt}`}),Tr.is_jupyter&&oe.createElement("img",{className:nn.sign,src:ze}),Tr.is_jupyter_lab&&oe.createElement("img",{className:nn.sign,src:ue}),Tr.is_unity_3d&&oe.createElement("img",{className:nn.sign,src:fe})),oe.createElement("div",{className:nn.name},oe.createElement(dt.Z,{title:Jr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:nn.e},Jr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),oe.createElement("div",{className:nn.tags},oe.createElement(dt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),oe.createElement("span",null,Tr.challenges_count))),!!Tr.myshixuns_count&&oe.createElement(dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),oe.createElement("span",null,Tr.myshixuns_count))),oe.createElement(dt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},oe.createElement("span",null,oe.createElement("span",null,Tr.level))),oe.createElement("div",{className:nn.rate},oe.createElement(Ae.Z,{allowHalf:!0,disabled:!0,defaultValue:Tr.score_info}),oe.createElement("span",null,"\xA0",Tr.score_info?`${Tr.score_info}\u5206`:"5\u5206")))),!si&&oe.createElement("div",{className:nn.lockWrap},oe.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Dt.length&&oe.createElement(tn.Z,null)))},le=ne(5476),Ne={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"},Te=ne(79005),gt=ne(20345),At=ne(77882),Tt=ne(31081),zt=ne(75309),Ot=ne(71979),ht=ne(47558),It=ne(60345),xt=ne(66832),sn=ne(96593),Kt=ne(19664),Un=ne(91833),bt=Object.defineProperty,Pt=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable,gn=(Mt,Dt,Nt)=>Dt in Mt?bt(Mt,Dt,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):Mt[Dt]=Nt,or=(Mt,Dt)=>{for(var Nt in Dt||(Dt={}))vn.call(Dt,Nt)&&gn(Mt,Nt,Dt[Nt]);if(Pt)for(var Nt of Pt(Dt))mn.call(Dt,Nt)&&gn(Mt,Nt,Dt[Nt]);return Mt};const er=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Te,swimg:gt},{name:"101\u8BA1\u5212",ptimg:At,swimg:Tt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:zt,swimg:Ot},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:ht,swimg:It},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:xt,swimg:sn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Kt,swimg:Un}];var Hr=({className:Mt,dataSource:Dt=[],col:Nt=4,right:Gt,bottom:Rn=23,precision:Qn=0,wrapWidth:wn=1200,trackEventItems:Yn,loading:kr,wrapClassName:bn,imgClassName:pn,isArrow:_n=!1,imgStyle:Tr={}})=>{const Ir=Math.floor((wn-(Nt-1)*Gt)/Nt),[Jr,Zr]=(0,oe.useState)(),[Br,si]=(0,oe.useState)(),oi=dn=>Zr(dn),vt=()=>Zr(-1);return oe.createElement(rt.Z,{spinning:kr},oe.createElement("div",{className:we()(Ne.list,Mt)},!!(Dt!=null&&Dt.length)&&(Dt==null?void 0:Dt.map((dn,hr)=>{var mi;const{name:ii,id:yi,identifier:zi,featured:Mi,school_name:fi,image_url:_i,excellent:ma,is_plan:oo}=dn;return oe.createElement("div",{key:yi,className:we()(Ne.wrap,bn),style:{width:Ir,marginRight:(1+hr)%Nt===0?0:Gt+Qn,marginBottom:Rn}},oe.createElement("a",{target:"_blank",href:`/paths/${zi}`,className:Ne.li,onClick:Ja=>{Ja.preventDefault(),Yn&&(0,Cn.L9)([Yn]),(0,Cn.xg)(`/paths/${zi}`)}},oe.createElement("img",{src:ne(39057),className:Ne.titleBg}),oe.createElement("div",{className:Ne.name},oe.createElement(dt.Z,{title:ii},oe.createElement("span",{className:Ne.e,style:{color:_n&&Jr===hr?"#145DFF":"#000000"},onMouseEnter:()=>{oi(hr)},onMouseLeave:vt},ii))),oe.createElement("div",{style:{padding:"14px",paddingBottom:0}},oe.createElement("div",{className:we()(Ne.img,pn)},oe.createElement("img",{className:Ne.cover,style:or({},Tr),src:`${Bt.Z.IMG_SERVER+_i}`}),(mi=dn==null?void 0:dn.subject_tags)==null?void 0:mi.map((Ja,Wa)=>{var za,La;if(Wa===0){const mo=(za=er.find(va=>va.name==Ja))==null?void 0:za.swimg;return oe.createElement("img",{className:Ne.sign,src:mo,style:{left:"-4px"}})}const ia=(La=er.find(mo=>mo.name==Ja))==null?void 0:La.ptimg;return oe.createElement("img",{className:Ne.sign,src:ia,style:{left:`${48+52*(Wa-1)+2*Wa}px`}})}),oe.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(dn==null?void 0:dn.excellent)&&oe.createElement("div",{className:Ne.bq},"\u5F00\u653E\u8BFE\u7A0B"))),oe.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},oe.createElement("div",null,oe.createElement("span",{className:Ne.text},"\u7AE0\u8282\u6570"),oe.createElement("span",{className:Ne.value},dn.stages_count)),oe.createElement("div",null,oe.createElement("span",{className:Ne.text},"\u5B66\u4E60\u4EBA\u6570"),oe.createElement("span",{className:Ne.value},dn.members_count))))))})),!Dt.length&&oe.createElement(tn.Z,null)))},jr={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"},vr=ne(52262),Kr=ne(67294);const yr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Te,swimg:gt},{name:"101\u8BA1\u5212",ptimg:At,swimg:Tt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:zt,swimg:Ot},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:ht,swimg:It},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:xt,swimg:sn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Kt,swimg:Un}];var Cr=({className:Mt,dataSource:Dt=[],col:Nt=4,right:Gt,bottom:Rn=23,precision:Qn=0,wrapWidth:wn=1200,trackEventItems:Yn,loading:kr,onRemove:bn=()=>{},isCurrent:pn=!0,showAlias:_n=!1,wrapClassName:Tr,imgClassName:Ir})=>{const Jr=Math.floor((wn-(Nt-1)*Gt)/Nt),Zr=[{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(Br=>(window.ENV==="build"&&(Br.ptimg=`/react/build${Br.ptimg}`,Br.swimg=`/react/build${Br.swimg}`),Br));return Kr.createElement(rt.Z,{spinning:kr},Kr.createElement("div",{className:we()(jr.list,Mt)},!!(Dt!=null&&Dt.length)&&(Dt==null?void 0:Dt.map((Br,si)=>{var oi;const{name:vt,id:dn,identifier:hr,featured:mi,school_name:ii,image_url:yi,excellent:zi,is_plan:Mi}=Br;return Kr.createElement("div",{key:dn,className:we()(jr.wrap,Tr),style:{width:Jr,marginRight:(1+si)%Nt===0?0:Gt+Qn,marginBottom:Rn}},Kr.createElement("a",{className:jr.li,onClick:fi=>{fi.preventDefault(),fi.stopPropagation(),Yn&&(0,Cn.L9)([Yn]),(0,Cn.xg)(`/paths/${hr}`)}},Kr.createElement("div",{className:we()(jr.img,Ir)},Kr.createElement("img",{className:jr.cover,src:`${Bt.Z.IMG_SERVER+yi}`}),pn&&(0,vr.bg)()&&(Br==null?void 0:Br.studying)&&Kr.createElement("div",{className:`${jr.movebq} user-path-items`,onClick:fi=>{fi.stopPropagation(),bn(Br)}},Kr.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Kr.createElement("span",{className:"c-red"},"\u79FB\u9664")),(oi=Br==null?void 0:Br.subject_tags)==null?void 0:oi.map((fi,_i)=>{var ma,oo;if(_i===0){const Wa=(ma=Zr.find(za=>za.name==fi))==null?void 0:ma.swimg;return Kr.createElement("img",{className:jr.sign,src:Wa,style:{left:"-4px"}})}const Ja=(oo=Zr.find(Wa=>Wa.name==fi))==null?void 0:oo.ptimg;return Kr.createElement("img",{className:jr.sign,src:Ja,style:{left:`${48+52*(_i-1)+2*_i}px`}})}),Kr.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(Br==null?void 0:Br.excellent)&&Kr.createElement("div",{className:jr.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Kr.createElement("div",{className:jr.name},Kr.createElement(dt.Z,{title:_n&&(Br!=null&&Br.excellent_alias_name)?Kr.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${vt}`,Kr.createElement("br",null),Kr.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Br==null?void 0:Br.excellent_alias_name}`)):vt},Kr.createElement("span",{className:jr.e},_n&&(Br==null?void 0:Br.excellent_alias_name)||vt))),Kr.createElement("div",{className:jr.tags},Kr.createElement("div",null,Kr.createElement(dt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Kr.createElement("span",null,Kr.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Kr.createElement("span",null,Br.stages_count))),Kr.createElement(dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Kr.createElement("span",null,Kr.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Kr.createElement("span",null,Br.members_count)))))))})),!Dt.length&&Kr.createElement(tn.Z,null)))},zr={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"},Wt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IAr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E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",On=ne(67294),zn=({className:Mt,dataSource:Dt=[],col:Nt=4,right:Gt,bottom:Rn=23,precision:Qn=0,wrapWidth:wn=1200,trackEventItems:Yn,loading:kr})=>{const bn=Math.floor((wn-(Nt-1)*Gt)/Nt);return On.createElement(rt.Z,{spinning:kr},On.createElement("div",{className:we()(zr.list,Mt)},!!Dt.length&&Dt.map((pn,_n)=>{const{subject_identifier:Tr,id:Ir,identifier:Jr,power:Zr}=pn,Br=pn.is_public!=0&&pn.is_public;return On.createElement("div",{className:zr.wrap,key:Ir,style:{width:bn,marginRight:(1+_n)%Nt===0?0:Gt+Qn,marginBottom:Rn}},On.createElement("a",{className:zr.li,onClick:si=>{si.preventDefault(),Yn&&(0,Cn.L9)([Yn]),(0,Cn.xg)(pn.first_category_url)}},On.createElement("div",{className:zr.top},On.createElement(dt.Z,{title:pn.name},On.createElement("div",{className:zr.name},pn.name)),On.createElement("img",{className:zr.img,src:Bt.Z.IMG_SERVER+"/images/"+pn.avatar_url}),On.createElement("div",{className:zr.text,title:pn.creator},pn.creator),Tr&&On.createElement("div",{className:zr.btns},On.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),On.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Br&&On.createElement("div",{className:zr.sign},"\u516C\u5F00")),On.createElement("div",{className:zr.bottom},pn.visits>0&&On.createElement(dt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},On.createElement("span",null,On.createElement("i",{className:"iconfont icon-liulanyan"}),On.createElement("span",null,pn.visits))),pn.course_members_count>0&&On.createElement(dt.Z,{title:"\u6210\u5458",placement:"bottom"},On.createElement("span",null,On.createElement("i",{className:"iconfont icon-chengyuan"}),pn.course_members_count)),pn.tasks_count>0&&On.createElement(dt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},On.createElement("span",null,On.createElement("i",{className:"iconfont icon-zuoye"}),pn.tasks_count)),pn.is_end?On.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):On.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!pn.is_accessible&&On.createElement("div",{className:zr.lockWrap},On.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),On.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Dt.length&&On.createElement(tn.Z,null)))},Jn={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"},pr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tX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Items:kr,loading:bn})=>{const pn=Math.floor((wn-(Nt-1)*Gt)/Nt);return oe.createElement(rt.Z,{spinning:bn},oe.createElement("div",{className:we()(Jn.list,Mt)},!!Dt.length&&Dt.map((_n,Tr)=>{const{subject_identifier:Ir,id:Jr,identifier:Zr,power:Br}=_n,si=_n.is_public!=0&&_n.is_public;return oe.createElement("div",{className:we()(`${Jn.wrap} ${_n.is_accessible?"":Jn.warpStyle}`,Yn),key:Jr,style:{width:pn,marginRight:(1+Tr)%Nt===0?0:Gt+Qn,marginBottom:Rn}},oe.createElement("a",{className:Jn.li,onClick:oi=>{oi.preventDefault(),kr&&(0,Cn.L9)([kr]),(0,Cn.xg)(_n.first_category_url)}},oe.createElement("div",{className:Jn.creator},oe.createElement("img",{className:Jn.img,src:Bt.Z.IMG_SERVER+"/images/"+_n.avatar_url}),oe.createElement("div",{className:Jn.text,title:_n.creator},_n.creator)),oe.createElement("div",{className:Jn.top},oe.createElement(dt.Z,{title:_n.name},oe.createElement("div",{className:Jn.name},_n.name)),si&&oe.createElement("div",{className:Jn.sign},"\u516C\u5F00")),oe.createElement("div",{className:Jn.middle},oe.createElement("div",{className:Jn.row,style:{marginBottom:6}},oe.createElement("div",null,oe.createElement("span",{className:Jn.text},"\u8BBF\u95EE\u91CF"),oe.createElement("span",{className:Jn.value},(_n==null?void 0:_n.visits)||0)),oe.createElement("div",null,oe.createElement("span",{className:Jn.text},"\u6210\u5458"),oe.createElement("span",{className:Jn.value},(_n==null?void 0:_n.course_members_count)||0))),oe.createElement("div",{className:Jn.row},oe.createElement("div",null,oe.createElement("span",{className:Jn.text,style:{width:42}},"\u4F5C",oe.createElement("span",{style:{marginLeft:14}},"\u4E1A")),oe.createElement("span",{className:Jn.value},(_n==null?void 0:_n.tasks_count)||0)),oe.createElement("div",null,oe.createElement("span",{className:Jn.text},"\u72B6\u6001"),_n.is_end?oe.createElement("span",{className:Jn.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):oe.createElement("span",{className:Jn.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),Ir&&oe.createElement("div",{className:Jn.btns},oe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),oe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!_n.is_accessible&&oe.createElement("div",{className:Jn.lockWrap},oe.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Dt.length&&oe.createElement(tn.Z,null)))},St={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"},Zt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgy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EiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",kn=({className:Mt,dataSource:Dt=[],col:Nt=4,right:Gt,bottom:Rn=23,precision:Qn=0,wrapWidth:wn=1200,wrapClassName:Yn,trackEventItems:kr,loading:bn})=>{const pn=Math.floor((wn-(Nt-1)*Gt)/Nt);return oe.createElement(rt.Z,{spinning:bn},oe.createElement("div",{className:we()(St.list,Mt)},!!Dt.length&&Dt.map((_n,Tr)=>{const{subject_identifier:Ir,id:Jr,identifier:Zr,power:Br}=_n,si=_n.is_public!=0&&_n.is_public;return oe.createElement("div",{className:we()(`${St.wrap} ${_n.is_accessible?"":St.warpStyle}`,Yn),key:Jr,style:{width:pn,marginRight:(1+Tr)%Nt===0?0:Gt+Qn,marginBottom:Rn}},oe.createElement("a",{className:St.li,onClick:oi=>{oi.preventDefault(),kr&&(0,Cn.L9)([kr]),(0,Cn.xg)(_n.first_category_url)}},oe.createElement("div",{className:St.creator},oe.createElement("img",{className:St.img,src:Bt.Z.IMG_SERVER+"/images/"+_n.avatar_url}),oe.createElement("div",{className:St.text,title:_n.creator},_n.creator)),oe.createElement("div",{className:St.top},oe.createElement(dt.Z,{title:_n.name},oe.createElement("div",{className:St.name},_n.name)),si&&oe.createElement("div",{className:St.sign})),oe.createElement("div",{className:St.middle},oe.createElement("div",{className:St.row,style:{marginBottom:6}},oe.createElement("div",null,oe.createElement("span",{className:St.text},"\u8BBF\u95EE\u91CF"),oe.createElement("span",{className:St.value},(_n==null?void 0:_n.visits)||0)),oe.createElement("div",null,oe.createElement("span",{className:St.text},"\u6210\u5458"),oe.createElement("span",{className:St.value},(_n==null?void 0:_n.course_members_count)||0))),oe.createElement("div",{className:St.row},oe.createElement("div",null,oe.createElement("span",{className:St.text,style:{width:42}},"\u4F5C",oe.createElement("span",{style:{marginLeft:14}},"\u4E1A")),oe.createElement("span",{className:St.value},(_n==null?void 0:_n.tasks_count)||0)),oe.createElement("div",null,oe.createElement("span",{className:St.text},"\u72B6\u6001"),_n.is_end?oe.createElement("span",{className:St.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):oe.createElement("span",{className:St.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),Ir&&oe.createElement("div",{className:St.btns},oe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),oe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!_n.is_accessible&&oe.createElement("div",{className:St.lockWrap},oe.createElement("img",{src:`${Bt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Dt.length&&oe.createElement(tn.Z,null)))},lt={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=ne(35973),an=({dataSource:Mt=[],value:Dt,onChange:Nt,className:Gt,style:Rn={},tabBarExtraContent:Qn})=>oe.createElement("div",{className:we()(lt.tabs,Gt),style:Rn},oe.createElement("div",{className:lt.tabsWrap},Mt.map((wn,Yn)=>oe.createElement("aside",{className:lt.tab,onClick:()=>{Nt(wn.id),wn.link&&Ut.history.push(wn.link)},key:Yn},oe.createElement("div",{className:Dt===wn.id?lt.active:""},wn.name),(wn==null?void 0:wn.resetCount)==null&&(wn==null?void 0:wn.total)!==void 0&&oe.createElement("span",null,"\uFF08",wn==null?void 0:wn.total,"\uFF09"),(wn==null?void 0:wn.resetCount)!==void 0&&(wn==null?void 0:wn.total)!==void 0&&oe.createElement(dt.Z,{title:(wn==null?void 0:wn.tip)!=null?wn==null?void 0:wn.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},wn==null?void 0:wn.resetCount),"/",oe.createElement("span",null,wn==null?void 0:wn.total),"\uFF09"))))),oe.createElement("div",{className:lt.tabBar},Qn)),kt={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"},rr=({dataSource:Mt=[],value:Dt,onChange:Nt,className:Gt,style:Rn={},tabBarExtraContent:Qn})=>oe.createElement("div",{className:we()(kt.tabs,Gt),style:Rn},oe.createElement("div",{className:kt.tabsWrap},Mt.map((wn,Yn)=>oe.createElement("aside",{className:kt.tab,onClick:()=>{Nt(wn.id),wn.link&&Ut.history.push(wn.link)},key:Yn},oe.createElement("div",{className:Dt===wn.id?kt.active:""},wn.name),(wn==null?void 0:wn.resetCount)==null&&(wn==null?void 0:wn.total)!==void 0&&oe.createElement("span",null,"\uFF08",wn==null?void 0:wn.total,"\uFF09"),(wn==null?void 0:wn.resetCount)!==void 0&&(wn==null?void 0:wn.total)!==void 0&&oe.createElement(dt.Z,{title:(wn==null?void 0:wn.tip)!=null?wn==null?void 0:wn.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},wn==null?void 0:wn.resetCount),"/",oe.createElement("span",null,wn==null?void 0:wn.total),"\uFF09"))))),oe.createElement("div",{className:kt.tabBar},Qn)),Gr={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"},Lr=({dataSource:Mt=[],value:Dt,onChange:Nt,className:Gt,style:Rn={},tabBarExtraContent:Qn})=>oe.createElement("div",{className:we()(Gr.tabs,Gt),style:Rn},oe.createElement("div",{className:Gr.tabsWrap},Mt.map((wn,Yn)=>oe.createElement("aside",{className:`${Gr.tab} ${Dt===wn.id?Gr.active:""}`,onClick:()=>{Nt(wn.id),wn.link&&Ut.history.push(wn.link)},key:Yn},oe.createElement("div",null,wn.name),(wn==null?void 0:wn.resetCount)==null&&(wn==null?void 0:wn.total)!==void 0&&oe.createElement("span",null,"\uFF08",wn==null?void 0:wn.total,"\uFF09"),(wn==null?void 0:wn.resetCount)!==void 0&&(wn==null?void 0:wn.total)!==void 0&&oe.createElement(dt.Z,{title:(wn==null?void 0:wn.tip)!=null?wn==null?void 0:wn.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},wn==null?void 0:wn.resetCount),"/",oe.createElement("span",null,wn==null?void 0:wn.total),"\uFF09"))))),oe.createElement("div",{className:Gr.tabBar},Qn)),Sr=({className:Mt,style:Dt={},children:Nt})=>oe.createElement("div",{className:we()(Mt),style:Dt},Nt),ai={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"},ir=ne(85418),Rr=ne(68508);const Di=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var qr=({sortValue:Mt,dropValue:Dt,className:Nt,onSort:Gt,onDrop:Rn,dataSource:Qn=Di})=>{var wn;return oe.createElement("div",{className:we()(ai.orderWrap,Nt)},oe.createElement(ir.Z,{dropdownRender:()=>oe.createElement(Rr.default,null,Qn.map((Yn,kr)=>oe.createElement(Rr.default.Item,{key:kr,onClick:()=>Rn(Yn.id)},Yn.name)))},oe.createElement("span",{className:ai.orderTextWrap},(wn=Qn.find(Yn=>Dt===Yn.id))==null?void 0:wn.name)),oe.createElement("span",{className:ai.orderIconWrap},oe.createElement("span",{className:ai.orderAsc},oe.createElement("i",{className:Mt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ai.cursorPointer} ${ai.active}`:`iconfont icon-sanjiaoxing-up font12 ${ai.cursorPointer}`,onClick:()=>Gt(Mt==="asc"?"desc":"asc")})),oe.createElement("span",{className:ai.orderDesc},oe.createElement("i",{className:Mt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ai.cursorPointer} ${ai.active}`:`iconfont icon-sanjiaoxing-down font12 ${ai.cursorPointer}`,onClick:()=>Gt(Mt==="asc"?"desc":"asc")}))))},di={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 Yi=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Pi=({sortValue:Mt,dropValue:Dt,className:Nt,onSort:Gt,onDrop:Rn,dataSource:Qn=Yi})=>{var wn;return oe.createElement("div",{className:we()(di.orderWrap,Nt)},oe.createElement(ir.Z,{dropdownRender:()=>oe.createElement(Rr.default,null,Qn.map((Yn,kr)=>oe.createElement(Rr.default.Item,{key:kr,onClick:()=>Rn(Yn.id)},Yn.name)))},oe.createElement("span",{className:di.orderTextWrap},(wn=Qn.find(Yn=>Dt===Yn.id))==null?void 0:wn.name)),oe.createElement("span",{className:di.orderIconWrap},oe.createElement("span",{className:di.orderAsc},oe.createElement("i",{className:Mt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${di.cursorPointer} ${di.active}`:`iconfont icon-sanjiaoxing-up font12 ${di.cursorPointer}`,onClick:()=>Gt(Mt==="asc"?"desc":"asc")})),oe.createElement("span",{className:di.orderDesc},oe.createElement("i",{className:Mt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${di.cursorPointer} ${di.active}`:`iconfont icon-sanjiaoxing-down font12 ${di.cursorPointer}`,onClick:()=>Gt(Mt==="asc"?"desc":"asc")}))))},Mr={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"},ua=ne(71577),ta=ne(52810),Ra=Object.defineProperty,ca=Object.getOwnPropertySymbols,Xi=Object.prototype.hasOwnProperty,Oi=Object.prototype.propertyIsEnumerable,la=(Mt,Dt,Nt)=>Dt in Mt?Ra(Mt,Dt,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):Mt[Dt]=Nt,Ji=(Mt,Dt)=>{for(var Nt in Dt||(Dt={}))Xi.call(Dt,Nt)&&la(Mt,Nt,Dt[Nt]);if(ca)for(var Nt of ca(Dt))Oi.call(Dt,Nt)&&la(Mt,Nt,Dt[Nt]);return Mt},Sa=(Mt,Dt)=>{var Nt={};for(var Gt in Mt)Xi.call(Mt,Gt)&&Dt.indexOf(Gt)<0&&(Nt[Gt]=Mt[Gt]);if(Mt!=null&&ca)for(var Gt of ca(Mt))Dt.indexOf(Gt)<0&&Oi.call(Mt,Gt)&&(Nt[Gt]=Mt[Gt]);return Nt},Ya=(Mt,Dt,Nt)=>new Promise((Gt,Rn)=>{var Qn=kr=>{try{Yn(Nt.next(kr))}catch(bn){Rn(bn)}},wn=kr=>{try{Yn(Nt.throw(kr))}catch(bn){Rn(bn)}},Yn=kr=>kr.done?Gt(kr.value):Promise.resolve(kr.value).then(Qn,wn);Yn((Nt=Nt.apply(Mt,Dt)).next())}),ba=Mt=>{var Dt=Mt,{className:Nt,style:Gt,children:Rn,loading:Qn=!1,openLoading:wn,onClick:Yn=()=>{},size:kr="middle",shape:bn="round",theme:pn}=Dt,_n=Sa(Dt,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Tr,Ir]=(0,oe.useState)(!1),Jr=(0,oe.useMemo)(()=>{switch(pn){case ta.Fy.THEMEONE:return Mr.ThemeOne;case ta.Fy.DEFAULT:default:return Mr.btn}},[pn]);return oe.createElement(ua.ZP,Ji({onClick:(0,ge.throttle)(Zr=>Ya(void 0,null,function*(){wn&&Ir(!0);try{yield Yn(Zr)}catch(Br){console.log("error",Br)}wn&&Ir(!1)}),2e3,{leading:!0,trailing:!1}),className:we()(Jr,Mr[`${kr}-${bn}`],Nt),style:Gt,size:kr,shape:bn,loading:Tr||Qn},_n),Rn)},Ba={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"},ja=({className:Mt,style:Dt,children:Nt=null,onClick:Gt,title:Rn})=>oe.createElement("div",{className:we()(Ba.head,Mt),style:Dt},oe.createElement("span",{className:"primary-hover",onClick:Gt},oe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),oe.createElement("b",{title:Rn},Rn),oe.createElement("div",{className:Ba.node},Nt)),Ri={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"},$t=({confirmShow:Mt=!0,confirmTitle:Dt,confirmClick:Nt,cancelShow:Gt=!0,cancelTitle:Rn,cancelClick:Qn,className:wn,style:Yn,confirmLoading:kr=!1})=>oe.createElement("div",{className:we()(Ri.btns,wn),style:Yn},Mt&&oe.createElement(ua.ZP,{loading:kr,onClick:Nt,type:"primary",className:Ri.confirm},Dt),Gt&&oe.createElement(ua.ZP,{onClick:Qn,className:Ri.cancel},Rn)),Zn={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"},Er=({className:Mt,style:Dt={},LeftContent:Nt,children:Gt,RightContent:Rn})=>oe.createElement("div",{className:we()(Zn.fixedBottom,Mt),style:Dt},oe.createElement("div",{className:Zn.wrap},oe.createElement("div",{className:Zn.left},Nt),oe.createElement("div",{className:Zn.center},Gt),oe.createElement("div",{className:Zn.right},Rn))),ri={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"},Si=({className:Mt,style:Dt={},dataSource:Nt=[]})=>oe.createElement("div",{className:we()(ri.crumbs,Mt),style:Dt},Nt.map((Gt,Rn)=>Rn<Nt.length-1?oe.createElement(oe.Fragment,{key:Rn},Gt.path||Gt.onClick?oe.createElement("span",{className:ri.hover,onClick:Gt!=null&&Gt.onClick?Gt.onClick:()=>Ut.history.push(Gt.path)},Gt.name):oe.createElement("span",null,Gt.name),oe.createElement("span",null,"\xA0",">","\xA0")):oe.createElement("span",{key:Rn,style:{color:"#5F6368"}},Gt.name))),vi=ne(55054),Ai=Object.defineProperty,Ti=Object.defineProperties,$i=Object.getOwnPropertyDescriptors,qi=Object.getOwnPropertySymbols,Pn=Object.prototype.hasOwnProperty,In=Object.prototype.propertyIsEnumerable,Vn=(Mt,Dt,Nt)=>Dt in Mt?Ai(Mt,Dt,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):Mt[Dt]=Nt,me=(Mt,Dt)=>{for(var Nt in Dt||(Dt={}))Pn.call(Dt,Nt)&&Vn(Mt,Nt,Dt[Nt]);if(qi)for(var Nt of qi(Dt))In.call(Dt,Nt)&&Vn(Mt,Nt,Dt[Nt]);return Mt},_e=(Mt,Dt)=>Ti(Mt,$i(Dt)),Ke=(Mt,Dt)=>{var Nt={};for(var Gt in Mt)Pn.call(Mt,Gt)&&Dt.indexOf(Gt)<0&&(Nt[Gt]=Mt[Gt]);if(Mt!=null&&qi)for(var Gt of qi(Mt))Dt.indexOf(Gt)<0&&In.call(Mt,Gt)&&(Nt[Gt]=Mt[Gt]);return Nt};const{Countdown:Ye}=vi.default;var $e=Mt=>{var Dt=Mt,{onChange:Nt}=Dt,Gt=Ke(Dt,["onChange"]);const[Rn,Qn]=(0,oe.useState)(null);(0,oe.useEffect)(()=>{typeof Rn=="number"&&Rn>=0&&Nt(Rn)},[Rn]);const wn=Yn=>{const kr=Math.floor(Yn/1e3);Qn(kr)};return oe.createElement(Ye,_e(me({},Gt),{onChange:wn}))},Ge={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},un=({DataProps:Mt,className:Dt,style:Nt={}})=>{var Gt;return oe.createElement("div",{className:we()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",Ge.ClassRoomItem,Dt),style:Nt,onClick:()=>{(0,Cn.xg)(Mt==null?void 0:Mt.first_category_url)}},oe.createElement("div",{className:"flex flex-col item-center"},oe.createElement("img",{src:`${(Gt=Bt.Z)==null?void 0:Gt.IMG_SERVER}/images/${Mt==null?void 0:Mt.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(Mt==null?void 0:Mt.subject_identifier)&&oe.createElement("div",{className:"mt-40px"},oe.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),oe.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),oe.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},oe.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(Mt!=null&&Mt.is_public)&&oe.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"),oe.createElement("span",{className:we()("text-16px font-medium",Ge.TitleDom)},Mt==null?void 0:Mt.name)),oe.createElement("div",{className:"c-grey-333 font-medium"},Mt==null?void 0:Mt.creator),oe.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",Mt==null?void 0:Mt.course_members_count),oe.createElement("div",{className:"c-grey-333 flex item-center justify-between"},oe.createElement("div",null,"\u4F5C\u4E1A\uFF1A",Mt==null?void 0:Mt.tasks_count),Mt!=null&&Mt.is_end?oe.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):oe.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},Wn=Object.defineProperty,ar=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,Bn=(Mt,Dt,Nt)=>Dt in Mt?Wn(Mt,Dt,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):Mt[Dt]=Nt,rn=(Mt,Dt)=>{for(var Nt in Dt||(Dt={}))$n.call(Dt,Nt)&&Bn(Mt,Nt,Dt[Nt]);if(ar)for(var Nt of ar(Dt))Nn.call(Dt,Nt)&&Bn(Mt,Nt,Dt[Nt]);return Mt},Ar=({DataProps:Mt=[],selectValue:Dt,onChange:Nt,className:Gt,style:Rn={},extra:Qn,classNameItem:wn,styleItem:Yn={},barHidden:kr})=>{const[bn,pn]=(0,oe.useState)();return(0,oe.useEffect)(()=>{pn(Array.isArray(Dt)?Dt:[Dt])},[Dt]),oe.createElement("div",{className:we()("flex px-20px py-10px gap-40px",Gt),style:rn({borderBottom:"1px solid #D3F0FF"},Rn)},Mt==null?void 0:Mt.map(_n=>oe.createElement("div",{key:_n==null?void 0:_n.id,className:we()("flex item-center justify-center current c-grey-333 text-16 relative",wn,_n==null?void 0:_n.className),style:rn(rn({color:bn!=null&&bn.includes(_n==null?void 0:_n.id)?"#1890FF":"",minWidth:88},Yn),(_n==null?void 0:_n.style)||{}),onClick:Tr=>{Nt==null||Nt({domEvent:Tr,item:_n}),_n!=null&&_n.link&&Ut.history.push(_n==null?void 0:_n.link)}},_n==null?void 0:_n.name,!kr&&(bn==null?void 0:bn.includes(_n==null?void 0:_n.id))&&oe.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),oe.createElement("div",{className:"ml-auto"},Qn))},ur=Object.defineProperty,Mn=Object.defineProperties,mr=Object.getOwnPropertyDescriptors,Dr=Object.getOwnPropertySymbols,_r=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,at=(Mt,Dt,Nt)=>Dt in Mt?ur(Mt,Dt,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):Mt[Dt]=Nt,on=(Mt,Dt)=>{for(var Nt in Dt||(Dt={}))_r.call(Dt,Nt)&&at(Mt,Nt,Dt[Nt]);if(Dr)for(var Nt of Dr(Dt))tt.call(Dt,Nt)&&at(Mt,Nt,Dt[Nt]);return Mt},Qt=(Mt,Dt)=>Mn(Mt,mr(Dt)),sr=({value:Mt,onChange:Dt,onInputChange:Nt,className:Gt,style:Rn={},InputProps:Qn})=>{const[wn,Yn]=(0,oe.useState)(Mt);return oe.createElement("div",{className:we()("flex item-center rounded-full px-10px py-2px",Gt),style:on({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},Rn)},oe.createElement(Et.default,Qt(on({bordered:!1},Qn),{onChange:kr=>{Yn(kr.target.value),Nt==null||Nt(encodeURIComponent(kr.target.value))},onPressEnter:kr=>{Dt==null||Dt({domEvent:kr,item:{value:wn}})}})),oe.createElement("img",{className:"h-22px current",src:ne(25365),height:22,onClick:kr=>{Dt==null||Dt({domEvent:kr,item:{value:wn}})}}))}},99914:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return de}});var oe=ne(67294);function de(Fe,Xe){const Se=(0,oe.useRef)();(0,oe.useEffect)(()=>{Se.current=Fe}),(0,oe.useEffect)(()=>{function Me(){Se.current()}if(Xe!==null){let ce=setInterval(Me,Xe);return()=>clearInterval(ce)}},[Xe])}},25374:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Se}});var oe=ne(67294),de={label:"label___CZ1_z",left:"left___ZKFRV",right:"right___zVTRn",error:"error___oNJNo"},Fe=ne(83062),Se=({name:Me,tooltipTitle:ce,children:we,required:ge,errorKey:Be,errorValue:Qe,errorName:Oe,errorStyle:et={},nameWidth:ot=112,align:nt="center",contentStyle:Ve={}})=>oe.createElement(oe.Fragment,null,oe.createElement("div",{className:de.label,style:{alignItems:nt}},oe.createElement("div",{className:de.left,style:{width:ot}},ge&&oe.createElement("span",null,"*"),oe.createElement("div",null,Me),!!ce&&oe.createElement(Fe.Z,{title:ce},oe.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),oe.createElement("div",{className:de.right,style:Ve},we,Oe&&Qe===Be&&oe.createElement("div",{className:de.error,style:et},Oe))))},81780:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Ce}});var oe=ne(67294),de=ne(22150),Fe=ne(2453),Xe=ne(14446),Se=ne(69677),Me=ne(71577),ce=ne(33170),we=ne(91304),ge={errorTip:"errorTip___yZItq",btns:"btns___kcUDL",confirm:"confirm___EXVbh",cancel:"cancel___vQdUc",formWrap:"formWrap___diWab"},Be=ne(60580),Qe=Object.defineProperty,Oe=Object.defineProperties,et=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,xe=(be,Ze,je)=>Ze in be?Qe(be,Ze,{enumerable:!0,configurable:!0,writable:!0,value:je}):be[Ze]=je,mt=(be,Ze)=>{for(var je in Ze||(Ze={}))nt.call(Ze,je)&&xe(be,je,Ze[je]);if(ot)for(var je of ot(Ze))Ve.call(Ze,je)&&xe(be,je,Ze[je]);return be},Lt=(be,Ze)=>Oe(be,et(Ze)),it=(be,Ze,je)=>new Promise((Et,ft)=>{var ut=wt=>{try{Vt(je.next(wt))}catch(yn){ft(yn)}},Re=wt=>{try{Vt(je.throw(wt))}catch(yn){ft(yn)}},Vt=wt=>wt.done?Et(wt.value):Promise.resolve(wt.value).then(ut,Re);Vt((je=je.apply(be,Ze)).next())}),Ce=({visible:be,mirrorId:Ze,setVisible:je,getData:Et})=>{const[ft]=de.default.useForm(),[ut,Re]=(0,oe.useState)({}),[Vt,wt]=(0,oe.useState)(""),[yn,Ft]=(0,oe.useState)(!1);(0,oe.useEffect)(()=>{Ze!=null&&be&&ln()},[Ze,be]);const ln=()=>it(void 0,null,function*(){const Ae=yield(0,ce.ZP)(`/api/user_mirrors/${Ze}.json`,{method:"get"});(Ae==null?void 0:Ae.status)===0&&(ft.setFieldsValue(mt({},Ae==null?void 0:Ae.data)),Re(mt({},Ae==null?void 0:Ae.data)))}),Kn=()=>{je(!1),Re({}),ft.setFieldsValue({})},rt=()=>it(void 0,null,function*(){Ft(!0);const Ae=mt({},yield ft.validateFields());(yield(0,ce.ZP)(`/api/user_mirrors/${Ze}.json`,{method:"put",body:{type_name:Ae==null?void 0:Ae.type_name,description:Ae==null?void 0:Ae.description}})).status===0&&(Fe.ZP.success("\u4FEE\u6539\u6210\u529F"),Et()),Ft(!1),je(!1)}),dt=Ae=>it(void 0,null,function*(){const Bt=yield(0,ce.ZP)("/api/user_mirrors/check_mirror_name.json",{method:"post",body:{type_name:Ae,id:Ze}});return(Bt==null?void 0:Bt.status)===0?{state:!1}:{state:!0,msg:Bt==null?void 0:Bt.message}});return oe.createElement(Xe.default,{centered:!0,width:1200,title:"\u4FEE\u6539\u955C\u50CF\u4FE1\u606F",maskClosable:!1,open:be,destroyOnClose:!0,footer:null,onCancel:Kn},oe.createElement(de.default,{style:{marginTop:20},form:ft,scrollToFirstError:!0,layout:"horizontal",className:ge.formWrap},oe.createElement(de.default.Item,{label:"\u955C\u50CF\u540D\u79F0",name:"type_name",colon:!1,className:ge.errorTip,rules:[{required:!0,message:""},{validator:(Ae,Bt)=>it(void 0,null,function*(){const Cn=yield dt(Bt);return(Cn==null?void 0:Cn.state)===!0?Promise.reject(Cn==null?void 0:Cn.msg):Promise.resolve()})}]},oe.createElement(Se.default,{size:"large",maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u955C\u50CF\u540D\u79F0"})),oe.createElement(de.default.Item,{label:"\u955C\u50CF\u63CF\u8FF0",name:"description",colon:!1},oe.createElement(we.Z,{watch:!0,height:300,placeholder:"",defaultValue:ut==null?void 0:ut.description,onChange:Ae=>{ft.setFieldsValue(Lt(mt({},ft.getFieldsValue()),{description:Ae})),Re(Lt(mt({},ut),{description:Ae}))},onBlur:Ae=>{ft.setFieldsValue(Lt(mt({},ft.getFieldsValue()),{description:Ae})),Re(Lt(mt({},ut),{description:Ae}))}}))),oe.createElement("div",{className:ge.btns},oe.createElement(Me.ZP,{onClick:Kn,className:ge.cancel},"\u53D6\u6D88 "),oe.createElement(Be.Z,{type:"primary",className:ge.confirm,onClick:()=>it(void 0,null,function*(){yield rt()})},"\u786E\u5B9A")))}},44607:function(An,Jt,ne){"use strict";ne.r(Jt),ne.d(Jt,{default:function(){return Kr}});var oe=ne(52810),de=ne(67294),Fe=ne(35973),Xe=ne(55054),Se=ne(22150),Me=ne(2453),ce=ne(55241),we=ne(68508),ge=ne(71577),Be=ne(71230),Qe=ne(15746),Oe=ne(83062),et=ne(57953),ot=ne(9430),nt=ne(71338),Ve=ne(31795),xe=ne(69677),mt=ne(28452),Lt=ne(14446),it=ne(84567),pt=ne(45954),Ce=ne(33170),be={flex_box_center:"flex_box_center___GEEfx",flex_space_between:"flex_space_between___m3yb7",flex_box_vertical_center:"flex_box_vertical_center___tvnMj",flex_box_center_end:"flex_box_center_end___hpoI2",flex_box_column:"flex_box_column___EGm6z",wrap:"wrap___sHEOx",crumbs:"crumbs___osr4h",Divle:"Divle___ndjFA",tableWrap:"tableWrap___aFyUX",countflex:"countflex___xh4Ql",leftCol:"leftCol____kaHU",flexright:"flexright___nydBD",flexleft:"flexleft___eBf6r",headWrap:"headWrap___PWc7j",formWrap:"formWrap___u7Sg1",inputWrap:"inputWrap___DR5gf",submitButtondiv:"submitButtondiv___IGaVO",glow:"glow___Znflh",formModal:"formModal___haXug",ActvieE3:"ActvieE3___phBHf",listClass:"listClass___CFAhy",spantitle:"spantitle___VJb52",note:"note___kXCrS",cpuWrap:"cpuWrap___nKCHB",activebtn:"activebtn___KJZJU",btn:"btn___vOOFj",activeTab:"activeTab___9xbl2",tab:"tab___rBcnO",countDown:"countDown___FvYIH",red:"red___AK2hZ",footBtnWrap:"footBtnWrap___yDNkk",modalBtns:"modalBtns___d0m88",confirm:"confirm___gz4SJ",cancel:"cancel___J1Uji",errorTip:"errorTip___apMsj",resource_config_warp:"resource_config_warp___mlfQx",flex:"flex___six9G",config_Warp:"config_Warp___WeDog",config_btn:"config_btn___xrdYb"},Ze=ne(35598),je=ne(28706),Et=ne(27484),ft=ne.n(Et),ut=ne(64743),Re=ne(26194),Vt=ne(36295),wt=ne(60580),yn=ne(81780),Ft=ne(25374),ln=ne(37388),Kn=ne(38308),rt=ne(67294),dt=Object.defineProperty,Ae=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,Cn=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Rt=(yr,br,Cr)=>br in yr?dt(yr,br,{enumerable:!0,configurable:!0,writable:!0,value:Cr}):yr[br]=Cr,tn=(yr,br)=>{for(var Cr in br||(br={}))en.call(br,Cr)&&Rt(yr,Cr,br[Cr]);if(Cn)for(var Cr of Cn(br))Ct.call(br,Cr)&&Rt(yr,Cr,br[Cr]);return yr},cr=(yr,br)=>Ae(yr,Bt(br)),Gn=(yr,br)=>{var Cr={};for(var zr in yr)en.call(yr,zr)&&br.indexOf(zr)<0&&(Cr[zr]=yr[zr]);if(yr!=null&&Cn)for(var zr of Cn(yr))br.indexOf(zr)<0&&Ct.call(yr,zr)&&(Cr[zr]=yr[zr]);return Cr},qt=(yr,br,Cr)=>new Promise((zr,Wt)=>{var On=Jn=>{try{zn(Cr.next(Jn))}catch(pr){Wt(pr)}},qn=Jn=>{try{zn(Cr.throw(Jn))}catch(pr){Wt(pr)}},zn=Jn=>Jn.done?zr(Jn.value):Promise.resolve(Jn.value).then(On,qn);zn((Cr=Cr.apply(yr,br)).next())});const Fn=yr=>{var br=yr,{classroomList:Cr,globalSetting:zr,loading:Wt,user:On,dispatch:qn}=br,zn=Gn(br,["classroomList","globalSetting","loading","user","dispatch"]),Jn,pr,wr,nr;const{Countdown:St}=Xe.default,[Zt]=(0,Fe.useSearchParams)(),[jt,kn]=(0,de.useState)(parseInt(Zt.get("status"))||0),lt=(0,Fe.useLocation)(),Ut=(0,de.useRef)(),[ke,an]=(0,de.useState)(),kt=(0,Fe.useParams)(),[Tn,rr]=(0,de.useState)(!1),[Gr,Nr]=(0,de.useState)(0),[Lr,Ur]=(0,de.useState)([]),[Sr]=Se.default.useForm(),[ai,ir]=(0,de.useState)({}),[Rr,Di]=(0,de.useState)(!1),[Gi,qr]=(0,de.useState)(!1),[di,Yi]=(0,de.useState)([]),[Xr,Pi]=(0,de.useState)([]),[Mr,ua]=(0,de.useState)(!1),[ta,Ra]=(0,de.useState)(!1),[ca,Xi]=(0,de.useState)(!1),[Oi,la]=(0,de.useState)(!1),[Ji,Sa]=(0,de.useState)(),[Ya,ka]=(0,de.useState)(!1),[ba,Ba]=(0,de.useState)(!1),[fa,ja]=(0,de.useState)({}),[Ri,hn]=(0,de.useState)(0),[$t,Zn]=(0,de.useState)(0),[gr,Er]=(0,de.useState)(!1),[ri,pi]=(0,de.useState)(0),[Si,vi]=(0,de.useState)(!1),[Ai,Ti]=(0,de.useState)(!1),[$i,qi]=(0,de.useState)(),[Pn,In]=(0,de.useState)([]),[Vn,me]=(0,de.useState)(!1),[_e,Ke]=(0,de.useState)(),[Ye,Je]=(0,de.useState)(!0),[$e,Ge]=(0,de.useState)(!1),[Xt,un]=(0,de.useState)(!1),[Wn,ar]=(0,de.useState)(!1),[$n,Nn]=(0,de.useState)(!1),[Bn,rn]=(0,de.useState)([{name:"CPU",value:0,min:0,max:0,typeName:"\u6838"},{name:"\u5185\u5B58",value:0,min:0,max:0,typeName:"GB"}]),[Xn,Ar]=(0,de.useState)();let ur=(0,de.useRef)();const[Mn,mr]=(0,de.useState)({tab:1,page:1,per_page:10}),Dr=[{id:1,name:"\u76F8\u5173\u5B9E\u8DF5\u9879\u76EE"},{id:2,name:"\u5171\u4EAB\u4FE1\u606F"},{id:3,name:"\u8BC4\u6D4B\u811A\u672C"},{id:4,name:"\u8D44\u6E90\u914D\u7F6E"}],_r=[{title:"\u5E8F\u53F7",dataIndex:"order",key:"order",render:(vt,dn,hr)=>`${(Mn.page-1)*Mn.per_page+hr+1}`,width:50},{title:"\u540D\u79F0",dataIndex:"name",key:"name",ellipsis:!0,width:80,render:(vt,dn)=>rt.createElement("span",null,vt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199")},{title:"\u5B66\u6821/\u5355\u4F4D",dataIndex:"school_name",key:"school_name",ellipsis:!0,width:100,render:(vt,dn)=>rt.createElement("span",null,vt)},{title:"\u72B6\u6001",dataIndex:"status_cn",key:"status_cn",ellipsis:!0,width:80,render:(vt,dn)=>rt.createElement("span",null,vt)},{title:"\u521B\u5EFA\u8005",dataIndex:"creator_name",key:"creator_name",ellipsis:!0,width:80,render:(vt,dn)=>rt.createElement("span",null,vt)},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",key:"created_at",ellipsis:!0,width:100,render:(vt,dn)=>rt.createElement("span",{style:{color:"#666"}},ft()(vt).format("YYYY-MM-DD HH:mm:ss"))},{title:"\u64CD\u4F5C",dataIndex:"action",align:"right",key:"action",ellipsis:!0,width:80,render:(vt,dn)=>rt.createElement("a",{style:{color:"#165DFF"},onClick:()=>{(0,je.xg)(`/shixuns/${dn.identifier}/challenges`)}},"\u67E5\u770B\u8BE6\u60C5")}],tt=[{title:"\u5E8F\u53F7",dataIndex:"order",key:"order",render:(vt,dn,hr)=>`${(Mn.page-1)*Mn.per_page+hr+1}`,width:100},{title:"\u540D\u79F0",dataIndex:"name",key:"name",ellipsis:!0,render:(vt,dn)=>rt.createElement("span",null,vt)},{title:"\u64CD\u4F5C",dataIndex:"action",align:"right",key:"action",width:120,ellipsis:!0,render:(vt,dn)=>rt.createElement("a",{className:be.ActvieE3,type:"link",style:{padding:"0 0 0 10px",whiteSpace:"nowrap"},onClick:()=>{ua(!0),Sa(dn==null?void 0:dn.id)}},"\u53D6\u6D88\u5171\u4EAB")}],at=[{title:"\u5E8F\u53F7",dataIndex:"order",key:"order",render:(vt,dn,hr)=>`${(Mn.page-1)*Mn.per_page+hr+1}`,width:100},{title:"\u540D\u79F0",dataIndex:"name",key:"name",width:140,ellipsis:!0,render:(vt,dn)=>rt.createElement("span",null,vt)},{title:"\u8BF4\u660E",dataIndex:"description",key:"description",ellipsis:!0,render:(vt,dn)=>rt.createElement("span",null,vt)},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",key:"updated_at",width:160,ellipsis:!0,render:(vt,dn)=>rt.createElement("span",{style:{color:" #666"}},ft()(vt).format("YYYY-MM-DD HH:mm:ss"))},{title:rt.createElement("span",null,"\u64CD\u4F5C"),align:"right",width:120,render:(vt,dn)=>rt.createElement(rt.Fragment,null,rt.createElement(wt.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0},onClick:()=>qt(void 0,null,function*(){yield Qn(dn==null?void 0:dn.id)})},"\u7F16\u8F91"),rt.createElement("a",{className:be.ActvieE3,type:"link",style:{padding:"0 0 0 10px",whiteSpace:"nowrap"},onClick:()=>{Ra(!0),Sa(dn==null?void 0:dn.id)}},"\u5220\u9664"))}];(0,de.useEffect)(()=>{var vt;Ut.current=(vt=lt.pathname.split("/"))==null?void 0:vt[2]},[lt.pathname]),(0,de.useEffect)(()=>{Dn()},[]),(0,de.useEffect)(()=>{on()},[]);const on=()=>qt(void 0,null,function*(){const vt=yield(0,Ce.ZP)("/api/user_mirrors/other_info.json",{method:"get"});vt.status===0&&ja(vt==null?void 0:vt.data)}),Qt=vt=>qt(void 0,null,function*(){var dn;const hr=yield(0,Ce.ZP)(`/api/user_mirrors/${vt}/error_tips.json`,{method:"get"});(hr==null?void 0:hr.status)===0&&(In((dn=hr==null?void 0:hr.data)==null?void 0:dn.user_mirror_logs),qi(!0))});function Dn(){return qt(this,null,function*(){const vt=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}.json`,{method:"get"});(vt==null?void 0:vt.status)===0&&an(vt.data)})}const sr=vt=>{Mn.tab=vt,mr(tn({},Mn))},Mt=vt=>qt(void 0,null,function*(){var dn;const hr=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/check.json`,{method:"get"});(hr==null?void 0:hr.status)===0&&(((dn=hr==null?void 0:hr.data)==null?void 0:dn.exist)===0?Ba(!0):(Ba(!1),vt?Fe.history.push(`/shixuns/new/${kt==null?void 0:kt.experid}/imagepreview?operation=update_image`):Fe.history.push(`/shixuns/new/${kt==null?void 0:kt.experid}/imagepreview`)))}),Dt=()=>qt(void 0,null,function*(){var vt;ar(!0);const dn=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/check_is_can_delete.json`,{method:"get"});(dn==null?void 0:dn.status)===0&&(pi((vt=dn==null?void 0:dn.data)==null?void 0:vt.shixun_size),Er(!0)),ar(!1)}),Nt=()=>qt(void 0,null,function*(){var vt;const dn=yield(0,Ce.ZP)("/api/teach_group_shares.json",{method:"get"});(dn==null?void 0:dn.status)===0&&(Pi(ke==null?void 0:ke.share_group_ids),Yi(dn==null?void 0:dn.groups),((vt=dn==null?void 0:dn.groups)==null?void 0:vt.length)>0?qr(!0):Me.ZP.info("\u6682\u65E0\u5171\u4EAB\u6570\u636E"))});(0,de.useEffect)(()=>((ke==null?void 0:ke.status)===1&&(ur.current=setInterval(()=>qt(void 0,null,function*(){var vt,dn,hr,mi;const ii=yield(0,Ce.ZP)("/api/user_mirrors/polling_update_status.json",{method:"post",body:{user_mirror_ids:[kt==null?void 0:kt.experid]}});if(ii.status===0)if(((dn=(vt=ii==null?void 0:ii.data)==null?void 0:vt.user_mirror_ids)==null?void 0:dn.length)>0){if(((mi=(hr=ii==null?void 0:ii.data)==null?void 0:hr.update_datas)==null?void 0:mi.length)>0){const yi=Lr==null?void 0:Lr.map(zi=>{var Mi,fi;return(fi=(Mi=ii==null?void 0:ii.data)==null?void 0:Mi.update_datas)==null||fi.map(_i=>{zi.id===_i.id&&(zi.status=_i.status)}),zi});an(yi[0])}}else Dn(),clearInterval(ur.current)}),5e3)),()=>{clearInterval(ur.current)}),[ke==null?void 0:ke.status,ke]);const Gt=()=>rt.createElement(ce.Z,{placement:"bottomLeft",content:rt.createElement(we.default,null,((ke==null?void 0:ke.publish_status)===-1||(ke==null?void 0:ke.publish_status)===0)&&rt.createElement(we.default.Item,null,rt.createElement("a",{onClick:()=>{ka(!0)}},"\u7533\u8BF7\u516C\u5F00")),(ke==null?void 0:ke.publish_status)===3&&rt.createElement(we.default.Item,null,rt.createElement("a",{onClick:()=>{Ti(!0)}},"\u91CD\u65B0\u7533\u8BF7")),((ke==null?void 0:ke.publish_status)===2||(ke==null?void 0:ke.publish_status)===3)&&rt.createElement(we.default.Item,null,rt.createElement("a",{onClick:()=>{vi(!0)}},"\u64A4\u9500\u7533\u8BF7")),rt.createElement(we.default.Item,null,rt.createElement("a",{onClick:()=>{Di(!0)}},"\u4FEE\u6539\u955C\u50CF\u4FE1\u606F")),((ke==null?void 0:ke.publish_status)===-1||(ke==null?void 0:ke.publish_status)===0||(ke==null?void 0:ke.publish_status)===3)&&rt.createElement(we.default.Item,null,rt.createElement(wt.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"rgba(0, 0, 0, 0.88)"},onClick:()=>qt(void 0,null,function*(){Je(!0),yield Mt(!0)})},"\u66F4\u65B0\u955C\u50CF")),rt.createElement(we.default.Item,null,rt.createElement(wt.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"rgba(0, 0, 0, 0.88)"},onClick:()=>qt(void 0,null,function*(){yield Nt()})},"\u5171\u4EAB\u955C\u50CF")),((ke==null?void 0:ke.publish_status)===-1||(ke==null?void 0:ke.publish_status)===0||(ke==null?void 0:ke.publish_status)===3)&&rt.createElement(we.default.Item,null,rt.createElement(wt.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"rgba(0, 0, 0, 0.88)"},onClick:()=>qt(void 0,null,function*(){yield Dt()})},"\u5220\u9664")))},rt.createElement(ut.op,{shape:"default",size:"middle",style:{borderRadius:"2px",marginTop:"3px"}},"\u66F4\u591A",rt.createElement("i",{className:"iconfont icon-sanjiaoxing-down pl8"}))),Rn=[{title:"\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(vt,dn,hr)=>rt.createElement("span",{style:{color:"#666"}},ft()(vt).format("YYYY-MM-DD HH:mm:ss"))},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",render:(vt,dn,hr)=>rt.createElement("span",{style:{color:"#000"}},"\u66F4\u65B0\u955C\u50CF")},{title:"\u72B6\u6001",dataIndex:"status",align:"right",key:"status",render:(vt,dn,hr)=>rt.createElement("span",{style:{color:"#E30000"}},"\u5931\u8D25")}],Qn=vt=>qt(void 0,null,function*(){const dn=yield(0,Ce.ZP)("/api/user_mirrors/mirror_script_detail.json",{method:"get",params:{script_id:vt}});dn.status===0&&(Sr.setFieldsValue(tn({},dn==null?void 0:dn.data)),ir(tn({},dn==null?void 0:dn.data)),Xi(!0),Sa(vt))}),wn=vt=>{ir(tn({},Sr.getFieldsValue()))},Yn=()=>qt(void 0,null,function*(){var vt,dn;Nn(!0);const hr=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/update_service_config.json`,{method:"put",body:{cpu_limit:(vt=Bn[0])==null?void 0:vt.value,memory_limit:(dn=Bn[1])==null?void 0:dn.value,resource_limit:Xn}});(hr==null?void 0:hr.status)===0&&(Me.ZP.success("\u4FDD\u5B58\u6210\u529F!"),_n()),Nn(!1)});(0,de.useEffect)(()=>{(ke==null?void 0:ke.status)===2&&(Mn.tab===1&&kr(),Mn.tab===2&&bn(),Mn.tab===3&&pn(),Mn.tab===4&&_n())},[Mn.tab,ke]);function kr(){return qt(this,null,function*(){var vt,dn;rr(!0);const hr=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/relation_shixuns.json`,{method:"get",params:tn({},Mn)});(hr==null?void 0:hr.status)===0&&(Ur((vt=hr==null?void 0:hr.data)==null?void 0:vt.relation_shixuns),Nr((dn=hr==null?void 0:hr.data)==null?void 0:dn.count)),rr(!1)})}function bn(){return qt(this,null,function*(){var vt,dn,hr,mi;rr(!0);const ii=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/show_groups.json`,{method:"get",params:tn({},Mn)});(ii==null?void 0:ii.status)===0&&(Ur((vt=ii==null?void 0:ii.data)==null?void 0:vt.groups),Nr((dn=ii==null?void 0:ii.data)==null?void 0:dn.count),Pi((mi=(hr=ii==null?void 0:ii.data)==null?void 0:hr.groups)==null?void 0:mi.map(yi=>yi.group_id))),rr(!1)})}function pn(){return qt(this,null,function*(){var vt,dn;rr(!0);const hr=yield(0,Ce.ZP)("/api/user_mirrors/mirror_scripts.json",{method:"get",params:cr(tn({},Mn),{id:kt==null?void 0:kt.experid})});(hr==null?void 0:hr.status)===0&&(Ur((vt=hr==null?void 0:hr.data)==null?void 0:vt.mirror_scripts),Nr((dn=hr==null?void 0:hr.data)==null?void 0:dn.count)),rr(!1)})}function _n(){return qt(this,null,function*(){rr(!0);const vt=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/get_service_config.json`,{method:"get"});if((vt==null?void 0:vt.status)===0){let{cpu_limit:dn,memory_limit:hr,max_cpu:mi,max_memory:ii,min_cpu:yi,min_memory:zi,resource_limit:Mi}=vt==null?void 0:vt.data;rn([{name:"CPU",value:dn,min:yi,max:mi,typeName:"\u6838"},{name:"\u5185\u5B58",value:hr,min:zi,max:ii,typeName:"GB"}]),Ar(Mi)}rr(!1)})}const Tr=()=>qt(void 0,null,function*(){un(!0);const vt=yield(0,Ce.ZP)(`/api/user_mirrors/${ke==null?void 0:ke.id}/check_is_making_end.json`,{method:"get"});(vt==null?void 0:vt.status)===0?Fe.history.push(`/shixuns/new/${ke==null?void 0:ke.id}/imagepreview?operation=create_image`):Dn(),un(!1)}),Ir=(vt,dn)=>{rn(Bn.map(hr=>hr.name===vt?dn(hr):hr))},Jr=(vt,dn)=>{isNaN(vt)||Ir(dn,hr=>cr(tn({},hr),{value:vt}))},Zr=vt=>{var dn;if(vt.value<=((dn=vt.min)!=null?dn:-1/0))return;let hr=vt.value-.5<vt.min?vt.min:vt.value-.5;Ir(vt.name,mi=>cr(tn({},mi),{value:hr}))},Br=vt=>{var dn;if(vt.value>=((dn=vt.max)!=null?dn:1/0))return;let hr=vt.value+.5>vt.max?vt.max:vt.value+.5;Ir(vt.name,mi=>cr(tn({},mi),{value:hr}))},si=(vt,dn)=>{isNaN(vt)||Ir(dn,hr=>cr(tn({},hr),{value:vt}))},oi=vt=>{if(vt==null||Number.isInteger(vt))return vt;const dn=vt%1;return dn===.5?vt:Math.floor(vt)+(dn<.5?.5:1)};return rt.createElement("div",{className:be.wrap},rt.createElement("div",{className:be.crumbs},rt.createElement("div",null,rt.createElement("a",{onClick:()=>Fe.history.back()},rt.createElement("i",{className:"iconfont icon-fanhuijingxiang"})),rt.createElement("span",{style:{paddingLeft:6}},ke==null?void 0:ke.type_name)),rt.createElement("div",null,(ke==null?void 0:ke.status)===2&&rt.createElement(ge.ZP,{type:"primary",className:"mr20",style:{borderRadius:2},onClick:()=>{Je(!1),Mt(!1)}},"\u8FD0\u884C\u955C\u50CF"),(ke==null?void 0:ke.status)===2&&rt.createElement(ut.op,{shape:"default",size:"middle",style:{borderRadius:"2px",marginTop:"3px",marginRight:20},onClick:()=>{(0,je.xg)(`/shixuns/new?tab=${Number(jt)+1}&mirror=${ke==null?void 0:ke.mirror_repository_id}`)}},"\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE"),jt===0&&(ke==null?void 0:ke.status)===2&&((ke==null?void 0:ke.publish_status)===-1||(ke==null?void 0:ke.publish_status)===0||(ke==null?void 0:ke.publish_status)===1||(ke==null?void 0:ke.publish_status)===2||(ke==null?void 0:ke.publish_status)===3)&&Gt(),jt===0&&(ke==null?void 0:ke.status)===0&&(ke==null?void 0:ke.is_making_end)===!1&&rt.createElement(rt.Fragment,null,rt.createElement(ut.op,{onClick:()=>qt(void 0,null,function*(){return yield Tr()}),shape:"default",size:"middle",loading:Xt,style:{borderRadius:"2px",marginTop:"3px",marginRight:20}},"\u5236\u4F5C\u955C\u50CF"),rt.createElement(ut.op,{onClick:()=>qt(void 0,null,function*(){yield Dt()}),shape:"default",size:"middle",style:{borderRadius:"2px",marginTop:"3px"},loading:Wn},"\u5220\u9664")),jt===0&&(ke==null?void 0:ke.status)===0&&(ke==null?void 0:ke.is_making_end)===!0&&rt.createElement(ut.op,{onClick:()=>qt(void 0,null,function*(){yield Dt()}),shape:"default",size:"middle",loading:Wn,style:{borderRadius:"2px",marginTop:"3px"}},"\u5220\u9664"),jt===0&&(ke==null?void 0:ke.status)===3&&rt.createElement(ut.op,{onClick:()=>qt(void 0,null,function*(){yield Dt()}),shape:"default",size:"middle",loading:Wn,style:{borderRadius:"2px",marginTop:"3px"}},"\u5220\u9664"))),rt.createElement("div",{className:be.Divle}),rt.createElement("div",{className:be.tableWrap},rt.createElement(Be.Z,{className:be.countflex},rt.createElement(Qe.Z,{className:be.leftCol},rt.createElement("div",{className:be.flexleft},"\u955C\u50CF\u540D\u79F0"),rt.createElement("div",{className:be.flexright,title:ke==null?void 0:ke.type_name},ke==null?void 0:ke.type_name)),rt.createElement(Qe.Z,{flex:1},rt.createElement("span",{className:be.flexleft},"\u4FDD\u5B58\u72B6\u6001"),rt.createElement("span",{className:be.flexright},(ke==null?void 0:ke.status)===0&&rt.createElement("span",{className:be.flexright},rt.createElement("span",{style:{color:"#5F6368",marginRight:5}},"\u5236\u4F5C\u4E2D"),(ke==null?void 0:ke.is_making_end)===!1?rt.createElement("i",{className:"iconfont icon-shijian1",style:{color:"#165DFF"}}):rt.createElement(Oe.Z,{title:"\u5269\u4F59\u5236\u4F5C\u65F6\u957F\u4E3A\u96F6\uFF0C\u4E0D\u80FD\u518D\u8FDB\u5165\u955C\u50CF\u5236\u4F5C\u9875\u9762\u3002"},rt.createElement("i",{className:"iconfont icon-shijian1",style:{color:"#E30000"}}))),(ke==null?void 0:ke.status)===1&&rt.createElement("span",{className:be.flexright},rt.createElement("span",{style:{color:"#165DFF",marginRight:5}},"\u4FDD\u5B58\u4E2D"),rt.createElement(et.Z,{size:"small"})),(ke==null?void 0:ke.status)===2&&rt.createElement("span",{className:be.flexright},rt.createElement("span",{style:{color:"#00B187"}},"\u5B8C\u6210"),(ke==null?void 0:ke.has_error_tips)&&jt===0&&rt.createElement("i",{className:"iconfont icon-tishi4 current ml5 c-light-primary",style:{color:"#FF8C29"},onClick:()=>{Qt(ke==null?void 0:ke.id)}})),(ke==null?void 0:ke.status)===3&&rt.createElement("span",{className:be.flexright,style:{color:"#E30000"}},"\u5931\u8D25")))),rt.createElement(Be.Z,{className:be.countflex},rt.createElement(Qe.Z,{className:be.leftCol},rt.createElement("span",{className:be.flexleft},"\u521B\u5EFA\u65B9\u5F0F"),rt.createElement("span",{className:be.flexright},(ke==null?void 0:ke.create_method)===1&&"\u5728\u7EBF\u521B\u5EFA",(ke==null?void 0:ke.create_method)===2&&"\u5BFC\u5165")),rt.createElement(Qe.Z,{flex:1},rt.createElement("span",{className:be.flexleft},"\u516C\u5F00\u72B6\u6001"),rt.createElement("span",{className:be.flexright},(ke==null?void 0:ke.publish_status)===-1&&rt.createElement("span",null,"\u672A\u516C\u5F00"),(ke==null?void 0:ke.publish_status)===0&&rt.createElement("span",null,"\u672A\u516C\u5F00"),(ke==null?void 0:ke.publish_status)===1&&rt.createElement("span",null,"\u5DF2\u516C\u5F00"),(ke==null?void 0:ke.publish_status)===2&&rt.createElement("span",null,"\u5BA1\u6838\u4E2D"),(ke==null?void 0:ke.publish_status)===3&&rt.createElement("span",null,"\u9A73\u56DE",jt===0&&rt.createElement("i",{onClick:()=>{me(!0),Ke(ke==null?void 0:ke.remark)},className:"iconfont icon-tishi4 ml5 ",style:{color:"#FF8C29"}}))))),rt.createElement(Be.Z,{className:be.countflex},((ke==null?void 0:ke.create_method)===1||(ke==null?void 0:ke.status)===1)&&rt.createElement(Qe.Z,{className:be.leftCol},rt.createElement("div",{className:be.flexleft},"\u57FA\u7840\u955C\u50CF"),rt.createElement("div",{className:be.flexright},ke==null?void 0:ke.base_mirror)),(ke==null?void 0:ke.create_method)===2&&rt.createElement(Qe.Z,{className:be.leftCol},rt.createElement("div",{className:be.flexleft},"\u955C\u50CF\u6587\u4EF6"),rt.createElement("div",{className:be.flexright},ke==null?void 0:ke.base_mirror)),rt.createElement(Qe.Z,{flex:1},rt.createElement("span",{className:be.flexleft},"\u521B\u5EFA\u65F6\u95F4"),rt.createElement("span",{className:be.flexright},ft()(ke==null?void 0:ke.created_at).format("YYYY-MM-DD HH:mm:ss")))),rt.createElement(Be.Z,{className:be.countflex},rt.createElement(Qe.Z,{className:be.leftCol},rt.createElement("span",{className:be.flexleft},"\u955C\u50CF\u7C7B\u578B"),rt.createElement("span",{className:be.flexright},((Jn=ke==null?void 0:ke.mirror_type_cn)==null?void 0:Jn.length)>1?(pr=ke==null?void 0:ke.mirror_type_cn)==null?void 0:pr.join("\u3001"):ke==null?void 0:ke.mirror_type_cn[0])),rt.createElement(Qe.Z,{flex:1},rt.createElement("span",{className:be.flexleft},"\u66F4\u65B0\u65F6\u95F4"),(ke==null?void 0:ke.status)===2?rt.createElement("span",{className:be.flexright},ft()(ke==null?void 0:ke.updated_at).format("YYYY-MM-DD HH:mm:ss")):rt.createElement("span",null,"--"))),rt.createElement(Be.Z,{style:{maxHeight:"260px",overflowY:"auto"}},rt.createElement(Qe.Z,{style:{padding:"13px 10px 10px 30px",color:"#5F6368"}},"\u955C\u50CF\u63CF\u8FF0"),rt.createElement(Qe.Z,null,rt.createElement(Ze.Z,{value:ke==null?void 0:ke.description,style:{maxWidth:"760px",padding:10,fontSize:14}})))),(ke==null?void 0:ke.can_save)&&rt.createElement("div",{style:{paddingBottom:20}},rt.createElement(ut.tp,{style:{marginBottom:15},dataSource:Dr,value:Mn.tab,onChange:sr}),rt.createElement(et.Z,{spinning:Tn},Mn.tab===1&&rt.createElement(rt.Fragment,null,Gr===0?rt.createElement(Re.Z,{customText:"\u6682\u65E0\u6570\u636E"}):rt.createElement(ot.default,{columns:_r,dataSource:Lr,pagination:!1})),Mn.tab===2&&rt.createElement(rt.Fragment,null,(ke==null?void 0:ke.status)===2?rt.createElement(wt.Z,{type:"primary",style:{whiteSpace:"nowrap",height:32,marginBottom:15,borderRadius:2},onClick:()=>qt(void 0,null,function*(){yield Nt()})},"\u5171\u4EAB\u955C\u50CF"):rt.createElement(Oe.Z,{title:"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},rt.createElement(ge.ZP,{disabled:!0,style:{borderRadius:2}},"\u5171\u4EAB\u955C\u50CF")),Gr===0?rt.createElement(Re.Z,{customText:"\u6682\u65E0\u6570\u636E"}):rt.createElement(ot.default,{columns:tt,dataSource:Lr,pagination:!1})),Mn.tab===3&&rt.createElement(rt.Fragment,null,rt.createElement("div",{className:be.headWrap},(ke==null?void 0:ke.status)===2?rt.createElement(ge.ZP,{type:"primary",style:{borderRadius:2},onClick:()=>la(!0)},"\u6DFB\u52A0\u811A\u672C"):rt.createElement(Oe.Z,{title:"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},rt.createElement(ge.ZP,{disabled:!0,style:{borderRadius:2}},"\u6DFB\u52A0\u811A\u672C")),rt.createElement("p",{style:{color:"#9096A3"}},"\u5982\u679C\u955C\u50CF\u8981\u7528\u4E8E\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE\uFF0C\u5219\u9700\u8981\u6DFB\u52A0\u5B66\u5458\u8BC4\u6D4B\u65F6\u8FD0\u884C\u7684\u811A\u672C\u3002\u9ED8\u8BA4\u751F\u6210\u4E86\u4E00\u4E9B\u8BC4\u6D4B\u811A\u672C\uFF0C\u4F60\u53EF\u4EE5\u6839\u636E\u9700\u8981\u4FEE\u6539\u6216\u6DFB\u52A0\u811A\u672C\u3002")),Gr===0?rt.createElement(Re.Z,{customText:"\u6682\u65E0\u6570\u636E"}):rt.createElement(ot.default,{columns:at,dataSource:Lr,pagination:!1})),Mn.tab===4&&rt.createElement(rt.Fragment,null,rt.createElement("div",{style:{color:"#999",marginBottom:10}},"\u6E29\u99A8\u63D0\u793A\uFF1A\u8BF7\u6839\u636E\u5B9E\u9645\u9700\u8981\uFF0C\u586B\u5199\u955C\u50CF\u4F7F\u7528\u7684\u8D44\u6E90\u914D\u989D\uFF0C\u5305\u62EC CPU\u548C\u5185\u5B58\u3002"),Bn.map(vt=>rt.createElement(Oe.Z,{title:(ke==null?void 0:ke.status)===2?"":"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},rt.createElement("div",{className:be.resource_config_warp,key:vt==null?void 0:vt.name},rt.createElement("div",null,vt==null?void 0:vt.name),rt.createElement("div",null,rt.createElement(nt.Z,{disabled:(ke==null?void 0:ke.status)!==2,min:vt==null?void 0:vt.min,max:vt==null?void 0:vt.max,onChange:dn=>{const hr=oi(dn);Jr(hr,vt==null?void 0:vt.name)},value:vt==null?void 0:vt.value,step:.5,style:{width:674,height:6,margin:"0 20px 0 12px"}})),rt.createElement("div",{className:`${be.config_Warp} ${be.flex}`},rt.createElement("div",{className:`${be.config_btn} ${be.flex}`,onClick:()=>{Zr(vt)}},rt.createElement(ln.Z,null)),rt.createElement(Ve.Z,{min:vt==null?void 0:vt.min,max:vt==null?void 0:vt.max,size:"large",step:"0",controls:!1,style:{width:50},value:vt==null?void 0:vt.value,disabled:(ke==null?void 0:ke.status)!==2,onChange:dn=>{si(dn,vt==null?void 0:vt.name)}}),rt.createElement("div",{className:`${be.config_btn} ${be.flex}`,onClick:()=>{Br(vt)}},rt.createElement(Kn.Z,null))),rt.createElement("div",null,vt==null?void 0:vt.typeName)))),rt.createElement(Be.Z,null,rt.createElement(Qe.Z,{style:{marginRight:20}},rt.createElement(Oe.Z,{title:(ke==null?void 0:ke.status)===2?"":"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},rt.createElement("div",{style:{display:"flex"}},rt.createElement("span",{style:{lineHeight:"40px",width:135}},"\u6587\u4EF6\u5927\u5C0F\u9650\u5236"),rt.createElement(xe.default,{value:Xn,maxLength:5,onChange:vt=>{const{value:dn}=vt.target,hr=/^\d*(\.\d*)?$/;dn.match(hr)&&Ar(vt.target.value)},disabled:(ke==null?void 0:ke.status)!==2,size:"large",className:be.inputWrap,suffix:rt.createElement("span",{style:{color:"#999"}},"M")})))),rt.createElement(Qe.Z,{style:{width:360,color:"#999",lineHeight:"40px"}},rt.createElement("p",null,"File size limit\u53C2\u6570\uFF0C\u8868\u793A\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u7684\u5927\u5C0F\u9650\u5236 "))),rt.createElement(Be.Z,{style:{display:"flex",justifyContent:"flex-end"}},(ke==null?void 0:ke.status)===2?rt.createElement(ge.ZP,{type:"primary",loading:$n,className:be.confirm,onClick:()=>Yn()},"\u4FDD\u5B58"):rt.createElement(Oe.Z,{title:"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},rt.createElement(ge.ZP,{disabled:!0,style:{borderRadius:2}},"\u4FDD\u5B58"))))),rt.createElement(rt.Fragment,null,Mn.tab!=4&&Gr!=0&&rt.createElement(Be.Z,{className:"mt20 mb20",wrap:!1,align:"middle",justify:"end"},rt.createElement(Qe.Z,null,rt.createElement(mt.Z,{showSizeChanger:!0,showQuickJumper:!0,current:Mn.page,pageSize:Mn.per_page,onShowSizeChange:(vt,dn)=>{Mn.per_page=dn,Mn.page=1,mr(tn({},Mn))},onChange:vt=>{Mn.page=vt,mr(tn({},Mn))},total:Gr}))))),rt.createElement("div",null,rt.createElement(Lt.default,{centered:!0,title:"\u9A73\u56DE\u539F\u56E0",open:Vn,footer:null,maskClosable:!1,destroyOnClose:!0,onCancel:()=>{me(!1)}},rt.createElement("div",{style:{maxHeight:300,overflowY:"auto"}},_e),rt.createElement("div",{className:be.footBtnWrap},rt.createElement(ge.ZP,{size:"middle",style:{marginRight:20,borderRadius:2},onClick:()=>{me(!1),vi(!0)},type:"primary"},"\u64A4\u9500\u7533\u8BF7"),rt.createElement(ge.ZP,{size:"middle",style:{borderRadius:2},onClick:()=>{me(!1),Ti(!0)},type:"primary"},"\u91CD\u65B0\u7533\u8BF7"))),rt.createElement(Lt.default,{centered:!0,title:"\u5F02\u5E38\u63D0\u793A",open:$i,footer:null,destroyOnClose:!0,onCancel:()=>{qi(!1)}},rt.createElement(ot.default,{style:{maxHeight:300,overflowY:"auto",marginBottom:20},dataSource:Pn,columns:Rn,pagination:!1})),rt.createElement(Lt.default,{centered:!0,title:"\u91CD\u65B0\u7533\u8BF7\u516C\u5F00",open:Ai,maskClosable:!1,confirmLoading:$e,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{Ti(!1)},onOk:()=>qt(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/apply_public.json`,{method:"post"})).status===0&&(Me.ZP.success("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"),Dn()),Ge(!1),Ti(!1)})},rt.createElement("div",null,"\u91CD\u65B0\u7533\u8BF7\u516C\u5F00\u524D\uFF0C\u8BF7\u6839\u636E\u9A73\u56DE\u539F\u56E0\u4FEE\u6539\u955C\u50CF\uFF0C\u7136\u540E\u518D\u7533\u8BF7\u3002\u4F60\u786E\u5B9A\u8981\u91CD\u65B0\u7533\u8BF7\u516C\u5F00\u5417\uFF1F")),rt.createElement(Lt.default,{centered:!0,title:"\u64A4\u9500\u7533\u8BF7\u516C\u5F00",open:Si,maskClosable:!1,confirmLoading:$e,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{vi(!1)},onOk:()=>qt(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/revoke_apply.json`,{method:"post"})).status===0&&(Me.ZP.success("\u64A4\u9500\u6210\u529F"),Dn()),Ge(!1),vi(!1)})},rt.createElement("div",null,"\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u540E\uFF0C\u955C\u50CF\u56DE\u5230\u3010\u672A\u516C\u5F00\u3011\u72B6\u6001\u3002\u540E\u7EED\u5982\u6709\u9700\u8981\uFF0C\u53EF\u4EE5\u518D\u6B21\u7533\u8BF7\u516C\u5F00\u3002\u4F60\u786E\u5B9A\u8981\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u5417\uFF1F")),rt.createElement(Lt.default,{centered:!0,title:"\u5220\u9664\u955C\u50CF",open:gr,maskClosable:!1,confirmLoading:$e,okText:ri>0?"\u6211\u77E5\u9053\u4E86":"\u786E\u5B9A",cancelText:ri>0?"":"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{Er(!1)},onOk:()=>qt(void 0,null,function*(){if(Ge(!0),ri>0){Er(!1);return}(yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}.json`,{method:"delete"})).status===0&&(Me.ZP.success("\u5220\u9664\u6210\u529F"),Fe.history.back()),Ge(!1),Er(!1)})},ri>0?rt.createElement("div",null,rt.createElement("div",null,"\u8BE5\u955C\u50CF\u5DF2\u88AB ",ri," \u4E2A\u5B9E\u8DF5\u9879\u76EE\u4F7F\u7528\uFF0C\u4E0D\u5141\u8BB8\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\u3002"),rt.createElement("div",{style:{color:"#165DFF",marginTop:20,cursor:"pointer"},onClick:()=>{Mn.tab=1,Mn.page=1,Mn.per_page=10,mr(tn({},Mn)),Er(!1)}},rt.createElement("span",{style:{paddingRight:"4"}},"\u67E5\u770B\u76F8\u5173\u5B9E\u8DF5\u9879\u76EE"),rt.createElement("i",{className:"iconfont icon-you"}))):rt.createElement("div",null,"\u955C\u50CF\u5220\u9664\u4E4B\u540E\u4E0D\u53EF\u6062\u590D\uFF0C\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u955C\u50CF\u5417\uFF1F")),rt.createElement(Lt.default,{centered:!0,keyboard:!1,destroyOnClose:!0,open:ba,title:"\u9009\u62E9\u8FD0\u884C\u73AF\u5883",maskClosable:!1,confirmLoading:$e,width:"558px",okText:"\u786E\u5B9A",wrapClassName:be.auditModal,onCancel:()=>{hn(0),Zn(0),Ba(!1)},onOk:()=>qt(void 0,null,function*(){var vt;Ge(!0);const dn=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/running_image.json`,{method:"post",body:{cpu_memory_limit:fa==null?void 0:fa.cpu_memory_limit_config[Number(Ri)],time_limit:(vt=fa==null?void 0:fa.time_limit_config[Number($t)])==null?void 0:vt.value}});(dn==null?void 0:dn.status)===0&&(Ye?Fe.history.push(`/shixuns/new/${kt==null?void 0:kt.experid}/imagepreview?operation=update_image`):Fe.history.push(`/shixuns/new/${kt==null?void 0:kt.experid}/imagepreview`)),Ge(!1),Ba(!1)})},rt.createElement("div",{style:{paddingTop:20}},Ye&&rt.createElement("div",{style:{marginBottom:"30px",backgroundColor:"rgba(255,157,24,0.1)",height:"42px",lineHeight:"42px"}},rt.createElement("i",{className:"iconfont icon-tishi4",style:{color:"#FF9D18",paddingLeft:20}}),rt.createElement("span",{style:{paddingLeft:"6px",color:"#FF9D18"}},"\u66F4\u65B0\u955C\u50CF\u540E\uFF0C\u539F\u6765\u7684\u955C\u50CF\u5C06\u88AB\u8986\u76D6\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u76F8\u5173\u7684\u5B9E\u8DF5\u9879\u76EE\u3002")),rt.createElement(Ft.Z,{required:!0,name:"\u914D\u7F6E",align:"center",nameWidth:60},rt.createElement("div",{className:be.cpuWrap},(wr=fa==null?void 0:fa.cpu_memory_limit_config)==null?void 0:wr.map((vt,dn)=>rt.createElement("div",{className:Ri===dn?be.activebtn:be.btn,onClick:()=>hn(dn)},rt.createElement("div",null,vt),Ri===dn?rt.createElement("div",null,rt.createElement("i",{className:"iconfont icon-xuanzhong9",style:{paddingRight:12}})):"")))),rt.createElement(Ft.Z,{required:!0,name:"\u65F6\u957F",align:"center",nameWidth:60},(nr=fa==null?void 0:fa.time_limit_config)==null?void 0:nr.map((vt,dn)=>rt.createElement("span",{className:$t===dn?be.activeTab:be.tab,onClick:()=>Zn(dn)},vt.name))))),rt.createElement(Lt.default,{centered:!0,title:"\u7533\u8BF7\u516C\u5F00",open:Ya,okText:"\u786E\u5B9A",maskClosable:!1,confirmLoading:$e,cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{ka(!1)},onOk:()=>qt(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/apply_public.json`,{method:"post"})).status===0&&(Me.ZP.success("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"),Dn()),Ge(!1),ka(!1)})},rt.createElement("div",{className:be.note},rt.createElement("p",null,"1.\u7533\u8BF7\u516C\u5F00\u524D\uFF0C\u8BF7\u4FDD\u8BC1\u955C\u50CF\u662F\u53EF\u8FD0\u884C\u7684\uFF0C\u5E76\u68C0\u67E5\u8BE5\u5B9E\u9A8C\u955C\u50CF\u662F\u5426\u7B26\u5408\u5E73\u53F0\u7684\u89C4\u8303\u6807\u51C6\u3002"),rt.createElement("p",null,"2.\u516C\u5F00\u7684\u955C\u50CF\u5C06\u8D21\u732E\u7ED9\u5E73\u53F0\u6240\u6709\u4EBA\u8FDB\u884C\u4F7F\u7528\uFF0C\u82E5\u4EC5\u672C\u4EBA\u6559\u5B66\u4F7F\u7528\u5219\u65E0\u9700\u7533\u8BF7\u516C\u5F00\u3002"),rt.createElement("p",null,"3.\u516C\u5F00\u955C\u50CF\u9700\u7ECF\u8FC7\u5E73\u53F0\u6807\u51C6\u5316\u5BA1\u6838\uFF0C\u5BA1\u6838\u5468\u671F\u4E3A1-2\u5929\u3002"),rt.createElement("p",null,"\u4F60\u786E\u5B9A\u8981\u7533\u8BF7\u516C\u5F00\u5417\uFF1F"))),rt.createElement(yn.Z,{visible:Rr,setVisible:Di,mirrorId:kt==null?void 0:kt.experid,getData:Dn}),rt.createElement(Lt.default,{centered:!0,width:518,title:"\u5171\u4EAB\u955C\u50CF",open:Gi,okText:"\u786E\u5B9A",maskClosable:!1,confirmLoading:$e,cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{qr(!1)},onOk:()=>qt(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)("/api/teach_group_shares.json",{method:"post",body:{ids:[kt==null?void 0:kt.experid],clazz:"UserMirror",group_ids:Xr}})).status===0&&(Xr.length>0?Me.ZP.success("\u5171\u4EAB\u6210\u529F"):Me.ZP.success("\u64A4\u9500\u6210\u529F"),bn(),Dn()),Ge(!1),qr(!1)})},rt.createElement("div",{style:{marginBottom:"30px",backgroundColor:"rgba(255,157,24,0.1)",width:"468px",height:"42px",lineHeight:"42px"}},rt.createElement("i",{className:"iconfont icon-tishi4",style:{color:"#FF9D18",paddingLeft:20}}),rt.createElement("span",{style:{paddingLeft:"6px",color:"#FF9D18"}},"\u8BE5\u955C\u50CF\u4EC5\u5171\u4EAB\u7ED9\u9009\u4E2D\u7684\u6559\u7814\u56E2\u961F\uFF0C\u53D6\u6D88\u9009\u4E2D\u5E76\u786E\u5B9A\u5373\u53EF\u64A4\u9500\u5171\u4EAB\u3002")),rt.createElement("div",{style:{maxHeight:"260px",overflowY:"auto"}},rt.createElement(it.default.Group,{defaultValue:Xr,value:Xr,style:{flexDirection:"column"},onChange:vt=>{Pi(vt)}},di==null?void 0:di.map(vt=>rt.createElement(it.default,{checked:!!Xr.some(dn=>dn===vt.group_id),style:{marginBottom:14},value:vt.group_id},vt.name))))),rt.createElement(Lt.default,{centered:!0,title:"\u53D6\u6D88\u5171\u4EAB",open:Mr,maskClosable:!1,confirmLoading:$e,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{ua(!1)},onOk:()=>qt(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)(`/api/teach_group_shares/${Ji}.json`,{method:"delete"})).status===0&&(Me.ZP.success("\u53D6\u6D88\u6210\u529F"),bn(),Dn()),Ge(!1),ua(!1)})},rt.createElement("div",null,"\u53D6\u6D88\u5171\u4EAB\u540E\uFF0C\u955C\u50CF\u5C06\u4E0D\u518D\u5171\u4EAB\u7ED9\u8BE5\u6559\u7814\u56E2\u961F\u3002\u786E\u5B9A\u8981\u53D6\u6D88\u5171\u4EAB\u5417\uFF1F")),rt.createElement(Lt.default,{centered:!0,title:"\u5220\u9664\u811A\u672C",open:ta,okText:"\u786E\u5B9A",maskClosable:!1,confirmLoading:$e,cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{Ra(!1)},onOk:()=>qt(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)("/api/user_mirrors/delete_mirror_script.json",{method:"delete",body:{script_id:Ji}})).status===0&&(Me.ZP.success("\u5220\u9664\u6210\u529F"),pn()),Ge(!1),Ra(!1)})},rt.createElement("div",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u811A\u672C\u5417\uFF1F")),rt.createElement(Lt.default,{centered:!0,width:1200,title:"\u6DFB\u52A0\u811A\u672C",style:{paddingTop:15},open:Oi,footer:null,maskClosable:!1,destroyOnClose:!0,onCancel:()=>{Sr.setFieldsValue({name:"",description:"",script:""}),la(!1)}},rt.createElement(Se.default,{form:Sr,className:be.formModal,onValuesChange:wn,scrollToFirstError:!0,layout:"horizontal"},rt.createElement(Se.default.Item,{label:"\u811A\u672C\u540D\u79F0",name:"name",className:be.errorTip,colon:!1,rules:[{required:!0,message:"\u811A\u672C\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},rt.createElement(xe.default,{size:"large"})),rt.createElement(Se.default.Item,{label:"\u811A\u672C\u8BF4\u660E",name:"description",colon:!1},rt.createElement(xe.default,{size:"large"})),rt.createElement(Se.default.Item,{label:"\u8BC4\u6D4B\u811A\u672C",name:"script",colon:!1},rt.createElement(Vt.ZP,{height:272,style:{border:"1px solid #ccc"},language:"shell",theme:"vs-light"}))),rt.createElement("div",{className:be.modalBtns},rt.createElement(ge.ZP,{onClick:()=>{Sr.setFieldsValue({name:"",description:"",script:""}),la(!1)},className:be.cancel},"\u53D6\u6D88 "),rt.createElement(ge.ZP,{onClick:()=>qt(void 0,null,function*(){const vt=tn({},yield Sr.validateFields());Ge(!0),(yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/add_mirror_scripts.json`,{method:"post",body:cr(tn({},vt),{id:kt==null?void 0:kt.experid})})).status===0&&(Me.ZP.success("\u6DFB\u52A0\u6210\u529F"),pn(),Sr.setFieldsValue({name:"",description:"",script:""})),Ge(!1),la(!1)}),className:be.confirm,type:"primary",loading:$e},"\u786E\u5B9A "))),rt.createElement(Lt.default,{centered:!0,width:1200,title:"\u7F16\u8F91\u811A\u672C",style:{paddingTop:15},className:be.errorTip,open:ca,footer:null,maskClosable:!1,destroyOnClose:!0,onCancel:()=>{Sr.setFieldsValue({name:"",description:"",script:""}),Xi(!1)}},rt.createElement(Se.default,{form:Sr,className:be.formModal,onValuesChange:wn,scrollToFirstError:!0,layout:"horizontal"},rt.createElement(Se.default.Item,{label:"\u811A\u672C\u540D\u79F0",name:"name",colon:!1,rules:[{required:!0,message:"\u811A\u672C\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},rt.createElement(xe.default,{size:"large"})),rt.createElement(Se.default.Item,{label:"\u811A\u672C\u8BF4\u660E",name:"description",colon:!1},rt.createElement(xe.default,{size:"large"})),rt.createElement(Se.default.Item,{label:"\u8BC4\u6D4B\u811A\u672C",name:"script",colon:!1},rt.createElement(Vt.ZP,{height:272,style:{border:"1px solid #ccc"},language:"shell",theme:"vs-light"}))),rt.createElement("div",{className:be.modalBtns},rt.createElement(ge.ZP,{onClick:()=>{Sr.setFieldsValue({name:"",description:"",script:""}),Xi(!1)},className:be.cancel},"\u53D6\u6D88 "),rt.createElement(ge.ZP,{onClick:()=>qt(void 0,null,function*(){Ge(!0);const vt=tn({},yield Sr.validateFields());(yield(0,Ce.ZP)("/api/user_mirrors/update_mirror_scripts.json",{method:"put",body:cr(tn({},vt),{script_id:Ji})})).status===0&&(Sr.setFieldsValue({name:"",description:"",script:""}),Me.ZP.success("\u7F16\u8F91\u6210\u529F"),pn()),Ge(!1),Xi(!1)}),className:be.confirm,type:"primary",loading:$e},"\u786E\u5B9A ")))))};var lr=(0,Fe.connect)(({classroomList:yr,loading:br,globalSetting:Cr,user:zr})=>({classroomList:yr,globalSetting:Cr,loading:br.models.classroomList,user:zr}))(Fn),nn={flex_box_center:"flex_box_center___Vifaa",flex_space_between:"flex_space_between___BEX8q",flex_box_vertical_center:"flex_box_vertical_center___dhUWC",flex_box_center_end:"flex_box_center_end___jsRwb",flex_box_column:"flex_box_column___Xtmeg",wrap:"wrap___HMi3x",crumbs:"crumbs___LJQiB",Divle:"Divle___pOAlF",tableWrap:"tableWrap___pBJPu",countflex:"countflex___yCbwb",leftCol:"leftCol___iJ_5m",flexright:"flexright___Z_Hpe",flexleft:"flexleft___sZ8SK",headWrap:"headWrap___h3zZi",formWrap:"formWrap___mnF1s",inputWrap:"inputWrap___kv50Z",submitButtondiv:"submitButtondiv___WrGHs",glow:"glow___FYxTS",formModal:"formModal___XDoEW",ActvieE3:"ActvieE3___Xg28n",listClass:"listClass___XvriO",spantitle:"spantitle___I1Mug",note:"note___kp3yD",cpuWrap:"cpuWrap___QdDet",activebtn:"activebtn___bKshB",btn:"btn___YFft8",activeTab:"activeTab___VXGuh",tab:"tab___U_3zW",countDown:"countDown___vRTKU",red:"red___NHcrY",footBtnWrap:"footBtnWrap___wq7pb",modalBtns:"modalBtns___NXy11",confirm:"confirm___qOVfh",cancel:"cancel___PYMr0",errorTip:"errorTip___YkaLx",resource_config_warp:"resource_config_warp___AGfT0",flex:"flex___xRmjS",config_Warp:"config_Warp___zOGRD",config_btn:"config_btn___gO2Wu"},ze=ne(87281),ue=ne(67294),fe=Object.defineProperty,ve=Object.defineProperties,he=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,gt=(yr,br,Cr)=>br in yr?fe(yr,br,{enumerable:!0,configurable:!0,writable:!0,value:Cr}):yr[br]=Cr,At=(yr,br)=>{for(var Cr in br||(br={}))Ne.call(br,Cr)&&gt(yr,Cr,br[Cr]);if(le)for(var Cr of le(br))Te.call(br,Cr)&&gt(yr,Cr,br[Cr]);return yr},Tt=(yr,br)=>ve(yr,he(br)),zt=(yr,br)=>{var Cr={};for(var zr in yr)Ne.call(yr,zr)&&br.indexOf(zr)<0&&(Cr[zr]=yr[zr]);if(yr!=null&&le)for(var zr of le(yr))br.indexOf(zr)<0&&Te.call(yr,zr)&&(Cr[zr]=yr[zr]);return Cr},Ot=(yr,br,Cr)=>new Promise((zr,Wt)=>{var On=Jn=>{try{zn(Cr.next(Jn))}catch(pr){Wt(pr)}},qn=Jn=>{try{zn(Cr.throw(Jn))}catch(pr){Wt(pr)}},zn=Jn=>Jn.done?zr(Jn.value):Promise.resolve(Jn.value).then(On,qn);zn((Cr=Cr.apply(yr,br)).next())});const ht=yr=>{var br=yr,{classroomList:Cr,globalSetting:zr,loading:Wt,user:On,dispatch:qn}=br,zn=zt(br,["classroomList","globalSetting","loading","user","dispatch"]),Jn,pr,wr,nr;const{Countdown:St}=Xe.default,[Zt]=(0,Fe.useSearchParams)(),[jt,kn]=(0,de.useState)(parseInt(Zt.get("status"))||0),lt=(0,Fe.useLocation)(),Ut=(0,de.useRef)(),[ke,an]=(0,de.useState)(),kt=(0,Fe.useParams)(),[Tn,rr]=(0,de.useState)(!1),[Gr,Nr]=(0,de.useState)(0),[Lr,Ur]=(0,de.useState)([]),[Sr]=Se.default.useForm(),[ai,ir]=(0,de.useState)({}),[Rr,Di]=(0,de.useState)(!1),[Gi,qr]=(0,de.useState)(!1),[di,Yi]=(0,de.useState)([]),[Xr,Pi]=(0,de.useState)([]),[Mr,ua]=(0,de.useState)(!1),[ta,Ra]=(0,de.useState)(!1),[ca,Xi]=(0,de.useState)(!1),[Oi,la]=(0,de.useState)(!1),[Ji,Sa]=(0,de.useState)(),[Ya,ka]=(0,de.useState)(!1),[ba,Ba]=(0,de.useState)(!1),[fa,ja]=(0,de.useState)({}),[Ri,hn]=(0,de.useState)(0),[$t,Zn]=(0,de.useState)(0),[gr,Er]=(0,de.useState)(!1),[ri,pi]=(0,de.useState)(0),[Si,vi]=(0,de.useState)(!1),[Ai,Ti]=(0,de.useState)(!1),[$i,qi]=(0,de.useState)(),[Pn,In]=(0,de.useState)([]),[Vn,me]=(0,de.useState)(!1),[_e,Ke]=(0,de.useState)(),[Ye,Je]=(0,de.useState)(!0),[$e,Ge]=(0,de.useState)(!1),[Xt,un]=(0,de.useState)(!1),[Wn,ar]=(0,de.useState)(!1),[$n,Nn]=(0,de.useState)(!1),[Bn,rn]=(0,de.useState)([{name:"CPU",value:0,min:0,max:0,typeName:"\u6838"},{name:"\u5185\u5B58",value:0,min:0,max:0,typeName:"GB"}]),[Xn,Ar]=(0,de.useState)();let ur=(0,de.useRef)();const[Mn,mr]=(0,de.useState)({tab:1,page:1,per_page:10}),Dr=[{id:1,name:"\u76F8\u5173\u5B9E\u8DF5\u9879\u76EE"},{id:2,name:"\u5171\u4EAB\u4FE1\u606F"},{id:3,name:"\u8BC4\u6D4B\u811A\u672C"},{id:4,name:"\u8D44\u6E90\u914D\u7F6E"}],_r=[{title:"\u5E8F\u53F7",dataIndex:"order",key:"order",render:(vt,dn,hr)=>`${(Mn.page-1)*Mn.per_page+hr+1}`,width:50},{title:"\u540D\u79F0",dataIndex:"name",key:"name",ellipsis:!0,width:80,render:(vt,dn)=>ue.createElement("span",null,vt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199")},{title:"\u5B66\u6821/\u5355\u4F4D",dataIndex:"school_name",key:"school_name",ellipsis:!0,width:100,render:(vt,dn)=>ue.createElement("span",null,vt)},{title:"\u72B6\u6001",dataIndex:"status_cn",key:"status_cn",ellipsis:!0,width:80,render:(vt,dn)=>ue.createElement("span",null,vt)},{title:"\u521B\u5EFA\u8005",dataIndex:"creator_name",key:"creator_name",ellipsis:!0,width:80,render:(vt,dn)=>ue.createElement("span",null,vt)},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",key:"created_at",ellipsis:!0,width:100,render:(vt,dn)=>ue.createElement("span",{style:{color:"#666"}},ft()(vt).format("YYYY-MM-DD HH:mm:ss"))},{title:"\u64CD\u4F5C",dataIndex:"action",align:"right",key:"action",ellipsis:!0,width:80,render:(vt,dn)=>ue.createElement("a",{style:{color:"#165DFF"},onClick:()=>{(0,je.xg)(`/shixuns/${dn.identifier}/challenges`)}},"\u67E5\u770B\u8BE6\u60C5")}],tt=[{title:"\u5E8F\u53F7",dataIndex:"order",key:"order",render:(vt,dn,hr)=>`${(Mn.page-1)*Mn.per_page+hr+1}`,width:100},{title:"\u540D\u79F0",dataIndex:"name",key:"name",ellipsis:!0,render:(vt,dn)=>ue.createElement("span",null,vt)},{title:"\u64CD\u4F5C",dataIndex:"action",align:"right",key:"action",width:120,ellipsis:!0,render:(vt,dn)=>ue.createElement("a",{className:nn.ActvieE3,type:"link",style:{padding:"0 0 0 10px",whiteSpace:"nowrap"},onClick:()=>{ua(!0),Sa(dn==null?void 0:dn.id)}},"\u53D6\u6D88\u5171\u4EAB")}],at=[{title:"\u5E8F\u53F7",dataIndex:"order",key:"order",render:(vt,dn,hr)=>`${(Mn.page-1)*Mn.per_page+hr+1}`,width:100},{title:"\u540D\u79F0",dataIndex:"name",key:"name",width:140,ellipsis:!0,render:(vt,dn)=>ue.createElement("span",null,vt)},{title:"\u8BF4\u660E",dataIndex:"description",key:"description",ellipsis:!0,render:(vt,dn)=>ue.createElement("span",null,vt)},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",key:"updated_at",width:160,ellipsis:!0,render:(vt,dn)=>ue.createElement("span",{style:{color:" #666"}},ft()(vt).format("YYYY-MM-DD HH:mm:ss"))},{title:ue.createElement("span",null,"\u64CD\u4F5C"),align:"right",width:120,render:(vt,dn)=>ue.createElement(ue.Fragment,null,ue.createElement(wt.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0},onClick:()=>Ot(void 0,null,function*(){yield Qn(dn==null?void 0:dn.id)})},"\u7F16\u8F91"),ue.createElement("a",{className:nn.ActvieE3,type:"link",style:{padding:"0 0 0 10px",whiteSpace:"nowrap"},onClick:()=>{Ra(!0),Sa(dn==null?void 0:dn.id)}},"\u5220\u9664"))}];(0,de.useEffect)(()=>{var vt;Ut.current=(vt=lt.pathname.split("/"))==null?void 0:vt[2]},[lt.pathname]),(0,de.useEffect)(()=>{Dn()},[]),(0,de.useEffect)(()=>{on()},[]);const on=()=>Ot(void 0,null,function*(){const vt=yield(0,Ce.ZP)("/api/user_mirrors/other_info.json",{method:"get"});vt.status===0&&ja(vt==null?void 0:vt.data)}),Qt=vt=>Ot(void 0,null,function*(){var dn;const hr=yield(0,Ce.ZP)(`/api/user_mirrors/${vt}/error_tips.json`,{method:"get"});(hr==null?void 0:hr.status)===0&&(In((dn=hr==null?void 0:hr.data)==null?void 0:dn.user_mirror_logs),qi(!0))});function Dn(){return Ot(this,null,function*(){const vt=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}.json`,{method:"get"});(vt==null?void 0:vt.status)===0&&an(vt.data)})}const sr=vt=>{Mn.tab=vt,mr(At({},Mn))},Mt=vt=>Ot(void 0,null,function*(){var dn;const hr=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/check.json`,{method:"get"});(hr==null?void 0:hr.status)===0&&(((dn=hr==null?void 0:hr.data)==null?void 0:dn.exist)===0?Ba(!0):(Ba(!1),vt?Fe.history.push(`/shixuns/new/${kt==null?void 0:kt.experid}/imagepreview?operation=update_image`):Fe.history.push(`/shixuns/new/${kt==null?void 0:kt.experid}/imagepreview`)))}),Dt=()=>Ot(void 0,null,function*(){var vt;ar(!0);const dn=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/check_is_can_delete.json`,{method:"get"});(dn==null?void 0:dn.status)===0&&(pi((vt=dn==null?void 0:dn.data)==null?void 0:vt.shixun_size),Er(!0)),ar(!1)}),Nt=()=>Ot(void 0,null,function*(){var vt;const dn=yield(0,Ce.ZP)("/api/teach_group_shares.json",{method:"get"});(dn==null?void 0:dn.status)===0&&(Pi(ke==null?void 0:ke.share_group_ids),Yi(dn==null?void 0:dn.groups),((vt=dn==null?void 0:dn.groups)==null?void 0:vt.length)>0?qr(!0):Me.ZP.info("\u6682\u65E0\u5171\u4EAB\u6570\u636E"))});(0,de.useEffect)(()=>((ke==null?void 0:ke.status)===1&&(ur.current=setInterval(()=>Ot(void 0,null,function*(){var vt,dn,hr,mi;const ii=yield(0,Ce.ZP)("/api/user_mirrors/polling_update_status.json",{method:"post",body:{user_mirror_ids:[kt==null?void 0:kt.experid]}});if(ii.status===0)if(((dn=(vt=ii==null?void 0:ii.data)==null?void 0:vt.user_mirror_ids)==null?void 0:dn.length)>0){if(((mi=(hr=ii==null?void 0:ii.data)==null?void 0:hr.update_datas)==null?void 0:mi.length)>0){const yi=Lr==null?void 0:Lr.map(zi=>{var Mi,fi;return(fi=(Mi=ii==null?void 0:ii.data)==null?void 0:Mi.update_datas)==null||fi.map(_i=>{zi.id===_i.id&&(zi.status=_i.status)}),zi});an(yi[0])}}else Dn(),clearInterval(ur.current)}),5e3)),()=>{clearInterval(ur.current)}),[ke==null?void 0:ke.status,ke]);const Gt=()=>ue.createElement(ce.Z,{placement:"bottomLeft",content:ue.createElement(we.default,null,((ke==null?void 0:ke.publish_status)===-1||(ke==null?void 0:ke.publish_status)===0)&&ue.createElement(we.default.Item,null,ue.createElement("a",{onClick:()=>{ka(!0)}},"\u7533\u8BF7\u516C\u5F00")),(ke==null?void 0:ke.publish_status)===3&&ue.createElement(we.default.Item,null,ue.createElement("a",{onClick:()=>{Ti(!0)}},"\u91CD\u65B0\u7533\u8BF7")),((ke==null?void 0:ke.publish_status)===2||(ke==null?void 0:ke.publish_status)===3)&&ue.createElement(we.default.Item,null,ue.createElement("a",{onClick:()=>{vi(!0)}},"\u64A4\u9500\u7533\u8BF7")),ue.createElement(we.default.Item,null,ue.createElement("a",{onClick:()=>{Di(!0)}},"\u4FEE\u6539\u955C\u50CF\u4FE1\u606F")),((ke==null?void 0:ke.publish_status)===-1||(ke==null?void 0:ke.publish_status)===0||(ke==null?void 0:ke.publish_status)===3)&&ue.createElement(we.default.Item,null,ue.createElement(wt.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"rgba(0, 0, 0, 0.88)"},onClick:()=>Ot(void 0,null,function*(){Je(!0),yield Mt(!0)})},"\u66F4\u65B0\u955C\u50CF")),ue.createElement(we.default.Item,null,ue.createElement(wt.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"rgba(0, 0, 0, 0.88)"},onClick:()=>Ot(void 0,null,function*(){yield Nt()})},"\u5171\u4EAB\u955C\u50CF")),((ke==null?void 0:ke.publish_status)===-1||(ke==null?void 0:ke.publish_status)===0||(ke==null?void 0:ke.publish_status)===3)&&ue.createElement(we.default.Item,null,ue.createElement(wt.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"rgba(0, 0, 0, 0.88)"},onClick:()=>Ot(void 0,null,function*(){yield Dt()})},"\u5220\u9664")))},ue.createElement(ut.op,{theme:oe.Fy.THEMEONE,shape:"default",size:"middle",style:{borderRadius:"2px",marginTop:"3px"}},"\u66F4\u591A",ue.createElement("i",{className:"iconfont icon-sanjiaoxing-down pl8"}))),Rn=[{title:"\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(vt,dn,hr)=>ue.createElement("span",{style:{color:"#666"}},ft()(vt).format("YYYY-MM-DD HH:mm:ss"))},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",render:(vt,dn,hr)=>ue.createElement("span",{style:{color:"#000"}},"\u66F4\u65B0\u955C\u50CF")},{title:"\u72B6\u6001",dataIndex:"status",align:"right",key:"status",render:(vt,dn,hr)=>ue.createElement("span",{style:{color:"#E30000"}},"\u5931\u8D25")}],Qn=vt=>Ot(void 0,null,function*(){const dn=yield(0,Ce.ZP)("/api/user_mirrors/mirror_script_detail.json",{method:"get",params:{script_id:vt}});dn.status===0&&(Sr.setFieldsValue(At({},dn==null?void 0:dn.data)),ir(At({},dn==null?void 0:dn.data)),Xi(!0),Sa(vt))}),wn=vt=>{ir(At({},Sr.getFieldsValue()))},Yn=()=>Ot(void 0,null,function*(){var vt,dn;Nn(!0);const hr=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/update_service_config.json`,{method:"put",body:{cpu_limit:(vt=Bn[0])==null?void 0:vt.value,memory_limit:(dn=Bn[1])==null?void 0:dn.value,resource_limit:Xn}});(hr==null?void 0:hr.status)===0&&(Me.ZP.success("\u4FDD\u5B58\u6210\u529F!"),_n()),Nn(!1)});(0,de.useEffect)(()=>{(ke==null?void 0:ke.status)===2&&(Mn.tab===1&&kr(),Mn.tab===2&&bn(),Mn.tab===3&&pn(),Mn.tab===4&&_n())},[Mn.tab,ke]);function kr(){return Ot(this,null,function*(){var vt,dn;rr(!0);const hr=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/relation_shixuns.json`,{method:"get",params:At({},Mn)});(hr==null?void 0:hr.status)===0&&(Ur((vt=hr==null?void 0:hr.data)==null?void 0:vt.relation_shixuns),Nr((dn=hr==null?void 0:hr.data)==null?void 0:dn.count)),rr(!1)})}function bn(){return Ot(this,null,function*(){var vt,dn,hr,mi;rr(!0);const ii=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/show_groups.json`,{method:"get",params:At({},Mn)});(ii==null?void 0:ii.status)===0&&(Ur((vt=ii==null?void 0:ii.data)==null?void 0:vt.groups),Nr((dn=ii==null?void 0:ii.data)==null?void 0:dn.count),Pi((mi=(hr=ii==null?void 0:ii.data)==null?void 0:hr.groups)==null?void 0:mi.map(yi=>yi.group_id))),rr(!1)})}function pn(){return Ot(this,null,function*(){var vt,dn;rr(!0);const hr=yield(0,Ce.ZP)("/api/user_mirrors/mirror_scripts.json",{method:"get",params:Tt(At({},Mn),{id:kt==null?void 0:kt.experid})});(hr==null?void 0:hr.status)===0&&(Ur((vt=hr==null?void 0:hr.data)==null?void 0:vt.mirror_scripts),Nr((dn=hr==null?void 0:hr.data)==null?void 0:dn.count)),rr(!1)})}function _n(){return Ot(this,null,function*(){rr(!0);const vt=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/get_service_config.json`,{method:"get"});if((vt==null?void 0:vt.status)===0){let{cpu_limit:dn,memory_limit:hr,max_cpu:mi,max_memory:ii,min_cpu:yi,min_memory:zi,resource_limit:Mi}=vt==null?void 0:vt.data;rn([{name:"CPU",value:dn,min:yi,max:mi,typeName:"\u6838"},{name:"\u5185\u5B58",value:hr,min:zi,max:ii,typeName:"GB"}]),Ar(Mi)}rr(!1)})}const Tr=()=>Ot(void 0,null,function*(){un(!0);const vt=yield(0,Ce.ZP)(`/api/user_mirrors/${ke==null?void 0:ke.id}/check_is_making_end.json`,{method:"get"});(vt==null?void 0:vt.status)===0?Fe.history.push(`/shixuns/new/${ke==null?void 0:ke.id}/imagepreview?operation=create_image`):Dn(),un(!1)}),Ir=(vt,dn)=>{rn(Bn.map(hr=>hr.name===vt?dn(hr):hr))},Jr=(vt,dn)=>{isNaN(vt)||Ir(dn,hr=>Tt(At({},hr),{value:vt}))},Zr=vt=>{var dn;if(vt.value<=((dn=vt.min)!=null?dn:-1/0))return;let hr=vt.value-.5<vt.min?vt.min:vt.value-.5;Ir(vt.name,mi=>Tt(At({},mi),{value:hr}))},Br=vt=>{var dn;if(vt.value>=((dn=vt.max)!=null?dn:1/0))return;let hr=vt.value+.5>vt.max?vt.max:vt.value+.5;Ir(vt.name,mi=>Tt(At({},mi),{value:hr}))},si=(vt,dn)=>{isNaN(vt)||Ir(dn,hr=>Tt(At({},hr),{value:vt}))},oi=vt=>{if(vt==null||Number.isInteger(vt))return vt;const dn=vt%1;return dn===.5?vt:Math.floor(vt)+(dn<.5?.5:1)};return ue.createElement("div",{className:nn.wrap},ue.createElement("div",{className:nn.crumbs},ue.createElement("div",null,ue.createElement("a",{onClick:()=>Fe.history.back()},ue.createElement("i",{className:"iconfont icon-fanhuijingxiang"})),ue.createElement("span",{style:{paddingLeft:6}},ke==null?void 0:ke.type_name)),ue.createElement("div",null,(ke==null?void 0:ke.status)===2&&ue.createElement(ge.ZP,{type:"primary",className:"mr20",style:{borderRadius:2},onClick:()=>{Je(!1),Mt(!1)}},"\u8FD0\u884C\u955C\u50CF"),(ke==null?void 0:ke.status)===2&&ue.createElement(ut.op,{theme:oe.Fy.THEMEONE,shape:"default",size:"middle",style:{borderRadius:"2px",marginTop:"3px",marginRight:20},onClick:()=>{(0,je.xg)(`/shixuns/new?tab=${Number(jt)+1}&mirror=${ke==null?void 0:ke.mirror_repository_id}`)}},"\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE"),jt===0&&(ke==null?void 0:ke.status)===2&&((ke==null?void 0:ke.publish_status)===-1||(ke==null?void 0:ke.publish_status)===0||(ke==null?void 0:ke.publish_status)===1||(ke==null?void 0:ke.publish_status)===2||(ke==null?void 0:ke.publish_status)===3)&&Gt(),jt===0&&(ke==null?void 0:ke.status)===0&&(ke==null?void 0:ke.is_making_end)===!1&&ue.createElement(ue.Fragment,null,ue.createElement(ut.op,{theme:oe.Fy.THEMEONE,onClick:()=>Ot(void 0,null,function*(){return yield Tr()}),shape:"default",size:"middle",loading:Xt,style:{borderRadius:"2px",marginTop:"3px",marginRight:20}},"\u5236\u4F5C\u955C\u50CF"),ue.createElement(ut.op,{theme:oe.Fy.THEMEONE,onClick:()=>Ot(void 0,null,function*(){yield Dt()}),shape:"default",size:"middle",style:{borderRadius:"2px",marginTop:"3px"},loading:Wn},"\u5220\u9664")),jt===0&&(ke==null?void 0:ke.status)===0&&(ke==null?void 0:ke.is_making_end)===!0&&ue.createElement(ut.op,{theme:oe.Fy.THEMEONE,onClick:()=>Ot(void 0,null,function*(){yield Dt()}),shape:"default",size:"middle",loading:Wn,style:{borderRadius:"2px",marginTop:"3px"}},"\u5220\u9664"),jt===0&&(ke==null?void 0:ke.status)===3&&ue.createElement(ut.op,{theme:oe.Fy.THEMEONE,onClick:()=>Ot(void 0,null,function*(){yield Dt()}),shape:"default",size:"middle",loading:Wn,style:{borderRadius:"2px",marginTop:"3px"}},"\u5220\u9664"))),ue.createElement("div",{className:nn.Divle}),ue.createElement("div",{className:nn.tableWrap},ue.createElement(Be.Z,{className:nn.countflex},ue.createElement(Qe.Z,{className:nn.leftCol},ue.createElement("div",{className:nn.flexleft},"\u955C\u50CF\u540D\u79F0"),ue.createElement("div",{className:nn.flexright,title:ke==null?void 0:ke.type_name},ke==null?void 0:ke.type_name)),ue.createElement(Qe.Z,{flex:1},ue.createElement("span",{className:nn.flexleft},"\u4FDD\u5B58\u72B6\u6001"),ue.createElement("span",{className:nn.flexright},(ke==null?void 0:ke.status)===0&&ue.createElement("span",{className:nn.flexright},ue.createElement("span",{style:{color:"#5F6368",marginRight:5}},"\u5236\u4F5C\u4E2D"),(ke==null?void 0:ke.is_making_end)===!1?ue.createElement("i",{className:"iconfont icon-shijian1",style:{color:"#165DFF"}}):ue.createElement(Oe.Z,{title:"\u5269\u4F59\u5236\u4F5C\u65F6\u957F\u4E3A\u96F6\uFF0C\u4E0D\u80FD\u518D\u8FDB\u5165\u955C\u50CF\u5236\u4F5C\u9875\u9762\u3002"},ue.createElement("i",{className:"iconfont icon-shijian1",style:{color:"#E30000"}}))),(ke==null?void 0:ke.status)===1&&ue.createElement("span",{className:nn.flexright},ue.createElement("span",{style:{color:"#165DFF",marginRight:5}},"\u4FDD\u5B58\u4E2D"),ue.createElement(et.Z,{size:"small"})),(ke==null?void 0:ke.status)===2&&ue.createElement("span",{className:nn.flexright},ue.createElement("span",{style:{color:"#00B187"}},"\u5B8C\u6210"),(ke==null?void 0:ke.has_error_tips)&&jt===0&&ue.createElement("i",{className:"iconfont icon-tishi4 current ml5 c-light-primary",style:{color:"#FF8C29"},onClick:()=>{Qt(ke==null?void 0:ke.id)}})),(ke==null?void 0:ke.status)===3&&ue.createElement("span",{className:nn.flexright,style:{color:"#E30000"}},"\u5931\u8D25")))),ue.createElement(Be.Z,{className:nn.countflex},ue.createElement(Qe.Z,{className:nn.leftCol},ue.createElement("span",{className:nn.flexleft},"\u521B\u5EFA\u65B9\u5F0F"),ue.createElement("span",{className:nn.flexright},(ke==null?void 0:ke.create_method)===1&&"\u5728\u7EBF\u521B\u5EFA",(ke==null?void 0:ke.create_method)===2&&"\u5BFC\u5165")),ue.createElement(Qe.Z,{flex:1},ue.createElement("span",{className:nn.flexleft},"\u516C\u5F00\u72B6\u6001"),ue.createElement("span",{className:nn.flexright},(ke==null?void 0:ke.publish_status)===-1&&ue.createElement("span",null,"\u672A\u516C\u5F00"),(ke==null?void 0:ke.publish_status)===0&&ue.createElement("span",null,"\u672A\u516C\u5F00"),(ke==null?void 0:ke.publish_status)===1&&ue.createElement("span",null,"\u5DF2\u516C\u5F00"),(ke==null?void 0:ke.publish_status)===2&&ue.createElement("span",null,"\u5BA1\u6838\u4E2D"),(ke==null?void 0:ke.publish_status)===3&&ue.createElement("span",null,"\u9A73\u56DE",jt===0&&ue.createElement("i",{onClick:()=>{me(!0),Ke(ke==null?void 0:ke.remark)},className:"iconfont icon-tishi4 ml5 ",style:{color:"#FF8C29"}}))))),ue.createElement(Be.Z,{className:nn.countflex},((ke==null?void 0:ke.create_method)===1||(ke==null?void 0:ke.status)===1)&&ue.createElement(Qe.Z,{className:nn.leftCol},ue.createElement("div",{className:nn.flexleft},"\u57FA\u7840\u955C\u50CF"),ue.createElement("div",{className:nn.flexright},ke==null?void 0:ke.base_mirror)),(ke==null?void 0:ke.create_method)===2&&ue.createElement(Qe.Z,{className:nn.leftCol},ue.createElement("div",{className:nn.flexleft},"\u955C\u50CF\u6587\u4EF6"),ue.createElement("div",{className:nn.flexright},ke==null?void 0:ke.base_mirror)),ue.createElement(Qe.Z,{flex:1},ue.createElement("span",{className:nn.flexleft},"\u521B\u5EFA\u65F6\u95F4"),ue.createElement("span",{className:nn.flexright},ft()(ke==null?void 0:ke.created_at).format("YYYY-MM-DD HH:mm:ss")))),ue.createElement(Be.Z,{className:nn.countflex},ue.createElement(Qe.Z,{className:nn.leftCol},ue.createElement("span",{className:nn.flexleft},"\u955C\u50CF\u7C7B\u578B"),ue.createElement("span",{className:nn.flexright},((Jn=ke==null?void 0:ke.mirror_type_cn)==null?void 0:Jn.length)>1?(pr=ke==null?void 0:ke.mirror_type_cn)==null?void 0:pr.join("\u3001"):ke==null?void 0:ke.mirror_type_cn[0])),ue.createElement(Qe.Z,{flex:1},ue.createElement("span",{className:nn.flexleft},"\u66F4\u65B0\u65F6\u95F4"),(ke==null?void 0:ke.status)===2?ue.createElement("span",{className:nn.flexright},ft()(ke==null?void 0:ke.updated_at).format("YYYY-MM-DD HH:mm:ss")):ue.createElement("span",null,"--"))),ue.createElement(Be.Z,{style:{maxHeight:"260px",overflowY:"auto"}},ue.createElement(Qe.Z,{style:{padding:"13px 10px 10px 30px",color:"#5F6368"}},"\u955C\u50CF\u63CF\u8FF0"),ue.createElement(Qe.Z,null,ue.createElement(Ze.Z,{value:ke==null?void 0:ke.description,style:{maxWidth:"760px",padding:10,fontSize:14}})))),(ke==null?void 0:ke.can_save)&&ue.createElement("div",{style:{paddingBottom:20}},ue.createElement(ut.tp,{style:{marginBottom:15},dataSource:Dr,value:Mn.tab,onChange:sr}),ue.createElement(et.Z,{spinning:Tn},Mn.tab===1&&ue.createElement(ue.Fragment,null,Gr===0?ue.createElement(Re.Z,{customText:"\u6682\u65E0\u6570\u636E"}):ue.createElement(ot.default,{columns:_r,dataSource:Lr,pagination:!1})),Mn.tab===2&&ue.createElement(ue.Fragment,null,(ke==null?void 0:ke.status)===2?ue.createElement(wt.Z,{type:"primary",style:{whiteSpace:"nowrap",height:32,marginBottom:15,borderRadius:2},onClick:()=>Ot(void 0,null,function*(){yield Nt()})},"\u5171\u4EAB\u955C\u50CF"):ue.createElement(Oe.Z,{title:"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},ue.createElement(ge.ZP,{disabled:!0,style:{borderRadius:2}},"\u5171\u4EAB\u955C\u50CF")),Gr===0?ue.createElement(Re.Z,{customText:"\u6682\u65E0\u6570\u636E"}):ue.createElement(ot.default,{columns:tt,dataSource:Lr,pagination:!1})),Mn.tab===3&&ue.createElement(ue.Fragment,null,ue.createElement("div",{className:nn.headWrap},(ke==null?void 0:ke.status)===2?ue.createElement(ge.ZP,{type:"primary",style:{borderRadius:2},onClick:()=>la(!0)},"\u6DFB\u52A0\u811A\u672C"):ue.createElement(Oe.Z,{title:"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},ue.createElement(ge.ZP,{disabled:!0,style:{borderRadius:2}},"\u6DFB\u52A0\u811A\u672C")),ue.createElement("p",{style:{color:"#9096A3"}},"\u5982\u679C\u955C\u50CF\u8981\u7528\u4E8E\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE\uFF0C\u5219\u9700\u8981\u6DFB\u52A0\u5B66\u5458\u8BC4\u6D4B\u65F6\u8FD0\u884C\u7684\u811A\u672C\u3002\u9ED8\u8BA4\u751F\u6210\u4E86\u4E00\u4E9B\u8BC4\u6D4B\u811A\u672C\uFF0C\u4F60\u53EF\u4EE5\u6839\u636E\u9700\u8981\u4FEE\u6539\u6216\u6DFB\u52A0\u811A\u672C\u3002")),Gr===0?ue.createElement(Re.Z,{customText:"\u6682\u65E0\u6570\u636E"}):ue.createElement(ot.default,{columns:at,dataSource:Lr,pagination:!1})),Mn.tab===4&&ue.createElement(ue.Fragment,null,ue.createElement("div",{style:{color:"#999",marginBottom:10}},"\u6E29\u99A8\u63D0\u793A\uFF1A\u8BF7\u6839\u636E\u5B9E\u9645\u9700\u8981\uFF0C\u586B\u5199\u955C\u50CF\u4F7F\u7528\u7684\u8D44\u6E90\u914D\u989D\uFF0C\u5305\u62EC CPU\u548C\u5185\u5B58\u3002"),Bn.map(vt=>ue.createElement(Oe.Z,{title:(ke==null?void 0:ke.status)===2?"":"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},ue.createElement("div",{className:nn.resource_config_warp,key:vt==null?void 0:vt.name},ue.createElement("div",null,vt==null?void 0:vt.name),ue.createElement("div",null,ue.createElement(nt.Z,{disabled:(ke==null?void 0:ke.status)!==2,min:vt==null?void 0:vt.min,max:vt==null?void 0:vt.max,onChange:dn=>{const hr=oi(dn);Jr(hr,vt==null?void 0:vt.name)},value:vt==null?void 0:vt.value,step:.5,style:{width:674,height:6,margin:"0 20px 0 12px"}})),ue.createElement("div",{className:`${nn.config_Warp} ${nn.flex}`},ue.createElement("div",{className:`${nn.config_btn} ${nn.flex}`,onClick:()=>{Zr(vt)}},ue.createElement(ln.Z,null)),ue.createElement(Ve.Z,{min:vt==null?void 0:vt.min,max:vt==null?void 0:vt.max,size:"large",step:"0",controls:!1,style:{width:50},value:vt==null?void 0:vt.value,disabled:(ke==null?void 0:ke.status)!==2,onChange:dn=>{si(dn,vt==null?void 0:vt.name)}}),ue.createElement("div",{className:`${nn.config_btn} ${nn.flex}`,onClick:()=>{Br(vt)}},ue.createElement(Kn.Z,null))),ue.createElement("div",null,vt==null?void 0:vt.typeName)))),ue.createElement(Be.Z,null,ue.createElement(Qe.Z,{style:{marginRight:20}},ue.createElement(Oe.Z,{title:(ke==null?void 0:ke.status)===2?"":"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},ue.createElement("div",{style:{display:"flex"}},ue.createElement("span",{style:{lineHeight:"40px",width:135}},"\u6587\u4EF6\u5927\u5C0F\u9650\u5236"),ue.createElement(xe.default,{value:Xn,maxLength:5,onChange:vt=>{const{value:dn}=vt.target,hr=/^\d*(\.\d*)?$/;dn.match(hr)&&Ar(vt.target.value)},disabled:(ke==null?void 0:ke.status)!==2,size:"large",className:nn.inputWrap,suffix:ue.createElement("span",{style:{color:"#999"}},"M")})))),ue.createElement(Qe.Z,{style:{width:360,color:"#999",lineHeight:"40px"}},ue.createElement("p",null,"File size limit\u53C2\u6570\uFF0C\u8868\u793A\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u7684\u5927\u5C0F\u9650\u5236 "))),ue.createElement(Be.Z,{style:{display:"flex",justifyContent:"flex-end"}},(ke==null?void 0:ke.status)===2?ue.createElement(ge.ZP,{type:"primary",loading:$n,className:nn.confirm,onClick:()=>Yn()},"\u4FDD\u5B58"):ue.createElement(Oe.Z,{title:"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},ue.createElement(ge.ZP,{disabled:!0,style:{borderRadius:2}},"\u4FDD\u5B58"))))),ue.createElement(ue.Fragment,null,Mn.tab!=4&&Gr!=0&&ue.createElement(Be.Z,{className:"mt20 mb20",wrap:!1,align:"middle",justify:"end"},ue.createElement(Qe.Z,null,ue.createElement(mt.Z,{showSizeChanger:!0,showQuickJumper:!0,current:Mn.page,pageSize:Mn.per_page,onShowSizeChange:(vt,dn)=>{Mn.per_page=dn,Mn.page=1,mr(At({},Mn))},onChange:vt=>{Mn.page=vt,mr(At({},Mn))},total:Gr}))))),ue.createElement("div",null,ue.createElement(Lt.default,{centered:!0,title:"\u9A73\u56DE\u539F\u56E0",open:Vn,footer:null,maskClosable:!1,destroyOnClose:!0,onCancel:()=>{me(!1)}},ue.createElement("div",{style:{maxHeight:300,overflowY:"auto"}},_e),ue.createElement("div",{className:nn.footBtnWrap},ue.createElement(ge.ZP,{size:"middle",style:{marginRight:20,borderRadius:2},onClick:()=>{me(!1),vi(!0)},type:"primary"},"\u64A4\u9500\u7533\u8BF7"),ue.createElement(ge.ZP,{size:"middle",style:{borderRadius:2},onClick:()=>{me(!1),Ti(!0)},type:"primary"},"\u91CD\u65B0\u7533\u8BF7"))),ue.createElement(Lt.default,{centered:!0,title:"\u5F02\u5E38\u63D0\u793A",open:$i,footer:null,destroyOnClose:!0,onCancel:()=>{qi(!1)}},ue.createElement(ot.default,{style:{maxHeight:300,overflowY:"auto",marginBottom:20},dataSource:Pn,columns:Rn,pagination:!1})),ue.createElement(Lt.default,{centered:!0,title:"\u91CD\u65B0\u7533\u8BF7\u516C\u5F00",open:Ai,maskClosable:!1,confirmLoading:$e,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{Ti(!1)},onOk:()=>Ot(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/apply_public.json`,{method:"post"})).status===0&&(Me.ZP.success("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"),Dn()),Ge(!1),Ti(!1)})},ue.createElement("div",null,"\u91CD\u65B0\u7533\u8BF7\u516C\u5F00\u524D\uFF0C\u8BF7\u6839\u636E\u9A73\u56DE\u539F\u56E0\u4FEE\u6539\u955C\u50CF\uFF0C\u7136\u540E\u518D\u7533\u8BF7\u3002\u4F60\u786E\u5B9A\u8981\u91CD\u65B0\u7533\u8BF7\u516C\u5F00\u5417\uFF1F")),ue.createElement(Lt.default,{centered:!0,title:"\u64A4\u9500\u7533\u8BF7\u516C\u5F00",open:Si,maskClosable:!1,confirmLoading:$e,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{vi(!1)},onOk:()=>Ot(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/revoke_apply.json`,{method:"post"})).status===0&&(Me.ZP.success("\u64A4\u9500\u6210\u529F"),Dn()),Ge(!1),vi(!1)})},ue.createElement("div",null,"\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u540E\uFF0C\u955C\u50CF\u56DE\u5230\u3010\u672A\u516C\u5F00\u3011\u72B6\u6001\u3002\u540E\u7EED\u5982\u6709\u9700\u8981\uFF0C\u53EF\u4EE5\u518D\u6B21\u7533\u8BF7\u516C\u5F00\u3002\u4F60\u786E\u5B9A\u8981\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u5417\uFF1F")),ue.createElement(Lt.default,{centered:!0,title:"\u5220\u9664\u955C\u50CF",open:gr,maskClosable:!1,confirmLoading:$e,okText:ri>0?"\u6211\u77E5\u9053\u4E86":"\u786E\u5B9A",cancelText:ri>0?"":"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{Er(!1)},onOk:()=>Ot(void 0,null,function*(){if(Ge(!0),ri>0){Er(!1);return}(yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}.json`,{method:"delete"})).status===0&&(Me.ZP.success("\u5220\u9664\u6210\u529F"),Fe.history.back()),Ge(!1),Er(!1)})},ri>0?ue.createElement("div",null,ue.createElement("div",null,"\u8BE5\u955C\u50CF\u5DF2\u88AB ",ri," \u4E2A\u5B9E\u8DF5\u9879\u76EE\u4F7F\u7528\uFF0C\u4E0D\u5141\u8BB8\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\u3002"),ue.createElement("div",{style:{color:"#165DFF",marginTop:20,cursor:"pointer"},onClick:()=>{Mn.tab=1,Mn.page=1,Mn.per_page=10,mr(At({},Mn)),Er(!1)}},ue.createElement("span",{style:{paddingRight:"4"}},"\u67E5\u770B\u76F8\u5173\u5B9E\u8DF5\u9879\u76EE"),ue.createElement("i",{className:"iconfont icon-you"}))):ue.createElement("div",null,"\u955C\u50CF\u5220\u9664\u4E4B\u540E\u4E0D\u53EF\u6062\u590D\uFF0C\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u955C\u50CF\u5417\uFF1F")),ue.createElement(Lt.default,{centered:!0,keyboard:!1,destroyOnClose:!0,open:ba,title:"\u9009\u62E9\u8FD0\u884C\u73AF\u5883",maskClosable:!1,confirmLoading:$e,width:"558px",okText:"\u786E\u5B9A",wrapClassName:nn.auditModal,onCancel:()=>{hn(0),Zn(0),Ba(!1)},onOk:()=>Ot(void 0,null,function*(){var vt;Ge(!0);const dn=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/running_image.json`,{method:"post",body:{cpu_memory_limit:fa==null?void 0:fa.cpu_memory_limit_config[Number(Ri)],time_limit:(vt=fa==null?void 0:fa.time_limit_config[Number($t)])==null?void 0:vt.value}});(dn==null?void 0:dn.status)===0&&(Ye?Fe.history.push(`/shixuns/new/${kt==null?void 0:kt.experid}/imagepreview?operation=update_image`):Fe.history.push(`/shixuns/new/${kt==null?void 0:kt.experid}/imagepreview`)),Ge(!1),Ba(!1)})},ue.createElement("div",{style:{paddingTop:20}},Ye&&ue.createElement("div",{style:{marginBottom:"30px",backgroundColor:"rgba(255,157,24,0.1)",height:"42px",lineHeight:"42px"}},ue.createElement("i",{className:"iconfont icon-tishi4",style:{color:"#FF9D18",paddingLeft:20}}),ue.createElement("span",{style:{paddingLeft:"6px",color:"#FF9D18"}},"\u66F4\u65B0\u955C\u50CF\u540E\uFF0C\u539F\u6765\u7684\u955C\u50CF\u5C06\u88AB\u8986\u76D6\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u76F8\u5173\u7684\u5B9E\u8DF5\u9879\u76EE\u3002")),ue.createElement(Ft.Z,{required:!0,name:"\u914D\u7F6E",align:"center",nameWidth:60},ue.createElement("div",{className:nn.cpuWrap},(wr=fa==null?void 0:fa.cpu_memory_limit_config)==null?void 0:wr.map((vt,dn)=>ue.createElement("div",{className:Ri===dn?nn.activebtn:nn.btn,onClick:()=>hn(dn)},ue.createElement("div",null,vt),Ri===dn?ue.createElement("div",null,ue.createElement("i",{className:"iconfont icon-xuanzhong9",style:{paddingRight:12}})):"")))),ue.createElement(Ft.Z,{required:!0,name:"\u65F6\u957F",align:"center",nameWidth:60},(nr=fa==null?void 0:fa.time_limit_config)==null?void 0:nr.map((vt,dn)=>ue.createElement("span",{className:$t===dn?nn.activeTab:nn.tab,onClick:()=>Zn(dn)},vt.name))))),ue.createElement(Lt.default,{centered:!0,title:"\u7533\u8BF7\u516C\u5F00",open:Ya,okText:"\u786E\u5B9A",maskClosable:!1,confirmLoading:$e,cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{ka(!1)},onOk:()=>Ot(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/apply_public.json`,{method:"post"})).status===0&&(Me.ZP.success("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"),Dn()),Ge(!1),ka(!1)})},ue.createElement("div",{className:nn.note},ue.createElement("p",null,"1.\u7533\u8BF7\u516C\u5F00\u524D\uFF0C\u8BF7\u4FDD\u8BC1\u955C\u50CF\u662F\u53EF\u8FD0\u884C\u7684\uFF0C\u5E76\u68C0\u67E5\u8BE5\u5B9E\u9A8C\u955C\u50CF\u662F\u5426\u7B26\u5408\u5E73\u53F0\u7684\u89C4\u8303\u6807\u51C6\u3002"),ue.createElement("p",null,"2.\u516C\u5F00\u7684\u955C\u50CF\u5C06\u8D21\u732E\u7ED9\u5E73\u53F0\u6240\u6709\u4EBA\u8FDB\u884C\u4F7F\u7528\uFF0C\u82E5\u4EC5\u672C\u4EBA\u6559\u5B66\u4F7F\u7528\u5219\u65E0\u9700\u7533\u8BF7\u516C\u5F00\u3002"),ue.createElement("p",null,"3.\u516C\u5F00\u955C\u50CF\u9700\u7ECF\u8FC7\u5E73\u53F0\u6807\u51C6\u5316\u5BA1\u6838\uFF0C\u5BA1\u6838\u5468\u671F\u4E3A1-2\u5929\u3002"),ue.createElement("p",null,"\u4F60\u786E\u5B9A\u8981\u7533\u8BF7\u516C\u5F00\u5417\uFF1F"))),ue.createElement(ze.Z,{visible:Rr,setVisible:Di,mirrorId:kt==null?void 0:kt.experid,getData:Dn}),ue.createElement(Lt.default,{centered:!0,width:518,title:"\u5171\u4EAB\u955C\u50CF",open:Gi,okText:"\u786E\u5B9A",maskClosable:!1,confirmLoading:$e,cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{qr(!1)},onOk:()=>Ot(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)("/api/teach_group_shares.json",{method:"post",body:{ids:[kt==null?void 0:kt.experid],clazz:"UserMirror",group_ids:Xr}})).status===0&&(Xr.length>0?Me.ZP.success("\u5171\u4EAB\u6210\u529F"):Me.ZP.success("\u64A4\u9500\u6210\u529F"),bn(),Dn()),Ge(!1),qr(!1)})},ue.createElement("div",{style:{marginBottom:"30px",backgroundColor:"rgba(255,157,24,0.1)",width:"468px",height:"42px",lineHeight:"42px"}},ue.createElement("i",{className:"iconfont icon-tishi4",style:{color:"#FF9D18",paddingLeft:20}}),ue.createElement("span",{style:{paddingLeft:"6px",color:"#FF9D18"}},"\u8BE5\u955C\u50CF\u4EC5\u5171\u4EAB\u7ED9\u9009\u4E2D\u7684\u6559\u7814\u56E2\u961F\uFF0C\u53D6\u6D88\u9009\u4E2D\u5E76\u786E\u5B9A\u5373\u53EF\u64A4\u9500\u5171\u4EAB\u3002")),ue.createElement("div",{style:{maxHeight:"260px",overflowY:"auto"}},ue.createElement(it.default.Group,{defaultValue:Xr,value:Xr,style:{flexDirection:"column"},onChange:vt=>{Pi(vt)}},di==null?void 0:di.map(vt=>ue.createElement(it.default,{checked:!!Xr.some(dn=>dn===vt.group_id),style:{marginBottom:14},value:vt.group_id},vt.name))))),ue.createElement(Lt.default,{centered:!0,title:"\u53D6\u6D88\u5171\u4EAB",open:Mr,maskClosable:!1,confirmLoading:$e,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{ua(!1)},onOk:()=>Ot(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)(`/api/teach_group_shares/${Ji}.json`,{method:"delete"})).status===0&&(Me.ZP.success("\u53D6\u6D88\u6210\u529F"),bn(),Dn()),Ge(!1),ua(!1)})},ue.createElement("div",null,"\u53D6\u6D88\u5171\u4EAB\u540E\uFF0C\u955C\u50CF\u5C06\u4E0D\u518D\u5171\u4EAB\u7ED9\u8BE5\u6559\u7814\u56E2\u961F\u3002\u786E\u5B9A\u8981\u53D6\u6D88\u5171\u4EAB\u5417\uFF1F")),ue.createElement(Lt.default,{centered:!0,title:"\u5220\u9664\u811A\u672C",open:ta,okText:"\u786E\u5B9A",maskClosable:!1,confirmLoading:$e,cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{Ra(!1)},onOk:()=>Ot(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)("/api/user_mirrors/delete_mirror_script.json",{method:"delete",body:{script_id:Ji}})).status===0&&(Me.ZP.success("\u5220\u9664\u6210\u529F"),pn()),Ge(!1),Ra(!1)})},ue.createElement("div",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u811A\u672C\u5417\uFF1F")),ue.createElement(Lt.default,{centered:!0,width:1200,title:"\u6DFB\u52A0\u811A\u672C",style:{paddingTop:15},open:Oi,footer:null,maskClosable:!1,destroyOnClose:!0,onCancel:()=>{Sr.setFieldsValue({name:"",description:"",script:""}),la(!1)}},ue.createElement(Se.default,{form:Sr,className:nn.formModal,onValuesChange:wn,scrollToFirstError:!0,layout:"horizontal"},ue.createElement(Se.default.Item,{label:"\u811A\u672C\u540D\u79F0",name:"name",className:nn.errorTip,colon:!1,rules:[{required:!0,message:"\u811A\u672C\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},ue.createElement(xe.default,{size:"large"})),ue.createElement(Se.default.Item,{label:"\u811A\u672C\u8BF4\u660E",name:"description",colon:!1},ue.createElement(xe.default,{size:"large"})),ue.createElement(Se.default.Item,{label:"\u8BC4\u6D4B\u811A\u672C",name:"script",colon:!1},ue.createElement(Vt.ZP,{height:272,style:{border:"1px solid #ccc"},language:"shell",theme:"vs-light"}))),ue.createElement("div",{className:nn.modalBtns},ue.createElement(ge.ZP,{onClick:()=>{Sr.setFieldsValue({name:"",description:"",script:""}),la(!1)},className:nn.cancel},"\u53D6\u6D88 "),ue.createElement(ge.ZP,{onClick:()=>Ot(void 0,null,function*(){const vt=At({},yield Sr.validateFields());Ge(!0),(yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/add_mirror_scripts.json`,{method:"post",body:Tt(At({},vt),{id:kt==null?void 0:kt.experid})})).status===0&&(Me.ZP.success("\u6DFB\u52A0\u6210\u529F"),pn(),Sr.setFieldsValue({name:"",description:"",script:""})),Ge(!1),la(!1)}),className:nn.confirm,type:"primary",loading:$e},"\u786E\u5B9A "))),ue.createElement(Lt.default,{centered:!0,width:1200,title:"\u7F16\u8F91\u811A\u672C",style:{paddingTop:15},className:nn.errorTip,open:ca,footer:null,maskClosable:!1,destroyOnClose:!0,onCancel:()=>{Sr.setFieldsValue({name:"",description:"",script:""}),Xi(!1)}},ue.createElement(Se.default,{form:Sr,className:nn.formModal,onValuesChange:wn,scrollToFirstError:!0,layout:"horizontal"},ue.createElement(Se.default.Item,{label:"\u811A\u672C\u540D\u79F0",name:"name",colon:!1,rules:[{required:!0,message:"\u811A\u672C\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},ue.createElement(xe.default,{size:"large"})),ue.createElement(Se.default.Item,{label:"\u811A\u672C\u8BF4\u660E",name:"description",colon:!1},ue.createElement(xe.default,{size:"large"})),ue.createElement(Se.default.Item,{label:"\u8BC4\u6D4B\u811A\u672C",name:"script",colon:!1},ue.createElement(Vt.ZP,{height:272,style:{border:"1px solid #ccc"},language:"shell",theme:"vs-light"}))),ue.createElement("div",{className:nn.modalBtns},ue.createElement(ge.ZP,{onClick:()=>{Sr.setFieldsValue({name:"",description:"",script:""}),Xi(!1)},className:nn.cancel},"\u53D6\u6D88 "),ue.createElement(ge.ZP,{onClick:()=>Ot(void 0,null,function*(){Ge(!0);const vt=At({},yield Sr.validateFields());(yield(0,Ce.ZP)("/api/user_mirrors/update_mirror_scripts.json",{method:"put",body:Tt(At({},vt),{script_id:Ji})})).status===0&&(Sr.setFieldsValue({name:"",description:"",script:""}),Me.ZP.success("\u7F16\u8F91\u6210\u529F"),pn()),Ge(!1),Xi(!1)}),className:nn.confirm,type:"primary",loading:$e},"\u786E\u5B9A ")))))};var It=(0,Fe.connect)(({classroomList:yr,loading:br,globalSetting:Cr,user:zr})=>({classroomList:yr,globalSetting:Cr,loading:br.models.classroomList,user:zr}))(ht),xt={flex_box_center:"flex_box_center___SgCOo",flex_space_between:"flex_space_between___Ix3mp",flex_box_vertical_center:"flex_box_vertical_center___mlfVo",flex_box_center_end:"flex_box_center_end___idoEa",flex_box_column:"flex_box_column___P40ne",wrap:"wrap___I8l88",crumbs:"crumbs___FlGBi",Divle:"Divle___RJIMp",tableWrap:"tableWrap___IY0if",countflex:"countflex___GaMZG",leftCol:"leftCol___pIZyi",flexright:"flexright___HQv1i",flexleft:"flexleft___Z_Z5r",headWrap:"headWrap___bqbSw",formWrap:"formWrap___Rj_q8",inputWrap:"inputWrap___F0EE3",submitButtondiv:"submitButtondiv___TW0xO",glow:"glow___wToxy",formModal:"formModal___FUQqY",ActvieE3:"ActvieE3___pFQMH",listClass:"listClass___jGBVX",spantitle:"spantitle___sIXsW",note:"note___Otx2e",cpuWrap:"cpuWrap___aONW1",activebtn:"activebtn___D5WTS",btn:"btn___D8Br7",activeTab:"activeTab___WibVh",tab:"tab___FPLPy",countDown:"countDown___ZZ0lj",red:"red___nuh2c",footBtnWrap:"footBtnWrap___S2tE8",modalBtns:"modalBtns___z98EC",confirm:"confirm___k5I0m",cancel:"cancel___qOusJ",errorTip:"errorTip___IXohl"},sn=Object.defineProperty,Kt=Object.defineProperties,Un=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,mn=(yr,br,Cr)=>br in yr?sn(yr,br,{enumerable:!0,configurable:!0,writable:!0,value:Cr}):yr[br]=Cr,gn=(yr,br)=>{for(var Cr in br||(br={}))Pt.call(br,Cr)&&mn(yr,Cr,br[Cr]);if(bt)for(var Cr of bt(br))vn.call(br,Cr)&&mn(yr,Cr,br[Cr]);return yr},or=(yr,br)=>Kt(yr,Un(br)),er=(yr,br)=>{var Cr={};for(var zr in yr)Pt.call(yr,zr)&&br.indexOf(zr)<0&&(Cr[zr]=yr[zr]);if(yr!=null&&bt)for(var zr of bt(yr))br.indexOf(zr)<0&&vn.call(yr,zr)&&(Cr[zr]=yr[zr]);return Cr},tr=(yr,br,Cr)=>new Promise((zr,Wt)=>{var On=Jn=>{try{zn(Cr.next(Jn))}catch(pr){Wt(pr)}},qn=Jn=>{try{zn(Cr.throw(Jn))}catch(pr){Wt(pr)}},zn=Jn=>Jn.done?zr(Jn.value):Promise.resolve(Jn.value).then(On,qn);zn((Cr=Cr.apply(yr,br)).next())});const Hr=yr=>{var br=yr,{classroomList:Cr,globalSetting:zr,loading:Wt,user:On,dispatch:qn}=br,zn=er(br,["classroomList","globalSetting","loading","user","dispatch"]),Jn,pr,wr,nr;const{Countdown:St}=Xe.default,[Zt]=(0,Fe.useSearchParams)(),[jt,kn]=(0,de.useState)(parseInt(Zt.get("status"))||0),lt=(0,Fe.useLocation)(),Ut=(0,de.useRef)(),[ke,an]=(0,de.useState)(),kt=(0,Fe.useParams)(),[Tn,rr]=(0,de.useState)(!1),[Gr,Nr]=(0,de.useState)(0),[Lr,Ur]=(0,de.useState)([]),[Sr]=Se.default.useForm(),[ai,ir]=(0,de.useState)({}),[Rr,Di]=(0,de.useState)(!1),[Gi,qr]=(0,de.useState)(!1),[di,Yi]=(0,de.useState)([]),[Xr,Pi]=(0,de.useState)([]),[Mr,ua]=(0,de.useState)(!1),[ta,Ra]=(0,de.useState)(!1),[ca,Xi]=(0,de.useState)(!1),[Oi,la]=(0,de.useState)(!1),[Ji,Sa]=(0,de.useState)(),[Ya,ka]=(0,de.useState)(!1),[ba,Ba]=(0,de.useState)(!1),[fa,ja]=(0,de.useState)({}),[Ri,hn]=(0,de.useState)(0),[$t,Zn]=(0,de.useState)(0),[gr,Er]=(0,de.useState)(!1),[ri,pi]=(0,de.useState)(0),[Si,vi]=(0,de.useState)(!1),[Ai,Ti]=(0,de.useState)(!1),[$i,qi]=(0,de.useState)(),[Pn,In]=(0,de.useState)([]),[Vn,me]=(0,de.useState)(!1),[_e,Ke]=(0,de.useState)(),[Ye,Je]=(0,de.useState)(!0),[$e,Ge]=(0,de.useState)(!1),[Xt,un]=(0,de.useState)(!1),[Wn,ar]=(0,de.useState)(!1),[$n,Nn]=(0,de.useState)(!1);let Bn=(0,de.useRef)();const[rn,Xn]=(0,de.useState)({tab:1,page:1,per_page:10}),Ar=[{id:1,name:"\u76F8\u5173\u5B9E\u8DF5\u9879\u76EE"},{id:2,name:"\u5171\u4EAB\u4FE1\u606F"},{id:3,name:"\u8BC4\u6D4B\u811A\u672C"},{id:4,name:"\u670D\u52A1\u914D\u7F6E"}],ur=[{title:"\u5E8F\u53F7",dataIndex:"order",key:"order",render:(bn,pn,_n)=>`${(rn.page-1)*rn.per_page+_n+1}`,width:50},{title:"\u540D\u79F0",dataIndex:"name",key:"name",ellipsis:!0,width:80,render:(bn,pn)=>de.createElement("span",null,bn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199")},{title:"\u5B66\u6821/\u5355\u4F4D",dataIndex:"school_name",key:"school_name",ellipsis:!0,width:100,render:(bn,pn)=>de.createElement("span",null,bn)},{title:"\u72B6\u6001",dataIndex:"status_cn",key:"status_cn",ellipsis:!0,width:80,render:(bn,pn)=>de.createElement("span",null,bn)},{title:"\u521B\u5EFA\u8005",dataIndex:"creator_name",key:"creator_name",ellipsis:!0,width:80,render:(bn,pn)=>de.createElement("span",null,bn)},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",key:"created_at",ellipsis:!0,width:100,render:(bn,pn)=>de.createElement("span",{style:{color:"#666"}},ft()(bn).format("YYYY-MM-DD HH:mm:ss"))},{title:"\u64CD\u4F5C",dataIndex:"action",align:"right",key:"action",ellipsis:!0,width:80,render:(bn,pn)=>de.createElement("a",{style:{color:"#165DFF"},onClick:()=>{(0,je.xg)(`/shixuns/${pn.identifier}/challenges`)}},"\u67E5\u770B\u8BE6\u60C5")}],Mn=[{title:"\u5E8F\u53F7",dataIndex:"order",key:"order",render:(bn,pn,_n)=>`${(rn.page-1)*rn.per_page+_n+1}`,width:100},{title:"\u540D\u79F0",dataIndex:"name",key:"name",ellipsis:!0,render:(bn,pn)=>de.createElement("span",null,bn)},{title:"\u64CD\u4F5C",dataIndex:"action",align:"right",key:"action",width:120,ellipsis:!0,render:(bn,pn)=>de.createElement("a",{className:xt.ActvieE3,type:"link",style:{padding:"0 0 0 10px",whiteSpace:"nowrap"},onClick:()=>{ua(!0),Sa(pn==null?void 0:pn.id)}},"\u53D6\u6D88\u5171\u4EAB")}],mr=[{title:"\u5E8F\u53F7",dataIndex:"order",key:"order",render:(bn,pn,_n)=>`${(rn.page-1)*rn.per_page+_n+1}`,width:100},{title:"\u540D\u79F0",dataIndex:"name",key:"name",width:140,ellipsis:!0,render:(bn,pn)=>de.createElement("span",null,bn)},{title:"\u8BF4\u660E",dataIndex:"description",key:"description",ellipsis:!0,render:(bn,pn)=>de.createElement("span",null,bn)},{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",key:"updated_at",width:160,ellipsis:!0,render:(bn,pn)=>de.createElement("span",{style:{color:" #666"}},ft()(bn).format("YYYY-MM-DD HH:mm:ss"))},{title:de.createElement("span",null,"\u64CD\u4F5C"),align:"right",width:120,render:(bn,pn)=>de.createElement(de.Fragment,null,de.createElement(wt.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0},onClick:()=>tr(void 0,null,function*(){yield Dt(pn==null?void 0:pn.id)})},"\u7F16\u8F91"),de.createElement("a",{className:xt.ActvieE3,type:"link",style:{padding:"0 0 0 10px",whiteSpace:"nowrap"},onClick:()=>{Ra(!0),Sa(pn==null?void 0:pn.id)}},"\u5220\u9664"))}];(0,de.useEffect)(()=>{var bn;Ut.current=(bn=lt.pathname.split("/"))==null?void 0:bn[2]},[lt.pathname]),(0,de.useEffect)(()=>{tt()},[]),(0,de.useEffect)(()=>{Dr()},[]);const Dr=()=>tr(void 0,null,function*(){const bn=yield(0,Ce.ZP)("/api/user_mirrors/other_info.json",{method:"get"});bn.status===0&&ja(bn==null?void 0:bn.data)}),_r=bn=>tr(void 0,null,function*(){var pn;const _n=yield(0,Ce.ZP)(`/api/user_mirrors/${bn}/error_tips.json`,{method:"get"});(_n==null?void 0:_n.status)===0&&(In((pn=_n==null?void 0:_n.data)==null?void 0:pn.user_mirror_logs),qi(!0))});function tt(){return tr(this,null,function*(){const bn=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}.json`,{method:"get"});(bn==null?void 0:bn.status)===0&&an(bn.data)})}const at=bn=>{rn.tab=bn,Xn(gn({},rn))},on=bn=>tr(void 0,null,function*(){var pn;const _n=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/check.json`,{method:"get"});(_n==null?void 0:_n.status)===0&&(((pn=_n==null?void 0:_n.data)==null?void 0:pn.exist)===0?Ba(!0):(Ba(!1),bn?Fe.history.push(`/shixuns/new/${kt==null?void 0:kt.experid}/imagepreview?operation=update_image`):Fe.history.push(`/shixuns/new/${kt==null?void 0:kt.experid}/imagepreview`)))}),Qt=()=>tr(void 0,null,function*(){var bn;ar(!0);const pn=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/check_is_can_delete.json`,{method:"get"});(pn==null?void 0:pn.status)===0&&(pi((bn=pn==null?void 0:pn.data)==null?void 0:bn.shixun_size),Er(!0)),ar(!1)}),Dn=()=>tr(void 0,null,function*(){var bn;const pn=yield(0,Ce.ZP)("/api/teach_group_shares.json",{method:"get"});(pn==null?void 0:pn.status)===0&&(Pi(ke==null?void 0:ke.share_group_ids),Yi(pn==null?void 0:pn.groups),((bn=pn==null?void 0:pn.groups)==null?void 0:bn.length)>0?qr(!0):Me.ZP.info("\u6682\u65E0\u5171\u4EAB\u6570\u636E"))});(0,de.useEffect)(()=>((ke==null?void 0:ke.status)===1&&(Bn.current=setInterval(()=>tr(void 0,null,function*(){var bn,pn,_n,Tr;const Ir=yield(0,Ce.ZP)("/api/user_mirrors/polling_update_status.json",{method:"post",body:{user_mirror_ids:[kt==null?void 0:kt.experid]}});if(Ir.status===0)if(((pn=(bn=Ir==null?void 0:Ir.data)==null?void 0:bn.user_mirror_ids)==null?void 0:pn.length)>0){if(((Tr=(_n=Ir==null?void 0:Ir.data)==null?void 0:_n.update_datas)==null?void 0:Tr.length)>0){const Jr=Lr==null?void 0:Lr.map(Zr=>{var Br,si;return(si=(Br=Ir==null?void 0:Ir.data)==null?void 0:Br.update_datas)==null||si.map(oi=>{Zr.id===oi.id&&(Zr.status=oi.status)}),Zr});an(Jr[0])}}else tt(),clearInterval(Bn.current)}),5e3)),()=>{clearInterval(Bn.current)}),[ke==null?void 0:ke.status,ke]);const sr=()=>de.createElement(ce.Z,{placement:"bottomLeft",content:de.createElement(we.default,null,((ke==null?void 0:ke.publish_status)===-1||(ke==null?void 0:ke.publish_status)===0)&&de.createElement(we.default.Item,null,de.createElement("a",{onClick:()=>{ka(!0)}},"\u7533\u8BF7\u516C\u5F00")),(ke==null?void 0:ke.publish_status)===3&&de.createElement(we.default.Item,null,de.createElement("a",{onClick:()=>{Ti(!0)}},"\u91CD\u65B0\u7533\u8BF7")),((ke==null?void 0:ke.publish_status)===2||(ke==null?void 0:ke.publish_status)===3)&&de.createElement(we.default.Item,null,de.createElement("a",{onClick:()=>{vi(!0)}},"\u64A4\u9500\u7533\u8BF7")),de.createElement(we.default.Item,null,de.createElement("a",{onClick:()=>{Di(!0)}},"\u4FEE\u6539\u955C\u50CF\u4FE1\u606F")),((ke==null?void 0:ke.publish_status)===-1||(ke==null?void 0:ke.publish_status)===0||(ke==null?void 0:ke.publish_status)===3)&&de.createElement(we.default.Item,null,de.createElement(wt.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"rgba(0, 0, 0, 0.88)"},onClick:()=>tr(void 0,null,function*(){Je(!0),yield on(!0)})},"\u66F4\u65B0\u955C\u50CF")),de.createElement(we.default.Item,null,de.createElement(wt.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"rgba(0, 0, 0, 0.88)"},onClick:()=>tr(void 0,null,function*(){yield Dn()})},"\u5171\u4EAB\u955C\u50CF")),((ke==null?void 0:ke.publish_status)===-1||(ke==null?void 0:ke.publish_status)===0||(ke==null?void 0:ke.publish_status)===3)&&de.createElement(we.default.Item,null,de.createElement(wt.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"rgba(0, 0, 0, 0.88)"},onClick:()=>tr(void 0,null,function*(){yield Qt()})},"\u5220\u9664")))},de.createElement(ut.op,{shape:"default",size:"middle",style:{borderRadius:"2px",marginTop:"3px"}},"\u66F4\u591A",de.createElement("i",{className:"iconfont icon-sanjiaoxing-down pl8"}))),Mt=[{title:"\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(bn,pn,_n)=>de.createElement("span",{style:{color:"#666"}},ft()(bn).format("YYYY-MM-DD HH:mm:ss"))},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",render:(bn,pn,_n)=>de.createElement("span",{style:{color:"#000"}},"\u66F4\u65B0\u955C\u50CF")},{title:"\u72B6\u6001",dataIndex:"status",align:"right",key:"status",render:(bn,pn,_n)=>de.createElement("span",{style:{color:"#E30000"}},"\u5931\u8D25")}],Dt=bn=>tr(void 0,null,function*(){const pn=yield(0,Ce.ZP)("/api/user_mirrors/mirror_script_detail.json",{method:"get",params:{script_id:bn}});pn.status===0&&(Sr.setFieldsValue(gn({},pn==null?void 0:pn.data)),ir(gn({},pn==null?void 0:pn.data)),Xi(!0),Sa(bn))}),Nt=bn=>{ir(gn({},Sr.getFieldsValue()))},Gt=bn=>tr(void 0,null,function*(){yield Sr.validateFields(),Nn(!0);const{cpu_limit:pn,memory_limit:_n,request_limit:Tr,lower_cpu_limit:Ir,resource_limit:Jr}=bn,Zr=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/update_service_config.json`,{method:"put",body:{cpu_limit:pn,memory_limit:_n,request_limit:Tr,lower_cpu_limit:Ir,resource_limit:Jr}});(Zr==null?void 0:Zr.status)===0&&(Me.ZP.success("\u4FDD\u5B58\u6210\u529F!"),Yn()),Nn(!1)});(0,de.useEffect)(()=>{(ke==null?void 0:ke.status)===2&&(rn.tab===1&&Rn(),rn.tab===2&&Qn(),rn.tab===3&&wn(),rn.tab===4&&Yn())},[rn.tab,ke]);function Rn(){return tr(this,null,function*(){var bn,pn;rr(!0);const _n=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/relation_shixuns.json`,{method:"get",params:gn({},rn)});(_n==null?void 0:_n.status)===0&&(Ur((bn=_n==null?void 0:_n.data)==null?void 0:bn.relation_shixuns),Nr((pn=_n==null?void 0:_n.data)==null?void 0:pn.count)),rr(!1)})}function Qn(){return tr(this,null,function*(){var bn,pn,_n,Tr;rr(!0);const Ir=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/show_groups.json`,{method:"get",params:gn({},rn)});(Ir==null?void 0:Ir.status)===0&&(Ur((bn=Ir==null?void 0:Ir.data)==null?void 0:bn.groups),Nr((pn=Ir==null?void 0:Ir.data)==null?void 0:pn.count),Pi((Tr=(_n=Ir==null?void 0:Ir.data)==null?void 0:_n.groups)==null?void 0:Tr.map(Jr=>Jr.group_id))),rr(!1)})}function wn(){return tr(this,null,function*(){var bn,pn;rr(!0);const _n=yield(0,Ce.ZP)("/api/user_mirrors/mirror_scripts.json",{method:"get",params:or(gn({},rn),{id:kt==null?void 0:kt.experid})});(_n==null?void 0:_n.status)===0&&(Ur((bn=_n==null?void 0:_n.data)==null?void 0:bn.mirror_scripts),Nr((pn=_n==null?void 0:_n.data)==null?void 0:pn.count)),rr(!1)})}function Yn(){return tr(this,null,function*(){rr(!0);const bn=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/get_service_config.json`,{method:"get"});(bn==null?void 0:bn.status)===0&&(Sr.setFieldsValue(gn({},bn==null?void 0:bn.data)),ir(gn({},bn==null?void 0:bn.data))),rr(!1)})}const kr=()=>tr(void 0,null,function*(){un(!0);const bn=yield(0,Ce.ZP)(`/api/user_mirrors/${ke==null?void 0:ke.id}/check_is_making_end.json`,{method:"get"});(bn==null?void 0:bn.status)===0?Fe.history.push(`/shixuns/new/${ke==null?void 0:ke.id}/imagepreview?operation=create_image`):tt(),un(!1)});return de.createElement("div",{className:xt.wrap},de.createElement("div",{className:xt.crumbs},de.createElement("div",null,de.createElement("a",{onClick:()=>Fe.history.back()},de.createElement("i",{className:"iconfont icon-fanhuijingxiang"})),de.createElement("span",{style:{paddingLeft:6}},ke==null?void 0:ke.type_name)),de.createElement("div",null,(ke==null?void 0:ke.status)===2&&de.createElement(ge.ZP,{type:"primary",className:"mr20",style:{borderRadius:2},onClick:()=>{Je(!1),on(!1)}},"\u8FD0\u884C\u955C\u50CF"),(ke==null?void 0:ke.status)===2&&de.createElement(ut.op,{shape:"default",size:"middle",style:{borderRadius:"2px",marginTop:"3px",marginRight:20},onClick:()=>{(0,je.xg)(`/shixuns/new?tab=${Number(jt)+1}&mirror=${ke==null?void 0:ke.mirror_repository_id}`)}},"\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE"),jt===0&&(ke==null?void 0:ke.status)===2&&((ke==null?void 0:ke.publish_status)===-1||(ke==null?void 0:ke.publish_status)===0||(ke==null?void 0:ke.publish_status)===1||(ke==null?void 0:ke.publish_status)===2||(ke==null?void 0:ke.publish_status)===3)&&sr(),jt===0&&(ke==null?void 0:ke.status)===0&&(ke==null?void 0:ke.is_making_end)===!1&&de.createElement(de.Fragment,null,de.createElement(ut.op,{onClick:()=>tr(void 0,null,function*(){return yield kr()}),shape:"default",size:"middle",loading:Xt,style:{borderRadius:"2px",marginTop:"3px",marginRight:20}},"\u5236\u4F5C\u955C\u50CF"),de.createElement(ut.op,{onClick:()=>tr(void 0,null,function*(){yield Qt()}),shape:"default",size:"middle",style:{borderRadius:"2px",marginTop:"3px"},loading:Wn},"\u5220\u9664")),jt===0&&(ke==null?void 0:ke.status)===0&&(ke==null?void 0:ke.is_making_end)===!0&&de.createElement(ut.op,{onClick:()=>tr(void 0,null,function*(){yield Qt()}),shape:"default",size:"middle",loading:Wn,style:{borderRadius:"2px",marginTop:"3px"}},"\u5220\u9664"),jt===0&&(ke==null?void 0:ke.status)===3&&de.createElement(ut.op,{onClick:()=>tr(void 0,null,function*(){yield Qt()}),shape:"default",size:"middle",loading:Wn,style:{borderRadius:"2px",marginTop:"3px"}},"\u5220\u9664"))),de.createElement("div",{className:xt.Divle}),de.createElement("div",{className:xt.tableWrap},de.createElement(Be.Z,{className:xt.countflex},de.createElement(Qe.Z,{className:xt.leftCol},de.createElement("div",{className:xt.flexleft},"\u955C\u50CF\u540D\u79F0"),de.createElement("div",{className:xt.flexright,title:ke==null?void 0:ke.type_name},ke==null?void 0:ke.type_name)),de.createElement(Qe.Z,{flex:1},de.createElement("span",{className:xt.flexleft},"\u4FDD\u5B58\u72B6\u6001"),de.createElement("span",{className:xt.flexright},(ke==null?void 0:ke.status)===0&&de.createElement("span",{className:xt.flexright},de.createElement("span",{style:{color:"#5F6368",marginRight:5}},"\u5236\u4F5C\u4E2D"),(ke==null?void 0:ke.is_making_end)===!1?de.createElement("i",{className:"iconfont icon-shijian1",style:{color:"#165DFF"}}):de.createElement(Oe.Z,{title:"\u5269\u4F59\u5236\u4F5C\u65F6\u957F\u4E3A\u96F6\uFF0C\u4E0D\u80FD\u518D\u8FDB\u5165\u955C\u50CF\u5236\u4F5C\u9875\u9762\u3002"},de.createElement("i",{className:"iconfont icon-shijian1",style:{color:"#E30000"}}))),(ke==null?void 0:ke.status)===1&&de.createElement("span",{className:xt.flexright},de.createElement("span",{style:{color:"#165DFF",marginRight:5}},"\u4FDD\u5B58\u4E2D"),de.createElement(et.Z,{size:"small"})),(ke==null?void 0:ke.status)===2&&de.createElement("span",{className:xt.flexright},de.createElement("span",{style:{color:"#00B187"}},"\u5B8C\u6210"),(ke==null?void 0:ke.has_error_tips)&&jt===0&&de.createElement("i",{className:"iconfont icon-tishi4 current ml5 c-light-primary",style:{color:"#FF8C29"},onClick:()=>{_r(ke==null?void 0:ke.id)}})),(ke==null?void 0:ke.status)===3&&de.createElement("span",{className:xt.flexright,style:{color:"#E30000"}},"\u5931\u8D25")))),de.createElement(Be.Z,{className:xt.countflex},de.createElement(Qe.Z,{className:xt.leftCol},de.createElement("span",{className:xt.flexleft},"\u521B\u5EFA\u65B9\u5F0F"),de.createElement("span",{className:xt.flexright},(ke==null?void 0:ke.create_method)===1&&"\u5728\u7EBF\u521B\u5EFA",(ke==null?void 0:ke.create_method)===2&&"\u5BFC\u5165")),de.createElement(Qe.Z,{flex:1},de.createElement("span",{className:xt.flexleft},"\u516C\u5F00\u72B6\u6001"),de.createElement("span",{className:xt.flexright},(ke==null?void 0:ke.publish_status)===-1&&de.createElement("span",null,"\u672A\u516C\u5F00"),(ke==null?void 0:ke.publish_status)===0&&de.createElement("span",null,"\u672A\u516C\u5F00"),(ke==null?void 0:ke.publish_status)===1&&de.createElement("span",null,"\u5DF2\u516C\u5F00"),(ke==null?void 0:ke.publish_status)===2&&de.createElement("span",null,"\u5BA1\u6838\u4E2D"),(ke==null?void 0:ke.publish_status)===3&&de.createElement("span",null,"\u9A73\u56DE",jt===0&&de.createElement("i",{onClick:()=>{me(!0),Ke(ke==null?void 0:ke.remark)},className:"iconfont icon-tishi4 ml5 ",style:{color:"#FF8C29"}}))))),de.createElement(Be.Z,{className:xt.countflex},((ke==null?void 0:ke.create_method)===1||(ke==null?void 0:ke.status)===1)&&de.createElement(Qe.Z,{className:xt.leftCol},de.createElement("div",{className:xt.flexleft},"\u57FA\u7840\u955C\u50CF"),de.createElement("div",{className:xt.flexright},ke==null?void 0:ke.base_mirror)),(ke==null?void 0:ke.create_method)===2&&de.createElement(Qe.Z,{className:xt.leftCol},de.createElement("div",{className:xt.flexleft},"\u955C\u50CF\u6587\u4EF6"),de.createElement("div",{className:xt.flexright},ke==null?void 0:ke.base_mirror)),de.createElement(Qe.Z,{flex:1},de.createElement("span",{className:xt.flexleft},"\u521B\u5EFA\u65F6\u95F4"),de.createElement("span",{className:xt.flexright},ft()(ke==null?void 0:ke.created_at).format("YYYY-MM-DD HH:mm:ss")))),de.createElement(Be.Z,{className:xt.countflex},de.createElement(Qe.Z,{className:xt.leftCol},de.createElement("span",{className:xt.flexleft},"\u955C\u50CF\u7C7B\u578B"),de.createElement("span",{className:xt.flexright},((Jn=ke==null?void 0:ke.mirror_type_cn)==null?void 0:Jn.length)>1?(pr=ke==null?void 0:ke.mirror_type_cn)==null?void 0:pr.join("\u3001"):ke==null?void 0:ke.mirror_type_cn[0])),de.createElement(Qe.Z,{flex:1},de.createElement("span",{className:xt.flexleft},"\u66F4\u65B0\u65F6\u95F4"),(ke==null?void 0:ke.status)===2?de.createElement("span",{className:xt.flexright},ft()(ke==null?void 0:ke.updated_at).format("YYYY-MM-DD HH:mm:ss")):de.createElement("span",null,"--"))),de.createElement(Be.Z,{style:{maxHeight:"260px",overflowY:"auto"}},de.createElement(Qe.Z,{style:{padding:"13px 10px 10px 30px",color:"#5F6368"}},"\u955C\u50CF\u63CF\u8FF0"),de.createElement(Qe.Z,null,de.createElement(Ze.Z,{value:ke==null?void 0:ke.description,style:{maxWidth:"760px",padding:10,fontSize:14}})))),(ke==null?void 0:ke.can_save)&&de.createElement("div",{style:{paddingBottom:20}},de.createElement(ut.tp,{style:{marginBottom:15},dataSource:Ar,value:rn.tab,onChange:at}),de.createElement(et.Z,{spinning:Tn},rn.tab===1&&de.createElement(de.Fragment,null,Gr===0?de.createElement(Re.Z,{customText:"\u6682\u65E0\u6570\u636E"}):de.createElement(ot.default,{columns:ur,dataSource:Lr,pagination:!1})),rn.tab===2&&de.createElement(de.Fragment,null,(ke==null?void 0:ke.status)===2?de.createElement(wt.Z,{type:"primary",style:{whiteSpace:"nowrap",height:32,marginBottom:15,borderRadius:2},onClick:()=>tr(void 0,null,function*(){yield Dn()})},"\u5171\u4EAB\u955C\u50CF"):de.createElement(Oe.Z,{title:"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},de.createElement(ge.ZP,{disabled:!0,style:{borderRadius:2}},"\u5171\u4EAB\u955C\u50CF")),Gr===0?de.createElement(Re.Z,{customText:"\u6682\u65E0\u6570\u636E"}):de.createElement(ot.default,{columns:Mn,dataSource:Lr,pagination:!1})),rn.tab===3&&de.createElement(de.Fragment,null,de.createElement("div",{className:xt.headWrap},(ke==null?void 0:ke.status)===2?de.createElement(ge.ZP,{type:"primary",style:{borderRadius:2},onClick:()=>la(!0)},"\u6DFB\u52A0\u811A\u672C"):de.createElement(Oe.Z,{title:"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},de.createElement(ge.ZP,{disabled:!0,style:{borderRadius:2}},"\u6DFB\u52A0\u811A\u672C")),de.createElement("p",{style:{color:"#9096A3"}},"\u5982\u679C\u955C\u50CF\u8981\u7528\u4E8E\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE\uFF0C\u5219\u9700\u8981\u6DFB\u52A0\u5B66\u5458\u8BC4\u6D4B\u65F6\u8FD0\u884C\u7684\u811A\u672C\u3002\u9ED8\u8BA4\u751F\u6210\u4E86\u4E00\u4E9B\u8BC4\u6D4B\u811A\u672C\uFF0C\u4F60\u53EF\u4EE5\u6839\u636E\u9700\u8981\u4FEE\u6539\u6216\u6DFB\u52A0\u811A\u672C\u3002")),Gr===0?de.createElement(Re.Z,{customText:"\u6682\u65E0\u6570\u636E"}):de.createElement(ot.default,{columns:mr,dataSource:Lr,pagination:!1})),rn.tab===4&&de.createElement(de.Fragment,null,de.createElement(Se.default,{form:Sr,style:{marginTop:10},className:xt.formWrap,onValuesChange:Nt,scrollToFirstError:!0,layout:"horizontal"},de.createElement(Be.Z,null,de.createElement(Qe.Z,{style:{marginRight:42}},de.createElement(Oe.Z,{title:(ke==null?void 0:ke.status)===2?"":"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},de.createElement(Se.default.Item,{label:"CPU",name:"cpu_limit",colon:!1,className:xt.errorTip,rules:[{validator:(bn,pn)=>{if(pn=="")return Promise.resolve();const _n=/^(0(\.\d*)?|1(\.\d*)?|2(\.0+)?)$/;return/^(?!0\d)(?:[1-9]\d*|0)(?:\.\d+)?$/.test(pn)?_n.test(pn)?Promise.resolve():Promise.reject("CPU\u4E0D\u80FD\u8D85\u8FC72\u6838"):Promise.reject("\u4EC5\u652F\u6301\u6B63\u6570")}}]},de.createElement(xe.default,{disabled:(ke==null?void 0:ke.status)!==2,size:"large",className:xt.inputWrap,suffix:de.createElement("span",{style:{color:"#999"}},"\u6838")})))),de.createElement(Qe.Z,null,de.createElement(Oe.Z,{title:(ke==null?void 0:ke.status)===2?"":"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},de.createElement(Se.default.Item,{label:"\u6700\u4F4ECPU",name:"lower_cpu_limit",colon:!1,dependencies:["cpu_limit"],className:xt.errorTip,rules:[{validator:(bn,pn)=>{if(pn=="")return Promise.resolve();const _n=/^(0(\.\d*)?|1(\.\d*)?|2(\.0+)?)$/;return/^(?!0\d)(?:[1-9]\d*|0)(?:\.\d+)?$/.test(pn)?_n.test(pn)?Number(Sr.getFieldValue("cpu_limit"))<Number(pn)?Promise.reject("\u6700\u4F4ECPU(\u6838)\u6570\u4E0D\u80FD\u5927\u4E8ECPU(\u6838)\u6570"):Promise.resolve():Promise.reject("CPU\u4E0D\u80FD\u8D85\u8FC72\u6838"):Promise.reject("\u4EC5\u652F\u6301\u6B63\u6570")}}]},de.createElement(xe.default,{disabled:(ke==null?void 0:ke.status)!==2,size:"large",className:xt.inputWrap,suffix:de.createElement("span",{style:{color:"#999"}},"\u6838")}))))),de.createElement(Be.Z,null,de.createElement(Qe.Z,{style:{marginRight:42}},de.createElement(Oe.Z,{title:(ke==null?void 0:ke.status)===2?"":"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},de.createElement(Se.default.Item,{label:"\u5185\u5B58\u9650\u5236",name:"memory_limit",colon:!1,className:xt.errorTip,rules:[{validator:(bn,pn)=>pn==""?Promise.resolve():/^(?!0\d)(?:[1-9]\d*|0)(?:\.\d+)?$/.test(pn)?Number(pn)>5e3?Promise.reject("\u5185\u5B58\u4E0D\u80FD\u8D85\u8FC75000M"):Promise.resolve():Promise.reject("\u4EC5\u652F\u6301\u6B63\u6570")}]},de.createElement(xe.default,{disabled:(ke==null?void 0:ke.status)!==2,size:"large",className:xt.inputWrap,suffix:de.createElement("span",{style:{color:"#999"}},"M")})))),de.createElement(Qe.Z,null,de.createElement(Oe.Z,{title:(ke==null?void 0:ke.status)===2?"":"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},de.createElement(Se.default.Item,{label:"\u5185\u5B58\u8981\u6C42",name:"request_limit",colon:!1,dependencies:["memory_limit"],className:xt.errorTip,rules:[{validator:(bn,pn)=>pn==""?Promise.resolve():/^(?!0\d)(?:[1-9]\d*|0)(?:\.\d+)?$/.test(pn)?Number(pn)>5e3?Promise.reject("\u5185\u5B58\u4E0D\u80FD\u8D85\u8FC75000M"):Number(Sr.getFieldValue("memory_limit"))<Number(pn)?Promise.reject("\u5185\u5B58\u8981\u6C42(M)\u6570\u4E0D\u80FD\u5927\u4E8E\u5185\u5B58\u9650\u5236(M)\u6570"):Promise.resolve():Promise.reject("\u4EC5\u652F\u6301\u6B63\u6570")}]},de.createElement(xe.default,{disabled:(ke==null?void 0:ke.status)!==2,size:"large",className:xt.inputWrap,suffix:de.createElement("span",{style:{color:"#999"}},"M")}))))),de.createElement(Be.Z,null,de.createElement(Qe.Z,{style:{marginRight:42}},de.createElement(Oe.Z,{title:(ke==null?void 0:ke.status)===2?"":"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},de.createElement(Se.default.Item,{label:"\u78C1\u76D8\u9650\u5236",name:"resource_limit",colon:!1,className:xt.errorTip,rules:[{validator:(bn,pn)=>pn==""?Promise.resolve():/^(?!0\d)(?:[1-9]\d*|0)(?:\.\d+)?$/.test(pn)?Number(pn)>1e7?Promise.reject("\u5185\u5B58\u4E0D\u80FD\u8D85\u8FC710000000K"):Promise.resolve():Promise.reject("\u4EC5\u652F\u6301\u6B63\u6570")}]},de.createElement(xe.default,{disabled:(ke==null?void 0:ke.status)!==2,size:"large",className:xt.inputWrap,suffix:de.createElement("span",{style:{color:"#999"}},"K")})))),de.createElement(Qe.Z,{style:{width:360,color:"#5F6368"}},de.createElement("p",null,"\u6E29\u99A8\u63D0\u793A\uFF1A\u8BF7\u6839\u636E\u5B9E\u9645\u9700\u8981\uFF0C\u586B\u5199\u955C\u50CF\u4F7F\u7528\u7684\u8D44\u6E90\u914D\u989D\uFF0C\u5305\u62EC CPU\u3001\u5185\u5B58\u3001\u78C1\u76D8\u4E09\u5927\u65B9\u9762\u3002"))),de.createElement(Be.Z,{style:{display:"flex",justifyContent:"flex-end"}},(ke==null?void 0:ke.status)===2?de.createElement(ge.ZP,{type:"primary",loading:$n,className:xt.confirm,onClick:()=>tr(void 0,null,function*(){yield Gt(gn({},Sr.getFieldsValue()))})},"\u4FDD\u5B58"):de.createElement(Oe.Z,{title:"\u955C\u50CF\u4FDD\u5B58\u3010\u5B8C\u6210\u3011\u540E\uFF0C\u624D\u80FD\u8FDB\u884C\u64CD\u4F5C\u3002"},de.createElement(ge.ZP,{disabled:!0,style:{borderRadius:2}},"\u4FDD\u5B58")))))),de.createElement(de.Fragment,null,rn.tab!=4&&Gr!=0&&de.createElement(Be.Z,{className:"mt20 mb20",wrap:!1,align:"middle",justify:"end"},de.createElement(Qe.Z,null,de.createElement(mt.Z,{showSizeChanger:!0,showQuickJumper:!0,current:rn.page,pageSize:rn.per_page,onShowSizeChange:(bn,pn)=>{rn.per_page=pn,rn.page=1,Xn(gn({},rn))},onChange:bn=>{rn.page=bn,Xn(gn({},rn))},total:Gr}))))),de.createElement("div",null,de.createElement(Lt.default,{centered:!0,title:"\u9A73\u56DE\u539F\u56E0",open:Vn,footer:null,maskClosable:!1,destroyOnClose:!0,onCancel:()=>{me(!1)}},de.createElement("div",{style:{maxHeight:300,overflowY:"auto"}},_e),de.createElement("div",{className:xt.footBtnWrap},de.createElement(ge.ZP,{size:"middle",style:{marginRight:20,borderRadius:2},onClick:()=>{me(!1),vi(!0)},type:"primary"},"\u64A4\u9500\u7533\u8BF7"),de.createElement(ge.ZP,{size:"middle",style:{borderRadius:2},onClick:()=>{me(!1),Ti(!0)},type:"primary"},"\u91CD\u65B0\u7533\u8BF7"))),de.createElement(Lt.default,{centered:!0,title:"\u5F02\u5E38\u63D0\u793A",open:$i,footer:null,destroyOnClose:!0,onCancel:()=>{qi(!1)}},de.createElement(ot.default,{style:{maxHeight:300,overflowY:"auto",marginBottom:20},dataSource:Pn,columns:Mt,pagination:!1})),de.createElement(Lt.default,{centered:!0,title:"\u91CD\u65B0\u7533\u8BF7\u516C\u5F00",open:Ai,maskClosable:!1,confirmLoading:$e,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{Ti(!1)},onOk:()=>tr(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/apply_public.json`,{method:"post"})).status===0&&(Me.ZP.success("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"),tt()),Ge(!1),Ti(!1)})},de.createElement("div",null,"\u91CD\u65B0\u7533\u8BF7\u516C\u5F00\u524D\uFF0C\u8BF7\u6839\u636E\u9A73\u56DE\u539F\u56E0\u4FEE\u6539\u955C\u50CF\uFF0C\u7136\u540E\u518D\u7533\u8BF7\u3002\u4F60\u786E\u5B9A\u8981\u91CD\u65B0\u7533\u8BF7\u516C\u5F00\u5417\uFF1F")),de.createElement(Lt.default,{centered:!0,title:"\u64A4\u9500\u7533\u8BF7\u516C\u5F00",open:Si,maskClosable:!1,confirmLoading:$e,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{vi(!1)},onOk:()=>tr(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/revoke_apply.json`,{method:"post"})).status===0&&(Me.ZP.success("\u64A4\u9500\u6210\u529F"),tt()),Ge(!1),vi(!1)})},de.createElement("div",null,"\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u540E\uFF0C\u955C\u50CF\u56DE\u5230\u3010\u672A\u516C\u5F00\u3011\u72B6\u6001\u3002\u540E\u7EED\u5982\u6709\u9700\u8981\uFF0C\u53EF\u4EE5\u518D\u6B21\u7533\u8BF7\u516C\u5F00\u3002\u4F60\u786E\u5B9A\u8981\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u5417\uFF1F")),de.createElement(Lt.default,{centered:!0,title:"\u5220\u9664\u955C\u50CF",open:gr,maskClosable:!1,confirmLoading:$e,okText:ri>0?"\u6211\u77E5\u9053\u4E86":"\u786E\u5B9A",cancelText:ri>0?"":"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{Er(!1)},onOk:()=>tr(void 0,null,function*(){if(Ge(!0),ri>0){Er(!1);return}(yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}.json`,{method:"delete"})).status===0&&(Me.ZP.success("\u5220\u9664\u6210\u529F"),Fe.history.back()),Ge(!1),Er(!1)})},ri>0?de.createElement("div",null,de.createElement("div",null,"\u8BE5\u955C\u50CF\u5DF2\u88AB ",ri," \u4E2A\u5B9E\u8DF5\u9879\u76EE\u4F7F\u7528\uFF0C\u4E0D\u5141\u8BB8\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\u3002"),de.createElement("div",{style:{color:"#165DFF",marginTop:20,cursor:"pointer"},onClick:()=>{rn.tab=1,rn.page=1,rn.per_page=10,Xn(gn({},rn)),Er(!1)}},de.createElement("span",{style:{paddingRight:"4"}},"\u67E5\u770B\u76F8\u5173\u5B9E\u8DF5\u9879\u76EE"),de.createElement("i",{className:"iconfont icon-you"}))):de.createElement("div",null,"\u955C\u50CF\u5220\u9664\u4E4B\u540E\u4E0D\u53EF\u6062\u590D\uFF0C\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u955C\u50CF\u5417\uFF1F")),de.createElement(Lt.default,{centered:!0,keyboard:!1,destroyOnClose:!0,open:ba,title:"\u9009\u62E9\u8FD0\u884C\u73AF\u5883",maskClosable:!1,confirmLoading:$e,width:"558px",okText:"\u786E\u5B9A",wrapClassName:xt.auditModal,onCancel:()=>{hn(0),Zn(0),Ba(!1)},onOk:()=>tr(void 0,null,function*(){var bn;Ge(!0);const pn=yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/running_image.json`,{method:"post",body:{cpu_memory_limit:fa==null?void 0:fa.cpu_memory_limit_config[Number(Ri)],time_limit:(bn=fa==null?void 0:fa.time_limit_config[Number($t)])==null?void 0:bn.value}});(pn==null?void 0:pn.status)===0&&(Ye?Fe.history.push(`/shixuns/new/${kt==null?void 0:kt.experid}/imagepreview?operation=update_image`):Fe.history.push(`/shixuns/new/${kt==null?void 0:kt.experid}/imagepreview`)),Ge(!1),Ba(!1)})},de.createElement("div",{style:{paddingTop:20}},Ye&&de.createElement("div",{style:{marginBottom:"30px",backgroundColor:"rgba(255,157,24,0.1)",height:"42px",lineHeight:"42px"}},de.createElement("i",{className:"iconfont icon-tishi4",style:{color:"#FF9D18",paddingLeft:20}}),de.createElement("span",{style:{paddingLeft:"6px",color:"#FF9D18"}},"\u66F4\u65B0\u955C\u50CF\u540E\uFF0C\u539F\u6765\u7684\u955C\u50CF\u5C06\u88AB\u8986\u76D6\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u76F8\u5173\u7684\u5B9E\u8DF5\u9879\u76EE\u3002")),de.createElement(Ft.Z,{required:!0,name:"\u914D\u7F6E",align:"center",nameWidth:60},de.createElement("div",{className:xt.cpuWrap},(wr=fa==null?void 0:fa.cpu_memory_limit_config)==null?void 0:wr.map((bn,pn)=>de.createElement("div",{className:Ri===pn?xt.activebtn:xt.btn,onClick:()=>hn(pn)},de.createElement("div",null,bn),Ri===pn?de.createElement("div",null,de.createElement("i",{className:"iconfont icon-xuanzhong9",style:{paddingRight:12}})):"")))),de.createElement(Ft.Z,{required:!0,name:"\u65F6\u957F",align:"center",nameWidth:60},(nr=fa==null?void 0:fa.time_limit_config)==null?void 0:nr.map((bn,pn)=>de.createElement("span",{className:$t===pn?xt.activeTab:xt.tab,onClick:()=>Zn(pn)},bn.name))))),de.createElement(Lt.default,{centered:!0,title:"\u7533\u8BF7\u516C\u5F00",open:Ya,okText:"\u786E\u5B9A",maskClosable:!1,confirmLoading:$e,cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{ka(!1)},onOk:()=>tr(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/apply_public.json`,{method:"post"})).status===0&&(Me.ZP.success("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"),tt()),Ge(!1),ka(!1)})},de.createElement("div",{className:xt.note},de.createElement("p",null,"1.\u7533\u8BF7\u516C\u5F00\u524D\uFF0C\u8BF7\u4FDD\u8BC1\u955C\u50CF\u662F\u53EF\u8FD0\u884C\u7684\uFF0C\u5E76\u68C0\u67E5\u8BE5\u5B9E\u9A8C\u955C\u50CF\u662F\u5426\u7B26\u5408\u5E73\u53F0\u7684\u89C4\u8303\u6807\u51C6\u3002"),de.createElement("p",null,"2.\u516C\u5F00\u7684\u955C\u50CF\u5C06\u8D21\u732E\u7ED9\u5E73\u53F0\u6240\u6709\u4EBA\u8FDB\u884C\u4F7F\u7528\uFF0C\u82E5\u4EC5\u672C\u4EBA\u6559\u5B66\u4F7F\u7528\u5219\u65E0\u9700\u7533\u8BF7\u516C\u5F00\u3002"),de.createElement("p",null,"3.\u516C\u5F00\u955C\u50CF\u9700\u7ECF\u8FC7\u5E73\u53F0\u6807\u51C6\u5316\u5BA1\u6838\uFF0C\u5BA1\u6838\u5468\u671F\u4E3A1-2\u5929\u3002"),de.createElement("p",null,"\u4F60\u786E\u5B9A\u8981\u7533\u8BF7\u516C\u5F00\u5417\uFF1F"))),de.createElement(yn.Z,{visible:Rr,setVisible:Di,mirrorId:kt==null?void 0:kt.experid,getData:tt}),de.createElement(Lt.default,{centered:!0,width:518,title:"\u5171\u4EAB\u955C\u50CF",open:Gi,okText:"\u786E\u5B9A",maskClosable:!1,confirmLoading:$e,cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{qr(!1)},onOk:()=>tr(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)("/api/teach_group_shares.json",{method:"post",body:{ids:[kt==null?void 0:kt.experid],clazz:"UserMirror",group_ids:Xr}})).status===0&&(Xr.length>0?Me.ZP.success("\u5171\u4EAB\u6210\u529F"):Me.ZP.success("\u64A4\u9500\u6210\u529F"),Qn(),tt()),Ge(!1),qr(!1)})},de.createElement("div",{style:{marginBottom:"30px",backgroundColor:"rgba(255,157,24,0.1)",width:"468px",height:"42px",lineHeight:"42px"}},de.createElement("i",{className:"iconfont icon-tishi4",style:{color:"#FF9D18",paddingLeft:20}}),de.createElement("span",{style:{paddingLeft:"6px",color:"#FF9D18"}},"\u8BE5\u955C\u50CF\u4EC5\u5171\u4EAB\u7ED9\u9009\u4E2D\u7684\u6559\u7814\u56E2\u961F\uFF0C\u53D6\u6D88\u9009\u4E2D\u5E76\u786E\u5B9A\u5373\u53EF\u64A4\u9500\u5171\u4EAB\u3002")),de.createElement("div",{style:{maxHeight:"260px",overflowY:"auto"}},de.createElement(it.default.Group,{defaultValue:Xr,value:Xr,style:{flexDirection:"column"},onChange:bn=>{Pi(bn)}},di==null?void 0:di.map(bn=>de.createElement(it.default,{checked:!!Xr.some(pn=>pn===bn.group_id),style:{marginBottom:14},value:bn.group_id},bn.name))))),de.createElement(Lt.default,{centered:!0,title:"\u53D6\u6D88\u5171\u4EAB",open:Mr,maskClosable:!1,confirmLoading:$e,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{ua(!1)},onOk:()=>tr(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)(`/api/teach_group_shares/${Ji}.json`,{method:"delete"})).status===0&&(Me.ZP.success("\u53D6\u6D88\u6210\u529F"),Qn(),tt()),Ge(!1),ua(!1)})},de.createElement("div",null,"\u53D6\u6D88\u5171\u4EAB\u540E\uFF0C\u955C\u50CF\u5C06\u4E0D\u518D\u5171\u4EAB\u7ED9\u8BE5\u6559\u7814\u56E2\u961F\u3002\u786E\u5B9A\u8981\u53D6\u6D88\u5171\u4EAB\u5417\uFF1F")),de.createElement(Lt.default,{centered:!0,title:"\u5220\u9664\u811A\u672C",open:ta,okText:"\u786E\u5B9A",maskClosable:!1,confirmLoading:$e,cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{Ra(!1)},onOk:()=>tr(void 0,null,function*(){Ge(!0),(yield(0,Ce.ZP)("/api/user_mirrors/delete_mirror_script.json",{method:"delete",body:{script_id:Ji}})).status===0&&(Me.ZP.success("\u5220\u9664\u6210\u529F"),wn()),Ge(!1),Ra(!1)})},de.createElement("div",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u811A\u672C\u5417\uFF1F")),de.createElement(Lt.default,{centered:!0,width:1200,title:"\u6DFB\u52A0\u811A\u672C",style:{paddingTop:15},open:Oi,footer:null,maskClosable:!1,destroyOnClose:!0,onCancel:()=>{Sr.setFieldsValue({name:"",description:"",script:""}),la(!1)}},de.createElement(Se.default,{form:Sr,className:xt.formModal,onValuesChange:Nt,scrollToFirstError:!0,layout:"horizontal"},de.createElement(Se.default.Item,{label:"\u811A\u672C\u540D\u79F0",name:"name",className:xt.errorTip,colon:!1,rules:[{required:!0,message:"\u811A\u672C\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},de.createElement(xe.default,{size:"large"})),de.createElement(Se.default.Item,{label:"\u811A\u672C\u8BF4\u660E",name:"description",colon:!1},de.createElement(xe.default,{size:"large"})),de.createElement(Se.default.Item,{label:"\u8BC4\u6D4B\u811A\u672C",name:"script",colon:!1},de.createElement(Vt.ZP,{height:272,style:{border:"1px solid #ccc"},language:"shell",theme:"vs-light"}))),de.createElement("div",{className:xt.modalBtns},de.createElement(ge.ZP,{onClick:()=>{Sr.setFieldsValue({name:"",description:"",script:""}),la(!1)},className:xt.cancel},"\u53D6\u6D88 "),de.createElement(ge.ZP,{onClick:()=>tr(void 0,null,function*(){const bn=gn({},yield Sr.validateFields());Ge(!0),(yield(0,Ce.ZP)(`/api/user_mirrors/${kt==null?void 0:kt.experid}/add_mirror_scripts.json`,{method:"post",body:or(gn({},bn),{id:kt==null?void 0:kt.experid})})).status===0&&(Me.ZP.success("\u6DFB\u52A0\u6210\u529F"),wn(),Sr.setFieldsValue({name:"",description:"",script:""})),Ge(!1),la(!1)}),className:xt.confirm,type:"primary",loading:$e},"\u786E\u5B9A "))),de.createElement(Lt.default,{centered:!0,width:1200,title:"\u7F16\u8F91\u811A\u672C",style:{paddingTop:15},className:xt.errorTip,open:ca,footer:null,maskClosable:!1,destroyOnClose:!0,onCancel:()=>{Sr.setFieldsValue({name:"",description:"",script:""}),Xi(!1)}},de.createElement(Se.default,{form:Sr,className:xt.formModal,onValuesChange:Nt,scrollToFirstError:!0,layout:"horizontal"},de.createElement(Se.default.Item,{label:"\u811A\u672C\u540D\u79F0",name:"name",colon:!1,rules:[{required:!0,message:"\u811A\u672C\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},de.createElement(xe.default,{size:"large"})),de.createElement(Se.default.Item,{label:"\u811A\u672C\u8BF4\u660E",name:"description",colon:!1},de.createElement(xe.default,{size:"large"})),de.createElement(Se.default.Item,{label:"\u8BC4\u6D4B\u811A\u672C",name:"script",colon:!1},de.createElement(Vt.ZP,{height:272,style:{border:"1px solid #ccc"},language:"shell",theme:"vs-light"}))),de.createElement("div",{className:xt.modalBtns},de.createElement(ge.ZP,{onClick:()=>{Sr.setFieldsValue({name:"",description:"",script:""}),Xi(!1)},className:xt.cancel},"\u53D6\u6D88 "),de.createElement(ge.ZP,{onClick:()=>tr(void 0,null,function*(){Ge(!0);const bn=gn({},yield Sr.validateFields());(yield(0,Ce.ZP)("/api/user_mirrors/update_mirror_scripts.json",{method:"put",body:or(gn({},bn),{script_id:Ji})})).status===0&&(Sr.setFieldsValue({name:"",description:"",script:""}),Me.ZP.success("\u7F16\u8F91\u6210\u529F"),wn()),Ge(!1),Xi(!1)}),className:xt.confirm,type:"primary",loading:$e},"\u786E\u5B9A ")))))};var jr=(0,Fe.connect)(({classroomList:yr,loading:br,globalSetting:Cr,user:zr})=>({classroomList:yr,globalSetting:Cr,loading:br.models.classroomList,user:zr}))(Hr);const vr=({globalSetting:yr})=>{var br;switch(Number((br=yr==null?void 0:yr.setting)==null?void 0:br.theme)){case oe.Fy.THEMEONE:return de.createElement(It,null);case oe.Fy.THEMETWO:return de.createElement(jr,null);case oe.Fy.DEFAULT:default:return de.createElement(lr,null)}};var Kr=(0,Fe.connect)(({globalSetting:yr})=>({globalSetting:yr}))(vr)},87281:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Ce}});var oe=ne(67294),de=ne(22150),Fe=ne(2453),Xe=ne(14446),Se=ne(69677),Me=ne(71577),ce=ne(33170),we=ne(91304),ge={errorTip:"errorTip___A7o3U",btns:"btns___TNmPX",confirm:"confirm___J5V2N",cancel:"cancel___Rb_ks",formWrap:"formWrap___vL_Qc"},Be=ne(60580),Qe=Object.defineProperty,Oe=Object.defineProperties,et=Object.getOwnPropertyDescriptors,ot=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,xe=(be,Ze,je)=>Ze in be?Qe(be,Ze,{enumerable:!0,configurable:!0,writable:!0,value:je}):be[Ze]=je,mt=(be,Ze)=>{for(var je in Ze||(Ze={}))nt.call(Ze,je)&&xe(be,je,Ze[je]);if(ot)for(var je of ot(Ze))Ve.call(Ze,je)&&xe(be,je,Ze[je]);return be},Lt=(be,Ze)=>Oe(be,et(Ze)),it=(be,Ze,je)=>new Promise((Et,ft)=>{var ut=wt=>{try{Vt(je.next(wt))}catch(yn){ft(yn)}},Re=wt=>{try{Vt(je.throw(wt))}catch(yn){ft(yn)}},Vt=wt=>wt.done?Et(wt.value):Promise.resolve(wt.value).then(ut,Re);Vt((je=je.apply(be,Ze)).next())}),Ce=({visible:be,mirrorId:Ze,setVisible:je,getData:Et})=>{const[ft]=de.default.useForm(),[ut,Re]=(0,oe.useState)({}),[Vt,wt]=(0,oe.useState)(""),[yn,Ft]=(0,oe.useState)(!1);(0,oe.useEffect)(()=>{Ze!=null&&be&&ln()},[Ze,be]);const ln=()=>it(void 0,null,function*(){const Ae=yield(0,ce.ZP)(`/api/user_mirrors/${Ze}.json`,{method:"get"});(Ae==null?void 0:Ae.status)===0&&(ft.setFieldsValue(mt({},Ae==null?void 0:Ae.data)),Re(mt({},Ae==null?void 0:Ae.data)))}),Kn=()=>{je(!1),Re({}),ft.setFieldsValue({})},rt=()=>it(void 0,null,function*(){Ft(!0);const Ae=mt({},yield ft.validateFields());(yield(0,ce.ZP)(`/api/user_mirrors/${Ze}.json`,{method:"put",body:{type_name:Ae==null?void 0:Ae.type_name,description:Ae==null?void 0:Ae.description}})).status===0&&(Fe.ZP.success("\u4FEE\u6539\u6210\u529F"),Et()),Ft(!1),je(!1)}),dt=Ae=>it(void 0,null,function*(){const Bt=yield(0,ce.ZP)("/api/user_mirrors/check_mirror_name.json",{method:"post",body:{type_name:Ae,id:Ze}});return(Bt==null?void 0:Bt.status)===0?{state:!1}:{state:!0,msg:Bt==null?void 0:Bt.message}});return oe.createElement(Xe.default,{centered:!0,width:1200,title:"\u4FEE\u6539\u955C\u50CF\u4FE1\u606F",maskClosable:!1,open:be,destroyOnClose:!0,footer:null,onCancel:Kn},oe.createElement(de.default,{style:{marginTop:20},form:ft,scrollToFirstError:!0,layout:"horizontal",className:ge.formWrap},oe.createElement(de.default.Item,{label:"\u955C\u50CF\u540D\u79F0",name:"type_name",colon:!1,className:ge.errorTip,rules:[{required:!0,message:""},{validator:(Ae,Bt)=>it(void 0,null,function*(){const Cn=yield dt(Bt);return(Cn==null?void 0:Cn.state)===!0?Promise.reject(Cn==null?void 0:Cn.msg):Promise.resolve()})}]},oe.createElement(Se.default,{size:"large",maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u955C\u50CF\u540D\u79F0"})),oe.createElement(de.default.Item,{label:"\u955C\u50CF\u63CF\u8FF0",name:"description",colon:!1},oe.createElement(we.Z,{watch:!0,height:300,placeholder:"",defaultValue:ut==null?void 0:ut.description,onChange:Ae=>{ft.setFieldsValue(Lt(mt({},ft.getFieldsValue()),{description:Ae})),Re(Lt(mt({},ut),{description:Ae}))},onBlur:Ae=>{ft.setFieldsValue(Lt(mt({},ft.getFieldsValue()),{description:Ae})),Re(Lt(mt({},ut),{description:Ae}))}}))),oe.createElement("div",{className:ge.btns},oe.createElement(Me.ZP,{onClick:Kn,className:ge.cancel},"\u53D6\u6D88 "),oe.createElement(Be.Z,{type:"primary",className:ge.confirm,onClick:()=>it(void 0,null,function*(){yield rt()})},"\u786E\u5B9A")))}},38780:function(An,Jt){"use strict";function ne(){const oe=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let de=1;de<arguments.length;de++){const Fe=de<0||arguments.length<=de?void 0:arguments[de];Fe&&Object.keys(Fe).forEach(Xe=>{const Se=Fe[Xe];Se!==void 0&&(oe[Xe]=Se)})}return oe}Jt.Z=ne},81643:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return oe}});const oe=de=>de?typeof de=="function"?de():de:null},66367:function(An,Jt,ne){"use strict";ne.d(Jt,{F:function(){return oe},Z:function(){return de}});function oe(Fe){return Fe!=null&&Fe===Fe.window}function de(Fe,Xe){var Se,Me;if(typeof window=="undefined")return 0;const ce=Xe?"scrollTop":"scrollLeft";let we=0;return oe(Fe)?we=Fe[Xe?"pageYOffset":"pageXOffset"]:Fe instanceof Document?we=Fe.documentElement[ce]:(Fe instanceof HTMLElement||Fe)&&(we=Fe[ce]),Fe&&!oe(Fe)&&typeof we!="number"&&(we=(Me=((Se=Fe.ownerDocument)!==null&&Se!==void 0?Se:Fe).documentElement)===null||Me===void 0?void 0:Me[ce]),we}},57838:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return de}});var oe=ne(67294);function de(){const[,Fe]=oe.useReducer(Xe=>Xe+1,0);return Fe}},58375:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Xe}});var oe=ne(96523);function de(Se,Me,ce,we){const ge=ce-Me;return Se/=we/2,Se<1?ge/2*Se*Se*Se+Me:ge/2*((Se-=2)*Se*Se+2)+Me}var Fe=ne(66367);function Xe(Se){let Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ce=()=>window,callback:we,duration:ge=450}=Me,Be=ce(),Qe=(0,Fe.Z)(Be,!0),Oe=Date.now(),et=()=>{const nt=Date.now()-Oe,Ve=de(nt>ge?ge:nt,Qe,Se,ge);(0,Fe.F)(Be)?Be.scrollTo(window.pageXOffset,Ve):Be instanceof Document||Be.constructor.name==="HTMLDocument"?Be.documentElement.scrollTop=Ve:Be.scrollTop=Ve,nt<ge?(0,oe.Z)(et):typeof we=="function"&&we()};(0,oe.Z)(et)}},9708:function(An,Jt,ne){"use strict";ne.d(Jt,{F:function(){return Se},Z:function(){return Xe}});var oe=ne(94184),de=ne.n(oe);const Fe=null;function Xe(Me,ce,we){return de()({[`${Me}-status-success`]:ce==="success",[`${Me}-status-warning`]:ce==="warning",[`${Me}-status-error`]:ce==="error",[`${Me}-status-validating`]:ce==="validating",[`${Me}-has-feedback`]:we})}const Se=(Me,ce)=>ce||Me},84567:function(An,Jt,ne){"use strict";ne.d(Jt,{default:function(){return Ze}});var oe=ne(94184),de=ne.n(oe),Fe=ne(95860),Xe=ne(67294),Se=ne(53124),Me=ne(98866),ce=ne(65223),ge=Xe.createContext(null),Be=ne(63185),Qe=ne(45353),Oe=ne(92429),et=function(je,Et){var ft={};for(var ut in je)Object.prototype.hasOwnProperty.call(je,ut)&&Et.indexOf(ut)<0&&(ft[ut]=je[ut]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,ut=Object.getOwnPropertySymbols(je);Re<ut.length;Re++)Et.indexOf(ut[Re])<0&&Object.prototype.propertyIsEnumerable.call(je,ut[Re])&&(ft[ut[Re]]=je[ut[Re]]);return ft};const ot=(je,Et)=>{var ft;const{prefixCls:ut,className:Re,rootClassName:Vt,children:wt,indeterminate:yn=!1,style:Ft,onMouseEnter:ln,onMouseLeave:Kn,skipGroup:rt=!1,disabled:dt}=je,Ae=et(je,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Bt,direction:Cn,checkbox:en}=Xe.useContext(Se.E_),Ct=Xe.useContext(ge),{isFormItemInput:Rt}=Xe.useContext(ce.aM),tn=Xe.useContext(Me.Z),cr=(ft=(Ct==null?void 0:Ct.disabled)||dt)!==null&&ft!==void 0?ft:tn,Gn=Xe.useRef(Ae.value);Xe.useEffect(()=>{Ct==null||Ct.registerValue(Ae.value)},[]),Xe.useEffect(()=>{if(!rt)return Ae.value!==Gn.current&&(Ct==null||Ct.cancelValue(Gn.current),Ct==null||Ct.registerValue(Ae.value),Gn.current=Ae.value),()=>Ct==null?void 0:Ct.cancelValue(Ae.value)},[Ae.value]);const qt=Bt("checkbox",ut),[Fn,lr]=(0,Be.ZP)(qt),nn=Object.assign({},Ae);Ct&&!rt&&(nn.onChange=function(){Ae.onChange&&Ae.onChange.apply(Ae,arguments),Ct.toggleOption&&Ct.toggleOption({label:wt,value:Ae.value})},nn.name=Ct.name,nn.checked=Ct.value.includes(Ae.value));const ze=de()(`${qt}-wrapper`,{[`${qt}-rtl`]:Cn==="rtl",[`${qt}-wrapper-checked`]:nn.checked,[`${qt}-wrapper-disabled`]:cr,[`${qt}-wrapper-in-form-item`]:Rt},en==null?void 0:en.className,Re,Vt,lr),ue=de()({[`${qt}-indeterminate`]:yn},Oe.A,lr),fe=yn?"mixed":void 0;return Fn(Xe.createElement(Qe.Z,{component:"Checkbox",disabled:cr},Xe.createElement("label",{className:ze,style:Object.assign(Object.assign({},en==null?void 0:en.style),Ft),onMouseEnter:ln,onMouseLeave:Kn},Xe.createElement(Fe.Z,Object.assign({"aria-checked":fe},nn,{prefixCls:qt,className:ue,disabled:cr,ref:Et})),wt!==void 0&&Xe.createElement("span",null,wt))))};var Ve=Xe.forwardRef(ot),xe=ne(74902),mt=ne(10366),Lt=function(je,Et){var ft={};for(var ut in je)Object.prototype.hasOwnProperty.call(je,ut)&&Et.indexOf(ut)<0&&(ft[ut]=je[ut]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,ut=Object.getOwnPropertySymbols(je);Re<ut.length;Re++)Et.indexOf(ut[Re])<0&&Object.prototype.propertyIsEnumerable.call(je,ut[Re])&&(ft[ut[Re]]=je[ut[Re]]);return ft};const it=(je,Et)=>{const{defaultValue:ft,children:ut,options:Re=[],prefixCls:Vt,className:wt,rootClassName:yn,style:Ft,onChange:ln}=je,Kn=Lt(je,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:rt,direction:dt}=Xe.useContext(Se.E_),[Ae,Bt]=Xe.useState(Kn.value||ft||[]),[Cn,en]=Xe.useState([]);Xe.useEffect(()=>{"value"in Kn&&Bt(Kn.value||[])},[Kn.value]);const Ct=Xe.useMemo(()=>Re.map(ve=>typeof ve=="string"||typeof ve=="number"?{label:ve,value:ve}:ve),[Re]),Rt=ve=>{en(he=>he.filter(le=>le!==ve))},tn=ve=>{en(he=>[].concat((0,xe.Z)(he),[ve]))},cr=ve=>{const he=Ae.indexOf(ve.value),le=(0,xe.Z)(Ae);he===-1?le.push(ve.value):le.splice(he,1),"value"in Kn||Bt(le),ln==null||ln(le.filter(Ne=>Cn.includes(Ne)).sort((Ne,Te)=>{const gt=Ct.findIndex(Tt=>Tt.value===Ne),At=Ct.findIndex(Tt=>Tt.value===Te);return gt-At}))},Gn=rt("checkbox",Vt),qt=`${Gn}-group`,[Fn,lr]=(0,Be.ZP)(Gn),nn=(0,mt.Z)(Kn,["value","disabled"]),ze=Re.length?Ct.map(ve=>Xe.createElement(Ve,{prefixCls:Gn,key:ve.value.toString(),disabled:"disabled"in ve?ve.disabled:Kn.disabled,value:ve.value,checked:Ae.includes(ve.value),onChange:ve.onChange,className:`${qt}-item`,style:ve.style,title:ve.title},ve.label)):ut,ue={toggleOption:cr,value:Ae,disabled:Kn.disabled,name:Kn.name,registerValue:tn,cancelValue:Rt},fe=de()(qt,{[`${qt}-rtl`]:dt==="rtl"},wt,yn,lr);return Fn(Xe.createElement("div",Object.assign({className:fe,style:Ft},nn,{ref:Et}),Xe.createElement(ge.Provider,{value:ue},ze)))},pt=Xe.forwardRef(it);var Ce=Xe.memo(pt);const be=Ve;be.Group=Ce,be.__ANT_CHECKBOX=!0;var Ze=be},63185:function(An,Jt,ne){"use strict";ne.d(Jt,{C2:function(){return Se}});var oe=ne(14747),de=ne(45503),Fe=ne(67968);const Xe=Me=>{const{checkboxCls:ce}=Me,we=`${ce}-wrapper`;return[{[`${ce}-group`]:Object.assign(Object.assign({},(0,oe.Wf)(Me)),{display:"inline-flex",flexWrap:"wrap",columnGap:Me.marginXS,[`> ${Me.antCls}-row`]:{flex:1}}),[we]:Object.assign(Object.assign({},(0,oe.Wf)(Me)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${we}`]:{marginInlineStart:0},[`&${we}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ce]:Object.assign(Object.assign({},(0,oe.Wf)(Me)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Me.borderRadiusSM,alignSelf:"center",[`${ce}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ce}-inner`]:Object.assign({},(0,oe.oN)(Me))},[`${ce}-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}})},{[`
${we}:not(${we}-disabled),
${ce}:not(${ce}-disabled)
`]:{[`&:hover ${ce}-inner`]:{borderColor:Me.colorPrimary}},[`${we}:not(${we}-disabled)`]:{[`&:hover ${ce}-checked:not(${ce}-disabled) ${ce}-inner`]:{backgroundColor:Me.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ce}-checked:not(${ce}-disabled):after`]:{borderColor:Me.colorPrimaryHover}}},{[`${ce}-checked`]:{[`${ce}-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}`}}},[`
${we}-checked:not(${we}-disabled),
${ce}-checked:not(${ce}-disabled)
`]:{[`&:hover ${ce}-inner`]:{backgroundColor:Me.colorPrimaryHover,borderColor:"transparent"}}},{[ce]:{"&-indeterminate":{[`${ce}-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:'""'}}}}},{[`${we}-disabled`]:{cursor:"not-allowed"},[`${ce}-disabled`]:{[`&, ${ce}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ce}-inner`]:{background:Me.colorBgContainerDisabled,borderColor:Me.colorBorder,"&:after":{borderColor:Me.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Me.colorTextDisabled},[`&${ce}-indeterminate ${ce}-inner::after`]:{background:Me.colorTextDisabled}}}]};function Se(Me,ce){const we=(0,de.TS)(ce,{checkboxCls:`.${Me}`,checkboxSize:ce.controlInteractiveSize});return[Xe(we)]}Jt.ZP=(0,Fe.Z)("Checkbox",(Me,ce)=>{let{prefixCls:we}=ce;return[Se(we,Me)]})},88258:function(An,Jt,ne){"use strict";var oe=ne(67294),de=ne(53124),Fe=ne(32983);const Xe=Se=>{const{componentName:Me}=Se,{getPrefixCls:ce}=(0,oe.useContext)(de.E_),we=ce("empty");switch(Me){case"Table":case"List":return oe.createElement(Fe.Z,{image:Fe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return oe.createElement(Fe.Z,{image:Fe.Z.PRESENTED_IMAGE_SIMPLE,className:`${we}-small`});default:return oe.createElement(Fe.Z,null)}};Jt.Z=Xe},72565:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Ri}});var oe=ne(94184),de=ne.n(oe),Fe=ne(1413),Xe=ne(97685),Se=ne(67294),Me=ne(73935);function ce(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var we={};function ge(hn,$t){}function Be(hn,$t){}function Qe(){we={}}function Oe(hn,$t,Zn){!$t&&!we[Zn]&&(hn(!1,Zn),we[Zn]=!0)}function et(hn,$t){Oe(ge,hn,$t)}function ot(hn,$t){Oe(Be,hn,$t)}var nt=null,Ve=ne(71002),xe=ne(18459);function mt(hn,$t,Zn){var gr=Se.useRef({});return(!("value"in gr.current)||Zn(gr.current.condition,$t))&&(gr.current.value=hn(),gr.current.condition=$t),gr.current.value}function Lt(hn,$t){typeof hn=="function"?hn($t):(0,Ve.Z)(hn)==="object"&&hn&&"current"in hn&&(hn.current=$t)}function it(){for(var hn=arguments.length,$t=new Array(hn),Zn=0;Zn<hn;Zn++)$t[Zn]=arguments[Zn];var gr=$t.filter(function(Er){return Er});return gr.length<=1?gr[0]:function(Er){$t.forEach(function(ri){Lt(ri,Er)})}}function pt(){for(var hn=arguments.length,$t=new Array(hn),Zn=0;Zn<hn;Zn++)$t[Zn]=arguments[Zn];return mt(function(){return it.apply(void 0,$t)},$t,function(gr,Er){return gr.length===Er.length&&gr.every(function(ri,pi){return ri===Er[pi]})})}function Ce(hn){var $t,Zn,gr=(0,xe.isMemo)(hn)?hn.type.type:hn.type;return!(typeof gr=="function"&&!(($t=gr.prototype)!==null&&$t!==void 0&&$t.render)||typeof hn=="function"&&!((Zn=hn.prototype)!==null&&Zn!==void 0&&Zn.render))}var be=Se.createContext(null),Ze=be,je=ne(74902),Et=ce()?Se.useLayoutEffect:Se.useEffect,ft=Et,ut=function($t,Zn){var gr=React.useRef(!0);Et(function(){if(!gr.current)return $t()},Zn),Et(function(){return gr.current=!1,function(){gr.current=!0}},[])},Re=[];function Vt(hn,$t){var Zn=Se.useState(function(){if(!ce())return null;var In=document.createElement("div");return In}),gr=(0,Xe.Z)(Zn,1),Er=gr[0],ri=Se.useRef(!1),pi=Se.useContext(Ze),Si=Se.useState(Re),vi=(0,Xe.Z)(Si,2),Ai=vi[0],Ti=vi[1],$i=pi||(ri.current?void 0:function(In){Ti(function(Vn){var me=[In].concat((0,je.Z)(Vn));return me})});function qi(){Er.parentElement||document.body.appendChild(Er),ri.current=!0}function Pn(){var In;(In=Er.parentElement)===null||In===void 0||In.removeChild(Er),ri.current=!1}return ft(function(){return hn?pi?pi(qi):qi():Pn(),Pn},[hn]),ft(function(){Ai.length&&(Ai.forEach(function(In){return In()}),Ti(Re))},[Ai]),[Er,$i]}function wt(hn,$t){if(!hn)return!1;if(hn.contains)return hn.contains($t);for(var Zn=$t;Zn;){if(Zn===hn)return!0;Zn=Zn.parentNode}return!1}var yn="data-rc-order",Ft="rc-util-key",ln=new Map;function Kn(){var hn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$t=hn.mark;return $t?$t.startsWith("data-")?$t:"data-".concat($t):Ft}function rt(hn){if(hn.attachTo)return hn.attachTo;var $t=document.querySelector("head");return $t||document.body}function dt(hn){return hn==="queue"?"prependQueue":hn?"prepend":"append"}function Ae(hn){return Array.from((ln.get(hn)||hn).children).filter(function($t){return $t.tagName==="STYLE"})}function Bt(hn){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ce())return null;var Zn=$t.csp,gr=$t.prepend,Er=document.createElement("style");Er.setAttribute(yn,dt(gr)),Zn!=null&&Zn.nonce&&(Er.nonce=Zn==null?void 0:Zn.nonce),Er.innerHTML=hn;var ri=rt($t),pi=ri.firstChild;if(gr){if(gr==="queue"){var Si=Ae(ri).filter(function(vi){return["prepend","prependQueue"].includes(vi.getAttribute(yn))});if(Si.length)return ri.insertBefore(Er,Si[Si.length-1].nextSibling),Er}ri.insertBefore(Er,pi)}else ri.appendChild(Er);return Er}function Cn(hn){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Zn=rt($t);return Ae(Zn).find(function(gr){return gr.getAttribute(Kn($t))===hn})}function en(hn){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Zn=Cn(hn,$t);if(Zn){var gr=rt($t);gr.removeChild(Zn)}}function Ct(hn,$t){var Zn=ln.get(hn);if(!Zn||!wt(document,Zn)){var gr=Bt("",$t),Er=gr.parentNode;ln.set(hn,Er),hn.removeChild(gr)}}function Rt(){ln.clear()}function tn(hn,$t){var Zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},gr=rt(Zn);Ct(gr,Zn);var Er=Cn($t,Zn);if(Er){var ri,pi;if((ri=Zn.csp)!==null&&ri!==void 0&&ri.nonce&&Er.nonce!==((pi=Zn.csp)===null||pi===void 0?void 0:pi.nonce)){var Si;Er.nonce=(Si=Zn.csp)===null||Si===void 0?void 0:Si.nonce}return Er.innerHTML!==hn&&(Er.innerHTML=hn),Er}var vi=Bt(hn,Zn);return vi.setAttribute(Kn(Zn),$t),vi}var cr;function Gn(hn){if(typeof document=="undefined")return 0;if(hn||cr===void 0){var $t=document.createElement("div");$t.style.width="100%",$t.style.height="200px";var Zn=document.createElement("div"),gr=Zn.style;gr.position="absolute",gr.top="0",gr.left="0",gr.pointerEvents="none",gr.visibility="hidden",gr.width="200px",gr.height="150px",gr.overflow="hidden",Zn.appendChild($t),document.body.appendChild(Zn);var Er=$t.offsetWidth;Zn.style.overflow="scroll";var ri=$t.offsetWidth;Er===ri&&(ri=Zn.clientWidth),document.body.removeChild(Zn),cr=Er-ri}return cr}function qt(hn){var $t=hn.match(/^(.*)px$/),Zn=Number($t==null?void 0:$t[1]);return Number.isNaN(Zn)?Gn():Zn}function Fn(hn){if(typeof document=="undefined"||!hn||!(hn instanceof Element))return{width:0,height:0};var $t=getComputedStyle(hn,"::-webkit-scrollbar"),Zn=$t.width,gr=$t.height;return{width:qt(Zn),height:qt(gr)}}function lr(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var nn="rc-util-locker-".concat(Date.now()),ze=0;function ue(hn){var $t=!!hn,Zn=Se.useState(function(){return ze+=1,"".concat(nn,"_").concat(ze)}),gr=(0,Xe.Z)(Zn,1),Er=gr[0];ft(function(){if($t){var ri=Fn(document.body).width,pi=lr();tn(`
html body {
overflow-y: hidden;
`.concat(pi?"width: calc(100% - ".concat(ri,"px);"):"",`
}`),Er)}else en(Er);return function(){en(Er)}},[$t,Er])}var fe=!1;function ve(hn){return typeof hn=="boolean"&&(fe=hn),fe}var he=function($t){return $t===!1?!1:!ce()||!$t?null:typeof $t=="string"?document.querySelector($t):typeof $t=="function"?$t():$t},le=Se.forwardRef(function(hn,$t){var Zn=hn.open,gr=hn.autoLock,Er=hn.getContainer,ri=hn.debug,pi=hn.autoDestroy,Si=pi===void 0?!0:pi,vi=hn.children,Ai=Se.useState(Zn),Ti=(0,Xe.Z)(Ai,2),$i=Ti[0],qi=Ti[1],Pn=$i||Zn;Se.useEffect(function(){(Si||Zn)&&qi(Zn)},[Zn,Si]);var In=Se.useState(function(){return he(Er)}),Vn=(0,Xe.Z)(In,2),me=Vn[0],_e=Vn[1];Se.useEffect(function(){var Nn=he(Er);_e(Nn!=null?Nn:null)});var Ke=Vt(Pn&&!me,ri),Ye=(0,Xe.Z)(Ke,2),Je=Ye[0],$e=Ye[1],Ge=me!=null?me:Je;ue(gr&&Zn&&ce()&&(Ge===Je||Ge===document.body));var Xt=null;if(vi&&Ce(vi)&&$t){var un=vi;Xt=un.ref}var Wn=pt(Xt,$t);if(!Pn||!ce()||me===void 0)return null;var ar=Ge===!1||ve(),$n=vi;return $t&&($n=Se.cloneElement(vi,{ref:Wn})),Se.createElement(Ze.Provider,{value:$e},ar?$n:(0,Me.createPortal)($n,Ge))}),Ne=le,Te=Ne;function gt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var At=gt()?Se.useLayoutEffect:Se.useEffect,Tt=function($t,Zn){var gr=Se.useRef(!0);At(function(){return $t(gr.current)},Zn),At(function(){return gr.current=!1,function(){gr.current=!0}},[])},zt=function($t,Zn){Tt(function(gr){if(!gr)return $t()},Zn)},Ot=Tt,ht=Se.createContext(null),It=Se.createContext({}),xt=ht,sn=ne(4942),Kt=ne(87462),Un=ne(62874),bt={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($t){var Zn=$t.keyCode;if($t.altKey&&!$t.ctrlKey||$t.metaKey||Zn>=bt.F1&&Zn<=bt.F12)return!1;switch(Zn){case bt.ALT:case bt.CAPS_LOCK:case bt.CONTEXT_MENU:case bt.CTRL:case bt.DOWN:case bt.END:case bt.ESC:case bt.HOME:case bt.INSERT:case bt.LEFT:case bt.MAC_FF_META:case bt.META:case bt.NUMLOCK:case bt.NUM_CENTER:case bt.PAGE_DOWN:case bt.PAGE_UP:case bt.PAUSE:case bt.PRINT_SCREEN:case bt.RIGHT:case bt.SHIFT:case bt.UP:case bt.WIN_KEY:case bt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function($t){if($t>=bt.ZERO&&$t<=bt.NINE||$t>=bt.NUM_ZERO&&$t<=bt.NUM_MULTIPLY||$t>=bt.A&&$t<=bt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&$t===0)return!0;switch($t){case bt.SPACE:case bt.QUESTION_MARK:case bt.NUM_PLUS:case bt.NUM_MINUS:case bt.NUM_PERIOD:case bt.NUM_DIVISION:case bt.SEMICOLON:case bt.DASH:case bt.EQUALS:case bt.COMMA:case bt.PERIOD:case bt.SLASH:case bt.APOSTROPHE:case bt.SINGLE_QUOTE:case bt.OPEN_SQUARE_BRACKET:case bt.BACKSLASH:case bt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Pt=bt,vn=`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`,mn=`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`,gn="".concat(vn," ").concat(mn).split(/[\s\n]+/),or="aria-",er="data-";function tr(hn,$t){return hn.indexOf($t)===0}function Hr(hn){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Zn;$t===!1?Zn={aria:!0,data:!0,attr:!0}:$t===!0?Zn={aria:!0}:Zn=(0,Fe.Z)({},$t);var gr={};return Object.keys(hn).forEach(function(Er){(Zn.aria&&(Er==="role"||tr(Er,or))||Zn.data&&tr(Er,er)||Zn.attr&&gn.includes(Er))&&(gr[Er]=hn[Er])}),gr}function jr(hn){var $t=React.useRef();$t.current=hn;var Zn=React.useCallback(function(){for(var gr,Er=arguments.length,ri=new Array(Er),pi=0;pi<Er;pi++)ri[pi]=arguments[pi];return(gr=$t.current)===null||gr===void 0?void 0:gr.call.apply(gr,[$t].concat(ri))},[]);return Zn}function vr(hn){var $t=React.useRef(!1),Zn=React.useState(hn),gr=_slicedToArray(Zn,2),Er=gr[0],ri=gr[1];React.useEffect(function(){return $t.current=!1,function(){$t.current=!0}},[]);function pi(Si,vi){vi&&$t.current||ri(Si)}return[Er,pi]}function Kr(hn){return hn!==void 0}function yr(hn,$t){var Zn=$t||{},gr=Zn.defaultValue,Er=Zn.value,ri=Zn.onChange,pi=Zn.postState,Si=useState(function(){return Kr(Er)?Er:Kr(gr)?typeof gr=="function"?gr():gr:typeof hn=="function"?hn():hn}),vi=_slicedToArray(Si,2),Ai=vi[0],Ti=vi[1],$i=Er!==void 0?Er:Ai,qi=pi?pi($i):$i,Pn=useEvent(ri),In=useState([$i]),Vn=_slicedToArray(In,2),me=Vn[0],_e=Vn[1];useLayoutUpdateEffect(function(){var Ye=me[0];Ai!==Ye&&Pn(Ai,Ye)},[me]),useLayoutUpdateEffect(function(){Kr(Er)||Ti(Er)},[Er]);var Ke=useEvent(function(Ye,Je){Ti(Ye,Je),_e([$i],Je)});return[qi,Ke]}var br=ne(33993);function Cr(hn,$t,Zn){var gr=Se.useRef({});return(!("value"in gr.current)||Zn(gr.current.condition,$t))&&(gr.current.value=hn(),gr.current.condition=$t),gr.current.value}function zr(hn,$t){typeof hn=="function"?hn($t):(0,Ve.Z)(hn)==="object"&&hn&&"current"in hn&&(hn.current=$t)}function Wt(){for(var hn=arguments.length,$t=new Array(hn),Zn=0;Zn<hn;Zn++)$t[Zn]=arguments[Zn];var gr=$t.filter(function(Er){return Er});return gr.length<=1?gr[0]:function(Er){$t.forEach(function(ri){zr(ri,Er)})}}function On(){for(var hn=arguments.length,$t=new Array(hn),Zn=0;Zn<hn;Zn++)$t[Zn]=arguments[Zn];return Cr(function(){return Wt.apply(void 0,$t)},$t,function(gr,Er){return gr.length!==Er.length||gr.every(function(ri,pi){return ri!==Er[pi]})})}function qn(hn){var $t,Zn,gr=isMemo(hn)?hn.type.type:hn.type;return!(typeof gr=="function"&&!(($t=gr.prototype)!==null&&$t!==void 0&&$t.render)||typeof hn=="function"&&!((Zn=hn.prototype)!==null&&Zn!==void 0&&Zn.render))}function zn(hn){return!isValidElement(hn)||isFragment(hn)?!1:qn(hn)}function Jn(hn,$t,Zn,gr){if(!$t.length)return Zn;var Er=_toArray($t),ri=Er[0],pi=Er.slice(1),Si;return!hn&&typeof ri=="number"?Si=[]:Array.isArray(hn)?Si=_toConsumableArray(hn):Si=_objectSpread({},hn),gr&&Zn===void 0&&pi.length===1?delete Si[ri][pi[0]]:Si[ri]=Jn(Si[ri],pi,Zn,gr),Si}function pr(hn,$t,Zn){var gr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return $t.length&&gr&&Zn===void 0&&!get(hn,$t.slice(0,-1))?hn:Jn(hn,$t,Zn,gr)}function wr(hn){return _typeof(hn)==="object"&&hn!==null&&Object.getPrototypeOf(hn)===Object.prototype}function nr(hn){return Array.isArray(hn)?[]:{}}var St=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Zt(){for(var hn=arguments.length,$t=new Array(hn),Zn=0;Zn<hn;Zn++)$t[Zn]=arguments[Zn];var gr=nr($t[0]);return $t.forEach(function(Er){function ri(pi,Si){var vi=new Set(Si),Ai=get(Er,pi),Ti=Array.isArray(Ai);if(Ti||wr(Ai)){if(!vi.has(Ai)){vi.add(Ai);var $i=get(gr,pi);Ti?gr=pr(gr,pi,[]):(!$i||_typeof($i)!=="object")&&(gr=pr(gr,pi,nr(Ai))),St(Ai).forEach(function(qi){ri([].concat(_toConsumableArray(pi),[qi]),vi)})}}else gr=pr(gr,pi,Ai)}ri([])}),gr}var jt={},kn=[],lt=function($t){kn.push($t)};function Ut(hn,$t){if(0)var Zn}function ke(hn,$t){if(0)var Zn}function an(){jt={}}function kt(hn,$t,Zn){!$t&&!jt[Zn]&&(hn(!1,Zn),jt[Zn]=!0)}function Tn(hn,$t){kt(Ut,hn,$t)}function rr(hn,$t){kt(ke,hn,$t)}Tn.preMessage=lt,Tn.resetWarned=an,Tn.noteOnce=rr;var Gr=Tn,Nr=function($t){var Zn=$t.prefixCls,gr=$t.className,Er=$t.style,ri=$t.children,pi=$t.containerRef,Si=$t.id,vi=$t.onMouseEnter,Ai=$t.onMouseOver,Ti=$t.onMouseLeave,$i=$t.onClick,qi=$t.onKeyDown,Pn=$t.onKeyUp,In={onMouseEnter:vi,onMouseOver:Ai,onMouseLeave:Ti,onClick:$i,onKeyDown:qi,onKeyUp:Pn},Vn=Se.useContext(It),me=Vn.panel,_e=On(me,pi);return Se.createElement(Se.Fragment,null,Se.createElement("div",(0,Kt.Z)({id:Si,className:de()("".concat(Zn,"-content"),gr),style:(0,Fe.Z)({},Er),"aria-modal":"true",role:"dialog",ref:_e},In),ri))},Lr=Nr;function Ur(hn){return typeof hn=="string"&&String(Number(hn))===hn?(Gr(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(hn)):hn}function Sr(hn){warning(!("wrapperClassName"in hn),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!hn.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var ai={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ir(hn,$t){var Zn,gr,Er,ri,pi=hn.prefixCls,Si=hn.open,vi=hn.placement,Ai=hn.inline,Ti=hn.push,$i=hn.forceRender,qi=hn.autoFocus,Pn=hn.keyboard,In=hn.rootClassName,Vn=hn.rootStyle,me=hn.zIndex,_e=hn.className,Ke=hn.id,Ye=hn.style,Je=hn.motion,$e=hn.width,Ge=hn.height,Xt=hn.children,un=hn.contentWrapperStyle,Wn=hn.mask,ar=hn.maskClosable,$n=hn.maskMotion,Nn=hn.maskClassName,Bn=hn.maskStyle,rn=hn.afterOpenChange,Xn=hn.onClose,Ar=hn.onMouseEnter,ur=hn.onMouseOver,Mn=hn.onMouseLeave,mr=hn.onClick,Dr=hn.onKeyDown,_r=hn.onKeyUp,tt=Se.useRef(),at=Se.useRef(),on=Se.useRef();Se.useImperativeHandle($t,function(){return tt.current});var Qt=function(Ir){var Jr=Ir.keyCode,Zr=Ir.shiftKey;switch(Jr){case Pt.TAB:{if(Jr===Pt.TAB){if(!Zr&&document.activeElement===on.current){var Br;(Br=at.current)===null||Br===void 0||Br.focus({preventScroll:!0})}else if(Zr&&document.activeElement===at.current){var si;(si=on.current)===null||si===void 0||si.focus({preventScroll:!0})}}break}case Pt.ESC:{Xn&&Pn&&(Ir.stopPropagation(),Xn(Ir));break}}};Se.useEffect(function(){if(Si&&qi){var Tr;(Tr=tt.current)===null||Tr===void 0||Tr.focus({preventScroll:!0})}},[Si]);var Dn=Se.useState(!1),sr=(0,Xe.Z)(Dn,2),Mt=sr[0],Dt=sr[1],Nt=Se.useContext(xt),Gt;Ti===!1?Gt={distance:0}:Ti===!0?Gt={}:Gt=Ti||{};var Rn=(Zn=(gr=(Er=Gt)===null||Er===void 0?void 0:Er.distance)!==null&&gr!==void 0?gr:Nt==null?void 0:Nt.pushDistance)!==null&&Zn!==void 0?Zn:180,Qn=Se.useMemo(function(){return{pushDistance:Rn,push:function(){Dt(!0)},pull:function(){Dt(!1)}}},[Rn]);Se.useEffect(function(){if(Si){var Tr;Nt==null||(Tr=Nt.push)===null||Tr===void 0||Tr.call(Nt)}else{var Ir;Nt==null||(Ir=Nt.pull)===null||Ir===void 0||Ir.call(Nt)}},[Si]),Se.useEffect(function(){return function(){var Tr;Nt==null||(Tr=Nt.pull)===null||Tr===void 0||Tr.call(Nt)}},[]);var wn=Wn&&Se.createElement(Un.Z,(0,Kt.Z)({key:"mask"},$n,{visible:Si}),function(Tr,Ir){var Jr=Tr.className,Zr=Tr.style;return Se.createElement("div",{className:de()("".concat(pi,"-mask"),Jr,Nn),style:(0,Fe.Z)((0,Fe.Z)({},Zr),Bn),onClick:ar&&Si?Xn:void 0,ref:Ir})}),Yn=typeof Je=="function"?Je(vi):Je,kr={};if(Mt&&Rn)switch(vi){case"top":kr.transform="translateY(".concat(Rn,"px)");break;case"bottom":kr.transform="translateY(".concat(-Rn,"px)");break;case"left":kr.transform="translateX(".concat(Rn,"px)");break;default:kr.transform="translateX(".concat(-Rn,"px)");break}vi==="left"||vi==="right"?kr.width=Ur($e):kr.height=Ur(Ge);var bn={onMouseEnter:Ar,onMouseOver:ur,onMouseLeave:Mn,onClick:mr,onKeyDown:Dr,onKeyUp:_r},pn=Se.createElement(Un.Z,(0,Kt.Z)({key:"panel"},Yn,{visible:Si,forceRender:$i,onVisibleChanged:function(Ir){rn==null||rn(Ir)},removeOnLeave:!1,leavedClassName:"".concat(pi,"-content-wrapper-hidden")}),function(Tr,Ir){var Jr=Tr.className,Zr=Tr.style;return Se.createElement("div",(0,Kt.Z)({className:de()("".concat(pi,"-content-wrapper"),Jr),style:(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},kr),Zr),un)},Hr(hn,{data:!0})),Se.createElement(Lr,(0,Kt.Z)({id:Ke,containerRef:Ir,prefixCls:pi,className:_e,style:Ye},bn),Xt))}),_n=(0,Fe.Z)({},Vn);return me&&(_n.zIndex=me),Se.createElement(xt.Provider,{value:Qn},Se.createElement("div",{className:de()(pi,"".concat(pi,"-").concat(vi),In,(ri={},(0,sn.Z)(ri,"".concat(pi,"-open"),Si),(0,sn.Z)(ri,"".concat(pi,"-inline"),Ai),ri)),style:_n,tabIndex:-1,ref:tt,onKeyDown:Qt},wn,Se.createElement("div",{tabIndex:0,ref:at,style:ai,"aria-hidden":"true","data-sentinel":"start"}),pn,Se.createElement("div",{tabIndex:0,ref:on,style:ai,"aria-hidden":"true","data-sentinel":"end"})))}var Rr=Se.forwardRef(ir),Di=Rr,Gi=function($t){var Zn=$t.open,gr=Zn===void 0?!1:Zn,Er=$t.prefixCls,ri=Er===void 0?"rc-drawer":Er,pi=$t.placement,Si=pi===void 0?"right":pi,vi=$t.autoFocus,Ai=vi===void 0?!0:vi,Ti=$t.keyboard,$i=Ti===void 0?!0:Ti,qi=$t.width,Pn=qi===void 0?378:qi,In=$t.mask,Vn=In===void 0?!0:In,me=$t.maskClosable,_e=me===void 0?!0:me,Ke=$t.getContainer,Ye=$t.forceRender,Je=$t.afterOpenChange,$e=$t.destroyOnClose,Ge=$t.onMouseEnter,Xt=$t.onMouseOver,un=$t.onMouseLeave,Wn=$t.onClick,ar=$t.onKeyDown,$n=$t.onKeyUp,Nn=$t.panelRef,Bn=Se.useState(!1),rn=(0,Xe.Z)(Bn,2),Xn=rn[0],Ar=rn[1],ur=Se.useState(!1),Mn=(0,Xe.Z)(ur,2),mr=Mn[0],Dr=Mn[1];Ot(function(){Dr(!0)},[]);var _r=mr?gr:!1,tt=Se.useRef(),at=Se.useRef();Ot(function(){_r&&(at.current=document.activeElement)},[_r]);var on=function(Dt){var Nt;if(Ar(Dt),Je==null||Je(Dt),!Dt&&at.current&&!((Nt=tt.current)!==null&&Nt!==void 0&&Nt.contains(at.current))){var Gt;(Gt=at.current)===null||Gt===void 0||Gt.focus({preventScroll:!0})}},Qt=Se.useMemo(function(){return{panel:Nn}},[Nn]);if(!Ye&&!Xn&&!_r&&$e)return null;var Dn={onMouseEnter:Ge,onMouseOver:Xt,onMouseLeave:un,onClick:Wn,onKeyDown:ar,onKeyUp:$n},sr=(0,Fe.Z)((0,Fe.Z)({},$t),{},{open:_r,prefixCls:ri,placement:Si,autoFocus:Ai,keyboard:$i,width:Pn,mask:Vn,maskClosable:_e,inline:Ke===!1,afterOpenChange:on,ref:tt},Dn);return Se.createElement(It.Provider,{value:Qt},Se.createElement(Te,{open:_r||Ye||Xn,autoDestroy:!1,getContainer:Ke,autoLock:Vn&&(_r||Xn)},Se.createElement(Di,sr)))},qr=Gi,di=qr,Yi=ne(33603),Xr=ne(53124),Pi=ne(65223),Mr=ne(69760),ta=hn=>{const{prefixCls:$t,title:Zn,footer:gr,extra:Er,closeIcon:ri,closable:pi,onClose:Si,headerStyle:vi,drawerStyle:Ai,bodyStyle:Ti,footerStyle:$i,children:qi}=hn,Pn=Se.useCallback(Ke=>Se.createElement("button",{type:"button",onClick:Si,"aria-label":"Close",className:`${$t}-close`},Ke),[Si]),[In,Vn]=(0,Mr.Z)(pi,ri,Pn,void 0,!0),me=Se.useMemo(()=>!Zn&&!In?null:Se.createElement("div",{style:vi,className:de()(`${$t}-header`,{[`${$t}-header-close-only`]:In&&!Zn&&!Er})},Se.createElement("div",{className:`${$t}-header-title`},Vn,Zn&&Se.createElement("div",{className:`${$t}-title`},Zn)),Er&&Se.createElement("div",{className:`${$t}-extra`},Er)),[In,Vn,Er,vi,$t,Zn]),_e=Se.useMemo(()=>{if(!gr)return null;const Ke=`${$t}-footer`;return Se.createElement("div",{className:Ke,style:$i},gr)},[gr,$i,$t]);return Se.createElement("div",{className:`${$t}-wrapper-body`,style:Ai},me,Se.createElement("div",{className:`${$t}-body`,style:Ti},qi),_e)},Ra=ne(4173),ca=ne(67968),Xi=ne(45503),la=hn=>{const{componentCls:$t,motionDurationSlow:Zn}=hn,gr={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Zn}`}}};return{[$t]:{[`${$t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Zn}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${$t}-panel-motion`]:{"&-left":[gr,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[gr,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[gr,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[gr,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Ji=hn=>{const{componentCls:$t,zIndexPopup:Zn,colorBgMask:gr,colorBgElevated:Er,motionDurationSlow:ri,motionDurationMid:pi,padding:Si,paddingLG:vi,fontSizeLG:Ai,lineHeightLG:Ti,lineWidth:$i,lineType:qi,colorSplit:Pn,marginSM:In,colorIcon:Vn,colorIconHover:me,colorText:_e,fontWeightStrong:Ke,footerPaddingBlock:Ye,footerPaddingInline:Je}=hn,$e=`${$t}-content-wrapper`;return{[$t]:{position:"fixed",inset:0,zIndex:Zn,pointerEvents:"none","&-pure":{position:"relative",background:Er,[`&${$t}-left`]:{boxShadow:hn.boxShadowDrawerLeft},[`&${$t}-right`]:{boxShadow:hn.boxShadowDrawerRight},[`&${$t}-top`]:{boxShadow:hn.boxShadowDrawerUp},[`&${$t}-bottom`]:{boxShadow:hn.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${$t}-mask`]:{position:"absolute",inset:0,zIndex:Zn,background:gr,pointerEvents:"auto"},[$e]:{position:"absolute",zIndex:Zn,maxWidth:"100vw",transition:`all ${ri}`,"&-hidden":{display:"none"}},[`&-left > ${$e}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:hn.boxShadowDrawerLeft},[`&-right > ${$e}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:hn.boxShadowDrawerRight},[`&-top > ${$e}`]:{top:0,insetInline:0,boxShadow:hn.boxShadowDrawerUp},[`&-bottom > ${$e}`]:{bottom:0,insetInline:0,boxShadow:hn.boxShadowDrawerDown},[`${$t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Er,pointerEvents:"auto"},[`${$t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${$t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Si}px ${vi}px`,fontSize:Ai,lineHeight:Ti,borderBottom:`${$i}px ${qi} ${Pn}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${$t}-extra`]:{flex:"none"},[`${$t}-close`]:{display:"inline-block",marginInlineEnd:In,color:Vn,fontWeight:Ke,fontSize:Ai,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${pi}`,textRendering:"auto","&:focus, &:hover":{color:me,textDecoration:"none"}},[`${$t}-title`]:{flex:1,margin:0,color:_e,fontWeight:hn.fontWeightStrong,fontSize:Ai,lineHeight:Ti},[`${$t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:vi,overflow:"auto"},[`${$t}-footer`]:{flexShrink:0,padding:`${Ye}px ${Je}px`,borderTop:`${$i}px ${qi} ${Pn}`},"&-rtl":{direction:"rtl"}}}};var Sa=(0,ca.Z)("Drawer",hn=>{const $t=(0,Xi.TS)(hn,{});return[Ji($t),la($t)]},hn=>({zIndexPopup:hn.zIndexPopupBase,footerPaddingBlock:hn.paddingXS,footerPaddingInline:hn.padding})),Ya=ne(16569),ka=function(hn,$t){var Zn={};for(var gr in hn)Object.prototype.hasOwnProperty.call(hn,gr)&&$t.indexOf(gr)<0&&(Zn[gr]=hn[gr]);if(hn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Er=0,gr=Object.getOwnPropertySymbols(hn);Er<gr.length;Er++)$t.indexOf(gr[Er])<0&&Object.prototype.propertyIsEnumerable.call(hn,gr[Er])&&(Zn[gr[Er]]=hn[gr[Er]]);return Zn};const ba=null,Ba={distance:180},fa=hn=>{var $t;const{rootClassName:Zn,width:gr,height:Er,size:ri="default",mask:pi=!0,push:Si=Ba,open:vi,afterOpenChange:Ai,onClose:Ti,prefixCls:$i,getContainer:qi,style:Pn,className:In,visible:Vn,afterVisibleChange:me}=hn,_e=ka(hn,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Ke,getPrefixCls:Ye,direction:Je,drawer:$e}=Se.useContext(Xr.E_),Ge=Ye("drawer",$i),[Xt,un]=Sa(Ge),Wn=qi===void 0&&Ke?()=>Ke(document.body):qi,ar=de()({"no-mask":!pi,[`${Ge}-rtl`]:Je==="rtl"},Zn,un),$n=Se.useMemo(()=>gr!=null?gr:ri==="large"?736:378,[gr,ri]),Nn=Se.useMemo(()=>Er!=null?Er:ri==="large"?736:378,[Er,ri]),Bn={motionName:(0,Yi.m)(Ge,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},rn=Ar=>({motionName:(0,Yi.m)(Ge,`panel-motion-${Ar}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Xn=(0,Ya.H)();return Xt(Se.createElement(Ra.BR,null,Se.createElement(Pi.Ux,{status:!0,override:!0},Se.createElement(di,Object.assign({prefixCls:Ge,onClose:Ti,maskMotion:Bn,motion:rn},_e,{open:vi!=null?vi:Vn,mask:pi,push:Si,width:$n,height:Nn,style:Object.assign(Object.assign({},$e==null?void 0:$e.style),Pn),className:de()($e==null?void 0:$e.className,In),rootClassName:ar,getContainer:Wn,afterOpenChange:Ai!=null?Ai:me,panelRef:Xn}),Se.createElement(ta,Object.assign({prefixCls:Ge},_e,{onClose:Ti}))))))},ja=hn=>{const{prefixCls:$t,style:Zn,className:gr,placement:Er="right"}=hn,ri=ka(hn,["prefixCls","style","className","placement"]),{getPrefixCls:pi}=Se.useContext(Xr.E_),Si=pi("drawer",$t),[vi,Ai]=Sa(Si),Ti=de()(Si,`${Si}-pure`,`${Si}-${Er}`,Ai,gr);return vi(Se.createElement("div",{className:Ti,style:Zn},Se.createElement(ta,Object.assign({prefixCls:Si},ri))))};fa._InternalPanelDoNotUseOrYouWillBeFired=ja;var Ri=fa},35874:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return he}});var oe=ne(67294),de=ne(91034),Fe=ne(94184),Xe=ne.n(Fe),Se=ne(87462),Me=ne(4942),ce=ne(97685),we=ne(45987),ge=ne(62709),Be=ne(71002),Qe=ne(12060);function Oe(le,Ne,Te){var gt=React.useRef({});return(!("value"in gt.current)||Te(gt.current.condition,Ne))&&(gt.current.value=le(),gt.current.condition=Ne),gt.current.value}function et(le,Ne){typeof le=="function"?le(Ne):(0,Be.Z)(le)==="object"&&le&&"current"in le&&(le.current=Ne)}function ot(){for(var le=arguments.length,Ne=new Array(le),Te=0;Te<le;Te++)Ne[Te]=arguments[Te];var gt=Ne.filter(function(At){return At});return gt.length<=1?gt[0]:function(At){Ne.forEach(function(Tt){et(Tt,At)})}}function nt(){for(var le=arguments.length,Ne=new Array(le),Te=0;Te<le;Te++)Ne[Te]=arguments[Te];return useMemo(function(){return ot.apply(void 0,Ne)},Ne,function(gt,At){return gt.length===At.length&&gt.every(function(Tt,zt){return Tt===At[zt]})})}function Ve(le){var Ne,Te,gt=(0,Qe.isMemo)(le)?le.type.type:le.type;return!(typeof gt=="function"&&!((Ne=gt.prototype)!==null&&Ne!==void 0&&Ne.render)||typeof le=="function"&&!((Te=le.prototype)!==null&&Te!==void 0&&Te.render))}var xe={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(Ne){var Te=Ne.keyCode;if(Ne.altKey&&!Ne.ctrlKey||Ne.metaKey||Te>=xe.F1&&Te<=xe.F12)return!1;switch(Te){case xe.ALT:case xe.CAPS_LOCK:case xe.CONTEXT_MENU:case xe.CTRL:case xe.DOWN:case xe.END:case xe.ESC:case xe.HOME:case xe.INSERT:case xe.LEFT:case xe.MAC_FF_META:case xe.META:case xe.NUMLOCK:case xe.NUM_CENTER:case xe.PAGE_DOWN:case xe.PAGE_UP:case xe.PAUSE:case xe.PRINT_SCREEN:case xe.RIGHT:case xe.SHIFT:case xe.UP:case xe.WIN_KEY:case xe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ne){if(Ne>=xe.ZERO&&Ne<=xe.NINE||Ne>=xe.NUM_ZERO&&Ne<=xe.NUM_MULTIPLY||Ne>=xe.A&&Ne<=xe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Ne===0)return!0;switch(Ne){case xe.SPACE:case xe.QUESTION_MARK:case xe.NUM_PLUS:case xe.NUM_MINUS:case xe.NUM_PERIOD:case xe.NUM_DIVISION:case xe.SEMICOLON:case xe.DASH:case xe.EQUALS:case xe.COMMA:case xe.PERIOD:case xe.SLASH:case xe.APOSTROPHE:case xe.SINGLE_QUOTE:case xe.OPEN_SQUARE_BRACKET:case xe.BACKSLASH:case xe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},mt=xe,Lt=function(Ne){return+setTimeout(Ne,16)},it=function(Ne){return clearTimeout(Ne)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Lt=function(Ne){return window.requestAnimationFrame(Ne)},it=function(Ne){return window.cancelAnimationFrame(Ne)});var pt=0,Ce=new Map;function be(le){Ce.delete(le)}var Ze=function(Ne){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;pt+=1;var gt=pt;function At(Tt){if(Tt===0)be(gt),Ne();else{var zt=Lt(function(){At(Tt-1)});Ce.set(gt,zt)}}return At(Te),gt};Ze.cancel=function(le){var Ne=Ce.get(le);return be(Ne),it(Ne)};var je=Ze,Et=mt.ESC,ft=mt.TAB;function ut(le){var Ne=le.visible,Te=le.triggerRef,gt=le.onVisibleChange,At=le.autoFocus,Tt=le.overlayRef,zt=oe.useRef(!1),Ot=function(){if(Ne){var sn,Kt;(sn=Te.current)===null||sn===void 0||(Kt=sn.focus)===null||Kt===void 0||Kt.call(sn),gt==null||gt(!1)}},ht=function(){var sn;return(sn=Tt.current)!==null&&sn!==void 0&&sn.focus?(Tt.current.focus(),zt.current=!0,!0):!1},It=function(sn){switch(sn.keyCode){case Et:Ot();break;case ft:{var Kt=!1;zt.current||(Kt=ht()),Kt?sn.preventDefault():Ot();break}}};oe.useEffect(function(){return Ne?(window.addEventListener("keydown",It),At&&je(ht,3),function(){window.removeEventListener("keydown",It),zt.current=!1}):function(){zt.current=!1}},[Ne])}var Re=(0,oe.forwardRef)(function(le,Ne){var Te=le.overlay,gt=le.arrow,At=le.prefixCls,Tt=(0,oe.useMemo)(function(){var Ot;return typeof Te=="function"?Ot=Te():Ot=Te,Ot},[Te]),zt=ot(Ne,Tt==null?void 0:Tt.ref);return oe.createElement(oe.Fragment,null,gt&&oe.createElement("div",{className:"".concat(At,"-arrow")}),oe.cloneElement(Tt,{ref:Ve(Tt)?zt:void 0}))}),Vt=Re,wt={adjustX:1,adjustY:1},yn=[0,0],Ft={topLeft:{points:["bl","tl"],overflow:wt,offset:[0,-4],targetOffset:yn},top:{points:["bc","tc"],overflow:wt,offset:[0,-4],targetOffset:yn},topRight:{points:["br","tr"],overflow:wt,offset:[0,-4],targetOffset:yn},bottomLeft:{points:["tl","bl"],overflow:wt,offset:[0,4],targetOffset:yn},bottom:{points:["tc","bc"],overflow:wt,offset:[0,4],targetOffset:yn},bottomRight:{points:["tr","br"],overflow:wt,offset:[0,4],targetOffset:yn}},ln=Ft,Kn=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function rt(le,Ne){var Te,gt=le.arrow,At=gt===void 0?!1:gt,Tt=le.prefixCls,zt=Tt===void 0?"rc-dropdown":Tt,Ot=le.transitionName,ht=le.animation,It=le.align,xt=le.placement,sn=xt===void 0?"bottomLeft":xt,Kt=le.placements,Un=Kt===void 0?ln:Kt,bt=le.getPopupContainer,Pt=le.showAction,vn=le.hideAction,mn=le.overlayClassName,gn=le.overlayStyle,or=le.visible,er=le.trigger,tr=er===void 0?["hover"]:er,Hr=le.autoFocus,jr=le.overlay,vr=le.children,Kr=le.onVisibleChange,yr=(0,we.Z)(le,Kn),br=oe.useState(),Cr=(0,ce.Z)(br,2),zr=Cr[0],Wt=Cr[1],On="visible"in le?or:zr,qn=oe.useRef(null),zn=oe.useRef(null),Jn=oe.useRef(null);oe.useImperativeHandle(Ne,function(){return qn.current});var pr=function(ke){Wt(ke),Kr==null||Kr(ke)};ut({visible:On,triggerRef:Jn,onVisibleChange:pr,autoFocus:Hr,overlayRef:zn});var wr=function(ke){var an=le.onOverlayClick;Wt(!1),an&&an(ke)},nr=function(){return oe.createElement(Vt,{ref:zn,overlay:jr,prefixCls:zt,arrow:At})},St=function(){return typeof jr=="function"?nr:nr()},Zt=function(){var ke=le.minOverlayWidthMatchTrigger,an=le.alignPoint;return"minOverlayWidthMatchTrigger"in le?ke:!an},jt=function(){var ke=le.openClassName;return ke!==void 0?ke:"".concat(zt,"-open")},kn=oe.cloneElement(vr,{className:Xe()((Te=vr.props)===null||Te===void 0?void 0:Te.className,On&&jt()),ref:Ve(vr)?ot(Jn,vr.ref):void 0}),lt=vn;return!lt&&tr.indexOf("contextMenu")!==-1&&(lt=["click"]),oe.createElement(ge.Z,(0,Se.Z)({builtinPlacements:Un},yr,{prefixCls:zt,ref:qn,popupClassName:Xe()(mn,(0,Me.Z)({},"".concat(zt,"-show-arrow"),At)),popupStyle:gn,action:tr,showAction:Pt,hideAction:lt,popupPlacement:sn,popupAlign:It,popupTransitionName:Ot,popupAnimation:ht,popupVisible:On,stretch:Zt()?"minWidth":"",popup:St(),onPopupVisibleChange:pr,onPopupClick:wr,getPopupContainer:bt}),kn)}var dt=oe.forwardRef(rt),Ae=dt,Bt=ne(60276),Cn=ne(5663),en=ne(10366),Ct=ne(80636),Rt=ne(8745),tn=ne(96159),cr=ne(53124),Gn=ne(68508),qt=ne(76529),Fn=ne(29691),lr=ne(66748);const nn=null,ze=le=>{const{menu:Ne,arrow:Te,prefixCls:gt,children:At,trigger:Tt,disabled:zt,dropdownRender:Ot,getPopupContainer:ht,overlayClassName:It,rootClassName:xt,open:sn,onOpenChange:Kt,visible:Un,onVisibleChange:bt,mouseEnterDelay:Pt=.15,mouseLeaveDelay:vn=.1,autoAdjustOverflow:mn=!0,placement:gn="",overlay:or,transitionName:er}=le,{getPopupContainer:tr,getPrefixCls:Hr,direction:jr}=oe.useContext(cr.E_),vr=oe.useMemo(()=>{const kn=Hr();return er!==void 0?er:gn.includes("top")?`${kn}-slide-down`:`${kn}-slide-up`},[Hr,gn,er]),Kr=oe.useMemo(()=>gn?gn.includes("Center")?gn.slice(0,gn.indexOf("Center")):gn:jr==="rtl"?"bottomRight":"bottomLeft",[gn,jr]),yr=Hr("dropdown",gt),[br,Cr]=(0,lr.Z)(yr),[,zr]=(0,Fn.Z)(),Wt=oe.Children.only(At),On=(0,tn.Tm)(Wt,{className:Xe()(`${yr}-trigger`,{[`${yr}-rtl`]:jr==="rtl"},Wt.props.className),disabled:zt}),qn=zt?[]:Tt;let zn;qn&&qn.includes("contextMenu")&&(zn=!0);const[Jn,pr]=(0,Cn.Z)(!1,{value:sn!=null?sn:Un}),wr=(0,Bt.useEvent)(kn=>{Kt==null||Kt(kn),bt==null||bt(kn),pr(kn)}),nr=Xe()(It,xt,Cr,{[`${yr}-rtl`]:jr==="rtl"}),St=(0,Ct.Z)({arrowPointAtCenter:typeof Te=="object"&&Te.pointAtCenter,autoAdjustOverflow:mn,offset:zr.marginXXS,arrowWidth:Te?zr.sizePopupArrow:0,borderRadius:zr.borderRadius}),Zt=oe.useCallback(()=>{pr(!1)},[]),jt=()=>{let kn;return Ne!=null&&Ne.items?kn=oe.createElement(Gn.default,Object.assign({},Ne)):typeof or=="function"?kn=or():kn=or,Ot&&(kn=Ot(kn)),kn=oe.Children.only(typeof kn=="string"?oe.createElement("span",null,kn):kn),oe.createElement(qt.J,{prefixCls:`${yr}-menu`,expandIcon:oe.createElement("span",{className:`${yr}-menu-submenu-arrow`},oe.createElement(de.Z,{className:`${yr}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Zt,validator:lt=>{let{mode:Ut}=lt}},kn)};return br(oe.createElement(Ae,Object.assign({alignPoint:zn},(0,en.Z)(le,["rootClassName"]),{mouseEnterDelay:Pt,mouseLeaveDelay:vn,visible:Jn,builtinPlacements:St,arrow:!!Te,overlayClassName:nr,prefixCls:yr,getPopupContainer:ht||tr,transitionName:vr,trigger:qn,overlay:jt,placement:Kr,onVisibleChange:wr}),On))};function ue(le){return Object.assign(Object.assign({},le),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const fe=(0,Rt.Z)(ze,"dropdown",le=>le,ue),ve=le=>oe.createElement(fe,Object.assign({},le),oe.createElement("span",null));ze._InternalPanelDoNotUseOrYouWillBeFired=ve;var he=ze},85418:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return nt}});var oe=ne(35874),de=ne(94184),Fe=ne.n(de),Xe=ne(67294),Se=ne(25877),Me=ne(71577),ce=ne(53124),we=ne(93421),ge=ne(4173),Be=ne(66748),Qe=function(Ve,xe){var mt={};for(var Lt in Ve)Object.prototype.hasOwnProperty.call(Ve,Lt)&&xe.indexOf(Lt)<0&&(mt[Lt]=Ve[Lt]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Lt=Object.getOwnPropertySymbols(Ve);it<Lt.length;it++)xe.indexOf(Lt[it])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Lt[it])&&(mt[Lt[it]]=Ve[Lt[it]]);return mt};const Oe=Ve=>{const{getPopupContainer:xe,getPrefixCls:mt,direction:Lt}=Xe.useContext(ce.E_),{prefixCls:it,type:pt="default",danger:Ce,disabled:be,loading:Ze,onClick:je,htmlType:Et,children:ft,className:ut,menu:Re,arrow:Vt,autoFocus:wt,overlay:yn,trigger:Ft,align:ln,open:Kn,onOpenChange:rt,placement:dt,getPopupContainer:Ae,href:Bt,icon:Cn=Xe.createElement(Se.Z,null),title:en,buttonsRender:Ct=zt=>zt,mouseEnterDelay:Rt,mouseLeaveDelay:tn,overlayClassName:cr,overlayStyle:Gn,destroyPopupOnHide:qt,dropdownRender:Fn}=Ve,lr=Qe(Ve,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),nn=mt("dropdown",it),ze=`${nn}-button`,[ue,fe]=(0,Be.Z)(nn),ve={menu:Re,arrow:Vt,autoFocus:wt,align:ln,disabled:be,trigger:be?[]:Ft,onOpenChange:rt,getPopupContainer:Ae||xe,mouseEnterDelay:Rt,mouseLeaveDelay:tn,overlayClassName:cr,overlayStyle:Gn,destroyPopupOnHide:qt,dropdownRender:Fn},{compactSize:he,compactItemClassnames:le}=(0,ge.ri)(nn,Lt),Ne=Fe()(ze,le,ut,fe);"overlay"in Ve&&(ve.overlay=yn),"open"in Ve&&(ve.open=Kn),"placement"in Ve?ve.placement=dt:ve.placement=Lt==="rtl"?"bottomLeft":"bottomRight";const Te=Xe.createElement(Me.ZP,{type:pt,danger:Ce,disabled:be,loading:Ze,onClick:je,htmlType:Et,href:Bt,title:en},ft),gt=Xe.createElement(Me.ZP,{type:pt,danger:Ce,icon:Cn}),[At,Tt]=Ct([Te,gt]);return ue(Xe.createElement(we.Z.Compact,Object.assign({className:Ne,size:he,block:!0},lr),At,Xe.createElement(oe.Z,Object.assign({},ve),Tt)))};Oe.__ANT_BUTTON=!0;var et=Oe;const ot=oe.Z;ot.Button=et;var nt=ot},66748:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Qe}});var oe=ne(14747),de=ne(67771),Fe=ne(33297),Xe=ne(50438),Se=ne(97414),Me=ne(67968),ce=ne(45503),ge=Oe=>{const{componentCls:et,menuCls:ot,colorError:nt,colorTextLightSolid:Ve}=Oe,xe=`${ot}-item`;return{[`${et}, ${et}-menu-submenu`]:{[`${ot} ${xe}`]:{[`&${xe}-danger:not(${xe}-disabled)`]:{color:nt,"&:hover":{color:Ve,backgroundColor:nt}}}}}};const Be=Oe=>{const{componentCls:et,menuCls:ot,zIndexPopup:nt,dropdownArrowDistance:Ve,sizePopupArrow:xe,antCls:mt,iconCls:Lt,motionDurationMid:it,dropdownPaddingVertical:pt,fontSize:Ce,dropdownEdgeChildPadding:be,colorTextDisabled:Ze,fontSizeIcon:je,controlPaddingHorizontal:Et,colorBgElevated:ft}=Oe;return[{[et]:Object.assign(Object.assign({},(0,oe.Wf)(Oe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:nt,display:"block","&::before":{position:"absolute",insetBlock:-Ve+xe/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${mt}-btn`]:{[`& > ${Lt}-down, & > ${mt}-btn-icon > ${Lt}-down`]:{fontSize:je}},[`${et}-wrap`]:{position:"relative",[`${mt}-btn > ${Lt}-down`]:{fontSize:je},[`${Lt}-down::before`]:{transition:`transform ${it}`}},[`${et}-wrap-open`]:{[`${Lt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${mt}-slide-down-enter${mt}-slide-down-enter-active${et}-placement-bottomLeft,
&${mt}-slide-down-appear${mt}-slide-down-appear-active${et}-placement-bottomLeft,
&${mt}-slide-down-enter${mt}-slide-down-enter-active${et}-placement-bottom,
&${mt}-slide-down-appear${mt}-slide-down-appear-active${et}-placement-bottom,
&${mt}-slide-down-enter${mt}-slide-down-enter-active${et}-placement-bottomRight,
&${mt}-slide-down-appear${mt}-slide-down-appear-active${et}-placement-bottomRight`]:{animationName:de.fJ},[`&${mt}-slide-up-enter${mt}-slide-up-enter-active${et}-placement-topLeft,
&${mt}-slide-up-appear${mt}-slide-up-appear-active${et}-placement-topLeft,
&${mt}-slide-up-enter${mt}-slide-up-enter-active${et}-placement-top,
&${mt}-slide-up-appear${mt}-slide-up-appear-active${et}-placement-top,
&${mt}-slide-up-enter${mt}-slide-up-enter-active${et}-placement-topRight,
&${mt}-slide-up-appear${mt}-slide-up-appear-active${et}-placement-topRight`]:{animationName:de.Qt},[`&${mt}-slide-down-leave${mt}-slide-down-leave-active${et}-placement-bottomLeft,
&${mt}-slide-down-leave${mt}-slide-down-leave-active${et}-placement-bottom,
&${mt}-slide-down-leave${mt}-slide-down-leave-active${et}-placement-bottomRight`]:{animationName:de.Uw},[`&${mt}-slide-up-leave${mt}-slide-up-leave-active${et}-placement-topLeft,
&${mt}-slide-up-leave${mt}-slide-up-leave-active${et}-placement-top,
&${mt}-slide-up-leave${mt}-slide-up-leave-active${et}-placement-topRight`]:{animationName:de.ly}})},(0,Se.ZP)(Oe,{colorBg:ft,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${et} ${ot}`]:{position:"relative",margin:0},[`${ot}-submenu-popup`]:{position:"absolute",zIndex:nt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${et}, ${et}-menu-submenu`]:{[ot]:Object.assign(Object.assign({padding:be,listStyleType:"none",backgroundColor:ft,backgroundClip:"padding-box",borderRadius:Oe.borderRadiusLG,outline:"none",boxShadow:Oe.boxShadowSecondary},(0,oe.Qy)(Oe)),{[`${ot}-item-group-title`]:{padding:`${pt}px ${Et}px`,color:Oe.colorTextDescription,transition:`all ${it}`},[`${ot}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ot}-item-icon`]:{minWidth:Ce,marginInlineEnd:Oe.marginXS,fontSize:Oe.fontSizeSM},[`${ot}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${it}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ot}-item, ${ot}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${pt}px ${Et}px`,color:Oe.colorText,fontWeight:"normal",fontSize:Ce,lineHeight:Oe.lineHeight,cursor:"pointer",transition:`all ${it}`,borderRadius:Oe.borderRadiusSM,"&:hover, &-active":{backgroundColor:Oe.controlItemBgHover}},(0,oe.Qy)(Oe)),{"&-selected":{color:Oe.colorPrimary,backgroundColor:Oe.controlItemBgActive,"&:hover, &-active":{backgroundColor:Oe.controlItemBgActiveHover}},"&-disabled":{color:Ze,cursor:"not-allowed","&:hover":{color:Ze,backgroundColor:ft,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Oe.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Oe.colorSplit},[`${et}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Oe.paddingXS,[`${et}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Oe.colorTextDescription,fontSize:je,fontStyle:"normal"}}}),[`${ot}-item-group-list`]:{margin:`0 ${Oe.marginXS}px`,padding:0,listStyle:"none"},[`${ot}-submenu-title`]:{paddingInlineEnd:Et+Oe.fontSizeSM},[`${ot}-submenu-vertical`]:{position:"relative"},[`${ot}-submenu${ot}-submenu-disabled ${et}-menu-submenu-title`]:{[`&, ${et}-menu-submenu-arrow-icon`]:{color:Ze,backgroundColor:ft,cursor:"not-allowed"}},[`${ot}-submenu-selected ${et}-menu-submenu-title`]:{color:Oe.colorPrimary}})}},[(0,de.oN)(Oe,"slide-up"),(0,de.oN)(Oe,"slide-down"),(0,Fe.Fm)(Oe,"move-up"),(0,Fe.Fm)(Oe,"move-down"),(0,Xe._y)(Oe,"zoom-big")]]};var Qe=(0,Me.Z)("Dropdown",(Oe,et)=>{let{rootPrefixCls:ot}=et;const{marginXXS:nt,sizePopupArrow:Ve,controlHeight:xe,fontSize:mt,lineHeight:Lt,paddingXXS:it,componentCls:pt,borderRadiusLG:Ce}=Oe,be=(xe-mt*Lt)/2,{dropdownArrowOffset:Ze}=(0,Se.fS)({contentRadius:Ce}),je=(0,ce.TS)(Oe,{menuCls:`${pt}-menu`,rootPrefixCls:ot,dropdownArrowDistance:Ve/2+nt,dropdownArrowOffset:Ze,dropdownPaddingVertical:be,dropdownEdgeChildPadding:it});return[Be(je),ge(je)]},Oe=>({zIndexPopup:Oe.zIndexPopupBase+50}))},32983:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return it}});var oe=ne(94184),de=ne.n(oe),Fe=ne(67294),Xe=ne(53124),Se=ne(10110),Me=ne(84780),ce=ne(29691),ge=()=>{const[,pt]=(0,ce.Z)(),be=new Me.C(pt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Fe.createElement("svg",{style:be,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Fe.createElement("g",{fill:"none",fillRule:"evenodd"},Fe.createElement("g",{transform:"translate(24 31.67)"},Fe.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Fe.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"}),Fe.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)"}),Fe.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"}),Fe.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"})),Fe.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"}),Fe.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Fe.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Fe.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Qe=()=>{const[,pt]=(0,ce.Z)(),{colorFill:Ce,colorFillTertiary:be,colorFillQuaternary:Ze,colorBgContainer:je}=pt,{borderColor:Et,shadowColor:ft,contentColor:ut}=(0,Fe.useMemo)(()=>({borderColor:new Me.C(Ce).onBackground(je).toHexShortString(),shadowColor:new Me.C(be).onBackground(je).toHexShortString(),contentColor:new Me.C(Ze).onBackground(je).toHexShortString()}),[Ce,be,Ze,je]);return Fe.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Fe.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Fe.createElement("ellipse",{fill:ft,cx:"32",cy:"33",rx:"32",ry:"7"}),Fe.createElement("g",{fillRule:"nonzero",stroke:Et},Fe.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"}),Fe.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:ut}))))},Oe=ne(67968),et=ne(45503);const ot=pt=>{const{componentCls:Ce,margin:be,marginXS:Ze,marginXL:je,fontSize:Et,lineHeight:ft}=pt;return{[Ce]:{marginInline:Ze,fontSize:Et,lineHeight:ft,textAlign:"center",[`${Ce}-image`]:{height:pt.emptyImgHeight,marginBottom:Ze,opacity:pt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ce}-description`]:{color:pt.colorText},[`${Ce}-footer`]:{marginTop:be},"&-normal":{marginBlock:je,color:pt.colorTextDisabled,[`${Ce}-description`]:{color:pt.colorTextDisabled},[`${Ce}-image`]:{height:pt.emptyImgHeightMD}},"&-small":{marginBlock:Ze,color:pt.colorTextDisabled,[`${Ce}-image`]:{height:pt.emptyImgHeightSM}}}}};var nt=(0,Oe.Z)("Empty",pt=>{const{componentCls:Ce,controlHeightLG:be}=pt,Ze=(0,et.TS)(pt,{emptyImgCls:`${Ce}-img`,emptyImgHeight:be*2.5,emptyImgHeightMD:be,emptyImgHeightSM:be*.875});return[ot(Ze)]}),Ve=function(pt,Ce){var be={};for(var Ze in pt)Object.prototype.hasOwnProperty.call(pt,Ze)&&Ce.indexOf(Ze)<0&&(be[Ze]=pt[Ze]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ze=Object.getOwnPropertySymbols(pt);je<Ze.length;je++)Ce.indexOf(Ze[je])<0&&Object.prototype.propertyIsEnumerable.call(pt,Ze[je])&&(be[Ze[je]]=pt[Ze[je]]);return be};const xe=Fe.createElement(ge,null),mt=Fe.createElement(Qe,null),Lt=pt=>{var{className:Ce,rootClassName:be,prefixCls:Ze,image:je=xe,description:Et,children:ft,imageStyle:ut,style:Re}=pt,Vt=Ve(pt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:wt,direction:yn,empty:Ft}=Fe.useContext(Xe.E_),ln=wt("empty",Ze),[Kn,rt]=nt(ln),[dt]=(0,Se.Z)("Empty"),Ae=typeof Et!="undefined"?Et:dt==null?void 0:dt.description,Bt=typeof Ae=="string"?Ae:"empty";let Cn=null;return typeof je=="string"?Cn=Fe.createElement("img",{alt:Bt,src:je}):Cn=je,Kn(Fe.createElement("div",Object.assign({className:de()(rt,ln,Ft==null?void 0:Ft.className,{[`${ln}-normal`]:je===mt,[`${ln}-rtl`]:yn==="rtl"},Ce,be),style:Object.assign(Object.assign({},Ft==null?void 0:Ft.style),Re)},Vt),Fe.createElement("div",{className:`${ln}-image`,style:ut},Cn),Ae&&Fe.createElement("div",{className:`${ln}-description`},Ae),ft&&Fe.createElement("div",{className:`${ln}-footer`},ft)))};Lt.PRESENTED_IMAGE_DEFAULT=xe,Lt.PRESENTED_IMAGE_SIMPLE=mt;var it=Lt},22150:function(An,Jt,ne){"use strict";ne.d(Jt,{default:function(){return kn}});var oe=ne(74902),de=ne(94184),Fe=ne.n(de),Xe=ne(38379),Se=ne(67294),Me=ne(33603),ce=ne(65223);function we(lt){const[Ut,ke]=Se.useState(lt);return Se.useEffect(()=>{const an=setTimeout(()=>{ke(lt)},lt.length?0:10);return()=>{clearTimeout(an)}},[lt]),Ut}var ge=ne(14747),Be=ne(50438),Qe=ne(33507),Oe=ne(45503),et=ne(67968),nt=lt=>{const{componentCls:Ut}=lt,ke=`${Ut}-show-help`,an=`${Ut}-show-help-item`;return{[ke]:{transition:`opacity ${lt.motionDurationSlow} ${lt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[an]:{overflow:"hidden",transition:`height ${lt.motionDurationSlow} ${lt.motionEaseInOut},
opacity ${lt.motionDurationSlow} ${lt.motionEaseInOut},
transform ${lt.motionDurationSlow} ${lt.motionEaseInOut} !important`,[`&${an}-appear, &${an}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${an}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Ve=lt=>({legend:{display:"block",width:"100%",marginBottom:lt.marginLG,padding:0,color:lt.colorTextDescription,fontSize:lt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${lt.lineWidth}px ${lt.lineType} ${lt.colorBorder}`},label:{fontSize:lt.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 ${lt.controlOutlineWidth}px ${lt.controlOutline}`},output:{display:"block",paddingTop:15,color:lt.colorText,fontSize:lt.fontSize,lineHeight:lt.lineHeight}}),xe=(lt,Ut)=>{const{formItemCls:ke}=lt;return{[ke]:{[`${ke}-label > label`]:{height:Ut},[`${ke}-control-input`]:{minHeight:Ut}}}},mt=lt=>{const{componentCls:Ut}=lt;return{[lt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ge.Wf)(lt)),Ve(lt)),{[`${Ut}-text`]:{display:"inline-block",paddingInlineEnd:lt.paddingSM},"&-small":Object.assign({},xe(lt,lt.controlHeightSM)),"&-large":Object.assign({},xe(lt,lt.controlHeightLG))})}},Lt=lt=>{const{formItemCls:Ut,iconCls:ke,componentCls:an,rootPrefixCls:kt,labelRequiredMarkColor:Tn,labelColor:rr,labelFontSize:Gr,labelHeight:Nr,labelColonMarginInlineStart:Lr,labelColonMarginInlineEnd:Ur,itemMarginBottom:Sr}=lt;return{[Ut]:Object.assign(Object.assign({},(0,ge.Wf)(lt)),{marginBottom:Sr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${kt}-row`]:{display:"none"},"&-has-warning":{[`${Ut}-split`]:{color:lt.colorError}},"&-has-error":{[`${Ut}-split`]:{color:lt.colorWarning}},[`${Ut}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${lt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Nr,color:rr,fontSize:Gr,[`> ${ke}`]:{fontSize:lt.fontSize,verticalAlign:"top"},[`&${Ut}-required:not(${Ut}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:lt.marginXXS,color:Tn,fontSize:lt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${an}-hide-required-mark &`]:{display:"none"}},[`${Ut}-optional`]:{display:"inline-block",marginInlineStart:lt.marginXXS,color:lt.colorTextDescription,[`${an}-hide-required-mark &`]:{display:"none"}},[`${Ut}-tooltip`]:{color:lt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:lt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Lr,marginInlineEnd:Ur},[`&${Ut}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ut}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${kt}-col-'"]):not([class*="' ${kt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:lt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ut]:{"&-explain, &-extra":{clear:"both",color:lt.colorTextDescription,fontSize:lt.fontSize,lineHeight:lt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:lt.controlHeightSM,transition:`color ${lt.motionDurationMid} ${lt.motionEaseOut}`},"&-explain":{"&-error":{color:lt.colorError},"&-warning":{color:lt.colorWarning}}},[`&-with-help ${Ut}-explain`]:{height:"auto",opacity:1},[`${Ut}-feedback-icon`]:{fontSize:lt.fontSize,textAlign:"center",visibility:"visible",animationName:Be.kr,animationDuration:lt.motionDurationMid,animationTimingFunction:lt.motionEaseOutBack,pointerEvents:"none","&-success":{color:lt.colorSuccess},"&-error":{color:lt.colorError},"&-warning":{color:lt.colorWarning},"&-validating":{color:lt.colorPrimary}}})}},it=lt=>{const{componentCls:Ut,formItemCls:ke}=lt;return{[`${Ut}-horizontal`]:{[`${ke}-label`]:{flexGrow:0},[`${ke}-control`]:{flex:"1 1 0",minWidth:0},[`${ke}-label[class$='-24'], ${ke}-label[class*='-24 ']`]:{[`& + ${ke}-control`]:{minWidth:"unset"}}}}},pt=lt=>{const{componentCls:Ut,formItemCls:ke}=lt;return{[`${Ut}-inline`]:{display:"flex",flexWrap:"wrap",[ke]:{flex:"none",marginInlineEnd:lt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${ke}-label,
> ${ke}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${ke}-label`]:{flex:"none"},[`${Ut}-text`]:{display:"inline-block"},[`${ke}-has-feedback`]:{display:"inline-block"}}}}},Ce=lt=>({padding:lt.verticalLabelPadding,margin:lt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),be=lt=>{const{componentCls:Ut,formItemCls:ke,rootPrefixCls:an}=lt;return{[`${ke} ${ke}-label`]:Ce(lt),[Ut]:{[ke]:{flexWrap:"wrap",[`${ke}-label, ${ke}-control`]:{[`&:not([class*=" ${an}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ze=lt=>{const{componentCls:Ut,formItemCls:ke,rootPrefixCls:an}=lt;return{[`${Ut}-vertical`]:{[ke]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Ut}-item-control`]:{width:"100%"}}},[`${Ut}-vertical ${ke}-label,
.${an}-col-24${ke}-label,
.${an}-col-xl-24${ke}-label`]:Ce(lt),[`@media (max-width: ${lt.screenXSMax}px)`]:[be(lt),{[Ut]:{[`.${an}-col-xs-24${ke}-label`]:Ce(lt)}}],[`@media (max-width: ${lt.screenSMMax}px)`]:{[Ut]:{[`.${an}-col-sm-24${ke}-label`]:Ce(lt)}},[`@media (max-width: ${lt.screenMDMax}px)`]:{[Ut]:{[`.${an}-col-md-24${ke}-label`]:Ce(lt)}},[`@media (max-width: ${lt.screenLGMax}px)`]:{[Ut]:{[`.${an}-col-lg-24${ke}-label`]:Ce(lt)}}}},je=(lt,Ut)=>(0,Oe.TS)(lt,{formItemCls:`${lt.componentCls}-item`,rootPrefixCls:Ut});var Et=(0,et.Z)("Form",(lt,Ut)=>{let{rootPrefixCls:ke}=Ut;const an=je(lt,ke);return[mt(an),Lt(an),nt(an),it(an),pt(an),Ze(an),(0,Qe.Z)(an),Be.kr]},lt=>({labelRequiredMarkColor:lt.colorError,labelColor:lt.colorTextHeading,labelFontSize:lt.fontSize,labelHeight:lt.controlHeight,labelColonMarginInlineStart:lt.marginXXS/2,labelColonMarginInlineEnd:lt.marginXS,itemMarginBottom:lt.marginLG,verticalLabelPadding:`0 0 ${lt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const ft=[];function ut(lt,Ut,ke){let an=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof lt=="string"?lt:`${Ut}-${an}`,error:lt,errorStatus:ke}}var Vt=lt=>{let{help:Ut,helpStatus:ke,errors:an=ft,warnings:kt=ft,className:Tn,fieldId:rr,onVisibleChanged:Gr}=lt;const{prefixCls:Nr}=Se.useContext(ce.Rk),Lr=`${Nr}-item-explain`,[,Ur]=Et(Nr),Sr=(0,Se.useMemo)(()=>(0,Me.Z)(Nr),[Nr]),ai=we(an),ir=we(kt),Rr=Se.useMemo(()=>Ut!=null?[ut(Ut,"help",ke)]:[].concat((0,oe.Z)(ai.map((Gi,qr)=>ut(Gi,"error","error",qr))),(0,oe.Z)(ir.map((Gi,qr)=>ut(Gi,"warning","warning",qr)))),[Ut,ke,ai,ir]),Di={};return rr&&(Di.id=`${rr}_help`),Se.createElement(Xe.default,{motionDeadline:Sr.motionDeadline,motionName:`${Nr}-show-help`,visible:!!Rr.length,onVisibleChanged:Gr},Gi=>{const{className:qr,style:di}=Gi;return Se.createElement("div",Object.assign({},Di,{className:Fe()(Lr,qr,Tn,Ur),style:di,role:"alert"}),Se.createElement(Xe.CSSMotionList,Object.assign({keys:Rr},(0,Me.Z)(Nr),{motionName:`${Nr}-show-help-item`,component:!1}),Yi=>{const{key:Xr,error:Pi,errorStatus:Mr,className:ua,style:ta}=Yi;return Se.createElement("div",{key:Xr,className:Fe()(ua,{[`${Lr}-${Mr}`]:Mr}),style:ta},Pi)}))})},wt=ne(46660),yn=ne(53124),Ft=ne(98866),ln=ne(97647),Kn=ne(98675),rt=ne(17423);const dt=["parentNode"],Ae="form_item";function Bt(lt){return lt===void 0||lt===!1?[]:Array.isArray(lt)?lt:[lt]}function Cn(lt,Ut){if(!lt.length)return;const ke=lt.join("_");return Ut?`${Ut}_${ke}`:dt.includes(ke)?`${Ae}_${ke}`:ke}function en(lt,Ut,ke,an,kt,Tn){let rr=an;return Tn!==void 0?rr=Tn:ke.validating?rr="validating":lt.length?rr="error":Ut.length?rr="warning":(ke.touched||kt&&ke.validated)&&(rr="success"),rr}function Ct(lt){return Bt(lt).join("_")}function Rt(lt){const[Ut]=(0,wt.useForm)(),ke=Se.useRef({}),an=Se.useMemo(()=>lt!=null?lt:Object.assign(Object.assign({},Ut),{__INTERNAL__:{itemRef:kt=>Tn=>{const rr=Ct(kt);Tn?ke.current[rr]=Tn:delete ke.current[rr]}},scrollToField:function(kt){let Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const rr=Bt(kt),Gr=Cn(rr,an.__INTERNAL__.name),Nr=Gr?document.getElementById(Gr):null;Nr&&(0,rt.Z)(Nr,Object.assign({scrollMode:"if-needed",block:"nearest"},Tn))},getFieldInstance:kt=>{const Tn=Ct(kt);return ke.current[Tn]}}),[lt,Ut]);return[an]}var tn=ne(37920),cr=function(lt,Ut){var ke={};for(var an in lt)Object.prototype.hasOwnProperty.call(lt,an)&&Ut.indexOf(an)<0&&(ke[an]=lt[an]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,an=Object.getOwnPropertySymbols(lt);kt<an.length;kt++)Ut.indexOf(an[kt])<0&&Object.prototype.propertyIsEnumerable.call(lt,an[kt])&&(ke[an[kt]]=lt[an[kt]]);return ke};const Gn=(lt,Ut)=>{const ke=Se.useContext(Ft.Z),{getPrefixCls:an,direction:kt,form:Tn}=Se.useContext(yn.E_),{prefixCls:rr,className:Gr,rootClassName:Nr,size:Lr,disabled:Ur=ke,form:Sr,colon:ai,labelAlign:ir,labelWrap:Rr,labelCol:Di,wrapperCol:Gi,hideRequiredMark:qr,layout:di="horizontal",scrollToFirstError:Yi,requiredMark:Xr,onFinishFailed:Pi,name:Mr,style:ua,feedbackIcons:ta}=lt,Ra=cr(lt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),ca=(0,Kn.Z)(Lr),Xi=Se.useContext(tn.Z),Oi=(0,Se.useMemo)(()=>Xr!==void 0?Xr:Tn&&Tn.requiredMark!==void 0?Tn.requiredMark:!qr,[qr,Xr,Tn]),la=ai!=null?ai:Tn==null?void 0:Tn.colon,Ji=an("form",rr),[Sa,Ya]=Et(Ji),ka=Fe()(Ji,`${Ji}-${di}`,{[`${Ji}-hide-required-mark`]:Oi===!1,[`${Ji}-rtl`]:kt==="rtl",[`${Ji}-${ca}`]:ca},Ya,Tn==null?void 0:Tn.className,Gr,Nr),[ba]=Rt(Sr),{__INTERNAL__:Ba}=ba;Ba.name=Mr;const fa=(0,Se.useMemo)(()=>({name:Mr,labelAlign:ir,labelCol:Di,labelWrap:Rr,wrapperCol:Gi,vertical:di==="vertical",colon:la,requiredMark:Oi,itemRef:Ba.itemRef,form:ba,feedbackIcons:ta}),[Mr,ir,Di,Gi,di,la,Oi,ba,ta]);Se.useImperativeHandle(Ut,()=>ba);const ja=(hn,$t)=>{if(hn){let Zn={block:"nearest"};typeof hn=="object"&&(Zn=hn),ba.scrollToField($t,Zn)}},Ri=hn=>{if(Pi==null||Pi(hn),hn.errorFields.length){const $t=hn.errorFields[0].name;if(Yi!==void 0){ja(Yi,$t);return}Tn&&Tn.scrollToFirstError!==void 0&&ja(Tn.scrollToFirstError,$t)}};return Sa(Se.createElement(Ft.n,{disabled:Ur},Se.createElement(ln.q,{size:ca},Se.createElement(ce.RV,Object.assign({},{validateMessages:Xi}),Se.createElement(ce.q3.Provider,{value:fa},Se.createElement(wt.default,Object.assign({id:Mr},Ra,{name:Mr,onFinishFailed:Ri,form:ba,style:Object.assign(Object.assign({},Tn==null?void 0:Tn.style),ua),className:ka})))))))};var Fn=Se.forwardRef(Gn),lr=ne(9475),nn=ne(17799),ze=ne(96159),ue=ne(37419);function fe(lt){if(typeof lt=="function")return lt;const Ut=(0,ue.Z)(lt);return Ut.length<=1?Ut[0]:Ut}const ve=()=>{const{status:lt,errors:Ut=[],warnings:ke=[]}=(0,Se.useContext)(ce.aM);return{status:lt,errors:Ut,warnings:ke}};ve.Context=ce.aM;var he=ve,le=ne(96523);function Ne(lt){const[Ut,ke]=Se.useState(lt),an=(0,Se.useRef)(null),kt=(0,Se.useRef)([]),Tn=(0,Se.useRef)(!1);Se.useEffect(()=>(Tn.current=!1,()=>{Tn.current=!0,le.Z.cancel(an.current),an.current=null}),[]);function rr(Gr){Tn.current||(an.current===null&&(kt.current=[],an.current=(0,le.Z)(()=>{an.current=null,ke(Nr=>{let Lr=Nr;return kt.current.forEach(Ur=>{Lr=Ur(Lr)}),Lr})})),kt.current.push(Gr))}return[Ut,rr]}function Te(){const{itemRef:lt}=Se.useContext(ce.q3),Ut=Se.useRef({});function ke(an,kt){const Tn=kt&&typeof kt=="object"&&kt.ref,rr=an.join("_");return(Ut.current.name!==rr||Ut.current.originRef!==Tn)&&(Ut.current.name=rr,Ut.current.originRef=Tn,Ut.current.ref=(0,nn.sQ)(lt(an),Tn)),Ut.current.ref}return ke}var gt=ne(48130),At=ne(14075),Tt=ne(10366),zt=ne(92820),Ot=ne(21584);const ht=lt=>{const{formItemCls:Ut}=lt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ut}-control`]:{display:"flex"}}}};var It=(0,et.b)(["Form","item-item"],(lt,Ut)=>{let{rootPrefixCls:ke}=Ut;const an=je(lt,ke);return[ht(an)]}),sn=lt=>{const{prefixCls:Ut,status:ke,wrapperCol:an,children:kt,errors:Tn,warnings:rr,_internalItemRender:Gr,extra:Nr,help:Lr,fieldId:Ur,marginBottom:Sr,onErrorVisibleChanged:ai}=lt,ir=`${Ut}-item`,Rr=Se.useContext(ce.q3),Di=an||Rr.wrapperCol||{},Gi=Fe()(`${ir}-control`,Di.className),qr=Se.useMemo(()=>Object.assign({},Rr),[Rr]);delete qr.labelCol,delete qr.wrapperCol;const di=Se.createElement("div",{className:`${ir}-control-input`},Se.createElement("div",{className:`${ir}-control-input-content`},kt)),Yi=Se.useMemo(()=>({prefixCls:Ut,status:ke}),[Ut,ke]),Xr=Sr!==null||Tn.length||rr.length?Se.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Se.createElement(ce.Rk.Provider,{value:Yi},Se.createElement(Vt,{fieldId:Ur,errors:Tn,warnings:rr,help:Lr,helpStatus:ke,className:`${ir}-explain-connected`,onVisibleChanged:ai})),!!Sr&&Se.createElement("div",{style:{width:0,height:Sr}})):null,Pi={};Ur&&(Pi.id=`${Ur}_extra`);const Mr=Nr?Se.createElement("div",Object.assign({},Pi,{className:`${ir}-extra`}),Nr):null,ua=Gr&&Gr.mark==="pro_table_render"&&Gr.render?Gr.render(lt,{input:di,errorList:Xr,extra:Mr}):Se.createElement(Se.Fragment,null,di,Xr,Mr);return Se.createElement(ce.q3.Provider,{value:qr},Se.createElement(Ot.Z,Object.assign({},Di,{className:Gi}),ua),Se.createElement(It,{prefixCls:Ut}))},Kt=ne(17663),Un=ne(24457),bt=ne(10110),Pt=ne(83062),vn=function(lt,Ut){var ke={};for(var an in lt)Object.prototype.hasOwnProperty.call(lt,an)&&Ut.indexOf(an)<0&&(ke[an]=lt[an]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,an=Object.getOwnPropertySymbols(lt);kt<an.length;kt++)Ut.indexOf(an[kt])<0&&Object.prototype.propertyIsEnumerable.call(lt,an[kt])&&(ke[an[kt]]=lt[an[kt]]);return ke};function mn(lt){return lt?typeof lt=="object"&&!Se.isValidElement(lt)?lt:{title:lt}:null}var or=lt=>{let{prefixCls:Ut,label:ke,htmlFor:an,labelCol:kt,labelAlign:Tn,colon:rr,required:Gr,requiredMark:Nr,tooltip:Lr}=lt;var Ur;const[Sr]=(0,bt.Z)("Form"),{vertical:ai,labelAlign:ir,labelCol:Rr,labelWrap:Di,colon:Gi}=Se.useContext(ce.q3);if(!ke)return null;const qr=kt||Rr||{},di=Tn||ir,Yi=`${Ut}-item-label`,Xr=Fe()(Yi,di==="left"&&`${Yi}-left`,qr.className,{[`${Yi}-wrap`]:!!Di});let Pi=ke;const Mr=rr===!0||Gi!==!1&&rr!==!1;Mr&&!ai&&typeof ke=="string"&&ke.trim()!==""&&(Pi=ke.replace(/[:|]\s*$/,""));const ta=mn(Lr);if(ta){const{icon:Oi=Se.createElement(Kt.Z,null)}=ta,la=vn(ta,["icon"]),Ji=Se.createElement(Pt.Z,Object.assign({},la),Se.cloneElement(Oi,{className:`${Ut}-item-tooltip`,title:""}));Pi=Se.createElement(Se.Fragment,null,Pi,Ji)}const Ra=Nr==="optional",ca=typeof Nr=="function";ca?Pi=Nr(Pi,{required:!!Gr}):Ra&&!Gr&&(Pi=Se.createElement(Se.Fragment,null,Pi,Se.createElement("span",{className:`${Ut}-item-optional`,title:""},(Sr==null?void 0:Sr.optional)||((Ur=Un.Z.Form)===null||Ur===void 0?void 0:Ur.optional))));const Xi=Fe()({[`${Ut}-item-required`]:Gr,[`${Ut}-item-required-mark-optional`]:Ra||ca,[`${Ut}-item-no-colon`]:!Mr});return Se.createElement(Ot.Z,Object.assign({},qr,{className:Xr}),Se.createElement("label",{htmlFor:an,className:Xi,title:typeof ke=="string"?ke:""},Pi))},er=ne(87725),tr=ne(16646),Hr=ne(87995),jr=ne(3407);const vr={success:er.Z,warning:Hr.Z,error:tr.Z,validating:jr.Z};function Kr(lt){let{children:Ut,errors:ke,warnings:an,hasFeedback:kt,validateStatus:Tn,prefixCls:rr,meta:Gr,noStyle:Nr}=lt;const Lr=`${rr}-item`,{feedbackIcons:Ur}=Se.useContext(ce.q3),Sr=en(ke,an,Gr,null,!!kt,Tn),{isFormItemInput:ai,status:ir}=Se.useContext(ce.aM),Rr=Se.useMemo(()=>{var Di;let Gi;if(kt){const Yi=kt!==!0&&kt.icons||Ur,Xr=Sr&&((Di=Yi==null?void 0:Yi({status:Sr,errors:ke,warnings:an}))===null||Di===void 0?void 0:Di[Sr]),Pi=Sr&&vr[Sr];Gi=Xr!==!1&&Pi?Se.createElement("span",{className:Fe()(`${Lr}-feedback-icon`,`${Lr}-feedback-icon-${Sr}`)},Xr||Se.createElement(Pi,null)):null}let qr=!0,di=Sr||"";return Nr&&(qr=ai,di=(Sr!=null?Sr:ir)||""),{status:di,errors:ke,warnings:an,hasFeedback:!!kt,feedbackIcon:Gi,isFormItemInput:qr}},[Sr,kt,Nr,ai,ir]);return Se.createElement(ce.aM.Provider,{value:Rr},Ut)}var yr=function(lt,Ut){var ke={};for(var an in lt)Object.prototype.hasOwnProperty.call(lt,an)&&Ut.indexOf(an)<0&&(ke[an]=lt[an]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,an=Object.getOwnPropertySymbols(lt);kt<an.length;kt++)Ut.indexOf(an[kt])<0&&Object.prototype.propertyIsEnumerable.call(lt,an[kt])&&(ke[an[kt]]=lt[an[kt]]);return ke};function br(lt){const{prefixCls:Ut,className:ke,rootClassName:an,style:kt,help:Tn,errors:rr,warnings:Gr,validateStatus:Nr,meta:Lr,hasFeedback:Ur,hidden:Sr,children:ai,fieldId:ir,required:Rr,isRequired:Di,onSubItemMetaChange:Gi}=lt,qr=yr(lt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),di=`${Ut}-item`,{requiredMark:Yi}=Se.useContext(ce.q3),Xr=Se.useRef(null),Pi=we(rr),Mr=we(Gr),ua=Tn!=null,ta=!!(ua||rr.length||Gr.length),Ra=!!Xr.current&&(0,gt.Z)(Xr.current),[ca,Xi]=Se.useState(null);(0,At.Z)(()=>{if(ta&&Xr.current){const Ya=getComputedStyle(Xr.current);Xi(parseInt(Ya.marginBottom,10))}},[ta,Ra]);const Oi=Ya=>{Ya||Xi(null)},Ji=function(){let Ya=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ka=Ya?Pi:Lr.errors,ba=Ya?Mr:Lr.warnings;return en(ka,ba,Lr,"",!!Ur,Nr)}(),Sa=Fe()(di,ke,an,{[`${di}-with-help`]:ua||Pi.length||Mr.length,[`${di}-has-feedback`]:Ji&&Ur,[`${di}-has-success`]:Ji==="success",[`${di}-has-warning`]:Ji==="warning",[`${di}-has-error`]:Ji==="error",[`${di}-is-validating`]:Ji==="validating",[`${di}-hidden`]:Sr});return Se.createElement("div",{className:Sa,style:kt,ref:Xr},Se.createElement(zt.Z,Object.assign({className:`${di}-row`},(0,Tt.Z)(qr,["_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"])),Se.createElement(or,Object.assign({htmlFor:ir},lt,{requiredMark:Yi,required:Rr!=null?Rr:Di,prefixCls:Ut})),Se.createElement(sn,Object.assign({},lt,Lr,{errors:Pi,warnings:Mr,prefixCls:Ut,status:Ji,help:Tn,marginBottom:ca,onErrorVisibleChanged:Oi}),Se.createElement(ce.qI.Provider,{value:Gi},Se.createElement(Kr,{prefixCls:Ut,meta:Lr,errors:Lr.errors,warnings:Lr.warnings,hasFeedback:Ur,validateStatus:Ji},ai)))),!!ca&&Se.createElement("div",{className:`${di}-margin-offset`,style:{marginBottom:-ca}}))}const Cr="__SPLIT__",zr=null,Wt=Se.memo(lt=>{let{children:Ut}=lt;return Ut},(lt,Ut)=>lt.value===Ut.value&&lt.update===Ut.update&&lt.childProps.length===Ut.childProps.length&&lt.childProps.every((ke,an)=>ke===Ut.childProps[an]));function On(lt){return lt!=null}function qn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function zn(lt){const{name:Ut,noStyle:ke,className:an,dependencies:kt,prefixCls:Tn,shouldUpdate:rr,rules:Gr,children:Nr,required:Lr,label:Ur,messageVariables:Sr,trigger:ai="onChange",validateTrigger:ir,hidden:Rr,help:Di}=lt,{getPrefixCls:Gi}=Se.useContext(yn.E_),{name:qr}=Se.useContext(ce.q3),di=fe(Nr),Yi=typeof di=="function",Xr=Se.useContext(ce.qI),{validateTrigger:Pi}=Se.useContext(wt.FieldContext),Mr=ir!==void 0?ir:Pi,ua=On(Ut),ta=Gi("form",Tn),[Ra,ca]=Et(ta),Xi=Se.useContext(wt.ListContext),Oi=Se.useRef(),[la,Ji]=Ne({}),[Sa,Ya]=(0,lr.Z)(()=>qn()),ka=$t=>{const Zn=Xi==null?void 0:Xi.getKey($t.name);if(Ya($t.destroy?qn():$t,!0),ke&&Di!==!1&&Xr){let gr=$t.name;if($t.destroy)gr=Oi.current||gr;else if(Zn!==void 0){const[Er,ri]=Zn;gr=[Er].concat((0,oe.Z)(ri)),Oi.current=gr}Xr($t,gr)}},ba=($t,Zn)=>{Ji(gr=>{const Er=Object.assign({},gr),pi=[].concat((0,oe.Z)($t.name.slice(0,-1)),(0,oe.Z)(Zn)).join(Cr);return $t.destroy?delete Er[pi]:Er[pi]=$t,Er})},[Ba,fa]=Se.useMemo(()=>{const $t=(0,oe.Z)(Sa.errors),Zn=(0,oe.Z)(Sa.warnings);return Object.values(la).forEach(gr=>{$t.push.apply($t,(0,oe.Z)(gr.errors||[])),Zn.push.apply(Zn,(0,oe.Z)(gr.warnings||[]))}),[$t,Zn]},[la,Sa.errors,Sa.warnings]),ja=Te();function Ri($t,Zn,gr){return ke&&!Rr?Se.createElement(Kr,{prefixCls:ta,hasFeedback:lt.hasFeedback,validateStatus:lt.validateStatus,meta:Sa,errors:Ba,warnings:fa,noStyle:!0},$t):Se.createElement(br,Object.assign({key:"row"},lt,{className:Fe()(an,ca),prefixCls:ta,fieldId:Zn,isRequired:gr,errors:Ba,warnings:fa,meta:Sa,onSubItemMetaChange:ba}),$t)}if(!ua&&!Yi&&!kt)return Ra(Ri(di));let hn={};return typeof Ur=="string"?hn.label=Ur:Ut&&(hn.label=String(Ut)),Sr&&(hn=Object.assign(Object.assign({},hn),Sr)),Ra(Se.createElement(wt.Field,Object.assign({},lt,{messageVariables:hn,trigger:ai,validateTrigger:Mr,onMetaChange:ka}),($t,Zn,gr)=>{const Er=Bt(Ut).length&&Zn?Zn.name:[],ri=Cn(Er,qr),pi=Lr!==void 0?Lr:!!(Gr&&Gr.some(Ai=>{if(Ai&&typeof Ai=="object"&&Ai.required&&!Ai.warningOnly)return!0;if(typeof Ai=="function"){const Ti=Ai(gr);return Ti&&Ti.required&&!Ti.warningOnly}return!1})),Si=Object.assign({},$t);let vi=null;if(Array.isArray(di)&&ua)vi=di;else if(!(Yi&&(!(rr||kt)||ua))){if(!(kt&&!Yi&&!ua))if((0,ze.l$)(di)){const Ai=Object.assign(Object.assign({},di.props),Si);if(Ai.id||(Ai.id=ri),Di||Ba.length>0||fa.length>0||lt.extra){const qi=[];(Di||Ba.length>0)&&qi.push(`${ri}_help`),lt.extra&&qi.push(`${ri}_extra`),Ai["aria-describedby"]=qi.join(" ")}Ba.length>0&&(Ai["aria-invalid"]="true"),pi&&(Ai["aria-required"]="true"),(0,nn.Yr)(di)&&(Ai.ref=ja(Er,di)),new Set([].concat((0,oe.Z)(Bt(ai)),(0,oe.Z)(Bt(Mr)))).forEach(qi=>{Ai[qi]=function(){for(var Pn,In,Vn,me,_e,Ke=arguments.length,Ye=new Array(Ke),Je=0;Je<Ke;Je++)Ye[Je]=arguments[Je];(Vn=Si[qi])===null||Vn===void 0||(Pn=Vn).call.apply(Pn,[Si].concat(Ye)),(_e=(me=di.props)[qi])===null||_e===void 0||(In=_e).call.apply(In,[me].concat(Ye))}});const $i=[Ai["aria-required"],Ai["aria-invalid"],Ai["aria-describedby"]];vi=Se.createElement(Wt,{value:Si[lt.valuePropName||"value"],update:di,childProps:$i},(0,ze.Tm)(di,Ai))}else Yi&&(rr||kt)&&!ua?vi=di(gr):vi=di}return Ri(vi,ri,pi)}))}const Jn=zn;Jn.useStatus=he;var pr=Jn,wr=function(lt,Ut){var ke={};for(var an in lt)Object.prototype.hasOwnProperty.call(lt,an)&&Ut.indexOf(an)<0&&(ke[an]=lt[an]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,an=Object.getOwnPropertySymbols(lt);kt<an.length;kt++)Ut.indexOf(an[kt])<0&&Object.prototype.propertyIsEnumerable.call(lt,an[kt])&&(ke[an[kt]]=lt[an[kt]]);return ke},St=lt=>{var{prefixCls:Ut,children:ke}=lt,an=wr(lt,["prefixCls","children"]);const{getPrefixCls:kt}=Se.useContext(yn.E_),Tn=kt("form",Ut),rr=Se.useMemo(()=>({prefixCls:Tn,status:"error"}),[Tn]);return Se.createElement(wt.List,Object.assign({},an),(Gr,Nr,Lr)=>Se.createElement(ce.Rk.Provider,{value:rr},ke(Gr.map(Ur=>Object.assign(Object.assign({},Ur),{fieldKey:Ur.key})),Nr,{errors:Lr.errors,warnings:Lr.warnings})))};function Zt(){const{form:lt}=(0,Se.useContext)(ce.q3);return lt}const jt=Fn;jt.Item=pr,jt.List=St,jt.ErrorList=Vt,jt.useForm=Rt,jt.useFormInstance=Zt,jt.useWatch=wt.useWatch,jt.Provider=ce.RV,jt.create=()=>{};var kn=jt},25378:function(An,Jt,ne){"use strict";var oe=ne(67294),de=ne(14075),Fe=ne(57838),Xe=ne(74443);function Se(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ce=(0,oe.useRef)({}),we=(0,Fe.Z)(),ge=(0,Xe.ZP)();return(0,de.Z)(()=>{const Be=ge.subscribe(Qe=>{ce.current=Qe,Me&&we()});return()=>ge.unsubscribe(Be)},[]),ce.current}Jt.Z=Se},31795:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return nr}});var oe=ne(42922),de=ne(53978),Fe=ne(94184),Xe=ne.n(Fe),Se=ne(87462),Me=ne(4942),ce=ne(71002),we=ne(97685),ge=ne(45987),Be=ne(15671),Qe=ne(43144);function Oe(){return typeof BigInt=="function"}function et(St){return!St&&St!==0&&!Number.isNaN(St)||!String(St).trim()}function ot(St){var Zt=St.trim(),jt=Zt.startsWith("-");jt&&(Zt=Zt.slice(1)),Zt=Zt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Zt.startsWith(".")&&(Zt="0".concat(Zt));var kn=Zt||"0",lt=kn.split("."),Ut=lt[0]||"0",ke=lt[1]||"0";Ut==="0"&&ke==="0"&&(jt=!1);var an=jt?"-":"";return{negative:jt,negativeStr:an,trimStr:kn,integerStr:Ut,decimalStr:ke,fullStr:"".concat(an).concat(kn)}}function nt(St){var Zt=String(St);return!Number.isNaN(Number(Zt))&&Zt.includes("e")}function Ve(St){var Zt=String(St);if(nt(St)){var jt=Number(Zt.slice(Zt.indexOf("e-")+2)),kn=Zt.match(/\.(\d+)/);return kn!=null&&kn[1]&&(jt+=kn[1].length),jt}return Zt.includes(".")&&mt(Zt)?Zt.length-Zt.indexOf(".")-1:0}function xe(St){var Zt=String(St);if(nt(St)){if(St>Number.MAX_SAFE_INTEGER)return String(Oe()?BigInt(St).toString():Number.MAX_SAFE_INTEGER);if(St<Number.MIN_SAFE_INTEGER)return String(Oe()?BigInt(St).toString():Number.MIN_SAFE_INTEGER);Zt=St.toFixed(Ve(Zt))}return ot(Zt).fullStr}function mt(St){return typeof St=="number"?!Number.isNaN(St):St?/^\s*-?\d+(\.\d+)?\s*$/.test(St)||/^\s*-?\d+\.\s*$/.test(St)||/^\s*-?\.\d+\s*$/.test(St):!1}var Lt=function(){function St(Zt){if((0,Be.Z)(this,St),(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),et(Zt)){this.empty=!0;return}if(this.origin=String(Zt),Zt==="-"||Number.isNaN(Zt)){this.nan=!0;return}var jt=Zt;if(nt(jt)&&(jt=Number(jt)),jt=typeof jt=="string"?jt:xe(jt),mt(jt)){var kn=ot(jt);this.negative=kn.negative;var lt=kn.trimStr.split(".");this.integer=BigInt(lt[0]);var Ut=lt[1]||"0";this.decimal=BigInt(Ut),this.decimalLen=Ut.length}else this.nan=!0}return(0,Qe.Z)(St,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(jt){var kn="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(jt,"0"));return BigInt(kn)}},{key:"negate",value:function(){var jt=new St(this.toString());return jt.negative=!jt.negative,jt}},{key:"cal",value:function(jt,kn,lt){var Ut=Math.max(this.getDecimalStr().length,jt.getDecimalStr().length),ke=this.alignDecimal(Ut),an=jt.alignDecimal(Ut),kt=kn(ke,an).toString(),Tn=lt(Ut),rr=ot(kt),Gr=rr.negativeStr,Nr=rr.trimStr,Lr="".concat(Gr).concat(Nr.padStart(Tn+1,"0"));return new St("".concat(Lr.slice(0,-Tn),".").concat(Lr.slice(-Tn)))}},{key:"add",value:function(jt){if(this.isInvalidate())return new St(jt);var kn=new St(jt);return kn.isInvalidate()?this:this.cal(kn,function(lt,Ut){return lt+Ut},function(lt){return lt})}},{key:"multi",value:function(jt){var kn=new St(jt);return this.isInvalidate()||kn.isInvalidate()?new St(NaN):this.cal(kn,function(lt,Ut){return lt*Ut},function(lt){return lt*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(jt){return this.toString()===(jt==null?void 0:jt.toString())}},{key:"lessEquals",value:function(jt){return this.add(jt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return jt?this.isInvalidate()?"":ot("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),St}(),it=function(){function St(Zt){if((0,Be.Z)(this,St),(0,Me.Z)(this,"origin",""),(0,Me.Z)(this,"number",void 0),(0,Me.Z)(this,"empty",void 0),et(Zt)){this.empty=!0;return}this.origin=String(Zt),this.number=Number(Zt)}return(0,Qe.Z)(St,[{key:"negate",value:function(){return new St(-this.toNumber())}},{key:"add",value:function(jt){if(this.isInvalidate())return new St(jt);var kn=Number(jt);if(Number.isNaN(kn))return this;var lt=this.number+kn;if(lt>Number.MAX_SAFE_INTEGER)return new St(Number.MAX_SAFE_INTEGER);if(lt<Number.MIN_SAFE_INTEGER)return new St(Number.MIN_SAFE_INTEGER);var Ut=Math.max(Ve(this.number),Ve(kn));return new St(lt.toFixed(Ut))}},{key:"multi",value:function(jt){var kn=Number(jt);if(this.isInvalidate()||Number.isNaN(kn))return new St(NaN);var lt=this.number*kn;if(lt>Number.MAX_SAFE_INTEGER)return new St(Number.MAX_SAFE_INTEGER);if(lt<Number.MIN_SAFE_INTEGER)return new St(Number.MIN_SAFE_INTEGER);var Ut=Math.max(Ve(this.number),Ve(kn));return new St(lt.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(jt){return this.toNumber()===(jt==null?void 0:jt.toNumber())}},{key:"lessEquals",value:function(jt){return this.add(jt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return jt?this.isInvalidate()?"":xe(this.number):this.origin}}]),St}();function pt(St){return Oe()?new Lt(St):new it(St)}function Ce(St,Zt,jt){var kn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(St==="")return"";var lt=ot(St),Ut=lt.negativeStr,ke=lt.integerStr,an=lt.decimalStr,kt="".concat(Zt).concat(an),Tn="".concat(Ut).concat(ke);if(jt>=0){var rr=Number(an[jt]);if(rr>=5&&!kn){var Gr=pt(St).add("".concat(Ut,"0.").concat("0".repeat(jt)).concat(10-rr));return Ce(Gr.toString(),Zt,jt,kn)}return jt===0?Tn:"".concat(Tn).concat(Zt).concat(an.padEnd(jt,"0").slice(0,jt))}return kt===".0"?Tn:"".concat(Tn).concat(kt)}var be=pt,Ze=ne(67656),je=ne(67294);function Et(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ft=Et()?je.useLayoutEffect:je.useEffect,ut=function(Zt,jt){var kn=je.useRef(!0);ft(function(){return Zt(kn.current)},jt),ft(function(){return kn.current=!1,function(){kn.current=!0}},[])},Re=function(Zt,jt){ut(function(kn){if(!kn)return Zt()},jt)},Vt=ut,wt=ne(27183);function yn(St,Zt,jt){var kn=React.useRef({});return(!("value"in kn.current)||jt(kn.current.condition,Zt))&&(kn.current.value=St(),kn.current.condition=Zt),kn.current.value}function Ft(St,Zt){typeof St=="function"?St(Zt):(0,ce.Z)(St)==="object"&&St&&"current"in St&&(St.current=Zt)}function ln(){for(var St=arguments.length,Zt=new Array(St),jt=0;jt<St;jt++)Zt[jt]=arguments[jt];var kn=Zt.filter(function(lt){return lt});return kn.length<=1?kn[0]:function(lt){Zt.forEach(function(Ut){Ft(Ut,lt)})}}function Kn(){for(var St=arguments.length,Zt=new Array(St),jt=0;jt<St;jt++)Zt[jt]=arguments[jt];return useMemo(function(){return ln.apply(void 0,Zt)},Zt,function(kn,lt){return kn.length!==lt.length||kn.every(function(Ut,ke){return Ut!==lt[ke]})})}function rt(St){var Zt,jt,kn=isMemo(St)?St.type.type:St.type;return!(typeof kn=="function"&&!((Zt=kn.prototype)!==null&&Zt!==void 0&&Zt.render)||typeof St=="function"&&!((jt=St.prototype)!==null&&jt!==void 0&&jt.render))}function dt(St){return!isValidElement(St)||isFragment(St)?!1:rt(St)}var Ae={},Bt=[],Cn=function(Zt){Bt.push(Zt)};function en(St,Zt){if(0)var jt}function Ct(St,Zt){if(0)var jt}function Rt(){Ae={}}function tn(St,Zt,jt){!Zt&&!Ae[jt]&&(St(!1,jt),Ae[jt]=!0)}function cr(St,Zt){tn(en,St,Zt)}function Gn(St,Zt){tn(Ct,St,Zt)}cr.preMessage=Cn,cr.resetWarned=Rt,cr.noteOnce=Gn;var qt=cr;function Fn(St,Zt){var jt=(0,je.useRef)(null);function kn(){try{var Ut=St.selectionStart,ke=St.selectionEnd,an=St.value,kt=an.substring(0,Ut),Tn=an.substring(ke);jt.current={start:Ut,end:ke,value:an,beforeTxt:kt,afterTxt:Tn}}catch(rr){}}function lt(){if(St&&jt.current&&Zt)try{var Ut=St.value,ke=jt.current,an=ke.beforeTxt,kt=ke.afterTxt,Tn=ke.start,rr=Ut.length;if(Ut.endsWith(kt))rr=Ut.length-jt.current.afterTxt.length;else if(Ut.startsWith(an))rr=an.length;else{var Gr=an[Tn-1],Nr=Ut.indexOf(Gr,Tn-1);Nr!==-1&&(rr=Nr+1)}St.setSelectionRange(rr,rr)}catch(Lr){qt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Lr.message))}}return[kn,lt]}var lr=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var St=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(St)||/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(St==null?void 0:St.substr(0,4))},nn=function(){var Zt=(0,je.useState)(!1),jt=(0,we.Z)(Zt,2),kn=jt[0],lt=jt[1];return Vt(function(){lt(lr())},[]),kn},ze=nn,ue=function(Zt){return+setTimeout(Zt,16)},fe=function(Zt){return clearTimeout(Zt)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ue=function(Zt){return window.requestAnimationFrame(Zt)},fe=function(Zt){return window.cancelAnimationFrame(Zt)});var ve=0,he=new Map;function le(St){he.delete(St)}var Ne=function(Zt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ve+=1;var kn=ve;function lt(Ut){if(Ut===0)le(kn),Zt();else{var ke=ue(function(){lt(Ut-1)});he.set(kn,ke)}}return lt(jt),kn};Ne.cancel=function(St){var Zt=he.get(St);return le(Zt),fe(Zt)};var Te=Ne,gt=200,At=600;function Tt(St){var Zt=St.prefixCls,jt=St.upNode,kn=St.downNode,lt=St.upDisabled,Ut=St.downDisabled,ke=St.onStep,an=je.useRef(),kt=je.useRef([]),Tn=je.useRef();Tn.current=ke;var rr=function(){clearTimeout(an.current)},Gr=function(Di,Gi){Di.preventDefault(),rr(),Tn.current(Gi);function qr(){Tn.current(Gi),an.current=setTimeout(qr,gt)}an.current=setTimeout(qr,At)};je.useEffect(function(){return function(){rr(),kt.current.forEach(function(Rr){return Te.cancel(Rr)})}},[]);var Nr=ze();if(Nr)return null;var Lr="".concat(Zt,"-handler"),Ur=Xe()(Lr,"".concat(Lr,"-up"),(0,Me.Z)({},"".concat(Lr,"-up-disabled"),lt)),Sr=Xe()(Lr,"".concat(Lr,"-down"),(0,Me.Z)({},"".concat(Lr,"-down-disabled"),Ut)),ai=function(){return kt.current.push(Te(rr))},ir={unselectable:"on",role:"button",onMouseUp:ai,onMouseLeave:ai};return je.createElement("div",{className:"".concat(Lr,"-wrap")},je.createElement("span",(0,Se.Z)({},ir,{onMouseDown:function(Di){Gr(Di,!0)},"aria-label":"Increase Value","aria-disabled":lt,className:Ur}),jt||je.createElement("span",{unselectable:"on",className:"".concat(Zt,"-handler-up-inner")})),je.createElement("span",(0,Se.Z)({},ir,{onMouseDown:function(Di){Gr(Di,!1)},"aria-label":"Decrease Value","aria-disabled":Ut,className:Sr}),kn||je.createElement("span",{unselectable:"on",className:"".concat(Zt,"-handler-down-inner")})))}function zt(St){var Zt=typeof St=="number"?xe(St):ot(St).fullStr,jt=Zt.includes(".");return jt?ot(Zt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:St+"0"}var Ot=ne(87887),ht=function(){var St=(0,je.useRef)(0),Zt=function(){Te.cancel(St.current)};return(0,je.useEffect)(function(){return Zt},[]),function(jt){Zt(),St.current=Te(function(){jt()})}},It=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],xt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],sn=function(Zt,jt){return Zt||jt.isEmpty()?jt.toString():jt.toNumber()},Kt=function(Zt){var jt=be(Zt);return jt.isInvalidate()?null:jt},Un=je.forwardRef(function(St,Zt){var jt,kn=St.prefixCls,lt=kn===void 0?"rc-input-number":kn,Ut=St.className,ke=St.style,an=St.min,kt=St.max,Tn=St.step,rr=Tn===void 0?1:Tn,Gr=St.defaultValue,Nr=St.value,Lr=St.disabled,Ur=St.readOnly,Sr=St.upHandler,ai=St.downHandler,ir=St.keyboard,Rr=St.controls,Di=Rr===void 0?!0:Rr,Gi=St.classNames,qr=St.stringMode,di=St.parser,Yi=St.formatter,Xr=St.precision,Pi=St.decimalSeparator,Mr=St.onChange,ua=St.onInput,ta=St.onPressEnter,Ra=St.onStep,ca=(0,ge.Z)(St,It),Xi="".concat(lt,"-input"),Oi=je.useRef(null),la=je.useState(!1),Ji=(0,we.Z)(la,2),Sa=Ji[0],Ya=Ji[1],ka=je.useRef(!1),ba=je.useRef(!1),Ba=je.useRef(!1),fa=je.useState(function(){return be(Nr!=null?Nr:Gr)}),ja=(0,we.Z)(fa,2),Ri=ja[0],hn=ja[1];function $t(ur){Nr===void 0&&hn(ur)}var Zn=je.useCallback(function(ur,Mn){if(!Mn)return Xr>=0?Xr:Math.max(Ve(ur),Ve(rr))},[Xr,rr]),gr=je.useCallback(function(ur){var Mn=String(ur);if(di)return di(Mn);var mr=Mn;return Pi&&(mr=mr.replace(Pi,".")),mr.replace(/[^\w.-]+/g,"")},[di,Pi]),Er=je.useRef(""),ri=je.useCallback(function(ur,Mn){if(Yi)return Yi(ur,{userTyping:Mn,input:String(Er.current)});var mr=typeof ur=="number"?xe(ur):ur;if(!Mn){var Dr=Zn(mr,Mn);if(mt(mr)&&(Pi||Dr>=0)){var _r=Pi||".";mr=Ce(mr,_r,Dr)}}return mr},[Yi,Zn,Pi]),pi=je.useState(function(){var ur=Gr!=null?Gr:Nr;return Ri.isInvalidate()&&["string","number"].includes((0,ce.Z)(ur))?Number.isNaN(ur)?"":ur:ri(Ri.toString(),!1)}),Si=(0,we.Z)(pi,2),vi=Si[0],Ai=Si[1];Er.current=vi;function Ti(ur,Mn){Ai(ri(ur.isInvalidate()?ur.toString(!1):ur.toString(!Mn),Mn))}var $i=je.useMemo(function(){return Kt(kt)},[kt,Xr]),qi=je.useMemo(function(){return Kt(an)},[an,Xr]),Pn=je.useMemo(function(){return!$i||!Ri||Ri.isInvalidate()?!1:$i.lessEquals(Ri)},[$i,Ri]),In=je.useMemo(function(){return!qi||!Ri||Ri.isInvalidate()?!1:Ri.lessEquals(qi)},[qi,Ri]),Vn=Fn(Oi.current,Sa),me=(0,we.Z)(Vn,2),_e=me[0],Ke=me[1],Ye=function(Mn){return $i&&!Mn.lessEquals($i)?$i:qi&&!qi.lessEquals(Mn)?qi:null},Je=function(Mn){return!Ye(Mn)},$e=function(Mn,mr){var Dr=Mn,_r=Je(Dr)||Dr.isEmpty();if(!Dr.isEmpty()&&!mr&&(Dr=Ye(Dr)||Dr,_r=!0),!Ur&&!Lr&&_r){var tt=Dr.toString(),at=Zn(tt,mr);return at>=0&&(Dr=be(Ce(tt,".",at)),Je(Dr)||(Dr=be(Ce(tt,".",at,!0)))),Dr.equals(Ri)||($t(Dr),Mr==null||Mr(Dr.isEmpty()?null:sn(qr,Dr)),Nr===void 0&&Ti(Dr,mr)),Dr}return Ri},Ge=ht(),Xt=function ur(Mn){if(_e(),Er.current=Mn,Ai(Mn),!ba.current){var mr=gr(Mn),Dr=be(mr);Dr.isNaN()||$e(Dr,!0)}ua==null||ua(Mn),Ge(function(){var _r=Mn;di||(_r=Mn.replace(/。/g,".")),_r!==Mn&&ur(_r)})},un=function(){ba.current=!0},Wn=function(){ba.current=!1,Xt(Oi.current.value)},ar=function(Mn){Xt(Mn.target.value)},$n=function(Mn){var mr;if(!(Mn&&Pn||!Mn&&In)){ka.current=!1;var Dr=be(Ba.current?zt(rr):rr);Mn||(Dr=Dr.negate());var _r=(Ri||be(0)).add(Dr.toString()),tt=$e(_r,!1);Ra==null||Ra(sn(qr,tt),{offset:Ba.current?zt(rr):rr,type:Mn?"up":"down"}),(mr=Oi.current)===null||mr===void 0||mr.focus()}},Nn=function(Mn){var mr=be(gr(vi)),Dr=mr;mr.isNaN()?Dr=$e(Ri,Mn):Dr=$e(mr,Mn),Nr!==void 0?Ti(Ri,!1):Dr.isNaN()||Ti(Dr,!1)},Bn=function(){ka.current=!0},rn=function(Mn){var mr=Mn.key,Dr=Mn.shiftKey;ka.current=!0,Ba.current=Dr,mr==="Enter"&&(ba.current||(ka.current=!1),Nn(!1),ta==null||ta(Mn)),ir!==!1&&!ba.current&&["Up","ArrowUp","Down","ArrowDown"].includes(mr)&&($n(mr==="Up"||mr==="ArrowUp"),Mn.preventDefault())},Xn=function(){ka.current=!1,Ba.current=!1},Ar=function(){Nn(!1),Ya(!1),ka.current=!1};return Re(function(){Ri.isInvalidate()||Ti(Ri,!1)},[Xr]),Re(function(){var ur=be(Nr);hn(ur);var Mn=be(gr(vi));(!ur.equals(Mn)||!ka.current||Yi)&&Ti(ur,ka.current)},[Nr]),Re(function(){Yi&&Ke()},[vi]),je.createElement("div",{className:Xe()(lt,Gi==null?void 0:Gi.input,Ut,(jt={},(0,Me.Z)(jt,"".concat(lt,"-focused"),Sa),(0,Me.Z)(jt,"".concat(lt,"-disabled"),Lr),(0,Me.Z)(jt,"".concat(lt,"-readonly"),Ur),(0,Me.Z)(jt,"".concat(lt,"-not-a-number"),Ri.isNaN()),(0,Me.Z)(jt,"".concat(lt,"-out-of-range"),!Ri.isInvalidate()&&!Je(Ri)),jt)),style:ke,onFocus:function(){Ya(!0)},onBlur:Ar,onKeyDown:rn,onKeyUp:Xn,onCompositionStart:un,onCompositionEnd:Wn,onBeforeInput:Bn},Di&&je.createElement(Tt,{prefixCls:lt,upNode:Sr,downNode:ai,upDisabled:Pn,downDisabled:In,onStep:$n}),je.createElement("div",{className:"".concat(Xi,"-wrap")},je.createElement("input",(0,Se.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":an,"aria-valuemax":kt,"aria-valuenow":Ri.isInvalidate()?null:Ri.toString(),step:rr},ca,{ref:ln(Oi,Zt),className:Xi,value:vi,onChange:ar,disabled:Lr,readOnly:Ur}))))}),bt=je.forwardRef(function(St,Zt){var jt=St.disabled,kn=St.style,lt=St.prefixCls,Ut=St.value,ke=St.prefix,an=St.suffix,kt=St.addonBefore,Tn=St.addonAfter,rr=St.classes,Gr=St.className,Nr=St.classNames,Lr=(0,ge.Z)(St,xt),Ur=je.useRef(null),Sr=function(ir){Ur.current&&(0,Ot.nH)(Ur.current,ir)};return je.createElement(Ze.BaseInput,{inputElement:je.createElement(Un,(0,Se.Z)({prefixCls:lt,disabled:jt,classNames:Nr,ref:ln(Ur,Zt)},Lr)),className:Gr,triggerFocus:Sr,prefixCls:lt,value:Ut,disabled:jt,style:kn,prefix:ke,suffix:an,addonAfter:Tn,addonBefore:kt,classes:rr,classNames:Nr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});bt.displayName="InputNumber";var Pt=bt,vn=Pt,mn=ne(9708),gn=ne(53124),or=ne(46735),er=ne(98866),tr=ne(98675),Hr=ne(65223),jr=ne(4173),vr=ne(47673),Kr=ne(14747),yr=ne(80110),br=ne(67968),Cr=ne(45503);const zr=(St,Zt)=>{let{componentCls:jt,borderRadiusSM:kn,borderRadiusLG:lt}=St;const Ut=Zt==="lg"?lt:kn;return{[`&-${Zt}`]:{[`${jt}-handler-wrap`]:{borderStartEndRadius:Ut,borderEndEndRadius:Ut},[`${jt}-handler-up`]:{borderStartEndRadius:Ut},[`${jt}-handler-down`]:{borderEndEndRadius:Ut}}}},Wt=St=>{const{componentCls:Zt,lineWidth:jt,lineType:kn,colorBorder:lt,borderRadius:Ut,fontSizeLG:ke,controlHeightLG:an,controlHeightSM:kt,colorError:Tn,paddingInlineSM:rr,colorTextDescription:Gr,motionDurationMid:Nr,handleHoverColor:Lr,paddingInline:Ur,paddingBlock:Sr,handleBg:ai,handleActiveBg:ir,colorTextDisabled:Rr,borderRadiusSM:Di,borderRadiusLG:Gi,controlWidth:qr,handleVisible:di,handleBorderColor:Yi}=St;return[{[Zt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Kr.Wf)(St)),(0,vr.ik)(St)),(0,vr.bi)(St,Zt)),{display:"inline-block",width:qr,margin:0,padding:0,border:`${jt}px ${kn} ${lt}`,borderRadius:Ut,"&-rtl":{direction:"rtl",[`${Zt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:ke,borderRadius:Gi,[`input${Zt}-input`]:{height:an-2*jt}},"&-sm":{padding:0,borderRadius:Di,[`input${Zt}-input`]:{height:kt-2*jt,padding:`0 ${rr}px`}},"&:hover":Object.assign({},(0,vr.pU)(St)),"&-focused":Object.assign({},(0,vr.M1)(St)),"&-out-of-range":{[`${Zt}-input-wrap`]:{input:{color:Tn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Kr.Wf)(St)),(0,vr.s7)(St)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Zt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Zt}-group-addon`]:{borderRadius:Gi,fontSize:St.fontSizeLG}},"&-sm":{[`${Zt}-group-addon`]:{borderRadius:Di}},[`${Zt}-wrapper-disabled > ${Zt}-group-addon`]:Object.assign({},(0,vr.Xy)(St))}}),[`&-disabled ${Zt}-input`]:{cursor:"not-allowed"},[Zt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Kr.Wf)(St)),{width:"100%",padding:`${Sr}px ${Ur}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Ut,outline:0,transition:`all ${Nr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,vr.nz)(St.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Zt]:Object.assign(Object.assign(Object.assign({[`&:hover ${Zt}-handler-wrap, &-focused ${Zt}-handler-wrap`]:{opacity:1},[`${Zt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:St.handleWidth,height:"100%",background:ai,borderStartStartRadius:0,borderStartEndRadius:Ut,borderEndEndRadius:Ut,borderEndStartRadius:0,opacity:di===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Nr} linear ${Nr}`,[`${Zt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Zt}-handler-up-inner,
${Zt}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:St.handleFontSize}}},[`${Zt}-handler`]:{height:"50%",overflow:"hidden",color:Gr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${jt}px ${kn} ${Yi}`,transition:`all ${Nr} linear`,"&:active":{background:ir},"&:hover":{height:"60%",[`
${Zt}-handler-up-inner,
${Zt}-handler-down-inner
`]:{color:Lr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Kr.Ro)()),{color:Gr,transition:`all ${Nr} linear`,userSelect:"none"})},[`${Zt}-handler-up`]:{borderStartEndRadius:Ut},[`${Zt}-handler-down`]:{borderBlockStart:`${jt}px ${kn} ${Yi}`,borderEndEndRadius:Ut}},zr(St,"lg")),zr(St,"sm")),{"&-disabled, &-readonly":{[`${Zt}-handler-wrap`]:{display:"none"},[`${Zt}-input`]:{color:"inherit"}},[`
${Zt}-handler-up-disabled,
${Zt}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Zt}-handler-up-disabled:hover &-handler-up-inner,
${Zt}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Rr}})},{[`${Zt}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Zt}-handler-down`]:{borderBlockStartWidth:0}}}]},On=St=>{const{componentCls:Zt,paddingBlock:jt,paddingInline:kn,inputAffixPadding:lt,controlWidth:Ut,borderRadiusLG:ke,borderRadiusSM:an}=St;return{[`${Zt}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,vr.ik)(St)),(0,vr.bi)(St,`${Zt}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Ut,padding:0,paddingInlineStart:kn,"&-lg":{borderRadius:ke},"&-sm":{borderRadius:an},[`&:not(${Zt}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,vr.pU)(St)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Zt}-disabled`]:{background:"transparent"},[`> div${Zt}`]:{width:"100%",border:"none",outline:"none",[`&${Zt}-focused`]:{boxShadow:"none !important"}},[`input${Zt}-input`]:{padding:`${jt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Zt}-handler-wrap`]:{zIndex:2},[Zt]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:lt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:kn,marginInlineStart:lt}}})}};var qn=(0,br.Z)("InputNumber",St=>{const Zt=(0,Cr.TS)(St,(0,vr.e5)(St));return[Wt(Zt),On(Zt),(0,yr.c)(Zt)]},St=>Object.assign(Object.assign({},(0,vr.TM)(St)),{controlWidth:90,handleWidth:St.controlHeightSM-St.lineWidth*2,handleFontSize:St.fontSize/2,handleVisible:"auto",handleActiveBg:St.colorFillAlter,handleBg:St.colorBgContainer,handleHoverColor:St.colorPrimary,handleBorderColor:St.colorBorder})),zn=function(St,Zt){var jt={};for(var kn in St)Object.prototype.hasOwnProperty.call(St,kn)&&Zt.indexOf(kn)<0&&(jt[kn]=St[kn]);if(St!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,kn=Object.getOwnPropertySymbols(St);lt<kn.length;lt++)Zt.indexOf(kn[lt])<0&&Object.prototype.propertyIsEnumerable.call(St,kn[lt])&&(jt[kn[lt]]=St[kn[lt]]);return jt};const Jn=je.forwardRef((St,Zt)=>{const{getPrefixCls:jt,direction:kn}=je.useContext(gn.E_),lt=je.useRef(null);je.useImperativeHandle(Zt,()=>lt.current);const{className:Ut,rootClassName:ke,size:an,disabled:kt,prefixCls:Tn,addonBefore:rr,addonAfter:Gr,prefix:Nr,bordered:Lr=!0,readOnly:Ur,status:Sr,controls:ai}=St,ir=zn(St,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Rr=jt("input-number",Tn),[Di,Gi]=qn(Rr),{compactSize:qr,compactItemClassnames:di}=(0,jr.ri)(Rr,kn);let Yi=je.createElement(de.Z,{className:`${Rr}-handler-up-inner`}),Xr=je.createElement(oe.Z,{className:`${Rr}-handler-down-inner`});const Pi=typeof ai=="boolean"?ai:void 0;typeof ai=="object"&&(Yi=typeof ai.upIcon=="undefined"?Yi:je.createElement("span",{className:`${Rr}-handler-up-inner`},ai.upIcon),Xr=typeof ai.downIcon=="undefined"?Xr:je.createElement("span",{className:`${Rr}-handler-down-inner`},ai.downIcon));const{hasFeedback:Mr,status:ua,isFormItemInput:ta,feedbackIcon:Ra}=je.useContext(Hr.aM),ca=(0,mn.F)(ua,Sr),Xi=(0,tr.Z)(ka=>{var ba;return(ba=an!=null?an:qr)!==null&&ba!==void 0?ba:ka}),Oi=je.useContext(er.Z),la=kt!=null?kt:Oi,Ji=Xe()({[`${Rr}-lg`]:Xi==="large",[`${Rr}-sm`]:Xi==="small",[`${Rr}-rtl`]:kn==="rtl",[`${Rr}-borderless`]:!Lr,[`${Rr}-in-form-item`]:ta},(0,mn.Z)(Rr,ca),di,Gi),Sa=`${Rr}-group`,Ya=je.createElement(vn,Object.assign({ref:lt,disabled:la,className:Xe()(Ut,ke),upHandler:Yi,downHandler:Xr,prefixCls:Rr,readOnly:Ur,controls:Pi,prefix:Nr,suffix:Mr&&Ra,addonAfter:Gr&&je.createElement(jr.BR,null,je.createElement(Hr.Ux,{override:!0,status:!0},Gr)),addonBefore:rr&&je.createElement(jr.BR,null,je.createElement(Hr.Ux,{override:!0,status:!0},rr)),classNames:{input:Ji},classes:{affixWrapper:Xe()((0,mn.Z)(`${Rr}-affix-wrapper`,ca,Mr),{[`${Rr}-affix-wrapper-sm`]:Xi==="small",[`${Rr}-affix-wrapper-lg`]:Xi==="large",[`${Rr}-affix-wrapper-rtl`]:kn==="rtl",[`${Rr}-affix-wrapper-borderless`]:!Lr},Gi),wrapper:Xe()({[`${Sa}-rtl`]:kn==="rtl",[`${Rr}-wrapper-disabled`]:la},Gi),group:Xe()({[`${Rr}-group-wrapper-sm`]:Xi==="small",[`${Rr}-group-wrapper-lg`]:Xi==="large",[`${Rr}-group-wrapper-rtl`]:kn==="rtl"},(0,mn.Z)(`${Rr}-group-wrapper`,ca,Mr),Gi)}},ir));return Di(Ya)}),pr=Jn,wr=St=>je.createElement(or.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},je.createElement(Jn,Object.assign({},St)));pr._InternalPanelDoNotUseOrYouWillBeFired=wr;var nr=pr},82586:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Lt},n:function(){return xe}});var oe=ne(16646),de=ne(94184),Fe=ne.n(de),Xe=ne(67656),Se=ne(17799),Me=ne(67294),ce=ne(9708),we=ne(53124),ge=ne(98866),Be=ne(98675),Qe=ne(65223),Oe=ne(4173),et=ne(72922),ot=ne(47673);function nt(it){return!!(it.prefix||it.suffix||it.allowClear)}var Ve=function(it,pt){var Ce={};for(var be in it)Object.prototype.hasOwnProperty.call(it,be)&&pt.indexOf(be)<0&&(Ce[be]=it[be]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,be=Object.getOwnPropertySymbols(it);Ze<be.length;Ze++)pt.indexOf(be[Ze])<0&&Object.prototype.propertyIsEnumerable.call(it,be[Ze])&&(Ce[be[Ze]]=it[be[Ze]]);return Ce};function xe(it,pt){if(!it)return;it.focus(pt);const{cursor:Ce}=pt||{};if(Ce){const be=it.value.length;switch(Ce){case"start":it.setSelectionRange(0,0);break;case"end":it.setSelectionRange(be,be);break;default:it.setSelectionRange(0,be);break}}}var Lt=(0,Me.forwardRef)((it,pt)=>{var Ce;const{prefixCls:be,bordered:Ze=!0,status:je,size:Et,disabled:ft,onBlur:ut,onFocus:Re,suffix:Vt,allowClear:wt,addonAfter:yn,addonBefore:Ft,className:ln,style:Kn,styles:rt,rootClassName:dt,onChange:Ae,classNames:Bt}=it,Cn=Ve(it,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:en,direction:Ct,input:Rt}=Me.useContext(we.E_),tn=en("input",be),cr=(0,Me.useRef)(null),[Gn,qt]=(0,ot.ZP)(tn),{compactSize:Fn,compactItemClassnames:lr}=(0,Oe.ri)(tn,Ct),nn=(0,Be.Z)(It=>{var xt;return(xt=Et!=null?Et:Fn)!==null&&xt!==void 0?xt:It}),ze=Me.useContext(ge.Z),ue=ft!=null?ft:ze,{status:fe,hasFeedback:ve,feedbackIcon:he}=(0,Me.useContext)(Qe.aM),le=(0,ce.F)(fe,je),Ne=nt(it)||!!ve,Te=(0,Me.useRef)(Ne);(0,Me.useEffect)(()=>{var It;Ne&&Te.current,Te.current=Ne},[Ne]);const gt=(0,et.Z)(cr,!0),At=It=>{gt(),ut==null||ut(It)},Tt=It=>{gt(),Re==null||Re(It)},zt=It=>{gt(),Ae==null||Ae(It)},Ot=(ve||Vt)&&Me.createElement(Me.Fragment,null,Vt,ve&&he);let ht;return typeof wt=="object"&&(wt!=null&&wt.clearIcon)?ht=wt:wt&&(ht={clearIcon:Me.createElement(oe.Z,null)}),Gn(Me.createElement(Xe.default,Object.assign({ref:(0,Se.sQ)(pt,cr),prefixCls:tn,autoComplete:Rt==null?void 0:Rt.autoComplete},Cn,{disabled:ue,onBlur:At,onFocus:Tt,style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),Kn),styles:Object.assign(Object.assign({},Rt==null?void 0:Rt.styles),rt),suffix:Ot,allowClear:ht,className:Fe()(ln,dt,lr,Rt==null?void 0:Rt.className),onChange:zt,addonAfter:yn&&Me.createElement(Oe.BR,null,Me.createElement(Qe.Ux,{override:!0,status:!0},yn)),addonBefore:Ft&&Me.createElement(Oe.BR,null,Me.createElement(Qe.Ux,{override:!0,status:!0},Ft)),classNames:Object.assign(Object.assign(Object.assign({},Bt),Rt==null?void 0:Rt.classNames),{input:Fe()({[`${tn}-sm`]:nn==="small",[`${tn}-lg`]:nn==="large",[`${tn}-rtl`]:Ct==="rtl",[`${tn}-borderless`]:!Ze},!Ne&&(0,ce.Z)(tn,le),Bt==null?void 0:Bt.input,(Ce=Rt==null?void 0:Rt.classNames)===null||Ce===void 0?void 0:Ce.input,qt)}),classes:{affixWrapper:Fe()({[`${tn}-affix-wrapper-sm`]:nn==="small",[`${tn}-affix-wrapper-lg`]:nn==="large",[`${tn}-affix-wrapper-rtl`]:Ct==="rtl",[`${tn}-affix-wrapper-borderless`]:!Ze},(0,ce.Z)(`${tn}-affix-wrapper`,le,ve),qt),wrapper:Fe()({[`${tn}-group-rtl`]:Ct==="rtl"},qt),group:Fe()({[`${tn}-group-wrapper-sm`]:nn==="small",[`${tn}-group-wrapper-lg`]:nn==="large",[`${tn}-group-wrapper-rtl`]:Ct==="rtl",[`${tn}-group-wrapper-disabled`]:ue},(0,ce.Z)(`${tn}-group-wrapper`,le,ve),qt)}})))})},96330:function(An,Jt,ne){"use strict";var oe=ne(16646),de=ne(94184),Fe=ne.n(de),Xe=ne(64701),Se=ne(67294),Me=ne(9708),ce=ne(53124),we=ne(98866),ge=ne(98675),Be=ne(65223),Qe=ne(82586),Oe=ne(47673),et=function(nt,Ve){var xe={};for(var mt in nt)Object.prototype.hasOwnProperty.call(nt,mt)&&Ve.indexOf(mt)<0&&(xe[mt]=nt[mt]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,mt=Object.getOwnPropertySymbols(nt);Lt<mt.length;Lt++)Ve.indexOf(mt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(nt,mt[Lt])&&(xe[mt[Lt]]=nt[mt[Lt]]);return xe};const ot=(0,Se.forwardRef)((nt,Ve)=>{const{prefixCls:xe,bordered:mt=!0,size:Lt,disabled:it,status:pt,allowClear:Ce,showCount:be,classNames:Ze,rootClassName:je,className:Et}=nt,ft=et(nt,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:ut,direction:Re}=Se.useContext(ce.E_),Vt=(0,ge.Z)(Lt),wt=Se.useContext(we.Z),yn=it!=null?it:wt,{status:Ft,hasFeedback:ln,feedbackIcon:Kn}=Se.useContext(Be.aM),rt=(0,Me.F)(Ft,pt),dt=Se.useRef(null);Se.useImperativeHandle(Ve,()=>{var Ct;return{resizableTextArea:(Ct=dt.current)===null||Ct===void 0?void 0:Ct.resizableTextArea,focus:Rt=>{var tn,cr;(0,Qe.n)((cr=(tn=dt.current)===null||tn===void 0?void 0:tn.resizableTextArea)===null||cr===void 0?void 0:cr.textArea,Rt)},blur:()=>{var Rt;return(Rt=dt.current)===null||Rt===void 0?void 0:Rt.blur()}}});const Ae=ut("input",xe);let Bt;typeof Ce=="object"&&(Ce!=null&&Ce.clearIcon)?Bt=Ce:Ce&&(Bt={clearIcon:Se.createElement(oe.Z,null)});const[Cn,en]=(0,Oe.ZP)(Ae);return Cn(Se.createElement(Xe.default,Object.assign({},ft,{disabled:yn,allowClear:Bt,className:Fe()(Et,je),classes:{affixWrapper:Fe()(`${Ae}-textarea-affix-wrapper`,{[`${Ae}-affix-wrapper-rtl`]:Re==="rtl",[`${Ae}-affix-wrapper-borderless`]:!mt,[`${Ae}-affix-wrapper-sm`]:Vt==="small",[`${Ae}-affix-wrapper-lg`]:Vt==="large",[`${Ae}-textarea-show-count`]:be},(0,Me.Z)(`${Ae}-affix-wrapper`,rt),en)},classNames:Object.assign(Object.assign({},Ze),{textarea:Fe()({[`${Ae}-borderless`]:!mt,[`${Ae}-sm`]:Vt==="small",[`${Ae}-lg`]:Vt==="large"},(0,Me.Z)(Ae,rt),en,Ze==null?void 0:Ze.textarea)}),prefixCls:Ae,suffix:ln&&Se.createElement("span",{className:`${Ae}-textarea-suffix`},Kn),showCount:be,ref:dt})))});Jt.Z=ot},72922:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return de}});var oe=ne(67294);function de(Fe,Xe){const Se=(0,oe.useRef)([]),Me=()=>{Se.current.push(setTimeout(()=>{var ce,we,ge,Be;!((ce=Fe.current)===null||ce===void 0)&&ce.input&&((we=Fe.current)===null||we===void 0?void 0:we.input.getAttribute("type"))==="password"&&(!((ge=Fe.current)===null||ge===void 0)&&ge.input.hasAttribute("value"))&&((Be=Fe.current)===null||Be===void 0||Be.input.removeAttribute("value"))}))};return(0,oe.useEffect)(()=>(Xe&&Me(),()=>Se.current.forEach(ce=>{ce&&clearTimeout(ce)})),[]),Me}},69677:function(An,Jt,ne){"use strict";ne.d(Jt,{default:function(){return Vt}});var oe=ne(94184),de=ne.n(oe),Fe=ne(67294),Xe=ne(53124),Se=ne(65223),Me=ne(47673),we=wt=>{const{getPrefixCls:yn,direction:Ft}=(0,Fe.useContext)(Xe.E_),{prefixCls:ln,className:Kn}=wt,rt=yn("input-group",ln),dt=yn("input"),[Ae,Bt]=(0,Me.ZP)(dt),Cn=de()(rt,{[`${rt}-lg`]:wt.size==="large",[`${rt}-sm`]:wt.size==="small",[`${rt}-compact`]:wt.compact,[`${rt}-rtl`]:Ft==="rtl"},Bt,Kn),en=(0,Fe.useContext)(Se.aM),Ct=(0,Fe.useMemo)(()=>Object.assign(Object.assign({},en),{isFormItemInput:!1}),[en]);return Ae(Fe.createElement("span",{className:Cn,style:wt.style,onMouseEnter:wt.onMouseEnter,onMouseLeave:wt.onMouseLeave,onFocus:wt.onFocus,onBlur:wt.onBlur},Fe.createElement(Se.aM.Provider,{value:Ct},wt.children)))},ge=ne(82586),Be=ne(63237),Qe=ne(99569),Oe=ne(10366),et=ne(17799),ot=ne(72922),nt=function(wt,yn){var Ft={};for(var ln in wt)Object.prototype.hasOwnProperty.call(wt,ln)&&yn.indexOf(ln)<0&&(Ft[ln]=wt[ln]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kn=0,ln=Object.getOwnPropertySymbols(wt);Kn<ln.length;Kn++)yn.indexOf(ln[Kn])<0&&Object.prototype.propertyIsEnumerable.call(wt,ln[Kn])&&(Ft[ln[Kn]]=wt[ln[Kn]]);return Ft};const Ve=wt=>wt?Fe.createElement(Qe.Z,null):Fe.createElement(Be.Z,null),xe={click:"onClick",hover:"onMouseOver"};var Lt=Fe.forwardRef((wt,yn)=>{const{visibilityToggle:Ft=!0}=wt,ln=typeof Ft=="object"&&Ft.visible!==void 0,[Kn,rt]=(0,Fe.useState)(()=>ln?Ft.visible:!1),dt=(0,Fe.useRef)(null);Fe.useEffect(()=>{ln&&rt(Ft.visible)},[ln,Ft]);const Ae=(0,ot.Z)(dt),Bt=()=>{const{disabled:ue}=wt;ue||(Kn&&Ae(),rt(fe=>{var ve;const he=!fe;return typeof Ft=="object"&&((ve=Ft.onVisibleChange)===null||ve===void 0||ve.call(Ft,he)),he}))},Cn=ue=>{const{action:fe="click",iconRender:ve=Ve}=wt,he=xe[fe]||"",le=ve(Kn),Ne={[he]:Bt,className:`${ue}-icon`,key:"passwordIcon",onMouseDown:Te=>{Te.preventDefault()},onMouseUp:Te=>{Te.preventDefault()}};return Fe.cloneElement(Fe.isValidElement(le)?le:Fe.createElement("span",null,le),Ne)},{className:en,prefixCls:Ct,inputPrefixCls:Rt,size:tn}=wt,cr=nt(wt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Gn}=Fe.useContext(Xe.E_),qt=Gn("input",Rt),Fn=Gn("input-password",Ct),lr=Ft&&Cn(Fn),nn=de()(Fn,en,{[`${Fn}-${tn}`]:!!tn}),ze=Object.assign(Object.assign({},(0,Oe.Z)(cr,["suffix","iconRender","visibilityToggle"])),{type:Kn?"text":"password",className:nn,prefixCls:qt,suffix:lr});return tn&&(ze.size=tn),Fe.createElement(ge.Z,Object.assign({ref:(0,et.sQ)(yn,dt)},ze))}),it=ne(72395),pt=ne(96159),Ce=ne(71577),be=ne(98675),Ze=ne(4173),je=function(wt,yn){var Ft={};for(var ln in wt)Object.prototype.hasOwnProperty.call(wt,ln)&&yn.indexOf(ln)<0&&(Ft[ln]=wt[ln]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kn=0,ln=Object.getOwnPropertySymbols(wt);Kn<ln.length;Kn++)yn.indexOf(ln[Kn])<0&&Object.prototype.propertyIsEnumerable.call(wt,ln[Kn])&&(Ft[ln[Kn]]=wt[ln[Kn]]);return Ft},ft=Fe.forwardRef((wt,yn)=>{const{prefixCls:Ft,inputPrefixCls:ln,className:Kn,size:rt,suffix:dt,enterButton:Ae=!1,addonAfter:Bt,loading:Cn,disabled:en,onSearch:Ct,onChange:Rt,onCompositionStart:tn,onCompositionEnd:cr}=wt,Gn=je(wt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:qt,direction:Fn}=Fe.useContext(Xe.E_),lr=Fe.useRef(!1),nn=qt("input-search",Ft),ze=qt("input",ln),{compactSize:ue}=(0,Ze.ri)(nn,Fn),fe=(0,be.Z)(sn=>{var Kt;return(Kt=rt!=null?rt:ue)!==null&&Kt!==void 0?Kt:sn}),ve=Fe.useRef(null),he=sn=>{sn&&sn.target&&sn.type==="click"&&Ct&&Ct(sn.target.value,sn,{source:"clear"}),Rt&&Rt(sn)},le=sn=>{var Kt;document.activeElement===((Kt=ve.current)===null||Kt===void 0?void 0:Kt.input)&&sn.preventDefault()},Ne=sn=>{var Kt,Un;Ct&&Ct((Un=(Kt=ve.current)===null||Kt===void 0?void 0:Kt.input)===null||Un===void 0?void 0:Un.value,sn,{source:"input"})},Te=sn=>{lr.current||Cn||Ne(sn)},gt=typeof Ae=="boolean"?Fe.createElement(it.Z,null):null,At=`${nn}-button`;let Tt;const zt=Ae||{},Ot=zt.type&&zt.type.__ANT_BUTTON===!0;Ot||zt.type==="button"?Tt=(0,pt.Tm)(zt,Object.assign({onMouseDown:le,onClick:sn=>{var Kt,Un;(Un=(Kt=zt==null?void 0:zt.props)===null||Kt===void 0?void 0:Kt.onClick)===null||Un===void 0||Un.call(Kt,sn),Ne(sn)},key:"enterButton"},Ot?{className:At,size:fe}:{})):Tt=Fe.createElement(Ce.ZP,{className:At,type:Ae?"primary":void 0,size:fe,disabled:en,key:"enterButton",onMouseDown:le,onClick:Ne,loading:Cn,icon:gt},Ae),Bt&&(Tt=[Tt,(0,pt.Tm)(Bt,{key:"addonAfter"})]);const ht=de()(nn,{[`${nn}-rtl`]:Fn==="rtl",[`${nn}-${fe}`]:!!fe,[`${nn}-with-button`]:!!Ae},Kn),It=sn=>{lr.current=!0,tn==null||tn(sn)},xt=sn=>{lr.current=!1,cr==null||cr(sn)};return Fe.createElement(ge.Z,Object.assign({ref:(0,et.sQ)(ve,yn),onPressEnter:Te},Gn,{size:fe,onCompositionStart:It,onCompositionEnd:xt,prefixCls:ze,addonAfter:Tt,suffix:dt,onChange:he,className:ht,disabled:en}))}),ut=ne(96330);const Re=ge.Z;Re.Group=we,Re.Search=ft,Re.TextArea=ut.Z,Re.Password=Lt;var Vt=Re},47673:function(An,Jt,ne){"use strict";ne.d(Jt,{M1:function(){return ce},TM:function(){return pt},Xy:function(){return we},bi:function(){return Qe},e5:function(){return it},ik:function(){return Oe},nz:function(){return Se},pU:function(){return Me},s7:function(){return et},x0:function(){return Be}});var oe=ne(14747),de=ne(80110),Fe=ne(45503),Xe=ne(67968);const Se=Ce=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Ce,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Me=Ce=>({borderColor:Ce.hoverBorderColor}),ce=Ce=>({borderColor:Ce.activeBorderColor,boxShadow:Ce.activeShadow,outline:0}),we=Ce=>({color:Ce.colorTextDisabled,backgroundColor:Ce.colorBgContainerDisabled,borderColor:Ce.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Me((0,Fe.TS)(Ce,{hoverBorderColor:Ce.colorBorder})))}),ge=Ce=>{const{paddingBlockLG:be,fontSizeLG:Ze,lineHeightLG:je,borderRadiusLG:Et,paddingInlineLG:ft}=Ce;return{padding:`${be}px ${ft}px`,fontSize:Ze,lineHeight:je,borderRadius:Et}},Be=Ce=>({padding:`${Ce.paddingBlockSM}px ${Ce.paddingInlineSM}px`,borderRadius:Ce.borderRadiusSM}),Qe=(Ce,be)=>{const{componentCls:Ze,colorError:je,colorWarning:Et,errorActiveShadow:ft,warningActiveShadow:ut,colorErrorBorderHover:Re,colorWarningBorderHover:Vt}=Ce;return{[`&-status-error:not(${be}-disabled):not(${be}-borderless)${be}`]:{borderColor:je,"&:hover":{borderColor:Re},"&:focus, &-focused":Object.assign({},ce((0,Fe.TS)(Ce,{activeBorderColor:je,activeShadow:ft}))),[`${Ze}-prefix, ${Ze}-suffix`]:{color:je}},[`&-status-warning:not(${be}-disabled):not(${be}-borderless)${be}`]:{borderColor:Et,"&:hover":{borderColor:Vt},"&:focus, &-focused":Object.assign({},ce((0,Fe.TS)(Ce,{activeBorderColor:Et,activeShadow:ut}))),[`${Ze}-prefix, ${Ze}-suffix`]:{color:Et}}}},Oe=Ce=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ce.paddingBlock}px ${Ce.paddingInline}px`,color:Ce.colorText,fontSize:Ce.fontSize,lineHeight:Ce.lineHeight,backgroundColor:Ce.colorBgContainer,backgroundImage:"none",borderWidth:Ce.lineWidth,borderStyle:Ce.lineType,borderColor:Ce.colorBorder,borderRadius:Ce.borderRadius,transition:`all ${Ce.motionDurationMid}`},Se(Ce.colorTextPlaceholder)),{"&:hover":Object.assign({},Me(Ce)),"&:focus, &-focused":Object.assign({},ce(Ce)),"&-disabled, &[disabled]":Object.assign({},we(Ce)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Ce.controlHeight,lineHeight:Ce.lineHeight,verticalAlign:"bottom",transition:`all ${Ce.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},ge(Ce)),"&-sm":Object.assign({},Be(Ce)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),et=Ce=>{const{componentCls:be,antCls:Ze}=Ce;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Ce.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${be}, &-lg > ${be}-group-addon`]:Object.assign({},ge(Ce)),[`&-sm ${be}, &-sm > ${be}-group-addon`]:Object.assign({},Be(Ce)),[`&-lg ${Ze}-select-single ${Ze}-select-selector`]:{height:Ce.controlHeightLG},[`&-sm ${Ze}-select-single ${Ze}-select-selector`]:{height:Ce.controlHeightSM},[`> ${be}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${be}-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 ${Ce.paddingInline}px`,color:Ce.colorText,fontWeight:"normal",fontSize:Ce.fontSize,textAlign:"center",backgroundColor:Ce.colorFillAlter,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,borderRadius:Ce.borderRadius,transition:`all ${Ce.motionDurationSlow}`,lineHeight:1,[`${Ze}-select`]:{margin:`-${Ce.paddingBlock+1}px -${Ce.paddingInline}px`,[`&${Ze}-select-single:not(${Ze}-select-customize-input)`]:{[`${Ze}-select-selector`]:{backgroundColor:"inherit",border:`${Ce.lineWidth}px ${Ce.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Ze}-select-selector`]:{color:Ce.colorPrimary}}},[`${Ze}-cascader-picker`]:{margin:`-9px -${Ce.paddingInline}px`,backgroundColor:"transparent",[`${Ze}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${be}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${be}-search-with-button &`]:{zIndex:0}}},[`> ${be}:first-child, ${be}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ze}-select ${Ze}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${be}-affix-wrapper`]:{[`&:not(:first-child) ${be}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${be}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${be}:last-child, ${be}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Ze}-select ${Ze}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${be}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${be}-search &`]:{borderStartStartRadius:Ce.borderRadius,borderEndStartRadius:Ce.borderRadius}},[`&:not(:first-child), ${be}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${be}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,oe.dF)()),{[`${be}-group-addon, ${be}-group-wrap, > ${be}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Ce.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${be}-affix-wrapper,
& > ${be}-number-affix-wrapper,
& > ${Ze}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Ce.lineWidth,borderInlineEndWidth:Ce.lineWidth},[`${be}`]:{float:"none"},[`& > ${Ze}-select > ${Ze}-select-selector,
& > ${Ze}-select-auto-complete ${be},
& > ${Ze}-cascader-picker ${be},
& > ${be}-group-wrapper ${be}`]:{borderInlineEndWidth:Ce.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 ${be},
& > ${Ze}-cascader-picker:first-child ${be}`]:{borderStartStartRadius:Ce.borderRadius,borderEndStartRadius:Ce.borderRadius},[`& > *:last-child,
& > ${Ze}-select:last-child > ${Ze}-select-selector,
& > ${Ze}-cascader-picker:last-child ${be},
& > ${Ze}-cascader-picker-focused:last-child ${be}`]:{borderInlineEndWidth:Ce.lineWidth,borderStartEndRadius:Ce.borderRadius,borderEndEndRadius:Ce.borderRadius},[`& > ${Ze}-select-auto-complete ${be}`]:{verticalAlign:"top"},[`${be}-group-wrapper + ${be}-group-wrapper`]:{marginInlineStart:-Ce.lineWidth,[`${be}-affix-wrapper`]:{borderRadius:0}},[`${be}-group-wrapper:not(:last-child)`]:{[`&${be}-search > ${be}-group`]:{[`& > ${be}-group-addon > ${be}-search-button`]:{borderRadius:0},[`& > ${be}`]:{borderStartStartRadius:Ce.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ce.borderRadius}}}})}},ot=Ce=>{const{componentCls:be,controlHeightSM:Ze,lineWidth:je}=Ce,ft=(Ze-je*2-16)/2;return{[be]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(Ce)),Oe(Ce)),Qe(Ce,be)),{'&[type="color"]':{height:Ce.controlHeight,[`&${be}-lg`]:{height:Ce.controlHeightLG},[`&${be}-sm`]:{height:Ze,paddingTop:ft,paddingBottom:ft}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},nt=Ce=>{const{componentCls:be}=Ce;return{[`${be}-clear-icon`]:{margin:0,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Ce.motionDurationSlow}`,"&:hover":{color:Ce.colorTextTertiary},"&:active":{color:Ce.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ce.inputAffixPadding}px`}}}},Ve=Ce=>{const{componentCls:be,inputAffixPadding:Ze,colorTextDescription:je,motionDurationSlow:Et,colorIcon:ft,colorIconHover:ut,iconCls:Re}=Ce;return{[`${be}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Oe(Ce)),{display:"inline-flex",[`&:not(${be}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Me(Ce)),{zIndex:1,[`${be}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${be}[disabled]`]:{background:"transparent"}},[`> input${be}`]:{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"'},[`${be}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Ce.paddingXS}},"&-show-count-suffix":{color:je},"&-show-count-has-suffix":{marginInlineEnd:Ce.paddingXXS},"&-prefix":{marginInlineEnd:Ze},"&-suffix":{marginInlineStart:Ze}}}),nt(Ce)),{[`${Re}${be}-password-icon`]:{color:ft,cursor:"pointer",transition:`all ${Et}`,"&:hover":{color:ut}}}),Qe(Ce,`${be}-affix-wrapper`))}},xe=Ce=>{const{componentCls:be,colorError:Ze,colorWarning:je,borderRadiusLG:Et,borderRadiusSM:ft}=Ce;return{[`${be}-group`]:Object.assign(Object.assign(Object.assign({},(0,oe.Wf)(Ce)),et(Ce)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${be}-group-addon`]:{borderRadius:Et,fontSize:Ce.fontSizeLG}},"&-sm":{[`${be}-group-addon`]:{borderRadius:ft}},"&-status-error":{[`${be}-group-addon`]:{color:Ze,borderColor:Ze}},"&-status-warning":{[`${be}-group-addon`]:{color:je,borderColor:je}},"&-disabled":{[`${be}-group-addon`]:Object.assign({},we(Ce))},[`&:not(${be}-compact-first-item):not(${be}-compact-last-item)${be}-compact-item`]:{[`${be}, ${be}-group-addon`]:{borderRadius:0}},[`&:not(${be}-compact-last-item)${be}-compact-first-item`]:{[`${be}, ${be}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${be}-compact-first-item)${be}-compact-last-item`]:{[`${be}, ${be}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},mt=Ce=>{const{componentCls:be,antCls:Ze}=Ce,je=`${be}-search`;return{[je]:{[`${be}`]:{"&:hover, &:focus":{borderColor:Ce.colorPrimaryHover,[`+ ${be}-group-addon ${je}-button:not(${Ze}-btn-primary)`]:{borderInlineStartColor:Ce.colorPrimaryHover}}},[`${be}-affix-wrapper`]:{borderRadius:0},[`${be}-lg`]:{lineHeight:Ce.lineHeightLG-2e-4},[`> ${be}-group`]:{[`> ${be}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${je}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Ce.borderRadius,borderEndEndRadius:Ce.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${je}-button:not(${Ze}-btn-primary)`]:{color:Ce.colorTextDescription,"&:hover":{color:Ce.colorPrimaryHover},"&:active":{color:Ce.colorPrimaryActive},[`&${Ze}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${je}-button`]:{height:Ce.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${je}-button`]:{height:Ce.controlHeightLG},[`&-small ${je}-button`]:{height:Ce.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${be}-compact-item`]:{[`&:not(${be}-compact-last-item)`]:{[`${be}-group-addon`]:{[`${be}-search-button`]:{marginInlineEnd:-Ce.lineWidth,borderRadius:0}}},[`&:not(${be}-compact-first-item)`]:{[`${be},${be}-affix-wrapper`]:{borderRadius:0}},[`> ${be}-group-addon ${be}-search-button,
> ${be},
${be}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${be}-affix-wrapper-focused`]:{zIndex:2}}}}},Lt=Ce=>{const{componentCls:be,paddingLG:Ze}=Ce,je=`${be}-textarea`;return{[je]:{position:"relative","&-show-count":{[`> ${be}`]:{height:"100%"},[`${be}-data-count`]:{position:"absolute",bottom:-Ce.fontSize*Ce.lineHeight,insetInlineEnd:0,color:Ce.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${be}`]:{paddingInlineEnd:Ze}},[`&-affix-wrapper${je}-has-feedback`]:{[`${be}`]:{paddingInlineEnd:Ze}},[`&-affix-wrapper${be}-affix-wrapper`]:{padding:0,[`> textarea${be}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${be}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${be}-clear-icon`]:{position:"absolute",insetInlineEnd:Ce.paddingXS,insetBlockStart:Ce.paddingXS},[`${je}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ce.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function it(Ce){return(0,Fe.TS)(Ce,{inputAffixPadding:Ce.paddingXXS})}const pt=Ce=>{const{controlHeight:be,fontSize:Ze,lineHeight:je,lineWidth:Et,controlHeightSM:ft,controlHeightLG:ut,fontSizeLG:Re,lineHeightLG:Vt,paddingSM:wt,controlPaddingHorizontalSM:yn,controlPaddingHorizontal:Ft,colorFillAlter:ln,colorPrimaryHover:Kn,controlOutlineWidth:rt,controlOutline:dt,colorErrorOutline:Ae,colorWarningOutline:Bt}=Ce;return{paddingBlock:Math.max(Math.round((be-Ze*je)/2*10)/10-Et,3),paddingBlockSM:Math.max(Math.round((ft-Ze*je)/2*10)/10-Et,0),paddingBlockLG:Math.ceil((ut-Re*Vt)/2*10)/10-Et,paddingInline:wt-Et,paddingInlineSM:yn-Et,paddingInlineLG:Ft-Et,addonBg:ln,activeBorderColor:Kn,hoverBorderColor:Kn,activeShadow:`0 0 0 ${rt}px ${dt}`,errorActiveShadow:`0 0 0 ${rt}px ${Ae}`,warningActiveShadow:`0 0 0 ${rt}px ${Bt}`}};Jt.ZP=(0,Xe.Z)("Input",Ce=>{const be=(0,Fe.TS)(Ce,it(Ce));return[ot(be),Lt(be),Ve(be),xe(be),mt(be),(0,de.c)(be)]},pt)},71322:function(An,Jt,ne){"use strict";ne.d(Jt,{D:function(){return Lt},Z:function(){return Ce}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(Ze,je){return de.createElement(Se.Z,(0,oe.Z)({},Ze,{ref:je,icon:Xe}))},ce=de.forwardRef(Me),we=ne(22751),ge=ne(91034),Be=ne(94184),Qe=ne.n(Be),Oe=ne(10366),ot=be=>!isNaN(parseFloat(be))&&isFinite(be),nt=ne(53124),Ve=ne(84321),xe=function(be,Ze){var je={};for(var Et in be)Object.prototype.hasOwnProperty.call(be,Et)&&Ze.indexOf(Et)<0&&(je[Et]=be[Et]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,Et=Object.getOwnPropertySymbols(be);ft<Et.length;ft++)Ze.indexOf(Et[ft])<0&&Object.prototype.propertyIsEnumerable.call(be,Et[ft])&&(je[Et[ft]]=be[Et[ft]]);return je};const mt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Lt=de.createContext({}),it=(()=>{let be=0;return function(){let Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return be+=1,`${Ze}${be}`}})();var Ce=de.forwardRef((be,Ze)=>{const{prefixCls:je,className:Et,trigger:ft,children:ut,defaultCollapsed:Re=!1,theme:Vt="dark",style:wt={},collapsible:yn=!1,reverseArrow:Ft=!1,width:ln=200,collapsedWidth:Kn=80,zeroWidthTriggerStyle:rt,breakpoint:dt,onCollapse:Ae,onBreakpoint:Bt}=be,Cn=xe(be,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:en}=(0,de.useContext)(Ve.Gs),[Ct,Rt]=(0,de.useState)("collapsed"in be?be.collapsed:Re),[tn,cr]=(0,de.useState)(!1);(0,de.useEffect)(()=>{"collapsed"in be&&Rt(be.collapsed)},[be.collapsed]);const Gn=(ue,fe)=>{"collapsed"in be||Rt(ue),Ae==null||Ae(ue,fe)},qt=(0,de.useRef)();qt.current=ue=>{cr(ue.matches),Bt==null||Bt(ue.matches),Ct!==ue.matches&&Gn(ue.matches,"responsive")},(0,de.useEffect)(()=>{function ue(ve){return qt.current(ve)}let fe;if(typeof window!="undefined"){const{matchMedia:ve}=window;if(ve&&dt&&dt in mt){fe=ve(`(max-width: ${mt[dt]})`);try{fe.addEventListener("change",ue)}catch(he){fe.addListener(ue)}ue(fe)}}return()=>{try{fe==null||fe.removeEventListener("change",ue)}catch(ve){fe==null||fe.removeListener(ue)}}},[dt]),(0,de.useEffect)(()=>{const ue=it("ant-sider-");return en.addSider(ue),()=>en.removeSider(ue)},[]);const Fn=()=>{Gn(!Ct,"clickTrigger")},{getPrefixCls:lr}=(0,de.useContext)(nt.E_),nn=()=>{const ue=lr("layout-sider",je),fe=(0,Oe.Z)(Cn,["collapsed"]),ve=Ct?Kn:ln,he=ot(ve)?`${ve}px`:String(ve),le=parseFloat(String(Kn||0))===0?de.createElement("span",{onClick:Fn,className:Qe()(`${ue}-zero-width-trigger`,`${ue}-zero-width-trigger-${Ft?"right":"left"}`),style:rt},ft||de.createElement(ce,null)):null,gt={expanded:Ft?de.createElement(ge.Z,null):de.createElement(we.Z,null),collapsed:Ft?de.createElement(we.Z,null):de.createElement(ge.Z,null)}[Ct?"collapsed":"expanded"],At=ft!==null?le||de.createElement("div",{className:`${ue}-trigger`,onClick:Fn,style:{width:he}},ft||gt):null,Tt=Object.assign(Object.assign({},wt),{flex:`0 0 ${he}`,maxWidth:he,minWidth:he,width:he}),zt=Qe()(ue,`${ue}-${Vt}`,{[`${ue}-collapsed`]:!!Ct,[`${ue}-has-trigger`]:yn&&ft!==null&&!le,[`${ue}-below`]:!!tn,[`${ue}-zero-width`]:parseFloat(he)===0},Et);return de.createElement("aside",Object.assign({className:zt},fe,{style:Tt,ref:Ze}),de.createElement("div",{className:`${ue}-children`},ut),yn||tn&&le?At:null)},ze=de.useMemo(()=>({siderCollapsed:Ct}),[Ct]);return de.createElement(Lt.Provider,{value:ze},nn())})},84321:function(An,Jt,ne){"use strict";ne.d(Jt,{VY:function(){return it},$_:function(){return Lt},h4:function(){return mt},Gs:function(){return et},ZP:function(){return pt}});var oe=ne(74902),de=ne(94184),Fe=ne.n(de),Xe=ne(10366),Se=ne(67294),Me=ne(53124),ce=ne(67968),ge=Ce=>{const{componentCls:be,bodyBg:Ze,lightSiderBg:je,lightTriggerBg:Et,lightTriggerColor:ft}=Ce;return{[`${be}-sider-light`]:{background:je,[`${be}-sider-trigger`]:{color:ft,background:Et},[`${be}-sider-zero-width-trigger`]:{color:ft,background:Et,border:`1px solid ${Ze}`,borderInlineStart:0}}}};const Be=Ce=>{const{antCls:be,componentCls:Ze,colorText:je,triggerColor:Et,footerBg:ft,triggerBg:ut,headerHeight:Re,headerPadding:Vt,headerColor:wt,footerPadding:yn,triggerHeight:Ft,zeroTriggerHeight:ln,zeroTriggerWidth:Kn,motionDurationMid:rt,motionDurationSlow:dt,fontSize:Ae,borderRadius:Bt,bodyBg:Cn,headerBg:en,siderBg:Ct}=Ce;return{[Ze]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Cn,"&, *":{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:Ct,transition:`all ${rt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${be}-menu${be}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ft},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ft,color:Et,lineHeight:`${Ft}px`,textAlign:"center",background:ut,cursor:"pointer",transition:`all ${rt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Re,insetInlineEnd:-Kn,zIndex:1,width:Kn,height:ln,color:Et,fontSize:Ce.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ct,borderStartStartRadius:0,borderStartEndRadius:Bt,borderEndEndRadius:Bt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${dt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${dt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Kn,borderStartStartRadius:Bt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Bt}}}}},ge(Ce)),{"&-rtl":{direction:"rtl"}}),[`${Ze}-header`]:{height:Re,padding:Vt,color:wt,lineHeight:`${Re}px`,background:en,[`${be}-menu`]:{lineHeight:"inherit"}},[`${Ze}-footer`]:{padding:yn,color:je,fontSize:Ae,background:ft},[`${Ze}-content`]:{flex:"auto",minHeight:0}}};var Qe=(0,ce.Z)("Layout",Ce=>[Be(Ce)],Ce=>{const{colorBgLayout:be,controlHeight:Ze,controlHeightLG:je,colorText:Et,controlHeightSM:ft,marginXXS:ut,colorTextLightSolid:Re,colorBgContainer:Vt}=Ce,wt=je*1.25;return{colorBgHeader:"#001529",colorBgBody:be,colorBgTrigger:"#002140",bodyBg:be,headerBg:"#001529",headerHeight:Ze*2,headerPadding:`0 ${wt}px`,headerColor:Et,footerPadding:`${ft}px ${wt}px`,footerBg:be,siderBg:"#001529",triggerHeight:je+ut*2,triggerBg:"#002140",triggerColor:Re,zeroTriggerWidth:je,zeroTriggerHeight:je,lightSiderBg:Vt,lightTriggerBg:Vt,lightTriggerColor:Et}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Oe=function(Ce,be){var Ze={};for(var je in Ce)Object.prototype.hasOwnProperty.call(Ce,je)&&be.indexOf(je)<0&&(Ze[je]=Ce[je]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,je=Object.getOwnPropertySymbols(Ce);Et<je.length;Et++)be.indexOf(je[Et])<0&&Object.prototype.propertyIsEnumerable.call(Ce,je[Et])&&(Ze[je[Et]]=Ce[je[Et]]);return Ze};const et=Se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ot(Ce){let{suffixCls:be,tagName:Ze,displayName:je}=Ce;return Et=>Se.forwardRef((ut,Re)=>Se.createElement(Et,Object.assign({ref:Re,suffixCls:be,tagName:Ze},ut)))}const nt=Se.forwardRef((Ce,be)=>{const{prefixCls:Ze,suffixCls:je,className:Et,tagName:ft}=Ce,ut=Oe(Ce,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Re}=Se.useContext(Me.E_),Vt=Re("layout",Ze),[wt,yn]=Qe(Vt),Ft=je?`${Vt}-${je}`:Vt;return wt(Se.createElement(ft,Object.assign({className:Fe()(Ze||Ft,Et,yn),ref:be},ut)))}),Ve=Se.forwardRef((Ce,be)=>{const{direction:Ze}=Se.useContext(Me.E_),[je,Et]=Se.useState([]),{prefixCls:ft,className:ut,rootClassName:Re,children:Vt,hasSider:wt,tagName:yn,style:Ft}=Ce,ln=Oe(Ce,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Kn=(0,Xe.Z)(ln,["suffixCls"]),{getPrefixCls:rt,layout:dt}=Se.useContext(Me.E_),Ae=rt("layout",ft),[Bt,Cn]=Qe(Ae),en=Fe()(Ae,{[`${Ae}-has-sider`]:typeof wt=="boolean"?wt:je.length>0,[`${Ae}-rtl`]:Ze==="rtl"},dt==null?void 0:dt.className,ut,Re,Cn),Ct=Se.useMemo(()=>({siderHook:{addSider:Rt=>{Et(tn=>[].concat((0,oe.Z)(tn),[Rt]))},removeSider:Rt=>{Et(tn=>tn.filter(cr=>cr!==Rt))}}}),[]);return Bt(Se.createElement(et.Provider,{value:Ct},Se.createElement(yn,Object.assign({ref:be,className:en,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),Ft)},Kn),Vt)))}),xe=ot({tagName:"div",displayName:"Layout"})(Ve),mt=ot({suffixCls:"header",tagName:"header",displayName:"Header"})(nt),Lt=ot({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(nt),it=ot({suffixCls:"content",tagName:"main",displayName:"Content"})(nt);var pt=xe},76529:function(An,Jt,ne){"use strict";ne.d(Jt,{J:function(){return Me}});var oe=ne(67294),de=ne(4173),Fe=ne(60276),Xe=function(ce,we){var ge={};for(var Be in ce)Object.prototype.hasOwnProperty.call(ce,Be)&&we.indexOf(Be)<0&&(ge[Be]=ce[Be]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Be=Object.getOwnPropertySymbols(ce);Qe<Be.length;Qe++)we.indexOf(Be[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ce,Be[Qe])&&(ge[Be[Qe]]=ce[Be[Qe]]);return ge};const Se=oe.createContext(null),Me=oe.forwardRef((ce,we)=>{const{children:ge}=ce,Be=Xe(ce,["children"]),Qe=oe.useContext(Se),Oe=oe.useMemo(()=>Object.assign(Object.assign({},Qe),Be),[Qe,Be.prefixCls,Be.mode,Be.selectable]);return oe.createElement(Se.Provider,{value:Oe},oe.createElement(de.BR,null,(0,Fe.supportNodeRef)(ge)?oe.cloneElement(ge,{ref:we}):ge))});Jt.Z=Se},68508:function(An,Jt,ne){"use strict";ne.d(Jt,{default:function(){return ue}});var oe=ne(78595),de=ne(67294),Fe=ne(71322),Xe=ne(94184),Se=ne.n(Xe),Me=ne(53124),ce=function(fe,ve){var he={};for(var le in fe)Object.prototype.hasOwnProperty.call(fe,le)&&ve.indexOf(le)<0&&(he[le]=fe[le]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,le=Object.getOwnPropertySymbols(fe);Ne<le.length;Ne++)ve.indexOf(le[Ne])<0&&Object.prototype.propertyIsEnumerable.call(fe,le[Ne])&&(he[le[Ne]]=fe[le[Ne]]);return he},ge=fe=>{const{prefixCls:ve,className:he,dashed:le}=fe,Ne=ce(fe,["prefixCls","className","dashed"]),{getPrefixCls:Te}=de.useContext(Me.E_),gt=Te("menu",ve),At=Se()({[`${gt}-item-divider-dashed`]:!!le},he);return de.createElement(oe.iz,Object.assign({className:At},Ne))},Be=ne(37419),Qe=ne(10366),Oe=ne(83062),et=ne(96159),nt=(0,de.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),xe=fe=>{var ve;const{className:he,children:le,icon:Ne,title:Te,danger:gt}=fe,{prefixCls:At,firstLevel:Tt,direction:zt,disableMenuItemTitleTooltip:Ot,inlineCollapsed:ht}=de.useContext(nt),It=Pt=>{const vn=de.createElement("span",{className:`${At}-title-content`},le);return(!Ne||(0,et.l$)(le)&&le.type==="span")&&le&&Pt&&Tt&&typeof le=="string"?de.createElement("div",{className:`${At}-inline-collapsed-noicon`},le.charAt(0)):vn},{siderCollapsed:xt}=de.useContext(Fe.D);let sn=Te;typeof Te=="undefined"?sn=Tt?le:"":Te===!1&&(sn="");const Kt={title:sn};!xt&&!ht&&(Kt.title=null,Kt.open=!1);const Un=(0,Be.Z)(le).length;let bt=de.createElement(oe.ck,Object.assign({},(0,Qe.Z)(fe,["title","icon","danger"]),{className:Se()({[`${At}-item-danger`]:gt,[`${At}-item-only-child`]:(Ne?Un+1:Un)===1},he),title:typeof Te=="string"?Te:void 0}),(0,et.Tm)(Ne,{className:Se()((0,et.l$)(Ne)?(ve=Ne.props)===null||ve===void 0?void 0:ve.className:"",`${At}-item-icon`)}),It(ht));return Ot||(bt=de.createElement(Oe.Z,Object.assign({},Kt,{placement:zt==="rtl"?"left":"right",overlayClassName:`${At}-inline-collapsed-tooltip`}),bt)),bt},Lt=fe=>{var ve;const{popupClassName:he,icon:le,title:Ne,theme:Te}=fe,gt=de.useContext(nt),{prefixCls:At,inlineCollapsed:Tt,theme:zt}=gt,Ot=(0,oe.Xl)();let ht;if(!le)ht=Tt&&!Ot.length&&Ne&&typeof Ne=="string"?de.createElement("div",{className:`${At}-inline-collapsed-noicon`},Ne.charAt(0)):de.createElement("span",{className:`${At}-title-content`},Ne);else{const xt=(0,et.l$)(Ne)&&Ne.type==="span";ht=de.createElement(de.Fragment,null,(0,et.Tm)(le,{className:Se()((0,et.l$)(le)?(ve=le.props)===null||ve===void 0?void 0:ve.className:"",`${At}-item-icon`)}),xt?Ne:de.createElement("span",{className:`${At}-title-content`},Ne))}const It=de.useMemo(()=>Object.assign(Object.assign({},gt),{firstLevel:!1}),[gt]);return de.createElement(nt.Provider,{value:It},de.createElement(oe.Wd,Object.assign({},(0,Qe.Z)(fe,["icon"]),{title:ht,popupClassName:Se()(At,he,`${At}-${Te||zt}`)})))},it=ne(25877),pt=ne(60276),Ce=ne(33603),be=ne(76529),Ze=function(fe,ve){var he={};for(var le in fe)Object.prototype.hasOwnProperty.call(fe,le)&&ve.indexOf(le)<0&&(he[le]=fe[le]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,le=Object.getOwnPropertySymbols(fe);Ne<le.length;Ne++)ve.indexOf(le[Ne])<0&&Object.prototype.propertyIsEnumerable.call(fe,le[Ne])&&(he[le[Ne]]=fe[le[Ne]]);return he};function je(fe){return(fe||[]).map((ve,he)=>{if(ve&&typeof ve=="object"){const le=ve,{label:Ne,children:Te,key:gt,type:At}=le,Tt=Ze(le,["label","children","key","type"]),zt=gt!=null?gt:`tmp-${he}`;return Te||At==="group"?At==="group"?de.createElement(oe.BW,Object.assign({key:zt},Tt,{title:Ne}),je(Te)):de.createElement(Lt,Object.assign({key:zt},Tt,{title:Ne}),je(Te)):At==="divider"?de.createElement(ge,Object.assign({key:zt},Tt)):de.createElement(xe,Object.assign({key:zt},Tt),Ne)}return null}).filter(ve=>ve)}function Et(fe){return de.useMemo(()=>fe&&je(fe),[fe])}var ft=ne(84780),ut=ne(14747),Re=ne(33507),Vt=ne(67771),wt=ne(50438),yn=ne(67968),Ft=ne(45503),Kn=fe=>{const{componentCls:ve,motionDurationSlow:he,horizontalLineHeight:le,colorSplit:Ne,lineWidth:Te,lineType:gt,itemPaddingInline:At}=fe;return{[`${ve}-horizontal`]:{lineHeight:le,border:0,borderBottom:`${Te}px ${gt} ${Ne}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ve}-item, ${ve}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:At},[`> ${ve}-item:hover,
> ${ve}-item-active,
> ${ve}-submenu ${ve}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ve}-item, ${ve}-submenu-title`]:{transition:[`border-color ${he}`,`background ${he}`].join(",")},[`${ve}-submenu-arrow`]:{display:"none"}}}},dt=fe=>{let{componentCls:ve,menuArrowOffset:he}=fe;return{[`${ve}-rtl`]:{direction:"rtl"},[`${ve}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ve}-rtl${ve}-vertical,
${ve}-submenu-rtl ${ve}-vertical`]:{[`${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${he})`},"&::after":{transform:`rotate(45deg) translateY(${he})`}}}}};const Ae=fe=>Object.assign({},(0,ut.oN)(fe));var Cn=(fe,ve)=>{const{componentCls:he,itemColor:le,itemSelectedColor:Ne,groupTitleColor:Te,itemBg:gt,subMenuItemBg:At,itemSelectedBg:Tt,activeBarHeight:zt,activeBarWidth:Ot,activeBarBorderWidth:ht,motionDurationSlow:It,motionEaseInOut:xt,motionEaseOut:sn,itemPaddingInline:Kt,motionDurationMid:Un,itemHoverColor:bt,lineType:Pt,colorSplit:vn,itemDisabledColor:mn,dangerItemColor:gn,dangerItemHoverColor:or,dangerItemSelectedColor:er,dangerItemActiveBg:tr,dangerItemSelectedBg:Hr,itemHoverBg:jr,itemActiveBg:vr,menuSubMenuBg:Kr,horizontalItemSelectedColor:yr,horizontalItemSelectedBg:br,horizontalItemBorderRadius:Cr,horizontalItemHoverBg:zr,popupBg:Wt}=fe;return{[`${he}-${ve}, ${he}-${ve} > ${he}`]:{color:le,background:gt,[`&${he}-root:focus-visible`]:Object.assign({},Ae(fe)),[`${he}-item-group-title`]:{color:Te},[`${he}-submenu-selected`]:{[`> ${he}-submenu-title`]:{color:Ne}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{color:`${mn} !important`},[`${he}-item:not(${he}-item-selected):not(${he}-submenu-selected)`]:{[`&:hover, > ${he}-submenu-title:hover`]:{color:bt}},[`&:not(${he}-horizontal)`]:{[`${he}-item:not(${he}-item-selected)`]:{"&:hover":{backgroundColor:jr},"&:active":{backgroundColor:vr}},[`${he}-submenu-title`]:{"&:hover":{backgroundColor:jr},"&:active":{backgroundColor:vr}}},[`${he}-item-danger`]:{color:gn,[`&${he}-item:hover`]:{[`&:not(${he}-item-selected):not(${he}-submenu-selected)`]:{color:or}},[`&${he}-item:active`]:{background:tr}},[`${he}-item a`]:{"&, &:hover":{color:"inherit"}},[`${he}-item-selected`]:{color:Ne,[`&${he}-item-danger`]:{color:er},"a, a:hover":{color:"inherit"}},[`& ${he}-item-selected`]:{backgroundColor:Tt,[`&${he}-item-danger`]:{backgroundColor:Hr}},[`${he}-item, ${he}-submenu-title`]:{[`&:not(${he}-item-disabled):focus-visible`]:Object.assign({},Ae(fe))},[`&${he}-submenu > ${he}`]:{backgroundColor:Kr},[`&${he}-popup > ${he}`]:{backgroundColor:Wt},[`&${he}-horizontal`]:Object.assign(Object.assign({},ve==="dark"?{borderBottom:0}:{}),{[`> ${he}-item, > ${he}-submenu`]:{top:ht,marginTop:-ht,marginBottom:0,borderRadius:Cr,"&::after":{position:"absolute",insetInline:Kt,bottom:0,borderBottom:`${zt}px solid transparent`,transition:`border-color ${It} ${xt}`,content:'""'},"&:hover, &-active, &-open":{background:zr,"&::after":{borderBottomWidth:zt,borderBottomColor:yr}},"&-selected":{color:yr,backgroundColor:br,"&:hover":{backgroundColor:br},"&::after":{borderBottomWidth:zt,borderBottomColor:yr}}}}),[`&${he}-root`]:{[`&${he}-inline, &${he}-vertical`]:{borderInlineEnd:`${ht}px ${Pt} ${vn}`}},[`&${he}-inline`]:{[`${he}-sub${he}-inline`]:{background:At},[`${he}-item, ${he}-submenu-title`]:ht&&Ot?{width:`calc(100% + ${ht}px)`}:{},[`${he}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ot}px solid ${Ne}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Un} ${sn}`,`opacity ${Un} ${sn}`].join(","),content:'""'},[`&${he}-item-danger`]:{"&::after":{borderInlineEndColor:er}}},[`${he}-selected, ${he}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Un} ${xt}`,`opacity ${Un} ${xt}`].join(",")}}}}}};const en=fe=>{const{componentCls:ve,itemHeight:he,itemMarginInline:le,padding:Ne,menuArrowSize:Te,marginXS:gt,itemMarginBlock:At}=fe,Tt=Ne+Te+gt;return{[`${ve}-item`]:{position:"relative",overflow:"hidden"},[`${ve}-item, ${ve}-submenu-title`]:{height:he,lineHeight:`${he}px`,paddingInline:Ne,overflow:"hidden",textOverflow:"ellipsis",marginInline:le,marginBlock:At,width:`calc(100% - ${le*2}px)`},[`> ${ve}-item,
> ${ve}-submenu > ${ve}-submenu-title`]:{height:he,lineHeight:`${he}px`},[`${ve}-item-group-list ${ve}-submenu-title,
${ve}-submenu-title`]:{paddingInlineEnd:Tt}}};var Rt=fe=>{const{componentCls:ve,iconCls:he,itemHeight:le,colorTextLightSolid:Ne,dropdownWidth:Te,controlHeightLG:gt,motionDurationMid:At,motionEaseOut:Tt,paddingXL:zt,itemMarginInline:Ot,fontSizeLG:ht,motionDurationSlow:It,paddingXS:xt,boxShadowSecondary:sn,collapsedWidth:Kt,collapsedIconSize:Un}=fe,bt={height:le,lineHeight:`${le}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ve]:{"&-inline, &-vertical":Object.assign({[`&${ve}-root`]:{boxShadow:"none"}},en(fe))},[`${ve}-submenu-popup`]:{[`${ve}-vertical`]:Object.assign(Object.assign({},en(fe)),{boxShadow:sn})}},{[`${ve}-submenu-popup ${ve}-vertical${ve}-sub`]:{minWidth:Te,maxHeight:`calc(100vh - ${gt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ve}-inline`]:{width:"100%",[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${It}`,`background ${It}`,`padding ${At} ${Tt}`].join(","),[`> ${ve}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ve}-sub${ve}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ve}-submenu > ${ve}-submenu-title`]:bt,[`& ${ve}-item-group-title`]:{paddingInlineStart:zt}},[`${ve}-item`]:bt}},{[`${ve}-inline-collapsed`]:{width:Kt,[`&${ve}-root`]:{[`${ve}-item, ${ve}-submenu ${ve}-submenu-title`]:{[`> ${ve}-inline-collapsed-noicon`]:{fontSize:ht,textAlign:"center"}}},[`> ${ve}-item,
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-item,
> ${ve}-item-group > ${ve}-item-group-list > ${ve}-submenu > ${ve}-submenu-title,
> ${ve}-submenu > ${ve}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ht/2}px - ${Ot}px)`,textOverflow:"clip",[`
${ve}-submenu-arrow,
${ve}-submenu-expand-icon
`]:{opacity:0},[`${ve}-item-icon, ${he}`]:{margin:0,fontSize:Un,lineHeight:`${le}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ve}-item-icon, ${he}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ve}-item-icon, ${he}`]:{display:"none"},"a, a:hover":{color:Ne}},[`${ve}-item-group-title`]:Object.assign(Object.assign({},ut.vS),{paddingInline:xt})}}]};const tn=fe=>{const{componentCls:ve,motionDurationSlow:he,motionDurationMid:le,motionEaseInOut:Ne,motionEaseOut:Te,iconCls:gt,iconSize:At,iconMarginInlineEnd:Tt}=fe;return{[`${ve}-item, ${ve}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${he}`,`background ${he}`,`padding ${he} ${Ne}`].join(","),[`${ve}-item-icon, ${gt}`]:{minWidth:At,fontSize:At,transition:[`font-size ${le} ${Te}`,`margin ${he} ${Ne}`,`color ${he}`].join(","),"+ span":{marginInlineStart:Tt,opacity:1,transition:[`opacity ${he} ${Ne}`,`margin ${he}`,`color ${he}`].join(",")}},[`${ve}-item-icon`]:Object.assign({},(0,ut.Ro)()),[`&${ve}-item-only-child`]:{[`> ${gt}, > ${ve}-item-icon`]:{marginInlineEnd:0}}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ve}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},cr=fe=>{const{componentCls:ve,motionDurationSlow:he,motionEaseInOut:le,borderRadius:Ne,menuArrowSize:Te,menuArrowOffset:gt}=fe;return{[`${ve}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:fe.margin,width:Te,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${he} ${le}, opacity ${he}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Te*.6,height:Te*.15,backgroundColor:"currentcolor",borderRadius:Ne,transition:[`background ${he} ${le}`,`transform ${he} ${le}`,`top ${he} ${le}`,`color ${he} ${le}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${gt})`},"&::after":{transform:`rotate(-45deg) translateY(${gt})`}}}}},Gn=fe=>{const{antCls:ve,componentCls:he,fontSize:le,motionDurationSlow:Ne,motionDurationMid:Te,motionEaseInOut:gt,paddingXS:At,padding:Tt,colorSplit:zt,lineWidth:Ot,zIndexPopup:ht,borderRadiusLG:It,subMenuItemBorderRadius:xt,menuArrowSize:sn,menuArrowOffset:Kt,lineType:Un,menuPanelMaskInset:bt,groupTitleLineHeight:Pt,groupTitleFontSize:vn}=fe;return[{"":{[`${he}`]:Object.assign(Object.assign({},(0,ut.dF)()),{"&-hidden":{display:"none"}})},[`${he}-submenu-hidden`]:{display:"none"}},{[he]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(fe)),(0,ut.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:le,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ne} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${he}-item`]:{flex:"none"}},[`${he}-item, ${he}-submenu, ${he}-submenu-title`]:{borderRadius:fe.itemBorderRadius},[`${he}-item-group-title`]:{padding:`${At}px ${Tt}px`,fontSize:vn,lineHeight:Pt,transition:`all ${Ne}`},[`&-horizontal ${he}-submenu`]:{transition:[`border-color ${Ne} ${gt}`,`background ${Ne} ${gt}`].join(",")},[`${he}-submenu, ${he}-submenu-inline`]:{transition:[`border-color ${Ne} ${gt}`,`background ${Ne} ${gt}`,`padding ${Te} ${gt}`].join(",")},[`${he}-submenu ${he}-sub`]:{cursor:"initial",transition:[`background ${Ne} ${gt}`,`padding ${Ne} ${gt}`].join(",")},[`${he}-title-content`]:{transition:`color ${Ne}`},[`${he}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${he}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:zt,borderStyle:Un,borderWidth:0,borderTopWidth:Ot,marginBlock:Ot,padding:0,"&-dashed":{borderStyle:"dashed"}}}),tn(fe)),{[`${he}-item-group`]:{[`${he}-item-group-list`]:{margin:0,padding:0,[`${he}-item, ${he}-submenu-title`]:{paddingInline:`${le*2}px ${Tt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ht,borderRadius:It,boxShadow:"none",transformOrigin:"0 0",[`&${he}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${bt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:bt},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:fe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:fe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:fe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:fe.paddingXS},[`> ${he}`]:Object.assign(Object.assign(Object.assign({borderRadius:It},tn(fe)),cr(fe)),{[`${he}-item, ${he}-submenu > ${he}-submenu-title`]:{borderRadius:xt},[`${he}-submenu-title::after`]:{transition:`transform ${Ne} ${gt}`}})}}),cr(fe)),{[`&-inline-collapsed ${he}-submenu-arrow,
&-inline ${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Kt})`},"&::after":{transform:`rotate(45deg) translateX(-${Kt})`}},[`${he}-submenu-open${he}-submenu-inline > ${he}-submenu-title > ${he}-submenu-arrow`]:{transform:`translateY(-${sn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Kt})`},"&::before":{transform:`rotate(45deg) translateX(${Kt})`}}})},{[`${ve}-layout-header`]:{[he]:{lineHeight:"inherit"}}}]};var qt=(fe,ve)=>(0,yn.Z)("Menu",le=>{if(ve===!1)return[];const{colorBgElevated:Ne,colorPrimary:Te,colorTextLightSolid:gt,controlHeightLG:At,fontSize:Tt,darkItemColor:zt,darkDangerItemColor:Ot,darkItemBg:ht,darkSubMenuItemBg:It,darkItemSelectedColor:xt,darkItemSelectedBg:sn,darkDangerItemSelectedBg:Kt,darkItemHoverBg:Un,darkGroupTitleColor:bt,darkItemHoverColor:Pt,darkItemDisabledColor:vn,darkDangerItemHoverColor:mn,darkDangerItemSelectedColor:gn,darkDangerItemActiveBg:or}=le,er=Tt/7*5,tr=(0,Ft.TS)(le,{menuArrowSize:er,menuHorizontalHeight:At*1.15,menuArrowOffset:`${er*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ne}),Hr=(0,Ft.TS)(tr,{itemColor:zt,itemHoverColor:Pt,groupTitleColor:bt,itemSelectedColor:xt,itemBg:ht,popupBg:ht,subMenuItemBg:It,itemActiveBg:"transparent",itemSelectedBg:sn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Un,itemDisabledColor:vn,dangerItemColor:Ot,dangerItemHoverColor:mn,dangerItemSelectedColor:gn,dangerItemActiveBg:or,dangerItemSelectedBg:Kt,menuSubMenuBg:It,horizontalItemSelectedColor:gt,horizontalItemSelectedBg:Te});return[Gn(tr),Kn(tr),Rt(tr),Cn(tr,"light"),Cn(Hr,"dark"),dt(tr),(0,Re.Z)(tr),(0,Vt.oN)(tr,"slide-up"),(0,Vt.oN)(tr,"slide-down"),(0,wt._y)(tr,"zoom-big")]},le=>{const{colorPrimary:Ne,colorError:Te,colorTextDisabled:gt,colorErrorBg:At,colorText:Tt,colorTextDescription:zt,colorBgContainer:Ot,colorFillAlter:ht,colorFillContent:It,lineWidth:xt,lineWidthBold:sn,controlItemBgActive:Kt,colorBgTextHover:Un,controlHeightLG:bt,lineHeight:Pt,colorBgElevated:vn,marginXXS:mn,padding:gn,fontSize:or,controlHeightSM:er,fontSizeLG:tr,colorTextLightSolid:Hr,colorErrorHover:jr}=le,vr=new ft.C(Hr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:le.zIndexPopupBase+50,radiusItem:le.borderRadiusLG,itemBorderRadius:le.borderRadiusLG,radiusSubMenuItem:le.borderRadiusSM,subMenuItemBorderRadius:le.borderRadiusSM,colorItemText:Tt,itemColor:Tt,colorItemTextHover:Tt,itemHoverColor:Tt,colorItemTextHoverHorizontal:Ne,horizontalItemHoverColor:Ne,colorGroupTitle:zt,groupTitleColor:zt,colorItemTextSelected:Ne,itemSelectedColor:Ne,colorItemTextSelectedHorizontal:Ne,horizontalItemSelectedColor:Ne,colorItemBg:Ot,itemBg:Ot,colorItemBgHover:Un,itemHoverBg:Un,colorItemBgActive:It,itemActiveBg:Kt,colorSubItemBg:ht,subMenuItemBg:ht,colorItemBgSelected:Kt,itemSelectedBg:Kt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:sn,activeBarHeight:sn,colorActiveBarBorderSize:xt,activeBarBorderWidth:xt,colorItemTextDisabled:gt,itemDisabledColor:gt,colorDangerItemText:Te,dangerItemColor:Te,colorDangerItemTextHover:Te,dangerItemHoverColor:Te,colorDangerItemTextSelected:Te,dangerItemSelectedColor:Te,colorDangerItemBgActive:At,dangerItemActiveBg:At,colorDangerItemBgSelected:At,dangerItemSelectedBg:At,itemMarginInline:le.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:bt,groupTitleLineHeight:Pt,collapsedWidth:bt*2,popupBg:vn,itemMarginBlock:mn,itemPaddingInline:gn,horizontalLineHeight:`${bt*1.15}px`,iconSize:or,iconMarginInlineEnd:er-or,collapsedIconSize:tr,groupTitleFontSize:or,darkItemDisabledColor:new ft.C(Hr).setAlpha(.25).toRgbString(),darkItemColor:vr,darkDangerItemColor:Te,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Hr,darkItemSelectedBg:Ne,darkDangerItemSelectedBg:Te,darkItemHoverBg:"transparent",darkGroupTitleColor:vr,darkItemHoverColor:Hr,darkDangerItemHoverColor:jr,darkDangerItemSelectedColor:Hr,darkDangerItemActiveBg:Te}},{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"]]})(fe),Fn=function(fe,ve){var he={};for(var le in fe)Object.prototype.hasOwnProperty.call(fe,le)&&ve.indexOf(le)<0&&(he[le]=fe[le]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,le=Object.getOwnPropertySymbols(fe);Ne<le.length;Ne++)ve.indexOf(le[Ne])<0&&Object.prototype.propertyIsEnumerable.call(fe,le[Ne])&&(he[le[Ne]]=fe[le[Ne]]);return he},nn=(0,de.forwardRef)((fe,ve)=>{var he,le;const Ne=de.useContext(be.Z),Te=Ne||{},{getPrefixCls:gt,getPopupContainer:At,direction:Tt,menu:zt}=de.useContext(Me.E_),Ot=gt(),{prefixCls:ht,className:It,style:xt,theme:sn="light",expandIcon:Kt,_internalDisableMenuItemTitleTooltip:Un,inlineCollapsed:bt,siderCollapsed:Pt,items:vn,children:mn,rootClassName:gn,mode:or,selectable:er,onClick:tr,overflowedIndicatorPopupClassName:Hr}=fe,jr=Fn(fe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),vr=(0,Qe.Z)(jr,["collapsedWidth"]),Kr=Et(vn)||mn;(he=Te.validator)===null||he===void 0||he.call(Te,{mode:or});const yr=(0,pt.useEvent)(function(){var nr;tr==null||tr.apply(void 0,arguments),(nr=Te.onClick)===null||nr===void 0||nr.call(Te)}),br=Te.mode||or,Cr=er!=null?er:Te.selectable,zr=de.useMemo(()=>Pt!==void 0?Pt:bt,[bt,Pt]),Wt={horizontal:{motionName:`${Ot}-slide-up`},inline:(0,Ce.Z)(Ot),other:{motionName:`${Ot}-zoom-big`}},On=gt("menu",ht||Te.prefixCls),[qn,zn]=qt(On,!Ne),Jn=Se()(`${On}-${sn}`,zt==null?void 0:zt.className,It);let pr;if(typeof Kt=="function")pr=Kt;else if(Kt===null||Kt===!1)pr=null;else if(Te.expandIcon===null||Te.expandIcon===!1)pr=null;else{const nr=Kt!=null?Kt:Te.expandIcon;pr=(0,et.Tm)(nr,{className:Se()(`${On}-submenu-expand-icon`,(0,et.l$)(nr)?(le=nr.props)===null||le===void 0?void 0:le.className:"")})}const wr=de.useMemo(()=>({prefixCls:On,inlineCollapsed:zr||!1,direction:Tt,firstLevel:!0,theme:sn,mode:br,disableMenuItemTitleTooltip:Un}),[On,zr,Tt,Un,sn]);return qn(de.createElement(be.Z.Provider,{value:null},de.createElement(nt.Provider,{value:wr},de.createElement(oe.ZP,Object.assign({getPopupContainer:At,overflowedIndicator:de.createElement(it.Z,null),overflowedIndicatorPopupClassName:Se()(On,`${On}-${sn}`,Hr),mode:br,selectable:Cr,onClick:yr},vr,{inlineCollapsed:zr,style:Object.assign(Object.assign({},zt==null?void 0:zt.style),xt),className:Jn,prefixCls:On,direction:Tt,defaultMotions:Wt,expandIcon:pr,ref:ve,rootClassName:Se()(gn,zn)}),Kr))))});const ze=(0,de.forwardRef)((fe,ve)=>{const he=(0,de.useRef)(null),le=de.useContext(Fe.D);return(0,de.useImperativeHandle)(ve,()=>({menu:he.current,focus:Ne=>{var Te;(Te=he.current)===null||Te===void 0||Te.focus(Ne)}})),de.createElement(nn,Object.assign({ref:he},fe,le))});ze.Item=xe,ze.SubMenu=Lt,ze.Divider=ge,ze.ItemGroup=oe.BW;var ue=ze},28452:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Ot}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(It,xt){return de.createElement(Se.Z,(0,oe.Z)({},It,{ref:xt,icon:Xe}))},ce=de.forwardRef(Me),we=ne(81893),ge=ne(22751),Be=ne(91034),Qe=ne(94184),Oe=ne.n(Qe),et=ne(4942),ot=ne(1413),nt=ne(15671),Ve=ne(43144),xe=ne(60136),mt=ne(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`,it=`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`,pt="".concat(Lt," ").concat(it).split(/[\s\n]+/),Ce="aria-",be="data-";function Ze(ht,It){return ht.indexOf(It)===0}function je(ht){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xt;It===!1?xt={aria:!0,data:!0,attr:!0}:It===!0?xt={aria:!0}:xt=(0,ot.Z)({},It);var sn={};return Object.keys(ht).forEach(function(Kt){(xt.aria&&(Kt==="role"||Ze(Kt,Ce))||xt.data&&Ze(Kt,be)||xt.attr&&pt.includes(Kt))&&(sn[Kt]=ht[Kt])}),sn}var Et={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},ft=Et,ut=ne(81626),Re=function(ht){(0,xe.Z)(xt,ht);var It=(0,mt.Z)(xt);function xt(){var sn;(0,nt.Z)(this,xt);for(var Kt=arguments.length,Un=new Array(Kt),bt=0;bt<Kt;bt++)Un[bt]=arguments[bt];return sn=It.call.apply(It,[this].concat(Un)),sn.state={goInputText:""},sn.getValidValue=function(){var Pt=sn.state.goInputText;return!Pt||Number.isNaN(Pt)?void 0:Number(Pt)},sn.buildOptionText=function(Pt){return"".concat(Pt," ").concat(sn.props.locale.items_per_page)},sn.changeSize=function(Pt){sn.props.changeSize(Number(Pt))},sn.handleChange=function(Pt){sn.setState({goInputText:Pt.target.value})},sn.handleBlur=function(Pt){var vn=sn.props,mn=vn.goButton,gn=vn.quickGo,or=vn.rootPrefixCls,er=sn.state.goInputText;mn||er===""||(sn.setState({goInputText:""}),!(Pt.relatedTarget&&(Pt.relatedTarget.className.indexOf("".concat(or,"-item-link"))>=0||Pt.relatedTarget.className.indexOf("".concat(or,"-item"))>=0))&&gn(sn.getValidValue()))},sn.go=function(Pt){var vn=sn.state.goInputText;vn!==""&&(Pt.keyCode===ft.ENTER||Pt.type==="click")&&(sn.setState({goInputText:""}),sn.props.quickGo(sn.getValidValue()))},sn}return(0,Ve.Z)(xt,[{key:"getPageSizeOptions",value:function(){var Kt=this.props,Un=Kt.pageSize,bt=Kt.pageSizeOptions;return bt.some(function(Pt){return Pt.toString()===Un.toString()})?bt:bt.concat([Un.toString()]).sort(function(Pt,vn){var mn=Number.isNaN(Number(Pt))?0:Number(Pt),gn=Number.isNaN(Number(vn))?0:Number(vn);return mn-gn})}},{key:"render",value:function(){var Kt=this,Un=this.props,bt=Un.pageSize,Pt=Un.locale,vn=Un.rootPrefixCls,mn=Un.changeSize,gn=Un.quickGo,or=Un.goButton,er=Un.selectComponentClass,tr=Un.buildOptionText,Hr=Un.selectPrefixCls,jr=Un.disabled,vr=this.state.goInputText,Kr="".concat(vn,"-options"),yr=er,br=null,Cr=null,zr=null;if(!mn&&!gn)return null;var Wt=this.getPageSizeOptions();if(mn&&yr){var On=Wt.map(function(qn,zn){return de.createElement(yr.Option,{key:zn,value:qn.toString()},(tr||Kt.buildOptionText)(qn))});br=de.createElement(yr,{disabled:jr,prefixCls:Hr,showSearch:!1,className:"".concat(Kr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(bt||Wt[0]).toString(),onChange:this.changeSize,getPopupContainer:function(zn){return zn.parentNode},"aria-label":Pt.page_size,defaultOpen:!1},On)}return gn&&(or&&(zr=typeof or=="boolean"?de.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:jr,className:"".concat(Kr,"-quick-jumper-button")},Pt.jump_to_confirm):de.createElement("span",{onClick:this.go,onKeyUp:this.go},or)),Cr=de.createElement("div",{className:"".concat(Kr,"-quick-jumper")},Pt.jump_to,de.createElement("input",{disabled:jr,type:"text",value:vr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Pt.page}),Pt.page,zr)),de.createElement("li",{className:"".concat(Kr)},br,Cr)}}]),xt}(de.Component);Re.defaultProps={pageSizeOptions:["10","20","50","100"]};var Vt=Re,wt=function(It){var xt,sn=It.rootPrefixCls,Kt=It.page,Un=It.active,bt=It.className,Pt=It.showTitle,vn=It.onClick,mn=It.onKeyPress,gn=It.itemRender,or="".concat(sn,"-item"),er=Oe()(or,"".concat(or,"-").concat(Kt),(xt={},(0,et.Z)(xt,"".concat(or,"-active"),Un),(0,et.Z)(xt,"".concat(or,"-disabled"),!Kt),(0,et.Z)(xt,It.className,bt),xt)),tr=function(){vn(Kt)},Hr=function(Kr){mn(Kr,vn,Kt)},jr=gn(Kt,"page",de.createElement("a",{rel:"nofollow"},Kt));return jr?de.createElement("li",{title:Pt?Kt.toString():null,className:er,onClick:tr,onKeyPress:Hr,tabIndex:0},jr):null},yn=wt;function Ft(){}function ln(ht){var It=Number(ht);return typeof It=="number"&&!Number.isNaN(It)&&isFinite(It)&&Math.floor(It)===It}var Kn=function(It,xt,sn){return sn};function rt(ht,It,xt){var sn=typeof ht=="undefined"?It.pageSize:ht;return Math.floor((xt.total-1)/sn)+1}var dt=function(ht){(0,xe.Z)(xt,ht);var It=(0,mt.Z)(xt);function xt(sn){var Kt;(0,nt.Z)(this,xt),Kt=It.call(this,sn),Kt.paginationNode=de.createRef(),Kt.getJumpPrevPage=function(){return Math.max(1,Kt.state.current-(Kt.props.showLessItems?3:5))},Kt.getJumpNextPage=function(){return Math.min(rt(void 0,Kt.state,Kt.props),Kt.state.current+(Kt.props.showLessItems?3:5))},Kt.getItemIcon=function(mn,gn){var or=Kt.props.prefixCls,er=mn||de.createElement("button",{type:"button","aria-label":gn,className:"".concat(or,"-item-link")});return typeof mn=="function"&&(er=de.createElement(mn,(0,ot.Z)({},Kt.props))),er},Kt.isValid=function(mn){var gn=Kt.props.total;return ln(mn)&&mn!==Kt.state.current&&ln(gn)&&gn>0},Kt.shouldDisplayQuickJumper=function(){var mn=Kt.props,gn=mn.showQuickJumper,or=mn.total,er=Kt.state.pageSize;return or<=er?!1:gn},Kt.handleKeyDown=function(mn){(mn.keyCode===ft.ARROW_UP||mn.keyCode===ft.ARROW_DOWN)&&mn.preventDefault()},Kt.handleKeyUp=function(mn){var gn=Kt.getValidValue(mn),or=Kt.state.currentInputValue;gn!==or&&Kt.setState({currentInputValue:gn}),mn.keyCode===ft.ENTER?Kt.handleChange(gn):mn.keyCode===ft.ARROW_UP?Kt.handleChange(gn-1):mn.keyCode===ft.ARROW_DOWN&&Kt.handleChange(gn+1)},Kt.handleBlur=function(mn){var gn=Kt.getValidValue(mn);Kt.handleChange(gn)},Kt.changePageSize=function(mn){var gn=Kt.state.current,or=rt(mn,Kt.state,Kt.props);gn=gn>or?or:gn,or===0&&(gn=Kt.state.current),typeof mn=="number"&&("pageSize"in Kt.props||Kt.setState({pageSize:mn}),"current"in Kt.props||Kt.setState({current:gn,currentInputValue:gn})),Kt.props.onShowSizeChange(gn,mn),"onChange"in Kt.props&&Kt.props.onChange&&Kt.props.onChange(gn,mn)},Kt.handleChange=function(mn){var gn=Kt.props,or=gn.disabled,er=gn.onChange,tr=Kt.state,Hr=tr.pageSize,jr=tr.current,vr=tr.currentInputValue;if(Kt.isValid(mn)&&!or){var Kr=rt(void 0,Kt.state,Kt.props),yr=mn;return mn>Kr?yr=Kr:mn<1&&(yr=1),"current"in Kt.props||Kt.setState({current:yr}),yr!==vr&&Kt.setState({currentInputValue:yr}),er(yr,Hr),yr}return jr},Kt.prev=function(){Kt.hasPrev()&&Kt.handleChange(Kt.state.current-1)},Kt.next=function(){Kt.hasNext()&&Kt.handleChange(Kt.state.current+1)},Kt.jumpPrev=function(){Kt.handleChange(Kt.getJumpPrevPage())},Kt.jumpNext=function(){Kt.handleChange(Kt.getJumpNextPage())},Kt.hasPrev=function(){return Kt.state.current>1},Kt.hasNext=function(){return Kt.state.current<rt(void 0,Kt.state,Kt.props)},Kt.runIfEnter=function(mn,gn){if(mn.key==="Enter"||mn.charCode===13){for(var or=arguments.length,er=new Array(or>2?or-2:0),tr=2;tr<or;tr++)er[tr-2]=arguments[tr];gn.apply(void 0,er)}},Kt.runIfEnterPrev=function(mn){Kt.runIfEnter(mn,Kt.prev)},Kt.runIfEnterNext=function(mn){Kt.runIfEnter(mn,Kt.next)},Kt.runIfEnterJumpPrev=function(mn){Kt.runIfEnter(mn,Kt.jumpPrev)},Kt.runIfEnterJumpNext=function(mn){Kt.runIfEnter(mn,Kt.jumpNext)},Kt.handleGoTO=function(mn){(mn.keyCode===ft.ENTER||mn.type==="click")&&Kt.handleChange(Kt.state.currentInputValue)},Kt.renderPrev=function(mn){var gn=Kt.props,or=gn.prevIcon,er=gn.itemRender,tr=er(mn,"prev",Kt.getItemIcon(or,"prev page")),Hr=!Kt.hasPrev();return(0,de.isValidElement)(tr)?(0,de.cloneElement)(tr,{disabled:Hr}):tr},Kt.renderNext=function(mn){var gn=Kt.props,or=gn.nextIcon,er=gn.itemRender,tr=er(mn,"next",Kt.getItemIcon(or,"next page")),Hr=!Kt.hasNext();return(0,de.isValidElement)(tr)?(0,de.cloneElement)(tr,{disabled:Hr}):tr};var Un=sn.onChange!==Ft,bt="current"in sn;bt&&!Un&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Pt=sn.defaultCurrent;"current"in sn&&(Pt=sn.current);var vn=sn.defaultPageSize;return"pageSize"in sn&&(vn=sn.pageSize),Pt=Math.min(Pt,rt(vn,void 0,sn)),Kt.state={current:Pt,currentInputValue:Pt,pageSize:vn},Kt}return(0,Ve.Z)(xt,[{key:"componentDidUpdate",value:function(Kt,Un){var bt=this.props.prefixCls;if(Un.current!==this.state.current&&this.paginationNode.current){var Pt=this.paginationNode.current.querySelector(".".concat(bt,"-item-").concat(Un.current));if(Pt&&document.activeElement===Pt){var vn;Pt==null||(vn=Pt.blur)===null||vn===void 0||vn.call(Pt)}}}},{key:"getValidValue",value:function(Kt){var Un=Kt.target.value,bt=rt(void 0,this.state,this.props),Pt=this.state.currentInputValue,vn;return Un===""?vn=Un:Number.isNaN(Number(Un))?vn=Pt:Un>=bt?vn=bt:vn=Number(Un),vn}},{key:"getShowSizeChanger",value:function(){var Kt=this.props,Un=Kt.showSizeChanger,bt=Kt.total,Pt=Kt.totalBoundaryShowSizeChanger;return typeof Un!="undefined"?Un:bt>Pt}},{key:"render",value:function(){var Kt=this.props,Un=Kt.prefixCls,bt=Kt.className,Pt=Kt.style,vn=Kt.disabled,mn=Kt.hideOnSinglePage,gn=Kt.total,or=Kt.locale,er=Kt.showQuickJumper,tr=Kt.showLessItems,Hr=Kt.showTitle,jr=Kt.showTotal,vr=Kt.simple,Kr=Kt.itemRender,yr=Kt.showPrevNextJumpers,br=Kt.jumpPrevIcon,Cr=Kt.jumpNextIcon,zr=Kt.selectComponentClass,Wt=Kt.selectPrefixCls,On=Kt.pageSizeOptions,qn=this.state,zn=qn.current,Jn=qn.pageSize,pr=qn.currentInputValue;if(mn===!0&&gn<=Jn)return null;var wr=rt(void 0,this.state,this.props),nr=[],St=null,Zt=null,jt=null,kn=null,lt=null,Ut=er&&er.goButton,ke=tr?1:2,an=zn-1>0?zn-1:0,kt=zn+1<wr?zn+1:wr,Tn=je(this.props,{aria:!0,data:!0}),rr=jr&&de.createElement("li",{className:"".concat(Un,"-total-text")},jr(gn,[gn===0?0:(zn-1)*Jn+1,zn*Jn>gn?gn:zn*Jn]));if(vr){Ut&&(typeof Ut=="boolean"?lt=de.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},or.jump_to_confirm):lt=de.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ut),lt=de.createElement("li",{title:Hr?"".concat(or.jump_to).concat(zn,"/").concat(wr):null,className:"".concat(Un,"-simple-pager")},lt));var Gr=this.renderPrev(an);return de.createElement("ul",(0,oe.Z)({className:Oe()(Un,"".concat(Un,"-simple"),(0,et.Z)({},"".concat(Un,"-disabled"),vn),bt),style:Pt,ref:this.paginationNode},Tn),rr,Gr?de.createElement("li",{title:Hr?or.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Oe()("".concat(Un,"-prev"),(0,et.Z)({},"".concat(Un,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Gr):null,de.createElement("li",{title:Hr?"".concat(zn,"/").concat(wr):null,className:"".concat(Un,"-simple-pager")},de.createElement("input",{type:"text",value:pr,disabled:vn,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),de.createElement("span",{className:"".concat(Un,"-slash")},"/"),wr),de.createElement("li",{title:Hr?or.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Oe()("".concat(Un,"-next"),(0,et.Z)({},"".concat(Un,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(kt)),lt)}if(wr<=3+ke*2){var Nr={locale:or,rootPrefixCls:Un,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Hr,itemRender:Kr};wr||nr.push(de.createElement(yn,(0,oe.Z)({},Nr,{key:"noPager",page:1,className:"".concat(Un,"-item-disabled")})));for(var Lr=1;Lr<=wr;Lr+=1){var Ur=zn===Lr;nr.push(de.createElement(yn,(0,oe.Z)({},Nr,{key:Lr,page:Lr,active:Ur})))}}else{var Sr=tr?or.prev_3:or.prev_5,ai=tr?or.next_3:or.next_5,ir=Kr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(br,"prev page")),Rr=Kr(this.getJumpNextPage(),"jump-next",this.getItemIcon(Cr,"next page"));yr&&(St=ir?de.createElement("li",{title:Hr?Sr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Oe()("".concat(Un,"-jump-prev"),(0,et.Z)({},"".concat(Un,"-jump-prev-custom-icon"),!!br))},ir):null,Zt=Rr?de.createElement("li",{title:Hr?ai:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Oe()("".concat(Un,"-jump-next"),(0,et.Z)({},"".concat(Un,"-jump-next-custom-icon"),!!Cr))},Rr):null),kn=de.createElement(yn,{locale:or,last:!0,rootPrefixCls:Un,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:wr,page:wr,active:!1,showTitle:Hr,itemRender:Kr}),jt=de.createElement(yn,{locale:or,rootPrefixCls:Un,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Hr,itemRender:Kr});var Di=Math.max(1,zn-ke),Gi=Math.min(zn+ke,wr);zn-1<=ke&&(Gi=1+ke*2),wr-zn<=ke&&(Di=wr-ke*2);for(var qr=Di;qr<=Gi;qr+=1){var di=zn===qr;nr.push(de.createElement(yn,{locale:or,rootPrefixCls:Un,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:qr,page:qr,active:di,showTitle:Hr,itemRender:Kr}))}zn-1>=ke*2&&zn!==3&&(nr[0]=(0,de.cloneElement)(nr[0],{className:"".concat(Un,"-item-after-jump-prev")}),nr.unshift(St)),wr-zn>=ke*2&&zn!==wr-2&&(nr[nr.length-1]=(0,de.cloneElement)(nr[nr.length-1],{className:"".concat(Un,"-item-before-jump-next")}),nr.push(Zt)),Di!==1&&nr.unshift(jt),Gi!==wr&&nr.push(kn)}var Yi=!this.hasPrev()||!wr,Xr=!this.hasNext()||!wr,Pi=this.renderPrev(an),Mr=this.renderNext(kt);return de.createElement("ul",(0,oe.Z)({className:Oe()(Un,bt,(0,et.Z)({},"".concat(Un,"-disabled"),vn)),style:Pt,ref:this.paginationNode},Tn),rr,Pi?de.createElement("li",{title:Hr?or.prev_page:null,onClick:this.prev,tabIndex:Yi?null:0,onKeyPress:this.runIfEnterPrev,className:Oe()("".concat(Un,"-prev"),(0,et.Z)({},"".concat(Un,"-disabled"),Yi)),"aria-disabled":Yi},Pi):null,nr,Mr?de.createElement("li",{title:Hr?or.next_page:null,onClick:this.next,tabIndex:Xr?null:0,onKeyPress:this.runIfEnterNext,className:Oe()("".concat(Un,"-next"),(0,et.Z)({},"".concat(Un,"-disabled"),Xr)),"aria-disabled":Xr},Mr):null,de.createElement(Vt,{disabled:vn,locale:or,rootPrefixCls:Un,selectComponentClass:zr,selectPrefixCls:Wt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:zn,pageSize:Jn,pageSizeOptions:On,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ut}))}}],[{key:"getDerivedStateFromProps",value:function(Kt,Un){var bt={};if("current"in Kt&&(bt.current=Kt.current,Kt.current!==Un.current&&(bt.currentInputValue=bt.current)),"pageSize"in Kt&&Kt.pageSize!==Un.pageSize){var Pt=Un.current,vn=rt(Kt.pageSize,Un,Kt);Pt=Pt>vn?vn:Pt,"current"in Kt||(bt.current=Pt,bt.currentInputValue=Pt),bt.pageSize=Kt.pageSize}return bt}}]),xt}(de.Component);dt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ft,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ft,locale:ut.Z,style:{},itemRender:Kn,totalBoundaryShowSizeChanger:50};var Ae=dt,Bt=ne(62906),Cn=ne(53124),en=ne(98675),Ct=ne(25378),Rt=ne(10110),tn=ne(11713);const cr=ht=>de.createElement(tn.default,Object.assign({},ht,{showSearch:!0,size:"small"})),Gn=ht=>de.createElement(tn.default,Object.assign({},ht,{showSearch:!0,size:"middle"}));cr.Option=tn.default.Option,Gn.Option=tn.default.Option;var qt=ne(47673),Fn=ne(14747),lr=ne(67968),nn=ne(45503);const ze=ht=>{const{componentCls:It}=ht;return{[`${It}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${It}-item-link`]:{color:ht.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${It}-item-link`]:{color:ht.colorTextDisabled,cursor:"not-allowed"}}},[`&${It}-disabled`]:{cursor:"not-allowed",[`${It}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:ht.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:ht.colorBorder,backgroundColor:ht.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:ht.itemActiveBgDisabled},a:{color:ht.itemActiveColorDisabled}}},[`${It}-item-link`]:{color:ht.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${It}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${It}-simple-pager`]:{color:ht.colorTextDisabled},[`${It}-jump-prev, ${It}-jump-next`]:{[`${It}-item-link-icon`]:{opacity:0},[`${It}-item-ellipsis`]:{opacity:1}}},[`&${It}-simple`]:{[`${It}-prev, ${It}-next`]:{[`&${It}-disabled ${It}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ue=ht=>{const{componentCls:It}=ht;return{[`&${It}-mini ${It}-total-text, &${It}-mini ${It}-simple-pager`]:{height:ht.itemSizeSM,lineHeight:`${ht.itemSizeSM}px`},[`&${It}-mini ${It}-item`]:{minWidth:ht.itemSizeSM,height:ht.itemSizeSM,margin:0,lineHeight:`${ht.itemSizeSM-2}px`},[`&${It}-mini:not(${It}-disabled) ${It}-item:not(${It}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:ht.colorBgTextHover},"&:active":{backgroundColor:ht.colorBgTextActive}},[`&${It}-mini ${It}-prev, &${It}-mini ${It}-next`]:{minWidth:ht.itemSizeSM,height:ht.itemSizeSM,margin:0,lineHeight:`${ht.itemSizeSM}px`},[`&${It}-mini:not(${It}-disabled)`]:{[`${It}-prev, ${It}-next`]:{[`&:hover ${It}-item-link`]:{backgroundColor:ht.colorBgTextHover},[`&:active ${It}-item-link`]:{backgroundColor:ht.colorBgTextActive},[`&${It}-disabled:hover ${It}-item-link`]:{backgroundColor:"transparent"}}},[`
&${It}-mini ${It}-prev ${It}-item-link,
&${It}-mini ${It}-next ${It}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:ht.itemSizeSM,lineHeight:`${ht.itemSizeSM}px`}},[`&${It}-mini ${It}-jump-prev, &${It}-mini ${It}-jump-next`]:{height:ht.itemSizeSM,marginInlineEnd:0,lineHeight:`${ht.itemSizeSM}px`},[`&${It}-mini ${It}-options`]:{marginInlineStart:ht.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:ht.miniOptionsSizeChangerTop},"&-quick-jumper":{height:ht.itemSizeSM,lineHeight:`${ht.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,qt.x0)(ht)),{width:ht.paginationMiniQuickJumperInputWidth,height:ht.controlHeightSM})}}}},fe=ht=>{const{componentCls:It}=ht;return{[`
&${It}-simple ${It}-prev,
&${It}-simple ${It}-next
`]:{height:ht.itemSizeSM,lineHeight:`${ht.itemSizeSM}px`,verticalAlign:"top",[`${It}-item-link`]:{height:ht.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:ht.colorBgTextHover},"&:active":{backgroundColor:ht.colorBgTextActive},"&::after":{height:ht.itemSizeSM,lineHeight:`${ht.itemSizeSM}px`}}},[`&${It}-simple ${It}-simple-pager`]:{display:"inline-block",height:ht.itemSizeSM,marginInlineEnd:ht.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:ht.marginXS,padding:`0 ${ht.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:ht.itemInputBg,border:`${ht.lineWidth}px ${ht.lineType} ${ht.colorBorder}`,borderRadius:ht.borderRadius,outline:"none",transition:`border-color ${ht.motionDurationMid}`,color:"inherit","&:hover":{borderColor:ht.colorPrimary},"&:focus":{borderColor:ht.colorPrimaryHover,boxShadow:`${ht.inputOutlineOffset}px 0 ${ht.controlOutlineWidth}px ${ht.controlOutline}`},"&[disabled]":{color:ht.colorTextDisabled,backgroundColor:ht.colorBgContainerDisabled,borderColor:ht.colorBorder,cursor:"not-allowed"}}}}},ve=ht=>{const{componentCls:It}=ht;return{[`${It}-jump-prev, ${It}-jump-next`]:{outline:0,[`${It}-item-container`]:{position:"relative",[`${It}-item-link-icon`]:{color:ht.colorPrimary,fontSize:ht.fontSizeSM,opacity:0,transition:`all ${ht.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${It}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:ht.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:ht.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:ht.paginationEllipsisTextIndent,opacity:1,transition:`all ${ht.motionDurationMid}`}},"&:hover":{[`${It}-item-link-icon`]:{opacity:1},[`${It}-item-ellipsis`]:{opacity:0}}},[`
${It}-prev,
${It}-jump-prev,
${It}-jump-next
`]:{marginInlineEnd:ht.marginXS},[`
${It}-prev,
${It}-next,
${It}-jump-prev,
${It}-jump-next
`]:{display:"inline-block",minWidth:ht.itemSize,height:ht.itemSize,color:ht.colorText,fontFamily:ht.fontFamily,lineHeight:`${ht.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:ht.borderRadius,cursor:"pointer",transition:`all ${ht.motionDurationMid}`},[`${It}-prev, ${It}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:ht.colorText,cursor:"pointer",userSelect:"none"},[`${It}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:ht.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ht.lineWidth}px ${ht.lineType} transparent`,borderRadius:ht.borderRadius,outline:"none",transition:`all ${ht.motionDurationMid}`},[`&:hover ${It}-item-link`]:{backgroundColor:ht.colorBgTextHover},[`&:active ${It}-item-link`]:{backgroundColor:ht.colorBgTextActive},[`&${It}-disabled:hover`]:{[`${It}-item-link`]:{backgroundColor:"transparent"}}},[`${It}-slash`]:{marginInlineEnd:ht.paginationSlashMarginInlineEnd,marginInlineStart:ht.paginationSlashMarginInlineStart},[`${It}-options`]:{display:"inline-block",marginInlineStart:ht.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:ht.controlHeight,marginInlineStart:ht.marginXS,lineHeight:`${ht.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,qt.ik)(ht)),{width:ht.controlHeightLG*1.25,height:ht.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:ht.marginXS,marginInlineEnd:ht.marginXS})}}}},he=ht=>{const{componentCls:It}=ht;return{[`${It}-item`]:{display:"inline-block",minWidth:ht.itemSize,height:ht.itemSize,marginInlineEnd:ht.marginXS,fontFamily:ht.fontFamily,lineHeight:`${ht.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${ht.lineWidth}px ${ht.lineType} transparent`,borderRadius:ht.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ht.paginationItemPaddingInline}px`,color:ht.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${It}-item-active)`]:{"&:hover":{transition:`all ${ht.motionDurationMid}`,backgroundColor:ht.colorBgTextHover},"&:active":{backgroundColor:ht.colorBgTextActive}},"&-active":{fontWeight:ht.fontWeightStrong,backgroundColor:ht.itemActiveBg,borderColor:ht.colorPrimary,a:{color:ht.colorPrimary},"&:hover":{borderColor:ht.colorPrimaryHover},"&:hover a":{color:ht.colorPrimaryHover}}}}},le=ht=>{const{componentCls:It}=ht;return{[It]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fn.Wf)(ht)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${It}-total-text`]:{display:"inline-block",height:ht.itemSize,marginInlineEnd:ht.marginXS,lineHeight:`${ht.itemSize-2}px`,verticalAlign:"middle"}}),he(ht)),ve(ht)),fe(ht)),ue(ht)),ze(ht)),{[`@media only screen and (max-width: ${ht.screenLG}px)`]:{[`${It}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${ht.screenSM}px)`]:{[`${It}-options`]:{display:"none"}}}),[`&${ht.componentCls}-rtl`]:{direction:"rtl"}}},Ne=ht=>{const{componentCls:It}=ht;return{[`${It}${It}-disabled:not(${It}-mini)`]:{"&, &:hover":{[`${It}-item-link`]:{borderColor:ht.colorBorder}},"&:focus-visible":{[`${It}-item-link`]:{borderColor:ht.colorBorder}},[`${It}-item, ${It}-item-link`]:{backgroundColor:ht.colorBgContainerDisabled,borderColor:ht.colorBorder,[`&:hover:not(${It}-item-active)`]:{backgroundColor:ht.colorBgContainerDisabled,borderColor:ht.colorBorder,a:{color:ht.colorTextDisabled}},[`&${It}-item-active`]:{backgroundColor:ht.itemActiveBgDisabled}},[`${It}-prev, ${It}-next`]:{"&:hover button":{backgroundColor:ht.colorBgContainerDisabled,borderColor:ht.colorBorder,color:ht.colorTextDisabled},[`${It}-item-link`]:{backgroundColor:ht.colorBgContainerDisabled,borderColor:ht.colorBorder}}},[`${It}:not(${It}-mini)`]:{[`${It}-prev, ${It}-next`]:{"&:hover button":{borderColor:ht.colorPrimaryHover,backgroundColor:ht.itemBg},[`${It}-item-link`]:{backgroundColor:ht.itemLinkBg,borderColor:ht.colorBorder},[`&:hover ${It}-item-link`]:{borderColor:ht.colorPrimary,backgroundColor:ht.itemBg,color:ht.colorPrimary},[`&${It}-disabled`]:{[`${It}-item-link`]:{borderColor:ht.colorBorder,color:ht.colorTextDisabled}}},[`${It}-item`]:{backgroundColor:ht.itemBg,border:`${ht.lineWidth}px ${ht.lineType} ${ht.colorBorder}`,[`&:hover:not(${It}-item-active)`]:{borderColor:ht.colorPrimary,backgroundColor:ht.itemBg,a:{color:ht.colorPrimary}},"&-active":{borderColor:ht.colorPrimary}}}}},Te=ht=>{const{componentCls:It}=ht;return{[`${It}:not(${It}-disabled)`]:{[`${It}-item`]:Object.assign({},(0,Fn.Qy)(ht)),[`${It}-jump-prev, ${It}-jump-next`]:{"&:focus-visible":Object.assign({[`${It}-item-link-icon`]:{opacity:1},[`${It}-item-ellipsis`]:{opacity:0}},(0,Fn.oN)(ht))},[`${It}-prev, ${It}-next`]:{[`&:focus-visible ${It}-item-link`]:Object.assign({},(0,Fn.oN)(ht))}}}};var gt=(0,lr.Z)("Pagination",ht=>{const It=(0,nn.TS)(ht,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:ht.marginXXS/2,paginationMiniQuickJumperInputWidth:ht.controlHeightLG*1.1,paginationItemPaddingInline:ht.marginXXS*1.5,paginationEllipsisLetterSpacing:ht.marginXXS/2,paginationSlashMarginInlineStart:ht.marginXXS,paginationSlashMarginInlineEnd:ht.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,qt.e5)(ht),(0,qt.TM)(ht));return[le(It),Te(It),ht.wireframe&&Ne(It)]},ht=>({itemBg:ht.colorBgContainer,itemSize:ht.controlHeight,itemSizeSM:ht.controlHeightSM,itemActiveBg:ht.colorBgContainer,itemLinkBg:ht.colorBgContainer,itemActiveColorDisabled:ht.colorTextDisabled,itemActiveBgDisabled:ht.controlItemBgActiveDisabled,itemInputBg:ht.colorBgContainer,miniOptionsSizeChangerTop:0})),At=function(ht,It){var xt={};for(var sn in ht)Object.prototype.hasOwnProperty.call(ht,sn)&&It.indexOf(sn)<0&&(xt[sn]=ht[sn]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kt=0,sn=Object.getOwnPropertySymbols(ht);Kt<sn.length;Kt++)It.indexOf(sn[Kt])<0&&Object.prototype.propertyIsEnumerable.call(ht,sn[Kt])&&(xt[sn[Kt]]=ht[sn[Kt]]);return xt},zt=ht=>{const{prefixCls:It,selectPrefixCls:xt,className:sn,rootClassName:Kt,style:Un,size:bt,locale:Pt,selectComponentClass:vn,responsive:mn,showSizeChanger:gn}=ht,or=At(ht,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:er}=(0,Ct.Z)(mn),{getPrefixCls:tr,direction:Hr,pagination:jr={}}=de.useContext(Cn.E_),vr=tr("pagination",It),[Kr,yr]=gt(vr),br=gn!=null?gn:jr.showSizeChanger,Cr=de.useMemo(()=>{const wr=de.createElement("span",{className:`${vr}-item-ellipsis`},"\u2022\u2022\u2022"),nr=de.createElement("button",{className:`${vr}-item-link`,type:"button",tabIndex:-1},Hr==="rtl"?de.createElement(Be.Z,null):de.createElement(ge.Z,null)),St=de.createElement("button",{className:`${vr}-item-link`,type:"button",tabIndex:-1},Hr==="rtl"?de.createElement(ge.Z,null):de.createElement(Be.Z,null)),Zt=de.createElement("a",{className:`${vr}-item-link`},de.createElement("div",{className:`${vr}-item-container`},Hr==="rtl"?de.createElement(we.Z,{className:`${vr}-item-link-icon`}):de.createElement(ce,{className:`${vr}-item-link-icon`}),wr)),jt=de.createElement("a",{className:`${vr}-item-link`},de.createElement("div",{className:`${vr}-item-container`},Hr==="rtl"?de.createElement(ce,{className:`${vr}-item-link-icon`}):de.createElement(we.Z,{className:`${vr}-item-link-icon`}),wr));return{prevIcon:nr,nextIcon:St,jumpPrevIcon:Zt,jumpNextIcon:jt}},[Hr,vr]),[zr]=(0,Rt.Z)("Pagination",Bt.Z),Wt=Object.assign(Object.assign({},zr),Pt),On=(0,en.Z)(bt),qn=On==="small"||!!(er&&!On&&mn),zn=tr("select",xt),Jn=Oe()({[`${vr}-mini`]:qn,[`${vr}-rtl`]:Hr==="rtl"},jr==null?void 0:jr.className,sn,Kt,yr),pr=Object.assign(Object.assign({},jr==null?void 0:jr.style),Un);return Kr(de.createElement(Ae,Object.assign({},Cr,or,{style:pr,prefixCls:vr,selectPrefixCls:zn,className:Jn,selectComponentClass:vn||(qn?cr:Gn),locale:Wt,showSizeChanger:br})))},Ot=zt},66330:function(An,Jt,ne){"use strict";ne.d(Jt,{t5:function(){return Be}});var oe=ne(94184),de=ne.n(oe),Fe=ne(92419),Xe=ne(67294),Se=ne(53124),Me=ne(81643),ce=ne(20136),we=function(Oe,et){var ot={};for(var nt in Oe)Object.prototype.hasOwnProperty.call(Oe,nt)&&et.indexOf(nt)<0&&(ot[nt]=Oe[nt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,nt=Object.getOwnPropertySymbols(Oe);Ve<nt.length;Ve++)et.indexOf(nt[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Oe,nt[Ve])&&(ot[nt[Ve]]=Oe[nt[Ve]]);return ot};const ge=(Oe,et,ot)=>{if(!(!et&&!ot))return Xe.createElement(Xe.Fragment,null,et&&Xe.createElement("div",{className:`${Oe}-title`},(0,Me.Z)(et)),Xe.createElement("div",{className:`${Oe}-inner-content`},(0,Me.Z)(ot)))},Be=Oe=>{const{hashId:et,prefixCls:ot,className:nt,style:Ve,placement:xe="top",title:mt,content:Lt,children:it}=Oe;return Xe.createElement("div",{className:de()(et,ot,`${ot}-pure`,`${ot}-placement-${xe}`,nt),style:Ve},Xe.createElement("div",{className:`${ot}-arrow`}),Xe.createElement(Fe.G,Object.assign({},Oe,{className:et,prefixCls:ot}),it||ge(ot,mt,Lt)))},Qe=Oe=>{const{prefixCls:et}=Oe,ot=we(Oe,["prefixCls"]),{getPrefixCls:nt}=Xe.useContext(Se.E_),Ve=nt("popover",et),[xe,mt]=(0,ce.Z)(Ve);return xe(Xe.createElement(Be,Object.assign({},ot,{prefixCls:Ve,hashId:mt})))};Jt.ZP=Qe},55241:function(An,Jt,ne){"use strict";var oe=ne(94184),de=ne.n(oe),Fe=ne(67294),Xe=ne(81643),Se=ne(33603),Me=ne(53124),ce=ne(83062),we=ne(66330),ge=ne(20136),Be=function(et,ot){var nt={};for(var Ve in et)Object.prototype.hasOwnProperty.call(et,Ve)&&ot.indexOf(Ve)<0&&(nt[Ve]=et[Ve]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Ve=Object.getOwnPropertySymbols(et);xe<Ve.length;xe++)ot.indexOf(Ve[xe])<0&&Object.prototype.propertyIsEnumerable.call(et,Ve[xe])&&(nt[Ve[xe]]=et[Ve[xe]]);return nt};const Qe=et=>{let{title:ot,content:nt,prefixCls:Ve}=et;return Fe.createElement(Fe.Fragment,null,ot&&Fe.createElement("div",{className:`${Ve}-title`},(0,Xe.Z)(ot)),Fe.createElement("div",{className:`${Ve}-inner-content`},(0,Xe.Z)(nt)))},Oe=Fe.forwardRef((et,ot)=>{const{prefixCls:nt,title:Ve,content:xe,overlayClassName:mt,placement:Lt="top",trigger:it="hover",mouseEnterDelay:pt=.1,mouseLeaveDelay:Ce=.1,overlayStyle:be={}}=et,Ze=Be(et,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:je}=Fe.useContext(Me.E_),Et=je("popover",nt),[ft,ut]=(0,ge.Z)(Et),Re=je(),Vt=de()(mt,ut);return ft(Fe.createElement(ce.Z,Object.assign({placement:Lt,trigger:it,mouseEnterDelay:pt,mouseLeaveDelay:Ce,overlayStyle:be},Ze,{prefixCls:Et,overlayClassName:Vt,ref:ot,overlay:Ve||xe?Fe.createElement(Qe,{prefixCls:Et,title:Ve,content:xe}):null,transitionName:(0,Se.m)(Re,"zoom-big",Ze.transitionName),"data-popover-inject":!0})))});Oe._InternalPanelDoNotUseOrYouWillBeFired=we.ZP,Jt.Z=Oe},20136:function(An,Jt,ne){"use strict";var oe=ne(14747),de=ne(50438),Fe=ne(97414),Xe=ne(8796),Se=ne(67968),Me=ne(45503);const ce=Be=>{const{componentCls:Qe,popoverColor:Oe,minWidth:et,fontWeightStrong:ot,popoverPadding:nt,boxShadowSecondary:Ve,colorTextHeading:xe,borderRadiusLG:mt,zIndexPopup:Lt,marginXS:it,colorBgElevated:pt,popoverBg:Ce}=Be;return[{[Qe]:Object.assign(Object.assign({},(0,oe.Wf)(Be)),{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":pt,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Qe}-content`]:{position:"relative"},[`${Qe}-inner`]:{backgroundColor:Ce,backgroundClip:"padding-box",borderRadius:mt,boxShadow:Ve,padding:nt},[`${Qe}-title`]:{minWidth:et,marginBottom:it,color:xe,fontWeight:ot},[`${Qe}-inner-content`]:{color:Oe}})},(0,Fe.ZP)(Be,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Qe}-pure`]:{position:"relative",maxWidth:"none",margin:Be.sizePopupArrow,display:"inline-block",[`${Qe}-content`]:{display:"inline-block"}}}]},we=Be=>{const{componentCls:Qe}=Be;return{[Qe]:Xe.i.map(Oe=>{const et=Be[`${Oe}6`];return{[`&${Qe}-${Oe}`]:{"--antd-arrow-background-color":et,[`${Qe}-inner`]:{backgroundColor:et},[`${Qe}-arrow`]:{background:"transparent"}}}})}},ge=Be=>{const{componentCls:Qe,lineWidth:Oe,lineType:et,colorSplit:ot,paddingSM:nt,controlHeight:Ve,fontSize:xe,lineHeight:mt,padding:Lt}=Be,it=Ve-Math.round(xe*mt),pt=it/2,Ce=it/2-Oe,be=Lt;return{[Qe]:{[`${Qe}-inner`]:{padding:0},[`${Qe}-title`]:{margin:0,padding:`${pt}px ${be}px ${Ce}px`,borderBottom:`${Oe}px ${et} ${ot}`},[`${Qe}-inner-content`]:{padding:`${nt}px ${be}px`}}}};Jt.Z=(0,Se.Z)("Popover",Be=>{const{colorBgElevated:Qe,colorText:Oe,wireframe:et}=Be,ot=(0,Me.TS)(Be,{popoverPadding:12,popoverBg:Qe,popoverColor:Oe});return[ce(ot),we(ot),et&&ge(ot),(0,de._y)(ot,"zoom-big")]},Be=>({width:177,minWidth:177,zIndexPopup:Be.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},38703:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Un}});var oe=ne(67294),de=ne(87725),Fe=ne(18299),Xe=ne(16646),Se=ne(73475),Me=ne(94184),ce=ne.n(Me),we=ne(10366),ge=ne(53124),Be=ne(87462),Qe=ne(1413),Oe=ne(45987),et={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ot=function(){var Pt=(0,oe.useRef)([]),vn=(0,oe.useRef)(null);return(0,oe.useEffect)(function(){var mn=Date.now(),gn=!1;Pt.current.forEach(function(or){if(or){gn=!0;var er=or.style;er.transitionDuration=".3s, .3s, .3s, .06s",vn.current&&mn-vn.current<100&&(er.transitionDuration="0s, 0s")}}),gn&&(vn.current=Date.now())}),Pt.current},nt=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ve=function(Pt){var vn=(0,Qe.Z)((0,Qe.Z)({},et),Pt),mn=vn.className,gn=vn.percent,or=vn.prefixCls,er=vn.strokeColor,tr=vn.strokeLinecap,Hr=vn.strokeWidth,jr=vn.style,vr=vn.trailColor,Kr=vn.trailWidth,yr=vn.transition,br=(0,Oe.Z)(vn,nt);delete br.gapPosition;var Cr=Array.isArray(gn)?gn:[gn],zr=Array.isArray(er)?er:[er],Wt=ot(),On=Hr/2,qn=100-Hr/2,zn="M ".concat(tr==="round"?On:0,",").concat(On,`
L `).concat(tr==="round"?qn:100,",").concat(On),Jn="0 0 100 ".concat(Hr),pr=0;return oe.createElement("svg",(0,Be.Z)({className:ce()("".concat(or,"-line"),mn),viewBox:Jn,preserveAspectRatio:"none",style:jr},br),oe.createElement("path",{className:"".concat(or,"-line-trail"),d:zn,strokeLinecap:tr,stroke:vr,strokeWidth:Kr||Hr,fillOpacity:"0"}),Cr.map(function(wr,nr){var St=1;switch(tr){case"round":St=1-Hr/100;break;case"square":St=1-Hr/2/100;break;default:St=1;break}var Zt={strokeDasharray:"".concat(wr*St,"px, 100px"),strokeDashoffset:"-".concat(pr,"px"),transition:yr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},jt=zr[nr]||zr[zr.length-1];return pr+=wr,oe.createElement("path",{key:nr,className:"".concat(or,"-line-path"),d:zn,strokeLinecap:tr,stroke:jt,strokeWidth:Hr,fillOpacity:"0",ref:function(lt){Wt[nr]=lt},style:Zt})}))},xe=Ve,mt=ne(71002),Lt=ne(97685),it=ne(98924),pt=0,Ce=(0,it.Z)();function be(){var bt;return Ce?(bt=pt,pt+=1):bt="TEST_OR_SSR",bt}var Ze=function(bt){var Pt=oe.useState(),vn=(0,Lt.Z)(Pt,2),mn=vn[0],gn=vn[1];return oe.useEffect(function(){gn("rc_progress_".concat(be()))},[]),bt||mn},je=function(Pt){var vn=Pt.bg,mn=Pt.children;return oe.createElement("div",{style:{width:"100%",height:"100%",background:vn}},mn)};function Et(bt,Pt){return Object.keys(bt).map(function(vn){var mn=parseFloat(vn),gn="".concat(Math.floor(mn*Pt),"%");return"".concat(bt[vn]," ").concat(gn)})}var ft=oe.forwardRef(function(bt,Pt){var vn=bt.prefixCls,mn=bt.color,gn=bt.gradientId,or=bt.radius,er=bt.style,tr=bt.ptg,Hr=bt.strokeLinecap,jr=bt.strokeWidth,vr=bt.size,Kr=bt.gapDegree,yr=mn&&(0,mt.Z)(mn)==="object",br=yr?"#FFF":void 0,Cr=vr/2,zr=oe.createElement("circle",{className:"".concat(vn,"-circle-path"),r:or,cx:Cr,cy:Cr,stroke:br,strokeLinecap:Hr,strokeWidth:jr,opacity:tr===0?0:1,style:er,ref:Pt});if(!yr)return zr;var Wt="".concat(gn,"-conic"),On=Kr?"".concat(180+Kr/2,"deg"):"0deg",qn=Et(mn,(360-Kr)/360),zn=Et(mn,1),Jn="conic-gradient(from ".concat(On,", ").concat(qn.join(", "),")"),pr="linear-gradient(to ".concat(Kr?"bottom":"top",", ").concat(zn.join(", "),")");return oe.createElement(oe.Fragment,null,oe.createElement("mask",{id:Wt},zr),oe.createElement("foreignObject",{x:0,y:0,width:vr,height:vr,mask:"url(#".concat(Wt,")")},oe.createElement(je,{bg:pr},oe.createElement(je,{bg:Jn}))))}),ut=ft,Re=100,Vt=function(Pt,vn,mn,gn,or,er,tr,Hr,jr,vr){var Kr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,yr=mn/100*360*((360-er)/360),br=er===0?0:{bottom:0,top:180,left:90,right:-90}[tr],Cr=(100-gn)/100*vn;jr==="round"&&gn!==100&&(Cr+=vr/2,Cr>=vn&&(Cr=vn-.01));var zr=Re/2;return{stroke:typeof Hr=="string"?Hr:void 0,strokeDasharray:"".concat(vn,"px ").concat(Pt),strokeDashoffset:Cr+Kr,transform:"rotate(".concat(or+yr+br,"deg)"),transformOrigin:"".concat(zr,"px ").concat(zr,"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}},wt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function yn(bt){var Pt=bt!=null?bt:[];return Array.isArray(Pt)?Pt:[Pt]}var Ft=function(Pt){var vn=(0,Qe.Z)((0,Qe.Z)({},et),Pt),mn=vn.id,gn=vn.prefixCls,or=vn.steps,er=vn.strokeWidth,tr=vn.trailWidth,Hr=vn.gapDegree,jr=Hr===void 0?0:Hr,vr=vn.gapPosition,Kr=vn.trailColor,yr=vn.strokeLinecap,br=vn.style,Cr=vn.className,zr=vn.strokeColor,Wt=vn.percent,On=(0,Oe.Z)(vn,wt),qn=Re/2,zn=Ze(mn),Jn="".concat(zn,"-gradient"),pr=qn-er/2,wr=Math.PI*2*pr,nr=jr>0?90+jr/2:-90,St=wr*((360-jr)/360),Zt=(0,mt.Z)(or)==="object"?or:{count:or,space:2},jt=Zt.count,kn=Zt.space,lt=yn(Wt),Ut=yn(zr),ke=Ut.find(function(Lr){return Lr&&(0,mt.Z)(Lr)==="object"}),an=ke&&(0,mt.Z)(ke)==="object",kt=an?"butt":yr,Tn=Vt(wr,St,0,100,nr,jr,vr,Kr,kt,er),rr=ot(),Gr=function(){var Ur=0;return lt.map(function(Sr,ai){var ir=Ut[ai]||Ut[Ut.length-1],Rr=Vt(wr,St,Ur,Sr,nr,jr,vr,ir,kt,er);return Ur+=Sr,oe.createElement(ut,{key:ai,color:ir,ptg:Sr,radius:pr,prefixCls:gn,gradientId:Jn,style:Rr,strokeLinecap:kt,strokeWidth:er,gapDegree:jr,ref:function(Gi){rr[ai]=Gi},size:Re})}).reverse()},Nr=function(){var Ur=Math.round(jt*(lt[0]/100)),Sr=100/jt,ai=0;return new Array(jt).fill(null).map(function(ir,Rr){var Di=Rr<=Ur-1?Ut[0]:Kr,Gi=Di&&(0,mt.Z)(Di)==="object"?"url(#".concat(Jn,")"):void 0,qr=Vt(wr,St,ai,Sr,nr,jr,vr,Di,"butt",er,kn);return ai+=(St-qr.strokeDashoffset+kn)*100/St,oe.createElement("circle",{key:Rr,className:"".concat(gn,"-circle-path"),r:pr,cx:qn,cy:qn,stroke:Gi,strokeWidth:er,opacity:1,style:qr,ref:function(Yi){rr[Rr]=Yi}})})};return oe.createElement("svg",(0,Be.Z)({className:ce()("".concat(gn,"-circle"),Cr),viewBox:"0 0 ".concat(Re," ").concat(Re),style:br,id:mn,role:"presentation"},On),!jt&&oe.createElement("circle",{className:"".concat(gn,"-circle-trail"),r:pr,cx:qn,cy:qn,stroke:Kr,strokeLinecap:kt,strokeWidth:tr||er,style:Tn}),jt?Nr():Gr())},ln=Ft,Kn={Line:xe,Circle:ln},rt=ne(83062),dt=ne(16397);function Ae(bt){return!bt||bt<0?0:bt>100?100:bt}function Bt(bt){let{success:Pt,successPercent:vn}=bt,mn=vn;return Pt&&"progress"in Pt&&(mn=Pt.progress),Pt&&"percent"in Pt&&(mn=Pt.percent),mn}const Cn=bt=>{let{percent:Pt,success:vn,successPercent:mn}=bt;const gn=Ae(Bt({success:vn,successPercent:mn}));return[gn,Ae(Ae(Pt)-gn)]},en=bt=>{let{success:Pt={},strokeColor:vn}=bt;const{strokeColor:mn}=Pt;return[mn||dt.presetPrimaryColors.green,vn||null]},Ct=(bt,Pt,vn)=>{var mn,gn,or,er;let tr=-1,Hr=-1;if(Pt==="step"){const jr=vn.steps,vr=vn.strokeWidth;typeof bt=="string"||typeof bt=="undefined"?(tr=bt==="small"?2:14,Hr=vr!=null?vr:8):typeof bt=="number"?[tr,Hr]=[bt,bt]:[tr=14,Hr=8]=bt,tr*=jr}else if(Pt==="line"){const jr=vn==null?void 0:vn.strokeWidth;typeof bt=="string"||typeof bt=="undefined"?Hr=jr||(bt==="small"?6:8):typeof bt=="number"?[tr,Hr]=[bt,bt]:[tr=-1,Hr=8]=bt}else(Pt==="circle"||Pt==="dashboard")&&(typeof bt=="string"||typeof bt=="undefined"?[tr,Hr]=bt==="small"?[60,60]:[120,120]:typeof bt=="number"?[tr,Hr]=[bt,bt]:(tr=(gn=(mn=bt[0])!==null&&mn!==void 0?mn:bt[1])!==null&&gn!==void 0?gn:120,Hr=(er=(or=bt[0])!==null&&or!==void 0?or:bt[1])!==null&&er!==void 0?er:120));return[tr,Hr]},Rt=3,tn=bt=>Rt/bt*100;var Gn=bt=>{const{prefixCls:Pt,trailColor:vn=null,strokeLinecap:mn="round",gapPosition:gn,gapDegree:or,width:er=120,type:tr,children:Hr,success:jr,size:vr=er}=bt,[Kr,yr]=Ct(vr,"circle");let{strokeWidth:br}=bt;br===void 0&&(br=Math.max(tn(Kr),6));const Cr={width:Kr,height:yr,fontSize:Kr*.15+6},zr=oe.useMemo(()=>{if(or||or===0)return or;if(tr==="dashboard")return 75},[or,tr]),Wt=gn||tr==="dashboard"&&"bottom"||void 0,On=Object.prototype.toString.call(bt.strokeColor)==="[object Object]",qn=en({success:jr,strokeColor:bt.strokeColor}),zn=ce()(`${Pt}-inner`,{[`${Pt}-circle-gradient`]:On}),Jn=oe.createElement(ln,{percent:Cn(bt),strokeWidth:br,trailWidth:br,strokeColor:qn,strokeLinecap:mn,trailColor:vn,prefixCls:Pt,gapDegree:zr,gapPosition:Wt});return oe.createElement("div",{className:zn,style:Cr},Kr<=20?oe.createElement(rt.Z,{title:Hr},oe.createElement("span",null,Jn)):oe.createElement(oe.Fragment,null,Jn,Hr))},qt=function(bt,Pt){var vn={};for(var mn in bt)Object.prototype.hasOwnProperty.call(bt,mn)&&Pt.indexOf(mn)<0&&(vn[mn]=bt[mn]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gn=0,mn=Object.getOwnPropertySymbols(bt);gn<mn.length;gn++)Pt.indexOf(mn[gn])<0&&Object.prototype.propertyIsEnumerable.call(bt,mn[gn])&&(vn[mn[gn]]=bt[mn[gn]]);return vn};const Fn=bt=>{let Pt=[];return Object.keys(bt).forEach(vn=>{const mn=parseFloat(vn.replace(/%/g,""));isNaN(mn)||Pt.push({key:mn,value:bt[vn]})}),Pt=Pt.sort((vn,mn)=>vn.key-mn.key),Pt.map(vn=>{let{key:mn,value:gn}=vn;return`${gn} ${mn}%`}).join(", ")},lr=(bt,Pt)=>{const{from:vn=dt.presetPrimaryColors.blue,to:mn=dt.presetPrimaryColors.blue,direction:gn=Pt==="rtl"?"to left":"to right"}=bt,or=qt(bt,["from","to","direction"]);if(Object.keys(or).length!==0){const er=Fn(or);return{backgroundImage:`linear-gradient(${gn}, ${er})`}}return{backgroundImage:`linear-gradient(${gn}, ${vn}, ${mn})`}};var ze=bt=>{const{prefixCls:Pt,direction:vn,percent:mn,size:gn,strokeWidth:or,strokeColor:er,strokeLinecap:tr="round",children:Hr,trailColor:jr=null,success:vr}=bt,Kr=er&&typeof er!="string"?lr(er,vn):{backgroundColor:er},yr=tr==="square"||tr==="butt"?0:void 0,br={backgroundColor:jr||void 0,borderRadius:yr},Cr=gn!=null?gn:[-1,or||(gn==="small"?6:8)],[zr,Wt]=Ct(Cr,"line",{strokeWidth:or}),On=Object.assign({width:`${Ae(mn)}%`,height:Wt,borderRadius:yr},Kr),qn=Bt(bt),zn={width:`${Ae(qn)}%`,height:Wt,borderRadius:yr,backgroundColor:vr==null?void 0:vr.strokeColor},Jn={width:zr<0?"100%":zr,height:Wt};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:`${Pt}-outer`,style:Jn},oe.createElement("div",{className:`${Pt}-inner`,style:br},oe.createElement("div",{className:`${Pt}-bg`,style:On}),qn!==void 0?oe.createElement("div",{className:`${Pt}-success-bg`,style:zn}):null)),Hr)},fe=bt=>{const{size:Pt,steps:vn,percent:mn=0,strokeWidth:gn=8,strokeColor:or,trailColor:er=null,prefixCls:tr,children:Hr}=bt,jr=Math.round(vn*(mn/100)),vr=Pt==="small"?2:14,Kr=Pt!=null?Pt:[vr,gn],[yr,br]=Ct(Kr,"step",{steps:vn,strokeWidth:gn}),Cr=yr/vn,zr=new Array(vn);for(let Wt=0;Wt<vn;Wt++){const On=Array.isArray(or)?or[Wt]:or;zr[Wt]=oe.createElement("div",{key:Wt,className:ce()(`${tr}-steps-item`,{[`${tr}-steps-item-active`]:Wt<=jr-1}),style:{backgroundColor:Wt<=jr-1?On:er,width:Cr,height:br}})}return oe.createElement("div",{className:`${tr}-steps-outer`},zr,Hr)},ve=ne(34367),he=ne(14747),le=ne(67968),Ne=ne(45503);const Te=bt=>{const Pt=bt?"100%":"-100%";return new ve.Keyframes(`antProgress${bt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Pt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Pt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},gt=bt=>{const{componentCls:Pt,iconCls:vn}=bt;return{[Pt]:Object.assign(Object.assign({},(0,he.Wf)(bt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:bt.fontSize,marginInlineEnd:bt.marginXS,marginBottom:bt.marginXS},[`${Pt}-outer`]:{display:"inline-block",width:"100%"},[`&${Pt}-show-info`]:{[`${Pt}-outer`]:{marginInlineEnd:`calc(-2em - ${bt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${bt.paddingXS}px)`}},[`${Pt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:bt.remainingColor,borderRadius:bt.lineBorderRadius},[`${Pt}-inner:not(${Pt}-circle-gradient)`]:{[`${Pt}-circle-path`]:{stroke:bt.defaultColor}},[`${Pt}-success-bg, ${Pt}-bg`]:{position:"relative",backgroundColor:bt.defaultColor,borderRadius:bt.lineBorderRadius,transition:`all ${bt.motionDurationSlow} ${bt.motionEaseInOutCirc}`},[`${Pt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:bt.colorSuccess},[`${Pt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:bt.marginXS,color:bt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[vn]:{fontSize:bt.fontSize}},[`&${Pt}-status-active`]:{[`${Pt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:bt.colorBgContainer,borderRadius:bt.lineBorderRadius,opacity:0,animationName:Te(),animationDuration:bt.progressActiveMotionDuration,animationTimingFunction:bt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Pt}-rtl${Pt}-status-active`]:{[`${Pt}-bg::before`]:{animationName:Te(!0)}},[`&${Pt}-status-exception`]:{[`${Pt}-bg`]:{backgroundColor:bt.colorError},[`${Pt}-text`]:{color:bt.colorError}},[`&${Pt}-status-exception ${Pt}-inner:not(${Pt}-circle-gradient)`]:{[`${Pt}-circle-path`]:{stroke:bt.colorError}},[`&${Pt}-status-success`]:{[`${Pt}-bg`]:{backgroundColor:bt.colorSuccess},[`${Pt}-text`]:{color:bt.colorSuccess}},[`&${Pt}-status-success ${Pt}-inner:not(${Pt}-circle-gradient)`]:{[`${Pt}-circle-path`]:{stroke:bt.colorSuccess}}})}},At=bt=>{const{componentCls:Pt,iconCls:vn}=bt;return{[Pt]:{[`${Pt}-circle-trail`]:{stroke:bt.remainingColor},[`&${Pt}-circle ${Pt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Pt}-circle ${Pt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:bt.circleTextColor,fontSize:bt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[vn]:{fontSize:`${bt.fontSize/bt.fontSizeSM}em`}},[`${Pt}-circle&-status-exception`]:{[`${Pt}-text`]:{color:bt.colorError}},[`${Pt}-circle&-status-success`]:{[`${Pt}-text`]:{color:bt.colorSuccess}}},[`${Pt}-inline-circle`]:{lineHeight:1,[`${Pt}-inner`]:{verticalAlign:"bottom"}}}},Tt=bt=>{const{componentCls:Pt}=bt;return{[Pt]:{[`${Pt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:bt.progressStepMinWidth,marginInlineEnd:bt.progressStepMarginInlineEnd,backgroundColor:bt.remainingColor,transition:`all ${bt.motionDurationSlow}`,"&-active":{backgroundColor:bt.defaultColor}}}}}},zt=bt=>{const{componentCls:Pt,iconCls:vn}=bt;return{[Pt]:{[`${Pt}-small&-line, ${Pt}-small&-line ${Pt}-text ${vn}`]:{fontSize:bt.fontSizeSM}}}};var Ot=(0,le.Z)("Progress",bt=>{const Pt=bt.marginXXS/2,vn=(0,Ne.TS)(bt,{progressStepMarginInlineEnd:Pt,progressStepMinWidth:Pt,progressActiveMotionDuration:"2.4s"});return[gt(vn),At(vn),Tt(vn),zt(vn)]},bt=>({circleTextColor:bt.colorText,defaultColor:bt.colorInfo,remainingColor:bt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),ht=function(bt,Pt){var vn={};for(var mn in bt)Object.prototype.hasOwnProperty.call(bt,mn)&&Pt.indexOf(mn)<0&&(vn[mn]=bt[mn]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gn=0,mn=Object.getOwnPropertySymbols(bt);gn<mn.length;gn++)Pt.indexOf(mn[gn])<0&&Object.prototype.propertyIsEnumerable.call(bt,mn[gn])&&(vn[mn[gn]]=bt[mn[gn]]);return vn};const It=null,xt=["normal","exception","active","success"];var Kt=oe.forwardRef((bt,Pt)=>{const{prefixCls:vn,className:mn,rootClassName:gn,steps:or,strokeColor:er,percent:tr=0,size:Hr="default",showInfo:jr=!0,type:vr="line",status:Kr,format:yr,style:br}=bt,Cr=ht(bt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),zr=oe.useMemo(()=>{var lt,Ut;const ke=Bt(bt);return parseInt(ke!==void 0?(lt=ke!=null?ke:0)===null||lt===void 0?void 0:lt.toString():(Ut=tr!=null?tr:0)===null||Ut===void 0?void 0:Ut.toString(),10)},[tr,bt.success,bt.successPercent]),Wt=oe.useMemo(()=>!xt.includes(Kr)&&zr>=100?"success":Kr||"normal",[Kr,zr]),{getPrefixCls:On,direction:qn,progress:zn}=oe.useContext(ge.E_),Jn=On("progress",vn),[pr,wr]=Ot(Jn),nr=oe.useMemo(()=>{if(!jr)return null;const lt=Bt(bt);let Ut;const ke=yr||(kt=>`${kt}%`),an=vr==="line";return yr||Wt!=="exception"&&Wt!=="success"?Ut=ke(Ae(tr),Ae(lt)):Wt==="exception"?Ut=an?oe.createElement(Xe.Z,null):oe.createElement(Se.Z,null):Wt==="success"&&(Ut=an?oe.createElement(de.Z,null):oe.createElement(Fe.Z,null)),oe.createElement("span",{className:`${Jn}-text`,title:typeof Ut=="string"?Ut:void 0},Ut)},[jr,tr,zr,Wt,vr,Jn,yr]),St=Array.isArray(er)?er[0]:er,Zt=typeof er=="string"||Array.isArray(er)?er:void 0;let jt;vr==="line"?jt=or?oe.createElement(fe,Object.assign({},bt,{strokeColor:Zt,prefixCls:Jn,steps:or}),nr):oe.createElement(ze,Object.assign({},bt,{strokeColor:St,prefixCls:Jn,direction:qn}),nr):(vr==="circle"||vr==="dashboard")&&(jt=oe.createElement(Gn,Object.assign({},bt,{strokeColor:St,prefixCls:Jn,progressStatus:Wt}),nr));const kn=ce()(Jn,`${Jn}-status-${Wt}`,`${Jn}-${vr==="dashboard"&&"circle"||or&&"steps"||vr}`,{[`${Jn}-inline-circle`]:vr==="circle"&&Ct(Hr,"circle")[0]<=20,[`${Jn}-show-info`]:jr,[`${Jn}-${Hr}`]:typeof Hr=="string",[`${Jn}-rtl`]:qn==="rtl"},zn==null?void 0:zn.className,mn,gn,wr);return pr(oe.createElement("div",Object.assign({ref:Pt,style:Object.assign(Object.assign({},zn==null?void 0:zn.style),br),className:kn,role:"progressbar","aria-valuenow":zr},(0,we.Z)(Cr,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),jt))}),Un=Kt},78045:function(An,Jt,ne){"use strict";ne.d(Jt,{ZP:function(){return dt}});var oe=ne(94184),de=ne.n(oe),Fe=ne(5663),Xe=ne(1337),Se=ne(67294),Me=ne(53124),ce=ne(98675);const we=Se.createContext(null),ge=we.Provider;var Be=we;const Qe=Se.createContext(null),Oe=Qe.Provider;var et=ne(95860),ot=ne(17799),nt=ne(98866),Ve=ne(65223),xe=ne(14747),mt=ne(67968),Lt=ne(45503);const it=Ae=>{const{componentCls:Bt,antCls:Cn}=Ae,en=`${Bt}-group`;return{[en]:Object.assign(Object.assign({},(0,xe.Wf)(Ae)),{display:"inline-block",fontSize:0,[`&${en}-rtl`]:{direction:"rtl"},[`${Cn}-badge ${Cn}-badge-count`]:{zIndex:1},[`> ${Cn}-badge:not(:first-child) > ${Cn}-button-wrapper`]:{borderInlineStart:"none"}})}},pt=Ae=>{const{componentCls:Bt,wrapperMarginInlineEnd:Cn,colorPrimary:en,radioSize:Ct,motionDurationSlow:Rt,motionDurationMid:tn,motionEaseInOutCirc:cr,colorBgContainer:Gn,colorBorder:qt,lineWidth:Fn,dotSize:lr,colorBgContainerDisabled:nn,colorTextDisabled:ze,paddingXS:ue,dotColorDisabled:fe,lineType:ve,radioDotDisabledSize:he,wireframe:le,colorWhite:Ne}=Ae,Te=`${Bt}-inner`;return{[`${Bt}-wrapper`]:Object.assign(Object.assign({},(0,xe.Wf)(Ae)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Cn,cursor:"pointer",[`&${Bt}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Ae.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Bt}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${Fn}px ${ve} ${en}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Bt]:Object.assign(Object.assign({},(0,xe.Wf)(Ae)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Bt}-wrapper:hover &,
&:hover ${Te}`]:{borderColor:en},[`${Bt}-input:focus-visible + ${Te}`]:Object.assign({},(0,xe.oN)(Ae)),[`${Bt}:hover::after, ${Bt}-wrapper:hover &::after`]:{visibility:"visible"},[`${Bt}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Ct,height:Ct,marginBlockStart:Ct/-2,marginInlineStart:Ct/-2,backgroundColor:le?en:Ne,borderBlockStart:0,borderInlineStart:0,borderRadius:Ct,transform:"scale(0)",opacity:0,transition:`all ${Rt} ${cr}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Ct,height:Ct,backgroundColor:Gn,borderColor:qt,borderStyle:"solid",borderWidth:Fn,borderRadius:"50%",transition:`all ${tn}`},[`${Bt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Bt}-checked`]:{[Te]:{borderColor:en,backgroundColor:le?Gn:en,"&::after":{transform:`scale(${lr/Ct})`,opacity:1,transition:`all ${Rt} ${cr}`}}},[`${Bt}-disabled`]:{cursor:"not-allowed",[Te]:{backgroundColor:nn,borderColor:qt,cursor:"not-allowed","&::after":{backgroundColor:fe}},[`${Bt}-input`]:{cursor:"not-allowed"},[`${Bt}-disabled + span`]:{color:ze,cursor:"not-allowed"},[`&${Bt}-checked`]:{[Te]:{"&::after":{transform:`scale(${he/Ct})`}}}},[`span${Bt} + *`]:{paddingInlineStart:ue,paddingInlineEnd:ue}})}},Ce=Ae=>{const{buttonColor:Bt,controlHeight:Cn,componentCls:en,lineWidth:Ct,lineType:Rt,colorBorder:tn,motionDurationSlow:cr,motionDurationMid:Gn,buttonPaddingInline:qt,fontSize:Fn,buttonBg:lr,fontSizeLG:nn,controlHeightLG:ze,controlHeightSM:ue,paddingXS:fe,borderRadius:ve,borderRadiusSM:he,borderRadiusLG:le,buttonCheckedBg:Ne,buttonSolidCheckedColor:Te,colorTextDisabled:gt,colorBgContainerDisabled:At,buttonCheckedBgDisabled:Tt,buttonCheckedColorDisabled:zt,colorPrimary:Ot,colorPrimaryHover:ht,colorPrimaryActive:It,buttonSolidCheckedBg:xt,buttonSolidCheckedHoverBg:sn,buttonSolidCheckedActiveBg:Kt}=Ae;return{[`${en}-button-wrapper`]:{position:"relative",display:"inline-block",height:Cn,margin:0,paddingInline:qt,paddingBlock:0,color:Bt,fontSize:Fn,lineHeight:`${Cn-Ct*2}px`,background:lr,border:`${Ct}px ${Rt} ${tn}`,borderBlockStartWidth:Ct+.02,borderInlineStartWidth:0,borderInlineEndWidth:Ct,cursor:"pointer",transition:[`color ${Gn}`,`background ${Gn}`,`box-shadow ${Gn}`].join(","),a:{color:Bt},[`> ${en}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-Ct,insetInlineStart:-Ct,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Ct,paddingInline:0,backgroundColor:tn,transition:`background-color ${cr}`,content:'""'}},"&:first-child":{borderInlineStart:`${Ct}px ${Rt} ${tn}`,borderStartStartRadius:ve,borderEndStartRadius:ve},"&:last-child":{borderStartEndRadius:ve,borderEndEndRadius:ve},"&:first-child:last-child":{borderRadius:ve},[`${en}-group-large &`]:{height:ze,fontSize:nn,lineHeight:`${ze-Ct*2}px`,"&:first-child":{borderStartStartRadius:le,borderEndStartRadius:le},"&:last-child":{borderStartEndRadius:le,borderEndEndRadius:le}},[`${en}-group-small &`]:{height:ue,paddingInline:fe-Ct,paddingBlock:0,lineHeight:`${ue-Ct*2}px`,"&:first-child":{borderStartStartRadius:he,borderEndStartRadius:he},"&:last-child":{borderStartEndRadius:he,borderEndEndRadius:he}},"&:hover":{position:"relative",color:Ot},"&:has(:focus-visible)":Object.assign({},(0,xe.oN)(Ae)),[`${en}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${en}-button-wrapper-disabled)`]:{zIndex:1,color:Ot,background:Ne,borderColor:Ot,"&::before":{backgroundColor:Ot},"&:first-child":{borderColor:Ot},"&:hover":{color:ht,borderColor:ht,"&::before":{backgroundColor:ht}},"&:active":{color:It,borderColor:It,"&::before":{backgroundColor:It}}},[`${en}-group-solid &-checked:not(${en}-button-wrapper-disabled)`]:{color:Te,background:xt,borderColor:xt,"&:hover":{color:Te,background:sn,borderColor:sn},"&:active":{color:Te,background:Kt,borderColor:Kt}},"&-disabled":{color:gt,backgroundColor:At,borderColor:tn,cursor:"not-allowed","&:first-child, &:hover":{color:gt,backgroundColor:At,borderColor:tn}},[`&-disabled${en}-button-wrapper-checked`]:{color:zt,backgroundColor:Tt,borderColor:tn,boxShadow:"none"}}}},be=Ae=>Ae-4*2;var Ze=(0,mt.Z)("Radio",Ae=>{const{controlOutline:Bt,controlOutlineWidth:Cn,radioSize:en}=Ae,Ct=`0 0 0 ${Cn}px ${Bt}`,Rt=Ct,tn=be(en),cr=(0,Lt.TS)(Ae,{radioDotDisabledSize:tn,radioFocusShadow:Ct,radioButtonFocusShadow:Rt});return[it(cr),pt(cr),Ce(cr)]},Ae=>{const{wireframe:Bt,padding:Cn,marginXS:en,lineWidth:Ct,fontSizeLG:Rt,colorText:tn,colorBgContainer:cr,colorTextDisabled:Gn,controlItemBgActiveDisabled:qt,colorTextLightSolid:Fn,colorPrimary:lr,colorPrimaryHover:nn,colorPrimaryActive:ze}=Ae,ue=4,fe=Rt,ve=Bt?be(fe):fe-(ue+Ct)*2;return{radioSize:fe,dotSize:ve,dotColorDisabled:Gn,buttonSolidCheckedColor:Fn,buttonSolidCheckedBg:lr,buttonSolidCheckedHoverBg:nn,buttonSolidCheckedActiveBg:ze,buttonBg:cr,buttonCheckedBg:cr,buttonColor:tn,buttonCheckedBgDisabled:qt,buttonCheckedColorDisabled:Gn,buttonPaddingInline:Cn-Ct,wrapperMarginInlineEnd:en}}),je=ne(45353),Et=ne(92429),ft=function(Ae,Bt){var Cn={};for(var en in Ae)Object.prototype.hasOwnProperty.call(Ae,en)&&Bt.indexOf(en)<0&&(Cn[en]=Ae[en]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,en=Object.getOwnPropertySymbols(Ae);Ct<en.length;Ct++)Bt.indexOf(en[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Ae,en[Ct])&&(Cn[en[Ct]]=Ae[en[Ct]]);return Cn};const ut=(Ae,Bt)=>{var Cn,en;const Ct=Se.useContext(Be),Rt=Se.useContext(Qe),{getPrefixCls:tn,direction:cr,radio:Gn}=Se.useContext(Me.E_),qt=Se.useRef(null),Fn=(0,ot.sQ)(Bt,qt),{isFormItemInput:lr}=Se.useContext(Ve.aM),nn=It=>{var xt,sn;(xt=Ae.onChange)===null||xt===void 0||xt.call(Ae,It),(sn=Ct==null?void 0:Ct.onChange)===null||sn===void 0||sn.call(Ct,It)},{prefixCls:ze,className:ue,rootClassName:fe,children:ve,style:he}=Ae,le=ft(Ae,["prefixCls","className","rootClassName","children","style"]),Ne=tn("radio",ze),Te=((Ct==null?void 0:Ct.optionType)||Rt)==="button",gt=Te?`${Ne}-button`:Ne,[At,Tt]=Ze(Ne),zt=Object.assign({},le),Ot=Se.useContext(nt.Z);Ct&&(zt.name=Ct.name,zt.onChange=nn,zt.checked=Ae.value===Ct.value,zt.disabled=(Cn=zt.disabled)!==null&&Cn!==void 0?Cn:Ct.disabled),zt.disabled=(en=zt.disabled)!==null&&en!==void 0?en:Ot;const ht=de()(`${gt}-wrapper`,{[`${gt}-wrapper-checked`]:zt.checked,[`${gt}-wrapper-disabled`]:zt.disabled,[`${gt}-wrapper-rtl`]:cr==="rtl",[`${gt}-wrapper-in-form-item`]:lr},Gn==null?void 0:Gn.className,ue,fe,Tt);return At(Se.createElement(je.Z,{component:"Radio",disabled:zt.disabled},Se.createElement("label",{className:ht,style:Object.assign(Object.assign({},Gn==null?void 0:Gn.style),he),onMouseEnter:Ae.onMouseEnter,onMouseLeave:Ae.onMouseLeave},Se.createElement(et.Z,Object.assign({},zt,{className:de()(zt.className,!Te&&Et.A),type:"radio",prefixCls:gt,ref:Fn})),ve!==void 0?Se.createElement("span",null,ve):null)))};var Vt=Se.forwardRef(ut);const wt=Se.forwardRef((Ae,Bt)=>{const{getPrefixCls:Cn,direction:en}=Se.useContext(Me.E_),[Ct,Rt]=(0,Fe.Z)(Ae.defaultValue,{value:Ae.value}),tn=xt=>{const sn=Ct,Kt=xt.target.value;"value"in Ae||Rt(Kt);const{onChange:Un}=Ae;Un&&Kt!==sn&&Un(xt)},{prefixCls:cr,className:Gn,rootClassName:qt,options:Fn,buttonStyle:lr="outline",disabled:nn,children:ze,size:ue,style:fe,id:ve,onMouseEnter:he,onMouseLeave:le,onFocus:Ne,onBlur:Te}=Ae,gt=Cn("radio",cr),At=`${gt}-group`,[Tt,zt]=Ze(gt);let Ot=ze;Fn&&Fn.length>0&&(Ot=Fn.map(xt=>typeof xt=="string"||typeof xt=="number"?Se.createElement(Vt,{key:xt.toString(),prefixCls:gt,disabled:nn,value:xt,checked:Ct===xt},xt):Se.createElement(Vt,{key:`radio-group-value-options-${xt.value}`,prefixCls:gt,disabled:xt.disabled||nn,value:xt.value,checked:Ct===xt.value,title:xt.title,style:xt.style},xt.label)));const ht=(0,ce.Z)(ue),It=de()(At,`${At}-${lr}`,{[`${At}-${ht}`]:ht,[`${At}-rtl`]:en==="rtl"},Gn,qt,zt);return Tt(Se.createElement("div",Object.assign({},(0,Xe.Z)(Ae,{aria:!0,data:!0}),{className:It,style:fe,onMouseEnter:he,onMouseLeave:le,onFocus:Ne,onBlur:Te,id:ve,ref:Bt}),Se.createElement(ge,{value:{onChange:tn,value:Ct,disabled:Ae.disabled,name:Ae.name,optionType:Ae.optionType}},Ot)))});var yn=Se.memo(wt),Ft=function(Ae,Bt){var Cn={};for(var en in Ae)Object.prototype.hasOwnProperty.call(Ae,en)&&Bt.indexOf(en)<0&&(Cn[en]=Ae[en]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,en=Object.getOwnPropertySymbols(Ae);Ct<en.length;Ct++)Bt.indexOf(en[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Ae,en[Ct])&&(Cn[en[Ct]]=Ae[en[Ct]]);return Cn};const ln=(Ae,Bt)=>{const{getPrefixCls:Cn}=Se.useContext(Me.E_),{prefixCls:en}=Ae,Ct=Ft(Ae,["prefixCls"]),Rt=Cn("radio",en);return Se.createElement(Oe,{value:"button"},Se.createElement(Vt,Object.assign({prefixCls:Rt},Ct,{type:"radio",ref:Bt})))};var Kn=Se.forwardRef(ln);const rt=Vt;rt.Button=Kn,rt.Group=yn,rt.__ANT_RADIO=!0;var dt=rt},12604:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return dt}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(Bt,Cn){return de.createElement(Se.Z,(0,oe.Z)({},Bt,{ref:Cn,icon:Xe}))},ce=de.forwardRef(Me),we=ne(94184),ge=ne.n(we),Be=ne(4942),Qe=ne(97685),Oe=ne(45987),et=ne(21770),ot=ne(15105),nt=ne(64217);function Ve(Ae,Bt){var Cn=Ae.disabled,en=Ae.prefixCls,Ct=Ae.character,Rt=Ae.characterRender,tn=Ae.index,cr=Ae.count,Gn=Ae.value,qt=Ae.allowHalf,Fn=Ae.focused,lr=Ae.onHover,nn=Ae.onClick,ze=function(gt){lr(gt,tn)},ue=function(gt){nn(gt,tn)},fe=function(gt){gt.keyCode===ot.Z.ENTER&&nn(gt,tn)},ve=tn+1,he=new Set([en]);Gn===0&&tn===0&&Fn?he.add("".concat(en,"-focused")):qt&&Gn+.5>=ve&&Gn<ve?(he.add("".concat(en,"-half")),he.add("".concat(en,"-active")),Fn&&he.add("".concat(en,"-focused"))):(ve<=Gn?he.add("".concat(en,"-full")):he.add("".concat(en,"-zero")),ve===Gn&&Fn&&he.add("".concat(en,"-focused")));var le=typeof Ct=="function"?Ct(Ae):Ct,Ne=de.createElement("li",{className:ge()(Array.from(he)),ref:Bt},de.createElement("div",{onClick:Cn?null:ue,onKeyDown:Cn?null:fe,onMouseMove:Cn?null:ze,role:"radio","aria-checked":Gn>tn?"true":"false","aria-posinset":tn+1,"aria-setsize":cr,tabIndex:Cn?-1:0},de.createElement("div",{className:"".concat(en,"-first")},le),de.createElement("div",{className:"".concat(en,"-second")},le)));return Rt&&(Ne=Rt(Ne,Ae)),Ne}var xe=de.forwardRef(Ve);function mt(){var Ae=de.useRef({});function Bt(en){return Ae.current[en]}function Cn(en){return function(Ct){Ae.current[en]=Ct}}return[Bt,Cn]}function Lt(Ae){var Bt=Ae.pageXOffset,Cn="scrollLeft";if(typeof Bt!="number"){var en=Ae.document;Bt=en.documentElement[Cn],typeof Bt!="number"&&(Bt=en.body[Cn])}return Bt}function it(Ae){var Bt,Cn,en=Ae.ownerDocument,Ct=en.body,Rt=en&&en.documentElement,tn=Ae.getBoundingClientRect();return Bt=tn.left,Cn=tn.top,Bt-=Rt.clientLeft||Ct.clientLeft||0,Cn-=Rt.clientTop||Ct.clientTop||0,{left:Bt,top:Cn}}function pt(Ae){var Bt=it(Ae),Cn=Ae.ownerDocument,en=Cn.defaultView||Cn.parentWindow;return Bt.left+=Lt(en),Bt.left}var Ce=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function be(Ae,Bt){var Cn,en=Ae.prefixCls,Ct=en===void 0?"rc-rate":en,Rt=Ae.className,tn=Ae.defaultValue,cr=Ae.value,Gn=Ae.count,qt=Gn===void 0?5:Gn,Fn=Ae.allowHalf,lr=Fn===void 0?!1:Fn,nn=Ae.allowClear,ze=nn===void 0?!0:nn,ue=Ae.character,fe=ue===void 0?"\u2605":ue,ve=Ae.characterRender,he=Ae.disabled,le=Ae.direction,Ne=le===void 0?"ltr":le,Te=Ae.tabIndex,gt=Te===void 0?0:Te,At=Ae.autoFocus,Tt=Ae.onHoverChange,zt=Ae.onChange,Ot=Ae.onFocus,ht=Ae.onBlur,It=Ae.onKeyDown,xt=Ae.onMouseLeave,sn=(0,Oe.Z)(Ae,Ce),Kt=mt(),Un=(0,Qe.Z)(Kt,2),bt=Un[0],Pt=Un[1],vn=de.useRef(null),mn=function(){if(!he){var an;(an=vn.current)===null||an===void 0||an.focus()}};de.useImperativeHandle(Bt,function(){return{focus:mn,blur:function(){if(!he){var an;(an=vn.current)===null||an===void 0||an.blur()}}}});var gn=(0,et.Z)(tn||0,{value:cr}),or=(0,Qe.Z)(gn,2),er=or[0],tr=or[1],Hr=(0,et.Z)(null),jr=(0,Qe.Z)(Hr,2),vr=jr[0],Kr=jr[1],yr=function(an,kt){var Tn=Ne==="rtl",rr=an+1;if(lr){var Gr=bt(an),Nr=pt(Gr),Lr=Gr.clientWidth;(Tn&&kt-Nr>Lr/2||!Tn&&kt-Nr<Lr/2)&&(rr-=.5)}return rr},br=function(an){tr(an),zt==null||zt(an)},Cr=de.useState(!1),zr=(0,Qe.Z)(Cr,2),Wt=zr[0],On=zr[1],qn=function(){On(!0),Ot==null||Ot()},zn=function(){On(!1),ht==null||ht()},Jn=de.useState(null),pr=(0,Qe.Z)(Jn,2),wr=pr[0],nr=pr[1],St=function(an,kt){var Tn=yr(kt,an.pageX);Tn!==vr&&(nr(Tn),Kr(null)),Tt==null||Tt(Tn)},Zt=function(an){he||(nr(null),Kr(null),Tt==null||Tt(void 0)),an&&(xt==null||xt(an))},jt=function(an,kt){var Tn=yr(kt,an.pageX),rr=!1;ze&&(rr=Tn===er),Zt(),br(rr?0:Tn),Kr(rr?Tn:null)},kn=function(an){var kt=an.keyCode,Tn=Ne==="rtl",rr=er;kt===ot.Z.RIGHT&&rr<qt&&!Tn?(lr?rr+=.5:rr+=1,br(rr),an.preventDefault()):kt===ot.Z.LEFT&&rr>0&&!Tn||kt===ot.Z.RIGHT&&rr>0&&Tn?(lr?rr-=.5:rr-=1,br(rr),an.preventDefault()):kt===ot.Z.LEFT&&rr<qt&&Tn&&(lr?rr+=.5:rr+=1,br(rr),an.preventDefault()),It==null||It(an)};de.useEffect(function(){At&&!he&&mn()},[]);var lt=new Array(qt).fill(0).map(function(ke,an){return de.createElement(xe,{ref:Pt(an),index:an,count:qt,disabled:he,prefixCls:"".concat(Ct,"-star"),allowHalf:lr,value:wr===null?er:wr,onClick:jt,onHover:St,key:ke||an,character:fe,characterRender:ve,focused:Wt})}),Ut=ge()(Ct,Rt,(Cn={},(0,Be.Z)(Cn,"".concat(Ct,"-disabled"),he),(0,Be.Z)(Cn,"".concat(Ct,"-rtl"),Ne==="rtl"),Cn));return de.createElement("ul",(0,oe.Z)({className:Ut,onMouseLeave:Zt,tabIndex:he?-1:gt,onFocus:he?null:qn,onBlur:he?null:zn,onKeyDown:he?null:kn,ref:vn,role:"radiogroup"},(0,nt.Z)(sn,{aria:!0,data:!0,attr:!0})),lt)}var Ze=de.forwardRef(be),je=Ze,Et=ne(53124),ft=ne(83062),ut=ne(14747),Re=ne(67968),Vt=ne(45503);const wt=Ae=>{const{componentCls:Bt}=Ae;return{[`${Bt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ae.marginXS},"> div":{transition:`all ${Ae.motionDurationMid}, outline 0s`,"&:hover":{transform:Ae.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Ae.lineWidth}px dashed ${Ae.starColor}`,transform:Ae.starHoverScale}},"&-first, &-second":{color:Ae.starBg,transition:`all ${Ae.motionDurationMid}`,userSelect:"none",[Ae.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Bt}-star-first, &-half ${Bt}-star-second`]:{opacity:1},[`&-half ${Bt}-star-first, &-full ${Bt}-star-second`]:{color:"inherit"}}}},yn=Ae=>({[`&-rtl${Ae.componentCls}`]:{direction:"rtl"}}),Ft=Ae=>{const{componentCls:Bt}=Ae;return{[Bt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(Ae)),{display:"inline-block",margin:0,padding:0,color:Ae.starColor,fontSize:Ae.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Bt} ${Bt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),wt(Ae)),{[`+ ${Bt}-text`]:{display:"inline-block",marginInlineStart:Ae.marginXS,fontSize:Ae.fontSize}}),yn(Ae))}};var ln=(0,Re.Z)("Rate",Ae=>{const Bt=(0,Vt.TS)(Ae,{});return[Ft(Bt)]},Ae=>({starColor:Ae.yellow6,starSize:Ae.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ae.colorFillContent})),Kn=function(Ae,Bt){var Cn={};for(var en in Ae)Object.prototype.hasOwnProperty.call(Ae,en)&&Bt.indexOf(en)<0&&(Cn[en]=Ae[en]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,en=Object.getOwnPropertySymbols(Ae);Ct<en.length;Ct++)Bt.indexOf(en[Ct])<0&&Object.prototype.propertyIsEnumerable.call(Ae,en[Ct])&&(Cn[en[Ct]]=Ae[en[Ct]]);return Cn},dt=de.forwardRef((Ae,Bt)=>{const{prefixCls:Cn,className:en,rootClassName:Ct,style:Rt,tooltips:tn,character:cr=de.createElement(ce,null)}=Ae,Gn=Kn(Ae,["prefixCls","className","rootClassName","style","tooltips","character"]),qt=(he,le)=>{let{index:Ne}=le;return tn?de.createElement(ft.Z,{title:tn[Ne]},he):he},{getPrefixCls:Fn,direction:lr,rate:nn}=de.useContext(Et.E_),ze=Fn("rate",Cn),[ue,fe]=ln(ze),ve=Object.assign(Object.assign({},nn==null?void 0:nn.style),Rt);return ue(de.createElement(je,Object.assign({ref:Bt,character:cr,characterRender:qt},Gn,{className:ge()(en,Ct,fe,nn==null?void 0:nn.className),style:ve,prefixCls:ze,direction:lr})))})},11713:function(An,Jt,ne){"use strict";ne.d(Jt,{default:function(){return _r}});var oe=ne(94184),de=ne.n(oe),Fe=ne(87462),Xe=ne(74902),Se=ne(4942),Me=ne(1413),ce=ne(97685),we=ne(45987),ge=ne(71002),Be=ne(67294);function Qe(tt){var at=Be.useRef();at.current=tt;var on=Be.useCallback(function(){for(var Qt,Dn=arguments.length,sr=new Array(Dn),Mt=0;Mt<Dn;Mt++)sr[Mt]=arguments[Mt];return(Qt=at.current)===null||Qt===void 0?void 0:Qt.call.apply(Qt,[at].concat(sr))},[]);return on}function Oe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var et=Oe()?Be.useLayoutEffect:Be.useEffect,ot=et,nt=function(at,on){var Qt=Be.useRef(!0);et(function(){if(!Qt.current)return at()},on),et(function(){return Qt.current=!1,function(){Qt.current=!0}},[])};function Ve(tt){var at=Be.useRef(!1),on=Be.useState(tt),Qt=(0,ce.Z)(on,2),Dn=Qt[0],sr=Qt[1];Be.useEffect(function(){return at.current=!1,function(){at.current=!0}},[]);function Mt(Dt,Nt){Nt&&at.current||sr(Dt)}return[Dn,Mt]}function xe(tt){return tt!==void 0}function mt(tt,at){var on=at||{},Qt=on.defaultValue,Dn=on.value,sr=on.onChange,Mt=on.postState,Dt=Ve(function(){return xe(Dn)?Dn:xe(Qt)?typeof Qt=="function"?Qt():Qt:typeof tt=="function"?tt():tt}),Nt=(0,ce.Z)(Dt,2),Gt=Nt[0],Rn=Nt[1],Qn=Dn!==void 0?Dn:Gt,wn=Mt?Mt(Qn):Qn,Yn=Qe(sr),kr=Ve([Qn]),bn=(0,ce.Z)(kr,2),pn=bn[0],_n=bn[1];nt(function(){var Ir=pn[0];Gt!==Ir&&Yn(Gt,Ir)},[pn]),nt(function(){xe(Dn)||Rn(Dn)},[Dn]);var Tr=Qe(function(Ir,Jr){Rn(Ir,Jr),_n([Qn],Jr)});return[wn,Tr]}var Lt={};function it(tt,at){}function pt(tt,at){}function Ce(){Lt={}}function be(tt,at,on){!at&&!Lt[on]&&(tt(!1,on),Lt[on]=!0)}function Ze(tt,at){be(it,tt,at)}function je(tt,at){be(pt,tt,at)}var Et=Ze,ft=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var tt=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(tt)||/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(tt==null?void 0:tt.substr(0,4))},ut={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(at){var on=at.keyCode;if(at.altKey&&!at.ctrlKey||at.metaKey||on>=ut.F1&&on<=ut.F12)return!1;switch(on){case ut.ALT:case ut.CAPS_LOCK:case ut.CONTEXT_MENU:case ut.CTRL:case ut.DOWN:case ut.END:case ut.ESC:case ut.HOME:case ut.INSERT:case ut.LEFT:case ut.MAC_FF_META:case ut.META:case ut.NUMLOCK:case ut.NUM_CENTER:case ut.PAGE_DOWN:case ut.PAGE_UP:case ut.PAUSE:case ut.PRINT_SCREEN:case ut.RIGHT:case ut.SHIFT:case ut.UP:case ut.WIN_KEY:case ut.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(at){if(at>=ut.ZERO&&at<=ut.NINE||at>=ut.NUM_ZERO&&at<=ut.NUM_MULTIPLY||at>=ut.A&&at<=ut.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&at===0)return!0;switch(at){case ut.SPACE:case ut.QUESTION_MARK:case ut.NUM_PLUS:case ut.NUM_MINUS:case ut.NUM_PERIOD:case ut.NUM_DIVISION:case ut.SEMICOLON:case ut.DASH:case ut.EQUALS:case ut.COMMA:case ut.PERIOD:case ut.SLASH:case ut.APOSTROPHE:case ut.SINGLE_QUOTE:case ut.OPEN_SQUARE_BRACKET:case ut.BACKSLASH:case ut.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Re=ut,Vt=ne(47655);function wt(tt,at,on){var Qt=Be.useRef({});return(!("value"in Qt.current)||on(Qt.current.condition,at))&&(Qt.current.value=tt(),Qt.current.condition=at),Qt.current.value}function yn(tt,at){typeof tt=="function"?tt(at):(0,ge.Z)(tt)==="object"&&tt&&"current"in tt&&(tt.current=at)}function Ft(){for(var tt=arguments.length,at=new Array(tt),on=0;on<tt;on++)at[on]=arguments[on];var Qt=at.filter(function(Dn){return Dn});return Qt.length<=1?Qt[0]:function(Dn){at.forEach(function(sr){yn(sr,Dn)})}}function ln(){for(var tt=arguments.length,at=new Array(tt),on=0;on<tt;on++)at[on]=arguments[on];return wt(function(){return Ft.apply(void 0,at)},at,function(Qt,Dn){return Qt.length===Dn.length&&Qt.every(function(sr,Mt){return sr===Dn[Mt]})})}function Kn(tt){var at,on,Qt=isMemo(tt)?tt.type.type:tt.type;return!(typeof Qt=="function"&&!((at=Qt.prototype)!==null&&at!==void 0&&at.render)||typeof tt=="function"&&!((on=tt.prototype)!==null&&on!==void 0&&on.render))}var rt=function(at){var on=at.className,Qt=at.customizeIcon,Dn=at.customizeIconProps,sr=at.onMouseDown,Mt=at.onClick,Dt=at.children,Nt;return typeof Qt=="function"?Nt=Qt(Dn):Nt=Qt,Be.createElement("span",{className:on,onMouseDown:function(Rn){Rn.preventDefault(),sr&&sr(Rn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Mt,"aria-hidden":!0},Nt!==void 0?Nt:Be.createElement("span",{className:de()(on.split(/\s+/).map(function(Gt){return"".concat(Gt,"-icon")}))},Dt))},dt=rt;function Ae(tt,at,on,Qt,Dn){var sr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Mt=arguments.length>6?arguments[6]:void 0,Dt=arguments.length>7?arguments[7]:void 0,Nt=Be.useMemo(function(){if((0,ge.Z)(Qt)==="object")return Qt.clearIcon;if(Dn)return Dn},[Qt,Dn]),Gt=Be.useMemo(function(){return!!(!sr&&Qt&&(on.length||Mt)&&!(Dt==="combobox"&&Mt===""))},[Qt,sr,on.length,Mt,Dt]);return{allowClear:Gt,clearIcon:Be.createElement(dt,{className:"".concat(tt,"-clear"),onMouseDown:at,customizeIcon:Nt},"\xD7")}}var Bt=Be.createContext(null);function Cn(){return Be.useContext(Bt)}function en(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,at=Be.useState(!1),on=(0,ce.Z)(at,2),Qt=on[0],Dn=on[1],sr=Be.useRef(null),Mt=function(){window.clearTimeout(sr.current)};Be.useEffect(function(){return Mt},[]);var Dt=function(Gt,Rn){Mt(),sr.current=window.setTimeout(function(){Dn(Gt),Rn&&Rn()},tt)};return[Qt,Dt,Mt]}function Ct(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,at=Be.useRef(null),on=Be.useRef(null);Be.useEffect(function(){return function(){window.clearTimeout(on.current)}},[]);function Qt(Dn){(Dn||at.current===null)&&(at.current=Dn),window.clearTimeout(on.current),on.current=window.setTimeout(function(){at.current=null},tt)}return[function(){return at.current},Qt]}function Rt(tt,at,on,Qt){var Dn=Be.useRef(null);Dn.current={open:at,triggerOpen:on,customizedTrigger:Qt},Be.useEffect(function(){function sr(Mt){var Dt;if(!((Dt=Dn.current)!==null&&Dt!==void 0&&Dt.customizedTrigger)){var Nt=Mt.target;Nt.shadowRoot&&Mt.composed&&(Nt=Mt.composedPath()[0]||Nt),Dn.current.open&&tt().filter(function(Gt){return Gt}).every(function(Gt){return!Gt.contains(Nt)&&Gt!==Nt})&&Dn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",sr),function(){return window.removeEventListener("mousedown",sr)}},[])}var tn=`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`,cr=`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`,Gn="".concat(tn," ").concat(cr).split(/[\s\n]+/),qt="aria-",Fn="data-";function lr(tt,at){return tt.indexOf(at)===0}function nn(tt){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on;at===!1?on={aria:!0,data:!0,attr:!0}:at===!0?on={aria:!0}:on=(0,Me.Z)({},at);var Qt={};return Object.keys(tt).forEach(function(Dn){(on.aria&&(Dn==="role"||lr(Dn,qt))||on.data&&lr(Dn,Fn)||on.attr&&Gn.includes(Dn))&&(Qt[Dn]=tt[Dn])}),Qt}var ze=ne(48555),ue=ne(14075),fe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ve=void 0;function he(tt,at){var on=tt.prefixCls,Qt=tt.invalidate,Dn=tt.item,sr=tt.renderItem,Mt=tt.responsive,Dt=tt.responsiveDisabled,Nt=tt.registerSize,Gt=tt.itemKey,Rn=tt.className,Qn=tt.style,wn=tt.children,Yn=tt.display,kr=tt.order,bn=tt.component,pn=bn===void 0?"div":bn,_n=(0,we.Z)(tt,fe),Tr=Mt&&!Yn;function Ir(oi){Nt(Gt,oi)}Be.useEffect(function(){return function(){Ir(null)}},[]);var Jr=sr&&Dn!==ve?sr(Dn):wn,Zr;Qt||(Zr={opacity:Tr?0:1,height:Tr?0:ve,overflowY:Tr?"hidden":ve,order:Mt?kr:ve,pointerEvents:Tr?"none":ve,position:Tr?"absolute":ve});var Br={};Tr&&(Br["aria-hidden"]=!0);var si=Be.createElement(pn,(0,Fe.Z)({className:de()(!Qt&&on,Rn),style:(0,Me.Z)((0,Me.Z)({},Zr),Qn)},Br,_n,{ref:at}),Jr);return Mt&&(si=Be.createElement(ze.Z,{onResize:function(vt){var dn=vt.offsetWidth;Ir(dn)},disabled:Dt},si)),si}var le=Be.forwardRef(he);le.displayName="Item";var Ne=le,Te=ne(77527),gt=ne(73935),At=ne(96523);function Tt(tt){if(typeof MessageChannel=="undefined")(0,At.Z)(tt);else{var at=new MessageChannel;at.port1.onmessage=function(){return tt()},at.port2.postMessage(void 0)}}function zt(){var tt=Be.useRef(null),at=function(Qt){tt.current||(tt.current=[],Tt(function(){(0,gt.unstable_batchedUpdates)(function(){tt.current.forEach(function(Dn){Dn()}),tt.current=null})})),tt.current.push(Qt)};return at}function Ot(tt,at){var on=Be.useState(at),Qt=(0,ce.Z)(on,2),Dn=Qt[0],sr=Qt[1],Mt=(0,Te.Z)(function(Dt){tt(function(){sr(Dt)})});return[Dn,Mt]}var ht=Be.createContext(null),It=["component"],xt=["className"],sn=["className"],Kt=function(at,on){var Qt=Be.useContext(ht);if(!Qt){var Dn=at.component,sr=Dn===void 0?"div":Dn,Mt=(0,we.Z)(at,It);return Be.createElement(sr,(0,Fe.Z)({},Mt,{ref:on}))}var Dt=Qt.className,Nt=(0,we.Z)(Qt,xt),Gt=at.className,Rn=(0,we.Z)(at,sn);return Be.createElement(ht.Provider,{value:null},Be.createElement(Ne,(0,Fe.Z)({ref:on,className:de()(Dt,Gt)},Nt,Rn)))},Un=Be.forwardRef(Kt);Un.displayName="RawItem";var bt=Un,Pt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],vn="responsive",mn="invalidate";function gn(tt){return"+ ".concat(tt.length," ...")}function or(tt,at){var on=tt.prefixCls,Qt=on===void 0?"rc-overflow":on,Dn=tt.data,sr=Dn===void 0?[]:Dn,Mt=tt.renderItem,Dt=tt.renderRawItem,Nt=tt.itemKey,Gt=tt.itemWidth,Rn=Gt===void 0?10:Gt,Qn=tt.ssr,wn=tt.style,Yn=tt.className,kr=tt.maxCount,bn=tt.renderRest,pn=tt.renderRawRest,_n=tt.suffix,Tr=tt.component,Ir=Tr===void 0?"div":Tr,Jr=tt.itemComponent,Zr=tt.onVisibleChange,Br=(0,we.Z)(tt,Pt),si=Qn==="full",oi=zt(),vt=Ot(oi,null),dn=(0,ce.Z)(vt,2),hr=dn[0],mi=dn[1],ii=hr||0,yi=Ot(oi,new Map),zi=(0,ce.Z)(yi,2),Mi=zi[0],fi=zi[1],_i=Ot(oi,0),ma=(0,ce.Z)(_i,2),oo=ma[0],Ja=ma[1],Wa=Ot(oi,0),za=(0,ce.Z)(Wa,2),La=za[0],ia=za[1],mo=Ot(oi,0),va=(0,ce.Z)(mo,2),Zi=va[0],Ta=va[1],no=(0,Be.useState)(null),Na=(0,ce.Z)(no,2),Ka=Na[0],aa=Na[1],ro=(0,Be.useState)(null),bo=(0,ce.Z)(ro,2),uo=bo[0],xo=bo[1],Ao=Be.useMemo(function(){return uo===null&&si?Number.MAX_SAFE_INTEGER:uo||0},[uo,hr]),Xo=(0,Be.useState)(!1),co=(0,ce.Z)(Xo,2),wo=co[0],os=co[1],rs="".concat(Qt,"-item"),us=Math.max(oo,La),Io=kr===vn,So=sr.length&&Io,xa=kr===mn,Pa=So||typeof kr=="number"&&sr.length>kr,io=(0,Be.useMemo)(function(){var Qa=sr;return So?hr===null&&si?Qa=sr:Qa=sr.slice(0,Math.min(sr.length,ii/Rn)):typeof kr=="number"&&(Qa=sr.slice(0,kr)),Qa},[sr,Rn,hr,kr,So]),go=(0,Be.useMemo)(function(){return So?sr.slice(Ao+1):sr.slice(io.length)},[sr,io,So,Ao]),Uo=(0,Be.useCallback)(function(Qa,wi){var ha;return typeof Nt=="function"?Nt(Qa):(ha=Nt&&(Qa==null?void 0:Qa[Nt]))!==null&&ha!==void 0?ha:wi},[Nt]),cs=(0,Be.useCallback)(Mt||function(Qa){return Qa},[Mt]);function xs(Qa,wi,ha){uo===Qa&&(wi===void 0||wi===Ka)||(xo(Qa),ha||(os(Qa<sr.length-1),Zr==null||Zr(Qa)),wi!==void 0&&aa(wi))}function Js(Qa,wi){mi(wi.clientWidth)}function zs(Qa,wi){fi(function(ha){var pa=new Map(ha);return wi===null?pa.delete(Qa):pa.set(Qa,wi),pa})}function ds(Qa,wi){ia(wi),Ja(La)}function Ks(Qa,wi){Ta(wi)}function Xa(Qa){return Mi.get(Uo(io[Qa],Qa))}(0,ue.Z)(function(){if(ii&&typeof us=="number"&&io){var Qa=Zi,wi=io.length,ha=wi-1;if(!wi){xs(0,null);return}for(var pa=0;pa<wi;pa+=1){var Aa=Xa(pa);if(si&&(Aa=Aa||0),Aa===void 0){xs(pa-1,void 0,!0);break}if(Qa+=Aa,ha===0&&Qa<=ii||pa===ha-1&&Qa+Xa(ha)<=ii){xs(ha,null);break}else if(Qa+us>ii){xs(pa-1,Qa-Aa-Zi+La);break}}_n&&Xa(0)+Zi>ii&&aa(null)}},[ii,Mi,La,Zi,Uo,io]);var Da=wo&&!!go.length,po={};Ka!==null&&So&&(po={position:"absolute",left:Ka,top:0});var ko={prefixCls:rs,responsive:So,component:Jr,invalidate:xa},fs=Dt?function(Qa,wi){var ha=Uo(Qa,wi);return Be.createElement(ht.Provider,{key:ha,value:(0,Me.Z)((0,Me.Z)({},ko),{},{order:wi,item:Qa,itemKey:ha,registerSize:zs,display:wi<=Ao})},Dt(Qa,wi))}:function(Qa,wi){var ha=Uo(Qa,wi);return Be.createElement(Ne,(0,Fe.Z)({},ko,{order:wi,key:ha,item:Qa,renderItem:cs,itemKey:ha,registerSize:zs,display:wi<=Ao}))},ss,Rl={order:Da?Ao:Number.MAX_SAFE_INTEGER,className:"".concat(rs,"-rest"),registerSize:ds,display:Da};if(pn)pn&&(ss=Be.createElement(ht.Provider,{value:(0,Me.Z)((0,Me.Z)({},ko),Rl)},pn(go)));else{var ml=bn||gn;ss=Be.createElement(Ne,(0,Fe.Z)({},ko,Rl),typeof ml=="function"?ml(go):ml)}var Sl=Be.createElement(Ir,(0,Fe.Z)({className:de()(!xa&&Qt,Yn),style:wn,ref:at},Br),io.map(fs),Pa?ss:null,_n&&Be.createElement(Ne,(0,Fe.Z)({},ko,{responsive:Io,responsiveDisabled:!So,order:Ao,className:"".concat(rs,"-suffix"),registerSize:Ks,display:!0,style:po}),_n));return Io&&(Sl=Be.createElement(ze.Z,{onResize:Js,disabled:!So},Sl)),Sl}var er=Be.forwardRef(or);er.displayName="Overflow",er.Item=bt,er.RESPONSIVE=vn,er.INVALIDATE=mn;var tr=er,Hr=tr,jr=function(at,on){var Qt,Dn,sr=at.prefixCls,Mt=at.id,Dt=at.inputElement,Nt=at.disabled,Gt=at.tabIndex,Rn=at.autoFocus,Qn=at.autoComplete,wn=at.editable,Yn=at.activeDescendantId,kr=at.value,bn=at.maxLength,pn=at.onKeyDown,_n=at.onMouseDown,Tr=at.onChange,Ir=at.onPaste,Jr=at.onCompositionStart,Zr=at.onCompositionEnd,Br=at.open,si=at.attrs,oi=Dt||Be.createElement("input",null),vt=oi,dn=vt.ref,hr=vt.props,mi=hr.onKeyDown,ii=hr.onChange,yi=hr.onMouseDown,zi=hr.onCompositionStart,Mi=hr.onCompositionEnd,fi=hr.style;return"maxLength"in oi.props,oi=Be.cloneElement(oi,(0,Me.Z)((0,Me.Z)((0,Me.Z)({type:"search"},hr),{},{id:Mt,ref:Ft(on,dn),disabled:Nt,tabIndex:Gt,autoComplete:Qn||"off",autoFocus:Rn,className:de()("".concat(sr,"-selection-search-input"),(Qt=oi)===null||Qt===void 0||(Dn=Qt.props)===null||Dn===void 0?void 0:Dn.className),role:"combobox","aria-label":"Search","aria-expanded":Br||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Mt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Mt,"_list"),"aria-activedescendant":Br?Yn:void 0},si),{},{value:wn?kr:"",maxLength:bn,readOnly:!wn,unselectable:wn?null:"on",style:(0,Me.Z)((0,Me.Z)({},fi),{},{opacity:wn?null:0}),onKeyDown:function(ma){pn(ma),mi&&mi(ma)},onMouseDown:function(ma){_n(ma),yi&&yi(ma)},onChange:function(ma){Tr(ma),ii&&ii(ma)},onCompositionStart:function(ma){Jr(ma),zi&&zi(ma)},onCompositionEnd:function(ma){Zr(ma),Mi&&Mi(ma)},onPaste:Ir})),oi},vr=Be.forwardRef(jr);vr.displayName="Input";var Kr=vr;function yr(tt){return Array.isArray(tt)?tt:tt!==void 0?[tt]:[]}var br=typeof window!="undefined"&&window.document&&window.document.documentElement,Cr=br;function zr(tt){return tt!=null}function Wt(tt){return!tt&&tt!==0}function On(tt){return["string","number"].includes((0,ge.Z)(tt))}function qn(tt){var at=void 0;return tt&&(On(tt.title)?at=tt.title.toString():On(tt.label)&&(at=tt.label.toString())),at}function zn(tt,at){Cr?Be.useLayoutEffect(tt,at):Be.useEffect(tt,at)}function Jn(tt){var at;return(at=tt.key)!==null&&at!==void 0?at:tt.value}var pr=function(at){at.preventDefault(),at.stopPropagation()},wr=function(at){var on=at.id,Qt=at.prefixCls,Dn=at.values,sr=at.open,Mt=at.searchValue,Dt=at.autoClearSearchValue,Nt=at.inputRef,Gt=at.placeholder,Rn=at.disabled,Qn=at.mode,wn=at.showSearch,Yn=at.autoFocus,kr=at.autoComplete,bn=at.activeDescendantId,pn=at.tabIndex,_n=at.removeIcon,Tr=at.maxTagCount,Ir=at.maxTagTextLength,Jr=at.maxTagPlaceholder,Zr=Jr===void 0?function(aa){return"+ ".concat(aa.length," ...")}:Jr,Br=at.tagRender,si=at.onToggleOpen,oi=at.onRemove,vt=at.onInputChange,dn=at.onInputPaste,hr=at.onInputKeyDown,mi=at.onInputMouseDown,ii=at.onInputCompositionStart,yi=at.onInputCompositionEnd,zi=Be.useRef(null),Mi=(0,Be.useState)(0),fi=(0,ce.Z)(Mi,2),_i=fi[0],ma=fi[1],oo=(0,Be.useState)(!1),Ja=(0,ce.Z)(oo,2),Wa=Ja[0],za=Ja[1],La="".concat(Qt,"-selection"),ia=sr||Qn==="multiple"&&Dt===!1||Qn==="tags"?Mt:"",mo=Qn==="tags"||Qn==="multiple"&&Dt===!1||wn&&(sr||Wa);zn(function(){ma(zi.current.scrollWidth)},[ia]);function va(aa,ro,bo,uo,xo){return Be.createElement("span",{className:de()("".concat(La,"-item"),(0,Se.Z)({},"".concat(La,"-item-disabled"),bo)),title:qn(aa)},Be.createElement("span",{className:"".concat(La,"-item-content")},ro),uo&&Be.createElement(dt,{className:"".concat(La,"-item-remove"),onMouseDown:pr,onClick:xo,customizeIcon:_n},"\xD7"))}function Zi(aa,ro,bo,uo,xo){var Ao=function(co){pr(co),si(!sr)};return Be.createElement("span",{onMouseDown:Ao},Br({label:ro,value:aa,disabled:bo,closable:uo,onClose:xo}))}function Ta(aa){var ro=aa.disabled,bo=aa.label,uo=aa.value,xo=!Rn&&!ro,Ao=bo;if(typeof Ir=="number"&&(typeof bo=="string"||typeof bo=="number")){var Xo=String(Ao);Xo.length>Ir&&(Ao="".concat(Xo.slice(0,Ir),"..."))}var co=function(os){os&&os.stopPropagation(),oi(aa)};return typeof Br=="function"?Zi(uo,Ao,ro,xo,co):va(aa,Ao,ro,xo,co)}function no(aa){var ro=typeof Zr=="function"?Zr(aa):Zr;return va({title:ro},ro,!1)}var Na=Be.createElement("div",{className:"".concat(La,"-search"),style:{width:_i},onFocus:function(){za(!0)},onBlur:function(){za(!1)}},Be.createElement(Kr,{ref:Nt,open:sr,prefixCls:Qt,id:on,inputElement:null,disabled:Rn,autoFocus:Yn,autoComplete:kr,editable:mo,activeDescendantId:bn,value:ia,onKeyDown:hr,onMouseDown:mi,onChange:vt,onPaste:dn,onCompositionStart:ii,onCompositionEnd:yi,tabIndex:pn,attrs:nn(at,!0)}),Be.createElement("span",{ref:zi,className:"".concat(La,"-search-mirror"),"aria-hidden":!0},ia,"\xA0")),Ka=Be.createElement(Hr,{prefixCls:"".concat(La,"-overflow"),data:Dn,renderItem:Ta,renderRest:no,suffix:Na,itemKey:Jn,maxCount:Tr});return Be.createElement(Be.Fragment,null,Ka,!Dn.length&&!ia&&Be.createElement("span",{className:"".concat(La,"-placeholder")},Gt))},nr=wr,St=function(at){var on=at.inputElement,Qt=at.prefixCls,Dn=at.id,sr=at.inputRef,Mt=at.disabled,Dt=at.autoFocus,Nt=at.autoComplete,Gt=at.activeDescendantId,Rn=at.mode,Qn=at.open,wn=at.values,Yn=at.placeholder,kr=at.tabIndex,bn=at.showSearch,pn=at.searchValue,_n=at.activeValue,Tr=at.maxLength,Ir=at.onInputKeyDown,Jr=at.onInputMouseDown,Zr=at.onInputChange,Br=at.onInputPaste,si=at.onInputCompositionStart,oi=at.onInputCompositionEnd,vt=at.title,dn=Be.useState(!1),hr=(0,ce.Z)(dn,2),mi=hr[0],ii=hr[1],yi=Rn==="combobox",zi=yi||bn,Mi=wn[0],fi=pn||"";yi&&_n&&!mi&&(fi=_n),Be.useEffect(function(){yi&&ii(!1)},[yi,_n]);var _i=Rn!=="combobox"&&!Qn&&!bn?!1:!!fi,ma=vt===void 0?qn(Mi):vt,oo=function(){if(Mi)return null;var Wa=_i?{visibility:"hidden"}:void 0;return Be.createElement("span",{className:"".concat(Qt,"-selection-placeholder"),style:Wa},Yn)};return Be.createElement(Be.Fragment,null,Be.createElement("span",{className:"".concat(Qt,"-selection-search")},Be.createElement(Kr,{ref:sr,prefixCls:Qt,id:Dn,open:Qn,inputElement:on,disabled:Mt,autoFocus:Dt,autoComplete:Nt,editable:zi,activeDescendantId:Gt,value:fi,onKeyDown:Ir,onMouseDown:Jr,onChange:function(Wa){ii(!0),Zr(Wa)},onPaste:Br,onCompositionStart:si,onCompositionEnd:oi,tabIndex:kr,attrs:nn(at,!0),maxLength:yi?Tr:void 0})),!yi&&Mi?Be.createElement("span",{className:"".concat(Qt,"-selection-item"),title:ma,style:_i?{visibility:"hidden"}:void 0},Mi.label):null,oo())},Zt=St;function jt(tt){return![Re.ESC,Re.SHIFT,Re.BACKSPACE,Re.TAB,Re.WIN_KEY,Re.ALT,Re.META,Re.WIN_KEY_RIGHT,Re.CTRL,Re.SEMICOLON,Re.EQUALS,Re.CAPS_LOCK,Re.CONTEXT_MENU,Re.F1,Re.F2,Re.F3,Re.F4,Re.F5,Re.F6,Re.F7,Re.F8,Re.F9,Re.F10,Re.F11,Re.F12].includes(tt)}var kn=function(at,on){var Qt=(0,Be.useRef)(null),Dn=(0,Be.useRef)(!1),sr=at.prefixCls,Mt=at.open,Dt=at.mode,Nt=at.showSearch,Gt=at.tokenWithEnter,Rn=at.autoClearSearchValue,Qn=at.onSearch,wn=at.onSearchSubmit,Yn=at.onToggleOpen,kr=at.onInputKeyDown,bn=at.domRef;Be.useImperativeHandle(on,function(){return{focus:function(){Qt.current.focus()},blur:function(){Qt.current.blur()}}});var pn=Ct(0),_n=(0,ce.Z)(pn,2),Tr=_n[0],Ir=_n[1],Jr=function(fi){var _i=fi.which;(_i===Re.UP||_i===Re.DOWN)&&fi.preventDefault(),kr&&kr(fi),_i===Re.ENTER&&Dt==="tags"&&!Dn.current&&!Mt&&(wn==null||wn(fi.target.value)),jt(_i)&&Yn(!0)},Zr=function(){Ir(!0)},Br=(0,Be.useRef)(null),si=function(fi){Qn(fi,!0,Dn.current)!==!1&&Yn(!0)},oi=function(){Dn.current=!0},vt=function(fi){Dn.current=!1,Dt!=="combobox"&&si(fi.target.value)},dn=function(fi){var _i=fi.target.value;if(Gt&&Br.current&&/[\r\n]/.test(Br.current)){var ma=Br.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");_i=_i.replace(ma,Br.current)}Br.current=null,si(_i)},hr=function(fi){var _i=fi.clipboardData,ma=_i.getData("text");Br.current=ma},mi=function(fi){var _i=fi.target;if(_i!==Qt.current){var ma=document.body.style.msTouchAction!==void 0;ma?setTimeout(function(){Qt.current.focus()}):Qt.current.focus()}},ii=function(fi){var _i=Tr();fi.target!==Qt.current&&!_i&&Dt!=="combobox"&&fi.preventDefault(),(Dt!=="combobox"&&(!Nt||!_i)||!Mt)&&(Mt&&Rn!==!1&&Qn("",!0,!1),Yn())},yi={inputRef:Qt,onInputKeyDown:Jr,onInputMouseDown:Zr,onInputChange:dn,onInputPaste:hr,onInputCompositionStart:oi,onInputCompositionEnd:vt},zi=Dt==="multiple"||Dt==="tags"?Be.createElement(nr,(0,Fe.Z)({},at,yi)):Be.createElement(Zt,(0,Fe.Z)({},at,yi));return Be.createElement("div",{ref:bn,className:"".concat(sr,"-selector"),onClick:mi,onMouseDown:ii},zi)},lt=Be.forwardRef(kn);lt.displayName="Selector";var Ut=lt,ke=ne(62709),an=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],kt=function(at){var on=at===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:on,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:on,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:on,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:on,adjustY:1},htmlRegion:"scroll"}}},Tn=function(at,on){var Qt=at.prefixCls,Dn=at.disabled,sr=at.visible,Mt=at.children,Dt=at.popupElement,Nt=at.animation,Gt=at.transitionName,Rn=at.dropdownStyle,Qn=at.dropdownClassName,wn=at.direction,Yn=wn===void 0?"ltr":wn,kr=at.placement,bn=at.builtinPlacements,pn=at.dropdownMatchSelectWidth,_n=at.dropdownRender,Tr=at.dropdownAlign,Ir=at.getPopupContainer,Jr=at.empty,Zr=at.getTriggerDOMNode,Br=at.onPopupVisibleChange,si=at.onPopupMouseEnter,oi=(0,we.Z)(at,an),vt="".concat(Qt,"-dropdown"),dn=Dt;_n&&(dn=_n(Dt));var hr=Be.useMemo(function(){return bn||kt(pn)},[bn,pn]),mi=Nt?"".concat(vt,"-").concat(Nt):Gt,ii=typeof pn=="number",yi=Be.useMemo(function(){return ii?null:pn===!1?"minWidth":"width"},[pn,ii]),zi=Rn;ii&&(zi=(0,Me.Z)((0,Me.Z)({},zi),{},{width:pn}));var Mi=Be.useRef(null);return Be.useImperativeHandle(on,function(){return{getPopupElement:function(){return Mi.current}}}),Be.createElement(ke.Z,(0,Fe.Z)({},oi,{showAction:Br?["click"]:[],hideAction:Br?["click"]:[],popupPlacement:kr||(Yn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:hr,prefixCls:vt,popupTransitionName:mi,popup:Be.createElement("div",{ref:Mi,onMouseEnter:si},dn),stretch:yi,popupAlign:Tr,popupVisible:sr,getPopupContainer:Ir,popupClassName:de()(Qn,(0,Se.Z)({},"".concat(vt,"-empty"),Jr)),popupStyle:zi,getTriggerDOMNode:Zr,onPopupVisibleChange:Br}),Mt)},rr=Be.forwardRef(Tn);rr.displayName="SelectTrigger";var Gr=rr,Nr=ne(84506);function Lr(tt,at){var on=tt.key,Qt;return"value"in tt&&(Qt=tt.value),on!=null?on:Qt!==void 0?Qt:"rc-index-key-".concat(at)}function Ur(tt,at){var on=tt||{},Qt=on.label,Dn=on.value,sr=on.options,Mt=on.groupLabel,Dt=Qt||(at?"children":"label");return{label:Dt,value:Dn||"value",options:sr||"options",groupLabel:Mt||Dt}}function Sr(tt){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},on=at.fieldNames,Qt=at.childrenAsData,Dn=[],sr=Ur(on,!1),Mt=sr.label,Dt=sr.value,Nt=sr.options,Gt=sr.groupLabel;function Rn(Qn,wn){Qn.forEach(function(Yn){if(wn||!(Nt in Yn)){var kr=Yn[Dt];Dn.push({key:Lr(Yn,Dn.length),groupOption:wn,data:Yn,label:Yn[Mt],value:kr})}else{var bn=Yn[Gt];bn===void 0&&Qt&&(bn=Yn.label),Dn.push({key:Lr(Yn,Dn.length),group:!0,data:Yn,label:bn}),Rn(Yn[Nt],!0)}})}return Rn(tt,!1),Dn}function ai(tt){var at=(0,Me.Z)({},tt);return"props"in at||Object.defineProperty(at,"props",{get:function(){return Et(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),at}}),at}function ir(tt,at){if(!at||!at.length)return null;var on=!1;function Qt(sr,Mt){var Dt=(0,Nr.Z)(Mt),Nt=Dt[0],Gt=Dt.slice(1);if(!Nt)return[sr];var Rn=sr.split(Nt);return on=on||Rn.length>1,Rn.reduce(function(Qn,wn){return[].concat((0,Xe.Z)(Qn),(0,Xe.Z)(Qt(wn,Gt)))},[]).filter(function(Qn){return Qn})}var Dn=Qt(tt,at);return on?Dn:null}var Rr=["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"],Di=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Gi(tt){return tt==="tags"||tt==="multiple"}var qr=Be.forwardRef(function(tt,at){var on,Qt,Dn=tt.id,sr=tt.prefixCls,Mt=tt.className,Dt=tt.showSearch,Nt=tt.tagRender,Gt=tt.direction,Rn=tt.omitDomProps,Qn=tt.displayValues,wn=tt.onDisplayValuesChange,Yn=tt.emptyOptions,kr=tt.notFoundContent,bn=kr===void 0?"Not Found":kr,pn=tt.onClear,_n=tt.mode,Tr=tt.disabled,Ir=tt.loading,Jr=tt.getInputElement,Zr=tt.getRawInputElement,Br=tt.open,si=tt.defaultOpen,oi=tt.onDropdownVisibleChange,vt=tt.activeValue,dn=tt.onActiveValueChange,hr=tt.activeDescendantId,mi=tt.searchValue,ii=tt.autoClearSearchValue,yi=tt.onSearch,zi=tt.onSearchSplit,Mi=tt.tokenSeparators,fi=tt.allowClear,_i=tt.suffixIcon,ma=tt.clearIcon,oo=tt.OptionList,Ja=tt.animation,Wa=tt.transitionName,za=tt.dropdownStyle,La=tt.dropdownClassName,ia=tt.dropdownMatchSelectWidth,mo=tt.dropdownRender,va=tt.dropdownAlign,Zi=tt.placement,Ta=tt.builtinPlacements,no=tt.getPopupContainer,Na=tt.showAction,Ka=Na===void 0?[]:Na,aa=tt.onFocus,ro=tt.onBlur,bo=tt.onKeyUp,uo=tt.onKeyDown,xo=tt.onMouseDown,Ao=(0,we.Z)(tt,Rr),Xo=Gi(_n),co=(Dt!==void 0?Dt:Xo)||_n==="combobox",wo=(0,Me.Z)({},Ao);Di.forEach(function(Do){delete wo[Do]}),Rn==null||Rn.forEach(function(Do){delete wo[Do]});var os=Be.useState(!1),rs=(0,ce.Z)(os,2),us=rs[0],Io=rs[1];Be.useEffect(function(){Io(ft())},[]);var So=Be.useRef(null),xa=Be.useRef(null),Pa=Be.useRef(null),io=Be.useRef(null),go=Be.useRef(null),Uo=en(),cs=(0,ce.Z)(Uo,3),xs=cs[0],Js=cs[1],zs=cs[2];Be.useImperativeHandle(at,function(){var Do,fo;return{focus:(Do=io.current)===null||Do===void 0?void 0:Do.focus,blur:(fo=io.current)===null||fo===void 0?void 0:fo.blur,scrollTo:function(gl){var ho;return(ho=go.current)===null||ho===void 0?void 0:ho.scrollTo(gl)}}});var ds=Be.useMemo(function(){var Do;if(_n!=="combobox")return mi;var fo=(Do=Qn[0])===null||Do===void 0?void 0:Do.value;return typeof fo=="string"||typeof fo=="number"?String(fo):""},[mi,_n,Qn]),Ks=_n==="combobox"&&typeof Jr=="function"&&Jr()||null,Xa=typeof Zr=="function"&&Zr(),Da=ln(xa,Xa==null||(on=Xa.props)===null||on===void 0?void 0:on.ref),po=Be.useState(!1),ko=(0,ce.Z)(po,2),fs=ko[0],ss=ko[1];ot(function(){ss(!0)},[]);var Rl=mt(!1,{defaultValue:si,value:Br}),ml=(0,ce.Z)(Rl,2),Sl=ml[0],Qa=ml[1],wi=fs?Sl:!1,ha=!bn&&Yn;(Tr||ha&&wi&&_n==="combobox")&&(wi=!1);var pa=ha?!1:wi,Aa=Be.useCallback(function(Do){var fo=Do!==void 0?Do:!wi;Tr||(Qa(fo),wi!==fo&&(oi==null||oi(fo)))},[Tr,wi,Qa,oi]),Vo=Be.useMemo(function(){return(Mi||[]).some(function(Do){return[`
`,`\r
`].includes(Do)})},[Mi]),Qo=function(fo,Hs,gl){var ho=!0,Wo=fo;dn==null||dn(null);var Ko=gl?null:ir(fo,Mi);return _n!=="combobox"&&Ko&&(Wo="",zi==null||zi(Ko),Aa(!1),ho=!1),yi&&ds!==Wo&&yi(Wo,{source:Hs?"typing":"effect"}),ho},rl=function(fo){!fo||!fo.trim()||yi(fo,{source:"submit"})};Be.useEffect(function(){!wi&&!Xo&&_n!=="combobox"&&Qo("",!1,!1)},[wi]),Be.useEffect(function(){Sl&&Tr&&Qa(!1),Tr&&Js(!1)},[Tr]);var cl=Ct(),Cl=(0,ce.Z)(cl,2),vo=Cl[0],$s=Cl[1],Pl=function(fo){var Hs=vo(),gl=fo.which;if(gl===Re.ENTER&&(_n!=="combobox"&&fo.preventDefault(),wi||Aa(!0)),$s(!!ds),gl===Re.BACKSPACE&&!Hs&&Xo&&!ds&&Qn.length){for(var ho=(0,Xe.Z)(Qn),Wo=null,Ko=ho.length-1;Ko>=0;Ko-=1){var Cs=ho[Ko];if(!Cs.disabled){ho.splice(Ko,1),Wo=Cs;break}}Wo&&wn(ho,{type:"remove",values:[Wo]})}for(var qs=arguments.length,Hl=new Array(qs>1?qs-1:0),_l=1;_l<qs;_l++)Hl[_l-1]=arguments[_l];if(wi&&go.current){var ju;(ju=go.current).onKeyDown.apply(ju,[fo].concat(Hl))}uo==null||uo.apply(void 0,[fo].concat(Hl))},Su=function(fo){for(var Hs=arguments.length,gl=new Array(Hs>1?Hs-1:0),ho=1;ho<Hs;ho++)gl[ho-1]=arguments[ho];if(wi&&go.current){var Wo;(Wo=go.current).onKeyUp.apply(Wo,[fo].concat(gl))}bo==null||bo.apply(void 0,[fo].concat(gl))},Gl=function(fo){var Hs=Qn.filter(function(gl){return gl!==fo});wn(Hs,{type:"remove",values:[fo]})},wl=Be.useRef(!1),il=function(){Js(!0),Tr||(aa&&!wl.current&&aa.apply(void 0,arguments),Ka.includes("focus")&&Aa(!0)),wl.current=!0},ql=function(){Js(!1,function(){wl.current=!1,Aa(!1)}),!Tr&&(ds&&(_n==="tags"?yi(ds,{source:"submit"}):_n==="multiple"&&yi("",{source:"blur"})),ro&&ro.apply(void 0,arguments))},dl=[];Be.useEffect(function(){return function(){dl.forEach(function(Do){return clearTimeout(Do)}),dl.splice(0,dl.length)}},[]);var eu=function(fo){var Hs,gl=fo.target,ho=(Hs=Pa.current)===null||Hs===void 0?void 0:Hs.getPopupElement();if(ho&&ho.contains(gl)){var Wo=setTimeout(function(){var Hl=dl.indexOf(Wo);if(Hl!==-1&&dl.splice(Hl,1),zs(),!us&&!ho.contains(document.activeElement)){var _l;(_l=io.current)===null||_l===void 0||_l.focus()}});dl.push(Wo)}for(var Ko=arguments.length,Cs=new Array(Ko>1?Ko-1:0),qs=1;qs<Ko;qs++)Cs[qs-1]=arguments[qs];xo==null||xo.apply(void 0,[fo].concat(Cs))},is=Be.useState({}),Eo=(0,ce.Z)(is,2),qo=Eo[1];function Ss(){qo({})}var Ts;Xa&&(Ts=function(fo){Aa(fo)}),Rt(function(){var Do;return[So.current,(Do=Pa.current)===null||Do===void 0?void 0:Do.getPopupElement()]},pa,Aa,!!Xa);var al=Be.useMemo(function(){return(0,Me.Z)((0,Me.Z)({},tt),{},{notFoundContent:bn,open:wi,triggerOpen:pa,id:Dn,showSearch:co,multiple:Xo,toggleOpen:Aa})},[tt,bn,pa,wi,Dn,co,Xo,Aa]),Ps=!!_i||Ir,Kl;Ps&&(Kl=Be.createElement(dt,{className:de()("".concat(sr,"-arrow"),(0,Se.Z)({},"".concat(sr,"-arrow-loading"),Ir)),customizeIcon:_i,customizeIconProps:{loading:Ir,searchValue:ds,open:wi,focused:xs,showSearch:co}}));var Zu=function(){var fo;pn==null||pn(),(fo=io.current)===null||fo===void 0||fo.focus(),wn([],{type:"clear",values:Qn}),Qo("",!1,!1)},fu=Ae(sr,Zu,Qn,fi,ma,Tr,ds,_n),Tu=fu.allowClear,Pu=fu.clearIcon,tu=Be.createElement(oo,{ref:go}),nu=de()(sr,Mt,(Qt={},(0,Se.Z)(Qt,"".concat(sr,"-focused"),xs),(0,Se.Z)(Qt,"".concat(sr,"-multiple"),Xo),(0,Se.Z)(Qt,"".concat(sr,"-single"),!Xo),(0,Se.Z)(Qt,"".concat(sr,"-allow-clear"),fi),(0,Se.Z)(Qt,"".concat(sr,"-show-arrow"),Ps),(0,Se.Z)(Qt,"".concat(sr,"-disabled"),Tr),(0,Se.Z)(Qt,"".concat(sr,"-loading"),Ir),(0,Se.Z)(Qt,"".concat(sr,"-open"),wi),(0,Se.Z)(Qt,"".concat(sr,"-customize-input"),Ks),(0,Se.Z)(Qt,"".concat(sr,"-show-search"),co),Qt)),Iu=Be.createElement(Gr,{ref:Pa,disabled:Tr,prefixCls:sr,visible:pa,popupElement:tu,animation:Ja,transitionName:Wa,dropdownStyle:za,dropdownClassName:La,direction:Gt,dropdownMatchSelectWidth:ia,dropdownRender:mo,dropdownAlign:va,placement:Zi,builtinPlacements:Ta,getPopupContainer:no,empty:Yn,getTriggerDOMNode:function(){return xa.current},onPopupVisibleChange:Ts,onPopupMouseEnter:Ss},Xa?Be.cloneElement(Xa,{ref:Da}):Be.createElement(Ut,(0,Fe.Z)({},tt,{domRef:xa,prefixCls:sr,inputElement:Ks,ref:io,id:Dn,showSearch:co,autoClearSearchValue:ii,mode:_n,activeDescendantId:hr,tagRender:Nt,values:Qn,open:wi,onToggleOpen:Aa,activeValue:vt,searchValue:ds,onSearch:Qo,onSearchSubmit:rl,onRemove:Gl,tokenWithEnter:Vo}))),Nu;return Xa?Nu=Iu:Nu=Be.createElement("div",(0,Fe.Z)({className:nu},wo,{ref:So,onMouseDown:eu,onKeyDown:Pl,onKeyUp:Su,onFocus:il,onBlur:ql}),xs&&!wi&&Be.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Qn.map(function(Do){var fo=Do.label,Hs=Do.value;return["number","string"].includes((0,ge.Z)(fo))?fo:Hs}).join(", "))),Iu,Kl,Tu&&Pu),Be.createElement(Bt.Provider,{value:al},Nu)}),di=qr,Yi=function(tt,at){var on=Be.useRef({values:new Map,options:new Map}),Qt=Be.useMemo(function(){var sr=on.current,Mt=sr.values,Dt=sr.options,Nt=tt.map(function(Qn){if(Qn.label===void 0){var wn;return(0,Me.Z)((0,Me.Z)({},Qn),{},{label:(wn=Mt.get(Qn.value))===null||wn===void 0?void 0:wn.label})}return Qn}),Gt=new Map,Rn=new Map;return Nt.forEach(function(Qn){Gt.set(Qn.value,Qn),Rn.set(Qn.value,at.get(Qn.value)||Dt.get(Qn.value))}),on.current.values=Gt,on.current.options=Rn,Nt},[tt,at]),Dn=Be.useCallback(function(sr){return at.get(sr)||on.current.options.get(sr)},[at]);return[Qt,Dn]};function Xr(tt,at){return yr(tt).join("").toUpperCase().includes(at)}var Pi=function(tt,at,on,Qt,Dn){return Be.useMemo(function(){if(!on||Qt===!1)return tt;var sr=at.options,Mt=at.label,Dt=at.value,Nt=[],Gt=typeof Qt=="function",Rn=on.toUpperCase(),Qn=Gt?Qt:function(Yn,kr){return Dn?Xr(kr[Dn],Rn):kr[sr]?Xr(kr[Mt!=="children"?Mt:"label"],Rn):Xr(kr[Dt],Rn)},wn=Gt?function(Yn){return ai(Yn)}:function(Yn){return Yn};return tt.forEach(function(Yn){if(Yn[sr]){var kr=Qn(on,wn(Yn));if(kr)Nt.push(Yn);else{var bn=Yn[sr].filter(function(pn){return Qn(on,wn(pn))});bn.length&&Nt.push((0,Me.Z)((0,Me.Z)({},Yn),{},(0,Se.Z)({},sr,bn)))}return}Qn(on,wn(Yn))&&Nt.push(Yn)}),Nt},[tt,Qt,Dn,on,at])},Mr=0,ua=Oe();function ta(){var tt;return ua?(tt=Mr,Mr+=1):tt="TEST_OR_SSR",tt}function Ra(tt){var at=Be.useState(),on=(0,ce.Z)(at,2),Qt=on[0],Dn=on[1];return Be.useEffect(function(){Dn("rc_select_".concat(ta()))},[]),tt||Qt}function ca(tt){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},on=[];return Be.Children.forEach(tt,function(Qt){Qt==null&&!at.keepEmpty||(Array.isArray(Qt)?on=on.concat(ca(Qt)):(0,Vt.isFragment)(Qt)&&Qt.props?on=on.concat(ca(Qt.props.children,at)):on.push(Qt))}),on}var Xi=["children","value"],Oi=["children"];function la(tt){var at=tt,on=at.key,Qt=at.props,Dn=Qt.children,sr=Qt.value,Mt=(0,we.Z)(Qt,Xi);return(0,Me.Z)({key:on,value:sr!==void 0?sr:on,children:Dn},Mt)}function Ji(tt){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ca(tt).map(function(on,Qt){if(!Be.isValidElement(on)||!on.type)return null;var Dn=on,sr=Dn.type.isSelectOptGroup,Mt=Dn.key,Dt=Dn.props,Nt=Dt.children,Gt=(0,we.Z)(Dt,Oi);return at||!sr?la(on):(0,Me.Z)((0,Me.Z)({key:"__RC_SELECT_GRP__".concat(Mt===null?Qt:Mt,"__"),label:Mt},Gt),{},{options:Ji(Nt)})}).filter(function(on){return on})}function Sa(tt,at,on,Qt,Dn){return Be.useMemo(function(){var sr=tt,Mt=!tt;Mt&&(sr=Ji(at));var Dt=new Map,Nt=new Map,Gt=function(wn,Yn,kr){kr&&typeof kr=="string"&&wn.set(Yn[kr],Yn)};function Rn(Qn){for(var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yn=0;Yn<Qn.length;Yn+=1){var kr=Qn[Yn];!kr[on.options]||wn?(Dt.set(kr[on.value],kr),Gt(Nt,kr,on.label),Gt(Nt,kr,Qt),Gt(Nt,kr,Dn)):Rn(kr[on.options],!0)}}return Rn(sr),{options:sr,valueOptions:Dt,labelOptions:Nt}},[tt,at,on,Qt,Dn])}function Ya(tt){var at=Be.useRef();at.current=tt;var on=Be.useCallback(function(){return at.current.apply(at,arguments)},[]);return on}var ka=function(){return null};ka.isSelectOptGroup=!0;var ba=ka,Ba=function(){return null};Ba.isSelectOption=!0;var fa=Ba;function ja(tt,at){var on=(0,Me.Z)({},tt);return Array.isArray(at)&&at.forEach(function(Qt){delete on[Qt]}),on}var Ri=ne(73299),hn=Be.createContext(null),$t=hn;function Zn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var gr=["disabled","title","children","style","className"];function Er(tt){return typeof tt=="string"||typeof tt=="number"}var ri=function(at,on){var Qt=Cn(),Dn=Qt.prefixCls,sr=Qt.id,Mt=Qt.open,Dt=Qt.multiple,Nt=Qt.mode,Gt=Qt.searchValue,Rn=Qt.toggleOpen,Qn=Qt.notFoundContent,wn=Qt.onPopupScroll,Yn=Be.useContext($t),kr=Yn.flattenOptions,bn=Yn.onActiveValue,pn=Yn.defaultActiveFirstOption,_n=Yn.onSelect,Tr=Yn.menuItemSelectedIcon,Ir=Yn.rawValues,Jr=Yn.fieldNames,Zr=Yn.virtual,Br=Yn.direction,si=Yn.listHeight,oi=Yn.listItemHeight,vt="".concat(Dn,"-item"),dn=wt(function(){return kr},[Mt,kr],function(va,Zi){return Zi[0]&&va[1]!==Zi[1]}),hr=Be.useRef(null),mi=function(Zi){Zi.preventDefault()},ii=function(Zi){hr.current&&hr.current.scrollTo(typeof Zi=="number"?{index:Zi}:Zi)},yi=function(Zi){for(var Ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,no=dn.length,Na=0;Na<no;Na+=1){var Ka=(Zi+Na*Ta+no)%no,aa=dn[Ka],ro=aa.group,bo=aa.data;if(!ro&&!bo.disabled)return Ka}return-1},zi=Be.useState(function(){return yi(0)}),Mi=(0,ce.Z)(zi,2),fi=Mi[0],_i=Mi[1],ma=function(Zi){var Ta=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;_i(Zi);var no={source:Ta?"keyboard":"mouse"},Na=dn[Zi];if(!Na){bn(null,-1,no);return}bn(Na.value,Zi,no)};(0,Be.useEffect)(function(){ma(pn!==!1?yi(0):-1)},[dn.length,Gt]);var oo=Be.useCallback(function(va){return Ir.has(va)&&Nt!=="combobox"},[Nt,(0,Xe.Z)(Ir).toString(),Ir.size]);(0,Be.useEffect)(function(){var va=setTimeout(function(){if(!Dt&&Mt&&Ir.size===1){var Ta=Array.from(Ir)[0],no=dn.findIndex(function(Na){var Ka=Na.data;return Ka.value===Ta});no!==-1&&(ma(no),ii(no))}});if(Mt){var Zi;(Zi=hr.current)===null||Zi===void 0||Zi.scrollTo(void 0)}return function(){return clearTimeout(va)}},[Mt,Gt,kr.length]);var Ja=function(Zi){Zi!==void 0&&_n(Zi,{selected:!Ir.has(Zi)}),Dt||Rn(!1)};if(Be.useImperativeHandle(on,function(){return{onKeyDown:function(Zi){var Ta=Zi.which,no=Zi.ctrlKey;switch(Ta){case Re.N:case Re.P:case Re.UP:case Re.DOWN:{var Na=0;if(Ta===Re.UP?Na=-1:Ta===Re.DOWN?Na=1:Zn()&&no&&(Ta===Re.N?Na=1:Ta===Re.P&&(Na=-1)),Na!==0){var Ka=yi(fi+Na,Na);ii(Ka),ma(Ka,!0)}break}case Re.ENTER:{var aa=dn[fi];aa&&!aa.data.disabled?Ja(aa.value):Ja(void 0),Mt&&Zi.preventDefault();break}case Re.ESC:Rn(!1),Mt&&Zi.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Zi){ii(Zi)}}}),dn.length===0)return Be.createElement("div",{role:"listbox",id:"".concat(sr,"_list"),className:"".concat(vt,"-empty"),onMouseDown:mi},Qn);var Wa=Object.keys(Jr).map(function(va){return Jr[va]}),za=function(Zi){return Zi.label};function La(va,Zi){var Ta=va.group;return{role:Ta?"presentation":"option",id:"".concat(sr,"_list_").concat(Zi)}}var ia=function(Zi){var Ta=dn[Zi];if(!Ta)return null;var no=Ta.data||{},Na=no.value,Ka=Ta.group,aa=nn(no,!0),ro=za(Ta);return Ta?Be.createElement("div",(0,Fe.Z)({"aria-label":typeof ro=="string"&&!Ka?ro:null},aa,{key:Zi},La(Ta,Zi),{"aria-selected":oo(Na)}),Na):null},mo={role:"listbox",id:"".concat(sr,"_list")};return Be.createElement(Be.Fragment,null,Zr&&Be.createElement("div",(0,Fe.Z)({},mo,{style:{height:0,width:0,overflow:"hidden"}}),ia(fi-1),ia(fi),ia(fi+1)),Be.createElement(Ri.Z,{itemKey:"key",ref:hr,data:dn,height:si,itemHeight:oi,fullHeight:!1,onMouseDown:mi,onScroll:wn,virtual:Zr,direction:Br,innerProps:Zr?null:mo},function(va,Zi){var Ta,no=va.group,Na=va.groupOption,Ka=va.data,aa=va.label,ro=va.value,bo=Ka.key;if(no){var uo,xo=(uo=Ka.title)!==null&&uo!==void 0?uo:Er(aa)?aa.toString():void 0;return Be.createElement("div",{className:de()(vt,"".concat(vt,"-group")),title:xo},aa!==void 0?aa:bo)}var Ao=Ka.disabled,Xo=Ka.title,co=Ka.children,wo=Ka.style,os=Ka.className,rs=(0,we.Z)(Ka,gr),us=ja(rs,Wa),Io=oo(ro),So="".concat(vt,"-option"),xa=de()(vt,So,os,(Ta={},(0,Se.Z)(Ta,"".concat(So,"-grouped"),Na),(0,Se.Z)(Ta,"".concat(So,"-active"),fi===Zi&&!Ao),(0,Se.Z)(Ta,"".concat(So,"-disabled"),Ao),(0,Se.Z)(Ta,"".concat(So,"-selected"),Io),Ta)),Pa=za(va),io=!Tr||typeof Tr=="function"||Io,go=typeof Pa=="number"?Pa:Pa||ro,Uo=Er(go)?go.toString():void 0;return Xo!==void 0&&(Uo=Xo),Be.createElement("div",(0,Fe.Z)({},nn(us),Zr?{}:La(va,Zi),{"aria-selected":Io,className:xa,title:Uo,onMouseMove:function(){fi===Zi||Ao||ma(Zi)},onClick:function(){Ao||Ja(ro)},style:wo}),Be.createElement("div",{className:"".concat(So,"-content")},go),Be.isValidElement(Tr)||Io,io&&Be.createElement(dt,{className:"".concat(vt,"-option-state"),customizeIcon:Tr,customizeIconProps:{isSelected:Io}},Io?"\u2713":null))}))},pi=Be.forwardRef(ri);pi.displayName="OptionList";var Si=pi;function vi(tt){var at=tt.mode,on=tt.options,Qt=tt.children,Dn=tt.backfill,sr=tt.allowClear,Mt=tt.placeholder,Dt=tt.getInputElement,Nt=tt.showSearch,Gt=tt.onSearch,Rn=tt.defaultOpen,Qn=tt.autoFocus,wn=tt.labelInValue,Yn=tt.value,kr=tt.inputValue,bn=tt.optionLabelProp,pn=isMultiple(at),_n=Nt!==void 0?Nt:pn||at==="combobox",Tr=on||convertChildrenToData(Qt);if(warning(at!=="tags"||Tr.every(function(Br){return!Br.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),at==="tags"||at==="combobox"){var Ir=Tr.some(function(Br){return Br.options?Br.options.some(function(si){return typeof("value"in si?si.value:si.key)=="number"}):typeof("value"in Br?Br.value:Br.key)=="number"});warning(!Ir,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(at!=="combobox"||!bn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(at==="combobox"||!Dn,"`backfill` only works with `combobox` mode."),warning(at==="combobox"||!Dt,"`getInputElement` only work with `combobox` mode."),noteOnce(at!=="combobox"||!Dt||!sr||!Mt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Gt&&!_n&&at!=="combobox"&&at!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Rn||Qn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Yn!=null){var Jr=toArray(Yn);warning(!wn||Jr.every(function(Br){return _typeof(Br)==="object"&&("key"in Br||"value"in Br)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!pn||Array.isArray(Yn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Qt){var Zr=null;toNodeArray(Qt).some(function(Br){if(!React.isValidElement(Br)||!Br.type)return!1;var si=Br,oi=si.type;if(oi.isSelectOption)return!1;if(oi.isSelectOptGroup){var vt=toNodeArray(Br.props.children).every(function(dn){return!React.isValidElement(dn)||!Br.type||dn.type.isSelectOption?!0:(Zr=dn.type,!1)});return!vt}return Zr=oi,!0}),Zr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Zr.displayName||Zr.name||Zr,"`.")),warning(kr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ai(tt,at){if(tt){var on=function Qt(Dn){for(var sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Mt=0;Mt<Dn.length;Mt++){var Dt=Dn[Mt];if(Dt[at==null?void 0:at.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!sr&&Array.isArray(Dt[at==null?void 0:at.options])&&Qt(Dt[at==null?void 0:at.options],!0))break}};on(tt)}}var Ti=null,$i=["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"],qi=["inputValue"];function Pn(tt){return!tt||(0,ge.Z)(tt)!=="object"}var In=Be.forwardRef(function(tt,at){var on=tt.id,Qt=tt.mode,Dn=tt.prefixCls,sr=Dn===void 0?"rc-select":Dn,Mt=tt.backfill,Dt=tt.fieldNames,Nt=tt.inputValue,Gt=tt.searchValue,Rn=tt.onSearch,Qn=tt.autoClearSearchValue,wn=Qn===void 0?!0:Qn,Yn=tt.onSelect,kr=tt.onDeselect,bn=tt.dropdownMatchSelectWidth,pn=bn===void 0?!0:bn,_n=tt.filterOption,Tr=tt.filterSort,Ir=tt.optionFilterProp,Jr=tt.optionLabelProp,Zr=tt.options,Br=tt.children,si=tt.defaultActiveFirstOption,oi=tt.menuItemSelectedIcon,vt=tt.virtual,dn=tt.direction,hr=tt.listHeight,mi=hr===void 0?200:hr,ii=tt.listItemHeight,yi=ii===void 0?20:ii,zi=tt.value,Mi=tt.defaultValue,fi=tt.labelInValue,_i=tt.onChange,ma=(0,we.Z)(tt,$i),oo=Ra(on),Ja=Gi(Qt),Wa=!!(!Zr&&Br),za=Be.useMemo(function(){return _n===void 0&&Qt==="combobox"?!1:_n},[_n,Qt]),La=Be.useMemo(function(){return Ur(Dt,Wa)},[JSON.stringify(Dt),Wa]),ia=mt("",{value:Gt!==void 0?Gt:Nt,postState:function(ha){return ha||""}}),mo=(0,ce.Z)(ia,2),va=mo[0],Zi=mo[1],Ta=Sa(Zr,Br,La,Ir,Jr),no=Ta.valueOptions,Na=Ta.labelOptions,Ka=Ta.options,aa=Be.useCallback(function(wi){var ha=yr(wi);return ha.map(function(pa){var Aa,Vo,Qo,rl,cl;if(Pn(pa))Aa=pa;else{var Cl;Qo=pa.key,Vo=pa.label,Aa=(Cl=pa.value)!==null&&Cl!==void 0?Cl:Qo}var vo=no.get(Aa);if(vo){var $s;if(Vo===void 0&&(Vo=vo==null?void 0:vo[Jr||La.label]),Qo===void 0&&(Qo=($s=vo==null?void 0:vo.key)!==null&&$s!==void 0?$s:Aa),rl=vo==null?void 0:vo.disabled,cl=vo==null?void 0:vo.title,0)var Pl}return{label:Vo,value:Aa,key:Qo,disabled:rl,title:cl}})},[La,Jr,no]),ro=mt(Mi,{value:zi}),bo=(0,ce.Z)(ro,2),uo=bo[0],xo=bo[1],Ao=Be.useMemo(function(){var wi,ha=aa(uo);return Qt==="combobox"&&Wt((wi=ha[0])===null||wi===void 0?void 0:wi.value)?[]:ha},[uo,aa,Qt]),Xo=Yi(Ao,no),co=(0,ce.Z)(Xo,2),wo=co[0],os=co[1],rs=Be.useMemo(function(){if(!Qt&&wo.length===1){var wi=wo[0];if(wi.value===null&&(wi.label===null||wi.label===void 0))return[]}return wo.map(function(ha){var pa;return(0,Me.Z)((0,Me.Z)({},ha),{},{label:(pa=ha.label)!==null&&pa!==void 0?pa:ha.value})})},[Qt,wo]),us=Be.useMemo(function(){return new Set(wo.map(function(wi){return wi.value}))},[wo]);Be.useEffect(function(){if(Qt==="combobox"){var wi,ha=(wi=wo[0])===null||wi===void 0?void 0:wi.value;Zi(zr(ha)?String(ha):"")}},[wo]);var Io=Ya(function(wi,ha){var pa,Aa=ha!=null?ha:wi;return pa={},(0,Se.Z)(pa,La.value,wi),(0,Se.Z)(pa,La.label,Aa),pa}),So=Be.useMemo(function(){if(Qt!=="tags")return Ka;var wi=(0,Xe.Z)(Ka),ha=function(Aa){return no.has(Aa)};return(0,Xe.Z)(wo).sort(function(pa,Aa){return pa.value<Aa.value?-1:1}).forEach(function(pa){var Aa=pa.value;ha(Aa)||wi.push(Io(Aa,pa.label))}),wi},[Io,Ka,no,wo,Qt]),xa=Pi(So,La,va,za,Ir),Pa=Be.useMemo(function(){return Qt!=="tags"||!va||xa.some(function(wi){return wi[Ir||"value"]===va})||xa.some(function(wi){return wi[La.value]===va})?xa:[Io(va)].concat((0,Xe.Z)(xa))},[Io,Ir,Qt,xa,va,La]),io=Be.useMemo(function(){return Tr?(0,Xe.Z)(Pa).sort(function(wi,ha){return Tr(wi,ha)}):Pa},[Pa,Tr]),go=Be.useMemo(function(){return Sr(io,{fieldNames:La,childrenAsData:Wa})},[io,La,Wa]),Uo=function(ha){var pa=aa(ha);if(xo(pa),_i&&(pa.length!==wo.length||pa.some(function(Qo,rl){var cl;return((cl=wo[rl])===null||cl===void 0?void 0:cl.value)!==(Qo==null?void 0:Qo.value)}))){var Aa=fi?pa:pa.map(function(Qo){return Qo.value}),Vo=pa.map(function(Qo){return ai(os(Qo.value))});_i(Ja?Aa:Aa[0],Ja?Vo:Vo[0])}},cs=Be.useState(null),xs=(0,ce.Z)(cs,2),Js=xs[0],zs=xs[1],ds=Be.useState(0),Ks=(0,ce.Z)(ds,2),Xa=Ks[0],Da=Ks[1],po=si!==void 0?si:Qt!=="combobox",ko=Be.useCallback(function(wi,ha){var pa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Aa=pa.source,Vo=Aa===void 0?"keyboard":Aa;Da(ha),Mt&&Qt==="combobox"&&wi!==null&&Vo==="keyboard"&&zs(String(wi))},[Mt,Qt]),fs=function(ha,pa,Aa){var Vo=function(){var wl,il=os(ha);return[fi?{label:il==null?void 0:il[La.label],value:ha,key:(wl=il==null?void 0:il.key)!==null&&wl!==void 0?wl:ha}:ha,ai(il)]};if(pa&&Yn){var Qo=Vo(),rl=(0,ce.Z)(Qo,2),cl=rl[0],Cl=rl[1];Yn(cl,Cl)}else if(!pa&&kr&&Aa!=="clear"){var vo=Vo(),$s=(0,ce.Z)(vo,2),Pl=$s[0],Su=$s[1];kr(Pl,Su)}},ss=Ya(function(wi,ha){var pa,Aa=Ja?ha.selected:!0;Aa?pa=Ja?[].concat((0,Xe.Z)(wo),[wi]):[wi]:pa=wo.filter(function(Vo){return Vo.value!==wi}),Uo(pa),fs(wi,Aa),Qt==="combobox"?zs(""):(!Gi||wn)&&(Zi(""),zs(""))}),Rl=function(ha,pa){Uo(ha);var Aa=pa.type,Vo=pa.values;(Aa==="remove"||Aa==="clear")&&Vo.forEach(function(Qo){fs(Qo.value,!1,Aa)})},ml=function(ha,pa){if(Zi(ha),zs(null),pa.source==="submit"){var Aa=(ha||"").trim();if(Aa){var Vo=Array.from(new Set([].concat((0,Xe.Z)(us),[Aa])));Uo(Vo),fs(Aa,!0),Zi("")}return}pa.source!=="blur"&&(Qt==="combobox"&&Uo(ha),Rn==null||Rn(ha))},Sl=function(ha){var pa=ha;Qt!=="tags"&&(pa=ha.map(function(Vo){var Qo=Na.get(Vo);return Qo==null?void 0:Qo.value}).filter(function(Vo){return Vo!==void 0}));var Aa=Array.from(new Set([].concat((0,Xe.Z)(us),(0,Xe.Z)(pa))));Uo(Aa),Aa.forEach(function(Vo){fs(Vo,!0)})},Qa=Be.useMemo(function(){var wi=vt!==!1&&pn!==!1;return(0,Me.Z)((0,Me.Z)({},Ta),{},{flattenOptions:go,onActiveValue:ko,defaultActiveFirstOption:po,onSelect:ss,menuItemSelectedIcon:oi,rawValues:us,fieldNames:La,virtual:wi,direction:dn,listHeight:mi,listItemHeight:yi,childrenAsData:Wa})},[Ta,go,ko,po,ss,oi,us,La,vt,pn,mi,yi,Wa]);return Be.createElement($t.Provider,{value:Qa},Be.createElement(di,(0,Fe.Z)({},ma,{id:oo,prefixCls:sr,ref:at,omitDomProps:qi,mode:Qt,displayValues:rs,onDisplayValuesChange:Rl,direction:dn,searchValue:va,onSearch:ml,autoClearSearchValue:wn,onSearchSplit:Sl,dropdownMatchSelectWidth:pn,OptionList:Si,emptyOptions:!go.length,activeValue:Js,activeDescendantId:"".concat(oo,"_list_").concat(Xa)})))}),Vn=In;Vn.Option=fa,Vn.OptGroup=ba;var me=Vn,_e=me,Ke=ne(10366),Ye=ne(8745),Je=ne(33603),$e=ne(9708),Ge=ne(53124),Xt=ne(98866),un=ne(88258),Wn=ne(98675),ar=ne(65223),$n=ne(4173),Nn=ne(87244),Bn=ne(13458),rn=ne(78642),Xn=ne(46163),Ar=function(tt,at){var on={};for(var Qt in tt)Object.prototype.hasOwnProperty.call(tt,Qt)&&at.indexOf(Qt)<0&&(on[Qt]=tt[Qt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dn=0,Qt=Object.getOwnPropertySymbols(tt);Dn<Qt.length;Dn++)at.indexOf(Qt[Dn])<0&&Object.prototype.propertyIsEnumerable.call(tt,Qt[Dn])&&(on[Qt[Dn]]=tt[Qt[Dn]]);return on};const ur="SECRET_COMBOBOX_MODE_DO_NOT_USE",Mn=(tt,at)=>{var on,{prefixCls:Qt,bordered:Dn=!0,className:sr,rootClassName:Mt,getPopupContainer:Dt,popupClassName:Nt,dropdownClassName:Gt,listHeight:Rn=256,placement:Qn,listItemHeight:wn=24,size:Yn,disabled:kr,notFoundContent:bn,status:pn,builtinPlacements:_n,dropdownMatchSelectWidth:Tr,popupMatchSelectWidth:Ir,direction:Jr,style:Zr,allowClear:Br}=tt,si=Ar(tt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:oi,getPrefixCls:vt,renderEmpty:dn,direction:hr,virtual:mi,popupMatchSelectWidth:ii,popupOverflow:yi,select:zi}=Be.useContext(Ge.E_),Mi=vt("select",Qt),fi=vt(),_i=Jr!=null?Jr:hr,{compactSize:ma,compactItemClassnames:oo}=(0,$n.ri)(Mi,_i),[Ja,Wa]=(0,Nn.Z)(Mi),za=Be.useMemo(()=>{const{mode:So}=si;if(So!=="combobox")return So===ur?"combobox":So},[si.mode]),La=za==="multiple"||za==="tags",ia=(0,rn.Z)(si.suffixIcon,si.showArrow),mo=(on=Ir!=null?Ir:Tr)!==null&&on!==void 0?on:ii,{status:va,hasFeedback:Zi,isFormItemInput:Ta,feedbackIcon:no}=Be.useContext(ar.aM),Na=(0,$e.F)(va,pn);let Ka;bn!==void 0?Ka=bn:za==="combobox"?Ka=null:Ka=(dn==null?void 0:dn("Select"))||Be.createElement(un.Z,{componentName:"Select"});const{suffixIcon:aa,itemIcon:ro,removeIcon:bo,clearIcon:uo}=(0,Xn.Z)(Object.assign(Object.assign({},si),{multiple:La,hasFeedback:Zi,feedbackIcon:no,showSuffixIcon:ia,prefixCls:Mi,showArrow:si.showArrow,componentName:"Select"})),xo=Br===!0?{clearIcon:uo}:Br,Ao=(0,Ke.Z)(si,["suffixIcon","itemIcon"]),Xo=de()(Nt||Gt,{[`${Mi}-dropdown-${_i}`]:_i==="rtl"},Mt,Wa),co=(0,Wn.Z)(So=>{var xa;return(xa=Yn!=null?Yn:ma)!==null&&xa!==void 0?xa:So}),wo=Be.useContext(Xt.Z),os=kr!=null?kr:wo,rs=de()({[`${Mi}-lg`]:co==="large",[`${Mi}-sm`]:co==="small",[`${Mi}-rtl`]:_i==="rtl",[`${Mi}-borderless`]:!Dn,[`${Mi}-in-form-item`]:Ta},(0,$e.Z)(Mi,Na,Zi),oo,zi==null?void 0:zi.className,sr,Mt,Wa),us=Be.useMemo(()=>Qn!==void 0?Qn:_i==="rtl"?"bottomRight":"bottomLeft",[Qn,_i]),Io=(0,Bn.Z)(_n,yi);return Ja(Be.createElement(_e,Object.assign({ref:at,virtual:mi,showSearch:zi==null?void 0:zi.showSearch},Ao,{style:Object.assign(Object.assign({},zi==null?void 0:zi.style),Zr),dropdownMatchSelectWidth:mo,builtinPlacements:Io,transitionName:(0,Je.m)(fi,"slide-up",si.transitionName),listHeight:Rn,listItemHeight:wn,mode:za,prefixCls:Mi,placement:us,direction:_i,suffixIcon:aa,menuItemSelectedIcon:ro,removeIcon:bo,allowClear:xo,notFoundContent:Ka,className:rs,getPopupContainer:Dt||oi,dropdownClassName:Xo,disabled:os})))},mr=Be.forwardRef(Mn),Dr=(0,Ye.Z)(mr);mr.SECRET_COMBOBOX_MODE_DO_NOT_USE=ur,mr.Option=fa,mr.OptGroup=ba,mr._InternalPanelDoNotUseOrYouWillBeFired=Dr;var _r=mr},87244:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Ce}});var oe=ne(14747),de=ne(80110),Fe=ne(45503),Xe=ne(67968),Se=ne(67771),Me=ne(33297);const ce=be=>{const{optionHeight:Ze,optionFontSize:je,optionLineHeight:Et,optionPadding:ft}=be;return{position:"relative",display:"block",minHeight:Ze,padding:ft,color:be.colorText,fontWeight:"normal",fontSize:je,lineHeight:Et,boxSizing:"border-box"}};var ge=be=>{const{antCls:Ze,componentCls:je}=be,Et=`${je}-item`,ft=`&${Ze}-slide-up-enter${Ze}-slide-up-enter-active`,ut=`&${Ze}-slide-up-appear${Ze}-slide-up-appear-active`,Re=`&${Ze}-slide-up-leave${Ze}-slide-up-leave-active`,Vt=`${je}-dropdown-placement-`;return[{[`${je}-dropdown`]:Object.assign(Object.assign({},(0,oe.Wf)(be)),{position:"absolute",top:-9999,zIndex:be.zIndexPopup,boxSizing:"border-box",padding:be.paddingXXS,overflow:"hidden",fontSize:be.fontSize,fontVariant:"initial",backgroundColor:be.colorBgElevated,borderRadius:be.borderRadiusLG,outline:"none",boxShadow:be.boxShadowSecondary,[`
${ft}${Vt}bottomLeft,
${ut}${Vt}bottomLeft
`]:{animationName:Se.fJ},[`
${ft}${Vt}topLeft,
${ut}${Vt}topLeft,
${ft}${Vt}topRight,
${ut}${Vt}topRight
`]:{animationName:Se.Qt},[`${Re}${Vt}bottomLeft`]:{animationName:Se.Uw},[`
${Re}${Vt}topLeft,
${Re}${Vt}topRight
`]:{animationName:Se.ly},"&-hidden":{display:"none"},[`${Et}`]:Object.assign(Object.assign({},ce(be)),{cursor:"pointer",transition:`background ${be.motionDurationSlow} ease`,borderRadius:be.borderRadiusSM,"&-group":{color:be.colorTextDescription,fontSize:be.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},oe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Et}-option-disabled)`]:{backgroundColor:be.optionActiveBg},[`&-selected:not(${Et}-option-disabled)`]:{color:be.optionSelectedColor,fontWeight:be.optionSelectedFontWeight,backgroundColor:be.optionSelectedBg,[`${Et}-option-state`]:{color:be.colorPrimary}},"&-disabled":{[`&${Et}-option-selected`]:{backgroundColor:be.colorBgContainerDisabled},color:be.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:be.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Se.oN)(be,"slide-up"),(0,Se.oN)(be,"slide-down"),(0,Me.Fm)(be,"move-up"),(0,Me.Fm)(be,"move-down")]};const Be=2,Qe=be=>{let{controlHeightSM:Ze,controlHeight:je,lineWidth:Et}=be;const ft=(je-Ze)/2-Et,ut=Math.ceil(ft/2);return[ft,ut]};function Oe(be,Ze){const{componentCls:je,iconCls:Et}=be,ft=`${je}-selection-overflow`,ut=be.multipleSelectItemHeight,[Re]=Qe(be),Vt=Ze?`${je}-${Ze}`:"";return{[`${je}-multiple${Vt}`]:{fontSize:be.fontSize,[ft]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${je}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Re-Be}px ${Be*2}px`,borderRadius:be.borderRadius,[`${je}-show-search&`]:{cursor:"text"},[`${je}-disabled&`]:{background:be.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Be}px 0`,lineHeight:`${ut}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${je}-show-arrow ${je}-selector,
&${je}-allow-clear ${je}-selector
`]:{paddingInlineEnd:be.fontSizeIcon+be.controlPaddingHorizontal},[`${je}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:ut,marginTop:Be,marginBottom:Be,lineHeight:`${ut-be.lineWidth*2}px`,background:be.multipleItemBg,border:`${be.lineWidth}px ${be.lineType} ${be.multipleItemBorderColor}`,borderRadius:be.borderRadiusSM,cursor:"default",transition:`font-size ${be.motionDurationSlow}, line-height ${be.motionDurationSlow}, height ${be.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Be*2,paddingInlineStart:be.paddingXS,paddingInlineEnd:be.paddingXS/2,[`${je}-disabled&`]:{color:be.multipleItemColorDisabled,borderColor:be.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:be.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,oe.Ro)()),{display:"inline-flex",alignItems:"center",color:be.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Et}`]:{verticalAlign:"-0.2em"},"&:hover":{color:be.colorIconHover}})},[`${ft}-item + ${ft}-item`]:{[`${je}-selection-search`]:{marginInlineStart:0}},[`${je}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:be.inputPaddingHorizontalBase-Re,"\n &-input,\n &-mirror\n ":{height:ut,fontFamily:be.fontFamily,lineHeight:`${ut}px`,transition:`all ${be.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${je}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:be.inputPaddingHorizontalBase,insetInlineEnd:be.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${be.motionDurationSlow}`}}}}var ot=be=>{const{componentCls:Ze}=be,je=(0,Fe.TS)(be,{controlHeight:be.controlHeightSM,multipleSelectItemHeight:be.controlHeightXS,borderRadius:be.borderRadiusSM,borderRadiusSM:be.borderRadiusXS}),Et=(0,Fe.TS)(be,{fontSize:be.fontSizeLG,controlHeight:be.controlHeightLG,multipleSelectItemHeight:be.multipleItemHeightLG,borderRadius:be.borderRadiusLG,borderRadiusSM:be.borderRadius}),[,ft]=Qe(be);return[Oe(be),Oe(je,"sm"),{[`${Ze}-multiple${Ze}-sm`]:{[`${Ze}-selection-placeholder`]:{insetInline:be.controlPaddingHorizontalSM-be.lineWidth},[`${Ze}-selection-search`]:{marginInlineStart:ft}}},Oe(Et,"lg")]};function nt(be,Ze){const{componentCls:je,inputPaddingHorizontalBase:Et,borderRadius:ft}=be,ut=be.controlHeight-be.lineWidth*2,Re=Math.ceil(be.fontSize*1.25),Vt=Ze?`${je}-${Ze}`:"";return{[`${je}-single${Vt}`]:{fontSize:be.fontSize,[`${je}-selector`]:Object.assign(Object.assign({},(0,oe.Wf)(be)),{display:"flex",borderRadius:ft,[`${je}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Et,insetInlineEnd:Et,bottom:0,"&-input":{width:"100%"}},[`
${je}-selection-item,
${je}-selection-placeholder
`]:{padding:0,lineHeight:`${ut}px`,transition:`all ${be.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${ut}px`}},[`${je}-selection-item`]:{position:"relative",userSelect:"none"},[`${je}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${je}-selection-item:after`,`${je}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${je}-show-arrow ${je}-selection-item,
&${je}-show-arrow ${je}-selection-placeholder
`]:{paddingInlineEnd:Re},[`&${je}-open ${je}-selection-item`]:{color:be.colorTextPlaceholder},[`&:not(${je}-customize-input)`]:{[`${je}-selector`]:{width:"100%",height:be.controlHeight,padding:`0 ${Et}px`,[`${je}-selection-search-input`]:{height:ut},"&:after":{lineHeight:`${ut}px`}}},[`&${je}-customize-input`]:{[`${je}-selector`]:{"&:after":{display:"none"},[`${je}-selection-search`]:{position:"static",width:"100%"},[`${je}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Et}px`,"&:after":{display:"none"}}}}}}}function Ve(be){const{componentCls:Ze}=be,je=be.controlPaddingHorizontalSM-be.lineWidth;return[nt(be),nt((0,Fe.TS)(be,{controlHeight:be.controlHeightSM,borderRadius:be.borderRadiusSM}),"sm"),{[`${Ze}-single${Ze}-sm`]:{[`&:not(${Ze}-customize-input)`]:{[`${Ze}-selection-search`]:{insetInlineStart:je,insetInlineEnd:je},[`${Ze}-selector`]:{padding:`0 ${je}px`},[`&${Ze}-show-arrow ${Ze}-selection-search`]:{insetInlineEnd:je+be.fontSize*1.5},[`
&${Ze}-show-arrow ${Ze}-selection-item,
&${Ze}-show-arrow ${Ze}-selection-placeholder
`]:{paddingInlineEnd:be.fontSize*1.5}}}},nt((0,Fe.TS)(be,{controlHeight:be.singleItemHeightLG,fontSize:be.fontSizeLG,borderRadius:be.borderRadiusLG}),"lg")]}const xe=be=>{const{componentCls:Ze,selectorBg:je}=be;return{position:"relative",backgroundColor:je,border:`${be.lineWidth}px ${be.lineType} ${be.colorBorder}`,transition:`all ${be.motionDurationMid} ${be.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ze}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ze}-disabled&`]:{color:be.colorTextDisabled,background:be.colorBgContainerDisabled,cursor:"not-allowed",[`${Ze}-multiple&`]:{background:be.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},mt=function(be,Ze){let je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Et,borderHoverColor:ft,outlineColor:ut,antCls:Re}=Ze,Vt=je?{[`${Et}-selector`]:{borderColor:ft}}:{};return{[be]:{[`&:not(${Et}-disabled):not(${Et}-customize-input):not(${Re}-pagination-size-changer)`]:Object.assign(Object.assign({},Vt),{[`${Et}-focused& ${Et}-selector`]:{borderColor:ft,boxShadow:`0 0 0 ${Ze.controlOutlineWidth}px ${ut}`,outline:0},[`&:hover ${Et}-selector`]:{borderColor:ft}})}}},Lt=be=>{const{componentCls:Ze}=be;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"}}}},it=be=>{const{componentCls:Ze,inputPaddingHorizontalBase:je,iconCls:Et}=be;return{[Ze]:Object.assign(Object.assign({},(0,oe.Wf)(be)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ze}-customize-input) ${Ze}-selector`]:Object.assign(Object.assign({},xe(be)),Lt(be)),[`${Ze}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},oe.vS),[`${Ze}-selection-placeholder`]:Object.assign(Object.assign({},oe.vS),{flex:1,color:be.colorTextPlaceholder,pointerEvents:"none"}),[`${Ze}-arrow`]:Object.assign(Object.assign({},(0,oe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:je,height:be.fontSizeIcon,marginTop:-be.fontSizeIcon/2,color:be.colorTextQuaternary,fontSize:be.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Et]:{verticalAlign:"top",transition:`transform ${be.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:je,zIndex:1,display:"inline-block",width:be.fontSizeIcon,height:be.fontSizeIcon,marginTop:-be.fontSizeIcon/2,color:be.colorTextQuaternary,fontSize:be.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:be.clearBg,cursor:"pointer",opacity:0,transition:`color ${be.motionDurationMid} ease, opacity ${be.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:be.colorTextTertiary}},"&:hover":{[`${Ze}-clear`]:{opacity:1}}}),[`${Ze}-has-feedback`]:{[`${Ze}-clear`]:{insetInlineEnd:je+be.fontSize+be.paddingXS}}}},pt=be=>{const{componentCls:Ze}=be;return[{[Ze]:{[`&-borderless ${Ze}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ze}-in-form-item`]:{width:"100%"}}},it(be),Ve(be),ot(be),ge(be),{[`${Ze}-rtl`]:{direction:"rtl"}},mt(Ze,(0,Fe.TS)(be,{borderHoverColor:be.colorPrimaryHover,outlineColor:be.controlOutline})),mt(`${Ze}-status-error`,(0,Fe.TS)(be,{borderHoverColor:be.colorErrorHover,outlineColor:be.colorErrorOutline}),!0),mt(`${Ze}-status-warning`,(0,Fe.TS)(be,{borderHoverColor:be.colorWarningHover,outlineColor:be.colorWarningOutline}),!0),(0,de.c)(be,{borderElCls:`${Ze}-selector`,focusElCls:`${Ze}-focused`})]};var Ce=(0,Xe.Z)("Select",(be,Ze)=>{let{rootPrefixCls:je}=Ze;const Et=(0,Fe.TS)(be,{rootPrefixCls:je,inputPaddingHorizontalBase:be.paddingSM-1,multipleSelectItemHeight:be.multipleItemHeight});return[pt(Et)]},be=>{const{fontSize:Ze,lineHeight:je,controlHeight:Et,controlPaddingHorizontal:ft,zIndexPopupBase:ut,colorText:Re,fontWeightStrong:Vt,controlItemBgActive:wt,controlItemBgHover:yn,colorBgContainer:Ft,colorFillSecondary:ln,controlHeightLG:Kn,controlHeightSM:rt,colorBgContainerDisabled:dt,colorTextDisabled:Ae}=be;return{zIndexPopup:ut+50,optionSelectedColor:Re,optionSelectedFontWeight:Vt,optionSelectedBg:wt,optionActiveBg:yn,optionPadding:`${(Et-Ze*je)/2}px ${ft}px`,optionFontSize:Ze,optionLineHeight:je,optionHeight:Et,selectorBg:Ft,clearBg:Ft,singleItemHeightLG:Kn,multipleItemBg:ln,multipleItemBorderColor:"transparent",multipleItemHeight:rt,multipleItemHeightLG:Et,multipleSelectorBgDisabled:dt,multipleItemColorDisabled:Ae,multipleItemBorderColorDisabled:"transparent"}})},13458:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return de}});const oe=Fe=>{const Se={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Fe==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Se),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Se),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Se),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Se),{points:["br","tr"],offset:[0,-4]})}};function de(Fe,Xe){return Fe||oe(Xe)}},78642:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return oe}});function oe(de,Fe){return Fe!==void 0?Fe:de!==null}},46163:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return we}});var oe=ne(18299),de=ne(16646),Fe=ne(73475),Xe=ne(42922),Se=ne(3407),Me=ne(72395),ce=ne(67294);function we(ge){let{suffixIcon:Be,clearIcon:Qe,menuItemSelectedIcon:Oe,removeIcon:et,loading:ot,multiple:nt,hasFeedback:Ve,prefixCls:xe,showSuffixIcon:mt,feedbackIcon:Lt,showArrow:it,componentName:pt}=ge;const Ce=Qe!=null?Qe:ce.createElement(de.Z,null),be=ft=>Be===null&&!Ve&&!it?null:ce.createElement(ce.Fragment,null,mt!==!1&&ft,Ve&&Lt);let Ze=null;if(Be!==void 0)Ze=be(Be);else if(ot)Ze=be(ce.createElement(Se.Z,{spin:!0}));else{const ft=`${xe}-suffix`;Ze=ut=>{let{open:Re,showSearch:Vt}=ut;return be(Re&&Vt?ce.createElement(Me.Z,{className:ft}):ce.createElement(Xe.Z,{className:ft}))}}let je=null;Oe!==void 0?je=Oe:nt?je=ce.createElement(oe.Z,null):je=null;let Et=null;return et!==void 0?Et=et:Et=ce.createElement(Fe.Z,null),{clearIcon:Ce,suffixIcon:Ze,itemIcon:je,removeIcon:Et}}},46303:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return fe}});var oe=ne(94184),de=ne.n(oe),Fe=ne(67294),Xe=ne(53124),Se=ne(10366),ce=ve=>{const{prefixCls:he,className:le,style:Ne,size:Te,shape:gt}=ve,At=de()({[`${he}-lg`]:Te==="large",[`${he}-sm`]:Te==="small"}),Tt=de()({[`${he}-circle`]:gt==="circle",[`${he}-square`]:gt==="square",[`${he}-round`]:gt==="round"}),zt=Fe.useMemo(()=>typeof Te=="number"?{width:Te,height:Te,lineHeight:`${Te}px`}:{},[Te]);return Fe.createElement("span",{className:de()(he,At,Tt,le),style:Object.assign(Object.assign({},zt),Ne)})},we=ne(34367),ge=ne(67968),Be=ne(45503);const Qe=new we.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Oe=ve=>({height:ve,lineHeight:`${ve}px`}),et=ve=>Object.assign({width:ve},Oe(ve)),ot=ve=>({background:ve.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Qe,animationDuration:ve.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),nt=ve=>Object.assign({width:ve*5,minWidth:ve*5},Oe(ve)),Ve=ve=>{const{skeletonAvatarCls:he,gradientFromColor:le,controlHeight:Ne,controlHeightLG:Te,controlHeightSM:gt}=ve;return{[`${he}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:le},et(Ne)),[`${he}${he}-circle`]:{borderRadius:"50%"},[`${he}${he}-lg`]:Object.assign({},et(Te)),[`${he}${he}-sm`]:Object.assign({},et(gt))}},xe=ve=>{const{controlHeight:he,borderRadiusSM:le,skeletonInputCls:Ne,controlHeightLG:Te,controlHeightSM:gt,gradientFromColor:At}=ve;return{[`${Ne}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:At,borderRadius:le},nt(he)),[`${Ne}-lg`]:Object.assign({},nt(Te)),[`${Ne}-sm`]:Object.assign({},nt(gt))}},mt=ve=>Object.assign({width:ve},Oe(ve)),Lt=ve=>{const{skeletonImageCls:he,imageSizeBase:le,gradientFromColor:Ne,borderRadiusSM:Te}=ve;return{[`${he}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ne,borderRadius:Te},mt(le*2)),{[`${he}-path`]:{fill:"#bfbfbf"},[`${he}-svg`]:Object.assign(Object.assign({},mt(le)),{maxWidth:le*4,maxHeight:le*4}),[`${he}-svg${he}-svg-circle`]:{borderRadius:"50%"}}),[`${he}${he}-circle`]:{borderRadius:"50%"}}},it=(ve,he,le)=>{const{skeletonButtonCls:Ne}=ve;return{[`${le}${Ne}-circle`]:{width:he,minWidth:he,borderRadius:"50%"},[`${le}${Ne}-round`]:{borderRadius:he}}},pt=ve=>Object.assign({width:ve*2,minWidth:ve*2},Oe(ve)),Ce=ve=>{const{borderRadiusSM:he,skeletonButtonCls:le,controlHeight:Ne,controlHeightLG:Te,controlHeightSM:gt,gradientFromColor:At}=ve;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:At,borderRadius:he,width:Ne*2,minWidth:Ne*2},pt(Ne))},it(ve,Ne,le)),{[`${le}-lg`]:Object.assign({},pt(Te))}),it(ve,Te,`${le}-lg`)),{[`${le}-sm`]:Object.assign({},pt(gt))}),it(ve,gt,`${le}-sm`))},be=ve=>{const{componentCls:he,skeletonAvatarCls:le,skeletonTitleCls:Ne,skeletonParagraphCls:Te,skeletonButtonCls:gt,skeletonInputCls:At,skeletonImageCls:Tt,controlHeight:zt,controlHeightLG:Ot,controlHeightSM:ht,gradientFromColor:It,padding:xt,marginSM:sn,borderRadius:Kt,titleHeight:Un,blockRadius:bt,paragraphLiHeight:Pt,controlHeightXS:vn,paragraphMarginTop:mn}=ve;return{[`${he}`]:{display:"table",width:"100%",[`${he}-header`]:{display:"table-cell",paddingInlineEnd:xt,verticalAlign:"top",[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:It},et(zt)),[`${le}-circle`]:{borderRadius:"50%"},[`${le}-lg`]:Object.assign({},et(Ot)),[`${le}-sm`]:Object.assign({},et(ht))},[`${he}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ne}`]:{width:"100%",height:Un,background:It,borderRadius:bt,[`+ ${Te}`]:{marginBlockStart:ht}},[`${Te}`]:{padding:0,"> li":{width:"100%",height:Pt,listStyle:"none",background:It,borderRadius:bt,"+ li":{marginBlockStart:vn}}},[`${Te}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${he}-content`]:{[`${Ne}, ${Te} > li`]:{borderRadius:Kt}}},[`${he}-with-avatar ${he}-content`]:{[`${Ne}`]:{marginBlockStart:sn,[`+ ${Te}`]:{marginBlockStart:mn}}},[`${he}${he}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ce(ve)),Ve(ve)),xe(ve)),Lt(ve)),[`${he}${he}-block`]:{width:"100%",[`${gt}`]:{width:"100%"},[`${At}`]:{width:"100%"}},[`${he}${he}-active`]:{[`
${Ne},
${Te} > li,
${le},
${gt},
${At},
${Tt}
`]:Object.assign({},ot(ve))}}};var Ze=(0,ge.Z)("Skeleton",ve=>{const{componentCls:he}=ve,le=(0,Be.TS)(ve,{skeletonAvatarCls:`${he}-avatar`,skeletonTitleCls:`${he}-title`,skeletonParagraphCls:`${he}-paragraph`,skeletonButtonCls:`${he}-button`,skeletonInputCls:`${he}-input`,skeletonImageCls:`${he}-image`,imageSizeBase:ve.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ve.gradientFromColor} 25%, ${ve.gradientToColor} 37%, ${ve.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[be(le)]},ve=>{const{colorFillContent:he,colorFill:le}=ve,Ne=he,Te=le;return{color:Ne,colorGradientEnd:Te,gradientFromColor:Ne,gradientToColor:Te,titleHeight:ve.controlHeight/2,blockRadius:ve.borderRadiusSM,paragraphMarginTop:ve.marginLG+ve.marginXXS,paragraphLiHeight:ve.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Et=ve=>{const{prefixCls:he,className:le,rootClassName:Ne,active:Te,shape:gt="circle",size:At="default"}=ve,{getPrefixCls:Tt}=Fe.useContext(Xe.E_),zt=Tt("skeleton",he),[Ot,ht]=Ze(zt),It=(0,Se.Z)(ve,["prefixCls","className"]),xt=de()(zt,`${zt}-element`,{[`${zt}-active`]:Te},le,Ne,ht);return Ot(Fe.createElement("div",{className:xt},Fe.createElement(ce,Object.assign({prefixCls:`${zt}-avatar`,shape:gt,size:At},It))))},ut=ve=>{const{prefixCls:he,className:le,rootClassName:Ne,active:Te,block:gt=!1,size:At="default"}=ve,{getPrefixCls:Tt}=Fe.useContext(Xe.E_),zt=Tt("skeleton",he),[Ot,ht]=Ze(zt),It=(0,Se.Z)(ve,["prefixCls"]),xt=de()(zt,`${zt}-element`,{[`${zt}-active`]:Te,[`${zt}-block`]:gt},le,Ne,ht);return Ot(Fe.createElement("div",{className:xt},Fe.createElement(ce,Object.assign({prefixCls:`${zt}-button`,size:At},It))))};const Re="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 wt=ve=>{const{prefixCls:he,className:le,rootClassName:Ne,style:Te,active:gt}=ve,{getPrefixCls:At}=Fe.useContext(Xe.E_),Tt=At("skeleton",he),[zt,Ot]=Ze(Tt),ht=de()(Tt,`${Tt}-element`,{[`${Tt}-active`]:gt},le,Ne,Ot);return zt(Fe.createElement("div",{className:ht},Fe.createElement("div",{className:de()(`${Tt}-image`,le),style:Te},Fe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Tt}-image-svg`},Fe.createElement("path",{d:Re,className:`${Tt}-image-path`})))))},Ft=ve=>{const{prefixCls:he,className:le,rootClassName:Ne,active:Te,block:gt,size:At="default"}=ve,{getPrefixCls:Tt}=Fe.useContext(Xe.E_),zt=Tt("skeleton",he),[Ot,ht]=Ze(zt),It=(0,Se.Z)(ve,["prefixCls"]),xt=de()(zt,`${zt}-element`,{[`${zt}-active`]:Te,[`${zt}-block`]:gt},le,Ne,ht);return Ot(Fe.createElement("div",{className:xt},Fe.createElement(ce,Object.assign({prefixCls:`${zt}-input`,size:At},It))))},ln=ne(87462),Kn={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"},rt=Kn,dt=ne(84089),Ae=function(he,le){return Fe.createElement(dt.Z,(0,ln.Z)({},he,{ref:le,icon:rt}))},Bt=Fe.forwardRef(Ae),en=ve=>{const{prefixCls:he,className:le,rootClassName:Ne,style:Te,active:gt,children:At}=ve,{getPrefixCls:Tt}=Fe.useContext(Xe.E_),zt=Tt("skeleton",he),[Ot,ht]=Ze(zt),It=de()(zt,`${zt}-element`,{[`${zt}-active`]:gt},ht,le,Ne),xt=At!=null?At:Fe.createElement(Bt,null);return Ot(Fe.createElement("div",{className:It},Fe.createElement("div",{className:de()(`${zt}-image`,le),style:Te},xt)))},Ct=ne(74902),tn=ve=>{const he=Tt=>{const{width:zt,rows:Ot=2}=ve;if(Array.isArray(zt))return zt[Tt];if(Ot-1===Tt)return zt},{prefixCls:le,className:Ne,style:Te,rows:gt}=ve,At=(0,Ct.Z)(Array(gt)).map((Tt,zt)=>Fe.createElement("li",{key:zt,style:{width:he(zt)}}));return Fe.createElement("ul",{className:de()(le,Ne),style:Te},At)},Gn=ve=>{let{prefixCls:he,className:le,width:Ne,style:Te}=ve;return Fe.createElement("h3",{className:de()(he,le),style:Object.assign({width:Ne},Te)})};function qt(ve){return ve&&typeof ve=="object"?ve:{}}function Fn(ve,he){return ve&&!he?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function lr(ve,he){return!ve&&he?{width:"38%"}:ve&&he?{width:"50%"}:{}}function nn(ve,he){const le={};return(!ve||!he)&&(le.width="61%"),!ve&&he?le.rows=3:le.rows=2,le}const ze=ve=>{const{prefixCls:he,loading:le,className:Ne,rootClassName:Te,style:gt,children:At,avatar:Tt=!1,title:zt=!0,paragraph:Ot=!0,active:ht,round:It}=ve,{getPrefixCls:xt,direction:sn,skeleton:Kt}=Fe.useContext(Xe.E_),Un=xt("skeleton",he),[bt,Pt]=Ze(Un);if(le||!("loading"in ve)){const vn=!!Tt,mn=!!zt,gn=!!Ot;let or;if(vn){const Hr=Object.assign(Object.assign({prefixCls:`${Un}-avatar`},Fn(mn,gn)),qt(Tt));or=Fe.createElement("div",{className:`${Un}-header`},Fe.createElement(ce,Object.assign({},Hr)))}let er;if(mn||gn){let Hr;if(mn){const vr=Object.assign(Object.assign({prefixCls:`${Un}-title`},lr(vn,gn)),qt(zt));Hr=Fe.createElement(Gn,Object.assign({},vr))}let jr;if(gn){const vr=Object.assign(Object.assign({prefixCls:`${Un}-paragraph`},nn(vn,mn)),qt(Ot));jr=Fe.createElement(tn,Object.assign({},vr))}er=Fe.createElement("div",{className:`${Un}-content`},Hr,jr)}const tr=de()(Un,{[`${Un}-with-avatar`]:vn,[`${Un}-active`]:ht,[`${Un}-rtl`]:sn==="rtl",[`${Un}-round`]:It},Kt==null?void 0:Kt.className,Ne,Te,Pt);return bt(Fe.createElement("div",{className:tr,style:Object.assign(Object.assign({},Kt==null?void 0:Kt.style),gt)},or,er))}return typeof At!="undefined"?At:null};ze.Button=ut,ze.Avatar=Et,ze.Input=Ft,ze.Image=wt,ze.Node=en;var ue=ze,fe=ue},71338:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Ne}});var oe=ne(94184),de=ne.n(oe),Fe=ne(4942),Xe=ne(74902),Se=ne(97685),Me=ne(71002),ce=ne(67294),we=ne(91881),ge=ne(21770),Be=ne(87462),Qe=ne(45987),Oe=ne(1413),et=ne(15105),ot=ce.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),nt=ot;function Ve(Te,gt,At){return(Te-gt)/(At-gt)}function xe(Te,gt,At,Tt){var zt=Ve(gt,At,Tt),Ot={};switch(Te){case"rtl":Ot.right="".concat(zt*100,"%"),Ot.transform="translateX(50%)";break;case"btt":Ot.bottom="".concat(zt*100,"%"),Ot.transform="translateY(50%)";break;case"ttb":Ot.top="".concat(zt*100,"%"),Ot.transform="translateY(-50%)";break;default:Ot.left="".concat(zt*100,"%"),Ot.transform="translateX(-50%)";break}return Ot}function mt(Te,gt){return Array.isArray(Te)?Te[gt]:Te}var Lt=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],it=ce.forwardRef(function(Te,gt){var At,Tt,zt=Te.prefixCls,Ot=Te.value,ht=Te.valueIndex,It=Te.onStartMove,xt=Te.style,sn=Te.render,Kt=Te.dragging,Un=Te.onOffsetChange,bt=(0,Qe.Z)(Te,Lt),Pt=ce.useContext(nt),vn=Pt.min,mn=Pt.max,gn=Pt.direction,or=Pt.disabled,er=Pt.keyboard,tr=Pt.range,Hr=Pt.tabIndex,jr=Pt.ariaLabelForHandle,vr=Pt.ariaLabelledByForHandle,Kr=Pt.ariaValueTextFormatterForHandle,yr="".concat(zt,"-handle"),br=function(qn){or||It(qn,ht)},Cr=function(qn){if(!or&&er){var zn=null;switch(qn.which||qn.keyCode){case et.Z.LEFT:zn=gn==="ltr"||gn==="btt"?-1:1;break;case et.Z.RIGHT:zn=gn==="ltr"||gn==="btt"?1:-1;break;case et.Z.UP:zn=gn!=="ttb"?1:-1;break;case et.Z.DOWN:zn=gn!=="ttb"?-1:1;break;case et.Z.HOME:zn="min";break;case et.Z.END:zn="max";break;case et.Z.PAGE_UP:zn=2;break;case et.Z.PAGE_DOWN:zn=-2;break}zn!==null&&(qn.preventDefault(),Un(zn,ht))}},zr=xe(gn,Ot,vn,mn),Wt=ce.createElement("div",(0,Be.Z)({ref:gt,className:de()(yr,(At={},(0,Fe.Z)(At,"".concat(yr,"-").concat(ht+1),tr),(0,Fe.Z)(At,"".concat(yr,"-dragging"),Kt),At)),style:(0,Oe.Z)((0,Oe.Z)({},zr),xt),onMouseDown:br,onTouchStart:br,onKeyDown:Cr,tabIndex:or?null:mt(Hr,ht),role:"slider","aria-valuemin":vn,"aria-valuemax":mn,"aria-valuenow":Ot,"aria-disabled":or,"aria-label":mt(jr,ht),"aria-labelledby":mt(vr,ht),"aria-valuetext":(Tt=mt(Kr,ht))===null||Tt===void 0?void 0:Tt(Ot),"aria-orientation":gn==="ltr"||gn==="rtl"?"horizontal":"vertical"},bt));return sn&&(Wt=sn(Wt,{index:ht,prefixCls:zt,value:Ot,dragging:Kt})),Wt}),pt=it,Ce=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],be=ce.forwardRef(function(Te,gt){var At=Te.prefixCls,Tt=Te.style,zt=Te.onStartMove,Ot=Te.onOffsetChange,ht=Te.values,It=Te.handleRender,xt=Te.draggingIndex,sn=(0,Qe.Z)(Te,Ce),Kt=ce.useRef({});return ce.useImperativeHandle(gt,function(){return{focus:function(bt){var Pt;(Pt=Kt.current[bt])===null||Pt===void 0||Pt.focus()}}}),ce.createElement(ce.Fragment,null,ht.map(function(Un,bt){return ce.createElement(pt,(0,Be.Z)({ref:function(vn){vn?Kt.current[bt]=vn:delete Kt.current[bt]},dragging:xt===bt,prefixCls:At,style:mt(Tt,bt),key:bt,value:Un,valueIndex:bt,onStartMove:zt,onOffsetChange:Ot,render:It},sn))}))}),Ze=be;function je(Te){var gt="touches"in Te?Te.touches[0]:Te;return{pageX:gt.pageX,pageY:gt.pageY}}function Et(Te,gt,At,Tt,zt,Ot,ht,It,xt){var sn=ce.useState(null),Kt=(0,Se.Z)(sn,2),Un=Kt[0],bt=Kt[1],Pt=ce.useState(-1),vn=(0,Se.Z)(Pt,2),mn=vn[0],gn=vn[1],or=ce.useState(At),er=(0,Se.Z)(or,2),tr=er[0],Hr=er[1],jr=ce.useState(At),vr=(0,Se.Z)(jr,2),Kr=vr[0],yr=vr[1],br=ce.useRef(null),Cr=ce.useRef(null);ce.useEffect(function(){mn===-1&&Hr(At)},[At,mn]),ce.useEffect(function(){return function(){document.removeEventListener("mousemove",br.current),document.removeEventListener("mouseup",Cr.current),document.removeEventListener("touchmove",br.current),document.removeEventListener("touchend",Cr.current)}},[]);var zr=function(pr,wr){tr.some(function(nr,St){return nr!==pr[St]})&&(wr!==void 0&&bt(wr),Hr(pr),ht(pr))},Wt=function(pr,wr){if(pr===-1){var nr=Kr[0],St=Kr[Kr.length-1],Zt=Tt-nr,jt=zt-St,kn=wr*(zt-Tt);kn=Math.max(kn,Zt),kn=Math.min(kn,jt);var lt=Ot(nr+kn);kn=lt-nr;var Ut=Kr.map(function(Tn){return Tn+kn});zr(Ut)}else{var ke=(zt-Tt)*wr,an=(0,Xe.Z)(tr);an[pr]=Kr[pr];var kt=xt(an,ke,pr,"dist");zr(kt.values,kt.value)}},On=ce.useRef(Wt);On.current=Wt;var qn=function(pr,wr){pr.stopPropagation();var nr=At[wr];gn(wr),bt(nr),yr(At);var St=je(pr),Zt=St.pageX,jt=St.pageY,kn=function(ke){ke.preventDefault();var an=je(ke),kt=an.pageX,Tn=an.pageY,rr=kt-Zt,Gr=Tn-jt,Nr=Te.current.getBoundingClientRect(),Lr=Nr.width,Ur=Nr.height,Sr;switch(gt){case"btt":Sr=-Gr/Ur;break;case"ttb":Sr=Gr/Ur;break;case"rtl":Sr=-rr/Lr;break;default:Sr=rr/Lr}On.current(wr,Sr)},lt=function Ut(ke){ke.preventDefault(),document.removeEventListener("mouseup",Ut),document.removeEventListener("mousemove",kn),document.removeEventListener("touchend",Ut),document.removeEventListener("touchmove",kn),br.current=null,Cr.current=null,gn(-1),It()};document.addEventListener("mouseup",lt),document.addEventListener("mousemove",kn),document.addEventListener("touchend",lt),document.addEventListener("touchmove",kn),br.current=kn,Cr.current=lt},zn=ce.useMemo(function(){var Jn=(0,Xe.Z)(At).sort(function(wr,nr){return wr-nr}),pr=(0,Xe.Z)(tr).sort(function(wr,nr){return wr-nr});return Jn.every(function(wr,nr){return wr===pr[nr]})?tr:At},[At,tr]);return[mn,Un,zn,qn]}function ft(Te){var gt,At=Te.prefixCls,Tt=Te.style,zt=Te.start,Ot=Te.end,ht=Te.index,It=Te.onStartMove,xt=ce.useContext(nt),sn=xt.direction,Kt=xt.min,Un=xt.max,bt=xt.disabled,Pt=xt.range,vn="".concat(At,"-track"),mn=Ve(zt,Kt,Un),gn=Ve(Ot,Kt,Un),or=function(Hr){!bt&&It&&It(Hr,-1)},er={};switch(sn){case"rtl":er.right="".concat(mn*100,"%"),er.width="".concat(gn*100-mn*100,"%");break;case"btt":er.bottom="".concat(mn*100,"%"),er.height="".concat(gn*100-mn*100,"%");break;case"ttb":er.top="".concat(mn*100,"%"),er.height="".concat(gn*100-mn*100,"%");break;default:er.left="".concat(mn*100,"%"),er.width="".concat(gn*100-mn*100,"%")}return ce.createElement("div",{className:de()(vn,(gt={},(0,Fe.Z)(gt,"".concat(vn,"-").concat(ht+1),Pt),(0,Fe.Z)(gt,"".concat(At,"-track-draggable"),It),gt)),style:(0,Oe.Z)((0,Oe.Z)({},er),Tt),onMouseDown:or,onTouchStart:or})}function ut(Te){var gt=Te.prefixCls,At=Te.style,Tt=Te.values,zt=Te.startPoint,Ot=Te.onStartMove,ht=ce.useContext(nt),It=ht.included,xt=ht.range,sn=ht.min,Kt=ce.useMemo(function(){if(!xt){if(Tt.length===0)return[];var Un=zt!=null?zt:sn,bt=Tt[0];return[{start:Math.min(Un,bt),end:Math.max(Un,bt)}]}for(var Pt=[],vn=0;vn<Tt.length-1;vn+=1)Pt.push({start:Tt[vn],end:Tt[vn+1]});return Pt},[Tt,xt,zt,sn]);return It?Kt.map(function(Un,bt){var Pt=Un.start,vn=Un.end;return ce.createElement(ft,{index:bt,prefixCls:gt,style:mt(At,bt),start:Pt,end:vn,key:bt,onStartMove:Ot})}):null}function Re(Te){var gt=Te.prefixCls,At=Te.style,Tt=Te.children,zt=Te.value,Ot=Te.onClick,ht=ce.useContext(nt),It=ht.min,xt=ht.max,sn=ht.direction,Kt=ht.includedStart,Un=ht.includedEnd,bt=ht.included,Pt="".concat(gt,"-text"),vn=xe(sn,zt,It,xt);return ce.createElement("span",{className:de()(Pt,(0,Fe.Z)({},"".concat(Pt,"-active"),bt&&Kt<=zt&&zt<=Un)),style:(0,Oe.Z)((0,Oe.Z)({},vn),At),onMouseDown:function(gn){gn.stopPropagation()},onClick:function(){Ot(zt)}},Tt)}function Vt(Te){var gt=Te.prefixCls,At=Te.marks,Tt=Te.onClick,zt="".concat(gt,"-mark");return At.length?ce.createElement("div",{className:zt},At.map(function(Ot){var ht=Ot.value,It=Ot.style,xt=Ot.label;return ce.createElement(Re,{key:ht,prefixCls:zt,style:It,value:ht,onClick:Tt},xt)})):null}function wt(Te){var gt=Te.prefixCls,At=Te.value,Tt=Te.style,zt=Te.activeStyle,Ot=ce.useContext(nt),ht=Ot.min,It=Ot.max,xt=Ot.direction,sn=Ot.included,Kt=Ot.includedStart,Un=Ot.includedEnd,bt="".concat(gt,"-dot"),Pt=sn&&Kt<=At&&At<=Un,vn=(0,Oe.Z)((0,Oe.Z)({},xe(xt,At,ht,It)),typeof Tt=="function"?Tt(At):Tt);return Pt&&(vn=(0,Oe.Z)((0,Oe.Z)({},vn),typeof zt=="function"?zt(At):zt)),ce.createElement("span",{className:de()(bt,(0,Fe.Z)({},"".concat(bt,"-active"),Pt)),style:vn})}function yn(Te){var gt=Te.prefixCls,At=Te.marks,Tt=Te.dots,zt=Te.style,Ot=Te.activeStyle,ht=ce.useContext(nt),It=ht.min,xt=ht.max,sn=ht.step,Kt=ce.useMemo(function(){var Un=new Set;if(At.forEach(function(Pt){Un.add(Pt.value)}),Tt&&sn!==null)for(var bt=It;bt<=xt;)Un.add(bt),bt+=sn;return Array.from(Un)},[It,xt,sn,Tt,At]);return ce.createElement("div",{className:"".concat(gt,"-step")},Kt.map(function(Un){return ce.createElement(wt,{prefixCls:gt,key:Un,value:Un,style:zt,activeStyle:Ot})}))}function Ft(Te,gt,At,Tt,zt,Ot){var ht=ce.useCallback(function(Pt){var vn=isFinite(Pt)?Pt:Te;return vn=Math.min(gt,Pt),vn=Math.max(Te,vn),vn},[Te,gt]),It=ce.useCallback(function(Pt){if(At!==null){var vn=Te+Math.round((ht(Pt)-Te)/At)*At,mn=function(tr){return(String(tr).split(".")[1]||"").length},gn=Math.max(mn(At),mn(gt),mn(Te)),or=Number(vn.toFixed(gn));return Te<=or&&or<=gt?or:null}return null},[At,Te,gt,ht]),xt=ce.useCallback(function(Pt){var vn=ht(Pt),mn=Tt.map(function(er){return er.value});At!==null&&mn.push(It(Pt)),mn.push(Te,gt);var gn=mn[0],or=gt-Te;return mn.forEach(function(er){var tr=Math.abs(vn-er);tr<=or&&(gn=er,or=tr)}),gn},[Te,gt,Tt,At,ht,It]),sn=function Pt(vn,mn,gn){var or=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof mn=="number"){var er,tr=vn[gn],Hr=tr+mn,jr=[];Tt.forEach(function(Cr){jr.push(Cr.value)}),jr.push(Te,gt),jr.push(It(tr));var vr=mn>0?1:-1;or==="unit"?jr.push(It(tr+vr*At)):jr.push(It(Hr)),jr=jr.filter(function(Cr){return Cr!==null}).filter(function(Cr){return mn<0?Cr<=tr:Cr>=tr}),or==="unit"&&(jr=jr.filter(function(Cr){return Cr!==tr}));var Kr=or==="unit"?tr:Hr;er=jr[0];var yr=Math.abs(er-Kr);if(jr.forEach(function(Cr){var zr=Math.abs(Cr-Kr);zr<yr&&(er=Cr,yr=zr)}),er===void 0)return mn<0?Te:gt;if(or==="dist")return er;if(Math.abs(mn)>1){var br=(0,Xe.Z)(vn);return br[gn]=er,Pt(br,mn-vr,gn,or)}return er}else{if(mn==="min")return Te;if(mn==="max")return gt}},Kt=function(vn,mn,gn){var or=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",er=vn[gn],tr=sn(vn,mn,gn,or);return{value:tr,changed:tr!==er}},Un=function(vn){return Ot===null&&vn===0||typeof Ot=="number"&&vn<Ot},bt=function(vn,mn,gn){var or=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",er=vn.map(xt),tr=er[gn],Hr=sn(er,mn,gn,or);if(er[gn]=Hr,zt===!1){var jr=Ot||0;gn>0&&er[gn-1]!==tr&&(er[gn]=Math.max(er[gn],er[gn-1]+jr)),gn<er.length-1&&er[gn+1]!==tr&&(er[gn]=Math.min(er[gn],er[gn+1]-jr))}else if(typeof Ot=="number"||Ot===null){for(var vr=gn+1;vr<er.length;vr+=1)for(var Kr=!0;Un(er[vr]-er[vr-1])&&Kr;){var yr=Kt(er,1,vr);er[vr]=yr.value,Kr=yr.changed}for(var br=gn;br>0;br-=1)for(var Cr=!0;Un(er[br]-er[br-1])&&Cr;){var zr=Kt(er,-1,br-1);er[br-1]=zr.value,Cr=zr.changed}for(var Wt=er.length-1;Wt>0;Wt-=1)for(var On=!0;Un(er[Wt]-er[Wt-1])&&On;){var qn=Kt(er,-1,Wt-1);er[Wt-1]=qn.value,On=qn.changed}for(var zn=0;zn<er.length-1;zn+=1)for(var Jn=!0;Un(er[zn+1]-er[zn])&&Jn;){var pr=Kt(er,1,zn+1);er[zn+1]=pr.value,Jn=pr.changed}}return{value:er[gn],values:er}};return[xt,bt]}var ln=ne(80334),Kn=ce.forwardRef(function(Te,gt){var At,Tt=Te.prefixCls,zt=Tt===void 0?"rc-slider":Tt,Ot=Te.className,ht=Te.style,It=Te.disabled,xt=It===void 0?!1:It,sn=Te.keyboard,Kt=sn===void 0?!0:sn,Un=Te.autoFocus,bt=Te.onFocus,Pt=Te.onBlur,vn=Te.min,mn=vn===void 0?0:vn,gn=Te.max,or=gn===void 0?100:gn,er=Te.step,tr=er===void 0?1:er,Hr=Te.value,jr=Te.defaultValue,vr=Te.range,Kr=Te.count,yr=Te.onChange,br=Te.onBeforeChange,Cr=Te.onAfterChange,zr=Te.allowCross,Wt=zr===void 0?!0:zr,On=Te.pushable,qn=On===void 0?!1:On,zn=Te.draggableTrack,Jn=Te.reverse,pr=Te.vertical,wr=Te.included,nr=wr===void 0?!0:wr,St=Te.startPoint,Zt=Te.trackStyle,jt=Te.handleStyle,kn=Te.railStyle,lt=Te.dotStyle,Ut=Te.activeDotStyle,ke=Te.marks,an=Te.dots,kt=Te.handleRender,Tn=Te.tabIndex,rr=Tn===void 0?0:Tn,Gr=Te.ariaLabelForHandle,Nr=Te.ariaLabelledByForHandle,Lr=Te.ariaValueTextFormatterForHandle,Ur=ce.useRef(),Sr=ce.useRef(),ai=ce.useMemo(function(){return pr?Jn?"ttb":"btt":Jn?"rtl":"ltr"},[Jn,pr]),ir=ce.useMemo(function(){return isFinite(mn)?mn:0},[mn]),Rr=ce.useMemo(function(){return isFinite(or)?or:100},[or]),Di=ce.useMemo(function(){return tr!==null&&tr<=0?1:tr},[tr]),Gi=ce.useMemo(function(){return typeof qn=="boolean"?qn?Di:!1:qn>=0?qn:!1},[qn,Di]),qr=ce.useMemo(function(){var In=Object.keys(ke||{});return In.map(function(Vn){var me=ke[Vn],_e={value:Number(Vn)};return me&&(0,Me.Z)(me)==="object"&&!ce.isValidElement(me)&&("label"in me||"style"in me)?(_e.style=me.style,_e.label=me.label):_e.label=me,_e}).filter(function(Vn){var me=Vn.label;return me||typeof me=="number"}).sort(function(Vn,me){return Vn.value-me.value})},[ke]),di=Ft(ir,Rr,Di,qr,Wt,Gi),Yi=(0,Se.Z)(di,2),Xr=Yi[0],Pi=Yi[1],Mr=(0,ge.Z)(jr,{value:Hr}),ua=(0,Se.Z)(Mr,2),ta=ua[0],Ra=ua[1],ca=ce.useMemo(function(){var In=ta==null?[]:Array.isArray(ta)?ta:[ta],Vn=(0,Se.Z)(In,1),me=Vn[0],_e=me===void 0?ir:me,Ke=ta===null?[]:[_e];if(vr){if(Ke=(0,Xe.Z)(In),Kr||ta===void 0){var Ye=Kr>=0?Kr+1:2;for(Ke=Ke.slice(0,Ye);Ke.length<Ye;){var Je;Ke.push((Je=Ke[Ke.length-1])!==null&&Je!==void 0?Je:ir)}}Ke.sort(function($e,Ge){return $e-Ge})}return Ke.forEach(function($e,Ge){Ke[Ge]=Xr($e)}),Ke},[ta,vr,ir,Kr,Xr]),Xi=ce.useRef(ca);Xi.current=ca;var Oi=function(Vn){return vr?Vn:Vn[0]},la=function(Vn){var me=(0,Xe.Z)(Vn).sort(function(_e,Ke){return _e-Ke});yr&&!(0,we.Z)(me,Xi.current,!0)&&yr(Oi(me)),Ra(me)},Ji=function(Vn){if(!xt){var me=0,_e=Rr-ir;ca.forEach(function(Ye,Je){var $e=Math.abs(Vn-Ye);$e<=_e&&(_e=$e,me=Je)});var Ke=(0,Xe.Z)(ca);Ke[me]=Vn,vr&&!ca.length&&Kr===void 0&&Ke.push(Vn),br==null||br(Oi(Ke)),la(Ke),Cr==null||Cr(Oi(Ke))}},Sa=function(Vn){Vn.preventDefault();var me=Sr.current.getBoundingClientRect(),_e=me.width,Ke=me.height,Ye=me.left,Je=me.top,$e=me.bottom,Ge=me.right,Xt=Vn.clientX,un=Vn.clientY,Wn;switch(ai){case"btt":Wn=($e-un)/Ke;break;case"ttb":Wn=(un-Je)/Ke;break;case"rtl":Wn=(Ge-Xt)/_e;break;default:Wn=(Xt-Ye)/_e}var ar=ir+Wn*(Rr-ir);Ji(Xr(ar))},Ya=ce.useState(null),ka=(0,Se.Z)(Ya,2),ba=ka[0],Ba=ka[1],fa=function(Vn,me){if(!xt){var _e=Pi(ca,Vn,me);br==null||br(Oi(ca)),la(_e.values),Cr==null||Cr(Oi(_e.values)),Ba(_e.value)}};ce.useEffect(function(){if(ba!==null){var In=ca.indexOf(ba);In>=0&&Ur.current.focus(In)}Ba(null)},[ba]);var ja=ce.useMemo(function(){return zn&&Di===null?!1:zn},[zn,Di]),Ri=function(){Cr==null||Cr(Oi(Xi.current))},hn=Et(Sr,ai,ca,ir,Rr,Xr,la,Ri,Pi),$t=(0,Se.Z)(hn,4),Zn=$t[0],gr=$t[1],Er=$t[2],ri=$t[3],pi=function(Vn,me){ri(Vn,me),br==null||br(Oi(Xi.current))},Si=Zn!==-1;ce.useEffect(function(){if(!Si){var In=ca.lastIndexOf(gr);Ur.current.focus(In)}},[Si]);var vi=ce.useMemo(function(){return(0,Xe.Z)(Er).sort(function(In,Vn){return In-Vn})},[Er]),Ai=ce.useMemo(function(){return vr?[vi[0],vi[vi.length-1]]:[ir,vi[0]]},[vi,vr,ir]),Ti=(0,Se.Z)(Ai,2),$i=Ti[0],qi=Ti[1];ce.useImperativeHandle(gt,function(){return{focus:function(){Ur.current.focus(0)},blur:function(){var Vn=document,me=Vn.activeElement;Sr.current.contains(me)&&(me==null||me.blur())}}}),ce.useEffect(function(){Un&&Ur.current.focus(0)},[]);var Pn=ce.useMemo(function(){return{min:ir,max:Rr,direction:ai,disabled:xt,keyboard:Kt,step:Di,included:nr,includedStart:$i,includedEnd:qi,range:vr,tabIndex:rr,ariaLabelForHandle:Gr,ariaLabelledByForHandle:Nr,ariaValueTextFormatterForHandle:Lr}},[ir,Rr,ai,xt,Kt,Di,nr,$i,qi,vr,rr,Gr,Nr,Lr]);return ce.createElement(nt.Provider,{value:Pn},ce.createElement("div",{ref:Sr,className:de()(zt,Ot,(At={},(0,Fe.Z)(At,"".concat(zt,"-disabled"),xt),(0,Fe.Z)(At,"".concat(zt,"-vertical"),pr),(0,Fe.Z)(At,"".concat(zt,"-horizontal"),!pr),(0,Fe.Z)(At,"".concat(zt,"-with-marks"),qr.length),At)),style:ht,onMouseDown:Sa},ce.createElement("div",{className:"".concat(zt,"-rail"),style:kn}),ce.createElement(ut,{prefixCls:zt,style:Zt,values:vi,startPoint:St,onStartMove:ja?pi:null}),ce.createElement(yn,{prefixCls:zt,marks:qr,dots:an,style:lt,activeStyle:Ut}),ce.createElement(Ze,{ref:Ur,prefixCls:zt,style:jt,values:Er,draggingIndex:Zn,onStartMove:pi,onOffsetChange:fa,onFocus:bt,onBlur:Pt,handleRender:kt}),ce.createElement(Vt,{prefixCls:zt,marks:qr,onClick:Ji})))}),rt=Kn,dt=rt,Ae=ne(53124),Bt=ne(98866),Cn=ne(96523),en=ne(17799),Ct=ne(83062),tn=ce.forwardRef((Te,gt)=>{const{open:At}=Te,Tt=(0,ce.useRef)(null),zt=(0,ce.useRef)(null);function Ot(){Cn.Z.cancel(zt.current),zt.current=null}function ht(){zt.current=(0,Cn.Z)(()=>{var It;(It=Tt.current)===null||It===void 0||It.forceAlign(),zt.current=null})}return ce.useEffect(()=>(At?ht():Ot(),Ot),[At,Te.title]),ce.createElement(Ct.Z,Object.assign({ref:(0,en.sQ)(Tt,gt)},Te))}),cr=ne(84780),Gn=ne(14747),qt=ne(67968),Fn=ne(45503);const lr=Te=>{const{componentCls:gt,antCls:At,controlSize:Tt,dotSize:zt,marginFull:Ot,marginPart:ht,colorFillContentHover:It}=Te;return{[gt]:Object.assign(Object.assign({},(0,Gn.Wf)(Te)),{position:"relative",height:Tt,margin:`${ht}px ${Ot}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Ot}px ${ht}px`},[`${gt}-rail`]:{position:"absolute",backgroundColor:Te.railBg,borderRadius:Te.borderRadiusXS,transition:`background-color ${Te.motionDurationMid}`},[`${gt}-track`]:{position:"absolute",backgroundColor:Te.trackBg,borderRadius:Te.borderRadiusXS,transition:`background-color ${Te.motionDurationMid}`},[`${gt}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${gt}-rail`]:{backgroundColor:Te.railHoverBg},[`${gt}-track`]:{backgroundColor:Te.trackHoverBg},[`${gt}-dot`]:{borderColor:It},[`${gt}-handle::after`]:{boxShadow:`0 0 0 ${Te.handleLineWidth}px ${Te.colorPrimaryBorderHover}`},[`${gt}-dot-active`]:{borderColor:Te.dotActiveBorderColor}},[`${gt}-handle`]:{position:"absolute",width:Te.handleSize,height:Te.handleSize,outline:"none",[`${gt}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-Te.handleLineWidth,insetBlockStart:-Te.handleLineWidth,width:Te.handleSize+Te.handleLineWidth*2,height:Te.handleSize+Te.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:Te.handleSize,height:Te.handleSize,backgroundColor:Te.colorBgElevated,boxShadow:`0 0 0 ${Te.handleLineWidth}px ${Te.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`
inset-inline-start ${Te.motionDurationMid},
inset-block-start ${Te.motionDurationMid},
width ${Te.motionDurationMid},
height ${Te.motionDurationMid},
box-shadow ${Te.motionDurationMid}
`},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((Te.handleSizeHover-Te.handleSize)/2+Te.handleLineWidthHover),insetBlockStart:-((Te.handleSizeHover-Te.handleSize)/2+Te.handleLineWidthHover),width:Te.handleSizeHover+Te.handleLineWidthHover*2,height:Te.handleSizeHover+Te.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${Te.handleLineWidthHover}px ${Te.handleActiveColor}`,width:Te.handleSizeHover,height:Te.handleSizeHover,insetInlineStart:(Te.handleSize-Te.handleSizeHover)/2,insetBlockStart:(Te.handleSize-Te.handleSizeHover)/2}}},[`${gt}-mark`]:{position:"absolute",fontSize:Te.fontSize},[`${gt}-mark-text`]:{position:"absolute",display:"inline-block",color:Te.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:Te.colorText}},[`${gt}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${gt}-dot`]:{position:"absolute",width:zt,height:zt,backgroundColor:Te.colorBgElevated,border:`${Te.handleLineWidth}px solid ${Te.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${Te.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:Te.dotActiveBorderColor}},[`&${gt}-disabled`]:{cursor:"not-allowed",[`${gt}-rail`]:{backgroundColor:`${Te.railBg} !important`},[`${gt}-track`]:{backgroundColor:`${Te.trackBgDisabled} !important`},[`
${gt}-dot
`]:{backgroundColor:Te.colorBgElevated,borderColor:Te.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${gt}-handle::after`]:{backgroundColor:Te.colorBgElevated,cursor:"not-allowed",width:Te.handleSize,height:Te.handleSize,boxShadow:`0 0 0 ${Te.handleLineWidth}px ${new cr.C(Te.colorTextDisabled).onBackground(Te.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[`
${gt}-mark-text,
${gt}-dot
`]:{cursor:"not-allowed !important"}},[`&-tooltip ${At}-tooltip-inner`]:{minWidth:"unset"}})}},nn=(Te,gt)=>{const{componentCls:At,railSize:Tt,handleSize:zt,dotSize:Ot}=Te,ht=gt?"paddingBlock":"paddingInline",It=gt?"width":"height",xt=gt?"height":"width",sn=gt?"insetBlockStart":"insetInlineStart",Kt=gt?"top":"insetInlineStart",Un=(Tt*3-zt)/2,bt=(zt-Tt)/2,Pt=gt?{borderWidth:`${bt}px 0`,transform:`translateY(-${bt}px)`}:{borderWidth:`0 ${bt}px`,transform:`translateX(-${bt}px)`};return{[ht]:Tt,[xt]:Tt*3,[`${At}-rail`]:{[It]:"100%",[xt]:Tt},[`${At}-track`]:{[xt]:Tt},[`${At}-track-draggable`]:Object.assign({},Pt),[`${At}-handle`]:{[sn]:Un},[`${At}-mark`]:{insetInlineStart:0,top:0,[Kt]:Tt*3+(gt?0:Te.marginFull),[It]:"100%"},[`${At}-step`]:{insetInlineStart:0,top:0,[Kt]:Tt,[It]:"100%",[xt]:Tt},[`${At}-dot`]:{position:"absolute",[sn]:(Tt-Ot)/2}}},ze=Te=>{const{componentCls:gt,marginPartWithMark:At}=Te;return{[`${gt}-horizontal`]:Object.assign(Object.assign({},nn(Te,!0)),{[`&${gt}-with-marks`]:{marginBottom:At}})}},ue=Te=>{const{componentCls:gt}=Te;return{[`${gt}-vertical`]:Object.assign(Object.assign({},nn(Te,!1)),{height:"100%"})}};var fe=(0,qt.Z)("Slider",Te=>{const gt=(0,Fn.TS)(Te,{marginPart:(Te.controlHeight-Te.controlSize)/2,marginFull:Te.controlSize/2,marginPartWithMark:Te.controlHeightLG-Te.controlSize});return[lr(gt),ze(gt),ue(gt)]},Te=>{const At=Te.controlHeightLG/4,Tt=Te.controlHeightSM/2,zt=Te.lineWidth+1,Ot=Te.lineWidth+1*3;return{controlSize:At,railSize:4,handleSize:At,handleSizeHover:Tt,dotSize:8,handleLineWidth:zt,handleLineWidthHover:Ot,railBg:Te.colorFillTertiary,railHoverBg:Te.colorFillSecondary,trackBg:Te.colorPrimaryBorder,trackHoverBg:Te.colorPrimaryBorderHover,handleColor:Te.colorPrimaryBorder,handleActiveColor:Te.colorPrimary,dotBorderColor:Te.colorBorderSecondary,dotActiveBorderColor:Te.colorPrimaryBorder,trackBgDisabled:Te.colorBgContainerDisabled}}),ve=function(Te,gt){var At={};for(var Tt in Te)Object.prototype.hasOwnProperty.call(Te,Tt)&&gt.indexOf(Tt)<0&&(At[Tt]=Te[Tt]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Tt=Object.getOwnPropertySymbols(Te);zt<Tt.length;zt++)gt.indexOf(Tt[zt])<0&&Object.prototype.propertyIsEnumerable.call(Te,Tt[zt])&&(At[Tt[zt]]=Te[Tt[zt]]);return At};const he=Te=>typeof Te=="number"?Te.toString():"";var Ne=ce.forwardRef((Te,gt)=>{const{prefixCls:At,range:Tt,className:zt,rootClassName:Ot,style:ht,disabled:It,tooltipPrefixCls:xt,tipFormatter:sn,tooltipVisible:Kt,getTooltipPopupContainer:Un,tooltipPlacement:bt}=Te,Pt=ve(Te,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:vn,slider:mn,getPrefixCls:gn,getPopupContainer:or}=ce.useContext(Ae.E_),er=ce.useContext(Bt.Z),tr=It!=null?It:er,[Hr,jr]=ce.useState({}),vr=(Jn,pr)=>{jr(wr=>Object.assign(Object.assign({},wr),{[Jn]:pr}))},Kr=(Jn,pr)=>Jn||(pr?vn==="rtl"?"left":"right":"top"),yr=gn("slider",At),[br,Cr]=fe(yr),zr=de()(zt,mn==null?void 0:mn.className,Ot,{[`${yr}-rtl`]:vn==="rtl"},Cr);vn==="rtl"&&!Pt.vertical&&(Pt.reverse=!Pt.reverse);const[Wt,On]=ce.useMemo(()=>Tt?typeof Tt=="object"?[!0,Tt.draggableTrack]:[!0,!1]:[!1],[Tt]),qn=(Jn,pr)=>{var wr;const{index:nr,dragging:St}=pr,{tooltip:Zt={},vertical:jt}=Te,kn=Object.assign({},Zt),{open:lt,placement:Ut,getPopupContainer:ke,prefixCls:an,formatter:kt}=kn;let Tn;kt||kt===null?Tn=kt:sn||sn===null?Tn=sn:Tn=he;const rr=Tn?Hr[nr]||St:!1,Gr=(wr=lt!=null?lt:Kt)!==null&&wr!==void 0?wr:lt===void 0&&rr,Nr=Object.assign(Object.assign({},Jn.props),{onMouseEnter:()=>vr(nr,!0),onMouseLeave:()=>vr(nr,!1)}),Lr=gn("tooltip",an!=null?an:xt);return ce.createElement(tn,Object.assign({},kn,{prefixCls:Lr,title:Tn?Tn(pr.value):"",open:Gr,placement:Kr(Ut!=null?Ut:bt,jt),key:nr,overlayClassName:`${yr}-tooltip`,getPopupContainer:ke||Un||or}),ce.cloneElement(Jn,Nr))},zn=Object.assign(Object.assign({},mn==null?void 0:mn.style),ht);return br(ce.createElement(dt,Object.assign({},Pt,{step:Pt.step,range:Wt,draggableTrack:On,className:zr,style:zn,disabled:tr,ref:gt,prefixCls:yr,handleRender:qn})))})},55054:function(An,Jt,ne){"use strict";ne.d(Jt,{default:function(){return Ze}});var oe=ne(67294),de=ne(57838),Fe=ne(96159),Xe=ne(94184),Se=ne.n(Xe),Me=ne(53124),ce=ne(46303),ge=je=>{const{value:Et,formatter:ft,precision:ut,decimalSeparator:Re,groupSeparator:Vt="",prefixCls:wt}=je;let yn;if(typeof ft=="function")yn=ft(Et);else{const Ft=String(Et),ln=Ft.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ln||Ft==="-")yn=Ft;else{const Kn=ln[1];let rt=ln[2]||"0",dt=ln[4]||"";rt=rt.replace(/\B(?=(\d{3})+(?!\d))/g,Vt),typeof ut=="number"&&(dt=dt.padEnd(ut,"0").slice(0,ut>0?ut:0)),dt&&(dt=`${Re}${dt}`),yn=[oe.createElement("span",{key:"int",className:`${wt}-content-value-int`},Kn,rt),dt&&oe.createElement("span",{key:"decimal",className:`${wt}-content-value-decimal`},dt)]}}return oe.createElement("span",{className:`${wt}-content-value`},yn)},Be=ne(14747),Qe=ne(67968),Oe=ne(45503);const et=je=>{const{componentCls:Et,marginXXS:ft,padding:ut,colorTextDescription:Re,titleFontSize:Vt,colorTextHeading:wt,contentFontSize:yn,fontFamily:Ft}=je;return{[`${Et}`]:Object.assign(Object.assign({},(0,Be.Wf)(je)),{[`${Et}-title`]:{marginBottom:ft,color:Re,fontSize:Vt},[`${Et}-skeleton`]:{paddingTop:ut},[`${Et}-content`]:{color:wt,fontSize:yn,fontFamily:Ft,[`${Et}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Et}-content-prefix, ${Et}-content-suffix`]:{display:"inline-block"},[`${Et}-content-prefix`]:{marginInlineEnd:ft},[`${Et}-content-suffix`]:{marginInlineStart:ft}}})}};var ot=(0,Qe.Z)("Statistic",je=>{const Et=(0,Oe.TS)(je,{});return[et(Et)]},je=>{const{fontSizeHeading3:Et,fontSize:ft}=je;return{titleFontSize:ft,contentFontSize:Et}}),Ve=je=>{const{prefixCls:Et,className:ft,rootClassName:ut,style:Re,valueStyle:Vt,value:wt=0,title:yn,valueRender:Ft,prefix:ln,suffix:Kn,loading:rt=!1,onMouseEnter:dt,onMouseLeave:Ae,decimalSeparator:Bt=".",groupSeparator:Cn=","}=je,{getPrefixCls:en,direction:Ct,statistic:Rt}=oe.useContext(Me.E_),tn=en("statistic",Et),[cr,Gn]=ot(tn),qt=oe.createElement(ge,Object.assign({decimalSeparator:Bt,groupSeparator:Cn,prefixCls:tn},je,{value:wt})),Fn=Se()(tn,{[`${tn}-rtl`]:Ct==="rtl"},Rt==null?void 0:Rt.className,ft,ut,Gn);return cr(oe.createElement("div",{className:Fn,style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),Re),onMouseEnter:dt,onMouseLeave:Ae},yn&&oe.createElement("div",{className:`${tn}-title`},yn),oe.createElement(ce.Z,{paragraph:!1,loading:rt,className:`${tn}-skeleton`},oe.createElement("div",{style:Vt,className:`${tn}-content`},ln&&oe.createElement("span",{className:`${tn}-content-prefix`},ln),Ft?Ft(qt):qt,Kn&&oe.createElement("span",{className:`${tn}-content-suffix`},Kn)))))};const xe=[["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 mt(je,Et){let ft=je;const ut=/\[[^\]]*]/g,Re=(Et.match(ut)||[]).map(Ft=>Ft.slice(1,-1)),Vt=Et.replace(ut,"[]"),wt=xe.reduce((Ft,ln)=>{let[Kn,rt]=ln;if(Ft.includes(Kn)){const dt=Math.floor(ft/rt);return ft-=dt*rt,Ft.replace(new RegExp(`${Kn}+`,"g"),Ae=>{const Bt=Ae.length;return dt.toString().padStart(Bt,"0")})}return Ft},Vt);let yn=0;return wt.replace(ut,()=>{const Ft=Re[yn];return yn+=1,Ft})}function Lt(je,Et){const{format:ft=""}=Et,ut=new Date(je).getTime(),Re=Date.now(),Vt=Math.max(ut-Re,0);return mt(Vt,ft)}const it=1e3/30;function pt(je){return new Date(je).getTime()}const Ce=je=>{const{value:Et,format:ft="HH:mm:ss",onChange:ut,onFinish:Re}=je,Vt=(0,de.Z)(),wt=oe.useRef(null),yn=()=>{Re==null||Re(),wt.current&&(clearInterval(wt.current),wt.current=null)},Ft=()=>{const rt=pt(Et);rt>=Date.now()&&(wt.current=setInterval(()=>{Vt(),ut==null||ut(rt-Date.now()),rt<Date.now()&&yn()},it))};oe.useEffect(()=>(Ft(),()=>{wt.current&&(clearInterval(wt.current),wt.current=null)}),[Et]);const ln=(rt,dt)=>Lt(rt,Object.assign(Object.assign({},dt),{format:ft})),Kn=rt=>(0,Fe.Tm)(rt,{title:void 0});return oe.createElement(Ve,Object.assign({},je,{valueRender:Kn,formatter:ln}))};var be=oe.memo(Ce);Ve.Countdown=be;var Ze=Ve},33507:function(An,Jt){"use strict";const ne=oe=>({[oe.componentCls]:{[`${oe.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${oe.motionDurationMid} ${oe.motionEaseInOut},
opacity ${oe.motionDurationMid} ${oe.motionEaseInOut} !important`}},[`${oe.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${oe.motionDurationMid} ${oe.motionEaseInOut},
opacity ${oe.motionDurationMid} ${oe.motionEaseInOut} !important`}}});Jt.Z=ne},33297:function(An,Jt,ne){"use strict";ne.d(Jt,{Fm:function(){return Oe}});var oe=ne(34367),de=ne(93590);const Fe=new oe.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Xe=new oe.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Se=new oe.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 oe.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ce=new oe.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),we=new oe.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ge=new oe.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Be=new oe.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Qe={"move-up":{inKeyframes:ge,outKeyframes:Be},"move-down":{inKeyframes:Fe,outKeyframes:Xe},"move-left":{inKeyframes:Se,outKeyframes:Me},"move-right":{inKeyframes:ce,outKeyframes:we}},Oe=(et,ot)=>{const{antCls:nt}=et,Ve=`${nt}-${ot}`,{inKeyframes:xe,outKeyframes:mt}=Qe[ot];return[(0,de.R)(Ve,xe,mt,et.motionDurationMid),{[`
${Ve}-enter,
${Ve}-appear
`]:{opacity:0,animationTimingFunction:et.motionEaseOutCirc},[`${Ve}-leave`]:{animationTimingFunction:et.motionEaseInOutCirc}}]}},67771:function(An,Jt,ne){"use strict";ne.d(Jt,{Qt:function(){return Se},Uw:function(){return Xe},fJ:function(){return Fe},ly:function(){return Me},oN:function(){return Oe}});var oe=ne(34367),de=ne(93590);const Fe=new oe.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Xe=new oe.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Se=new oe.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Me=new oe.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ce=new oe.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),we=new oe.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),ge=new oe.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Be=new oe.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Qe={"slide-up":{inKeyframes:Fe,outKeyframes:Xe},"slide-down":{inKeyframes:Se,outKeyframes:Me},"slide-left":{inKeyframes:ce,outKeyframes:we},"slide-right":{inKeyframes:ge,outKeyframes:Be}},Oe=(et,ot)=>{const{antCls:nt}=et,Ve=`${nt}-${ot}`,{inKeyframes:xe,outKeyframes:mt}=Qe[ot];return[(0,de.R)(Ve,xe,mt,et.motionDurationMid),{[`
${Ve}-enter,
${Ve}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:et.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Ve}-leave`]:{animationTimingFunction:et.motionEaseInQuint}}]}},49867:function(An,Jt,ne){"use strict";ne.d(Jt,{N:function(){return oe}});const oe=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(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return ve}});var oe=ne(3407),de=ne(94184),Fe=ne.n(de);function Xe(){return Xe=Object.assign?Object.assign.bind():function(he){for(var le=1;le<arguments.length;le++){var Ne=arguments[le];for(var Te in Ne)Object.prototype.hasOwnProperty.call(Ne,Te)&&(he[Te]=Ne[Te])}return he},Xe.apply(this,arguments)}function Se(he){"@babel/helpers - typeof";return Se=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},Se(he)}function Me(he,le){if(Se(he)!=="object"||he===null)return he;var Ne=he[Symbol.toPrimitive];if(Ne!==void 0){var Te=Ne.call(he,le||"default");if(Se(Te)!=="object")return Te;throw new TypeError("@@toPrimitive must return a primitive value.")}return(le==="string"?String:Number)(he)}function ce(he){var le=Me(he,"string");return Se(le)==="symbol"?le:String(le)}function we(he,le,Ne){return le=ce(le),le in he?Object.defineProperty(he,le,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):he[le]=Ne,he}function ge(he){if(Array.isArray(he))return he}function Be(he,le){var Ne=he==null?null:typeof Symbol!="undefined"&&he[Symbol.iterator]||he["@@iterator"];if(Ne!=null){var Te,gt,At,Tt,zt=[],Ot=!0,ht=!1;try{if(At=(Ne=Ne.call(he)).next,le===0){if(Object(Ne)!==Ne)return;Ot=!1}else for(;!(Ot=(Te=At.call(Ne)).done)&&(zt.push(Te.value),zt.length!==le);Ot=!0);}catch(It){ht=!0,gt=It}finally{try{if(!Ot&&Ne.return!=null&&(Tt=Ne.return(),Object(Tt)!==Tt))return}finally{if(ht)throw gt}}return zt}}function Qe(he,le){(le==null||le>he.length)&&(le=he.length);for(var Ne=0,Te=new Array(le);Ne<le;Ne++)Te[Ne]=he[Ne];return Te}function Oe(he,le){if(he){if(typeof he=="string")return Qe(he,le);var Ne=Object.prototype.toString.call(he).slice(8,-1);if(Ne==="Object"&&he.constructor&&(Ne=he.constructor.name),Ne==="Map"||Ne==="Set")return Array.from(he);if(Ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ne))return Qe(he,le)}}function et(){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 ot(he,le){return ge(he)||Be(he,le)||Oe(he,le)||et()}function nt(he,le){if(he==null)return{};var Ne={},Te=Object.keys(he),gt,At;for(At=0;At<Te.length;At++)gt=Te[At],!(le.indexOf(gt)>=0)&&(Ne[gt]=he[gt]);return Ne}function Ve(he,le){if(he==null)return{};var Ne=nt(he,le),Te,gt;if(Object.getOwnPropertySymbols){var At=Object.getOwnPropertySymbols(he);for(gt=0;gt<At.length;gt++)Te=At[gt],!(le.indexOf(Te)>=0)&&Object.prototype.propertyIsEnumerable.call(he,Te)&&(Ne[Te]=he[Te])}return Ne}var xe=ne(67294);function mt(he){if(Array.isArray(he))return he}function Lt(he,le){var Ne=he==null?null:typeof Symbol!="undefined"&&he[Symbol.iterator]||he["@@iterator"];if(Ne!=null){var Te,gt,At,Tt,zt=[],Ot=!0,ht=!1;try{if(At=(Ne=Ne.call(he)).next,le===0){if(Object(Ne)!==Ne)return;Ot=!1}else for(;!(Ot=(Te=At.call(Ne)).done)&&(zt.push(Te.value),zt.length!==le);Ot=!0);}catch(It){ht=!0,gt=It}finally{try{if(!Ot&&Ne.return!=null&&(Tt=Ne.return(),Object(Tt)!==Tt))return}finally{if(ht)throw gt}}return zt}}function it(he,le){(le==null||le>he.length)&&(le=he.length);for(var Ne=0,Te=new Array(le);Ne<le;Ne++)Te[Ne]=he[Ne];return Te}function pt(he,le){if(he){if(typeof he=="string")return it(he,le);var Ne=Object.prototype.toString.call(he).slice(8,-1);if(Ne==="Object"&&he.constructor&&(Ne=he.constructor.name),Ne==="Map"||Ne==="Set")return Array.from(he);if(Ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ne))return it(he,le)}}function Ce(){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 be(he,le){return mt(he)||Lt(he,le)||pt(he,le)||Ce()}function Ze(he){var le=xe.useRef();le.current=he;var Ne=xe.useCallback(function(){for(var Te,gt=arguments.length,At=new Array(gt),Tt=0;Tt<gt;Tt++)At[Tt]=arguments[Tt];return(Te=le.current)===null||Te===void 0?void 0:Te.call.apply(Te,[le].concat(At))},[]);return Ne}function je(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Et=je()?xe.useLayoutEffect:xe.useEffect,ft=function(le,Ne){var Te=xe.useRef(!0);Et(function(){return le(Te.current)},Ne),Et(function(){return Te.current=!1,function(){Te.current=!0}},[])},ut=function(le,Ne){ft(function(Te){if(!Te)return le()},Ne)},Re=null;function Vt(he){var le=xe.useRef(!1),Ne=xe.useState(he),Te=be(Ne,2),gt=Te[0],At=Te[1];xe.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function Tt(zt,Ot){Ot&&le.current||At(zt)}return[gt,Tt]}function wt(he){return he!==void 0}function yn(he,le){var Ne=le||{},Te=Ne.defaultValue,gt=Ne.value,At=Ne.onChange,Tt=Ne.postState,zt=Vt(function(){return wt(gt)?gt:wt(Te)?typeof Te=="function"?Te():Te:typeof he=="function"?he():he}),Ot=be(zt,2),ht=Ot[0],It=Ot[1],xt=gt!==void 0?gt:ht,sn=Tt?Tt(xt):xt,Kt=Ze(At),Un=Vt([xt]),bt=be(Un,2),Pt=bt[0],vn=bt[1];ut(function(){var gn=Pt[0];ht!==gn&&Kt(ht,gn)},[Pt]),ut(function(){wt(gt)||It(gt)},[gt]);var mn=Ze(function(gn,or){It(gn,or),vn([xt],or)});return[sn,mn]}var Ft={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 Ne=le.keyCode;if(le.altKey&&!le.ctrlKey||le.metaKey||Ne>=Ft.F1&&Ne<=Ft.F12)return!1;switch(Ne){case Ft.ALT:case Ft.CAPS_LOCK:case Ft.CONTEXT_MENU:case Ft.CTRL:case Ft.DOWN:case Ft.END:case Ft.ESC:case Ft.HOME:case Ft.INSERT:case Ft.LEFT:case Ft.MAC_FF_META:case Ft.META:case Ft.NUMLOCK:case Ft.NUM_CENTER:case Ft.PAGE_DOWN:case Ft.PAGE_UP:case Ft.PAUSE:case Ft.PRINT_SCREEN:case Ft.RIGHT:case Ft.SHIFT:case Ft.UP:case Ft.WIN_KEY:case Ft.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=Ft.ZERO&&le<=Ft.NINE||le>=Ft.NUM_ZERO&&le<=Ft.NUM_MULTIPLY||le>=Ft.A&&le<=Ft.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case Ft.SPACE:case Ft.QUESTION_MARK:case Ft.NUM_PLUS:case Ft.NUM_MINUS:case Ft.NUM_PERIOD:case Ft.NUM_DIVISION:case Ft.SEMICOLON:case Ft.DASH:case Ft.EQUALS:case Ft.COMMA:case Ft.PERIOD:case Ft.SLASH:case Ft.APOSTROPHE:case Ft.SINGLE_QUOTE:case Ft.OPEN_SQUARE_BRACKET:case Ft.BACKSLASH:case Ft.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ln=Ft,Kn=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],rt=xe.forwardRef(function(he,le){var Ne,Te=he.prefixCls,gt=Te===void 0?"rc-switch":Te,At=he.className,Tt=he.checked,zt=he.defaultChecked,Ot=he.disabled,ht=he.loadingIcon,It=he.checkedChildren,xt=he.unCheckedChildren,sn=he.onClick,Kt=he.onChange,Un=he.onKeyDown,bt=Ve(he,Kn),Pt=yn(!1,{value:Tt,defaultValue:zt}),vn=ot(Pt,2),mn=vn[0],gn=vn[1];function or(jr,vr){var Kr=mn;return Ot||(Kr=jr,gn(Kr),Kt==null||Kt(Kr,vr)),Kr}function er(jr){jr.which===ln.LEFT?or(!1,jr):jr.which===ln.RIGHT&&or(!0,jr),Un==null||Un(jr)}function tr(jr){var vr=or(!mn,jr);sn==null||sn(vr,jr)}var Hr=Fe()(gt,At,(Ne={},we(Ne,"".concat(gt,"-checked"),mn),we(Ne,"".concat(gt,"-disabled"),Ot),Ne));return xe.createElement("button",Xe({},bt,{type:"button",role:"switch","aria-checked":mn,disabled:Ot,className:Hr,ref:le,onKeyDown:er,onClick:tr}),ht,xe.createElement("span",{className:"".concat(gt,"-inner")},xe.createElement("span",{className:"".concat(gt,"-inner-checked")},It),xe.createElement("span",{className:"".concat(gt,"-inner-unchecked")},xt)))});rt.displayName="Switch";var dt=rt,Ae=ne(45353),Bt=ne(53124),Cn=ne(98866),en=ne(98675),Ct=ne(84780),Rt=ne(14747),tn=ne(67968),cr=ne(45503);const Gn=he=>{const{componentCls:le,trackHeightSM:Ne,trackPadding:Te,trackMinWidthSM:gt,innerMinMarginSM:At,innerMaxMarginSM:Tt,handleSizeSM:zt}=he,Ot=`${le}-inner`;return{[le]:{[`&${le}-small`]:{minWidth:gt,height:Ne,lineHeight:`${Ne}px`,[`${le}-inner`]:{paddingInlineStart:Tt,paddingInlineEnd:At,[`${Ot}-checked`]:{marginInlineStart:`calc(-100% + ${zt+Te*2}px - ${Tt*2}px)`,marginInlineEnd:`calc(100% - ${zt+Te*2}px + ${Tt*2}px)`},[`${Ot}-unchecked`]:{marginTop:-Ne,marginInlineStart:0,marginInlineEnd:0}},[`${le}-handle`]:{width:zt,height:zt},[`${le}-loading-icon`]:{top:(zt-he.switchLoadingIconSize)/2,fontSize:he.switchLoadingIconSize},[`&${le}-checked`]:{[`${le}-inner`]:{paddingInlineStart:At,paddingInlineEnd:Tt,[`${Ot}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ot}-unchecked`]:{marginInlineStart:`calc(100% - ${zt+Te*2}px + ${Tt*2}px)`,marginInlineEnd:`calc(-100% + ${zt+Te*2}px - ${Tt*2}px)`}},[`${le}-handle`]:{insetInlineStart:`calc(100% - ${zt+Te}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${Ot}`]:{[`${Ot}-unchecked`]:{marginInlineStart:he.marginXXS/2,marginInlineEnd:-he.marginXXS/2}},[`&${le}-checked ${Ot}`]:{[`${Ot}-checked`]:{marginInlineStart:-he.marginXXS/2,marginInlineEnd:he.marginXXS/2}}}}}}},qt=he=>{const{componentCls:le,handleSize:Ne}=he;return{[le]:{[`${le}-loading-icon${he.iconCls}`]:{position:"relative",top:(Ne-he.fontSize)/2,color:he.switchLoadingIconColor,verticalAlign:"top"},[`&${le}-checked ${le}-loading-icon`]:{color:he.switchColor}}}},Fn=he=>{const{componentCls:le,motion:Ne,trackPadding:Te,handleBg:gt,handleShadow:At,handleSize:Tt}=he,zt=`${le}-handle`;return{[le]:{[zt]:{position:"absolute",top:Te,insetInlineStart:Te,width:Tt,height:Tt,transition:`all ${he.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:gt,borderRadius:Tt/2,boxShadow:At,transition:`all ${he.switchDuration} ease-in-out`,content:'""'}},[`&${le}-checked ${zt}`]:{insetInlineStart:`calc(100% - ${Tt+Te}px)`},[`&:not(${le}-disabled):active`]:Ne?{[`${zt}::before`]:{insetInlineEnd:he.switchHandleActiveInset,insetInlineStart:0},[`&${le}-checked ${zt}::before`]:{insetInlineEnd:0,insetInlineStart:he.switchHandleActiveInset}}:{}}}},lr=he=>{const{componentCls:le,trackHeight:Ne,trackPadding:Te,innerMinMargin:gt,innerMaxMargin:At,handleSize:Tt}=he,zt=`${le}-inner`;return{[le]:{[zt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:At,paddingInlineEnd:gt,transition:`padding-inline-start ${he.switchDuration} ease-in-out, padding-inline-end ${he.switchDuration} ease-in-out`,[`${zt}-checked, ${zt}-unchecked`]:{display:"block",color:he.colorTextLightSolid,fontSize:he.fontSizeSM,transition:`margin-inline-start ${he.switchDuration} ease-in-out, margin-inline-end ${he.switchDuration} ease-in-out`,pointerEvents:"none"},[`${zt}-checked`]:{marginInlineStart:`calc(-100% + ${Tt+Te*2}px - ${At*2}px)`,marginInlineEnd:`calc(100% - ${Tt+Te*2}px + ${At*2}px)`},[`${zt}-unchecked`]:{marginTop:-Ne,marginInlineStart:0,marginInlineEnd:0}},[`&${le}-checked ${zt}`]:{paddingInlineStart:gt,paddingInlineEnd:At,[`${zt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${zt}-unchecked`]:{marginInlineStart:`calc(100% - ${Tt+Te*2}px + ${At*2}px)`,marginInlineEnd:`calc(-100% + ${Tt+Te*2}px - ${At*2}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${zt}`]:{[`${zt}-unchecked`]:{marginInlineStart:Te*2,marginInlineEnd:-Te*2}},[`&${le}-checked ${zt}`]:{[`${zt}-checked`]:{marginInlineStart:-Te*2,marginInlineEnd:Te*2}}}}}},nn=he=>{const{componentCls:le,trackHeight:Ne,trackMinWidth:Te}=he;return{[le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Rt.Wf)(he)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Te,height:Ne,lineHeight:`${Ne}px`,verticalAlign:"middle",background:he.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${he.motionDurationMid}`,userSelect:"none",[`&:hover:not(${le}-disabled)`]:{background:he.colorTextTertiary}}),(0,Rt.Qy)(he)),{[`&${le}-checked`]:{background:he.switchColor,[`&:hover:not(${le}-disabled)`]:{background:he.colorPrimaryHover}},[`&${le}-loading, &${le}-disabled`]:{cursor:"not-allowed",opacity:he.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${le}-rtl`]:{direction:"rtl"}})}};var ze=(0,tn.Z)("Switch",he=>{const le=(0,cr.TS)(he,{switchDuration:he.motionDurationMid,switchColor:he.colorPrimary,switchDisabledOpacity:he.opacityLoading,switchLoadingIconSize:he.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${he.opacityLoading})`,switchHandleActiveInset:"-30%"});return[nn(le),lr(le),Fn(le),qt(le),Gn(le)]},he=>{const{fontSize:le,lineHeight:Ne,controlHeight:Te,colorWhite:gt}=he,At=le*Ne,Tt=Te/2,zt=2,Ot=At-zt*2,ht=Tt-zt*2;return{trackHeight:At,trackHeightSM:Tt,trackMinWidth:Ot*2+zt*4,trackMinWidthSM:ht*2+zt*2,trackPadding:zt,handleBg:gt,handleSize:Ot,handleSizeSM:ht,handleShadow:`0 2px 4px 0 ${new Ct.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Ot/2,innerMaxMargin:Ot+zt+zt*2,innerMinMarginSM:ht/2,innerMaxMarginSM:ht+zt+zt*2}}),ue=function(he,le){var Ne={};for(var Te in he)Object.prototype.hasOwnProperty.call(he,Te)&&le.indexOf(Te)<0&&(Ne[Te]=he[Te]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Te=Object.getOwnPropertySymbols(he);gt<Te.length;gt++)le.indexOf(Te[gt])<0&&Object.prototype.propertyIsEnumerable.call(he,Te[gt])&&(Ne[Te[gt]]=he[Te[gt]]);return Ne};const fe=xe.forwardRef((he,le)=>{const{prefixCls:Ne,size:Te,disabled:gt,loading:At,className:Tt,rootClassName:zt,style:Ot}=he,ht=ue(he,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:It,direction:xt,switch:sn}=xe.useContext(Bt.E_),Kt=xe.useContext(Cn.Z),Un=(gt!=null?gt:Kt)||At,bt=It("switch",Ne),Pt=xe.createElement("div",{className:`${bt}-handle`},At&&xe.createElement(oe.Z,{className:`${bt}-loading-icon`})),[vn,mn]=ze(bt),gn=(0,en.Z)(Te),or=Fe()(sn==null?void 0:sn.className,{[`${bt}-small`]:gn==="small",[`${bt}-loading`]:At,[`${bt}-rtl`]:xt==="rtl"},Tt,zt,mn),er=Object.assign(Object.assign({},sn==null?void 0:sn.style),Ot);return vn(xe.createElement(Ae.Z,{component:"Switch"},xe.createElement(dt,Object.assign({},ht,{prefixCls:bt,className:or,style:er,disabled:Un,ref:le,loadingIcon:Pt}))))});fe.__ANT_SWITCH=!0;var ve=fe},9430:function(An,Jt,ne){"use strict";ne.d(Jt,{default:function(){return Fc}});var oe={},de="rc-table-internal-hook",Fe=ne(97685),Xe=ne(66680),Se=ne(8410),Me=ne(91881),ce=ne(67294),we=ne(73935);function ge(De){var Ie=ce.createContext(void 0),qe=function(Ht){var Yt=Ht.value,Ln=Ht.children,jn=ce.useRef(Yt);jn.current=Yt;var Hn=ce.useState(function(){return{getValue:function(){return jn.current},listeners:new Set}}),dr=(0,Fe.Z)(Hn,1),Fr=dr[0];return(0,Se.Z)(function(){(0,we.unstable_batchedUpdates)(function(){Fr.listeners.forEach(function(Sn){Sn(Yt)})})},[Yt]),ce.createElement(Ie.Provider,{value:Fr},Ln)};return{Context:Ie,Provider:qe,defaultValue:De}}function Be(De,Ie){var qe=(0,Xe.Z)(typeof Ie=="function"?Ie:function(Sn){if(Ie===void 0)return Sn;if(!Array.isArray(Ie))return Sn[Ie];var Vr={};return Ie.forEach(function(Yr){Vr[Yr]=Sn[Yr]}),Vr}),yt=ce.useContext(De==null?void 0:De.Context),Ht=yt||{},Yt=Ht.listeners,Ln=Ht.getValue,jn=ce.useRef();jn.current=qe(yt?Ln():De==null?void 0:De.defaultValue);var Hn=ce.useState({}),dr=(0,Fe.Z)(Hn,2),Fr=dr[1];return(0,Se.Z)(function(){if(!yt)return;function Sn(Vr){var Yr=qe(Vr);(0,Me.Z)(jn.current,Yr,!0)||Fr({})}return Yt.add(Sn),function(){Yt.delete(Sn)}},[yt]),jn.current}var Qe=ne(87462),Oe=ne(42550);function et(){var De=ce.createContext(null);function Ie(){return ce.useContext(De)}function qe(Ht,Yt){var Ln=(0,Oe.Yr)(Ht),jn=function(dr,Fr){var Sn=Ln?{ref:Fr}:{},Vr=ce.useRef(0),Yr=ce.useRef(dr),$r=Ie();return $r!==null?ce.createElement(Ht,(0,Qe.Z)({},dr,Sn)):((!Yt||Yt(Yr.current,dr))&&(Vr.current+=1),Yr.current=dr,ce.createElement(De.Provider,{value:Vr.current},ce.createElement(Ht,(0,Qe.Z)({},dr,Sn))))};return Ln?ce.forwardRef(jn):jn}function yt(Ht,Yt){var Ln=(0,Oe.Yr)(Ht),jn=function(dr,Fr){var Sn=Ln?{ref:Fr}:{};return Ie(),ce.createElement(Ht,(0,Qe.Z)({},dr,Sn))};return Ln?ce.memo(ce.forwardRef(jn),Yt):ce.memo(jn,Yt)}return{makeImmutable:qe,responseImmutable:yt,useImmutableMark:Ie}}var ot=et(),nt=ot.makeImmutable,Ve=ot.responseImmutable,xe=ot.useImmutableMark,mt=et(),Lt=mt.makeImmutable,it=mt.responseImmutable,pt=mt.useImmutableMark,Ce=ge(),be=Ce;function Ze(De,Ie){var qe=ce.useRef(0);qe.current+=1;var yt=ce.useRef(De),Ht=[];Object.keys(De||{}).map(function(Ln){var jn;(De==null?void 0:De[Ln])!==((jn=yt.current)===null||jn===void 0?void 0:jn[Ln])&&Ht.push(Ln)}),yt.current=De;var Yt=ce.useRef([]);return Ht.length&&(Yt.current=Ht),ce.useDebugValue(qe.current),ce.useDebugValue(Yt.current.join(", ")),Ie&&console.log("".concat(Ie,":"),qe.current,Yt.current),qe.current}var je=null,Et=ce.memo(function(){var De=Ze();return ce.createElement("h1",null,"Render Times: ",De)});Et.displayName="RenderBlock";var ft=ne(71002),ut=ne(1413),Re=ne(4942),Vt=ne(94184),wt=ne.n(Vt);function yn(De,Ie,qe){var yt=ce.useRef({});return(!("value"in yt.current)||qe(yt.current.condition,Ie))&&(yt.current.value=De(),yt.current.condition=Ie),yt.current.value}var Ft={},ln=[],Kn=function(Ie){ln.push(Ie)};function rt(De,Ie){if(0)var qe}function dt(De,Ie){if(0)var qe}function Ae(){Ft={}}function Bt(De,Ie,qe){!Ie&&!Ft[qe]&&(De(!1,qe),Ft[qe]=!0)}function Cn(De,Ie){Bt(rt,De,Ie)}function en(De,Ie){Bt(dt,De,Ie)}Cn.preMessage=Kn,Cn.resetWarned=Ae,Cn.noteOnce=en;var Ct=Cn;function Rt(De,Ie){var qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,yt=new Set;function Ht(Yt,Ln){var jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Hn=yt.has(Yt);if(Ct(!Hn,"Warning: There may be circular references"),Hn)return!1;if(Yt===Ln)return!0;if(qe&&jn>1)return!1;yt.add(Yt);var dr=jn+1;if(Array.isArray(Yt)){if(!Array.isArray(Ln)||Yt.length!==Ln.length)return!1;for(var Fr=0;Fr<Yt.length;Fr++)if(!Ht(Yt[Fr],Ln[Fr],dr))return!1;return!0}if(Yt&&Ln&&(0,ft.Z)(Yt)==="object"&&(0,ft.Z)(Ln)==="object"){var Sn=Object.keys(Yt);return Sn.length!==Object.keys(Ln).length?!1:Sn.every(function(Vr){return Ht(Yt[Vr],Ln[Vr],dr)})}return!1}return Ht(De,Ie)}var tn=Rt;function cr(De,Ie){for(var qe=De,yt=0;yt<Ie.length;yt+=1){if(qe==null)return;qe=qe[Ie[yt]]}return qe}var Gn=ce.createContext({renderWithProps:!1}),qt=Gn,Fn="RC_TABLE_KEY";function lr(De){return De==null?[]:Array.isArray(De)?De:[De]}function nn(De){var Ie=[],qe={};return De.forEach(function(yt){for(var Ht=yt||{},Yt=Ht.key,Ln=Ht.dataIndex,jn=Yt||lr(Ln).join("-")||Fn;qe[jn];)jn="".concat(jn,"_next");qe[jn]=!0,Ie.push(jn)}),Ie}function ze(De){return De!=null}function ue(De){return De&&(0,ft.Z)(De)==="object"&&!Array.isArray(De)&&!ce.isValidElement(De)}function fe(De,Ie,qe,yt,Ht,Yt){var Ln=ce.useContext(qt),jn=pt(),Hn=yn(function(){if(ze(yt))return[yt];var dr=Ie==null||Ie===""?[]:Array.isArray(Ie)?Ie:[Ie],Fr=cr(De,dr),Sn=Fr,Vr=void 0;if(Ht){var Yr=Ht(Fr,De,qe);ue(Yr)?(Sn=Yr.children,Vr=Yr.props,Ln.renderWithProps=!0):Sn=Yr}return[Sn,Vr]},[jn,De,yt,Ie,Ht,qe],function(dr,Fr){if(Yt){var Sn=(0,Fe.Z)(dr,2),Vr=Sn[1],Yr=(0,Fe.Z)(Fr,2),$r=Yr[1];return Yt($r,Vr)}return Ln.renderWithProps?!0:!tn(dr,Fr,!0)});return Hn}function ve(De,Ie,qe,yt){var Ht=De+Ie-1;return De<=yt&&Ht>=qe}function he(De,Ie){return Be(be,function(qe){var yt=ve(De,Ie||1,qe.hoverStartRow,qe.hoverEndRow);return[yt,qe.onHover]})}var le=function(Ie){var qe=Ie.ellipsis,yt=Ie.rowType,Ht=Ie.children,Yt,Ln=qe===!0?{showTitle:!0}:qe;return Ln&&(Ln.showTitle||yt==="header")&&(typeof Ht=="string"||typeof Ht=="number"?Yt=Ht.toString():ce.isValidElement(Ht)&&typeof Ht.props.children=="string"&&(Yt=Ht.props.children)),Yt};function Ne(De){var Ie,qe,yt,Ht,Yt,Ln,jn,Hn,dr=De.component,Fr=De.children,Sn=De.ellipsis,Vr=De.scope,Yr=De.prefixCls,$r=De.className,ui=De.align,ei=De.record,xi=De.render,gi=De.dataIndex,Bi=De.renderIndex,na=De.shouldCellUpdate,ji=De.index,ea=De.rowType,Ca=De.colSpan,Ua=De.rowSpan,Ki=De.fixLeft,Ui=De.fixRight,Hi=De.firstFixLeft,Ci=De.lastFixLeft,Qi=De.firstFixRight,wa=De.lastFixRight,qa=De.appendNode,_a=De.additionalProps,Ea=_a===void 0?{}:_a,ao=De.isSticky,eo="".concat(Yr,"-cell"),Ho=Be(be,["supportSticky","allColumnsFixedLeft"]),so=Ho.supportSticky,es=Ho.allColumnsFixedLeft,ts=fe(ei,gi,Bi,Fr,xi,na),Va=(0,Fe.Z)(ts,2),Ds=Va[0],Fo=Va[1],Zo={},Oo=typeof Ki=="number"&&so,Ha=typeof Ui=="number"&&so;Oo&&(Zo.position="sticky",Zo.left=Ki),Ha&&(Zo.position="sticky",Zo.right=Ui);var Ii=(Ie=(qe=(yt=Fo==null?void 0:Fo.colSpan)!==null&&yt!==void 0?yt:Ea.colSpan)!==null&&qe!==void 0?qe:Ca)!==null&&Ie!==void 0?Ie:1,da=(Ht=(Yt=(Ln=Fo==null?void 0:Fo.rowSpan)!==null&&Ln!==void 0?Ln:Ea.rowSpan)!==null&&Yt!==void 0?Yt:Ua)!==null&&Ht!==void 0?Ht:1,Ma=he(ji,da),Vi=(0,Fe.Z)(Ma,2),To=Vi[0],Fi=Vi[1],Za=function(ws){var fl;ei&&Fi(ji,ji+da-1),Ea==null||(fl=Ea.onMouseEnter)===null||fl===void 0||fl.call(Ea,ws)},Bo=function(ws){var fl;ei&&Fi(-1,-1),Ea==null||(fl=Ea.onMouseLeave)===null||fl===void 0||fl.call(Ea,ws)};if(Ii===0||da===0)return null;var Co=(jn=Ea.title)!==null&&jn!==void 0?jn:le({rowType:ea,ellipsis:Sn,children:Ds}),ol=wt()(eo,$r,(Hn={},(0,Re.Z)(Hn,"".concat(eo,"-fix-left"),Oo&&so),(0,Re.Z)(Hn,"".concat(eo,"-fix-left-first"),Hi&&so),(0,Re.Z)(Hn,"".concat(eo,"-fix-left-last"),Ci&&so),(0,Re.Z)(Hn,"".concat(eo,"-fix-left-all"),Ci&&es&&so),(0,Re.Z)(Hn,"".concat(eo,"-fix-right"),Ha&&so),(0,Re.Z)(Hn,"".concat(eo,"-fix-right-first"),Qi&&so),(0,Re.Z)(Hn,"".concat(eo,"-fix-right-last"),wa&&so),(0,Re.Z)(Hn,"".concat(eo,"-ellipsis"),Sn),(0,Re.Z)(Hn,"".concat(eo,"-with-append"),qa),(0,Re.Z)(Hn,"".concat(eo,"-fix-sticky"),(Oo||Ha)&&ao&&so),(0,Re.Z)(Hn,"".concat(eo,"-row-hover"),!Fo&&To),Hn),Ea.className,Fo==null?void 0:Fo.className),Bs={};ui&&(Bs.textAlign=ui);var El=(0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)({},Zo),Ea.style),Bs),Fo==null?void 0:Fo.style),ni=Ds;return(0,ft.Z)(ni)==="object"&&!Array.isArray(ni)&&!ce.isValidElement(ni)&&(ni=null),Sn&&(Ci||Qi)&&(ni=ce.createElement("span",{className:"".concat(eo,"-content")},ni)),ce.createElement(dr,(0,Qe.Z)({},Fo,Ea,{className:ol,style:El,title:Co,scope:Vr,onMouseEnter:Za,onMouseLeave:Bo,colSpan:Ii!==1?Ii:null,rowSpan:da!==1?da:null}),qa,ni)}var Te=ce.memo(Ne);function gt(De,Ie,qe,yt,Ht,Yt){var Ln=qe[De]||{},jn=qe[Ie]||{},Hn,dr;Ln.fixed==="left"?Hn=yt.left[Ht==="rtl"?Ie:De]:jn.fixed==="right"&&(dr=yt.right[Ht==="rtl"?De:Ie]);var Fr=!1,Sn=!1,Vr=!1,Yr=!1,$r=qe[Ie+1],ui=qe[De-1],ei=!(Yt!=null&&Yt.children);if(Ht==="rtl"){if(Hn!==void 0){var xi=ui&&ui.fixed==="left";Yr=!xi&&ei}else if(dr!==void 0){var gi=$r&&$r.fixed==="right";Vr=!gi&&ei}}else if(Hn!==void 0){var Bi=$r&&$r.fixed==="left";Fr=!Bi&&ei}else if(dr!==void 0){var na=ui&&ui.fixed==="right";Sn=!na&&ei}return{fixLeft:Hn,fixRight:dr,lastFixLeft:Fr,firstFixRight:Sn,lastFixRight:Vr,firstFixLeft:Yr,isSticky:yt.isSticky}}var At=ce.createContext({}),Tt=At;function zt(De){var Ie=De.className,qe=De.index,yt=De.children,Ht=De.colSpan,Yt=Ht===void 0?1:Ht,Ln=De.rowSpan,jn=De.align,Hn=Be(be,["prefixCls","direction"]),dr=Hn.prefixCls,Fr=Hn.direction,Sn=ce.useContext(Tt),Vr=Sn.scrollColumnIndex,Yr=Sn.stickyOffsets,$r=Sn.flattenColumns,ui=Sn.columns,ei=qe+Yt-1,xi=ei+1===Vr?Yt+1:Yt,gi=gt(qe,qe+xi-1,$r,Yr,Fr,ui==null?void 0:ui[qe]);return ce.createElement(Te,(0,Qe.Z)({className:Ie,index:qe,component:"td",prefixCls:dr,record:null,dataIndex:null,align:jn,colSpan:xi,rowSpan:Ln,render:function(){return yt}},gi))}var Ot=ne(45987),ht=["children"];function It(De){var Ie=De.children,qe=(0,Ot.Z)(De,ht);return ce.createElement("tr",qe,Ie)}function xt(De){var Ie=De.children;return Ie}xt.Row=It,xt.Cell=zt;var sn=xt;function Kt(De){var Ie=De.children,qe=De.stickyOffsets,yt=De.flattenColumns,Ht=De.columns,Yt=Be(be,"prefixCls"),Ln=yt.length-1,jn=yt[Ln],Hn=ce.useMemo(function(){return{stickyOffsets:qe,flattenColumns:yt,scrollColumnIndex:jn!=null&&jn.scrollbar?Ln:null,columns:Ht}},[jn,yt,Ln,qe,Ht]);return ce.createElement(Tt.Provider,{value:Hn},ce.createElement("tfoot",{className:"".concat(Yt,"-summary")},Ie))}var Un=it(Kt),bt=sn;function Pt(De){var Ie=ce.useRef();Ie.current=De;var qe=ce.useCallback(function(){for(var yt,Ht=arguments.length,Yt=new Array(Ht),Ln=0;Ln<Ht;Ln++)Yt[Ln]=arguments[Ln];return(yt=Ie.current)===null||yt===void 0?void 0:yt.call.apply(yt,[Ie].concat(Yt))},[]);return qe}function vn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var mn=vn()?ce.useLayoutEffect:ce.useEffect,gn=function(Ie,qe){var yt=React.useRef(!0);mn(function(){return Ie(yt.current)},qe),mn(function(){return yt.current=!1,function(){yt.current=!0}},[])},or=function(Ie,qe){gn(function(yt){if(!yt)return Ie()},qe)},er=null;function tr(De){var Ie=React.useRef(!1),qe=React.useState(De),yt=_slicedToArray(qe,2),Ht=yt[0],Yt=yt[1];React.useEffect(function(){return Ie.current=!1,function(){Ie.current=!0}},[]);function Ln(jn,Hn){Hn&&Ie.current||Yt(jn)}return[Ht,Ln]}function Hr(De){return De!==void 0}function jr(De,Ie){var qe=Ie||{},yt=qe.defaultValue,Ht=qe.value,Yt=qe.onChange,Ln=qe.postState,jn=useState(function(){return Hr(Ht)?Ht:Hr(yt)?typeof yt=="function"?yt():yt:typeof De=="function"?De():De}),Hn=_slicedToArray(jn,2),dr=Hn[0],Fr=Hn[1],Sn=Ht!==void 0?Ht:dr,Vr=Ln?Ln(Sn):Sn,Yr=useEvent(Yt),$r=useState([Sn]),ui=_slicedToArray($r,2),ei=ui[0],xi=ui[1];useLayoutUpdateEffect(function(){var Bi=ei[0];dr!==Bi&&Yr(dr,Bi)},[ei]),useLayoutUpdateEffect(function(){Hr(Ht)||Fr(Ht)},[Ht]);var gi=useEvent(function(Bi,na){Fr(Bi,na),xi([Sn],na)});return[Vr,gi]}var vr=ne(35110);function Kr(De,Ie){typeof De=="function"?De(Ie):(0,ft.Z)(De)==="object"&&De&&"current"in De&&(De.current=Ie)}function yr(){for(var De=arguments.length,Ie=new Array(De),qe=0;qe<De;qe++)Ie[qe]=arguments[qe];var yt=Ie.filter(function(Ht){return Ht});return yt.length<=1?yt[0]:function(Ht){Ie.forEach(function(Yt){Kr(Yt,Ht)})}}function br(){for(var De=arguments.length,Ie=new Array(De),qe=0;qe<De;qe++)Ie[qe]=arguments[qe];return useMemo(function(){return yr.apply(void 0,Ie)},Ie,function(yt,Ht){return yt.length!==Ht.length||yt.every(function(Yt,Ln){return Yt!==Ht[Ln]})})}function Cr(De){var Ie,qe,yt=isMemo(De)?De.type.type:De.type;return!(typeof yt=="function"&&!((Ie=yt.prototype)!==null&&Ie!==void 0&&Ie.render)||typeof De=="function"&&!((qe=De.prototype)!==null&&qe!==void 0&&qe.render))}function zr(De){return!isValidElement(De)||isFragment(De)?!1:Cr(De)}function Wt(De,Ie,qe,yt){if(!Ie.length)return qe;var Ht=_toArray(Ie),Yt=Ht[0],Ln=Ht.slice(1),jn;return!De&&typeof Yt=="number"?jn=[]:Array.isArray(De)?jn=_toConsumableArray(De):jn=_objectSpread({},De),yt&&qe===void 0&&Ln.length===1?delete jn[Yt][Ln[0]]:jn[Yt]=Wt(jn[Yt],Ln,qe,yt),jn}function On(De,Ie,qe){var yt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ie.length&&yt&&qe===void 0&&!get(De,Ie.slice(0,-1))?De:Wt(De,Ie,qe,yt)}function qn(De){return _typeof(De)==="object"&&De!==null&&Object.getPrototypeOf(De)===Object.prototype}function zn(De){return Array.isArray(De)?[]:{}}var Jn=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function pr(){for(var De=arguments.length,Ie=new Array(De),qe=0;qe<De;qe++)Ie[qe]=arguments[qe];var yt=zn(Ie[0]);return Ie.forEach(function(Ht){function Yt(Ln,jn){var Hn=new Set(jn),dr=get(Ht,Ln),Fr=Array.isArray(dr);if(Fr||qn(dr)){if(!Hn.has(dr)){Hn.add(dr);var Sn=get(yt,Ln);Fr?yt=On(yt,Ln,[]):(!Sn||_typeof(Sn)!=="object")&&(yt=On(yt,Ln,zn(dr))),Jn(dr).forEach(function(Vr){Yt([].concat(_toConsumableArray(Ln),[Vr]),Hn)})}}else yt=On(yt,Ln,dr)}Yt([])}),yt}var wr=ne(48555),nr=function(De){if(!De)return!1;if(De instanceof Element){if(De.offsetParent)return!0;if(De.getBBox){var Ie=De.getBBox(),qe=Ie.width,yt=Ie.height;if(qe||yt)return!0}if(De.getBoundingClientRect){var Ht=De.getBoundingClientRect(),Yt=Ht.width,Ln=Ht.height;if(Yt||Ln)return!0}}return!1},St=function(Ie){if(vn()&&window.document.documentElement){var qe=Array.isArray(Ie)?Ie:[Ie],yt=window.document.documentElement;return qe.some(function(Ht){return Ht in yt.style})}return!1},Zt=function(Ie,qe){if(!St(Ie))return!1;var yt=document.createElement("div"),Ht=yt.style[Ie];return yt.style[Ie]=qe,yt.style[Ie]!==Ht};function jt(De,Ie){return!Array.isArray(De)&&Ie!==void 0?Zt(De,Ie):St(De)}var kn;function lt(De){if(typeof document=="undefined")return 0;if(De||kn===void 0){var Ie=document.createElement("div");Ie.style.width="100%",Ie.style.height="200px";var qe=document.createElement("div"),yt=qe.style;yt.position="absolute",yt.top="0",yt.left="0",yt.pointerEvents="none",yt.visibility="hidden",yt.width="200px",yt.height="150px",yt.overflow="hidden",qe.appendChild(Ie),document.body.appendChild(qe);var Ht=Ie.offsetWidth;qe.style.overflow="scroll";var Yt=Ie.offsetWidth;Ht===Yt&&(Yt=qe.clientWidth),document.body.removeChild(qe),kn=Ht-Yt}return kn}function Ut(De){var Ie=De.match(/^(.*)px$/),qe=Number(Ie==null?void 0:Ie[1]);return Number.isNaN(qe)?lt():qe}function ke(De){if(typeof document=="undefined"||!De||!(De instanceof Element))return{width:0,height:0};var Ie=getComputedStyle(De,"::-webkit-scrollbar"),qe=Ie.width,yt=Ie.height;return{width:Ut(qe),height:Ut(yt)}}var an=`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`,kt=`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`,Tn="".concat(an," ").concat(kt).split(/[\s\n]+/),rr="aria-",Gr="data-";function Nr(De,Ie){return De.indexOf(Ie)===0}function Lr(De){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,qe;Ie===!1?qe={aria:!0,data:!0,attr:!0}:Ie===!0?qe={aria:!0}:qe=(0,ut.Z)({},Ie);var yt={};return Object.keys(De).forEach(function(Ht){(qe.aria&&(Ht==="role"||Nr(Ht,rr))||qe.data&&Nr(Ht,Gr)||qe.attr&&Tn.includes(Ht))&&(yt[Ht]=De[Ht])}),yt}function Ur(De,Ie,qe,yt,Ht,Yt,Ln){De.push({record:Ie,indent:qe,index:Ln});var jn=Yt(Ie),Hn=Ht==null?void 0:Ht.has(jn);if(Ie&&Array.isArray(Ie[yt])&&Hn)for(var dr=0;dr<Ie[yt].length;dr+=1)Ur(De,Ie[yt][dr],qe+1,yt,Ht,Yt,dr)}function Sr(De,Ie,qe,yt){var Ht=ce.useMemo(function(){if(qe!=null&&qe.size){for(var Yt=[],Ln=0;Ln<(De==null?void 0:De.length);Ln+=1){var jn=De[Ln];Ur(Yt,jn,0,Ie,qe,yt,Ln)}return Yt}return De==null?void 0:De.map(function(Hn,dr){return{record:Hn,indent:0,index:dr}})},[De,Ie,qe,yt]);return Ht}function ai(De){var Ie=De.prefixCls,qe=De.children,yt=De.component,Ht=De.cellComponent,Yt=De.className,Ln=De.expanded,jn=De.colSpan,Hn=De.isEmpty,dr=Be(be,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Fr=dr.scrollbarSize,Sn=dr.fixHeader,Vr=dr.fixColumn,Yr=dr.componentWidth,$r=dr.horizonScroll,ui=qe;return(Hn?$r&&Yr:Vr)&&(ui=ce.createElement("div",{style:{width:Yr-(Sn?Fr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ie,"-expanded-row-fixed")},ui)),ce.createElement(yt,{className:Yt,style:{display:Ln?null:"none"}},ce.createElement(Te,{component:Ht,prefixCls:Ie,colSpan:jn},ui))}var ir=ai;function Rr(De,Ie,qe,yt){var Ht=Be(be,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Yt=Ht.flattenColumns,Ln=Ht.expandableType,jn=Ht.expandedKeys,Hn=Ht.childrenColumnName,dr=Ht.onTriggerExpand,Fr=Ht.rowExpandable,Sn=Ht.onRow,Vr=Ht.expandRowByClick,Yr=Ht.rowClassName,$r=Ln==="nest",ui=Ln==="row"&&(!Fr||Fr(De)),ei=ui||$r,xi=jn&&jn.has(Ie),gi=Hn&&De&&De[Hn],Bi=Pt(dr),na=Sn==null?void 0:Sn(De,qe),ji=na==null?void 0:na.onClick,ea=function(Ui){Vr&&ei&&dr(De,Ui);for(var Hi=arguments.length,Ci=new Array(Hi>1?Hi-1:0),Qi=1;Qi<Hi;Qi++)Ci[Qi-1]=arguments[Qi];ji==null||ji.apply(void 0,[Ui].concat(Ci))},Ca;typeof Yr=="string"?Ca=Yr:typeof Yr=="function"&&(Ca=Yr(De,qe,yt));var Ua=nn(Yt);return(0,ut.Z)((0,ut.Z)({},Ht),{},{columnsKey:Ua,nestExpandable:$r,expanded:xi,hasNestChildren:gi,record:De,onTriggerExpand:Bi,rowSupportExpand:ui,expandable:ei,rowProps:(0,ut.Z)((0,ut.Z)({},na),{},{className:wt()(Ca,na==null?void 0:na.className),onClick:ea})})}function Di(De,Ie,qe,yt,Ht){var Yt=De.record,Ln=De.prefixCls,jn=De.columnsKey,Hn=De.fixedInfoList,dr=De.expandIconColumnIndex,Fr=De.nestExpandable,Sn=De.indentSize,Vr=De.expandIcon,Yr=De.expanded,$r=De.hasNestChildren,ui=De.onTriggerExpand,ei=jn[qe],xi=Hn[qe],gi;qe===(dr||0)&&Fr&&(gi=ce.createElement(ce.Fragment,null,ce.createElement("span",{style:{paddingLeft:"".concat(Sn*yt,"px")},className:"".concat(Ln,"-row-indent indent-level-").concat(yt)}),Vr({prefixCls:Ln,expanded:Yr,expandable:$r,record:Yt,onExpand:ui})));var Bi;return Ie.onCell&&(Bi=Ie.onCell(Yt,Ht)),{key:ei,fixedInfo:xi,appendCellNode:gi,additionalCellProps:Bi||{}}}function Gi(De){var Ie=De.className,qe=De.style,yt=De.record,Ht=De.index,Yt=De.renderIndex,Ln=De.rowKey,jn=De.indent,Hn=jn===void 0?0:jn,dr=De.rowComponent,Fr=De.cellComponent,Sn=De.scopeCellComponent,Vr=Rr(yt,Ln,Ht,Hn),Yr=Vr.prefixCls,$r=Vr.flattenColumns,ui=Vr.expandedRowClassName,ei=Vr.expandedRowRender,xi=Vr.rowProps,gi=Vr.expanded,Bi=Vr.rowSupportExpand,na=ce.useState(!1),ji=(0,Fe.Z)(na,2),ea=ji[0],Ca=ji[1];ce.useEffect(function(){gi&&Ca(!0)},[gi]);var Ua=ce.createElement(dr,(0,Qe.Z)({},xi,{"data-row-key":Ln,className:wt()(Ie,"".concat(Yr,"-row"),"".concat(Yr,"-row-level-").concat(Hn),xi==null?void 0:xi.className),style:(0,ut.Z)((0,ut.Z)({},qe),xi==null?void 0:xi.style)}),$r.map(function(Ci,Qi){var wa=Ci.render,qa=Ci.dataIndex,_a=Ci.className,Ea=Di(Vr,Ci,Qi,Hn,Ht),ao=Ea.key,eo=Ea.fixedInfo,Ho=Ea.appendCellNode,so=Ea.additionalCellProps;return ce.createElement(Te,(0,Qe.Z)({className:_a,ellipsis:Ci.ellipsis,align:Ci.align,scope:Ci.rowScope,component:Ci.rowScope?Sn:Fr,prefixCls:Yr,key:ao,record:yt,index:Ht,renderIndex:Yt,dataIndex:qa,render:wa,shouldCellUpdate:Ci.shouldCellUpdate},eo,{appendNode:Ho,additionalProps:so}))})),Ki;if(Bi&&(ea||gi)){var Ui=ei(yt,Ht,Hn+1,gi),Hi=ui&&ui(yt,Ht,Hn);Ki=ce.createElement(ir,{expanded:gi,className:wt()("".concat(Yr,"-expanded-row"),"".concat(Yr,"-expanded-row-level-").concat(Hn+1),Hi),prefixCls:Yr,component:dr,cellComponent:Fr,colSpan:$r.length,isEmpty:!1},Ui)}return ce.createElement(ce.Fragment,null,Ua,Ki)}Gi.displayName="BodyRow";var qr=it(Gi);function di(De){var Ie=De.columnKey,qe=De.onColumnResize,yt=ce.useRef();return ce.useEffect(function(){yt.current&&qe(Ie,yt.current.offsetWidth)},[]),ce.createElement(wr.Z,{data:Ie},ce.createElement("td",{ref:yt,style:{padding:0,border:0,height:0}},ce.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Yi(De){var Ie=De.prefixCls,qe=De.columnsKey,yt=De.onColumnResize;return ce.createElement("tr",{"aria-hidden":"true",className:"".concat(Ie,"-measure-row"),style:{height:0,fontSize:0}},ce.createElement(wr.Z.Collection,{onBatchResize:function(Yt){Yt.forEach(function(Ln){var jn=Ln.data,Hn=Ln.size;yt(jn,Hn.offsetWidth)})}},qe.map(function(Ht){return ce.createElement(di,{key:Ht,columnKey:Ht,onColumnResize:yt})})))}function Xr(De){var Ie=De.data,qe=De.measureColumnWidth,yt=Be(be,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Ht=yt.prefixCls,Yt=yt.getComponent,Ln=yt.onColumnResize,jn=yt.flattenColumns,Hn=yt.getRowKey,dr=yt.expandedKeys,Fr=yt.childrenColumnName,Sn=yt.emptyNode,Vr=Sr(Ie,Fr,dr,Hn),Yr=ce.useRef({renderWithProps:!1}),$r=Yt(["body","wrapper"],"tbody"),ui=Yt(["body","row"],"tr"),ei=Yt(["body","cell"],"td"),xi=Yt(["body","cell"],"th"),gi;Ie.length?gi=Vr.map(function(na,ji){var ea=na.record,Ca=na.indent,Ua=na.index,Ki=Hn(ea,ji);return ce.createElement(qr,{key:Ki,rowKey:Ki,record:ea,index:ji,renderIndex:Ua,rowComponent:ui,cellComponent:ei,scopeCellComponent:xi,getRowKey:Hn,indent:Ca})}):gi=ce.createElement(ir,{expanded:!0,className:"".concat(Ht,"-placeholder"),prefixCls:Ht,component:ui,cellComponent:ei,colSpan:jn.length,isEmpty:!0},Sn);var Bi=nn(jn);return ce.createElement(qt.Provider,{value:Yr.current},ce.createElement($r,{className:"".concat(Ht,"-tbody")},qe&&ce.createElement(Yi,{prefixCls:Ht,columnsKey:Bi,onColumnResize:Ln}),gi))}Xr.displayName="Body";var Pi=it(Xr),Mr=["expandable"],ua="RC_TABLE_INTERNAL_COL_DEFINE";function ta(De){var Ie=De.expandable,qe=(0,Ot.Z)(De,Mr),yt;return"expandable"in De?yt=(0,ut.Z)((0,ut.Z)({},qe),Ie):yt=qe,yt.showExpandColumn===!1&&(yt.expandIconColumnIndex=-1),yt}var Ra=["columnType"];function ca(De){for(var Ie=De.colWidths,qe=De.columns,yt=De.columCount,Ht=[],Yt=yt||qe.length,Ln=!1,jn=Yt-1;jn>=0;jn-=1){var Hn=Ie[jn],dr=qe&&qe[jn],Fr=dr&&dr[ua];if(Hn||Fr||Ln){var Sn=Fr||{},Vr=Sn.columnType,Yr=(0,Ot.Z)(Sn,Ra);Ht.unshift(ce.createElement("col",(0,Qe.Z)({key:jn,style:{width:Hn}},Yr))),Ln=!0}}return ce.createElement("colgroup",null,Ht)}var Xi=ca,Oi=ne(74902),la=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ji(De,Ie){return(0,ce.useMemo)(function(){for(var qe=[],yt=0;yt<Ie;yt+=1){var Ht=De[yt];if(Ht!==void 0)qe[yt]=Ht;else return null}return qe},[De.join("_"),Ie])}var Sa=ce.forwardRef(function(De,Ie){var qe=De.className,yt=De.noData,Ht=De.columns,Yt=De.flattenColumns,Ln=De.colWidths,jn=De.columCount,Hn=De.stickyOffsets,dr=De.direction,Fr=De.fixHeader,Sn=De.stickyTopOffset,Vr=De.stickyBottomOffset,Yr=De.stickyClassName,$r=De.onScroll,ui=De.maxContentScroll,ei=De.children,xi=(0,Ot.Z)(De,la),gi=Be(be,["prefixCls","scrollbarSize","isSticky"]),Bi=gi.prefixCls,na=gi.scrollbarSize,ji=gi.isSticky,ea=ji&&!Fr?0:na,Ca=ce.useRef(null),Ua=ce.useCallback(function(_a){Kr(Ie,_a),Kr(Ca,_a)},[]);ce.useEffect(function(){var _a;function Ea(ao){var eo=ao,Ho=eo.currentTarget,so=eo.deltaX;so&&($r({currentTarget:Ho,scrollLeft:Ho.scrollLeft+so}),ao.preventDefault())}return(_a=Ca.current)===null||_a===void 0||_a.addEventListener("wheel",Ea),function(){var ao;(ao=Ca.current)===null||ao===void 0||ao.removeEventListener("wheel",Ea)}},[]);var Ki=ce.useMemo(function(){return Yt.every(function(_a){return _a.width})},[Yt]),Ui=Yt[Yt.length-1],Hi={fixed:Ui?Ui.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Bi,"-cell-scrollbar")}}},Ci=(0,ce.useMemo)(function(){return ea?[].concat((0,Oi.Z)(Ht),[Hi]):Ht},[ea,Ht]),Qi=(0,ce.useMemo)(function(){return ea?[].concat((0,Oi.Z)(Yt),[Hi]):Yt},[ea,Yt]),wa=(0,ce.useMemo)(function(){var _a=Hn.right,Ea=Hn.left;return(0,ut.Z)((0,ut.Z)({},Hn),{},{left:dr==="rtl"?[].concat((0,Oi.Z)(Ea.map(function(ao){return ao+ea})),[0]):Ea,right:dr==="rtl"?_a:[].concat((0,Oi.Z)(_a.map(function(ao){return ao+ea})),[0]),isSticky:ji})},[ea,Hn,ji]),qa=Ji(Ln,jn);return ce.createElement("div",{style:(0,ut.Z)({overflow:"hidden"},ji?{top:Sn,bottom:Vr}:{}),ref:Ua,className:wt()(qe,(0,Re.Z)({},Yr,!!Yr))},ce.createElement("table",{style:{tableLayout:"fixed",visibility:yt||qa?null:"hidden"}},(!yt||!ui||Ki)&&ce.createElement(Xi,{colWidths:qa?[].concat((0,Oi.Z)(qa),[ea]):[],columCount:jn+1,columns:Qi}),ei((0,ut.Z)((0,ut.Z)({},xi),{},{stickyOffsets:wa,columns:Ci,flattenColumns:Qi}))))});Sa.displayName="FixedHolder";var Ya=ce.memo(Sa);function ka(De){var Ie=De.cells,qe=De.stickyOffsets,yt=De.flattenColumns,Ht=De.rowComponent,Yt=De.cellComponent,Ln=De.tdCellComponent,jn=De.onHeaderRow,Hn=De.index,dr=Be(be,["prefixCls","direction"]),Fr=dr.prefixCls,Sn=dr.direction,Vr;jn&&(Vr=jn(Ie.map(function($r){return $r.column}),Hn));var Yr=nn(Ie.map(function($r){return $r.column}));return ce.createElement(Ht,Vr,Ie.map(function($r,ui){var ei=$r.column,xi=gt($r.colStart,$r.colEnd,yt,qe,Sn,ei),gi;return ei&&ei.onHeaderCell&&(gi=$r.column.onHeaderCell(ei)),ce.createElement(Te,(0,Qe.Z)({},$r,{scope:ei.title?$r.colSpan>1?"colgroup":"col":null,ellipsis:ei.ellipsis,align:ei.align,component:ei.title?Yt:Ln,prefixCls:Fr,key:Yr[ui]},xi,{additionalProps:gi,rowType:"header"}))}))}ka.displayName="HeaderRow";var ba=ka;function Ba(De){var Ie=[];function qe(Ln,jn){var Hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ie[Hn]=Ie[Hn]||[];var dr=jn,Fr=Ln.filter(Boolean).map(function(Sn){var Vr={key:Sn.key,className:Sn.className||"",children:Sn.title,column:Sn,colStart:dr},Yr=1,$r=Sn.children;return $r&&$r.length>0&&(Yr=qe($r,dr,Hn+1).reduce(function(ui,ei){return ui+ei},0),Vr.hasSubColumns=!0),"colSpan"in Sn&&(Yr=Sn.colSpan),"rowSpan"in Sn&&(Vr.rowSpan=Sn.rowSpan),Vr.colSpan=Yr,Vr.colEnd=Vr.colStart+Yr-1,Ie[Hn].push(Vr),dr+=Yr,Yr});return Fr}qe(De,0);for(var yt=Ie.length,Ht=function(jn){Ie[jn].forEach(function(Hn){!("rowSpan"in Hn)&&!Hn.hasSubColumns&&(Hn.rowSpan=yt-jn)})},Yt=0;Yt<yt;Yt+=1)Ht(Yt);return Ie}function fa(De){var Ie=De.stickyOffsets,qe=De.columns,yt=De.flattenColumns,Ht=De.onHeaderRow,Yt=Be(be,["prefixCls","getComponent"]),Ln=Yt.prefixCls,jn=Yt.getComponent,Hn=ce.useMemo(function(){return Ba(qe)},[qe]),dr=jn(["header","wrapper"],"thead"),Fr=jn(["header","row"],"tr"),Sn=jn(["header","cell"],"th"),Vr=jn(["header","cell"],"td");return ce.createElement(dr,{className:"".concat(Ln,"-thead")},Hn.map(function(Yr,$r){var ui=ce.createElement(ba,{key:$r,flattenColumns:yt,cells:Yr,stickyOffsets:Ie,rowComponent:Fr,cellComponent:Sn,tdCellComponent:Vr,onHeaderRow:Ht,index:$r});return ui}))}var ja=it(fa);function Ri(De){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=[];return ce.Children.forEach(De,function(yt){yt==null&&!Ie.keepEmpty||(Array.isArray(yt)?qe=qe.concat(Ri(yt)):(0,vr.isFragment)(yt)&&yt.props?qe=qe.concat(Ri(yt.props.children,Ie)):qe.push(yt))}),qe}function hn(De){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ie=="number"?Ie:Ie.endsWith("%")?De*parseFloat(Ie)/100:null}function $t(De,Ie){return ce.useMemo(function(){if(Ie&&Ie>0){var qe=0,yt=0;De.forEach(function(dr){var Fr=hn(Ie,dr.width);Fr?qe+=Fr:yt+=1});var Ht=Ie-qe,Yt=yt,Ln=Ht/yt,jn=0,Hn=De.map(function(dr){var Fr=(0,ut.Z)({},dr),Sn=hn(Ie,Fr.width);if(Sn)Fr.width=Sn;else{var Vr=Math.floor(Ln);Fr.width=Yt===1?Ht:Vr,Ht-=Vr,Yt-=1}return jn+=Fr.width,Fr});return[Hn,jn]}return[De,Ie]},[De,Ie])}var Zn=["children"],gr=["fixed"];function Er(De){return Ri(De).filter(function(Ie){return ce.isValidElement(Ie)}).map(function(Ie){var qe=Ie.key,yt=Ie.props,Ht=yt.children,Yt=(0,Ot.Z)(yt,Zn),Ln=(0,ut.Z)({key:qe},Yt);return Ht&&(Ln.children=Er(Ht)),Ln})}function ri(De){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return De.filter(function(qe){return qe&&(0,ft.Z)(qe)==="object"}).reduce(function(qe,yt,Ht){var Yt=yt.fixed,Ln=Yt===!0?"left":Yt,jn="".concat(Ie,"-").concat(Ht),Hn=yt.children;return Hn&&Hn.length>0?[].concat((0,Oi.Z)(qe),(0,Oi.Z)(ri(Hn,jn).map(function(dr){return(0,ut.Z)({fixed:Ln},dr)}))):[].concat((0,Oi.Z)(qe),[(0,ut.Z)((0,ut.Z)({key:jn},yt),{},{fixed:Ln})])},[])}function pi(De){for(var Ie=!0,qe=0;qe<De.length;qe+=1){var yt=De[qe];if(Ie&&yt.fixed!=="left")Ie=!1;else if(!Ie&&yt.fixed==="left"){warning(!1,"Index ".concat(qe-1," of `columns` missing `fixed='left'` prop."));break}}for(var Ht=!0,Yt=De.length-1;Yt>=0;Yt-=1){var Ln=De[Yt];if(Ht&&Ln.fixed!=="right")Ht=!1;else if(!Ht&&Ln.fixed==="right"){warning(!1,"Index ".concat(Yt+1," of `columns` missing `fixed='right'` prop."));break}}}function Si(De){return De.map(function(Ie){var qe=Ie.fixed,yt=(0,Ot.Z)(Ie,gr),Ht=qe;return qe==="left"?Ht="right":qe==="right"&&(Ht="left"),(0,ut.Z)({fixed:Ht},yt)})}function vi(De,Ie){var qe=De.prefixCls,yt=De.columns,Ht=De.children,Yt=De.expandable,Ln=De.expandedKeys,jn=De.columnTitle,Hn=De.getRowKey,dr=De.onTriggerExpand,Fr=De.expandIcon,Sn=De.rowExpandable,Vr=De.expandIconColumnIndex,Yr=De.direction,$r=De.expandRowByClick,ui=De.columnWidth,ei=De.fixed,xi=De.scrollWidth,gi=ce.useMemo(function(){return yt||Er(Ht)},[yt,Ht]),Bi=ce.useMemo(function(){if(Yt){var Ui,Hi=gi.slice();if(!Hi.includes(oe)){var Ci=Vr||0;Ci>=0&&Hi.splice(Ci,0,oe)}var Qi=Hi.indexOf(oe);Hi=Hi.filter(function(Ea,ao){return Ea!==oe||ao===Qi});var wa=gi[Qi],qa;(ei==="left"||ei)&&!Vr?qa="left":(ei==="right"||ei)&&Vr===gi.length?qa="right":qa=wa?wa.fixed:null;var _a=(Ui={},(0,Re.Z)(Ui,ua,{className:"".concat(qe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Re.Z)(Ui,"title",jn),(0,Re.Z)(Ui,"fixed",qa),(0,Re.Z)(Ui,"className","".concat(qe,"-row-expand-icon-cell")),(0,Re.Z)(Ui,"width",ui),(0,Re.Z)(Ui,"render",function(ao,eo,Ho){var so=Hn(eo,Ho),es=Ln.has(so),ts=Sn?Sn(eo):!0,Va=Fr({prefixCls:qe,expanded:es,expandable:ts,record:eo,onExpand:dr});return $r?ce.createElement("span",{onClick:function(Fo){return Fo.stopPropagation()}},Va):Va}),Ui);return Hi.map(function(Ea){return Ea===oe?_a:Ea})}return gi.filter(function(Ea){return Ea!==oe})},[Yt,gi,Hn,Ln,Fr,Yr]),na=ce.useMemo(function(){var Ui=Bi;return Ie&&(Ui=Ie(Ui)),Ui.length||(Ui=[{render:function(){return null}}]),Ui},[Ie,Bi,Yr]),ji=ce.useMemo(function(){return Yr==="rtl"?Si(ri(na)):ri(na)},[na,Yr,xi]),ea=$t(ji,xi),Ca=(0,Fe.Z)(ea,2),Ua=Ca[0],Ki=Ca[1];return[na,Ua,Ki]}var Ai=vi;function Ti(De){var Ie,qe=De.prefixCls,yt=De.record,Ht=De.onExpand,Yt=De.expanded,Ln=De.expandable,jn="".concat(qe,"-row-expand-icon");if(!Ln)return ce.createElement("span",{className:wt()(jn,"".concat(qe,"-row-spaced"))});var Hn=function(Fr){Ht(yt,Fr),Fr.stopPropagation()};return ce.createElement("span",{className:wt()(jn,(Ie={},(0,Re.Z)(Ie,"".concat(qe,"-row-expanded"),Yt),(0,Re.Z)(Ie,"".concat(qe,"-row-collapsed"),!Yt),Ie)),onClick:Hn})}function $i(De,Ie,qe){var yt=[];function Ht(Yt){(Yt||[]).forEach(function(Ln,jn){yt.push(Ie(Ln,jn)),Ht(Ln[qe])})}return Ht(De),yt}function qi(De,Ie,qe){var yt=ta(De),Ht=yt.expandIcon,Yt=yt.expandedRowKeys,Ln=yt.defaultExpandedRowKeys,jn=yt.defaultExpandAllRows,Hn=yt.expandedRowRender,dr=yt.onExpand,Fr=yt.onExpandedRowsChange,Sn=yt.childrenColumnName,Vr=Ht||Ti,Yr=Sn||"children",$r=ce.useMemo(function(){return Hn?"row":De.expandable&&De.internalHooks===de&&De.expandable.__PARENT_RENDER_ICON__||Ie.some(function(ji){return ji&&(0,ft.Z)(ji)==="object"&&ji[Yr]})?"nest":!1},[!!Hn,Ie]),ui=ce.useState(function(){return Ln||(jn?$i(Ie,qe,Yr):[])}),ei=(0,Fe.Z)(ui,2),xi=ei[0],gi=ei[1],Bi=ce.useMemo(function(){return new Set(Yt||xi||[])},[Yt,xi]),na=ce.useCallback(function(ji){var ea=qe(ji,Ie.indexOf(ji)),Ca,Ua=Bi.has(ea);Ua?(Bi.delete(ea),Ca=(0,Oi.Z)(Bi)):Ca=[].concat((0,Oi.Z)(Bi),[ea]),gi(Ca),dr&&dr(!Ua,ji),Fr&&Fr(Ca)},[qe,Bi,Ie,dr,Fr]);return[yt,$r,Bi,Vr,Yr,na]}function Pn(De,Ie,qe,yt){var Ht=De.map(function(Yt,Ln){return gt(Ln,Ln,De,Ie,qe,yt==null?void 0:yt[Ln])});return yn(function(){return Ht},[Ht],function(Yt,Ln){return!tn(Yt,Ln)})}function In(De){var Ie=(0,ce.useRef)(De),qe=(0,ce.useState)({}),yt=(0,Fe.Z)(qe,2),Ht=yt[1],Yt=(0,ce.useRef)(null),Ln=(0,ce.useRef)([]);function jn(Hn){Ln.current.push(Hn);var dr=Promise.resolve();Yt.current=dr,dr.then(function(){if(Yt.current===dr){var Fr=Ln.current,Sn=Ie.current;Ln.current=[],Fr.forEach(function(Vr){Ie.current=Vr(Ie.current)}),Yt.current=null,Sn!==Ie.current&&Ht({})}})}return(0,ce.useEffect)(function(){return function(){Yt.current=null}},[]),[Ie.current,jn]}function Vn(De){var Ie=(0,ce.useRef)(De||null),qe=(0,ce.useRef)();function yt(){window.clearTimeout(qe.current)}function Ht(Ln){Ie.current=Ln,yt(),qe.current=window.setTimeout(function(){Ie.current=null,qe.current=void 0},100)}function Yt(){return Ie.current}return(0,ce.useEffect)(function(){return yt},[]),[Ht,Yt]}function me(){var De=ce.useState(-1),Ie=(0,Fe.Z)(De,2),qe=Ie[0],yt=Ie[1],Ht=ce.useState(-1),Yt=(0,Fe.Z)(Ht,2),Ln=Yt[0],jn=Yt[1],Hn=ce.useCallback(function(dr,Fr){yt(dr),jn(Fr)},[]);return[qe,Ln,Hn]}var _e=vn()?window:null;function Ke(De,Ie){var qe=(0,ft.Z)(De)==="object"?De:{},yt=qe.offsetHeader,Ht=yt===void 0?0:yt,Yt=qe.offsetSummary,Ln=Yt===void 0?0:Yt,jn=qe.offsetScroll,Hn=jn===void 0?0:jn,dr=qe.getContainer,Fr=dr===void 0?function(){return _e}:dr,Sn=Fr()||_e;return ce.useMemo(function(){var Vr=!!De;return{isSticky:Vr,stickyClassName:Vr?"".concat(Ie,"-sticky-holder"):"",offsetHeader:Ht,offsetSummary:Ln,offsetScroll:Hn,container:Sn}},[Hn,Ht,Ln,Ie,Sn])}function Ye(De,Ie,qe){var yt=(0,ce.useMemo)(function(){for(var Ht=[],Yt=[],Ln=0,jn=0,Hn=0;Hn<Ie;Hn+=1)if(qe==="rtl"){Yt[Hn]=jn,jn+=De[Hn]||0;var dr=Ie-Hn-1;Ht[dr]=Ln,Ln+=De[dr]||0}else{Ht[Hn]=Ln,Ln+=De[Hn]||0;var Fr=Ie-Hn-1;Yt[Fr]=jn,jn+=De[Fr]||0}return{left:Ht,right:Yt}},[De,Ie,qe]);return yt}var Je=Ye;function $e(De){var Ie=De.className,qe=De.children;return ce.createElement("div",{className:Ie},qe)}var Ge=$e;function Xt(De,Ie,qe,yt){var Ht=we.unstable_batchedUpdates?function(Ln){we.unstable_batchedUpdates(qe,Ln)}:qe;return De!=null&&De.addEventListener&&De.addEventListener(Ie,Ht,yt),{remove:function(){De!=null&&De.removeEventListener&&De.removeEventListener(Ie,Ht,yt)}}}var un=/margin|padding|width|height|max|min|offset/,Wn={left:!0,top:!0},ar={cssFloat:1,styleFloat:1,float:1};function $n(De){return De.nodeType===1?De.ownerDocument.defaultView.getComputedStyle(De,null):{}}function Nn(De,Ie,qe){if(Ie=Ie.toLowerCase(),qe==="auto"){if(Ie==="height")return De.offsetHeight;if(Ie==="width")return De.offsetWidth}return Ie in Wn||(Wn[Ie]=un.test(Ie)),Wn[Ie]?parseFloat(qe)||0:qe}function Bn(De,Ie){var qe=arguments.length,yt=$n(De);return Ie=ar[Ie]?"cssFloat"in De.style?"cssFloat":"styleFloat":Ie,qe===1?yt:Nn(De,Ie,yt[Ie]||De.style[Ie])}function rn(De,Ie,qe){var yt=arguments.length;if(Ie=ar[Ie]?"cssFloat"in De.style?"cssFloat":"styleFloat":Ie,yt===3)return typeof qe=="number"&&un.test(Ie)&&(qe="".concat(qe,"px")),De.style[Ie]=qe,qe;for(var Ht in Ie)Ie.hasOwnProperty(Ht)&&rn(De,Ht,Ie[Ht]);return $n(De)}function Xn(De){return De===document.body?document.documentElement.clientWidth:De.offsetWidth}function Ar(De){return De===document.body?window.innerHeight||document.documentElement.clientHeight:De.offsetHeight}function ur(){var De=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ie=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:De,height:Ie}}function Mn(){var De=document.documentElement.clientWidth,Ie=window.innerHeight||document.documentElement.clientHeight;return{width:De,height:Ie}}function mr(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Dr(De){var Ie=De.getBoundingClientRect(),qe=document.documentElement;return{left:Ie.left+(window.pageXOffset||qe.scrollLeft)-(qe.clientLeft||document.body.clientLeft||0),top:Ie.top+(window.pageYOffset||qe.scrollTop)-(qe.clientTop||document.body.clientTop||0)}}var _r=function(Ie,qe){var yt,Ht,Yt=Ie.scrollBodyRef,Ln=Ie.onScroll,jn=Ie.offsetScroll,Hn=Ie.container,dr=Be(be,"prefixCls"),Fr=((yt=Yt.current)===null||yt===void 0?void 0:yt.scrollWidth)||0,Sn=((Ht=Yt.current)===null||Ht===void 0?void 0:Ht.clientWidth)||0,Vr=Fr&&Sn*(Sn/Fr),Yr=ce.useRef(),$r=In({scrollLeft:0,isHiddenScrollBar:!1}),ui=(0,Fe.Z)($r,2),ei=ui[0],xi=ui[1],gi=ce.useRef({delta:0,x:0}),Bi=ce.useState(!1),na=(0,Fe.Z)(Bi,2),ji=na[0],ea=na[1],Ca=function(){ea(!1)},Ua=function(Qi){Qi.persist(),gi.current.delta=Qi.pageX-ei.scrollLeft,gi.current.x=0,ea(!0),Qi.preventDefault()},Ki=function(Qi){var wa,qa=Qi||((wa=window)===null||wa===void 0?void 0:wa.event),_a=qa.buttons;if(!ji||_a===0){ji&&ea(!1);return}var Ea=gi.current.x+Qi.pageX-gi.current.x-gi.current.delta;Ea<=0&&(Ea=0),Ea+Vr>=Sn&&(Ea=Sn-Vr),Ln({scrollLeft:Ea/Sn*(Fr+2)}),gi.current.x=Qi.pageX},Ui=function(){if(Yt.current){var Qi=Dr(Yt.current).top,wa=Qi+Yt.current.offsetHeight,qa=Hn===window?document.documentElement.scrollTop+window.innerHeight:Dr(Hn).top+Hn.clientHeight;wa-lt()<=qa||Qi>=qa-jn?xi(function(_a){return(0,ut.Z)((0,ut.Z)({},_a),{},{isHiddenScrollBar:!0})}):xi(function(_a){return(0,ut.Z)((0,ut.Z)({},_a),{},{isHiddenScrollBar:!1})})}},Hi=function(Qi){xi(function(wa){return(0,ut.Z)((0,ut.Z)({},wa),{},{scrollLeft:Qi/Fr*Sn||0})})};return ce.useImperativeHandle(qe,function(){return{setScrollLeft:Hi}}),ce.useEffect(function(){var Ci=Xt(document.body,"mouseup",Ca,!1),Qi=Xt(document.body,"mousemove",Ki,!1);return Ui(),function(){Ci.remove(),Qi.remove()}},[Vr,ji]),ce.useEffect(function(){var Ci=Xt(Hn,"scroll",Ui,!1),Qi=Xt(window,"resize",Ui,!1);return function(){Ci.remove(),Qi.remove()}},[Hn]),ce.useEffect(function(){ei.isHiddenScrollBar||xi(function(Ci){var Qi=Yt.current;return Qi?(0,ut.Z)((0,ut.Z)({},Ci),{},{scrollLeft:Qi.scrollLeft/Qi.scrollWidth*Qi.clientWidth}):Ci})},[ei.isHiddenScrollBar]),Fr<=Sn||!Vr||ei.isHiddenScrollBar?null:ce.createElement("div",{style:{height:lt(),width:Sn,bottom:jn},className:"".concat(dr,"-sticky-scroll")},ce.createElement("div",{onMouseDown:Ua,ref:Yr,className:wt()("".concat(dr,"-sticky-scroll-bar"),(0,Re.Z)({},"".concat(dr,"-sticky-scroll-bar-active"),ji)),style:{width:"".concat(Vr,"px"),transform:"translate3d(".concat(ei.scrollLeft,"px, 0, 0)")}}))},tt=ce.forwardRef(_r);function at(De){return null}var on=at;function Qt(De){return null}var Dn=Qt,sr="rc-table",Mt=[],Dt={};function Nt(){return"No Data"}function Gt(De){var Ie,qe=(0,ut.Z)({rowKey:"key",prefixCls:sr,emptyText:Nt},De),yt=qe.prefixCls,Ht=qe.className,Yt=qe.rowClassName,Ln=qe.style,jn=qe.data,Hn=qe.rowKey,dr=qe.scroll,Fr=qe.tableLayout,Sn=qe.direction,Vr=qe.title,Yr=qe.footer,$r=qe.summary,ui=qe.caption,ei=qe.id,xi=qe.showHeader,gi=qe.components,Bi=qe.emptyText,na=qe.onRow,ji=qe.onHeaderRow,ea=qe.internalHooks,Ca=qe.transformColumns,Ua=qe.internalRefs,Ki=qe.tailor,Ui=qe.sticky,Hi=jn||Mt,Ci=!!Hi.length,Qi=ea===de,wa=ce.useCallback(function(Ro,as){return cr(gi,Ro)||as},[gi]),qa=ce.useMemo(function(){return typeof Hn=="function"?Hn:function(Ro){var as=Ro&&Ro[Hn];return as}},[Hn]),_a=wa(["body"]),Ea=me(),ao=(0,Fe.Z)(Ea,3),eo=ao[0],Ho=ao[1],so=ao[2],es=qi(qe,Hi,qa),ts=(0,Fe.Z)(es,6),Va=ts[0],Ds=ts[1],Fo=ts[2],Zo=ts[3],Oo=ts[4],Ha=ts[5],Ii=dr==null?void 0:dr.x,da=ce.useState(0),Ma=(0,Fe.Z)(da,2),Vi=Ma[0],To=Ma[1],Fi=Ai((0,ut.Z)((0,ut.Z)((0,ut.Z)({},qe),Va),{},{expandable:!!Va.expandedRowRender,columnTitle:Va.columnTitle,expandedKeys:Fo,getRowKey:qa,onTriggerExpand:Ha,expandIcon:Zo,expandIconColumnIndex:Va.expandIconColumnIndex,direction:Sn,scrollWidth:Qi&&Ki&&typeof Ii=="number"?Ii:null}),Qi?Ca:null),Za=(0,Fe.Z)(Fi,3),Bo=Za[0],Co=Za[1],ol=Za[2],Bs=ol!=null?ol:Ii,El=ce.useMemo(function(){return{columns:Bo,flattenColumns:Co}},[Bo,Co]),ni=ce.useRef(),zl=ce.useRef(),ws=ce.useRef(),fl=ce.useRef(),yl=ce.useRef(),Lo=ce.useState(!1),No=(0,Fe.Z)(Lo,2),ns=No[0],$a=No[1],Os=ce.useState(!1),lo=(0,Fe.Z)(Os,2),Ls=lo[0],Ws=lo[1],Zs=In(new Map),Ml=(0,Fe.Z)(Zs,2),Es=Ml[0],Al=Ml[1],Ms=nn(Co),js=Ms.map(function(Ro){return Es.get(Ro)}),Us=ce.useMemo(function(){return js},[js.join("_")]),As=Je(Us,Co.length,Sn),ms=dr&&ze(dr.y),ls=dr&&ze(Bs)||!!Va.fixed,Xl=ls&&Co.some(function(Ro){var as=Ro.fixed;return as}),wu=ce.useRef(),hs=Ke(Ui,yt),sl=hs.isSticky,Tc=hs.offsetHeader,Eu=hs.offsetSummary,yo=hs.offsetScroll,ga=hs.stickyClassName,Is=hs.container,jo=ce.useMemo(function(){return $r==null?void 0:$r(Hi)},[$r,Hi]),Vs=(ms||sl)&&ce.isValidElement(jo)&&jo.type===sn&&jo.props.fixed,Wr,kl,lu;ms&&(kl={overflowY:"scroll",maxHeight:dr.y}),ls&&(Wr={overflowX:"auto"},ms||(kl={overflowY:"hidden"}),lu={width:Bs===!0?"auto":Bs,minWidth:"100%"});var Pc=ce.useCallback(function(Ro,as){nr(ni.current)&&Al(function(Il){if(Il.get(Ro)!==as){var gu=new Map(Il);return gu.set(Ro,as),gu}return Il})},[]),id=Vn(null),uu=(0,Fe.Z)(id,2),hc=uu[0],Bd=uu[1];function Gs(Ro,as){as&&(typeof as=="function"?as(Ro):as.scrollLeft!==Ro&&(as.scrollLeft=Ro,as.scrollLeft!==Ro&&setTimeout(function(){as.scrollLeft=Ro},0)))}var Zl=Pt(function(Ro){var as=Ro.currentTarget,Il=Ro.scrollLeft,gu=Sn==="rtl",_o=typeof Il=="number"?Il:as.scrollLeft,ld=as||Dt;if(!Bd()||Bd()===ld){var ud;hc(ld),Gs(_o,zl.current),Gs(_o,ws.current),Gs(_o,yl.current),Gs(_o,(ud=wu.current)===null||ud===void 0?void 0:ud.setScrollLeft)}var Au=as||zl.current;if(Au){var cd=Au.scrollWidth,Yu=Au.clientWidth;if(cd===Yu){$a(!1),Ws(!1);return}gu?($a(-_o<cd-Yu),Ws(-_o>0)):($a(_o>0),Ws(_o<cd-Yu))}}),pc=function(){ls&&ws.current?Zl({currentTarget:ws.current}):($a(!1),Ws(!1))},Ic=function(as){var Il=as.width;Il!==Vi&&(pc(),To(ni.current?ni.current.offsetWidth:Il))},Ld=ce.useRef(!1);ce.useEffect(function(){Ld.current&&pc()},[ls,jn,Bo.length]),ce.useEffect(function(){Ld.current=!0},[]);var Fd=ce.useState(0),Nc=(0,Fe.Z)(Fd,2),mc=Nc[0],Gu=Nc[1],bl=ce.useState(!0),pu=(0,Fe.Z)(bl,2),ad=pu[0],od=pu[1];ce.useEffect(function(){(!Ki||!Qi)&&(ws.current instanceof Element?Gu(ke(ws.current).width):Gu(ke(fl.current).width)),od(jt("position","sticky"))},[]),ce.useEffect(function(){Qi&&Ua&&(Ua.body.current=ws.current)});var Mu=ce.useCallback(function(Ro){return ce.createElement(ce.Fragment,null,ce.createElement(ja,Ro),Vs==="top"&&ce.createElement(Un,Ro,jo))},[Vs,jo]),Td=ce.useCallback(function(Ro){return ce.createElement(Un,Ro,jo)},[jo]),gc=wa(["table"],"table"),Oc=ce.useMemo(function(){return Fr||(Xl?Bs==="max-content"?"auto":"fixed":ms||sl||Co.some(function(Ro){var as=Ro.ellipsis;return as})?"fixed":"auto")},[ms,Xl,Co,Fr,sl]),sd,Rc={colWidths:Us,columCount:Co.length,stickyOffsets:As,onHeaderRow:ji,fixHeader:ms,scroll:dr},Ga=ce.useMemo(function(){return Ci?null:typeof Bi=="function"?Bi():Bi},[Ci,Bi]),Pd=ce.createElement(Pi,{data:Hi,measureColumnWidth:ms||ls||sl}),_c=ce.createElement(Xi,{colWidths:Co.map(function(Ro){var as=Ro.width;return as}),columns:Co}),Ql=ui!=null?ce.createElement("caption",{className:"".concat(yt,"-caption")},ui):void 0,au=Lr(qe,{data:!0}),mu=Lr(qe,{aria:!0});if(ms||sl){var vc;typeof _a=="function"?(vc=_a(Hi,{scrollbarSize:mc,ref:ws,onScroll:Zl}),Rc.colWidths=Co.map(function(Ro,as){var Il=Ro.width,gu=as===Co.length-1?Il-mc:Il;return typeof gu=="number"&&!Number.isNaN(gu)?gu:0})):vc=ce.createElement("div",{style:(0,ut.Z)((0,ut.Z)({},Wr),kl),onScroll:Zl,ref:ws,className:wt()("".concat(yt,"-body"))},ce.createElement(gc,(0,Qe.Z)({style:(0,ut.Z)((0,ut.Z)({},lu),{},{tableLayout:Oc})},mu),Ql,_c,Pd,!Vs&&jo&&ce.createElement(Un,{stickyOffsets:As,flattenColumns:Co,columns:Bo},jo)));var zc=(0,ut.Z)((0,ut.Z)((0,ut.Z)({noData:!Hi.length,maxContentScroll:ls&&Bs==="max-content"},Rc),El),{},{direction:Sn,stickyClassName:ga,onScroll:Zl});sd=ce.createElement(ce.Fragment,null,xi!==!1&&ce.createElement(Ya,(0,Qe.Z)({},zc,{stickyTopOffset:Tc,className:"".concat(yt,"-header"),ref:zl}),Mu),vc,Vs&&Vs!=="top"&&ce.createElement(Ya,(0,Qe.Z)({},zc,{stickyBottomOffset:Eu,className:"".concat(yt,"-summary"),ref:yl}),Td),sl&&ce.createElement(tt,{ref:wu,offsetScroll:yo,scrollBodyRef:ws,onScroll:Zl,container:Is}))}else sd=ce.createElement("div",{style:(0,ut.Z)((0,ut.Z)({},Wr),kl),className:wt()("".concat(yt,"-content")),onScroll:Zl,ref:ws},ce.createElement(gc,(0,Qe.Z)({style:(0,ut.Z)((0,ut.Z)({},lu),{},{tableLayout:Oc})},mu),Ql,_c,xi!==!1&&ce.createElement(ja,(0,Qe.Z)({},Rc,El)),Pd,jo&&ce.createElement(Un,{stickyOffsets:As,flattenColumns:Co,columns:Bo},jo)));var yc=ce.createElement("div",(0,Qe.Z)({className:wt()(yt,Ht,(Ie={},(0,Re.Z)(Ie,"".concat(yt,"-rtl"),Sn==="rtl"),(0,Re.Z)(Ie,"".concat(yt,"-ping-left"),ns),(0,Re.Z)(Ie,"".concat(yt,"-ping-right"),Ls),(0,Re.Z)(Ie,"".concat(yt,"-layout-fixed"),Fr==="fixed"),(0,Re.Z)(Ie,"".concat(yt,"-fixed-header"),ms),(0,Re.Z)(Ie,"".concat(yt,"-fixed-column"),Xl),(0,Re.Z)(Ie,"".concat(yt,"-scroll-horizontal"),ls),(0,Re.Z)(Ie,"".concat(yt,"-has-fix-left"),Co[0]&&Co[0].fixed),(0,Re.Z)(Ie,"".concat(yt,"-has-fix-right"),Co[Co.length-1]&&Co[Co.length-1].fixed==="right"),Ie)),style:Ln,id:ei,ref:ni},au),Vr&&ce.createElement(Ge,{className:"".concat(yt,"-title")},Vr(Hi)),ce.createElement("div",{ref:fl,className:"".concat(yt,"-container")},sd),Yr&&ce.createElement(Ge,{className:"".concat(yt,"-footer")},Yr(Hi)));ls&&(yc=ce.createElement(wr.Z,{onResize:Ic},yc));var _u=Pn(Co,As,Sn,Bo),Id=ce.useMemo(function(){return{scrollX:Bs,prefixCls:yt,getComponent:wa,scrollbarSize:mc,direction:Sn,fixedInfoList:_u,isSticky:sl,supportSticky:ad,componentWidth:Vi,fixHeader:ms,fixColumn:Xl,horizonScroll:ls,tableLayout:Oc,rowClassName:Yt,expandedRowClassName:Va.expandedRowClassName,expandIcon:Zo,expandableType:Ds,expandRowByClick:Va.expandRowByClick,expandedRowRender:Va.expandedRowRender,onTriggerExpand:Ha,expandIconColumnIndex:Va.expandIconColumnIndex,indentSize:Va.indentSize,allColumnsFixedLeft:Co.every(function(Ro){return Ro.fixed==="left"}),emptyNode:Ga,columns:Bo,flattenColumns:Co,onColumnResize:Pc,hoverStartRow:eo,hoverEndRow:Ho,onHover:so,rowExpandable:Va.rowExpandable,onRow:na,getRowKey:qa,expandedKeys:Fo,childrenColumnName:Oo}},[Bs,yt,wa,mc,Sn,_u,sl,ad,Vi,ms,Xl,ls,Oc,Yt,Va.expandedRowClassName,Zo,Ds,Va.expandRowByClick,Va.expandedRowRender,Ha,Va.expandIconColumnIndex,Va.indentSize,Ga,Bo,Co,Pc,eo,Ho,so,Va.rowExpandable,na,qa,Fo,Oo]);return ce.createElement(be.Provider,{value:Id},yc)}function Rn(De){return Lt(Gt,De)}var Qn=Rn();Qn.EXPAND_COLUMN=oe,Qn.INTERNAL_HOOKS=de,Qn.Column=on,Qn.ColumnGroup=Dn,Qn.Summary=bt;var wn=Qn,Yn=ne(73299),kr=ge(null),bn=ge(null);function pn(De,Ie,qe){var yt=Ie||1;return qe[De+yt]-(qe[De]||0)}function _n(De){var Ie=De.rowInfo,qe=De.column,yt=De.colIndex,Ht=De.indent,Yt=De.index,Ln=De.renderIndex,jn=De.record,Hn=De.style,dr=De.className,Fr=De.inverse,Sn=De.getHeight,Vr=qe.render,Yr=qe.dataIndex,$r=qe.className,ui=qe.width,ei=Be(bn,["columnsOffset"]),xi=ei.columnsOffset,gi=Di(Ie,qe,yt,Ht,Yt),Bi=gi.key,na=gi.fixedInfo,ji=gi.appendCellNode,ea=gi.additionalCellProps,Ca=ea.style,Ua=ea.colSpan,Ki=Ua===void 0?1:Ua,Ui=ea.rowSpan,Hi=Ui===void 0?1:Ui,Ci=yt-1,Qi=pn(Ci,Ki,xi),wa=Ki>1?ui-Qi:0,qa=(0,ut.Z)((0,ut.Z)((0,ut.Z)({},Ca),Hn),{},{flex:"0 0 ".concat(Qi,"px"),width:"".concat(Qi,"px"),marginRight:wa,pointerEvents:"auto"}),_a=ce.useMemo(function(){return Fr?Hi<=1:Ki===0||Hi===0||Hi>1},[Hi,Ki,Fr]);_a?qa.visibility="hidden":Fr&&(qa.height=Sn==null?void 0:Sn(Hi));var Ea=_a?function(){return null}:Vr,ao={};return(Hi===0||Ki===0)&&(ao.rowSpan=1,ao.colSpan=1),ce.createElement(Te,(0,Qe.Z)({className:wt()($r,dr),ellipsis:qe.ellipsis,align:qe.align,scope:qe.rowScope,component:"div",prefixCls:Ie.prefixCls,key:Bi,record:jn,index:Yt,renderIndex:Ln,dataIndex:Yr,render:Ea,shouldCellUpdate:qe.shouldCellUpdate},na,{appendNode:ji,additionalProps:(0,ut.Z)((0,ut.Z)({},ea),{},{style:qa},ao)}))}var Tr=_n,Ir=["data","index","className","rowKey","style","extra","getHeight"],Jr=ce.forwardRef(function(De,Ie){var qe=De.data,yt=De.index,Ht=De.className,Yt=De.rowKey,Ln=De.style,jn=De.extra,Hn=De.getHeight,dr=(0,Ot.Z)(De,Ir),Fr=qe.record,Sn=qe.indent,Vr=qe.index,Yr=Be(be,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),$r=Yr.scrollX,ui=Yr.flattenColumns,ei=Yr.prefixCls,xi=Yr.fixColumn,gi=Yr.componentWidth,Bi=Rr(Fr,Yt,yt,Sn),na=Bi.rowSupportExpand,ji=Bi.expanded,ea=Bi.rowProps,Ca=Bi.expandedRowRender,Ua=Bi.expandedRowClassName,Ki;if(na&&ji){var Ui=Ca(Fr,yt,Sn+1,ji),Hi=Ua==null?void 0:Ua(Fr,yt,Sn),Ci={};xi&&(Ci={style:(0,Re.Z)({},"--virtual-width","".concat(gi,"px"))});var Qi="".concat(ei,"-expanded-row-cell");Ki=ce.createElement("div",{className:wt()("".concat(ei,"-expanded-row"),"".concat(ei,"-expanded-row-level-").concat(Sn+1),Hi)},ce.createElement(Te,{component:"div",prefixCls:ei,className:wt()(Qi,(0,Re.Z)({},"".concat(Qi,"-fixed"),xi)),additionalProps:Ci},Ui))}var wa=(0,ut.Z)((0,ut.Z)({},Ln),{},{width:$r});jn&&(wa.position="absolute",wa.pointerEvents="none");var qa=ce.createElement("div",(0,Qe.Z)({},ea,dr,{ref:na?null:Ie,className:wt()(Ht,"".concat(ei,"-row"),ea==null?void 0:ea.className,(0,Re.Z)({},"".concat(ei,"-row-extra"),jn)),style:(0,ut.Z)((0,ut.Z)({},wa),ea==null?void 0:ea.style)}),ui.map(function(_a,Ea){return ce.createElement(Tr,{key:Ea,rowInfo:Bi,column:_a,colIndex:Ea,indent:Sn,index:yt,renderIndex:Vr,record:Fr,inverse:jn,getHeight:Hn})}));return na?ce.createElement("div",{ref:Ie},qa,Ki):qa}),Zr=it(Jr),Br=Zr,si=ce.forwardRef(function(De,Ie){var qe=De.data,yt=De.onScroll,Ht=Be(be,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Yt=Ht.flattenColumns,Ln=Ht.onColumnResize,jn=Ht.getRowKey,Hn=Ht.expandedKeys,dr=Ht.prefixCls,Fr=Ht.childrenColumnName,Sn=Ht.emptyNode,Vr=Ht.scrollX,Yr=Be(kr),$r=Yr.scrollY,ui=Yr.listItemHeight,ei=ce.useRef(),xi=Sr(qe,Fr,Hn,jn),gi=ce.useMemo(function(){var Ki=0;return Yt.map(function(Ui){var Hi=Ui.width,Ci=Ui.key;return Ki+=Hi,[Ci,Hi,Ki]})},[Yt]),Bi=ce.useMemo(function(){return gi.map(function(Ki){return Ki[2]})},[gi]);ce.useEffect(function(){gi.forEach(function(Ki){var Ui=(0,Fe.Z)(Ki,2),Hi=Ui[0],Ci=Ui[1];Ln(Hi,Ci)})},[gi]),ce.useImperativeHandle(Ie,function(){var Ki={};return Object.defineProperty(Ki,"scrollLeft",{get:function(){var Hi;return((Hi=ei.current)===null||Hi===void 0?void 0:Hi.getScrollInfo().x)||0},set:function(Hi){var Ci;(Ci=ei.current)===null||Ci===void 0||Ci.scrollTo({left:Hi})}}),Ki});var na=function(Ui,Hi){var Ci,Qi=(Ci=xi[Hi])===null||Ci===void 0?void 0:Ci.record,wa=Ui.onCell;if(wa){var qa,_a=wa(Qi,Hi);return(qa=_a==null?void 0:_a.rowSpan)!==null&&qa!==void 0?qa:1}return 1},ji=function(Ui){var Hi=Ui.start,Ci=Ui.end,Qi=Ui.getSize,wa=Ui.offsetY;if(Ci<0)return null;for(var qa=Yt.filter(function(Ii){return na(Ii,Hi)===0}),_a=Hi,Ea=function(da){if(qa=qa.filter(function(Ma){return na(Ma,da)===0}),!qa.length)return _a=da,"break"},ao=Hi;ao>=0;ao-=1){var eo=Ea(ao);if(eo==="break")break}for(var Ho=Yt.filter(function(Ii){return na(Ii,Ci)!==1}),so=Ci,es=function(da){if(Ho=Ho.filter(function(Ma){return na(Ma,da)!==1}),!Ho.length)return so=Math.max(da-1,Ci),"break"},ts=Ci;ts<xi.length;ts+=1){var Va=es(ts);if(Va==="break")break}for(var Ds=[],Fo=function(da){var Ma=xi[da];if(!Ma)return"continue";Yt.some(function(Vi){return na(Vi,da)>1})&&Ds.push(da)},Zo=_a;Zo<=so;Zo+=1)var Oo=Fo(Zo);var Ha=Ds.map(function(Ii){var da=xi[Ii],Ma=jn(da.record,Ii),Vi=function(Za){var Bo=Ii+Za-1,Co=jn(xi[Bo].record,Bo),ol=Qi(Ma,Co);return ol.bottom-ol.top},To=Qi(Ma);return ce.createElement(Br,{key:Ii,data:da,rowKey:Ma,index:Ii,style:{top:-wa+To.top},extra:!0,getHeight:Vi})});return Ha},ea=ce.useMemo(function(){return{columnsOffset:Bi}},[Bi]),Ca="".concat(dr,"-tbody"),Ua;return xi.length?Ua=ce.createElement(Yn.Z,{fullHeight:!1,ref:ei,className:wt()(Ca,"".concat(Ca,"-virtual")),height:$r,itemHeight:ui||24,data:xi,itemKey:function(Ui){return jn(Ui.record)},scrollWidth:Vr,onVirtualScroll:function(Ui){var Hi=Ui.x;yt({scrollLeft:Hi})},extraRender:ji},function(Ki,Ui,Hi){var Ci=jn(Ki.record,Ui);return ce.createElement(Br,(0,Qe.Z)({data:Ki,rowKey:Ci,index:Ui},Hi))}):Ua=ce.createElement("div",{className:wt()("".concat(dr,"-placeholder"))},ce.createElement(Te,{component:"div",prefixCls:dr},Sn)),ce.createElement(bn.Provider,{value:ea},Ua)}),oi=it(si),vt=oi,dn=function(Ie,qe){var yt=qe.ref,Ht=qe.onScroll;return ce.createElement(vt,{ref:yt,data:Ie,onScroll:Ht})},hr=100;function mi(De){var Ie=De.columns,qe=De.scroll,yt=De.prefixCls,Ht=yt===void 0?sr:yt,Yt=De.className,Ln=De.listItemHeight,jn=qe||{},Hn=jn.x,dr=jn.y;typeof Hn!="number"&&(Hn=((Ie||[]).length+1)*hr),typeof dr!="number"&&(dr=500);var Fr=ce.useMemo(function(){return{scrollY:dr,listItemHeight:Ln}},[dr,Ln]);return ce.createElement(kr.Provider,{value:Fr},ce.createElement(wn,(0,Qe.Z)({},De,{className:wt()(Yt,"".concat(Ht,"-virtual")),scroll:(0,ut.Z)((0,ut.Z)({},qe),{},{x:Hn}),components:{body:dn},columns:Ie,internalHooks:de,tailor:!0})))}function ii(De){return Lt(mi,De)}var yi=ii(),zi=null;function Mi(De){return null}var fi=Mi;function _i(De){return null}var ma=_i,oo=ne(10366),Ja=ne(58375),Wa=ne(53124),za=ne(88258),La=ne(98675),ia=ne(25378),mo=ne(24457),va=ne(28452),Zi=ne(57953),Ta=ne(29691);function no(De){return function(qe){let{prefixCls:yt,onExpand:Ht,record:Yt,expanded:Ln,expandable:jn}=qe;const Hn=`${yt}-row-expand-icon`;return ce.createElement("button",{type:"button",onClick:dr=>{Ht(Yt,dr),dr.stopPropagation()},className:wt()(Hn,{[`${Hn}-spaced`]:!jn,[`${Hn}-expanded`]:jn&&Ln,[`${Hn}-collapsed`]:jn&&!Ln}),"aria-label":Ln?De.collapse:De.expand,"aria-expanded":Ln})}}var Na=no;function Ka(De,Ie){return"key"in De&&De.key!==void 0&&De.key!==null?De.key:De.dataIndex?Array.isArray(De.dataIndex)?De.dataIndex.join("."):De.dataIndex:Ie}function aa(De,Ie){return Ie?`${Ie}-${De}`:`${De}`}function ro(De,Ie){return typeof De=="function"?De(Ie):De}function bo(De,Ie){const qe=ro(De,Ie);return Object.prototype.toString.call(qe)==="[object Object]"?"":qe}var uo={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"},xo=uo,Ao=ne(84089),Xo=function(Ie,qe){return ce.createElement(Ao.Z,(0,Qe.Z)({},Ie,{ref:qe,icon:xo}))},co=ce.forwardRef(Xo),wo=ne(7699),os=ne(57838);function rs(De){const Ie=ce.useRef(De),qe=(0,os.Z)();return[()=>Ie.current,yt=>{Ie.current=yt,qe()}]}var us=ne(71577),Io=ne(84567),So=ne(85418),xa=ne(32983),Pa=ne(68508),io=ne(76529),go=ne(78045),Uo=ne(79870),cs=ne(72395),xs=ne(69677);function Js(De){let{value:Ie,onChange:qe,filterSearch:yt,tablePrefixCls:Ht,locale:Yt}=De;return yt?ce.createElement("div",{className:`${Ht}-filter-dropdown-search`},ce.createElement(xs.default,{prefix:ce.createElement(cs.Z,null),placeholder:Yt.filterSearchPlaceholder,onChange:qe,value:Ie,htmlSize:1,className:`${Ht}-filter-dropdown-search-input`})):null}var zs=Js,ds=ne(92389);const Ks=De=>{const{keyCode:Ie}=De;Ie===ds.Z.ENTER&&De.stopPropagation()};var Da=ce.forwardRef((De,Ie)=>ce.createElement("div",{className:De.className,onClick:qe=>qe.stopPropagation(),onKeyDown:Ks,ref:Ie},De.children));function po(De){let Ie=[];return(De||[]).forEach(qe=>{let{value:yt,children:Ht}=qe;Ie.push(yt),Ht&&(Ie=[].concat((0,Oi.Z)(Ie),(0,Oi.Z)(po(Ht))))}),Ie}function ko(De){return De.some(Ie=>{let{children:qe}=Ie;return qe})}function fs(De,Ie){return typeof Ie=="string"||typeof Ie=="number"?Ie==null?void 0:Ie.toString().toLowerCase().includes(De.trim().toLowerCase()):!1}function ss(De){let{filters:Ie,prefixCls:qe,filteredKeys:yt,filterMultiple:Ht,searchValue:Yt,filterSearch:Ln}=De;return Ie.map((jn,Hn)=>{const dr=String(jn.value);if(jn.children)return{key:dr||Hn,label:jn.text,popupClassName:`${qe}-dropdown-submenu`,children:ss({filters:jn.children,prefixCls:qe,filteredKeys:yt,filterMultiple:Ht,searchValue:Yt,filterSearch:Ln})};const Fr=Ht?Io.default:go.ZP,Sn={key:jn.value!==void 0?dr:Hn,label:ce.createElement(ce.Fragment,null,ce.createElement(Fr,{checked:yt.includes(dr)}),ce.createElement("span",null,jn.text))};return Yt.trim()?typeof Ln=="function"?Ln(Yt,jn)?Sn:null:fs(Yt,jn.text)?Sn:null:Sn})}function Rl(De){var Ie,qe;const{tablePrefixCls:yt,prefixCls:Ht,column:Yt,dropdownPrefixCls:Ln,columnKey:jn,filterMultiple:Hn,filterMode:dr="menu",filterSearch:Fr=!1,filterState:Sn,triggerFilter:Vr,locale:Yr,children:$r,getPopupContainer:ui}=De,{filterDropdownOpen:ei,onFilterDropdownOpenChange:xi,filterResetToDefaultFilteredValue:gi,defaultFilteredValue:Bi,filterDropdownVisible:na,onFilterDropdownVisibleChange:ji}=Yt,[ea,Ca]=ce.useState(!1),Ua=!!(Sn&&(!((Ie=Sn.filteredKeys)===null||Ie===void 0)&&Ie.length||Sn.forceFiltered)),Ki=Fi=>{Ca(Fi),xi==null||xi(Fi),ji==null||ji(Fi)},Ui=(qe=ei!=null?ei:na)!==null&&qe!==void 0?qe:ea,Hi=Sn==null?void 0:Sn.filteredKeys,[Ci,Qi]=rs(Hi||[]),wa=Fi=>{let{selectedKeys:Za}=Fi;Qi(Za)},qa=(Fi,Za)=>{let{node:Bo,checked:Co}=Za;wa(Hn?{selectedKeys:Fi}:{selectedKeys:Co&&Bo.key?[Bo.key]:[]})};ce.useEffect(()=>{ea&&wa({selectedKeys:Hi||[]})},[Hi]);const[_a,Ea]=ce.useState([]),ao=Fi=>{Ea(Fi)},[eo,Ho]=ce.useState(""),so=Fi=>{const{value:Za}=Fi.target;Ho(Za)};ce.useEffect(()=>{ea||Ho("")},[ea]);const es=Fi=>{const Za=Fi&&Fi.length?Fi:null;if(Za===null&&(!Sn||!Sn.filteredKeys)||(0,wo.Z)(Za,Sn==null?void 0:Sn.filteredKeys,!0))return null;Vr({column:Yt,key:jn,filteredKeys:Za})},ts=()=>{Ki(!1),es(Ci())},Va=function(){let{confirm:Fi,closeDropdown:Za}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Fi&&es([]),Za&&Ki(!1),Ho(""),Qi(gi?(Bi||[]).map(Bo=>String(Bo)):[])},Ds=function(){let{closeDropdown:Fi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Fi&&Ki(!1),es(Ci())},Fo=Fi=>{Fi&&Hi!==void 0&&Qi(Hi||[]),Ki(Fi),!Fi&&!Yt.filterDropdown&&ts()},Zo=wt()({[`${Ln}-menu-without-submenu`]:!ko(Yt.filters||[])}),Oo=Fi=>{if(Fi.target.checked){const Za=po(Yt==null?void 0:Yt.filters).map(Bo=>String(Bo));Qi(Za)}else Qi([])},Ha=Fi=>{let{filters:Za}=Fi;return(Za||[]).map((Bo,Co)=>{const ol=String(Bo.value),Bs={title:Bo.text,key:Bo.value!==void 0?ol:Co};return Bo.children&&(Bs.children=Ha({filters:Bo.children})),Bs})},Ii=Fi=>{var Za;return Object.assign(Object.assign({},Fi),{text:Fi.title,value:Fi.key,children:((Za=Fi.children)===null||Za===void 0?void 0:Za.map(Bo=>Ii(Bo)))||[]})};let da;if(typeof Yt.filterDropdown=="function")da=Yt.filterDropdown({prefixCls:`${Ln}-custom`,setSelectedKeys:Fi=>wa({selectedKeys:Fi}),selectedKeys:Ci(),confirm:Ds,clearFilters:Va,filters:Yt.filters,visible:Ui,close:()=>{Ki(!1)}});else if(Yt.filterDropdown)da=Yt.filterDropdown;else{const Fi=Ci()||[],Za=()=>(Yt.filters||[]).length===0?ce.createElement(xa.Z,{image:xa.Z.PRESENTED_IMAGE_SIMPLE,description:Yr.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):dr==="tree"?ce.createElement(ce.Fragment,null,ce.createElement(zs,{filterSearch:Fr,value:eo,onChange:so,tablePrefixCls:yt,locale:Yr}),ce.createElement("div",{className:`${yt}-filter-dropdown-tree`},Hn?ce.createElement(Io.default,{checked:Fi.length===po(Yt.filters).length,indeterminate:Fi.length>0&&Fi.length<po(Yt.filters).length,className:`${yt}-filter-dropdown-checkall`,onChange:Oo},Yr.filterCheckall):null,ce.createElement(Uo.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Hn,checkStrictly:!Hn,className:`${Ln}-menu`,onCheck:qa,checkedKeys:Fi,selectedKeys:Fi,showIcon:!1,treeData:Ha({filters:Yt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:eo.trim()?Co=>typeof Fr=="function"?Fr(eo,Ii(Co)):fs(eo,Co.title):void 0}))):ce.createElement(ce.Fragment,null,ce.createElement(zs,{filterSearch:Fr,value:eo,onChange:so,tablePrefixCls:yt,locale:Yr}),ce.createElement(Pa.default,{selectable:!0,multiple:Hn,prefixCls:`${Ln}-menu`,className:Zo,onSelect:wa,onDeselect:wa,selectedKeys:Fi,getPopupContainer:ui,openKeys:_a,onOpenChange:ao,items:ss({filters:Yt.filters||[],filterSearch:Fr,prefixCls:Ht,filteredKeys:Ci(),filterMultiple:Hn,searchValue:eo})})),Bo=()=>gi?(0,wo.Z)((Bi||[]).map(Co=>String(Co)),Fi,!0):Fi.length===0;da=ce.createElement(ce.Fragment,null,Za(),ce.createElement("div",{className:`${Ht}-dropdown-btns`},ce.createElement(us.ZP,{type:"link",size:"small",disabled:Bo(),onClick:()=>Va()},Yr.filterReset),ce.createElement(us.ZP,{type:"primary",size:"small",onClick:ts},Yr.filterConfirm)))}Yt.filterDropdown&&(da=ce.createElement(io.J,{selectable:void 0},da));const Ma=()=>ce.createElement(Da,{className:`${Ht}-dropdown`},da);let Vi;typeof Yt.filterIcon=="function"?Vi=Yt.filterIcon(Ua):Yt.filterIcon?Vi=Yt.filterIcon:Vi=ce.createElement(co,null);const{direction:To}=ce.useContext(Wa.E_);return ce.createElement("div",{className:`${Ht}-column`},ce.createElement("span",{className:`${yt}-column-title`},$r),ce.createElement(So.Z,{dropdownRender:Ma,trigger:["click"],open:Ui,onOpenChange:Fo,getPopupContainer:ui,placement:To==="rtl"?"bottomLeft":"bottomRight"},ce.createElement("span",{role:"button",tabIndex:-1,className:wt()(`${Ht}-trigger`,{active:Ua}),onClick:Fi=>{Fi.stopPropagation()}},Vi)))}var ml=Rl;function Sl(De,Ie,qe){let yt=[];return(De||[]).forEach((Ht,Yt)=>{var Ln;const jn=aa(Yt,qe);if(Ht.filters||"filterDropdown"in Ht||"onFilter"in Ht)if("filteredValue"in Ht){let Hn=Ht.filteredValue;"filterDropdown"in Ht||(Hn=(Ln=Hn==null?void 0:Hn.map(String))!==null&&Ln!==void 0?Ln:Hn),yt.push({column:Ht,key:Ka(Ht,jn),filteredKeys:Hn,forceFiltered:Ht.filtered})}else yt.push({column:Ht,key:Ka(Ht,jn),filteredKeys:Ie&&Ht.defaultFilteredValue?Ht.defaultFilteredValue:void 0,forceFiltered:Ht.filtered});"children"in Ht&&(yt=[].concat((0,Oi.Z)(yt),(0,Oi.Z)(Sl(Ht.children,Ie,jn))))}),yt}function Qa(De,Ie,qe,yt,Ht,Yt,Ln,jn){return qe.map((Hn,dr)=>{const Fr=aa(dr,jn),{filterMultiple:Sn=!0,filterMode:Vr,filterSearch:Yr}=Hn;let $r=Hn;if($r.filters||$r.filterDropdown){const ui=Ka($r,Fr),ei=yt.find(xi=>{let{key:gi}=xi;return ui===gi});$r=Object.assign(Object.assign({},$r),{title:xi=>ce.createElement(ml,{tablePrefixCls:De,prefixCls:`${De}-filter`,dropdownPrefixCls:Ie,column:$r,columnKey:ui,filterState:ei,filterMultiple:Sn,filterMode:Vr,filterSearch:Yr,triggerFilter:Yt,locale:Ht,getPopupContainer:Ln},ro(Hn.title,xi))})}return"children"in $r&&($r=Object.assign(Object.assign({},$r),{children:Qa(De,Ie,$r.children,yt,Ht,Yt,Ln,Fr)})),$r})}function wi(De){const Ie={};return De.forEach(qe=>{let{key:yt,filteredKeys:Ht,column:Yt}=qe;const{filters:Ln,filterDropdown:jn}=Yt;if(jn)Ie[yt]=Ht||null;else if(Array.isArray(Ht)){const Hn=po(Ln);Ie[yt]=Hn.filter(dr=>Ht.includes(String(dr)))}else Ie[yt]=null}),Ie}function ha(De,Ie){return Ie.reduce((qe,yt)=>{const{column:{onFilter:Ht,filters:Yt},filteredKeys:Ln}=yt;return Ht&&Ln&&Ln.length?qe.filter(jn=>Ln.some(Hn=>{const dr=po(Yt),Fr=dr.findIndex(Vr=>String(Vr)===String(Hn)),Sn=Fr!==-1?dr[Fr]:Hn;return Ht(Sn,jn)})):qe},De)}const pa=De=>De.flatMap(Ie=>"children"in Ie?[Ie].concat((0,Oi.Z)(pa(Ie.children||[]))):[Ie]);function Aa(De){let{prefixCls:Ie,dropdownPrefixCls:qe,mergedColumns:yt,onFilterChange:Ht,getPopupContainer:Yt,locale:Ln}=De;const jn=ce.useMemo(()=>pa(yt||[]),[yt]),[Hn,dr]=ce.useState(()=>Sl(jn,!0)),Fr=ce.useMemo(()=>{const $r=Sl(jn,!1);if($r.length===0)return $r;let ui=!0,ei=!0;if($r.forEach(xi=>{let{filteredKeys:gi}=xi;gi!==void 0?ui=!1:ei=!1}),ui){const xi=(jn||[]).map((gi,Bi)=>Ka(gi,aa(Bi)));return Hn.filter(gi=>{let{key:Bi}=gi;return xi.includes(Bi)}).map(gi=>{const Bi=jn[xi.findIndex(na=>na===gi.key)];return Object.assign(Object.assign({},gi),{column:Object.assign(Object.assign({},gi.column),Bi),forceFiltered:Bi.filtered})})}return $r},[jn,Hn]),Sn=ce.useMemo(()=>wi(Fr),[Fr]),Vr=$r=>{const ui=Fr.filter(ei=>{let{key:xi}=ei;return xi!==$r.key});ui.push($r),dr(ui),Ht(wi(ui),ui)};return[$r=>Qa(Ie,qe,$r,Fr,Ln,Vr,Yt),Fr,Sn]}var Vo=Aa;function Qo(De,Ie,qe){const yt=ce.useRef({});function Ht(Yt){if(!yt.current||yt.current.data!==De||yt.current.childrenColumnName!==Ie||yt.current.getRowKey!==qe){let jn=function(Hn){Hn.forEach((dr,Fr)=>{const Sn=qe(dr,Fr);Ln.set(Sn,dr),dr&&typeof dr=="object"&&Ie in dr&&jn(dr[Ie]||[])})};const Ln=new Map;jn(De),yt.current={data:De,childrenColumnName:Ie,kvMap:Ln,getRowKey:qe}}return yt.current.kvMap.get(Yt)}return[Ht]}var rl=ne(38780),cl=function(De,Ie){var qe={};for(var yt in De)Object.prototype.hasOwnProperty.call(De,yt)&&Ie.indexOf(yt)<0&&(qe[yt]=De[yt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,yt=Object.getOwnPropertySymbols(De);Ht<yt.length;Ht++)Ie.indexOf(yt[Ht])<0&&Object.prototype.propertyIsEnumerable.call(De,yt[Ht])&&(qe[yt[Ht]]=De[yt[Ht]]);return qe};const Cl=10;function vo(De,Ie){const qe={current:De.current,pageSize:De.pageSize};return Object.keys(Ie&&typeof Ie=="object"?Ie:{}).forEach(Ht=>{const Yt=De[Ht];typeof Yt!="function"&&(qe[Ht]=Yt)}),qe}function $s(De,Ie,qe){const yt=qe&&typeof qe=="object"?qe:{},{total:Ht=0}=yt,Yt=cl(yt,["total"]),[Ln,jn]=(0,ce.useState)(()=>({current:"defaultCurrent"in Yt?Yt.defaultCurrent:1,pageSize:"defaultPageSize"in Yt?Yt.defaultPageSize:Cl})),Hn=(0,rl.Z)(Ln,Yt,{total:Ht>0?Ht:De}),dr=Math.ceil((Ht||De)/Hn.pageSize);Hn.current>dr&&(Hn.current=dr||1);const Fr=(Vr,Yr)=>{jn({current:Vr!=null?Vr:1,pageSize:Yr||Hn.pageSize})},Sn=(Vr,Yr)=>{var $r;qe&&(($r=qe.onChange)===null||$r===void 0||$r.call(qe,Vr,Yr)),Fr(Vr,Yr),Ie(Vr,Yr||(Hn==null?void 0:Hn.pageSize))};return qe===!1?[{},()=>{}]:[Object.assign(Object.assign({},Hn),{onChange:Sn}),Fr]}var Pl=$s,Su=ne(42922),Gl=ne(29873),wl=ne(97153),il=ne(83898),ql=ne(5663);const dl={},eu="SELECT_ALL",is="SELECT_INVERT",Eo="SELECT_NONE",qo=[],Ss=(De,Ie)=>{let qe=[];return(Ie||[]).forEach(yt=>{qe.push(yt),yt&&typeof yt=="object"&&De in yt&&(qe=[].concat((0,Oi.Z)(qe),(0,Oi.Z)(Ss(De,yt[De]))))}),qe};var al=(De,Ie)=>{const{preserveSelectedRowKeys:qe,selectedRowKeys:yt,defaultSelectedRowKeys:Ht,getCheckboxProps:Yt,onChange:Ln,onSelect:jn,onSelectAll:Hn,onSelectInvert:dr,onSelectNone:Fr,onSelectMultiple:Sn,columnWidth:Vr,type:Yr,selections:$r,fixed:ui,renderCell:ei,hideSelectAll:xi,checkStrictly:gi=!0}=Ie||{},{prefixCls:Bi,data:na,pageData:ji,getRecordByKey:ea,getRowKey:Ca,expandType:Ua,childrenColumnName:Ki,locale:Ui,getPopupContainer:Hi}=De,[Ci,Qi]=(0,ql.Z)(yt||Ht||qo,{value:yt}),wa=ce.useRef(new Map),qa=(0,ce.useCallback)(Ii=>{if(qe){const da=new Map;Ii.forEach(Ma=>{let Vi=ea(Ma);!Vi&&wa.current.has(Ma)&&(Vi=wa.current.get(Ma)),da.set(Ma,Vi)}),wa.current=da}},[ea,qe]);ce.useEffect(()=>{qa(Ci)},[Ci]);const{keyEntities:_a}=(0,ce.useMemo)(()=>{if(gi)return{keyEntities:null};let Ii=na;if(qe){const da=new Set(na.map((Vi,To)=>Ca(Vi,To))),Ma=Array.from(wa.current).reduce((Vi,To)=>{let[Fi,Za]=To;return da.has(Fi)?Vi:Vi.concat(Za)},[]);Ii=[].concat((0,Oi.Z)(Ii),(0,Oi.Z)(Ma))}return(0,il.I8)(Ii,{externalGetKey:Ca,childrenPropName:Ki})},[na,Ca,gi,Ki,qe]),Ea=(0,ce.useMemo)(()=>Ss(Ki,ji),[Ki,ji]),ao=(0,ce.useMemo)(()=>{const Ii=new Map;return Ea.forEach((da,Ma)=>{const Vi=Ca(da,Ma),To=(Yt?Yt(da):null)||{};Ii.set(Vi,To)}),Ii},[Ea,Ca,Yt]),eo=(0,ce.useCallback)(Ii=>{var da;return!!(!((da=ao.get(Ca(Ii)))===null||da===void 0)&&da.disabled)},[ao,Ca]),[Ho,so]=(0,ce.useMemo)(()=>{if(gi)return[Ci||[],[]];const{checkedKeys:Ii,halfCheckedKeys:da}=(0,wl.S)(Ci,!0,_a,eo);return[Ii||[],da]},[Ci,gi,_a,eo]),es=(0,ce.useMemo)(()=>{const Ii=Yr==="radio"?Ho.slice(0,1):Ho;return new Set(Ii)},[Ho,Yr]),ts=(0,ce.useMemo)(()=>Yr==="radio"?new Set:new Set(so),[so,Yr]),[Va,Ds]=(0,ce.useState)(null);ce.useEffect(()=>{Ie||Qi(qo)},[!!Ie]);const Fo=(0,ce.useCallback)((Ii,da)=>{let Ma,Vi;qa(Ii),qe?(Ma=Ii,Vi=Ii.map(To=>wa.current.get(To))):(Ma=[],Vi=[],Ii.forEach(To=>{const Fi=ea(To);Fi!==void 0&&(Ma.push(To),Vi.push(Fi))})),Qi(Ma),Ln==null||Ln(Ma,Vi,{type:da})},[Qi,ea,Ln,qe]),Zo=(0,ce.useCallback)((Ii,da,Ma,Vi)=>{if(jn){const To=Ma.map(Fi=>ea(Fi));jn(ea(Ii),da,To,Vi)}Fo(Ma,"single")},[jn,ea,Fo]),Oo=(0,ce.useMemo)(()=>!$r||xi?null:($r===!0?[eu,is,Eo]:$r).map(da=>da===eu?{key:"all",text:Ui.selectionAll,onSelect(){Fo(na.map((Ma,Vi)=>Ca(Ma,Vi)).filter(Ma=>{const Vi=ao.get(Ma);return!(Vi!=null&&Vi.disabled)||es.has(Ma)}),"all")}}:da===is?{key:"invert",text:Ui.selectInvert,onSelect(){const Ma=new Set(es);ji.forEach((To,Fi)=>{const Za=Ca(To,Fi),Bo=ao.get(Za);Bo!=null&&Bo.disabled||(Ma.has(Za)?Ma.delete(Za):Ma.add(Za))});const Vi=Array.from(Ma);dr&&dr(Vi),Fo(Vi,"invert")}}:da===Eo?{key:"none",text:Ui.selectNone,onSelect(){Fr==null||Fr(),Fo(Array.from(es).filter(Ma=>{const Vi=ao.get(Ma);return Vi==null?void 0:Vi.disabled}),"none")}}:da).map(da=>Object.assign(Object.assign({},da),{onSelect:function(){for(var Ma,Vi,To=arguments.length,Fi=new Array(To),Za=0;Za<To;Za++)Fi[Za]=arguments[Za];(Vi=da.onSelect)===null||Vi===void 0||(Ma=Vi).call.apply(Ma,[da].concat(Fi)),Ds(null)}})),[$r,es,ji,Ca,dr,Fo]);return[(0,ce.useCallback)(Ii=>{var da;if(!Ie)return Ii.filter(Lo=>Lo!==dl);let Ma=(0,Oi.Z)(Ii);const Vi=new Set(es),To=Ea.map(Ca).filter(Lo=>!ao.get(Lo).disabled),Fi=To.every(Lo=>Vi.has(Lo)),Za=To.some(Lo=>Vi.has(Lo)),Bo=()=>{const Lo=[];Fi?To.forEach(ns=>{Vi.delete(ns),Lo.push(ns)}):To.forEach(ns=>{Vi.has(ns)||(Vi.add(ns),Lo.push(ns))});const No=Array.from(Vi);Hn==null||Hn(!Fi,No.map(ns=>ea(ns)),Lo.map(ns=>ea(ns))),Fo(No,"all"),Ds(null)};let Co;if(Yr!=="radio"){let Lo;if(Oo){const lo={getPopupContainer:Hi,items:Oo.map((Ls,Ws)=>{const{key:Zs,text:Ml,onSelect:Es}=Ls;return{key:Zs!=null?Zs:Ws,onClick:()=>{Es==null||Es(To)},label:Ml}})};Lo=ce.createElement("div",{className:`${Bi}-selection-extra`},ce.createElement(So.Z,{menu:lo,getPopupContainer:Hi},ce.createElement("span",null,ce.createElement(Su.Z,null))))}const No=Ea.map((lo,Ls)=>{const Ws=Ca(lo,Ls),Zs=ao.get(Ws)||{};return Object.assign({checked:Vi.has(Ws)},Zs)}).filter(lo=>{let{disabled:Ls}=lo;return Ls}),ns=!!No.length&&No.length===Ea.length,$a=ns&&No.every(lo=>{let{checked:Ls}=lo;return Ls}),Os=ns&&No.some(lo=>{let{checked:Ls}=lo;return Ls});Co=!xi&&ce.createElement("div",{className:`${Bi}-selection`},ce.createElement(Io.default,{checked:ns?$a:!!Ea.length&&Fi,indeterminate:ns?!$a&&Os:!Fi&&Za,onChange:Bo,disabled:Ea.length===0||ns,"aria-label":Lo?"Custom selection":"Select all",skipGroup:!0}),Lo)}let ol;Yr==="radio"?ol=(Lo,No,ns)=>{const $a=Ca(No,ns),Os=Vi.has($a);return{node:ce.createElement(go.ZP,Object.assign({},ao.get($a),{checked:Os,onClick:lo=>lo.stopPropagation(),onChange:lo=>{Vi.has($a)||Zo($a,!0,[$a],lo.nativeEvent)}})),checked:Os}}:ol=(Lo,No,ns)=>{var $a;const Os=Ca(No,ns),lo=Vi.has(Os),Ls=ts.has(Os),Ws=ao.get(Os);let Zs;return Ua==="nest"?Zs=Ls:Zs=($a=Ws==null?void 0:Ws.indeterminate)!==null&&$a!==void 0?$a:Ls,{node:ce.createElement(Io.default,Object.assign({},Ws,{indeterminate:Zs,checked:lo,skipGroup:!0,onClick:Ml=>Ml.stopPropagation(),onChange:Ml=>{let{nativeEvent:Es}=Ml;const{shiftKey:Al}=Es;let Ms=-1,js=-1;if(Al&&gi){const Us=new Set([Va,Os]);To.some((As,ms)=>{if(Us.has(As))if(Ms===-1)Ms=ms;else return js=ms,!0;return!1})}if(js!==-1&&Ms!==js&&gi){const Us=To.slice(Ms,js+1),As=[];lo?Us.forEach(ls=>{Vi.has(ls)&&(As.push(ls),Vi.delete(ls))}):Us.forEach(ls=>{Vi.has(ls)||(As.push(ls),Vi.add(ls))});const ms=Array.from(Vi);Sn==null||Sn(!lo,ms.map(ls=>ea(ls)),As.map(ls=>ea(ls))),Fo(ms,"multiple")}else{const Us=Ho;if(gi){const As=lo?(0,Gl._5)(Us,Os):(0,Gl.L0)(Us,Os);Zo(Os,!lo,As,Es)}else{const As=(0,wl.S)([].concat((0,Oi.Z)(Us),[Os]),!0,_a,eo),{checkedKeys:ms,halfCheckedKeys:ls}=As;let Xl=ms;if(lo){const wu=new Set(ms);wu.delete(Os),Xl=(0,wl.S)(Array.from(wu),{checked:!1,halfCheckedKeys:ls},_a,eo).checkedKeys}Zo(Os,!lo,Xl,Es)}}Ds(lo?null:Os)}})),checked:lo}};const Bs=(Lo,No,ns)=>{const{node:$a,checked:Os}=ol(Lo,No,ns);return ei?ei(Os,No,ns,$a):$a};if(!Ma.includes(dl))if(Ma.findIndex(Lo=>{var No;return((No=Lo[ua])===null||No===void 0?void 0:No.columnType)==="EXPAND_COLUMN"})===0){const[Lo,...No]=Ma;Ma=[Lo,dl].concat((0,Oi.Z)(No))}else Ma=[dl].concat((0,Oi.Z)(Ma));const El=Ma.indexOf(dl);Ma=Ma.filter((Lo,No)=>Lo!==dl||No===El);const ni=Ma[El-1],zl=Ma[El+1];let ws=ui;ws===void 0&&((zl==null?void 0:zl.fixed)!==void 0?ws=zl.fixed:(ni==null?void 0:ni.fixed)!==void 0&&(ws=ni.fixed)),ws&&ni&&((da=ni[ua])===null||da===void 0?void 0:da.columnType)==="EXPAND_COLUMN"&&ni.fixed===void 0&&(ni.fixed=ws);const fl=wt()(`${Bi}-selection-col`,{[`${Bi}-selection-col-with-dropdown`]:$r&&Yr==="checkbox"}),yl={fixed:ws,width:Vr,className:`${Bi}-selection-column`,title:Ie.columnTitle||Co,render:Bs,onCell:Ie.onCell,[ua]:{className:fl}};return Ma.map(Lo=>Lo===dl?yl:Lo)},[Ca,Ea,Ie,Ho,es,ts,Vr,Oo,Ua,Va,ao,Sn,Zo,eo]),es]},Ps=ne(33463),Kl=ne(28575),Zu=ne(83062);const fu="ascend",Tu="descend";function Pu(De){return typeof De.sorter=="object"&&typeof De.sorter.multiple=="number"?De.sorter.multiple:!1}function tu(De){return typeof De=="function"?De:De&&typeof De=="object"&&De.compare?De.compare:!1}function nu(De,Ie){return Ie?De[De.indexOf(Ie)+1]:De[0]}function Iu(De,Ie,qe){let yt=[];function Ht(Yt,Ln){yt.push({column:Yt,key:Ka(Yt,Ln),multiplePriority:Pu(Yt),sortOrder:Yt.sortOrder})}return(De||[]).forEach((Yt,Ln)=>{const jn=aa(Ln,qe);Yt.children?("sortOrder"in Yt&&Ht(Yt,jn),yt=[].concat((0,Oi.Z)(yt),(0,Oi.Z)(Iu(Yt.children,Ie,jn)))):Yt.sorter&&("sortOrder"in Yt?Ht(Yt,jn):Ie&&Yt.defaultSortOrder&&yt.push({column:Yt,key:Ka(Yt,jn),multiplePriority:Pu(Yt),sortOrder:Yt.defaultSortOrder}))}),yt}function Nu(De,Ie,qe,yt,Ht,Yt,Ln,jn){return(Ie||[]).map((Hn,dr)=>{const Fr=aa(dr,jn);let Sn=Hn;if(Sn.sorter){const Vr=Sn.sortDirections||Ht,Yr=Sn.showSorterTooltip===void 0?Ln:Sn.showSorterTooltip,$r=Ka(Sn,Fr),ui=qe.find(Ua=>{let{key:Ki}=Ua;return Ki===$r}),ei=ui?ui.sortOrder:null,xi=nu(Vr,ei);let gi;if(Hn.sortIcon)gi=Hn.sortIcon({sortOrder:ei});else{const Ua=Vr.includes(fu)&&ce.createElement(Kl.Z,{className:wt()(`${De}-column-sorter-up`,{active:ei===fu})}),Ki=Vr.includes(Tu)&&ce.createElement(Ps.Z,{className:wt()(`${De}-column-sorter-down`,{active:ei===Tu})});gi=ce.createElement("span",{className:wt()(`${De}-column-sorter`,{[`${De}-column-sorter-full`]:!!(Ua&&Ki)})},ce.createElement("span",{className:`${De}-column-sorter-inner`,"aria-hidden":"true"},Ua,Ki))}const{cancelSort:Bi,triggerAsc:na,triggerDesc:ji}=Yt||{};let ea=Bi;xi===Tu?ea=ji:xi===fu&&(ea=na);const Ca=typeof Yr=="object"?Yr:{title:ea};Sn=Object.assign(Object.assign({},Sn),{className:wt()(Sn.className,{[`${De}-column-sort`]:ei}),title:Ua=>{const Ki=ce.createElement("div",{className:`${De}-column-sorters`},ce.createElement("span",{className:`${De}-column-title`},ro(Hn.title,Ua)),gi);return Yr?ce.createElement(Zu.Z,Object.assign({},Ca),Ki):Ki},onHeaderCell:Ua=>{const Ki=Hn.onHeaderCell&&Hn.onHeaderCell(Ua)||{},Ui=Ki.onClick,Hi=Ki.onKeyDown;Ki.onClick=wa=>{yt({column:Hn,key:$r,sortOrder:xi,multiplePriority:Pu(Hn)}),Ui==null||Ui(wa)},Ki.onKeyDown=wa=>{wa.keyCode===ds.Z.ENTER&&(yt({column:Hn,key:$r,sortOrder:xi,multiplePriority:Pu(Hn)}),Hi==null||Hi(wa))};const Ci=bo(Hn.title,{}),Qi=Ci==null?void 0:Ci.toString();return ei?Ki["aria-sort"]=ei==="ascend"?"ascending":"descending":Ki["aria-label"]=Qi||"",Ki.className=wt()(Ki.className,`${De}-column-has-sorters`),Ki.tabIndex=0,Hn.ellipsis&&(Ki.title=(Ci!=null?Ci:"").toString()),Ki}})}return"children"in Sn&&(Sn=Object.assign(Object.assign({},Sn),{children:Nu(De,Sn.children,qe,yt,Ht,Yt,Ln,Fr)})),Sn})}function Do(De){const{column:Ie,sortOrder:qe}=De;return{column:Ie,order:qe,field:Ie.dataIndex,columnKey:Ie.key}}function fo(De){const Ie=De.filter(qe=>{let{sortOrder:yt}=qe;return yt}).map(Do);return Ie.length===0&&De.length?Object.assign(Object.assign({},Do(De[De.length-1])),{column:void 0}):Ie.length<=1?Ie[0]||{}:Ie}function Hs(De,Ie,qe){const yt=Ie.slice().sort((Ln,jn)=>jn.multiplePriority-Ln.multiplePriority),Ht=De.slice(),Yt=yt.filter(Ln=>{let{column:{sorter:jn},sortOrder:Hn}=Ln;return tu(jn)&&Hn});return Yt.length?Ht.sort((Ln,jn)=>{for(let Hn=0;Hn<Yt.length;Hn+=1){const dr=Yt[Hn],{column:{sorter:Fr},sortOrder:Sn}=dr,Vr=tu(Fr);if(Vr&&Sn){const Yr=Vr(Ln,jn,Sn);if(Yr!==0)return Sn===fu?Yr:-Yr}}return 0}).map(Ln=>{const jn=Ln[qe];return jn?Object.assign(Object.assign({},Ln),{[qe]:Hs(jn,Ie,qe)}):Ln}):Ht}function gl(De){let{prefixCls:Ie,mergedColumns:qe,onSorterChange:yt,sortDirections:Ht,tableLocale:Yt,showSorterTooltip:Ln}=De;const[jn,Hn]=ce.useState(Iu(qe,!0)),dr=ce.useMemo(()=>{let $r=!0;const ui=Iu(qe,!1);if(!ui.length)return jn;const ei=[];function xi(Bi){$r?ei.push(Bi):ei.push(Object.assign(Object.assign({},Bi),{sortOrder:null}))}let gi=null;return ui.forEach(Bi=>{gi===null?(xi(Bi),Bi.sortOrder&&(Bi.multiplePriority===!1?$r=!1:gi=!0)):(gi&&Bi.multiplePriority!==!1||($r=!1),xi(Bi))}),ei},[qe,jn]),Fr=ce.useMemo(()=>{const $r=dr.map(ui=>{let{column:ei,sortOrder:xi}=ui;return{column:ei,order:xi}});return{sortColumns:$r,sortColumn:$r[0]&&$r[0].column,sortOrder:$r[0]&&$r[0].order}},[dr]);function Sn($r){let ui;$r.multiplePriority===!1||!dr.length||dr[0].multiplePriority===!1?ui=[$r]:ui=[].concat((0,Oi.Z)(dr.filter(ei=>{let{key:xi}=ei;return xi!==$r.key})),[$r]),Hn(ui),yt(fo(ui),ui)}return[$r=>Nu(Ie,$r,dr,Sn,Ht,Yt,Ln),dr,Fr,()=>fo(dr)]}function ho(De,Ie){return De.map(qe=>{const yt=Object.assign({},qe);return yt.title=ro(qe.title,Ie),"children"in yt&&(yt.children=ho(yt.children,Ie)),yt})}function Wo(De){return[ce.useCallback(qe=>ho(qe,De),[De])]}var Ko=Rn((De,Ie)=>{const{_renderTimes:qe}=De,{_renderTimes:yt}=Ie;return qe!==yt}),Cs=ii((De,Ie)=>{const{_renderTimes:qe}=De,{_renderTimes:yt}=Ie;return qe!==yt}),qs=ne(84780),Hl=ne(14747),_l=ne(67968),ju=ne(45503),Md=De=>{const{componentCls:Ie}=De,qe=`${De.lineWidth}px ${De.lineType} ${De.tableBorderColor}`,yt=(Ht,Yt,Ln)=>({[`&${Ie}-${Ht}`]:{[`> ${Ie}-container`]:{[`> ${Ie}-content, > ${Ie}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ie}-expanded-row-fixed`]:{margin:`-${Yt}px -${Ln+De.lineWidth}px`}}}}}});return{[`${Ie}-wrapper`]:{[`${Ie}${Ie}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ie}-title`]:{border:qe,borderBottom:0},[`> ${Ie}-container`]:{borderInlineStart:qe,borderTop:qe,[`
> ${Ie}-content,
> ${Ie}-header,
> ${Ie}-body,
> ${Ie}-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:qe},"> thead":{"> tr:not(:last-child) > th":{borderBottom:qe},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ie}-cell-fix-right-first::after`]:{borderInlineEnd:qe}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ie}-expanded-row-fixed`]:{margin:`-${De.tablePaddingVertical}px -${De.tablePaddingHorizontal+De.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:De.lineWidth,bottom:0,borderInlineEnd:qe,content:'""'}}}}}},[`&${Ie}-scroll-horizontal`]:{[`> ${Ie}-container > ${Ie}-body`]:{"> table > tbody":{[`
> tr${Ie}-expanded-row,
> tr${Ie}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},yt("middle",De.tablePaddingVerticalMiddle,De.tablePaddingHorizontalMiddle)),yt("small",De.tablePaddingVerticalSmall,De.tablePaddingHorizontalSmall)),{[`> ${Ie}-footer`]:{border:qe,borderTop:0}}),[`${Ie}-cell`]:{[`${Ie}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${De.lineWidth}px 0 ${De.lineWidth}px ${De.tableHeaderBg}`}},[`${Ie}-bordered ${Ie}-cell-scrollbar`]:{borderInlineEnd:qe}}}},Yc=De=>{const{componentCls:Ie}=De;return{[`${Ie}-wrapper`]:{[`${Ie}-cell-ellipsis`]:Object.assign(Object.assign({},Hl.vS),{wordBreak:"keep-all",[`
&${Ie}-cell-fix-left-last,
&${Ie}-cell-fix-right-first
`]:{overflow:"visible",[`${Ie}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ie}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ad=De=>{const{componentCls:Ie}=De;return{[`${Ie}-wrapper`]:{[`${Ie}-tbody > tr${Ie}-placeholder`]:{textAlign:"center",color:De.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:De.colorBgContainer}}}}},Ac=ne(49867),Jc=De=>{const{componentCls:Ie,antCls:qe,controlInteractiveSize:yt,motionDurationSlow:Ht,lineWidth:Yt,paddingXS:Ln,lineType:jn,tableBorderColor:Hn,tableExpandIconBg:dr,tableExpandColumnWidth:Fr,borderRadius:Sn,fontSize:Vr,fontSizeSM:Yr,lineHeight:$r,tablePaddingVertical:ui,tablePaddingHorizontal:ei,tableExpandedRowBg:xi,paddingXXS:gi}=De,Bi=yt/2-Yt,na=Bi*2+Yt*3,ji=`${Yt}px ${jn} ${Hn}`,ea=gi-Yt;return{[`${Ie}-wrapper`]:{[`${Ie}-expand-icon-col`]:{width:Fr},[`${Ie}-row-expand-icon-cell`]:{textAlign:"center",[`${Ie}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ie}-row-indent`]:{height:1,float:"left"},[`${Ie}-row-expand-icon`]:Object.assign(Object.assign({},(0,Ac.N)(De)),{position:"relative",float:"left",boxSizing:"border-box",width:na,height:na,padding:0,color:"inherit",lineHeight:`${na}px`,background:dr,border:ji,borderRadius:Sn,transform:`scale(${yt/na})`,transition:`all ${Ht}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Ht} ease-out`,content:'""'},"&::before":{top:Bi,insetInlineEnd:ea,insetInlineStart:ea,height:Yt},"&::after":{top:ea,bottom:ea,insetInlineStart:Bi,width:Yt,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"}}),[`${Ie}-row-indent + ${Ie}-row-expand-icon`]:{marginTop:(Vr*$r-Yt*3)/2-Math.ceil((Yr*1.4-Yt*3)/2),marginInlineEnd:Ln},[`tr${Ie}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:xi}},[`${qe}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ie}-expanded-row-fixed`]:{position:"relative",margin:`-${ui}px -${ei}px`,padding:`${ui}px ${ei}px`}}}},Dc=De=>{const{componentCls:Ie,antCls:qe,iconCls:yt,tableFilterDropdownWidth:Ht,tableFilterDropdownSearchWidth:Yt,paddingXXS:Ln,paddingXS:jn,colorText:Hn,lineWidth:dr,lineType:Fr,tableBorderColor:Sn,tableHeaderIconColor:Vr,fontSizeSM:Yr,tablePaddingHorizontal:$r,borderRadius:ui,motionDurationSlow:ei,colorTextDescription:xi,colorPrimary:gi,tableHeaderFilterActiveBg:Bi,colorTextDisabled:na,tableFilterDropdownBg:ji,tableFilterDropdownHeight:ea,controlItemBgHover:Ca,controlItemBgActive:Ua,boxShadowSecondary:Ki,filterDropdownMenuBg:Ui}=De,Hi=`${qe}-dropdown`,Ci=`${Ie}-filter-dropdown`,Qi=`${qe}-tree`,wa=`${dr}px ${Fr} ${Sn}`;return[{[`${Ie}-wrapper`]:{[`${Ie}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ie}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Ln,marginInline:`${Ln}px ${-$r/2}px`,padding:`0 ${Ln}px`,color:Vr,fontSize:Yr,borderRadius:ui,cursor:"pointer",transition:`all ${ei}`,"&:hover":{color:xi,background:Bi},"&.active":{color:gi}}}},{[`${qe}-dropdown`]:{[Ci]:Object.assign(Object.assign({},(0,Hl.Wf)(De)),{minWidth:Ht,backgroundColor:ji,borderRadius:ui,boxShadow:Ki,overflow:"hidden",[`${Hi}-menu`]:{maxHeight:ea,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Ui,"&:empty::after":{display:"block",padding:`${jn}px 0`,color:na,fontSize:Yr,textAlign:"center",content:'"Not Found"'}},[`${Ci}-tree`]:{paddingBlock:`${jn}px 0`,paddingInline:jn,[Qi]:{padding:0},[`${Qi}-treenode ${Qi}-node-content-wrapper:hover`]:{backgroundColor:Ca},[`${Qi}-treenode-checkbox-checked ${Qi}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Ua}}},[`${Ci}-search`]:{padding:jn,borderBottom:wa,"&-input":{input:{minWidth:Yt},[yt]:{color:na}}},[`${Ci}-checkall`]:{width:"100%",marginBottom:Ln,marginInlineStart:Ln},[`${Ci}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${jn-dr}px ${jn}px`,overflow:"hidden",borderTop:wa}})}},{[`${qe}-dropdown ${Ci}, ${Ci}-submenu`]:{[`${qe}-checkbox-wrapper + span`]:{paddingInlineStart:jn,color:Hn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Uu=De=>{const{componentCls:Ie,lineWidth:qe,colorSplit:yt,motionDurationSlow:Ht,zIndexTableFixed:Yt,tableBg:Ln,zIndexTableSticky:jn}=De,Hn=yt;return{[`${Ie}-wrapper`]:{[`
${Ie}-cell-fix-left,
${Ie}-cell-fix-right
`]:{position:"sticky !important",zIndex:Yt,background:Ln},[`
${Ie}-cell-fix-left-first::after,
${Ie}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-qe,width:30,transform:"translateX(100%)",transition:`box-shadow ${Ht}`,content:'""',pointerEvents:"none"},[`${Ie}-cell-fix-left-all::after`]:{display:"none"},[`
${Ie}-cell-fix-right-first::after,
${Ie}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-qe,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Ht}`,content:'""',pointerEvents:"none"},[`${Ie}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:jn+1,width:30,transition:`box-shadow ${Ht}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ie}-ping-left`]:{[`&:not(${Ie}-has-fix-left) ${Ie}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Hn}`}},[`
${Ie}-cell-fix-left-first::after,
${Ie}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Hn}`},[`${Ie}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ie}-ping-right`]:{[`&:not(${Ie}-has-fix-right) ${Ie}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Hn}`}},[`
${Ie}-cell-fix-right-first::after,
${Ie}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Hn}`}}}}},lc=De=>{const{componentCls:Ie,antCls:qe}=De;return{[`${Ie}-wrapper`]:{[`${Ie}-pagination${qe}-pagination`]:{margin:`${De.margin}px 0`},[`${Ie}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:De.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ou=De=>{const{componentCls:Ie,tableRadius:qe}=De;return{[`${Ie}-wrapper`]:{[Ie]:{[`${Ie}-title, ${Ie}-header`]:{borderRadius:`${qe}px ${qe}px 0 0`},[`${Ie}-title + ${Ie}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ie}-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:qe,borderStartEndRadius:qe,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:qe},"> *:last-child":{borderStartEndRadius:qe}}},"&-footer":{borderRadius:`0 0 ${qe}px ${qe}px`}}}}},$c=De=>{const{componentCls:Ie}=De;return{[`${Ie}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ie}-pagination-left`]:{justifyContent:"flex-end"},[`${Ie}-pagination-right`]:{justifyContent:"flex-start"},[`${Ie}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ie}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ie}-row-indent`]:{float:"right"}}}}},Yo=De=>{const{componentCls:Ie,antCls:qe,iconCls:yt,fontSizeIcon:Ht,padding:Yt,paddingXS:Ln,tableHeaderIconColor:jn,tableHeaderIconColorHover:Hn,tableSelectionColumnWidth:dr}=De;return{[`${Ie}-wrapper`]:{[`${Ie}-selection-col`]:{width:dr,[`&${Ie}-selection-col-with-dropdown`]:{width:dr+Ht+Yt/4}},[`${Ie}-bordered ${Ie}-selection-col`]:{width:dr+Ln*2,[`&${Ie}-selection-col-with-dropdown`]:{width:dr+Ht+Yt/4+Ln*2}},[`
table tr th${Ie}-selection-column,
table tr td${Ie}-selection-column
`]:{paddingInlineEnd:De.paddingXS,paddingInlineStart:De.paddingXS,textAlign:"center",[`${qe}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ie}-selection-column${Ie}-cell-fix-left`]:{zIndex:De.zIndexTableFixed+1},[`table tr th${Ie}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ie}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ie}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${De.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${De.tablePaddingHorizontal/4}px`,[yt]:{color:jn,fontSize:Ht,verticalAlign:"baseline","&:hover":{color:Hn}}}}}},iu=De=>{const{componentCls:Ie}=De,qe=(yt,Ht,Yt,Ln)=>({[`${Ie}${Ie}-${yt}`]:{fontSize:Ln,[`
${Ie}-title,
${Ie}-footer,
${Ie}-cell,
${Ie}-thead > tr > th,
${Ie}-tbody > tr > th,
${Ie}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${Ht}px ${Yt}px`},[`${Ie}-filter-trigger`]:{marginInlineEnd:`-${Yt/2}px`},[`${Ie}-expanded-row-fixed`]:{margin:`-${Ht}px -${Yt}px`},[`${Ie}-tbody`]:{[`${Ie}-wrapper:only-child ${Ie}`]:{marginBlock:`-${Ht}px`,marginInline:`${De.tableExpandColumnWidth-Yt}px -${Yt}px`}},[`${Ie}-selection-column`]:{paddingInlineStart:`${Yt/4}px`}}});return{[`${Ie}-wrapper`]:Object.assign(Object.assign({},qe("middle",De.tablePaddingVerticalMiddle,De.tablePaddingHorizontalMiddle,De.tableFontSizeMiddle)),qe("small",De.tablePaddingVerticalSmall,De.tablePaddingHorizontalSmall,De.tableFontSizeSmall))}},qc=De=>{const{componentCls:Ie,marginXXS:qe,fontSizeIcon:yt,tableHeaderIconColor:Ht,tableHeaderIconColorHover:Yt}=De;return{[`${Ie}-wrapper`]:{[`${Ie}-thead th${Ie}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${De.motionDurationSlow}`,"&:hover":{background:De.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:De.colorPrimary},[`
&${Ie}-cell-fix-left:hover,
&${Ie}-cell-fix-right:hover
`]:{background:De.tableFixedHeaderSortActiveBg}},[`${Ie}-thead th${Ie}-column-sort`]:{background:De.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ie}-column-sort`]:{background:De.tableBodySortBg},[`${Ie}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ie}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ie}-column-sorter`]:{marginInlineStart:qe,color:Ht,fontSize:0,transition:`color ${De.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:yt,"&.active":{color:De.colorPrimary}},[`${Ie}-column-sorter-up + ${Ie}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ie}-column-sorters:hover ${Ie}-column-sorter`]:{color:Yt}}}},Ru=De=>{const{componentCls:Ie,opacityLoading:qe,tableScrollThumbBg:yt,tableScrollThumbBgHover:Ht,tableScrollThumbSize:Yt,tableScrollBg:Ln,zIndexTableSticky:jn,stickyScrollBarBorderRadius:Hn}=De,dr=`${De.lineWidth}px ${De.lineType} ${De.tableBorderColor}`;return{[`${Ie}-wrapper`]:{[`${Ie}-sticky`]:{"&-holder":{position:"sticky",zIndex:jn,background:De.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Yt}px !important`,zIndex:jn,display:"flex",alignItems:"center",background:Ln,borderTop:dr,opacity:qe,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Yt,backgroundColor:yt,borderRadius:Hn,transition:`all ${De.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Ht}}}}}}},uc=De=>{const{componentCls:Ie,lineWidth:qe,tableBorderColor:yt}=De,Ht=`${qe}px ${De.lineType} ${yt}`;return{[`${Ie}-wrapper`]:{[`${Ie}-summary`]:{position:"relative",zIndex:De.zIndexTableFixed,background:De.tableBg,"> tr":{"> th, > td":{borderBottom:Ht}}},[`div${Ie}-summary`]:{boxShadow:`0 -${qe}px 0 ${yt}`}}}},nd=De=>{const{componentCls:Ie}=De,qe=`${De.lineWidth}px ${De.lineType} ${De.tableBorderColor}`,yt=`${Ie}-expanded-row-cell`;return{[`${Ie}-wrapper`]:{[`${Ie}-tbody-virtual`]:{[`${Ie}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ie}-cell`]:{borderBottom:qe},[`${Ie}-expanded-row`]:{[`${yt}${yt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${De.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ie}-bordered`]:{[`${Ie}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:qe,position:"absolute"},[`${Ie}-cell`]:{borderInlineEnd:qe,[`&${Ie}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-De.lineWidth,borderInlineStart:qe}}}}}}};const Bc=De=>{const{componentCls:Ie,fontWeightStrong:qe,tablePaddingVertical:yt,tablePaddingHorizontal:Ht,lineWidth:Yt,lineType:Ln,tableBorderColor:jn,tableFontSize:Hn,tableBg:dr,tableRadius:Fr,tableHeaderTextColor:Sn,motionDurationMid:Vr,tableHeaderBg:Yr,tableHeaderCellSplitColor:$r,tableRowHoverBg:ui,tableSelectedRowBg:ei,tableSelectedRowHoverBg:xi,tableFooterTextColor:gi,tableFooterBg:Bi,paddingContentVerticalLG:na}=De,ji=`${Yt}px ${Ln} ${jn}`;return{[`${Ie}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Hl.dF)()),{[Ie]:Object.assign(Object.assign({},(0,Hl.Wf)(De)),{fontSize:Hn,background:dr,borderRadius:`${Fr}px ${Fr}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Fr}px ${Fr}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Ie}-cell,
${Ie}-thead > tr > th,
${Ie}-tbody > tr > th,
${Ie}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${na}px ${Ht}px`,overflowWrap:"break-word"},[`${Ie}-title`]:{padding:`${yt}px ${Ht}px`},[`${Ie}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Sn,fontWeight:qe,textAlign:"start",background:Yr,borderBottom:ji,transition:`background ${Vr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ie}-selection-column):not(${Ie}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:$r,transform:"translateY(-50%)",transition:`background-color ${Vr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ie}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Vr}, border-color ${Vr}`,borderBottom:ji,[`
> ${Ie}-wrapper:only-child,
> ${Ie}-expanded-row-fixed > ${Ie}-wrapper:only-child
`]:{[Ie]:{marginBlock:`-${yt}px`,marginInline:`${De.tableExpandColumnWidth-Ht}px -${Ht}px`,[`${Ie}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Sn,fontWeight:qe,textAlign:"start",background:Yr,borderBottom:ji,transition:`background ${Vr} ease`},[`
&${Ie}-row:hover > th,
&${Ie}-row:hover > td,
> th${Ie}-cell-row-hover,
> td${Ie}-cell-row-hover
`]:{background:ui},[`&${Ie}-row-selected`]:{"> th, > td":{background:ei},"&:hover > th, &:hover > td":{background:xi}}}},[`${Ie}-footer`]:{padding:`${yt}px ${Ht}px`,color:gi,background:Bi}})}};var hu=(0,_l.Z)("Table",De=>{const{colorTextHeading:Ie,colorSplit:qe,colorIcon:yt,colorIconHover:Ht,opacityLoading:Yt,colorBgContainer:Ln,controlInteractiveSize:jn,headerBg:Hn,headerColor:dr,headerSortActiveBg:Fr,headerSortHoverBg:Sn,bodySortBg:Vr,rowHoverBg:Yr,rowSelectedBg:$r,rowSelectedHoverBg:ui,rowExpandedBg:ei,cellPaddingBlock:xi,cellPaddingInline:gi,cellPaddingBlockMD:Bi,cellPaddingInlineMD:na,cellPaddingBlockSM:ji,cellPaddingInlineSM:ea,borderColor:Ca,footerBg:Ua,footerColor:Ki,headerBorderRadius:Ui,cellFontSize:Hi,cellFontSizeMD:Ci,cellFontSizeSM:Qi,headerSplitColor:wa,fixedHeaderSortActiveBg:qa,headerFilterHoverBg:_a,filterDropdownBg:Ea,expandIconBg:ao,selectionColumnWidth:eo,stickyScrollBarBg:Ho}=De,so=new qs.C(yt),es=new qs.C(Ht),ts=2,Va=(0,ju.TS)(De,{tableFontSize:Hi,tableBg:Ln,tableRadius:Ui,tablePaddingVertical:xi,tablePaddingHorizontal:gi,tablePaddingVerticalMiddle:Bi,tablePaddingHorizontalMiddle:na,tablePaddingVerticalSmall:ji,tablePaddingHorizontalSmall:ea,tableBorderColor:Ca,tableHeaderTextColor:dr,tableHeaderBg:Hn,tableFooterTextColor:Ki,tableFooterBg:Ua,tableHeaderCellSplitColor:wa,tableHeaderSortBg:Fr,tableHeaderSortHoverBg:Sn,tableHeaderIconColor:so.clone().setAlpha(so.getAlpha()*Yt).toRgbString(),tableHeaderIconColorHover:es.clone().setAlpha(es.getAlpha()*Yt).toRgbString(),tableBodySortBg:Vr,tableFixedHeaderSortActiveBg:qa,tableHeaderFilterActiveBg:_a,tableFilterDropdownBg:Ea,tableRowHoverBg:Yr,tableSelectedRowBg:$r,tableSelectedRowHoverBg:ui,zIndexTableFixed:ts,zIndexTableSticky:ts+1,tableFontSizeMiddle:Ci,tableFontSizeSmall:Qi,tableSelectionColumnWidth:eo,tableExpandIconBg:ao,tableExpandColumnWidth:jn+2*De.padding,tableExpandedRowBg:ei,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Ho,tableScrollThumbBgHover:Ie,tableScrollBg:qe});return[Bc(Va),lc(Va),uc(Va),qc(Va),Dc(Va),Md(Va),Ou(Va),Jc(Va),uc(Va),Ad(Va),Yo(Va),Uu(Va),Ru(Va),Yc(Va),iu(Va),$c(Va),nd(Va)]},De=>{const{colorFillAlter:Ie,colorBgContainer:qe,colorTextHeading:yt,colorFillSecondary:Ht,colorFillContent:Yt,controlItemBgActive:Ln,controlItemBgActiveHover:jn,padding:Hn,paddingSM:dr,paddingXS:Fr,colorBorderSecondary:Sn,borderRadiusLG:Vr,fontSize:Yr,controlHeight:$r,colorTextPlaceholder:ui}=De,ei=new qs.C(Ht).onBackground(qe).toHexShortString(),xi=new qs.C(Yt).onBackground(qe).toHexShortString(),gi=new qs.C(Ie).onBackground(qe).toHexShortString();return{headerBg:gi,headerColor:yt,headerSortActiveBg:ei,headerSortHoverBg:xi,bodySortBg:gi,rowHoverBg:gi,rowSelectedBg:Ln,rowSelectedHoverBg:jn,rowExpandedBg:Ie,cellPaddingBlock:Hn,cellPaddingInline:Hn,cellPaddingBlockMD:dr,cellPaddingInlineMD:Fr,cellPaddingBlockSM:Fr,cellPaddingInlineSM:Fr,borderColor:Sn,headerBorderRadius:Vr,footerBg:gi,footerColor:yt,cellFontSize:Yr,cellFontSizeMD:Yr,cellFontSizeSM:Yr,headerSplitColor:Sn,fixedHeaderSortActiveBg:ei,headerFilterHoverBg:Yt,filterDropdownMenuBg:qe,filterDropdownBg:qe,expandIconBg:qe,selectionColumnWidth:$r,stickyScrollBarBg:ui,stickyScrollBarBorderRadius:100}});const cc=[],dc=(De,Ie)=>{const{prefixCls:qe,className:yt,rootClassName:Ht,style:Yt,size:Ln,bordered:jn,dropdownPrefixCls:Hn,dataSource:dr,pagination:Fr,rowSelection:Sn,rowKey:Vr="key",rowClassName:Yr,columns:$r,children:ui,childrenColumnName:ei,onChange:xi,getPopupContainer:gi,loading:Bi,expandIcon:na,expandable:ji,expandedRowRender:ea,expandIconColumnIndex:Ca,indentSize:Ua,scroll:Ki,sortDirections:Ui,locale:Hi,showSorterTooltip:Ci=!0,virtual:Qi}=De,wa=ce.useMemo(()=>$r||Er(ui),[$r,ui]),qa=ce.useMemo(()=>wa.some(yo=>yo.responsive),[wa]),_a=(0,ia.Z)(qa),Ea=ce.useMemo(()=>{const yo=new Set(Object.keys(_a).filter(ga=>_a[ga]));return wa.filter(ga=>!ga.responsive||ga.responsive.some(Is=>yo.has(Is)))},[wa,_a]),ao=(0,oo.Z)(De,["className","style","columns"]),{locale:eo=mo.Z,direction:Ho,table:so,renderEmpty:es,getPrefixCls:ts,getPopupContainer:Va}=ce.useContext(Wa.E_),Ds=(0,La.Z)(Ln),Fo=Object.assign(Object.assign({},eo.Table),Hi),Zo=dr||cc,Oo=ts("table",qe),Ha=ts("dropdown",Hn),Ii=Object.assign({childrenColumnName:ei,expandIconColumnIndex:Ca},ji),{childrenColumnName:da="children"}=Ii,Ma=ce.useMemo(()=>Zo.some(yo=>yo==null?void 0:yo[da])?"nest":ea||ji&&ji.expandedRowRender?"row":null,[Zo]),Vi={body:ce.useRef()},To=ce.useMemo(()=>typeof Vr=="function"?Vr:yo=>yo==null?void 0:yo[Vr],[Vr]),[Fi]=Qo(Zo,da,To),Za={},Bo=function(yo,ga){let Is=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var jo,Vs,Wr;const kl=Object.assign(Object.assign({},Za),yo);Is&&((jo=Za.resetPagination)===null||jo===void 0||jo.call(Za),!((Vs=kl.pagination)===null||Vs===void 0)&&Vs.current&&(kl.pagination.current=1),Fr&&Fr.onChange&&Fr.onChange(1,(Wr=kl.pagination)===null||Wr===void 0?void 0:Wr.pageSize)),Ki&&Ki.scrollToFirstRowOnChange!==!1&&Vi.body.current&&(0,Ja.Z)(0,{getContainer:()=>Vi.body.current}),xi==null||xi(kl.pagination,kl.filters,kl.sorter,{currentDataSource:ha(Hs(Zo,kl.sorterStates,da),kl.filterStates),action:ga})},Co=(yo,ga)=>{Bo({sorter:yo,sorterStates:ga},"sort",!1)},[ol,Bs,El,ni]=gl({prefixCls:Oo,mergedColumns:Ea,onSorterChange:Co,sortDirections:Ui||["ascend","descend"],tableLocale:Fo,showSorterTooltip:Ci}),zl=ce.useMemo(()=>Hs(Zo,Bs,da),[Zo,Bs]);Za.sorter=ni(),Za.sorterStates=Bs;const ws=(yo,ga)=>{Bo({filters:yo,filterStates:ga},"filter",!0)},[fl,yl,Lo]=Vo({prefixCls:Oo,locale:Fo,dropdownPrefixCls:Ha,mergedColumns:Ea,onFilterChange:ws,getPopupContainer:gi||Va}),No=ha(zl,yl);Za.filters=Lo,Za.filterStates=yl;const ns=ce.useMemo(()=>{const yo={};return Object.keys(Lo).forEach(ga=>{Lo[ga]!==null&&(yo[ga]=Lo[ga])}),Object.assign(Object.assign({},El),{filters:yo})},[El,Lo]),[$a]=Wo(ns),Os=(yo,ga)=>{Bo({pagination:Object.assign(Object.assign({},Za.pagination),{current:yo,pageSize:ga})},"paginate")},[lo,Ls]=Pl(No.length,Os,Fr);Za.pagination=Fr===!1?{}:vo(lo,Fr),Za.resetPagination=Ls;const Ws=ce.useMemo(()=>{if(Fr===!1||!lo.pageSize)return No;const{current:yo=1,total:ga,pageSize:Is=Cl}=lo;return No.length<ga?No.length>Is?No.slice((yo-1)*Is,yo*Is):No:No.slice((yo-1)*Is,yo*Is)},[!!Fr,No,lo&&lo.current,lo&&lo.pageSize,lo&&lo.total]),[Zs,Ml]=al({prefixCls:Oo,data:No,pageData:Ws,getRowKey:To,getRecordByKey:Fi,expandType:Ma,childrenColumnName:da,locale:Fo,getPopupContainer:gi||Va},Sn),Es=(yo,ga,Is)=>{let jo;return typeof Yr=="function"?jo=wt()(Yr(yo,ga,Is)):jo=wt()(Yr),wt()({[`${Oo}-row-selected`]:Ml.has(To(yo,ga))},jo)};Ii.__PARENT_RENDER_ICON__=Ii.expandIcon,Ii.expandIcon=Ii.expandIcon||na||Na(Fo),Ma==="nest"&&Ii.expandIconColumnIndex===void 0?Ii.expandIconColumnIndex=Sn?1:0:Ii.expandIconColumnIndex>0&&Sn&&(Ii.expandIconColumnIndex-=1),typeof Ii.indentSize!="number"&&(Ii.indentSize=typeof Ua=="number"?Ua:15);const Al=ce.useCallback(yo=>$a(Zs(fl(ol(yo)))),[ol,fl,Zs]);let Ms,js;if(Fr!==!1&&(lo!=null&&lo.total)){let yo;lo.size?yo=lo.size:yo=Ds==="small"||Ds==="middle"?"small":void 0;const ga=Vs=>ce.createElement(va.Z,Object.assign({},lo,{className:wt()(`${Oo}-pagination ${Oo}-pagination-${Vs}`,lo.className),size:yo})),Is=Ho==="rtl"?"left":"right",{position:jo}=lo;if(jo!==null&&Array.isArray(jo)){const Vs=jo.find(lu=>lu.includes("top")),Wr=jo.find(lu=>lu.includes("bottom")),kl=jo.every(lu=>`${lu}`=="none");!Vs&&!Wr&&!kl&&(js=ga(Is)),Vs&&(Ms=ga(Vs.toLowerCase().replace("top",""))),Wr&&(js=ga(Wr.toLowerCase().replace("bottom","")))}else js=ga(Is)}let Us;typeof Bi=="boolean"?Us={spinning:Bi}:typeof Bi=="object"&&(Us=Object.assign({spinning:!0},Bi));const[As,ms]=hu(Oo),[,ls]=(0,Ta.Z)(),Xl=wt()(`${Oo}-wrapper`,so==null?void 0:so.className,{[`${Oo}-wrapper-rtl`]:Ho==="rtl"},yt,Ht,ms),wu=Object.assign(Object.assign({},so==null?void 0:so.style),Yt),hs=Hi&&Hi.emptyText||(es==null?void 0:es("Table"))||ce.createElement(za.Z,{componentName:"Table"}),sl=Qi?Cs:Ko,Tc={},Eu=ce.useMemo(()=>{const{fontSize:yo,lineHeight:ga,padding:Is,paddingXS:jo,paddingSM:Vs}=ls,Wr=Math.floor(yo*ga);switch(Ds){case"large":return Is*2+Wr;case"small":return jo*2+Wr;default:return Vs*2+Wr}},[ls,Ds]);return Qi&&(Tc.listItemHeight=Eu),As(ce.createElement("div",{ref:Ie,className:Xl,style:wu},ce.createElement(Zi.Z,Object.assign({spinning:!1},Us),Ms,ce.createElement(sl,Object.assign({},Tc,ao,{columns:Ea,direction:Ho,expandable:Ii,prefixCls:Oo,className:wt()({[`${Oo}-middle`]:Ds==="middle",[`${Oo}-small`]:Ds==="small",[`${Oo}-bordered`]:jn,[`${Oo}-empty`]:Zo.length===0}),data:Ws,rowKey:To,rowClassName:Es,emptyText:hs,internalHooks:de,internalRefs:Vi,transformColumns:Al})),js)))};var Lc=ce.forwardRef(dc);const fc=(De,Ie)=>{const qe=ce.useRef(0);return qe.current+=1,ce.createElement(Lc,Object.assign({},De,{ref:Ie,_renderTimes:qe.current}))},Yl=ce.forwardRef(fc);Yl.SELECTION_COLUMN=dl,Yl.EXPAND_COLUMN=oe,Yl.SELECTION_ALL=eu,Yl.SELECTION_INVERT=is,Yl.SELECTION_NONE=Eo,Yl.Column=fi,Yl.ColumnGroup=ma,Yl.Summary=bt;var rd=Yl,Fc=rd},66368:function(An,Jt,ne){"use strict";ne.d(Jt,{default:function(){return Vn}});var oe=ne(73475),de=ne(25877),Fe=ne(38308),Xe=ne(94184),Se=ne.n(Xe),Me=ne(87462),ce=ne(4942),we=ne(1413),ge=ne(97685),Be=ne(71002),Qe=ne(45987),Oe=ne(67294),et=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var me=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(me)||/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(me==null?void 0:me.substr(0,4))};function ot(me){var _e=Oe.useRef();_e.current=me;var Ke=Oe.useCallback(function(){for(var Ye,Je=arguments.length,$e=new Array(Je),Ge=0;Ge<Je;Ge++)$e[Ge]=arguments[Ge];return(Ye=_e.current)===null||Ye===void 0?void 0:Ye.call.apply(Ye,[_e].concat($e))},[]);return Ke}function nt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ve=nt()?Oe.useLayoutEffect:Oe.useEffect,xe=function(_e,Ke){var Ye=Oe.useRef(!0);Ve(function(){return _e(Ye.current)},Ke),Ve(function(){return Ye.current=!1,function(){Ye.current=!0}},[])},mt=function(_e,Ke){xe(function(Ye){if(!Ye)return _e()},Ke)},Lt=null;function it(me){var _e=Oe.useRef(!1),Ke=Oe.useState(me),Ye=(0,ge.Z)(Ke,2),Je=Ye[0],$e=Ye[1];Oe.useEffect(function(){return _e.current=!1,function(){_e.current=!0}},[]);function Ge(Xt,un){un&&_e.current||$e(Xt)}return[Je,Ge]}function pt(me){return me!==void 0}function Ce(me,_e){var Ke=_e||{},Ye=Ke.defaultValue,Je=Ke.value,$e=Ke.onChange,Ge=Ke.postState,Xt=it(function(){return pt(Je)?Je:pt(Ye)?typeof Ye=="function"?Ye():Ye:typeof me=="function"?me():me}),un=(0,ge.Z)(Xt,2),Wn=un[0],ar=un[1],$n=Je!==void 0?Je:Wn,Nn=Ge?Ge($n):$n,Bn=ot($e),rn=it([$n]),Xn=(0,ge.Z)(rn,2),Ar=Xn[0],ur=Xn[1];mt(function(){var mr=Ar[0];Wn!==mr&&Bn(Wn,mr)},[Ar]),mt(function(){pt(Je)||ar(Je)},[Je]);var Mn=ot(function(mr,Dr){ar(mr,Dr),ur([$n],Dr)});return[Nn,Mn]}var be=ne(62874),Ze=(0,Oe.createContext)(null),je=Oe.forwardRef(function(me,_e){var Ke=me.prefixCls,Ye=me.className,Je=me.style,$e=me.id,Ge=me.active,Xt=me.tabKey,un=me.children;return Oe.createElement("div",{id:$e&&"".concat($e,"-panel-").concat(Xt),role:"tabpanel",tabIndex:Ge?0:-1,"aria-labelledby":$e&&"".concat($e,"-tab-").concat(Xt),"aria-hidden":!Ge,style:Je,className:Se()(Ke,Ge&&"".concat(Ke,"-active"),Ye),ref:_e},un)}),Et=je,ft=["key","forceRender","style","className"];function ut(me){var _e=me.id,Ke=me.activeKey,Ye=me.animated,Je=me.tabPosition,$e=me.destroyInactiveTabPane,Ge=Oe.useContext(Ze),Xt=Ge.prefixCls,un=Ge.tabs,Wn=Ye.tabPane,ar="".concat(Xt,"-tabpane");return Oe.createElement("div",{className:Se()("".concat(Xt,"-content-holder"))},Oe.createElement("div",{className:Se()("".concat(Xt,"-content"),"".concat(Xt,"-content-").concat(Je),(0,ce.Z)({},"".concat(Xt,"-content-animated"),Wn))},un.map(function($n){var Nn=$n.key,Bn=$n.forceRender,rn=$n.style,Xn=$n.className,Ar=(0,Qe.Z)($n,ft),ur=Nn===Ke;return Oe.createElement(be.Z,(0,Me.Z)({key:Nn,visible:ur,forceRender:Bn,removeOnLeave:!!$e,leavedClassName:"".concat(ar,"-hidden")},Ye.tabPaneMotion),function(Mn,mr){var Dr=Mn.style,_r=Mn.className;return Oe.createElement(Et,(0,Me.Z)({},Ar,{prefixCls:ar,id:_e,tabKey:Nn,animated:Wn,active:ur,style:(0,we.Z)((0,we.Z)({},rn),Dr),className:Se()(Xn,_r),ref:mr}))})})))}var Re=ne(74902),Vt=ne(48555),wt=ne(59864);function yn(me,_e,Ke){var Ye=Oe.useRef({});return(!("value"in Ye.current)||Ke(Ye.current.condition,_e))&&(Ye.current.value=me(),Ye.current.condition=_e),Ye.current.value}function Ft(me,_e){typeof me=="function"?me(_e):(0,Be.Z)(me)==="object"&&me&&"current"in me&&(me.current=_e)}function ln(){for(var me=arguments.length,_e=new Array(me),Ke=0;Ke<me;Ke++)_e[Ke]=arguments[Ke];var Ye=_e.filter(function(Je){return Je});return Ye.length<=1?Ye[0]:function(Je){_e.forEach(function($e){Ft($e,Je)})}}function Kn(){for(var me=arguments.length,_e=new Array(me),Ke=0;Ke<me;Ke++)_e[Ke]=arguments[Ke];return yn(function(){return ln.apply(void 0,_e)},_e,function(Ye,Je){return Ye.length===Je.length&&Ye.every(function($e,Ge){return $e===Je[Ge]})})}function rt(me){var _e,Ke,Ye=isMemo(me)?me.type.type:me.type;return!(typeof Ye=="function"&&!((_e=Ye.prototype)!==null&&_e!==void 0&&_e.render)||typeof me=="function"&&!((Ke=me.prototype)!==null&&Ke!==void 0&&Ke.render))}var dt={width:0,height:0,left:0,top:0};function Ae(me,_e,Ke){return(0,Oe.useMemo)(function(){for(var Ye,Je=new Map,$e=_e.get((Ye=me[0])===null||Ye===void 0?void 0:Ye.key)||dt,Ge=$e.left+$e.width,Xt=0;Xt<me.length;Xt+=1){var un=me[Xt].key,Wn=_e.get(un);if(!Wn){var ar;Wn=_e.get((ar=me[Xt-1])===null||ar===void 0?void 0:ar.key)||dt}var $n=Je.get(un)||(0,we.Z)({},Wn);$n.right=Ge-$n.left-$n.width,Je.set(un,$n)}return Je},[me.map(function(Ye){return Ye.key}).join("_"),_e,Ke])}function Bt(me,_e){var Ke=Oe.useRef(me),Ye=Oe.useState({}),Je=(0,ge.Z)(Ye,2),$e=Je[1];function Ge(Xt){var un=typeof Xt=="function"?Xt(Ke.current):Xt;un!==Ke.current&&_e(un,Ke.current),Ke.current=un,$e({})}return[Ke.current,Ge]}var Cn=.1,en=.01,Ct=20,Rt=Math.pow(.995,Ct);function tn(me,_e){var Ke=(0,Oe.useState)(),Ye=(0,ge.Z)(Ke,2),Je=Ye[0],$e=Ye[1],Ge=(0,Oe.useState)(0),Xt=(0,ge.Z)(Ge,2),un=Xt[0],Wn=Xt[1],ar=(0,Oe.useState)(0),$n=(0,ge.Z)(ar,2),Nn=$n[0],Bn=$n[1],rn=(0,Oe.useState)(),Xn=(0,ge.Z)(rn,2),Ar=Xn[0],ur=Xn[1],Mn=(0,Oe.useRef)();function mr(Qt){var Dn=Qt.touches[0],sr=Dn.screenX,Mt=Dn.screenY;$e({x:sr,y:Mt}),window.clearInterval(Mn.current)}function Dr(Qt){if(Je){Qt.preventDefault();var Dn=Qt.touches[0],sr=Dn.screenX,Mt=Dn.screenY;$e({x:sr,y:Mt});var Dt=sr-Je.x,Nt=Mt-Je.y;_e(Dt,Nt);var Gt=Date.now();Wn(Gt),Bn(Gt-un),ur({x:Dt,y:Nt})}}function _r(){if(Je&&($e(null),ur(null),Ar)){var Qt=Ar.x/Nn,Dn=Ar.y/Nn,sr=Math.abs(Qt),Mt=Math.abs(Dn);if(Math.max(sr,Mt)<Cn)return;var Dt=Qt,Nt=Dn;Mn.current=window.setInterval(function(){if(Math.abs(Dt)<en&&Math.abs(Nt)<en){window.clearInterval(Mn.current);return}Dt*=Rt,Nt*=Rt,_e(Dt*Ct,Nt*Ct)},Ct)}}var tt=(0,Oe.useRef)();function at(Qt){var Dn=Qt.deltaX,sr=Qt.deltaY,Mt=0,Dt=Math.abs(Dn),Nt=Math.abs(sr);Dt===Nt?Mt=tt.current==="x"?Dn:sr:Dt>Nt?(Mt=Dn,tt.current="x"):(Mt=sr,tt.current="y"),_e(-Mt,-Mt)&&Qt.preventDefault()}var on=(0,Oe.useRef)(null);on.current={onTouchStart:mr,onTouchMove:Dr,onTouchEnd:_r,onWheel:at},Oe.useEffect(function(){function Qt(Dt){on.current.onTouchStart(Dt)}function Dn(Dt){on.current.onTouchMove(Dt)}function sr(Dt){on.current.onTouchEnd(Dt)}function Mt(Dt){on.current.onWheel(Dt)}return document.addEventListener("touchmove",Dn,{passive:!1}),document.addEventListener("touchend",sr,{passive:!1}),me.current.addEventListener("touchstart",Qt,{passive:!1}),me.current.addEventListener("wheel",Mt),function(){document.removeEventListener("touchmove",Dn),document.removeEventListener("touchend",sr)}},[])}function cr(me){var _e=(0,Oe.useState)(0),Ke=(0,ge.Z)(_e,2),Ye=Ke[0],Je=Ke[1],$e=(0,Oe.useRef)(0),Ge=(0,Oe.useRef)();return Ge.current=me,mt(function(){var Xt;(Xt=Ge.current)===null||Xt===void 0||Xt.call(Ge)},[Ye]),function(){$e.current===Ye&&($e.current+=1,Je($e.current))}}function Gn(me){var _e=(0,Oe.useRef)([]),Ke=(0,Oe.useState)({}),Ye=(0,ge.Z)(Ke,2),Je=Ye[1],$e=(0,Oe.useRef)(typeof me=="function"?me():me),Ge=cr(function(){var un=$e.current;_e.current.forEach(function(Wn){un=Wn(un)}),_e.current=[],$e.current=un,Je({})});function Xt(un){_e.current.push(un),Ge()}return[$e.current,Xt]}var qt={width:0,height:0,left:0,top:0,right:0};function Fn(me,_e,Ke,Ye,Je,$e,Ge){var Xt=Ge.tabs,un=Ge.tabPosition,Wn=Ge.rtl,ar,$n,Nn;return["top","bottom"].includes(un)?(ar="width",$n=Wn?"right":"left",Nn=Math.abs(Ke)):(ar="height",$n="top",Nn=-Ke),(0,Oe.useMemo)(function(){if(!Xt.length)return[0,0];for(var Bn=Xt.length,rn=Bn,Xn=0;Xn<Bn;Xn+=1){var Ar=me.get(Xt[Xn].key)||qt;if(Ar[$n]+Ar[ar]>Nn+_e){rn=Xn-1;break}}for(var ur=0,Mn=Bn-1;Mn>=0;Mn-=1){var mr=me.get(Xt[Mn].key)||qt;if(mr[$n]<Nn){ur=Mn+1;break}}return ur>=rn?[0,0]:[ur,rn]},[me,_e,Ye,Je,$e,Nn,un,Xt.map(function(Bn){return Bn.key}).join("_"),Wn])}function lr(me){var _e;return me instanceof Map?(_e={},me.forEach(function(Ke,Ye){_e[Ye]=Ke})):_e=me,JSON.stringify(_e)}var nn="TABS_DQ";function ze(me){return String(me).replace(/"/g,nn)}function ue(me,_e,Ke,Ye){return!(!Ke||Ye||me===!1||me===void 0&&(_e===!1||_e===null))}function fe(me,_e){var Ke=me.prefixCls,Ye=me.editable,Je=me.locale,$e=me.style;return!Ye||Ye.showAdd===!1?null:Oe.createElement("button",{ref:_e,type:"button",className:"".concat(Ke,"-nav-add"),style:$e,"aria-label":(Je==null?void 0:Je.addAriaLabel)||"Add tab",onClick:function(Xt){Ye.onEdit("add",{event:Xt})}},Ye.addIcon||"+")}var ve=Oe.forwardRef(fe),he=Oe.forwardRef(function(me,_e){var Ke=me.position,Ye=me.prefixCls,Je=me.extra;if(!Je)return null;var $e,Ge={};return(0,Be.Z)(Je)==="object"&&!Oe.isValidElement(Je)?Ge=Je:Ge.right=Je,Ke==="right"&&($e=Ge.right),Ke==="left"&&($e=Ge.left),$e?Oe.createElement("div",{className:"".concat(Ye,"-extra-content"),ref:_e},$e):null}),le=he,Ne=ne(62709);function Te(me,_e,Ke){var Ye=React.useRef({});return(!("value"in Ye.current)||Ke(Ye.current.condition,_e))&&(Ye.current.value=me(),Ye.current.condition=_e),Ye.current.value}function gt(me,_e){typeof me=="function"?me(_e):(0,Be.Z)(me)==="object"&&me&&"current"in me&&(me.current=_e)}function At(){for(var me=arguments.length,_e=new Array(me),Ke=0;Ke<me;Ke++)_e[Ke]=arguments[Ke];var Ye=_e.filter(function(Je){return Je});return Ye.length<=1?Ye[0]:function(Je){_e.forEach(function($e){gt($e,Je)})}}function Tt(){for(var me=arguments.length,_e=new Array(me),Ke=0;Ke<me;Ke++)_e[Ke]=arguments[Ke];return useMemo(function(){return At.apply(void 0,_e)},_e,function(Ye,Je){return Ye.length===Je.length&&Ye.every(function($e,Ge){return $e===Je[Ge]})})}function zt(me){var _e,Ke,Ye=(0,wt.isMemo)(me)?me.type.type:me.type;return!(typeof Ye=="function"&&!((_e=Ye.prototype)!==null&&_e!==void 0&&_e.render)||typeof me=="function"&&!((Ke=me.prototype)!==null&&Ke!==void 0&&Ke.render))}var Ot={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(_e){var Ke=_e.keyCode;if(_e.altKey&&!_e.ctrlKey||_e.metaKey||Ke>=Ot.F1&&Ke<=Ot.F12)return!1;switch(Ke){case Ot.ALT:case Ot.CAPS_LOCK:case Ot.CONTEXT_MENU:case Ot.CTRL:case Ot.DOWN:case Ot.END:case Ot.ESC:case Ot.HOME:case Ot.INSERT:case Ot.LEFT:case Ot.MAC_FF_META:case Ot.META:case Ot.NUMLOCK:case Ot.NUM_CENTER:case Ot.PAGE_DOWN:case Ot.PAGE_UP:case Ot.PAUSE:case Ot.PRINT_SCREEN:case Ot.RIGHT:case Ot.SHIFT:case Ot.UP:case Ot.WIN_KEY:case Ot.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(_e){if(_e>=Ot.ZERO&&_e<=Ot.NINE||_e>=Ot.NUM_ZERO&&_e<=Ot.NUM_MULTIPLY||_e>=Ot.A&&_e<=Ot.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&_e===0)return!0;switch(_e){case Ot.SPACE:case Ot.QUESTION_MARK:case Ot.NUM_PLUS:case Ot.NUM_MINUS:case Ot.NUM_PERIOD:case Ot.NUM_DIVISION:case Ot.SEMICOLON:case Ot.DASH:case Ot.EQUALS:case Ot.COMMA:case Ot.PERIOD:case Ot.SLASH:case Ot.APOSTROPHE:case Ot.SINGLE_QUOTE:case Ot.OPEN_SQUARE_BRACKET:case Ot.BACKSLASH:case Ot.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ht=Ot,It=function(_e){return+setTimeout(_e,16)},xt=function(_e){return clearTimeout(_e)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(It=function(_e){return window.requestAnimationFrame(_e)},xt=function(_e){return window.cancelAnimationFrame(_e)});var sn=0,Kt=new Map;function Un(me){Kt.delete(me)}var bt=function(_e){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;sn+=1;var Ye=sn;function Je($e){if($e===0)Un(Ye),_e();else{var Ge=It(function(){Je($e-1)});Kt.set(Ye,Ge)}}return Je(Ke),Ye};bt.cancel=function(me){var _e=Kt.get(me);return Un(_e),xt(_e)};var Pt=bt,vn=ht.ESC,mn=ht.TAB;function gn(me){var _e=me.visible,Ke=me.triggerRef,Ye=me.onVisibleChange,Je=me.autoFocus,$e=me.overlayRef,Ge=Oe.useRef(!1),Xt=function(){if(_e){var $n,Nn;($n=Ke.current)===null||$n===void 0||(Nn=$n.focus)===null||Nn===void 0||Nn.call($n),Ye==null||Ye(!1)}},un=function(){var $n;return($n=$e.current)!==null&&$n!==void 0&&$n.focus?($e.current.focus(),Ge.current=!0,!0):!1},Wn=function($n){switch($n.keyCode){case vn:Xt();break;case mn:{var Nn=!1;Ge.current||(Nn=un()),Nn?$n.preventDefault():Xt();break}}};Oe.useEffect(function(){return _e?(window.addEventListener("keydown",Wn),Je&&Pt(un,3),function(){window.removeEventListener("keydown",Wn),Ge.current=!1}):function(){Ge.current=!1}},[_e])}var or=(0,Oe.forwardRef)(function(me,_e){var Ke=me.overlay,Ye=me.arrow,Je=me.prefixCls,$e=(0,Oe.useMemo)(function(){var Xt;return typeof Ke=="function"?Xt=Ke():Xt=Ke,Xt},[Ke]),Ge=At(_e,$e==null?void 0:$e.ref);return Oe.createElement(Oe.Fragment,null,Ye&&Oe.createElement("div",{className:"".concat(Je,"-arrow")}),Oe.cloneElement($e,{ref:zt($e)?Ge:void 0}))}),er=or,tr={adjustX:1,adjustY:1},Hr=[0,0],jr={topLeft:{points:["bl","tl"],overflow:tr,offset:[0,-4],targetOffset:Hr},top:{points:["bc","tc"],overflow:tr,offset:[0,-4],targetOffset:Hr},topRight:{points:["br","tr"],overflow:tr,offset:[0,-4],targetOffset:Hr},bottomLeft:{points:["tl","bl"],overflow:tr,offset:[0,4],targetOffset:Hr},bottom:{points:["tc","bc"],overflow:tr,offset:[0,4],targetOffset:Hr},bottomRight:{points:["tr","br"],overflow:tr,offset:[0,4],targetOffset:Hr}},vr=jr,Kr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function yr(me,_e){var Ke,Ye=me.arrow,Je=Ye===void 0?!1:Ye,$e=me.prefixCls,Ge=$e===void 0?"rc-dropdown":$e,Xt=me.transitionName,un=me.animation,Wn=me.align,ar=me.placement,$n=ar===void 0?"bottomLeft":ar,Nn=me.placements,Bn=Nn===void 0?vr:Nn,rn=me.getPopupContainer,Xn=me.showAction,Ar=me.hideAction,ur=me.overlayClassName,Mn=me.overlayStyle,mr=me.visible,Dr=me.trigger,_r=Dr===void 0?["hover"]:Dr,tt=me.autoFocus,at=me.overlay,on=me.children,Qt=me.onVisibleChange,Dn=(0,Qe.Z)(me,Kr),sr=Oe.useState(),Mt=(0,ge.Z)(sr,2),Dt=Mt[0],Nt=Mt[1],Gt="visible"in me?mr:Dt,Rn=Oe.useRef(null),Qn=Oe.useRef(null),wn=Oe.useRef(null);Oe.useImperativeHandle(_e,function(){return Rn.current});var Yn=function(Br){Nt(Br),Qt==null||Qt(Br)};gn({visible:Gt,triggerRef:wn,onVisibleChange:Yn,autoFocus:tt,overlayRef:Qn});var kr=function(Br){var si=me.onOverlayClick;Nt(!1),si&&si(Br)},bn=function(){return Oe.createElement(er,{ref:Qn,overlay:at,prefixCls:Ge,arrow:Je})},pn=function(){return typeof at=="function"?bn:bn()},_n=function(){var Br=me.minOverlayWidthMatchTrigger,si=me.alignPoint;return"minOverlayWidthMatchTrigger"in me?Br:!si},Tr=function(){var Br=me.openClassName;return Br!==void 0?Br:"".concat(Ge,"-open")},Ir=Oe.cloneElement(on,{className:Se()((Ke=on.props)===null||Ke===void 0?void 0:Ke.className,Gt&&Tr()),ref:zt(on)?At(wn,on.ref):void 0}),Jr=Ar;return!Jr&&_r.indexOf("contextMenu")!==-1&&(Jr=["click"]),Oe.createElement(Ne.Z,(0,Me.Z)({builtinPlacements:Bn},Dn,{prefixCls:Ge,ref:Rn,popupClassName:Se()(ur,(0,ce.Z)({},"".concat(Ge,"-show-arrow"),Je)),popupStyle:Mn,action:_r,showAction:Xn,hideAction:Jr,popupPlacement:$n,popupAlign:Wn,popupTransitionName:Xt,popupAnimation:un,popupVisible:Gt,stretch:_n()?"minWidth":"",popup:pn(),onPopupVisibleChange:Yn,onPopupClick:kr,getPopupContainer:rn}),Ir)}var br=Oe.forwardRef(yr),Cr=br,zr=ne(78595),Wt={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(_e){var Ke=_e.keyCode;if(_e.altKey&&!_e.ctrlKey||_e.metaKey||Ke>=Wt.F1&&Ke<=Wt.F12)return!1;switch(Ke){case Wt.ALT:case Wt.CAPS_LOCK:case Wt.CONTEXT_MENU:case Wt.CTRL:case Wt.DOWN:case Wt.END:case Wt.ESC:case Wt.HOME:case Wt.INSERT:case Wt.LEFT:case Wt.MAC_FF_META:case Wt.META:case Wt.NUMLOCK:case Wt.NUM_CENTER:case Wt.PAGE_DOWN:case Wt.PAGE_UP:case Wt.PAUSE:case Wt.PRINT_SCREEN:case Wt.RIGHT:case Wt.SHIFT:case Wt.UP:case Wt.WIN_KEY:case Wt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(_e){if(_e>=Wt.ZERO&&_e<=Wt.NINE||_e>=Wt.NUM_ZERO&&_e<=Wt.NUM_MULTIPLY||_e>=Wt.A&&_e<=Wt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&_e===0)return!0;switch(_e){case Wt.SPACE:case Wt.QUESTION_MARK:case Wt.NUM_PLUS:case Wt.NUM_MINUS:case Wt.NUM_PERIOD:case Wt.NUM_DIVISION:case Wt.SEMICOLON:case Wt.DASH:case Wt.EQUALS:case Wt.COMMA:case Wt.PERIOD:case Wt.SLASH:case Wt.APOSTROPHE:case Wt.SINGLE_QUOTE:case Wt.OPEN_SQUARE_BRACKET:case Wt.BACKSLASH:case Wt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},On=Wt;function qn(me,_e){var Ke=me.prefixCls,Ye=me.id,Je=me.tabs,$e=me.locale,Ge=me.mobile,Xt=me.moreIcon,un=Xt===void 0?"More":Xt,Wn=me.moreTransitionName,ar=me.style,$n=me.className,Nn=me.editable,Bn=me.tabBarGutter,rn=me.rtl,Xn=me.removeAriaLabel,Ar=me.onTabClick,ur=me.getPopupContainer,Mn=me.popupClassName,mr=(0,Oe.useState)(!1),Dr=(0,ge.Z)(mr,2),_r=Dr[0],tt=Dr[1],at=(0,Oe.useState)(null),on=(0,ge.Z)(at,2),Qt=on[0],Dn=on[1],sr="".concat(Ye,"-more-popup"),Mt="".concat(Ke,"-dropdown"),Dt=Qt!==null?"".concat(sr,"-").concat(Qt):null,Nt=$e==null?void 0:$e.dropdownAriaLabel;function Gt(pn,_n){pn.preventDefault(),pn.stopPropagation(),Nn.onEdit("remove",{key:_n,event:pn})}var Rn=Oe.createElement(zr.ZP,{onClick:function(_n){var Tr=_n.key,Ir=_n.domEvent;Ar(Tr,Ir),tt(!1)},prefixCls:"".concat(Mt,"-menu"),id:sr,tabIndex:-1,role:"listbox","aria-activedescendant":Dt,selectedKeys:[Qt],"aria-label":Nt!==void 0?Nt:"expanded dropdown"},Je.map(function(pn){var _n=pn.closable,Tr=pn.disabled,Ir=pn.closeIcon,Jr=pn.key,Zr=pn.label,Br=ue(_n,Ir,Nn,Tr);return Oe.createElement(zr.sN,{key:Jr,id:"".concat(sr,"-").concat(Jr),role:"option","aria-controls":Ye&&"".concat(Ye,"-panel-").concat(Jr),disabled:Tr},Oe.createElement("span",null,Zr),Br&&Oe.createElement("button",{type:"button","aria-label":Xn||"remove",tabIndex:0,className:"".concat(Mt,"-menu-item-remove"),onClick:function(oi){oi.stopPropagation(),Gt(oi,Jr)}},Ir||Nn.removeIcon||"\xD7"))}));function Qn(pn){for(var _n=Je.filter(function(Br){return!Br.disabled}),Tr=_n.findIndex(function(Br){return Br.key===Qt})||0,Ir=_n.length,Jr=0;Jr<Ir;Jr+=1){Tr=(Tr+pn+Ir)%Ir;var Zr=_n[Tr];if(!Zr.disabled){Dn(Zr.key);return}}}function wn(pn){var _n=pn.which;if(!_r){[On.DOWN,On.SPACE,On.ENTER].includes(_n)&&(tt(!0),pn.preventDefault());return}switch(_n){case On.UP:Qn(-1),pn.preventDefault();break;case On.DOWN:Qn(1),pn.preventDefault();break;case On.ESC:tt(!1);break;case On.SPACE:case On.ENTER:Qt!==null&&Ar(Qt,pn);break}}(0,Oe.useEffect)(function(){var pn=document.getElementById(Dt);pn&&pn.scrollIntoView&&pn.scrollIntoView(!1)},[Qt]),(0,Oe.useEffect)(function(){_r||Dn(null)},[_r]);var Yn=(0,ce.Z)({},rn?"marginRight":"marginLeft",Bn);Je.length||(Yn.visibility="hidden",Yn.order=1);var kr=Se()((0,ce.Z)({},"".concat(Mt,"-rtl"),rn)),bn=Ge?null:Oe.createElement(Cr,{prefixCls:Mt,overlay:Rn,trigger:["hover"],visible:Je.length?_r:!1,transitionName:Wn,onVisibleChange:tt,overlayClassName:Se()(kr,Mn),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:ur},Oe.createElement("button",{type:"button",className:"".concat(Ke,"-nav-more"),style:Yn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":sr,id:"".concat(Ye,"-more"),"aria-expanded":_r,onKeyDown:wn},un));return Oe.createElement("div",{className:Se()("".concat(Ke,"-nav-operations"),$n),style:ar,ref:_e},bn,Oe.createElement(ve,{prefixCls:Ke,locale:$e,editable:Nn}))}var zn=Oe.memo(Oe.forwardRef(qn),function(me,_e){return _e.tabMoving});function Jn(me){var _e,Ke=me.prefixCls,Ye=me.id,Je=me.active,$e=me.tab,Ge=$e.key,Xt=$e.label,un=$e.disabled,Wn=$e.closeIcon,ar=me.closable,$n=me.renderWrapper,Nn=me.removeAriaLabel,Bn=me.editable,rn=me.onClick,Xn=me.onFocus,Ar=me.style,ur="".concat(Ke,"-tab"),Mn=ue(ar,Wn,Bn,un);function mr(tt){un||rn(tt)}function Dr(tt){tt.preventDefault(),tt.stopPropagation(),Bn.onEdit("remove",{key:Ge,event:tt})}var _r=Oe.createElement("div",{key:Ge,"data-node-key":ze(Ge),className:Se()(ur,(_e={},(0,ce.Z)(_e,"".concat(ur,"-with-remove"),Mn),(0,ce.Z)(_e,"".concat(ur,"-active"),Je),(0,ce.Z)(_e,"".concat(ur,"-disabled"),un),_e)),style:Ar,onClick:mr},Oe.createElement("div",{role:"tab","aria-selected":Je,id:Ye&&"".concat(Ye,"-tab-").concat(Ge),className:"".concat(ur,"-btn"),"aria-controls":Ye&&"".concat(Ye,"-panel-").concat(Ge),"aria-disabled":un,tabIndex:un?null:0,onClick:function(at){at.stopPropagation(),mr(at)},onKeyDown:function(at){[On.SPACE,On.ENTER].includes(at.which)&&(at.preventDefault(),mr(at))},onFocus:Xn},Xt),Mn&&Oe.createElement("button",{type:"button","aria-label":Nn||"remove",tabIndex:0,className:"".concat(ur,"-remove"),onClick:function(at){at.stopPropagation(),Dr(at)}},Wn||Bn.removeIcon||"\xD7"));return $n?$n(_r):_r}var pr=Jn,wr=function(_e){return+setTimeout(_e,16)},nr=function(_e){return clearTimeout(_e)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(wr=function(_e){return window.requestAnimationFrame(_e)},nr=function(_e){return window.cancelAnimationFrame(_e)});var St=0,Zt=new Map;function jt(me){Zt.delete(me)}var kn=function(_e){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;St+=1;var Ye=St;function Je($e){if($e===0)jt(Ye),_e();else{var Ge=wr(function(){Je($e-1)});Zt.set(Ye,Ge)}}return Je(Ke),Ye};kn.cancel=function(me){var _e=Zt.get(me);return jt(_e),nr(_e)};var lt=kn,Ut=function(_e){var Ke=_e.activeTabOffset,Ye=_e.horizontal,Je=_e.rtl,$e=_e.indicatorSize,Ge=(0,Oe.useState)(),Xt=(0,ge.Z)(Ge,2),un=Xt[0],Wn=Xt[1],ar=(0,Oe.useRef)(),$n=function(rn){return typeof $e=="function"?$e(rn):typeof $e=="number"?$e:rn};function Nn(){lt.cancel(ar.current)}return(0,Oe.useEffect)(function(){var Bn={};return Ke&&(Ye?(Je?(Bn.right=Ke.right+Ke.width/2,Bn.transform="translateX(50%)"):(Bn.left=Ke.left+Ke.width/2,Bn.transform="translateX(-50%)"),Bn.width=$n(Ke.width)):(Bn.top=Ke.top+Ke.height/2,Bn.transform="translateY(-50%)",Bn.height=$n(Ke.height))),Nn(),ar.current=lt(function(){Wn(Bn)}),Nn},[Ke,Ye,Je,$e]),{style:un}},ke=Ut,an=function(_e){var Ke=_e.current||{},Ye=Ke.offsetWidth,Je=Ye===void 0?0:Ye,$e=Ke.offsetHeight,Ge=$e===void 0?0:$e;return[Je,Ge]},kt=function(_e,Ke){return _e[Ke?0:1]};function Tn(me,_e){var Ke,Ye=Oe.useContext(Ze),Je=Ye.prefixCls,$e=Ye.tabs,Ge=me.className,Xt=me.style,un=me.id,Wn=me.animated,ar=me.activeKey,$n=me.rtl,Nn=me.extra,Bn=me.editable,rn=me.locale,Xn=me.tabPosition,Ar=me.tabBarGutter,ur=me.children,Mn=me.onTabClick,mr=me.onTabScroll,Dr=me.indicatorSize,_r=(0,Oe.useRef)(),tt=(0,Oe.useRef)(),at=(0,Oe.useRef)(),on=(0,Oe.useRef)(),Qt=(0,Oe.useRef)(),Dn=(0,Oe.useRef)(),sr=(0,Oe.useRef)(),Mt=Xn==="top"||Xn==="bottom",Dt=Bt(0,function(Xa,Da){Mt&&mr&&mr({direction:Xa>Da?"left":"right"})}),Nt=(0,ge.Z)(Dt,2),Gt=Nt[0],Rn=Nt[1],Qn=Bt(0,function(Xa,Da){!Mt&&mr&&mr({direction:Xa>Da?"top":"bottom"})}),wn=(0,ge.Z)(Qn,2),Yn=wn[0],kr=wn[1],bn=(0,Oe.useState)([0,0]),pn=(0,ge.Z)(bn,2),_n=pn[0],Tr=pn[1],Ir=(0,Oe.useState)([0,0]),Jr=(0,ge.Z)(Ir,2),Zr=Jr[0],Br=Jr[1],si=(0,Oe.useState)([0,0]),oi=(0,ge.Z)(si,2),vt=oi[0],dn=oi[1],hr=(0,Oe.useState)([0,0]),mi=(0,ge.Z)(hr,2),ii=mi[0],yi=mi[1],zi=Gn(new Map),Mi=(0,ge.Z)(zi,2),fi=Mi[0],_i=Mi[1],ma=Ae($e,fi,Zr[0]),oo=kt(_n,Mt),Ja=kt(Zr,Mt),Wa=kt(vt,Mt),za=kt(ii,Mt),La=oo<Ja+Wa,ia=La?oo-za:oo-Wa,mo="".concat(Je,"-nav-operations-hidden"),va=0,Zi=0;Mt&&$n?(va=0,Zi=Math.max(0,Ja-ia)):(va=Math.min(0,ia-Ja),Zi=0);function Ta(Xa){return Xa<va?va:Xa>Zi?Zi:Xa}var no=(0,Oe.useRef)(),Na=(0,Oe.useState)(),Ka=(0,ge.Z)(Na,2),aa=Ka[0],ro=Ka[1];function bo(){ro(Date.now())}function uo(){window.clearTimeout(no.current)}tn(on,function(Xa,Da){function po(ko,fs){ko(function(ss){var Rl=Ta(ss+fs);return Rl})}return La?(Mt?po(Rn,Xa):po(kr,Da),uo(),bo(),!0):!1}),(0,Oe.useEffect)(function(){return uo(),aa&&(no.current=window.setTimeout(function(){ro(0)},100)),uo},[aa]);var xo=Fn(ma,ia,Mt?Gt:Yn,Ja,Wa,za,(0,we.Z)((0,we.Z)({},me),{},{tabs:$e})),Ao=(0,ge.Z)(xo,2),Xo=Ao[0],co=Ao[1],wo=ot(function(){var Xa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ar,Da=ma.get(Xa)||{width:0,height:0,left:0,right:0,top:0};if(Mt){var po=Gt;$n?Da.right<Gt?po=Da.right:Da.right+Da.width>Gt+ia&&(po=Da.right+Da.width-ia):Da.left<-Gt?po=-Da.left:Da.left+Da.width>-Gt+ia&&(po=-(Da.left+Da.width-ia)),kr(0),Rn(Ta(po))}else{var ko=Yn;Da.top<-Yn?ko=-Da.top:Da.top+Da.height>-Yn+ia&&(ko=-(Da.top+Da.height-ia)),Rn(0),kr(Ta(ko))}}),os={};Xn==="top"||Xn==="bottom"?os[$n?"marginRight":"marginLeft"]=Ar:os.marginTop=Ar;var rs=$e.map(function(Xa,Da){var po=Xa.key;return Oe.createElement(pr,{id:un,prefixCls:Je,key:po,tab:Xa,style:Da===0?void 0:os,closable:Xa.closable,editable:Bn,active:po===ar,renderWrapper:ur,removeAriaLabel:rn==null?void 0:rn.removeAriaLabel,onClick:function(fs){Mn(po,fs)},onFocus:function(){wo(po),bo(),on.current&&($n||(on.current.scrollLeft=0),on.current.scrollTop=0)}})}),us=function(){return _i(function(){var Da=new Map;return $e.forEach(function(po){var ko,fs=po.key,ss=(ko=Qt.current)===null||ko===void 0?void 0:ko.querySelector('[data-node-key="'.concat(ze(fs),'"]'));ss&&Da.set(fs,{width:ss.offsetWidth,height:ss.offsetHeight,left:ss.offsetLeft,top:ss.offsetTop})}),Da})};(0,Oe.useEffect)(function(){us()},[$e.map(function(Xa){return Xa.key}).join("_")]);var Io=cr(function(){var Xa=an(_r),Da=an(tt),po=an(at);Tr([Xa[0]-Da[0]-po[0],Xa[1]-Da[1]-po[1]]);var ko=an(sr);dn(ko);var fs=an(Dn);yi(fs);var ss=an(Qt);Br([ss[0]-ko[0],ss[1]-ko[1]]),us()}),So=$e.slice(0,Xo),xa=$e.slice(co+1),Pa=[].concat((0,Re.Z)(So),(0,Re.Z)(xa)),io=ma.get(ar),go=ke({activeTabOffset:io,horizontal:Mt,rtl:$n,indicatorSize:Dr}),Uo=go.style;(0,Oe.useEffect)(function(){wo()},[ar,va,Zi,lr(io),lr(ma),Mt]),(0,Oe.useEffect)(function(){Io()},[$n]);var cs=!!Pa.length,xs="".concat(Je,"-nav-wrap"),Js,zs,ds,Ks;return Mt?$n?(zs=Gt>0,Js=Gt!==Zi):(Js=Gt<0,zs=Gt!==va):(ds=Yn<0,Ks=Yn!==va),Oe.createElement(Vt.Z,{onResize:Io},Oe.createElement("div",{ref:Kn(_e,_r),role:"tablist",className:Se()("".concat(Je,"-nav"),Ge),style:Xt,onKeyDown:function(){bo()}},Oe.createElement(le,{ref:tt,position:"left",extra:Nn,prefixCls:Je}),Oe.createElement(Vt.Z,{onResize:Io},Oe.createElement("div",{className:Se()(xs,(Ke={},(0,ce.Z)(Ke,"".concat(xs,"-ping-left"),Js),(0,ce.Z)(Ke,"".concat(xs,"-ping-right"),zs),(0,ce.Z)(Ke,"".concat(xs,"-ping-top"),ds),(0,ce.Z)(Ke,"".concat(xs,"-ping-bottom"),Ks),Ke)),ref:on},Oe.createElement(Vt.Z,{onResize:Io},Oe.createElement("div",{ref:Qt,className:"".concat(Je,"-nav-list"),style:{transform:"translate(".concat(Gt,"px, ").concat(Yn,"px)"),transition:aa?"none":void 0}},rs,Oe.createElement(ve,{ref:sr,prefixCls:Je,locale:rn,editable:Bn,style:(0,we.Z)((0,we.Z)({},rs.length===0?void 0:os),{},{visibility:cs?"hidden":null})}),Oe.createElement("div",{className:Se()("".concat(Je,"-ink-bar"),(0,ce.Z)({},"".concat(Je,"-ink-bar-animated"),Wn.inkBar)),style:Uo}))))),Oe.createElement(zn,(0,Me.Z)({},me,{removeAriaLabel:rn==null?void 0:rn.removeAriaLabel,ref:Dn,prefixCls:Je,tabs:Pa,className:!cs&&mo,tabMoving:!!aa})),Oe.createElement(le,{ref:at,position:"right",extra:Nn,prefixCls:Je})))}var rr=Oe.forwardRef(Tn),Gr=["renderTabBar"],Nr=["label","key"];function Lr(me){var _e=me.renderTabBar,Ke=(0,Qe.Z)(me,Gr),Ye=Oe.useContext(Ze),Je=Ye.tabs;if(_e){var $e=(0,we.Z)((0,we.Z)({},Ke),{},{panes:Je.map(function(Ge){var Xt=Ge.label,un=Ge.key,Wn=(0,Qe.Z)(Ge,Nr);return Oe.createElement(Et,(0,Me.Z)({tab:Xt,key:un,tabKey:un},Wn))})});return _e($e,rr)}return Oe.createElement(rr,Ke)}var Ur={},Sr=[],ai=function(_e){Sr.push(_e)};function ir(me,_e){if(0)var Ke}function Rr(me,_e){if(0)var Ke}function Di(){Ur={}}function Gi(me,_e,Ke){!_e&&!Ur[Ke]&&(me(!1,Ke),Ur[Ke]=!0)}function qr(me,_e){Gi(ir,me,_e)}function di(me,_e){Gi(Rr,me,_e)}qr.preMessage=ai,qr.resetWarned=Di,qr.noteOnce=di;var Yi=null;function Xr(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},_e;return me===!1?_e={inkBar:!1,tabPane:!1}:me===!0?_e={inkBar:!0,tabPane:!1}:_e=(0,we.Z)({inkBar:!0},(0,Be.Z)(me)==="object"?me:{}),_e.tabPaneMotion&&_e.tabPane===void 0&&(_e.tabPane=!0),!_e.tabPaneMotion&&_e.tabPane&&(_e.tabPane=!1),_e}var Pi=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],Mr=0;function ua(me,_e){var Ke,Ye=me.id,Je=me.prefixCls,$e=Je===void 0?"rc-tabs":Je,Ge=me.className,Xt=me.items,un=me.direction,Wn=me.activeKey,ar=me.defaultActiveKey,$n=me.editable,Nn=me.animated,Bn=me.tabPosition,rn=Bn===void 0?"top":Bn,Xn=me.tabBarGutter,Ar=me.tabBarStyle,ur=me.tabBarExtraContent,Mn=me.locale,mr=me.moreIcon,Dr=me.moreTransitionName,_r=me.destroyInactiveTabPane,tt=me.renderTabBar,at=me.onChange,on=me.onTabClick,Qt=me.onTabScroll,Dn=me.getPopupContainer,sr=me.popupClassName,Mt=me.indicatorSize,Dt=(0,Qe.Z)(me,Pi),Nt=Oe.useMemo(function(){return(Xt||[]).filter(function(yi){return yi&&(0,Be.Z)(yi)==="object"&&"key"in yi})},[Xt]),Gt=un==="rtl",Rn=Xr(Nn),Qn=(0,Oe.useState)(!1),wn=(0,ge.Z)(Qn,2),Yn=wn[0],kr=wn[1];(0,Oe.useEffect)(function(){kr(et())},[]);var bn=Ce(function(){var yi;return(yi=Nt[0])===null||yi===void 0?void 0:yi.key},{value:Wn,defaultValue:ar}),pn=(0,ge.Z)(bn,2),_n=pn[0],Tr=pn[1],Ir=(0,Oe.useState)(function(){return Nt.findIndex(function(yi){return yi.key===_n})}),Jr=(0,ge.Z)(Ir,2),Zr=Jr[0],Br=Jr[1];(0,Oe.useEffect)(function(){var yi=Nt.findIndex(function(Mi){return Mi.key===_n});if(yi===-1){var zi;yi=Math.max(0,Math.min(Zr,Nt.length-1)),Tr((zi=Nt[yi])===null||zi===void 0?void 0:zi.key)}Br(yi)},[Nt.map(function(yi){return yi.key}).join("_"),_n,Zr]);var si=Ce(null,{value:Ye}),oi=(0,ge.Z)(si,2),vt=oi[0],dn=oi[1];(0,Oe.useEffect)(function(){Ye||(dn("rc-tabs-".concat(Mr)),Mr+=1)},[]);function hr(yi,zi){on==null||on(yi,zi);var Mi=yi!==_n;Tr(yi),Mi&&(at==null||at(yi))}var mi={id:vt,activeKey:_n,animated:Rn,tabPosition:rn,rtl:Gt,mobile:Yn},ii=(0,we.Z)((0,we.Z)({},mi),{},{editable:$n,locale:Mn,moreIcon:mr,moreTransitionName:Dr,tabBarGutter:Xn,onTabClick:hr,onTabScroll:Qt,extra:ur,style:Ar,panes:null,getPopupContainer:Dn,popupClassName:sr,indicatorSize:Mt});return Oe.createElement(Ze.Provider,{value:{tabs:Nt,prefixCls:$e}},Oe.createElement("div",(0,Me.Z)({ref:_e,id:Ye,className:Se()($e,"".concat($e,"-").concat(rn),(Ke={},(0,ce.Z)(Ke,"".concat($e,"-mobile"),Yn),(0,ce.Z)(Ke,"".concat($e,"-editable"),$n),(0,ce.Z)(Ke,"".concat($e,"-rtl"),Gt),Ke),Ge)},Dt),Oe.createElement(Lr,(0,Me.Z)({},ii,{renderTabBar:tt})),Oe.createElement(ut,(0,Me.Z)({destroyInactiveTabPane:_r},mi,{animated:Rn}))))}var ta=Oe.forwardRef(ua),Ra=ta,ca=Ra,Xi=ne(53124),Oi=ne(98675),Ji=()=>null,Sa=ne(33603);const Ya={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ka(me){let _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Ke;return _e===!1?Ke={inkBar:!1,tabPane:!1}:_e===!0?Ke={inkBar:!0,tabPane:!0}:Ke=Object.assign({inkBar:!0},typeof _e=="object"?_e:{}),Ke.tabPane&&(Ke.tabPaneMotion=Object.assign(Object.assign({},Ya),{motionName:(0,Sa.m)(me,"switch")})),Ke}var ba=ne(37419),Ba=function(me,_e){var Ke={};for(var Ye in me)Object.prototype.hasOwnProperty.call(me,Ye)&&_e.indexOf(Ye)<0&&(Ke[Ye]=me[Ye]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ye=Object.getOwnPropertySymbols(me);Je<Ye.length;Je++)_e.indexOf(Ye[Je])<0&&Object.prototype.propertyIsEnumerable.call(me,Ye[Je])&&(Ke[Ye[Je]]=me[Ye[Je]]);return Ke};function fa(me){return me.filter(_e=>_e)}function ja(me,_e){if(me)return me;const Ke=(0,ba.Z)(_e).map(Ye=>{if(Oe.isValidElement(Ye)){const{key:Je,props:$e}=Ye,Ge=$e||{},{tab:Xt}=Ge,un=Ba(Ge,["tab"]);return Object.assign(Object.assign({key:String(Je)},un),{label:Xt})}return null});return fa(Ke)}var Ri=ne(14747),hn=ne(67968),$t=ne(45503),Zn=ne(67771),Er=me=>{const{componentCls:_e,motionDurationSlow:Ke}=me;return[{[_e]:{[`${_e}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Ke}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Ke}`}}}}},[(0,Zn.oN)(me,"slide-up"),(0,Zn.oN)(me,"slide-down")]]};const ri=me=>{const{componentCls:_e,tabsCardPadding:Ke,cardBg:Ye,cardGutter:Je,colorBorderSecondary:$e,itemSelectedColor:Ge}=me;return{[`${_e}-card`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab`]:{margin:0,padding:Ke,background:Ye,border:`${me.lineWidth}px ${me.lineType} ${$e}`,transition:`all ${me.motionDurationSlow} ${me.motionEaseInOut}`},[`${_e}-tab-active`]:{color:Ge,background:me.colorBgContainer},[`${_e}-ink-bar`]:{visibility:"hidden"}},[`&${_e}-top, &${_e}-bottom`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab + ${_e}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Je}px`}}}},[`&${_e}-top`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab`]:{borderRadius:`${me.borderRadiusLG}px ${me.borderRadiusLG}px 0 0`},[`${_e}-tab-active`]:{borderBottomColor:me.colorBgContainer}}},[`&${_e}-bottom`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab`]:{borderRadius:`0 0 ${me.borderRadiusLG}px ${me.borderRadiusLG}px`},[`${_e}-tab-active`]:{borderTopColor:me.colorBgContainer}}},[`&${_e}-left, &${_e}-right`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab + ${_e}-tab`]:{marginTop:`${Je}px`}}},[`&${_e}-left`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${me.borderRadiusLG}px 0 0 ${me.borderRadiusLG}px`}},[`${_e}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:me.colorBgContainer}}}},[`&${_e}-right`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${me.borderRadiusLG}px ${me.borderRadiusLG}px 0`}},[`${_e}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:me.colorBgContainer}}}}}}},pi=me=>{const{componentCls:_e,itemHoverColor:Ke,dropdownEdgeChildVerticalPadding:Ye}=me;return{[`${_e}-dropdown`]:Object.assign(Object.assign({},(0,Ri.Wf)(me)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:me.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${_e}-dropdown-menu`]:{maxHeight:me.tabsDropdownHeight,margin:0,padding:`${Ye}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:me.colorBgContainer,backgroundClip:"padding-box",borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Ri.vS),{display:"flex",alignItems:"center",minWidth:me.tabsDropdownWidth,margin:0,padding:`${me.paddingXXS}px ${me.paddingSM}px`,color:me.colorText,fontWeight:"normal",fontSize:me.fontSize,lineHeight:me.lineHeight,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:me.marginSM},color:me.colorTextDescription,fontSize:me.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Ke}},"&:hover":{background:me.controlItemBgHover},"&-disabled":{"&, &:hover":{color:me.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Si=me=>{const{componentCls:_e,margin:Ke,colorBorderSecondary:Ye,horizontalMargin:Je,verticalItemPadding:$e,verticalItemMargin:Ge}=me;return{[`${_e}-top, ${_e}-bottom`]:{flexDirection:"column",[`> ${_e}-nav, > div > ${_e}-nav`]:{margin:Je,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${me.lineWidth}px ${me.lineType} ${Ye}`,content:"''"},[`${_e}-ink-bar`]:{height:me.lineWidthBold,"&-animated":{transition:`width ${me.motionDurationSlow}, left ${me.motionDurationSlow},
right ${me.motionDurationSlow}`}},[`${_e}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:me.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:me.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:me.boxShadowTabsOverflowRight},[`&${_e}-nav-wrap-ping-left::before`]:{opacity:1},[`&${_e}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${_e}-top`]:{[`> ${_e}-nav,
> div > ${_e}-nav`]:{"&::before":{bottom:0},[`${_e}-ink-bar`]:{bottom:0}}},[`${_e}-bottom`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{order:1,marginTop:`${Ke}px`,marginBottom:0,"&::before":{top:0},[`${_e}-ink-bar`]:{top:0}},[`> ${_e}-content-holder, > div > ${_e}-content-holder`]:{order:0}},[`${_e}-left, ${_e}-right`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{flexDirection:"column",minWidth:me.controlHeight*1.25,[`${_e}-tab`]:{padding:$e,textAlign:"center"},[`${_e}-tab + ${_e}-tab`]:{margin:Ge},[`${_e}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:me.controlHeight},"&::before":{top:0,boxShadow:me.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:me.boxShadowTabsOverflowBottom},[`&${_e}-nav-wrap-ping-top::before`]:{opacity:1},[`&${_e}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${_e}-ink-bar`]:{width:me.lineWidthBold,"&-animated":{transition:`height ${me.motionDurationSlow}, top ${me.motionDurationSlow}`}},[`${_e}-nav-list, ${_e}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${_e}-left`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${_e}-content-holder, > div > ${_e}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${me.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`},[`> ${_e}-content > ${_e}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:me.paddingLG}}}},[`${_e}-right`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{order:1,[`${_e}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${_e}-content-holder, > div > ${_e}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-me.lineWidth},borderRight:{_skip_check_:!0,value:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`},[`> ${_e}-content > ${_e}-tabpane`]:{paddingRight:{_skip_check_:!0,value:me.paddingLG}}}}}},vi=me=>{const{componentCls:_e,cardPaddingSM:Ke,cardPaddingLG:Ye,horizontalItemPaddingSM:Je,horizontalItemPaddingLG:$e}=me;return{[_e]:{"&-small":{[`> ${_e}-nav`]:{[`${_e}-tab`]:{padding:Je,fontSize:me.titleFontSizeSM}}},"&-large":{[`> ${_e}-nav`]:{[`${_e}-tab`]:{padding:$e,fontSize:me.titleFontSizeLG}}}},[`${_e}-card`]:{[`&${_e}-small`]:{[`> ${_e}-nav`]:{[`${_e}-tab`]:{padding:Ke}},[`&${_e}-bottom`]:{[`> ${_e}-nav ${_e}-tab`]:{borderRadius:`0 0 ${me.borderRadius}px ${me.borderRadius}px`}},[`&${_e}-top`]:{[`> ${_e}-nav ${_e}-tab`]:{borderRadius:`${me.borderRadius}px ${me.borderRadius}px 0 0`}},[`&${_e}-right`]:{[`> ${_e}-nav ${_e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${me.borderRadius}px ${me.borderRadius}px 0`}}},[`&${_e}-left`]:{[`> ${_e}-nav ${_e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${me.borderRadius}px 0 0 ${me.borderRadius}px`}}}},[`&${_e}-large`]:{[`> ${_e}-nav`]:{[`${_e}-tab`]:{padding:Ye}}}}}},Ai=me=>{const{componentCls:_e,itemActiveColor:Ke,itemHoverColor:Ye,iconCls:Je,tabsHorizontalItemMargin:$e,horizontalItemPadding:Ge,itemSelectedColor:Xt,itemColor:un}=me,Wn=`${_e}-tab`;return{[Wn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Ge,fontSize:me.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:un,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Ke}},(0,Ri.Qy)(me)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-me.marginXXS},marginLeft:{_skip_check_:!0,value:me.marginXS},color:me.colorTextDescription,fontSize:me.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${me.motionDurationSlow}`,"&:hover":{color:me.colorTextHeading}},"&:hover":{color:Ye},[`&${Wn}-active ${Wn}-btn`]:{color:Xt,textShadow:me.tabsActiveTextShadow},[`&${Wn}-disabled`]:{color:me.colorTextDisabled,cursor:"not-allowed"},[`&${Wn}-disabled ${Wn}-btn, &${Wn}-disabled ${_e}-remove`]:{"&:focus, &:active":{color:me.colorTextDisabled}},[`& ${Wn}-remove ${Je}`]:{margin:0},[Je]:{marginRight:{_skip_check_:!0,value:me.marginSM}}},[`${Wn} + ${Wn}`]:{margin:{_skip_check_:!0,value:$e}}}},Ti=me=>{const{componentCls:_e,tabsHorizontalItemMarginRTL:Ke,iconCls:Ye,cardGutter:Je}=me;return{[`${_e}-rtl`]:{direction:"rtl",[`${_e}-nav`]:{[`${_e}-tab`]:{margin:{_skip_check_:!0,value:Ke},[`${_e}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ye]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${me.marginSM}px`}},[`${_e}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${me.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${me.marginXXS}px`},[Ye]:{margin:0}}}},[`&${_e}-left`]:{[`> ${_e}-nav`]:{order:1},[`> ${_e}-content-holder`]:{order:0}},[`&${_e}-right`]:{[`> ${_e}-nav`]:{order:0},[`> ${_e}-content-holder`]:{order:1}},[`&${_e}-card${_e}-top, &${_e}-card${_e}-bottom`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab + ${_e}-tab`]:{marginRight:{_skip_check_:!0,value:Je},marginLeft:{_skip_check_:!0,value:0}}}}},[`${_e}-dropdown-rtl`]:{direction:"rtl"},[`${_e}-menu-item`]:{[`${_e}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},$i=me=>{const{componentCls:_e,tabsCardPadding:Ke,cardHeight:Ye,cardGutter:Je,itemHoverColor:$e,itemActiveColor:Ge,colorBorderSecondary:Xt}=me;return{[_e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ri.Wf)(me)),{display:"flex",[`> ${_e}-nav, > div > ${_e}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${_e}-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 ${me.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${_e}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${me.motionDurationSlow}`},[`${_e}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${_e}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${_e}-nav-more`]:{position:"relative",padding:Ke,background:"transparent",border:0,color:me.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:me.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${_e}-nav-add`]:Object.assign({minWidth:Ye,marginLeft:{_skip_check_:!0,value:Je},padding:`0 ${me.paddingXS}px`,background:"transparent",border:`${me.lineWidth}px ${me.lineType} ${Xt}`,borderRadius:`${me.borderRadiusLG}px ${me.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:me.colorText,transition:`all ${me.motionDurationSlow} ${me.motionEaseInOut}`,"&:hover":{color:$e},"&:active, &:focus:not(:focus-visible)":{color:Ge}},(0,Ri.Qy)(me))},[`${_e}-extra-content`]:{flex:"none"},[`${_e}-ink-bar`]:{position:"absolute",background:me.inkBarColor,pointerEvents:"none"}}),Ai(me)),{[`${_e}-content`]:{position:"relative",width:"100%"},[`${_e}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${_e}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${_e}-centered`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-nav-wrap`]:{[`&:not([class*='${_e}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var qi=(0,hn.Z)("Tabs",me=>{const _e=(0,$t.TS)(me,{tabsCardPadding:me.cardPadding||`${(me.cardHeight-Math.round(me.fontSize*me.lineHeight))/2-me.lineWidth}px ${me.padding}px`,dropdownEdgeChildVerticalPadding:me.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${me.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${me.horizontalItemGutter}px`});return[vi(_e),Ti(_e),Si(_e),pi(_e),ri(_e),$i(_e),Er(_e)]},me=>{const _e=me.controlHeightLG;return{zIndexPopup:me.zIndexPopupBase+50,cardBg:me.colorFillAlter,cardHeight:_e,cardPadding:"",cardPaddingSM:`${me.paddingXXS*1.5}px ${me.padding}px`,cardPaddingLG:`${me.paddingXS}px ${me.padding}px ${me.paddingXXS*1.5}px`,titleFontSize:me.fontSize,titleFontSizeLG:me.fontSizeLG,titleFontSizeSM:me.fontSize,inkBarColor:me.colorPrimary,horizontalMargin:`0 0 ${me.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${me.paddingSM}px 0`,horizontalItemPaddingSM:`${me.paddingXS}px 0`,horizontalItemPaddingLG:`${me.padding}px 0`,verticalItemPadding:`${me.paddingXS}px ${me.paddingLG}px`,verticalItemMargin:`${me.margin}px 0 0 0`,itemColor:me.colorText,itemSelectedColor:me.colorPrimary,itemHoverColor:me.colorPrimaryHover,itemActiveColor:me.colorPrimaryActive,cardGutter:me.marginXXS/2}}),Pn=function(me,_e){var Ke={};for(var Ye in me)Object.prototype.hasOwnProperty.call(me,Ye)&&_e.indexOf(Ye)<0&&(Ke[Ye]=me[Ye]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ye=Object.getOwnPropertySymbols(me);Je<Ye.length;Je++)_e.indexOf(Ye[Je])<0&&Object.prototype.propertyIsEnumerable.call(me,Ye[Je])&&(Ke[Ye[Je]]=me[Ye[Je]]);return Ke};const In=me=>{const{type:_e,className:Ke,rootClassName:Ye,size:Je,onEdit:$e,hideAdd:Ge,centered:Xt,addIcon:un,popupClassName:Wn,children:ar,items:$n,animated:Nn,style:Bn,indicatorSize:rn}=me,Xn=Pn(me,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Ar,moreIcon:ur=Oe.createElement(de.Z,null)}=Xn,{direction:Mn,tabs:mr,getPrefixCls:Dr,getPopupContainer:_r}=Oe.useContext(Xi.E_),tt=Dr("tabs",Ar),[at,on]=qi(tt);let Qt;_e==="editable-card"&&(Qt={onEdit:(Gt,Rn)=>{let{key:Qn,event:wn}=Rn;$e==null||$e(Gt==="add"?wn:Qn,Gt)},removeIcon:Oe.createElement(oe.Z,null),addIcon:un||Oe.createElement(Fe.Z,null),showAdd:Ge!==!0});const Dn=Dr(),sr=ja($n,ar),Mt=ka(tt,Nn),Dt=(0,Oi.Z)(Je),Nt=Object.assign(Object.assign({},mr==null?void 0:mr.style),Bn);return at(Oe.createElement(ca,Object.assign({direction:Mn,getPopupContainer:_r,moreTransitionName:`${Dn}-slide-up`},Xn,{items:sr,className:Se()({[`${tt}-${Dt}`]:Dt,[`${tt}-card`]:["card","editable-card"].includes(_e),[`${tt}-editable-card`]:_e==="editable-card",[`${tt}-centered`]:Xt},mr==null?void 0:mr.className,Ke,Ye,on),popupClassName:Se()(Wn,on),style:Nt,editable:Qt,moreIcon:ur,prefixCls:tt,animated:Mt,indicatorSize:rn!=null?rn:mr==null?void 0:mr.indicatorSize})))};In.TabPane=Ji;var Vn=In},79870:function(An,Jt,ne){"use strict";ne.d(Jt,{default:function(){return qi}});var oe=ne(87462),de=ne(4942),Fe=ne(71002),Xe=ne(1413),Se=ne(74902),Me=ne(15671),ce=ne(43144),we=ne(97326),ge=ne(60136),Be=ne(51630),Qe=ne(94184),Oe=ne.n(Qe),et={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(In){var Vn=In.keyCode;if(In.altKey&&!In.ctrlKey||In.metaKey||Vn>=et.F1&&Vn<=et.F12)return!1;switch(Vn){case et.ALT:case et.CAPS_LOCK:case et.CONTEXT_MENU:case et.CTRL:case et.DOWN:case et.END:case et.ESC:case et.HOME:case et.INSERT:case et.LEFT:case et.MAC_FF_META:case et.META:case et.NUMLOCK:case et.NUM_CENTER:case et.PAGE_DOWN:case et.PAGE_UP:case et.PAUSE:case et.PRINT_SCREEN:case et.RIGHT:case et.SHIFT:case et.UP:case et.WIN_KEY:case et.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(In){if(In>=et.ZERO&&In<=et.NINE||In>=et.NUM_ZERO&&In<=et.NUM_MULTIPLY||In>=et.A&&In<=et.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&In===0)return!0;switch(In){case et.SPACE:case et.QUESTION_MARK:case et.NUM_PLUS:case et.NUM_MINUS:case et.NUM_PERIOD:case et.NUM_DIVISION:case et.SEMICOLON:case et.DASH:case et.EQUALS:case et.COMMA:case et.PERIOD:case et.SLASH:case et.APOSTROPHE:case et.SINGLE_QUOTE:case et.OPEN_SQUARE_BRACKET:case et.BACKSLASH:case et.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ot=et,nt=ne(34952),Ve=ne(72978),xe=ne(67294),mt=ne(69610);function Lt(Pn){var In=Pn.dropPosition,Vn=Pn.dropLevelOffset,me=Pn.indent,_e={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(In){case-1:_e.top=0,_e.left=-Vn*me;break;case 1:_e.bottom=0,_e.left=-Vn*me;break;case 0:_e.bottom=0,_e.left=me;break}return xe.createElement("div",{style:_e})}var it=ne(36459),pt=ne(97685),Ce=ne(45987);function be(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ze=be()?xe.useLayoutEffect:xe.useEffect,je=Ze,Et=function(In,Vn){var me=React.useRef(!0);Ze(function(){if(!me.current)return In()},Vn),Ze(function(){return me.current=!1,function(){me.current=!0}},[])},ft=ne(73299),ut=ne(73935);function Re(Pn){return Pn instanceof HTMLElement||Pn instanceof SVGElement}function Vt(Pn){return Re(Pn)?Pn:Pn instanceof xe.Component?ut.findDOMNode(Pn):null}var wt=ne(28580);function yn(Pn,In,Vn){var me=React.useRef({});return(!("value"in me.current)||Vn(me.current.condition,In))&&(me.current.value=Pn(),me.current.condition=In),me.current.value}function Ft(Pn,In){typeof Pn=="function"?Pn(In):(0,Fe.Z)(Pn)==="object"&&Pn&&"current"in Pn&&(Pn.current=In)}function ln(){for(var Pn=arguments.length,In=new Array(Pn),Vn=0;Vn<Pn;Vn++)In[Vn]=arguments[Vn];var me=In.filter(function(_e){return _e});return me.length<=1?me[0]:function(_e){In.forEach(function(Ke){Ft(Ke,_e)})}}function Kn(){for(var Pn=arguments.length,In=new Array(Pn),Vn=0;Vn<Pn;Vn++)In[Vn]=arguments[Vn];return useMemo(function(){return ln.apply(void 0,In)},In,function(me,_e){return me.length===_e.length&&me.every(function(Ke,Ye){return Ke===_e[Ye]})})}function rt(Pn){var In,Vn,me=(0,wt.isMemo)(Pn)?Pn.type.type:Pn.type;return!(typeof me=="function"&&!((In=me.prototype)!==null&&In!==void 0&&In.render)||typeof Pn=="function"&&!((Vn=Pn.prototype)!==null&&Vn!==void 0&&Vn.render))}function dt(Pn,In){var Vn={};return Vn[Pn.toLowerCase()]=In.toLowerCase(),Vn["Webkit".concat(Pn)]="webkit".concat(In),Vn["Moz".concat(Pn)]="moz".concat(In),Vn["ms".concat(Pn)]="MS".concat(In),Vn["O".concat(Pn)]="o".concat(In.toLowerCase()),Vn}function Ae(Pn,In){var Vn={animationend:dt("Animation","AnimationEnd"),transitionend:dt("Transition","TransitionEnd")};return Pn&&("AnimationEvent"in In||delete Vn.animationend.animation,"TransitionEvent"in In||delete Vn.transitionend.transition),Vn}var Bt=Ae(be(),typeof window!="undefined"?window:{}),Cn={};if(be()){var en=document.createElement("div");Cn=en.style}var Ct={};function Rt(Pn){if(Ct[Pn])return Ct[Pn];var In=Bt[Pn];if(In)for(var Vn=Object.keys(In),me=Vn.length,_e=0;_e<me;_e+=1){var Ke=Vn[_e];if(Object.prototype.hasOwnProperty.call(In,Ke)&&Ke in Cn)return Ct[Pn]=In[Ke],Ct[Pn]}return""}var tn=Rt("animationend"),cr=Rt("transitionend"),Gn=!!(tn&&cr),qt=tn||"animationend",Fn=cr||"transitionend";function lr(Pn,In){if(!Pn)return null;if((0,Fe.Z)(Pn)==="object"){var Vn=In.replace(/-\w/g,function(me){return me[1].toUpperCase()});return Pn[Vn]}return"".concat(Pn,"-").concat(In)}var nn="none",ze="appear",ue="enter",fe="leave",ve="none",he="prepare",le="start",Ne="active",Te="end";function gt(Pn){var In=xe.useRef(!1),Vn=xe.useState(Pn),me=(0,pt.Z)(Vn,2),_e=me[0],Ke=me[1];xe.useEffect(function(){return In.current=!1,function(){In.current=!0}},[]);function Ye(Je,$e){$e&&In.current||Ke(Je)}return[_e,Ye]}var At=function(In){return+setTimeout(In,16)},Tt=function(In){return clearTimeout(In)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(At=function(In){return window.requestAnimationFrame(In)},Tt=function(In){return window.cancelAnimationFrame(In)});var zt=0,Ot=new Map;function ht(Pn){Ot.delete(Pn)}var It=function(In){var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;zt+=1;var me=zt;function _e(Ke){if(Ke===0)ht(me),In();else{var Ye=At(function(){_e(Ke-1)});Ot.set(me,Ye)}}return _e(Vn),me};It.cancel=function(Pn){var In=Ot.get(Pn);return ht(In),Tt(In)};var xt=It,sn=function(){var Pn=xe.useRef(null);function In(){xt.cancel(Pn.current)}function Vn(me){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;In();var Ke=xt(function(){_e<=1?me({isCanceled:function(){return Ke!==Pn.current}}):Vn(me,_e-1)});Pn.current=Ke}return xe.useEffect(function(){return function(){In()}},[]),[Vn,In]},Kt=be()?xe.useLayoutEffect:xe.useEffect,Un=Kt,bt=[he,le,Ne,Te],Pt=!1,vn=!0;function mn(Pn){return Pn===Ne||Pn===Te}var gn=function(Pn,In){var Vn=gt(ve),me=(0,pt.Z)(Vn,2),_e=me[0],Ke=me[1],Ye=sn(),Je=(0,pt.Z)(Ye,2),$e=Je[0],Ge=Je[1];function Xt(){Ke(he,!0)}return Un(function(){if(_e!==ve&&_e!==Te){var un=bt.indexOf(_e),Wn=bt[un+1],ar=In(_e);ar===Pt?Ke(Wn,!0):$e(function($n){function Nn(){$n.isCanceled()||Ke(Wn,!0)}ar===!0?Nn():Promise.resolve(ar).then(Nn)})}},[Pn,_e]),xe.useEffect(function(){return function(){Ge()}},[]),[Xt,_e]},or=function(Pn){var In=(0,xe.useRef)(),Vn=(0,xe.useRef)(Pn);Vn.current=Pn;var me=xe.useCallback(function(Ye){Vn.current(Ye)},[]);function _e(Ye){Ye&&(Ye.removeEventListener(Fn,me),Ye.removeEventListener(qt,me))}function Ke(Ye){In.current&&In.current!==Ye&&_e(In.current),Ye&&Ye!==In.current&&(Ye.addEventListener(Fn,me),Ye.addEventListener(qt,me),In.current=Ye)}return xe.useEffect(function(){return function(){_e(In.current)}},[]),[Ke,_e]};function er(Pn,In,Vn,me){var _e=me.motionEnter,Ke=_e===void 0?!0:_e,Ye=me.motionAppear,Je=Ye===void 0?!0:Ye,$e=me.motionLeave,Ge=$e===void 0?!0:$e,Xt=me.motionDeadline,un=me.motionLeaveImmediately,Wn=me.onAppearPrepare,ar=me.onEnterPrepare,$n=me.onLeavePrepare,Nn=me.onAppearStart,Bn=me.onEnterStart,rn=me.onLeaveStart,Xn=me.onAppearActive,Ar=me.onEnterActive,ur=me.onLeaveActive,Mn=me.onAppearEnd,mr=me.onEnterEnd,Dr=me.onLeaveEnd,_r=me.onVisibleChanged,tt=gt(),at=(0,pt.Z)(tt,2),on=at[0],Qt=at[1],Dn=gt(nn),sr=(0,pt.Z)(Dn,2),Mt=sr[0],Dt=sr[1],Nt=gt(null),Gt=(0,pt.Z)(Nt,2),Rn=Gt[0],Qn=Gt[1],wn=(0,xe.useRef)(!1),Yn=(0,xe.useRef)(null);function kr(){return Vn()}var bn=(0,xe.useRef)(!1);function pn(mi){var ii=kr();if(!(mi&&!mi.deadline&&mi.target!==ii)){var yi=bn.current,zi;Mt===ze&&yi?zi=Mn==null?void 0:Mn(ii,mi):Mt===ue&&yi?zi=mr==null?void 0:mr(ii,mi):Mt===fe&&yi&&(zi=Dr==null?void 0:Dr(ii,mi)),Mt!==nn&&yi&&zi!==!1&&(Dt(nn,!0),Qn(null,!0))}}var _n=or(pn),Tr=(0,pt.Z)(_n,1),Ir=Tr[0],Jr=xe.useMemo(function(){var mi,ii,yi;switch(Mt){case ze:return mi={},(0,de.Z)(mi,he,Wn),(0,de.Z)(mi,le,Nn),(0,de.Z)(mi,Ne,Xn),mi;case ue:return ii={},(0,de.Z)(ii,he,ar),(0,de.Z)(ii,le,Bn),(0,de.Z)(ii,Ne,Ar),ii;case fe:return yi={},(0,de.Z)(yi,he,$n),(0,de.Z)(yi,le,rn),(0,de.Z)(yi,Ne,ur),yi;default:return{}}},[Mt]),Zr=gn(Mt,function(mi){if(mi===he){var ii=Jr[he];return ii?ii(kr()):Pt}if(oi in Jr){var yi;Qn(((yi=Jr[oi])===null||yi===void 0?void 0:yi.call(Jr,kr(),null))||null)}return oi===Ne&&(Ir(kr()),Xt>0&&(clearTimeout(Yn.current),Yn.current=setTimeout(function(){pn({deadline:!0})},Xt))),vn}),Br=(0,pt.Z)(Zr,2),si=Br[0],oi=Br[1],vt=mn(oi);bn.current=vt,Un(function(){Qt(In);var mi=wn.current;if(wn.current=!0,!!Pn){var ii;!mi&&In&&Je&&(ii=ze),mi&&In&&Ke&&(ii=ue),(mi&&!In&&Ge||!mi&&un&&!In&&Ge)&&(ii=fe),ii&&(Dt(ii),si())}},[In]),(0,xe.useEffect)(function(){(Mt===ze&&!Je||Mt===ue&&!Ke||Mt===fe&&!Ge)&&Dt(nn)},[Je,Ke,Ge]),(0,xe.useEffect)(function(){return function(){wn.current=!1,clearTimeout(Yn.current)}},[]);var dn=xe.useRef(!1);(0,xe.useEffect)(function(){on&&(dn.current=!0),on!==void 0&&Mt===nn&&((dn.current||on)&&(_r==null||_r(on)),dn.current=!0)},[on,Mt]);var hr=Rn;return Jr[he]&&oi===le&&(hr=(0,Xe.Z)({transition:"none"},hr)),[Mt,oi,hr,on!=null?on:In]}var tr=function(Pn){(0,ge.Z)(Vn,Pn);var In=(0,Be.Z)(Vn);function Vn(){return(0,Me.Z)(this,Vn),In.apply(this,arguments)}return(0,ce.Z)(Vn,[{key:"render",value:function(){return this.props.children}}]),Vn}(xe.Component),Hr=tr;function jr(Pn){var In=Pn;(0,Fe.Z)(Pn)==="object"&&(In=Pn.transitionSupport);function Vn(_e){return!!(_e.motionName&&In)}var me=xe.forwardRef(function(_e,Ke){var Ye=_e.visible,Je=Ye===void 0?!0:Ye,$e=_e.removeOnLeave,Ge=$e===void 0?!0:$e,Xt=_e.forceRender,un=_e.children,Wn=_e.motionName,ar=_e.leavedClassName,$n=_e.eventProps,Nn=Vn(_e),Bn=(0,xe.useRef)(),rn=(0,xe.useRef)();function Xn(){try{return Bn.current instanceof HTMLElement?Bn.current:Vt(rn.current)}catch(Nt){return null}}var Ar=er(Nn,Je,Xn,_e),ur=(0,pt.Z)(Ar,4),Mn=ur[0],mr=ur[1],Dr=ur[2],_r=ur[3],tt=xe.useRef(_r);_r&&(tt.current=!0);var at=xe.useCallback(function(Nt){Bn.current=Nt,Ft(Ke,Nt)},[Ke]),on,Qt=(0,Xe.Z)((0,Xe.Z)({},$n),{},{visible:Je});if(!un)on=null;else if(Mn===nn||!Vn(_e))_r?on=un((0,Xe.Z)({},Qt),at):!Ge&&tt.current&&ar?on=un((0,Xe.Z)((0,Xe.Z)({},Qt),{},{className:ar}),at):Xt||!Ge&&!ar?on=un((0,Xe.Z)((0,Xe.Z)({},Qt),{},{style:{display:"none"}}),at):on=null;else{var Dn,sr;mr===he?sr="prepare":mn(mr)?sr="active":mr===le&&(sr="start"),on=un((0,Xe.Z)((0,Xe.Z)({},Qt),{},{className:Oe()(lr(Wn,Mn),(Dn={},(0,de.Z)(Dn,lr(Wn,"".concat(Mn,"-").concat(sr)),sr),(0,de.Z)(Dn,Wn,typeof Wn=="string"),Dn)),style:Dr}),at)}if(xe.isValidElement(on)&&rt(on)){var Mt=on,Dt=Mt.ref;Dt||(on=xe.cloneElement(on,{ref:at}))}return xe.createElement(Hr,{ref:rn},on)});return me.displayName="CSSMotion",me}var vr=jr(Gn),Kr="add",yr="keep",br="remove",Cr="removed";function zr(Pn){var In;return Pn&&(0,Fe.Z)(Pn)==="object"&&"key"in Pn?In=Pn:In={key:Pn},(0,Xe.Z)((0,Xe.Z)({},In),{},{key:String(In.key)})}function Wt(){var Pn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Pn.map(zr)}function On(){var Pn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Vn=[],me=0,_e=In.length,Ke=Wt(Pn),Ye=Wt(In);Ke.forEach(function(Ge){for(var Xt=!1,un=me;un<_e;un+=1){var Wn=Ye[un];if(Wn.key===Ge.key){me<un&&(Vn=Vn.concat(Ye.slice(me,un).map(function(ar){return(0,Xe.Z)((0,Xe.Z)({},ar),{},{status:Kr})})),me=un),Vn.push((0,Xe.Z)((0,Xe.Z)({},Wn),{},{status:yr})),me+=1,Xt=!0;break}}Xt||Vn.push((0,Xe.Z)((0,Xe.Z)({},Ge),{},{status:br}))}),me<_e&&(Vn=Vn.concat(Ye.slice(me).map(function(Ge){return(0,Xe.Z)((0,Xe.Z)({},Ge),{},{status:Kr})})));var Je={};Vn.forEach(function(Ge){var Xt=Ge.key;Je[Xt]=(Je[Xt]||0)+1});var $e=Object.keys(Je).filter(function(Ge){return Je[Ge]>1});return $e.forEach(function(Ge){Vn=Vn.filter(function(Xt){var un=Xt.key,Wn=Xt.status;return un!==Ge||Wn!==br}),Vn.forEach(function(Xt){Xt.key===Ge&&(Xt.status=yr)})}),Vn}var qn=["component","children","onVisibleChanged","onAllRemoved"],zn=["status"],Jn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pr(Pn){var In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vr,Vn=function(me){(0,ge.Z)(Ke,me);var _e=(0,Be.Z)(Ke);function Ke(){var Ye;(0,Me.Z)(this,Ke);for(var Je=arguments.length,$e=new Array(Je),Ge=0;Ge<Je;Ge++)$e[Ge]=arguments[Ge];return Ye=_e.call.apply(_e,[this].concat($e)),(0,de.Z)((0,we.Z)(Ye),"state",{keyEntities:[]}),(0,de.Z)((0,we.Z)(Ye),"removeKey",function(Xt){var un=Ye.state.keyEntities,Wn=un.map(function(ar){return ar.key!==Xt?ar:(0,Xe.Z)((0,Xe.Z)({},ar),{},{status:Cr})});return Ye.setState({keyEntities:Wn}),Wn.filter(function(ar){var $n=ar.status;return $n!==Cr}).length}),Ye}return(0,ce.Z)(Ke,[{key:"render",value:function(){var Je=this,$e=this.state.keyEntities,Ge=this.props,Xt=Ge.component,un=Ge.children,Wn=Ge.onVisibleChanged,ar=Ge.onAllRemoved,$n=(0,Ce.Z)(Ge,qn),Nn=Xt||xe.Fragment,Bn={};return Jn.forEach(function(rn){Bn[rn]=$n[rn],delete $n[rn]}),delete $n.keys,xe.createElement(Nn,$n,$e.map(function(rn){var Xn=rn.status,Ar=(0,Ce.Z)(rn,zn),ur=Xn===Kr||Xn===yr;return xe.createElement(In,(0,oe.Z)({},Bn,{key:Ar.key,visible:ur,eventProps:Ar,onVisibleChanged:function(mr){if(Wn==null||Wn(mr,{key:Ar.key}),!mr){var Dr=Je.removeKey(Ar.key);Dr===0&&ar&&ar()}}}),un)}))}}],[{key:"getDerivedStateFromProps",value:function(Je,$e){var Ge=Je.keys,Xt=$e.keyEntities,un=Wt(Ge),Wn=On(Xt,un);return{keyEntities:Wn.filter(function(ar){var $n=Xt.find(function(Nn){var Bn=Nn.key;return ar.key===Bn});return!($n&&$n.status===Cr&&ar.status===br)})}}}]),Ke}(xe.Component);return(0,de.Z)(Vn,"defaultProps",{component:"div"}),Vn}var wr=pr(Gn),nr=vr,St=ne(56261);function Zt(Pn,In){var Vn=xe.useState(!1),me=(0,pt.Z)(Vn,2),_e=me[0],Ke=me[1];xe.useLayoutEffect(function(){if(_e)return Pn(),function(){In()}},[_e]),xe.useLayoutEffect(function(){return Ke(!0),function(){Ke(!1)}},[])}var jt=ne(83898),kn=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],lt=function(In,Vn){var me=In.className,_e=In.style,Ke=In.motion,Ye=In.motionNodes,Je=In.motionType,$e=In.onMotionStart,Ge=In.onMotionEnd,Xt=In.active,un=In.treeNodeRequiredProps,Wn=(0,Ce.Z)(In,kn),ar=xe.useState(!0),$n=(0,pt.Z)(ar,2),Nn=$n[0],Bn=$n[1],rn=xe.useContext(mt.k),Xn=rn.prefixCls,Ar=Ye&&Je!=="hide";je(function(){Ye&&Ar!==Nn&&Bn(Ar)},[Ye]);var ur=function(){Ye&&$e()},Mn=xe.useRef(!1),mr=function(){Ye&&!Mn.current&&(Mn.current=!0,Ge())};Zt(ur,mr);var Dr=function(tt){Ar===tt&&mr()};return Ye?xe.createElement(nr,(0,oe.Z)({ref:Vn,visible:Nn},Ke,{motionAppear:Je==="show",onVisibleChanged:Dr}),function(_r,tt){var at=_r.className,on=_r.style;return xe.createElement("div",{ref:tt,className:Oe()("".concat(Xn,"-treenode-motion"),at),style:on},Ye.map(function(Qt){var Dn=(0,oe.Z)({},((0,it.Z)(Qt.data),Qt.data)),sr=Qt.title,Mt=Qt.key,Dt=Qt.isStart,Nt=Qt.isEnd;delete Dn.children;var Gt=(0,jt.H8)(Mt,un);return xe.createElement(St.Z,(0,oe.Z)({},Dn,Gt,{title:sr,active:Xt,data:Qt.data,key:Mt,isStart:Dt,isEnd:Nt}))}))}):xe.createElement(St.Z,(0,oe.Z)({domRef:Vn,className:me,style:_e},Wn,{active:Xt}))};lt.displayName="MotionTreeNode";var Ut=xe.forwardRef(lt),ke=Ut;function an(){var Pn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Vn=Pn.length,me=In.length;if(Math.abs(Vn-me)!==1)return{add:!1,key:null};function _e(Ke,Ye){var Je=new Map;Ke.forEach(function(Ge){Je.set(Ge,!0)});var $e=Ye.filter(function(Ge){return!Je.has(Ge)});return $e.length===1?$e[0]:null}return Vn<me?{add:!0,key:_e(Pn,In)}:{add:!1,key:_e(In,Pn)}}function kt(Pn,In,Vn){var me=Pn.findIndex(function(Je){return Je.key===Vn}),_e=Pn[me+1],Ke=In.findIndex(function(Je){return Je.key===Vn});if(_e){var Ye=In.findIndex(function(Je){return Je.key===_e.key});return In.slice(Ke+1,Ye)}return In.slice(Ke+1)}var Tn=["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"],rr={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Gr=function(){},Nr="RC_TREE_MOTION_".concat(Math.random()),Lr={key:Nr},Ur={key:Nr,level:0,index:0,pos:"0",node:Lr,nodes:[Lr]},Sr={parent:null,children:[],pos:Ur.pos,data:Lr,title:null,key:Nr,isStart:[],isEnd:[]};function ai(Pn,In,Vn,me){return In===!1||!Vn?Pn:Pn.slice(0,Math.ceil(Vn/me)+1)}function ir(Pn){var In=Pn.key,Vn=Pn.pos;return(0,jt.km)(In,Vn)}function Rr(Pn){for(var In=String(Pn.data.key),Vn=Pn;Vn.parent;)Vn=Vn.parent,In="".concat(Vn.data.key," > ").concat(In);return In}var Di=xe.forwardRef(function(Pn,In){var Vn=Pn.prefixCls,me=Pn.data,_e=Pn.selectable,Ke=Pn.checkable,Ye=Pn.expandedKeys,Je=Pn.selectedKeys,$e=Pn.checkedKeys,Ge=Pn.loadedKeys,Xt=Pn.loadingKeys,un=Pn.halfCheckedKeys,Wn=Pn.keyEntities,ar=Pn.disabled,$n=Pn.dragging,Nn=Pn.dragOverNodeKey,Bn=Pn.dropPosition,rn=Pn.motion,Xn=Pn.height,Ar=Pn.itemHeight,ur=Pn.virtual,Mn=Pn.focusable,mr=Pn.activeItem,Dr=Pn.focused,_r=Pn.tabIndex,tt=Pn.onKeyDown,at=Pn.onFocus,on=Pn.onBlur,Qt=Pn.onActiveChange,Dn=Pn.onListChangeStart,sr=Pn.onListChangeEnd,Mt=(0,Ce.Z)(Pn,Tn),Dt=xe.useRef(null),Nt=xe.useRef(null);xe.useImperativeHandle(In,function(){return{scrollTo:function(_i){Dt.current.scrollTo(_i)},getIndentWidth:function(){return Nt.current.offsetWidth}}});var Gt=xe.useState(Ye),Rn=(0,pt.Z)(Gt,2),Qn=Rn[0],wn=Rn[1],Yn=xe.useState(me),kr=(0,pt.Z)(Yn,2),bn=kr[0],pn=kr[1],_n=xe.useState(me),Tr=(0,pt.Z)(_n,2),Ir=Tr[0],Jr=Tr[1],Zr=xe.useState([]),Br=(0,pt.Z)(Zr,2),si=Br[0],oi=Br[1],vt=xe.useState(null),dn=(0,pt.Z)(vt,2),hr=dn[0],mi=dn[1],ii=xe.useRef(me);ii.current=me;function yi(){var fi=ii.current;pn(fi),Jr(fi),oi([]),mi(null),sr()}je(function(){wn(Ye);var fi=an(Qn,Ye);if(fi.key!==null)if(fi.add){var _i=bn.findIndex(function(La){var ia=La.key;return ia===fi.key}),ma=ai(kt(bn,me,fi.key),ur,Xn,Ar),oo=bn.slice();oo.splice(_i+1,0,Sr),Jr(oo),oi(ma),mi("show")}else{var Ja=me.findIndex(function(La){var ia=La.key;return ia===fi.key}),Wa=ai(kt(me,bn,fi.key),ur,Xn,Ar),za=me.slice();za.splice(Ja+1,0,Sr),Jr(za),oi(Wa),mi("hide")}else bn!==me&&(pn(me),Jr(me))},[Ye,me]),xe.useEffect(function(){$n||yi()},[$n]);var zi=rn?Ir:me,Mi={expandedKeys:Ye,selectedKeys:Je,loadedKeys:Ge,loadingKeys:Xt,checkedKeys:$e,halfCheckedKeys:un,dragOverNodeKey:Nn,dropPosition:Bn,keyEntities:Wn};return xe.createElement(xe.Fragment,null,Dr&&mr&&xe.createElement("span",{style:rr,"aria-live":"assertive"},Rr(mr)),xe.createElement("div",null,xe.createElement("input",{style:rr,disabled:Mn===!1||ar,tabIndex:Mn!==!1?_r:null,onKeyDown:tt,onFocus:at,onBlur:on,value:"",onChange:Gr,"aria-label":"for screen reader"})),xe.createElement("div",{className:"".concat(Vn,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},xe.createElement("div",{className:"".concat(Vn,"-indent")},xe.createElement("div",{ref:Nt,className:"".concat(Vn,"-indent-unit")}))),xe.createElement(ft.Z,(0,oe.Z)({},Mt,{data:zi,itemKey:ir,height:Xn,fullHeight:!1,virtual:ur,itemHeight:Ar,prefixCls:"".concat(Vn,"-list"),ref:Dt,onVisibleChange:function(_i,ma){var oo=new Set(_i),Ja=ma.filter(function(Wa){return!oo.has(Wa)});Ja.some(function(Wa){return ir(Wa)===Nr})&&yi()}}),function(fi){var _i=fi.pos,ma=(0,oe.Z)({},((0,it.Z)(fi.data),fi.data)),oo=fi.title,Ja=fi.key,Wa=fi.isStart,za=fi.isEnd,La=(0,jt.km)(Ja,_i);delete ma.key,delete ma.children;var ia=(0,jt.H8)(La,Mi);return xe.createElement(ke,(0,oe.Z)({},ma,ia,{title:oo,active:!!mr&&Ja===mr.key,pos:_i,data:fi.data,isStart:Wa,isEnd:za,motion:rn,motionNodes:Ja===Nr?si:null,motionType:hr,onMotionStart:Dn,onMotionEnd:yi,treeNodeRequiredProps:Mi,onMouseMove:function(){Qt(null)}}))}))});Di.displayName="NodeList";var Gi=Di,qr=ne(29873),di=ne(97153),Yi=ne(3596),Xr=10,Pi=function(Pn){(0,ge.Z)(Vn,Pn);var In=(0,Be.Z)(Vn);function Vn(){var me;(0,Me.Z)(this,Vn);for(var _e=arguments.length,Ke=new Array(_e),Ye=0;Ye<_e;Ye++)Ke[Ye]=arguments[Ye];return me=In.call.apply(In,[this].concat(Ke)),me.destroyed=!1,me.delayedDragEnterLogic=void 0,me.loadingRetryTimes={},me.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,jt.w$)()},me.dragStartMousePosition=null,me.dragNode=void 0,me.currentMouseOverDroppableNodeKey=null,me.listRef=xe.createRef(),me.onNodeDragStart=function(Je,$e){var Ge=me.state,Xt=Ge.expandedKeys,un=Ge.keyEntities,Wn=me.props.onDragStart,ar=$e.props.eventKey;me.dragNode=$e,me.dragStartMousePosition={x:Je.clientX,y:Je.clientY};var $n=(0,qr._5)(Xt,ar);me.setState({draggingNodeKey:ar,dragChildrenKeys:(0,qr.wA)(ar,un),indent:me.listRef.current.getIndentWidth()}),me.setExpandedKeys($n),window.addEventListener("dragend",me.onWindowDragEnd),Wn==null||Wn({event:Je,node:(0,jt.F)($e.props)})},me.onNodeDragEnter=function(Je,$e){var Ge=me.state,Xt=Ge.expandedKeys,un=Ge.keyEntities,Wn=Ge.dragChildrenKeys,ar=Ge.flattenNodes,$n=Ge.indent,Nn=me.props,Bn=Nn.onDragEnter,rn=Nn.onExpand,Xn=Nn.allowDrop,Ar=Nn.direction,ur=$e.props,Mn=ur.pos,mr=ur.eventKey,Dr=(0,we.Z)(me),_r=Dr.dragNode;if(me.currentMouseOverDroppableNodeKey!==mr&&(me.currentMouseOverDroppableNodeKey=mr),!_r){me.resetDragState();return}var tt=(0,qr.OM)(Je,_r,$e,$n,me.dragStartMousePosition,Xn,ar,un,Xt,Ar),at=tt.dropPosition,on=tt.dropLevelOffset,Qt=tt.dropTargetKey,Dn=tt.dropContainerKey,sr=tt.dropTargetPos,Mt=tt.dropAllowed,Dt=tt.dragOverNodeKey;if(Wn.indexOf(Qt)!==-1||!Mt){me.resetDragState();return}if(me.delayedDragEnterLogic||(me.delayedDragEnterLogic={}),Object.keys(me.delayedDragEnterLogic).forEach(function(Nt){clearTimeout(me.delayedDragEnterLogic[Nt])}),_r.props.eventKey!==$e.props.eventKey&&(Je.persist(),me.delayedDragEnterLogic[Mn]=window.setTimeout(function(){if(me.state.draggingNodeKey!==null){var Nt=(0,Se.Z)(Xt),Gt=(0,Yi.Z)(un,$e.props.eventKey);Gt&&(Gt.children||[]).length&&(Nt=(0,qr.L0)(Xt,$e.props.eventKey)),"expandedKeys"in me.props||me.setExpandedKeys(Nt),rn==null||rn(Nt,{node:(0,jt.F)($e.props),expanded:!0,nativeEvent:Je.nativeEvent})}},800)),_r.props.eventKey===Qt&&on===0){me.resetDragState();return}me.setState({dragOverNodeKey:Dt,dropPosition:at,dropLevelOffset:on,dropTargetKey:Qt,dropContainerKey:Dn,dropTargetPos:sr,dropAllowed:Mt}),Bn==null||Bn({event:Je,node:(0,jt.F)($e.props),expandedKeys:Xt})},me.onNodeDragOver=function(Je,$e){var Ge=me.state,Xt=Ge.dragChildrenKeys,un=Ge.flattenNodes,Wn=Ge.keyEntities,ar=Ge.expandedKeys,$n=Ge.indent,Nn=me.props,Bn=Nn.onDragOver,rn=Nn.allowDrop,Xn=Nn.direction,Ar=(0,we.Z)(me),ur=Ar.dragNode;if(ur){var Mn=(0,qr.OM)(Je,ur,$e,$n,me.dragStartMousePosition,rn,un,Wn,ar,Xn),mr=Mn.dropPosition,Dr=Mn.dropLevelOffset,_r=Mn.dropTargetKey,tt=Mn.dropContainerKey,at=Mn.dropAllowed,on=Mn.dropTargetPos,Qt=Mn.dragOverNodeKey;Xt.indexOf(_r)!==-1||!at||(ur.props.eventKey===_r&&Dr===0?me.state.dropPosition===null&&me.state.dropLevelOffset===null&&me.state.dropTargetKey===null&&me.state.dropContainerKey===null&&me.state.dropTargetPos===null&&me.state.dropAllowed===!1&&me.state.dragOverNodeKey===null||me.resetDragState():mr===me.state.dropPosition&&Dr===me.state.dropLevelOffset&&_r===me.state.dropTargetKey&&tt===me.state.dropContainerKey&&on===me.state.dropTargetPos&&at===me.state.dropAllowed&&Qt===me.state.dragOverNodeKey||me.setState({dropPosition:mr,dropLevelOffset:Dr,dropTargetKey:_r,dropContainerKey:tt,dropTargetPos:on,dropAllowed:at,dragOverNodeKey:Qt}),Bn==null||Bn({event:Je,node:(0,jt.F)($e.props)}))}},me.onNodeDragLeave=function(Je,$e){me.currentMouseOverDroppableNodeKey===$e.props.eventKey&&!Je.currentTarget.contains(Je.relatedTarget)&&(me.resetDragState(),me.currentMouseOverDroppableNodeKey=null);var Ge=me.props.onDragLeave;Ge==null||Ge({event:Je,node:(0,jt.F)($e.props)})},me.onWindowDragEnd=function(Je){me.onNodeDragEnd(Je,null,!0),window.removeEventListener("dragend",me.onWindowDragEnd)},me.onNodeDragEnd=function(Je,$e){var Ge=me.props.onDragEnd;me.setState({dragOverNodeKey:null}),me.cleanDragState(),Ge==null||Ge({event:Je,node:(0,jt.F)($e.props)}),me.dragNode=null,window.removeEventListener("dragend",me.onWindowDragEnd)},me.onNodeDrop=function(Je,$e){var Ge,Xt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,un=me.state,Wn=un.dragChildrenKeys,ar=un.dropPosition,$n=un.dropTargetKey,Nn=un.dropTargetPos,Bn=un.dropAllowed;if(Bn){var rn=me.props.onDrop;if(me.setState({dragOverNodeKey:null}),me.cleanDragState(),$n!==null){var Xn=(0,Xe.Z)((0,Xe.Z)({},(0,jt.H8)($n,me.getTreeNodeRequiredProps())),{},{active:((Ge=me.getActiveItem())===null||Ge===void 0?void 0:Ge.key)===$n,data:(0,Yi.Z)(me.state.keyEntities,$n).node}),Ar=Wn.indexOf($n)!==-1;(0,Ve.ZP)(!Ar,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ur=(0,qr.yx)(Nn),Mn={event:Je,node:(0,jt.F)(Xn),dragNode:me.dragNode?(0,jt.F)(me.dragNode.props):null,dragNodesKeys:[me.dragNode.props.eventKey].concat(Wn),dropToGap:ar!==0,dropPosition:ar+Number(ur[ur.length-1])};Xt||rn==null||rn(Mn),me.dragNode=null}}},me.cleanDragState=function(){var Je=me.state.draggingNodeKey;Je!==null&&me.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),me.dragStartMousePosition=null,me.currentMouseOverDroppableNodeKey=null},me.triggerExpandActionExpand=function(Je,$e){var Ge=me.state,Xt=Ge.expandedKeys,un=Ge.flattenNodes,Wn=$e.expanded,ar=$e.key,$n=$e.isLeaf;if(!($n||Je.shiftKey||Je.metaKey||Je.ctrlKey)){var Nn=un.filter(function(rn){return rn.key===ar})[0],Bn=(0,jt.F)((0,Xe.Z)((0,Xe.Z)({},(0,jt.H8)(ar,me.getTreeNodeRequiredProps())),{},{data:Nn.data}));me.setExpandedKeys(Wn?(0,qr._5)(Xt,ar):(0,qr.L0)(Xt,ar)),me.onNodeExpand(Je,Bn)}},me.onNodeClick=function(Je,$e){var Ge=me.props,Xt=Ge.onClick,un=Ge.expandAction;un==="click"&&me.triggerExpandActionExpand(Je,$e),Xt==null||Xt(Je,$e)},me.onNodeDoubleClick=function(Je,$e){var Ge=me.props,Xt=Ge.onDoubleClick,un=Ge.expandAction;un==="doubleClick"&&me.triggerExpandActionExpand(Je,$e),Xt==null||Xt(Je,$e)},me.onNodeSelect=function(Je,$e){var Ge=me.state.selectedKeys,Xt=me.state,un=Xt.keyEntities,Wn=Xt.fieldNames,ar=me.props,$n=ar.onSelect,Nn=ar.multiple,Bn=$e.selected,rn=$e[Wn.key],Xn=!Bn;Xn?Nn?Ge=(0,qr.L0)(Ge,rn):Ge=[rn]:Ge=(0,qr._5)(Ge,rn);var Ar=Ge.map(function(ur){var Mn=(0,Yi.Z)(un,ur);return Mn?Mn.node:null}).filter(function(ur){return ur});me.setUncontrolledState({selectedKeys:Ge}),$n==null||$n(Ge,{event:"select",selected:Xn,node:$e,selectedNodes:Ar,nativeEvent:Je.nativeEvent})},me.onNodeCheck=function(Je,$e,Ge){var Xt=me.state,un=Xt.keyEntities,Wn=Xt.checkedKeys,ar=Xt.halfCheckedKeys,$n=me.props,Nn=$n.checkStrictly,Bn=$n.onCheck,rn=$e.key,Xn,Ar={event:"check",node:$e,checked:Ge,nativeEvent:Je.nativeEvent};if(Nn){var ur=Ge?(0,qr.L0)(Wn,rn):(0,qr._5)(Wn,rn),Mn=(0,qr._5)(ar,rn);Xn={checked:ur,halfChecked:Mn},Ar.checkedNodes=ur.map(function(on){return(0,Yi.Z)(un,on)}).filter(function(on){return on}).map(function(on){return on.node}),me.setUncontrolledState({checkedKeys:ur})}else{var mr=(0,di.S)([].concat((0,Se.Z)(Wn),[rn]),!0,un),Dr=mr.checkedKeys,_r=mr.halfCheckedKeys;if(!Ge){var tt=new Set(Dr);tt.delete(rn);var at=(0,di.S)(Array.from(tt),{checked:!1,halfCheckedKeys:_r},un);Dr=at.checkedKeys,_r=at.halfCheckedKeys}Xn=Dr,Ar.checkedNodes=[],Ar.checkedNodesPositions=[],Ar.halfCheckedKeys=_r,Dr.forEach(function(on){var Qt=(0,Yi.Z)(un,on);if(Qt){var Dn=Qt.node,sr=Qt.pos;Ar.checkedNodes.push(Dn),Ar.checkedNodesPositions.push({node:Dn,pos:sr})}}),me.setUncontrolledState({checkedKeys:Dr},!1,{halfCheckedKeys:_r})}Bn==null||Bn(Xn,Ar)},me.onNodeLoad=function(Je){var $e=Je.key,Ge=new Promise(function(Xt,un){me.setState(function(Wn){var ar=Wn.loadedKeys,$n=ar===void 0?[]:ar,Nn=Wn.loadingKeys,Bn=Nn===void 0?[]:Nn,rn=me.props,Xn=rn.loadData,Ar=rn.onLoad;if(!Xn||$n.indexOf($e)!==-1||Bn.indexOf($e)!==-1)return null;var ur=Xn(Je);return ur.then(function(){var Mn=me.state.loadedKeys,mr=(0,qr.L0)(Mn,$e);Ar==null||Ar(mr,{event:"load",node:Je}),me.setUncontrolledState({loadedKeys:mr}),me.setState(function(Dr){return{loadingKeys:(0,qr._5)(Dr.loadingKeys,$e)}}),Xt()}).catch(function(Mn){if(me.setState(function(Dr){return{loadingKeys:(0,qr._5)(Dr.loadingKeys,$e)}}),me.loadingRetryTimes[$e]=(me.loadingRetryTimes[$e]||0)+1,me.loadingRetryTimes[$e]>=Xr){var mr=me.state.loadedKeys;(0,Ve.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),me.setUncontrolledState({loadedKeys:(0,qr.L0)(mr,$e)}),Xt()}un(Mn)}),{loadingKeys:(0,qr.L0)(Bn,$e)}})});return Ge.catch(function(){}),Ge},me.onNodeMouseEnter=function(Je,$e){var Ge=me.props.onMouseEnter;Ge==null||Ge({event:Je,node:$e})},me.onNodeMouseLeave=function(Je,$e){var Ge=me.props.onMouseLeave;Ge==null||Ge({event:Je,node:$e})},me.onNodeContextMenu=function(Je,$e){var Ge=me.props.onRightClick;Ge&&(Je.preventDefault(),Ge({event:Je,node:$e}))},me.onFocus=function(){var Je=me.props.onFocus;me.setState({focused:!0});for(var $e=arguments.length,Ge=new Array($e),Xt=0;Xt<$e;Xt++)Ge[Xt]=arguments[Xt];Je==null||Je.apply(void 0,Ge)},me.onBlur=function(){var Je=me.props.onBlur;me.setState({focused:!1}),me.onActiveChange(null);for(var $e=arguments.length,Ge=new Array($e),Xt=0;Xt<$e;Xt++)Ge[Xt]=arguments[Xt];Je==null||Je.apply(void 0,Ge)},me.getTreeNodeRequiredProps=function(){var Je=me.state,$e=Je.expandedKeys,Ge=Je.selectedKeys,Xt=Je.loadedKeys,un=Je.loadingKeys,Wn=Je.checkedKeys,ar=Je.halfCheckedKeys,$n=Je.dragOverNodeKey,Nn=Je.dropPosition,Bn=Je.keyEntities;return{expandedKeys:$e||[],selectedKeys:Ge||[],loadedKeys:Xt||[],loadingKeys:un||[],checkedKeys:Wn||[],halfCheckedKeys:ar||[],dragOverNodeKey:$n,dropPosition:Nn,keyEntities:Bn}},me.setExpandedKeys=function(Je){var $e=me.state,Ge=$e.treeData,Xt=$e.fieldNames,un=(0,jt.oH)(Ge,Je,Xt);me.setUncontrolledState({expandedKeys:Je,flattenNodes:un},!0)},me.onNodeExpand=function(Je,$e){var Ge=me.state.expandedKeys,Xt=me.state,un=Xt.listChanging,Wn=Xt.fieldNames,ar=me.props,$n=ar.onExpand,Nn=ar.loadData,Bn=$e.expanded,rn=$e[Wn.key];if(!un){var Xn=Ge.indexOf(rn),Ar=!Bn;if((0,Ve.ZP)(Bn&&Xn!==-1||!Bn&&Xn===-1,"Expand state not sync with index check"),Ar?Ge=(0,qr.L0)(Ge,rn):Ge=(0,qr._5)(Ge,rn),me.setExpandedKeys(Ge),$n==null||$n(Ge,{node:$e,expanded:Ar,nativeEvent:Je.nativeEvent}),Ar&&Nn){var ur=me.onNodeLoad($e);ur&&ur.then(function(){var Mn=(0,jt.oH)(me.state.treeData,Ge,Wn);me.setUncontrolledState({flattenNodes:Mn})}).catch(function(){var Mn=me.state.expandedKeys,mr=(0,qr._5)(Mn,rn);me.setExpandedKeys(mr)})}}},me.onListChangeStart=function(){me.setUncontrolledState({listChanging:!0})},me.onListChangeEnd=function(){setTimeout(function(){me.setUncontrolledState({listChanging:!1})})},me.onActiveChange=function(Je){var $e=me.state.activeKey,Ge=me.props.onActiveChange;$e!==Je&&(me.setState({activeKey:Je}),Je!==null&&me.scrollTo({key:Je}),Ge==null||Ge(Je))},me.getActiveItem=function(){var Je=me.state,$e=Je.activeKey,Ge=Je.flattenNodes;return $e===null?null:Ge.find(function(Xt){var un=Xt.key;return un===$e})||null},me.offsetActiveKey=function(Je){var $e=me.state,Ge=$e.flattenNodes,Xt=$e.activeKey,un=Ge.findIndex(function($n){var Nn=$n.key;return Nn===Xt});un===-1&&Je<0&&(un=Ge.length),un=(un+Je+Ge.length)%Ge.length;var Wn=Ge[un];if(Wn){var ar=Wn.key;me.onActiveChange(ar)}else me.onActiveChange(null)},me.onKeyDown=function(Je){var $e=me.state,Ge=$e.activeKey,Xt=$e.expandedKeys,un=$e.checkedKeys,Wn=$e.fieldNames,ar=me.props,$n=ar.onKeyDown,Nn=ar.checkable,Bn=ar.selectable;switch(Je.which){case ot.UP:{me.offsetActiveKey(-1),Je.preventDefault();break}case ot.DOWN:{me.offsetActiveKey(1),Je.preventDefault();break}}var rn=me.getActiveItem();if(rn&&rn.data){var Xn=me.getTreeNodeRequiredProps(),Ar=rn.data.isLeaf===!1||!!(rn.data[Wn.children]||[]).length,ur=(0,jt.F)((0,Xe.Z)((0,Xe.Z)({},(0,jt.H8)(Ge,Xn)),{},{data:rn.data,active:!0}));switch(Je.which){case ot.LEFT:{Ar&&Xt.includes(Ge)?me.onNodeExpand({},ur):rn.parent&&me.onActiveChange(rn.parent.key),Je.preventDefault();break}case ot.RIGHT:{Ar&&!Xt.includes(Ge)?me.onNodeExpand({},ur):rn.children&&rn.children.length&&me.onActiveChange(rn.children[0].key),Je.preventDefault();break}case ot.ENTER:case ot.SPACE:{Nn&&!ur.disabled&&ur.checkable!==!1&&!ur.disableCheckbox?me.onNodeCheck({},ur,!un.includes(Ge)):!Nn&&Bn&&!ur.disabled&&ur.selectable!==!1&&me.onNodeSelect({},ur);break}}}$n==null||$n(Je)},me.setUncontrolledState=function(Je){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!me.destroyed){var Xt=!1,un=!0,Wn={};Object.keys(Je).forEach(function(ar){if(ar in me.props){un=!1;return}Xt=!0,Wn[ar]=Je[ar]}),Xt&&(!$e||un)&&me.setState((0,Xe.Z)((0,Xe.Z)({},Wn),Ge))}},me.scrollTo=function(Je){me.listRef.current.scrollTo(Je)},me}return(0,ce.Z)(Vn,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var _e=this.props.activeKey;_e!==void 0&&_e!==this.state.activeKey&&(this.setState({activeKey:_e}),_e!==null&&this.scrollTo({key:_e}))}},{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 _e,Ke=this.state,Ye=Ke.focused,Je=Ke.flattenNodes,$e=Ke.keyEntities,Ge=Ke.draggingNodeKey,Xt=Ke.activeKey,un=Ke.dropLevelOffset,Wn=Ke.dropContainerKey,ar=Ke.dropTargetKey,$n=Ke.dropPosition,Nn=Ke.dragOverNodeKey,Bn=Ke.indent,rn=this.props,Xn=rn.prefixCls,Ar=rn.className,ur=rn.style,Mn=rn.showLine,mr=rn.focusable,Dr=rn.tabIndex,_r=Dr===void 0?0:Dr,tt=rn.selectable,at=rn.showIcon,on=rn.icon,Qt=rn.switcherIcon,Dn=rn.draggable,sr=rn.checkable,Mt=rn.checkStrictly,Dt=rn.disabled,Nt=rn.motion,Gt=rn.loadData,Rn=rn.filterTreeNode,Qn=rn.height,wn=rn.itemHeight,Yn=rn.virtual,kr=rn.titleRender,bn=rn.dropIndicatorRender,pn=rn.onContextMenu,_n=rn.onScroll,Tr=rn.direction,Ir=rn.rootClassName,Jr=rn.rootStyle,Zr=(0,nt.Z)(this.props,{aria:!0,data:!0}),Br;return Dn&&((0,Fe.Z)(Dn)==="object"?Br=Dn:typeof Dn=="function"?Br={nodeDraggable:Dn}:Br={}),xe.createElement(mt.k.Provider,{value:{prefixCls:Xn,selectable:tt,showIcon:at,icon:on,switcherIcon:Qt,draggable:Br,draggingNodeKey:Ge,checkable:sr,checkStrictly:Mt,disabled:Dt,keyEntities:$e,dropLevelOffset:un,dropContainerKey:Wn,dropTargetKey:ar,dropPosition:$n,dragOverNodeKey:Nn,indent:Bn,direction:Tr,dropIndicatorRender:bn,loadData:Gt,filterTreeNode:Rn,titleRender:kr,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}},xe.createElement("div",{role:"tree",className:Oe()(Xn,Ar,Ir,(_e={},(0,de.Z)(_e,"".concat(Xn,"-show-line"),Mn),(0,de.Z)(_e,"".concat(Xn,"-focused"),Ye),(0,de.Z)(_e,"".concat(Xn,"-active-focused"),Xt!==null),_e)),style:Jr},xe.createElement(Gi,(0,oe.Z)({ref:this.listRef,prefixCls:Xn,style:ur,data:Je,disabled:Dt,selectable:tt,checkable:!!sr,motion:Nt,dragging:Ge!==null,height:Qn,itemHeight:wn,virtual:Yn,focusable:mr,focused:Ye,tabIndex:_r,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:pn,onScroll:_n},this.getTreeNodeRequiredProps(),Zr))))}}],[{key:"getDerivedStateFromProps",value:function(_e,Ke){var Ye=Ke.prevProps,Je={prevProps:_e};function $e(mr){return!Ye&&mr in _e||Ye&&Ye[mr]!==_e[mr]}var Ge,Xt=Ke.fieldNames;if($e("fieldNames")&&(Xt=(0,jt.w$)(_e.fieldNames),Je.fieldNames=Xt),$e("treeData")?Ge=_e.treeData:$e("children")&&((0,Ve.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ge=(0,jt.zn)(_e.children)),Ge){Je.treeData=Ge;var un=(0,jt.I8)(Ge,{fieldNames:Xt});Je.keyEntities=(0,Xe.Z)((0,de.Z)({},Nr,Ur),un.keyEntities)}var Wn=Je.keyEntities||Ke.keyEntities;if($e("expandedKeys")||Ye&&$e("autoExpandParent"))Je.expandedKeys=_e.autoExpandParent||!Ye&&_e.defaultExpandParent?(0,qr.r7)(_e.expandedKeys,Wn):_e.expandedKeys;else if(!Ye&&_e.defaultExpandAll){var ar=(0,Xe.Z)({},Wn);delete ar[Nr],Je.expandedKeys=Object.keys(ar).map(function(mr){return ar[mr].key})}else!Ye&&_e.defaultExpandedKeys&&(Je.expandedKeys=_e.autoExpandParent||_e.defaultExpandParent?(0,qr.r7)(_e.defaultExpandedKeys,Wn):_e.defaultExpandedKeys);if(Je.expandedKeys||delete Je.expandedKeys,Ge||Je.expandedKeys){var $n=(0,jt.oH)(Ge||Ke.treeData,Je.expandedKeys||Ke.expandedKeys,Xt);Je.flattenNodes=$n}if(_e.selectable&&($e("selectedKeys")?Je.selectedKeys=(0,qr.BT)(_e.selectedKeys,_e):!Ye&&_e.defaultSelectedKeys&&(Je.selectedKeys=(0,qr.BT)(_e.defaultSelectedKeys,_e))),_e.checkable){var Nn;if($e("checkedKeys")?Nn=(0,qr.E6)(_e.checkedKeys)||{}:!Ye&&_e.defaultCheckedKeys?Nn=(0,qr.E6)(_e.defaultCheckedKeys)||{}:Ge&&(Nn=(0,qr.E6)(_e.checkedKeys)||{checkedKeys:Ke.checkedKeys,halfCheckedKeys:Ke.halfCheckedKeys}),Nn){var Bn=Nn,rn=Bn.checkedKeys,Xn=rn===void 0?[]:rn,Ar=Bn.halfCheckedKeys,ur=Ar===void 0?[]:Ar;if(!_e.checkStrictly){var Mn=(0,di.S)(Xn,!0,Wn);Xn=Mn.checkedKeys,ur=Mn.halfCheckedKeys}Je.checkedKeys=Xn,Je.halfCheckedKeys=ur}}return $e("loadedKeys")&&(Je.loadedKeys=_e.loadedKeys),Je}}]),Vn}(xe.Component);Pi.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},Pi.TreeNode=St.Z;var Mr=Pi,ua=Mr,ta=ne(73148),Ra=ne(56747),ca={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"},Xi=ca,Oi=ne(84089),la=function(In,Vn){return xe.createElement(Oi.Z,(0,oe.Z)({},In,{ref:Vn,icon:Xi}))},Ji=xe.forwardRef(la),Sa=ne(53124),Ya=ne(50881),ka=ne(33603),ba=ne(32157);const Ba=4;function fa(Pn){const{dropPosition:In,dropLevelOffset:Vn,prefixCls:me,indent:_e,direction:Ke="ltr"}=Pn,Ye=Ke==="ltr"?"left":"right",Je=Ke==="ltr"?"right":"left",$e={[Ye]:-Vn*_e+Ba,[Je]:0};switch(In){case-1:$e.top=-3;break;case 1:$e.bottom=-3;break;default:$e.bottom=-3,$e[Ye]=_e+Ba;break}return xe.createElement("div",{style:$e,className:`${me}-drop-indicator`})}var ja=ne(99184),hn=xe.forwardRef((Pn,In)=>{const{getPrefixCls:Vn,direction:me,virtual:_e,tree:Ke}=xe.useContext(Sa.E_),{prefixCls:Ye,className:Je,showIcon:$e=!1,showLine:Ge,switcherIcon:Xt,blockNode:un=!1,children:Wn,checkable:ar=!1,selectable:$n=!0,draggable:Nn,motion:Bn,style:rn}=Pn,Xn=Vn("tree",Ye),Ar=Vn(),ur=Bn!=null?Bn:Object.assign(Object.assign({},(0,ka.Z)(Ar)),{motionAppear:!1}),Mn=Object.assign(Object.assign({},Pn),{checkable:ar,selectable:$n,showIcon:$e,motion:ur,blockNode:un,showLine:!!Ge,dropIndicatorRender:fa}),[mr,Dr]=(0,ba.ZP)(Xn),_r=xe.useMemo(()=>{if(!Nn)return!1;let at={};switch(typeof Nn){case"function":at.nodeDraggable=Nn;break;case"object":at=Object.assign({},Nn);break;default:break}return at.icon!==!1&&(at.icon=at.icon||xe.createElement(Ya.Z,null)),at},[Nn]),tt=at=>xe.createElement(ja.Z,{prefixCls:Xn,switcherIcon:Xt,treeNodeProps:at,showLine:Ge});return mr(xe.createElement(ua,Object.assign({itemHeight:20,ref:In,virtual:_e},Mn,{style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),rn),prefixCls:Xn,className:Oe()({[`${Xn}-icon-hide`]:!$e,[`${Xn}-block-node`]:un,[`${Xn}-unselectable`]:!$n,[`${Xn}-rtl`]:me==="rtl"},Ke==null?void 0:Ke.className,Je,Dr),direction:me,checkable:ar&&xe.createElement("span",{className:`${Xn}-checkbox-inner`}),selectable:$n,switcherIcon:tt,draggable:_r}),Wn))}),$t;(function(Pn){Pn[Pn.None=0]="None",Pn[Pn.Start=1]="Start",Pn[Pn.End=2]="End"})($t||($t={}));function Zn(Pn,In){function Vn(me){const{key:_e,children:Ke}=me;In(_e,me)!==!1&&Zn(Ke||[],In)}Pn.forEach(Vn)}function gr(Pn){let{treeData:In,expandedKeys:Vn,startKey:me,endKey:_e}=Pn;const Ke=[];let Ye=$t.None;if(me&&me===_e)return[me];if(!me||!_e)return[];function Je($e){return $e===me||$e===_e}return Zn(In,$e=>{if(Ye===$t.End)return!1;if(Je($e)){if(Ke.push($e),Ye===$t.None)Ye=$t.Start;else if(Ye===$t.Start)return Ye=$t.End,!1}else Ye===$t.Start&&Ke.push($e);return Vn.includes($e)}),Ke}function Er(Pn,In){const Vn=(0,Se.Z)(In),me=[];return Zn(Pn,(_e,Ke)=>{const Ye=Vn.indexOf(_e);return Ye!==-1&&(me.push(Ke),Vn.splice(Ye,1)),!!Vn.length}),me}var ri=function(Pn,In){var Vn={};for(var me in Pn)Object.prototype.hasOwnProperty.call(Pn,me)&&In.indexOf(me)<0&&(Vn[me]=Pn[me]);if(Pn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,me=Object.getOwnPropertySymbols(Pn);_e<me.length;_e++)In.indexOf(me[_e])<0&&Object.prototype.propertyIsEnumerable.call(Pn,me[_e])&&(Vn[me[_e]]=Pn[me[_e]]);return Vn};function pi(Pn){const{isLeaf:In,expanded:Vn}=Pn;return In?xe.createElement(ta.Z,null):Vn?xe.createElement(Ra.Z,null):xe.createElement(Ji,null)}function Si(Pn){let{treeData:In,children:Vn}=Pn;return In||(0,jt.zn)(Vn)}const vi=(Pn,In)=>{var{defaultExpandAll:Vn,defaultExpandParent:me,defaultExpandedKeys:_e}=Pn,Ke=ri(Pn,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ye=xe.useRef(),Je=xe.useRef(),$e=()=>{const{keyEntities:_r}=(0,jt.I8)(Si(Ke));let tt;return Vn?tt=Object.keys(_r):me?tt=(0,qr.r7)(Ke.expandedKeys||_e||[],_r):tt=Ke.expandedKeys||_e,tt},[Ge,Xt]=xe.useState(Ke.selectedKeys||Ke.defaultSelectedKeys||[]),[un,Wn]=xe.useState(()=>$e());xe.useEffect(()=>{"selectedKeys"in Ke&&Xt(Ke.selectedKeys)},[Ke.selectedKeys]),xe.useEffect(()=>{"expandedKeys"in Ke&&Wn(Ke.expandedKeys)},[Ke.expandedKeys]);const ar=(_r,tt)=>{var at;return"expandedKeys"in Ke||Wn(_r),(at=Ke.onExpand)===null||at===void 0?void 0:at.call(Ke,_r,tt)},$n=(_r,tt)=>{var at;const{multiple:on}=Ke,{node:Qt,nativeEvent:Dn}=tt,{key:sr=""}=Qt,Mt=Si(Ke),Dt=Object.assign(Object.assign({},tt),{selected:!0}),Nt=(Dn==null?void 0:Dn.ctrlKey)||(Dn==null?void 0:Dn.metaKey),Gt=Dn==null?void 0:Dn.shiftKey;let Rn;on&&Nt?(Rn=_r,Ye.current=sr,Je.current=Rn,Dt.selectedNodes=Er(Mt,Rn)):on&&Gt?(Rn=Array.from(new Set([].concat((0,Se.Z)(Je.current||[]),(0,Se.Z)(gr({treeData:Mt,expandedKeys:un,startKey:sr,endKey:Ye.current}))))),Dt.selectedNodes=Er(Mt,Rn)):(Rn=[sr],Ye.current=sr,Je.current=Rn,Dt.selectedNodes=Er(Mt,Rn)),(at=Ke.onSelect)===null||at===void 0||at.call(Ke,Rn,Dt),"selectedKeys"in Ke||Xt(Rn)},{getPrefixCls:Nn,direction:Bn}=xe.useContext(Sa.E_),{prefixCls:rn,className:Xn,showIcon:Ar=!0,expandAction:ur="click"}=Ke,Mn=ri(Ke,["prefixCls","className","showIcon","expandAction"]),mr=Nn("tree",rn),Dr=Oe()(`${mr}-directory`,{[`${mr}-directory-rtl`]:Bn==="rtl"},Xn);return xe.createElement(hn,Object.assign({icon:pi,ref:In,blockNode:!0},Mn,{showIcon:Ar,expandAction:ur,prefixCls:mr,className:Dr,expandedKeys:un,selectedKeys:Ge,onSelect:$n,onExpand:ar}))};var Ti=xe.forwardRef(vi);const $i=hn;$i.DirectoryTree=Ti,$i.TreeNode=St.Z;var qi=$i},32157:function(An,Jt,ne){"use strict";ne.d(Jt,{TM:function(){return et},Yk:function(){return Oe}});var oe=ne(34367),de=ne(63185),Fe=ne(14747),Xe=ne(33507),Se=ne(45503),Me=ne(67968);const ce=new oe.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),we=(ot,nt)=>({[`.${ot}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${nt.motionDurationSlow}`}}}),ge=(ot,nt)=>({[`.${ot}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:nt.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${nt.lineWidthBold}px solid ${nt.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Be=(ot,nt)=>{const{treeCls:Ve,treeNodeCls:xe,treeNodePadding:mt,titleHeight:Lt,nodeSelectedBg:it,nodeHoverBg:pt}=nt,Ce=nt.paddingXS;return{[Ve]:Object.assign(Object.assign({},(0,Fe.Wf)(nt)),{background:nt.colorBgContainer,borderRadius:nt.borderRadius,transition:`background-color ${nt.motionDurationSlow}`,[`&${Ve}-rtl`]:{[`${Ve}-switcher`]:{"&_close":{[`${Ve}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Ve}-active-focused)`]:Object.assign({},(0,Fe.oN)(nt)),[`${Ve}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Ve}-block-node`]:{[`${Ve}-list-holder-inner`]:{alignItems:"stretch",[`${Ve}-node-content-wrapper`]:{flex:"auto"},[`${xe}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:mt,insetInlineStart:0,border:`1px solid ${nt.colorPrimary}`,opacity:0,animationName:ce,animationDuration:nt.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${xe}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${mt}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Ve}-node-content-wrapper`]:{color:nt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Ve}-node-content-wrapper`]:Object.assign({},(0,Fe.oN)(nt)),[`&:not(${xe}-disabled).filter-node ${Ve}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${Ve}-draggable-icon`]:{flexShrink:0,width:Lt,lineHeight:`${Lt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${nt.motionDurationSlow}`,[`${xe}:hover &`]:{opacity:.45}},[`&${xe}-disabled`]:{[`${Ve}-draggable-icon`]:{visibility:"hidden"}}}},[`${Ve}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Lt}},[`${Ve}-draggable-icon`]:{visibility:"hidden"},[`${Ve}-switcher`]:Object.assign(Object.assign({},we(ot,nt)),{position:"relative",flex:"none",alignSelf:"stretch",width:Lt,margin:0,lineHeight:`${Lt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${Ve}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:nt.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Lt/2,bottom:-mt,marginInlineStart:-1,borderInlineEnd:`1px solid ${nt.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Lt/2*.8,height:Lt/2,borderBottom:`1px solid ${nt.colorBorder}`,content:'""'}}}),[`${Ve}-checkbox`]:{top:"initial",marginInlineEnd:Ce},[`${Ve}-node-content-wrapper, ${Ve}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:Lt,margin:0,padding:`0 ${nt.paddingXS/2}px`,color:"inherit",lineHeight:`${Lt}px`,background:"transparent",borderRadius:nt.borderRadius,cursor:"pointer",transition:`all ${nt.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:pt},[`&${Ve}-node-selected`]:{backgroundColor:it},[`${Ve}-iconEle`]:{display:"inline-block",width:Lt,height:Lt,lineHeight:`${Lt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Ve}-unselectable ${Ve}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Ve}-node-content-wrapper`]:Object.assign({lineHeight:`${Lt}px`,userSelect:"none"},ge(ot,nt)),[`${xe}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${nt.colorPrimary}`}},"&-show-line":{[`${Ve}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Lt/2,bottom:-mt,borderInlineEnd:`1px solid ${nt.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Ve}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${xe}-leaf-last`]:{[`${Ve}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${Lt/2}px !important`}}}}})}},Qe=ot=>{const{treeCls:nt,treeNodeCls:Ve,treeNodePadding:xe,directoryNodeSelectedBg:mt,directoryNodeSelectedColor:Lt}=ot;return{[`${nt}${nt}-directory`]:{[Ve]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:xe,insetInlineStart:0,transition:`background-color ${ot.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ot.controlItemBgHover}},"> *":{zIndex:1},[`${nt}-switcher`]:{transition:`color ${ot.motionDurationMid}`},[`${nt}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${nt}-node-selected`]:{color:Lt,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:mt},[`${nt}-switcher`]:{color:Lt},[`${nt}-node-content-wrapper`]:{color:Lt,background:"transparent"}}}}}},Oe=(ot,nt)=>{const Ve=`.${ot}`,xe=`${Ve}-treenode`,mt=nt.paddingXS/2,Lt=(0,Se.TS)(nt,{treeCls:Ve,treeNodeCls:xe,treeNodePadding:mt});return[Be(ot,Lt),Qe(Lt)]},et=ot=>{const{controlHeightSM:nt}=ot;return{titleHeight:nt,nodeHoverBg:ot.controlItemBgHover,nodeSelectedBg:ot.controlItemBgActive}};Jt.ZP=(0,Me.Z)("Tree",(ot,nt)=>{let{prefixCls:Ve}=nt;return[{[ot.componentCls]:(0,de.C2)(`${Ve}-checkbox`,ot)},Oe(Ve,ot),(0,Xe.Z)(ot)]},ot=>{const{colorTextLightSolid:nt,colorPrimary:Ve}=ot;return Object.assign(Object.assign({},et(ot)),{directoryNodeSelectedColor:nt,directoryNodeSelectedBg:Ve})})},99184:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Ve}});var oe=ne(87462),de=ne(67294),Fe={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"},Xe=Fe,Se=ne(84089),Me=function(mt,Lt){return de.createElement(Se.Z,(0,oe.Z)({},mt,{ref:Lt,icon:Xe}))},ce=de.forwardRef(Me),we=ne(73148),ge=ne(3407),Be=ne(34182),Qe=ne(74664),Oe=ne(94184),et=ne.n(Oe),ot=ne(96159),Ve=xe=>{const{prefixCls:mt,switcherIcon:Lt,treeNodeProps:it,showLine:pt}=xe,{isLeaf:Ce,expanded:be,loading:Ze}=it;if(Ze)return de.createElement(ge.Z,{className:`${mt}-switcher-loading-icon`});let je;if(pt&&typeof pt=="object"&&(je=pt.showLeafIcon),Ce){if(!pt)return null;if(typeof je!="boolean"&&je){const ut=typeof je=="function"?je(it):je,Re=`${mt}-switcher-line-custom-icon`;return(0,ot.l$)(ut)?(0,ot.Tm)(ut,{className:et()(ut.props.className||"",Re)}):ut}return je?de.createElement(we.Z,{className:`${mt}-switcher-line-icon`}):de.createElement("span",{className:`${mt}-switcher-leaf-line`})}const Et=`${mt}-switcher-icon`,ft=typeof Lt=="function"?Lt(it):Lt;return(0,ot.l$)(ft)?(0,ot.Tm)(ft,{className:et()(ft.props.className||"",Et)}):ft!==void 0?ft:pt?be?de.createElement(Be.Z,{className:`${mt}-switcher-line-icon`}):de.createElement(Qe.Z,{className:`${mt}-switcher-line-icon`}):de.createElement(ce,{className:Et})}},72665:function(An,Jt){"use strict";var ne;var oe=typeof Symbol=="function"&&Symbol.for,de=oe?Symbol.for("react.element"):60103,Fe=oe?Symbol.for("react.portal"):60106,Xe=oe?Symbol.for("react.fragment"):60107,Se=oe?Symbol.for("react.strict_mode"):60108,Me=oe?Symbol.for("react.profiler"):60114,ce=oe?Symbol.for("react.provider"):60109,we=oe?Symbol.for("react.context"):60110,ge=oe?Symbol.for("react.async_mode"):60111,Be=oe?Symbol.for("react.concurrent_mode"):60111,Qe=oe?Symbol.for("react.forward_ref"):60112,Oe=oe?Symbol.for("react.suspense"):60113,et=oe?Symbol.for("react.suspense_list"):60120,ot=oe?Symbol.for("react.memo"):60115,nt=oe?Symbol.for("react.lazy"):60116,Ve=oe?Symbol.for("react.block"):60121,xe=oe?Symbol.for("react.fundamental"):60117,mt=oe?Symbol.for("react.responder"):60118,Lt=oe?Symbol.for("react.scope"):60119;function it(Ce){if(typeof Ce=="object"&&Ce!==null){var be=Ce.$$typeof;switch(be){case de:switch(Ce=Ce.type,Ce){case ge:case Be:case Xe:case Me:case Se:case Oe:return Ce;default:switch(Ce=Ce&&Ce.$$typeof,Ce){case we:case Qe:case nt:case ot:case ce:return Ce;default:return be}}case Fe:return be}}}function pt(Ce){return it(Ce)===Be}ne=ge,ne=Be,ne=we,ne=ce,ne=de,ne=Qe,ne=Xe,ne=nt,ne=ot,ne=Fe,ne=Me,ne=Se,ne=Oe,ne=function(Ce){return pt(Ce)||it(Ce)===ge},ne=pt,ne=function(Ce){return it(Ce)===we},ne=function(Ce){return it(Ce)===ce},ne=function(Ce){return typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===de},ne=function(Ce){return it(Ce)===Qe},ne=function(Ce){return it(Ce)===Xe},ne=function(Ce){return it(Ce)===nt},Jt.isMemo=function(Ce){return it(Ce)===ot},ne=function(Ce){return it(Ce)===Fe},ne=function(Ce){return it(Ce)===Me},ne=function(Ce){return it(Ce)===Se},ne=function(Ce){return it(Ce)===Oe},ne=function(Ce){return typeof Ce=="string"||typeof Ce=="function"||Ce===Xe||Ce===Be||Ce===Me||Ce===Se||Ce===Oe||Ce===et||typeof Ce=="object"&&Ce!==null&&(Ce.$$typeof===nt||Ce.$$typeof===ot||Ce.$$typeof===ce||Ce.$$typeof===we||Ce.$$typeof===Qe||Ce.$$typeof===xe||Ce.$$typeof===mt||Ce.$$typeof===Lt||Ce.$$typeof===Ve)},ne=it},12060:function(An,Jt,ne){"use strict";An.exports=ne(72665)},41771:function(An,Jt){"use strict";var ne;var oe=typeof Symbol=="function"&&Symbol.for,de=oe?Symbol.for("react.element"):60103,Fe=oe?Symbol.for("react.portal"):60106,Xe=oe?Symbol.for("react.fragment"):60107,Se=oe?Symbol.for("react.strict_mode"):60108,Me=oe?Symbol.for("react.profiler"):60114,ce=oe?Symbol.for("react.provider"):60109,we=oe?Symbol.for("react.context"):60110,ge=oe?Symbol.for("react.async_mode"):60111,Be=oe?Symbol.for("react.concurrent_mode"):60111,Qe=oe?Symbol.for("react.forward_ref"):60112,Oe=oe?Symbol.for("react.suspense"):60113,et=oe?Symbol.for("react.suspense_list"):60120,ot=oe?Symbol.for("react.memo"):60115,nt=oe?Symbol.for("react.lazy"):60116,Ve=oe?Symbol.for("react.block"):60121,xe=oe?Symbol.for("react.fundamental"):60117,mt=oe?Symbol.for("react.responder"):60118,Lt=oe?Symbol.for("react.scope"):60119;function it(Ce){if(typeof Ce=="object"&&Ce!==null){var be=Ce.$$typeof;switch(be){case de:switch(Ce=Ce.type,Ce){case ge:case Be:case Xe:case Me:case Se:case Oe:return Ce;default:switch(Ce=Ce&&Ce.$$typeof,Ce){case we:case Qe:case nt:case ot:case ce:return Ce;default:return be}}case Fe:return be}}}function pt(Ce){return it(Ce)===Be}ne=ge,ne=Be,ne=we,ne=ce,ne=de,ne=Qe,ne=Xe,ne=nt,ne=ot,ne=Fe,ne=Me,ne=Se,ne=Oe,ne=function(Ce){return pt(Ce)||it(Ce)===ge},ne=pt,ne=function(Ce){return it(Ce)===we},ne=function(Ce){return it(Ce)===ce},ne=function(Ce){return typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===de},ne=function(Ce){return it(Ce)===Qe},Jt.isFragment=function(Ce){return it(Ce)===Xe},ne=function(Ce){return it(Ce)===nt},ne=function(Ce){return it(Ce)===ot},ne=function(Ce){return it(Ce)===Fe},ne=function(Ce){return it(Ce)===Me},ne=function(Ce){return it(Ce)===Se},ne=function(Ce){return it(Ce)===Oe},ne=function(Ce){return typeof Ce=="string"||typeof Ce=="function"||Ce===Xe||Ce===Be||Ce===Me||Ce===Se||Ce===Oe||Ce===et||typeof Ce=="object"&&Ce!==null&&(Ce.$$typeof===nt||Ce.$$typeof===ot||Ce.$$typeof===ce||Ce.$$typeof===we||Ce.$$typeof===Qe||Ce.$$typeof===xe||Ce.$$typeof===mt||Ce.$$typeof===Lt||Ce.$$typeof===Ve)},ne=it},47655:function(An,Jt,ne){"use strict";An.exports=ne(41771)},64701:function(An,Jt,ne){"use strict";ne.r(Jt),ne.d(Jt,{ResizableTextArea:function(){return Cn},default:function(){return Gn}});var oe=ne(87462),de=ne(1413),Fe=ne(4942),Xe=ne(71002),Se=ne(97685),Me=ne(45987),ce=ne(74902),we=ne(94184),ge=ne.n(we),Be=ne(67656),Qe=ne(87887),Oe=ne(67294);function et(qt){var Fn=Oe.useRef();Fn.current=qt;var lr=Oe.useCallback(function(){for(var nn,ze=arguments.length,ue=new Array(ze),fe=0;fe<ze;fe++)ue[fe]=arguments[fe];return(nn=Fn.current)===null||nn===void 0?void 0:nn.call.apply(nn,[Fn].concat(ue))},[]);return lr}function ot(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var nt=ot()?Oe.useLayoutEffect:Oe.useEffect,Ve=nt,xe=function(Fn,lr){var nn=Oe.useRef(!0);nt(function(){if(!nn.current)return Fn()},lr),nt(function(){return nn.current=!1,function(){nn.current=!0}},[])};function mt(qt){var Fn=Oe.useRef(!1),lr=Oe.useState(qt),nn=(0,Se.Z)(lr,2),ze=nn[0],ue=nn[1];Oe.useEffect(function(){return Fn.current=!1,function(){Fn.current=!0}},[]);function fe(ve,he){he&&Fn.current||ue(ve)}return[ze,fe]}function Lt(qt){return qt!==void 0}function it(qt,Fn){var lr=Fn||{},nn=lr.defaultValue,ze=lr.value,ue=lr.onChange,fe=lr.postState,ve=mt(function(){return Lt(ze)?ze:Lt(nn)?typeof nn=="function"?nn():nn:typeof qt=="function"?qt():qt}),he=(0,Se.Z)(ve,2),le=he[0],Ne=he[1],Te=ze!==void 0?ze:le,gt=fe?fe(Te):Te,At=et(ue),Tt=mt([Te]),zt=(0,Se.Z)(Tt,2),Ot=zt[0],ht=zt[1];xe(function(){var xt=Ot[0];le!==xt&&At(le,xt)},[Ot]),xe(function(){Lt(ze)||Ne(ze)},[ze]);var It=et(function(xt,sn){Ne(xt,sn),ht([Te],sn)});return[gt,It]}var pt=ne(48555),Ce=function(Fn){return+setTimeout(Fn,16)},be=function(Fn){return clearTimeout(Fn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ce=function(Fn){return window.requestAnimationFrame(Fn)},be=function(Fn){return window.cancelAnimationFrame(Fn)});var Ze=0,je=new Map;function Et(qt){je.delete(qt)}var ft=function(Fn){var lr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ze+=1;var nn=Ze;function ze(ue){if(ue===0)Et(nn),Fn();else{var fe=Ce(function(){ze(ue-1)});je.set(nn,fe)}}return ze(lr),nn};ft.cancel=function(qt){var Fn=je.get(qt);return Et(Fn),be(Fn)};var ut=ft,Re=`
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;
`,Vt=["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"],wt={},yn;function Ft(qt){var Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lr=qt.getAttribute("id")||qt.getAttribute("data-reactid")||qt.getAttribute("name");if(Fn&&wt[lr])return wt[lr];var nn=window.getComputedStyle(qt),ze=nn.getPropertyValue("box-sizing")||nn.getPropertyValue("-moz-box-sizing")||nn.getPropertyValue("-webkit-box-sizing"),ue=parseFloat(nn.getPropertyValue("padding-bottom"))+parseFloat(nn.getPropertyValue("padding-top")),fe=parseFloat(nn.getPropertyValue("border-bottom-width"))+parseFloat(nn.getPropertyValue("border-top-width")),ve=Vt.map(function(le){return"".concat(le,":").concat(nn.getPropertyValue(le))}).join(";"),he={sizingStyle:ve,paddingSize:ue,borderSize:fe,boxSizing:ze};return Fn&&lr&&(wt[lr]=he),he}function ln(qt){var Fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,nn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;yn||(yn=document.createElement("textarea"),yn.setAttribute("tab-index","-1"),yn.setAttribute("aria-hidden","true"),document.body.appendChild(yn)),qt.getAttribute("wrap")?yn.setAttribute("wrap",qt.getAttribute("wrap")):yn.removeAttribute("wrap");var ze=Ft(qt,Fn),ue=ze.paddingSize,fe=ze.borderSize,ve=ze.boxSizing,he=ze.sizingStyle;yn.setAttribute("style","".concat(he,";").concat(Re)),yn.value=qt.value||qt.placeholder||"";var le=void 0,Ne=void 0,Te,gt=yn.scrollHeight;if(ve==="border-box"?gt+=fe:ve==="content-box"&&(gt-=ue),lr!==null||nn!==null){yn.value=" ";var At=yn.scrollHeight-ue;lr!==null&&(le=At*lr,ve==="border-box"&&(le=le+ue+fe),gt=Math.max(le,gt)),nn!==null&&(Ne=At*nn,ve==="border-box"&&(Ne=Ne+ue+fe),Te=gt>Ne?"":"hidden",gt=Math.min(Ne,gt))}var Tt={height:gt,overflowY:Te,resize:"none"};return le&&(Tt.minHeight=le),Ne&&(Tt.maxHeight=Ne),Tt}var Kn=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],rt=0,dt=1,Ae=2,Bt=Oe.forwardRef(function(qt,Fn){var lr=qt,nn=lr.prefixCls,ze=lr.onPressEnter,ue=lr.defaultValue,fe=lr.value,ve=lr.autoSize,he=lr.onResize,le=lr.className,Ne=lr.style,Te=lr.disabled,gt=lr.onChange,At=lr.onInternalAutoSize,Tt=(0,Me.Z)(lr,Kn),zt=it(ue,{value:fe,postState:function(zn){return zn!=null?zn:""}}),Ot=(0,Se.Z)(zt,2),ht=Ot[0],It=Ot[1],xt=function(zn){It(zn.target.value),gt==null||gt(zn)},sn=Oe.useRef();Oe.useImperativeHandle(Fn,function(){return{textArea:sn.current}});var Kt=Oe.useMemo(function(){return ve&&(0,Xe.Z)(ve)==="object"?[ve.minRows,ve.maxRows]:[]},[ve]),Un=(0,Se.Z)(Kt,2),bt=Un[0],Pt=Un[1],vn=!!ve,mn=function(){try{if(document.activeElement===sn.current){var zn=sn.current,Jn=zn.selectionStart,pr=zn.selectionEnd,wr=zn.scrollTop;sn.current.setSelectionRange(Jn,pr),sn.current.scrollTop=wr}}catch(nr){}},gn=Oe.useState(Ae),or=(0,Se.Z)(gn,2),er=or[0],tr=or[1],Hr=Oe.useState(),jr=(0,Se.Z)(Hr,2),vr=jr[0],Kr=jr[1],yr=function(){tr(rt)};Ve(function(){vn&&yr()},[fe,bt,Pt,vn]),Ve(function(){if(er===rt)tr(dt);else if(er===dt){var qn=ln(sn.current,!1,bt,Pt);tr(Ae),Kr(qn)}else mn()},[er]);var br=Oe.useRef(),Cr=function(){ut.cancel(br.current)},zr=function(zn){er===Ae&&(he==null||he(zn),ve&&(Cr(),br.current=ut(function(){yr()})))};Oe.useEffect(function(){return Cr},[]);var Wt=vn?vr:null,On=(0,de.Z)((0,de.Z)({},Ne),Wt);return(er===rt||er===dt)&&(On.overflowY="hidden",On.overflowX="hidden"),Oe.createElement(pt.Z,{onResize:zr,disabled:!(ve||he)},Oe.createElement("textarea",(0,oe.Z)({},Tt,{ref:sn,style:On,className:ge()(nn,le,(0,Fe.Z)({},"".concat(nn,"-disabled"),Te)),disabled:Te,value:ht,onChange:xt})))}),Cn=Bt,en=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ct(qt,Fn){return(0,ce.Z)(qt||"").slice(0,Fn).join("")}function Rt(qt,Fn,lr,nn){var ze=lr;return qt?ze=Ct(lr,nn):(0,ce.Z)(Fn||"").length<lr.length&&(0,ce.Z)(lr||"").length>nn&&(ze=Fn),ze}var tn=Oe.forwardRef(function(qt,Fn){var lr,nn=qt.defaultValue,ze=qt.value,ue=qt.onFocus,fe=qt.onBlur,ve=qt.onChange,he=qt.allowClear,le=qt.maxLength,Ne=qt.onCompositionStart,Te=qt.onCompositionEnd,gt=qt.suffix,At=qt.prefixCls,Tt=At===void 0?"rc-textarea":At,zt=qt.classes,Ot=qt.showCount,ht=qt.className,It=qt.style,xt=qt.disabled,sn=qt.hidden,Kt=qt.classNames,Un=qt.styles,bt=qt.onResize,Pt=(0,Me.Z)(qt,en),vn=it(nn,{value:ze,defaultValue:nn}),mn=(0,Se.Z)(vn,2),gn=mn[0],or=mn[1],er=(0,Oe.useRef)(null),tr=Oe.useState(!1),Hr=(0,Se.Z)(tr,2),jr=Hr[0],vr=Hr[1],Kr=Oe.useState(!1),yr=(0,Se.Z)(Kr,2),br=yr[0],Cr=yr[1],zr=Oe.useRef(),Wt=Oe.useRef(0),On=Oe.useState(null),qn=(0,Se.Z)(On,2),zn=qn[0],Jn=qn[1],pr=function(){var Ur;(Ur=er.current)===null||Ur===void 0||Ur.textArea.focus()};(0,Oe.useImperativeHandle)(Fn,function(){return{resizableTextArea:er.current,focus:pr,blur:function(){var Ur;(Ur=er.current)===null||Ur===void 0||Ur.textArea.blur()}}}),(0,Oe.useEffect)(function(){vr(function(Lr){return!xt&&Lr})},[xt]);var wr=Number(le)>0,nr=function(Ur){Cr(!0),zr.current=gn,Wt.current=Ur.currentTarget.selectionStart,Ne==null||Ne(Ur)},St=function(Ur){Cr(!1);var Sr=Ur.currentTarget.value;if(wr){var ai,ir=Wt.current>=le+1||Wt.current===((ai=zr.current)===null||ai===void 0?void 0:ai.length);Sr=Rt(ir,zr.current,Sr,le)}Sr!==gn&&(or(Sr),(0,Qe.rJ)(Ur.currentTarget,Ur,ve,Sr)),Te==null||Te(Ur)},Zt=function(Ur){var Sr=Ur.target.value;if(!br&&wr){var ai=Ur.target.selectionStart>=le+1||Ur.target.selectionStart===Sr.length||!Ur.target.selectionStart;Sr=Rt(ai,gn,Sr,le)}or(Sr),(0,Qe.rJ)(Ur.currentTarget,Ur,ve,Sr)},jt=function(Ur){var Sr=Pt.onPressEnter,ai=Pt.onKeyDown;Ur.key==="Enter"&&Sr&&Sr(Ur),ai==null||ai(Ur)},kn=function(Ur){vr(!0),ue==null||ue(Ur)},lt=function(Ur){vr(!1),fe==null||fe(Ur)},Ut=function(Ur){var Sr;or(""),pr(),(0,Qe.rJ)((Sr=er.current)===null||Sr===void 0?void 0:Sr.textArea,Ur,ve)},ke=(0,Qe.D7)(gn);!br&&wr&&ze==null&&(ke=Ct(ke,le));var an=gt,kt;if(Ot){var Tn=(0,ce.Z)(ke).length;(0,Xe.Z)(Ot)==="object"?kt=Ot.formatter({value:ke,count:Tn,maxLength:le}):kt="".concat(Tn).concat(wr?" / ".concat(le):""),an=Oe.createElement(Oe.Fragment,null,an,Oe.createElement("span",{className:ge()("".concat(Tt,"-data-count"),Kt==null?void 0:Kt.count),style:Un==null?void 0:Un.count},kt))}var rr=function(Ur){var Sr;bt==null||bt(Ur),(Sr=er.current)!==null&&Sr!==void 0&&Sr.textArea.style.height&&Jn(!0)},Gr=!Pt.autoSize&&!Ot&&!he,Nr=Oe.createElement(Be.BaseInput,{value:ke,allowClear:he,handleReset:Ut,suffix:an,prefixCls:Tt,classes:{affixWrapper:ge()(zt==null?void 0:zt.affixWrapper,(lr={},(0,Fe.Z)(lr,"".concat(Tt,"-show-count"),Ot),(0,Fe.Z)(lr,"".concat(Tt,"-textarea-allow-clear"),he),lr))},disabled:xt,focused:jr,className:ht,style:(0,de.Z)((0,de.Z)({},It),zn&&!Gr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof kt=="string"?kt:void 0}},hidden:sn,inputElement:Oe.createElement(Cn,(0,oe.Z)({},Pt,{onKeyDown:jt,onChange:Zt,onFocus:kn,onBlur:lt,onCompositionStart:nr,onCompositionEnd:St,className:Kt==null?void 0:Kt.textarea,style:(0,de.Z)((0,de.Z)({},Un==null?void 0:Un.textarea),{},{resize:It==null?void 0:It.resize}),disabled:xt,prefixCls:Tt,onResize:rr,ref:er}))});return Nr}),cr=tn,Gn=cr},56261:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return je}});var oe=ne(87462),de=ne(4942),Fe=ne(45987),Xe=ne(1413),Se=ne(15671),Me=ne(43144),ce=ne(97326),we=ne(60136),ge=ne(51630),Be=ne(94184),Qe=ne.n(Be),Oe=ne(34952),et=ne(67294),ot=ne(69610),nt=function(ft){for(var ut=ft.prefixCls,Re=ft.level,Vt=ft.isStart,wt=ft.isEnd,yn="".concat(ut,"-indent-unit"),Ft=[],ln=0;ln<Re;ln+=1){var Kn;Ft.push(et.createElement("span",{key:ln,className:Qe()(yn,(Kn={},(0,de.Z)(Kn,"".concat(yn,"-start"),Vt[ln]),(0,de.Z)(Kn,"".concat(yn,"-end"),wt[ln]),Kn))}))}return et.createElement("span",{"aria-hidden":"true",className:"".concat(ut,"-indent")},Ft)},Ve=et.memo(nt),xe=ne(3596),mt=ne(83898),Lt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],it="open",pt="close",Ce="---",be=function(Et){(0,we.Z)(ut,Et);var ft=(0,ge.Z)(ut);function ut(){var Re;(0,Se.Z)(this,ut);for(var Vt=arguments.length,wt=new Array(Vt),yn=0;yn<Vt;yn++)wt[yn]=arguments[yn];return Re=ft.call.apply(ft,[this].concat(wt)),Re.state={dragNodeHighlight:!1},Re.selectHandle=void 0,Re.cacheIndent=void 0,Re.onSelectorClick=function(Ft){var ln=Re.props.context.onNodeClick;ln(Ft,(0,mt.F)(Re.props)),Re.isSelectable()?Re.onSelect(Ft):Re.onCheck(Ft)},Re.onSelectorDoubleClick=function(Ft){var ln=Re.props.context.onNodeDoubleClick;ln(Ft,(0,mt.F)(Re.props))},Re.onSelect=function(Ft){if(!Re.isDisabled()){var ln=Re.props.context.onNodeSelect;ln(Ft,(0,mt.F)(Re.props))}},Re.onCheck=function(Ft){if(!Re.isDisabled()){var ln=Re.props,Kn=ln.disableCheckbox,rt=ln.checked,dt=Re.props.context.onNodeCheck;if(!(!Re.isCheckable()||Kn)){var Ae=!rt;dt(Ft,(0,mt.F)(Re.props),Ae)}}},Re.onMouseEnter=function(Ft){var ln=Re.props.context.onNodeMouseEnter;ln(Ft,(0,mt.F)(Re.props))},Re.onMouseLeave=function(Ft){var ln=Re.props.context.onNodeMouseLeave;ln(Ft,(0,mt.F)(Re.props))},Re.onContextMenu=function(Ft){var ln=Re.props.context.onNodeContextMenu;ln(Ft,(0,mt.F)(Re.props))},Re.onDragStart=function(Ft){var ln=Re.props.context.onNodeDragStart;Ft.stopPropagation(),Re.setState({dragNodeHighlight:!0}),ln(Ft,(0,ce.Z)(Re));try{Ft.dataTransfer.setData("text/plain","")}catch(Kn){}},Re.onDragEnter=function(Ft){var ln=Re.props.context.onNodeDragEnter;Ft.preventDefault(),Ft.stopPropagation(),ln(Ft,(0,ce.Z)(Re))},Re.onDragOver=function(Ft){var ln=Re.props.context.onNodeDragOver;Ft.preventDefault(),Ft.stopPropagation(),ln(Ft,(0,ce.Z)(Re))},Re.onDragLeave=function(Ft){var ln=Re.props.context.onNodeDragLeave;Ft.stopPropagation(),ln(Ft,(0,ce.Z)(Re))},Re.onDragEnd=function(Ft){var ln=Re.props.context.onNodeDragEnd;Ft.stopPropagation(),Re.setState({dragNodeHighlight:!1}),ln(Ft,(0,ce.Z)(Re))},Re.onDrop=function(Ft){var ln=Re.props.context.onNodeDrop;Ft.preventDefault(),Ft.stopPropagation(),Re.setState({dragNodeHighlight:!1}),ln(Ft,(0,ce.Z)(Re))},Re.onExpand=function(Ft){var ln=Re.props,Kn=ln.loading,rt=ln.context.onNodeExpand;Kn||rt(Ft,(0,mt.F)(Re.props))},Re.setSelectHandle=function(Ft){Re.selectHandle=Ft},Re.getNodeState=function(){var Ft=Re.props.expanded;return Re.isLeaf()?null:Ft?it:pt},Re.hasChildren=function(){var Ft=Re.props.eventKey,ln=Re.props.context.keyEntities,Kn=(0,xe.Z)(ln,Ft)||{},rt=Kn.children;return!!(rt||[]).length},Re.isLeaf=function(){var Ft=Re.props,ln=Ft.isLeaf,Kn=Ft.loaded,rt=Re.props.context.loadData,dt=Re.hasChildren();return ln===!1?!1:ln||!rt&&!dt||rt&&Kn&&!dt},Re.isDisabled=function(){var Ft=Re.props.disabled,ln=Re.props.context.disabled;return!!(ln||Ft)},Re.isCheckable=function(){var Ft=Re.props.checkable,ln=Re.props.context.checkable;return!ln||Ft===!1?!1:ln},Re.syncLoadData=function(Ft){var ln=Ft.expanded,Kn=Ft.loading,rt=Ft.loaded,dt=Re.props.context,Ae=dt.loadData,Bt=dt.onNodeLoad;Kn||Ae&&ln&&!Re.isLeaf()&&!Re.hasChildren()&&!rt&&Bt((0,mt.F)(Re.props))},Re.isDraggable=function(){var Ft=Re.props,ln=Ft.data,Kn=Ft.context.draggable;return!!(Kn&&(!Kn.nodeDraggable||Kn.nodeDraggable(ln)))},Re.renderDragHandler=function(){var Ft=Re.props.context,ln=Ft.draggable,Kn=Ft.prefixCls;return ln!=null&&ln.icon?et.createElement("span",{className:"".concat(Kn,"-draggable-icon")},ln.icon):null},Re.renderSwitcherIconDom=function(Ft){var ln=Re.props.switcherIcon,Kn=Re.props.context.switcherIcon,rt=ln||Kn;return typeof rt=="function"?rt((0,Xe.Z)((0,Xe.Z)({},Re.props),{},{isLeaf:Ft})):rt},Re.renderSwitcher=function(){var Ft=Re.props.expanded,ln=Re.props.context.prefixCls;if(Re.isLeaf()){var Kn=Re.renderSwitcherIconDom(!0);return Kn!==!1?et.createElement("span",{className:Qe()("".concat(ln,"-switcher"),"".concat(ln,"-switcher-noop"))},Kn):null}var rt=Qe()("".concat(ln,"-switcher"),"".concat(ln,"-switcher_").concat(Ft?it:pt)),dt=Re.renderSwitcherIconDom(!1);return dt!==!1?et.createElement("span",{onClick:Re.onExpand,className:rt},dt):null},Re.renderCheckbox=function(){var Ft=Re.props,ln=Ft.checked,Kn=Ft.halfChecked,rt=Ft.disableCheckbox,dt=Re.props.context.prefixCls,Ae=Re.isDisabled(),Bt=Re.isCheckable();if(!Bt)return null;var Cn=typeof Bt!="boolean"?Bt:null;return et.createElement("span",{className:Qe()("".concat(dt,"-checkbox"),ln&&"".concat(dt,"-checkbox-checked"),!ln&&Kn&&"".concat(dt,"-checkbox-indeterminate"),(Ae||rt)&&"".concat(dt,"-checkbox-disabled")),onClick:Re.onCheck},Cn)},Re.renderIcon=function(){var Ft=Re.props.loading,ln=Re.props.context.prefixCls;return et.createElement("span",{className:Qe()("".concat(ln,"-iconEle"),"".concat(ln,"-icon__").concat(Re.getNodeState()||"docu"),Ft&&"".concat(ln,"-icon_loading"))})},Re.renderSelector=function(){var Ft=Re.state.dragNodeHighlight,ln=Re.props,Kn=ln.title,rt=Kn===void 0?Ce:Kn,dt=ln.selected,Ae=ln.icon,Bt=ln.loading,Cn=ln.data,en=Re.props.context,Ct=en.prefixCls,Rt=en.showIcon,tn=en.icon,cr=en.loadData,Gn=en.titleRender,qt=Re.isDisabled(),Fn="".concat(Ct,"-node-content-wrapper"),lr;if(Rt){var nn=Ae||tn;lr=nn?et.createElement("span",{className:Qe()("".concat(Ct,"-iconEle"),"".concat(Ct,"-icon__customize"))},typeof nn=="function"?nn(Re.props):nn):Re.renderIcon()}else cr&&Bt&&(lr=Re.renderIcon());var ze;typeof rt=="function"?ze=rt(Cn):Gn?ze=Gn(Cn):ze=rt;var ue=et.createElement("span",{className:"".concat(Ct,"-title")},ze);return et.createElement("span",{ref:Re.setSelectHandle,title:typeof rt=="string"?rt:"",className:Qe()("".concat(Fn),"".concat(Fn,"-").concat(Re.getNodeState()||"normal"),!qt&&(dt||Ft)&&"".concat(Ct,"-node-selected")),onMouseEnter:Re.onMouseEnter,onMouseLeave:Re.onMouseLeave,onContextMenu:Re.onContextMenu,onClick:Re.onSelectorClick,onDoubleClick:Re.onSelectorDoubleClick},lr,ue,Re.renderDropIndicator())},Re.renderDropIndicator=function(){var Ft=Re.props,ln=Ft.disabled,Kn=Ft.eventKey,rt=Re.props.context,dt=rt.draggable,Ae=rt.dropLevelOffset,Bt=rt.dropPosition,Cn=rt.prefixCls,en=rt.indent,Ct=rt.dropIndicatorRender,Rt=rt.dragOverNodeKey,tn=rt.direction,cr=!!dt,Gn=!ln&&cr&&Rt===Kn,qt=en!=null?en:Re.cacheIndent;return Re.cacheIndent=en,Gn?Ct({dropPosition:Bt,dropLevelOffset:Ae,indent:qt,prefixCls:Cn,direction:tn}):null},Re}return(0,Me.Z)(ut,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Vt=this.props.selectable,wt=this.props.context.selectable;return typeof Vt=="boolean"?Vt:wt}},{key:"render",value:function(){var Vt,wt=this.props,yn=wt.eventKey,Ft=wt.className,ln=wt.style,Kn=wt.dragOver,rt=wt.dragOverGapTop,dt=wt.dragOverGapBottom,Ae=wt.isLeaf,Bt=wt.isStart,Cn=wt.isEnd,en=wt.expanded,Ct=wt.selected,Rt=wt.checked,tn=wt.halfChecked,cr=wt.loading,Gn=wt.domRef,qt=wt.active,Fn=wt.data,lr=wt.onMouseMove,nn=wt.selectable,ze=(0,Fe.Z)(wt,Lt),ue=this.props.context,fe=ue.prefixCls,ve=ue.filterTreeNode,he=ue.keyEntities,le=ue.dropContainerKey,Ne=ue.dropTargetKey,Te=ue.draggingNodeKey,gt=this.isDisabled(),At=(0,Oe.Z)(ze,{aria:!0,data:!0}),Tt=(0,xe.Z)(he,yn)||{},zt=Tt.level,Ot=Cn[Cn.length-1],ht=this.isDraggable(),It=!gt&&ht,xt=Te===yn,sn=nn!==void 0?{"aria-selected":!!nn}:void 0;return et.createElement("div",(0,oe.Z)({ref:Gn,className:Qe()(Ft,"".concat(fe,"-treenode"),(Vt={},(0,de.Z)(Vt,"".concat(fe,"-treenode-disabled"),gt),(0,de.Z)(Vt,"".concat(fe,"-treenode-switcher-").concat(en?"open":"close"),!Ae),(0,de.Z)(Vt,"".concat(fe,"-treenode-checkbox-checked"),Rt),(0,de.Z)(Vt,"".concat(fe,"-treenode-checkbox-indeterminate"),tn),(0,de.Z)(Vt,"".concat(fe,"-treenode-selected"),Ct),(0,de.Z)(Vt,"".concat(fe,"-treenode-loading"),cr),(0,de.Z)(Vt,"".concat(fe,"-treenode-active"),qt),(0,de.Z)(Vt,"".concat(fe,"-treenode-leaf-last"),Ot),(0,de.Z)(Vt,"".concat(fe,"-treenode-draggable"),ht),(0,de.Z)(Vt,"dragging",xt),(0,de.Z)(Vt,"drop-target",Ne===yn),(0,de.Z)(Vt,"drop-container",le===yn),(0,de.Z)(Vt,"drag-over",!gt&&Kn),(0,de.Z)(Vt,"drag-over-gap-top",!gt&&rt),(0,de.Z)(Vt,"drag-over-gap-bottom",!gt&&dt),(0,de.Z)(Vt,"filter-node",ve&&ve((0,mt.F)(this.props))),Vt)),style:ln,draggable:It,"aria-grabbed":xt,onDragStart:It?this.onDragStart:void 0,onDragEnter:ht?this.onDragEnter:void 0,onDragOver:ht?this.onDragOver:void 0,onDragLeave:ht?this.onDragLeave:void 0,onDrop:ht?this.onDrop:void 0,onDragEnd:ht?this.onDragEnd:void 0,onMouseMove:lr},sn,At),et.createElement(Ve,{prefixCls:fe,level:zt,isStart:Bt,isEnd:Cn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),ut}(et.Component),Ze=function(ft){return et.createElement(ot.k.Consumer,null,function(ut){return et.createElement(be,(0,oe.Z)({},ft,{context:ut}))})};Ze.displayName="TreeNode",Ze.isTreeNode=1;var je=Ze},69610:function(An,Jt,ne){"use strict";ne.d(Jt,{k:function(){return de}});var oe=ne(67294),de=oe.createContext(null)},29873:function(An,Jt,ne){"use strict";ne.d(Jt,{BT:function(){return Ve},E6:function(){return Lt},L0:function(){return Be},OM:function(){return nt},_5:function(){return ge},r7:function(){return it},wA:function(){return Oe},yx:function(){return Qe}});var oe=ne(74902),de=ne(71002),Fe=ne(72978),Xe=ne(67294),Se=ne(56261),Me=ne(3596),ce=ne(83898),we=null;function ge(pt,Ce){if(!pt)return[];var be=pt.slice(),Ze=be.indexOf(Ce);return Ze>=0&&be.splice(Ze,1),be}function Be(pt,Ce){var be=(pt||[]).slice();return be.indexOf(Ce)===-1&&be.push(Ce),be}function Qe(pt){return pt.split("-")}function Oe(pt,Ce){var be=[],Ze=(0,Me.Z)(Ce,pt);function je(){var Et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Et.forEach(function(ft){var ut=ft.key,Re=ft.children;be.push(ut),je(Re)})}return je(Ze.children),be}function et(pt){if(pt.parent){var Ce=Qe(pt.pos);return Number(Ce[Ce.length-1])===pt.parent.children.length-1}return!1}function ot(pt){var Ce=Qe(pt.pos);return Number(Ce[Ce.length-1])===0}function nt(pt,Ce,be,Ze,je,Et,ft,ut,Re,Vt){var wt,yn=pt.clientX,Ft=pt.clientY,ln=pt.target.getBoundingClientRect(),Kn=ln.top,rt=ln.height,dt=(Vt==="rtl"?-1:1)*(((je==null?void 0:je.x)||0)-yn),Ae=(dt-12)/Ze,Bt=(0,Me.Z)(ut,be.props.eventKey);if(Ft<Kn+rt/2){var Cn=ft.findIndex(function(ue){return ue.key===Bt.key}),en=Cn<=0?0:Cn-1,Ct=ft[en].key;Bt=(0,Me.Z)(ut,Ct)}var Rt=Bt.key,tn=Bt,cr=Bt.key,Gn=0,qt=0;if(!Re.includes(Rt))for(var Fn=0;Fn<Ae&&et(Bt);Fn+=1)Bt=Bt.parent,qt+=1;var lr=Ce.props.data,nn=Bt.node,ze=!0;return ot(Bt)&&Bt.level===0&&Ft<Kn+rt/2&&Et({dragNode:lr,dropNode:nn,dropPosition:-1})&&Bt.key===be.props.eventKey?Gn=-1:(tn.children||[]).length&&Re.includes(cr)?Et({dragNode:lr,dropNode:nn,dropPosition:0})?Gn=0:ze=!1:qt===0?Ae>-1.5?Et({dragNode:lr,dropNode:nn,dropPosition:1})?Gn=1:ze=!1:Et({dragNode:lr,dropNode:nn,dropPosition:0})?Gn=0:Et({dragNode:lr,dropNode:nn,dropPosition:1})?Gn=1:ze=!1:Et({dragNode:lr,dropNode:nn,dropPosition:1})?Gn=1:ze=!1,{dropPosition:Gn,dropLevelOffset:qt,dropTargetKey:Bt.key,dropTargetPos:Bt.pos,dragOverNodeKey:cr,dropContainerKey:Gn===0?null:((wt=Bt.parent)===null||wt===void 0?void 0:wt.key)||null,dropAllowed:ze}}function Ve(pt,Ce){if(pt){var be=Ce.multiple;return be?pt.slice():pt.length?[pt[0]]:pt}}var xe=function(Ce){return Ce};function mt(pt,Ce){if(!pt)return[];var be=Ce||{},Ze=be.processProps,je=Ze===void 0?xe:Ze,Et=Array.isArray(pt)?pt:[pt];return Et.map(function(ft){var ut=ft.children,Re=_objectWithoutProperties(ft,we),Vt=mt(ut,Ce);return React.createElement(TreeNode,_extends({key:Re.key},je(Re)),Vt)})}function Lt(pt){if(!pt)return null;var Ce;if(Array.isArray(pt))Ce={checkedKeys:pt,halfCheckedKeys:void 0};else if((0,de.Z)(pt)==="object")Ce={checkedKeys:pt.checked||void 0,halfCheckedKeys:pt.halfChecked||void 0};else return(0,Fe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ce}function it(pt,Ce){var be=new Set;function Ze(je){if(!be.has(je)){var Et=(0,Me.Z)(Ce,je);if(Et){be.add(je);var ft=Et.parent,ut=Et.node;ut.disabled||ft&&Ze(ft.key)}}}return(pt||[]).forEach(function(je){Ze(je)}),(0,oe.Z)(be)}},97153:function(An,Jt,ne){"use strict";ne.d(Jt,{S:function(){return ce}});var oe=ne(72978),de=ne(3596);function Fe(we,ge){var Be=new Set;return we.forEach(function(Qe){ge.has(Qe)||Be.add(Qe)}),Be}function Xe(we){var ge=we||{},Be=ge.disabled,Qe=ge.disableCheckbox,Oe=ge.checkable;return!!(Be||Qe)||Oe===!1}function Se(we,ge,Be,Qe){for(var Oe=new Set(we),et=new Set,ot=0;ot<=Be;ot+=1){var nt=ge.get(ot)||new Set;nt.forEach(function(Lt){var it=Lt.key,pt=Lt.node,Ce=Lt.children,be=Ce===void 0?[]:Ce;Oe.has(it)&&!Qe(pt)&&be.filter(function(Ze){return!Qe(Ze.node)}).forEach(function(Ze){Oe.add(Ze.key)})})}for(var Ve=new Set,xe=Be;xe>=0;xe-=1){var mt=ge.get(xe)||new Set;mt.forEach(function(Lt){var it=Lt.parent,pt=Lt.node;if(!(Qe(pt)||!Lt.parent||Ve.has(Lt.parent.key))){if(Qe(Lt.parent.node)){Ve.add(it.key);return}var Ce=!0,be=!1;(it.children||[]).filter(function(Ze){return!Qe(Ze.node)}).forEach(function(Ze){var je=Ze.key,Et=Oe.has(je);Ce&&!Et&&(Ce=!1),!be&&(Et||et.has(je))&&(be=!0)}),Ce&&Oe.add(it.key),be&&et.add(it.key),Ve.add(it.key)}})}return{checkedKeys:Array.from(Oe),halfCheckedKeys:Array.from(Fe(et,Oe))}}function Me(we,ge,Be,Qe,Oe){for(var et=new Set(we),ot=new Set(ge),nt=0;nt<=Qe;nt+=1){var Ve=Be.get(nt)||new Set;Ve.forEach(function(it){var pt=it.key,Ce=it.node,be=it.children,Ze=be===void 0?[]:be;!et.has(pt)&&!ot.has(pt)&&!Oe(Ce)&&Ze.filter(function(je){return!Oe(je.node)}).forEach(function(je){et.delete(je.key)})})}ot=new Set;for(var xe=new Set,mt=Qe;mt>=0;mt-=1){var Lt=Be.get(mt)||new Set;Lt.forEach(function(it){var pt=it.parent,Ce=it.node;if(!(Oe(Ce)||!it.parent||xe.has(it.parent.key))){if(Oe(it.parent.node)){xe.add(pt.key);return}var be=!0,Ze=!1;(pt.children||[]).filter(function(je){return!Oe(je.node)}).forEach(function(je){var Et=je.key,ft=et.has(Et);be&&!ft&&(be=!1),!Ze&&(ft||ot.has(Et))&&(Ze=!0)}),be||et.delete(pt.key),Ze&&ot.add(pt.key),xe.add(pt.key)}})}return{checkedKeys:Array.from(et),halfCheckedKeys:Array.from(Fe(ot,et))}}function ce(we,ge,Be,Qe){var Oe=[],et;Qe?et=Qe:et=Xe;var ot=new Set(we.filter(function(mt){var Lt=!!(0,de.Z)(Be,mt);return Lt||Oe.push(mt),Lt})),nt=new Map,Ve=0;Object.keys(Be).forEach(function(mt){var Lt=Be[mt],it=Lt.level,pt=nt.get(it);pt||(pt=new Set,nt.set(it,pt)),pt.add(Lt),Ve=Math.max(Ve,it)}),(0,oe.ZP)(!Oe.length,"Tree missing follow keys: ".concat(Oe.slice(0,100).map(function(mt){return"'".concat(mt,"'")}).join(", ")));var xe;return ge===!0?xe=Se(ot,nt,Ve,et):xe=Me(ot,ge.halfCheckedKeys,nt,Ve,et),xe}},3596:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return oe}});function oe(de,Fe){return de[Fe]}},83898:function(An,Jt,ne){"use strict";ne.d(Jt,{I8:function(){return it},F:function(){return Ce},zn:function(){return xe},w$:function(){return nt},oH:function(){return mt},km:function(){return ot},H8:function(){return pt}});var oe=ne(71002),de=ne(74902),Fe=ne(1413),Xe=ne(45987),Se=ne(67294),Me=ne(28580);function ce(be){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=[];return Se.Children.forEach(be,function(Et){Et==null&&!Ze.keepEmpty||(Array.isArray(Et)?je=je.concat(ce(Et)):(0,Me.isFragment)(Et)&&Et.props?je=je.concat(ce(Et.props.children,Ze)):je.push(Et))}),je}function we(be,Ze){var je=(0,Fe.Z)({},be);return Array.isArray(Ze)&&Ze.forEach(function(Et){delete je[Et]}),je}var ge=ne(72978),Be=ne(3596),Qe=["children"];function Oe(be,Ze){return"".concat(be,"-").concat(Ze)}function et(be){return be&&be.type&&be.type.isTreeNode}function ot(be,Ze){return be!=null?be:Ze}function nt(be){var Ze=be||{},je=Ze.title,Et=Ze._title,ft=Ze.key,ut=Ze.children,Re=je||"title";return{title:Re,_title:Et||[Re],key:ft||"key",children:ut||"children"}}function Ve(be,Ze){var je=new Map;function Et(ft){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ft||[]).forEach(function(Re){var Vt=Re[Ze.key],wt=Re[Ze.children];warning(Vt!=null,"Tree node must have a certain key: [".concat(ut).concat(Vt,"]"));var yn=String(Vt);warning(!je.has(yn)||Vt===null||Vt===void 0,"Same 'key' exist in the Tree: ".concat(yn)),je.set(yn,!0),Et(wt,"".concat(ut).concat(yn," > "))})}Et(be)}function xe(be){function Ze(je){var Et=ce(je);return Et.map(function(ft){if(!et(ft))return(0,ge.ZP)(!ft,"Tree/TreeNode can only accept TreeNode as children."),null;var ut=ft.key,Re=ft.props,Vt=Re.children,wt=(0,Xe.Z)(Re,Qe),yn=(0,Fe.Z)({key:ut},wt),Ft=Ze(Vt);return Ft.length&&(yn.children=Ft),yn}).filter(function(ft){return ft})}return Ze(be)}function mt(be,Ze,je){var Et=nt(je),ft=Et._title,ut=Et.key,Re=Et.children,Vt=new Set(Ze===!0?[]:Ze),wt=[];function yn(Ft){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ft.map(function(Kn,rt){for(var dt=Oe(ln?ln.pos:"0",rt),Ae=ot(Kn[ut],dt),Bt,Cn=0;Cn<ft.length;Cn+=1){var en=ft[Cn];if(Kn[en]!==void 0){Bt=Kn[en];break}}var Ct=(0,Fe.Z)((0,Fe.Z)({},we(Kn,[].concat((0,de.Z)(ft),[ut,Re]))),{},{title:Bt,key:Ae,parent:ln,pos:dt,children:null,data:Kn,isStart:[].concat((0,de.Z)(ln?ln.isStart:[]),[rt===0]),isEnd:[].concat((0,de.Z)(ln?ln.isEnd:[]),[rt===Ft.length-1])});return wt.push(Ct),Ze===!0||Vt.has(Ae)?Ct.children=yn(Kn[Re]||[],Ct):Ct.children=[],Ct})}return yn(be),wt}function Lt(be,Ze,je){var Et={};(0,oe.Z)(je)==="object"?Et=je:Et={externalGetKey:je},Et=Et||{};var ft=Et,ut=ft.childrenPropName,Re=ft.externalGetKey,Vt=ft.fieldNames,wt=nt(Vt),yn=wt.key,Ft=wt.children,ln=ut||Ft,Kn;Re?typeof Re=="string"?Kn=function(Ae){return Ae[Re]}:typeof Re=="function"&&(Kn=function(Ae){return Re(Ae)}):Kn=function(Ae,Bt){return ot(Ae[yn],Bt)};function rt(dt,Ae,Bt,Cn){var en=dt?dt[ln]:be,Ct=dt?Oe(Bt.pos,Ae):"0",Rt=dt?[].concat((0,de.Z)(Cn),[dt]):[];if(dt){var tn=Kn(dt,Ct),cr={node:dt,index:Ae,pos:Ct,key:tn,parentPos:Bt.node?Bt.pos:null,level:Bt.level+1,nodes:Rt};Ze(cr)}en&&en.forEach(function(Gn,qt){rt(Gn,qt,{node:dt,pos:Ct,level:Bt?Bt.level+1:-1},Rt)})}rt(null)}function it(be){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},je=Ze.initWrapper,Et=Ze.processEntity,ft=Ze.onProcessFinished,ut=Ze.externalGetKey,Re=Ze.childrenPropName,Vt=Ze.fieldNames,wt=arguments.length>2?arguments[2]:void 0,yn=ut||wt,Ft={},ln={},Kn={posEntities:Ft,keyEntities:ln};return je&&(Kn=je(Kn)||Kn),Lt(be,function(rt){var dt=rt.node,Ae=rt.index,Bt=rt.pos,Cn=rt.key,en=rt.parentPos,Ct=rt.level,Rt=rt.nodes,tn={node:dt,nodes:Rt,index:Ae,key:Cn,pos:Bt,level:Ct},cr=ot(Cn,Bt);Ft[Bt]=tn,ln[cr]=tn,tn.parent=Ft[en],tn.parent&&(tn.parent.children=tn.parent.children||[],tn.parent.children.push(tn)),Et&&Et(tn,Kn)},{externalGetKey:yn,childrenPropName:Re,fieldNames:Vt}),ft&&ft(Kn),Kn}function pt(be,Ze){var je=Ze.expandedKeys,Et=Ze.selectedKeys,ft=Ze.loadedKeys,ut=Ze.loadingKeys,Re=Ze.checkedKeys,Vt=Ze.halfCheckedKeys,wt=Ze.dragOverNodeKey,yn=Ze.dropPosition,Ft=Ze.keyEntities,ln=(0,Be.Z)(Ft,be),Kn={eventKey:be,expanded:je.indexOf(be)!==-1,selected:Et.indexOf(be)!==-1,loaded:ft.indexOf(be)!==-1,loading:ut.indexOf(be)!==-1,checked:Re.indexOf(be)!==-1,halfChecked:Vt.indexOf(be)!==-1,pos:String(ln?ln.pos:""),dragOver:wt===be&&yn===0,dragOverGapTop:wt===be&&yn===-1,dragOverGapBottom:wt===be&&yn===1};return Kn}function Ce(be){var Ze=be.data,je=be.expanded,Et=be.selected,ft=be.checked,ut=be.loaded,Re=be.loading,Vt=be.halfChecked,wt=be.dragOver,yn=be.dragOverGapTop,Ft=be.dragOverGapBottom,ln=be.pos,Kn=be.active,rt=be.eventKey,dt=(0,Fe.Z)((0,Fe.Z)({},Ze),{},{expanded:je,selected:Et,checked:ft,loaded:ut,loading:Re,halfChecked:Vt,dragOver:wt,dragOverGapTop:yn,dragOverGapBottom:Ft,pos:ln,active:Kn,key:rt});return"props"in dt||Object.defineProperty(dt,"props",{get:function(){return(0,ge.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),be}}),dt}},34952:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return we}});var oe=ne(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`,Fe=`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`,Xe="".concat(de," ").concat(Fe).split(/[\s\n]+/),Se="aria-",Me="data-";function ce(ge,Be){return ge.indexOf(Be)===0}function we(ge){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qe;Be===!1?Qe={aria:!0,data:!0,attr:!0}:Be===!0?Qe={aria:!0}:Qe=(0,oe.Z)({},Be);var Oe={};return Object.keys(ge).forEach(function(et){(Qe.aria&&(et==="role"||ce(et,Se))||Qe.data&&ce(et,Me)||Qe.attr&&Xe.includes(et))&&(Oe[et]=ge[et])}),Oe}},72978:function(An,Jt,ne){"use strict";var oe={};function de(we,ge){}function Fe(we,ge){}function Xe(){oe={}}function Se(we,ge,Be){!ge&&!oe[Be]&&(we(!1,Be),oe[Be]=!0)}function Me(we,ge){Se(de,we,ge)}function ce(we,ge){Se(Fe,we,ge)}Jt.ZP=Me},81533:function(An,Jt){"use strict";var ne;var oe=typeof Symbol=="function"&&Symbol.for,de=oe?Symbol.for("react.element"):60103,Fe=oe?Symbol.for("react.portal"):60106,Xe=oe?Symbol.for("react.fragment"):60107,Se=oe?Symbol.for("react.strict_mode"):60108,Me=oe?Symbol.for("react.profiler"):60114,ce=oe?Symbol.for("react.provider"):60109,we=oe?Symbol.for("react.context"):60110,ge=oe?Symbol.for("react.async_mode"):60111,Be=oe?Symbol.for("react.concurrent_mode"):60111,Qe=oe?Symbol.for("react.forward_ref"):60112,Oe=oe?Symbol.for("react.suspense"):60113,et=oe?Symbol.for("react.suspense_list"):60120,ot=oe?Symbol.for("react.memo"):60115,nt=oe?Symbol.for("react.lazy"):60116,Ve=oe?Symbol.for("react.block"):60121,xe=oe?Symbol.for("react.fundamental"):60117,mt=oe?Symbol.for("react.responder"):60118,Lt=oe?Symbol.for("react.scope"):60119;function it(Ce){if(typeof Ce=="object"&&Ce!==null){var be=Ce.$$typeof;switch(be){case de:switch(Ce=Ce.type,Ce){case ge:case Be:case Xe:case Me:case Se:case Oe:return Ce;default:switch(Ce=Ce&&Ce.$$typeof,Ce){case we:case Qe:case nt:case ot:case ce:return Ce;default:return be}}case Fe:return be}}}function pt(Ce){return it(Ce)===Be}ne=ge,ne=Be,ne=we,ne=ce,ne=de,ne=Qe,ne=Xe,ne=nt,ne=ot,ne=Fe,ne=Me,ne=Se,ne=Oe,ne=function(Ce){return pt(Ce)||it(Ce)===ge},ne=pt,ne=function(Ce){return it(Ce)===we},ne=function(Ce){return it(Ce)===ce},ne=function(Ce){return typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===de},ne=function(Ce){return it(Ce)===Qe},Jt.isFragment=function(Ce){return it(Ce)===Xe},ne=function(Ce){return it(Ce)===nt},Jt.isMemo=function(Ce){return it(Ce)===ot},ne=function(Ce){return it(Ce)===Fe},ne=function(Ce){return it(Ce)===Me},ne=function(Ce){return it(Ce)===Se},ne=function(Ce){return it(Ce)===Oe},ne=function(Ce){return typeof Ce=="string"||typeof Ce=="function"||Ce===Xe||Ce===Be||Ce===Me||Ce===Se||Ce===Oe||Ce===et||typeof Ce=="object"&&Ce!==null&&(Ce.$$typeof===nt||Ce.$$typeof===ot||Ce.$$typeof===ce||Ce.$$typeof===we||Ce.$$typeof===Qe||Ce.$$typeof===xe||Ce.$$typeof===mt||Ce.$$typeof===Lt||Ce.$$typeof===Ve)},ne=it},28580:function(An,Jt,ne){"use strict";An.exports=ne(81533)},92389:function(An,Jt){"use strict";var ne={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 Fe=de.keyCode;if(de.altKey&&!de.ctrlKey||de.metaKey||Fe>=ne.F1&&Fe<=ne.F12)return!1;switch(Fe){case ne.ALT:case ne.CAPS_LOCK:case ne.CONTEXT_MENU:case ne.CTRL:case ne.DOWN:case ne.END:case ne.ESC:case ne.HOME:case ne.INSERT:case ne.LEFT:case ne.MAC_FF_META:case ne.META:case ne.NUMLOCK:case ne.NUM_CENTER:case ne.PAGE_DOWN:case ne.PAGE_UP:case ne.PAUSE:case ne.PRINT_SCREEN:case ne.RIGHT:case ne.SHIFT:case ne.UP:case ne.WIN_KEY:case ne.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(de){if(de>=ne.ZERO&&de<=ne.NINE||de>=ne.NUM_ZERO&&de<=ne.NUM_MULTIPLY||de>=ne.A&&de<=ne.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&de===0)return!0;switch(de){case ne.SPACE:case ne.QUESTION_MARK:case ne.NUM_PLUS:case ne.NUM_MINUS:case ne.NUM_PERIOD:case ne.NUM_DIVISION:case ne.SEMICOLON:case ne.DASH:case ne.EQUALS:case ne.COMMA:case ne.PERIOD:case ne.SLASH:case ne.APOSTROPHE:case ne.SINGLE_QUOTE:case ne.OPEN_SQUARE_BRACKET:case ne.BACKSLASH:case ne.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};Jt.Z=ne},1337:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return we}});var oe=ne(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`,Fe=`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`,Xe="".concat(de," ").concat(Fe).split(/[\s\n]+/),Se="aria-",Me="data-";function ce(ge,Be){return ge.indexOf(Be)===0}function we(ge){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qe;Be===!1?Qe={aria:!0,data:!0,attr:!0}:Be===!0?Qe={aria:!0}:Qe=(0,oe.Z)({},Be);var Oe={};return Object.keys(ge).forEach(function(et){(Qe.aria&&(et==="role"||ce(et,Se))||Qe.data&&ce(et,Me)||Qe.attr&&Xe.includes(et))&&(Oe[et]=ge[et])}),Oe}},88386:function(An,Jt,ne){(function(oe){oe(ne(4631))})(function(oe){oe.defineOption("placeholder","",function(we,ge,Be){var Qe=Be&&Be!=oe.Init;if(ge&&!Qe)we.on("blur",Se),we.on("change",Me),we.on("swapDoc",Me),oe.on(we.getInputField(),"compositionupdate",we.state.placeholderCompose=function(){Xe(we)}),Me(we);else if(!ge&&Qe){we.off("blur",Se),we.off("change",Me),we.off("swapDoc",Me),oe.off(we.getInputField(),"compositionupdate",we.state.placeholderCompose),de(we);var Oe=we.getWrapperElement();Oe.className=Oe.className.replace(" CodeMirror-empty","")}ge&&!we.hasFocus()&&Se(we)});function de(we){we.state.placeholder&&(we.state.placeholder.parentNode.removeChild(we.state.placeholder),we.state.placeholder=null)}function Fe(we){de(we);var ge=we.state.placeholder=document.createElement("pre");ge.style.cssText="height: 0; overflow: visible",ge.style.direction=we.getOption("direction"),ge.className="CodeMirror-placeholder CodeMirror-line-like";var Be=we.getOption("placeholder");typeof Be=="string"&&(Be=document.createTextNode(Be)),ge.appendChild(Be),we.display.lineSpace.insertBefore(ge,we.display.lineSpace.firstChild)}function Xe(we){setTimeout(function(){var ge=!1,Be=we.getInputField();Be.nodeName=="TEXTAREA"?ge=!Be.value:we.lineCount()==1&&(ge=!/[^\u200b]/.test(Be.querySelector(".CodeMirror-line").textContent)),ge?Fe(we):de(we)},20)}function Se(we){ce(we)&&Fe(we)}function Me(we){var ge=we.getWrapperElement(),Be=ce(we);ge.className=ge.className.replace(" CodeMirror-empty","")+(Be?" CodeMirror-empty":""),Be?Fe(we):de(we)}function ce(we){return we.lineCount()===1&&we.getLine(0)===""}})},82801:function(An,Jt,ne){(function(oe){oe(ne(4631))})(function(oe){var de={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Fe=oe.Pos;oe.defineOption("autoCloseBrackets",!1,function(nt,Ve,xe){xe&&xe!=oe.Init&&(nt.removeKeyMap(Se),nt.state.closeBrackets=null),Ve&&(Me(Xe(Ve,"pairs")),nt.state.closeBrackets=Ve,nt.addKeyMap(Se))});function Xe(nt,Ve){return Ve=="pairs"&&typeof nt=="string"?nt:typeof nt=="object"&&nt[Ve]!=null?nt[Ve]:de[Ve]}var Se={Backspace:ge,Enter:Be};function Me(nt){for(var Ve=0;Ve<nt.length;Ve++){var xe=nt.charAt(Ve),mt="'"+xe+"'";Se[mt]||(Se[mt]=ce(xe))}}Me(de.pairs+"`");function ce(nt){return function(Ve){return Oe(Ve,nt)}}function we(nt){var Ve=nt.state.closeBrackets;if(!Ve||Ve.override)return Ve;var xe=nt.getModeAt(nt.getCursor());return xe.closeBrackets||Ve}function ge(nt){var Ve=we(nt);if(!Ve||nt.getOption("disableInput"))return oe.Pass;for(var xe=Xe(Ve,"pairs"),mt=nt.listSelections(),Lt=0;Lt<mt.length;Lt++){if(!mt[Lt].empty())return oe.Pass;var it=et(nt,mt[Lt].head);if(!it||xe.indexOf(it)%2!=0)return oe.Pass}for(var Lt=mt.length-1;Lt>=0;Lt--){var pt=mt[Lt].head;nt.replaceRange("",Fe(pt.line,pt.ch-1),Fe(pt.line,pt.ch+1),"+delete")}}function Be(nt){var Ve=we(nt),xe=Ve&&Xe(Ve,"explode");if(!xe||nt.getOption("disableInput"))return oe.Pass;for(var mt=nt.listSelections(),Lt=0;Lt<mt.length;Lt++){if(!mt[Lt].empty())return oe.Pass;var it=et(nt,mt[Lt].head);if(!it||xe.indexOf(it)%2!=0)return oe.Pass}nt.operation(function(){var pt=nt.lineSeparator()||`
`;nt.replaceSelection(pt+pt,null),nt.execCommand("goCharLeft"),mt=nt.listSelections();for(var Ce=0;Ce<mt.length;Ce++){var be=mt[Ce].head.line;nt.indentLine(be,null,!0),nt.indentLine(be+1,null,!0)}})}function Qe(nt){var Ve=oe.cmpPos(nt.anchor,nt.head)>0;return{anchor:new Fe(nt.anchor.line,nt.anchor.ch+(Ve?-1:1)),head:new Fe(nt.head.line,nt.head.ch+(Ve?1:-1))}}function Oe(nt,Ve){var xe=we(nt);if(!xe||nt.getOption("disableInput"))return oe.Pass;var mt=Xe(xe,"pairs"),Lt=mt.indexOf(Ve);if(Lt==-1)return oe.Pass;for(var it=Xe(xe,"closeBefore"),pt=Xe(xe,"triples"),Ce=mt.charAt(Lt+1)==Ve,be=nt.listSelections(),Ze=Lt%2==0,je,Et=0;Et<be.length;Et++){var ft=be[Et],ut=ft.head,Re,Vt=nt.getRange(ut,Fe(ut.line,ut.ch+1));if(Ze&&!ft.empty())Re="surround";else if((Ce||!Ze)&&Vt==Ve)Ce&&ot(nt,ut)?Re="both":pt.indexOf(Ve)>=0&&nt.getRange(ut,Fe(ut.line,ut.ch+3))==Ve+Ve+Ve?Re="skipThree":Re="skip";else if(Ce&&ut.ch>1&&pt.indexOf(Ve)>=0&&nt.getRange(Fe(ut.line,ut.ch-2),ut)==Ve+Ve){if(ut.ch>2&&/\bstring/.test(nt.getTokenTypeAt(Fe(ut.line,ut.ch-2))))return oe.Pass;Re="addFour"}else if(Ce){var wt=ut.ch==0?" ":nt.getRange(Fe(ut.line,ut.ch-1),ut);if(!oe.isWordChar(Vt)&&wt!=Ve&&!oe.isWordChar(wt))Re="both";else return oe.Pass}else if(Ze&&(Vt.length===0||/\s/.test(Vt)||it.indexOf(Vt)>-1))Re="both";else return oe.Pass;if(!je)je=Re;else if(je!=Re)return oe.Pass}var yn=Lt%2?mt.charAt(Lt-1):Ve,Ft=Lt%2?Ve:mt.charAt(Lt+1);nt.operation(function(){if(je=="skip")nt.execCommand("goCharRight");else if(je=="skipThree")for(var ln=0;ln<3;ln++)nt.execCommand("goCharRight");else if(je=="surround"){for(var Kn=nt.getSelections(),ln=0;ln<Kn.length;ln++)Kn[ln]=yn+Kn[ln]+Ft;nt.replaceSelections(Kn,"around"),Kn=nt.listSelections().slice();for(var ln=0;ln<Kn.length;ln++)Kn[ln]=Qe(Kn[ln]);nt.setSelections(Kn)}else je=="both"?(nt.replaceSelection(yn+Ft,null),nt.triggerElectric(yn+Ft),nt.execCommand("goCharLeft")):je=="addFour"&&(nt.replaceSelection(yn+yn+yn+yn,"before"),nt.execCommand("goCharRight"))})}function et(nt,Ve){var xe=nt.getRange(Fe(Ve.line,Ve.ch-1),Fe(Ve.line,Ve.ch+1));return xe.length==2?xe:null}function ot(nt,Ve){var xe=nt.getTokenAt(Fe(Ve.line,Ve.ch+1));return/\bstring/.test(xe.type)&&xe.start==Ve.ch&&(Ve.ch==0||!/\bstring/.test(nt.getTokenTypeAt(Ve)))}})},57341:function(An,Jt,ne){(function(oe){oe(ne(4631),ne(4786))})(function(oe){oe.defineOption("autoCloseTags",!1,function(ge,Be,Qe){if(Qe!=oe.Init&&Qe&&ge.removeKeyMap("autoCloseTags"),!!Be){var Oe={name:"autoCloseTags"};(typeof Be!="object"||Be.whenClosing!==!1)&&(Oe["'/'"]=function(et){return Me(et)}),(typeof Be!="object"||Be.whenOpening!==!1)&&(Oe["'>'"]=function(et){return Xe(et)}),ge.addKeyMap(Oe)}});var de=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Fe=["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 Xe(ge){if(ge.getOption("disableInput"))return oe.Pass;for(var Be=ge.listSelections(),Qe=[],Oe=ge.getOption("autoCloseTags"),et=0;et<Be.length;et++){if(!Be[et].empty())return oe.Pass;var ot=Be[et].head,nt=ge.getTokenAt(ot),Ve=oe.innerMode(ge.getMode(),nt.state),xe=Ve.state,mt=Ve.mode.xmlCurrentTag&&Ve.mode.xmlCurrentTag(xe),Lt=mt&&mt.name;if(!Lt)return oe.Pass;var it=Ve.mode.configuration=="html",pt=typeof Oe=="object"&&Oe.dontCloseTags||it&&de,Ce=typeof Oe=="object"&&Oe.indentTags||it&&Fe;nt.end>ot.ch&&(Lt=Lt.slice(0,Lt.length-nt.end+ot.ch));var be=Lt.toLowerCase();if(!Lt||nt.type=="string"&&(nt.end!=ot.ch||!/[\"\']/.test(nt.string.charAt(nt.string.length-1))||nt.string.length==1)||nt.type=="tag"&&mt.close||nt.string.indexOf("/")==ot.ch-nt.start-1||pt&&ce(pt,be)>-1||we(ge,Ve.mode.xmlCurrentContext&&Ve.mode.xmlCurrentContext(xe)||[],Lt,ot,!0))return oe.Pass;var Ze=typeof Oe=="object"&&Oe.emptyTags;if(Ze&&ce(Ze,Lt)>-1){Qe[et]={text:"/>",newPos:oe.Pos(ot.line,ot.ch+2)};continue}var je=Ce&&ce(Ce,be)>-1;Qe[et]={indent:je,text:">"+(je?`
`:"")+"</"+Lt+">",newPos:je?oe.Pos(ot.line+1,0):oe.Pos(ot.line,ot.ch+1)}}for(var Et=typeof Oe=="object"&&Oe.dontIndentOnAutoClose,et=Be.length-1;et>=0;et--){var ft=Qe[et];ge.replaceRange(ft.text,Be[et].head,Be[et].anchor,"+insert");var ut=ge.listSelections().slice(0);ut[et]={head:ft.newPos,anchor:ft.newPos},ge.setSelections(ut),!Et&&ft.indent&&(ge.indentLine(ft.newPos.line,null,!0),ge.indentLine(ft.newPos.line+1,null,!0))}}function Se(ge,Be){for(var Qe=ge.listSelections(),Oe=[],et=Be?"/":"</",ot=ge.getOption("autoCloseTags"),nt=typeof ot=="object"&&ot.dontIndentOnSlash,Ve=0;Ve<Qe.length;Ve++){if(!Qe[Ve].empty())return oe.Pass;var xe=Qe[Ve].head,mt=ge.getTokenAt(xe),Lt=oe.innerMode(ge.getMode(),mt.state),it=Lt.state;if(Be&&(mt.type=="string"||mt.string.charAt(0)!="<"||mt.start!=xe.ch-1))return oe.Pass;var pt,Ce=Lt.mode.name!="xml"&&ge.getMode().name=="htmlmixed";if(Ce&&Lt.mode.name=="javascript")pt=et+"script";else if(Ce&&Lt.mode.name=="css")pt=et+"style";else{var be=Lt.mode.xmlCurrentContext&&Lt.mode.xmlCurrentContext(it);if(!be||be.length&&we(ge,be,be[be.length-1],xe))return oe.Pass;pt=et+be[be.length-1]}ge.getLine(xe.line).charAt(mt.end)!=">"&&(pt+=">"),Oe[Ve]=pt}if(ge.replaceSelections(Oe),Qe=ge.listSelections(),!nt)for(var Ve=0;Ve<Qe.length;Ve++)(Ve==Qe.length-1||Qe[Ve].head.line<Qe[Ve+1].head.line)&&ge.indentLine(Qe[Ve].head.line)}function Me(ge){return ge.getOption("disableInput")?oe.Pass:Se(ge,!0)}oe.commands.closeTag=function(ge){return Se(ge)};function ce(ge,Be){if(ge.indexOf)return ge.indexOf(Be);for(var Qe=0,Oe=ge.length;Qe<Oe;++Qe)if(ge[Qe]==Be)return Qe;return-1}function we(ge,Be,Qe,Oe,et){if(!oe.scanForClosingTag)return!1;var ot=Math.min(ge.lastLine()+1,Oe.line+500),nt=oe.scanForClosingTag(ge,Oe,null,ot);if(!nt||nt.tag!=Qe)return!1;for(var Ve=et?1:0,xe=Be.length-1;xe>=0&&Be[xe]==Qe;xe--)++Ve;Oe=nt.to;for(var xe=1;xe<Ve;xe++){var mt=oe.scanForClosingTag(ge,Oe,null,ot);if(!mt||mt.tag!=Qe)return!1;Oe=mt.to}return!0}})},4786:function(An,Jt,ne){(function(oe){oe(ne(4631))})(function(oe){"use strict";var de=oe.Pos;function Fe(xe,mt){return xe.line-mt.line||xe.ch-mt.ch}var Xe="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",Se=Xe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Me=new RegExp("<(/?)(["+Xe+"]["+Se+"]*)","g");function ce(xe,mt,Lt,it){this.line=mt,this.ch=Lt,this.cm=xe,this.text=xe.getLine(mt),this.min=it?Math.max(it.from,xe.firstLine()):xe.firstLine(),this.max=it?Math.min(it.to-1,xe.lastLine()):xe.lastLine()}function we(xe,mt){var Lt=xe.cm.getTokenTypeAt(de(xe.line,mt));return Lt&&/\btag\b/.test(Lt)}function ge(xe){if(!(xe.line>=xe.max))return xe.ch=0,xe.text=xe.cm.getLine(++xe.line),!0}function Be(xe){if(!(xe.line<=xe.min))return xe.text=xe.cm.getLine(--xe.line),xe.ch=xe.text.length,!0}function Qe(xe){for(;;){var mt=xe.text.indexOf(">",xe.ch);if(mt==-1){if(ge(xe))continue;return}if(!we(xe,mt+1)){xe.ch=mt+1;continue}var Lt=xe.text.lastIndexOf("/",mt),it=Lt>-1&&!/\S/.test(xe.text.slice(Lt+1,mt));return xe.ch=mt+1,it?"selfClose":"regular"}}function Oe(xe){for(;;){var mt=xe.ch?xe.text.lastIndexOf("<",xe.ch-1):-1;if(mt==-1){if(Be(xe))continue;return}if(!we(xe,mt+1)){xe.ch=mt;continue}Me.lastIndex=mt,xe.ch=mt;var Lt=Me.exec(xe.text);if(Lt&&Lt.index==mt)return Lt}}function et(xe){for(;;){Me.lastIndex=xe.ch;var mt=Me.exec(xe.text);if(!mt){if(ge(xe))continue;return}if(!we(xe,mt.index+1)){xe.ch=mt.index+1;continue}return xe.ch=mt.index+mt[0].length,mt}}function ot(xe){for(;;){var mt=xe.ch?xe.text.lastIndexOf(">",xe.ch-1):-1;if(mt==-1){if(Be(xe))continue;return}if(!we(xe,mt+1)){xe.ch=mt;continue}var Lt=xe.text.lastIndexOf("/",mt),it=Lt>-1&&!/\S/.test(xe.text.slice(Lt+1,mt));return xe.ch=mt+1,it?"selfClose":"regular"}}function nt(xe,mt){for(var Lt=[];;){var it=et(xe),pt,Ce=xe.line,be=xe.ch-(it?it[0].length:0);if(!it||!(pt=Qe(xe)))return;if(pt!="selfClose")if(it[1]){for(var Ze=Lt.length-1;Ze>=0;--Ze)if(Lt[Ze]==it[2]){Lt.length=Ze;break}if(Ze<0&&(!mt||mt==it[2]))return{tag:it[2],from:de(Ce,be),to:de(xe.line,xe.ch)}}else Lt.push(it[2])}}function Ve(xe,mt){for(var Lt=[];;){var it=ot(xe);if(!it)return;if(it=="selfClose"){Oe(xe);continue}var pt=xe.line,Ce=xe.ch,be=Oe(xe);if(!be)return;if(be[1])Lt.push(be[2]);else{for(var Ze=Lt.length-1;Ze>=0;--Ze)if(Lt[Ze]==be[2]){Lt.length=Ze;break}if(Ze<0&&(!mt||mt==be[2]))return{tag:be[2],from:de(xe.line,xe.ch),to:de(pt,Ce)}}}}oe.registerHelper("fold","xml",function(xe,mt){for(var Lt=new ce(xe,mt.line,0);;){var it=et(Lt);if(!it||Lt.line!=mt.line)return;var pt=Qe(Lt);if(!pt)return;if(!it[1]&&pt!="selfClose"){var Ce=de(Lt.line,Lt.ch),be=nt(Lt,it[2]);return be&&Fe(be.from,Ce)>0?{from:Ce,to:be.from}:null}}}),oe.findMatchingTag=function(xe,mt,Lt){var it=new ce(xe,mt.line,mt.ch,Lt);if(!(it.text.indexOf(">")==-1&&it.text.indexOf("<")==-1)){var pt=Qe(it),Ce=pt&&de(it.line,it.ch),be=pt&&Oe(it);if(!(!pt||!be||Fe(it,mt)>0)){var Ze={from:de(it.line,it.ch),to:Ce,tag:be[2]};return pt=="selfClose"?{open:Ze,close:null,at:"open"}:be[1]?{open:Ve(it,be[2]),close:Ze,at:"close"}:(it=new ce(xe,Ce.line,Ce.ch,Lt),{open:Ze,close:nt(it,be[2]),at:"open"})}}},oe.findEnclosingTag=function(xe,mt,Lt,it){for(var pt=new ce(xe,mt.line,mt.ch,Lt);;){var Ce=Ve(pt,it);if(!Ce)break;var be=new ce(xe,mt.line,mt.ch,Lt),Ze=nt(be,Ce.tag);if(Ze)return{open:Ce,close:Ze}}},oe.scanForClosingTag=function(xe,mt,Lt,it){var pt=new ce(xe,mt.line,mt.ch,it?{from:0,to:it}:null);return nt(pt,Lt)}})},4631:function(An){(function(Jt,ne){An.exports=ne()})(this,function(){"use strict";var Jt=navigator.userAgent,ne=navigator.platform,oe=/gecko\/\d/i.test(Jt),de=/MSIE \d/.test(Jt),Fe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Jt),Xe=/Edge\/(\d+)/.exec(Jt),Se=de||Fe||Xe,Me=Se&&(de?document.documentMode||6:+(Xe||Fe)[1]),ce=!Xe&&/WebKit\//.test(Jt),we=ce&&/Qt\/\d+\.\d+/.test(Jt),ge=!Xe&&/Chrome\//.test(Jt),Be=/Opera\//.test(Jt),Qe=/Apple Computer/.test(navigator.vendor),Oe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Jt),et=/PhantomJS/.test(Jt),ot=!Xe&&/AppleWebKit/.test(Jt)&&/Mobile\/\w+/.test(Jt),nt=/Android/.test(Jt),Ve=ot||nt||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Jt),xe=ot||/Mac/.test(ne),mt=/\bCrOS\b/.test(Jt),Lt=/win/i.test(ne),it=Be&&Jt.match(/Version\/(\d*\.\d*)/);it&&(it=Number(it[1])),it&&it>=15&&(Be=!1,ce=!0);var pt=xe&&(we||Be&&(it==null||it<12.11)),Ce=oe||Se&&Me>=9;function be(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var Ze=function(x,z){var re=x.className,te=be(z).exec(re);if(te){var ae=re.slice(te.index+te[0].length);x.className=re.slice(0,te.index)+(ae?te[1]+ae:"")}};function je(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function Et(x,z){return je(x).appendChild(z)}function ft(x,z,re,te){var ae=document.createElement(x);if(re&&(ae.className=re),te&&(ae.style.cssText=te),typeof z=="string")ae.appendChild(document.createTextNode(z));else if(z)for(var pe=0;pe<z.length;++pe)ae.appendChild(z[pe]);return ae}function ut(x,z,re,te){var ae=ft(x,z,re,te);return ae.setAttribute("role","presentation"),ae}var Re;document.createRange?Re=function(x,z,re,te){var ae=document.createRange();return ae.setEnd(te||x,re),ae.setStart(x,z),ae}:Re=function(x,z,re){var te=document.body.createTextRange();try{te.moveToElementText(x.parentNode)}catch(ae){return te}return te.collapse(!0),te.moveEnd("character",re),te.moveStart("character",z),te};function Vt(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 wt(){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 yn(x,z){var re=x.className;be(z).test(re)||(x.className+=(re?" ":"")+z)}function Ft(x,z){for(var re=x.split(" "),te=0;te<re.length;te++)re[te]&&!be(re[te]).test(z)&&(z+=" "+re[te]);return z}var ln=function(x){x.select()};ot?ln=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:Se&&(ln=function(x){try{x.select()}catch(z){}});function Kn(x){var z=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,z)}}function rt(x,z,re){z||(z={});for(var te in x)x.hasOwnProperty(te)&&(re!==!1||!z.hasOwnProperty(te))&&(z[te]=x[te]);return z}function dt(x,z,re,te,ae){z==null&&(z=x.search(/[^\s\u00a0]/),z==-1&&(z=x.length));for(var pe=te||0,Le=ae||0;;){var We=x.indexOf(" ",pe);if(We<0||We>=z)return Le+(z-pe);Le+=We-pe,Le+=re-Le%re,pe=We+1}}var Ae=function(){this.id=null,this.f=null,this.time=0,this.handler=Kn(this.onTimeout,this)};Ae.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},Ae.prototype.set=function(x,z){this.f=z;var re=+new Date+x;(!this.id||re<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,x),this.time=re)};function Bt(x,z){for(var re=0;re<x.length;++re)if(x[re]==z)return re;return-1}var Cn=50,en={toString:function(){return"CodeMirror.Pass"}},Ct={scroll:!1},Rt={origin:"*mouse"},tn={origin:"+move"};function cr(x,z,re){for(var te=0,ae=0;;){var pe=x.indexOf(" ",te);pe==-1&&(pe=x.length);var Le=pe-te;if(pe==x.length||ae+Le>=z)return te+Math.min(Le,z-ae);if(ae+=pe-te,ae+=re-ae%re,te=pe+1,ae>=z)return te}}var Gn=[""];function qt(x){for(;Gn.length<=x;)Gn.push(Fn(Gn)+" ");return Gn[x]}function Fn(x){return x[x.length-1]}function lr(x,z){for(var re=[],te=0;te<x.length;te++)re[te]=z(x[te],te);return re}function nn(x,z,re){for(var te=0,ae=re(z);te<x.length&&re(x[te])<=ae;)te++;x.splice(te,0,z)}function ze(){}function ue(x,z){var re;return Object.create?re=Object.create(x):(ze.prototype=x,re=new ze),z&&rt(z,re),re}var fe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ve(x){return/\w/.test(x)||x>"\x80"&&(x.toUpperCase()!=x.toLowerCase()||fe.test(x))}function he(x,z){return z?z.source.indexOf("\\w")>-1&&ve(x)?!0:z.test(x):ve(x)}function le(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Ne=/[\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 Te(x){return x.charCodeAt(0)>=768&&Ne.test(x)}function gt(x,z,re){for(;(re<0?z>0:z<x.length)&&Te(x.charAt(z));)z+=re;return z}function At(x,z,re){for(var te=z>re?-1:1;;){if(z==re)return z;var ae=(z+re)/2,pe=te<0?Math.ceil(ae):Math.floor(ae);if(pe==z)return x(pe)?z:re;x(pe)?re=pe:z=pe+te}}function Tt(x,z,re,te){if(!x)return te(z,re,"ltr",0);for(var ae=!1,pe=0;pe<x.length;++pe){var Le=x[pe];(Le.from<re&&Le.to>z||z==re&&Le.to==z)&&(te(Math.max(Le.from,z),Math.min(Le.to,re),Le.level==1?"rtl":"ltr",pe),ae=!0)}ae||te(z,re,"ltr")}var zt=null;function Ot(x,z,re){var te;zt=null;for(var ae=0;ae<x.length;++ae){var pe=x[ae];if(pe.from<z&&pe.to>z)return ae;pe.to==z&&(pe.from!=pe.to&&re=="before"?te=ae:zt=ae),pe.from==z&&(pe.from!=pe.to&&re!="before"?te=ae:zt=ae)}return te!=null?te:zt}var ht=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function re(st){return st<=247?x.charAt(st):1424<=st&&st<=1524?"R":1536<=st&&st<=1785?z.charAt(st-1536):1774<=st&&st<=2220?"r":8192<=st&&st<=8203?"w":st==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ae=/[stwN]/,pe=/[LRr]/,Le=/[Lb1n]/,We=/[1n]/;function Ue(st,cn,En){this.level=st,this.from=cn,this.to=En}return function(st,cn){var En=cn=="ltr"?"L":"R";if(st.length==0||cn=="ltr"&&!te.test(st))return!1;for(var xr=st.length,fr=[],Qr=0;Qr<xr;++Qr)fr.push(re(st.charCodeAt(Qr)));for(var ci=0,ki=En;ci<xr;++ci){var Wi=fr[ci];Wi=="m"?fr[ci]=ki:ki=Wi}for(var ra=0,Ni=En;ra<xr;++ra){var oa=fr[ra];oa=="1"&&Ni=="r"?fr[ra]="n":pe.test(oa)&&(Ni=oa,oa=="r"&&(fr[ra]="R"))}for(var Ia=1,Oa=fr[0];Ia<xr-1;++Ia){var Mo=fr[Ia];Mo=="+"&&Oa=="1"&&fr[Ia+1]=="1"?fr[Ia]="1":Mo==","&&Oa==fr[Ia+1]&&(Oa=="1"||Oa=="n")&&(fr[Ia]=Oa),Oa=Mo}for(var vs=0;vs<xr;++vs){var xl=fr[vs];if(xl==",")fr[vs]="N";else if(xl=="%"){var Rs=void 0;for(Rs=vs+1;Rs<xr&&fr[Rs]=="%";++Rs);for(var jl=vs&&fr[vs-1]=="!"||Rs<xr&&fr[Rs]=="1"?"1":"N",Ul=vs;Ul<Rs;++Ul)fr[Ul]=jl;vs=Rs-1}}for(var ll=0,Vl=En;ll<xr;++ll){var to=fr[ll];Vl=="L"&&to=="1"?fr[ll]="L":pe.test(to)&&(Vl=to)}for(var Ys=0;Ys<xr;++Ys)if(ae.test(fr[Ys])){var _s=void 0;for(_s=Ys+1;_s<xr&&ae.test(fr[_s]);++_s);for(var Xs=(Ys?fr[Ys-1]:En)=="L",el=(_s<xr?fr[_s]:En)=="L",xc=Xs==el?Xs?"L":"R":En,Jl=Ys;Jl<_s;++Jl)fr[Jl]=xc;Ys=_s-1}for(var Dl=[],Jo,hl=0;hl<xr;)if(Le.test(fr[hl])){var Nd=hl;for(++hl;hl<xr&&Le.test(fr[hl]);++hl);Dl.push(new Ue(0,Nd,hl))}else{var Ku=hl,Xu=Dl.length,ku=cn=="rtl"?1:0;for(++hl;hl<xr&&fr[hl]!="L";++hl);for(var ul=Ku;ul<hl;)if(We.test(fr[ul])){Ku<ul&&(Dl.splice(Xu,0,new Ue(1,Ku,ul)),Xu+=ku);var Sc=ul;for(++ul;ul<hl&&We.test(fr[ul]);++ul);Dl.splice(Xu,0,new Ue(2,Sc,ul)),Xu+=ku,Ku=ul}else++ul;Ku<hl&&Dl.splice(Xu,0,new Ue(1,Ku,hl))}return cn=="ltr"&&(Dl[0].level==1&&(Jo=st.match(/^\s+/))&&(Dl[0].from=Jo[0].length,Dl.unshift(new Ue(0,0,Jo[0].length))),Fn(Dl).level==1&&(Jo=st.match(/\s+$/))&&(Fn(Dl).to-=Jo[0].length,Dl.push(new Ue(0,xr-Jo[0].length,xr)))),cn=="rtl"?Dl.reverse():Dl}}();function It(x,z){var re=x.order;return re==null&&(re=x.order=ht(x.text,z)),re}var xt=[],sn=function(x,z,re){if(x.addEventListener)x.addEventListener(z,re,!1);else if(x.attachEvent)x.attachEvent("on"+z,re);else{var te=x._handlers||(x._handlers={});te[z]=(te[z]||xt).concat(re)}};function Kt(x,z){return x._handlers&&x._handlers[z]||xt}function Un(x,z,re){if(x.removeEventListener)x.removeEventListener(z,re,!1);else if(x.detachEvent)x.detachEvent("on"+z,re);else{var te=x._handlers,ae=te&&te[z];if(ae){var pe=Bt(ae,re);pe>-1&&(te[z]=ae.slice(0,pe).concat(ae.slice(pe+1)))}}}function bt(x,z){var re=Kt(x,z);if(re.length)for(var te=Array.prototype.slice.call(arguments,2),ae=0;ae<re.length;++ae)re[ae].apply(null,te)}function Pt(x,z,re){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),bt(x,re||z.type,x,z),tr(z)||z.codemirrorIgnore}function vn(x){var z=x._handlers&&x._handlers.cursorActivity;if(z)for(var re=x.curOp.cursorActivityHandlers||(x.curOp.cursorActivityHandlers=[]),te=0;te<z.length;++te)Bt(re,z[te])==-1&&re.push(z[te])}function mn(x,z){return Kt(x,z).length>0}function gn(x){x.prototype.on=function(z,re){sn(this,z,re)},x.prototype.off=function(z,re){Un(this,z,re)}}function or(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function er(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function tr(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function Hr(x){or(x),er(x)}function jr(x){return x.target||x.srcElement}function vr(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),xe&&x.ctrlKey&&z==1&&(z=3),z}var Kr=function(){if(Se&&Me<9)return!1;var x=ft("div");return"draggable"in x||"dragDrop"in x}(),yr;function br(x){if(yr==null){var z=ft("span","\u200B");Et(x,ft("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(yr=z.offsetWidth<=1&&z.offsetHeight>2&&!(Se&&Me<8))}var re=yr?ft("span","\u200B"):ft("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return re.setAttribute("cm-text",""),re}var Cr;function zr(x){if(Cr!=null)return Cr;var z=Et(x,document.createTextNode("A\u062EA")),re=Re(z,0,1).getBoundingClientRect(),te=Re(z,1,2).getBoundingClientRect();return je(x),!re||re.left==re.right?!1:Cr=te.right-re.right<3}var Wt=`
b`.split(/\n/).length!=3?function(x){for(var z=0,re=[],te=x.length;z<=te;){var ae=x.indexOf(`
`,z);ae==-1&&(ae=x.length);var pe=x.slice(z,x.charAt(ae-1)=="\r"?ae-1:ae),Le=pe.indexOf("\r");Le!=-1?(re.push(pe.slice(0,Le)),z+=Le+1):(re.push(pe),z=ae+1)}return re}:function(x){return x.split(/\r\n?|\n/)},On=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(re){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},qn=function(){var x=ft("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),zn=null;function Jn(x){if(zn!=null)return zn;var z=Et(x,ft("span","x")),re=z.getBoundingClientRect(),te=Re(z,0,1).getBoundingClientRect();return zn=Math.abs(re.left-te.left)>1}var pr={},wr={};function nr(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),pr[x]=z}function St(x,z){wr[x]=z}function Zt(x){if(typeof x=="string"&&wr.hasOwnProperty(x))x=wr[x];else if(x&&typeof x.name=="string"&&wr.hasOwnProperty(x.name)){var z=wr[x.name];typeof z=="string"&&(z={name:z}),x=ue(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return Zt("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return Zt("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function jt(x,z){z=Zt(z);var re=pr[z.name];if(!re)return jt(x,"text/plain");var te=re(x,z);if(kn.hasOwnProperty(z.name)){var ae=kn[z.name];for(var pe in ae)ae.hasOwnProperty(pe)&&(te.hasOwnProperty(pe)&&(te["_"+pe]=te[pe]),te[pe]=ae[pe])}if(te.name=z.name,z.helperType&&(te.helperType=z.helperType),z.modeProps)for(var Le in z.modeProps)te[Le]=z.modeProps[Le];return te}var kn={};function lt(x,z){var re=kn.hasOwnProperty(x)?kn[x]:kn[x]={};rt(z,re)}function Ut(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var re={};for(var te in z){var ae=z[te];ae instanceof Array&&(ae=ae.concat([])),re[te]=ae}return re}function ke(x,z){for(var re;x.innerMode&&(re=x.innerMode(z),!(!re||re.mode==x));)z=re.state,x=re.mode;return re||{mode:x,state:z}}function an(x,z,re){return x.startState?x.startState(z,re):!0}var kt=function(x,z,re){this.pos=this.start=0,this.string=x,this.tabSize=z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=re};kt.prototype.eol=function(){return this.pos>=this.string.length},kt.prototype.sol=function(){return this.pos==this.lineStart},kt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},kt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},kt.prototype.eat=function(x){var z=this.string.charAt(this.pos),re;if(typeof x=="string"?re=z==x:re=z&&(x.test?x.test(z):x(z)),re)return++this.pos,z},kt.prototype.eatWhile=function(x){for(var z=this.pos;this.eat(x););return this.pos>z},kt.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},kt.prototype.skipToEnd=function(){this.pos=this.string.length},kt.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},kt.prototype.backUp=function(x){this.pos-=x},kt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=dt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?dt(this.string,this.lineStart,this.tabSize):0)},kt.prototype.indentation=function(){return dt(this.string,null,this.tabSize)-(this.lineStart?dt(this.string,this.lineStart,this.tabSize):0)},kt.prototype.match=function(x,z,re){if(typeof x=="string"){var te=function(Le){return re?Le.toLowerCase():Le},ae=this.string.substr(this.pos,x.length);if(te(ae)==te(x))return z!==!1&&(this.pos+=x.length),!0}else{var pe=this.string.slice(this.pos).match(x);return pe&&pe.index>0?null:(pe&&z!==!1&&(this.pos+=pe[0].length),pe)}},kt.prototype.current=function(){return this.string.slice(this.start,this.pos)},kt.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},kt.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},kt.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function Tn(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 re=x;!re.lines;)for(var te=0;;++te){var ae=re.children[te],pe=ae.chunkSize();if(z<pe){re=ae;break}z-=pe}return re.lines[z]}function rr(x,z,re){var te=[],ae=z.line;return x.iter(z.line,re.line+1,function(pe){var Le=pe.text;ae==re.line&&(Le=Le.slice(0,re.ch)),ae==z.line&&(Le=Le.slice(z.ch)),te.push(Le),++ae}),te}function Gr(x,z,re){var te=[];return x.iter(z,re,function(ae){te.push(ae.text)}),te}function Nr(x,z){var re=z-x.height;if(re)for(var te=x;te;te=te.parent)te.height+=re}function Lr(x){if(x.parent==null)return null;for(var z=x.parent,re=Bt(z.lines,x),te=z.parent;te;z=te,te=te.parent)for(var ae=0;te.children[ae]!=z;++ae)re+=te.children[ae].chunkSize();return re+z.first}function Ur(x,z){var re=x.first;e:do{for(var te=0;te<x.children.length;++te){var ae=x.children[te],pe=ae.height;if(z<pe){x=ae;continue e}z-=pe,re+=ae.chunkSize()}return re}while(!x.lines);for(var Le=0;Le<x.lines.length;++Le){var We=x.lines[Le],Ue=We.height;if(z<Ue)break;z-=Ue}return re+Le}function Sr(x,z){return z>=x.first&&z<x.first+x.size}function ai(x,z){return String(x.lineNumberFormatter(z+x.firstLineNumber))}function ir(x,z,re){if(re===void 0&&(re=null),!(this instanceof ir))return new ir(x,z,re);this.line=x,this.ch=z,this.sticky=re}function Rr(x,z){return x.line-z.line||x.ch-z.ch}function Di(x,z){return x.sticky==z.sticky&&Rr(x,z)==0}function Gi(x){return ir(x.line,x.ch)}function qr(x,z){return Rr(x,z)<0?z:x}function di(x,z){return Rr(x,z)<0?x:z}function Yi(x,z){return Math.max(x.first,Math.min(z,x.first+x.size-1))}function Xr(x,z){if(z.line<x.first)return ir(x.first,0);var re=x.first+x.size-1;return z.line>re?ir(re,Tn(x,re).text.length):Pi(z,Tn(x,z.line).text.length)}function Pi(x,z){var re=x.ch;return re==null||re>z?ir(x.line,z):re<0?ir(x.line,0):x}function Mr(x,z){for(var re=[],te=0;te<z.length;te++)re[te]=Xr(x,z[te]);return re}var ua=function(x,z){this.state=x,this.lookAhead=z},ta=function(x,z,re,te){this.state=z,this.doc=x,this.line=re,this.maxLookAhead=te||0,this.baseTokens=null,this.baseTokenPos=1};ta.prototype.lookAhead=function(x){var z=this.doc.getLine(this.line+x);return z!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),z},ta.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}},ta.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ta.fromSaved=function(x,z,re){return z instanceof ua?new ta(x,Ut(x.mode,z.state),re,z.lookAhead):new ta(x,Ut(x.mode,z),re)},ta.prototype.save=function(x){var z=x!==!1?Ut(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ua(z,this.maxLookAhead):z};function Ra(x,z,re,te){var ae=[x.state.modeGen],pe={};ba(x,z.text,x.doc.mode,re,function(st,cn){return ae.push(st,cn)},pe,te);for(var Le=re.state,We=function(st){re.baseTokens=ae;var cn=x.state.overlays[st],En=1,xr=0;re.state=!0,ba(x,z.text,cn.mode,re,function(fr,Qr){for(var ci=En;xr<fr;){var ki=ae[En];ki>fr&&ae.splice(En,1,fr,ae[En+1],ki),En+=2,xr=Math.min(fr,ki)}if(Qr)if(cn.opaque)ae.splice(ci,En-ci,fr,"overlay "+Qr),En=ci+2;else for(;ci<En;ci+=2){var Wi=ae[ci+1];ae[ci+1]=(Wi?Wi+" ":"")+"overlay "+Qr}},pe),re.state=Le,re.baseTokens=null,re.baseTokenPos=1},Ue=0;Ue<x.state.overlays.length;++Ue)We(Ue);return{styles:ae,classes:pe.bgClass||pe.textClass?pe:null}}function ca(x,z,re){if(!z.styles||z.styles[0]!=x.state.modeGen){var te=Xi(x,Lr(z)),ae=z.text.length>x.options.maxHighlightLength&&Ut(x.doc.mode,te.state),pe=Ra(x,z,te);ae&&(te.state=ae),z.stateAfter=te.save(!ae),z.styles=pe.styles,pe.classes?z.styleClasses=pe.classes:z.styleClasses&&(z.styleClasses=null),re===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return z.styles}function Xi(x,z,re){var te=x.doc,ae=x.display;if(!te.mode.startState)return new ta(te,!0,z);var pe=Ba(x,z,re),Le=pe>te.first&&Tn(te,pe-1).stateAfter,We=Le?ta.fromSaved(te,Le,pe):new ta(te,an(te.mode),pe);return te.iter(pe,z,function(Ue){Oi(x,Ue.text,We);var st=We.line;Ue.stateAfter=st==z-1||st%5==0||st>=ae.viewFrom&&st<ae.viewTo?We.save():null,We.nextLine()}),re&&(te.modeFrontier=We.line),We}function Oi(x,z,re,te){var ae=x.doc.mode,pe=new kt(z,x.options.tabSize,re);for(pe.start=pe.pos=te||0,z==""&&la(ae,re.state);!pe.eol();)Ji(ae,pe,re.state),pe.start=pe.pos}function la(x,z){if(x.blankLine)return x.blankLine(z);if(x.innerMode){var re=ke(x,z);if(re.mode.blankLine)return re.mode.blankLine(re.state)}}function Ji(x,z,re,te){for(var ae=0;ae<10;ae++){te&&(te[0]=ke(x,re).mode);var pe=x.token(z,re);if(z.pos>z.start)return pe}throw new Error("Mode "+x.name+" failed to advance stream.")}var Sa=function(x,z,re){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=re};function Ya(x,z,re,te){var ae=x.doc,pe=ae.mode,Le;z=Xr(ae,z);var We=Tn(ae,z.line),Ue=Xi(x,z.line,re),st=new kt(We.text,x.options.tabSize,Ue),cn;for(te&&(cn=[]);(te||st.pos<z.ch)&&!st.eol();)st.start=st.pos,Le=Ji(pe,st,Ue.state),te&&cn.push(new Sa(st,Le,Ut(ae.mode,Ue.state)));return te?cn:new Sa(st,Le,Ue.state)}function ka(x,z){if(x)for(;;){var re=x.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!re)break;x=x.slice(0,re.index)+x.slice(re.index+re[0].length);var te=re[1]?"bgClass":"textClass";z[te]==null?z[te]=re[2]:new RegExp("(?:^|\\s)"+re[2]+"(?:$|\\s)").test(z[te])||(z[te]+=" "+re[2])}return x}function ba(x,z,re,te,ae,pe,Le){var We=re.flattenSpans;We==null&&(We=x.options.flattenSpans);var Ue=0,st=null,cn=new kt(z,x.options.tabSize,te),En,xr=x.options.addModeClass&&[null];for(z==""&&ka(la(re,te.state),pe);!cn.eol();){if(cn.pos>x.options.maxHighlightLength?(We=!1,Le&&Oi(x,z,te,cn.pos),cn.pos=z.length,En=null):En=ka(Ji(re,cn,te.state,xr),pe),xr){var fr=xr[0].name;fr&&(En="m-"+(En?fr+" "+En:fr))}if(!We||st!=En){for(;Ue<cn.start;)Ue=Math.min(cn.start,Ue+5e3),ae(Ue,st);st=En}cn.start=cn.pos}for(;Ue<cn.pos;){var Qr=Math.min(cn.pos,Ue+5e3);ae(Qr,st),Ue=Qr}}function Ba(x,z,re){for(var te,ae,pe=x.doc,Le=re?-1:z-(x.doc.mode.innerMode?1e3:100),We=z;We>Le;--We){if(We<=pe.first)return pe.first;var Ue=Tn(pe,We-1),st=Ue.stateAfter;if(st&&(!re||We+(st instanceof ua?st.lookAhead:0)<=pe.modeFrontier))return We;var cn=dt(Ue.text,null,x.options.tabSize);(ae==null||te>cn)&&(ae=We-1,te=cn)}return ae}function fa(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontier<z-10)){for(var re=x.first,te=z-1;te>re;te--){var ae=Tn(x,te).stateAfter;if(ae&&(!(ae instanceof ua)||te+ae.lookAhead<z)){re=te+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,re)}}var ja=!1,Ri=!1;function hn(){ja=!0}function $t(){Ri=!0}function Zn(x,z,re){this.marker=x,this.from=z,this.to=re}function gr(x,z){if(x)for(var re=0;re<x.length;++re){var te=x[re];if(te.marker==z)return te}}function Er(x,z){for(var re,te=0;te<x.length;++te)x[te]!=z&&(re||(re=[])).push(x[te]);return re}function ri(x,z){x.markedSpans=x.markedSpans?x.markedSpans.concat([z]):[z],z.marker.attachLine(x)}function pi(x,z,re){var te;if(x)for(var ae=0;ae<x.length;++ae){var pe=x[ae],Le=pe.marker,We=pe.from==null||(Le.inclusiveLeft?pe.from<=z:pe.from<z);if(We||pe.from==z&&Le.type=="bookmark"&&(!re||!pe.marker.insertLeft)){var Ue=pe.to==null||(Le.inclusiveRight?pe.to>=z:pe.to>z);(te||(te=[])).push(new Zn(Le,pe.from,Ue?null:pe.to))}}return te}function Si(x,z,re){var te;if(x)for(var ae=0;ae<x.length;++ae){var pe=x[ae],Le=pe.marker,We=pe.to==null||(Le.inclusiveRight?pe.to>=z:pe.to>z);if(We||pe.from==z&&Le.type=="bookmark"&&(!re||pe.marker.insertLeft)){var Ue=pe.from==null||(Le.inclusiveLeft?pe.from<=z:pe.from<z);(te||(te=[])).push(new Zn(Le,Ue?null:pe.from-z,pe.to==null?null:pe.to-z))}}return te}function vi(x,z){if(z.full)return null;var re=Sr(x,z.from.line)&&Tn(x,z.from.line).markedSpans,te=Sr(x,z.to.line)&&Tn(x,z.to.line).markedSpans;if(!re&&!te)return null;var ae=z.from.ch,pe=z.to.ch,Le=Rr(z.from,z.to)==0,We=pi(re,ae,Le),Ue=Si(te,pe,Le),st=z.text.length==1,cn=Fn(z.text).length+(st?ae:0);if(We)for(var En=0;En<We.length;++En){var xr=We[En];if(xr.to==null){var fr=gr(Ue,xr.marker);fr?st&&(xr.to=fr.to==null?null:fr.to+cn):xr.to=ae}}if(Ue)for(var Qr=0;Qr<Ue.length;++Qr){var ci=Ue[Qr];if(ci.to!=null&&(ci.to+=cn),ci.from==null){var ki=gr(We,ci.marker);ki||(ci.from=cn,st&&(We||(We=[])).push(ci))}else ci.from+=cn,st&&(We||(We=[])).push(ci)}We&&(We=Ai(We)),Ue&&Ue!=We&&(Ue=Ai(Ue));var Wi=[We];if(!st){var ra=z.text.length-2,Ni;if(ra>0&&We)for(var oa=0;oa<We.length;++oa)We[oa].to==null&&(Ni||(Ni=[])).push(new Zn(We[oa].marker,null,null));for(var Ia=0;Ia<ra;++Ia)Wi.push(Ni);Wi.push(Ue)}return Wi}function Ai(x){for(var z=0;z<x.length;++z){var re=x[z];re.from!=null&&re.from==re.to&&re.marker.clearWhenEmpty!==!1&&x.splice(z--,1)}return x.length?x:null}function Ti(x,z,re){var te=null;if(x.iter(z.line,re.line+1,function(fr){if(fr.markedSpans)for(var Qr=0;Qr<fr.markedSpans.length;++Qr){var ci=fr.markedSpans[Qr].marker;ci.readOnly&&(!te||Bt(te,ci)==-1)&&(te||(te=[])).push(ci)}}),!te)return null;for(var ae=[{from:z,to:re}],pe=0;pe<te.length;++pe)for(var Le=te[pe],We=Le.find(0),Ue=0;Ue<ae.length;++Ue){var st=ae[Ue];if(!(Rr(st.to,We.from)<0||Rr(st.from,We.to)>0)){var cn=[Ue,1],En=Rr(st.from,We.from),xr=Rr(st.to,We.to);(En<0||!Le.inclusiveLeft&&!En)&&cn.push({from:st.from,to:We.from}),(xr>0||!Le.inclusiveRight&&!xr)&&cn.push({from:We.to,to:st.to}),ae.splice.apply(ae,cn),Ue+=cn.length-3}}return ae}function $i(x){var z=x.markedSpans;if(z){for(var re=0;re<z.length;++re)z[re].marker.detachLine(x);x.markedSpans=null}}function qi(x,z){if(z){for(var re=0;re<z.length;++re)z[re].marker.attachLine(x);x.markedSpans=z}}function Pn(x){return x.inclusiveLeft?-1:0}function In(x){return x.inclusiveRight?1:0}function Vn(x,z){var re=x.lines.length-z.lines.length;if(re!=0)return re;var te=x.find(),ae=z.find(),pe=Rr(te.from,ae.from)||Pn(x)-Pn(z);if(pe)return-pe;var Le=Rr(te.to,ae.to)||In(x)-In(z);return Le||z.id-x.id}function me(x,z){var re=Ri&&x.markedSpans,te;if(re)for(var ae=void 0,pe=0;pe<re.length;++pe)ae=re[pe],ae.marker.collapsed&&(z?ae.from:ae.to)==null&&(!te||Vn(te,ae.marker)<0)&&(te=ae.marker);return te}function _e(x){return me(x,!0)}function Ke(x){return me(x,!1)}function Ye(x,z){var re=Ri&&x.markedSpans,te;if(re)for(var ae=0;ae<re.length;++ae){var pe=re[ae];pe.marker.collapsed&&(pe.from==null||pe.from<z)&&(pe.to==null||pe.to>z)&&(!te||Vn(te,pe.marker)<0)&&(te=pe.marker)}return te}function Je(x,z,re,te,ae){var pe=Tn(x,z),Le=Ri&&pe.markedSpans;if(Le)for(var We=0;We<Le.length;++We){var Ue=Le[We];if(Ue.marker.collapsed){var st=Ue.marker.find(0),cn=Rr(st.from,re)||Pn(Ue.marker)-Pn(ae),En=Rr(st.to,te)||In(Ue.marker)-In(ae);if(!(cn>=0&&En<=0||cn<=0&&En>=0)&&(cn<=0&&(Ue.marker.inclusiveRight&&ae.inclusiveLeft?Rr(st.to,re)>=0:Rr(st.to,re)>0)||cn>=0&&(Ue.marker.inclusiveRight&&ae.inclusiveLeft?Rr(st.from,te)<=0:Rr(st.from,te)<0)))return!0}}}function $e(x){for(var z;z=_e(x);)x=z.find(-1,!0).line;return x}function Ge(x){for(var z;z=Ke(x);)x=z.find(1,!0).line;return x}function Xt(x){for(var z,re;z=Ke(x);)x=z.find(1,!0).line,(re||(re=[])).push(x);return re}function un(x,z){var re=Tn(x,z),te=$e(re);return re==te?z:Lr(te)}function Wn(x,z){if(z>x.lastLine())return z;var re=Tn(x,z),te;if(!ar(x,re))return z;for(;te=Ke(re);)re=te.find(1,!0).line;return Lr(re)+1}function ar(x,z){var re=Ri&&z.markedSpans;if(re){for(var te=void 0,ae=0;ae<re.length;++ae)if(te=re[ae],!!te.marker.collapsed){if(te.from==null)return!0;if(!te.marker.widgetNode&&te.from==0&&te.marker.inclusiveLeft&&$n(x,z,te))return!0}}}function $n(x,z,re){if(re.to==null){var te=re.marker.find(1,!0);return $n(x,te.line,gr(te.line.markedSpans,re.marker))}if(re.marker.inclusiveRight&&re.to==z.text.length)return!0;for(var ae=void 0,pe=0;pe<z.markedSpans.length;++pe)if(ae=z.markedSpans[pe],ae.marker.collapsed&&!ae.marker.widgetNode&&ae.from==re.to&&(ae.to==null||ae.to!=re.from)&&(ae.marker.inclusiveLeft||re.marker.inclusiveRight)&&$n(x,z,ae))return!0}function Nn(x){x=$e(x);for(var z=0,re=x.parent,te=0;te<re.lines.length;++te){var ae=re.lines[te];if(ae==x)break;z+=ae.height}for(var pe=re.parent;pe;re=pe,pe=re.parent)for(var Le=0;Le<pe.children.length;++Le){var We=pe.children[Le];if(We==re)break;z+=We.height}return z}function Bn(x){if(x.height==0)return 0;for(var z=x.text.length,re,te=x;re=_e(te);){var ae=re.find(0,!0);te=ae.from.line,z+=ae.from.ch-ae.to.ch}for(te=x;re=Ke(te);){var pe=re.find(0,!0);z-=te.text.length-pe.from.ch,te=pe.to.line,z+=te.text.length-pe.to.ch}return z}function rn(x){var z=x.display,re=x.doc;z.maxLine=Tn(re,re.first),z.maxLineLength=Bn(z.maxLine),z.maxLineChanged=!0,re.iter(function(te){var ae=Bn(te);ae>z.maxLineLength&&(z.maxLineLength=ae,z.maxLine=te)})}var Xn=function(x,z,re){this.text=x,qi(this,z),this.height=re?re(this):1};Xn.prototype.lineNo=function(){return Lr(this)},gn(Xn);function Ar(x,z,re,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),$i(x),qi(x,re);var ae=te?te(x):1;ae!=x.height&&Nr(x,ae)}function ur(x){x.parent=null,$i(x)}var Mn={},mr={};function Dr(x,z){if(!x||/^\s*$/.test(x))return null;var re=z.addModeClass?mr:Mn;return re[x]||(re[x]=x.replace(/\S+/g,"cm-$&"))}function _r(x,z){var re=ut("span",null,null,ce?"padding-right: .1px":null),te={pre:ut("pre",[re],"CodeMirror-line"),content:re,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var ae=0;ae<=(z.rest?z.rest.length:0);ae++){var pe=ae?z.rest[ae-1]:z.line,Le=void 0;te.pos=0,te.addToken=at,zr(x.display.measure)&&(Le=It(pe,x.doc.direction))&&(te.addToken=Qt(te.addToken,Le)),te.map=[];var We=z!=x.display.externalMeasured&&Lr(pe);sr(pe,te,ca(x,pe,We)),pe.styleClasses&&(pe.styleClasses.bgClass&&(te.bgClass=Ft(pe.styleClasses.bgClass,te.bgClass||"")),pe.styleClasses.textClass&&(te.textClass=Ft(pe.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(br(x.display.measure))),ae==0?(z.measure.map=te.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(te.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(ce){var Ue=te.content.lastChild;(/\bcm-tab\b/.test(Ue.className)||Ue.querySelector&&Ue.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return bt(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=Ft(te.pre.className,te.textClass||"")),te}function tt(x){var z=ft("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function at(x,z,re,te,ae,pe,Le){if(z){var We=x.splitSpaces?on(z,x.trailingSpace):z,Ue=x.cm.state.specialChars,st=!1,cn;if(!Ue.test(z))x.col+=z.length,cn=document.createTextNode(We),x.map.push(x.pos,x.pos+z.length,cn),Se&&Me<9&&(st=!0),x.pos+=z.length;else{cn=document.createDocumentFragment();for(var En=0;;){Ue.lastIndex=En;var xr=Ue.exec(z),fr=xr?xr.index-En:z.length-En;if(fr){var Qr=document.createTextNode(We.slice(En,En+fr));Se&&Me<9?cn.appendChild(ft("span",[Qr])):cn.appendChild(Qr),x.map.push(x.pos,x.pos+fr,Qr),x.col+=fr,x.pos+=fr}if(!xr)break;En+=fr+1;var ci=void 0;if(xr[0]==" "){var ki=x.cm.options.tabSize,Wi=ki-x.col%ki;ci=cn.appendChild(ft("span",qt(Wi),"cm-tab")),ci.setAttribute("role","presentation"),ci.setAttribute("cm-text"," "),x.col+=Wi}else xr[0]=="\r"||xr[0]==`
`?(ci=cn.appendChild(ft("span",xr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ci.setAttribute("cm-text",xr[0]),x.col+=1):(ci=x.cm.options.specialCharPlaceholder(xr[0]),ci.setAttribute("cm-text",xr[0]),Se&&Me<9?cn.appendChild(ft("span",[ci])):cn.appendChild(ci),x.col+=1);x.map.push(x.pos,x.pos+1,ci),x.pos++}}if(x.trailingSpace=We.charCodeAt(z.length-1)==32,re||te||ae||st||pe||Le){var ra=re||"";te&&(ra+=te),ae&&(ra+=ae);var Ni=ft("span",[cn],ra,pe);if(Le)for(var oa in Le)Le.hasOwnProperty(oa)&&oa!="style"&&oa!="class"&&Ni.setAttribute(oa,Le[oa]);return x.content.appendChild(Ni)}x.content.appendChild(cn)}}function on(x,z){if(x.length>1&&!/ /.test(x))return x;for(var re=z,te="",ae=0;ae<x.length;ae++){var pe=x.charAt(ae);pe==" "&&re&&(ae==x.length-1||x.charCodeAt(ae+1)==32)&&(pe="\xA0"),te+=pe,re=pe==" "}return te}function Qt(x,z){return function(re,te,ae,pe,Le,We,Ue){ae=ae?ae+" cm-force-border":"cm-force-border";for(var st=re.pos,cn=st+te.length;;){for(var En=void 0,xr=0;xr<z.length&&(En=z[xr],!(En.to>st&&En.from<=st));xr++);if(En.to>=cn)return x(re,te,ae,pe,Le,We,Ue);x(re,te.slice(0,En.to-st),ae,pe,null,We,Ue),pe=null,te=te.slice(En.to-st),st=En.to}}}function Dn(x,z,re,te){var ae=!te&&re.widgetNode;ae&&x.map.push(x.pos,x.pos+z,ae),!te&&x.cm.display.input.needsContentAttribute&&(ae||(ae=x.content.appendChild(document.createElement("span"))),ae.setAttribute("cm-marker",re.id)),ae&&(x.cm.display.input.setUneditable(ae),x.content.appendChild(ae)),x.pos+=z,x.trailingSpace=!1}function sr(x,z,re){var te=x.markedSpans,ae=x.text,pe=0;if(!te){for(var Le=1;Le<re.length;Le+=2)z.addToken(z,ae.slice(pe,pe=re[Le]),Dr(re[Le+1],z.cm.options));return}for(var We=ae.length,Ue=0,st=1,cn="",En,xr,fr=0,Qr,ci,ki,Wi,ra;;){if(fr==Ue){Qr=ci=ki=xr="",ra=null,Wi=null,fr=1/0;for(var Ni=[],oa=void 0,Ia=0;Ia<te.length;++Ia){var Oa=te[Ia],Mo=Oa.marker;if(Mo.type=="bookmark"&&Oa.from==Ue&&Mo.widgetNode)Ni.push(Mo);else if(Oa.from<=Ue&&(Oa.to==null||Oa.to>Ue||Mo.collapsed&&Oa.to==Ue&&Oa.from==Ue)){if(Oa.to!=null&&Oa.to!=Ue&&fr>Oa.to&&(fr=Oa.to,ci=""),Mo.className&&(Qr+=" "+Mo.className),Mo.css&&(xr=(xr?xr+";":"")+Mo.css),Mo.startStyle&&Oa.from==Ue&&(ki+=" "+Mo.startStyle),Mo.endStyle&&Oa.to==fr&&(oa||(oa=[])).push(Mo.endStyle,Oa.to),Mo.title&&((ra||(ra={})).title=Mo.title),Mo.attributes)for(var vs in Mo.attributes)(ra||(ra={}))[vs]=Mo.attributes[vs];Mo.collapsed&&(!Wi||Vn(Wi.marker,Mo)<0)&&(Wi=Oa)}else Oa.from>Ue&&fr>Oa.from&&(fr=Oa.from)}if(oa)for(var xl=0;xl<oa.length;xl+=2)oa[xl+1]==fr&&(ci+=" "+oa[xl]);if(!Wi||Wi.from==Ue)for(var Rs=0;Rs<Ni.length;++Rs)Dn(z,0,Ni[Rs]);if(Wi&&(Wi.from||0)==Ue){if(Dn(z,(Wi.to==null?We+1:Wi.to)-Ue,Wi.marker,Wi.from==null),Wi.to==null)return;Wi.to==Ue&&(Wi=!1)}}if(Ue>=We)break;for(var jl=Math.min(We,fr);;){if(cn){var Ul=Ue+cn.length;if(!Wi){var ll=Ul>jl?cn.slice(0,jl-Ue):cn;z.addToken(z,ll,En?En+Qr:Qr,ki,Ue+ll.length==fr?ci:"",xr,ra)}if(Ul>=jl){cn=cn.slice(jl-Ue),Ue=jl;break}Ue=Ul,ki=""}cn=ae.slice(pe,pe=re[st++]),En=Dr(re[st++],z.cm.options)}}}function Mt(x,z,re){this.line=z,this.rest=Xt(z),this.size=this.rest?Lr(Fn(this.rest))-re+1:1,this.node=this.text=null,this.hidden=ar(x,z)}function Dt(x,z,re){for(var te=[],ae,pe=z;pe<re;pe=ae){var Le=new Mt(x.doc,Tn(x.doc,pe),pe);ae=pe+Le.size,te.push(Le)}return te}var Nt=null;function Gt(x){Nt?Nt.ops.push(x):x.ownsGroup=Nt={ops:[x],delayedCallbacks:[]}}function Rn(x){var z=x.delayedCallbacks,re=0;do{for(;re<z.length;re++)z[re].call(null);for(var te=0;te<x.ops.length;te++){var ae=x.ops[te];if(ae.cursorActivityHandlers)for(;ae.cursorActivityCalled<ae.cursorActivityHandlers.length;)ae.cursorActivityHandlers[ae.cursorActivityCalled++].call(null,ae.cm)}}while(re<z.length)}function Qn(x,z){var re=x.ownsGroup;if(re)try{Rn(re)}finally{Nt=null,z(re)}}var wn=null;function Yn(x,z){var re=Kt(x,z);if(re.length){var te=Array.prototype.slice.call(arguments,2),ae;Nt?ae=Nt.delayedCallbacks:wn?ae=wn:(ae=wn=[],setTimeout(kr,0));for(var pe=function(We){ae.push(function(){return re[We].apply(null,te)})},Le=0;Le<re.length;++Le)pe(Le)}}function kr(){var x=wn;wn=null;for(var z=0;z<x.length;++z)x[z]()}function bn(x,z,re,te){for(var ae=0;ae<z.changes.length;ae++){var pe=z.changes[ae];pe=="text"?Ir(x,z):pe=="gutter"?Zr(x,z,re,te):pe=="class"?Jr(x,z):pe=="widget"&&Br(x,z,te)}z.changes=null}function pn(x){return x.node==x.text&&(x.node=ft("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),Se&&Me<8&&(x.node.style.zIndex=2)),x.node}function _n(x,z){var re=z.bgClass?z.bgClass+" "+(z.line.bgClass||""):z.line.bgClass;if(re&&(re+=" CodeMirror-linebackground"),z.background)re?z.background.className=re:(z.background.parentNode.removeChild(z.background),z.background=null);else if(re){var te=pn(z);z.background=te.insertBefore(ft("div",null,re),te.firstChild),x.display.input.setUneditable(z.background)}}function Tr(x,z){var re=x.display.externalMeasured;return re&&re.line==z.line?(x.display.externalMeasured=null,z.measure=re.measure,re.built):_r(x,z)}function Ir(x,z){var re=z.text.className,te=Tr(x,z);z.text==z.node&&(z.node=te.pre),z.text.parentNode.replaceChild(te.pre,z.text),z.text=te.pre,te.bgClass!=z.bgClass||te.textClass!=z.textClass?(z.bgClass=te.bgClass,z.textClass=te.textClass,Jr(x,z)):re&&(z.text.className=re)}function Jr(x,z){_n(x,z),z.line.wrapClass?pn(z).className=z.line.wrapClass:z.node!=z.text&&(z.node.className="");var re=z.textClass?z.textClass+" "+(z.line.textClass||""):z.line.textClass;z.text.className=re||""}function Zr(x,z,re,te){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 ae=pn(z);z.gutterBackground=ft("div",null,"CodeMirror-gutter-background "+z.line.gutterClass,"left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px; width: "+te.gutterTotalWidth+"px"),x.display.input.setUneditable(z.gutterBackground),ae.insertBefore(z.gutterBackground,z.text)}var pe=z.line.gutterMarkers;if(x.options.lineNumbers||pe){var Le=pn(z),We=z.gutter=ft("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px");if(x.display.input.setUneditable(We),Le.insertBefore(We,z.text),z.line.gutterClass&&(We.className+=" "+z.line.gutterClass),x.options.lineNumbers&&(!pe||!pe["CodeMirror-linenumbers"])&&(z.lineNumber=We.appendChild(ft("div",ai(x.options,re),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),pe)for(var Ue=0;Ue<x.display.gutterSpecs.length;++Ue){var st=x.display.gutterSpecs[Ue].className,cn=pe.hasOwnProperty(st)&&pe[st];cn&&We.appendChild(ft("div",[cn],"CodeMirror-gutter-elt","left: "+te.gutterLeft[st]+"px; width: "+te.gutterWidth[st]+"px"))}}}function Br(x,z,re){z.alignable&&(z.alignable=null);for(var te=be("CodeMirror-linewidget"),ae=z.node.firstChild,pe=void 0;ae;ae=pe)pe=ae.nextSibling,te.test(ae.className)&&z.node.removeChild(ae);oi(x,z,re)}function si(x,z,re,te){var ae=Tr(x,z);return z.text=z.node=ae.pre,ae.bgClass&&(z.bgClass=ae.bgClass),ae.textClass&&(z.textClass=ae.textClass),Jr(x,z),Zr(x,z,re,te),oi(x,z,te),z.node}function oi(x,z,re){if(vt(x,z.line,z,re,!0),z.rest)for(var te=0;te<z.rest.length;te++)vt(x,z.rest[te],z,re,!1)}function vt(x,z,re,te,ae){if(z.widgets)for(var pe=pn(re),Le=0,We=z.widgets;Le<We.length;++Le){var Ue=We[Le],st=ft("div",[Ue.node],"CodeMirror-linewidget"+(Ue.className?" "+Ue.className:""));Ue.handleMouseEvents||st.setAttribute("cm-ignore-events","true"),dn(Ue,st,re,te),x.display.input.setUneditable(st),ae&&Ue.above?pe.insertBefore(st,re.gutter||re.text):pe.appendChild(st),Yn(Ue,"redraw")}}function dn(x,z,re,te){if(x.noHScroll){(re.alignable||(re.alignable=[])).push(z);var ae=te.wrapperWidth;z.style.left=te.fixedPos+"px",x.coverGutter||(ae-=te.gutterTotalWidth,z.style.paddingLeft=te.gutterTotalWidth+"px"),z.style.width=ae+"px"}x.coverGutter&&(z.style.zIndex=5,z.style.position="relative",x.noHScroll||(z.style.marginLeft=-te.gutterTotalWidth+"px"))}function hr(x){if(x.height!=null)return x.height;var z=x.doc.cm;if(!z)return 0;if(!Vt(document.body,x.node)){var re="position: relative;";x.coverGutter&&(re+="margin-left: -"+z.display.gutters.offsetWidth+"px;"),x.noHScroll&&(re+="width: "+z.display.wrapper.clientWidth+"px;"),Et(z.display.measure,ft("div",[x.node],null,re))}return x.height=x.node.parentNode.offsetHeight}function mi(x,z){for(var re=jr(z);re!=x.wrapper;re=re.parentNode)if(!re||re.nodeType==1&&re.getAttribute("cm-ignore-events")=="true"||re.parentNode==x.sizer&&re!=x.mover)return!0}function ii(x){return x.lineSpace.offsetTop}function yi(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function zi(x){if(x.cachedPaddingH)return x.cachedPaddingH;var z=Et(x.measure,ft("pre","x","CodeMirror-line-like")),re=window.getComputedStyle?window.getComputedStyle(z):z.currentStyle,te={left:parseInt(re.paddingLeft),right:parseInt(re.paddingRight)};return!isNaN(te.left)&&!isNaN(te.right)&&(x.cachedPaddingH=te),te}function Mi(x){return Cn-x.display.nativeBarWidth}function fi(x){return x.display.scroller.clientWidth-Mi(x)-x.display.barWidth}function _i(x){return x.display.scroller.clientHeight-Mi(x)-x.display.barHeight}function ma(x,z,re){var te=x.options.lineWrapping,ae=te&&fi(x);if(!z.measure.heights||te&&z.measure.width!=ae){var pe=z.measure.heights=[];if(te){z.measure.width=ae;for(var Le=z.text.firstChild.getClientRects(),We=0;We<Le.length-1;We++){var Ue=Le[We],st=Le[We+1];Math.abs(Ue.bottom-st.bottom)>2&&pe.push((Ue.bottom+st.top)/2-re.top)}}pe.push(re.bottom-re.top)}}function oo(x,z,re){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var te=0;te<x.rest.length;te++)if(x.rest[te]==z)return{map:x.measure.maps[te],cache:x.measure.caches[te]};for(var ae=0;ae<x.rest.length;ae++)if(Lr(x.rest[ae])>re)return{map:x.measure.maps[ae],cache:x.measure.caches[ae],before:!0}}function Ja(x,z){z=$e(z);var re=Lr(z),te=x.display.externalMeasured=new Mt(x.doc,z,re);te.lineN=re;var ae=te.built=_r(x,te);return te.text=ae.pre,Et(x.display.lineMeasure,ae.pre),te}function Wa(x,z,re,te){return ia(x,La(x,z),re,te)}function za(x,z){if(z>=x.display.viewFrom&&z<x.display.viewTo)return x.display.view[Xa(x,z)];var re=x.display.externalMeasured;if(re&&z>=re.lineN&&z<re.lineN+re.size)return re}function La(x,z){var re=Lr(z),te=za(x,re);te&&!te.text?te=null:te&&te.changes&&(bn(x,te,re,xs(x)),x.curOp.forceUpdate=!0),te||(te=Ja(x,z));var ae=oo(te,z,re);return{line:z,view:te,rect:null,map:ae.map,cache:ae.cache,before:ae.before,hasHeights:!1}}function ia(x,z,re,te,ae){z.before&&(re=-1);var pe=re+(te||""),Le;return z.cache.hasOwnProperty(pe)?Le=z.cache[pe]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(ma(x,z.view,z.rect),z.hasHeights=!0),Le=Ta(x,z,re,te),Le.bogus||(z.cache[pe]=Le)),{left:Le.left,right:Le.right,top:ae?Le.rtop:Le.top,bottom:ae?Le.rbottom:Le.bottom}}var mo={left:0,right:0,top:0,bottom:0};function va(x,z,re){for(var te,ae,pe,Le,We,Ue,st=0;st<x.length;st+=3)if(We=x[st],Ue=x[st+1],z<We?(ae=0,pe=1,Le="left"):z<Ue?(ae=z-We,pe=ae+1):(st==x.length-3||z==Ue&&x[st+3]>z)&&(pe=Ue-We,ae=pe-1,z>=Ue&&(Le="right")),ae!=null){if(te=x[st+2],We==Ue&&re==(te.insertLeft?"left":"right")&&(Le=re),re=="left"&&ae==0)for(;st&&x[st-2]==x[st-3]&&x[st-1].insertLeft;)te=x[(st-=3)+2],Le="left";if(re=="right"&&ae==Ue-We)for(;st<x.length-3&&x[st+3]==x[st+4]&&!x[st+5].insertLeft;)te=x[(st+=3)+2],Le="right";break}return{node:te,start:ae,end:pe,collapse:Le,coverStart:We,coverEnd:Ue}}function Zi(x,z){var re=mo;if(z=="left")for(var te=0;te<x.length&&(re=x[te]).left==re.right;te++);else for(var ae=x.length-1;ae>=0&&(re=x[ae]).left==re.right;ae--);return re}function Ta(x,z,re,te){var ae=va(z.map,re,te),pe=ae.node,Le=ae.start,We=ae.end,Ue=ae.collapse,st;if(pe.nodeType==3){for(var cn=0;cn<4;cn++){for(;Le&&Te(z.line.text.charAt(ae.coverStart+Le));)--Le;for(;ae.coverStart+We<ae.coverEnd&&Te(z.line.text.charAt(ae.coverStart+We));)++We;if(Se&&Me<9&&Le==0&&We==ae.coverEnd-ae.coverStart?st=pe.parentNode.getBoundingClientRect():st=Zi(Re(pe,Le,We).getClientRects(),te),st.left||st.right||Le==0)break;We=Le,Le=Le-1,Ue="right"}Se&&Me<11&&(st=no(x.display.measure,st))}else{Le>0&&(Ue=te="right");var En;x.options.lineWrapping&&(En=pe.getClientRects()).length>1?st=En[te=="right"?En.length-1:0]:st=pe.getBoundingClientRect()}if(Se&&Me<9&&!Le&&(!st||!st.left&&!st.right)){var xr=pe.parentNode.getClientRects()[0];xr?st={left:xr.left,right:xr.left+cs(x.display),top:xr.top,bottom:xr.bottom}:st=mo}for(var fr=st.top-z.rect.top,Qr=st.bottom-z.rect.top,ci=(fr+Qr)/2,ki=z.view.measure.heights,Wi=0;Wi<ki.length-1&&!(ci<ki[Wi]);Wi++);var ra=Wi?ki[Wi-1]:0,Ni=ki[Wi],oa={left:(Ue=="right"?st.right:st.left)-z.rect.left,right:(Ue=="left"?st.left:st.right)-z.rect.left,top:ra,bottom:Ni};return!st.left&&!st.right&&(oa.bogus=!0),x.options.singleCursorHeightPerLine||(oa.rtop=fr,oa.rbottom=Qr),oa}function no(x,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Jn(x))return z;var re=screen.logicalXDPI/screen.deviceXDPI,te=screen.logicalYDPI/screen.deviceYDPI;return{left:z.left*re,right:z.right*re,top:z.top*te,bottom:z.bottom*te}}function Na(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 Ka(x){x.display.externalMeasure=null,je(x.display.lineMeasure);for(var z=0;z<x.display.view.length;z++)Na(x.display.view[z])}function aa(x){Ka(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function ro(){return ge&&nt?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function bo(){return ge&&nt?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function uo(x){var z=0;if(x.widgets)for(var re=0;re<x.widgets.length;++re)x.widgets[re].above&&(z+=hr(x.widgets[re]));return z}function xo(x,z,re,te,ae){if(!ae){var pe=uo(z);re.top+=pe,re.bottom+=pe}if(te=="line")return re;te||(te="local");var Le=Nn(z);if(te=="local"?Le+=ii(x.display):Le-=x.display.viewOffset,te=="page"||te=="window"){var We=x.display.lineSpace.getBoundingClientRect();Le+=We.top+(te=="window"?0:bo());var Ue=We.left+(te=="window"?0:ro());re.left+=Ue,re.right+=Ue}return re.top+=Le,re.bottom+=Le,re}function Ao(x,z,re){if(re=="div")return z;var te=z.left,ae=z.top;if(re=="page")te-=ro(),ae-=bo();else if(re=="local"||!re){var pe=x.display.sizer.getBoundingClientRect();te+=pe.left,ae+=pe.top}var Le=x.display.lineSpace.getBoundingClientRect();return{left:te-Le.left,top:ae-Le.top}}function Xo(x,z,re,te,ae){return te||(te=Tn(x.doc,z.line)),xo(x,te,Wa(x,te,z.ch,ae),re)}function co(x,z,re,te,ae,pe){te=te||Tn(x.doc,z.line),ae||(ae=La(x,te));function Le(Qr,ci){var ki=ia(x,ae,Qr,ci?"right":"left",pe);return ci?ki.left=ki.right:ki.right=ki.left,xo(x,te,ki,re)}var We=It(te,x.doc.direction),Ue=z.ch,st=z.sticky;if(Ue>=te.text.length?(Ue=te.text.length,st="before"):Ue<=0&&(Ue=0,st="after"),!We)return Le(st=="before"?Ue-1:Ue,st=="before");function cn(Qr,ci,ki){var Wi=We[ci],ra=Wi.level==1;return Le(ki?Qr-1:Qr,ra!=ki)}var En=Ot(We,Ue,st),xr=zt,fr=cn(Ue,En,st=="before");return xr!=null&&(fr.other=cn(Ue,xr,st!="before")),fr}function wo(x,z){var re=0;z=Xr(x.doc,z),x.options.lineWrapping||(re=cs(x.display)*z.ch);var te=Tn(x.doc,z.line),ae=Nn(te)+ii(x.display);return{left:re,right:re,top:ae,bottom:ae+te.height}}function os(x,z,re,te,ae){var pe=ir(x,z,re);return pe.xRel=ae,te&&(pe.outside=te),pe}function rs(x,z,re){var te=x.doc;if(re+=x.display.viewOffset,re<0)return os(te.first,0,null,-1,-1);var ae=Ur(te,re),pe=te.first+te.size-1;if(ae>pe)return os(te.first+te.size-1,Tn(te,pe).text.length,null,1,1);z<0&&(z=0);for(var Le=Tn(te,ae);;){var We=xa(x,Le,ae,z,re),Ue=Ye(Le,We.ch+(We.xRel>0||We.outside>0?1:0));if(!Ue)return We;var st=Ue.find(1);if(st.line==ae)return st;Le=Tn(te,ae=st.line)}}function us(x,z,re,te){te-=uo(z);var ae=z.text.length,pe=At(function(Le){return ia(x,re,Le-1).bottom<=te},ae,0);return ae=At(function(Le){return ia(x,re,Le).top>te},pe,ae),{begin:pe,end:ae}}function Io(x,z,re,te){re||(re=La(x,z));var ae=xo(x,z,ia(x,re,te),"line").top;return us(x,z,re,ae)}function So(x,z,re,te){return x.bottom<=re?!1:x.top>re?!0:(te?x.left:x.right)>z}function xa(x,z,re,te,ae){ae-=Nn(z);var pe=La(x,z),Le=uo(z),We=0,Ue=z.text.length,st=!0,cn=It(z,x.doc.direction);if(cn){var En=(x.options.lineWrapping?io:Pa)(x,z,re,pe,cn,te,ae);st=En.level!=1,We=st?En.from:En.to-1,Ue=st?En.to:En.from-1}var xr=null,fr=null,Qr=At(function(Ia){var Oa=ia(x,pe,Ia);return Oa.top+=Le,Oa.bottom+=Le,So(Oa,te,ae,!1)?(Oa.top<=ae&&Oa.left<=te&&(xr=Ia,fr=Oa),!0):!1},We,Ue),ci,ki,Wi=!1;if(fr){var ra=te-fr.left<fr.right-te,Ni=ra==st;Qr=xr+(Ni?0:1),ki=Ni?"after":"before",ci=ra?fr.left:fr.right}else{!st&&(Qr==Ue||Qr==We)&&Qr++,ki=Qr==0?"after":Qr==z.text.length?"before":ia(x,pe,Qr-(st?1:0)).bottom+Le<=ae==st?"after":"before";var oa=co(x,ir(re,Qr,ki),"line",z,pe);ci=oa.left,Wi=ae<oa.top?-1:ae>=oa.bottom?1:0}return Qr=gt(z.text,Qr,1),os(re,Qr,ki,Wi,te-ci)}function Pa(x,z,re,te,ae,pe,Le){var We=At(function(En){var xr=ae[En],fr=xr.level!=1;return So(co(x,ir(re,fr?xr.to:xr.from,fr?"before":"after"),"line",z,te),pe,Le,!0)},0,ae.length-1),Ue=ae[We];if(We>0){var st=Ue.level!=1,cn=co(x,ir(re,st?Ue.from:Ue.to,st?"after":"before"),"line",z,te);So(cn,pe,Le,!0)&&cn.top>Le&&(Ue=ae[We-1])}return Ue}function io(x,z,re,te,ae,pe,Le){var We=us(x,z,te,Le),Ue=We.begin,st=We.end;/\s/.test(z.text.charAt(st-1))&&st--;for(var cn=null,En=null,xr=0;xr<ae.length;xr++){var fr=ae[xr];if(!(fr.from>=st||fr.to<=Ue)){var Qr=fr.level!=1,ci=ia(x,te,Qr?Math.min(st,fr.to)-1:Math.max(Ue,fr.from)).right,ki=ci<pe?pe-ci+1e9:ci-pe;(!cn||En>ki)&&(cn=fr,En=ki)}}return cn||(cn=ae[ae.length-1]),cn.from<Ue&&(cn={from:Ue,to:cn.to,level:cn.level}),cn.to>st&&(cn={from:cn.from,to:st,level:cn.level}),cn}var go;function Uo(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(go==null){go=ft("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)go.appendChild(document.createTextNode("x")),go.appendChild(ft("br"));go.appendChild(document.createTextNode("x"))}Et(x.measure,go);var re=go.offsetHeight/50;return re>3&&(x.cachedTextHeight=re),je(x.measure),re||1}function cs(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=ft("span","xxxxxxxxxx"),re=ft("pre",[z],"CodeMirror-line-like");Et(x.measure,re);var te=z.getBoundingClientRect(),ae=(te.right-te.left)/10;return ae>2&&(x.cachedCharWidth=ae),ae||10}function xs(x){for(var z=x.display,re={},te={},ae=z.gutters.clientLeft,pe=z.gutters.firstChild,Le=0;pe;pe=pe.nextSibling,++Le){var We=x.display.gutterSpecs[Le].className;re[We]=pe.offsetLeft+pe.clientLeft+ae,te[We]=pe.clientWidth}return{fixedPos:Js(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:re,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function Js(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function zs(x){var z=Uo(x.display),re=x.options.lineWrapping,te=re&&Math.max(5,x.display.scroller.clientWidth/cs(x.display)-3);return function(ae){if(ar(x.doc,ae))return 0;var pe=0;if(ae.widgets)for(var Le=0;Le<ae.widgets.length;Le++)ae.widgets[Le].height&&(pe+=ae.widgets[Le].height);return re?pe+(Math.ceil(ae.text.length/te)||1)*z:pe+z}}function ds(x){var z=x.doc,re=zs(x);z.iter(function(te){var ae=re(te);ae!=te.height&&Nr(te,ae)})}function Ks(x,z,re,te){var ae=x.display;if(!re&&jr(z).getAttribute("cm-not-content")=="true")return null;var pe,Le,We=ae.lineSpace.getBoundingClientRect();try{pe=z.clientX-We.left,Le=z.clientY-We.top}catch(En){return null}var Ue=rs(x,pe,Le),st;if(te&&Ue.xRel>0&&(st=Tn(x.doc,Ue.line).text).length==Ue.ch){var cn=dt(st,st.length,x.options.tabSize)-st.length;Ue=ir(Ue.line,Math.max(0,Math.round((pe-zi(x.display).left)/cs(x.display))-cn))}return Ue}function Xa(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var re=x.display.view,te=0;te<re.length;te++)if(z-=re[te].size,z<0)return te}function Da(x,z,re,te){z==null&&(z=x.doc.first),re==null&&(re=x.doc.first+x.doc.size),te||(te=0);var ae=x.display;if(te&&re<ae.viewTo&&(ae.updateLineNumbers==null||ae.updateLineNumbers>z)&&(ae.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ae.viewTo)Ri&&un(x.doc,z)<ae.viewTo&&ko(x);else if(re<=ae.viewFrom)Ri&&Wn(x.doc,re+te)>ae.viewFrom?ko(x):(ae.viewFrom+=te,ae.viewTo+=te);else if(z<=ae.viewFrom&&re>=ae.viewTo)ko(x);else if(z<=ae.viewFrom){var pe=fs(x,re,re+te,1);pe?(ae.view=ae.view.slice(pe.index),ae.viewFrom=pe.lineN,ae.viewTo+=te):ko(x)}else if(re>=ae.viewTo){var Le=fs(x,z,z,-1);Le?(ae.view=ae.view.slice(0,Le.index),ae.viewTo=Le.lineN):ko(x)}else{var We=fs(x,z,z,-1),Ue=fs(x,re,re+te,1);We&&Ue?(ae.view=ae.view.slice(0,We.index).concat(Dt(x,We.lineN,Ue.lineN)).concat(ae.view.slice(Ue.index)),ae.viewTo+=te):ko(x)}var st=ae.externalMeasured;st&&(re<st.lineN?st.lineN+=te:z<st.lineN+st.size&&(ae.externalMeasured=null))}function po(x,z,re){x.curOp.viewChanged=!0;var te=x.display,ae=x.display.externalMeasured;if(ae&&z>=ae.lineN&&z<ae.lineN+ae.size&&(te.externalMeasured=null),!(z<te.viewFrom||z>=te.viewTo)){var pe=te.view[Xa(x,z)];if(pe.node!=null){var Le=pe.changes||(pe.changes=[]);Bt(Le,re)==-1&&Le.push(re)}}}function ko(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function fs(x,z,re,te){var ae=Xa(x,z),pe,Le=x.display.view;if(!Ri||re==x.doc.first+x.doc.size)return{index:ae,lineN:re};for(var We=x.display.viewFrom,Ue=0;Ue<ae;Ue++)We+=Le[Ue].size;if(We!=z){if(te>0){if(ae==Le.length-1)return null;pe=We+Le[ae].size-z,ae++}else pe=We-z;z+=pe,re+=pe}for(;un(x.doc,re)!=re;){if(ae==(te<0?0:Le.length-1))return null;re+=te*Le[ae-(te<0?1:0)].size,ae+=te}return{index:ae,lineN:re}}function ss(x,z,re){var te=x.display,ae=te.view;ae.length==0||z>=te.viewTo||re<=te.viewFrom?(te.view=Dt(x,z,re),te.viewFrom=z):(te.viewFrom>z?te.view=Dt(x,z,te.viewFrom).concat(te.view):te.viewFrom<z&&(te.view=te.view.slice(Xa(x,z))),te.viewFrom=z,te.viewTo<re?te.view=te.view.concat(Dt(x,te.viewTo,re)):te.viewTo>re&&(te.view=te.view.slice(0,Xa(x,re)))),te.viewTo=re}function Rl(x){for(var z=x.display.view,re=0,te=0;te<z.length;te++){var ae=z[te];!ae.hidden&&(!ae.node||ae.changes)&&++re}return re}function ml(x){x.display.input.showSelection(x.display.input.prepareSelection())}function Sl(x,z){z===void 0&&(z=!0);for(var re=x.doc,te={},ae=te.cursors=document.createDocumentFragment(),pe=te.selection=document.createDocumentFragment(),Le=0;Le<re.sel.ranges.length;Le++)if(!(!z&&Le==re.sel.primIndex)){var We=re.sel.ranges[Le];if(!(We.from().line>=x.display.viewTo||We.to().line<x.display.viewFrom)){var Ue=We.empty();(Ue||x.options.showCursorWhenSelecting)&&Qa(x,We.head,ae),Ue||ha(x,We,pe)}}return te}function Qa(x,z,re){var te=co(x,z,"div",null,null,!x.options.singleCursorHeightPerLine),ae=re.appendChild(ft("div","\xA0","CodeMirror-cursor"));if(ae.style.left=te.left+"px",ae.style.top=te.top+"px",ae.style.height=Math.max(0,te.bottom-te.top)*x.options.cursorHeight+"px",te.other){var pe=re.appendChild(ft("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));pe.style.display="",pe.style.left=te.other.left+"px",pe.style.top=te.other.top+"px",pe.style.height=(te.other.bottom-te.other.top)*.85+"px"}}function wi(x,z){return x.top-z.top||x.left-z.left}function ha(x,z,re){var te=x.display,ae=x.doc,pe=document.createDocumentFragment(),Le=zi(x.display),We=Le.left,Ue=Math.max(te.sizerWidth,fi(x)-te.sizer.offsetLeft)-Le.right,st=ae.direction=="ltr";function cn(Ni,oa,Ia,Oa){oa<0&&(oa=0),oa=Math.round(oa),Oa=Math.round(Oa),pe.appendChild(ft("div",null,"CodeMirror-selected","position: absolute; left: "+Ni+`px;
top: `+oa+"px; width: "+(Ia==null?Ue-Ni:Ia)+`px;
height: `+(Oa-oa)+"px"))}function En(Ni,oa,Ia){var Oa=Tn(ae,Ni),Mo=Oa.text.length,vs,xl;function Rs(ll,Vl){return Xo(x,ir(Ni,ll),"div",Oa,Vl)}function jl(ll,Vl,to){var Ys=Io(x,Oa,null,ll),_s=Vl=="ltr"==(to=="after")?"left":"right",Xs=to=="after"?Ys.begin:Ys.end-(/\s/.test(Oa.text.charAt(Ys.end-1))?2:1);return Rs(Xs,_s)[_s]}var Ul=It(Oa,ae.direction);return Tt(Ul,oa||0,Ia==null?Mo:Ia,function(ll,Vl,to,Ys){var _s=to=="ltr",Xs=Rs(ll,_s?"left":"right"),el=Rs(Vl-1,_s?"right":"left"),xc=oa==null&&ll==0,Jl=Ia==null&&Vl==Mo,Dl=Ys==0,Jo=!Ul||Ys==Ul.length-1;if(el.top-Xs.top<=3){var hl=(st?xc:Jl)&&Dl,Nd=(st?Jl:xc)&&Jo,Ku=hl?We:(_s?Xs:el).left,Xu=Nd?Ue:(_s?el:Xs).right;cn(Ku,Xs.top,Xu-Ku,Xs.bottom)}else{var ku,ul,Sc,Bl;_s?(ku=st&&xc&&Dl?We:Xs.left,ul=st?Ue:jl(ll,to,"before"),Sc=st?We:jl(Vl,to,"after"),Bl=st&&Jl&&Jo?Ue:el.right):(ku=st?jl(ll,to,"before"):We,ul=!st&&xc&&Dl?Ue:Xs.right,Sc=!st&&Jl&&Jo?We:el.left,Bl=st?jl(Vl,to,"after"):Ue),cn(ku,Xs.top,ul-ku,Xs.bottom),Xs.bottom<el.top&&cn(We,Xs.bottom,null,el.top),cn(Sc,el.top,Bl-Sc,el.bottom)}(!vs||wi(Xs,vs)<0)&&(vs=Xs),wi(el,vs)<0&&(vs=el),(!xl||wi(Xs,xl)<0)&&(xl=Xs),wi(el,xl)<0&&(xl=el)}),{start:vs,end:xl}}var xr=z.from(),fr=z.to();if(xr.line==fr.line)En(xr.line,xr.ch,fr.ch);else{var Qr=Tn(ae,xr.line),ci=Tn(ae,fr.line),ki=$e(Qr)==$e(ci),Wi=En(xr.line,xr.ch,ki?Qr.text.length+1:null).end,ra=En(fr.line,ki?0:null,fr.ch).start;ki&&(Wi.top<ra.top-2?(cn(Wi.right,Wi.top,null,Wi.bottom),cn(We,ra.top,ra.left,ra.bottom)):cn(Wi.right,Wi.top,ra.left-Wi.right,Wi.bottom)),Wi.bottom<ra.top&&cn(We,Wi.bottom,null,ra.top)}re.appendChild(pe)}function pa(x){if(x.state.focused){var z=x.display;clearInterval(z.blinker);var re=!0;z.cursorDiv.style.visibility="",x.options.cursorBlinkRate>0?z.blinker=setInterval(function(){x.hasFocus()||rl(x),z.cursorDiv.style.visibility=(re=!re)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function Aa(x){x.state.focused||(x.display.input.focus(),Qo(x))}function Vo(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,rl(x))},100)}function Qo(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(bt(x,"focus",x,z),x.state.focused=!0,yn(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),ce&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),pa(x))}function rl(x,z){x.state.delayingBlurEvent||(x.state.focused&&(bt(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 cl(x){for(var z=x.display,re=z.lineDiv.offsetTop,te=0;te<z.view.length;te++){var ae=z.view[te],pe=x.options.lineWrapping,Le=void 0,We=0;if(!ae.hidden){if(Se&&Me<8){var Ue=ae.node.offsetTop+ae.node.offsetHeight;Le=Ue-re,re=Ue}else{var st=ae.node.getBoundingClientRect();Le=st.bottom-st.top,!pe&&ae.text.firstChild&&(We=ae.text.firstChild.getBoundingClientRect().right-st.left-1)}var cn=ae.line.height-Le;if((cn>.005||cn<-.005)&&(Nr(ae.line,Le),Cl(ae.line),ae.rest))for(var En=0;En<ae.rest.length;En++)Cl(ae.rest[En]);if(We>x.display.sizerWidth){var xr=Math.ceil(We/cs(x.display));xr>x.display.maxLineLength&&(x.display.maxLineLength=xr,x.display.maxLine=ae.line,x.display.maxLineChanged=!0)}}}}function Cl(x){if(x.widgets)for(var z=0;z<x.widgets.length;++z){var re=x.widgets[z],te=re.node.parentNode;te&&(re.height=te.offsetHeight)}}function vo(x,z,re){var te=re&&re.top!=null?Math.max(0,re.top):x.scroller.scrollTop;te=Math.floor(te-ii(x));var ae=re&&re.bottom!=null?re.bottom:te+x.wrapper.clientHeight,pe=Ur(z,te),Le=Ur(z,ae);if(re&&re.ensure){var We=re.ensure.from.line,Ue=re.ensure.to.line;We<pe?(pe=We,Le=Ur(z,Nn(Tn(z,We))+x.wrapper.clientHeight)):Math.min(Ue,z.lastLine())>=Le&&(pe=Ur(z,Nn(Tn(z,Ue))-x.wrapper.clientHeight),Le=Ue)}return{from:pe,to:Math.max(Le,pe+1)}}function $s(x,z){if(!Pt(x,"scrollCursorIntoView")){var re=x.display,te=re.sizer.getBoundingClientRect(),ae=null;if(z.top+te.top<0?ae=!0:z.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ae=!1),ae!=null&&!et){var pe=ft("div","\u200B",null,`position: absolute;
top: `+(z.top-re.viewOffset-ii(x.display))+`px;
height: `+(z.bottom-z.top+Mi(x)+re.barHeight)+`px;
left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(pe),pe.scrollIntoView(ae),x.display.lineSpace.removeChild(pe)}}}function Pl(x,z,re,te){te==null&&(te=0);var ae;!x.options.lineWrapping&&z==re&&(z=z.ch?ir(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,re=z.sticky=="before"?ir(z.line,z.ch+1,"before"):z);for(var pe=0;pe<5;pe++){var Le=!1,We=co(x,z),Ue=!re||re==z?We:co(x,re);ae={left:Math.min(We.left,Ue.left),top:Math.min(We.top,Ue.top)-te,right:Math.max(We.left,Ue.left),bottom:Math.max(We.bottom,Ue.bottom)+te};var st=Gl(x,ae),cn=x.doc.scrollTop,En=x.doc.scrollLeft;if(st.scrollTop!=null&&(Eo(x,st.scrollTop),Math.abs(x.doc.scrollTop-cn)>1&&(Le=!0)),st.scrollLeft!=null&&(Ss(x,st.scrollLeft),Math.abs(x.doc.scrollLeft-En)>1&&(Le=!0)),!Le)break}return ae}function Su(x,z){var re=Gl(x,z);re.scrollTop!=null&&Eo(x,re.scrollTop),re.scrollLeft!=null&&Ss(x,re.scrollLeft)}function Gl(x,z){var re=x.display,te=Uo(x.display);z.top<0&&(z.top=0);var ae=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:re.scroller.scrollTop,pe=_i(x),Le={};z.bottom-z.top>pe&&(z.bottom=z.top+pe);var We=x.doc.height+yi(re),Ue=z.top<te,st=z.bottom>We-te;if(z.top<ae)Le.scrollTop=Ue?0:z.top;else if(z.bottom>ae+pe){var cn=Math.min(z.top,(st?We:z.bottom)-pe);cn!=ae&&(Le.scrollTop=cn)}var En=x.options.fixedGutter?0:re.gutters.offsetWidth,xr=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:re.scroller.scrollLeft-En,fr=fi(x)-re.gutters.offsetWidth,Qr=z.right-z.left>fr;return Qr&&(z.right=z.left+fr),z.left<10?Le.scrollLeft=0:z.left<xr?Le.scrollLeft=Math.max(0,z.left+En-(Qr?0:10)):z.right>fr+xr-3&&(Le.scrollLeft=z.right+(Qr?0:10)-fr),Le}function wl(x,z){z!=null&&(eu(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function il(x){eu(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function ql(x,z,re){(z!=null||re!=null)&&eu(x),z!=null&&(x.curOp.scrollLeft=z),re!=null&&(x.curOp.scrollTop=re)}function dl(x,z){eu(x),x.curOp.scrollToPos=z}function eu(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var re=wo(x,z.from),te=wo(x,z.to);is(x,re,te,z.margin)}}function is(x,z,re,te){var ae=Gl(x,{left:Math.min(z.left,re.left),top:Math.min(z.top,re.top)-te,right:Math.max(z.right,re.right),bottom:Math.max(z.bottom,re.bottom)+te});ql(x,ae.scrollLeft,ae.scrollTop)}function Eo(x,z){Math.abs(x.doc.scrollTop-z)<2||(oe||Xc(x,{top:z}),qo(x,z,!0),oe&&Xc(x),qs(x,100))}function qo(x,z,re){z=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,z)),!(x.display.scroller.scrollTop==z&&!re)&&(x.doc.scrollTop=z,x.display.scrollbars.setScrollTop(z),x.display.scroller.scrollTop!=z&&(x.display.scroller.scrollTop=z))}function Ss(x,z,re,te){z=Math.max(0,Math.min(z,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((re?z==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-z)<2)&&!te)&&(x.doc.scrollLeft=z,Jc(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function Ts(x){var z=x.display,re=z.gutters.offsetWidth,te=Math.round(x.doc.height+yi(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?re:0,docHeight:te,scrollHeight:te+Mi(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:re}}var al=function(x,z,re){this.cm=re;var te=this.vert=ft("div",[ft("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ae=this.horiz=ft("div",[ft("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ae.tabIndex=-1,x(te),x(ae),sn(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),sn(ae,"scroll",function(){ae.clientWidth&&z(ae.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Se&&Me<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};al.prototype.update=function(x){var z=x.scrollWidth>x.clientWidth+1,re=x.scrollHeight>x.clientHeight+1,te=x.nativeBarWidth;if(re){this.vert.style.display="block",this.vert.style.bottom=z?te+"px":"0";var ae=x.viewHeight-(z?te:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+ae)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=re?te+"px":"0",this.horiz.style.left=x.barLeft+"px";var pe=x.viewWidth-x.barLeft-(re?te:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+pe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(te==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:re?te:0,bottom:z?te:0}},al.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},al.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},al.prototype.zeroWidthHack=function(){var x=xe&&!Oe?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ae,this.disableVert=new Ae},al.prototype.enableZeroWidthBar=function(x,z,re){x.style.pointerEvents="auto";function te(){var ae=x.getBoundingClientRect(),pe=re=="vert"?document.elementFromPoint(ae.right-1,(ae.top+ae.bottom)/2):document.elementFromPoint((ae.right+ae.left)/2,ae.bottom-1);pe!=x?x.style.pointerEvents="none":z.set(1e3,te)}z.set(1e3,te)},al.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var Ps=function(){};Ps.prototype.update=function(){return{bottom:0,right:0}},Ps.prototype.setScrollLeft=function(){},Ps.prototype.setScrollTop=function(){},Ps.prototype.clear=function(){};function Kl(x,z){z||(z=Ts(x));var re=x.display.barWidth,te=x.display.barHeight;Zu(x,z);for(var ae=0;ae<4&&re!=x.display.barWidth||te!=x.display.barHeight;ae++)re!=x.display.barWidth&&x.options.lineWrapping&&cl(x),Zu(x,Ts(x)),re=x.display.barWidth,te=x.display.barHeight}function Zu(x,z){var re=x.display,te=re.scrollbars.update(z);re.sizer.style.paddingRight=(re.barWidth=te.right)+"px",re.sizer.style.paddingBottom=(re.barHeight=te.bottom)+"px",re.heightForcer.style.borderBottom=te.bottom+"px solid transparent",te.right&&te.bottom?(re.scrollbarFiller.style.display="block",re.scrollbarFiller.style.height=te.bottom+"px",re.scrollbarFiller.style.width=te.right+"px"):re.scrollbarFiller.style.display="",te.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(re.gutterFiller.style.display="block",re.gutterFiller.style.height=te.bottom+"px",re.gutterFiller.style.width=z.gutterWidth+"px"):re.gutterFiller.style.display=""}var fu={native:al,null:Ps};function Tu(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&Ze(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new fu[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),sn(z,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),z.setAttribute("cm-not-content","true")},function(z,re){re=="horizontal"?Ss(x,z):Eo(x,z)},x),x.display.scrollbars.addClass&&yn(x.display.wrapper,x.display.scrollbars.addClass)}var Pu=0;function tu(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:++Pu},Gt(x.curOp)}function nu(x){var z=x.curOp;z&&Qn(z,function(re){for(var te=0;te<re.ops.length;te++)re.ops[te].cm.curOp=null;Iu(re)})}function Iu(x){for(var z=x.ops,re=0;re<z.length;re++)Nu(z[re]);for(var te=0;te<z.length;te++)Do(z[te]);for(var ae=0;ae<z.length;ae++)fo(z[ae]);for(var pe=0;pe<z.length;pe++)Hs(z[pe]);for(var Le=0;Le<z.length;Le++)gl(z[Le])}function Nu(x){var z=x.cm,re=z.display;ju(z),x.updateMaxLine&&rn(z),x.mustUpdate=x.viewChanged||x.forceUpdate||x.scrollTop!=null||x.scrollToPos&&(x.scrollToPos.from.line<re.viewFrom||x.scrollToPos.to.line>=re.viewTo)||re.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new _l(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Do(x){x.updatedDisplay=x.mustUpdate&&Gc(x.cm,x.update)}function fo(x){var z=x.cm,re=z.display;x.updatedDisplay&&cl(z),x.barMeasure=Ts(z),re.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=Wa(z,re.maxLine,re.maxLine.text.length).left+3,z.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(re.scroller.clientWidth,re.sizer.offsetLeft+x.adjustWidthTo+Mi(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,re.sizer.offsetLeft+x.adjustWidthTo-fi(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=re.input.prepareSelection())}function Hs(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<z.doc.scrollLeft&&Ss(z,Math.min(z.display.scroller.scrollLeft,x.maxScrollLeft),!0),z.display.maxLineChanged=!1);var re=x.focus&&x.focus==wt();x.preparedSelection&&z.display.input.showSelection(x.preparedSelection,re),(x.updatedDisplay||x.startHeight!=z.doc.height)&&Kl(z,x.barMeasure),x.updatedDisplay&&Qc(z,x.barMeasure),x.selectionChanged&&pa(z),z.state.focused&&x.updateInput&&z.display.input.reset(x.typing),re&&Aa(x.cm)}function gl(x){var z=x.cm,re=z.display,te=z.doc;if(x.updatedDisplay&&Yc(z,x.update),re.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(re.wheelStartX=re.wheelStartY=null),x.scrollTop!=null&&qo(z,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&Ss(z,x.scrollLeft,!0,!0),x.scrollToPos){var ae=Pl(z,Xr(te,x.scrollToPos.from),Xr(te,x.scrollToPos.to),x.scrollToPos.margin);$s(z,ae)}var pe=x.maybeHiddenMarkers,Le=x.maybeUnhiddenMarkers;if(pe)for(var We=0;We<pe.length;++We)pe[We].lines.length||bt(pe[We],"hide");if(Le)for(var Ue=0;Ue<Le.length;++Ue)Le[Ue].lines.length&&bt(Le[Ue],"unhide");re.wrapper.offsetHeight&&(te.scrollTop=z.display.scroller.scrollTop),x.changeObjs&&bt(z,"changes",z,x.changeObjs),x.update&&x.update.finish()}function ho(x,z){if(x.curOp)return z();tu(x);try{return z()}finally{nu(x)}}function Wo(x,z){return function(){if(x.curOp)return z.apply(x,arguments);tu(x);try{return z.apply(x,arguments)}finally{nu(x)}}}function Ko(x){return function(){if(this.curOp)return x.apply(this,arguments);tu(this);try{return x.apply(this,arguments)}finally{nu(this)}}}function Cs(x){return function(){var z=this.cm;if(!z||z.curOp)return x.apply(this,arguments);tu(z);try{return x.apply(this,arguments)}finally{nu(z)}}}function qs(x,z){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(z,Kn(Hl,x))}function Hl(x){var z=x.doc;if(!(z.highlightFrontier>=x.display.viewTo)){var re=+new Date+x.options.workTime,te=Xi(x,z.highlightFrontier),ae=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(pe){if(te.line>=x.display.viewFrom){var Le=pe.styles,We=pe.text.length>x.options.maxHighlightLength?Ut(z.mode,te.state):null,Ue=Ra(x,pe,te,!0);We&&(te.state=We),pe.styles=Ue.styles;var st=pe.styleClasses,cn=Ue.classes;cn?pe.styleClasses=cn:st&&(pe.styleClasses=null);for(var En=!Le||Le.length!=pe.styles.length||st!=cn&&(!st||!cn||st.bgClass!=cn.bgClass||st.textClass!=cn.textClass),xr=0;!En&&xr<Le.length;++xr)En=Le[xr]!=pe.styles[xr];En&&ae.push(te.line),pe.stateAfter=te.save(),te.nextLine()}else pe.text.length<=x.options.maxHighlightLength&&Oi(x,pe.text,te),pe.stateAfter=te.line%5==0?te.save():null,te.nextLine();if(+new Date>re)return qs(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),ae.length&&ho(x,function(){for(var pe=0;pe<ae.length;pe++)po(x,ae[pe],"text")})}}var _l=function(x,z,re){var te=x.display;this.viewport=z,this.visible=vo(te,x.doc,z),this.editorIsHidden=!te.wrapper.offsetWidth,this.wrapperHeight=te.wrapper.clientHeight,this.wrapperWidth=te.wrapper.clientWidth,this.oldDisplayWidth=fi(x),this.force=re,this.dims=xs(x),this.events=[]};_l.prototype.signal=function(x,z){mn(x,z)&&this.events.push(arguments)},_l.prototype.finish=function(){for(var x=0;x<this.events.length;x++)bt.apply(null,this.events[x])};function ju(x){var z=x.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=Mi(x)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=Mi(x)+"px",z.scrollbarsClipped=!0)}function tf(x){if(x.hasFocus())return null;var z=wt();if(!z||!Vt(x.display.lineDiv,z))return null;var re={activeElt:z};if(window.getSelection){var te=window.getSelection();te.anchorNode&&te.extend&&Vt(x.display.lineDiv,te.anchorNode)&&(re.anchorNode=te.anchorNode,re.anchorOffset=te.anchorOffset,re.focusNode=te.focusNode,re.focusOffset=te.focusOffset)}return re}function Md(x){if(!(!x||!x.activeElt||x.activeElt==wt())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&Vt(document.body,x.anchorNode)&&Vt(document.body,x.focusNode))){var z=window.getSelection(),re=document.createRange();re.setEnd(x.anchorNode,x.anchorOffset),re.collapse(!1),z.removeAllRanges(),z.addRange(re),z.extend(x.focusNode,x.focusOffset)}}function Gc(x,z){var re=x.display,te=x.doc;if(z.editorIsHidden)return ko(x),!1;if(!z.force&&z.visible.from>=re.viewFrom&&z.visible.to<=re.viewTo&&(re.updateLineNumbers==null||re.updateLineNumbers>=re.viewTo)&&re.renderedView==re.view&&Rl(x)==0)return!1;kc(x)&&(ko(x),z.dims=xs(x));var ae=te.first+te.size,pe=Math.max(z.visible.from-x.options.viewportMargin,te.first),Le=Math.min(ae,z.visible.to+x.options.viewportMargin);re.viewFrom<pe&&pe-re.viewFrom<20&&(pe=Math.max(te.first,re.viewFrom)),re.viewTo>Le&&re.viewTo-Le<20&&(Le=Math.min(ae,re.viewTo)),Ri&&(pe=un(x.doc,pe),Le=Wn(x.doc,Le));var We=pe!=re.viewFrom||Le!=re.viewTo||re.lastWrapHeight!=z.wrapperHeight||re.lastWrapWidth!=z.wrapperWidth;ss(x,pe,Le),re.viewOffset=Nn(Tn(x.doc,re.viewFrom)),x.display.mover.style.top=re.viewOffset+"px";var Ue=Rl(x);if(!We&&Ue==0&&!z.force&&re.renderedView==re.view&&(re.updateLineNumbers==null||re.updateLineNumbers>=re.viewTo))return!1;var st=tf(x);return Ue>4&&(re.lineDiv.style.display="none"),Ad(x,re.updateLineNumbers,z.dims),Ue>4&&(re.lineDiv.style.display=""),re.renderedView=re.view,Md(st),je(re.cursorDiv),je(re.selectionDiv),re.gutters.style.height=re.sizer.style.minHeight=0,We&&(re.lastWrapHeight=z.wrapperHeight,re.lastWrapWidth=z.wrapperWidth,qs(x,400)),re.updateLineNumbers=null,!0}function Yc(x,z){for(var re=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==fi(x)){if(re&&re.top!=null&&(re={top:Math.min(x.doc.height+yi(x.display)-_i(x),re.top)}),z.visible=vo(x.display,x.doc,re),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=vo(x.display,x.doc,re));if(!Gc(x,z))break;cl(x);var ae=Ts(x);ml(x),Kl(x,ae),Qc(x,ae),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 Xc(x,z){var re=new _l(x,z);if(Gc(x,re)){cl(x),Yc(x,re);var te=Ts(x);ml(x),Kl(x,te),Qc(x,te),re.finish()}}function Ad(x,z,re){var te=x.display,ae=x.options.lineNumbers,pe=te.lineDiv,Le=pe.firstChild;function We(Qr){var ci=Qr.nextSibling;return ce&&xe&&x.display.currentWheelTarget==Qr?Qr.style.display="none":Qr.parentNode.removeChild(Qr),ci}for(var Ue=te.view,st=te.viewFrom,cn=0;cn<Ue.length;cn++){var En=Ue[cn];if(!En.hidden)if(!En.node||En.node.parentNode!=pe){var xr=si(x,En,st,re);pe.insertBefore(xr,Le)}else{for(;Le!=En.node;)Le=We(Le);var fr=ae&&z!=null&&z<=st&&En.lineNumber;En.changes&&(Bt(En.changes,"gutter")>-1&&(fr=!1),bn(x,En,st,re)),fr&&(je(En.lineNumber),En.lineNumber.appendChild(document.createTextNode(ai(x.options,st)))),Le=En.node.nextSibling}st+=En.size}for(;Le;)Le=We(Le)}function Ac(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Qc(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+Mi(x)+"px"}function Jc(x){var z=x.display,re=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=Js(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ae=z.gutters.offsetWidth,pe=te+"px",Le=0;Le<re.length;Le++)if(!re[Le].hidden){x.options.fixedGutter&&(re[Le].gutter&&(re[Le].gutter.style.left=pe),re[Le].gutterBackground&&(re[Le].gutterBackground.style.left=pe));var We=re[Le].alignable;if(We)for(var Ue=0;Ue<We.length;Ue++)We[Ue].style.left=pe}x.options.fixedGutter&&(z.gutters.style.left=te+ae+"px")}}function kc(x){if(!x.options.lineNumbers)return!1;var z=x.doc,re=ai(x.options,z.first+z.size-1),te=x.display;if(re.length!=te.lineNumChars){var ae=te.measure.appendChild(ft("div",[ft("div",re)],"CodeMirror-linenumber CodeMirror-gutter-elt")),pe=ae.firstChild.offsetWidth,Le=ae.offsetWidth-pe;return te.lineGutter.style.width="",te.lineNumInnerWidth=Math.max(pe,te.lineGutter.offsetWidth-Le)+1,te.lineNumWidth=te.lineNumInnerWidth+Le,te.lineNumChars=te.lineNumInnerWidth?re.length:-1,te.lineGutter.style.width=te.lineNumWidth+"px",Ac(x.display),!0}return!1}function Dc(x,z){for(var re=[],te=!1,ae=0;ae<x.length;ae++){var pe=x[ae],Le=null;if(typeof pe!="string"&&(Le=pe.style,pe=pe.className),pe=="CodeMirror-linenumbers")if(z)te=!0;else continue;re.push({className:pe,style:Le})}return z&&!te&&re.push({className:"CodeMirror-linenumbers",style:null}),re}function kd(x){var z=x.gutters,re=x.gutterSpecs;je(z),x.lineGutter=null;for(var te=0;te<re.length;++te){var ae=re[te],pe=ae.className,Le=ae.style,We=z.appendChild(ft("div",null,"CodeMirror-gutter "+pe));Le&&(We.style.cssText=Le),pe=="CodeMirror-linenumbers"&&(x.lineGutter=We,We.style.width=(x.lineNumWidth||1)+"px")}z.style.display=re.length?"":"none",Ac(x)}function Uu(x){kd(x.display),Da(x),Jc(x)}function nf(x,z,re,te){var ae=this;this.input=re,ae.scrollbarFiller=ft("div",null,"CodeMirror-scrollbar-filler"),ae.scrollbarFiller.setAttribute("cm-not-content","true"),ae.gutterFiller=ft("div",null,"CodeMirror-gutter-filler"),ae.gutterFiller.setAttribute("cm-not-content","true"),ae.lineDiv=ut("div",null,"CodeMirror-code"),ae.selectionDiv=ft("div",null,null,"position: relative; z-index: 1"),ae.cursorDiv=ft("div",null,"CodeMirror-cursors"),ae.measure=ft("div",null,"CodeMirror-measure"),ae.lineMeasure=ft("div",null,"CodeMirror-measure"),ae.lineSpace=ut("div",[ae.measure,ae.lineMeasure,ae.selectionDiv,ae.cursorDiv,ae.lineDiv],null,"position: relative; outline: none");var pe=ut("div",[ae.lineSpace],"CodeMirror-lines");ae.mover=ft("div",[pe],null,"position: relative"),ae.sizer=ft("div",[ae.mover],"CodeMirror-sizer"),ae.sizerWidth=null,ae.heightForcer=ft("div",null,null,"position: absolute; height: "+Cn+"px; width: 1px;"),ae.gutters=ft("div",null,"CodeMirror-gutters"),ae.lineGutter=null,ae.scroller=ft("div",[ae.sizer,ae.heightForcer,ae.gutters],"CodeMirror-scroll"),ae.scroller.setAttribute("tabIndex","-1"),ae.wrapper=ft("div",[ae.scrollbarFiller,ae.gutterFiller,ae.scroller],"CodeMirror"),Se&&Me<8&&(ae.gutters.style.zIndex=-1,ae.scroller.style.paddingRight=0),!ce&&!(oe&&Ve)&&(ae.scroller.draggable=!0),x&&(x.appendChild?x.appendChild(ae.wrapper):x(ae.wrapper)),ae.viewFrom=ae.viewTo=z.first,ae.reportedViewFrom=ae.reportedViewTo=z.first,ae.view=[],ae.renderedView=null,ae.externalMeasured=null,ae.viewOffset=0,ae.lastWrapHeight=ae.lastWrapWidth=0,ae.updateLineNumbers=null,ae.nativeBarWidth=ae.barHeight=ae.barWidth=0,ae.scrollbarsClipped=!1,ae.lineNumWidth=ae.lineNumInnerWidth=ae.lineNumChars=null,ae.alignWidgets=!1,ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.maxLine=null,ae.maxLineLength=0,ae.maxLineChanged=!1,ae.wheelDX=ae.wheelDY=ae.wheelStartX=ae.wheelStartY=null,ae.shift=!1,ae.selForContextMenu=null,ae.activeTouch=null,ae.gutterSpecs=Dc(te.gutters,te.lineNumbers),kd(ae),re.init(ae)}var lc=0,vl=null;Se?vl=-.53:oe?vl=15:ge?vl=-.7:Qe&&(vl=-1/3);function Ou(x){var z=x.wheelDeltaX,re=x.wheelDeltaY;return z==null&&x.detail&&x.axis==x.HORIZONTAL_AXIS&&(z=x.detail),re==null&&x.detail&&x.axis==x.VERTICAL_AXIS?re=x.detail:re==null&&(re=x.wheelDelta),{x:z,y:re}}function Dd(x){var z=Ou(x);return z.x*=vl,z.y*=vl,z}function $c(x,z){var re=Ou(z),te=re.x,ae=re.y,pe=x.display,Le=pe.scroller,We=Le.scrollWidth>Le.clientWidth,Ue=Le.scrollHeight>Le.clientHeight;if(te&&We||ae&&Ue){if(ae&&xe&&ce){e:for(var st=z.target,cn=pe.view;st!=Le;st=st.parentNode)for(var En=0;En<cn.length;En++)if(cn[En].node==st){x.display.currentWheelTarget=st;break e}}if(te&&!oe&&!Be&&vl!=null){ae&&Ue&&Eo(x,Math.max(0,Le.scrollTop+ae*vl)),Ss(x,Math.max(0,Le.scrollLeft+te*vl)),(!ae||ae&&Ue)&&or(z),pe.wheelStartX=null;return}if(ae&&vl!=null){var xr=ae*vl,fr=x.doc.scrollTop,Qr=fr+pe.wrapper.clientHeight;xr<0?fr=Math.max(0,fr+xr-50):Qr=Math.min(x.doc.height,Qr+xr+50),Xc(x,{top:fr,bottom:Qr})}lc<20&&(pe.wheelStartX==null?(pe.wheelStartX=Le.scrollLeft,pe.wheelStartY=Le.scrollTop,pe.wheelDX=te,pe.wheelDY=ae,setTimeout(function(){if(pe.wheelStartX!=null){var ci=Le.scrollLeft-pe.wheelStartX,ki=Le.scrollTop-pe.wheelStartY,Wi=ki&&pe.wheelDY&&ki/pe.wheelDY||ci&&pe.wheelDX&&ci/pe.wheelDX;pe.wheelStartX=pe.wheelStartY=null,Wi&&(vl=(vl*lc+Wi)/(lc+1),++lc)}},200)):(pe.wheelDX+=te,pe.wheelDY+=ae))}}var Wl=function(x,z){this.ranges=x,this.primIndex=z};Wl.prototype.primary=function(){return this.ranges[this.primIndex]},Wl.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 re=this.ranges[z],te=x.ranges[z];if(!Di(re.anchor,te.anchor)||!Di(re.head,te.head))return!1}return!0},Wl.prototype.deepCopy=function(){for(var x=[],z=0;z<this.ranges.length;z++)x[z]=new Yo(Gi(this.ranges[z].anchor),Gi(this.ranges[z].head));return new Wl(x,this.primIndex)},Wl.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},Wl.prototype.contains=function(x,z){z||(z=x);for(var re=0;re<this.ranges.length;re++){var te=this.ranges[re];if(Rr(z,te.from())>=0&&Rr(x,te.to())<=0)return re}return-1};var Yo=function(x,z){this.anchor=x,this.head=z};Yo.prototype.from=function(){return di(this.anchor,this.head)},Yo.prototype.to=function(){return qr(this.anchor,this.head)},Yo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ru(x,z,re){var te=x&&x.options.selectionsMayTouch,ae=z[re];z.sort(function(xr,fr){return Rr(xr.from(),fr.from())}),re=Bt(z,ae);for(var pe=1;pe<z.length;pe++){var Le=z[pe],We=z[pe-1],Ue=Rr(We.to(),Le.from());if(te&&!Le.empty()?Ue>0:Ue>=0){var st=di(We.from(),Le.from()),cn=qr(We.to(),Le.to()),En=We.empty()?Le.from()==Le.head:We.from()==We.head;pe<=re&&--re,z.splice(--pe,2,new Yo(En?cn:st,En?st:cn))}}return new Wl(z,re)}function iu(x,z){return new Wl([new Yo(x,z||x)],0)}function Cu(x){return x.text?ir(x.from.line+x.text.length-1,Fn(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function qc(x,z){if(Rr(x,z.from)<0)return x;if(Rr(x,z.to)<=0)return Cu(z);var re=x.line+z.text.length-(z.to.line-z.from.line)-1,te=x.ch;return x.line==z.to.line&&(te+=Cu(z).ch-z.to.ch),ir(re,te)}function ed(x,z){for(var re=[],te=0;te<x.sel.ranges.length;te++){var ae=x.sel.ranges[te];re.push(new Yo(qc(ae.anchor,z),qc(ae.head,z)))}return ru(x.cm,re,x.sel.primIndex)}function Ru(x,z,re){return x.line==z.line?ir(re.line,x.ch-z.ch+re.ch):ir(re.line+(x.line-z.line),x.ch)}function td(x,z,re){for(var te=[],ae=ir(x.first,0),pe=ae,Le=0;Le<z.length;Le++){var We=z[Le],Ue=Ru(We.from,ae,pe),st=Ru(Cu(We),ae,pe);if(ae=We.to,pe=st,re=="around"){var cn=x.sel.ranges[Le],En=Rr(cn.head,cn.anchor)<0;te[Le]=new Yo(En?st:Ue,En?Ue:st)}else te[Le]=new Yo(Ue,Ue)}return new Wl(te,x.sel.primIndex)}function uc(x){x.doc.mode=jt(x.options,x.doc.modeOption),Vu(x)}function Vu(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,qs(x,100),x.state.modeGen++,x.curOp&&Da(x)}function nd(x,z){return z.from.ch==0&&z.to.ch==0&&Fn(z.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function Bc(x,z,re,te){function ae(ra){return re?re[ra]:null}function pe(ra,Ni,oa){Ar(ra,Ni,oa,te),Yn(ra,"change",ra,z)}function Le(ra,Ni){for(var oa=[],Ia=ra;Ia<Ni;++Ia)oa.push(new Xn(st[Ia],ae(Ia),te));return oa}var We=z.from,Ue=z.to,st=z.text,cn=Tn(x,We.line),En=Tn(x,Ue.line),xr=Fn(st),fr=ae(st.length-1),Qr=Ue.line-We.line;if(z.full)x.insert(0,Le(0,st.length)),x.remove(st.length,x.size-st.length);else if(nd(x,z)){var ci=Le(0,st.length-1);pe(En,En.text,fr),Qr&&x.remove(We.line,Qr),ci.length&&x.insert(We.line,ci)}else if(cn==En)if(st.length==1)pe(cn,cn.text.slice(0,We.ch)+xr+cn.text.slice(Ue.ch),fr);else{var ki=Le(1,st.length-1);ki.push(new Xn(xr+cn.text.slice(Ue.ch),fr,te)),pe(cn,cn.text.slice(0,We.ch)+st[0],ae(0)),x.insert(We.line+1,ki)}else if(st.length==1)pe(cn,cn.text.slice(0,We.ch)+st[0]+En.text.slice(Ue.ch),ae(0)),x.remove(We.line+1,Qr);else{pe(cn,cn.text.slice(0,We.ch)+st[0],ae(0)),pe(En,xr+En.text.slice(Ue.ch),fr);var Wi=Le(1,st.length-1);Qr>1&&x.remove(We.line+1,Qr-1),x.insert(We.line+1,Wi)}Yn(x,"change",x,z)}function hu(x,z,re){function te(ae,pe,Le){if(ae.linked)for(var We=0;We<ae.linked.length;++We){var Ue=ae.linked[We];if(Ue.doc!=pe){var st=Le&&Ue.sharedHist;re&&!st||(z(Ue.doc,st),te(Ue.doc,ae,st))}}}te(x,null,!0)}function cc(x,z){if(z.cm)throw new Error("This document is already in use.");x.doc=z,z.cm=x,ds(x),uc(x),dc(x),x.options.lineWrapping||rn(x),x.options.mode=z.modeOption,Da(x)}function dc(x){(x.doc.direction=="rtl"?yn:Ze)(x.display.lineDiv,"CodeMirror-rtl")}function Lc(x){ho(x,function(){dc(x),Da(x)})}function fc(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 Yl(x,z){var re={from:Gi(z.from),to:Cu(z),text:rr(x,z.from,z.to)};return Ht(x,re,z.from.line,z.to.line+1),hu(x,function(te){return Ht(te,re,z.from.line,z.to.line+1)},!0),re}function rd(x){for(;x.length;){var z=Fn(x);if(z.ranges)x.pop();else break}}function Fc(x,z){if(z)return rd(x.done),Fn(x.done);if(x.done.length&&!Fn(x.done).ranges)return Fn(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),Fn(x.done)}function De(x,z,re,te){var ae=x.history;ae.undone.length=0;var pe=+new Date,Le,We;if((ae.lastOp==te||ae.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ae.lastModTime>pe-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(Le=Fc(ae,ae.lastOp==te)))We=Fn(Le.changes),Rr(z.from,z.to)==0&&Rr(z.from,We.to)==0?We.to=Cu(z):Le.changes.push(Yl(x,z));else{var Ue=Fn(ae.done);for((!Ue||!Ue.ranges)&&yt(x.sel,ae.done),Le={changes:[Yl(x,z)],generation:ae.generation},ae.done.push(Le);ae.done.length>ae.undoDepth;)ae.done.shift(),ae.done[0].ranges||ae.done.shift()}ae.done.push(re),ae.generation=++ae.maxGeneration,ae.lastModTime=ae.lastSelTime=pe,ae.lastOp=ae.lastSelOp=te,ae.lastOrigin=ae.lastSelOrigin=z.origin,We||bt(x,"historyAdded")}function Ie(x,z,re,te){var ae=z.charAt(0);return ae=="*"||ae=="+"&&re.ranges.length==te.ranges.length&&re.somethingSelected()==te.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function qe(x,z,re,te){var ae=x.history,pe=te&&te.origin;re==ae.lastSelOp||pe&&ae.lastSelOrigin==pe&&(ae.lastModTime==ae.lastSelTime&&ae.lastOrigin==pe||Ie(x,pe,Fn(ae.done),z))?ae.done[ae.done.length-1]=z:yt(z,ae.done),ae.lastSelTime=+new Date,ae.lastSelOrigin=pe,ae.lastSelOp=re,te&&te.clearRedo!==!1&&rd(ae.undone)}function yt(x,z){var re=Fn(z);re&&re.ranges&&re.equals(x)||z.push(x)}function Ht(x,z,re,te){var ae=z["spans_"+x.id],pe=0;x.iter(Math.max(x.first,re),Math.min(x.first+x.size,te),function(Le){Le.markedSpans&&((ae||(ae=z["spans_"+x.id]={}))[pe]=Le.markedSpans),++pe})}function Yt(x){if(!x)return null;for(var z,re=0;re<x.length;++re)x[re].marker.explicitlyCleared?z||(z=x.slice(0,re)):z&&z.push(x[re]);return z?z.length?z:null:x}function Ln(x,z){var re=z["spans_"+x.id];if(!re)return null;for(var te=[],ae=0;ae<z.text.length;++ae)te.push(Yt(re[ae]));return te}function jn(x,z){var re=Ln(x,z),te=vi(x,z);if(!re)return te;if(!te)return re;for(var ae=0;ae<re.length;++ae){var pe=re[ae],Le=te[ae];if(pe&&Le)e:for(var We=0;We<Le.length;++We){for(var Ue=Le[We],st=0;st<pe.length;++st)if(pe[st].marker==Ue.marker)continue e;pe.push(Ue)}else Le&&(re[ae]=Le)}return re}function Hn(x,z,re){for(var te=[],ae=0;ae<x.length;++ae){var pe=x[ae];if(pe.ranges){te.push(re?Wl.prototype.deepCopy.call(pe):pe);continue}var Le=pe.changes,We=[];te.push({changes:We});for(var Ue=0;Ue<Le.length;++Ue){var st=Le[Ue],cn=void 0;if(We.push({from:st.from,to:st.to,text:st.text}),z)for(var En in st)(cn=En.match(/^spans_(\d+)$/))&&Bt(z,Number(cn[1]))>-1&&(Fn(We)[En]=st[En],delete st[En])}}return te}function dr(x,z,re,te){if(te){var ae=x.anchor;if(re){var pe=Rr(z,ae)<0;pe!=Rr(re,ae)<0?(ae=z,z=re):pe!=Rr(z,re)<0&&(z=re)}return new Yo(ae,z)}else return new Yo(re||z,z)}function Fr(x,z,re,te,ae){ae==null&&(ae=x.cm&&(x.cm.display.shift||x.extend)),ei(x,new Wl([dr(x.sel.primary(),z,re,ae)],0),te)}function Sn(x,z,re){for(var te=[],ae=x.cm&&(x.cm.display.shift||x.extend),pe=0;pe<x.sel.ranges.length;pe++)te[pe]=dr(x.sel.ranges[pe],z[pe],null,ae);var Le=ru(x.cm,te,x.sel.primIndex);ei(x,Le,re)}function Vr(x,z,re,te){var ae=x.sel.ranges.slice(0);ae[z]=re,ei(x,ru(x.cm,ae,x.sel.primIndex),te)}function Yr(x,z,re,te){ei(x,iu(z,re),te)}function $r(x,z,re){var te={ranges:z.ranges,update:function(ae){this.ranges=[];for(var pe=0;pe<ae.length;pe++)this.ranges[pe]=new Yo(Xr(x,ae[pe].anchor),Xr(x,ae[pe].head))},origin:re&&re.origin};return bt(x,"beforeSelectionChange",x,te),x.cm&&bt(x.cm,"beforeSelectionChange",x.cm,te),te.ranges!=z.ranges?ru(x.cm,te.ranges,te.ranges.length-1):z}function ui(x,z,re){var te=x.history.done,ae=Fn(te);ae&&ae.ranges?(te[te.length-1]=z,xi(x,z,re)):ei(x,z,re)}function ei(x,z,re){xi(x,z,re),qe(x,x.sel,x.cm?x.cm.curOp.id:NaN,re)}function xi(x,z,re){(mn(x,"beforeSelectionChange")||x.cm&&mn(x.cm,"beforeSelectionChange"))&&(z=$r(x,z,re));var te=re&&re.bias||(Rr(z.primary().head,x.sel.primary().head)<0?-1:1);gi(x,na(x,z,te,!0)),!(re&&re.scroll===!1)&&x.cm&&il(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,vn(x.cm)),Yn(x,"cursorActivity",x))}function Bi(x){gi(x,na(x,x.sel,null,!1))}function na(x,z,re,te){for(var ae,pe=0;pe<z.ranges.length;pe++){var Le=z.ranges[pe],We=z.ranges.length==x.sel.ranges.length&&x.sel.ranges[pe],Ue=ea(x,Le.anchor,We&&We.anchor,re,te),st=ea(x,Le.head,We&&We.head,re,te);(ae||Ue!=Le.anchor||st!=Le.head)&&(ae||(ae=z.ranges.slice(0,pe)),ae[pe]=new Yo(Ue,st))}return ae?ru(x.cm,ae,z.primIndex):z}function ji(x,z,re,te,ae){var pe=Tn(x,z.line);if(pe.markedSpans)for(var Le=0;Le<pe.markedSpans.length;++Le){var We=pe.markedSpans[Le],Ue=We.marker,st="selectLeft"in Ue?!Ue.selectLeft:Ue.inclusiveLeft,cn="selectRight"in Ue?!Ue.selectRight:Ue.inclusiveRight;if((We.from==null||(st?We.from<=z.ch:We.from<z.ch))&&(We.to==null||(cn?We.to>=z.ch:We.to>z.ch))){if(ae&&(bt(Ue,"beforeCursorEnter"),Ue.explicitlyCleared))if(pe.markedSpans){--Le;continue}else break;if(!Ue.atomic)continue;if(re){var En=Ue.find(te<0?1:-1),xr=void 0;if((te<0?cn:st)&&(En=Ca(x,En,-te,En&&En.line==z.line?pe:null)),En&&En.line==z.line&&(xr=Rr(En,re))&&(te<0?xr<0:xr>0))return ji(x,En,z,te,ae)}var fr=Ue.find(te<0?-1:1);return(te<0?st:cn)&&(fr=Ca(x,fr,te,fr.line==z.line?pe:null)),fr?ji(x,fr,z,te,ae):null}}return z}function ea(x,z,re,te,ae){var pe=te||1,Le=ji(x,z,re,pe,ae)||!ae&&ji(x,z,re,pe,!0)||ji(x,z,re,-pe,ae)||!ae&&ji(x,z,re,-pe,!0);return Le||(x.cantEdit=!0,ir(x.first,0))}function Ca(x,z,re,te){return re<0&&z.ch==0?z.line>x.first?Xr(x,ir(z.line-1)):null:re>0&&z.ch==(te||Tn(x,z.line)).text.length?z.line<x.first+x.size-1?ir(z.line+1,0):null:new ir(z.line,z.ch+re)}function Ua(x){x.setSelection(ir(x.firstLine(),0),ir(x.lastLine()),Ct)}function Ki(x,z,re){var te={canceled:!1,from:z.from,to:z.to,text:z.text,origin:z.origin,cancel:function(){return te.canceled=!0}};return re&&(te.update=function(ae,pe,Le,We){ae&&(te.from=Xr(x,ae)),pe&&(te.to=Xr(x,pe)),Le&&(te.text=Le),We!==void 0&&(te.origin=We)}),bt(x,"beforeChange",x,te),x.cm&&bt(x.cm,"beforeChange",x.cm,te),te.canceled?(x.cm&&(x.cm.curOp.updateInput=2),null):{from:te.from,to:te.to,text:te.text,origin:te.origin}}function Ui(x,z,re){if(x.cm){if(!x.cm.curOp)return Wo(x.cm,Ui)(x,z,re);if(x.cm.state.suppressEdits)return}if(!((mn(x,"beforeChange")||x.cm&&mn(x.cm,"beforeChange"))&&(z=Ki(x,z,!0),!z))){var te=ja&&!re&&Ti(x,z.from,z.to);if(te)for(var ae=te.length-1;ae>=0;--ae)Hi(x,{from:te[ae].from,to:te[ae].to,text:ae?[""]:z.text,origin:z.origin});else Hi(x,z)}}function Hi(x,z){if(!(z.text.length==1&&z.text[0]==""&&Rr(z.from,z.to)==0)){var re=ed(x,z);De(x,z,re,x.cm?x.cm.curOp.id:NaN),wa(x,z,re,vi(x,z));var te=[];hu(x,function(ae,pe){!pe&&Bt(te,ae.history)==-1&&(eo(ae.history,z),te.push(ae.history)),wa(ae,z,null,vi(ae,z))})}}function Ci(x,z,re){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!re)){for(var ae=x.history,pe,Le=x.sel,We=z=="undo"?ae.done:ae.undone,Ue=z=="undo"?ae.undone:ae.done,st=0;st<We.length&&(pe=We[st],!(re?pe.ranges&&!pe.equals(x.sel):!pe.ranges));st++);if(st!=We.length){for(ae.lastOrigin=ae.lastSelOrigin=null;;)if(pe=We.pop(),pe.ranges){if(yt(pe,Ue),re&&!pe.equals(x.sel)){ei(x,pe,{clearRedo:!1});return}Le=pe}else if(te){We.push(pe);return}else break;var cn=[];yt(Le,Ue),Ue.push({changes:cn,generation:ae.generation}),ae.generation=pe.generation||++ae.maxGeneration;for(var En=mn(x,"beforeChange")||x.cm&&mn(x.cm,"beforeChange"),xr=function(ci){var ki=pe.changes[ci];if(ki.origin=z,En&&!Ki(x,ki,!1))return We.length=0,{};cn.push(Yl(x,ki));var Wi=ci?ed(x,ki):Fn(We);wa(x,ki,Wi,jn(x,ki)),!ci&&x.cm&&x.cm.scrollIntoView({from:ki.from,to:Cu(ki)});var ra=[];hu(x,function(Ni,oa){!oa&&Bt(ra,Ni.history)==-1&&(eo(Ni.history,ki),ra.push(Ni.history)),wa(Ni,ki,null,jn(Ni,ki))})},fr=pe.changes.length-1;fr>=0;--fr){var Qr=xr(fr);if(Qr)return Qr.v}}}}function Qi(x,z){if(z!=0&&(x.first+=z,x.sel=new Wl(lr(x.sel.ranges,function(ae){return new Yo(ir(ae.anchor.line+z,ae.anchor.ch),ir(ae.head.line+z,ae.head.ch))}),x.sel.primIndex),x.cm)){Da(x.cm,x.first,x.first-z,z);for(var re=x.cm.display,te=re.viewFrom;te<re.viewTo;te++)po(x.cm,te,"gutter")}}function wa(x,z,re,te){if(x.cm&&!x.cm.curOp)return Wo(x.cm,wa)(x,z,re,te);if(z.to.line<x.first){Qi(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 ae=z.text.length-1-(x.first-z.from.line);Qi(x,ae),z={from:ir(x.first,0),to:ir(z.to.line+ae,z.to.ch),text:[Fn(z.text)],origin:z.origin}}var pe=x.lastLine();z.to.line>pe&&(z={from:z.from,to:ir(pe,Tn(x,pe).text.length),text:[z.text[0]],origin:z.origin}),z.removed=rr(x,z.from,z.to),re||(re=ed(x,z)),x.cm?qa(x.cm,z,te):Bc(x,z,te),xi(x,re,Ct),x.cantEdit&&ea(x,ir(x.firstLine(),0))&&(x.cantEdit=!1)}}function qa(x,z,re){var te=x.doc,ae=x.display,pe=z.from,Le=z.to,We=!1,Ue=pe.line;x.options.lineWrapping||(Ue=Lr($e(Tn(te,pe.line))),te.iter(Ue,Le.line+1,function(fr){if(fr==ae.maxLine)return We=!0,!0})),te.sel.contains(z.from,z.to)>-1&&vn(x),Bc(te,z,re,zs(x)),x.options.lineWrapping||(te.iter(Ue,pe.line+z.text.length,function(fr){var Qr=Bn(fr);Qr>ae.maxLineLength&&(ae.maxLine=fr,ae.maxLineLength=Qr,ae.maxLineChanged=!0,We=!1)}),We&&(x.curOp.updateMaxLine=!0)),fa(te,pe.line),qs(x,400);var st=z.text.length-(Le.line-pe.line)-1;z.full?Da(x):pe.line==Le.line&&z.text.length==1&&!nd(x.doc,z)?po(x,pe.line,"text"):Da(x,pe.line,Le.line+1,st);var cn=mn(x,"changes"),En=mn(x,"change");if(En||cn){var xr={from:pe,to:Le,text:z.text,removed:z.removed,origin:z.origin};En&&Yn(x,"change",x,xr),cn&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(xr)}x.display.selForContextMenu=null}function _a(x,z,re,te,ae){var pe;te||(te=re),Rr(te,re)<0&&(pe=[te,re],re=pe[0],te=pe[1]),typeof z=="string"&&(z=x.splitLines(z)),Ui(x,{from:re,to:te,text:z,origin:ae})}function Ea(x,z,re,te){re<x.line?x.line+=te:z<x.line&&(x.line=z,x.ch=0)}function ao(x,z,re,te){for(var ae=0;ae<x.length;++ae){var pe=x[ae],Le=!0;if(pe.ranges){pe.copied||(pe=x[ae]=pe.deepCopy(),pe.copied=!0);for(var We=0;We<pe.ranges.length;We++)Ea(pe.ranges[We].anchor,z,re,te),Ea(pe.ranges[We].head,z,re,te);continue}for(var Ue=0;Ue<pe.changes.length;++Ue){var st=pe.changes[Ue];if(re<st.from.line)st.from=ir(st.from.line+te,st.from.ch),st.to=ir(st.to.line+te,st.to.ch);else if(z<=st.to.line){Le=!1;break}}Le||(x.splice(0,ae+1),ae=0)}}function eo(x,z){var re=z.from.line,te=z.to.line,ae=z.text.length-(te-re)-1;ao(x.done,re,te,ae),ao(x.undone,re,te,ae)}function Ho(x,z,re,te){var ae=z,pe=z;return typeof z=="number"?pe=Tn(x,Yi(x,z)):ae=Lr(z),ae==null?null:(te(pe,ae)&&x.cm&&po(x.cm,ae,re),pe)}function so(x){this.lines=x,this.parent=null;for(var z=0,re=0;re<x.length;++re)x[re].parent=this,z+=x[re].height;this.height=z}so.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,z){for(var re=x,te=x+z;re<te;++re){var ae=this.lines[re];this.height-=ae.height,ur(ae),Yn(ae,"delete")}this.lines.splice(x,z)},collapse:function(x){x.push.apply(x,this.lines)},insertInner:function(x,z,re){this.height+=re,this.lines=this.lines.slice(0,x).concat(z).concat(this.lines.slice(x));for(var te=0;te<z.length;++te)z[te].parent=this},iterN:function(x,z,re){for(var te=x+z;x<te;++x)if(re(this.lines[x]))return!0}};function es(x){this.children=x;for(var z=0,re=0,te=0;te<x.length;++te){var ae=x[te];z+=ae.chunkSize(),re+=ae.height,ae.parent=this}this.size=z,this.height=re,this.parent=null}es.prototype={chunkSize:function(){return this.size},removeInner:function(x,z){this.size-=z;for(var re=0;re<this.children.length;++re){var te=this.children[re],ae=te.chunkSize();if(x<ae){var pe=Math.min(z,ae-x),Le=te.height;if(te.removeInner(x,pe),this.height-=Le-te.height,ae==pe&&(this.children.splice(re--,1),te.parent=null),(z-=pe)==0)break;x=0}else x-=ae}if(this.size-z<25&&(this.children.length>1||!(this.children[0]instanceof so))){var We=[];this.collapse(We),this.children=[new so(We)],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,re){this.size+=z.length,this.height+=re;for(var te=0;te<this.children.length;++te){var ae=this.children[te],pe=ae.chunkSize();if(x<=pe){if(ae.insertInner(x,z,re),ae.lines&&ae.lines.length>50){for(var Le=ae.lines.length%25+25,We=Le;We<ae.lines.length;){var Ue=new so(ae.lines.slice(We,We+=25));ae.height-=Ue.height,this.children.splice(++te,0,Ue),Ue.parent=this}ae.lines=ae.lines.slice(0,Le),this.maybeSpill()}break}x-=pe}},maybeSpill:function(){if(!(this.children.length<=10)){var x=this;do{var z=x.children.splice(x.children.length-5,5),re=new es(z);if(x.parent){x.size-=re.size,x.height-=re.height;var ae=Bt(x.parent.children,x);x.parent.children.splice(ae+1,0,re)}else{var te=new es(x.children);te.parent=x,x.children=[te,re],x=te}re.parent=x.parent}while(x.children.length>10);x.parent.maybeSpill()}},iterN:function(x,z,re){for(var te=0;te<this.children.length;++te){var ae=this.children[te],pe=ae.chunkSize();if(x<pe){var Le=Math.min(z,pe-x);if(ae.iterN(x,Le,re))return!0;if((z-=Le)==0)break;x=0}else x-=pe}}};var ts=function(x,z,re){if(re)for(var te in re)re.hasOwnProperty(te)&&(this[te]=re[te]);this.doc=x,this.node=z};ts.prototype.clear=function(){var x=this.doc.cm,z=this.line.widgets,re=this.line,te=Lr(re);if(!(te==null||!z)){for(var ae=0;ae<z.length;++ae)z[ae]==this&&z.splice(ae--,1);z.length||(re.widgets=null);var pe=hr(this);Nr(re,Math.max(0,re.height-pe)),x&&(ho(x,function(){Va(x,re,-pe),po(x,te,"widget")}),Yn(x,"lineWidgetCleared",x,this,te))}},ts.prototype.changed=function(){var x=this,z=this.height,re=this.doc.cm,te=this.line;this.height=null;var ae=hr(this)-z;ae&&(ar(this.doc,te)||Nr(te,te.height+ae),re&&ho(re,function(){re.curOp.forceUpdate=!0,Va(re,te,ae),Yn(re,"lineWidgetChanged",re,x,Lr(te))}))},gn(ts);function Va(x,z,re){Nn(z)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&wl(x,re)}function Ds(x,z,re,te){var ae=new ts(x,re,te),pe=x.cm;return pe&&ae.noHScroll&&(pe.display.alignWidgets=!0),Ho(x,z,"widget",function(Le){var We=Le.widgets||(Le.widgets=[]);if(ae.insertAt==null?We.push(ae):We.splice(Math.min(We.length-1,Math.max(0,ae.insertAt)),0,ae),ae.line=Le,pe&&!ar(x,Le)){var Ue=Nn(Le)<x.scrollTop;Nr(Le,Le.height+hr(ae)),Ue&&wl(pe,ae.height),pe.curOp.forceUpdate=!0}return!0}),pe&&Yn(pe,"lineWidgetAdded",pe,ae,typeof z=="number"?z:Lr(z)),ae}var Fo=0,Zo=function(x,z){this.lines=[],this.type=z,this.doc=x,this.id=++Fo};Zo.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,z=x&&!x.curOp;if(z&&tu(x),mn(this,"clear")){var re=this.find();re&&Yn(this,"clear",re.from,re.to)}for(var te=null,ae=null,pe=0;pe<this.lines.length;++pe){var Le=this.lines[pe],We=gr(Le.markedSpans,this);x&&!this.collapsed?po(x,Lr(Le),"text"):x&&(We.to!=null&&(ae=Lr(Le)),We.from!=null&&(te=Lr(Le))),Le.markedSpans=Er(Le.markedSpans,We),We.from==null&&this.collapsed&&!ar(this.doc,Le)&&x&&Nr(Le,Uo(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var Ue=0;Ue<this.lines.length;++Ue){var st=$e(this.lines[Ue]),cn=Bn(st);cn>x.display.maxLineLength&&(x.display.maxLine=st,x.display.maxLineLength=cn,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&Da(x,te,ae+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&Bi(x.doc)),x&&Yn(x,"markerCleared",x,this,te,ae),z&&nu(x),this.parent&&this.parent.clear()}},Zo.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var re,te,ae=0;ae<this.lines.length;++ae){var pe=this.lines[ae],Le=gr(pe.markedSpans,this);if(Le.from!=null&&(re=ir(z?pe:Lr(pe),Le.from),x==-1))return re;if(Le.to!=null&&(te=ir(z?pe:Lr(pe),Le.to),x==1))return te}return re&&{from:re,to:te}},Zo.prototype.changed=function(){var x=this,z=this.find(-1,!0),re=this,te=this.doc.cm;!z||!te||ho(te,function(){var ae=z.line,pe=Lr(z.line),Le=za(te,pe);if(Le&&(Na(Le),te.curOp.selectionChanged=te.curOp.forceUpdate=!0),te.curOp.updateMaxLine=!0,!ar(re.doc,ae)&&re.height!=null){var We=re.height;re.height=null;var Ue=hr(re)-We;Ue&&Nr(ae,ae.height+Ue)}Yn(te,"markerChanged",te,x)})},Zo.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||Bt(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},Zo.prototype.detachLine=function(x){if(this.lines.splice(Bt(this.lines,x),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},gn(Zo);function Oo(x,z,re,te,ae){if(te&&te.shared)return Ii(x,z,re,te,ae);if(x.cm&&!x.cm.curOp)return Wo(x.cm,Oo)(x,z,re,te,ae);var pe=new Zo(x,ae),Le=Rr(z,re);if(te&&rt(te,pe,!1),Le>0||Le==0&&pe.clearWhenEmpty!==!1)return pe;if(pe.replacedWith&&(pe.collapsed=!0,pe.widgetNode=ut("span",[pe.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||pe.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(pe.widgetNode.insertLeft=!0)),pe.collapsed){if(Je(x,z.line,z,re,pe)||z.line!=re.line&&Je(x,re.line,z,re,pe))throw new Error("Inserting collapsed marker partially overlapping an existing one");$t()}pe.addToHistory&&De(x,{from:z,to:re,origin:"markText"},x.sel,NaN);var We=z.line,Ue=x.cm,st;if(x.iter(We,re.line+1,function(En){Ue&&pe.collapsed&&!Ue.options.lineWrapping&&$e(En)==Ue.display.maxLine&&(st=!0),pe.collapsed&&We!=z.line&&Nr(En,0),ri(En,new Zn(pe,We==z.line?z.ch:null,We==re.line?re.ch:null)),++We}),pe.collapsed&&x.iter(z.line,re.line+1,function(En){ar(x,En)&&Nr(En,0)}),pe.clearOnEnter&&sn(pe,"beforeCursorEnter",function(){return pe.clear()}),pe.readOnly&&(hn(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),pe.collapsed&&(pe.id=++Fo,pe.atomic=!0),Ue){if(st&&(Ue.curOp.updateMaxLine=!0),pe.collapsed)Da(Ue,z.line,re.line+1);else if(pe.className||pe.startStyle||pe.endStyle||pe.css||pe.attributes||pe.title)for(var cn=z.line;cn<=re.line;cn++)po(Ue,cn,"text");pe.atomic&&Bi(Ue.doc),Yn(Ue,"markerAdded",Ue,pe)}return pe}var Ha=function(x,z){this.markers=x,this.primary=z;for(var re=0;re<x.length;++re)x[re].parent=this};Ha.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();Yn(this,"clear")}},Ha.prototype.find=function(x,z){return this.primary.find(x,z)},gn(Ha);function Ii(x,z,re,te,ae){te=rt(te),te.shared=!1;var pe=[Oo(x,z,re,te,ae)],Le=pe[0],We=te.widgetNode;return hu(x,function(Ue){We&&(te.widgetNode=We.cloneNode(!0)),pe.push(Oo(Ue,Xr(Ue,z),Xr(Ue,re),te,ae));for(var st=0;st<Ue.linked.length;++st)if(Ue.linked[st].isParent)return;Le=Fn(pe)}),new Ha(pe,Le)}function da(x){return x.findMarks(ir(x.first,0),x.clipPos(ir(x.lastLine())),function(z){return z.parent})}function Ma(x,z){for(var re=0;re<z.length;re++){var te=z[re],ae=te.find(),pe=x.clipPos(ae.from),Le=x.clipPos(ae.to);if(Rr(pe,Le)){var We=Oo(x,pe,Le,te.primary,te.primary.type);te.markers.push(We),We.parent=te}}}function Vi(x){for(var z=function(te){var ae=x[te],pe=[ae.primary.doc];hu(ae.primary.doc,function(Ue){return pe.push(Ue)});for(var Le=0;Le<ae.markers.length;Le++){var We=ae.markers[Le];Bt(pe,We.doc)==-1&&(We.parent=null,ae.markers.splice(Le--,1))}},re=0;re<x.length;re++)z(re)}var To=0,Fi=function(x,z,re,te,ae){if(!(this instanceof Fi))return new Fi(x,z,re,te,ae);re==null&&(re=0),es.call(this,[new so([new Xn("",null)])]),this.first=re,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=re;var pe=ir(re,0);this.sel=iu(pe),this.history=new fc(null),this.id=++To,this.modeOption=z,this.lineSep=te,this.direction=ae=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),Bc(this,{from:pe,to:pe,text:x}),ei(this,iu(pe),Ct)};Fi.prototype=ue(es.prototype,{constructor:Fi,iter:function(x,z,re){re?this.iterN(x-this.first,z-x,re):this.iterN(this.first,this.first+this.size,x)},insert:function(x,z){for(var re=0,te=0;te<z.length;++te)re+=z[te].height;this.insertInner(x-this.first,z,re)},remove:function(x,z){this.removeInner(x-this.first,z)},getValue:function(x){var z=Gr(this,this.first,this.first+this.size);return x===!1?z:z.join(x||this.lineSeparator())},setValue:Cs(function(x){var z=ir(this.first,0),re=this.first+this.size-1;Ui(this,{from:z,to:ir(re,Tn(this,re).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&ql(this.cm,0,0),ei(this,iu(z),Ct)}),replaceRange:function(x,z,re,te){z=Xr(this,z),re=re?Xr(this,re):z,_a(this,x,z,re,te)},getRange:function(x,z,re){var te=rr(this,Xr(this,x),Xr(this,z));return re===!1?te:te.join(re||this.lineSeparator())},getLine:function(x){var z=this.getLineHandle(x);return z&&z.text},getLineHandle:function(x){if(Sr(this,x))return Tn(this,x)},getLineNumber:function(x){return Lr(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=Tn(this,x)),$e(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return Xr(this,x)},getCursor:function(x){var z=this.sel.primary(),re;return x==null||x=="head"?re=z.head:x=="anchor"?re=z.anchor:x=="end"||x=="to"||x===!1?re=z.to():re=z.from(),re},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Cs(function(x,z,re){Yr(this,Xr(this,typeof x=="number"?ir(x,z||0):x),null,re)}),setSelection:Cs(function(x,z,re){Yr(this,Xr(this,x),Xr(this,z||x),re)}),extendSelection:Cs(function(x,z,re){Fr(this,Xr(this,x),z&&Xr(this,z),re)}),extendSelections:Cs(function(x,z){Sn(this,Mr(this,x),z)}),extendSelectionsBy:Cs(function(x,z){var re=lr(this.sel.ranges,x);Sn(this,Mr(this,re),z)}),setSelections:Cs(function(x,z,re){if(x.length){for(var te=[],ae=0;ae<x.length;ae++)te[ae]=new Yo(Xr(this,x[ae].anchor),Xr(this,x[ae].head));z==null&&(z=Math.min(x.length-1,this.sel.primIndex)),ei(this,ru(this.cm,te,z),re)}}),addSelection:Cs(function(x,z,re){var te=this.sel.ranges.slice(0);te.push(new Yo(Xr(this,x),Xr(this,z||x))),ei(this,ru(this.cm,te,te.length-1),re)}),getSelection:function(x){for(var z=this.sel.ranges,re,te=0;te<z.length;te++){var ae=rr(this,z[te].from(),z[te].to());re=re?re.concat(ae):ae}return x===!1?re:re.join(x||this.lineSeparator())},getSelections:function(x){for(var z=[],re=this.sel.ranges,te=0;te<re.length;te++){var ae=rr(this,re[te].from(),re[te].to());x!==!1&&(ae=ae.join(x||this.lineSeparator())),z[te]=ae}return z},replaceSelection:function(x,z,re){for(var te=[],ae=0;ae<this.sel.ranges.length;ae++)te[ae]=x;this.replaceSelections(te,z,re||"+input")},replaceSelections:Cs(function(x,z,re){for(var te=[],ae=this.sel,pe=0;pe<ae.ranges.length;pe++){var Le=ae.ranges[pe];te[pe]={from:Le.from(),to:Le.to(),text:this.splitLines(x[pe]),origin:re}}for(var We=z&&z!="end"&&td(this,te,z),Ue=te.length-1;Ue>=0;Ue--)Ui(this,te[Ue]);We?ui(this,We):this.cm&&il(this.cm)}),undo:Cs(function(){Ci(this,"undo")}),redo:Cs(function(){Ci(this,"redo")}),undoSelection:Cs(function(){Ci(this,"undo",!0)}),redoSelection:Cs(function(){Ci(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,re=0,te=0;te<x.done.length;te++)x.done[te].ranges||++z;for(var ae=0;ae<x.undone.length;ae++)x.undone[ae].ranges||++re;return{undo:z,redo:re}},clearHistory:function(){var x=this;this.history=new fc(this.history.maxGeneration),hu(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:Hn(this.history.done),undone:Hn(this.history.undone)}},setHistory:function(x){var z=this.history=new fc(this.history.maxGeneration);z.done=Hn(x.done.slice(0),null,!0),z.undone=Hn(x.undone.slice(0),null,!0)},setGutterMarker:Cs(function(x,z,re){return Ho(this,x,"gutter",function(te){var ae=te.gutterMarkers||(te.gutterMarkers={});return ae[z]=re,!re&&le(ae)&&(te.gutterMarkers=null),!0})}),clearGutter:Cs(function(x){var z=this;this.iter(function(re){re.gutterMarkers&&re.gutterMarkers[x]&&Ho(z,re,"gutter",function(){return re.gutterMarkers[x]=null,le(re.gutterMarkers)&&(re.gutterMarkers=null),!0})})}),lineInfo:function(x){var z;if(typeof x=="number"){if(!Sr(this,x)||(z=x,x=Tn(this,x),!x))return null}else if(z=Lr(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:Cs(function(x,z,re){return Ho(this,x,z=="gutter"?"gutter":"class",function(te){var ae=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass";if(!te[ae])te[ae]=re;else{if(be(re).test(te[ae]))return!1;te[ae]+=" "+re}return!0})}),removeLineClass:Cs(function(x,z,re){return Ho(this,x,z=="gutter"?"gutter":"class",function(te){var ae=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass",pe=te[ae];if(pe)if(re==null)te[ae]=null;else{var Le=pe.match(be(re));if(!Le)return!1;var We=Le.index+Le[0].length;te[ae]=pe.slice(0,Le.index)+(!Le.index||We==pe.length?"":" ")+pe.slice(We)||null}else return!1;return!0})}),addLineWidget:Cs(function(x,z,re){return Ds(this,x,z,re)}),removeLineWidget:function(x){x.clear()},markText:function(x,z,re){return Oo(this,Xr(this,x),Xr(this,z),re,re&&re.type||"range")},setBookmark:function(x,z){var re={replacedWith:z&&(z.nodeType==null?z.widget:z),insertLeft:z&&z.insertLeft,clearWhenEmpty:!1,shared:z&&z.shared,handleMouseEvents:z&&z.handleMouseEvents};return x=Xr(this,x),Oo(this,x,x,re,"bookmark")},findMarksAt:function(x){x=Xr(this,x);var z=[],re=Tn(this,x.line).markedSpans;if(re)for(var te=0;te<re.length;++te){var ae=re[te];(ae.from==null||ae.from<=x.ch)&&(ae.to==null||ae.to>=x.ch)&&z.push(ae.marker.parent||ae.marker)}return z},findMarks:function(x,z,re){x=Xr(this,x),z=Xr(this,z);var te=[],ae=x.line;return this.iter(x.line,z.line+1,function(pe){var Le=pe.markedSpans;if(Le)for(var We=0;We<Le.length;We++){var Ue=Le[We];!(Ue.to!=null&&ae==x.line&&x.ch>=Ue.to||Ue.from==null&&ae!=x.line||Ue.from!=null&&ae==z.line&&Ue.from>=z.ch)&&(!re||re(Ue.marker))&&te.push(Ue.marker.parent||Ue.marker)}++ae}),te},getAllMarks:function(){var x=[];return this.iter(function(z){var re=z.markedSpans;if(re)for(var te=0;te<re.length;++te)re[te].from!=null&&x.push(re[te].marker)}),x},posFromIndex:function(x){var z,re=this.first,te=this.lineSeparator().length;return this.iter(function(ae){var pe=ae.text.length+te;if(pe>x)return z=x,!0;x-=pe,++re}),Xr(this,ir(re,z))},indexFromPos:function(x){x=Xr(this,x);var z=x.ch;if(x.line<this.first||x.ch<0)return 0;var re=this.lineSeparator().length;return this.iter(this.first,x.line,function(te){z+=te.text.length+re}),z},copy:function(x){var z=new Fi(Gr(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,re=this.first+this.size;x.from!=null&&x.from>z&&(z=x.from),x.to!=null&&x.to<re&&(re=x.to);var te=new Fi(Gr(this,z,re),x.mode||this.modeOption,z,this.lineSep,this.direction);return x.sharedHist&&(te.history=this.history),(this.linked||(this.linked=[])).push({doc:te,sharedHist:x.sharedHist}),te.linked=[{doc:this,isParent:!0,sharedHist:x.sharedHist}],Ma(te,da(this)),te},unlinkDoc:function(x){if(x instanceof Ga&&(x=x.doc),this.linked)for(var z=0;z<this.linked.length;++z){var re=this.linked[z];if(re.doc==x){this.linked.splice(z,1),x.unlinkDoc(this),Vi(da(this));break}}if(x.history==this.history){var te=[x.id];hu(x,function(ae){return te.push(ae.id)},!0),x.history=new fc(null),x.history.done=Hn(this.history.done,te),x.history.undone=Hn(this.history.undone,te)}},iterLinkedDocs:function(x){hu(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):Wt(x)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Cs(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(z){return z.order=null}),this.cm&&Lc(this.cm))})}),Fi.prototype.eachLine=Fi.prototype.iter;var Za=0;function Bo(x){var z=this;if(Bs(z),!(Pt(z,x)||mi(z.display,x))){or(x),Se&&(Za=+new Date);var re=Ks(z,x,!0),te=x.dataTransfer.files;if(!(!re||z.isReadOnly()))if(te&&te.length&&window.FileReader&&window.File)for(var ae=te.length,pe=Array(ae),Le=0,We=function(){++Le==ae&&Wo(z,function(){re=Xr(z.doc,re);var fr={from:re,to:re,text:z.doc.splitLines(pe.filter(function(Qr){return Qr!=null}).join(z.doc.lineSeparator())),origin:"paste"};Ui(z.doc,fr),ui(z.doc,iu(Xr(z.doc,re),Xr(z.doc,Cu(fr))))})()},Ue=function(fr,Qr){if(z.options.allowDropFileTypes&&Bt(z.options.allowDropFileTypes,fr.type)==-1){We();return}var ci=new FileReader;ci.onerror=function(){return We()},ci.onload=function(){var ki=ci.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ki)){We();return}pe[Qr]=ki,We()},ci.readAsText(fr)},st=0;st<te.length;st++)Ue(te[st],st);else{if(z.state.draggingText&&z.doc.sel.contains(re)>-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var cn=x.dataTransfer.getData("Text");if(cn){var En;if(z.state.draggingText&&!z.state.draggingText.copy&&(En=z.listSelections()),xi(z.doc,iu(re,re)),En)for(var xr=0;xr<En.length;++xr)_a(z.doc,"",En[xr].anchor,En[xr].head,"drag");z.replaceSelection(cn,"around","paste"),z.display.input.focus()}}catch(fr){}}}}function Co(x,z){if(Se&&(!x.state.draggingText||+new Date-Za<100)){Hr(z);return}if(!(Pt(x,z)||mi(x.display,z))&&(z.dataTransfer.setData("Text",x.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!Qe)){var re=ft("img",null,null,"position: fixed; left: 0; top: 0;");re.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Be&&(re.width=re.height=1,x.display.wrapper.appendChild(re),re._top=re.offsetTop),z.dataTransfer.setDragImage(re,0,0),Be&&re.parentNode.removeChild(re)}}function ol(x,z){var re=Ks(x,z);if(re){var te=document.createDocumentFragment();Qa(x,re,te),x.display.dragCursor||(x.display.dragCursor=ft("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),Et(x.display.dragCursor,te)}}function Bs(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function El(x){if(document.getElementsByClassName){for(var z=document.getElementsByClassName("CodeMirror"),re=[],te=0;te<z.length;te++){var ae=z[te].CodeMirror;ae&&re.push(ae)}re.length&&re[0].operation(function(){for(var pe=0;pe<re.length;pe++)x(re[pe])})}}var ni=!1;function zl(){ni||(ws(),ni=!0)}function ws(){var x;sn(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,El(fl)},100))}),sn(window,"blur",function(){return El(rl)})}function fl(x){var z=x.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,x.setSize()}for(var yl={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"},Lo=0;Lo<10;Lo++)yl[Lo+48]=yl[Lo+96]=String(Lo);for(var No=65;No<=90;No++)yl[No]=String.fromCharCode(No);for(var ns=1;ns<=12;ns++)yl[ns+111]=yl[ns+63235]="F"+ns;var $a={};$a.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"},$a.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"},$a.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"},$a.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"]},$a.default=xe?$a.macDefault:$a.pcDefault;function Os(x){var z=x.split(/-(?!$)/);x=z[z.length-1];for(var re,te,ae,pe,Le=0;Le<z.length-1;Le++){var We=z[Le];if(/^(cmd|meta|m)$/i.test(We))pe=!0;else if(/^a(lt)?$/i.test(We))re=!0;else if(/^(c|ctrl|control)$/i.test(We))te=!0;else if(/^s(hift)?$/i.test(We))ae=!0;else throw new Error("Unrecognized modifier name: "+We)}return re&&(x="Alt-"+x),te&&(x="Ctrl-"+x),pe&&(x="Cmd-"+x),ae&&(x="Shift-"+x),x}function lo(x){var z={};for(var re in x)if(x.hasOwnProperty(re)){var te=x[re];if(/^(name|fallthrough|(de|at)tach)$/.test(re))continue;if(te=="..."){delete x[re];continue}for(var ae=lr(re.split(" "),Os),pe=0;pe<ae.length;pe++){var Le=void 0,We=void 0;pe==ae.length-1?(We=ae.join(" "),Le=te):(We=ae.slice(0,pe+1).join(" "),Le="...");var Ue=z[We];if(!Ue)z[We]=Le;else if(Ue!=Le)throw new Error("Inconsistent bindings for "+We)}delete x[re]}for(var st in z)x[st]=z[st];return x}function Ls(x,z,re,te){z=Es(z);var ae=z.call?z.call(x,te):z[x];if(ae===!1)return"nothing";if(ae==="...")return"multi";if(ae!=null&&re(ae))return"handled";if(z.fallthrough){if(Object.prototype.toString.call(z.fallthrough)!="[object Array]")return Ls(x,z.fallthrough,re,te);for(var pe=0;pe<z.fallthrough.length;pe++){var Le=Ls(x,z.fallthrough[pe],re,te);if(Le)return Le}}}function Ws(x){var z=typeof x=="string"?x:yl[x.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function Zs(x,z,re){var te=x;return z.altKey&&te!="Alt"&&(x="Alt-"+x),(pt?z.metaKey:z.ctrlKey)&&te!="Ctrl"&&(x="Ctrl-"+x),(pt?z.ctrlKey:z.metaKey)&&te!="Mod"&&(x="Cmd-"+x),!re&&z.shiftKey&&te!="Shift"&&(x="Shift-"+x),x}function Ml(x,z){if(Be&&x.keyCode==34&&x.char)return!1;var re=yl[x.keyCode];return re==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(re=x.code),Zs(re,x,z))}function Es(x){return typeof x=="string"?$a[x]:x}function Al(x,z){for(var re=x.doc.sel.ranges,te=[],ae=0;ae<re.length;ae++){for(var pe=z(re[ae]);te.length&&Rr(pe.from,Fn(te).to)<=0;){var Le=te.pop();if(Rr(Le.from,pe.from)<0){pe.from=Le.from;break}}te.push(pe)}ho(x,function(){for(var We=te.length-1;We>=0;We--)_a(x.doc,"",te[We].from,te[We].to,"+delete");il(x)})}function Ms(x,z,re){var te=gt(x.text,z+re,re);return te<0||te>x.text.length?null:te}function js(x,z,re){var te=Ms(x,z.ch,re);return te==null?null:new ir(z.line,te,re<0?"after":"before")}function Us(x,z,re,te,ae){if(x){z.doc.direction=="rtl"&&(ae=-ae);var pe=It(re,z.doc.direction);if(pe){var Le=ae<0?Fn(pe):pe[0],We=ae<0==(Le.level==1),Ue=We?"after":"before",st;if(Le.level>0||z.doc.direction=="rtl"){var cn=La(z,re);st=ae<0?re.text.length-1:0;var En=ia(z,cn,st).top;st=At(function(xr){return ia(z,cn,xr).top==En},ae<0==(Le.level==1)?Le.from:Le.to-1,st),Ue=="before"&&(st=Ms(re,st,1))}else st=ae<0?Le.to:Le.from;return new ir(te,st,Ue)}}return new ir(te,ae<0?re.text.length:0,ae<0?"before":"after")}function As(x,z,re,te){var ae=It(z,x.doc.direction);if(!ae)return js(z,re,te);re.ch>=z.text.length?(re.ch=z.text.length,re.sticky="before"):re.ch<=0&&(re.ch=0,re.sticky="after");var pe=Ot(ae,re.ch,re.sticky),Le=ae[pe];if(x.doc.direction=="ltr"&&Le.level%2==0&&(te>0?Le.to>re.ch:Le.from<re.ch))return js(z,re,te);var We=function(Wi,ra){return Ms(z,Wi instanceof ir?Wi.ch:Wi,ra)},Ue,st=function(Wi){return x.options.lineWrapping?(Ue=Ue||La(x,z),Io(x,z,Ue,Wi)):{begin:0,end:z.text.length}},cn=st(re.sticky=="before"?We(re,-1):re.ch);if(x.doc.direction=="rtl"||Le.level==1){var En=Le.level==1==te<0,xr=We(re,En?1:-1);if(xr!=null&&(En?xr<=Le.to&&xr<=cn.end:xr>=Le.from&&xr>=cn.begin)){var fr=En?"before":"after";return new ir(re.line,xr,fr)}}var Qr=function(Wi,ra,Ni){for(var oa=function(vs,xl){return xl?new ir(re.line,We(vs,1),"before"):new ir(re.line,vs,"after")};Wi>=0&&Wi<ae.length;Wi+=ra){var Ia=ae[Wi],Oa=ra>0==(Ia.level!=1),Mo=Oa?Ni.begin:We(Ni.end,-1);if(Ia.from<=Mo&&Mo<Ia.to||(Mo=Oa?Ia.from:We(Ia.to,-1),Ni.begin<=Mo&&Mo<Ni.end))return oa(Mo,Oa)}},ci=Qr(pe+te,te,cn);if(ci)return ci;var ki=te>0?cn.end:We(cn.begin,-1);return ki!=null&&!(te>0&&ki==z.text.length)&&(ci=Qr(te>0?0:ae.length-1,te,st(ki)),ci)?ci:null}var ms={selectAll:Ua,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),Ct)},killLine:function(x){return Al(x,function(z){if(z.empty()){var re=Tn(x.doc,z.head.line).text.length;return z.head.ch==re&&z.head.line<x.lastLine()?{from:z.head,to:ir(z.head.line+1,0)}:{from:z.head,to:ir(z.head.line,re)}}else return{from:z.from(),to:z.to()}})},deleteLine:function(x){return Al(x,function(z){return{from:ir(z.from().line,0),to:Xr(x.doc,ir(z.to().line+1,0))}})},delLineLeft:function(x){return Al(x,function(z){return{from:ir(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(x){return Al(x,function(z){var re=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:re},"div");return{from:te,to:z.from()}})},delWrappedLineRight:function(x){return Al(x,function(z){var re=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:re},"div");return{from:z.from(),to:te}})},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(ir(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(ir(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(z){return ls(x,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(z){return wu(x,z.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(z){return Xl(x,z.head.line)},{origin:"+move",bias:-1})},goLineRight:function(x){return x.extendSelectionsBy(function(z){var re=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:re},"div")},tn)},goLineLeft:function(x){return x.extendSelectionsBy(function(z){var re=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:0,top:re},"div")},tn)},goLineLeftSmart:function(x){return x.extendSelectionsBy(function(z){var re=x.cursorCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:re},"div");return te.ch<x.getLine(te.line).search(/\S/)?wu(x,z.head):te},tn)},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=[],re=x.listSelections(),te=x.options.tabSize,ae=0;ae<re.length;ae++){var pe=re[ae].from(),Le=dt(x.getLine(pe.line),pe.ch,te);z.push(qt(te-Le%te))}x.replaceSelections(z)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return ho(x,function(){for(var z=x.listSelections(),re=[],te=0;te<z.length;te++)if(z[te].empty()){var ae=z[te].head,pe=Tn(x.doc,ae.line).text;if(pe){if(ae.ch==pe.length&&(ae=new ir(ae.line,ae.ch-1)),ae.ch>0)ae=new ir(ae.line,ae.ch+1),x.replaceRange(pe.charAt(ae.ch-1)+pe.charAt(ae.ch-2),ir(ae.line,ae.ch-2),ae,"+transpose");else if(ae.line>x.doc.first){var Le=Tn(x.doc,ae.line-1).text;Le&&(ae=new ir(ae.line,1),x.replaceRange(pe.charAt(0)+x.doc.lineSeparator()+Le.charAt(Le.length-1),ir(ae.line-1,Le.length-1),ae,"+transpose"))}}re.push(new Yo(ae,ae))}x.setSelections(re)})},newlineAndIndent:function(x){return ho(x,function(){for(var z=x.listSelections(),re=z.length-1;re>=0;re--)x.replaceRange(x.doc.lineSeparator(),z[re].anchor,z[re].head,"+input");z=x.listSelections();for(var te=0;te<z.length;te++)x.indentLine(z[te].from().line,null,!0);il(x)})},openLine:function(x){return x.replaceSelection(`
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function ls(x,z){var re=Tn(x.doc,z),te=$e(re);return te!=re&&(z=Lr(te)),Us(!0,x,te,z,1)}function Xl(x,z){var re=Tn(x.doc,z),te=Ge(re);return te!=re&&(z=Lr(te)),Us(!0,x,re,z,-1)}function wu(x,z){var re=ls(x,z.line),te=Tn(x.doc,re.line),ae=It(te,x.doc.direction);if(!ae||ae[0].level==0){var pe=Math.max(re.ch,te.text.search(/\S/)),Le=z.line==re.line&&z.ch<=pe&&z.ch;return ir(re.line,Le?0:pe,re.sticky)}return re}function hs(x,z,re){if(typeof z=="string"&&(z=ms[z],!z))return!1;x.display.input.ensurePolled();var te=x.display.shift,ae=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),re&&(x.display.shift=!1),ae=z(x)!=en}finally{x.display.shift=te,x.state.suppressEdits=!1}return ae}function sl(x,z,re){for(var te=0;te<x.state.keyMaps.length;te++){var ae=Ls(z,x.state.keyMaps[te],re,x);if(ae)return ae}return x.options.extraKeys&&Ls(z,x.options.extraKeys,re,x)||Ls(z,x.options.keyMap,re,x)}var Tc=new Ae;function Eu(x,z,re,te){var ae=x.state.keySeq;if(ae){if(Ws(z))return"handled";if(/\'$/.test(z)?x.state.keySeq=null:Tc.set(50,function(){x.state.keySeq==ae&&(x.state.keySeq=null,x.display.input.reset())}),yo(x,ae+" "+z,re,te))return!0}return yo(x,z,re,te)}function yo(x,z,re,te){var ae=sl(x,z,te);return ae=="multi"&&(x.state.keySeq=z),ae=="handled"&&Yn(x,"keyHandled",x,z,re),(ae=="handled"||ae=="multi")&&(or(re),pa(x)),!!ae}function ga(x,z){var re=Ml(z,!0);return re?z.shiftKey&&!x.state.keySeq?Eu(x,"Shift-"+re,z,function(te){return hs(x,te,!0)})||Eu(x,re,z,function(te){if(typeof te=="string"?/^go[A-Z]/.test(te):te.motion)return hs(x,te)}):Eu(x,re,z,function(te){return hs(x,te)}):!1}function Is(x,z,re){return Eu(x,"'"+re+"'",z,function(te){return hs(x,te,!0)})}var jo=null;function Vs(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&(z.curOp.focus=wt(),!Pt(z,x))){Se&&Me<11&&x.keyCode==27&&(x.returnValue=!1);var re=x.keyCode;z.display.shift=re==16||x.shiftKey;var te=ga(z,x);Be&&(jo=te?re:null,!te&&re==88&&!qn&&(xe?x.metaKey:x.ctrlKey)&&z.replaceSelection("",null,"cut")),oe&&!xe&&!te&&re==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),re==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&Wr(z)}}function Wr(x){var z=x.display.lineDiv;yn(z,"CodeMirror-crosshair");function re(te){(te.keyCode==18||!te.altKey)&&(Ze(z,"CodeMirror-crosshair"),Un(document,"keyup",re),Un(document,"mouseover",re))}sn(document,"keyup",re),sn(document,"mouseover",re)}function kl(x){x.keyCode==16&&(this.doc.sel.shift=!1),Pt(this,x)}function lu(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&!(mi(z.display,x)||Pt(z,x)||x.ctrlKey&&!x.altKey||xe&&x.metaKey)){var re=x.keyCode,te=x.charCode;if(Be&&re==jo){jo=null,or(x);return}if(!(Be&&(!x.which||x.which<10)&&ga(z,x))){var ae=String.fromCharCode(te==null?re:te);ae!="\b"&&(Is(z,x,ae)||z.display.input.onKeyPress(x))}}}var Pc=400,id=function(x,z,re){this.time=x,this.pos=z,this.button=re};id.prototype.compare=function(x,z,re){return this.time+Pc>x&&Rr(z,this.pos)==0&&re==this.button};var uu,hc;function Bd(x,z){var re=+new Date;return hc&&hc.compare(re,x,z)?(uu=hc=null,"triple"):uu&&uu.compare(re,x,z)?(hc=new id(re,x,z),uu=null,"double"):(uu=new id(re,x,z),hc=null,"single")}function Gs(x){var z=this,re=z.display;if(!(Pt(z,x)||re.activeTouch&&re.input.supportsTouch())){if(re.input.ensurePolled(),re.shift=x.shiftKey,mi(re,x)){ce||(re.scroller.draggable=!1,setTimeout(function(){return re.scroller.draggable=!0},100));return}if(!bl(z,x)){var te=Ks(z,x),ae=vr(x),pe=te?Bd(te,ae):"single";window.focus(),ae==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&Zl(z,ae,te,pe,x))&&(ae==1?te?Ic(z,te,pe,x):jr(x)==re.scroller&&or(x):ae==2?(te&&Fr(z.doc,te),setTimeout(function(){return re.input.focus()},20)):ae==3&&(Ce?z.display.input.onContextMenu(x):Vo(z)))}}}function Zl(x,z,re,te,ae){var pe="Click";return te=="double"?pe="Double"+pe:te=="triple"&&(pe="Triple"+pe),pe=(z==1?"Left":z==2?"Middle":"Right")+pe,Eu(x,Zs(pe,ae),ae,function(Le){if(typeof Le=="string"&&(Le=ms[Le]),!Le)return!1;var We=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),We=Le(x,re)!=en}finally{x.state.suppressEdits=!1}return We})}function pc(x,z,re){var te=x.getOption("configureMouse"),ae=te?te(x,z,re):{};if(ae.unit==null){var pe=mt?re.shiftKey&&re.metaKey:re.altKey;ae.unit=pe?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(ae.extend==null||x.doc.extend)&&(ae.extend=x.doc.extend||re.shiftKey),ae.addNew==null&&(ae.addNew=xe?re.metaKey:re.ctrlKey),ae.moveOnDrag==null&&(ae.moveOnDrag=!(xe?re.altKey:re.ctrlKey)),ae}function Ic(x,z,re,te){Se?setTimeout(Kn(Aa,x),0):x.curOp.focus=wt();var ae=pc(x,re,te),pe=x.doc.sel,Le;x.options.dragDrop&&Kr&&!x.isReadOnly()&&re=="single"&&(Le=pe.contains(z))>-1&&(Rr((Le=pe.ranges[Le]).from(),z)<0||z.xRel>0)&&(Rr(Le.to(),z)>0||z.xRel<0)?Ld(x,te,z,ae):Nc(x,te,z,ae)}function Ld(x,z,re,te){var ae=x.display,pe=!1,Le=Wo(x,function(st){ce&&(ae.scroller.draggable=!1),x.state.draggingText=!1,Un(ae.wrapper.ownerDocument,"mouseup",Le),Un(ae.wrapper.ownerDocument,"mousemove",We),Un(ae.scroller,"dragstart",Ue),Un(ae.scroller,"drop",Le),pe||(or(st),te.addNew||Fr(x.doc,re,null,null,te.extend),ce&&!Qe||Se&&Me==9?setTimeout(function(){ae.wrapper.ownerDocument.body.focus({preventScroll:!0}),ae.input.focus()},20):ae.input.focus())}),We=function(st){pe=pe||Math.abs(z.clientX-st.clientX)+Math.abs(z.clientY-st.clientY)>=10},Ue=function(){return pe=!0};ce&&(ae.scroller.draggable=!0),x.state.draggingText=Le,Le.copy=!te.moveOnDrag,ae.scroller.dragDrop&&ae.scroller.dragDrop(),sn(ae.wrapper.ownerDocument,"mouseup",Le),sn(ae.wrapper.ownerDocument,"mousemove",We),sn(ae.scroller,"dragstart",Ue),sn(ae.scroller,"drop",Le),Vo(x),setTimeout(function(){return ae.input.focus()},20)}function Fd(x,z,re){if(re=="char")return new Yo(z,z);if(re=="word")return x.findWordAt(z);if(re=="line")return new Yo(ir(z.line,0),Xr(x.doc,ir(z.line+1,0)));var te=re(x,z);return new Yo(te.from,te.to)}function Nc(x,z,re,te){var ae=x.display,pe=x.doc;or(z);var Le,We,Ue=pe.sel,st=Ue.ranges;if(te.addNew&&!te.extend?(We=pe.sel.contains(re),We>-1?Le=st[We]:Le=new Yo(re,re)):(Le=pe.sel.primary(),We=pe.sel.primIndex),te.unit=="rectangle")te.addNew||(Le=new Yo(re,re)),re=Ks(x,z,!0,!0),We=-1;else{var cn=Fd(x,re,te.unit);te.extend?Le=dr(Le,cn.anchor,cn.head,te.extend):Le=cn}te.addNew?We==-1?(We=st.length,ei(pe,ru(x,st.concat([Le]),We),{scroll:!1,origin:"*mouse"})):st.length>1&&st[We].empty()&&te.unit=="char"&&!te.extend?(ei(pe,ru(x,st.slice(0,We).concat(st.slice(We+1)),0),{scroll:!1,origin:"*mouse"}),Ue=pe.sel):Vr(pe,We,Le,Rt):(We=0,ei(pe,new Wl([Le],0),Rt),Ue=pe.sel);var En=re;function xr(Ni){if(Rr(En,Ni)!=0)if(En=Ni,te.unit=="rectangle"){for(var oa=[],Ia=x.options.tabSize,Oa=dt(Tn(pe,re.line).text,re.ch,Ia),Mo=dt(Tn(pe,Ni.line).text,Ni.ch,Ia),vs=Math.min(Oa,Mo),xl=Math.max(Oa,Mo),Rs=Math.min(re.line,Ni.line),jl=Math.min(x.lastLine(),Math.max(re.line,Ni.line));Rs<=jl;Rs++){var Ul=Tn(pe,Rs).text,ll=cr(Ul,vs,Ia);vs==xl?oa.push(new Yo(ir(Rs,ll),ir(Rs,ll))):Ul.length>ll&&oa.push(new Yo(ir(Rs,ll),ir(Rs,cr(Ul,xl,Ia))))}oa.length||oa.push(new Yo(re,re)),ei(pe,ru(x,Ue.ranges.slice(0,We).concat(oa),We),{origin:"*mouse",scroll:!1}),x.scrollIntoView(Ni)}else{var Vl=Le,to=Fd(x,Ni,te.unit),Ys=Vl.anchor,_s;Rr(to.anchor,Ys)>0?(_s=to.head,Ys=di(Vl.from(),to.anchor)):(_s=to.anchor,Ys=qr(Vl.to(),to.head));var Xs=Ue.ranges.slice(0);Xs[We]=mc(x,new Yo(Xr(pe,Ys),_s)),ei(pe,ru(x,Xs,We),Rt)}}var fr=ae.wrapper.getBoundingClientRect(),Qr=0;function ci(Ni){var oa=++Qr,Ia=Ks(x,Ni,!0,te.unit=="rectangle");if(Ia)if(Rr(Ia,En)!=0){x.curOp.focus=wt(),xr(Ia);var Oa=vo(ae,pe);(Ia.line>=Oa.to||Ia.line<Oa.from)&&setTimeout(Wo(x,function(){Qr==oa&&ci(Ni)}),150)}else{var Mo=Ni.clientY<fr.top?-20:Ni.clientY>fr.bottom?20:0;Mo&&setTimeout(Wo(x,function(){Qr==oa&&(ae.scroller.scrollTop+=Mo,ci(Ni))}),50)}}function ki(Ni){x.state.selectingText=!1,Qr=1/0,Ni&&(or(Ni),ae.input.focus()),Un(ae.wrapper.ownerDocument,"mousemove",Wi),Un(ae.wrapper.ownerDocument,"mouseup",ra),pe.history.lastSelOrigin=null}var Wi=Wo(x,function(Ni){Ni.buttons===0||!vr(Ni)?ki(Ni):ci(Ni)}),ra=Wo(x,ki);x.state.selectingText=ra,sn(ae.wrapper.ownerDocument,"mousemove",Wi),sn(ae.wrapper.ownerDocument,"mouseup",ra)}function mc(x,z){var re=z.anchor,te=z.head,ae=Tn(x.doc,re.line);if(Rr(re,te)==0&&re.sticky==te.sticky)return z;var pe=It(ae);if(!pe)return z;var Le=Ot(pe,re.ch,re.sticky),We=pe[Le];if(We.from!=re.ch&&We.to!=re.ch)return z;var Ue=Le+(We.from==re.ch==(We.level!=1)?0:1);if(Ue==0||Ue==pe.length)return z;var st;if(te.line!=re.line)st=(te.line-re.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var cn=Ot(pe,te.ch,te.sticky),En=cn-Le||(te.ch-re.ch)*(We.level==1?-1:1);cn==Ue-1||cn==Ue?st=En<0:st=En>0}var xr=pe[Ue+(st?-1:0)],fr=st==(xr.level==1),Qr=fr?xr.from:xr.to,ci=fr?"after":"before";return re.ch==Qr&&re.sticky==ci?z:new Yo(new ir(re.line,Qr,ci),te)}function Gu(x,z,re,te){var ae,pe;if(z.touches)ae=z.touches[0].clientX,pe=z.touches[0].clientY;else try{ae=z.clientX,pe=z.clientY}catch(xr){return!1}if(ae>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&or(z);var Le=x.display,We=Le.lineDiv.getBoundingClientRect();if(pe>We.bottom||!mn(x,re))return tr(z);pe-=We.top-Le.viewOffset;for(var Ue=0;Ue<x.display.gutterSpecs.length;++Ue){var st=Le.gutters.childNodes[Ue];if(st&&st.getBoundingClientRect().right>=ae){var cn=Ur(x.doc,pe),En=x.display.gutterSpecs[Ue];return bt(x,re,x,cn,En.className,z),tr(z)}}}function bl(x,z){return Gu(x,z,"gutterClick",!0)}function pu(x,z){mi(x.display,z)||ad(x,z)||Pt(x,z,"contextmenu")||Ce||x.display.input.onContextMenu(z)}function ad(x,z){return mn(x,"gutterContextMenu")?Gu(x,z,"gutterContextMenu",!1):!1}function od(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),aa(x)}var Mu={toString:function(){return"CodeMirror.Init"}},Td={},gc={};function Oc(x){var z=x.optionHandlers;function re(te,ae,pe,Le){x.defaults[te]=ae,pe&&(z[te]=Le?function(We,Ue,st){st!=Mu&&pe(We,Ue,st)}:pe)}x.defineOption=re,x.Init=Mu,re("value","",function(te,ae){return te.setValue(ae)},!0),re("mode",null,function(te,ae){te.doc.modeOption=ae,uc(te)},!0),re("indentUnit",2,uc,!0),re("indentWithTabs",!1),re("smartIndent",!0),re("tabSize",4,function(te){Vu(te),aa(te),Da(te)},!0),re("lineSeparator",null,function(te,ae){if(te.doc.lineSep=ae,!!ae){var pe=[],Le=te.doc.first;te.doc.iter(function(Ue){for(var st=0;;){var cn=Ue.text.indexOf(ae,st);if(cn==-1)break;st=cn+ae.length,pe.push(ir(Le,cn))}Le++});for(var We=pe.length-1;We>=0;We--)_a(te.doc,ae,pe[We],ir(pe[We].line,pe[We].ch+ae.length))}}),re("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ae,pe){te.state.specialChars=new RegExp(ae.source+(ae.test(" ")?"":"| "),"g"),pe!=Mu&&te.refresh()}),re("specialCharPlaceholder",tt,function(te){return te.refresh()},!0),re("electricChars",!0),re("inputStyle",Ve?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),re("spellcheck",!1,function(te,ae){return te.getInputField().spellcheck=ae},!0),re("autocorrect",!1,function(te,ae){return te.getInputField().autocorrect=ae},!0),re("autocapitalize",!1,function(te,ae){return te.getInputField().autocapitalize=ae},!0),re("rtlMoveVisually",!Lt),re("wholeLineUpdateBefore",!0),re("theme","default",function(te){od(te),Uu(te)},!0),re("keyMap","default",function(te,ae,pe){var Le=Es(ae),We=pe!=Mu&&Es(pe);We&&We.detach&&We.detach(te,Le),Le.attach&&Le.attach(te,We||null)}),re("extraKeys",null),re("configureMouse",null),re("lineWrapping",!1,Rc,!0),re("gutters",[],function(te,ae){te.display.gutterSpecs=Dc(ae,te.options.lineNumbers),Uu(te)},!0),re("fixedGutter",!0,function(te,ae){te.display.gutters.style.left=ae?Js(te.display)+"px":"0",te.refresh()},!0),re("coverGutterNextToScrollbar",!1,function(te){return Kl(te)},!0),re("scrollbarStyle","native",function(te){Tu(te),Kl(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),re("lineNumbers",!1,function(te,ae){te.display.gutterSpecs=Dc(te.options.gutters,ae),Uu(te)},!0),re("firstLineNumber",1,Uu,!0),re("lineNumberFormatter",function(te){return te},Uu,!0),re("showCursorWhenSelecting",!1,ml,!0),re("resetSelectionOnContextMenu",!0),re("lineWiseCopyCut",!0),re("pasteLinesPerSelection",!0),re("selectionsMayTouch",!1),re("readOnly",!1,function(te,ae){ae=="nocursor"&&(rl(te),te.display.input.blur()),te.display.input.readOnlyChanged(ae)}),re("screenReaderLabel",null,function(te,ae){ae=ae===""?null:ae,te.display.input.screenReaderLabelChanged(ae)}),re("disableInput",!1,function(te,ae){ae||te.display.input.reset()},!0),re("dragDrop",!0,sd),re("allowDropFileTypes",null),re("cursorBlinkRate",530),re("cursorScrollMargin",0),re("cursorHeight",1,ml,!0),re("singleCursorHeightPerLine",!0,ml,!0),re("workTime",100),re("workDelay",100),re("flattenSpans",!0,Vu,!0),re("addModeClass",!1,Vu,!0),re("pollInterval",100),re("undoDepth",200,function(te,ae){return te.doc.history.undoDepth=ae}),re("historyEventDelay",1250),re("viewportMargin",10,function(te){return te.refresh()},!0),re("maxHighlightLength",1e4,Vu,!0),re("moveInputWithCursor",!0,function(te,ae){ae||te.display.input.resetPosition()}),re("tabindex",null,function(te,ae){return te.display.input.getField().tabIndex=ae||""}),re("autofocus",null),re("direction","ltr",function(te,ae){return te.doc.setDirection(ae)},!0),re("phrases",null)}function sd(x,z,re){var te=re&&re!=Mu;if(!z!=!te){var ae=x.display.dragFunctions,pe=z?sn:Un;pe(x.display.scroller,"dragstart",ae.start),pe(x.display.scroller,"dragenter",ae.enter),pe(x.display.scroller,"dragover",ae.over),pe(x.display.scroller,"dragleave",ae.leave),pe(x.display.scroller,"drop",ae.drop)}}function Rc(x){x.options.lineWrapping?(yn(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(Ze(x.display.wrapper,"CodeMirror-wrap"),rn(x)),ds(x),Da(x),aa(x),setTimeout(function(){return Kl(x)},100)}function Ga(x,z){var re=this;if(!(this instanceof Ga))return new Ga(x,z);this.options=z=z?rt(z):{},rt(Td,z,!1);var te=z.value;typeof te=="string"?te=new Fi(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ae=new Ga.inputStyles[z.inputStyle](this),pe=this.display=new nf(x,te,ae,z);pe.wrapper.CodeMirror=this,od(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Tu(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 Ae,keySeq:null,specialChars:null},z.autofocus&&!Ve&&pe.input.focus(),Se&&Me<11&&setTimeout(function(){return re.display.input.reset(!0)},20),Pd(this),zl(),tu(this),this.curOp.forceUpdate=!0,cc(this,te),z.autofocus&&!Ve||this.hasFocus()?setTimeout(function(){re.hasFocus()&&!re.state.focused&&Qo(re)},20):rl(this);for(var Le in gc)gc.hasOwnProperty(Le)&&gc[Le](this,z[Le],Mu);kc(this),z.finishInit&&z.finishInit(this);for(var We=0;We<_c.length;++We)_c[We](this);nu(this),ce&&z.lineWrapping&&getComputedStyle(pe.lineDiv).textRendering=="optimizelegibility"&&(pe.lineDiv.style.textRendering="auto")}Ga.defaults=Td,Ga.optionHandlers=gc;function Pd(x){var z=x.display;sn(z.scroller,"mousedown",Wo(x,Gs)),Se&&Me<11?sn(z.scroller,"dblclick",Wo(x,function(Ue){if(!Pt(x,Ue)){var st=Ks(x,Ue);if(!(!st||bl(x,Ue)||mi(x.display,Ue))){or(Ue);var cn=x.findWordAt(st);Fr(x.doc,cn.anchor,cn.head)}}})):sn(z.scroller,"dblclick",function(Ue){return Pt(x,Ue)||or(Ue)}),sn(z.scroller,"contextmenu",function(Ue){return pu(x,Ue)}),sn(z.input.getField(),"contextmenu",function(Ue){z.scroller.contains(Ue.target)||pu(x,Ue)});var re,te={end:0};function ae(){z.activeTouch&&(re=setTimeout(function(){return z.activeTouch=null},1e3),te=z.activeTouch,te.end=+new Date)}function pe(Ue){if(Ue.touches.length!=1)return!1;var st=Ue.touches[0];return st.radiusX<=1&&st.radiusY<=1}function Le(Ue,st){if(st.left==null)return!0;var cn=st.left-Ue.left,En=st.top-Ue.top;return cn*cn+En*En>20*20}sn(z.scroller,"touchstart",function(Ue){if(!Pt(x,Ue)&&!pe(Ue)&&!bl(x,Ue)){z.input.ensurePolled(),clearTimeout(re);var st=+new Date;z.activeTouch={start:st,moved:!1,prev:st-te.end<=300?te:null},Ue.touches.length==1&&(z.activeTouch.left=Ue.touches[0].pageX,z.activeTouch.top=Ue.touches[0].pageY)}}),sn(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),sn(z.scroller,"touchend",function(Ue){var st=z.activeTouch;if(st&&!mi(z,Ue)&&st.left!=null&&!st.moved&&new Date-st.start<300){var cn=x.coordsChar(z.activeTouch,"page"),En;!st.prev||Le(st,st.prev)?En=new Yo(cn,cn):!st.prev.prev||Le(st,st.prev.prev)?En=x.findWordAt(cn):En=new Yo(ir(cn.line,0),Xr(x.doc,ir(cn.line+1,0))),x.setSelection(En.anchor,En.head),x.focus(),or(Ue)}ae()}),sn(z.scroller,"touchcancel",ae),sn(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Eo(x,z.scroller.scrollTop),Ss(x,z.scroller.scrollLeft,!0),bt(x,"scroll",x))}),sn(z.scroller,"mousewheel",function(Ue){return $c(x,Ue)}),sn(z.scroller,"DOMMouseScroll",function(Ue){return $c(x,Ue)}),sn(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(Ue){Pt(x,Ue)||Hr(Ue)},over:function(Ue){Pt(x,Ue)||(ol(x,Ue),Hr(Ue))},start:function(Ue){return Co(x,Ue)},drop:Wo(x,Bo),leave:function(Ue){Pt(x,Ue)||Bs(x)}};var We=z.input.getField();sn(We,"keyup",function(Ue){return kl.call(x,Ue)}),sn(We,"keydown",Wo(x,Vs)),sn(We,"keypress",Wo(x,lu)),sn(We,"focus",function(Ue){return Qo(x,Ue)}),sn(We,"blur",function(Ue){return rl(x,Ue)})}var _c=[];Ga.defineInitHook=function(x){return _c.push(x)};function Ql(x,z,re,te){var ae=x.doc,pe;re==null&&(re="add"),re=="smart"&&(ae.mode.indent?pe=Xi(x,z).state:re="prev");var Le=x.options.tabSize,We=Tn(ae,z),Ue=dt(We.text,null,Le);We.stateAfter&&(We.stateAfter=null);var st=We.text.match(/^\s*/)[0],cn;if(!te&&!/\S/.test(We.text))cn=0,re="not";else if(re=="smart"&&(cn=ae.mode.indent(pe,We.text.slice(st.length),We.text),cn==en||cn>150)){if(!te)return;re="prev"}re=="prev"?z>ae.first?cn=dt(Tn(ae,z-1).text,null,Le):cn=0:re=="add"?cn=Ue+x.options.indentUnit:re=="subtract"?cn=Ue-x.options.indentUnit:typeof re=="number"&&(cn=Ue+re),cn=Math.max(0,cn);var En="",xr=0;if(x.options.indentWithTabs)for(var fr=Math.floor(cn/Le);fr;--fr)xr+=Le,En+=" ";if(xr<cn&&(En+=qt(cn-xr)),En!=st)return _a(ae,En,ir(z,0),ir(z,st.length),"+input"),We.stateAfter=null,!0;for(var Qr=0;Qr<ae.sel.ranges.length;Qr++){var ci=ae.sel.ranges[Qr];if(ci.head.line==z&&ci.head.ch<st.length){var ki=ir(z,st.length);Vr(ae,Qr,new Yo(ki,ki));break}}}var au=null;function mu(x){au=x}function vc(x,z,re,te,ae){var pe=x.doc;x.display.shift=!1,te||(te=pe.sel);var Le=+new Date-200,We=ae=="paste"||x.state.pasteIncoming>Le,Ue=Wt(z),st=null;if(We&&te.ranges.length>1)if(au&&au.text.join(`
`)==z){if(te.ranges.length%au.text.length==0){st=[];for(var cn=0;cn<au.text.length;cn++)st.push(pe.splitLines(au.text[cn]))}}else Ue.length==te.ranges.length&&x.options.pasteLinesPerSelection&&(st=lr(Ue,function(Wi){return[Wi]}));for(var En=x.curOp.updateInput,xr=te.ranges.length-1;xr>=0;xr--){var fr=te.ranges[xr],Qr=fr.from(),ci=fr.to();fr.empty()&&(re&&re>0?Qr=ir(Qr.line,Qr.ch-re):x.state.overwrite&&!We?ci=ir(ci.line,Math.min(Tn(pe,ci.line).text.length,ci.ch+Fn(Ue).length)):We&&au&&au.lineWise&&au.text.join(`
`)==Ue.join(`
`)&&(Qr=ci=ir(Qr.line,0)));var ki={from:Qr,to:ci,text:st?st[xr%st.length]:Ue,origin:ae||(We?"paste":x.state.cutIncoming>Le?"cut":"+input")};Ui(x.doc,ki),Yn(x,"inputRead",x,ki)}z&&!We&&yc(x,z),il(x),x.curOp.updateInput<2&&(x.curOp.updateInput=En),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function zc(x,z){var re=x.clipboardData&&x.clipboardData.getData("Text");if(re)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&ho(z,function(){return vc(z,re,0,null,"paste")}),!0}function yc(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var re=x.doc.sel,te=re.ranges.length-1;te>=0;te--){var ae=re.ranges[te];if(!(ae.head.ch>100||te&&re.ranges[te-1].head.line==ae.head.line)){var pe=x.getModeAt(ae.head),Le=!1;if(pe.electricChars){for(var We=0;We<pe.electricChars.length;We++)if(z.indexOf(pe.electricChars.charAt(We))>-1){Le=Ql(x,ae.head.line,"smart");break}}else pe.electricInput&&pe.electricInput.test(Tn(x.doc,ae.head.line).text.slice(0,ae.head.ch))&&(Le=Ql(x,ae.head.line,"smart"));Le&&Yn(x,"electricInput",x,ae.head.line)}}}function _u(x){for(var z=[],re=[],te=0;te<x.doc.sel.ranges.length;te++){var ae=x.doc.sel.ranges[te].head.line,pe={anchor:ir(ae,0),head:ir(ae+1,0)};re.push(pe),z.push(x.getRange(pe.anchor,pe.head))}return{text:z,ranges:re}}function Id(x,z,re,te){x.setAttribute("autocorrect",re?"":"off"),x.setAttribute("autocapitalize",te?"":"off"),x.setAttribute("spellcheck",!!z)}function Ro(){var x=ft("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=ft("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ce?x.style.width="1000px":x.setAttribute("wrap","off"),ot&&(x.style.border="1px solid black"),Id(x),z}function as(x){var z=x.optionHandlers,re=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(te,ae){var pe=this.options,Le=pe[te];pe[te]==ae&&te!="mode"||(pe[te]=ae,z.hasOwnProperty(te)&&Wo(this,z[te])(this,ae,Le),bt(this,"optionChange",this,te))},getOption:function(te){return this.options[te]},getDoc:function(){return this.doc},addKeyMap:function(te,ae){this.state.keyMaps[ae?"push":"unshift"](Es(te))},removeKeyMap:function(te){for(var ae=this.state.keyMaps,pe=0;pe<ae.length;++pe)if(ae[pe]==te||ae[pe].name==te)return ae.splice(pe,1),!0},addOverlay:Ko(function(te,ae){var pe=te.token?te:x.getMode(this.options,te);if(pe.startState)throw new Error("Overlays may not be stateful.");nn(this.state.overlays,{mode:pe,modeSpec:te,opaque:ae&&ae.opaque,priority:ae&&ae.priority||0},function(Le){return Le.priority}),this.state.modeGen++,Da(this)}),removeOverlay:Ko(function(te){for(var ae=this.state.overlays,pe=0;pe<ae.length;++pe){var Le=ae[pe].modeSpec;if(Le==te||typeof te=="string"&&Le.name==te){ae.splice(pe,1),this.state.modeGen++,Da(this);return}}}),indentLine:Ko(function(te,ae,pe){typeof ae!="string"&&typeof ae!="number"&&(ae==null?ae=this.options.smartIndent?"smart":"prev":ae=ae?"add":"subtract"),Sr(this.doc,te)&&Ql(this,te,ae,pe)}),indentSelection:Ko(function(te){for(var ae=this.doc.sel.ranges,pe=-1,Le=0;Le<ae.length;Le++){var We=ae[Le];if(We.empty())We.head.line>pe&&(Ql(this,We.head.line,te,!0),pe=We.head.line,Le==this.doc.sel.primIndex&&il(this));else{var Ue=We.from(),st=We.to(),cn=Math.max(pe,Ue.line);pe=Math.min(this.lastLine(),st.line-(st.ch?0:1))+1;for(var En=cn;En<pe;++En)Ql(this,En,te);var xr=this.doc.sel.ranges;Ue.ch==0&&ae.length==xr.length&&xr[Le].from().ch>0&&Vr(this.doc,Le,new Yo(Ue,xr[Le].to()),Ct)}}}),getTokenAt:function(te,ae){return Ya(this,te,ae)},getLineTokens:function(te,ae){return Ya(this,ir(te),ae,!0)},getTokenTypeAt:function(te){te=Xr(this.doc,te);var ae=ca(this,Tn(this.doc,te.line)),pe=0,Le=(ae.length-1)/2,We=te.ch,Ue;if(We==0)Ue=ae[2];else for(;;){var st=pe+Le>>1;if((st?ae[st*2-1]:0)>=We)Le=st;else if(ae[st*2+1]<We)pe=st+1;else{Ue=ae[st*2+2];break}}var cn=Ue?Ue.indexOf("overlay "):-1;return cn<0?Ue:cn==0?null:Ue.slice(0,cn-1)},getModeAt:function(te){var ae=this.doc.mode;return ae.innerMode?x.innerMode(ae,this.getTokenAt(te).state).mode:ae},getHelper:function(te,ae){return this.getHelpers(te,ae)[0]},getHelpers:function(te,ae){var pe=[];if(!re.hasOwnProperty(ae))return pe;var Le=re[ae],We=this.getModeAt(te);if(typeof We[ae]=="string")Le[We[ae]]&&pe.push(Le[We[ae]]);else if(We[ae])for(var Ue=0;Ue<We[ae].length;Ue++){var st=Le[We[ae][Ue]];st&&pe.push(st)}else We.helperType&&Le[We.helperType]?pe.push(Le[We.helperType]):Le[We.name]&&pe.push(Le[We.name]);for(var cn=0;cn<Le._global.length;cn++){var En=Le._global[cn];En.pred(We,this)&&Bt(pe,En.val)==-1&&pe.push(En.val)}return pe},getStateAfter:function(te,ae){var pe=this.doc;return te=Yi(pe,te==null?pe.first+pe.size-1:te),Xi(this,te+1,ae).state},cursorCoords:function(te,ae){var pe,Le=this.doc.sel.primary();return te==null?pe=Le.head:typeof te=="object"?pe=Xr(this.doc,te):pe=te?Le.from():Le.to(),co(this,pe,ae||"page")},charCoords:function(te,ae){return Xo(this,Xr(this.doc,te),ae||"page")},coordsChar:function(te,ae){return te=Ao(this,te,ae||"page"),rs(this,te.left,te.top)},lineAtHeight:function(te,ae){return te=Ao(this,{top:te,left:0},ae||"page").top,Ur(this.doc,te+this.display.viewOffset)},heightAtLine:function(te,ae,pe){var Le=!1,We;if(typeof te=="number"){var Ue=this.doc.first+this.doc.size-1;te<this.doc.first?te=this.doc.first:te>Ue&&(te=Ue,Le=!0),We=Tn(this.doc,te)}else We=te;return xo(this,We,{top:0,left:0},ae||"page",pe||Le).top+(Le?this.doc.height-Nn(We):0)},defaultTextHeight:function(){return Uo(this.display)},defaultCharWidth:function(){return cs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ae,pe,Le,We){var Ue=this.display;te=co(this,Xr(this.doc,te));var st=te.bottom,cn=te.left;if(ae.style.position="absolute",ae.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ae),Ue.sizer.appendChild(ae),Le=="over")st=te.top;else if(Le=="above"||Le=="near"){var En=Math.max(Ue.wrapper.clientHeight,this.doc.height),xr=Math.max(Ue.sizer.clientWidth,Ue.lineSpace.clientWidth);(Le=="above"||te.bottom+ae.offsetHeight>En)&&te.top>ae.offsetHeight?st=te.top-ae.offsetHeight:te.bottom+ae.offsetHeight<=En&&(st=te.bottom),cn+ae.offsetWidth>xr&&(cn=xr-ae.offsetWidth)}ae.style.top=st+"px",ae.style.left=ae.style.right="",We=="right"?(cn=Ue.sizer.clientWidth-ae.offsetWidth,ae.style.right="0px"):(We=="left"?cn=0:We=="middle"&&(cn=(Ue.sizer.clientWidth-ae.offsetWidth)/2),ae.style.left=cn+"px"),pe&&Su(this,{left:cn,top:st,right:cn+ae.offsetWidth,bottom:st+ae.offsetHeight})},triggerOnKeyDown:Ko(Vs),triggerOnKeyPress:Ko(lu),triggerOnKeyUp:kl,triggerOnMouseDown:Ko(Gs),execCommand:function(te){if(ms.hasOwnProperty(te))return ms[te].call(null,this)},triggerElectric:Ko(function(te){yc(this,te)}),findPosH:function(te,ae,pe,Le){var We=1;ae<0&&(We=-1,ae=-ae);for(var Ue=Xr(this.doc,te),st=0;st<ae&&(Ue=Il(this.doc,Ue,We,pe,Le),!Ue.hitSide);++st);return Ue},moveH:Ko(function(te,ae){var pe=this;this.extendSelectionsBy(function(Le){return pe.display.shift||pe.doc.extend||Le.empty()?Il(pe.doc,Le.head,te,ae,pe.options.rtlMoveVisually):te<0?Le.from():Le.to()},tn)}),deleteH:Ko(function(te,ae){var pe=this.doc.sel,Le=this.doc;pe.somethingSelected()?Le.replaceSelection("",null,"+delete"):Al(this,function(We){var Ue=Il(Le,We.head,te,ae,!1);return te<0?{from:Ue,to:We.head}:{from:We.head,to:Ue}})}),findPosV:function(te,ae,pe,Le){var We=1,Ue=Le;ae<0&&(We=-1,ae=-ae);for(var st=Xr(this.doc,te),cn=0;cn<ae;++cn){var En=co(this,st,"div");if(Ue==null?Ue=En.left:En.left=Ue,st=gu(this,En,We,pe),st.hitSide)break}return st},moveV:Ko(function(te,ae){var pe=this,Le=this.doc,We=[],Ue=!this.display.shift&&!Le.extend&&Le.sel.somethingSelected();if(Le.extendSelectionsBy(function(cn){if(Ue)return te<0?cn.from():cn.to();var En=co(pe,cn.head,"div");cn.goalColumn!=null&&(En.left=cn.goalColumn),We.push(En.left);var xr=gu(pe,En,te,ae);return ae=="page"&&cn==Le.sel.primary()&&wl(pe,Xo(pe,xr,"div").top-En.top),xr},tn),We.length)for(var st=0;st<Le.sel.ranges.length;st++)Le.sel.ranges[st].goalColumn=We[st]}),findWordAt:function(te){var ae=this.doc,pe=Tn(ae,te.line).text,Le=te.ch,We=te.ch;if(pe){var Ue=this.getHelper(te,"wordChars");(te.sticky=="before"||We==pe.length)&&Le?--Le:++We;for(var st=pe.charAt(Le),cn=he(st,Ue)?function(En){return he(En,Ue)}:/\s/.test(st)?function(En){return/\s/.test(En)}:function(En){return!/\s/.test(En)&&!he(En)};Le>0&&cn(pe.charAt(Le-1));)--Le;for(;We<pe.length&&cn(pe.charAt(We));)++We}return new Yo(ir(te.line,Le),ir(te.line,We))},toggleOverwrite:function(te){te!=null&&te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?yn(this.display.cursorDiv,"CodeMirror-overwrite"):Ze(this.display.cursorDiv,"CodeMirror-overwrite"),bt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==wt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ko(function(te,ae){ql(this,te,ae)}),getScrollInfo:function(){var te=this.display.scroller;return{left:te.scrollLeft,top:te.scrollTop,height:te.scrollHeight-Mi(this)-this.display.barHeight,width:te.scrollWidth-Mi(this)-this.display.barWidth,clientHeight:_i(this),clientWidth:fi(this)}},scrollIntoView:Ko(function(te,ae){te==null?(te={from:this.doc.sel.primary().head,to:null},ae==null&&(ae=this.options.cursorScrollMargin)):typeof te=="number"?te={from:ir(te,0),to:null}:te.from==null&&(te={from:te,to:null}),te.to||(te.to=te.from),te.margin=ae||0,te.from.line!=null?dl(this,te):is(this,te.from,te.to,te.margin)}),setSize:Ko(function(te,ae){var pe=this,Le=function(Ue){return typeof Ue=="number"||/^\d+$/.test(String(Ue))?Ue+"px":Ue};te!=null&&(this.display.wrapper.style.width=Le(te)),ae!=null&&(this.display.wrapper.style.height=Le(ae)),this.options.lineWrapping&&Ka(this);var We=this.display.viewFrom;this.doc.iter(We,this.display.viewTo,function(Ue){if(Ue.widgets){for(var st=0;st<Ue.widgets.length;st++)if(Ue.widgets[st].noHScroll){po(pe,We,"widget");break}}++We}),this.curOp.forceUpdate=!0,bt(this,"refresh",this)}),operation:function(te){return ho(this,te)},startOperation:function(){return tu(this)},endOperation:function(){return nu(this)},refresh:Ko(function(){var te=this.display.cachedTextHeight;Da(this),this.curOp.forceUpdate=!0,aa(this),ql(this,this.doc.scrollLeft,this.doc.scrollTop),Ac(this.display),(te==null||Math.abs(te-Uo(this.display))>.5||this.options.lineWrapping)&&ds(this),bt(this,"refresh",this)}),swapDoc:Ko(function(te){var ae=this.doc;return ae.cm=null,this.state.selectingText&&this.state.selectingText(),cc(this,te),aa(this),this.display.input.reset(),ql(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,Yn(this,"swapDoc",this,ae),ae}),phrase:function(te){var ae=this.options.phrases;return ae&&Object.prototype.hasOwnProperty.call(ae,te)?ae[te]:te},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}},gn(x),x.registerHelper=function(te,ae,pe){re.hasOwnProperty(te)||(re[te]=x[te]={_global:[]}),re[te][ae]=pe},x.registerGlobalHelper=function(te,ae,pe,Le){x.registerHelper(te,ae,Le),re[te]._global.push({pred:pe,val:Le})}}function Il(x,z,re,te,ae){var pe=z,Le=re,We=Tn(x,z.line),Ue=ae&&x.direction=="rtl"?-re:re;function st(){var ra=z.line+Ue;return ra<x.first||ra>=x.first+x.size?!1:(z=new ir(ra,z.ch,z.sticky),We=Tn(x,ra))}function cn(ra){var Ni;if(te=="codepoint"){var oa=We.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(oa)?Ni=null:Ni=new ir(z.line,Math.max(0,Math.min(We.text.length,z.ch+re*(oa>=55296&&oa<56320?2:1))),-re)}else ae?Ni=As(x.cm,We,z,re):Ni=js(We,z,re);if(Ni==null)if(!ra&&st())z=Us(ae,x.cm,We,z.line,Ue);else return!1;else z=Ni;return!0}if(te=="char"||te=="codepoint")cn();else if(te=="column")cn(!0);else if(te=="word"||te=="group")for(var En=null,xr=te=="group",fr=x.cm&&x.cm.getHelper(z,"wordChars"),Qr=!0;!(re<0&&!cn(!Qr));Qr=!1){var ci=We.text.charAt(z.ch)||`
`,ki=he(ci,fr)?"w":xr&&ci==`
`?"n":!xr||/\s/.test(ci)?null:"p";if(xr&&!Qr&&!ki&&(ki="s"),En&&En!=ki){re<0&&(re=1,cn(),z.sticky="after");break}if(ki&&(En=ki),re>0&&!cn(!Qr))break}var Wi=ea(x,z,pe,Le,!0);return Di(pe,Wi)&&(Wi.hitSide=!0),Wi}function gu(x,z,re,te){var ae=x.doc,pe=z.left,Le;if(te=="page"){var We=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Ue=Math.max(We-.5*Uo(x.display),3);Le=(re>0?z.bottom:z.top)+re*Ue}else te=="line"&&(Le=re>0?z.bottom+3:z.top-3);for(var st;st=rs(x,pe,Le),!!st.outside;){if(re<0?Le<=0:Le>=ae.height){st.hitSide=!0;break}Le+=re*5}return st}var _o=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ae,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};_o.prototype.init=function(x){var z=this,re=this,te=re.cm,ae=re.div=x.lineDiv;Id(ae,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function pe(We){for(var Ue=We.target;Ue;Ue=Ue.parentNode){if(Ue==ae)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ue.className))break}return!1}sn(ae,"paste",function(We){!pe(We)||Pt(te,We)||zc(We,te)||Me<=11&&setTimeout(Wo(te,function(){return z.updateFromDOM()}),20)}),sn(ae,"compositionstart",function(We){z.composing={data:We.data,done:!1}}),sn(ae,"compositionupdate",function(We){z.composing||(z.composing={data:We.data,done:!1})}),sn(ae,"compositionend",function(We){z.composing&&(We.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),sn(ae,"touchstart",function(){return re.forceCompositionEnd()}),sn(ae,"input",function(){z.composing||z.readFromDOMSoon()});function Le(We){if(!(!pe(We)||Pt(te,We))){if(te.somethingSelected())mu({lineWise:!1,text:te.getSelections()}),We.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var Ue=_u(te);mu({lineWise:!0,text:Ue.text}),We.type=="cut"&&te.operation(function(){te.setSelections(Ue.ranges,0,Ct),te.replaceSelection("",null,"cut")})}else return;if(We.clipboardData){We.clipboardData.clearData();var st=au.text.join(`
`);if(We.clipboardData.setData("Text",st),We.clipboardData.getData("Text")==st){We.preventDefault();return}}var cn=Ro(),En=cn.firstChild;te.display.lineSpace.insertBefore(cn,te.display.lineSpace.firstChild),En.value=au.text.join(`
`);var xr=document.activeElement;ln(En),setTimeout(function(){te.display.lineSpace.removeChild(cn),xr.focus(),xr==ae&&re.showPrimarySelection()},50)}}sn(ae,"copy",Le),sn(ae,"cut",Le)},_o.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},_o.prototype.prepareSelection=function(){var x=Sl(this.cm,!1);return x.focus=document.activeElement==this.div,x},_o.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},_o.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},_o.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,re=z.doc.sel.primary(),te=re.from(),ae=re.to();if(z.display.viewTo==z.display.viewFrom||te.line>=z.display.viewTo||ae.line<z.display.viewFrom){x.removeAllRanges();return}var pe=Yu(z,x.anchorNode,x.anchorOffset),Le=Yu(z,x.focusNode,x.focusOffset);if(!(pe&&!pe.bad&&Le&&!Le.bad&&Rr(di(pe,Le),te)==0&&Rr(qr(pe,Le),ae)==0)){var We=z.display.view,Ue=te.line>=z.display.viewFrom&&ld(z,te)||{node:We[0].measure.map[2],offset:0},st=ae.line<z.display.viewTo&&ld(z,ae);if(!st){var cn=We[We.length-1].measure,En=cn.maps?cn.maps[cn.maps.length-1]:cn.map;st={node:En[En.length-1],offset:En[En.length-2]-En[En.length-3]}}if(!Ue||!st){x.removeAllRanges();return}var xr=x.rangeCount&&x.getRangeAt(0),fr;try{fr=Re(Ue.node,Ue.offset,st.offset,st.node)}catch(Qr){}fr&&(!oe&&z.state.focused?(x.collapse(Ue.node,Ue.offset),fr.collapsed||(x.removeAllRanges(),x.addRange(fr))):(x.removeAllRanges(),x.addRange(fr)),xr&&x.anchorNode==null?x.addRange(xr):oe&&this.startGracePeriod()),this.rememberSelection()}},_o.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)},_o.prototype.showMultipleSelections=function(x){Et(this.cm.display.cursorDiv,x.cursors),Et(this.cm.display.selectionDiv,x.selection)},_o.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},_o.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var z=x.getRangeAt(0).commonAncestorContainer;return Vt(this.div,z)},_o.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},_o.prototype.blur=function(){this.div.blur()},_o.prototype.getField=function(){return this.div},_o.prototype.supportsTouch=function(){return!0},_o.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():ho(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)},_o.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},_o.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),z=this.cm;if(nt&&ge&&this.cm.display.gutterSpecs.length&&ud(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var re=Yu(z,x.anchorNode,x.anchorOffset),te=Yu(z,x.focusNode,x.focusOffset);re&&te&&ho(z,function(){ei(z.doc,iu(re,te),Ct),(re.bad||te.bad)&&(z.curOp.selectionChanged=!0)})}}},_o.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var x=this.cm,z=x.display,re=x.doc.sel.primary(),te=re.from(),ae=re.to();if(te.ch==0&&te.line>x.firstLine()&&(te=ir(te.line-1,Tn(x.doc,te.line-1).length)),ae.ch==Tn(x.doc,ae.line).text.length&&ae.line<x.lastLine()&&(ae=ir(ae.line+1,0)),te.line<z.viewFrom||ae.line>z.viewTo-1)return!1;var pe,Le,We;te.line==z.viewFrom||(pe=Xa(x,te.line))==0?(Le=Lr(z.view[0].line),We=z.view[0].node):(Le=Lr(z.view[pe].line),We=z.view[pe-1].node.nextSibling);var Ue=Xa(x,ae.line),st,cn;if(Ue==z.view.length-1?(st=z.viewTo-1,cn=z.lineDiv.lastChild):(st=Lr(z.view[Ue+1].line)-1,cn=z.view[Ue+1].node.previousSibling),!We)return!1;for(var En=x.doc.splitLines(cd(x,We,cn,Le,st)),xr=rr(x.doc,ir(Le,0),ir(st,Tn(x.doc,st).text.length));En.length>1&&xr.length>1;)if(Fn(En)==Fn(xr))En.pop(),xr.pop(),st--;else if(En[0]==xr[0])En.shift(),xr.shift(),Le++;else break;for(var fr=0,Qr=0,ci=En[0],ki=xr[0],Wi=Math.min(ci.length,ki.length);fr<Wi&&ci.charCodeAt(fr)==ki.charCodeAt(fr);)++fr;for(var ra=Fn(En),Ni=Fn(xr),oa=Math.min(ra.length-(En.length==1?fr:0),Ni.length-(xr.length==1?fr:0));Qr<oa&&ra.charCodeAt(ra.length-Qr-1)==Ni.charCodeAt(Ni.length-Qr-1);)++Qr;if(En.length==1&&xr.length==1&&Le==te.line)for(;fr&&fr>te.ch&&ra.charCodeAt(ra.length-Qr-1)==Ni.charCodeAt(Ni.length-Qr-1);)fr--,Qr++;En[En.length-1]=ra.slice(0,ra.length-Qr).replace(/^\u200b+/,""),En[0]=En[0].slice(fr).replace(/\u200b+$/,"");var Ia=ir(Le,fr),Oa=ir(st,xr.length?Fn(xr).length-Qr:0);if(En.length>1||En[0]||Rr(Ia,Oa))return _a(x.doc,En,Ia,Oa,"+input"),!0},_o.prototype.ensurePolled=function(){this.forceCompositionEnd()},_o.prototype.reset=function(){this.forceCompositionEnd()},_o.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},_o.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))},_o.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&ho(this.cm,function(){return Da(x.cm)})},_o.prototype.setUneditable=function(x){x.contentEditable="false"},_o.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||Wo(this.cm,vc)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},_o.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},_o.prototype.onContextMenu=function(){},_o.prototype.resetPosition=function(){},_o.prototype.needsContentAttribute=!0;function ld(x,z){var re=za(x,z.line);if(!re||re.hidden)return null;var te=Tn(x.doc,z.line),ae=oo(re,te,z.line),pe=It(te,x.doc.direction),Le="left";if(pe){var We=Ot(pe,z.ch);Le=We%2?"right":"left"}var Ue=va(ae.map,z.ch,Le);return Ue.offset=Ue.collapse=="right"?Ue.end:Ue.start,Ue}function ud(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function Au(x,z){return z&&(x.bad=!0),x}function cd(x,z,re,te,ae){var pe="",Le=!1,We=x.doc.lineSeparator(),Ue=!1;function st(fr){return function(Qr){return Qr.id==fr}}function cn(){Le&&(pe+=We,Ue&&(pe+=We),Le=Ue=!1)}function En(fr){fr&&(cn(),pe+=fr)}function xr(fr){if(fr.nodeType==1){var Qr=fr.getAttribute("cm-text");if(Qr){En(Qr);return}var ci=fr.getAttribute("cm-marker"),ki;if(ci){var Wi=x.findMarks(ir(te,0),ir(ae+1,0),st(+ci));Wi.length&&(ki=Wi[0].find(0))&&En(rr(x.doc,ki.from,ki.to).join(We));return}if(fr.getAttribute("contenteditable")=="false")return;var ra=/^(pre|div|p|li|table|br)$/i.test(fr.nodeName);if(!/^br$/i.test(fr.nodeName)&&fr.textContent.length==0)return;ra&&cn();for(var Ni=0;Ni<fr.childNodes.length;Ni++)xr(fr.childNodes[Ni]);/^(pre|p)$/i.test(fr.nodeName)&&(Ue=!0),ra&&(Le=!0)}else fr.nodeType==3&&En(fr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;xr(z),z!=re;)z=z.nextSibling,Ue=!1;return pe}function Yu(x,z,re){var te;if(z==x.display.lineDiv){if(te=x.display.lineDiv.childNodes[re],!te)return Au(x.clipPos(ir(x.display.viewTo-1)),!0);z=null,re=0}else for(te=z;;te=te.parentNode){if(!te||te==x.display.lineDiv)return null;if(te.parentNode&&te.parentNode==x.display.lineDiv)break}for(var ae=0;ae<x.display.view.length;ae++){var pe=x.display.view[ae];if(pe.node==te)return dh(pe,z,re)}}function dh(x,z,re){var te=x.text.firstChild,ae=!1;if(!z||!Vt(te,z))return Au(ir(Lr(x.line),0),!0);if(z==te&&(ae=!0,z=te.childNodes[re],re=0,!z)){var pe=x.rest?Fn(x.rest):x.line;return Au(ir(Lr(pe),pe.text.length),ae)}var Le=z.nodeType==3?z:null,We=z;for(!Le&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(Le=z.firstChild,re&&(re=Le.nodeValue.length));We.parentNode!=te;)We=We.parentNode;var Ue=x.measure,st=Ue.maps;function cn(ki,Wi,ra){for(var Ni=-1;Ni<(st?st.length:0);Ni++)for(var oa=Ni<0?Ue.map:st[Ni],Ia=0;Ia<oa.length;Ia+=3){var Oa=oa[Ia+2];if(Oa==ki||Oa==Wi){var Mo=Lr(Ni<0?x.line:x.rest[Ni]),vs=oa[Ia]+ra;return(ra<0||Oa!=ki)&&(vs=oa[Ia+(ra?1:0)]),ir(Mo,vs)}}}var En=cn(Le,We,re);if(En)return Au(En,ae);for(var xr=We.nextSibling,fr=Le?Le.nodeValue.length-re:0;xr;xr=xr.nextSibling){if(En=cn(xr,xr.firstChild,0),En)return Au(ir(En.line,En.ch-fr),ae);fr+=xr.textContent.length}for(var Qr=We.previousSibling,ci=re;Qr;Qr=Qr.previousSibling){if(En=cn(Qr,Qr.firstChild,-1),En)return Au(ir(En.line,En.ch+ci),ae);ci+=Qr.textContent.length}}var gs=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new Ae,this.hasSelection=!1,this.composing=null};gs.prototype.init=function(x){var z=this,re=this,te=this.cm;this.createField(x);var ae=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),ot&&(ae.style.width="0px"),sn(ae,"input",function(){Se&&Me>=9&&z.hasSelection&&(z.hasSelection=null),re.poll()}),sn(ae,"paste",function(Le){Pt(te,Le)||zc(Le,te)||(te.state.pasteIncoming=+new Date,re.fastPoll())});function pe(Le){if(!Pt(te,Le)){if(te.somethingSelected())mu({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var We=_u(te);mu({lineWise:!0,text:We.text}),Le.type=="cut"?te.setSelections(We.ranges,null,Ct):(re.prevInput="",ae.value=We.text.join(`
`),ln(ae))}else return;Le.type=="cut"&&(te.state.cutIncoming=+new Date)}}sn(ae,"cut",pe),sn(ae,"copy",pe),sn(x.scroller,"paste",function(Le){if(!(mi(x,Le)||Pt(te,Le))){if(!ae.dispatchEvent){te.state.pasteIncoming=+new Date,re.focus();return}var We=new Event("paste");We.clipboardData=Le.clipboardData,ae.dispatchEvent(We)}}),sn(x.lineSpace,"selectstart",function(Le){mi(x,Le)||or(Le)}),sn(ae,"compositionstart",function(){var Le=te.getCursor("from");re.composing&&re.composing.range.clear(),re.composing={start:Le,range:te.markText(Le,te.getCursor("to"),{className:"CodeMirror-composing"})}}),sn(ae,"compositionend",function(){re.composing&&(re.poll(),re.composing.range.clear(),re.composing=null)})},gs.prototype.createField=function(x){this.wrapper=Ro(),this.textarea=this.wrapper.firstChild},gs.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},gs.prototype.prepareSelection=function(){var x=this.cm,z=x.display,re=x.doc,te=Sl(x);if(x.options.moveInputWithCursor){var ae=co(x,re.sel.primary().head,"div"),pe=z.wrapper.getBoundingClientRect(),Le=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ae.top+Le.top-pe.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ae.left+Le.left-pe.left))}return te},gs.prototype.showSelection=function(x){var z=this.cm,re=z.display;Et(re.cursorDiv,x.cursors),Et(re.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},gs.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var z=this.cm;if(z.somethingSelected()){this.prevInput="";var re=z.getSelection();this.textarea.value=re,z.state.focused&&ln(this.textarea),Se&&Me>=9&&(this.hasSelection=re)}else x||(this.prevInput=this.textarea.value="",Se&&Me>=9&&(this.hasSelection=null))}},gs.prototype.getField=function(){return this.textarea},gs.prototype.supportsTouch=function(){return!1},gs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ve||wt()!=this.textarea))try{this.textarea.focus()}catch(x){}},gs.prototype.blur=function(){this.textarea.blur()},gs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},gs.prototype.receivedFocus=function(){this.slowPoll()},gs.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},gs.prototype.fastPoll=function(){var x=!1,z=this;z.pollingFast=!0;function re(){var te=z.poll();!te&&!x?(x=!0,z.polling.set(60,re)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,re)},gs.prototype.poll=function(){var x=this,z=this.cm,re=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||On(re)&&!te&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var ae=re.value;if(ae==te&&!z.somethingSelected())return!1;if(Se&&Me>=9&&this.hasSelection===ae||xe&&/[\uf700-\uf7ff]/.test(ae))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var pe=ae.charCodeAt(0);if(pe==8203&&!te&&(te="\u200B"),pe==8666)return this.reset(),this.cm.execCommand("undo")}for(var Le=0,We=Math.min(te.length,ae.length);Le<We&&te.charCodeAt(Le)==ae.charCodeAt(Le);)++Le;return ho(z,function(){vc(z,ae.slice(Le),te.length-Le,null,x.composing?"*compose":null),ae.length>1e3||ae.indexOf(`
`)>-1?re.value=x.prevInput="":x.prevInput=ae,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},gs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},gs.prototype.onKeyPress=function(){Se&&Me>=9&&(this.hasSelection=null),this.fastPoll()},gs.prototype.onContextMenu=function(x){var z=this,re=z.cm,te=re.display,ae=z.textarea;z.contextMenuPending&&z.contextMenuPending();var pe=Ks(re,x),Le=te.scroller.scrollTop;if(!pe||Be)return;var We=re.options.resetSelectionOnContextMenu;We&&re.doc.sel.contains(pe)==-1&&Wo(re,ei)(re.doc,iu(pe),Ct);var Ue=ae.style.cssText,st=z.wrapper.style.cssText,cn=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ae.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(x.clientY-cn.top-5)+"px; left: "+(x.clientX-cn.left-5)+`px;
z-index: 1000; background: `+(Se?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var En;ce&&(En=window.scrollY),te.input.focus(),ce&&window.scrollTo(null,En),te.input.reset(),re.somethingSelected()||(ae.value=z.prevInput=" "),z.contextMenuPending=fr,te.selForContextMenu=re.doc.sel,clearTimeout(te.detectingSelectAll);function xr(){if(ae.selectionStart!=null){var ci=re.somethingSelected(),ki="\u200B"+(ci?ae.value:"");ae.value="\u21DA",ae.value=ki,z.prevInput=ci?"":"\u200B",ae.selectionStart=1,ae.selectionEnd=ki.length,te.selForContextMenu=re.doc.sel}}function fr(){if(z.contextMenuPending==fr&&(z.contextMenuPending=!1,z.wrapper.style.cssText=st,ae.style.cssText=Ue,Se&&Me<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=Le),ae.selectionStart!=null)){(!Se||Se&&Me<9)&&xr();var ci=0,ki=function(){te.selForContextMenu==re.doc.sel&&ae.selectionStart==0&&ae.selectionEnd>0&&z.prevInput=="\u200B"?Wo(re,Ua)(re):ci++<10?te.detectingSelectAll=setTimeout(ki,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(ki,200)}}if(Se&&Me>=9&&xr(),Ce){Hr(x);var Qr=function(){Un(window,"mouseup",Qr),setTimeout(fr,20)};sn(window,"mouseup",Qr)}else setTimeout(fr,50)},gs.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},gs.prototype.setUneditable=function(){},gs.prototype.needsContentAttribute=!1;function bc(x,z){if(z=z?rt(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 re=wt();z.autofocus=re==x||x.getAttribute("autofocus")!=null&&re==document.body}function te(){x.value=We.getValue()}var ae;if(x.form&&(sn(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var pe=x.form;ae=pe.submit;try{var Le=pe.submit=function(){te(),pe.submit=ae,pe.submit(),pe.submit=Le}}catch(Ue){}}z.finishInit=function(Ue){Ue.save=te,Ue.getTextArea=function(){return x},Ue.toTextArea=function(){Ue.toTextArea=isNaN,te(),x.parentNode.removeChild(Ue.getWrapperElement()),x.style.display="",x.form&&(Un(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ae))}},x.style.display="none";var We=Ga(function(Ue){return x.parentNode.insertBefore(Ue,x.nextSibling)},z);return We}function Kc(x){x.off=Un,x.on=sn,x.wheelEventPixels=Dd,x.Doc=Fi,x.splitLines=Wt,x.countColumn=dt,x.findColumn=cr,x.isWordChar=ve,x.Pass=en,x.signal=bt,x.Line=Xn,x.changeEnd=Cu,x.scrollbarModel=fu,x.Pos=ir,x.cmpPos=Rr,x.modes=pr,x.mimeModes=wr,x.resolveMode=Zt,x.getMode=jt,x.modeExtensions=kn,x.extendMode=lt,x.copyState=Ut,x.startState=an,x.innerMode=ke,x.commands=ms,x.keyMap=$a,x.keyName=Ml,x.isModifierKey=Ws,x.lookupKey=Ls,x.normalizeKeyMap=lo,x.StringStream=kt,x.SharedTextMarker=Ha,x.TextMarker=Zo,x.LineWidget=ts,x.e_preventDefault=or,x.e_stopPropagation=er,x.e_stop=Hr,x.addClass=yn,x.contains=Vt,x.rmClass=Ze,x.keyNames=yl}Oc(Ga),as(Ga);var zu="iter insert remove copy getEditor constructor".split(" ");for(var cu in Fi.prototype)Fi.prototype.hasOwnProperty(cu)&&Bt(zu,cu)<0&&(Ga.prototype[cu]=function(x){return function(){return x.apply(this.doc,arguments)}}(Fi.prototype[cu]));return gn(Fi),Ga.inputStyles={textarea:gs,contenteditable:_o},Ga.defineMode=function(x){!Ga.defaults.mode&&x!="null"&&(Ga.defaults.mode=x),nr.apply(this,arguments)},Ga.defineMIME=St,Ga.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),Ga.defineMIME("text/plain","null"),Ga.defineExtension=function(x,z){Ga.prototype[x]=z},Ga.defineDocExtension=function(x,z){Fi.prototype[x]=z},Ga.fromTextArea=bc,Kc(Ga),Ga.version="5.58.2",Ga})},49047:function(An,Jt,ne){(function(oe){oe(ne(4631),ne(29589),ne(52539))})(function(oe){"use strict";oe.defineMode("markdown",function(de,Fe){var Xe=oe.getMode(de,"text/html"),Se=Xe.name=="null";function Me(dt){if(oe.findModeByName){var Ae=oe.findModeByName(dt);Ae&&(dt=Ae.mime||Ae.mimes[0])}var Bt=oe.getMode(de,dt);return Bt.name=="null"?null:Bt}Fe.highlightFormatting===void 0&&(Fe.highlightFormatting=!1),Fe.maxBlockquoteDepth===void 0&&(Fe.maxBlockquoteDepth=0),Fe.taskLists===void 0&&(Fe.taskLists=!1),Fe.strikethrough===void 0&&(Fe.strikethrough=!1),Fe.emoji===void 0&&(Fe.emoji=!1),Fe.fencedCodeBlockHighlighting===void 0&&(Fe.fencedCodeBlockHighlighting=!0),Fe.fencedCodeBlockDefaultMode===void 0&&(Fe.fencedCodeBlockDefaultMode="text/plain"),Fe.xml===void 0&&(Fe.xml=!0),Fe.tokenTypeOverrides===void 0&&(Fe.tokenTypeOverrides={});var ce={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 we in ce)ce.hasOwnProperty(we)&&Fe.tokenTypeOverrides[we]&&(ce[we]=Fe.tokenTypeOverrides[we]);var ge=/^([*\-_])(?:\s*\1){2,}\s*$/,Be=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Qe=/^\[(x| )\](?=\s)/i,Oe=Fe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,et=/^ {0,3}(?:\={1,}|-{2,})\s*$/,ot=/^[^#!\[\]*_\\<>` "'(~:]+/,nt=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ve=/^\s*\[[^\]]+?\]:.*$/,xe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,mt=" ";function Lt(dt,Ae,Bt){return Ae.f=Ae.inline=Bt,Bt(dt,Ae)}function it(dt,Ae,Bt){return Ae.f=Ae.block=Bt,Bt(dt,Ae)}function pt(dt){return!dt||!/\S/.test(dt.string)}function Ce(dt){if(dt.linkTitle=!1,dt.linkHref=!1,dt.linkText=!1,dt.em=!1,dt.strong=!1,dt.strikethrough=!1,dt.quote=0,dt.indentedCode=!1,dt.f==Ze){var Ae=Se;if(!Ae){var Bt=oe.innerMode(Xe,dt.htmlState);Ae=Bt.mode.name=="xml"&&Bt.state.tagStart===null&&!Bt.state.context&&Bt.state.tokenize.isInText}Ae&&(dt.f=ut,dt.block=be,dt.htmlState=null)}return dt.trailingSpace=0,dt.trailingSpaceNewLine=!1,dt.prevLine=dt.thisLine,dt.thisLine={stream:null},null}function be(dt,Ae){var Bt=dt.column()===Ae.indentation,Cn=pt(Ae.prevLine.stream),en=Ae.indentedCode,Ct=Ae.prevLine.hr,Rt=Ae.list!==!1,tn=(Ae.listStack[Ae.listStack.length-1]||0)+3;Ae.indentedCode=!1;var cr=Ae.indentation;if(Ae.indentationDiff===null&&(Ae.indentationDiff=Ae.indentation,Rt)){for(Ae.list=null;cr<Ae.listStack[Ae.listStack.length-1];)Ae.listStack.pop(),Ae.listStack.length?Ae.indentation=Ae.listStack[Ae.listStack.length-1]:Ae.list=!1;Ae.list!==!1&&(Ae.indentationDiff=cr-Ae.listStack[Ae.listStack.length-1])}var Gn=!Cn&&!Ct&&!Ae.prevLine.header&&(!Rt||!en)&&!Ae.prevLine.fencedCodeEnd,qt=(Ae.list===!1||Ct||Cn)&&Ae.indentation<=tn&&dt.match(ge),Fn=null;if(Ae.indentationDiff>=4&&(en||Ae.prevLine.fencedCodeEnd||Ae.prevLine.header||Cn))return dt.skipToEnd(),Ae.indentedCode=!0,ce.code;if(dt.eatSpace())return null;if(Bt&&Ae.indentation<=tn&&(Fn=dt.match(Oe))&&Fn[1].length<=6)return Ae.quote=0,Ae.header=Fn[1].length,Ae.thisLine.header=!0,Fe.highlightFormatting&&(Ae.formatting="header"),Ae.f=Ae.inline,Et(Ae);if(Ae.indentation<=tn&&dt.eat(">"))return Ae.quote=Bt?1:Ae.quote+1,Fe.highlightFormatting&&(Ae.formatting="quote"),dt.eatSpace(),Et(Ae);if(!qt&&!Ae.setext&&Bt&&Ae.indentation<=tn&&(Fn=dt.match(Be))){var lr=Fn[1]?"ol":"ul";return Ae.indentation=cr+dt.current().length,Ae.list=!0,Ae.quote=0,Ae.listStack.push(Ae.indentation),Ae.em=!1,Ae.strong=!1,Ae.code=!1,Ae.strikethrough=!1,Fe.taskLists&&dt.match(Qe,!1)&&(Ae.taskList=!0),Ae.f=Ae.inline,Fe.highlightFormatting&&(Ae.formatting=["list","list-"+lr]),Et(Ae)}else{if(Bt&&Ae.indentation<=tn&&(Fn=dt.match(nt,!0)))return Ae.quote=0,Ae.fencedEndRE=new RegExp(Fn[1]+"+ *$"),Ae.localMode=Fe.fencedCodeBlockHighlighting&&Me(Fn[2]||Fe.fencedCodeBlockDefaultMode),Ae.localMode&&(Ae.localState=oe.startState(Ae.localMode)),Ae.f=Ae.block=je,Fe.highlightFormatting&&(Ae.formatting="code-block"),Ae.code=-1,Et(Ae);if(Ae.setext||(!Gn||!Rt)&&!Ae.quote&&Ae.list===!1&&!Ae.code&&!qt&&!Ve.test(dt.string)&&(Fn=dt.lookAhead(1))&&(Fn=Fn.match(et)))return Ae.setext?(Ae.header=Ae.setext,Ae.setext=0,dt.skipToEnd(),Fe.highlightFormatting&&(Ae.formatting="header")):(Ae.header=Fn[0].charAt(0)=="="?1:2,Ae.setext=Ae.header),Ae.thisLine.header=!0,Ae.f=Ae.inline,Et(Ae);if(qt)return dt.skipToEnd(),Ae.hr=!0,Ae.thisLine.hr=!0,ce.hr;if(dt.peek()==="[")return Lt(dt,Ae,Ft)}return Lt(dt,Ae,Ae.inline)}function Ze(dt,Ae){var Bt=Xe.token(dt,Ae.htmlState);if(!Se){var Cn=oe.innerMode(Xe,Ae.htmlState);(Cn.mode.name=="xml"&&Cn.state.tagStart===null&&!Cn.state.context&&Cn.state.tokenize.isInText||Ae.md_inside&&dt.current().indexOf(">")>-1)&&(Ae.f=ut,Ae.block=be,Ae.htmlState=null)}return Bt}function je(dt,Ae){var Bt=Ae.listStack[Ae.listStack.length-1]||0,Cn=Ae.indentation<Bt,en=Bt+3;if(Ae.fencedEndRE&&Ae.indentation<=en&&(Cn||dt.match(Ae.fencedEndRE))){Fe.highlightFormatting&&(Ae.formatting="code-block");var Ct;return Cn||(Ct=Et(Ae)),Ae.localMode=Ae.localState=null,Ae.block=be,Ae.f=ut,Ae.fencedEndRE=null,Ae.code=0,Ae.thisLine.fencedCodeEnd=!0,Cn?it(dt,Ae,Ae.block):Ct}else return Ae.localMode?Ae.localMode.token(dt,Ae.localState):(dt.skipToEnd(),ce.code)}function Et(dt){var Ae=[];if(dt.formatting){Ae.push(ce.formatting),typeof dt.formatting=="string"&&(dt.formatting=[dt.formatting]);for(var Bt=0;Bt<dt.formatting.length;Bt++)Ae.push(ce.formatting+"-"+dt.formatting[Bt]),dt.formatting[Bt]==="header"&&Ae.push(ce.formatting+"-"+dt.formatting[Bt]+"-"+dt.header),dt.formatting[Bt]==="quote"&&(!Fe.maxBlockquoteDepth||Fe.maxBlockquoteDepth>=dt.quote?Ae.push(ce.formatting+"-"+dt.formatting[Bt]+"-"+dt.quote):Ae.push("error"))}if(dt.taskOpen)return Ae.push("meta"),Ae.length?Ae.join(" "):null;if(dt.taskClosed)return Ae.push("property"),Ae.length?Ae.join(" "):null;if(dt.linkHref?Ae.push(ce.linkHref,"url"):(dt.strong&&Ae.push(ce.strong),dt.em&&Ae.push(ce.em),dt.strikethrough&&Ae.push(ce.strikethrough),dt.emoji&&Ae.push(ce.emoji),dt.linkText&&Ae.push(ce.linkText),dt.code&&Ae.push(ce.code),dt.image&&Ae.push(ce.image),dt.imageAltText&&Ae.push(ce.imageAltText,"link"),dt.imageMarker&&Ae.push(ce.imageMarker)),dt.header&&Ae.push(ce.header,ce.header+"-"+dt.header),dt.quote&&(Ae.push(ce.quote),!Fe.maxBlockquoteDepth||Fe.maxBlockquoteDepth>=dt.quote?Ae.push(ce.quote+"-"+dt.quote):Ae.push(ce.quote+"-"+Fe.maxBlockquoteDepth)),dt.list!==!1){var Cn=(dt.listStack.length-1)%3;Cn?Cn===1?Ae.push(ce.list2):Ae.push(ce.list3):Ae.push(ce.list1)}return dt.trailingSpaceNewLine?Ae.push("trailing-space-new-line"):dt.trailingSpace&&Ae.push("trailing-space-"+(dt.trailingSpace%2?"a":"b")),Ae.length?Ae.join(" "):null}function ft(dt,Ae){if(dt.match(ot,!0))return Et(Ae)}function ut(dt,Ae){var Bt=Ae.text(dt,Ae);if(typeof Bt!="undefined")return Bt;if(Ae.list)return Ae.list=null,Et(Ae);if(Ae.taskList){var Cn=dt.match(Qe,!0)[1]===" ";return Cn?Ae.taskOpen=!0:Ae.taskClosed=!0,Fe.highlightFormatting&&(Ae.formatting="task"),Ae.taskList=!1,Et(Ae)}if(Ae.taskOpen=!1,Ae.taskClosed=!1,Ae.header&&dt.match(/^#+$/,!0))return Fe.highlightFormatting&&(Ae.formatting="header"),Et(Ae);var en=dt.next();if(Ae.linkTitle){Ae.linkTitle=!1;var Ct=en;en==="("&&(Ct=")"),Ct=(Ct+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Rt="^\\s*(?:[^"+Ct+"\\\\]+|\\\\\\\\|\\\\.)"+Ct;if(dt.match(new RegExp(Rt),!0))return ce.linkHref}if(en==="`"){var tn=Ae.formatting;Fe.highlightFormatting&&(Ae.formatting="code"),dt.eatWhile("`");var cr=dt.current().length;if(Ae.code==0&&(!Ae.quote||cr==1))return Ae.code=cr,Et(Ae);if(cr==Ae.code){var Gn=Et(Ae);return Ae.code=0,Gn}else return Ae.formatting=tn,Et(Ae)}else if(Ae.code)return Et(Ae);if(en==="\\"&&(dt.next(),Fe.highlightFormatting)){var qt=Et(Ae),Fn=ce.formatting+"-escape";return qt?qt+" "+Fn:Fn}if(en==="!"&&dt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ae.imageMarker=!0,Ae.image=!0,Fe.highlightFormatting&&(Ae.formatting="image"),Et(Ae);if(en==="["&&Ae.imageMarker&&dt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ae.imageMarker=!1,Ae.imageAltText=!0,Fe.highlightFormatting&&(Ae.formatting="image"),Et(Ae);if(en==="]"&&Ae.imageAltText){Fe.highlightFormatting&&(Ae.formatting="image");var qt=Et(Ae);return Ae.imageAltText=!1,Ae.image=!1,Ae.inline=Ae.f=Vt,qt}if(en==="["&&!Ae.image)return Ae.linkText&&dt.match(/^.*?\]/)||(Ae.linkText=!0,Fe.highlightFormatting&&(Ae.formatting="link")),Et(Ae);if(en==="]"&&Ae.linkText){Fe.highlightFormatting&&(Ae.formatting="link");var qt=Et(Ae);return Ae.linkText=!1,Ae.inline=Ae.f=dt.match(/\(.*?\)| ?\[.*?\]/,!1)?Vt:ut,qt}if(en==="<"&&dt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ae.f=Ae.inline=Re,Fe.highlightFormatting&&(Ae.formatting="link");var qt=Et(Ae);return qt?qt+=" ":qt="",qt+ce.linkInline}if(en==="<"&&dt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ae.f=Ae.inline=Re,Fe.highlightFormatting&&(Ae.formatting="link");var qt=Et(Ae);return qt?qt+=" ":qt="",qt+ce.linkEmail}if(Fe.xml&&en==="<"&&dt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var lr=dt.string.indexOf(">",dt.pos);if(lr!=-1){var nn=dt.string.substring(dt.start,lr);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(nn)&&(Ae.md_inside=!0)}return dt.backUp(1),Ae.htmlState=oe.startState(Xe),it(dt,Ae,Ze)}if(Fe.xml&&en==="<"&&dt.match(/^\/\w*?>/))return Ae.md_inside=!1,"tag";if(en==="*"||en==="_"){for(var ze=1,ue=dt.pos==1?" ":dt.string.charAt(dt.pos-2);ze<3&&dt.eat(en);)ze++;var fe=dt.peek()||" ",ve=!/\s/.test(fe)&&(!xe.test(fe)||/\s/.test(ue)||xe.test(ue)),he=!/\s/.test(ue)&&(!xe.test(ue)||/\s/.test(fe)||xe.test(fe)),le=null,Ne=null;if(ze%2&&(!Ae.em&&ve&&(en==="*"||!he||xe.test(ue))?le=!0:Ae.em==en&&he&&(en==="*"||!ve||xe.test(fe))&&(le=!1)),ze>1&&(!Ae.strong&&ve&&(en==="*"||!he||xe.test(ue))?Ne=!0:Ae.strong==en&&he&&(en==="*"||!ve||xe.test(fe))&&(Ne=!1)),Ne!=null||le!=null){Fe.highlightFormatting&&(Ae.formatting=le==null?"strong":Ne==null?"em":"strong em"),le===!0&&(Ae.em=en),Ne===!0&&(Ae.strong=en);var Gn=Et(Ae);return le===!1&&(Ae.em=!1),Ne===!1&&(Ae.strong=!1),Gn}}else if(en===" "&&(dt.eat("*")||dt.eat("_"))){if(dt.peek()===" ")return Et(Ae);dt.backUp(1)}if(Fe.strikethrough){if(en==="~"&&dt.eatWhile(en)){if(Ae.strikethrough){Fe.highlightFormatting&&(Ae.formatting="strikethrough");var Gn=Et(Ae);return Ae.strikethrough=!1,Gn}else if(dt.match(/^[^\s]/,!1))return Ae.strikethrough=!0,Fe.highlightFormatting&&(Ae.formatting="strikethrough"),Et(Ae)}else if(en===" "&&dt.match(/^~~/,!0)){if(dt.peek()===" ")return Et(Ae);dt.backUp(2)}}if(Fe.emoji&&en===":"&&dt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ae.emoji=!0,Fe.highlightFormatting&&(Ae.formatting="emoji");var Te=Et(Ae);return Ae.emoji=!1,Te}return en===" "&&(dt.match(/^ +$/,!1)?Ae.trailingSpace++:Ae.trailingSpace&&(Ae.trailingSpaceNewLine=!0)),Et(Ae)}function Re(dt,Ae){var Bt=dt.next();if(Bt===">"){Ae.f=Ae.inline=ut,Fe.highlightFormatting&&(Ae.formatting="link");var Cn=Et(Ae);return Cn?Cn+=" ":Cn="",Cn+ce.linkInline}return dt.match(/^[^>]+/,!0),ce.linkInline}function Vt(dt,Ae){if(dt.eatSpace())return null;var Bt=dt.next();return Bt==="("||Bt==="["?(Ae.f=Ae.inline=yn(Bt==="("?")":"]"),Fe.highlightFormatting&&(Ae.formatting="link-string"),Ae.linkHref=!0,Et(Ae)):"error"}var wt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function yn(dt){return function(Ae,Bt){var Cn=Ae.next();if(Cn===dt){Bt.f=Bt.inline=ut,Fe.highlightFormatting&&(Bt.formatting="link-string");var en=Et(Bt);return Bt.linkHref=!1,en}return Ae.match(wt[dt]),Bt.linkHref=!0,Et(Bt)}}function Ft(dt,Ae){return dt.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ae.f=ln,dt.next(),Fe.highlightFormatting&&(Ae.formatting="link"),Ae.linkText=!0,Et(Ae)):Lt(dt,Ae,ut)}function ln(dt,Ae){if(dt.match(/^\]:/,!0)){Ae.f=Ae.inline=Kn,Fe.highlightFormatting&&(Ae.formatting="link");var Bt=Et(Ae);return Ae.linkText=!1,Bt}return dt.match(/^([^\]\\]|\\.)+/,!0),ce.linkText}function Kn(dt,Ae){return dt.eatSpace()?null:(dt.match(/^[^\s]+/,!0),dt.peek()===void 0?Ae.linkTitle=!0:dt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ae.f=Ae.inline=ut,ce.linkHref+" url")}var rt={startState:function(){return{f:be,prevLine:{stream:null},thisLine:{stream:null},block:be,htmlState:null,indentation:0,inline:ut,text:ft,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(dt){return{f:dt.f,prevLine:dt.prevLine,thisLine:dt.thisLine,block:dt.block,htmlState:dt.htmlState&&oe.copyState(Xe,dt.htmlState),indentation:dt.indentation,localMode:dt.localMode,localState:dt.localMode?oe.copyState(dt.localMode,dt.localState):null,inline:dt.inline,text:dt.text,formatting:!1,linkText:dt.linkText,linkTitle:dt.linkTitle,linkHref:dt.linkHref,code:dt.code,em:dt.em,strong:dt.strong,strikethrough:dt.strikethrough,emoji:dt.emoji,header:dt.header,setext:dt.setext,hr:dt.hr,taskList:dt.taskList,list:dt.list,listStack:dt.listStack.slice(0),quote:dt.quote,indentedCode:dt.indentedCode,trailingSpace:dt.trailingSpace,trailingSpaceNewLine:dt.trailingSpaceNewLine,md_inside:dt.md_inside,fencedEndRE:dt.fencedEndRE}},token:function(dt,Ae){if(Ae.formatting=!1,dt!=Ae.thisLine.stream){if(Ae.header=0,Ae.hr=!1,dt.match(/^\s*$/,!0))return Ce(Ae),null;if(Ae.prevLine=Ae.thisLine,Ae.thisLine={stream:dt},Ae.taskList=!1,Ae.trailingSpace=0,Ae.trailingSpaceNewLine=!1,!Ae.localState&&(Ae.f=Ae.block,Ae.f!=Ze)){var Bt=dt.match(/^\s*/,!0)[0].replace(/\t/g,mt).length;if(Ae.indentation=Bt,Ae.indentationDiff=null,Bt>0)return null}}return Ae.f(dt,Ae)},innerMode:function(dt){return dt.block==Ze?{state:dt.htmlState,mode:Xe}:dt.localState?{state:dt.localState,mode:dt.localMode}:{state:dt,mode:rt}},indent:function(dt,Ae,Bt){return dt.block==Ze&&Xe.indent?Xe.indent(dt.htmlState,Ae,Bt):dt.localState&&dt.localMode.indent?dt.localMode.indent(dt.localState,Ae,Bt):oe.Pass},blankLine:Ce,getType:Et,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return rt},"xml"),oe.defineMIME("text/markdown","markdown"),oe.defineMIME("text/x-markdown","markdown")})},52539:function(An,Jt,ne){(function(oe){oe(ne(4631))})(function(oe){"use strict";oe.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<oe.modeInfo.length;de++){var Fe=oe.modeInfo[de];Fe.mimes&&(Fe.mime=Fe.mimes[0])}oe.findModeByMIME=function(Xe){Xe=Xe.toLowerCase();for(var Se=0;Se<oe.modeInfo.length;Se++){var Me=oe.modeInfo[Se];if(Me.mime==Xe)return Me;if(Me.mimes){for(var ce=0;ce<Me.mimes.length;ce++)if(Me.mimes[ce]==Xe)return Me}}if(/\+xml$/.test(Xe))return oe.findModeByMIME("application/xml");if(/\+json$/.test(Xe))return oe.findModeByMIME("application/json")},oe.findModeByExtension=function(Xe){Xe=Xe.toLowerCase();for(var Se=0;Se<oe.modeInfo.length;Se++){var Me=oe.modeInfo[Se];if(Me.ext){for(var ce=0;ce<Me.ext.length;ce++)if(Me.ext[ce]==Xe)return Me}}},oe.findModeByFileName=function(Xe){for(var Se=0;Se<oe.modeInfo.length;Se++){var Me=oe.modeInfo[Se];if(Me.file&&Me.file.test(Xe))return Me}var ce=Xe.lastIndexOf("."),we=ce>-1&&Xe.substring(ce+1,Xe.length);if(we)return oe.findModeByExtension(we)},oe.findModeByName=function(Xe){Xe=Xe.toLowerCase();for(var Se=0;Se<oe.modeInfo.length;Se++){var Me=oe.modeInfo[Se];if(Me.name.toLowerCase()==Xe)return Me;if(Me.alias){for(var ce=0;ce<Me.alias.length;ce++)if(Me.alias[ce].toLowerCase()==Xe)return Me}}}})},80785:function(An,Jt,ne){(function(oe){oe(ne(4631))})(function(oe){"use strict";oe.defineMode("stex",function(de,Fe){"use strict";function Xe(ot,nt){ot.cmdState.push(nt)}function Se(ot){return ot.cmdState.length>0?ot.cmdState[ot.cmdState.length-1]:null}function Me(ot){var nt=ot.cmdState.pop();nt&&nt.closeBracket()}function ce(ot){for(var nt=ot.cmdState,Ve=nt.length-1;Ve>=0;Ve--){var xe=nt[Ve];if(xe.name!="DEFAULT")return xe}return{styleIdentifier:function(){return null}}}function we(ot,nt,Ve){return function(){this.name=ot,this.bracketNo=0,this.style=nt,this.styles=Ve,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ge={};ge.importmodule=we("importmodule","tag",["string","builtin"]),ge.documentclass=we("documentclass","tag",["","atom"]),ge.usepackage=we("usepackage","tag",["atom"]),ge.begin=we("begin","tag",["atom"]),ge.end=we("end","tag",["atom"]),ge.label=we("label","tag",["atom"]),ge.ref=we("ref","tag",["atom"]),ge.eqref=we("eqref","tag",["atom"]),ge.cite=we("cite","tag",["atom"]),ge.bibitem=we("bibitem","tag",["atom"]),ge.Bibitem=we("Bibitem","tag",["atom"]),ge.RBibitem=we("RBibitem","tag",["atom"]),ge.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Be(ot,nt){ot.f=nt}function Qe(ot,nt){var Ve;if(ot.match(/^\\[a-zA-Z@]+/)){var xe=ot.current().slice(1);return Ve=ge.hasOwnProperty(xe)?ge[xe]:ge.DEFAULT,Ve=new Ve,Xe(nt,Ve),Be(nt,et),Ve.style}if(ot.match(/^\\[$&%#{}_]/)||ot.match(/^\\[,;!\/\\]/))return"tag";if(ot.match("\\["))return Be(nt,function(Lt,it){return Oe(Lt,it,"\\]")}),"keyword";if(ot.match("\\("))return Be(nt,function(Lt,it){return Oe(Lt,it,"\\)")}),"keyword";if(ot.match("$$"))return Be(nt,function(Lt,it){return Oe(Lt,it,"$$")}),"keyword";if(ot.match("$"))return Be(nt,function(Lt,it){return Oe(Lt,it,"$")}),"keyword";var mt=ot.next();if(mt=="%")return ot.skipToEnd(),"comment";if(mt=="}"||mt=="]"){if(Ve=Se(nt),Ve)Ve.closeBracket(mt),Be(nt,et);else return"error";return"bracket"}else return mt=="{"||mt=="["?(Ve=ge.DEFAULT,Ve=new Ve,Xe(nt,Ve),"bracket"):/\d/.test(mt)?(ot.eatWhile(/[\w.%]/),"atom"):(ot.eatWhile(/[\w\-_]/),Ve=ce(nt),Ve.name=="begin"&&(Ve.argument=ot.current()),Ve.styleIdentifier())}function Oe(ot,nt,Ve){if(ot.eatSpace())return null;if(Ve&&ot.match(Ve))return Be(nt,Qe),"keyword";if(ot.match(/^\\[a-zA-Z@]+/))return"tag";if(ot.match(/^[a-zA-Z]+/))return"variable-2";if(ot.match(/^\\[$&%#{}_]/)||ot.match(/^\\[,;!\/]/)||ot.match(/^[\^_&]/))return"tag";if(ot.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(ot.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var xe=ot.next();return xe=="{"||xe=="}"||xe=="["||xe=="]"||xe=="("||xe==")"?"bracket":xe=="%"?(ot.skipToEnd(),"comment"):"error"}function et(ot,nt){var Ve=ot.peek(),xe;return Ve=="{"||Ve=="["?(xe=Se(nt),xe.openBracket(Ve),ot.eat(Ve),Be(nt,Qe),"bracket"):/[ \t\r]/.test(Ve)?(ot.eat(Ve),null):(Be(nt,Qe),Me(nt),Qe(ot,nt))}return{startState:function(){var ot=Fe.inMathMode?function(nt,Ve){return Oe(nt,Ve)}:Qe;return{cmdState:[],f:ot}},copyState:function(ot){return{cmdState:ot.cmdState.slice(),f:ot.f}},token:function(ot,nt){return nt.f(ot,nt)},blankLine:function(ot){ot.f=Qe,ot.cmdState.length=0},lineComment:"%"}}),oe.defineMIME("text/x-stex","stex"),oe.defineMIME("text/x-latex","stex")})},29589:function(An,Jt,ne){(function(oe){oe(ne(4631))})(function(oe){"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},Fe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};oe.defineMode("xml",function(Xe,Se){var Me=Xe.indentUnit,ce={},we=Se.htmlMode?de:Fe;for(var ge in we)ce[ge]=we[ge];for(var ge in Se)ce[ge]=Se[ge];var Be,Qe;function Oe(Re,Vt){function wt(ln){return Vt.tokenize=ln,ln(Re,Vt)}var yn=Re.next();if(yn=="<")return Re.eat("!")?Re.eat("[")?Re.match("CDATA[")?wt(nt("atom","]]>")):null:Re.match("--")?wt(nt("comment","-->")):Re.match("DOCTYPE",!0,!0)?(Re.eatWhile(/[\w\._\-]/),wt(Ve(1))):null:Re.eat("?")?(Re.eatWhile(/[\w\._\-]/),Vt.tokenize=nt("meta","?>"),"meta"):(Be=Re.eat("/")?"closeTag":"openTag",Vt.tokenize=et,"tag bracket");if(yn=="&"){var Ft;return Re.eat("#")?Re.eat("x")?Ft=Re.eatWhile(/[a-fA-F\d]/)&&Re.eat(";"):Ft=Re.eatWhile(/[\d]/)&&Re.eat(";"):Ft=Re.eatWhile(/[\w\.\-:]/)&&Re.eat(";"),Ft?"atom":"error"}else return Re.eatWhile(/[^&<]/),null}Oe.isInText=!0;function et(Re,Vt){var wt=Re.next();if(wt==">"||wt=="/"&&Re.eat(">"))return Vt.tokenize=Oe,Be=wt==">"?"endTag":"selfcloseTag","tag bracket";if(wt=="=")return Be="equals",null;if(wt=="<"){Vt.tokenize=Oe,Vt.state=it,Vt.tagName=Vt.tagStart=null;var yn=Vt.tokenize(Re,Vt);return yn?yn+" tag error":"tag error"}else return/[\'\"]/.test(wt)?(Vt.tokenize=ot(wt),Vt.stringStartCol=Re.column(),Vt.tokenize(Re,Vt)):(Re.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function ot(Re){var Vt=function(wt,yn){for(;!wt.eol();)if(wt.next()==Re){yn.tokenize=et;break}return"string"};return Vt.isInAttribute=!0,Vt}function nt(Re,Vt){return function(wt,yn){for(;!wt.eol();){if(wt.match(Vt)){yn.tokenize=Oe;break}wt.next()}return Re}}function Ve(Re){return function(Vt,wt){for(var yn;(yn=Vt.next())!=null;){if(yn=="<")return wt.tokenize=Ve(Re+1),wt.tokenize(Vt,wt);if(yn==">")if(Re==1){wt.tokenize=Oe;break}else return wt.tokenize=Ve(Re-1),wt.tokenize(Vt,wt)}return"meta"}}function xe(Re,Vt,wt){this.prev=Re.context,this.tagName=Vt,this.indent=Re.indented,this.startOfLine=wt,(ce.doNotIndent.hasOwnProperty(Vt)||Re.context&&Re.context.noIndent)&&(this.noIndent=!0)}function mt(Re){Re.context&&(Re.context=Re.context.prev)}function Lt(Re,Vt){for(var wt;;){if(!Re.context||(wt=Re.context.tagName,!ce.contextGrabbers.hasOwnProperty(wt)||!ce.contextGrabbers[wt].hasOwnProperty(Vt)))return;mt(Re)}}function it(Re,Vt,wt){return Re=="openTag"?(wt.tagStart=Vt.column(),pt):Re=="closeTag"?Ce:it}function pt(Re,Vt,wt){return Re=="word"?(wt.tagName=Vt.current(),Qe="tag",je):ce.allowMissingTagName&&Re=="endTag"?(Qe="tag bracket",je(Re,Vt,wt)):(Qe="error",pt)}function Ce(Re,Vt,wt){if(Re=="word"){var yn=Vt.current();return wt.context&&wt.context.tagName!=yn&&ce.implicitlyClosed.hasOwnProperty(wt.context.tagName)&&mt(wt),wt.context&&wt.context.tagName==yn||ce.matchClosing===!1?(Qe="tag",be):(Qe="tag error",Ze)}else return ce.allowMissingTagName&&Re=="endTag"?(Qe="tag bracket",be(Re,Vt,wt)):(Qe="error",Ze)}function be(Re,Vt,wt){return Re!="endTag"?(Qe="error",be):(mt(wt),it)}function Ze(Re,Vt,wt){return Qe="error",be(Re,Vt,wt)}function je(Re,Vt,wt){if(Re=="word")return Qe="attribute",Et;if(Re=="endTag"||Re=="selfcloseTag"){var yn=wt.tagName,Ft=wt.tagStart;return wt.tagName=wt.tagStart=null,Re=="selfcloseTag"||ce.autoSelfClosers.hasOwnProperty(yn)?Lt(wt,yn):(Lt(wt,yn),wt.context=new xe(wt,yn,Ft==wt.indented)),it}return Qe="error",je}function Et(Re,Vt,wt){return Re=="equals"?ft:(ce.allowMissing||(Qe="error"),je(Re,Vt,wt))}function ft(Re,Vt,wt){return Re=="string"?ut:Re=="word"&&ce.allowUnquoted?(Qe="string",je):(Qe="error",je(Re,Vt,wt))}function ut(Re,Vt,wt){return Re=="string"?ut:je(Re,Vt,wt)}return{startState:function(Re){var Vt={tokenize:Oe,state:it,indented:Re||0,tagName:null,tagStart:null,context:null};return Re!=null&&(Vt.baseIndent=Re),Vt},token:function(Re,Vt){if(!Vt.tagName&&Re.sol()&&(Vt.indented=Re.indentation()),Re.eatSpace())return null;Be=null;var wt=Vt.tokenize(Re,Vt);return(wt||Be)&&wt!="comment"&&(Qe=null,Vt.state=Vt.state(Be||wt,Re,Vt),Qe&&(wt=Qe=="error"?wt+" error":Qe)),wt},indent:function(Re,Vt,wt){var yn=Re.context;if(Re.tokenize.isInAttribute)return Re.tagStart==Re.indented?Re.stringStartCol+1:Re.indented+Me;if(yn&&yn.noIndent)return oe.Pass;if(Re.tokenize!=et&&Re.tokenize!=Oe)return wt?wt.match(/^(\s*)/)[0].length:0;if(Re.tagName)return ce.multilineTagIndentPastTag!==!1?Re.tagStart+Re.tagName.length+2:Re.tagStart+Me*(ce.multilineTagIndentFactor||1);if(ce.alignCDATA&&/<!\[CDATA\[/.test(Vt))return 0;var Ft=Vt&&/^<(\/)?([\w_:\.-]*)/.exec(Vt);if(Ft&&Ft[1])for(;yn;)if(yn.tagName==Ft[2]){yn=yn.prev;break}else if(ce.implicitlyClosed.hasOwnProperty(yn.tagName))yn=yn.prev;else break;else if(Ft)for(;yn;){var ln=ce.contextGrabbers[yn.tagName];if(ln&&ln.hasOwnProperty(Ft[2]))yn=yn.prev;else break}for(;yn&&yn.prev&&!yn.startOfLine;)yn=yn.prev;return yn?yn.indent+Me:Re.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ce.htmlMode?"html":"xml",helperType:ce.htmlMode?"html":"xml",skipAttribute:function(Re){Re.state==ft&&(Re.state=je)},xmlCurrentTag:function(Re){return Re.tagName?{name:Re.tagName,close:Re.type=="closeTag"}:null},xmlCurrentContext:function(Re){for(var Vt=[],wt=Re.context;wt;wt=wt.prev)wt.tagName&&Vt.push(wt.tagName);return Vt.reverse()}}}),oe.defineMIME("text/xml","xml"),oe.defineMIME("application/xml","xml"),oe.mimeModes.hasOwnProperty("text/html")||oe.defineMIME("text/html",{name:"xml",htmlMode:!0})})},15979:function(An,Jt,ne){"use strict";ne.d(Jt,{hP:function(){return nn}});var oe=function(ze,ue){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,ve){fe.__proto__=ve}||function(fe,ve){for(var he in ve)Object.prototype.hasOwnProperty.call(ve,he)&&(fe[he]=ve[he])})(ze,ue)};function de(ze,ue){function fe(){this.constructor=ze}oe(ze,ue),ze.prototype=ue===null?Object.create(ue):(fe.prototype=ue.prototype,new fe)}function Fe(ze,ue,fe,ve){return new(fe||(fe=Promise))(function(he,le){function Ne(At){try{gt(ve.next(At))}catch(Tt){le(Tt)}}function Te(At){try{gt(ve.throw(At))}catch(Tt){le(Tt)}}function gt(At){var Tt;At.done?he(At.value):(Tt=At.value,Tt instanceof fe?Tt:new fe(function(zt){zt(Tt)})).then(Ne,Te)}gt((ve=ve.apply(ze,ue||[])).next())})}function Xe(ze,ue){var fe,ve,he,le,Ne={label:0,sent:function(){if(1&he[0])throw he[1];return he[1]},trys:[],ops:[]};return le={next:Te(0),throw:Te(1),return:Te(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function Te(gt){return function(At){return function(Tt){if(fe)throw new TypeError("Generator is already executing.");for(;Ne;)try{if(fe=1,ve&&(he=2&Tt[0]?ve.return:Tt[0]?ve.throw||((he=ve.return)&&he.call(ve),0):ve.next)&&!(he=he.call(ve,Tt[1])).done)return he;switch(ve=0,he&&(Tt=[2&Tt[0],he.value]),Tt[0]){case 0:case 1:he=Tt;break;case 4:return Ne.label++,{value:Tt[1],done:!1};case 5:Ne.label++,ve=Tt[1],Tt=[0];continue;case 7:Tt=Ne.ops.pop(),Ne.trys.pop();continue;default:if(he=Ne.trys,!((he=he.length>0&&he[he.length-1])||Tt[0]!==6&&Tt[0]!==2)){Ne=0;continue}if(Tt[0]===3&&(!he||Tt[1]>he[0]&&Tt[1]<he[3])){Ne.label=Tt[1];break}if(Tt[0]===6&&Ne.label<he[1]){Ne.label=he[1],he=Tt;break}if(he&&Ne.label<he[2]){Ne.label=he[2],Ne.ops.push(Tt);break}he[2]&&Ne.ops.pop(),Ne.trys.pop();continue}Tt=ue.call(ze,Ne)}catch(zt){Tt=[6,zt],ve=0}finally{fe=he=0}if(5&Tt[0])throw Tt[1];return{value:Tt[0]?Tt[1]:void 0,done:!0}}([gt,At])}}}function Se(){for(var ze=0,ue=0,fe=arguments.length;ue<fe;ue++)ze+=arguments[ue].length;var ve=Array(ze),he=0;for(ue=0;ue<fe;ue++)for(var le=arguments[ue],Ne=0,Te=le.length;Ne<Te;Ne++,he++)ve[he]=le[Ne];return ve}var Me=function(){function ze(){}return ze.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ze.setAttributes=function(ue,fe){for(var ve=0,he=fe;ve<he.length;ve++){var le=he[ve],Ne=le[0],Te=le[1];ue.setAttribute(Ne,Te)}},ze.createRect=function(ue,fe,ve){var he=document.createElementNS("http://www.w3.org/2000/svg","rect");return he.setAttribute("width",ue.toString()),he.setAttribute("height",fe.toString()),ve&&ze.setAttributes(he,ve),he},ze.createLine=function(ue,fe,ve,he,le){var Ne=document.createElementNS("http://www.w3.org/2000/svg","line");return Ne.setAttribute("x1",ue.toString()),Ne.setAttribute("y1",fe.toString()),Ne.setAttribute("x2",ve.toString()),Ne.setAttribute("y2",he.toString()),le&&ze.setAttributes(Ne,le),Ne},ze.createPolygon=function(ue,fe){var ve=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ve.setAttribute("points",ue),fe&&ze.setAttributes(ve,fe),ve},ze.createCircle=function(ue,fe){var ve=document.createElementNS("http://www.w3.org/2000/svg","circle");return ve.setAttribute("cx",(ue/2).toString()),ve.setAttribute("cy",(ue/2).toString()),ve.setAttribute("r",ue.toString()),fe&&ze.setAttributes(ve,fe),ve},ze.createEllipse=function(ue,fe,ve){var he=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return he.setAttribute("cx",(ue/2).toString()),he.setAttribute("cy",(fe/2).toString()),he.setAttribute("rx",(ue/2).toString()),he.setAttribute("ry",(fe/2).toString()),ve&&ze.setAttributes(he,ve),he},ze.createGroup=function(ue){var fe=document.createElementNS("http://www.w3.org/2000/svg","g");return ue&&ze.setAttributes(fe,ue),fe},ze.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ze.createMarker=function(ue,fe,ve,he,le,Ne,Te){var gt=document.createElementNS("http://www.w3.org/2000/svg","marker");return ze.setAttributes(gt,[["id",ue],["orient",fe],["markerWidth",ve.toString()],["markerHeight",he.toString()],["refX",le.toString()],["refY",Ne.toString()]]),gt.appendChild(Te),gt},ze.createText=function(ue){var fe=document.createElementNS("http://www.w3.org/2000/svg","text");return fe.setAttribute("x","0"),fe.setAttribute("y","0"),ue&&ze.setAttributes(fe,ue),fe},ze.createTSpan=function(ue,fe){var ve=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ve.textContent=ue,fe&&ze.setAttributes(ve,fe),ve},ze.createImage=function(ue){var fe=document.createElementNS("http://www.w3.org/2000/svg","image");return ue&&ze.setAttributes(fe,ue),fe},ze.createPoint=function(ue,fe){var ve=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ve.x=ue,ve.y=fe,ve},ze.createPath=function(ue,fe){var ve=document.createElementNS("http://www.w3.org/2000/svg","path");return ve.setAttribute("d",ue),fe&&ze.setAttributes(ve,fe),ve},ze}(),ce=function(){function ze(){}return ze.addKey=function(ue){ze.key=ue},Object.defineProperty(ze,"isLicensed",{get:function(){return!!ze.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ze.key)},enumerable:!1,configurable:!0}),ze}(),we=function(){function ze(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ze.prototype.rasterize=function(ue,fe,ve){var he=this;return new Promise(function(le){var Ne=ve!==void 0?ve:document.createElement("canvas");ue===null&&(he.markersOnly=!0,he.naturalSize=!1);var Te=document.createElementNS("http://www.w3.org/2000/svg","svg");Te.setAttribute("xmlns","http://www.w3.org/2000/svg"),Te.setAttribute("width",fe.width.baseVal.valueAsString),Te.setAttribute("height",fe.height.baseVal.valueAsString),Te.setAttribute("viewBox","0 0 "+fe.viewBox.baseVal.width.toString()+" "+fe.viewBox.baseVal.height.toString()),Te.innerHTML=fe.innerHTML,he.naturalSize===!0?(Te.width.baseVal.value=ue.naturalWidth,Te.height.baseVal.value=ue.naturalHeight):he.width!==void 0&&he.height!==void 0&&(Te.width.baseVal.value=he.width,Te.height.baseVal.value=he.height),Ne.width=Te.width.baseVal.value,Ne.height=Te.height.baseVal.value;var gt=Te.outerHTML,At=Ne.getContext("2d");he.markersOnly!==!0&&At.drawImage(ue,0,0,Ne.width,Ne.height);var Tt=window.URL,zt=new Image(Ne.width,Ne.height);zt.setAttribute("crossOrigin","anonymous");var Ot=new Blob([gt],{type:"image/svg+xml"}),ht=Tt.createObjectURL(Ot);zt.onload=function(){At.drawImage(zt,0,0),Tt.revokeObjectURL(ht);var It=Ne.toDataURL(he.imageType,he.imageQuality);le(It)},zt.src=ht})},ze}(),ge=function(){},Be=function(){function ze(ue){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ue+"_"}return Object.defineProperty(ze.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ze.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(ze.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ze.prototype.addClass=function(ue){return this.styleSheet===void 0&&this.addStyleSheet(),ue.name=""+this.classNamePrefix+ue.localName,this.classes.push(ue),this.styleSheet.sheet.insertRule("."+ue.name+" {"+ue.style+"}",this.styleSheet.sheet.cssRules.length),ue},ze.prototype.addRule=function(ue){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ue),this.styleSheet.sheet.insertRule(ue.selector+" {"+ue.style+"}",this.styleSheet.sheet.cssRules.length)},ze.prototype.addStyleSheet=function(){var ue;this.styleSheet=document.createElement("style"),((ue=this.styleSheetRoot)!==null&&ue!==void 0?ue:document.head).appendChild(this.styleSheet),this.addRule(new Qe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Qe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Qe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Oe("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Oe("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ze.prototype.removeStyleSheet=function(){var ue;this.styleSheet&&(((ue=this.styleSheetRoot)!==null&&ue!==void 0?ue:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ze}(),Qe=function(ze,ue){this.selector=ze,this.style=ue},Oe=function(ze,ue){this.localName=ze,this.style=ue},et=function(){function ze(ue,fe,ve,he,le){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ue,this.displayMode=fe,this.markerItems=ve,this.uiStyleSettings=he,this.styles=le,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ze.prototype.show=function(ue){var fe=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ve=document.createElement("div");ve.className=this.toolbarBlockStyleClass.name,ve.style.whiteSpace="nowrap",this.uiContainer.appendChild(ve),this.addActionButton(ve,'<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(ve,'<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(ve,'<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(ve,'<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(ve,'<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(ve,'<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(ve,'<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(ve,'<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 Ne=document.createElement("div");Ne.className=""+fe.toolbarButtonStyleClass.name,Ne.setAttribute("data-type-name",le.typeName),Ne.innerHTML=le.icon,Ne.addEventListener("click",function(){fe.markerToolbarButtonClicked(Ne,le)}),fe.buttons.push(Ne),fe.markerButtons.push(Ne)}),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 he=document.createElement("div");he.className=this.toolbarBlockStyleClass.name,he.style.whiteSpace="nowrap",he.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(he),this.addActionButton(he,'<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(he,'<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()},ze.prototype.addButtonClickListener=function(ue){this.buttonClickListeners.push(ue)},ze.prototype.removeButtonClickListener=function(ue){this.buttonClickListeners.indexOf(ue)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ue),1)},ze.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ze.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ue=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var fe=0;fe<this.markerButtons.length;fe++)fe<ue||fe===ue&&this.markerButtons.length-1===ue?this.markerButtonBlock.appendChild(this.markerButtons[fe]):(fe===ue&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[fe]))}},ze.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")},ze.prototype.resetButtonStyles=function(){var ue=this;this.buttons.forEach(function(fe){fe.className=fe.className.replace(ue.uiStyleSettings.toolbarButtonStyleColorsClassName?ue.uiStyleSettings.toolbarButtonStyleColorsClassName:ue.toolbarButtonStyleColorsClass.name,"").trim(),fe.className=fe.className.replace(ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ue.toolbarActiveButtonStyleColorsClass.name,"").trim(),fe.className+=" "+(ue.uiStyleSettings.toolbarButtonStyleColorsClassName?ue.uiStyleSettings.toolbarButtonStyleColorsClassName:ue.toolbarButtonStyleColorsClass.name)})},ze.prototype.addActionButton=function(ue,fe,ve){var he=this,le=document.createElement("div");switch(le.className=""+this.toolbarButtonStyleClass.name,le.innerHTML=fe,le.setAttribute("data-action",ve),le.addEventListener("click",function(){he.actionToolbarButtonClicked(le,ve)}),ve){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}ue.appendChild(le),this.buttons.push(le)},ze.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Oe("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 Oe("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Oe("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Oe("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 Oe("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var ue=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Oe("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
padding: `+ue+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Oe("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Oe("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Qe("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Qe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ze.prototype.markerToolbarButtonClicked=function(ue,fe){this.setActiveButton(ue),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ve){return ve("marker",fe)}),this.markerButtonOverflowBlock.style.display="none"},ze.prototype.actionToolbarButtonClicked=function(ue,fe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ve){return ve("action",fe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ze.prototype.setActiveButton=function(ue){this.resetButtonStyles(),ue.className=ue.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ue.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ze.prototype.setActiveMarkerButton=function(ue){var fe=this.markerButtons.find(function(ve){return ve.getAttribute("data-type-name")===ue});fe&&this.setActiveButton(fe)},ze.prototype.setCurrentMarker=function(ue){var fe=this;this.currentMarker=ue,this.buttons.filter(function(ve){return/delete|notes/.test(ve.getAttribute("data-action"))}).forEach(function(ve){fe.currentMarker===void 0?(ve.style.fillOpacity="0.4",ve.style.pointerEvents="none"):(ve.style.fillOpacity="1",ve.style.pointerEvents="all")})},ze}(),ot=function(){function ze(ue,fe,ve,he){this.panels=[],this.panelButtons=[],this.markerjsContainer=ue,this.displayMode=fe,this.uiStyleSettings=ve,this.styles=he,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ze.prototype.addStyles=function(){var ue;this.toolboxStyleClass=this.styles.addClass(new Oe("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 Oe("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var fe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Oe("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Oe("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Oe("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 Oe("toolbox-panel-row_colors",`
background-color: `+((ue=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ue!==void 0?ue:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Oe("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*fe)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*fe)+`px;
padding: `+fe+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Oe("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Oe("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Qe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Qe("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ze.prototype.show=function(ue){var fe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,this.uiContainer.className=this.toolboxStyleClass.name+" "+((fe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&fe!==void 0?fe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ze.prototype.setPanelButtons=function(ue){var fe,ve,he=this;this.panels=ue,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((fe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&fe!==void 0?fe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ve=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ve!==void 0?ve:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(le){var Ne;le.uiStyleSettings=he.uiStyleSettings;var Te=document.createElement("div");Te.className=he.toolboxButtonStyleClass.name+" "+((Ne=he.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ne!==void 0?Ne:he.toolboxButtonStyleColorsClass.name),Te.innerHTML=le.icon,Te.title=le.title,Te.addEventListener("click",function(){he.panelButtonClick(le)}),he.panelButtons.push(Te),he.buttonRow.appendChild(Te)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ze.prototype.panelButtonClick=function(ue){var fe=this,ve=-1;if(ue!==this.activePanel){ve=this.panels.indexOf(ue),this.panelRow.innerHTML="";var he=ue.getUi();he.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(he),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=ue}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){fe.displayMode==="inline"?fe.panelRow.style.display="none":fe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(le,Ne){var Te,gt;le.className=fe.toolboxButtonStyleClass.name+" "+(Ne===ve?""+((Te=fe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Te!==void 0?Te:fe.toolboxActiveButtonStyleColorsClass.name):""+((gt=fe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&gt!==void 0?gt:fe.toolboxButtonStyleColorsClass.name))})},ze}(),nt=function(ze,ue){this.title=ze,this.icon=ue},Ve=function(ze){function ue(fe,ve,he,le){var Ne=ze.call(this,fe,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 Ne.colors=[],Ne.addTransparent=!1,Ne.colorBoxes=[],Ne.colors=ve,Ne.currentColor=he,Ne.setCurrentColor=Ne.setCurrentColor.bind(Ne),Ne.getColorBox=Ne.getColorBox.bind(Ne),Ne}return de(ue,ze),ue.prototype.getUi=function(){var fe=this,ve=document.createElement("div");return ve.style.overflow="hidden",ve.style.whiteSpace="nowrap",this.colors.forEach(function(he){var le=fe.getColorBox(he);ve.appendChild(le),fe.colorBoxes.push(le)}),ve},ue.prototype.getColorBox=function(fe){var ve=this,he=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-he,Ne=document.createElement("div");Ne.style.display="inline-block",Ne.style.boxSizing="content-box",Ne.style.width=le-2+"px",Ne.style.height=le-2+"px",Ne.style.padding="1px",Ne.style.marginRight="2px",Ne.style.marginBottom="2px",Ne.style.borderWidth="2px",Ne.style.borderStyle="solid",Ne.style.borderRadius=(le+2)/2+"px",Ne.style.borderColor=fe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ne.addEventListener("click",function(){ve.setCurrentColor(fe,Ne)});var Te=document.createElement("div");return Te.style.display="inline-block",Te.style.width=le-2+"px",Te.style.height=le-2+"px",Te.style.backgroundColor=fe,Te.style.borderRadius=le/2+"px",fe==="transparent"&&(Te.style.fill=this.uiStyleSettings.toolboxAccentColor,Te.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>`),Ne.appendChild(Te),Ne},ue.prototype.setCurrentColor=function(fe,ve){var he=this;this.currentColor=fe,this.colorBoxes.forEach(function(le){le.style.borderColor=le===ve?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(fe)},ue}(nt),xe=function(){function ze(ue,fe,ve){this._state="new",this._isSelected=!1,this._container=ue,this._overlayContainer=fe,this.globalSettings=ve,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ze.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ze.prototype.ownsTarget=function(ue){return!1},Object.defineProperty(ze.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ze.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ze.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ze.prototype.pointerDown=function(ue,fe){},ze.prototype.dblClick=function(ue,fe){},ze.prototype.manipulate=function(ue){},ze.prototype.pointerUp=function(ue){this.stateChanged()},ze.prototype.dispose=function(){},ze.prototype.addMarkerVisualToContainer=function(ue){this.container.childNodes.length>0?this.container.insertBefore(ue,this.container.childNodes[0]):this.container.appendChild(ue)},ze.prototype.getState=function(){return{typeName:ze.typeName,state:this.state,notes:this.notes}},ze.prototype.restoreState=function(ue){this._state=ue.state,this.notes=ue.notes},ze.prototype.scale=function(ue,fe){},ze.prototype.colorChanged=function(ue){this.onColorChanged&&this.onColorChanged(ue),this.stateChanged()},ze.prototype.fillColorChanged=function(ue){this.onFillColorChanged&&this.onFillColorChanged(ue),this.stateChanged()},ze.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ue=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ue.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ue)&&this.onStateChanged(this)}},ze.typeName="MarkerBase",ze}(),mt=function(){function ze(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ze.prototype.findGripByVisual=function(ue){return this.topLeft.ownsTarget(ue)?this.topLeft:this.topCenter.ownsTarget(ue)?this.topCenter:this.topRight.ownsTarget(ue)?this.topRight:this.centerLeft.ownsTarget(ue)?this.centerLeft:this.centerRight.ownsTarget(ue)?this.centerRight:this.bottomLeft.ownsTarget(ue)?this.bottomLeft:this.bottomCenter.ownsTarget(ue)?this.bottomCenter:this.bottomRight.ownsTarget(ue)?this.bottomRight:void 0},ze}(),Lt=function(){function ze(){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 ze.prototype.ownsTarget=function(ue){return ue===this.visual||ue===this.visual.childNodes[0]||ue===this.visual.childNodes[1]},ze}(),it=function(){function ze(){}return ze.toITransformMatrix=function(ue){return{a:ue.a,b:ue.b,c:ue.c,d:ue.d,e:ue.e,f:ue.f}},ze.toSVGMatrix=function(ue,fe){return ue.a=fe.a,ue.b=fe.b,ue.c=fe.c,ue.d=fe.d,ue.e=fe.e,ue.f=fe.f,ue},ze}(),pt=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,ve,he)||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(ue,ze),Object.defineProperty(ue.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"visual",{get:function(){return this._visual},set:function(fe){this._visual=fe;var ve=Me.createTransform();this._visual.transform.baseVal.appendItem(ve)},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(fe){return!!ze.prototype.ownsTarget.call(this,fe)||!!(this.controlGrips.findGripByVisual(fe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(fe))},ue.prototype.pointerDown=function(fe,ve){ze.prototype.pointerDown.call(this,fe,ve),this.state==="new"&&(this.left=fe.x,this.top=fe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var he=this.unrotatePoint(fe);if(this.manipulationStartX=he.x,this.manipulationStartY=he.y,this.offsetX=he.x-this.left,this.offsetY=he.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ve),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ve)){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 Ne=this.container.transform.baseVal.getItem(0);Ne.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ne,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ue.prototype.pointerUp=function(fe){var ve=this.state;ze.prototype.pointerUp.call(this,fe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(fe),this._state="select",ve==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ue.prototype.moveVisual=function(fe){this.visual.style.transform="translate("+fe.x+"px, "+fe.y+"px)"},ue.prototype.manipulate=function(fe){var ve=this.unrotatePoint(fe);this.state==="creating"?this.resize(fe):this.state==="move"?(this.left=this.manipulationStartLeft+(ve.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ve.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ve):this.state==="rotate"&&this.rotate(fe)},ue.prototype.resize=function(fe){var ve=this.manipulationStartLeft,he=this.manipulationStartWidth,le=this.manipulationStartTop,Ne=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ve=this.manipulationStartLeft+fe.x-this.manipulationStartX,he=this.manipulationStartWidth+this.manipulationStartLeft-ve;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:he=this.manipulationStartWidth+fe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+fe.y-this.manipulationStartY,Ne=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ne=this.manipulationStartHeight+fe.y-this.manipulationStartY}he>=0?(this.left=ve,this.width=he):(this.left=ve+he,this.width=-he),Ne>=0?(this.top=le,this.height=Ne):(this.top=le+Ne,this.height=-Ne),this.setSize()},ue.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ue.prototype.rotate=function(fe){if(Math.abs(fe.x-this.centerX)>.1){var ve=Math.sign(fe.x-this.centerX);this.rotationAngle=180*Math.atan((fe.y-this.centerY)/(fe.x-this.centerX))/Math.PI+90*ve,this.applyRotation()}},ue.prototype.applyRotation=function(){var fe=this.container.transform.baseVal.getItem(0);fe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(fe,0)},ue.prototype.rotatePoint=function(fe){if(this.rotationAngle===0)return fe;var ve=this.container.getCTM(),he=Me.createPoint(fe.x,fe.y);return{x:(he=he.matrixTransform(ve)).x,y:he.y}},ue.prototype.unrotatePoint=function(fe){if(this.rotationAngle===0)return fe;var ve=this.container.getCTM();ve=ve.inverse();var he=Me.createPoint(fe.x,fe.y);return{x:(he=he.matrixTransform(ve)).x,y:he.y}},ue.prototype.select=function(){ze.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){ze.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=Me.createGroup();var fe=Me.createTransform();fe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(fe),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 mt,this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){var fe=this.controlBox.transform.baseVal.getItem(0);fe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(fe,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()},ue.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()},ue.prototype.createGrip=function(){var fe=new Lt;return fe.visual.transform.baseVal.appendItem(Me.createTransform()),this.controlBox.appendChild(fe.visual),fe},ue.prototype.positionGrips=function(){var fe=this.controlGrips.topLeft.GRIP_SIZE,ve=-fe/2,he=ve,le=(this.width+this.CB_DISTANCE)/2-fe/2,Ne=(this.height+this.CB_DISTANCE)/2-fe/2,Te=this.height+this.CB_DISTANCE-fe/2,gt=this.width+this.CB_DISTANCE-fe/2;this.positionGrip(this.controlGrips.topLeft.visual,ve,he),this.positionGrip(this.controlGrips.topCenter.visual,le,he),this.positionGrip(this.controlGrips.topRight.visual,gt,he),this.positionGrip(this.controlGrips.centerLeft.visual,ve,Ne),this.positionGrip(this.controlGrips.centerRight.visual,gt,Ne),this.positionGrip(this.controlGrips.bottomLeft.visual,ve,Te),this.positionGrip(this.controlGrips.bottomCenter.visual,le,Te),this.positionGrip(this.controlGrips.bottomRight.visual,gt,Te),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,he-3*this.CB_DISTANCE)},ue.prototype.positionGrip=function(fe,ve,he){var le=fe.transform.baseVal.getItem(0);le.setTranslate(ve,he),fe.transform.baseVal.replaceItem(le,0)},ue.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ue.prototype.showControlBox=function(){this.controlBox.style.display=""},ue.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:it.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:it.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ze.prototype.getState.call(this))},ue.prototype.restoreState=function(fe){ze.prototype.restoreState.call(this,fe);var ve=fe;this.left=ve.left,this.top=ve.top,this.width=ve.width,this.height=ve.height,this.rotationAngle=ve.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(it.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ve.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(it.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ve.containerTransformMatrix))},ue.prototype.scale=function(fe,ve){ze.prototype.scale.call(this,fe,ve);var he=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:he.x*fe,y:he.y*ve});this.left=le.x,this.top=le.y,this.width=this.width*fe,this.height=this.height*ve,this.adjustControlBox()},ue}(xe),Ce=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,ve,he)||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(ue,ze),ue.prototype.ownsTarget=function(fe){return!(!ze.prototype.ownsTarget.call(this,fe)&&fe!==this.visual)},ue.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)},ue.prototype.pointerDown=function(fe,ve){ze.prototype.pointerDown.call(this,fe,ve),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},ue.prototype.manipulate=function(fe){ze.prototype.manipulate.call(this,fe)},ue.prototype.resize=function(fe){ze.prototype.resize.call(this,fe),this.setSize()},ue.prototype.setSize=function(){ze.prototype.setSize.call(this),Me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(fe){ze.prototype.pointerUp.call(this,fe),this.setSize()},ue.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.visual&&Me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},ue.prototype.setFillColor=function(fe){this.fillColor=fe,this.visual&&Me.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ue.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.visual&&Me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.visual&&Me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ue.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ze.prototype.getState.call(this))},ue.prototype.restoreState=function(fe){var ve=fe;this.fillColor=ve.fillColor,this.strokeColor=ve.strokeColor,this.strokeWidth=ve.strokeWidth,this.strokeDasharray=ve.strokeDasharray,this.opacity=ve.opacity,this.createVisual(),ze.prototype.restoreState.call(this,fe),this.setSize()},ue.prototype.scale=function(fe,ve){ze.prototype.scale.call(this,fe,ve),this.setSize()},ue.title="Rectangle marker",ue}(pt),be=function(ze){function ue(fe,ve,he,le){var Ne=ze.call(this,fe,le||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ne.widths=[],Ne.widthBoxes=[],Ne.widths=ve,Ne.currentWidth=he,Ne.setCurrentWidth=Ne.setCurrentWidth.bind(Ne),Ne}return de(ue,ze),ue.prototype.getUi=function(){var fe=this,ve=document.createElement("div");return ve.style.display="flex",ve.style.overflow="hidden",ve.style.flexGrow="2",this.widths.forEach(function(he){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=he===fe.currentWidth?fe.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){fe.setCurrentWidth(he,le)}),ve.appendChild(le);var Ne=document.createElement("div");Ne.innerText=he.toString(),Ne.style.marginRight="5px",le.appendChild(Ne);var Te=document.createElement("div");Te.style.minHeight="20px",Te.style.flexGrow="2",Te.style.display="flex",Te.style.alignItems="center";var gt=document.createElement("hr");gt.style.minWidth="20px",gt.style.border="0px",gt.style.borderTop=he+"px solid "+fe.uiStyleSettings.toolboxColor,gt.style.flexGrow="2",Te.appendChild(gt),le.appendChild(Te),fe.widthBoxes.push(le)}),ve},ue.prototype.setCurrentWidth=function(fe,ve){var he=this;this.currentWidth=fe,this.widthBoxes.forEach(function(le){le.style.borderColor=le===ve?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ue}(nt),Ze=function(ze){function ue(fe,ve,he,le){var Ne=ze.call(this,fe,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 Ne.styles=[],Ne.styleBoxes=[],Ne.styles=ve,Ne.currentStyle=he,Ne.setCurrentStyle=Ne.setCurrentStyle.bind(Ne),Ne}return de(ue,ze),ue.prototype.getUi=function(){var fe=this,ve=document.createElement("div");return ve.style.display="flex",ve.style.overflow="hidden",ve.style.flexGrow="2",this.styles.forEach(function(he){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/fe.styles.length-5+"%",le.style.borderColor=he===fe.currentStyle?fe.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){fe.setCurrentStyle(he,le)}),ve.appendChild(le);var Ne=document.createElement("div");Ne.style.minHeight="20px",Ne.style.flexGrow="2",Ne.style.overflow="hidden";var Te=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+fe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(he!==""?'stroke-dasharray="'+he+'"':"")+` />
</svg>`;Ne.innerHTML=Te,le.appendChild(Ne),fe.styleBoxes.push(le)}),ve},ue.prototype.setCurrentStyle=function(fe,ve){var he=this;this.currentStyle=fe,this.styleBoxes.forEach(function(le){le.style.borderColor=le===ve?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ue}(nt),je=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,ve,he)||this;return le.strokeColor=he.defaultColor,le.strokeWidth=he.defaultStrokeWidth,le.strokeDasharray=he.defaultStrokeDasharray,le.strokePanel=new Ve("Line color",he.defaultColorSet,he.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new be("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ze("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return de(ue,ze),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var fe=ze.prototype.getState.call(this);return fe.typeName=ue.typeName,fe},ue.typeName="FrameMarker",ue.title="Frame marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ue}(Ce),Et=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"},ft=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,ve,he)||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(ue,ze),ue.prototype.ownsTarget=function(fe){return!!ze.prototype.ownsTarget.call(this,fe)||!(!this.grip1.ownsTarget(fe)&&!this.grip2.ownsTarget(fe))},ue.prototype.pointerDown=function(fe,ve){ze.prototype.pointerDown.call(this,fe,ve),this.manipulationStartX=fe.x,this.manipulationStartY=fe.y,this.state==="new"&&(this.x1=fe.x,this.y1=fe.y,this.x2=fe.x,this.y2=fe.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(ve)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ve)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ue.prototype.pointerUp=function(fe){var ve=this.state;ze.prototype.pointerUp.call(this,fe),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(fe),this._state="select",ve==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ue.prototype.adjustVisual=function(){},ue.prototype.manipulate=function(fe){this.state==="creating"?this.resize(fe):this.state==="move"?(this.x1=this.manipulationStartX1+fe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+fe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+fe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+fe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(fe)},ue.prototype.resize=function(fe){switch(this.activeGrip){case this.grip1:this.x1=fe.x,this.y1=fe.y;break;case this.grip2:case void 0:this.x2=fe.x,this.y2=fe.y}this.adjustVisual(),this.adjustControlBox()},ue.prototype.select=function(){ze.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){ze.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=Me.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){this.positionGrips()},ue.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ue.prototype.createGrip=function(){var fe=new Lt;return fe.visual.transform.baseVal.appendItem(Me.createTransform()),this.controlBox.appendChild(fe.visual),fe},ue.prototype.positionGrips=function(){var fe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-fe/2,this.y1-fe/2),this.positionGrip(this.grip2.visual,this.x2-fe/2,this.y2-fe/2)},ue.prototype.positionGrip=function(fe,ve,he){var le=fe.transform.baseVal.getItem(0);le.setTranslate(ve,he),fe.transform.baseVal.replaceItem(le,0)},ue.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ze.prototype.getState.call(this))},ue.prototype.restoreState=function(fe){ze.prototype.restoreState.call(this,fe);var ve=fe;this.x1=ve.x1,this.y1=ve.y1,this.x2=ve.x2,this.y2=ve.y2},ue.prototype.scale=function(fe,ve){ze.prototype.scale.call(this,fe,ve),this.x1=this.x1*fe,this.y1=this.y1*ve,this.x2=this.x2*fe,this.y2=this.y2*ve,this.adjustVisual(),this.adjustControlBox()},ue}(xe),ut=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,ve,he)||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=he.defaultColor,le.strokeWidth=he.defaultStrokeWidth,le.strokeDasharray=he.defaultStrokeDasharray,le.strokePanel=new Ve("Line color",he.defaultColorSet,he.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new be("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ze("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return de(ue,ze),ue.prototype.ownsTarget=function(fe){return!(!ze.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.selectorLine&&fe!==this.visibleLine)},ue.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)},ue.prototype.pointerDown=function(fe,ve){ze.prototype.pointerDown.call(this,fe,ve),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ue.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()]]))},ue.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.adjustVisual(),this.colorChanged(fe)},ue.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var fe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ze.prototype.getState.call(this));return fe.typeName=ue.typeName,fe},ue.prototype.restoreState=function(fe){ze.prototype.restoreState.call(this,fe);var ve=fe;this.strokeColor=ve.strokeColor,this.strokeWidth=ve.strokeWidth,this.strokeDasharray=ve.strokeDasharray,this.createVisual(),this.adjustVisual()},ue.typeName="LineMarker",ue.title="Line marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ue}(ft),Re=function(ze){function ue(fe,ve,he,le){var Ne=ze.call(this,fe,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 Ne.fonts=[],Ne.fontBoxes=[],Ne.fonts=ve,Ne.currentFont=he,Ne.setCurrentFont=Ne.setCurrentFont.bind(Ne),Ne}return de(ue,ze),ue.prototype.getUi=function(){var fe=this,ve=document.createElement("div");return ve.style.overflow="hidden",ve.style.flexGrow="2",this.fonts.forEach(function(he){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/fe.fonts.length-5+"%",le.style.borderColor=he===fe.currentFont?fe.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){fe.setCurrentFont(he,le)}),ve.appendChild(le);var Ne=document.createElement("div");Ne.style.display="flex",Ne.style.minHeight="20px",Ne.style.flexGrow="2",Ne.style.fontFamily=he,Ne.style.overflow="hidden";var Te=document.createElement("div");Te.style.whiteSpace="nowrap",Te.style.overflow="hidden",Te.style.textOverflow="ellipsis",Te.innerHTML="The quick brown fox jumps over the lazy dog",Ne.appendChild(Te),le.appendChild(Ne),fe.fontBoxes.push(le)}),ve},ue.prototype.setCurrentFont=function(fe,ve){var he=this;this.currentFont=fe,this.fontBoxes.forEach(function(le){le.style.borderColor=le===ve?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ue}(nt),Vt=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,ve,he)||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=he.defaultColor,le.fontFamily=he.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 Ve("Color",he.defaultColorSet,he.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new Re("Font",he.defaultFontFamilies,he.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return de(ue,ze),ue.prototype.ownsTarget=function(fe){if(ze.prototype.ownsTarget.call(this,fe)||fe===this.visual||fe===this.textElement||fe===this.bgRectangle)return!0;var ve=!1;return this.textElement.childNodes.forEach(function(he){he===fe&&(ve=!0)}),ve},ue.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()},ue.prototype.pointerDown=function(fe,ve){ze.prototype.pointerDown.call(this,fe,ve),this.isMoved=!1,this.pointerDownPoint=fe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},ue.prototype.renderText=function(){var fe=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(ve){fe.textElement.appendChild(Me.createTSpan(ve.trim()===""?" ":ve.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ue.prototype.getTextScale=function(){var fe=this.textElement.getBBox(),ve=1;if(fe.width>0&&fe.height>0){var he=(1*this.width-this.width*this.padding*2/100)/fe.width,le=(1*this.height-this.height*this.padding*2/100)/fe.height;ve=Math.min(he,le)}return ve},ue.prototype.getTextPosition=function(fe){var ve=this.textElement.getBBox(),he=0,le=0;return ve.width>0&&ve.height>0&&(he=(this.width-ve.width*fe)/2,le=this.height/2-ve.height*fe/2),{x:he,y:le}},ue.prototype.sizeText=function(){var fe=this.textElement.getBBox(),ve=this.getTextScale(),he=this.getTextPosition(ve);he.y-=fe.y*ve,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+he.x+"px, "+he.y+"px) scale("+ve+", "+ve+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(he.x,he.y),this.textElement.transform.baseVal.getItem(1).setScale(ve,ve))},ue.prototype.manipulate=function(fe){ze.prototype.manipulate.call(this,fe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(fe.x-this.pointerDownPoint.x)>5||Math.abs(fe.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(fe){ze.prototype.resize.call(this,fe),this.isMoved=!0,this.setSize(),this.sizeText()},ue.prototype.setSize=function(){ze.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()]]))},ue.prototype.pointerUp=function(fe){var ve=this.state;ve==="creating"&&(this._suppressMarkerCreateEvent=!0),ze.prototype.pointerUp.call(this,fe),this.setSize(),(ve==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.showTextEditor=function(){var fe=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(ve){ve.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ve=Number.parseFloat(fe.textEditor.style.fontSize);fe.textEditor.clientWidth>=Number.parseInt(fe.textEditor.style.maxWidth)&&ve>.9;)ve-=.1,fe.textEditor.style.fontSize=Math.max(ve,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ve){ve.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ve){if(ve.clipboardData){var he=ve.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(he)),ve.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){fe.textEditDivClicked(fe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ue.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var fe=this.getTextScale(),ve=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),he=this.textElement.getBBox(),le={x:he.width*fe,y:he.height*fe};ve.x-=le.x/2,ve.y-=le.y/2,this.textEditor.style.top=ve.y+"px",this.textEditor.style.left=ve.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ve.x+"px",this.textEditor.style.fontSize=Math.max(16*fe,12)+"px",this.textElement.style.display="none"}},ue.prototype.textEditDivClicked=function(fe){this.text=fe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ue.prototype.select=function(){ze.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ue.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ze.prototype.deselect.call(this)},ue.prototype.dblClick=function(fe,ve){ze.prototype.dblClick.call(this,fe,ve),this.showTextEditor()},ue.prototype.setColor=function(fe){this.textElement&&Me.setAttributes(this.textElement,[["fill",fe]]),this.color=fe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(fe)},ue.prototype.setFont=function(fe){this.textElement&&Me.setAttributes(this.textElement,[["font-family",fe]]),this.fontFamily=fe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ue.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ue.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var fe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ze.prototype.getState.call(this));return fe.typeName=ue.typeName,fe},ue.prototype.restoreState=function(fe){var ve=fe;this.color=ve.color,this.fontFamily=ve.fontFamily,this.padding=ve.padding,this.text=ve.text,this.createVisual(),ze.prototype.restoreState.call(this,fe),this.setSize()},ue.prototype.scale=function(fe,ve){ze.prototype.scale.call(this,fe,ve),this.setSize(),this.sizeText(),this.positionTextEditor()},ue.typeName="TextMarker",ue.title="Text marker",ue.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>',ue}(pt),wt=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,ve,he)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=he.defaultColor,le.lineWidth=he.defaultStrokeWidth,le.pixelRatio=he.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 Ve("Color",he.defaultColorSet,he.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new be("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return de(ue,ze),ue.prototype.ownsTarget=function(fe){return!(!ze.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.drawingImage)},ue.prototype.createVisual=function(){this.visual=Me.createGroup(),this.drawingImage=Me.createImage(),this.visual.appendChild(this.drawingImage);var fe=Me.createTransform();this.visual.transform.baseVal.appendItem(fe),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(fe,ve){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(fe.x,fe.y),this.drawing=!0):ze.prototype.pointerDown.call(this,fe,ve)},ue.prototype.manipulate=function(fe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(fe.x,fe.y),this.canvasContext.stroke()):ze.prototype.manipulate.call(this,fe)},ue.prototype.resize=function(fe){ze.prototype.resize.call(this,fe),Me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(fe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ze.prototype.pointerUp.call(this,fe)},ue.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)},ue.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ze.prototype.select.call(this)},ue.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ze.prototype.deselect.call(this)},ue.prototype.finishCreation=function(){for(var fe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ve=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],he=ve[0],le=ve[1],Ne=ve[2],Te=ve[3],gt=!1,At=0;At<this.canvasElement.height;At++)for(var Tt=0;Tt<this.canvasElement.width;Tt++)fe.data[At*this.canvasElement.width*4+4*Tt+3]>0&&(gt=!0,At<le&&(le=At),Tt<he&&(he=Tt),At>Te&&(Te=At),Tt>Ne&&(Ne=Tt));if(gt){this.left=he/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(Ne-he)/this.pixelRatio,this.height=(Te-le)/this.pixelRatio;var zt=document.createElement("canvas");zt.width=Ne-he,zt.height=Te-le,zt.getContext("2d").putImageData(this.canvasContext.getImageData(he,le,Ne-he,Te-le),0,0),this.drawingImgUrl=zt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ue.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})},ue.prototype.setColor=function(fe){this.color=fe,this.colorChanged(fe)},ue.prototype.setLineWidth=function(fe){this.lineWidth=fe},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var fe=Object.assign({drawingImgUrl:this.drawingImgUrl},ze.prototype.getState.call(this));return fe.typeName=ue.typeName,fe},ue.prototype.restoreState=function(fe){this.createVisual(),ze.prototype.restoreState.call(this,fe),this.drawingImgUrl=fe.drawingImgUrl,this.setDrawingImage()},ue.prototype.scale=function(fe,ve){ze.prototype.scale.call(this,fe,ve),this.setDrawingImage()},ue.typeName="FreehandMarker",ue.title="Freehand marker",ue.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>',ue}(pt),yn=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,he||'<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=ve,le.setCurrentType=le.setCurrentType.bind(le),le}return de(ue,ze),ue.prototype.getUi=function(){var fe=this,ve=document.createElement("div");ve.style.display="flex",ve.style.overflow="hidden",ve.style.flexGrow="2";for(var he=function(Te){var gt="both";switch(Te){case 0:gt="both";break;case 1:gt="start";break;case 2:gt="end";break;case 3:gt="none"}var At=document.createElement("div");if(At.style.display="flex",At.style.flexGrow="2",At.style.alignItems="center",At.style.justifyContent="space-between",At.style.padding="5px",At.style.borderWidth="2px",At.style.borderStyle="solid",At.style.borderColor=gt===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",At.addEventListener("click",function(){fe.setCurrentType(gt,At)}),ve.appendChild(At),gt==="both"||gt==="start"){var Tt=document.createElement("div");Tt.style.display="flex",Tt.style.alignItems="center",Tt.style.minHeight="20px",Tt.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>`,Tt.style.marginLeft="5px",At.appendChild(Tt)}var zt=document.createElement("div");zt.style.display="flex",zt.style.alignItems="center",zt.style.minHeight="20px",zt.style.flexGrow="2";var Ot=document.createElement("hr");if(Ot.style.minWidth="20px",Ot.style.border="0px",Ot.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),Ot.style.flexGrow="2",zt.appendChild(Ot),At.appendChild(zt),gt==="both"||gt==="end"){var ht=document.createElement("div");ht.style.display="flex",ht.style.alignItems="center",ht.style.minHeight="20px",ht.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>`,ht.style.marginRight="5px",At.appendChild(ht)}le.typeBoxes.push(At)},le=this,Ne=0;Ne<4;Ne++)he(Ne);return ve},ue.prototype.setCurrentType=function(fe,ve){var he=this;this.currentType=fe,this.typeBoxes.forEach(function(le){le.style.borderColor=le===ve?he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ue}(nt),Ft=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,ve,he)||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 yn("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return de(ue,ze),ue.prototype.ownsTarget=function(fe){return!(!ze.prototype.ownsTarget.call(this,fe)&&fe!==this.arrow1&&fe!==this.arrow2)},ue.prototype.getArrowPoints=function(fe,ve){var he=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return fe-he/2+","+(ve+le/2)+" "+fe+","+(ve-le/2)+" "+(fe+he/2)+","+(ve+le/2)},ue.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)},ue.prototype.pointerDown=function(fe,ve){ze.prototype.pointerDown.call(this,fe,ve),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(ze.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 fe=0;Math.abs(this.x1-this.x2)>.1&&(fe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ve=this.arrow1.transform.baseVal.getItem(0);ve.setRotate(fe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ve,0);var he=this.arrow2.transform.baseVal.getItem(0);he.setRotate(fe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(he,0)}},ue.prototype.setArrowType=function(fe){this.arrowType=fe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var fe=Object.assign({arrowType:this.arrowType},ze.prototype.getState.call(this));return fe.typeName=ue.typeName,fe},ue.prototype.restoreState=function(fe){ze.prototype.restoreState.call(this,fe);var ve=fe;this.arrowType=ve.arrowType,this.createTips(),this.adjustVisual()},ue.typeName="ArrowMarker",ue.title="Arrow marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ue}(ut),ln=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,ve,he)||this;return le.fillColor=he.defaultFillColor,le.strokeWidth=0,le.fillPanel=new Ve("Color",he.defaultColorSet,he.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return de(ue,ze),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var fe=ze.prototype.getState.call(this);return fe.typeName=ue.typeName,fe},ue.typeName="CoverMarker",ue.title="Cover marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ue}(Ce),Kn=function(ze){function ue(fe,ve,he,le){var Ne=ze.call(this,fe,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 Ne.opacities=[],Ne.opacityBoxes=[],Ne.opacities=ve,Ne.currentOpacity=he,Ne.setCurrentOpacity=Ne.setCurrentOpacity.bind(Ne),Ne}return de(ue,ze),ue.prototype.getUi=function(){var fe=this,ve=document.createElement("div");return ve.style.display="flex",ve.style.overflow="hidden",ve.style.flexGrow="2",ve.style.justifyContent="space-between",this.opacities.forEach(function(he){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=he===fe.currentOpacity?fe.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){fe.setCurrentOpacity(he,le)}),ve.appendChild(le);var Ne=document.createElement("div");Ne.innerText=100*he+"%",le.appendChild(Ne),fe.opacityBoxes.push(le)}),ve},ue.prototype.setCurrentOpacity=function(fe,ve){var he=this;this.currentOpacity=fe,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===ve?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ue}(nt),rt=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,ve,he)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=he.defaultHighlightColor,le.strokeWidth=0,le.opacity=he.defaultHighlightOpacity,le.fillPanel=new Ve("Color",he.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new Kn("Opacity",he.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return de(ue,ze),ue.prototype.setOpacity=function(fe){this.opacity=fe,this.visual&&Me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var fe=ze.prototype.getState.call(this);return fe.typeName=ue.typeName,fe},ue.typeName="HighlightMarker",ue.title="Highlight marker",ue.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>',ue}(ln),dt='<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>',Ae='<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>',Bt=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,ve,he)||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=he.defaultStrokeColor,le.bgColor=he.defaultFillColor,le.fontFamily=he.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 Ve("Text color",he.defaultColorSet,le.color,dt),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new Ve("Fill color",he.defaultColorSet,le.bgColor,Ae),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new Re("Font",he.defaultFontFamilies,he.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(ue,ze),ue.prototype.ownsTarget=function(fe){return ze.prototype.ownsTarget.call(this,fe)||this.tipGrip.ownsTarget(fe)||this.tip===fe},ue.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)},ue.prototype.pointerDown=function(fe,ve){this.state==="new"&&ze.prototype.pointerDown.call(this,fe,ve),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ve)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ze.prototype.pointerDown.call(this,fe,ve)},ue.prototype.pointerUp=function(fe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ze.prototype.pointerUp.call(this,fe);else{var ve=this.state==="creating";ze.prototype.pointerUp.call(this,fe),this.setTipPoints(ve),this.positionTip()}},ue.prototype.manipulate=function(fe){if(this.tipMoving){var ve=this.unrotatePoint(fe);this.tipPosition={x:ve.x-this.manipulationStartLeft,y:ve.y-this.manipulationStartTop},this.positionTip()}else ze.prototype.manipulate.call(this,fe)},ue.prototype.setBgColor=function(fe){this.bgRectangle&&this.tip&&(Me.setAttributes(this.bgRectangle,[["fill",fe]]),Me.setAttributes(this.tip,[["fill",fe]])),this.bgColor=fe,this.fillColorChanged(fe)},ue.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},ue.prototype.setTipPoints=function(fe){fe===void 0&&(fe=!1);var ve=Math.min(this.height/2,15),he=this.height/5;fe&&(this.tipPosition={x:ve+he/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))?(he=this.width/5,ve=Math.min(this.width/2,15),this.tipBase1Position={x:ve,y:0},this.tipBase2Position={x:ve+he,y:0}):(this.tipBase1Position={x:0,y:ve},this.tipBase2Position={x:0,y:ve+he}):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))?(he=this.width/5,ve=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ve-he,y:0},this.tipBase2Position={x:this.width-ve,y:0}):(this.tipBase1Position={x:this.width,y:ve},this.tipBase2Position={x:this.width,y:ve+he}):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))?(he=this.width/5,ve=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ve-he,y:this.height},this.tipBase2Position={x:this.width-ve,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ve-he},this.tipBase2Position={x:this.width,y:this.height-ve}):le<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(he=this.width/5,ve=Math.min(this.width/2,15),this.tipBase1Position={x:ve,y:this.height},this.tipBase2Position={x:ve+he,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ve},this.tipBase2Position={x:0,y:this.height-ve-he})},ue.prototype.resize=function(fe){ze.prototype.resize.call(this,fe),this.positionTip()},ue.prototype.positionTip=function(){Me.setAttributes(this.tip,[["points",this.getTipPoints()]]);var fe=this.tipGrip.visual.transform.baseVal.getItem(0);fe.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(fe,0)},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ue.prototype.select=function(){this.positionTip(),ze.prototype.select.call(this)},ue.prototype.getState=function(){var fe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ze.prototype.getState.call(this));return fe.typeName=ue.typeName,fe},ue.prototype.restoreState=function(fe){var ve=fe;this.bgColor=ve.bgColor,this.tipPosition=ve.tipPosition,ze.prototype.restoreState.call(this,fe),this.createTip(),this.setTipPoints()},ue.prototype.scale=function(fe,ve){ze.prototype.scale.call(this,fe,ve),this.tipPosition={x:this.tipPosition.x*fe,y:this.tipPosition.y*ve},this.positionTip()},ue.typeName="CalloutMarker",ue.title="Callout marker",ue.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>',ue}(Vt),Cn=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,ve,he)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.strokeColor=he.defaultColor,le.strokeWidth=he.defaultStrokeWidth,le.strokeDasharray=he.defaultStrokeDasharray,le.fillColor=he.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 Ve("Line color",Se(he.defaultColorSet,["transparent"]),he.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new Ve("Fill color",Se(he.defaultColorSet,["transparent"]),le.fillColor,Ae),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new be("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ze("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.opacityPanel=new Kn("Opacity",he.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return de(ue,ze),ue.prototype.ownsTarget=function(fe){return!(!ze.prototype.ownsTarget.call(this,fe)&&fe!==this.visual)},ue.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)},ue.prototype.pointerDown=function(fe,ve){ze.prototype.pointerDown.call(this,fe,ve),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},ue.prototype.manipulate=function(fe){ze.prototype.manipulate.call(this,fe)},ue.prototype.resize=function(fe){ze.prototype.resize.call(this,fe),this.setSize()},ue.prototype.setSize=function(){ze.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()]])},ue.prototype.pointerUp=function(fe){ze.prototype.pointerUp.call(this,fe),this.setSize()},ue.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.visual&&Me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},ue.prototype.setFillColor=function(fe){this.fillColor=fe,this.visual&&Me.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(fe),this.stateChanged()},ue.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.visual&&Me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.visual&&Me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ue.prototype.setOpacity=function(fe){this.opacity=fe,this.visual&&Me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var fe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ze.prototype.getState.call(this));return fe.typeName=ue.typeName,fe},ue.prototype.restoreState=function(fe){var ve=fe;this.fillColor=ve.fillColor,this.strokeColor=ve.strokeColor,this.strokeWidth=ve.strokeWidth,this.strokeDasharray=ve.strokeDasharray,this.opacity=ve.opacity,this.createVisual(),ze.prototype.restoreState.call(this,fe),this.setSize()},ue.prototype.scale=function(fe,ve){ze.prototype.scale.call(this,fe,ve),this.setSize()},ue.typeName="EllipseMarker",ue.title="Ellipse marker",ue.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>',ue}(pt),en=function(ze){function ue(fe,ve,he){return ze.call(this,fe,ve,he)||this}return de(ue,ze),Object.defineProperty(ue.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(fe){return!(!ze.prototype.ownsTarget.call(this,fe)&&fe!==this.tip1&&fe!==this.tip2)},ue.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)},ue.prototype.pointerDown=function(fe,ve){ze.prototype.pointerDown.call(this,fe,ve),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(ze.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 fe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ve=this.tip1.transform.baseVal.getItem(0);ve.setRotate(fe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ve,0);var he=this.tip2.transform.baseVal.getItem(0);he.setRotate(fe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(he,0)}},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var fe=ze.prototype.getState.call(this);return fe.typeName=ue.typeName,fe},ue.prototype.restoreState=function(fe){ze.prototype.restoreState.call(this,fe),this.createTips(),this.adjustVisual()},ue.typeName="MeasurementMarker",ue.title="Measurement marker",ue.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>',ue}(ut),Ct=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,ve,he)||this;return le.strokePanel.colors=he.defaultColorSet,le.fillColor="transparent",le}return de(ue,ze),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var fe=ze.prototype.getState.call(this);return fe.typeName=ue.typeName,fe},ue.typeName="EllipseFrameMarker",ue.title="Ellipse frame marker",ue.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>',ue}(Cn),Rt=function(){function ze(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ze.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ze.prototype.addUndoStep=function(ue){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ue)||(this.undoStack.push(ue),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ue)&&this.redoStack.splice(0,this.redoStack.length))},ze.prototype.replaceLastUndoStep=function(ue){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ue)},ze.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ze.prototype.undo=function(){if(this.undoStack.length>1){var ue=this.undoStack.pop();return ue!==void 0&&this.redoStack.push(ue),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ze.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ze}(),tn=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,ve,he)||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=he.defaultColor,le.strokeWidth=he.defaultStrokeWidth,le.strokeDasharray=he.defaultStrokeDasharray,le.strokePanel=new Ve("Line color",he.defaultColorSet,he.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new be("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ze("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return de(ue,ze),ue.prototype.ownsTarget=function(fe){return!(!ze.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.selectorCurve&&fe!==this.visibleCurve&&!this.curveGrip.ownsTarget(fe))},ue.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ue.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)},ue.prototype.pointerDown=function(fe,ve){ze.prototype.pointerDown.call(this,fe,ve),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=fe.x,this.curveY=fe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ve)&&(this.activeGrip=this.curveGrip,this._state="resize")},ue.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()]]))},ue.prototype.setupControlBox=function(){ze.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)},ue.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ze.prototype.addControlGrips.call(this)},ue.prototype.positionGrips=function(){ze.prototype.positionGrips.call(this);var fe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-fe/2,this.curveY-fe/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()))},ue.prototype.manipulate=function(fe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+fe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+fe.y-this.manipulationStartY),ze.prototype.manipulate.call(this,fe)},ue.prototype.resize=function(fe){this.activeGrip===this.curveGrip&&(this.curveX=fe.x,this.curveY=fe.y),ze.prototype.resize.call(this,fe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ue.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.adjustVisual(),this.colorChanged(fe)},ue.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.adjustVisual()},ue.prototype.scale=function(fe,ve){this.curveX=this.curveX*fe,this.curveY=this.curveY*ve,ze.prototype.scale.call(this,fe,ve)},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var fe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ze.prototype.getState.call(this));return fe.typeName=ue.typeName,fe},ue.prototype.restoreState=function(fe){ze.prototype.restoreState.call(this,fe);var ve=fe;this.strokeColor=ve.strokeColor,this.strokeWidth=ve.strokeWidth,this.strokeDasharray=ve.strokeDasharray,this.curveX=ve.curveX,this.curveY=ve.curveY,this.createVisual(),this.adjustVisual()},ue.typeName="CurveMarker",ue.title="Curve marker",ue.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>',ue}(ft),cr=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,ve,he)||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=he.defaultColor,le.strokeWidth=he.defaultStrokeWidth,le.strokeDasharray=he.defaultStrokeDasharray,le.fillColor=he.defaultFillColor,le.textColor=he.defaultStrokeColor,le.fontFamily=he.defaultFontFamily,le.fontSize=he.defaultCaptionFontSize,le.captionText=he.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 Ve("Line color",Se(he.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new Ve("Fill color",Se(he.defaultColorSet,["transparent"]),le.fillColor,Ae),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new be("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ze("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new Re("Font",he.defaultFontFamilies,he.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new Ve("Text color",he.defaultColorSet,le.textColor,dt),le.textColorPanel.onColorChanged=le.setTextColor,le}return de(ue,ze),ue.prototype.ownsTarget=function(fe){return!(!ze.prototype.ownsTarget.call(this,fe)&&fe!==this.visual&&fe!==this.frame&&fe!==this.captionBg&&fe!==this.captionElement)},ue.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()},ue.prototype.setCaptionText=function(fe){this.captionText=fe,this.captionElement.textContent=this.captionText,this.sizeCaption()},ue.prototype.pointerDown=function(fe,ve){ze.prototype.pointerDown.call(this,fe,ve),this.isMoved=!1,this.pointerDownPoint=fe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(fe),this._state="creating")},ue.prototype.manipulate=function(fe){ze.prototype.manipulate.call(this,fe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(fe.x-this.pointerDownPoint.x)>5||Math.abs(fe.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(fe){ze.prototype.resize.call(this,fe),this.setSize()},ue.prototype.sizeCaption=function(){var fe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=fe.width+2*this.PADDING,this.captionBoxHeight=fe.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')"]])},ue.prototype.showTextEditor=function(){var fe=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(ve){ve.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ve){ve.key==="Enter"&&fe.finishTextEditing(fe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ve){ve.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){fe.finishTextEditing(fe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){fe.finishTextEditing(fe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ue.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"))},ue.prototype.finishTextEditing=function(fe){this.setCaptionText(fe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ue.prototype.setFont=function(fe){this.captionElement&&Me.setAttributes(this.captionElement,[["font-family",fe]]),this.fontFamily=fe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ue.prototype.setTextColor=function(fe){this.captionElement&&Me.setAttributes(this.captionElement,[["fill",fe]]),this.textColor=fe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ue.prototype.setSize=function(){ze.prototype.setSize.call(this),Me.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ue.prototype.pointerUp=function(fe){ze.prototype.pointerUp.call(this,fe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.dblClick=function(fe,ve){ze.prototype.dblClick.call(this,fe,ve),this.showTextEditor()},ue.prototype.setStrokeColor=function(fe){this.strokeColor=fe,this.frame&&Me.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(fe),this.stateChanged()},ue.prototype.setFillColor=function(fe){this.fillColor=fe,this.captionBg&&Me.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(fe),this.stateChanged()},ue.prototype.setStrokeWidth=function(fe){this.strokeWidth=fe,this.frame&&Me.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(fe){this.strokeDasharray=fe,this.frame&&Me.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var fe=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},ze.prototype.getState.call(this));return fe.typeName=this.typeName,fe},ue.prototype.restoreState=function(fe){var ve=fe;this.fillColor=ve.fillColor,this.strokeColor=ve.strokeColor,this.strokeWidth=ve.strokeWidth,this.strokeDasharray=ve.strokeDasharray,this.textColor=ve.textColor,this.fontFamily=ve.fontFamily,this.captionText=ve.captionText,this.fontSize=ve.fontSize,this.createVisual(),ze.prototype.restoreState.call(this,fe),this.setSize()},ue.prototype.scale=function(fe,ve){ze.prototype.scale.call(this,fe,ve),this.setSize()},ue.typeName="CaptionFrameMarker",ue.title="Caption frame marker",ue.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>',ue}(pt),Gn=function(){function ze(ue,fe){fe===void 0&&(fe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ue,this.cancelable=fe}return Object.defineProperty(ze.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ze.prototype.preventDefault=function(){this._defaultPrevented=!0},ze}(),qt=function(ze){function ue(fe,ve,he){var le=ze.call(this,fe,!1)||this;return le.dataUrl=ve,le.state=he,le}return de(ue,ze),ue}(Gn),Fn=function(ze){function ue(fe,ve,he){he===void 0&&(he=!1);var le=ze.call(this,fe,he)||this;return le.marker=ve,le}return de(ue,ze),ue}(Gn),lr=function(){function ze(){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 ze.prototype.addEventListener=function(ue,fe){this[ue].push(fe)},ze.prototype.removeEventListener=function(ue,fe){var ve=this[ue].indexOf(fe);ve>-1&&this[ue].splice(ve,1)},ze}(),nn=function(){function ze(ue){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Et,this._isOpen=!1,this.undoRedoManager=new Rt,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 lr,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ze.instanceCounter++,this.styles=new Be(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ue,this.targetRoot=document.body,this.width=ue.clientWidth,this.height=ue.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(ze.prototype,"ALL_MARKER_TYPES",{get:function(){return[je,wt,Ft,Vt,Ct,Cn,rt,Bt,en,ln,ut,tn,cr]},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[je,wt,Ft,Vt,Cn,rt,Bt]},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"BASIC_MARKER_TYPES",{get:function(){return[je,wt,Ft,Vt,rt]},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ue){var fe=this;this._availableMarkerTypes.splice(0),ue.forEach(function(ve){if(typeof ve=="string"){var he=fe.ALL_MARKER_TYPES.find(function(le){return le.typeName===ve});he!==void 0&&fe._availableMarkerTypes.push(he)}else fe._availableMarkerTypes.push(ve)})},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ue){this._zoomLevel=ue,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(ze.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ze.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ce.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ze.prototype.show=function(){var ue=this;this.styles.styleSheetRoot===void 0&&ge.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ge.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(fe){return fe(new Gn(ue))})},ze.prototype.render=function(){return Fe(this,void 0,void 0,function(){var ue;return Xe(this,function(fe){switch(fe.label){case 0:return this.setCurrentMarker(),(ue=new we).naturalSize=this.renderAtNaturalSize,ue.imageType=this.renderImageType,ue.imageQuality=this.renderImageQuality,ue.markersOnly=this.renderMarkersOnly,ue.width=this.renderWidth,ue.height=this.renderHeight,[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return fe.sent(),[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,fe.sent()]}})})},ze.prototype.close=function(ue){var fe=this;if(ue===void 0&&(ue=!1),this.isOpen){var ve=!1;ue||this.eventListeners.beforeclose.forEach(function(he){var le=new Gn(fe,!0);he(le),le.defaultPrevented&&(ve=!0)}),ve||(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(he){return he(new Gn(fe))}),this.detachEvents(),this._isOpen=!1)}},ze.prototype.addMarkersToToolbar=function(){for(var ue,fe=[],ve=0;ve<arguments.length;ve++)fe[ve]=arguments[ve];(ue=this._availableMarkerTypes).push.apply(ue,fe)},ze.prototype.addRenderEventListener=function(ue){this.addEventListener("render",function(fe){ue(fe.dataUrl,fe.state)})},ze.prototype.removeRenderEventListener=function(ue){},ze.prototype.addCloseEventListener=function(ue){this.addEventListener("close",function(){ue()})},ze.prototype.removeCloseEventListener=function(ue){},ze.prototype.setupResizeObserver=function(){var ue=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ue.resize(ue.target.clientWidth,ue.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ue.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ze.prototype.onPopupTargetResize=function(){var ue=1*this.target.clientWidth/this.target.clientHeight,fe=this.editorCanvas.clientWidth/ue>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ue:this.editorCanvas.clientWidth,ve=fe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ue;this.resize(fe,ve)},ze.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ze.prototype.resize=function(ue,fe){this._isResizing=!0;var ve=ue/this.imageWidth,he=fe/this.imageHeight;this.imageWidth=Math.round(ue),this.imageHeight=Math.round(fe),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(ve,he),this._isResizing=!1},ze.prototype.scaleMarkers=function(ue,fe){var ve,he=this;this._currentMarker&&this._currentMarker instanceof Vt?this._currentMarker.scale(ue,fe):(ve=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(le){le!==he._currentMarker&&le.scale(ue,fe)}),ve!==void 0&&this.setCurrentMarker(ve)},ze.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"},ze.prototype.setTopLeft=function(){var ue=this.editingTarget.getBoundingClientRect(),fe=this.editorCanvas.getBoundingClientRect();this.left=ue.left-fe.left,this.top=ue.top-fe.top},ze.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)},ze.prototype.addDefs=function(){for(var ue,fe=[],ve=0;ve<arguments.length;ve++)fe[ve]=arguments[ve];this.defs=Me.createDefs(),this.addDefsToImage(),(ue=this.defs).append.apply(ue,fe)},ze.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ze.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)},ze.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ze.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ze.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)},ze.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ze.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)},ze.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 ue=document.createElement("a");ue.href="https://markerjs.com/",ue.target="_blank",ue.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>',ue.title="Powered by marker.js",ue.style.display="grid",ue.style.alignItems="center",ue.style.justifyItems="center",ue.style.padding="3px",ue.style.width="20px",ue.style.height="20px",this.logoUI.appendChild(ue),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ze.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")},ze.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"},ze.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ze.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 ue=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=ue+"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 et(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 ot(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ze.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ze.prototype.removeMarker=function(ue){this.markerImage.removeChild(ue.container),this.markers.indexOf(ue)>-1&&this.markers.splice(this.markers.indexOf(ue),1),ue.dispose()},ze.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())},ze.prototype.toolbarButtonClicked=function(ue,fe){if(ue==="marker"&&fe!==void 0)this.createNewMarker(fe);else if(ue==="action")switch(fe){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()}},ze.prototype.deleteSelectedMarker=function(){var ue=this;if(this._currentMarker!==void 0){var fe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(he){var le=new Fn(ue,ue._currentMarker,!0);he(le),le.defaultPrevented&&(fe=!0)}),!fe){var ve=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(he){return he(new Fn(ue,ve))})}}},ze.prototype.clear=function(){var ue=this,fe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ne){var Te=new Fn(ue,void 0,!0);Ne(Te),Te.defaultPrevented&&(fe=!0)}),!fe)){this.setCurrentMarker();for(var ve=function(Ne){var Te=he.markers[Ne];he.setCurrentMarker(he.markers[Ne]),he._currentMarker.dispose(),he.markerImage.removeChild(he._currentMarker.container),he.markers.splice(he.markers.indexOf(he._currentMarker),1),he.eventListeners.markerdelete.forEach(function(gt){return gt(new Fn(ue,Te))})},he=this,le=this.markers.length-1;le>=0;le--)ve(le);this.addUndoStep()}},Object.defineProperty(ze.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ze.prototype.showNotesEditor=function(){var ue;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=(ue=this._currentMarker.notes)!==null&&ue!==void 0?ue:"",this.overlayContainer.appendChild(this.notesArea))},ze.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)},ze.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ze.prototype.addUndoStep=function(){var ue=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var fe=this.getState(),ve=this.undoRedoManager.getLastUndoStep();if(!ve||ve.width===fe.width&&ve.height===fe.height){var he=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(fe),he<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(le){return le(new Gn(ue))})}else this.undoRedoManager.replaceLastUndoStep(fe),this.eventListeners.statechange.forEach(function(le){return le(new Gn(ue))})}},ze.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ze.prototype.undoStep=function(){var ue=this,fe=this.undoRedoManager.undo();fe!==void 0&&(this.restoreState(fe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ve){return ve(new Gn(ue))}))},ze.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ze.prototype.redoStep=function(){var ue=this,fe=this.undoRedoManager.redo();fe!==void 0&&(this.restoreState(fe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ve){return ve(new Gn(ue))}))},ze.prototype.stepZoom=function(){var ue=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ue<this.zoomSteps.length-1?this.zoomSteps[ue+1]:this.zoomSteps[0]},ze.prototype.panTo=function(ue){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ue.x,top:this.prevPanPoint.y-ue.y}),this.prevPanPoint=ue},ze.prototype.startRenderAndClose=function(){return Fe(this,void 0,void 0,function(){var ue,fe,ve=this;return Xe(this,function(he){switch(he.label){case 0:return[4,this.render()];case 1:return ue=he.sent(),fe=this.getState(),this.eventListeners.render.forEach(function(le){return le(new qt(ve,ue,fe))}),this.close(!0),[2]}})})},ze.prototype.getState=function(ue){ue===!0&&this.setCurrentMarker();var fe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ve){return fe.markers.push(ve.getState())}),fe},ze.prototype.restoreState=function(ue){var fe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ue.markers.forEach(function(ve){var he=fe._availableMarkerTypes.find(function(Ne){return Ne.typeName===ve.typeName});if(he!==void 0){var le=fe.addNewMarker(he);le.restoreState(ve),fe.markers.push(le)}}),ue.width&&ue.height&&(ue.width!==this.imageWidth||ue.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ue.width,this.imageHeight/ue.height),this.eventListeners.restorestate.forEach(function(ve){return ve(new Gn(fe))})},ze.prototype.addNewMarker=function(ue){var fe=Me.createGroup();return this.markerImage.appendChild(fe),new ue(fe,this.overlayContainer,this.settings)},ze.prototype.createNewMarker=function(ue){var fe,ve=this;(fe=typeof ue=="string"?this._availableMarkerTypes.find(function(he){return he.typeName===ue}):ue)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(fe),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(fe.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(he){return he(new Fn(ve,ve._currentMarker))}))},ze.prototype.markerCreated=function(ue){var fe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ue),this.setCurrentMarker(ue),ue instanceof wt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(wt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ve){return ve(new Fn(fe,fe._currentMarker))})},ze.prototype.colorChanged=function(ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ue,this.settings.defaultStrokeColor=ue)},ze.prototype.fillColorChanged=function(ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ue)},ze.prototype.markerStateChanged=function(ue){var fe=this;this.eventListeners.markerchange.forEach(function(ve){return ve(new Fn(fe,ue))})},ze.prototype.setCurrentMarker=function(ue){var fe=this;this._currentMarker!==ue&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ve){return ve(new Fn(fe,fe._currentMarker))})),this._currentMarker=ue,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(ve){return ve(new Fn(fe,fe._currentMarker))}))},ze.prototype.onPointerDown=function(ue){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ue.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var fe=this.markers.find(function(ve){return ve.ownsTarget(ue.target)});fe!==void 0?(this.setCurrentMarker(fe),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ue.clientX,ue.clientY),ue.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ue.clientX,y:ue.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ue.clientX,ue.clientY))},ze.prototype.onDblClick=function(ue){if(this._isFocused||this.focus(),this.mode==="select"){var fe=this.markers.find(function(ve){return ve.ownsTarget(ue.target)});fe!==void 0&&fe!==this._currentMarker&&this.setCurrentMarker(fe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ue.clientX,ue.clientY),ue.target):this.setCurrentMarker()}},ze.prototype.onPointerMove=function(ue){this.touchPoints!==1&&ue.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ue.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ue.clientX,ue.clientY)):this.zoomLevel>1&&this.panTo({x:ue.clientX,y:ue.clientY}))},ze.prototype.onPointerUp=function(ue){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ue.clientX,ue.clientY)),this.isDragging=!1,this.addUndoStep()},ze.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ze.prototype.onKeyUp=function(ue){this._currentMarker===void 0||this.notesArea!==void 0||ue.key!=="Delete"&&ue.key!=="Backspace"||this.deleteSelectedMarker()},ze.prototype.clientToLocalCoordinates=function(ue,fe){var ve=this.markerImage.getBoundingClientRect();return{x:(ue-ve.left)/this.zoomLevel,y:(fe-ve.top)/this.zoomLevel}},ze.prototype.onWindowResize=function(){this.positionUI()},ze.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ue=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ue+"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()},ze.prototype.addLicenseKey=function(ue){ce.addKey(ue)},ze.prototype.addEventListener=function(ue,fe){this.eventListeners.addEventListener(ue,fe)},ze.prototype.removeEventListener=function(ue,fe){this.eventListeners.removeEventListener(ue,fe)},ze.prototype.renderState=function(ue){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ue),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ze.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ze.prototype.focus=function(){var ue=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(fe){return fe(new Gn(ue))}))},ze.prototype.blur=function(){var ue=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(fe){return fe(new Gn(ue))}))},ze.instanceCounter=0,ze}()},95860:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return it}});var oe=ne(87462),de=ne(1413),Fe=ne(4942),Xe=ne(97685),Se=ne(45987),Me=ne(94184),ce=ne.n(Me),we=ne(67294);function ge(pt){var Ce=we.useRef();Ce.current=pt;var be=we.useCallback(function(){for(var Ze,je=arguments.length,Et=new Array(je),ft=0;ft<je;ft++)Et[ft]=arguments[ft];return(Ze=Ce.current)===null||Ze===void 0?void 0:Ze.call.apply(Ze,[Ce].concat(Et))},[]);return be}function Be(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Qe=Be()?we.useLayoutEffect:we.useEffect,Oe=function(Ce,be){var Ze=we.useRef(!0);Qe(function(){return Ce(Ze.current)},be),Qe(function(){return Ze.current=!1,function(){Ze.current=!0}},[])},et=function(Ce,be){Oe(function(Ze){if(!Ze)return Ce()},be)},ot=null;function nt(pt){var Ce=we.useRef(!1),be=we.useState(pt),Ze=(0,Xe.Z)(be,2),je=Ze[0],Et=Ze[1];we.useEffect(function(){return Ce.current=!1,function(){Ce.current=!0}},[]);function ft(ut,Re){Re&&Ce.current||Et(ut)}return[je,ft]}function Ve(pt){return pt!==void 0}function xe(pt,Ce){var be=Ce||{},Ze=be.defaultValue,je=be.value,Et=be.onChange,ft=be.postState,ut=nt(function(){return Ve(je)?je:Ve(Ze)?typeof Ze=="function"?Ze():Ze:typeof pt=="function"?pt():pt}),Re=(0,Xe.Z)(ut,2),Vt=Re[0],wt=Re[1],yn=je!==void 0?je:Vt,Ft=ft?ft(yn):yn,ln=ge(Et),Kn=nt([yn]),rt=(0,Xe.Z)(Kn,2),dt=rt[0],Ae=rt[1];et(function(){var Cn=dt[0];Vt!==Cn&&ln(Vt,Cn)},[dt]),et(function(){Ve(je)||wt(je)},[je]);var Bt=ge(function(Cn,en){wt(Cn,en),Ae([yn],en)});return[Ft,Bt]}var mt=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Lt=(0,we.forwardRef)(function(pt,Ce){var be,Ze=pt.prefixCls,je=Ze===void 0?"rc-checkbox":Ze,Et=pt.className,ft=pt.style,ut=pt.checked,Re=pt.disabled,Vt=pt.defaultChecked,wt=Vt===void 0?!1:Vt,yn=pt.type,Ft=yn===void 0?"checkbox":yn,ln=pt.title,Kn=pt.onChange,rt=(0,Se.Z)(pt,mt),dt=(0,we.useRef)(null),Ae=xe(wt,{value:ut}),Bt=(0,Xe.Z)(Ae,2),Cn=Bt[0],en=Bt[1];(0,we.useImperativeHandle)(Ce,function(){return{focus:function(){var cr;(cr=dt.current)===null||cr===void 0||cr.focus()},blur:function(){var cr;(cr=dt.current)===null||cr===void 0||cr.blur()},input:dt.current}});var Ct=ce()(je,Et,(be={},(0,Fe.Z)(be,"".concat(je,"-checked"),Cn),(0,Fe.Z)(be,"".concat(je,"-disabled"),Re),be)),Rt=function(cr){Re||("checked"in pt||en(cr.target.checked),Kn==null||Kn({target:(0,de.Z)((0,de.Z)({},pt),{},{type:Ft,checked:cr.target.checked}),stopPropagation:function(){cr.stopPropagation()},preventDefault:function(){cr.preventDefault()},nativeEvent:cr.nativeEvent}))};return we.createElement("span",{className:Ct,title:ln,style:ft},we.createElement("input",(0,oe.Z)({},rt,{className:"".concat(je,"-input"),ref:dt,onChange:Rt,disabled:Re,checked:!!Cn,type:Ft})),we.createElement("span",{className:"".concat(je,"-inner")}))}),it=Lt},26819:function(An,Jt){"use strict";var ne;var oe=typeof Symbol=="function"&&Symbol.for,de=oe?Symbol.for("react.element"):60103,Fe=oe?Symbol.for("react.portal"):60106,Xe=oe?Symbol.for("react.fragment"):60107,Se=oe?Symbol.for("react.strict_mode"):60108,Me=oe?Symbol.for("react.profiler"):60114,ce=oe?Symbol.for("react.provider"):60109,we=oe?Symbol.for("react.context"):60110,ge=oe?Symbol.for("react.async_mode"):60111,Be=oe?Symbol.for("react.concurrent_mode"):60111,Qe=oe?Symbol.for("react.forward_ref"):60112,Oe=oe?Symbol.for("react.suspense"):60113,et=oe?Symbol.for("react.suspense_list"):60120,ot=oe?Symbol.for("react.memo"):60115,nt=oe?Symbol.for("react.lazy"):60116,Ve=oe?Symbol.for("react.block"):60121,xe=oe?Symbol.for("react.fundamental"):60117,mt=oe?Symbol.for("react.responder"):60118,Lt=oe?Symbol.for("react.scope"):60119;function it(Ce){if(typeof Ce=="object"&&Ce!==null){var be=Ce.$$typeof;switch(be){case de:switch(Ce=Ce.type,Ce){case ge:case Be:case Xe:case Me:case Se:case Oe:return Ce;default:switch(Ce=Ce&&Ce.$$typeof,Ce){case we:case Qe:case nt:case ot:case ce:return Ce;default:return be}}case Fe:return be}}}function pt(Ce){return it(Ce)===Be}ne=ge,ne=Be,ne=we,ne=ce,ne=de,ne=Qe,ne=Xe,ne=nt,ne=ot,ne=Fe,ne=Me,ne=Se,ne=Oe,ne=function(Ce){return pt(Ce)||it(Ce)===ge},ne=pt,ne=function(Ce){return it(Ce)===we},ne=function(Ce){return it(Ce)===ce},ne=function(Ce){return typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===de},ne=function(Ce){return it(Ce)===Qe},ne=function(Ce){return it(Ce)===Xe},ne=function(Ce){return it(Ce)===nt},Jt.isMemo=function(Ce){return it(Ce)===ot},ne=function(Ce){return it(Ce)===Fe},ne=function(Ce){return it(Ce)===Me},ne=function(Ce){return it(Ce)===Se},ne=function(Ce){return it(Ce)===Oe},ne=function(Ce){return typeof Ce=="string"||typeof Ce=="function"||Ce===Xe||Ce===Be||Ce===Me||Ce===Se||Ce===Oe||Ce===et||typeof Ce=="object"&&Ce!==null&&(Ce.$$typeof===nt||Ce.$$typeof===ot||Ce.$$typeof===ce||Ce.$$typeof===we||Ce.$$typeof===Qe||Ce.$$typeof===xe||Ce.$$typeof===mt||Ce.$$typeof===Lt||Ce.$$typeof===Ve)},ne=it},18459:function(An,Jt,ne){"use strict";An.exports=ne(26819)},16651:function(An,Jt){"use strict";var ne;var oe=Symbol.for("react.element"),de=Symbol.for("react.portal"),Fe=Symbol.for("react.fragment"),Xe=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),ce=Symbol.for("react.context"),we=Symbol.for("react.server_context"),ge=Symbol.for("react.forward_ref"),Be=Symbol.for("react.suspense"),Qe=Symbol.for("react.suspense_list"),Oe=Symbol.for("react.memo"),et=Symbol.for("react.lazy"),ot=Symbol.for("react.offscreen"),nt;nt=Symbol.for("react.module.reference");function Ve(xe){if(typeof xe=="object"&&xe!==null){var mt=xe.$$typeof;switch(mt){case oe:switch(xe=xe.type,xe){case Fe:case Se:case Xe:case Be:case Qe:return xe;default:switch(xe=xe&&xe.$$typeof,xe){case we:case ce:case ge:case et:case Oe:case Me:return xe;default:return mt}}case de:return mt}}}ne=ce,ne=Me,ne=oe,ne=ge,ne=Fe,ne=et,ne=Oe,ne=de,ne=Se,ne=Xe,ne=Be,ne=Qe,ne=function(){return!1},ne=function(){return!1},ne=function(xe){return Ve(xe)===ce},ne=function(xe){return Ve(xe)===Me},ne=function(xe){return typeof xe=="object"&&xe!==null&&xe.$$typeof===oe},ne=function(xe){return Ve(xe)===ge},ne=function(xe){return Ve(xe)===Fe},ne=function(xe){return Ve(xe)===et},ne=function(xe){return Ve(xe)===Oe},ne=function(xe){return Ve(xe)===de},ne=function(xe){return Ve(xe)===Se},ne=function(xe){return Ve(xe)===Xe},ne=function(xe){return Ve(xe)===Be},ne=function(xe){return Ve(xe)===Qe},ne=function(xe){return typeof xe=="string"||typeof xe=="function"||xe===Fe||xe===Se||xe===Xe||xe===Be||xe===Qe||xe===ot||typeof xe=="object"&&xe!==null&&(xe.$$typeof===et||xe.$$typeof===Oe||xe.$$typeof===Me||xe.$$typeof===ce||xe.$$typeof===ge||xe.$$typeof===nt||xe.getModuleId!==void 0)},ne=Ve},33993:function(An,Jt,ne){"use strict";ne(16651)},82523:function(An,Jt){"use strict";var ne;var oe=Symbol.for("react.element"),de=Symbol.for("react.portal"),Fe=Symbol.for("react.fragment"),Xe=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),ce=Symbol.for("react.context"),we=Symbol.for("react.server_context"),ge=Symbol.for("react.forward_ref"),Be=Symbol.for("react.suspense"),Qe=Symbol.for("react.suspense_list"),Oe=Symbol.for("react.memo"),et=Symbol.for("react.lazy"),ot=Symbol.for("react.offscreen"),nt;nt=Symbol.for("react.module.reference");function Ve(xe){if(typeof xe=="object"&&xe!==null){var mt=xe.$$typeof;switch(mt){case oe:switch(xe=xe.type,xe){case Fe:case Se:case Xe:case Be:case Qe:return xe;default:switch(xe=xe&&xe.$$typeof,xe){case we:case ce:case ge:case et:case Oe:case Me:return xe;default:return mt}}case de:return mt}}}ne=ce,ne=Me,ne=oe,ne=ge,ne=Fe,ne=et,ne=Oe,ne=de,ne=Se,ne=Xe,ne=Be,ne=Qe,ne=function(){return!1},ne=function(){return!1},ne=function(xe){return Ve(xe)===ce},ne=function(xe){return Ve(xe)===Me},ne=function(xe){return typeof xe=="object"&&xe!==null&&xe.$$typeof===oe},ne=function(xe){return Ve(xe)===ge},ne=function(xe){return Ve(xe)===Fe},ne=function(xe){return Ve(xe)===et},ne=function(xe){return Ve(xe)===Oe},ne=function(xe){return Ve(xe)===de},ne=function(xe){return Ve(xe)===Se},ne=function(xe){return Ve(xe)===Xe},ne=function(xe){return Ve(xe)===Be},ne=function(xe){return Ve(xe)===Qe},ne=function(xe){return typeof xe=="string"||typeof xe=="function"||xe===Fe||xe===Se||xe===Xe||xe===Be||xe===Qe||xe===ot||typeof xe=="object"&&xe!==null&&(xe.$$typeof===et||xe.$$typeof===Oe||xe.$$typeof===Me||xe.$$typeof===ce||xe.$$typeof===ge||xe.$$typeof===nt||xe.getModuleId!==void 0)},ne=Ve},27183:function(An,Jt,ne){"use strict";ne(82523)},67656:function(An,Jt,ne){"use strict";ne.r(Jt),ne.d(Jt,{BaseInput:function(){return Be},default:function(){return Lt}});var oe=ne(87462),de=ne(1413),Fe=ne(4942),Xe=ne(71002),Se=ne(94184),Me=ne.n(Se),ce=ne(67294),we=ne(87887),ge=function(pt){var Ce,be,Ze=pt.inputElement,je=pt.prefixCls,Et=pt.prefix,ft=pt.suffix,ut=pt.addonBefore,Re=pt.addonAfter,Vt=pt.className,wt=pt.style,yn=pt.disabled,Ft=pt.readOnly,ln=pt.focused,Kn=pt.triggerFocus,rt=pt.allowClear,dt=pt.value,Ae=pt.handleReset,Bt=pt.hidden,Cn=pt.classes,en=pt.classNames,Ct=pt.dataAttrs,Rt=pt.styles,tn=pt.components,cr=(tn==null?void 0:tn.affixWrapper)||"span",Gn=(tn==null?void 0:tn.groupWrapper)||"span",qt=(tn==null?void 0:tn.wrapper)||"span",Fn=(tn==null?void 0:tn.groupAddon)||"span",lr=(0,ce.useRef)(null),nn=function(zt){var Ot;(Ot=lr.current)!==null&&Ot!==void 0&&Ot.contains(zt.target)&&(Kn==null||Kn())},ze=function(){var zt;if(!rt)return null;var Ot=!yn&&!Ft&&dt,ht="".concat(je,"-clear-icon"),It=(0,Xe.Z)(rt)==="object"&&rt!==null&&rt!==void 0&&rt.clearIcon?rt.clearIcon:"\u2716";return ce.createElement("span",{onClick:Ae,onMouseDown:function(sn){return sn.preventDefault()},className:Me()(ht,(zt={},(0,Fe.Z)(zt,"".concat(ht,"-hidden"),!Ot),(0,Fe.Z)(zt,"".concat(ht,"-has-suffix"),!!ft),zt)),role:"button",tabIndex:-1},It)},ue=(0,ce.cloneElement)(Ze,{value:dt,hidden:Bt,className:Me()((Ce=Ze.props)===null||Ce===void 0?void 0:Ce.className,!(0,we.X3)(pt)&&!(0,we.He)(pt)&&Vt)||null,style:(0,de.Z)((0,de.Z)({},(be=Ze.props)===null||be===void 0?void 0:be.style),!(0,we.X3)(pt)&&!(0,we.He)(pt)?wt:{})});if((0,we.X3)(pt)){var fe,ve="".concat(je,"-affix-wrapper"),he=Me()(ve,(fe={},(0,Fe.Z)(fe,"".concat(ve,"-disabled"),yn),(0,Fe.Z)(fe,"".concat(ve,"-focused"),ln),(0,Fe.Z)(fe,"".concat(ve,"-readonly"),Ft),(0,Fe.Z)(fe,"".concat(ve,"-input-with-clear-btn"),ft&&rt&&dt),fe),!(0,we.He)(pt)&&Vt,Cn==null?void 0:Cn.affixWrapper,en==null?void 0:en.affixWrapper),le=(ft||rt)&&ce.createElement("span",{className:Me()("".concat(je,"-suffix"),en==null?void 0:en.suffix),style:Rt==null?void 0:Rt.suffix},ze(),ft);ue=ce.createElement(cr,(0,oe.Z)({className:he,style:(0,de.Z)((0,de.Z)({},(0,we.He)(pt)?void 0:wt),Rt==null?void 0:Rt.affixWrapper),hidden:!(0,we.He)(pt)&&Bt,onClick:nn},Ct==null?void 0:Ct.affixWrapper,{ref:lr}),Et&&ce.createElement("span",{className:Me()("".concat(je,"-prefix"),en==null?void 0:en.prefix),style:Rt==null?void 0:Rt.prefix},Et),(0,ce.cloneElement)(Ze,{value:dt,hidden:null}),le)}if((0,we.He)(pt)){var Ne="".concat(je,"-group"),Te="".concat(Ne,"-addon"),gt=Me()("".concat(je,"-wrapper"),Ne,Cn==null?void 0:Cn.wrapper),At=Me()("".concat(je,"-group-wrapper"),Vt,Cn==null?void 0:Cn.group);return ce.createElement(Gn,{className:At,style:wt,hidden:Bt},ce.createElement(qt,{className:gt},ut&&ce.createElement(Fn,{className:Te},ut),(0,ce.cloneElement)(ue,{hidden:null}),Re&&ce.createElement(Fn,{className:Te},Re)))}return ue},Be=ge,Qe=ne(74902),Oe=ne(97685),et=ne(45987),ot=ne(21770),nt=ne(98423),Ve=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],xe=(0,ce.forwardRef)(function(it,pt){var Ce=it.autoComplete,be=it.onChange,Ze=it.onFocus,je=it.onBlur,Et=it.onPressEnter,ft=it.onKeyDown,ut=it.prefixCls,Re=ut===void 0?"rc-input":ut,Vt=it.disabled,wt=it.htmlSize,yn=it.className,Ft=it.maxLength,ln=it.suffix,Kn=it.showCount,rt=it.type,dt=rt===void 0?"text":rt,Ae=it.classes,Bt=it.classNames,Cn=it.styles,en=(0,et.Z)(it,Ve),Ct=(0,ot.Z)(it.defaultValue,{value:it.value}),Rt=(0,Oe.Z)(Ct,2),tn=Rt[0],cr=Rt[1],Gn=(0,ce.useState)(!1),qt=(0,Oe.Z)(Gn,2),Fn=qt[0],lr=qt[1],nn=(0,ce.useRef)(null),ze=function(At){nn.current&&(0,we.nH)(nn.current,At)};(0,ce.useImperativeHandle)(pt,function(){return{focus:ze,blur:function(){var At;(At=nn.current)===null||At===void 0||At.blur()},setSelectionRange:function(At,Tt,zt){var Ot;(Ot=nn.current)===null||Ot===void 0||Ot.setSelectionRange(At,Tt,zt)},select:function(){var At;(At=nn.current)===null||At===void 0||At.select()},input:nn.current}}),(0,ce.useEffect)(function(){lr(function(gt){return gt&&Vt?!1:gt})},[Vt]);var ue=function(At){it.value===void 0&&cr(At.target.value),nn.current&&(0,we.rJ)(nn.current,At,be)},fe=function(At){Et&&At.key==="Enter"&&Et(At),ft==null||ft(At)},ve=function(At){lr(!0),Ze==null||Ze(At)},he=function(At){lr(!1),je==null||je(At)},le=function(At){cr(""),ze(),nn.current&&(0,we.rJ)(nn.current,At,be)},Ne=function(){var At=(0,nt.Z)(it,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return ce.createElement("input",(0,oe.Z)({autoComplete:Ce},At,{onChange:ue,onFocus:ve,onBlur:he,onKeyDown:fe,className:Me()(Re,(0,Fe.Z)({},"".concat(Re,"-disabled"),Vt),Bt==null?void 0:Bt.input),style:Cn==null?void 0:Cn.input,ref:nn,size:wt,type:dt}))},Te=function(){var At=Number(Ft)>0;if(ln||Kn){var Tt=(0,we.D7)(tn),zt=(0,Qe.Z)(Tt).length,Ot=(0,Xe.Z)(Kn)==="object"?Kn.formatter({value:Tt,count:zt,maxLength:Ft}):"".concat(zt).concat(At?" / ".concat(Ft):"");return ce.createElement(ce.Fragment,null,!!Kn&&ce.createElement("span",{className:Me()("".concat(Re,"-show-count-suffix"),(0,Fe.Z)({},"".concat(Re,"-show-count-has-suffix"),!!ln),Bt==null?void 0:Bt.count),style:(0,de.Z)({},Cn==null?void 0:Cn.count)},Ot),ln)}return null};return ce.createElement(Be,(0,oe.Z)({},en,{prefixCls:Re,className:yn,inputElement:Ne(),handleReset:le,value:(0,we.D7)(tn),focused:Fn,triggerFocus:ze,suffix:Te(),disabled:Vt,classes:Ae,classNames:Bt,styles:Cn}))}),mt=xe,Lt=mt},87887:function(An,Jt,ne){"use strict";ne.d(Jt,{D7:function(){return Se},He:function(){return oe},X3:function(){return de},nH:function(){return Xe},rJ:function(){return Fe}});function oe(Me){return!!(Me.addonBefore||Me.addonAfter)}function de(Me){return!!(Me.prefix||Me.suffix||Me.allowClear)}function Fe(Me,ce,we,ge){if(we){var Be=ce;if(ce.type==="click"){var Qe=Me.cloneNode(!0);Be=Object.create(ce,{target:{value:Qe},currentTarget:{value:Qe}}),Qe.value="",we(Be);return}if(ge!==void 0){Be=Object.create(ce,{target:{value:Me},currentTarget:{value:Me}}),Me.value=ge,we(Be);return}we(Be)}}function Xe(Me,ce){if(Me){Me.focus(ce);var we=ce||{},ge=we.cursor;if(ge){var Be=Me.value.length;switch(ge){case"start":Me.setSelectionRange(0,0);break;case"end":Me.setSelectionRange(Be,Be);break;default:Me.setSelectionRange(0,Be)}}}}function Se(Me){return typeof Me=="undefined"||Me===null?"":String(Me)}},78595:function(An,Jt,ne){"use strict";ne.d(Jt,{iz:function(){return vi},ck:function(){return Pi},BW:function(){return Si},sN:function(){return Pi},Wd:function(){return Zn},ZP:function(){return _e},Xl:function(){return Ot}});var oe=ne(87462),de=ne(4942),Fe=ne(1413),Xe=ne(74902),Se=ne(97685),Me=ne(45987),ce=ne(94184),we=ne.n(ce),ge=ne(67294),Be=ne(48555);function Qe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Oe=Qe()?ge.useLayoutEffect:ge.useEffect,et=function(Ye,Je){var $e=ge.useRef(!0);Oe(function(){return Ye($e.current)},Je),Oe(function(){return $e.current=!1,function(){$e.current=!0}},[])},ot=function(Ye,Je){et(function($e){if(!$e)return Ye()},Je)},nt=et,Ve=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],xe=void 0;function mt(Ke,Ye){var Je=Ke.prefixCls,$e=Ke.invalidate,Ge=Ke.item,Xt=Ke.renderItem,un=Ke.responsive,Wn=Ke.responsiveDisabled,ar=Ke.registerSize,$n=Ke.itemKey,Nn=Ke.className,Bn=Ke.style,rn=Ke.children,Xn=Ke.display,Ar=Ke.order,ur=Ke.component,Mn=ur===void 0?"div":ur,mr=(0,Me.Z)(Ke,Ve),Dr=un&&!Xn;function _r(Dn){ar($n,Dn)}ge.useEffect(function(){return function(){_r(null)}},[]);var tt=Xt&&Ge!==xe?Xt(Ge):rn,at;$e||(at={opacity:Dr?0:1,height:Dr?0:xe,overflowY:Dr?"hidden":xe,order:un?Ar:xe,pointerEvents:Dr?"none":xe,position:Dr?"absolute":xe});var on={};Dr&&(on["aria-hidden"]=!0);var Qt=ge.createElement(Mn,(0,oe.Z)({className:we()(!$e&&Je,Nn),style:(0,Fe.Z)((0,Fe.Z)({},at),Bn)},on,mr,{ref:Ye}),tt);return un&&(Qt=ge.createElement(Be.Z,{onResize:function(sr){var Mt=sr.offsetWidth;_r(Mt)},disabled:Wn},Qt)),Qt}var Lt=ge.forwardRef(mt);Lt.displayName="Item";var it=Lt;function pt(Ke){var Ye=ge.useRef();Ye.current=Ke;var Je=ge.useCallback(function(){for(var $e,Ge=arguments.length,Xt=new Array(Ge),un=0;un<Ge;un++)Xt[un]=arguments[un];return($e=Ye.current)===null||$e===void 0?void 0:$e.call.apply($e,[Ye].concat(Xt))},[]);return Je}var Ce=ne(73935),be=function(Ye){return+setTimeout(Ye,16)},Ze=function(Ye){return clearTimeout(Ye)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(be=function(Ye){return window.requestAnimationFrame(Ye)},Ze=function(Ye){return window.cancelAnimationFrame(Ye)});var je=0,Et=new Map;function ft(Ke){Et.delete(Ke)}var ut=function(Ye){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;je+=1;var $e=je;function Ge(Xt){if(Xt===0)ft($e),Ye();else{var un=be(function(){Ge(Xt-1)});Et.set($e,un)}}return Ge(Je),$e};ut.cancel=function(Ke){var Ye=Et.get(Ke);return ft(Ye),Ze(Ye)};var Re=ut;function Vt(Ke){if(typeof MessageChannel=="undefined")Re(Ke);else{var Ye=new MessageChannel;Ye.port1.onmessage=function(){return Ke()},Ye.port2.postMessage(void 0)}}function wt(){var Ke=ge.useRef(null),Ye=function($e){Ke.current||(Ke.current=[],Vt(function(){(0,Ce.unstable_batchedUpdates)(function(){Ke.current.forEach(function(Ge){Ge()}),Ke.current=null})})),Ke.current.push($e)};return Ye}function yn(Ke,Ye){var Je=ge.useState(Ye),$e=(0,Se.Z)(Je,2),Ge=$e[0],Xt=$e[1],un=pt(function(Wn){Ke(function(){Xt(Wn)})});return[Ge,un]}var Ft=ge.createContext(null),ln=["component"],Kn=["className"],rt=["className"],dt=function(Ye,Je){var $e=ge.useContext(Ft);if(!$e){var Ge=Ye.component,Xt=Ge===void 0?"div":Ge,un=(0,Me.Z)(Ye,ln);return ge.createElement(Xt,(0,oe.Z)({},un,{ref:Je}))}var Wn=$e.className,ar=(0,Me.Z)($e,Kn),$n=Ye.className,Nn=(0,Me.Z)(Ye,rt);return ge.createElement(Ft.Provider,{value:null},ge.createElement(it,(0,oe.Z)({ref:Je,className:we()(Wn,$n)},ar,Nn)))},Ae=ge.forwardRef(dt);Ae.displayName="RawItem";var Bt=Ae,Cn=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],en="responsive",Ct="invalidate";function Rt(Ke){return"+ ".concat(Ke.length," ...")}function tn(Ke,Ye){var Je=Ke.prefixCls,$e=Je===void 0?"rc-overflow":Je,Ge=Ke.data,Xt=Ge===void 0?[]:Ge,un=Ke.renderItem,Wn=Ke.renderRawItem,ar=Ke.itemKey,$n=Ke.itemWidth,Nn=$n===void 0?10:$n,Bn=Ke.ssr,rn=Ke.style,Xn=Ke.className,Ar=Ke.maxCount,ur=Ke.renderRest,Mn=Ke.renderRawRest,mr=Ke.suffix,Dr=Ke.component,_r=Dr===void 0?"div":Dr,tt=Ke.itemComponent,at=Ke.onVisibleChange,on=(0,Me.Z)(Ke,Cn),Qt=Bn==="full",Dn=wt(),sr=yn(Dn,null),Mt=(0,Se.Z)(sr,2),Dt=Mt[0],Nt=Mt[1],Gt=Dt||0,Rn=yn(Dn,new Map),Qn=(0,Se.Z)(Rn,2),wn=Qn[0],Yn=Qn[1],kr=yn(Dn,0),bn=(0,Se.Z)(kr,2),pn=bn[0],_n=bn[1],Tr=yn(Dn,0),Ir=(0,Se.Z)(Tr,2),Jr=Ir[0],Zr=Ir[1],Br=yn(Dn,0),si=(0,Se.Z)(Br,2),oi=si[0],vt=si[1],dn=(0,ge.useState)(null),hr=(0,Se.Z)(dn,2),mi=hr[0],ii=hr[1],yi=(0,ge.useState)(null),zi=(0,Se.Z)(yi,2),Mi=zi[0],fi=zi[1],_i=ge.useMemo(function(){return Mi===null&&Qt?Number.MAX_SAFE_INTEGER:Mi||0},[Mi,Dt]),ma=(0,ge.useState)(!1),oo=(0,Se.Z)(ma,2),Ja=oo[0],Wa=oo[1],za="".concat($e,"-item"),La=Math.max(pn,Jr),ia=Ar===en,mo=Xt.length&&ia,va=Ar===Ct,Zi=mo||typeof Ar=="number"&&Xt.length>Ar,Ta=(0,ge.useMemo)(function(){var xa=Xt;return mo?Dt===null&&Qt?xa=Xt:xa=Xt.slice(0,Math.min(Xt.length,Gt/Nn)):typeof Ar=="number"&&(xa=Xt.slice(0,Ar)),xa},[Xt,Nn,Dt,Ar,mo]),no=(0,ge.useMemo)(function(){return mo?Xt.slice(_i+1):Xt.slice(Ta.length)},[Xt,Ta,mo,_i]),Na=(0,ge.useCallback)(function(xa,Pa){var io;return typeof ar=="function"?ar(xa):(io=ar&&(xa==null?void 0:xa[ar]))!==null&&io!==void 0?io:Pa},[ar]),Ka=(0,ge.useCallback)(un||function(xa){return xa},[un]);function aa(xa,Pa,io){Mi===xa&&(Pa===void 0||Pa===mi)||(fi(xa),io||(Wa(xa<Xt.length-1),at==null||at(xa)),Pa!==void 0&&ii(Pa))}function ro(xa,Pa){Nt(Pa.clientWidth)}function bo(xa,Pa){Yn(function(io){var go=new Map(io);return Pa===null?go.delete(xa):go.set(xa,Pa),go})}function uo(xa,Pa){Zr(Pa),_n(Jr)}function xo(xa,Pa){vt(Pa)}function Ao(xa){return wn.get(Na(Ta[xa],xa))}nt(function(){if(Gt&&typeof La=="number"&&Ta){var xa=oi,Pa=Ta.length,io=Pa-1;if(!Pa){aa(0,null);return}for(var go=0;go<Pa;go+=1){var Uo=Ao(go);if(Qt&&(Uo=Uo||0),Uo===void 0){aa(go-1,void 0,!0);break}if(xa+=Uo,io===0&&xa<=Gt||go===io-1&&xa+Ao(io)<=Gt){aa(io,null);break}else if(xa+La>Gt){aa(go-1,xa-Uo-oi+Jr);break}}mr&&Ao(0)+oi>Gt&&ii(null)}},[Gt,wn,Jr,oi,Na,Ta]);var Xo=Ja&&!!no.length,co={};mi!==null&&mo&&(co={position:"absolute",left:mi,top:0});var wo={prefixCls:za,responsive:mo,component:tt,invalidate:va},os=Wn?function(xa,Pa){var io=Na(xa,Pa);return ge.createElement(Ft.Provider,{key:io,value:(0,Fe.Z)((0,Fe.Z)({},wo),{},{order:Pa,item:xa,itemKey:io,registerSize:bo,display:Pa<=_i})},Wn(xa,Pa))}:function(xa,Pa){var io=Na(xa,Pa);return ge.createElement(it,(0,oe.Z)({},wo,{order:Pa,key:io,item:xa,renderItem:Ka,itemKey:io,registerSize:bo,display:Pa<=_i}))},rs,us={order:Xo?_i:Number.MAX_SAFE_INTEGER,className:"".concat(za,"-rest"),registerSize:uo,display:Xo};if(Mn)Mn&&(rs=ge.createElement(Ft.Provider,{value:(0,Fe.Z)((0,Fe.Z)({},wo),us)},Mn(no)));else{var Io=ur||Rt;rs=ge.createElement(it,(0,oe.Z)({},wo,us),typeof Io=="function"?Io(no):Io)}var So=ge.createElement(_r,(0,oe.Z)({className:we()(!va&&$e,Xn),style:rn,ref:Ye},on),Ta.map(os),Zi?rs:null,mr&&ge.createElement(it,(0,oe.Z)({},wo,{responsive:ia,responsiveDisabled:!mo,order:_i,className:"".concat(za,"-suffix"),registerSize:xo,display:!0,style:co}),mr));return ia&&(So=ge.createElement(Be.Z,{onResize:ro,disabled:!mo},So)),So}var cr=ge.forwardRef(tn);cr.displayName="Overflow",cr.Item=Bt,cr.RESPONSIVE=en,cr.INVALIDATE=Ct;var Gn=cr,qt=Gn,Fn=ne(21770),lr=ne(80334),nn=ne(91881),ze=ge.createContext(null);function ue(Ke,Ye){return Ke===void 0?null:"".concat(Ke,"-").concat(Ye)}function fe(Ke){var Ye=ge.useContext(ze);return ue(Ye,Ke)}var ve=ne(56982),he=["children","locked"],le=ge.createContext(null);function Ne(Ke,Ye){var Je=(0,Fe.Z)({},Ke);return Object.keys(Ye).forEach(function($e){var Ge=Ye[$e];Ge!==void 0&&(Je[$e]=Ge)}),Je}function Te(Ke){var Ye=Ke.children,Je=Ke.locked,$e=(0,Me.Z)(Ke,he),Ge=ge.useContext(le),Xt=(0,ve.Z)(function(){return Ne(Ge,$e)},[Ge,$e],function(un,Wn){return!Je&&(un[0]!==Wn[0]||!(0,nn.Z)(un[1],Wn[1],!0))});return ge.createElement(le.Provider,{value:Xt},Ye)}var gt=[],At=ge.createContext(null);function Tt(){return ge.useContext(At)}var zt=ge.createContext(gt);function Ot(Ke){var Ye=ge.useContext(zt);return ge.useMemo(function(){return Ke!==void 0?[].concat((0,Xe.Z)(Ye),[Ke]):Ye},[Ye,Ke])}var ht=ge.createContext(null),It=ge.createContext({}),xt=It,sn=ne(15105),Kt=ne(75164),Un=function(Ke){if(!Ke)return!1;if(Ke instanceof Element){if(Ke.offsetParent)return!0;if(Ke.getBBox){var Ye=Ke.getBBox(),Je=Ye.width,$e=Ye.height;if(Je||$e)return!0}if(Ke.getBoundingClientRect){var Ge=Ke.getBoundingClientRect(),Xt=Ge.width,un=Ge.height;if(Xt||un)return!0}}return!1};function bt(Ke){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Un(Ke)){var Je=Ke.nodeName.toLowerCase(),$e=["input","select","textarea","button"].includes(Je)||Ke.isContentEditable||Je==="a"&&!!Ke.getAttribute("href"),Ge=Ke.getAttribute("tabindex"),Xt=Number(Ge),un=null;return Ge&&!Number.isNaN(Xt)?un=Xt:$e&&un===null&&(un=0),$e&&Ke.disabled&&(un=null),un!==null&&(un>=0||Ye&&un<0)}return!1}function Pt(Ke){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Je=(0,Xe.Z)(Ke.querySelectorAll("*")).filter(function($e){return bt($e,Ye)});return bt(Ke,Ye)&&Je.unshift(Ke),Je}var vn=null;function mn(){vn=document.activeElement}function gn(){vn=null}function or(){if(vn)try{vn.focus()}catch(Ke){}}function er(Ke,Ye){if(Ye.keyCode===9){var Je=Pt(Ke),$e=Je[Ye.shiftKey?0:Je.length-1],Ge=$e===document.activeElement||Ke===document.activeElement;if(Ge){var Xt=Je[Ye.shiftKey?Je.length-1:0];Xt.focus(),Ye.preventDefault()}}}var tr=sn.Z.LEFT,Hr=sn.Z.RIGHT,jr=sn.Z.UP,vr=sn.Z.DOWN,Kr=sn.Z.ENTER,yr=sn.Z.ESC,br=sn.Z.HOME,Cr=sn.Z.END,zr=[jr,vr,tr,Hr];function Wt(Ke,Ye,Je,$e){var Ge,Xt,un,Wn,ar="prev",$n="next",Nn="children",Bn="parent";if(Ke==="inline"&&$e===Kr)return{inlineTrigger:!0};var rn=(Ge={},(0,de.Z)(Ge,jr,ar),(0,de.Z)(Ge,vr,$n),Ge),Xn=(Xt={},(0,de.Z)(Xt,tr,Je?$n:ar),(0,de.Z)(Xt,Hr,Je?ar:$n),(0,de.Z)(Xt,vr,Nn),(0,de.Z)(Xt,Kr,Nn),Xt),Ar=(un={},(0,de.Z)(un,jr,ar),(0,de.Z)(un,vr,$n),(0,de.Z)(un,Kr,Nn),(0,de.Z)(un,yr,Bn),(0,de.Z)(un,tr,Je?Nn:Bn),(0,de.Z)(un,Hr,Je?Bn:Nn),un),ur={inline:rn,horizontal:Xn,vertical:Ar,inlineSub:rn,horizontalSub:Ar,verticalSub:Ar},Mn=(Wn=ur["".concat(Ke).concat(Ye?"":"Sub")])===null||Wn===void 0?void 0:Wn[$e];switch(Mn){case ar:return{offset:-1,sibling:!0};case $n:return{offset:1,sibling:!0};case Bn:return{offset:-1,sibling:!1};case Nn:return{offset:1,sibling:!1};default:return null}}function On(Ke){for(var Ye=Ke;Ye;){if(Ye.getAttribute("data-menu-list"))return Ye;Ye=Ye.parentElement}return null}function qn(Ke,Ye){for(var Je=Ke||document.activeElement;Je;){if(Ye.has(Je))return Je;Je=Je.parentElement}return null}function zn(Ke,Ye){var Je=Pt(Ke,!0);return Je.filter(function($e){return Ye.has($e)})}function Jn(Ke,Ye,Je){var $e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ke)return null;var Ge=zn(Ke,Ye),Xt=Ge.length,un=Ge.findIndex(function(Wn){return Je===Wn});return $e<0?un===-1?un=Xt-1:un-=1:$e>0&&(un+=1),un=(un+Xt)%Xt,Ge[un]}function pr(Ke,Ye,Je,$e,Ge,Xt,un,Wn,ar,$n){var Nn=ge.useRef(),Bn=ge.useRef();Bn.current=Ye;var rn=function(){Kt.Z.cancel(Nn.current)};return ge.useEffect(function(){return function(){rn()}},[]),function(Xn){var Ar=Xn.which;if([].concat(zr,[Kr,yr,br,Cr]).includes(Ar)){var ur,Mn,mr,Dr=function(){ur=new Set,Mn=new Map,mr=new Map;var Qn=Xt();return Qn.forEach(function(wn){var Yn=document.querySelector("[data-menu-id='".concat(ue($e,wn),"']"));Yn&&(ur.add(Yn),mr.set(Yn,wn),Mn.set(wn,Yn))}),ur};Dr();var _r=Mn.get(Ye),tt=qn(_r,ur),at=mr.get(tt),on=Wt(Ke,un(at,!0).length===1,Je,Ar);if(!on&&Ar!==br&&Ar!==Cr)return;(zr.includes(Ar)||[br,Cr].includes(Ar))&&Xn.preventDefault();var Qt=function(Qn){if(Qn){var wn=Qn,Yn=Qn.querySelector("a");Yn!=null&&Yn.getAttribute("href")&&(wn=Yn);var kr=mr.get(Qn);Wn(kr),rn(),Nn.current=(0,Kt.Z)(function(){Bn.current===kr&&wn.focus()})}};if([br,Cr].includes(Ar)||on.sibling||!tt){var Dn;!tt||Ke==="inline"?Dn=Ge.current:Dn=On(tt);var sr,Mt=zn(Dn,ur);Ar===br?sr=Mt[0]:Ar===Cr?sr=Mt[Mt.length-1]:sr=Jn(Dn,ur,tt,on.offset),Qt(sr)}else if(on.inlineTrigger)ar(at);else if(on.offset>0)ar(at,!0),rn(),Nn.current=(0,Kt.Z)(function(){Dr();var Rn=tt.getAttribute("aria-controls"),Qn=document.getElementById(Rn),wn=Jn(Qn,ur);Qt(wn)},5);else if(on.offset<0){var Dt=un(at,!0),Nt=Dt[Dt.length-2],Gt=Mn.get(Nt);ar(Nt,!1),Qt(Gt)}}$n==null||$n(Xn)}}function wr(Ke){Promise.resolve().then(Ke)}var nr="__RC_UTIL_PATH_SPLIT__",St=function(Ye){return Ye.join(nr)},Zt=function(Ye){return Ye.split(nr)},jt="rc-menu-more";function kn(){var Ke=ge.useState({}),Ye=(0,Se.Z)(Ke,2),Je=Ye[1],$e=(0,ge.useRef)(new Map),Ge=(0,ge.useRef)(new Map),Xt=ge.useState([]),un=(0,Se.Z)(Xt,2),Wn=un[0],ar=un[1],$n=(0,ge.useRef)(0),Nn=(0,ge.useRef)(!1),Bn=function(){Nn.current||Je({})},rn=(0,ge.useCallback)(function(_r,tt){var at=St(tt);Ge.current.set(at,_r),$e.current.set(_r,at),$n.current+=1;var on=$n.current;wr(function(){on===$n.current&&Bn()})},[]),Xn=(0,ge.useCallback)(function(_r,tt){var at=St(tt);Ge.current.delete(at),$e.current.delete(_r)},[]),Ar=(0,ge.useCallback)(function(_r){ar(_r)},[]),ur=(0,ge.useCallback)(function(_r,tt){var at=$e.current.get(_r)||"",on=Zt(at);return tt&&Wn.includes(on[0])&&on.unshift(jt),on},[Wn]),Mn=(0,ge.useCallback)(function(_r,tt){return _r.some(function(at){var on=ur(at,!0);return on.includes(tt)})},[ur]),mr=function(){var tt=(0,Xe.Z)($e.current.keys());return Wn.length&&tt.push(jt),tt},Dr=(0,ge.useCallback)(function(_r){var tt="".concat($e.current.get(_r)).concat(nr),at=new Set;return(0,Xe.Z)(Ge.current.keys()).forEach(function(on){on.startsWith(tt)&&at.add(Ge.current.get(on))}),at},[]);return ge.useEffect(function(){return function(){Nn.current=!0}},[]),{registerPath:rn,unregisterPath:Xn,refreshOverflowKeys:Ar,isSubPathKey:Mn,getKeyPath:ur,getKeys:mr,getSubPathKeys:Dr}}function lt(Ke){var Ye=ge.useRef(Ke);Ye.current=Ke;var Je=ge.useCallback(function(){for(var $e,Ge=arguments.length,Xt=new Array(Ge),un=0;un<Ge;un++)Xt[un]=arguments[un];return($e=Ye.current)===null||$e===void 0?void 0:$e.call.apply($e,[Ye].concat(Xt))},[]);return Ke?Je:void 0}var Ut=Math.random().toFixed(5).toString().slice(2),ke=0;function an(Ke){var Ye=(0,Fn.Z)(Ke,{value:Ke}),Je=(0,Se.Z)(Ye,2),$e=Je[0],Ge=Je[1];return ge.useEffect(function(){ke+=1;var Xt="".concat(Ut,"-").concat(ke);Ge("rc-menu-uuid-".concat(Xt))},[]),$e}var kt=ne(15671),Tn=ne(43144),rr=ne(60136),Gr=ne(51630),Nr=ne(98423),Lr=ne(42550);function Ur(Ke,Ye,Je,$e){var Ge=ge.useContext(le),Xt=Ge.activeKey,un=Ge.onActive,Wn=Ge.onInactive,ar={active:Xt===Ke};return Ye||(ar.onMouseEnter=function($n){Je==null||Je({key:Ke,domEvent:$n}),un(Ke)},ar.onMouseLeave=function($n){$e==null||$e({key:Ke,domEvent:$n}),Wn(Ke)}),ar}function Sr(Ke){var Ye=ge.useContext(le),Je=Ye.mode,$e=Ye.rtl,Ge=Ye.inlineIndent;if(Je!=="inline")return null;var Xt=Ke;return $e?{paddingRight:Xt*Ge}:{paddingLeft:Xt*Ge}}function ai(Ke){var Ye=Ke.icon,Je=Ke.props,$e=Ke.children,Ge;return Ye===null||Ye===!1?null:(typeof Ye=="function"?Ge=ge.createElement(Ye,(0,Fe.Z)({},Je)):typeof Ye!="boolean"&&(Ge=Ye),Ge||$e||null)}var ir=["item"];function Rr(Ke){var Ye=Ke.item,Je=(0,Me.Z)(Ke,ir);return Object.defineProperty(Je,"item",{get:function(){return(0,lr.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Ye}}),Je}var Di=["title","attribute","elementRef"],Gi=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],qr=["active"],di=function(Ke){(0,rr.Z)(Je,Ke);var Ye=(0,Gr.Z)(Je);function Je(){return(0,kt.Z)(this,Je),Ye.apply(this,arguments)}return(0,Tn.Z)(Je,[{key:"render",value:function(){var Ge=this.props,Xt=Ge.title,un=Ge.attribute,Wn=Ge.elementRef,ar=(0,Me.Z)(Ge,Di),$n=(0,Nr.Z)(ar,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,lr.ZP)(!un,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),ge.createElement(qt.Item,(0,oe.Z)({},un,{title:typeof Xt=="string"?Xt:void 0},$n,{ref:Wn}))}}]),Je}(ge.Component),Yi=ge.forwardRef(function(Ke,Ye){var Je,$e=Ke.style,Ge=Ke.className,Xt=Ke.eventKey,un=Ke.warnKey,Wn=Ke.disabled,ar=Ke.itemIcon,$n=Ke.children,Nn=Ke.role,Bn=Ke.onMouseEnter,rn=Ke.onMouseLeave,Xn=Ke.onClick,Ar=Ke.onKeyDown,ur=Ke.onFocus,Mn=(0,Me.Z)(Ke,Gi),mr=fe(Xt),Dr=ge.useContext(le),_r=Dr.prefixCls,tt=Dr.onItemClick,at=Dr.disabled,on=Dr.overflowDisabled,Qt=Dr.itemIcon,Dn=Dr.selectedKeys,sr=Dr.onActive,Mt=ge.useContext(xt),Dt=Mt._internalRenderMenuItem,Nt="".concat(_r,"-item"),Gt=ge.useRef(),Rn=ge.useRef(),Qn=at||Wn,wn=(0,Lr.x1)(Ye,Rn),Yn=Ot(Xt),kr=function(hr){return{key:Xt,keyPath:(0,Xe.Z)(Yn).reverse(),item:Gt.current,domEvent:hr}},bn=ar||Qt,pn=Ur(Xt,Qn,Bn,rn),_n=pn.active,Tr=(0,Me.Z)(pn,qr),Ir=Dn.includes(Xt),Jr=Sr(Yn.length),Zr=function(hr){if(!Qn){var mi=kr(hr);Xn==null||Xn(Rr(mi)),tt(mi)}},Br=function(hr){if(Ar==null||Ar(hr),hr.which===sn.Z.ENTER){var mi=kr(hr);Xn==null||Xn(Rr(mi)),tt(mi)}},si=function(hr){sr(Xt),ur==null||ur(hr)},oi={};Ke.role==="option"&&(oi["aria-selected"]=Ir);var vt=ge.createElement(di,(0,oe.Z)({ref:Gt,elementRef:wn,role:Nn===null?"none":Nn||"menuitem",tabIndex:Wn?null:-1,"data-menu-id":on&&mr?null:mr},Mn,Tr,oi,{component:"li","aria-disabled":Wn,style:(0,Fe.Z)((0,Fe.Z)({},Jr),$e),className:we()(Nt,(Je={},(0,de.Z)(Je,"".concat(Nt,"-active"),_n),(0,de.Z)(Je,"".concat(Nt,"-selected"),Ir),(0,de.Z)(Je,"".concat(Nt,"-disabled"),Qn),Je),Ge),onClick:Zr,onKeyDown:Br,onFocus:si}),$n,ge.createElement(ai,{props:(0,Fe.Z)((0,Fe.Z)({},Ke),{},{isSelected:Ir}),icon:bn}));return Dt&&(vt=Dt(vt,Ke,{selected:Ir})),vt});function Xr(Ke,Ye){var Je=Ke.eventKey,$e=Tt(),Ge=Ot(Je);return ge.useEffect(function(){if($e)return $e.registerPath(Je,Ge),function(){$e.unregisterPath(Je,Ge)}},[Ge]),$e?null:ge.createElement(Yi,(0,oe.Z)({},Ke,{ref:Ye}))}var Pi=ge.forwardRef(Xr),Mr=["className","children"],ua=function(Ye,Je){var $e=Ye.className,Ge=Ye.children,Xt=(0,Me.Z)(Ye,Mr),un=ge.useContext(le),Wn=un.prefixCls,ar=un.mode,$n=un.rtl;return ge.createElement("ul",(0,oe.Z)({className:we()(Wn,$n&&"".concat(Wn,"-rtl"),"".concat(Wn,"-sub"),"".concat(Wn,"-").concat(ar==="inline"?"inline":"vertical"),$e),role:"menu"},Xt,{"data-menu-list":!0,ref:Je}),Ge)},ta=ge.forwardRef(ua);ta.displayName="SubMenuList";var Ra=ta,ca=ne(50344);function Xi(Ke,Ye){return(0,ca.Z)(Ke).map(function(Je,$e){if(ge.isValidElement(Je)){var Ge,Xt,un=Je.key,Wn=(Ge=(Xt=Je.props)===null||Xt===void 0?void 0:Xt.eventKey)!==null&&Ge!==void 0?Ge:un,ar=Wn==null;ar&&(Wn="tmp_key-".concat([].concat((0,Xe.Z)(Ye),[$e]).join("-")));var $n={key:Wn,eventKey:Wn};return ge.cloneElement(Je,$n)}return Je})}var Oi=ne(62709),la={adjustX:1,adjustY:1},Ji={topLeft:{points:["bl","tl"],overflow:la},topRight:{points:["br","tr"],overflow:la},bottomLeft:{points:["tl","bl"],overflow:la},bottomRight:{points:["tr","br"],overflow:la},leftTop:{points:["tr","tl"],overflow:la},leftBottom:{points:["br","bl"],overflow:la},rightTop:{points:["tl","tr"],overflow:la},rightBottom:{points:["bl","br"],overflow:la}},Sa={topLeft:{points:["bl","tl"],overflow:la},topRight:{points:["br","tr"],overflow:la},bottomLeft:{points:["tl","bl"],overflow:la},bottomRight:{points:["tr","br"],overflow:la},rightTop:{points:["tr","tl"],overflow:la},rightBottom:{points:["br","bl"],overflow:la},leftTop:{points:["tl","tr"],overflow:la},leftBottom:{points:["bl","br"],overflow:la}},Ya=null;function ka(Ke,Ye,Je){if(Ye)return Ye;if(Je)return Je[Ke]||Je.other}var ba={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ba(Ke){var Ye=Ke.prefixCls,Je=Ke.visible,$e=Ke.children,Ge=Ke.popup,Xt=Ke.popupStyle,un=Ke.popupClassName,Wn=Ke.popupOffset,ar=Ke.disabled,$n=Ke.mode,Nn=Ke.onVisibleChange,Bn=ge.useContext(le),rn=Bn.getPopupContainer,Xn=Bn.rtl,Ar=Bn.subMenuOpenDelay,ur=Bn.subMenuCloseDelay,Mn=Bn.builtinPlacements,mr=Bn.triggerSubMenuAction,Dr=Bn.forceSubMenuRender,_r=Bn.rootClassName,tt=Bn.motion,at=Bn.defaultMotions,on=ge.useState(!1),Qt=(0,Se.Z)(on,2),Dn=Qt[0],sr=Qt[1],Mt=Xn?(0,Fe.Z)((0,Fe.Z)({},Sa),Mn):(0,Fe.Z)((0,Fe.Z)({},Ji),Mn),Dt=ba[$n],Nt=ka($n,tt,at),Gt=ge.useRef(Nt);$n!=="inline"&&(Gt.current=Nt);var Rn=(0,Fe.Z)((0,Fe.Z)({},Gt.current),{},{leavedClassName:"".concat(Ye,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Qn=ge.useRef();return ge.useEffect(function(){return Qn.current=(0,Kt.Z)(function(){sr(Je)}),function(){Kt.Z.cancel(Qn.current)}},[Je]),ge.createElement(Oi.Z,{prefixCls:Ye,popupClassName:we()("".concat(Ye,"-popup"),(0,de.Z)({},"".concat(Ye,"-rtl"),Xn),un,_r),stretch:$n==="horizontal"?"minWidth":null,getPopupContainer:rn,builtinPlacements:Mt,popupPlacement:Dt,popupVisible:Dn,popup:Ge,popupStyle:Xt,popupAlign:Wn&&{offset:Wn},action:ar?[]:[mr],mouseEnterDelay:Ar,mouseLeaveDelay:ur,onPopupVisibleChange:Nn,forceRender:Dr,popupMotion:Rn,fresh:!0},$e)}var fa=ne(62874);function ja(Ke){var Ye=Ke.id,Je=Ke.open,$e=Ke.keyPath,Ge=Ke.children,Xt="inline",un=ge.useContext(le),Wn=un.prefixCls,ar=un.forceSubMenuRender,$n=un.motion,Nn=un.defaultMotions,Bn=un.mode,rn=ge.useRef(!1);rn.current=Bn===Xt;var Xn=ge.useState(!rn.current),Ar=(0,Se.Z)(Xn,2),ur=Ar[0],Mn=Ar[1],mr=rn.current?Je:!1;ge.useEffect(function(){rn.current&&Mn(!1)},[Bn]);var Dr=(0,Fe.Z)({},ka(Xt,$n,Nn));$e.length>1&&(Dr.motionAppear=!1);var _r=Dr.onVisibleChanged;return Dr.onVisibleChanged=function(tt){return!rn.current&&!tt&&Mn(!0),_r==null?void 0:_r(tt)},ur?null:ge.createElement(Te,{mode:Xt,locked:!rn.current},ge.createElement(fa.Z,(0,oe.Z)({visible:mr},Dr,{forceRender:ar,removeOnLeave:!1,leavedClassName:"".concat(Wn,"-hidden")}),function(tt){var at=tt.className,on=tt.style;return ge.createElement(Ra,{id:Ye,className:at,style:on},Ge)}))}var Ri=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],hn=["active"],$t=function(Ye){var Je,$e=Ye.style,Ge=Ye.className,Xt=Ye.title,un=Ye.eventKey,Wn=Ye.warnKey,ar=Ye.disabled,$n=Ye.internalPopupClose,Nn=Ye.children,Bn=Ye.itemIcon,rn=Ye.expandIcon,Xn=Ye.popupClassName,Ar=Ye.popupOffset,ur=Ye.popupStyle,Mn=Ye.onClick,mr=Ye.onMouseEnter,Dr=Ye.onMouseLeave,_r=Ye.onTitleClick,tt=Ye.onTitleMouseEnter,at=Ye.onTitleMouseLeave,on=(0,Me.Z)(Ye,Ri),Qt=fe(un),Dn=ge.useContext(le),sr=Dn.prefixCls,Mt=Dn.mode,Dt=Dn.openKeys,Nt=Dn.disabled,Gt=Dn.overflowDisabled,Rn=Dn.activeKey,Qn=Dn.selectedKeys,wn=Dn.itemIcon,Yn=Dn.expandIcon,kr=Dn.onItemClick,bn=Dn.onOpenChange,pn=Dn.onActive,_n=ge.useContext(xt),Tr=_n._internalRenderSubMenuItem,Ir=ge.useContext(ht),Jr=Ir.isSubPathKey,Zr=Ot(),Br="".concat(sr,"-submenu"),si=Nt||ar,oi=ge.useRef(),vt=ge.useRef(),dn=Bn!=null?Bn:wn,hr=rn!=null?rn:Yn,mi=Dt.includes(un),ii=!Gt&&mi,yi=Jr(Qn,un),zi=Ur(un,si,tt,at),Mi=zi.active,fi=(0,Me.Z)(zi,hn),_i=ge.useState(!1),ma=(0,Se.Z)(_i,2),oo=ma[0],Ja=ma[1],Wa=function(xo){si||Ja(xo)},za=function(xo){Wa(!0),mr==null||mr({key:un,domEvent:xo})},La=function(xo){Wa(!1),Dr==null||Dr({key:un,domEvent:xo})},ia=ge.useMemo(function(){return Mi||(Mt!=="inline"?oo||Jr([Rn],un):!1)},[Mt,Mi,Rn,oo,un,Jr]),mo=Sr(Zr.length),va=function(xo){si||(_r==null||_r({key:un,domEvent:xo}),Mt==="inline"&&bn(un,!mi))},Zi=lt(function(uo){Mn==null||Mn(Rr(uo)),kr(uo)}),Ta=function(xo){Mt!=="inline"&&bn(un,xo)},no=function(){pn(un)},Na=Qt&&"".concat(Qt,"-popup"),Ka=ge.createElement("div",(0,oe.Z)({role:"menuitem",style:mo,className:"".concat(Br,"-title"),tabIndex:si?null:-1,ref:oi,title:typeof Xt=="string"?Xt:null,"data-menu-id":Gt&&Qt?null:Qt,"aria-expanded":ii,"aria-haspopup":!0,"aria-controls":Na,"aria-disabled":si,onClick:va,onFocus:no},fi),Xt,ge.createElement(ai,{icon:Mt!=="horizontal"?hr:void 0,props:(0,Fe.Z)((0,Fe.Z)({},Ye),{},{isOpen:ii,isSubMenu:!0})},ge.createElement("i",{className:"".concat(Br,"-arrow")}))),aa=ge.useRef(Mt);if(Mt!=="inline"&&Zr.length>1?aa.current="vertical":aa.current=Mt,!Gt){var ro=aa.current;Ka=ge.createElement(Ba,{mode:ro,prefixCls:Br,visible:!$n&&ii&&Mt!=="inline",popupClassName:Xn,popupOffset:Ar,popupStyle:ur,popup:ge.createElement(Te,{mode:ro==="horizontal"?"vertical":ro},ge.createElement(Ra,{id:Na,ref:vt},Nn)),disabled:si,onVisibleChange:Ta},Ka)}var bo=ge.createElement(qt.Item,(0,oe.Z)({role:"none"},on,{component:"li",style:$e,className:we()(Br,"".concat(Br,"-").concat(Mt),Ge,(Je={},(0,de.Z)(Je,"".concat(Br,"-open"),ii),(0,de.Z)(Je,"".concat(Br,"-active"),ia),(0,de.Z)(Je,"".concat(Br,"-selected"),yi),(0,de.Z)(Je,"".concat(Br,"-disabled"),si),Je)),onMouseEnter:za,onMouseLeave:La}),Ka,!Gt&&ge.createElement(ja,{id:Na,open:ii,keyPath:Zr},Nn));return Tr&&(bo=Tr(bo,Ye,{selected:yi,active:ia,open:ii,disabled:si})),ge.createElement(Te,{onItemClick:Zi,mode:Mt==="horizontal"?"vertical":Mt,itemIcon:dn,expandIcon:hr},bo)};function Zn(Ke){var Ye=Ke.eventKey,Je=Ke.children,$e=Ot(Ye),Ge=Xi(Je,$e),Xt=Tt();ge.useEffect(function(){if(Xt)return Xt.registerPath(Ye,$e),function(){Xt.unregisterPath(Ye,$e)}},[$e]);var un;return Xt?un=Ge:un=ge.createElement($t,Ke,Ge),ge.createElement(zt.Provider,{value:$e},un)}var gr=ne(71002),Er=["className","title","eventKey","children"],ri=["children"],pi=function(Ye){var Je=Ye.className,$e=Ye.title,Ge=Ye.eventKey,Xt=Ye.children,un=(0,Me.Z)(Ye,Er),Wn=ge.useContext(le),ar=Wn.prefixCls,$n="".concat(ar,"-item-group");return ge.createElement("li",(0,oe.Z)({role:"presentation"},un,{onClick:function(Bn){return Bn.stopPropagation()},className:we()($n,Je)}),ge.createElement("div",{role:"presentation",className:"".concat($n,"-title"),title:typeof $e=="string"?$e:void 0},$e),ge.createElement("ul",{role:"group",className:"".concat($n,"-list")},Xt))};function Si(Ke){var Ye=Ke.children,Je=(0,Me.Z)(Ke,ri),$e=Ot(Je.eventKey),Ge=Xi(Ye,$e),Xt=Tt();return Xt?Ge:ge.createElement(pi,(0,Nr.Z)(Je,["warnKey"]),Ge)}function vi(Ke){var Ye=Ke.className,Je=Ke.style,$e=ge.useContext(le),Ge=$e.prefixCls,Xt=Tt();return Xt?null:ge.createElement("li",{role:"separator",className:we()("".concat(Ge,"-item-divider"),Ye),style:Je})}var Ai=["label","children","key","type"];function Ti(Ke){return(Ke||[]).map(function(Ye,Je){if(Ye&&(0,gr.Z)(Ye)==="object"){var $e=Ye,Ge=$e.label,Xt=$e.children,un=$e.key,Wn=$e.type,ar=(0,Me.Z)($e,Ai),$n=un!=null?un:"tmp-".concat(Je);return Xt||Wn==="group"?Wn==="group"?ge.createElement(Si,(0,oe.Z)({key:$n},ar,{title:Ge}),Ti(Xt)):ge.createElement(Zn,(0,oe.Z)({key:$n},ar,{title:Ge}),Ti(Xt)):Wn==="divider"?ge.createElement(vi,(0,oe.Z)({key:$n},ar)):ge.createElement(Pi,(0,oe.Z)({key:$n},ar),Ge)}return null}).filter(function(Ye){return Ye})}function $i(Ke,Ye,Je){var $e=Ke;return Ye&&($e=Ti(Ye)),Xi($e,Je)}var qi=["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"],Pn=[],In=ge.forwardRef(function(Ke,Ye){var Je,$e,Ge=Ke,Xt=Ge.prefixCls,un=Xt===void 0?"rc-menu":Xt,Wn=Ge.rootClassName,ar=Ge.style,$n=Ge.className,Nn=Ge.tabIndex,Bn=Nn===void 0?0:Nn,rn=Ge.items,Xn=Ge.children,Ar=Ge.direction,ur=Ge.id,Mn=Ge.mode,mr=Mn===void 0?"vertical":Mn,Dr=Ge.inlineCollapsed,_r=Ge.disabled,tt=Ge.disabledOverflow,at=Ge.subMenuOpenDelay,on=at===void 0?.1:at,Qt=Ge.subMenuCloseDelay,Dn=Qt===void 0?.1:Qt,sr=Ge.forceSubMenuRender,Mt=Ge.defaultOpenKeys,Dt=Ge.openKeys,Nt=Ge.activeKey,Gt=Ge.defaultActiveFirst,Rn=Ge.selectable,Qn=Rn===void 0?!0:Rn,wn=Ge.multiple,Yn=wn===void 0?!1:wn,kr=Ge.defaultSelectedKeys,bn=Ge.selectedKeys,pn=Ge.onSelect,_n=Ge.onDeselect,Tr=Ge.inlineIndent,Ir=Tr===void 0?24:Tr,Jr=Ge.motion,Zr=Ge.defaultMotions,Br=Ge.triggerSubMenuAction,si=Br===void 0?"hover":Br,oi=Ge.builtinPlacements,vt=Ge.itemIcon,dn=Ge.expandIcon,hr=Ge.overflowedIndicator,mi=hr===void 0?"...":hr,ii=Ge.overflowedIndicatorPopupClassName,yi=Ge.getPopupContainer,zi=Ge.onClick,Mi=Ge.onOpenChange,fi=Ge.onKeyDown,_i=Ge.openAnimation,ma=Ge.openTransitionName,oo=Ge._internalRenderMenuItem,Ja=Ge._internalRenderSubMenuItem,Wa=(0,Me.Z)(Ge,qi),za=ge.useMemo(function(){return $i(Xn,rn,Pn)},[Xn,rn]),La=ge.useState(!1),ia=(0,Se.Z)(La,2),mo=ia[0],va=ia[1],Zi=ge.useRef(),Ta=an(ur),no=Ar==="rtl",Na=(0,Fn.Z)(Mt,{value:Dt,postState:function(Eo){return Eo||Pn}}),Ka=(0,Se.Z)(Na,2),aa=Ka[0],ro=Ka[1],bo=function(Eo){var qo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ss(){ro(Eo),Mi==null||Mi(Eo)}qo?(0,Ce.flushSync)(Ss):Ss()},uo=ge.useState(aa),xo=(0,Se.Z)(uo,2),Ao=xo[0],Xo=xo[1],co=ge.useRef(!1),wo=ge.useMemo(function(){return(mr==="inline"||mr==="vertical")&&Dr?["vertical",Dr]:[mr,!1]},[mr,Dr]),os=(0,Se.Z)(wo,2),rs=os[0],us=os[1],Io=rs==="inline",So=ge.useState(rs),xa=(0,Se.Z)(So,2),Pa=xa[0],io=xa[1],go=ge.useState(us),Uo=(0,Se.Z)(go,2),cs=Uo[0],xs=Uo[1];ge.useEffect(function(){io(rs),xs(us),co.current&&(Io?ro(Ao):bo(Pn))},[rs,us]);var Js=ge.useState(0),zs=(0,Se.Z)(Js,2),ds=zs[0],Ks=zs[1],Xa=ds>=za.length-1||Pa!=="horizontal"||tt;ge.useEffect(function(){Io&&Xo(aa)},[aa]),ge.useEffect(function(){return co.current=!0,function(){co.current=!1}},[]);var Da=kn(),po=Da.registerPath,ko=Da.unregisterPath,fs=Da.refreshOverflowKeys,ss=Da.isSubPathKey,Rl=Da.getKeyPath,ml=Da.getKeys,Sl=Da.getSubPathKeys,Qa=ge.useMemo(function(){return{registerPath:po,unregisterPath:ko}},[po,ko]),wi=ge.useMemo(function(){return{isSubPathKey:ss}},[ss]);ge.useEffect(function(){fs(Xa?Pn:za.slice(ds+1).map(function(is){return is.key}))},[ds,Xa]);var ha=(0,Fn.Z)(Nt||Gt&&((Je=za[0])===null||Je===void 0?void 0:Je.key),{value:Nt}),pa=(0,Se.Z)(ha,2),Aa=pa[0],Vo=pa[1],Qo=lt(function(is){Vo(is)}),rl=lt(function(){Vo(void 0)});(0,ge.useImperativeHandle)(Ye,function(){return{list:Zi.current,focus:function(Eo){var qo,Ss=Aa!=null?Aa:(qo=za.find(function(Kl){return!Kl.props.disabled}))===null||qo===void 0?void 0:qo.key;if(Ss){var Ts,al,Ps;(Ts=Zi.current)===null||Ts===void 0||(al=Ts.querySelector("li[data-menu-id='".concat(ue(Ta,Ss),"']")))===null||al===void 0||(Ps=al.focus)===null||Ps===void 0||Ps.call(al,Eo)}}}});var cl=(0,Fn.Z)(kr||[],{value:bn,postState:function(Eo){return Array.isArray(Eo)?Eo:Eo==null?Pn:[Eo]}}),Cl=(0,Se.Z)(cl,2),vo=Cl[0],$s=Cl[1],Pl=function(Eo){if(Qn){var qo=Eo.key,Ss=vo.includes(qo),Ts;Yn?Ss?Ts=vo.filter(function(Ps){return Ps!==qo}):Ts=[].concat((0,Xe.Z)(vo),[qo]):Ts=[qo],$s(Ts);var al=(0,Fe.Z)((0,Fe.Z)({},Eo),{},{selectedKeys:Ts});Ss?_n==null||_n(al):pn==null||pn(al)}!Yn&&aa.length&&Pa!=="inline"&&bo(Pn)},Su=lt(function(is){zi==null||zi(Rr(is)),Pl(is)}),Gl=lt(function(is,Eo){var qo=aa.filter(function(Ts){return Ts!==is});if(Eo)qo.push(is);else if(Pa!=="inline"){var Ss=Sl(is);qo=qo.filter(function(Ts){return!Ss.has(Ts)})}(0,nn.Z)(aa,qo,!0)||bo(qo,!0)}),wl=function(Eo,qo){var Ss=qo!=null?qo:!aa.includes(Eo);Gl(Eo,Ss)},il=pr(Pa,Aa,no,Ta,Zi,ml,Rl,Vo,wl,fi);ge.useEffect(function(){va(!0)},[]);var ql=ge.useMemo(function(){return{_internalRenderMenuItem:oo,_internalRenderSubMenuItem:Ja}},[oo,Ja]),dl=Pa!=="horizontal"||tt?za:za.map(function(is,Eo){return ge.createElement(Te,{key:is.key,overflowDisabled:Eo>ds},is)}),eu=ge.createElement(qt,(0,oe.Z)({id:ur,ref:Zi,prefixCls:"".concat(un,"-overflow"),component:"ul",itemComponent:Pi,className:we()(un,"".concat(un,"-root"),"".concat(un,"-").concat(Pa),$n,($e={},(0,de.Z)($e,"".concat(un,"-inline-collapsed"),cs),(0,de.Z)($e,"".concat(un,"-rtl"),no),$e),Wn),dir:Ar,style:ar,role:"menu",tabIndex:Bn,data:dl,renderRawItem:function(Eo){return Eo},renderRawRest:function(Eo){var qo=Eo.length,Ss=qo?za.slice(-qo):null;return ge.createElement(Zn,{eventKey:jt,title:mi,disabled:Xa,internalPopupClose:qo===0,popupClassName:ii},Ss)},maxCount:Pa!=="horizontal"||tt?qt.INVALIDATE:qt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Eo){Ks(Eo)},onKeyDown:il},Wa));return ge.createElement(xt.Provider,{value:ql},ge.createElement(ze.Provider,{value:Ta},ge.createElement(Te,{prefixCls:un,rootClassName:Wn,mode:Pa,openKeys:aa,rtl:no,disabled:_r,motion:mo?Jr:null,defaultMotions:mo?Zr:null,activeKey:Aa,onActive:Qo,onInactive:rl,selectedKeys:vo,inlineIndent:Ir,subMenuOpenDelay:on,subMenuCloseDelay:Dn,forceSubMenuRender:sr,builtinPlacements:oi,triggerSubMenuAction:si,getPopupContainer:yi,itemIcon:vt,expandIcon:dn,onItemClick:Su,onOpenChange:Gl},ge.createElement(ht.Provider,{value:wi},eu),ge.createElement("div",{style:{display:"none"},"aria-hidden":!0},ge.createElement(At.Provider,{value:Qa},za)))))}),Vn=In,me=Vn;me.Item=Pi,me.SubMenu=Zn,me.ItemGroup=Si,me.Divider=vi;var _e=me},81626:function(An,Jt){"use strict";Jt.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(An,Jt){"use strict";var ne;var oe=Symbol.for("react.element"),de=Symbol.for("react.portal"),Fe=Symbol.for("react.fragment"),Xe=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),ce=Symbol.for("react.context"),we=Symbol.for("react.server_context"),ge=Symbol.for("react.forward_ref"),Be=Symbol.for("react.suspense"),Qe=Symbol.for("react.suspense_list"),Oe=Symbol.for("react.memo"),et=Symbol.for("react.lazy"),ot=Symbol.for("react.offscreen"),nt;nt=Symbol.for("react.module.reference");function Ve(xe){if(typeof xe=="object"&&xe!==null){var mt=xe.$$typeof;switch(mt){case oe:switch(xe=xe.type,xe){case Fe:case Se:case Xe:case Be:case Qe:return xe;default:switch(xe=xe&&xe.$$typeof,xe){case we:case ce:case ge:case et:case Oe:case Me:return xe;default:return mt}}case de:return mt}}}ne=ce,ne=Me,ne=oe,ne=ge,ne=Fe,ne=et,ne=Oe,ne=de,ne=Se,ne=Xe,ne=Be,ne=Qe,ne=function(){return!1},ne=function(){return!1},ne=function(xe){return Ve(xe)===ce},ne=function(xe){return Ve(xe)===Me},ne=function(xe){return typeof xe=="object"&&xe!==null&&xe.$$typeof===oe},ne=function(xe){return Ve(xe)===ge},Jt.isFragment=function(xe){return Ve(xe)===Fe},ne=function(xe){return Ve(xe)===et},ne=function(xe){return Ve(xe)===Oe},ne=function(xe){return Ve(xe)===de},ne=function(xe){return Ve(xe)===Se},ne=function(xe){return Ve(xe)===Xe},ne=function(xe){return Ve(xe)===Be},ne=function(xe){return Ve(xe)===Qe},ne=function(xe){return typeof xe=="string"||typeof xe=="function"||xe===Fe||xe===Se||xe===Xe||xe===Be||xe===Qe||xe===ot||typeof xe=="object"&&xe!==null&&(xe.$$typeof===et||xe.$$typeof===Oe||xe.$$typeof===Me||xe.$$typeof===ce||xe.$$typeof===ge||xe.$$typeof===nt||xe.getModuleId!==void 0)},ne=Ve},35110:function(An,Jt,ne){"use strict";An.exports=ne(46762)},66680:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return de}});var oe=ne(67294);function de(Fe){var Xe=oe.useRef();Xe.current=Fe;var Se=oe.useCallback(function(){for(var Me,ce=arguments.length,we=new Array(ce),ge=0;ge<ce;ge++)we[ge]=arguments[ge];return(Me=Xe.current)===null||Me===void 0?void 0:Me.call.apply(Me,[Xe].concat(we))},[]);return Se}},21770:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return Me}});var oe=ne(97685),de=ne(66680),Fe=ne(8410),Xe=ne(63896);function Se(ce){return ce!==void 0}function Me(ce,we){var ge=we||{},Be=ge.defaultValue,Qe=ge.value,Oe=ge.onChange,et=ge.postState,ot=(0,Xe.Z)(function(){return Se(Qe)?Qe:Se(Be)?typeof Be=="function"?Be():Be:typeof ce=="function"?ce():ce}),nt=(0,oe.Z)(ot,2),Ve=nt[0],xe=nt[1],mt=Qe!==void 0?Qe:Ve,Lt=et?et(mt):mt,it=(0,de.Z)(Oe),pt=(0,Xe.Z)([mt]),Ce=(0,oe.Z)(pt,2),be=Ce[0],Ze=Ce[1];(0,Fe.o)(function(){var Et=be[0];Ve!==Et&&it(Ve,Et)},[be]),(0,Fe.o)(function(){Se(Qe)||xe(Qe)},[Qe]);var je=(0,de.Z)(function(Et,ft){xe(Et,ft),Ze([mt],ft)});return[Lt,je]}},91881:function(An,Jt,ne){"use strict";var oe=ne(71002),de=ne(80334);function Fe(Xe,Se){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ce=new Set;function we(ge,Be){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Oe=ce.has(ge);if((0,de.ZP)(!Oe,"Warning: There may be circular references"),Oe)return!1;if(ge===Be)return!0;if(Me&&Qe>1)return!1;ce.add(ge);var et=Qe+1;if(Array.isArray(ge)){if(!Array.isArray(Be)||ge.length!==Be.length)return!1;for(var ot=0;ot<ge.length;ot++)if(!we(ge[ot],Be[ot],et))return!1;return!0}if(ge&&Be&&(0,oe.Z)(ge)==="object"&&(0,oe.Z)(Be)==="object"){var nt=Object.keys(ge);return nt.length!==Object.keys(Be).length?!1:nt.every(function(Ve){return we(ge[Ve],Be[Ve],et)})}return!1}return we(Xe,Se)}Jt.Z=Fe},98423:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return de}});var oe=ne(1413);function de(Fe,Xe){var Se=(0,oe.Z)({},Fe);return Array.isArray(Xe)&&Xe.forEach(function(Me){delete Se[Me]}),Se}},64217:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return we}});var oe=ne(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`,Fe=`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`,Xe="".concat(de," ").concat(Fe).split(/[\s\n]+/),Se="aria-",Me="data-";function ce(ge,Be){return ge.indexOf(Be)===0}function we(ge){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qe;Be===!1?Qe={aria:!0,data:!0,attr:!0}:Be===!0?Qe={aria:!0}:Qe=(0,oe.Z)({},Be);var Oe={};return Object.keys(ge).forEach(function(et){(Qe.aria&&(et==="role"||ce(et,Se))||Qe.data&&ce(et,Me)||Qe.attr&&Xe.includes(et))&&(Oe[et]=ge[et])}),Oe}},73299:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return zr}});var oe=ne(87462),de=ne(1413),Fe=ne(71002),Xe=ne(97685),Se=ne(4942),Me=ne(45987),ce=ne(67294),we=ne(73935),ge=ne(94184),Be=ne.n(ge),Qe=ne(48555),Oe=ce.forwardRef(function(Wt,On){var qn=Wt.height,zn=Wt.offsetY,Jn=Wt.offsetX,pr=Wt.children,wr=Wt.prefixCls,nr=Wt.onInnerResize,St=Wt.innerProps,Zt=Wt.rtl,jt=Wt.extra,kn={},lt={display:"flex",flexDirection:"column"};if(zn!==void 0){var Ut;kn={height:qn,position:"relative",overflow:"hidden"},lt=(0,de.Z)((0,de.Z)({},lt),{},(Ut={transform:"translateY(".concat(zn,"px)")},(0,Se.Z)(Ut,Zt?"marginRight":"marginLeft",-Jn),(0,Se.Z)(Ut,"position","absolute"),(0,Se.Z)(Ut,"left",0),(0,Se.Z)(Ut,"right",0),(0,Se.Z)(Ut,"top",0),Ut))}return ce.createElement("div",{style:kn},ce.createElement(Qe.Z,{onResize:function(an){var kt=an.offsetHeight;kt&&nr&&nr()}},ce.createElement("div",(0,oe.Z)({style:lt,className:Be()((0,Se.Z)({},"".concat(wr,"-holder-inner"),wr)),ref:On},St),pr,jt)))});Oe.displayName="Filler";var et=Oe,ot=function(On){return+setTimeout(On,16)},nt=function(On){return clearTimeout(On)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(ot=function(On){return window.requestAnimationFrame(On)},nt=function(On){return window.cancelAnimationFrame(On)});var Ve=0,xe=new Map;function mt(Wt){xe.delete(Wt)}var Lt=function(On){var qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ve+=1;var zn=Ve;function Jn(pr){if(pr===0)mt(zn),On();else{var wr=ot(function(){Jn(pr-1)});xe.set(zn,wr)}}return Jn(qn),zn};Lt.cancel=function(Wt){var On=xe.get(Wt);return mt(On),nt(On)};var it=Lt;function pt(Wt,On){var qn="touches"in Wt?Wt.touches[0]:Wt;return qn[On?"pageX":"pageY"]}var Ce=ce.forwardRef(function(Wt,On){var qn,zn=Wt.prefixCls,Jn=Wt.rtl,pr=Wt.scrollOffset,wr=Wt.scrollRange,nr=Wt.onStartMove,St=Wt.onStopMove,Zt=Wt.onScroll,jt=Wt.horizontal,kn=Wt.spinSize,lt=Wt.containerSize,Ut=Wt.style,ke=Wt.thumbStyle,an=ce.useState(!1),kt=(0,Xe.Z)(an,2),Tn=kt[0],rr=kt[1],Gr=ce.useState(null),Nr=(0,Xe.Z)(Gr,2),Lr=Nr[0],Ur=Nr[1],Sr=ce.useState(null),ai=(0,Xe.Z)(Sr,2),ir=ai[0],Rr=ai[1],Di=!Jn,Gi=ce.useRef(),qr=ce.useRef(),di=ce.useState(!1),Yi=(0,Xe.Z)(di,2),Xr=Yi[0],Pi=Yi[1],Mr=ce.useRef(),ua=function(){clearTimeout(Mr.current),Pi(!0),Mr.current=setTimeout(function(){Pi(!1)},3e3)},ta=wr-lt||0,Ra=lt-kn||0,ca=ta>0,Xi=ce.useMemo(function(){if(pr===0||ta===0)return 0;var fa=pr/ta;return fa*Ra},[pr,ta,Ra]),Oi=function(ja){ja.stopPropagation(),ja.preventDefault()},la=ce.useRef({top:Xi,dragging:Tn,pageY:Lr,startTop:ir});la.current={top:Xi,dragging:Tn,pageY:Lr,startTop:ir};var Ji=function(ja){rr(!0),Ur(pt(ja,jt)),Rr(la.current.top),nr(),ja.stopPropagation(),ja.preventDefault()};ce.useEffect(function(){var fa=function($t){$t.preventDefault()},ja=Gi.current,Ri=qr.current;return ja.addEventListener("touchstart",fa),Ri.addEventListener("touchstart",Ji),function(){ja.removeEventListener("touchstart",fa),Ri.removeEventListener("touchstart",Ji)}},[]);var Sa=ce.useRef();Sa.current=ta;var Ya=ce.useRef();Ya.current=Ra,ce.useEffect(function(){if(Tn){var fa,ja=function($t){var Zn=la.current,gr=Zn.dragging,Er=Zn.pageY,ri=Zn.startTop;if(it.cancel(fa),gr){var pi=pt($t,jt)-Er,Si=ri;!Di&&jt?Si-=pi:Si+=pi;var vi=Sa.current,Ai=Ya.current,Ti=Ai?Si/Ai:0,$i=Math.ceil(Ti*vi);$i=Math.max($i,0),$i=Math.min($i,vi),fa=it(function(){Zt($i,jt)})}},Ri=function(){rr(!1),St()};return window.addEventListener("mousemove",ja),window.addEventListener("touchmove",ja),window.addEventListener("mouseup",Ri),window.addEventListener("touchend",Ri),function(){window.removeEventListener("mousemove",ja),window.removeEventListener("touchmove",ja),window.removeEventListener("mouseup",Ri),window.removeEventListener("touchend",Ri),it.cancel(fa)}}},[Tn]),ce.useEffect(function(){ua()},[pr]),ce.useImperativeHandle(On,function(){return{delayHidden:ua}});var ka="".concat(zn,"-scrollbar"),ba={position:"absolute",visibility:Xr&&ca?null:"hidden"},Ba={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return jt?(ba.height=8,ba.left=0,ba.right=0,ba.bottom=0,Ba.height="100%",Ba.width=kn,Di?Ba.left=Xi:Ba.right=Xi):(ba.width=8,ba.top=0,ba.bottom=0,Di?ba.right=0:ba.left=0,Ba.width="100%",Ba.height=kn,Ba.top=Xi),ce.createElement("div",{ref:Gi,className:Be()(ka,(qn={},(0,Se.Z)(qn,"".concat(ka,"-horizontal"),jt),(0,Se.Z)(qn,"".concat(ka,"-vertical"),!jt),(0,Se.Z)(qn,"".concat(ka,"-visible"),Xr),qn)),style:(0,de.Z)((0,de.Z)({},ba),Ut),onMouseDown:Oi,onMouseMove:ua},ce.createElement("div",{ref:qr,className:Be()("".concat(ka,"-thumb"),(0,Se.Z)({},"".concat(ka,"-thumb-moving"),Tn)),style:(0,de.Z)((0,de.Z)({},Ba),ke),onMouseDown:Ji}))}),be=Ce;function Ze(Wt){var On=Wt.children,qn=Wt.setRef,zn=ce.useCallback(function(Jn){qn(Jn)},[]);return ce.cloneElement(On,{ref:zn})}function je(Wt,On,qn,zn,Jn,pr,wr){var nr=wr.getKey;return Wt.slice(On,qn+1).map(function(St,Zt){var jt=On+Zt,kn=pr(St,jt,{style:{width:zn}}),lt=nr(St);return ce.createElement(Ze,{key:lt,setRef:function(ke){return Jn(St,ke)}},kn)})}function Et(Wt){return Wt instanceof HTMLElement||Wt instanceof SVGElement}function ft(Wt){return Et(Wt)?Wt:Wt instanceof ce.Component?we.findDOMNode(Wt):null}var ut=ne(15671),Re=ne(43144),Vt=function(){function Wt(){(0,ut.Z)(this,Wt),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,Re.Z)(Wt,[{key:"set",value:function(qn,zn){this.maps[qn]=zn,this.id+=1}},{key:"get",value:function(qn){return this.maps[qn]}}]),Wt}(),wt=Vt;function yn(Wt,On,qn){var zn=ce.useState(0),Jn=(0,Xe.Z)(zn,2),pr=Jn[0],wr=Jn[1],nr=(0,ce.useRef)(new Map),St=(0,ce.useRef)(new wt),Zt=(0,ce.useRef)();function jt(){it.cancel(Zt.current)}function kn(){var Ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;jt();var ke=function(){nr.current.forEach(function(kt,Tn){if(kt&&kt.offsetParent){var rr=ft(kt),Gr=rr.offsetHeight;St.current.get(Tn)!==Gr&&St.current.set(Tn,rr.offsetHeight)}}),wr(function(kt){return kt+1})};Ut?ke():Zt.current=it(ke)}function lt(Ut,ke){var an=Wt(Ut),kt=nr.current.get(an);ke?(nr.current.set(an,ke),kn()):nr.current.delete(an),!kt!=!ke&&(ke?On==null||On(Ut):qn==null||qn(Ut))}return(0,ce.useEffect)(function(){return jt},[]),[lt,kn,St.current,pr]}function Ft(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ln=Ft()?ce.useLayoutEffect:ce.useEffect,Kn=function(On,qn){var zn=ce.useRef(!0);ln(function(){return On(zn.current)},qn),ln(function(){return zn.current=!1,function(){zn.current=!0}},[])},rt=function(On,qn){Kn(function(zn){if(!zn)return On()},qn)},dt=Kn;function Ae(Wt){var On=ce.useRef();On.current=Wt;var qn=ce.useCallback(function(){for(var zn,Jn=arguments.length,pr=new Array(Jn),wr=0;wr<Jn;wr++)pr[wr]=arguments[wr];return(zn=On.current)===null||zn===void 0?void 0:zn.call.apply(zn,[On].concat(pr))},[]);return qn}function Bt(Wt){var On=React.useRef(!1),qn=React.useState(Wt),zn=_slicedToArray(qn,2),Jn=zn[0],pr=zn[1];React.useEffect(function(){return On.current=!1,function(){On.current=!0}},[]);function wr(nr,St){St&&On.current||pr(nr)}return[Jn,wr]}function Cn(Wt){return Wt!==void 0}function en(Wt,On){var qn=On||{},zn=qn.defaultValue,Jn=qn.value,pr=qn.onChange,wr=qn.postState,nr=useState(function(){return Cn(Jn)?Jn:Cn(zn)?typeof zn=="function"?zn():zn:typeof Wt=="function"?Wt():Wt}),St=_slicedToArray(nr,2),Zt=St[0],jt=St[1],kn=Jn!==void 0?Jn:Zt,lt=wr?wr(kn):kn,Ut=useEvent(pr),ke=useState([kn]),an=_slicedToArray(ke,2),kt=an[0],Tn=an[1];useLayoutUpdateEffect(function(){var Gr=kt[0];Zt!==Gr&&Ut(Zt,Gr)},[kt]),useLayoutUpdateEffect(function(){Cn(Jn)||jt(Jn)},[Jn]);var rr=useEvent(function(Gr,Nr){jt(Gr,Nr),Tn([kn],Nr)});return[lt,rr]}var Ct=ne(31461);function Rt(Wt,On,qn){var zn=React.useRef({});return(!("value"in zn.current)||qn(zn.current.condition,On))&&(zn.current.value=Wt(),zn.current.condition=On),zn.current.value}function tn(Wt,On){typeof Wt=="function"?Wt(On):_typeof(Wt)==="object"&&Wt&&"current"in Wt&&(Wt.current=On)}function cr(){for(var Wt=arguments.length,On=new Array(Wt),qn=0;qn<Wt;qn++)On[qn]=arguments[qn];var zn=On.filter(function(Jn){return Jn});return zn.length<=1?zn[0]:function(Jn){On.forEach(function(pr){tn(pr,Jn)})}}function Gn(){for(var Wt=arguments.length,On=new Array(Wt),qn=0;qn<Wt;qn++)On[qn]=arguments[qn];return useMemo(function(){return cr.apply(void 0,On)},On,function(zn,Jn){return zn.length!==Jn.length||zn.every(function(pr,wr){return pr!==Jn[wr]})})}function qt(Wt){var On,qn,zn=isMemo(Wt)?Wt.type.type:Wt.type;return!(typeof zn=="function"&&!((On=zn.prototype)!==null&&On!==void 0&&On.render)||typeof Wt=="function"&&!((qn=Wt.prototype)!==null&&qn!==void 0&&qn.render))}function Fn(Wt){return!isValidElement(Wt)||isFragment(Wt)?!1:qt(Wt)}function lr(Wt,On,qn,zn){if(!On.length)return qn;var Jn=_toArray(On),pr=Jn[0],wr=Jn.slice(1),nr;return!Wt&&typeof pr=="number"?nr=[]:Array.isArray(Wt)?nr=_toConsumableArray(Wt):nr=_objectSpread({},Wt),zn&&qn===void 0&&wr.length===1?delete nr[pr][wr[0]]:nr[pr]=lr(nr[pr],wr,qn,zn),nr}function nn(Wt,On,qn){var zn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return On.length&&zn&&qn===void 0&&!get(Wt,On.slice(0,-1))?Wt:lr(Wt,On,qn,zn)}function ze(Wt){return _typeof(Wt)==="object"&&Wt!==null&&Object.getPrototypeOf(Wt)===Object.prototype}function ue(Wt){return Array.isArray(Wt)?[]:{}}var fe=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ve(){for(var Wt=arguments.length,On=new Array(Wt),qn=0;qn<Wt;qn++)On[qn]=arguments[qn];var zn=ue(On[0]);return On.forEach(function(Jn){function pr(wr,nr){var St=new Set(nr),Zt=get(Jn,wr),jt=Array.isArray(Zt);if(jt||ze(Zt)){if(!St.has(Zt)){St.add(Zt);var kn=get(zn,wr);jt?zn=nn(zn,wr,[]):(!kn||_typeof(kn)!=="object")&&(zn=nn(zn,wr,ue(Zt))),fe(Zt).forEach(function(lt){pr([].concat(_toConsumableArray(wr),[lt]),St)})}}else zn=nn(zn,wr,Zt)}pr([])}),zn}var he={},le=[],Ne=function(On){le.push(On)};function Te(Wt,On){if(0)var qn}function gt(Wt,On){if(0)var qn}function At(){he={}}function Tt(Wt,On,qn){!On&&!he[qn]&&(Wt(!1,qn),he[qn]=!0)}function zt(Wt,On){Tt(Te,Wt,On)}function Ot(Wt,On){Tt(gt,Wt,On)}zt.preMessage=Ne,zt.resetWarned=At,zt.noteOnce=Ot;var ht=null,It=10;function xt(Wt,On,qn,zn,Jn,pr,wr,nr){var St=ce.useRef(),Zt=ce.useState(null),jt=(0,Xe.Z)(Zt,2),kn=jt[0],lt=jt[1];return dt(function(){if(kn&&kn.times<It){if(!Wt.current){lt(function(ua){return(0,de.Z)({},ua)});return}pr();var Ut=kn.targetAlign,ke=kn.originAlign,an=kn.index,kt=kn.offset,Tn=Wt.current.clientHeight,rr=!1,Gr=Ut,Nr=null;if(Tn){for(var Lr=Ut||ke,Ur=0,Sr=0,ai=0,ir=Math.min(On.length-1,an),Rr=0;Rr<=ir;Rr+=1){var Di=Jn(On[Rr]);Sr=Ur;var Gi=qn.get(Di);ai=Sr+(Gi===void 0?zn:Gi),Ur=ai}for(var qr=Lr==="top"?kt:Tn-kt,di=ir;di>=0;di-=1){var Yi=Jn(On[di]),Xr=qn.get(Yi);if(Xr===void 0){rr=!0;break}if(qr-=Xr,qr<=0)break}switch(Lr){case"top":Nr=Sr-kt;break;case"bottom":Nr=ai-Tn+kt;break;default:{var Pi=Wt.current.scrollTop,Mr=Pi+Tn;Sr<Pi?Gr="top":ai>Mr&&(Gr="bottom")}}Nr!==null&&wr(Nr),Nr!==kn.lastTop&&(rr=!0)}rr&&lt(function(ua){return(0,de.Z)((0,de.Z)({},ua),{},{times:ua.times+1,targetAlign:Gr,lastTop:Nr})})}},[kn,Wt.current]),function(Ut){if(Ut==null){nr();return}if(it.cancel(St.current),typeof Ut=="number")wr(Ut);else if(Ut&&(0,Fe.Z)(Ut)==="object"){var ke,an=Ut.align;"index"in Ut?ke=Ut.index:ke=On.findIndex(function(rr){return Jn(rr)===Ut.key});var kt=Ut.offset,Tn=kt===void 0?0:kt;lt({times:0,index:ke,offset:Tn,originAlign:an})}}}function sn(Wt,On,qn,zn){var Jn=qn-Wt,pr=On-qn,wr=Math.min(Jn,pr)*2;if(zn<=wr){var nr=Math.floor(zn/2);return zn%2?qn+nr+1:qn-nr}return Jn>pr?qn-(zn-pr):qn+(zn-Jn)}function Kt(Wt,On,qn){var zn=Wt.length,Jn=On.length,pr,wr;if(zn===0&&Jn===0)return null;zn<Jn?(pr=Wt,wr=On):(pr=On,wr=Wt);var nr={__EMPTY_ITEM__:!0};function St(ke){return ke!==void 0?qn(ke):nr}for(var Zt=null,jt=Math.abs(zn-Jn)!==1,kn=0;kn<wr.length;kn+=1){var lt=St(pr[kn]),Ut=St(wr[kn]);if(lt!==Ut){Zt=kn,jt=jt||lt!==St(wr[kn+1]);break}}return Zt===null?null:{index:Zt,multiple:jt}}function Un(Wt,On,qn){var zn=ce.useState(Wt),Jn=(0,Xe.Z)(zn,2),pr=Jn[0],wr=Jn[1],nr=ce.useState(null),St=(0,Xe.Z)(nr,2),Zt=St[0],jt=St[1];return ce.useEffect(function(){var kn=Kt(pr||[],Wt||[],On);(kn==null?void 0:kn.index)!==void 0&&(qn==null||qn(kn.index),jt(Wt[kn.index])),wr(Wt)},[Wt]),[Zt]}var bt=(typeof navigator=="undefined"?"undefined":(0,Fe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Pt=bt,vn=function(Wt,On){var qn=(0,ce.useRef)(!1),zn=(0,ce.useRef)(null);function Jn(){clearTimeout(zn.current),qn.current=!0,zn.current=setTimeout(function(){qn.current=!1},50)}var pr=(0,ce.useRef)({top:Wt,bottom:On});return pr.current.top=Wt,pr.current.bottom=On,function(wr){var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,St=wr<0&&pr.current.top||wr>0&&pr.current.bottom;return nr&&St?(clearTimeout(zn.current),qn.current=!1):(!St||qn.current)&&Jn(),!qn.current&&St}};function mn(Wt,On,qn,zn,Jn){var pr=(0,ce.useRef)(0),wr=(0,ce.useRef)(null),nr=(0,ce.useRef)(null),St=(0,ce.useRef)(!1),Zt=vn(On,qn);function jt(kt,Tn){it.cancel(wr.current),pr.current+=Tn,nr.current=Tn,!Zt(Tn)&&(Pt||kt.preventDefault(),wr.current=it(function(){var rr=St.current?10:1;Jn(pr.current*rr),pr.current=0}))}function kn(kt,Tn){Jn(Tn,!0),Pt||kt.preventDefault()}var lt=(0,ce.useRef)(null),Ut=(0,ce.useRef)(null);function ke(kt){if(Wt){it.cancel(Ut.current),Ut.current=it(function(){lt.current=null},2);var Tn=kt.deltaX,rr=kt.deltaY,Gr=kt.shiftKey,Nr=Tn,Lr=rr;(lt.current==="sx"||!lt.current&&Gr&&rr&&!Tn)&&(Nr=rr,Lr=0,lt.current="sx");var Ur=Math.abs(Nr),Sr=Math.abs(Lr);lt.current===null&&(lt.current=zn&&Ur>Sr?"x":"y"),lt.current==="y"?jt(kt,Lr):kn(kt,Nr)}}function an(kt){Wt&&(St.current=kt.detail===nr.current)}return[ke,an]}var gn=14/15;function or(Wt,On,qn){var zn=(0,ce.useRef)(!1),Jn=(0,ce.useRef)(0),pr=(0,ce.useRef)(null),wr=(0,ce.useRef)(null),nr,St=function(lt){if(zn.current){var Ut=Math.ceil(lt.touches[0].pageY),ke=Jn.current-Ut;Jn.current=Ut,qn(ke)&&lt.preventDefault(),clearInterval(wr.current),wr.current=setInterval(function(){ke*=gn,(!qn(ke,!0)||Math.abs(ke)<=.1)&&clearInterval(wr.current)},16)}},Zt=function(){zn.current=!1,nr()},jt=function(lt){nr(),lt.touches.length===1&&!zn.current&&(zn.current=!0,Jn.current=Math.ceil(lt.touches[0].pageY),pr.current=lt.target,pr.current.addEventListener("touchmove",St),pr.current.addEventListener("touchend",Zt))};nr=function(){pr.current&&(pr.current.removeEventListener("touchmove",St),pr.current.removeEventListener("touchend",Zt))},dt(function(){return Wt&&On.current.addEventListener("touchstart",jt),function(){var kn;(kn=On.current)===null||kn===void 0||kn.removeEventListener("touchstart",jt),nr(),clearInterval(wr.current)}},[Wt])}var er=20;function tr(){var Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,On=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,qn=Wt/On*100;return isNaN(qn)&&(qn=0),qn=Math.max(qn,er),qn=Math.min(qn,Wt/2),Math.floor(qn)}function Hr(Wt,On,qn,zn){var Jn=ce.useMemo(function(){return[new Map,[]]},[Wt,qn.id,zn]),pr=(0,Xe.Z)(Jn,2),wr=pr[0],nr=pr[1],St=function(jt){var kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jt,lt=wr.get(jt),Ut=wr.get(kn);if(lt===void 0||Ut===void 0)for(var ke=Wt.length,an=nr.length;an<ke;an+=1){var kt,Tn=Wt[an],rr=On(Tn);wr.set(rr,an);var Gr=(kt=qn.get(rr))!==null&&kt!==void 0?kt:zn;if(nr[an]=(nr[an-1]||0)+Gr,rr===jt&&(lt=an),rr===kn&&(Ut=an),lt!==void 0&&Ut!==void 0)break}return{top:nr[lt-1]||0,bottom:nr[Ut]}};return St}var jr=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],vr=[],Kr={overflowY:"auto",overflowAnchor:"none"};function yr(Wt,On){var qn=Wt.prefixCls,zn=qn===void 0?"rc-virtual-list":qn,Jn=Wt.className,pr=Wt.height,wr=Wt.itemHeight,nr=Wt.fullHeight,St=nr===void 0?!0:nr,Zt=Wt.style,jt=Wt.data,kn=Wt.children,lt=Wt.itemKey,Ut=Wt.virtual,ke=Wt.direction,an=Wt.scrollWidth,kt=Wt.component,Tn=kt===void 0?"div":kt,rr=Wt.onScroll,Gr=Wt.onVirtualScroll,Nr=Wt.onVisibleChange,Lr=Wt.innerProps,Ur=Wt.extraRender,Sr=Wt.styles,ai=(0,Me.Z)(Wt,jr),ir=!!(Ut!==!1&&pr&&wr),Rr=ir&&jt&&(wr*jt.length>pr||!!an),Di=ke==="rtl",Gi=Be()(zn,(0,Se.Z)({},"".concat(zn,"-rtl"),Di),Jn),qr=jt||vr,di=(0,ce.useRef)(),Yi=(0,ce.useRef)(),Xr=(0,ce.useState)(0),Pi=(0,Xe.Z)(Xr,2),Mr=Pi[0],ua=Pi[1],ta=(0,ce.useState)(0),Ra=(0,Xe.Z)(ta,2),ca=Ra[0],Xi=Ra[1],Oi=(0,ce.useState)(!1),la=(0,Xe.Z)(Oi,2),Ji=la[0],Sa=la[1],Ya=function(){Sa(!0)},ka=function(){Sa(!1)},ba=ce.useCallback(function(Gt){return typeof lt=="function"?lt(Gt):Gt==null?void 0:Gt[lt]},[lt]),Ba={getKey:ba};function fa(Gt){ua(function(Rn){var Qn;typeof Gt=="function"?Qn=Gt(Rn):Qn=Gt;var wn=Wn(Qn);return di.current.scrollTop=wn,wn})}var ja=(0,ce.useRef)({start:0,end:qr.length}),Ri=(0,ce.useRef)(),hn=Un(qr,ba),$t=(0,Xe.Z)(hn,1),Zn=$t[0];Ri.current=Zn;var gr=yn(ba,null,null),Er=(0,Xe.Z)(gr,4),ri=Er[0],pi=Er[1],Si=Er[2],vi=Er[3],Ai=ce.useMemo(function(){if(!ir)return{scrollHeight:void 0,start:0,end:qr.length-1,offset:void 0};if(!Rr){var Gt;return{scrollHeight:((Gt=Yi.current)===null||Gt===void 0?void 0:Gt.offsetHeight)||0,start:0,end:qr.length-1,offset:void 0}}for(var Rn=0,Qn,wn,Yn,kr=qr.length,bn=0;bn<kr;bn+=1){var pn=qr[bn],_n=ba(pn),Tr=Si.get(_n),Ir=Rn+(Tr===void 0?wr:Tr);Ir>=Mr&&Qn===void 0&&(Qn=bn,wn=Rn),Ir>Mr+pr&&Yn===void 0&&(Yn=bn),Rn=Ir}return Qn===void 0&&(Qn=0,wn=0,Yn=Math.ceil(pr/wr)),Yn===void 0&&(Yn=qr.length-1),Yn=Math.min(Yn+1,qr.length-1),{scrollHeight:Rn,start:Qn,end:Yn,offset:wn}},[Rr,ir,Mr,qr,vi,pr]),Ti=Ai.scrollHeight,$i=Ai.start,qi=Ai.end,Pn=Ai.offset;ja.current.start=$i,ja.current.end=qi;var In=ce.useState({width:0,height:pr}),Vn=(0,Xe.Z)(In,2),me=Vn[0],_e=Vn[1],Ke=function(Rn){_e({width:Rn.width||Rn.offsetWidth,height:Rn.height||Rn.offsetHeight})},Ye=(0,ce.useRef)(),Je=(0,ce.useRef)(),$e=ce.useMemo(function(){return tr(me.width,an)},[me.width,an]),Ge=ce.useMemo(function(){return tr(me.height,Ti)},[me.height,Ti]),Xt=Ti-pr,un=(0,ce.useRef)(Xt);un.current=Xt;function Wn(Gt){var Rn=Gt;return Number.isNaN(un.current)||(Rn=Math.min(Rn,un.current)),Rn=Math.max(Rn,0),Rn}var ar=Mr<=0,$n=Mr>=Xt,Nn=vn(ar,$n),Bn=function(){return{x:Di?-ca:ca,y:Mr}},rn=(0,ce.useRef)(Bn()),Xn=Ae(function(){if(Gr){var Gt=Bn();(rn.current.x!==Gt.x||rn.current.y!==Gt.y)&&(Gr(Gt),rn.current=Gt)}});function Ar(Gt,Rn){var Qn=Gt;Rn?((0,we.flushSync)(function(){Xi(Qn)}),Xn()):fa(Qn)}function ur(Gt){var Rn=Gt.currentTarget.scrollTop;Rn!==Mr&&fa(Rn),rr==null||rr(Gt),Xn()}var Mn=function(Rn){var Qn=Rn,wn=an-me.width;return Qn=Math.max(Qn,0),Qn=Math.min(Qn,wn),Qn},mr=Ae(function(Gt,Rn){Rn?((0,we.flushSync)(function(){Xi(function(Qn){var wn=Qn+(Di?-Gt:Gt);return Mn(wn)})}),Xn()):fa(function(Qn){var wn=Qn+Gt;return wn})}),Dr=mn(ir,ar,$n,!!an,mr),_r=(0,Xe.Z)(Dr,2),tt=_r[0],at=_r[1];or(ir,di,function(Gt,Rn){return Nn(Gt,Rn)?!1:(tt({preventDefault:function(){},deltaY:Gt}),!0)}),dt(function(){function Gt(Qn){ir&&Qn.preventDefault()}var Rn=di.current;return Rn.addEventListener("wheel",tt),Rn.addEventListener("DOMMouseScroll",at),Rn.addEventListener("MozMousePixelScroll",Gt),function(){Rn.removeEventListener("wheel",tt),Rn.removeEventListener("DOMMouseScroll",at),Rn.removeEventListener("MozMousePixelScroll",Gt)}},[ir]),dt(function(){an&&Xi(function(Gt){return Mn(Gt)})},[me.width,an]);var on=function(){var Rn,Qn;(Rn=Ye.current)===null||Rn===void 0||Rn.delayHidden(),(Qn=Je.current)===null||Qn===void 0||Qn.delayHidden()},Qt=xt(di,qr,Si,wr,ba,function(){return pi(!0)},fa,on);ce.useImperativeHandle(On,function(){return{getScrollInfo:Bn,scrollTo:function(Rn){function Qn(wn){return wn&&(0,Fe.Z)(wn)==="object"&&("left"in wn||"top"in wn)}Qn(Rn)?(Rn.left!==void 0&&Xi(Mn(Rn.left)),Qt(Rn.top)):Qt(Rn)}}}),dt(function(){if(Nr){var Gt=qr.slice($i,qi+1);Nr(Gt,qr)}},[$i,qi,qr]);var Dn=Hr(qr,ba,Si,wr),sr=Ur==null?void 0:Ur({start:$i,end:qi,virtual:Rr,offsetX:ca,offsetY:Pn,rtl:Di,getSize:Dn}),Mt=je(qr,$i,qi,an,ri,kn,Ba),Dt=null;pr&&(Dt=(0,de.Z)((0,Se.Z)({},St?"height":"maxHeight",pr),Kr),ir&&(Dt.overflowY="hidden",an&&(Dt.overflowX="hidden"),Ji&&(Dt.pointerEvents="none")));var Nt={};return Di&&(Nt.dir="rtl"),ce.createElement("div",(0,oe.Z)({style:(0,de.Z)((0,de.Z)({},Zt),{},{position:"relative"}),className:Gi},Nt,ai),ce.createElement(Qe.Z,{onResize:Ke},ce.createElement(Tn,{className:"".concat(zn,"-holder"),style:Dt,ref:di,onScroll:ur,onMouseEnter:on},ce.createElement(et,{prefixCls:zn,height:Ti,offsetX:ca,offsetY:Pn,scrollWidth:an,onInnerResize:pi,ref:Yi,innerProps:Lr,rtl:Di,extra:sr},Mt))),Rr&&Ti>pr&&ce.createElement(be,{ref:Ye,prefixCls:zn,scrollOffset:Mr,scrollRange:Ti,rtl:Di,onScroll:Ar,onStartMove:Ya,onStopMove:ka,spinSize:Ge,containerSize:me.height,style:Sr==null?void 0:Sr.verticalScrollBar,thumbStyle:Sr==null?void 0:Sr.verticalScrollBarThumb}),Rr&&an&&ce.createElement(be,{ref:Je,prefixCls:zn,scrollOffset:ca,scrollRange:an,rtl:Di,onScroll:Ar,onStartMove:Ya,onStopMove:ka,spinSize:$e,containerSize:me.width,horizontal:!0,style:Sr==null?void 0:Sr.horizontalScrollBar,thumbStyle:Sr==null?void 0:Sr.horizontalScrollBarThumb}))}var br=ce.forwardRef(yr);br.displayName="List";var Cr=br,zr=Cr},66392:function(An,Jt){"use strict";var ne;var oe=Symbol.for("react.element"),de=Symbol.for("react.portal"),Fe=Symbol.for("react.fragment"),Xe=Symbol.for("react.strict_mode"),Se=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),ce=Symbol.for("react.context"),we=Symbol.for("react.server_context"),ge=Symbol.for("react.forward_ref"),Be=Symbol.for("react.suspense"),Qe=Symbol.for("react.suspense_list"),Oe=Symbol.for("react.memo"),et=Symbol.for("react.lazy"),ot=Symbol.for("react.offscreen"),nt;nt=Symbol.for("react.module.reference");function Ve(xe){if(typeof xe=="object"&&xe!==null){var mt=xe.$$typeof;switch(mt){case oe:switch(xe=xe.type,xe){case Fe:case Se:case Xe:case Be:case Qe:return xe;default:switch(xe=xe&&xe.$$typeof,xe){case we:case ce:case ge:case et:case Oe:case Me:return xe;default:return mt}}case de:return mt}}}ne=ce,ne=Me,ne=oe,ne=ge,ne=Fe,ne=et,ne=Oe,ne=de,ne=Se,ne=Xe,ne=Be,ne=Qe,ne=function(){return!1},ne=function(){return!1},ne=function(xe){return Ve(xe)===ce},ne=function(xe){return Ve(xe)===Me},ne=function(xe){return typeof xe=="object"&&xe!==null&&xe.$$typeof===oe},ne=function(xe){return Ve(xe)===ge},ne=function(xe){return Ve(xe)===Fe},ne=function(xe){return Ve(xe)===et},ne=function(xe){return Ve(xe)===Oe},ne=function(xe){return Ve(xe)===de},ne=function(xe){return Ve(xe)===Se},ne=function(xe){return Ve(xe)===Xe},ne=function(xe){return Ve(xe)===Be},ne=function(xe){return Ve(xe)===Qe},ne=function(xe){return typeof xe=="string"||typeof xe=="function"||xe===Fe||xe===Se||xe===Xe||xe===Be||xe===Qe||xe===ot||typeof xe=="object"&&xe!==null&&(xe.$$typeof===et||xe.$$typeof===Oe||xe.$$typeof===Me||xe.$$typeof===ce||xe.$$typeof===ge||xe.$$typeof===nt||xe.getModuleId!==void 0)},ne=Ve},31461:function(An,Jt,ne){"use strict";ne(66392)},25365:function(An){"use strict";An.exports="data:image/png;base64,iVB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oSQAAAABJRU5ErkJggg=="},60345:function(An){"use strict";An.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAqCAYAAABfjB7GAAAAAXNSR0IArs4c6QAAE81JREFUeF7tW3l4Tef2fveJzIkxNQc1RFsxUxJjlWpTdHDRW7RoqXtVq6jqRAe0eltUdTL0VutWqWiVVqmKRJCoeSa0SCOEREhExrN/z7e+YX97n5NEm/v87j9O9Tknezp7r/d713rXcIyrh5aahmEAhgHDcPF39h/bBvan3Ed/iO3Od36cCcA0DLjoTMB0iWuYdCrtK+/lcrOriPPZFfk/wDTVO9timvRtfDt95Oex7fS/PJdtN90wTTftd7N3dqjbBLtj0y2vJY6R54t3dl2Dvoafx6/PPsvvdfPn1o7n98Oux+9R7mNPT9u0exVPZz0fkO6Ce4th+EypH/P6H8aVg58TQBwIlwWIBIlthh0k2kLHs3/8HHYrHA8Dbm8gSauXA5IhDELGFg8kYeWGl2BYILHt3Ihym/MzM6g0mN2YhgCIX7eEjC+NqBud3RcHiO/Xj5GLp2yQ+LllgkRgckO5YGYZhqu1kc0AIoOzVc4YxA3O7Vg+k+h4yTTt/f8HJGlMAacGEl+9YsVKxonVb9vHmKSxBnDDdDNWSHZaYMjjOHvsICmWewPvLzCJbAr3ciP7wGfCxTFD25lkA4lcH6cJZ5Rwf5JdDjBt7k5zb8rJ/deYZDGDll+ZTLLcnc42cneKfdyFlcokcsF8pXtjkw18J1jaQhGrR3OD0mdY7twFpBvZ+z8zKW6QwThAuruzgyTcnReQeMyyM65skDjIZb10d0cRhLky/mQSC3JdnkwRD+mIS+o4DQBpUAaSsLq4vgBJAVI2k2wuzyMmWWxU8VPcm5vcswU6YzAZht0js+flfUuUSOBk8MYkTTBIN/Y/AMmKP0JEqJjEH4obmzPKHpPkitcM4WQJVxAKJO7iKgCSuDePWKW5O5tY8Coc3DCy9yw2KborteZQaComWSBJhWe5OytmeVOBFXZ3pLisF606r0xiIAmFJeWfUnU6qyQbrICv1BVTnM6YpFSb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h7dudRdYArKyt7xlzGbTChV9IQckzmA9BkqcwqkDhphM1bK9FkiOGPEaQmHAmYkcBHUhVcRAca4Xk/T9qXjEtL1KFDSYxE1xUvqGu3OYJFe8LnIaBpdAutoOhgT3ZpI5hqwq107/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(An){"use strict";An.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAgCAYAAAD+Fz2gAAAAAXNSR0IArs4c6QAAEx5JREFUaEPFWwd4FWW6fueE9NATIEAoKkWKgIKVEkBgl2LB6159EFdRwHVd9a67SC+ryFVBEDGAUq57d0WUK6DuigYSeglFMJQIhBJSIIYUQgohObPP9/1l/pmcE7h9nvCcc+bMzJn53v/9vvcrWABQfuovrf3VeMeClWhbVrwFC5Zl0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Tut2rXRldp7QgFzs+eRv3PfkqP6yot8p8R0t2NREkXzWDwQ25vZ8nYcx8UZtTC2bbqrdAK5zKUc1u6YqB46bCCnPaBoFASqVaXE0NBlOiqkpATtwWBUkV7KlmtlzGoOdJZgunaIoFndzaNs4f3olD3/wb76LF1qnfSLTt2dfFvP9869xhk4pdVk7K28wg7U6MCR/2PwaTTJBM8cAxiYZIiH2GuxTHKDflgKQafrVjnLxBP/VsIowYKFhNLOcFasSkQHlSneyVFXAVk7wgOXFKJowGSAH7OgFm7hSoQrGZMUkUWN1TquIY77Eqjlk5W/5VVxIUSK6YpBSe2RsSS9sI9ka1gUo2HlAdIBRIXgFijHMZosE7c+cF6WbmGwIHHtGmoM09ziVVmxYTNwmSMV3knZXj2OcadKQOb3B15y0BWdmb5+ValhWvDM6zWEwcZz5O+ikNSjAmqclULdu9DT89GBl4CIWvy0xUSlFGGGMwMhCT9P2peMS0vUEUNJjETXFS+oa7c5gkV7wuchoGl0C62g6GBA/MJHMMWVWunf6PqlZIUPOsnC3zPrV59NeR2WoA3qkocJmh1miWmxmq0h0ihx7lsHwgkHTrXAAlCGlMq3qnWlUcM2KS192p3IqhFa5AJ7dBoXKBJIN7QJCcEWPvpJDAyIhV1N81GOOIAZNJDkhmYZTdrTFUAhtrrOzUt1ujxj4C2E201JZgcZ/VNWkawOh62secBqLWufgcqCvLDs0z3+CAZIwYe9xdLVepXJScFOKWhWQOd1rVoqqDTMGnV2U85AEN2cQw5h245yd7OLo8oxt4wVyYGyQnkXUadIa6K4xARA9+HALJ8vvfsW0kKnen3JQDkptFyiUKAIUrctSaSGh56uZGIGn3ZTLJ+99dlOpz/lcFOSQxrizjSBCQboZJdYMkWxgekNxFTckgs9cTNM7IZpxqypkTriKZzoPt3xpREzYp6t7x2f8ARtZc8eay0EoAAAAASUVORK5CYII="},39057:function(An){"use strict";An.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QA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Qm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},79633:function(An){"use strict";An.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/puU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36459:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return oe}});function oe(de){if(de==null)throw new TypeError("Cannot destructure "+de)}},84279:function(An,Jt,ne){"use strict";var oe=Object.defineProperty,de=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,ce=(a,y,b)=>y in a?oe(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,we=(a,y)=>{for(var b in y||(y={}))Se.call(y,b)&&ce(a,b,y[b]);if(Xe)for(var b of Xe(y))Me.call(y,b)&&ce(a,b,y[b]);return a},ge=(a,y)=>de(a,Fe(y)),Be=a=>typeof a=="symbol"?a:a+"",Qe=(a,y)=>{var b={};for(var E in a)Se.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&Xe)for(var E of Xe(a))y.indexOf(E)<0&&Me.call(a,E)&&(b[E]=a[E]);return b};function Oe(a){return Array.isArray(a)}var et={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 ot(){return"window"in globalThis&&"document"in globalThis}function nt(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function Ve(){return typeof navigator.vibrate=="function"}function xe(){var a,y;if(!ot())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 mt(){if(!ot())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 it={strings:et,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return it._locale||(it._locale=ot()?navigator.language.slice(0,5):"en-US"),it._locale},set locale(a){it._locale=a,it._numberFormatter=void 0,it.dirty=!0},get numberFormatter(){return it._numberFormatter||(it._numberFormatter=new Intl.NumberFormat(it.locale)),it._numberFormatter},merge(a,y){if(typeof a=="string"&&y)it.strings[a]=we(we({},it.strings[a]),y),it.dirty=!0;else for(const b of Object.keys(a))it.merge(b,a[b])},get dirty(){return it._dirty},set dirty(a){it._dirty||it._dirty===a||(it._dirty=!0,setTimeout(()=>{it._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return it._subscribers.push(a),it._subscribers.length-1},unsubscribe(a){a<0||a>=it._subscribers.length||(it._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 ee=pt(E);ee&&b.setAttribute("data-tooltip",ee)}}y=a.querySelectorAll("[data-l10n-arial-label]");for(const b of y){const E=b.getAttribute("data-l10n-arial-label");if(E){const ee=pt(E);ee&&b.setAttribute("aria-label",ee)}}}};function pt(a,...y){if(a===void 0)return;let b="";const E=it.locale;it.strings[E]&&(b=it.strings[E][a]);const ee=E.slice(0,2);if(!b&&it.strings[ee]&&(b=it.strings[ee][a]),b||(b=it.strings.en[a]),!b)return;const ie=/(%@|%([0-9]+)\$@)/g;let se=ie.exec(b),ye=0;for(;se;){if(y[ye++]){const Pe=se[2]?parseInt(se[2],10)-1:ye-1;let He=y[Pe];typeof He=="number"&&(He=it.numberFormatter.format(He)),b=b.replace(se[1],He)}se=ie.exec(b)}return b=b.replace(/%%/g,"%"),b}var Ce={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},be={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"},je={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"},Et={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"},ft={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 ut(a){var y,b,E,ee,ie,se;const ye=a.split("!");let Ee,Pe,He,ct=255,_t=255,fn=255,xn=-1;const Or=ye.length>0&&ye[0].startsWith("-");Or&&(ye[0]=ye[0].slice(1));for(let bi=0;bi<ye.length;bi++){Ee=ct,Pe=_t,He=fn;const Pr=(y=ye[bi].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],ti=Pr==null?void 0:Pr.toLowerCase(),Ei=Pr&&(se=(ie=(ee=(E=(b=je[ti])!=null?b:je[Et[Pr]])!=null?E:be[Pr])!=null?ee:ft[Pr])!=null?ie:Ce[Pr])!=null?se:ye[bi].trim();let li=Ei.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(li!=null&&li[1]&&li[2]&&li[3])ct=Math.max(0,Math.min(255,Number.parseInt(li[1],16))),_t=Math.max(0,Math.min(255,Number.parseInt(li[2],16))),fn=Math.max(0,Math.min(255,Number.parseInt(li[3],16)));else if(li=Ei.match(/^#([\da-f]{3})$/i),li!=null&&li[1]){const sa=Number.parseInt(li[1][0],16),Fa=Number.parseInt(li[1][1],16),ya=Number.parseInt(li[1][2],16);ct=Math.max(0,Math.min(255,sa*16+sa)),_t=Math.max(0,Math.min(255,Fa*16+Fa)),fn=Math.max(0,Math.min(255,ya*16+ya))}else if(li=Ei.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),li!=null&&li[1]&&li[2]&&li[3])ct=Math.max(0,Math.min(255,Number.parseInt(li[1]))),_t=Math.max(0,Math.min(255,Number.parseInt(li[2]))),fn=Math.max(0,Math.min(255,Number.parseInt(li[3])));else return;xn>=0&&(ct=(1-xn)*ct+xn*Ee,_t=(1-xn)*_t+xn*Pe,fn=(1-xn)*fn+xn*He,xn=-1),bi+1<ye.length&&(xn=Math.max(0,Math.min(100,Number.parseInt(ye[++bi])))/100)}return xn>=0&&(ct=xn*ct+(1-xn)*Ee,_t=xn*_t+(1-xn)*Pe,fn=xn*fn+(1-xn)*He),Or&&(ct=255-ct,_t=255-_t,fn=255-fn),"#"+("00"+Math.round(ct).toString(16)).slice(-2)+("00"+Math.round(_t).toString(16)).slice(-2)+("00"+Math.round(fn).toString(16)).slice(-2)}function Re(a){var y,b;return a=a.trim(),(b=(y=Ze[a.toLowerCase()])!=null?y:Ze[Et[a]])!=null?b:ut(a)}function Vt(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 wt(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 yn(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 ee=E<=.5?E*(b+1):E+b-E*b,ie=E*2-ee;return{r:Math.round(255*wt(ie,ee,y+2)),g:Math.round(255*wt(ie,ee,y)),b:Math.round(255*wt(ie,ee,y-2))}}function Ft(a){return a<0?0:a>255?255:Math.round(a)}function ln(a){const{r:y,g:b,b:E}=a;let ee=((1<<24)+(Ft(y)<<16)+(Ft(b)<<8)+Ft(E)).toString(16).slice(1);return ee[0]===ee[1]&&ee[2]===ee[3]&&ee[4]===ee[5]&&ee[6]===ee[7]&&(ee=ee[0]+ee[2]+ee[4]),"#"+ee}function Kn(a){let{r:y,g:b,b:E}=a;y=y/255,b=b/255,E=E/255;const ee=Math.min(y,b,E),ie=Math.max(y,b,E),se=ie-ee;let ye,Ee;ie===ee?ye=0:y===ie?ye=(b-E)/se:b===ie?ye=2+(E-y)/se:E===ie&&(ye=4+(y-b)/se),ye=Math.min(ye*60,360),ye<0&&(ye+=360);const Pe=(ee+ie)/2;return ie===ee?Ee=0:Pe<=.5?Ee=se/(ie+ee):Ee=se/(2-ie-ee),{h:ye,s:Ee,l:Pe}}function rt(a){let y=Vt(a);if(!y)return a;let{h:b,s:E,l:ee}=Kn(y);return E+=.1,ee-=.1,ln(yn({h:b,s:E,l:ee}))}var dt={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"},Ae={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},Bt=[{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 Cn(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 ee of Bt)if((!y||ee.variant===y)&&(!b||ee.style===b)&&E>=ee.offset&&E<ee.offset+ee.len){const ie=ee.start+E-ee.offset;return String.fromCodePoint(Ae[ie]||ie)}return a}function en(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in Ae)if(Ae[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of Bt)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 Ct(a){var y;let b="";for(const E of a){if("{}<>[]$&#^_%:'\u02DC".includes(E)){b+=E;continue}const ee=(y=E.codePointAt(0))!=null?y:0;let ie=dt[ee];if(ie)ie.startsWith("\\")?b+=ie+" ":b+=ie;else{const{char:se,variant:ye,style:Ee}=en(ee);switch(ie=se,ye){case"double-struck":ie=`\\mathbb{${ie}}`;break;case"fraktur":ie=`\\mathfrak{${ie}}`;break;case"script":ie=`\\mathscr{${ie}}`;break;case"sans-serif":ie=`\\mathsf{${ie}}`;break;case"monospace":ie=`\\mathtt{${ie}}`;break;case"calligraphic":ie=`\\mathcal{${ie}}`;break}switch(Ee){case"bold":ie=`\\mathbf{${ie}}`;break;case"italic":ie=`\\mathit{${ie}}`;break;case"bolditalic":ie=`\\mathbfit{${ie}}`;break}b+=ie}}return b}function Rt(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var tn={},cr=we({},dt),Gn={},qt={},Fn={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}"},lr={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}},nn={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}},ze={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:nn},"amsmath.sty":{package:lr,primitive:!0},"texvc.sty":{package:Fn,primitive:!1}},ue={" ":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},fe=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,ve,he;mt()?(ve=new RegExp("\\p{Letter}","u"),he=new RegExp("[0-9\\p{Letter}]","u")):(ve=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,he=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function le(a,y,b="mord",E){y!==void 0&&(tn[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},cr[y]||(cr[y]=a))}function Ne(a,y,b){if(typeof a=="string"){for(let E=0;E<a.length;E++){const ee=a.charAt(E);le(ee,ee.codePointAt(0))}return}for(const[E,ee,ie,se]of a)le(E,ee,ie!=null?ie:y,se!=null?se:b)}function Te(a,y){for(let b=a;b<=y;b++)le(String.fromCodePoint(b),b)}function gt(a){var y;return(y=qt[a])!=null?y:null}function At(a,y){var b,E;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ee=[];for(const se in Gn)se.startsWith(y)&&!Gn[se].infix&&ee.push({match:se,frequency:(b=Gn[se].frequency)!=null?b:0});for(const se in tn)se.startsWith(y)&&ee.push({match:se,frequency:(E=tn[se].frequency)!=null?E:0});const ie=y.substring(1);for(const se of Object.keys(a.options.macros))se.startsWith(ie)&&ee.push({match:"\\"+se,frequency:0});return ee.sort((se,ye)=>{var Ee,Pe;return se.frequency===ye.frequency?se.match.length===ye.match.length?se.match<ye.match?-1:1:se.match.length-ye.match.length:((Ee=ye.frequency)!=null?Ee:0)-((Pe=se.frequency)!=null?Pe:0)}),ee.map(se=>se.match)}function Tt(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function zt(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:Tt(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...zt(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:Tt(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...zt(b[E]))}return y}function Ot(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 ht(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)qt[E]=b}function It(a,y,b){typeof a=="string"&&(a=[a]);const ee={tabular:!0,params:zt(y),createAtom:b};for(const ie of a)qt[ie]=ee}function xt(a,y,b){var E,ee;b||(b={});const ie={definitionType:"function",params:zt(y),ifMode:b.ifMode,isFunction:(E=b.isFunction)!=null?E:!1,applyMode:b.applyMode,infix:(ee=b.infix)!=null?ee:!1,parse:b.parse,createAtom:b.createAtom,applyStyle:b.applyStyle,serialize:b.serialize,render:b.render};if(typeof a=="string")Gn["\\"+a]=ie;else for(const se of a)Gn["\\"+se]=ie}var sn;function Kt(a){return sn||(sn=bt(ze)),a?bt(we(we({},sn),a)):sn}function Un(a,y){var b,E,ee,ie;if(typeof a=="string"){let se=0;const ye=a;return/(^|[^\\])#1/.test(ye)&&(se=1),/(^|[^\\])#2/.test(ye)&&(se=2),/(^|[^\\])#3/.test(ye)&&(se=3),/(^|[^\\])#4/.test(ye)&&(se=4),/(^|[^\\])#5/.test(ye)&&(se=5),/(^|[^\\])#6/.test(ye)&&(se=6),/(^|[^\\])#7/.test(ye)&&(se=7),/(^|[^\\])#8/.test(ye)&&(se=8),/(^|[^\\])#9/.test(ye)&&(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:ye}}return we({expand:(ee=y==null?void 0:y.expand)!=null?ee:!0,captureSelection:(ie=y==null?void 0:y.captureSelection)!=null?ie:!0,args:0},a)}function bt(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 ee of Object.keys(E.package))y[ee]=Un(E.package[ee],{expand:!E.primitive,captureSelection:E.captureSelection});else y[b]=Un(E)}return y}function Pt(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=Gn[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=tn[a]:ue[a]&&(b={definitionType:"symbol",type:"mord",codepoint:ue[a]})}else if(y==="math"){if(b=tn[a],!b&&a.length===1){const E=mn("math",a.codePointAt(0));return E.startsWith("\\")?ge(we({},Pt(E,"math")),{command:E}):null}}else ue[a]?b={definitionType:"symbol",type:"mord",codepoint:ue[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function vn(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function mn(a,y){if(y===void 0)return"";if(a==="math"&&cr[y])return cr[y];if(a==="text"){const b=Object.keys(ue).find(E=>ue[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var gn=[0,.68889,0,0,.72222],or=[0,.68889,0,0,.66667],er=[0,.68889,0,0,.77778],tr=[0,.68889,0,0,.61111],Hr=[.16667,.68889,0,0,.77778],jr=[0,.68889,0,0,.55556],vr=[0,0,0,0,.25],Kr=[0,.825,0,0,2.33334],yr=[0,.9,0,0,2.33334],br=[0,.68889,0,0,.54028],Cr=[-.03598,.46402,0,0,.5],zr=[-.13313,.36687,0,0,1],Wt=[.01354,.52239,0,0,1],On=[.01354,.52239,0,0,1.11111],qn=[0,.54986,0,0,1],zn=[0,.69224,0,0,.5],Jn=[0,.43056,0,0,1],pr=[.08198,.58198,0,0,.77778],wr=[.19444,.69224,0,0,.41667],nr=[.1808,.675,0,0,1],St=[.19444,.69224,0,0,.83334],Zt=[.13667,.63667,0,0,1],jt=[-.064,.437,0,0,1.334],kn=[.08167,.58167,0,0,.77778],lt=[0,.69224,0,0,.72222],Ut=[0,.69224,0,0,.66667],ke=[-.13313,.36687,0,0,.77778],an=[.06062,.54986,0,0,.77778],kt=[0,.69224,0,0,.77778],Tn=[.25583,.75583,0,0,.77778],rr=[.25142,.75726,0,0,.77778],Gr=[.20576,.70576,0,0,.77778],Nr=[.30274,.79383,0,0,.77778],Lr=[.22958,.72958,0,0,.77778],Ur=[.1808,.675,0,0,.77778],Sr=[.13667,.63667,0,0,.77778],ai=[.13597,.63597,0,0,.77778],ir=[.03517,.54986,0,0,.77778],Rr=[0,.675,0,0,.77778],Di=[.19444,.69224,0,0,.61111],Gi=[0,.54986,0,0,.76042],qr=[0,.54986,0,0,.66667],di=[.0391,.5391,0,0,.77778],Yi=[.03517,.54986,0,0,1.33334],Xr=[.38569,.88569,0,0,.77778],Pi=[.23222,.74111,0,0,.77778],Mr=[.19444,.69224,0,0,.77778],ua=[0,.37788,0,0,.5],ta=[0,.54986,0,0,.72222],Ra=[0,.69224,0,0,.83334],ca=[.11111,.69224,0,0,.66667],Xi=[.26167,.75726,0,0,.77778],Oi=[.48256,.98256,0,0,.77778],la=[.28481,.79383,0,0,.77778],Ji=[.08167,.58167,0,0,.22222],Sa=[.08167,.58167,0,0,.38889],Ya=[0,.43056,.04028,0,.66667],ka=[.41951,.91951,0,0,.77778],ba=[.24982,.74947,0,0,.38865],Ba=[.08319,.58283,0,0,.75623],fa=[0,.10803,0,0,.27764],ja=[0,.47534,0,0,.50181],Ri=[.18906,.47534,0,0,.50181],hn=[0,.69141,0,0,.50181],$t=[.24982,.74947,0,0,.27764],Zn=[0,.69141,0,0,.21471],gr=[.25,.75,0,0,.44722],Er=[0,.64444,0,0,.575],ri=[.08556,.58556,0,0,.89444],pi=[0,.69444,0,0,.89444],Si=[0,.68611,0,0,.9],vi=[0,.68611,0,0,.86944],Ai=[.25,.75,0,0,.575],Ti=[.25,.75,0,0,.31944],$i=[0,.69444,0,0,.63889],qi=[0,.69444,0,0,.31944],Pn=[0,.44444,0,0,.63889],In=[0,.44444,0,0,.51111],Vn=[0,.69444,0,0,.575],me=[.13333,.63333,0,0,.89444],_e=[0,.44444,0,0,.31944],Ke=[0,.69444,0,0,.86944],Ye=[0,.68611,0,0,.69166],Je=[0,.68611,0,0,.83055],$e=[0,.68611,0,0,.89444],Ge=[0,.69444,0,0,.60278],Xt=[.19444,.69444,0,0,.51111],un=[0,.69444,0,0,.83055],Wn=[-.10889,.39111,0,0,1.14999],ar=[.19444,.69444,0,0,.575],$n=[.19444,.69444,0,0,1.14999],Nn=[.19444,.69444,0,0,.70277],Bn=[.05556,.75,0,0,.575],rn=[0,.68611,0,0,.95833],Xn=[.08556,.58556,0,0,.76666],Ar=[-.02639,.47361,0,0,.575],ur=[0,.44444,0,0,.89444],Mn=[0,.55556,0,0,.76666],mr=[-.10889,.39111,0,0,.89444],Dr=[.00222,.50222,0,0,.89444],_r=[.19667,.69667,0,0,.89444],tt=[.08556,.58556,0,0,1.14999],at=[0,.69444,0,0,.70277],on=[-.02778,.47222,0,0,.575],Qt=[.25,.75,0,0,.51111],Dn=[-.13889,.36111,0,0,1.14999],sr=[.19444,.69444,0,0,1.02222],Mt=[.12963,.69444,0,0,.89444],Dt=[.19444,.69444,0,0,.44722],Nt=[0,.64444,.13167,0,.59111],Gt=[.19444,.64444,.13167,0,.59111],Rn=[0,.68611,.17208,0,.8961],Qn=[.19444,.44444,.105,0,.53222],wn=[0,.44444,.085,0,.82666],Yn=[0,.69444,.06709,0,.59111],kr=[0,.69444,.12945,0,.35555],bn=[0,.69444,0,0,.94888],pn=[0,.69444,.11472,0,.59111],_n=[0,.68611,.10778,0,.88555],Tr=[0,.69444,.07939,0,.62055],Ir=[0,.69444,.12417,0,.30667],Jr=[0,.64444,.13556,0,.51111],Zr=[.19444,.64444,.13556,0,.51111],Br=[0,.68333,.16389,0,.74333],si=[.19444,.43056,.08847,0,.46],oi=[0,.43056,.07514,0,.71555],vt=[0,.69444,.06646,0,.51111],dn=[0,.69444,0,0,.83129],hr=[0,.69444,.1225,0,.51111],mi=[0,.68333,.09403,0,.76666],ii=[0,.68333,.11111,0,.76666],yi=[0,.69444,.06961,0,.51444],zi=[0,.69444,0,0,.27778],Mi=[.25,.75,0,0,.38889],fi=[0,.64444,0,0,.5],_i=[0,.69444,0,0,.77778],ma=[0,.68333,0,0,.75],oo=[0,.68333,0,0,.77778],Ja=[0,.68333,0,0,.68056],Wa=[0,.68333,0,0,.72222],za=[.25,.75,0,0,.5],La=[.25,.75,0,0,.27778],ia=[0,.69444,0,0,.5],mo=[0,.69444,0,0,.55556],va=[0,.43056,0,0,.44445],Zi=[0,.43056,0,0,.5],Ta=[.19444,.43056,0,0,.55556],no=[0,.43056,0,0,.55556],Na=[.08333,.58333,0,0,.77778],Ka=[0,.43056,0,0,.27778],aa=[0,.66786,0,0,.27778],ro=[0,.69444,0,0,.75],bo=[0,.66786,0,0,.5],uo=[0,.68333,0,0,.625],xo=[.19444,.69444,0,0,.44445],Ao=[0,.69444,0,0,.72222],Xo=[.19444,.69444,0,0,.5],co=[.19444,.69444,0,0,1],wo=[.011,.511,0,0,1.126],os=[.19444,.69444,0,0,.61111],rs=[.05556,.75,0,0,.5],us=[0,.68333,0,0,.83334],Io=[.0391,.5391,0,0,.66667],So=[-.05555,.44445,0,0,.5],xa=[0,.43056,0,0,.77778],Pa=[0,.55556,0,0,.66667],io=[-.03625,.46375,0,0,.77778],go=[-.01688,.48312,0,0,.77778],Uo=[.0391,.5391,0,0,1],cs=[0,.69444,0,0,.61111],xs=[-.03472,.46528,0,0,.5],Js=[.25,.75,0,0,.44445],zs=[-.14236,.35764,0,0,1],ds=[.244,.744,0,0,.412],Ks=[.19444,.69444,0,0,.88889],Xa=[.12963,.69444,0,0,.77778],Da=[.19444,.69444,0,0,.38889],po=[.011,.511,0,0,1.638],ko=[.19444,.69444,0,0,0],fs=[0,.44444,0,0,.575],ss=[.19444,.44444,0,0,.575],Rl=[0,.68611,0,0,.75555],ml=[0,.69444,0,0,.66759],Sl=[0,.68611,0,0,.80555],Qa=[0,.68611,.08229,0,.98229],wi=[0,.68611,0,0,.76666],ha=[0,.44444,0,0,.58472],pa=[.19444,.44444,0,0,.6118],Aa=[.19444,.43056,0,0,.5],Vo=[0,.68333,.02778,.08334,.76278],Qo=[0,.68333,.08125,.05556,.83125],rl=[0,.43056,0,.05556,.48472],cl=[.19444,.43056,0,.08334,.51702],Cl=[.25,.75,0,0,.42778],vo=[0,.69444,0,0,.55],$s=[0,.69444,0,0,.73334],Pl=[0,.69444,0,0,.79445],Su=[0,.69444,0,0,.51945],Gl=[0,.69444,0,0,.70278],wl=[0,.69444,0,0,.76389],il=[.25,.75,0,0,.34306],ql=[0,.69444,0,0,.56111],dl=[0,.69444,0,0,.25556],eu=[.19444,.45833,0,0,.56111],is=[0,.45833,0,0,.56111],Eo=[0,.69444,0,0,.30556],qo=[0,.69444,0,0,.58056],Ss=[0,.69444,0,0,.67223],Ts=[0,.69444,0,0,.85556],al=[0,.69444,0,0,.55834],Ps=[0,.65556,.11156,0,.5],Kl=[0,.69444,.08094,0,.70834],Zu=[.17014,0,0,0,.44445],fu=[0,.69444,.0799,0,.5],Tu=[0,.69444,0,0,.73752],Pu=[0,.69444,.09205,0,.5],tu=[0,.69444,.09031,0,.77778],nu=[0,.69444,.07816,0,.27778],Iu=[0,.69444,.00316,0,.5],Nu=[.19444,.69444,0,0,.83334],Do=[.05556,.75,0,0,.83334],fo=[0,.75,0,0,.5],Hs=[.125,.08333,0,0,.27778],gl=[0,.08333,0,0,.27778],ho=[0,.65556,0,0,.5],Wo=[0,.69444,0,0,.47222],Ko=[0,.69444,0,0,.66667],Cs=[0,.69444,0,0,.59722],qs=[0,.69444,0,0,.54167],Hl=[0,.69444,0,0,.70834],_l=[.25,.75,0,0,.28889],ju=[0,.69444,0,0,.51667],tf=[0,.44444,0,0,.44445],Md=[.19444,.44444,0,0,.51667],Gc=[0,.44444,0,0,.38333],Yc=[0,.44444,0,0,.51667],Xc=[0,.69444,0,0,.83334],Ad=[.35001,.85,0,0,.45834],Ac=[.35001,.85,0,0,.57778],Qc=[.35001,.85,0,0,.41667],Jc=[.35001,.85,0,0,.58334],kc=[0,.72222,0,0,.55556],Dc=[1e-5,.6,0,0,.66667],kd=[1e-5,.6,0,0,.77778],Uu=[.25001,.75,0,0,.94445],nf=[.306,.805,.19445,0,.47222],lc=[.30612,.805,.19445,0,.47222],vl=[.25001,.75,0,0,.83334],Ou=[.35001,.85,0,0,.47222],Dd=[.25001,.75,0,0,1.11111],$c=[.65002,1.15,0,0,.59722],Wl=[.65002,1.15,0,0,.81111],Yo=[.65002,1.15,0,0,.47222],ru=[.65002,1.15,0,0,.66667],iu=[0,.75,0,0,1],Cu=[.55001,1.05,0,0,1.27778],qc=[.862,1.36,.44445,0,.55556],ed=[.86225,1.36,.44445,0,.55556],Ru=[.55001,1.05,0,0,1.11111],td=[.65002,1.15,0,0,.52778],uc=[.65002,1.15,0,0,.61111],Vu=[.55001,1.05,0,0,1.51112],nd=[.95003,1.45,0,0,.73611],Bc=[.95003,1.45,0,0,1.04445],hu=[.95003,1.45,0,0,.52778],cc=[.95003,1.45,0,0,.75],dc=[0,.75,0,0,1.44445],Lc=[.95003,1.45,0,0,.58334],fc=[1.25003,1.75,0,0,.79167],Yl=[1.25003,1.75,0,0,1.27778],rd=[1.25003,1.75,0,0,.58334],Fc=[1.25003,1.75,0,0,.80556],De=[0,.825,0,0,1.8889],Ie=[1.25003,1.75,0,0,.63889],qe=[.64502,1.155,0,0,.875],yt=[1e-5,.6,0,0,.875],Ht=[-99e-5,.601,0,0,.66667],Yt=[.64502,1.155,0,0,.66667],Ln=[1e-5,.9,0,0,.88889],jn=[.65002,1.15,0,0,.88889],Hn=[.90001,0,0,0,.88889],dr=[-.00499,.605,0,0,1.05556],Fr=[0,.12,0,0,.45],Sn=[0,.61111,0,0,.525],Vr=[.08333,.69444,0,0,.525],Yr=[-.08056,.53055,0,0,.525],$r=[-.05556,.55556,0,0,.525],ui=[0,.43056,0,0,.525],ei=[.22222,.43056,0,0,.525],xi=[0,0,0,0,.525],gi={"AMS-Regular":{32:vr,65:gn,66:or,67:gn,68:gn,69:or,70:tr,71:er,72:er,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:er,76:or,77:[0,.68889,0,0,.94445],78:gn,79:Hr,80:tr,81:Hr,82:gn,83:jr,84:or,85:gn,86:gn,87:[0,.68889,0,0,1],88:gn,89:gn,90:or,107:jr,160:vr,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:jr,295:br,710:Kr,732:yr,770:Kr,771:yr,989:kn,1008:Ya,8245:[0,.54986,0,0,.275],8463:br,8487:gn,8498:jr,8502:or,8503:[0,.68889,0,0,.44445],8504:or,8513:[0,.68889,0,0,.63889],8592:Cr,8594:Cr,8602:zr,8603:zr,8606:Wt,8608:Wt,8610:On,8611:On,8619:qn,8620:qn,8621:[-.13313,.37788,0,0,1.38889],8622:zr,8624:zn,8625:zn,8630:Jn,8631:Jn,8634:pr,8635:pr,8638:wr,8639:wr,8642:wr,8643:wr,8644:nr,8646:nr,8647:nr,8648:St,8649:nr,8650:St,8651:Wt,8652:Wt,8653:zr,8654:zr,8655:zr,8666:Zt,8667:Zt,8669:[-.13313,.37788,0,0,1],8672:jt,8674:jt,8705:[0,.825,0,0,.5],8708:jr,8709:kn,8717:[0,.43056,0,0,.42917],8722:Cr,8724:[.08198,.69224,0,0,.77778],8726:kn,8733:kt,8736:lt,8737:lt,8738:[.03517,.52239,0,0,.72222],8739:Ji,8740:[.25142,.74111,0,0,.27778],8741:Sa,8742:[.25142,.74111,0,0,.5],8756:Ut,8757:Ut,8764:ke,8765:[-.13313,.37788,0,0,.77778],8769:ke,8770:io,8774:Nr,8776:go,8778:kn,8782:an,8783:an,8785:pr,8786:pr,8787:pr,8790:kt,8791:Lr,8796:[.08198,.91667,0,0,.77778],8806:Tn,8807:Tn,8808:rr,8809:rr,8812:[.25583,.75583,0,0,.5],8814:Gr,8815:Gr,8816:Nr,8817:Nr,8818:Lr,8819:Lr,8822:Ur,8823:Ur,8828:Sr,8829:Sr,8830:Lr,8831:Lr,8832:Gr,8833:Gr,8840:Nr,8841:Nr,8842:ai,8843:ai,8847:ir,8848:ir,8858:pr,8859:pr,8861:pr,8862:Rr,8863:Rr,8864:Rr,8865:Rr,8872:[0,.69224,0,0,.61111],8873:lt,8874:[0,.69224,0,0,.88889],8876:tr,8877:tr,8878:gn,8879:gn,8882:ir,8883:ir,8884:Sr,8885:Sr,8888:[0,.54986,0,0,1.11111],8890:Ta,8891:Di,8892:Di,8901:[0,.54986,0,0,.27778],8903:kn,8905:kn,8906:kn,8907:kt,8908:kt,8909:[-.03598,.46402,0,0,.77778],8910:Gi,8911:Gi,8912:ir,8913:ir,8914:qr,8915:qr,8916:Ut,8918:di,8919:di,8920:Yi,8921:Yi,8922:Xr,8923:Xr,8926:Sr,8927:Sr,8928:Nr,8929:Nr,8934:Pi,8935:Pi,8936:Pi,8937:Pi,8938:Gr,8939:Gr,8940:Nr,8941:Nr,8994:Mr,8995:Mr,9416:[.15559,.69224,0,0,.90222],9484:zn,9488:zn,9492:ua,9496:ua,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:Rr,9633:Rr,9650:ta,9651:ta,9654:ir,9660:ta,9661:ta,9664:ir,9674:ca,9733:[.19444,.69224,0,0,.94445],10003:Ra,10016:Ra,10731:ca,10846:[.19444,.75583,0,0,.61111],10877:Sr,10878:Sr,10885:Tn,10886:Tn,10887:ai,10888:ai,10889:Xi,10890:Xi,10891:Oi,10892:Oi,10901:Sr,10902:Sr,10933:rr,10934:rr,10935:Xi,10936:Xi,10937:Xi,10938:Xi,10949:Tn,10950:Tn,10955:la,10956:la,57350:Ji,57351:Sa,57352:kn,57353:Ya,57356:rr,57357:rr,57358:ka,57359:Nr,57360:Nr,57361:ka,57366:rr,57367:rr,57368:rr,57369:rr,57370:ai,57371:ai},"Caligraphic-Regular":{32:vr,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:vr},"Fraktur-Regular":{32:vr,33:[0,.69141,0,0,.29574],34:Zn,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:ba,41:ba,42:[0,.62119,0,0,.27764],43:Ba,44:fa,45:Ba,46:fa,47:[.24982,.74947,0,0,.50181],48:ja,49:ja,50:ja,51:Ri,52:Ri,53:Ri,54:hn,55:Ri,56:hn,57:Ri,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:$t,93:$t,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:vr,8216:Zn,8217:Zn,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:vr,33:[0,.69444,0,0,.35],34:Ge,35:[.19444,.69444,0,0,.95833],36:Bn,37:[.05556,.75,0,0,.95833],38:pi,39:qi,40:gr,41:gr,42:[0,.75,0,0,.575],43:me,44:[.19444,.15556,0,0,.31944],45:Gc,46:[0,.15556,0,0,.31944],47:Ai,48:Er,49:Er,50:Er,51:Er,52:Er,53:Er,54:Er,55:Er,56:Er,57:Er,58:_e,59:[.19444,.44444,0,0,.31944],60:ri,61:mr,62:ri,63:[0,.69444,0,0,.54305],64:pi,65:vi,66:[0,.68611,0,0,.81805],67:Je,68:[0,.68611,0,0,.88194],69:Rl,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:Si,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Ye,77:[0,.68611,0,0,1.09166],78:Si,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:vi,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Ti,92:Ai,93:Ti,94:Vn,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:$i,99:In,100:$i,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:$i,105:qi,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:qi,109:[0,.44444,0,0,.95833],110:Pn,111:fs,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:Pn,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:In,123:Ai,124:Ti,125:Ai,126:[.35,.34444,0,0,.575],160:vr,163:[0,.69444,0,0,.86853],168:Vn,172:[0,.44444,0,0,.76666],176:Ke,177:me,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:me,216:[.04861,.73472,0,0,.89444],223:Cs,230:[0,.44444,0,0,.83055],247:me,248:[.09722,.54167,0,0,.575],305:_e,338:[0,.68611,0,0,1.16944],339:ur,567:[.19444,.44444,0,0,.35139],710:Vn,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Vn,715:Vn,728:Vn,729:qi,730:Ke,732:Vn,733:Vn,915:Ye,916:rn,920:$e,923:Sl,926:wi,928:Si,931:Je,933:$e,934:Je,936:$e,937:Je,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:qi,8217:qi,8220:Ge,8221:Ge,8224:Xt,8225:Xt,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:ml,8465:un,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:un,8501:at,8592:Wn,8593:ar,8594:Wn,8595:ar,8596:Wn,8597:Ai,8598:$n,8599:$n,8600:$n,8601:$n,8636:Wn,8637:Wn,8640:Wn,8641:Wn,8656:Wn,8657:Nn,8658:Wn,8659:Nn,8660:Wn,8661:[.25,.75,0,0,.70277],8704:$i,8706:[0,.69444,.06389,0,.62847],8707:$i,8709:Bn,8711:rn,8712:Xn,8715:Xn,8722:me,8723:me,8725:Ai,8726:Ai,8727:on,8728:Ar,8729:Ar,8730:[.18,.82,0,0,.95833],8733:ur,8734:[0,.44444,0,0,1.14999],8736:lt,8739:Ti,8741:Ai,8743:Mn,8744:Mn,8745:Mn,8746:Mn,8747:[.19444,.69444,.12778,0,.56875],8764:mr,8768:[.19444,.69444,0,0,.31944],8771:Dr,8776:[.02444,.52444,0,0,.89444],8781:Dr,8801:Dr,8804:_r,8805:_r,8810:tt,8811:tt,8826:ri,8827:ri,8834:ri,8835:ri,8838:_r,8839:_r,8846:Mn,8849:_r,8850:_r,8851:Mn,8852:Mn,8853:me,8854:me,8855:me,8856:me,8857:me,8866:at,8867:at,8868:pi,8869:pi,8900:Ar,8901:[-.02639,.47361,0,0,.31944],8902:on,8968:Qt,8969:Qt,8970:Qt,8971:Qt,8994:Dn,8995:Dn,9651:sr,9657:on,9661:sr,9667:on,9711:$n,9824:Mt,9825:Mt,9826:Mt,9827:Mt,9837:[0,.75,0,0,.44722],9838:Dt,9839:Dt,10216:gr,10217:gr,10815:Si,10927:_r,10928:_r,57376:ko},"Main-BoldItalic":{32:vr,33:[0,.69444,.11417,0,.38611],34:Tr,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:kr,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:Nt,49:Nt,50:Nt,51:Nt,52:Gt,53:Nt,54:Nt,55:Gt,56:Nt,57:Nt,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:pn,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:Rn,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:Rn,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:Yn,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:Qn,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:Qn,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:vr,168:[0,.69444,.11473,0,.59111],176:bn,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:wn,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:wn,567:[.19444,.44444,.04611,0,.385],710:Yn,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:kr,730:bn,732:pn,733:pn,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:Rn,931:[0,.68611,.11431,0,.82666],933:_n,934:[0,.68611,.05632,0,.82666],936:_n,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:kr,8217:kr,8220:[0,.69444,.16772,0,.62055],8221:Tr},"Main-Italic":{32:vr,33:Ir,34:yi,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:Ir,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:Jr,49:Jr,50:Jr,51:Jr,52:Zr,53:Jr,54:Jr,55:Zr,56:Jr,57:Jr,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:hr,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:Br,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:Br,79:mi,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:Br,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:vt,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:si,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:si,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:vr,168:[0,.66786,.10474,0,.51111],176:dn,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:oi,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:oi,710:vt,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:dn,732:[0,.66786,.11585,0,.51111],733:hr,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:mi,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:Br,931:[0,.68333,.12028,0,.71555],933:ii,934:[0,.68333,.05986,0,.71555],936:ii,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:Ir,8217:Ir,8220:[0,.69444,.1685,0,.51444],8221:yi,8463:br},"Main-Regular":{32:vr,33:zi,34:ia,35:Nu,36:rs,37:Do,38:_i,39:zi,40:Mi,41:Mi,42:fo,43:Na,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:za,48:fi,49:fi,50:fi,51:fi,52:fi,53:fi,54:fi,55:fi,56:fi,57:fi,58:Ka,59:[.19444,.43056,0,0,.27778],60:di,61:ke,62:di,63:Wo,64:_i,65:ma,66:[0,.68333,0,0,.70834],67:Wa,68:[0,.68333,0,0,.76389],69:Ja,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:ma,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:oo,76:uo,77:[0,.68333,0,0,.91667],78:ma,79:oo,80:Ja,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Wa,85:ma,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:ma,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:La,92:za,93:La,94:ia,95:[.31,.12056,.02778,0,.5],97:Zi,98:mo,99:va,100:mo,101:va,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:mo,105:aa,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:zi,109:[0,.43056,0,0,.83334],110:no,111:Zi,112:Ta,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:no,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:va,123:za,124:La,125:za,126:[.35,.31786,0,0,.5],160:vr,163:[0,.69444,0,0,.76909],167:xo,168:bo,172:[0,.43056,0,0,.66667],176:ro,177:Na,182:os,184:Zu,198:[0,.68333,0,0,.90278],215:Na,216:[.04861,.73194,0,0,.77778],223:ia,230:[0,.43056,0,0,.72222],247:Na,248:[.09722,.52778,0,0,.5],305:Ka,338:[0,.68333,0,0,1.01389],339:xa,567:[.19444,.43056,0,0,.30556],710:ia,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:ia,715:ia,728:ia,729:aa,730:ro,732:bo,733:ia,915:uo,916:us,920:oo,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:ma,931:Wa,933:oo,934:Wa,936:oo,937:Wa,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:zi,8217:zi,8220:ia,8221:ia,8224:xo,8225:xo,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:br,8465:Ao,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Ao,8501:cs,8592:zr,8593:Xo,8594:zr,8595:Xo,8596:zr,8597:za,8598:co,8599:co,8600:co,8601:co,8614:[.011,.511,0,0,1],8617:wo,8618:wo,8636:zr,8637:zr,8640:zr,8641:zr,8652:[.011,.671,0,0,1],8656:zr,8657:os,8658:zr,8659:os,8660:zr,8661:[.25,.75,0,0,.61111],8704:mo,8706:[0,.69444,.05556,.08334,.5309],8707:mo,8709:rs,8711:us,8712:Io,8715:Io,8722:Na,8723:Na,8725:za,8726:za,8727:xs,8728:So,8729:So,8730:[.2,.8,0,0,.83334],8733:xa,8734:Jn,8736:lt,8739:La,8741:za,8743:Pa,8744:Pa,8745:Pa,8746:Pa,8747:[.19444,.69444,.11111,0,.41667],8764:ke,8768:[.19444,.69444,0,0,.27778],8771:io,8773:[-.022,.589,0,0,1],8776:go,8781:io,8784:[-.133,.67,0,0,.778],8801:io,8804:ai,8805:ai,8810:Uo,8811:Uo,8826:di,8827:di,8834:di,8835:di,8838:ai,8839:ai,8846:Pa,8849:ai,8850:ai,8851:Pa,8852:Pa,8853:Na,8854:Na,8855:Na,8856:Na,8857:Na,8866:cs,8867:cs,8868:_i,8869:_i,8872:[.249,.75,0,0,.867],8900:So,8901:[-.05555,.44445,0,0,.27778],8902:xs,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:Js,8969:Js,8970:Js,8971:Js,8994:zs,8995:zs,9136:ds,9137:ds,9651:Ks,9657:xs,9661:Ks,9667:xs,9711:co,9824:Xa,9825:Xa,9826:Xa,9827:Xa,9837:[0,.75,0,0,.38889],9838:Da,9839:Da,10216:Mi,10217:Mi,10222:ds,10223:ds,10229:[.011,.511,0,0,1.609],10230:po,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:po,10815:ma,10927:ai,10928:ai,57376:ko},"Math-BoldItalic":{32:vr,48:fs,49:fs,50:fs,51:ss,52:ss,53:ss,54:Er,55:ss,56:Er,57:ss,65:vi,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:Qa,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Rl,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:ml,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:ha,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:vr,915:[0,.68611,.15972,0,.65694],916:rn,920:[0,.68611,.03194,0,.86722],923:Sl,926:[0,.68611,.07458,0,.84125],928:Qa,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:wi,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:ha,960:[0,.44444,.03704,0,.68241],961:pa,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:pa,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:vr,48:Zi,49:Zi,50:Zi,51:Aa,52:Aa,53:Aa,54:fi,55:Aa,56:fi,57:Aa,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:Qo,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:Vo,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:rl,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:vr,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Vo,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Qo,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:rl,960:[0,.43056,.03588,0,.57003],961:cl,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:cl,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:vr,33:[0,.69444,0,0,.36667],34:al,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:Eo,40:Cl,41:Cl,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:vo,49:vo,50:vo,51:vo,52:vo,53:vo,54:vo,55:vo,56:vo,57:vo,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Su,64:$s,65:$s,66:$s,67:Gl,68:Pl,69:[0,.69444,0,0,.64167],70:cs,71:$s,72:Pl,73:[0,.69444,0,0,.33056],74:Su,75:wl,76:qo,77:[0,.69444,0,0,.97778],78:Pl,79:Pl,80:Gl,81:[.10556,.69444,0,0,.79445],82:Gl,83:cs,84:$s,85:wl,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:$s,89:[0,.69444,.0275,0,.73334],90:Ss,91:il,93:il,94:vo,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:ql,99:[0,.45833,0,0,.48889],100:ql,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:ql,105:dl,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:dl,109:[0,.45833,0,0,.86667],110:is,111:[0,.45833,0,0,.55],112:eu,113:eu,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:is,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:vr,168:vo,176:$s,180:vo,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:vo,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:vo,729:Eo,730:$s,732:vo,733:vo,915:qo,916:[0,.69444,0,0,.91667],920:Ts,923:Ss,926:$s,928:Pl,931:Pl,933:Ts,934:Pl,936:Ts,937:Pl,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Eo,8217:Eo,8220:al,8221:al},"SansSerif-Italic":{32:vr,33:[0,.69444,.05733,0,.31945],34:Iu,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:nu,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:Hs,45:[0,.44444,.01946,0,.33333],46:gl,47:[.25,.75,.13164,0,.5],48:Ps,49:Ps,50:Ps,51:Ps,52:Ps,53:Ps,54:Ps,55:Ps,56:Ps,57:Ps,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:Ko,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:Kl,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:qs,77:[0,.69444,.08094,0,.875],78:Kl,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:fu,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:vr,168:[0,.67937,.06385,0,.5],176:Tu,184:Zu,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:fu,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Pu,715:ia,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Tu,732:[0,.67659,.08826,0,.5],733:Pu,915:[0,.69444,.13372,0,.54167],916:Xc,920:[0,.69444,.07555,0,.77778],923:cs,926:[0,.69444,.12816,0,.66667],928:Kl,931:[0,.69444,.11983,0,.72222],933:tu,934:[0,.69444,.04603,0,.72222],936:tu,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:nu,8217:nu,8220:[0,.69444,.14205,0,.5],8221:Iu},"SansSerif-Regular":{32:vr,33:[0,.69444,0,0,.31945],34:ia,35:Nu,36:rs,37:Do,38:[0,.69444,0,0,.75834],39:zi,40:Mi,41:Mi,42:fo,43:Na,44:Hs,45:[0,.44444,0,0,.33333],46:gl,47:za,48:ho,49:ho,50:ho,51:ho,52:ho,53:ho,54:ho,55:ho,56:ho,57:ho,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:Wo,64:Ko,65:Ko,66:Ko,67:$i,68:[0,.69444,0,0,.72223],69:Cs,70:[0,.69444,0,0,.56945],71:Ko,72:Hl,73:zi,74:Wo,75:[0,.69444,0,0,.69445],76:qs,77:[0,.69444,0,0,.875],78:Hl,79:[0,.69444,0,0,.73611],80:$i,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:mo,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:Ko,89:[0,.69444,.025,0,.66667],90:cs,91:_l,93:_l,94:ia,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:ju,99:tf,100:ju,101:tf,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:ju,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:Yc,111:[0,.44444,0,0,.5],112:Md,113:Md,114:[0,.44444,.01389,0,.34167],115:Gc,116:[0,.57143,0,0,.36111],117:Yc,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:vr,168:[0,.67937,0,0,.5],176:Ko,184:Zu,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:ia,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:ia,715:ia,728:ia,729:[0,.67937,0,0,.27778],730:Ko,732:[0,.67659,0,0,.5],733:ia,915:qs,916:Xc,920:_i,923:cs,926:Ko,928:Hl,931:Ao,933:_i,934:Ao,936:_i,937:Ao,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:zi,8217:zi,8220:ia,8221:ia},"Script-Regular":{32:vr,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:vr},"Size1-Regular":{32:vr,40:Ad,41:Ad,47:Ac,91:Qc,92:Ac,93:Qc,123:Jc,125:Jc,160:vr,710:kc,732:kc,770:kc,771:kc,8214:[-99e-5,.601,0,0,.77778],8593:Dc,8595:Dc,8657:kd,8659:kd,8719:Uu,8720:Uu,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:lc,8748:nf,8749:nf,8750:lc,8896:vl,8897:vl,8898:vl,8899:vl,8968:Ou,8969:Ou,8970:Ou,8971:Ou,9168:Ht,10216:Ou,10217:Ou,10752:Dd,10753:Dd,10754:Dd,10756:vl,10758:vl},"Size2-Regular":{32:vr,40:$c,41:$c,47:Wl,91:Yo,92:Wl,93:Yo,123:ru,125:ru,160:vr,710:iu,732:iu,770:iu,771:iu,8719:Cu,8720:Cu,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:ed,8748:qc,8749:qc,8750:ed,8896:Ru,8897:Ru,8898:Ru,8899:Ru,8968:td,8969:td,8970:td,8971:td,10216:uc,10217:uc,10752:Vu,10753:Vu,10754:Vu,10756:Ru,10758:Ru},"Size3-Regular":{32:vr,40:nd,41:nd,47:Bc,91:hu,92:Bc,93:hu,123:cc,125:cc,160:vr,710:dc,732:dc,770:dc,771:dc,8730:[.95003,1.45,0,0,1],8968:Lc,8969:Lc,8970:Lc,8971:Lc,10216:cc,10217:cc},"Size4-Regular":{32:vr,40:fc,41:fc,47:Yl,91:rd,92:Yl,93:rd,123:Fc,125:Fc,160:vr,710:De,732:De,770:De,771:De,8730:[1.25003,1.75,0,0,1],8968:Ie,8969:Ie,8970:Ie,8971:Ie,9115:qe,9116:yt,9117:qe,9118:qe,9119:yt,9120:qe,9121:Yt,9122:Ht,9123:Yt,9124:Yt,9125:Ht,9126:Yt,9127:Ln,9128:jn,9129:Hn,9130:[0,.3,0,0,.88889],9131:Ln,9132:jn,9133:Hn,9143:[.88502,.915,0,0,1.05556],10216:Fc,10217:Fc,57344:dr,57345:dr,57680:Fr,57681:Fr,57682:Fr,57683:Fr},"Typewriter-Regular":{32:xi,33:Sn,34:Sn,35:Sn,36:Vr,37:Vr,38:Sn,39:Sn,40:Vr,41:Vr,42:[0,.52083,0,0,.525],43:Yr,44:[.13889,.125,0,0,.525],45:Yr,46:[0,.125,0,0,.525],47:Vr,48:Sn,49:Sn,50:Sn,51:Sn,52:Sn,53:Sn,54:Sn,55:Sn,56:Sn,57:Sn,58:ui,59:[.13889,.43056,0,0,.525],60:$r,61:[-.19549,.41562,0,0,.525],62:$r,63:Sn,64:Sn,65:Sn,66:Sn,67:Sn,68:Sn,69:Sn,70:Sn,71:Sn,72:Sn,73:Sn,74:Sn,75:Sn,76:Sn,77:Sn,78:Sn,79:Sn,80:Sn,81:[.13889,.61111,0,0,.525],82:Sn,83:Sn,84:Sn,85:Sn,86:Sn,87:Sn,88:Sn,89:Sn,90:Sn,91:Vr,92:Vr,93:Vr,94:Sn,95:[.09514,0,0,0,.525],96:Sn,97:ui,98:Sn,99:ui,100:Sn,101:ui,102:Sn,103:ei,104:Sn,105:Sn,106:[.22222,.61111,0,0,.525],107:Sn,108:Sn,109:ui,110:ui,111:ui,112:ei,113:ei,114:ui,115:ui,116:[0,.55358,0,0,.525],117:ui,118:ui,119:ui,120:ui,121:ei,122:ui,123:Vr,124:Vr,125:Vr,126:Sn,127:Sn,160:xi,176:Sn,184:[.19445,0,0,0,.525],305:ui,567:ei,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:Sn,715:Sn,728:Sn,730:Sn,770:Sn,771:Sn,776:Sn,915:Sn,916:Sn,920:Sn,923:Sn,926:Sn,928:Sn,931:Sn,933:Sn,934:Sn,936:Sn,937:Sn,8216:Sn,8217:Sn,8242:Sn,9251:[.11111,.21944,0,0,.525]}},Bi=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,na=10,ji=.25,ea=1.2,Ca=.431,Ua={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[Ca,Ca,Ca],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:[ji,ji,ji],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]},Ki=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ui=5,Hi={"\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 Ci(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 Hi)a=Hi[E].codePointAt(0);else if(Bi.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 Qi={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]},wa={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]},qa={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 _a(a){if(wa[a]){const[Pe,He,ct]=wa[a],_t=`<span class="stretchy" style="height:${ct}em"><svg width="100%" height="${ct}em" viewBox="0 0 ${Pe} ${He}" preserveAspectRatio="none" ><path fill="currentcolor" d="${qa[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*ct/2)/100}em;min-width:0">${_t}</span>`}const[y,b,E,ee]=Qi[a];let ie,se;const ye=E/1e3;y.length===3?(ie=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],se=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(ie=["slice-1-of-2","slice-2-of-2"],se=["xMinYMin","xMaxYMin"]):(ie=["slice-1-of-1"],se=[ee]);const Ee=y.map((Pe,He)=>`<span class="${ie[He]}" style=height:${ye}em><svg width=400em height=${ye}em viewBox="0 0 400000 ${E}" preserveAspectRatio="${se[He]} slice"><path fill="currentcolor" d="${qa[Pe]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${ye}em;min-width:${b}em;">${Ee}</span>`}function Ea(a){return Qi[a]?Qi[a][2]/1e3:wa[a][2]}function ao(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 ee=a.charCodeAt(b+1);if(ee>=56320&&ee<=57343){const ie=E-55296,se=ee-56320;E=sc(2,16)+ie*sc(2,10)+se,b++}}y.push(E)}return y}var eo=8205,Ho=[[eo,1],[65038,2],[127995,5],[129456,4],[917536,96]],so,es=[127462,127487];function ts(a){var y;if(so===void 0){so={};for(const b of Ho)for(let E=b[0];E<=b[0]+b[1]-1;E++)so[E]=!0}return(y=so[a])!=null?y:!1}function Va(a){return a>=es[0]&&a<=es[1]}function Ds(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=ao(a);let E=0;for(;E<b.length;){const ee=b[E++],ie=b[E];if(ie===eo){const se=E-1;for(E+=2;b[E]===eo;)E+=2;y.push(String.fromCodePoint(...b.slice(se,E-se+1)))}else if(ts(ie)){const se=E-1;for(;ts(b[E]);)E+=b[E]===eo?2:1;y.push(String.fromCodePoint(...b.slice(se,2*E-se-1)))}else Va(ee)?(E+=1,y.push(String.fromCodePoint(...b.slice(E-2,2)))):y.push(String.fromCodePoint(ee))}return y}var Fo=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=Ds(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 Zo(a,y){var b,E,ee,ie;const se=[];let ye=a.next();if(ye&&ye!=="\\relax"){if(ye==="\\noexpand")ye=a.next(),ye&&se.push(ye);else if(ye==="\\obeyspaces")a.obeyspaces=!0;else if(ye==="\\bgroup")se.push("<{>");else if(ye==="\\egroup")se.push("<}>");else if(ye==="\\string"){if(ye=a.next(),ye)if(ye.startsWith("\\"))for(const Ee of ye)se.push(Ee==="\\"?"\\backslash":Ee);else ye==="<{>"?se.push("\\{"):ye==="<space>"?se.push("~"):ye==="<}>"&&se.push("\\}")}else if(ye==="\\csname"){for(;a.peek()==="<space>";)a.next();let Ee="",Pe=!1,He=[];do{if(He.length===0)if(/^#[\d?@]$/.test(a.peek())){const ct=a.get().slice(1);He=Oo((E=(b=y==null?void 0:y(ct))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),ye=He[0]}else ye=a.next(),He=ye?[ye]:[];Pe=He.length===0,!Pe&&ye==="\\endcsname"&&(Pe=!0,He.shift()),Pe||(Pe=ye==="<$>"||ye==="<$$>"||ye==="<{>"||ye==="<}>"||typeof ye=="string"&&ye.length>1&&ye.startsWith("\\")),Pe||(Ee+=He.shift())}while(!Pe);Ee&&se.push("\\"+Ee),se.push(...He)}else if(ye!=="\\endcsname")if(ye.length>1&&ye.startsWith("#")){const Ee=ye.slice(1);se.push(...Oo((ie=(ee=y==null?void 0:y(Ee))!=null?ee:y==null?void 0:y("?"))!=null?ie:"\\placeholder{}",y))}else se.push(ye)}return se}function Oo(a,y=null){const b=[];let E="";for(const se of a.toString().split(/\r?\n/)){E&&b.push(E),E=" ";const ye=se.match(/((?:\\%)|[^%])*/);ye!==null&&b.push(ye[0])}const ee=new Fo(Ct(b.join(""))),ie=[];do ie.push(...Zo(ee,y));while(!ee.end());return ie}function Ha(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 Ii(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:Ha([a,...y.map(b=>`{${b}}`)])}function da(a){return Ha(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var Ma=class Bf{constructor(y){Bf._registry[y]=this}static createAtom(y,b,E){return Bf._registry[y].createAtom(b,Pt(b,y),E)}static serialize(y,b){var E;if(!y||y.length===0)return"";if((E=b.skipStyles)!=null&&E){const ee=[];for(const ie of To(y)){const se=Bf._registry[ie[0].mode];ee.push(...se.serialize(ie,b))}return Ha(ee)}return Ha(Co(y,b))}static getFont(y,b,E){return Bf._registry[y].getFont(b,E)}};Ma._registry={};var Vi=Ma;function To(a){const y=[];let b=[],E="NONE";for(const ee of a)ee.type!=="first"&&(ee.mode!==E?(b.length>0&&y.push(b),b=[ee],E=ee.mode):b.push(ee));return b.length>0&&y.push(b),y}function Fi(a,y){const b=[];let E=[],ee;for(const ie of a)if(ie.type!=="first"&&ie.style){let se;y==="variant"?(se=ie.style.variant,ie.style.variantStyle&&ie.style.variantStyle!=="up"&&(se+="-"+ie.style.variantStyle)):se=ie.style[y],se===ee?E.push(ie):(E.length>0&&b.push(E),E=[ie],ee=se)}return E.length>0&&b.push(E),b}function Za(a,y){var b;const{parent:E}=a[0],ee=E==null?void 0:E.computedStyle.color,ie=[];for(const se of To(a)){const ye=y.defaultMode;for(const Ee of Fi(se,"color")){const Pe=Ee[0].computedStyle,He=Vi._registry[Ee[0].mode].serialize(Ee,ge(we({},y),{defaultMode:ye==="text"?"text":"math"}));!y.skipStyles&&Pe.color&&Pe.color!=="none"&&(!E||ee!==Pe.color)?ie.push(Ii("\\textcolor",(b=Pe.verbatimColor)!=null?b:Pe.color,Ha(He))):ie.push(Ha(He))}}return ie}function Bo(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return Fi(a,"backgroundColor").map(ee=>{var ie;if(ee.length>0||ee[0].type!=="box"){const se=ee[0].computedStyle;if(se.backgroundColor&&se.backgroundColor!=="none"&&(!b||E!==se.backgroundColor))return Ii("\\colorbox",(ie=se.verbatimBackgroundColor)!=null?ie:se.backgroundColor,Ha(Za(ee,ge(we({},y),{defaultMode:"text"}))))}return Ha(Za(ee,y))})}function Co(a,y){if(a.length===0)return[];const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.fontSize,ee=[];for(const ie of Fi(a,"fontSize")){const se=ie[0].computedStyle.fontSize,ye=Bo(ie,y);ye&&(se&&se!=="auto"&&(!b||E!==se)?ee.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][se],...ye):ee.push(...ye))}return ee}function ol(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 Bs(a){if(a.length===0)return"ord";const y=ol(a[0].type),b=ol(a[a.length-1].type);return y&&y===b?y:"ord"}function El(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 ni=class Ep{constructor(y,b){var E,ee,ie,se,ye;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:Oe(y)?this.children=y.filter(Pe=>Pe!==null):y&&y instanceof Ep&&(this.children=[y]),this.children)for(const Pe of this.children)Pe.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=(ee=b==null?void 0:b.classes)!=null?ee:"",this.isTight=(ie=b==null?void 0:b.isTight)!=null?ie:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let Ee=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(Ee=(ye=Vi.getFont((se=b.mode)!=null?se:"math",this,ge(we({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?ye:void 0),Ee||(Ee="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),Lo(this,Ee)}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 ee=El(b,E);ee.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[y]=ee)}setTop(y){Number.isFinite(y)&&Math.abs(y)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=El(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"]=El(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"]=El(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"]=El(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 ee=y.backgroundColor;this.isSelected&&(ee=rt(ee)),ee&&ee!==b.backgroundColor&&(this.setStyle("background-color",ee),this.setStyle("display","inline-block"));const ie=y.scalingFactor;return this.scale=ie,this.skew*=ie,this.italic*=ie,this}toMarkup(){var y,b,E,ee;let ie=(y=this.value)!=null?y:"";if(this.children)for(const fn of this.children)ie+=fn.toMarkup();let se="";if(this.svgBody)se=_a(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+=ie,se+="</span>",se+='<svg style="position:absolute;overflow:visible;',se+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const fn=(b=this.cssProperties)==null?void 0:b.padding;fn?(se+=`top:${fn};`,se+=`left:${fn};`,se+=`width:calc(100% - 2 * ${fn} );`):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 ye="";const Ee=this.classes.split(" ");Ee.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&Ee.push("ML__latex-caret"),this.isSelected&&Ee.push("ML__selected");const Pe=Ee.length===1?Ee[0]:Ee.filter((fn,xn,Or)=>fn.length>0&&Or.indexOf(fn)===xn).join(" ");if(Pe.length>0&&(ye+=` class="${Pe}"`),this.id&&(ye+=` data-atom-id=${this.id}`),this.cssId&&(ye+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(ye+=" "+Object.keys(this.attributes).map(fn=>`${fn}="${this.attributes[fn]}"`).join(" ")),this.htmlData){const fn=this.htmlData.split(",");for(const xn of fn){const Or=xn.match(/([^=]+)=(.+$)/);if(Or){const bi=Or[1].trim().replace(/ /g,"-");bi&&(ye+=` data-${bi}="${Or[2]}" `)}else{const bi=xn.trim().replace(/ /g,"-");bi&&(ye+=` data-${bi} `)}}}const He=(ee=this.cssProperties)!=null?ee:{};this.hasExplicitWidth&&He.width===void 0&&(He.width=`${Math.ceil(this._width*100)/100}em`);const ct=Object.keys(He).map(fn=>`${fn}:${He[fn]}`);if(this.scale!==void 0&&this.scale!==1&&(ie.length>0||se.length>0)&&ct.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const fn=this.htmlStyle.split(";");let xn="";for(const Or of fn){const bi=Or.match(/([^=]+):(.+$)/);if(bi){const Pr=bi[1].trim().replace(/ /g,"-");Pr&&(xn+=`${Pr}:${bi[2]};`)}}xn&&(ye+=` style="${xn}"`)}ct.length>0&&(ye+=` style="${ct.join(";")}"`);let _t="";return ye.length>0||se.length>0?_t=`<span${ye}>${ie}${se}</span>`:_t=ie,this.caret==="text"?_t+='<span class="ML__text-caret"></span>':this.caret==="math"&&(_t+='<span class="ML__caret"></span>'),_t}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 Ee of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&Ee in y.cssProperties||this.cssProperties&&Ee in this.cssProperties)return!1}const ee=this.cssProperties?Object.keys(this.cssProperties).length:0,ie=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ee!==ie)return!1;if(ee>0){for(const Ee of Object.keys(this.cssProperties))if(this.cssProperties[Ee]!==y.cssProperties[Ee])return!1}const se=this.classes.trim().replace(/\s+/g," ").split(" "),ye=y.classes.trim().replace(/\s+/g," ").split(" ");if(se.length!==ye.length)return!1;se.sort(),ye.sort();for(const[Ee,Pe]of se.entries())if(Pe==="vertical-separator"||Pe!==ye[Ee])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 zl(a){if(!a||a.length===0)return[];a[0].children=zl(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=zl(a[b].children),y.push(a[b]));return y}function ws(a){return a.children&&(a.children=zl(a.children)),a}function fl(a,y){if(!a)return new ni(null,y);const b=new ni(null,{classes:"ML__strut",type:"ignore"});b.setStyle("height",Math.max(0,a.height),"em");const E=[b];if(a.depth!==0){const ee=new ni(null,{classes:"ML__strut--bottom",type:"ignore"});ee.setStyle("height",a.height+a.depth,"em"),ee.setStyle("vertical-align",-a.depth,"em"),E.push(ee)}return E.push(a),new ni(E,ge(we({},y),{type:"lift"}))}function yl(a){const y=Ea(a)/2,b=new ni(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function Lo(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 ee=Ci(a.value.codePointAt(E),y);a.height=Math.max(a.height,ee.height),a.depth=Math.max(a.depth,ee.depth),a._width+=ee.width,a.skew=ee.skew,a.italic=ee.italic}return}if(a.children&&a.children.length>0){let E=-1/0,ee=-1/0,ie=0;for(const se of a.children)se.height>E&&(E=se.height),se.depth>ee&&(ee=se.depth),ie=Math.max(ie,(b=se.maxFontSize)!=null?b:0);a.height=E,a.depth=ee,a._width=a.children.reduce((se,ye)=>se+ye.width,0),a.maxFontSize=ie}}function No(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const E=[b],ee=-b.shift-b.box.depth;let ie=ee;for(let se=1;se<y.length;se++){const ye=y[se],Ee=-ye.shift-ie-ye.box.depth,Pe=Ee-(b.box.height+b.box.depth);ie=ie+Ee,E.push(Pe),E.push(ye),b=ye}return[E,ee]}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 ns(a){var y;const[b,E]=No(a);if(!b)return[[],0,0];const ee=new ni(null,{classes:"pstrut"});let ie=0;for(const xn of b)if(typeof xn!="number"){const Or=xn.box;ie=Math.max(ie,Or.maxFontSize,Or.height)}ie+=2,ee.height=ie,ee.setStyle("height",ie,"em");const se=[];let ye=E,Ee=E,Pe=E,He=0;for(const xn of b){if(typeof xn=="number")Pe+=xn;else{const Or=xn.box,bi=(y=xn.classes)!=null?y:[],Pr=new ni([ee,Or],{classes:bi.join(" "),style:xn.style});Or.setStyle("height",Or.height+Or.depth,"em"),Or.setStyle("display","inline-block"),Pr.setStyle("top",-ie-Pe-Or.depth,"em"),xn.marginLeft&&Pr.setStyle("margin-left",xn.marginLeft,"em"),xn.marginRight&&Pr.setStyle("margin-right",xn.marginRight,"em"),se.push(Pr),Pe+=Or.height+Or.depth,He=Math.max(He,Pr.width)}ye=Math.min(ye,Pe),Ee=Math.max(Ee,Pe)}se.forEach(xn=>{xn.softWidth=He});const ct=new ni(se,{classes:"vlist"});if(ct.softWidth=He,ct.height=Ee,ct.setStyle("height",Ee,"em"),ye>=0)return[[new ni(ct,{classes:"vlist-r"})],Ee,-ye];const _t=new ni(new ni(null),{classes:"vlist"});_t.height=-ye,_t.setStyle("height",-ye,"em");const fn=new ni(8203,{classes:"vlist-s",maxFontSize:0});return fn.softWidth=0,fn.height=0,fn.depth=0,[[new ni([ct,fn],{classes:"vlist-r"}),new ni(_t,{classes:"vlist-r"})],Ee,-ye]}var $a=class extends ni{constructor(a,y){var b;const[E,ee,ie]=ns(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=ee,this.depth=ie,this.softWidth=E.reduce((se,ye)=>Math.max(se,ye.width),0)}};function Os(a,y){var b,E,ee,ie,se;const ye=a.metrics,Ee=new ni(y.base),Pe=(b=y.baseShift)!=null?b:0,He=(E=y.slant)!=null?E:0;let ct=0,_t=0;y.above&&(ct=(ee=y.aboveShift)!=null?ee:Math.max(ye.bigOpSpacing1,ye.bigOpSpacing3-y.above.depth)),y.below&&(_t=(ie=y.belowShift)!=null?ie:Math.max(ye.bigOpSpacing2,ye.bigOpSpacing4-y.below.height));let fn=null;if(y.below&&y.above){const xn=ye.bigOpSpacing5+y.below.height+y.below.depth+_t+Ee.depth+Pe;fn=new $a({bottom:xn,children:[ye.bigOpSpacing5,{box:y.below,marginLeft:-He,classes:["ML__center"]},_t,{box:Ee,classes:["ML__center"]},ct,{box:y.above,marginLeft:He,classes:["ML__center"]},ye.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)fn=new $a({top:Ee.height-Pe,children:[ye.bigOpSpacing5,{box:y.below,marginLeft:-He,classes:["ML__center"]},_t,{box:Ee,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const xn=Ee.depth+Pe;fn=new $a({bottom:xn,children:[{box:Ee,classes:["ML__center"]},ct,{box:y.above,marginLeft:He,classes:["ML__center"]},ye.bigOpSpacing5]}).wrap(a)}else{const xn=Ee.depth+Pe;fn=new $a({bottom:xn,children:[{box:Ee},ye.bigOpSpacing5]}).wrap(a)}return new ni(fn,{type:(se=y.type)!=null?se:"op"})}var lo=7,Ls=6,Ws=5,Zs=4,Ml=3,Es=2,Al=1,Ms=0,js=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(Ua).reduce((ee,ie)=>ge(we({},ee),{[ie]:Ua[ie][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return As[[Ms,Al,Ms,Al,Es,Ml,Es,Ml][this.id]]}get sub(){return As[[Ms,Ms,Ms,Ms,Es,Es,Es,Es][this.id]]}get fracNum(){return As[[Ms,Al,Ms,Al,Es,Ml,Zs,Ws][this.id]]}get fracDen(){return As[[Ms,Ms,Ms,Ms,Es,Es,Zs,Zs][this.id]]}get cramp(){return As[[Ms,Ms,Es,Es,Zs,Zs,Ls,Ls][this.id]]}get isTight(){return this.sizeDelta<0}},Us={7:new js(lo,0,!1),6:new js(Ls,0,!0),5:new js(Ws,0,!1),4:new js(Zs,0,!0),3:new js(Ml,-3,!1),2:new js(Es,-3,!0),1:new js(Al,-4,!1),0:new js(Ms,-4,!0)},As=ge(we({},Us),{displaystyle:Us[lo],textstyle:Us[Ws],scriptstyle:Us[Ml],scriptscriptstyle:Us[Al]});function ms(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:na,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 ee=sc(10,y);return Math.round(a.dimension/na*E*ee)/ee}return a.dimension*E}function ls(a,y){if(a===null)return 0;const b=ms(a)/na;if(Number.isFinite(y)){const E=sc(10,y);return Math.round(b*E)/E}return b}function Xl(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function wu(a){let y=Xl(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${Xl(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${Xl(a.shrink)}`),y}function hs(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=wu(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 ee=Math.round(a.number)>>>0;a.base==="hexadecimal"?(E=Number(ee).toString(16).toUpperCase(),ee<=255?E=E.padStart(2,"0"):ee<=65535?E=E.padStart(4,"0"):ee<=16777215?E=E.padStart(6,"0"):E=E.padStart(8,"0"),E=`"${E}`):a.base==="octal"&&(E=Number(ee).toString(8),ee<=63?E=E.padStart(2,"0"):ee<=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 sl(a,y){return a==null?null:"number"in a?ge(we({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?ge(we({},a),{factor:a.factor*y}):ge(we({},a),{factor:y}):"dimension"in a?ge(we({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:sl(a.glue,y),shrink:sl(a.shrink,y),grow:sl(a.grow,y)}:a.shrink?{glue:sl(a.glue,y),shrink:sl(a.shrink,y)}:a.grow?{glue:sl(a.glue,y),grow:sl(a.grow,y)}:{glue:sl(a.glue,y)}:null}var Tc={"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 Eu(){return we({},Tc)}function yo(){return{registers:Eu(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:it.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:ut,backgroundColorMap:Re,getMacro:a=>vn(a,Kt())}}var ga=class Mp{constructor(y,b){var E,ee,ie,se,ye,Ee,Pe,He,ct,_t,fn,xn,Or,bi,Pr;let ti;y!=null&&y.parent?(this.parent=y.parent,ti=y.parent,this.registers={}):(ti=we(we({},yo()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=ti.registers),ti.atomIdsSettings&&(this.atomIdsSettings=we({},ti.atomIdsSettings)),this.renderPlaceholder=ti.renderPlaceholder,this.isPhantom=(se=(ie=y==null?void 0:y.isPhantom)!=null?ie:(ee=this.parent)==null?void 0:ee.isPhantom)!=null?se:!1,this.letterShapeStyle=ti.letterShapeStyle,this.minFontScale=ti.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(Ee=(ye=this.parent)==null?void 0:ye.color)!=null?Ee:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(He=(Pe=this.parent)==null?void 0:Pe.backgroundColor)!=null?He:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((ct=this.parent)==null?void 0:ct.size)?this.size=b.fontSize:this.size=(fn=(_t=this.parent)==null?void 0:_t.size)!=null?fn:Ui;let Ei=(Or=(xn=this.parent)==null?void 0:xn.mathstyle)!=null?Or:As.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(ti instanceof Mp)switch(y.mathstyle){case"cramp":Ei=Ei.cramp;break;case"superscript":Ei=Ei.sup;break;case"subscript":Ei=Ei.sub;break;case"numerator":Ei=Ei.fracNum;break;case"denominator":Ei=Ei.fracDen;break}switch(y.mathstyle){case"textstyle":Ei=As.textstyle;break;case"displaystyle":Ei=As.displaystyle;break;case"scriptstyle":Ei=As.scriptstyle;break;case"scriptscriptstyle":Ei=As.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Ei,this.smartFence=ti.smartFence,this.placeholderSymbol=ti.placeholderSymbol,this.colorMap=(bi=ti.colorMap)!=null?bi:li=>li,this.backgroundColorMap=(Pr=ti.backgroundColorMap)!=null?Pr:li=>li,this.getMacro=ti.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===lo||this.mathstyle.id===Ls}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(Ki[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 ls(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 ee=b.getRegister(y.register);if(ee===void 0)return;if(typeof ee=="string")return{string:Number(ee).toString()+ee};if(typeof ee=="number")return{number:E*ee};const ie=b.evaluate(ee);if(ie!==void 0)return"string"in ie?{string:Number(ee).toString()+ie.string}:"number"in ie?{number:E*ie.number}:"dimension"in ie?ge(we({},ie),{dimension:E*ie.dimension}):"glue"in ie?ge(we({},ie),{glue:ge(we({},ie.glue),{dimension:E*ie.glue.dimension}),shrink:ie.shrink?ge(we({},ie.shrink),{dimension:E*ie.shrink.dimension}):void 0,grow:ie.grow?ge(we({},ie.grow),{dimension:E*ie.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:ms(E,b)/na}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 ee=this.evaluate(y);return ee===void 0?null:"string"in ee?(E=(b=this.colorMap)==null?void 0:b.call(this,ee.string))!=null?E:ee.string:null}toBackgroundColor(y){var b,E;if(y===null)return null;const ee=this.evaluate(y);return ee===void 0?null:"string"in ee?(E=(b=this.backgroundColorMap)==null?void 0:b.call(this,ee.string))!=null?E:ee.string:null}},Is=["body","above","below","superscript","subscript"];function jo(a){return typeof a=="string"&&Is.includes(a)}function Vs(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var Wr=class Ec{constructor(y){var b,E,ee,ie,se,ye;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=(ee=y.mode)!=null?ee:"math",y.isFunction&&(this.isFunction=!0),y.limits&&(this.subsupPlacement=y.limits),this.style=we({},y.style),this.displayContainsHighlight=(ie=y.displayContainsHighlight)!=null?ie:!1,this.captureSelection=(se=y.captureSelection)!=null?se:!1,this.skipBoundary=(ye=y.skipBoundary)!=null?ye:!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 ee;if(!b)return null;const ie=kl(b),se=[];for(const Ee of ie){const Pe=Ee[0].style,He=lu(y,Ee,{style:{color:Pe.color,backgroundColor:Pe.backgroundColor,fontSize:Pe.fontSize}});He&&se.push(He)}if(se.length===0)return null;const ye=((ee=E==null?void 0:E.classes)!=null?ee:"").trim();return se.length===1&&!ye&&!(E!=null&&E.type)?se[0].wrap(y):new ni(se,{classes:ye,type:E==null?void 0:E.type}).wrap(y)}static serialize(y,b){return Vi.serialize(y,b)}static commonAncestor(y,b){if(y===b||y.parent===b.parent)return y.parent;const E=new WeakSet;let{parent:ee}=y;for(;ee;)E.add(ee),ee=ee.parent;for(ee=b.parent;ee;){if(E.has(ee))return ee;ee=ee.parent}console.assert(!!ee)}static fromJson(y){return typeof y=="string"?new Ec({type:"mord",value:y,mode:"math"}):new Ec(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=we({},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=id(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=Pt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?Ha([Ii(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?Ha([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Vi.serialize(this.body,ge(we({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Vi.serialize(this.above,y)}belowToLatex(y){return Vi.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=ge(we({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const E=Vi.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=Vi.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(jo(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of Is)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(jo(y)),jo(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 Vs(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Vs(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",ee=typeof this.style.verbatimBackgroundColor=="string",ie=we(we({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete ie.variant,delete ie.variantStyle,ee||delete ie.verbatimBackgroundColor,E||delete ie.verbatimColor,ie}applyStyle(y){this.isDirty=!0,this.style=we(we({},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(jo(b)),!jo(b)))return;console.assert(((E=y[0])==null?void 0:E.type)!=="first");const ee=[this.makeFirstAtom(b),...y];this._branches?this._branches[b]=ee:this._branches={[b]:ee};for(const ie of y)ie.parent=this,ie.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new Ec({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 ee of y)ee.parent=this,ee.parentBranch=b,E.push(ee);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 ee of y)ee.parent=this,ee.parentBranch=b.parentBranch;return y[y.length-1]}removeBranch(y){const b=this.branch(y);if(jo(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 Is)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=Pt(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new ga({parent:y},this.style);let ee=this.createBox(E,{classes:this.parent?"":"ML__base"});return ee?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(ee=this.attachSupsub(E,{base:ee})),ee.wrap(E)):null}attachSupsub(y,b){var E;const ee=b.base,ie=this.superscript,se=this.subscript;if(!ie&&!se)return ee;let ye=null,Ee=null;const Pe=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let He=0;if(ie){const Or=new ga({parent:y,mathstyle:"superscript"});ye=Ec.createBox(Or,ie),Pe||(He=ee.height-y.metrics.supDrop*Or.scalingFactor)}let ct=0;if(se){const Or=new ga({parent:y,mathstyle:"subscript"});Ee=Ec.createBox(Or,se),Pe||(ct=ee.depth+y.metrics.subDrop*Or.scalingFactor)}let _t;y.isDisplayStyle?_t=y.metrics.sup1:y.isCramped?_t=y.metrics.sup3:_t=y.metrics.sup2;const fn=.5/na/y.scalingFactor;let xn=null;if(Ee&&ye){He=Math.max(He,_t,ye.depth+.25*y.metrics.xHeight),ct=Math.max(ct,y.metrics.sub2);const Or=y.metrics.defaultRuleThickness;if(He-ye.depth-(Ee.height-ct)<4*Or){ct=4*Or-(He-ye.depth)+Ee.height;const Pr=.8*y.metrics.xHeight-(He-ye.depth);Pr>0&&(He+=Pr,ct-=Pr)}const bi=this.isExtensibleSymbol&&ee.italic?-ee.italic:0;xn=new $a({individualShift:[{box:Ee,shift:ct,marginLeft:bi},{box:ye,shift:-He}]}).wrap(y)}else Ee&&!ye?(ct=Math.max(ct,y.metrics.sub1,Ee.height-.8*Ca),xn=new $a({shift:ct,children:[{box:Ee,marginRight:fn,marginLeft:this.isCharacterBox()?-ee.italic:0}]})):!Ee&&ye&&(He=Math.max(He,_t,ye.depth+.25*Ca),xn=new $a({shift:-He,children:[{box:ye,marginRight:fn}]}));return new ni([ee,new ni(xn,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?Ec.createBox(new ga({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ee=this.subscript?Ec.createBox(new ga({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ee?b.base.wrap(y):Os(y,ge(we({},b),{above:E,below:ee}))}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,ee,ie,se;const ye=(E=this.value)!=null?E:this.body,Ee=(ee=b==null?void 0:b.boxType)!=null?ee:ol(this.type);let Pe=(ie=b==null?void 0:b.classes)!=null?ie:"";this.mode==="text"&&(Pe+=" ML__text");const He=typeof ye=="string"||ye===void 0?new ni(ye!=null?ye:null,{type:Ee,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:ge(we({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:Pe}):(se=Ec.createBox(y,ye,{type:Ee,classes:Pe}))!=null?se:new ni(null);return y.isTight&&(He.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(He.italic=0),He.right=He.italic,this.bind(y,He),this.caret&&!this.superscript&&!this.subscript&&(He.caret=this.caret),He}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 kl(a){let y;const b=[];let E=[];for(const ee of a)if(!y&&!ee.style)E.push(ee);else{const ie=ee.computedStyle;y&&ie.color===y.color&&ie.backgroundColor===y.backgroundColor&&ie.fontSize===y.fontSize?E.push(ee):(E.length>0&&b.push(E),E=[ee],y=ie)}return E.length>0&&b.push(E),b}function lu(a,y,b){var E,ee,ie,se,ye;if(!y||y.length===0)return null;const Ee=new ga({parent:a},b.style),Pe=!((E=Ee.atomIdsSettings)!=null&&E.groupNumbers);let He=[];if(y.length===1){const _t=y[0],fn=_t.render(Ee);fn&&(Pe&&_t.isSelected&&fn.selected(!0),He=[fn])}else{let _t="",fn=!0;for(const xn of y){(ee=Ee.atomIdsSettings)!=null&&ee.groupNumbers&&_t&&(fn&&xn.isDigit()||!fn&&Pc(xn))&&(Ee.atomIdsSettings.overrideID=_t);const Or=xn.render(Ee);Ee.atomIdsSettings&&(Ee.atomIdsSettings.overrideID=void 0),Or&&((ie=Ee.atomIdsSettings)!=null&&ie.groupNumbers&&((xn.isDigit()||Pc(xn))&&(!_t||fn!==xn.isDigit())&&(fn=xn.isDigit(),_t=(se=xn.id)!=null?se:""),_t&&(!(xn.isDigit()||Pc(xn))||!xn.hasEmptyBranch("superscript")||!xn.hasEmptyBranch("subscript"))&&(_t="")),Pe&&xn.isSelected&&Or.selected(!0),He.push(Or))}}if(He.length===0)return null;const ct=new ni(He,ge(we({isTight:Ee.isTight},b),{type:(ye=b.type)!=null?ye:"lift"}));return ct.isSelected=He.every(_t=>_t.isSelected),ct.wrap(Ee)}function Pc(a){return a.mode==="text"}function id(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof Wr?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var uu=class Ap extends Wr{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 Ap(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:mn("text",this.value.codePointAt(0))}};function hc(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E<b&&Bd(a.ranges[E],y.ranges[E])==="equal";)E++;return E===b?"equal":"different"}}return"different"}function Bd(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function Gs(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 Zl(a){return typeof a=="number"&&!Number.isNaN(a)}function pc(a){return Array.isArray(a)&&a.length===2}function Ic(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function Ld(a,y){const b=a.at(y);let E;if(b){E=b.mode;let ee=b.parent;for(;!E&&ee;)ee&&(E=ee.mode),ee=ee.parent}return E}function Fd(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,ee=!1,ie=!1,se=!1,ye=!1,Ee=!1,Pe=!1,He=!1,ct=!1,_t=!1,fn=!1,xn=!1,Or=!1,bi=!1,Pr=a[0],ti=0;for(;Pr!=null&&Pr.type&&/^(subsup|placeholder)$/.test(Pr.type);)ti+=1,Pr=a[ti];return b=!Pr||Pr.type==="first",Pr&&(Or=Pr.mode==="text",E=!Or&&Pr.type==="mord"&&ve.test(Pr.value),ee=!Or&&Pr.type==="mord"&&/\d+$/.test(Pr.value),ie=!Or&&Pr.isFunction,se=Pr.type==="genfrac",ye=Pr.type==="surd",Ee=Pr.type==="mbin",Pe=Pr.type==="mrel",He=Pr.type==="mop"||Pr.type==="operator"||Pr.type==="extensible-symbol",ct=Pr.type==="mpunct"||Pr.type==="minner",_t=Pr.type==="array",fn=Pr.type==="mopen",xn=Pr.type==="mclose"||Pr.type==="leftright",bi=Pr.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&E||y.after.includes("digit")&&ee||y.after.includes("function")&&ie||y.after.includes("frac")&&se||y.after.includes("surd")&&ye||y.after.includes("binop")&&Ee||y.after.includes("relop")&&Pe||y.after.includes("operator")&&He||y.after.includes("punct")&&ct||y.after.includes("array")&&_t||y.after.includes("openfence")&&fn||y.after.includes("closefence")&&xn||y.after.includes("text")&&Or||y.after.includes("space")&&bi?y.value:""}function Nc(a,y,b){return b?Fd(a,b[y]):""}var mc={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 Gu(a,y){var b;let E=(b=y==null?void 0:y.format)!=null?b:"auto";return E==="auto"&&([E,a]=Td(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",bl(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function bl(a,y){var b,E,ee;if(!a)return"";let ie=!1,se;const ye=(b=y.inlineShortcuts)!=null?b:mc;if(!ie&&(a.startsWith("^")||a.startsWith("_"))&&(se=pu(a.slice(1),{inlineShortcuts:ye,noWrap:!0}),a=a[0]+"{"+se.match+"}",a+=bl(se.rest,y),ie=!0),ie||(se=a.match(/^(sqrt|\u221A)(.*)/),se&&(se=pu(se[2],{inlineShortcuts:ye,noWrap:!0}),a="\\sqrt{"+((E=se.match)!=null?E:"\\placeholder{}")+"}",a+=bl(se.rest,y),ie=!0)),ie||(se=a.match(/^(\\cbrt|\u221B)(.*)/),se&&(se=pu(se[2],{inlineShortcuts:ye,noWrap:!0}),a="\\sqrt[3]{"+((ee=se.match)!=null?ee:"\\placeholder{}")+"}",a+=bl(se.rest,y),ie=!0)),ie||(se=a.match(/^abs(.*)/),se&&(se=pu(se[1],{inlineShortcuts:ye,noWrap:!0}),a="\\left|"+se.match+"\\right|",a+=bl(se.rest,y),ie=!0)),ie||(se=a.match(/^["”“](.*?)["”“](.*)/),se&&(a="\\text{"+se[1]+"}",a+=bl(se[2],y),ie=!0)),ie||(se=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),se&&(a=ad(se[1],ye),a+=bl(se[2],y),ie=!0)),!ie&&/^([fgh])[^a-zA-Z]/.test(a)&&(se=pu(a.slice(1),{inlineShortcuts:ye,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+se.match+"\\right)":a[0]+se.match,a+=bl(se.rest,y),ie=!0),ie||(se=a.match(/^([a-zA-Z]+)(.*)/),se&&(a=ad(se[1],ye),a+=bl(se[2],y),ie=!0)),!ie)if(se=pu(a,{inlineShortcuts:ye,noWrap:!0}),se.match&&se.rest[0]==="/"){const Ee=pu(se.rest.slice(1),{inlineShortcuts:ye,noWrap:!0});Ee.match&&(a="\\frac{"+se.match+"}{"+Ee.match+"}"+bl(Ee.rest,y)),ie=!0}else se.match&&(a=a.startsWith("(")?"\\left("+se.match+"\\right)"+bl(se.rest,y):se.match+bl(se.rest,y),ie=!0);return ie||(se=a.match(/^(\s+)(.*)$/),se&&(a=" "+bl(se[2],y),ie=!0)),a}function pu(a,y){let b="";a=a.trim();let E=a,ee=a.charAt(0),ie={"(":")","{":"}","[":"]"}[ee];if(ie){let se=1,ye=1;for(;ye<a.length&&se>0;)a[ye]===ee&&se++,a[ye]===ie&&se--,ye++;se===0?(y.noWrap&&ee==="("?b=bl(a.substring(1,ye-1),y):(ee==="{"&&ie==="}"&&(ee="\\{",ie="\\}"),b="\\left"+ee+bl(a.substring(1,ye-1),y)+"\\right"+ie),E=a.slice(Math.max(0,ye))):(b=a.substring(1,ye),E="")}else{let se=a.match(/^([a-zA-Z]+)/);if(se){let ye=Nc(null,a,y.inlineShortcuts);if(ye)return ye=ye.replace("_{#?}",""),ye=ye.replace("^{#?}",""),{match:ye,rest:a.slice(ye.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 ad(a,y){let b=Nc(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var od=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Mu(a){const y=a.trim();for(const b of od)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 Td(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=Mu(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 gc="$$",Oc="$$",sd=(a,y,b)=>(od.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${gc} ${y} ${Oc}`),y),Rc=class ch{constructor(y){ch._modes[y]=this}static onPaste(y,b,E){var ee;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 ie=new ClipboardEvent("paste",{clipboardData:E,cancelable:!0});return(ee=b.host)!=null&&ee.dispatchEvent(ie)?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,ee=E.selectionIsCollapsed?[0,E.lastOffset]:Gs(E.selection),ie=E.getValue(ee,b);navigator.clipboard.writeText(ie).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 ee=y.model,ie=ee.selectionIsCollapsed?[0,ee.lastOffset]:Gs(ee.selection);let se=ee.getAtoms(ie);if(se.every(ye=>ye.mode==="text"||!ye.mode))b.clipboardData.setData("text/plain",se.filter(ye=>ye instanceof uu).map(ye=>ye.value).join(""));else if(se.every(ye=>ye.mode==="latex"))b.clipboardData.setData("text/plain",ee.getAtoms(ie,{includeChildren:!0}).map(ye=>{var Ee;return(Ee=ye.value)!=null?Ee:""}).join(""));else{let ye;se.length===1&&se[0].verbatimLatex!==void 0?ye=se[0].verbatimLatex:ye=ee.getValue(ie,"latex-expanded"),b.clipboardData.setData("application/x-latex",ye);try{b.clipboardData.setData("text/plain",y.options.onExport(y,ye,ie))}catch(Ee){}if(se.length===1){const Ee=se[0];(Ee.type==="root"||Ee.type==="group")&&(se=Ee.body.filter(Pe=>Pe.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(se.map(Ee=>Ee.toJson())))}catch(Ee){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const Ee=window.MathfieldElement.computeEngine;if(Ee)try{const Pe=Ee.jsonSerializationOptions;Ee.jsonSerializationOptions={metadata:["latex"]};const He=Ee.parse(ee.getValue(ie,"latex-unstyled"));Ee.jsonSerializationOptions=Pe;const ct=JSON.stringify(He.json);ct&&b.clipboardData.setData("application/json",ct)}catch(Pe){}}}b.preventDefault()}static insert(y,b,E={}){var ee;const ie=E.mode==="auto"?y.mode:(ee=E.mode)!=null?ee:y.mode;return ch._modes[ie].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};Rc._modes={};var Ga=Rc,Pd=[{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","^"]}],_c={"\\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 Ql(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function au(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 mu(a){const y=au(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function vc(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 zc(a,y,b){if(!y)return null;const E=a.field.getBoundingClientRect(),ee=y.right-y.left,ie=y.bottom-y.top,se=Math.ceil(y.left-E.left+a.field.scrollLeft*b),ye=Math.ceil(y.top-E.top);return{left:se,right:se+ee,top:ye,bottom:ye+ie}}function yc(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 ee of a.children)if(ee.nodeType===1&&"atomId"in ee.dataset&&!ee.classList.contains("pstrut")){const ie=yc(ee);E.left=Math.min(E.left,ie.left),E.right=Math.max(E.right,ie.right),E.top=Math.min(E.top,ie.top),E.bottom=Math.max(E.bottom,ie.bottom)}return E}function _u(a,y){var b,E;if(!y.id)return null;let ee=(E=(b=a.atomBoundsCache)==null?void 0:b.get(y.id))!=null?E:null;if(ee!==null)return ee;const ie=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ee=ie?yc(ie):null,a.atomBoundsCache&&(ee?a.atomBoundsCache.set(y.id,ee):a.atomBoundsCache.delete(y.id)),ee!=null?ee:null}function Id(a,y,b){const E=new Map;for(const ee of a.model.getAtoms(y,{includeChildren:!0})){if(b!=null&&b.excludeAtomsWithBackground&&ee.style.backgroundColor)continue;const ie=a.field,se=ie.offsetWidth;let Ee=Math.floor(ie.getBoundingClientRect().width)/se;Ee=isNaN(Ee)?1:Ee;const Pe=zc(a,_u(a,ee),Ee);if(Pe){const He=vc(ee);if(E.has(He)){const ct=E.get(He);E.set(He,{left:Math.min(ct.left,Pe.left),right:Math.max(ct.right,Pe.right),top:Math.min(ct.top,Pe.top),bottom:Math.max(ct.bottom,Pe.bottom)})}else E.set(He,Pe)}}return[...E.values()]}function Ro(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...Id(a,E,y)),[])}function as(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function Il(a){let y=0,b=0;const E=a.offsetWidth,ee=a.offsetHeight;for(;a instanceof HTMLElement;)y+=a.offsetTop,b+=a.offsetLeft,a=a.offsetParent;return new DOMRect(b,y,E,ee)}var gu=`@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;
}
`,_o=`.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);
}
`,ld=`#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);
}
`,ud=`/* 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;
}
`,Au=`/* 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);*/
}
`,cd=`.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));
}
`,Yu=`: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;
}
`,gs;function bc(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=_o;break;case"mathfield":y=gu;break;case"environment-popover":y=ld;break;case"suggestion-popover":y=ud;break;case"keystroke-caption":y=Au;break;case"virtual-keyboard":y=cd;break;case"ui":y=Yu;break;case"menu":y=dh;break;default:debugger}return y}function Kc(a){return gs||(gs={}),gs[a]||(gs[a]=new CSSStyleSheet,gs[a].replaceSync(bc(a))),gs[a]}var zu;function cu(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(bc(a))),window.document.head.appendChild(b);return}if(zu||(zu={}),((y=zu[a])!=null?y:0)!==0)zu[a]+=1;else{const b=Kc(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],zu[a]=1}}function x(a){if("adoptedStyleSheets"in document&&zu!=null&&zu[a]&&(zu[a]-=1,zu[a]<=0)){const y=gs[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class kp extends Wr{constructor(y){var b;super(ge(we({},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 ge(we({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new ga({parent:y,mathstyle:"cramp"},this.style),ee=(b=Wr.createBox(E,this.body))!=null?b:new ni("\u25A2",{style:this.style});let ie=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(ie=ee.skew);let se=Math.min(ee.height,Ca),ye;if(this.svgAccent)ye=yl(this.svgAccent),se=E.metrics.bigOpSpacing1-se;else if(this.accent){const Pe=new ni(this.accent,{fontFamily:"Main-Regular"});Pe.italic=0;const He=this.accent===8407?" ML__accent-vec":"";ye=new ni(new ni(Pe),{classes:"ML__accent-body"+He})}ye=new $a({shift:0,children:[{box:new ni(ee)},-se,{box:ye,marginLeft:ee.left+2*ie,classes:["ML__center"]}]});const Ee=new ni(ye,{type:"lift"});return this.caret&&(Ee.caret=this.caret),this.bind(E,Ee.wrap(E)),this.attachSupsub(E,{base:Ee})}},re={"(":")","{":"}","[":"]","|":"|","\\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"},te=Object.fromEntries(Object.entries(re).map(([a,y])=>[y,a]));function ae(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 pe(a,y,b,E){var ee;const se=new ni(ae(a),{fontFamily:"Main-Regular",isSelected:E.isSelected,classes:"ML__small-delim "+((ee=E.classes)!=null?ee:"")}).wrap(y);return b&&se.setTop((1-y.scalingFactor)*ji),se}function Le(a,y,b,E,ee){var ie,se;const ye=new ga({parent:E,mathstyle:"textstyle"},ee==null?void 0:ee.style),Ee=new ni(ae(a),{fontFamily:`Size${y}-Regular`,isSelected:ee.isSelected,classes:((ie=ee.classes)!=null?ie:"")+` ML__delim-size${y}`,type:(se=ee.type)!=null?se:"ignore"}).wrap(ye);return b&&Ee.setTop((1-ye.scalingFactor)*ji),Ee}function We(a,y,b,E,ee){var ie;let se,ye,Ee,Pe;se=Ee=Pe=ae(a),ye=null;let He="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?Ee=se=Pe=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?Ee=se=Pe=8741:a==="\\uparrow"?Ee=Pe=9168:a==="\\Uparrow"?Ee=Pe=8214:a==="\\downarrow"?se=Ee=9168:a==="\\Downarrow"?se=Ee=8214:a==="\\updownarrow"?(se=8593,Ee=9168,Pe=8595):a==="\\Updownarrow"?(se=8657,Ee=8214,Pe=8659):a==="["||a==="\\lbrack"?(se=9121,Ee=9122,Pe=9123,He="Size4-Regular"):a==="]"||a==="\\rbrack"?(se=9124,Ee=9125,Pe=9126,He="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(Ee=se=9122,Pe=9123,He="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(se=9121,Ee=Pe=9122,He="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(Ee=se=9125,Pe=9126,He="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(se=9124,Ee=Pe=9125,He="Size4-Regular"):a==="("||a==="\\lparen"?(se=9115,Ee=9116,Pe=9117,He="Size4-Regular"):a===")"||a==="\\rparen"?(se=9118,Ee=9119,Pe=9120,He="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(se=9127,ye=9128,Pe=9129,Ee=9130,He="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(se=9131,ye=9132,Pe=9133,Ee=9130,He="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(se=9127,Pe=9129,Ee=9130,He="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(se=9131,Pe=9133,Ee=9130,He="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(se=9127,Pe=9133,Ee=9130,He="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(se=9131,Pe=9129,Ee=9130,He="Size4-Regular"):a==="\\surd"?(se=57345,Pe=9143,Ee=57344,He="Size4-Regular"):a==="\\ulcorner"?(se=9484,Ee=Pe=32):a==="\\urcorner"?(se=9488,Ee=Pe=32):a==="\\llcorner"?(Pe=9492,Ee=se=32):a==="\\lrcorner"&&(se=9496,Ee=se=32);const ct=Ci(se,He),_t=ct.height+ct.depth,fn=Ci(Ee,He),xn=fn.height+fn.depth,Or=Ci(Pe,He),bi=Or.height+Or.depth;let Pr=0,ti=1;if(ye!==null){const Fl=Ci(ye,He);Pr=Fl.height+Fl.depth,ti=2}const Ei=_t+bi+Pr,li=Math.max(0,Math.ceil((y-Ei)/(ti*xn))),sa=Ei+li*ti*xn;let Fa=ji;b&&(Fa=Fa*E.scalingFactor);const ya=sa/2-Fa,zo=.008,ps=[];ps.push({box:new ni(Pe,{fontFamily:He})}),ps.push(-zo);const Li=new ni(Ee,{fontFamily:He});if(ye===null)for(let Fl=0;Fl<li;Fl++)ps.push({box:Li});else{for(let Fl=0;Fl<li;Fl++)ps.push({box:Li});ps.push(-zo),ps.push({box:new ni(ye,{fontFamily:He})}),ps.push(-zo);for(let Fl=0;Fl<li;Fl++)ps.push({box:Li})}ps.push(-zo),ps.push({box:new ni(se,{fontFamily:He})});let bu="";He==="Size1-Regular"?bu=" delim-size1":He==="Size4-Regular"&&(bu=" delim-size4");const nc=new $a({bottom:ya,children:ps},{classes:bu});return new ni(nc,ge(we({},ee!=null?ee:{}),{classes:((ie=ee==null?void 0:ee.classes)!=null?ie:"")+" ML__delim-mult"}))}var Ue=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),st=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),cn=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),En=[0,1.2,1.8,2.4,3];function xr(a,y,b,E){return a===void 0||a==="."?oa(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),Ue.has(a)||cn.has(a)?Le(a,y,!1,b,E):st.has(a)?We(a,En[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var fr=[{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}],Qr=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],ci=[{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 ki(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function Wi(a,y,b,E){const ee={"-4":0,"-3":1,0:2}[E.mathstyle.sizeDelta];for(let ie=ee;ie<b.length&&b[ie].type!=="stack";ie++){const se=Ci(a,ki(b[ie]));if(se.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let ye=se.height+se.depth;if(b[ie].type==="small"&&(b[ie].mathstyle==="scriptscriptstyle"?ye*=Math.max(Ki[Math.max(1,E.size-2)],E.minFontScale):b[ie].mathstyle==="scriptstyle"&&(ye*=Math.max(Ki[Math.max(1,E.size-1)],E.minFontScale))),ye>y)return b[ie]}return b[b.length-1]}function ra(a,y,b,E,ee,ie){if(!y||y.length===0||y===".")return oa(ee);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let se;cn.has(y)?se=fr:Ue.has(y)?se=ci:se=Qr;const ye=Wi(ae(y),b,se,ee),Ee=new ga({parent:ee,mathstyle:ye.mathstyle},ie==null?void 0:ie.style);return ye.type==="small"?pe(y,Ee,E,ge(we({},ie),{type:a})):ye.type==="large"?Le(y,ye.size,E,Ee,ge(we({},ie),{type:a})):(console.assert(ye.type==="stack"),We(y,b,E,Ee,ge(we({},ie),{type:a})))}function Ni(a,y,b,E,ee,ie){if(y===".")return oa(ee,ie==null?void 0:ie.classes);const se=ji*ee.scalingFactor,ye=901,Ee=5/na,Pe=Math.max(b-se,E+se),He=Math.max(Pe/500*ye,2*Pe-Ee);return ra(a,y,He,!0,ee,ie)}function oa(a,y){const b=new ni(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new ga({parent:a,mathstyle:"textstyle"}))}var Ia=class Dp extends Wr{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 Dp(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{}"}},Oa=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],Mo=["cases","dcases","rcases"],vs=["align","align*","aligned","gather","gathered","split"],xl=["array","subequations","eqnarray"];function Rs(a){return xl.concat(vs).concat(Mo).concat(Oa).includes(a)}function jl(a){return Oa.includes(a)}function Ul(a){return Mo.includes(a)}function ll(a){return vs.includes(a)}function Vl(a,y,b){let E=0;for(const Pe of b)"align"in Pe&&(E+=1);let ee=0;const ie=[];for(const Pe of y){let He=0;for(ee=Math.max(ee,Math.min(Pe.length,E));He<Pe.length;){const ct=[],_t=Math.min(Pe.length,He+E);for(;He<_t;){const fn=Pe[He];fn.length===0?ct.push([new Wr({type:"first",mode:a.mode})]):fn[0].type!=="first"?ct.push([new Wr({type:"first",mode:a.mode}),...fn]):(console.assert(!fn.slice(1).some(xn=>xn.type==="first")),ct.push(fn)),He+=1}ie.push(ct)}}ie.length>0&&ie[ie.length-1].length===1&&ie[ie.length-1][0].length===1&&ie[ie.length-1][0][0].type==="first"&&ie.pop();const se=[];for(const Pe of ie){if(Pe.length!==ee)for(let He=Pe.length;He<ee;He++)Pe.push([new Wr({type:"first",mode:a.mode}),new Ia]);se.push(Pe)}let ye=0,Ee=0;for(const Pe of se){Ee=0;for(const He of Pe){for(const ct of He)ct.parent=a,ct.parentBranch=[ye,Ee];Ee+=1}ye+=1}return a.isDirty=!0,se}var to=class Bp extends Wr{constructor(y,b,E,ee={}){var ie;super({type:"array"}),this.environmentName=y,this.rowGaps=E,ee.mathstyleName&&(this.mathstyleName=ee.mathstyleName),ee.columns&&(ee.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=ee.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=Vl(this,b,this.colFormat),ee.leftDelim&&(this.leftDelim=ee.leftDelim),ee.rightDelim&&(this.rightDelim=ee.rightDelim),ee.arraycolsep!==void 0&&(this.arraycolsep=ee.arraycolsep),this.colSeparationType=ee.colSeparationType,ee.arraystretch!==void 0&&(this.arraystretch=ee.arraystretch),this.minColumns=(ie=ee.minColumns)!=null?ie:1}static fromJson(y){return new Bp(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=ge(we({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(b=>b.map(E=>E.map(ee=>ee.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(Vs(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return Vs(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(jo(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 ee of E)y.push(...ee.children),y.push(ee);return[...y,...super.children]}render(y){var b,E,ee,ie,se,ye;const Ee=new ga({parent:y,mathstyle:this.mathstyleName},this.style),Pe=Ee.getRegisterAsEm("arrayrulewidth"),He=Ee.getRegisterAsEm("arraycolsep"),ct=Ee.getRegisterAsEm("doublerulesep"),_t=(E=(b=this.arraystretch)!=null?b:Ee.getRegisterAsNumber("arraystretch"))!=null?E:1;let fn=typeof this.arraycolsep=="number"?this.arraycolsep:He;this.colSeparationType==="small"&&(fn=.2778*(new ga({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const xn=_t*ea,Or=.7*xn,bi=.3*xn;let Pr=0;const ti=[];let Ei=0;const li=this.array.length;for(let bs=0;bs<li;++bs){const nl=this.array[bs];Ei=Math.max(Ei,nl.length);const Tl=new ga({parent:Ee,mathstyle:this.mathstyleName},this.style);let rc=Or/Tl.scalingFactor,ic=bi/Tl.scalingFactor;const ac={cells:[],height:0,depth:0,pos:0};for(const Wu of nl){const e0=(ee=Wr.createBox(Tl,Wu,{type:"ignore"}))!=null?ee:new ni(null,{type:"ignore"});ic=Math.max(ic,e0.depth),rc=Math.max(rc,e0.height),ac.cells.push(e0)}let oc=(ie=ls(this.rowGaps[bs]))!=null?ie:0;oc>0&&(oc+=bi,ic=Math.max(ic,oc),oc=0),bs<li-1&&!jl(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(ic+=Ee.getRegisterAsEm("jot")),ac.height=rc,ac.depth=ic,Pr+=rc,ac.pos=Pr,Pr+=ic+oc,ti.push(ac)}const sa=Pr/2+ji,Fa=[];for(let bs=0;bs<Ei;bs++){const nl=[];for(const Tl of ti){const rc=Tl.cells[bs];rc.depth=Tl.depth,rc.height=Tl.height,nl.push({box:rc,shift:Tl.pos-sa})}nl.length>0&&Fa.push(new $a({individualShift:nl}))}const ya=[];let zo=!1,ps=!1,Li=0,bu=!this.leftDelim;const{colFormat:nc}=this;for(const bs of nc){if("align"in bs&&Li>=Fa.length)break;if("align"in bs)zo?ya.push(_s(2*fn)):(ps||bu)&&ya.push(_s(fn)),ya.push(new ni(Fa[Li],{classes:"col-align-"+bs.align})),Li++,zo=!0,ps=!1,bu=!1;else if("gap"in bs){if(typeof bs.gap=="number")ya.push(_s(bs.gap));else{const nl=Xs(y,ti,sa,bs.gap);nl&&ya.push(nl)}zo=!1,ps=!1,bu=!1}else if("separator"in bs){const nl=new ni(null,{classes:"vertical-separator"});nl.height=Pr,nl.setStyle("height",Pr,"em"),nl.setStyle("border-right",`${Pe}em ${bs.separator} currentColor`),nl.setStyle("vertical-align",-(Pr-sa),"em");let Tl=0;ps?Tl=ct-Pe:zo&&(Tl=fn-Pe),nl.left=Tl,ya.push(nl),zo=!1,ps=!0,bu=!1}}zo&&!this.rightDelim&&ya.push(_s(fn));const Lu=new ni(ya,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Lu.caret=this.caret),this.bind(y,Lu);const Fl=Lu.height,xu=Lu.depth,su=this.bind(y,new ni([this.bind(y,Ni("open",(se=this.leftDelim)!=null?se:".",Fl,xu,Ee,{isSelected:this.isSelected})),Lu,this.bind(y,Ni("close",(ye=this.rightDelim)!=null?ye:".",Fl,xu,Ee,{isSelected:this.isSelected}))],{type:"ord"}));return su?(su.setStyle("display","inline-block"),this.caret&&(su.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:su}))):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 ee of this.colFormat)"align"in ee&&typeof ee.align=="string"?E.push(ee.align):"separator"in ee&&ee.separator==="solid"?E.push("|"):"separator"in ee&&ee.separator==="dashed"&&E.push(":");E.push("}")}for(let ee=0;ee<this.array.length;ee++){for(let ie=0;ie<this.array[ee].length;ie++)ie>0&&E.push(" & "),E.push(Wr.serialize(this.array[ee][ie],y));if(ee<this.array.length-1){const ie=this.rowGaps[ee];ie!=null&&ie.dimension?E.push(`\\\\[${ie.dimension} ${(b=ie.unit)!=null?b:"pt"}] `):E.push("\\\\ ")}}return this.environmentName==="lines"?E.push("}"):E.push(`\\end{${this.environmentName}}`),Ha(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 ie of this.array[y][b])ie.parent=void 0,ie.parentBranch=void 0;let ee=E;(E.length===0||E[0].type!=="first")&&(ee=[new Wr({type:"first",mode:this.mode}),...E]),this.array[y][b]=ee;for(const ie of ee)ie.parent=this,ie.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(Ys(this));this.array.splice(y,0,b);for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const ie=this.array[E][ee];if(ie)for(const se of ie)se.parentBranch=[E,ee]}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(Ys(this));this.array.splice(y+1,0,b);for(let E=y+1;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const ie=this.array[E][ee];if(ie)for(const se of ie)se.parentBranch=[E,ee]}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 ee of E)if(ee)for(const ie of ee)ie.parent=void 0,ie.parentBranch=void 0;for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const ie=this.array[E][ee];if(ie)for(const se of ie)se.parentBranch=[E,ee]}this.isDirty=!0}addColumnBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y,0,Ys(this));for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const ie of ee)ie.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,Ys(this));for(let b=0;b<this.rowCount;b++)for(let E=y+1;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const ie of ee)ie.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 ee of E)if(ee)for(const ie of ee)ie.parent=void 0,ie.parentBranch=void 0}for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const ie of ee)ie.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(ee=>ee.type!=="first"));return y}};function Ys(a){const y=new Wr({type:"first",mode:a.mode});y.parent=a;const b=new Ia;return b.parent=a,[y,b]}function _s(a){const y=new ni(null,{classes:"arraycolsep"});return y.width=a,y}function Xs(a,y,b,E){if(!E)return null;const ee=[];for(const ie of y){const se=Wr.createBox(a,E,{type:"ignore"});se&&(se.depth=ie.depth,se.height=ie.height,ee.push({box:se,shift:ie.pos-b}))}return new $a({individualShift:ee}).wrap(a)}var el=class Lp extends Wr{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 Lp(y)}toJson(){return ge(we({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,E,ee,ie;const se=Wr.createBox(y,this.body,{type:"lift"});if(!se)return null;const ye=y.toEm((b=this.offset)!=null?b:{dimension:0});se.depth+=ye,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 Ee=new ga({parent:y},this.style),Pe=Ee.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),He=new ni(null,{classes:"ML__box"});He.height=se.height+Pe,He.depth=se.depth+Pe,He.setStyle("box-sizing","border-box"),He.setStyle("position","absolute"),He.setStyle("top",-Pe+.3,"em"),He.setStyle("left",0),He.setStyle("height",He.height+He.depth,"em"),He.setStyle("width","100%"),this.backgroundcolor&&He.setStyle("background-color",(ee=Ee.toColor(this.backgroundcolor))!=null?ee:"transparent"),this.framecolor&&He.setStyle("border",`${Ee.getRegisterAsEm("fboxrule",2)}em solid ${(ie=Ee.toColor(this.framecolor))!=null?ie:"black"}`),this.border&&He.setStyle("border",this.border);const ct=new ni([He,se],{type:"lift"});return ct.setStyle("display","inline-block"),ct.setStyle("position","relative"),ct.setStyle("line-height",0),ct.height=se.height+Pe+(ye>0?ye:0),ct.depth=se.depth+Pe+(ye<0?-ye:0),ct.setStyle("padding-left",Pe,"em"),ct.setStyle("padding-right",Pe,"em"),ct.setStyle("height",Math.floor(100*(se.height+se.depth+2*Pe+Math.abs(ye)))/100,"em"),ct.setStyle("margin-top",-Pe,"em"),ct.setStyle("top",Math.floor(100*(se.depth-se.height+2*Pe-ye))/100,"em"),ct.setStyle("vertical-align",Math.floor(100*(se.depth+2*Pe))/100,"em"),this.caret&&(ct.caret=this.caret),this.attachSupsub(y,{base:ct})}_serialize(y){return y.skipStyles?Ha([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},xc=class Fp extends Wr{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 Fp(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new ni(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},Jl=class Tp extends Wr{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Tp(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},Dl=class Pp extends Wr{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 Pp(y.body,y.mode,y.style)}render(y){const b=Wr.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=Pt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},Jo=class Ip extends Wr{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 Ip((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 ee=this.matchingRightDelim();return this.variant==="left...right"?Ha(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ee]):this.variant==="mleft...mright"?Ha(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ee]):Ha([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(y),ee])}matchingRightDelim(){var y,b;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const E=(y=this.leftDelim)!=null?y:".";return(b=re[E])!=null?b:E}render(y){var b,E;const ee=new ga({parent:y},this.style);console.assert(this.body!==void 0);const ie=new ga({parent:y,mathstyle:"textstyle"},this.style),se=(b=Wr.createBox(ee,this.body,{type:"inner"}))!=null?b:new ni(null,{type:"inner"}),ye=se.height/ie.scalingFactor,Ee=se.depth/ie.scalingFactor,Pe=[];if(this.leftDelim&&Pe.push(this.bind(ie,Ni("open",this.leftDelim,ye,Ee,ie,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),se&&(hl(se.children,this,ee,ye,Ee),Pe.push(se)),this.rightDelim){let fn=this.containsCaret?" ML__contains-caret":"",xn=this.rightDelim;xn==="?"&&(ee.smartFence?(xn=this.matchingRightDelim(),fn+=" ML__smart-fence__close"):xn="."),Pe.push(this.bind(ie,Ni("close",xn,ye,Ee,ie,{isSelected:this.isSelected,classes:fn+" ML__close",mode:this.mode,style:this.style})))}let He=this.variant==="mleft...mright";const ct=this.leftSibling;ct&&(!He&&ct.isFunction&&(He=!0),!He&&ct.type==="subsup"&&((E=ct.leftSibling)!=null&&E.isFunction)&&(He=!0));const _t=new ni(Pe,{type:He?"close":"inner",classes:"left-right"});return _t.setStyle("margin-top",`${-se.depth}em`),_t.setStyle("height",`${se.height+se.depth}em`),this.caret&&(_t.caret=this.caret),this.bind(ee,_t.wrap(ee))}};function hl(a,y,b,E,ee){if(a)for(let ie=0;ie<a.length;ie++){const se=a[ie];se.type==="middle"?(a[ie]=y.bind(b,Ni("inner",se.value,E,ee,b,{isSelected:y.isSelected})),a[ie].caret=se.caret,a[ie].isSelected=se.isSelected,a[ie].cssId=se.cssId,a[ie].htmlData=se.htmlData,a[ie].htmlStyle=se.htmlStyle,a[ie].attributes=se.attributes,a[ie].cssProperties=se.cssProperties):se.children&&hl(se.children,y,b,E,ee)}}var Nd=class Np extends Wr{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 Np(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=Wr.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},Ku=class Op extends Wr{constructor(){super({type:"macro-argument"})}static fromJson(y){return new Op}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},Xu=class Rp extends Wr{constructor(y,b,E=!1,ee,ie){var se;super({type:"prompt",mode:(se=ie==null?void 0:ie.mode)!=null?se:"math",style:ie==null?void 0:ie.style,command:"\\placeholder"}),this.body=ee,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 ga({parent:y}),E=b.getRegisterAsEm("fboxsep"),ee=E,ie=E,se=Wr.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 ye=new ni(se,{type:"ord"});ye.setStyle("display","inline-block"),ye.setStyle("height",se.height+se.depth,"em"),ye.setStyle("vertical-align",-ie,"em");let Ee="ML__prompt ";this.locked?Ee+=" ML__lockedPromptBox ":Ee+=" ML__editablePromptBox ",this.correctness==="correct"?Ee+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(Ee+=" ML__incorrectPromptBox "),this.containsCaret&&(Ee+=" ML__focusedPromptBox ");const Pe=new ni(null,{classes:Ee,attributes:{part:"prompt"}});Pe.height=ye.height+ie,Pe.depth=ye.depth+ie,Pe.width=ye.width+2*ee,Pe.setStyle("box-sizing","border-box"),Pe.setStyle("position","absolute"),Pe.setStyle("height",ye.height+ye.depth+2*ie,"em"),ee===0&&Pe.setStyle("width","100%"),ee!==0&&(Pe.setStyle("width",`calc(100% + ${2*ee}em)`),Pe.setStyle("top",E,"em"),Pe.setStyle("left",-ee,"em")),(!this.body||this.body.length===1)&&(Pe.width=3*ee,Pe.setStyle("width",`calc(100% + ${3*ee}em)`),Pe.setStyle("left",-1.5*ee,"em"));let He="";this.correctness==="incorrect"&&(He+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),He&&(Pe.svgOverlay=He);const ct=new ni([Pe,ye],{classes:"ML__prompt-atom"});return ct.setStyle("position","relative"),ct.setStyle("display","inline-block"),ct.setStyle("line-height",0),ct.height=ye.height+ie+.2,ct.depth=ye.depth+ie,ct.left=ee,ct.right=ee,ct.setStyle("height",ye.height+ie,"em"),ct.setStyle("top",ye.depth-ye.height,"em"),ct.setStyle("vertical-align",ye.depth+ie,"em"),ct.setStyle("margin-left",.5,"em"),ct.setStyle("margin-right",.5,"em"),this.caret&&(ct.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:ct}))}_serialize(y){var b;const E=(b=this.bodyToLatex(y))!=null?b:"";if(y.skipPlaceholders)return E;let ee="\\placeholder";return this.placeholderId&&(ee+=`[${this.placeholderId}]`),this.correctness==="correct"?ee+="[correct]":this.correctness==="incorrect"&&(ee+="[incorrect]"),this.locked&&(ee+="[locked]"),Ii(ee,E)}},ku=class _p extends Wr{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 Is)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new ga({parent:y,isPhantom:!0}),ee=this.leftSibling,ie=(b=ee.render(E))!=null?b:new ni(null),se=new ni(null);return se.height=ie.height,se.depth=ie.depth,this.attachSupsub(y,{base:se,isCharacterBox:ee.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function ul(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var Sc=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var E,ee,ie,se;b!=null||(b={}),this.tokens=a,this.context=y instanceof ga&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new ga({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:(ee=b.style)!=null?ee:{},parseMode:(ie=b.parseMode)!=null?ie:"math",mathstyle:(se=b.mathstyle)!=null?se:"displaystyle",tabular:!1}}beginContext(a){var y,b,E;const ee=this.parsingContext,ie={parent:ee,mathlist:[],style:we({},ee.style),parseMode:(y=a==null?void 0:a.mode)!=null?y:ee.parseMode,mathstyle:(b=a==null?void 0:a.mathstyle)!=null?b:ee.mathstyle,tabular:(E=a==null?void 0:a.tabular)!=null?E:!1};this.parsingContext=ie}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(we({before:da(this.tokens.slice(this.index,this.index+10)),after:da(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 we({},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 ku({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=Pt(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?Bl(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new Ia({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 ie=this.get();ul(ie)?(E+=ie,b=this.end()||E.length>=a.length):b=!0}const ee=a.toUpperCase()===E.toUpperCase();return ee||(this.index=y),ee}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(ul(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,ee=this.peek();for(;ee==="<space>"||ee==="+"||ee==="-";)this.get(),ee==="-"&&(E=!E),ee=this.peek();a=!!a;let ie=10,se=/\d/;if(this.match("'"))ie=8,se=/[0-7]/,a=!0;else if(this.match('"'))ie=16,se=/[\dA-F]/,a=!0;else if(this.match("x"))ie=16,se=/[\dA-Fa-f]/,a=!0;else if(this.match("`"))return ee=this.get(),ee?ee.length===2&&ee.startsWith("\\")?{number:(E?-1:1)*((y=ee.codePointAt(1))!=null?y:0),base:"alpha"}:{number:(E?-1:1)*((b=ee.codePointAt(0))!=null?b:0),base:"alpha"}:null;let ye="";for(;this.hasPattern(se);)ye+=this.get();if(!a&&(this.match(".")||this.match(",")))for(ye+=".";this.hasPattern(se);)ye+=this.get();const Ee=a?Number.parseInt(ye,ie):Number.parseFloat(ye);return Number.isNaN(Ee)?null:{number:E?-Ee:Ee,base:ie===16?"hexadecimal":ie===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 ie=this.peek();if(ie==="-")E=!E;else if(ie!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const ie=this.get();return ie.startsWith("\\")?b?{register:ie,global:!0,factor:(E?-1:1)*b.number}:E?{register:ie,global:!0,factor:-1}:{register:ie,global:!0}:(this.index=y,null)}let ee=this.get();return ee!=null&&ee.startsWith("\\")?(ee=ee.substring(1),this.context.registers[ee]?!E||b!==null?{register:ee,factor:(E?-1:1)*((a=b==null?void 0:b.number)!=null?a:1)}:{register:ee}:(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()||!ul(this.peek()))return null;const ee=this.scanString();return ee.length>0?{string:ee}: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=gt(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const ye of y.params)if(ye.isOptional)b.push(this.scanOptionalArgument(ye.type));else{const Ee=this.scanArgument(ye.type);Ee||this.onError({code:"missing-argument",arg:a}),b.push(Ee)}this.beginContext({tabular:y.tabular});const E=[],ee=[];let ie=[],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())ie.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){ie.push(this.mathlist),this.mathlist=[];let ye=null;this.skipWhitespace(),this.match("[")&&(ye=this.scanDimen(),this.skipWhitespace(),this.match("]")),ee.push(ye!=null?ye:{dimension:0}),E.push(ie),ie=[]}else this.mathlist.push(...this.scan(ye=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(ye)));while(!se);return ie.push(this.mathlist),ie.length>0&&E.push(ie),this.endContext(),y.createAtom(a,E,ee,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=[],ee=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=Pt(y,"math"),b&&(E=this.scanArguments(b)[1]),ee=this.mathlist,this.mathlist=[]):this.parseExpression();let ie;return y?(console.assert(!!b),E.unshift(this.mathlist),ee&&E.unshift(ee),ie=[b.createAtom({command:y,args:E,style:this.style,mode:this.parseMode})]):ie=this.mathlist,this.endContext(),ie}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 Dl(y,this.parseMode,this.style);return b.verbatimLatex=da(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 Jo("",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(!ul(a)&&!a.startsWith("\\"))return null;this.next();const y=Pt(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 Jl("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Jl("\\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 Jl(y==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(y);)this.parseExpression();const E=this.mathlist;this.endContext();const ee=(a=this.scanDelim())!=null?a:".";return new Jo(y==="\\right"?"left...right":"mleft...mright",E,{leftDelim:b,rightDelim:ee,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 Wr({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new Wr({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(Rt(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 ee=a.params[E];ee.type==="rest"?b.push(this.scan(ie=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(ie))):ee.isOptional?b.push(this.scanOptionalArgument(ee.type)):ee.type.endsWith("*")?y=ee.type.slice(0,-1):b.push(this.scanArgument(ee.type)),E+=1}return[y,b]}scanSymbolOrLiteral(){const a=this.peek();if(!a)return null;this.next();let y;if(ul(a)){const b=Vi.createAtom(this.parseMode,a,we({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=Pt(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new Jl(a)];if(b.definitionType==="symbol"){const E=we({},this.style);b.variant&&(E.variant=b.variant),y=new Wr({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 Jl(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 ee=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ee}if(a==="text"){a!==b&&this.beginContext({mode:"text"});const ee=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ee}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 ee=this.mathlist;return this.endContext(),{group:ee}}if(a==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}let E=null;if(a==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}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 ee of E){const ie=ee.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(ie)b.padding={dimension:parseInt(ie[1]),unit:ie[2]};else{const se=ee.match(/^\s*border\s*:\s*(.*)/);se?b.border=se[1]:b.backgroundcolor={string:ee}}}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 ye=this.scanOptionalArgument("string"),Ee=this.scanOptionalArgument("math"),Pe=Wr.serialize(Ee,{defaultMode:"math"});let He=[],ct;!ct&&Pe==="correct"?ct="correct":!ct&&Pe==="incorrect"?ct="incorrect":Pe!==""&&(He=Ee);const _t=this.scanOptionalArgument("string")==="locked",fn=this.scanArgument("auto");let xn;return fn&&Array.isArray(fn)&&fn.length>0?xn=fn:fn&&typeof fn=="object"&&"group"in fn?xn=fn.group:xn=He,ye?[new Xu(ye,ct,_t,xn!=null?xn:He,{mode:this.parseMode,style:this.style})]:[new Ia({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const ye=this.index,Ee=this.scanLiteralGroup()||this.next();if(!Ee)return null;if(this.context.registers[Ee.substring(1)]){const Pe=this.scanArgument("string");Pe!==null&&(this.context.registers[Ee.substring(1)]=Pe);const He=Ha([a,da(this.tokens.slice(ye,this.index))]);return[new Wr({type:"text",value:"",verbatimLatex:He})]}}let ee=this.scanMacro(a);if(ee)return[ee];const ie=Pt(a,this.parseMode);if(!ie)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(ye=>new Wr({type:"text",value:ye,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new Jl(a)]);const se=this.index;if(ie.definitionType==="symbol"){const ye=we({},this.style);ie.variant&&(ye.variant=ie.variant),ee=new Wr({type:ie.type,command:a,style:ye,value:String.fromCodePoint(ie.codepoint),mode:this.parseMode})}else{if(ie.ifMode&&!ie.ifMode.includes(this.parseMode))return[];const ye=this.parseMode;ie.applyMode&&(this.parseMode=ie.applyMode);let Ee,Pe=[];if(ie.parse?Pe=ie.parse(this):[Ee,Pe]=this.scanArguments(ie),this.parseMode=ye,ie.applyMode&&!ie.applyStyle&&!ie.createAtom)return Rt(Pe[0]);if(ie.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof ie.createAtom=="function")ee=ie.createAtom({command:a,args:Pe,style:this.style,mode:this.parseMode}),Ee&&(ee.body=Rt(this.scanArgument(Ee)));else if(typeof ie.applyStyle=="function"){const He=we(we({},this.style),ie.applyStyle(a,Pe,this.context)),ct=this.parseMode;if(ie.applyMode&&(this.parseMode=ie.applyMode),Ee){const _t=this.style;this.style=He;const fn=this.scanArgument(Ee);return this.style=_t,this.parseMode=ct,Rt(fn)}this.style=He}else ee=new Wr({type:"mord",command:(b=ie.command)!=null?b:a,style:we({},this.style),value:a,mode:(E=ie.applyMode)!=null?E:this.parseMode})}if(!ee)return null;if(ee instanceof Wr&&ee.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const ye=Ha([a,da(this.tokens.slice(se,this.index))]);ye&&(ee.verbatimLatex=ye)}if(ee.verbatimLatex===null&&(ee.verbatimLatex=void 0),ee.isFunction&&this.smartFence){const ye=this.scanSmartFence();if(ye)return[ee,ye]}return[ee]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(ul(a)){const y=Vi.createAtom(this.parseMode,a,we({},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 uu(" "," ",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,ee=b.args,ie={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let se=1;se<=ee;se++){let ye=this.scanLiteralGroup();if(!ye){const Ee=this.index;this.scanExpression(),ye=da(this.tokens.slice(Ee,this.index))}ie[se]=ye}return new Nd(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:da(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:Bl(b.def,{context:this.context,parseMode:this.parseMode,args:se=>ie[se],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var a,y,b,E;let ee=(E=(b=(y=(a=this.scanEnvironment())!=null?a:this.scanModeShift())!=null?y:this.scanModeSet())!=null?b:this.scanGroup())!=null?E:this.scanLeftRight();if(ee===null){if(this.parseSupSub()||this.parseLimits())return!0;ee=this.scanSymbolCommandOrLiteral()}return ee?(Array.isArray(ee)?this.mathlist.push(...ee):this.mathlist.push(ee),!0):!1}};function Bl(a,y){var b,E,ee,ie;const se=(b=y==null?void 0:y.args)!=null?b:void 0,ye=new Sc(Oo(a,se),y==null?void 0:y.context,{args:se,mathstyle:(E=y==null?void 0:y.mathstyle)!=null?E:"displaystyle",parseMode:(ee=y==null?void 0:y.parseMode)!=null?ee:"math",style:(ie=y==null?void 0:y.style)!=null?ie:{}}),Ee=[];for(;!ye.end();)Ee.push(...ye.scan(()=>!1));return Ee}function t0(a,y){var b;const E=new Sc(Oo(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 Wr{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=Ns.go(hi.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=Bl(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 ge(we({},super.toJson()),{arg:this.arg})}render(y){const b=Wr.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}};xt(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new n0(a.command,(y=a.args[0])!=null?y:"")}});var hi={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 ee,ie=10,se=[];;){ee!==a?(ie=10,ee=a):ie--;var ye=hi.stateMachines[y],Ee=ye.transitions[b]||ye.transitions["*"];e:for(var Pe=0;Pe<Ee.length;Pe++){var He=hi.patterns.match_(Ee[Pe].pattern,a);if(He){for(var ct=Ee[Pe].task,_t=0;_t<ct.action_.length;_t++){var fn;if(ye.actions[ct.action_[_t].type_])fn=ye.actions[ct.action_[_t].type_](E,He.match_,ct.action_[_t].option);else if(hi.actions[ct.action_[_t].type_])fn=hi.actions[ct.action_[_t].type_](E,He.match_,ct.action_[_t].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+ct.action_[_t].type_+")"];hi.concatArray(se,fn)}if(b=ct.nextState||b,a.length>0){if(ct.revisit||(a=He.remainder),!ct.toContinue)break e}else return se}}if(ie<=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=hi.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 hi.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return hi.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return hi.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return hi.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return hi.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return hi.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return hi.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return hi.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return hi.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return hi.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return hi.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return hi.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return hi.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 hi.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return hi.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return hi.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return hi.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 hi.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return hi.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return hi.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return hi.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return hi.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return hi.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return hi.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return hi.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=hi.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,ee,ie,se,ye,Ee,Pe){var He=function(Pr,ti){if(typeof ti=="string")return Pr.indexOf(ti)!==0?null:ti;var Ei=Pr.match(ti);return Ei?Ei[0]:null},ct=function(Pr,ti,Ei){for(var li=0;ti<Pr.length;){var sa=Pr.charAt(ti),Fa=He(Pr.substr(ti),Ei);if(Fa!==null&&li===0)return{endMatchBegin:ti,endMatchEnd:ti+Fa.length};if(sa==="{")li++;else if(sa==="}"){if(li===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];li--}ti++}return li>0,null},_t=He(a,y);if(_t===null||(a=a.substr(_t.length),_t=He(a,b),_t===null))return null;var fn=ct(a,_t.length,E||ee);if(fn===null)return null;var xn=a.substring(0,E?fn.endMatchEnd:fn.endMatchBegin);if(ie||se){var Or=this.findObserveGroups(a.substr(fn.endMatchEnd),ie,se,ye,Ee);if(Or===null)return null;var bi=[xn,Or.match_];return{match_:Pe?bi.join(""):bi,remainder:Or.remainder}}else return{match_:xn,remainder:a.substr(fn.endMatchEnd)}},match_:function(a,y){var b=hi.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return hi.patterns.patterns[a](y);var E=y.match(b);if(E){var ee;return E[2]?ee=[E[1],E[2]]:E[1]?ee=E[1]:ee=E[0],{match_:ee,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 hi.go(y,"text")},"{text}":function(a,y){var b=["{"];return hi.concatArray(b,hi.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return hi.go(y,"tex-math")},"tex-math tight":function(a,y){return hi.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 hi.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 hi.go(y,"9,9")}},createTransitions:function(a){var y,b,E,ee,ie={};for(y in a)for(b in a[y])for(E=b.split("|"),a[y][b].stateArray=E,ee=0;ee<E.length;ee++)ie[E[ee]]=[];for(y in a)for(b in a[y])for(E=a[y][b].stateArray||[],ee=0;ee<E.length;ee++){var se=a[y][b];if(se.action_){se.action_=[].concat(se.action_);for(var ye=0;ye<se.action_.length;ye++)typeof se.action_[ye]=="string"&&(se.action_[ye]={type_:se.action_[ye]})}else se.action_=[];for(var Ee=y.split("|"),Pe=0;Pe<Ee.length;Pe++)if(E[ee]==="*")for(var He in ie)ie[He].push({pattern:Ee[Pe],task:se});else ie[E[ee]].push({pattern:Ee[Pe],task:se})}return ie},stateMachines:{}};hi.stateMachines={ce:{transitions:hi.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 hi.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 hi.concatArray(b,this.output(a)),hi.concatArray(b,hi.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var E=hi.patterns.match_("orbital",a.o||""),ee=hi.patterns.match_("one lowercase greek letter $",a.o||""),ie=hi.patterns.match_("one lowercase latin letter $",a.o||""),se=hi.patterns.match_("$one lowercase latin letter$ $",a.o||""),ye=y==="-"&&(E&&E.remainder===""||ee||ie||se);ye&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!E&&ie&&(a.o="$"+a.o+"$");var Ee=[];return ye?(hi.concatArray(Ee,this.output(a)),Ee.push({type_:"hyphen"})):(E=hi.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(hi.concatArray(Ee,hi.actions["d="](a,y)),hi.concatArray(Ee,this.output(a))):(hi.concatArray(Ee,this.output(a)),hi.concatArray(Ee,hi.actions.bond(a,y,"-")))),Ee},"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:hi.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"&&hi.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:hi.go(a.a,"a"),b:hi.go(a.b,"bd"),p:hi.go(a.p,"pq"),o:hi.go(a.o,"o"),q:hi.go(a.q,"pq"),d:hi.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ee;a.rdt==="M"?ee=hi.go(a.rd,"tex-math"):a.rdt==="T"?ee=[{type_:"text",p1:a.rd||""}]:ee=hi.go(a.rd);var ie;a.rqt==="M"?ie=hi.go(a.rq,"tex-math"):a.rqt==="T"?ie=[{type_:"text",p1:a.rq||""}]:ie=hi.go(a.rq),E={type_:"arrow",r:a.r,rd:ee,rq:ie}}for(var se in a)se!=="parenthesisLevel"&&se!=="beginsWithBond"&&delete a[se];return E},"oxidation-output":function(a,y){var b=["{"];return hi.concatArray(b,hi.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:hi.go(y[0]),p2:hi.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:hi.go(y[0]),p2:hi.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:hi.go(y[0]),p2:hi.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:hi.go(y[0]),p2:hi.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:hi.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:hi.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:hi.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:hi.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:hi.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:hi.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:hi.go(y[1],"pq")}}}},bd:{transitions:hi.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:hi.go(y[1],"bd")}}}},oxidation:{transitions:hi.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:hi.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:hi.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:hi.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:hi.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]&&(hi.concatArray(b,hi.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?hi.concatArray(b,hi.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]),hi.concatArray(b,hi.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=hi.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var E=hi.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 ee={d:hi.go(a.d,"pu"),q:hi.go(a.q,"pu")};a.o==="//"?y={type_:"pu-frac",p1:ee.d,p2:ee.q}:(y=ee.d,ee.d.length>1||ee.q.length>1?y.push({type_:" / "}):y.push({type_:"/"}),hi.concatArray(y,ee.q))}else y=hi.go(a.d,"pu-2");for(var ie in a)delete a[ie];return y}}},"pu-2":{transitions:hi.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=hi.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=hi.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var E in a)delete a[E];return y}}},"pu-9,9":{transitions:hi.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 ee in a)delete a[ee];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 ee in a)delete a[ee];return y}}}};var Ns={go:function(a,y){if(!a)return"";for(var b="",E=!1,ee=0;ee<a.length;ee++){var ie=a[ee];typeof ie=="string"?b+=ie:(b+=Ns._go2(ie),ie.type_==="1st-level escape"&&(E=!0))}return!y&&!E&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&Ns.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:Ns._goInner(a.a),b:Ns._goInner(a.b),p:Ns._goInner(a.p),o:Ns._goInner(a.o),q:Ns._goInner(a.q),d:Ns._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 "+Ns._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+Ns._goInner(a.p1);break;case"bond":if(y=Ns._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 ee="\\frac{"+Ns._goInner(a.p1)+"}{"+Ns._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+Ns._goInner(a.p1)+"}{"+Ns._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+Ns._goInner(a.p1)+"}{"+Ns._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+Ns._goInner(a.p1)+"}{"+Ns._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+Ns._goInner(a.p1)+"}_{"+Ns._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+Ns._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var ie={rd:Ns._goInner(a.rd),rq:Ns._goInner(a.rq)},se=Ns._getArrow(a.r);ie.rd||ie.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(se="\\long"+se,ie.rd&&(se="\\overset{"+ie.rd+"}{"+se+"}"),ie.rq&&(a.r==="<-->"?se="\\underset{\\lower2mu{"+ie.rq+"}}{"+se+"}":se="\\underset{\\lower6mu{"+ie.rq+"}}{"+se+"}"),se=" {}\\mathrel{"+se+"}{} "):(ie.rq&&(se+="[{"+ie.rq+"}]"),se+="{"+ie.rd+"}",se=" {}\\mathrel{\\x"+se+"}{} "):se=" {}\\mathrel{\\long"+se+"}{} ",y=se;break;case"operator":y=Ns._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 My(a){}function Ay(a){}var r0=class Kp extends Wr{constructor(y){super(ge(we({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new Kp(y)}toJson(){return ge(we({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new ni(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Pt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Ii(this.command,this.value)}},i0=class Hp extends Wr{constructor(y){super(ge(we({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new Hp(y)}toJson(){return ge(we({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=xr(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=Pt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Ii(this.command,this.value)}},rf=class Wp extends Wr{constructor(y,b,E,ee){var ie,se;super({type:"enclose",command:y,style:ee.style}),this.body=b,this.backgroundcolor=ee.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=(ie=ee.shadow)!=null?ie:"none",this.strokeWidth=(se=ee.strokeWidth)!=null?se:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=ee.strokeStyle,this.svgStrokeStyle=ee.svgStrokeStyle,this.strokeColor=ee.strokeColor,this.borderStyle=ee.borderStyle,this.padding=ee.padding,this.captureSelection=!1}static fromJson(y){return new Wp(y.command,y.body,y.notation,y)}toJson(){return ge(we({},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=Pt(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);let ee=(b=this.command)!=null?b:"";if(this.command==="\\enclose"){ee+="{"+Object.keys(this.notation).join(" ")+"}";let ie="",se="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(ie+=se+'mathbackground="'+this.backgroundcolor+'"',se=","),this.shadow&&this.shadow!=="auto"&&(ie+=se+'shadow="'+this.shadow+'"',se=","),this.strokeWidth||this.strokeStyle!=="solid"?(ie+=se+this.borderStyle,se=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(ie+=se+'mathcolor="'+this.strokeColor+'"',se=","),ie&&(ee+=`[${ie}]`)}return Ii(ee,this.bodyToLatex(y))}render(y){const b=new ga({parent:y},this.style),E=Wr.createBox(b,this.body);if(!E)return null;const ee=im(this.borderStyle),ie=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});E.setStyle("position","relative"),E.setStyle("display","inline-block"),E.setStyle("top",ie,"em"),E.setStyle("height",E.height+E.depth,"em"),E.setStyle("width",E.width,"em");const se=new ni(null,{classes:"ML__notation"});let ye=E.height+E.depth+2*ie;const Ee=E.width+2*ie;let Pe="";if(this.notation.horizontalstrike&&(Pe+=this.line(3,50,97,50)),this.notation.verticalstrike&&(Pe+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(Pe+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(Pe+=this.line(3,3,97,97)),this.notation.updiagonalarrow){Pe+=this.line(ie.toString(),(ie+E.depth+E.height).toString(),(ie+E.width).toString(),ie.toString());const xn=.03*Math.sqrt(Ee*Ee+ye*ye)*1,Or=E.width*xn,bi=(E.depth+E.height)*xn,Pr=ie+E.width;let ti=ie;ti+bi-.4*Or<0&&(ti=.4*Or-bi),Pe+='<polygon points="',Pe+=`${Pr},${ti} ${Pr-Or-.4*bi},${ti+bi-.4*Or} `,Pe+=`${Pr-.7*Or},${ti+.7*bi} ${Pr-Or+.4*bi},${ti+bi+.4*Or} `,Pe+=`${Pr},${ti}`,Pe+=`" stroke='none' fill="${this.strokeColor}"`,Pe+="/>"}let He=0;if(this.notation.phasorangle){const _t=a0(b),fn=(E.height+E.depth+2*_t+ie).toString(),xn=(E.height+E.depth)/2;Pe+=this.line(ie.toString(),fn,(ie+xn+E.width).toString(),fn),Pe+=this.line(ie.toString(),fn,(ie+xn).toString(),(ie-_t).toString()),ye+=_t,He=xn,E.left+=ye/2-ie}if(this.notation.longdiv){const _t=a0(b);ye+=_t,Pe+=this.line(ie.toString(),ie.toString(),(ie+E.width).toString(),ie.toString());const fn=.3;He=fn+_t,E.left+=fn+_t,E.setTop(ie+_t),Pe+='<path d="',Pe+=`M ${ie} ${ie} a${fn} ${(E.depth+E.height+2*_t)/2}, 0, 1, 1, 0 ${E.depth+E.height+2*_t} "`,Pe+=` stroke-width="${am(b)}" stroke="${this.strokeColor}" fill="none"`,Pe+="/>"}if(se.width=E.width+2*ie+He,se.height=E.height+ie,se.depth=E.depth+ie,se.setStyle("box-sizing","border-box"),se.setStyle("left",`calc(-${ee} / 2 )`),se.setStyle("height",`${Math.floor(100*ye)/100}em`),se.setStyle("top",`calc(${ee} / 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),Pe){let _t="";this.shadow==="auto"&&(_t+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(_t+=`filter: drop-shadow(${this.shadow})`),_t+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,_t+=' stroke-linecap="round"',this.svgStrokeStyle&&(_t+=` stroke-dasharray="${this.svgStrokeStyle}"`),se.svgStyle=_t,se.svgOverlay=Pe}const ct=new ni([se,E]);return ct.setStyle("position","relative"),ct.setStyle("vertical-align",ie,"em"),ct.setStyle("height",`${Math.floor(100*(E.height+E.depth+2*ie))/100}em`),ct.setStyle("display","inline-block"),ct.height=se.height,ct.depth=se.depth,ct.width=se.width-2*ie,ct.left=ie,ct.right=ie,this.caret&&(ct.caret=this.caret),ct.wrap(b)}line(y,b,E,ee){return`<line x1="${Lf(y)}" y1="${Lf(b)}" x2="${Lf(E)}" y2="${Lf(ee)}" vector-effect="non-scaling-stroke"></line>`}};function Lf(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?Ca:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var Od=class Zp extends Wr{constructor(y,b,E){var ee,ie;super(ge(we({},E),{type:"genfrac",displayContainsHighlight:!0})),this.above=y,this.below=b,this.hasBarLine=(ee=E==null?void 0:E.hasBarLine)!=null?ee:!0,this.continuousFraction=(ie=E==null?void 0:E.continuousFraction)!=null?ie:!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 Zp(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),we(we({},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 ee=new ga({parent:y,mathstyle:this.mathstyleName},this.style),ie=ee.metrics,se=new ga({parent:ee,mathstyle:this.continuousFraction?"":"numerator"},this.style),ye=this.numerPrefix?new ni([new ni(this.numerPrefix),Wr.createBox(se,this.above)],{isTight:se.isTight,type:"ignore"}):(b=Wr.createBox(se,this.above,{type:"ignore"}))!=null?b:new ni(null,{type:"ignore"}),Ee=new ga({parent:ee,mathstyle:this.continuousFraction?"":"denominator"},this.style),Pe=this.denomPrefix?new ni([new ni(this.denomPrefix),Wr.createBox(Ee,this.below,{type:"ignore"})]):(E=Wr.createBox(Ee,this.below,{type:"ignore"}))!=null?E:new ni(null,{type:"ignore"}),He=this.hasBarLine?ie.defaultRuleThickness:0;let ct,_t=0,fn;ee.isDisplayStyle?(ct=se.metrics.num1,_t=He>0?3*He:7*He,fn=Ee.metrics.denom1):(He>0?(ct=se.metrics.num2,_t=He):(ct=se.metrics.num3,_t=3*ie.defaultRuleThickness),fn=Ee.metrics.denom2);const xn=[];this.isSelected&&xn.push("ML__selected");const Or=ye.depth,bi=Pe.height;let Pr;if(He<=0){const ya=ct-Or-(bi-fn);ya<_t&&(ct+=(_t-ya)/2,fn+=(_t-ya)/2),Pr=new $a({individualShift:[{box:ye,shift:-ct,classes:[...xn,"ML__center"]},{box:Pe,shift:fn,classes:[...xn,"ML__center"]}]}).wrap(ee)}else{const ya=new ni(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});ya.softWidth=Math.max(ye.width,Pe.width),ya.height=He/2,ya.depth=He/2;const zo=ji+He/2;ct<_t+Or+zo&&(ct=_t+Or+zo);const ps=ji-He/2;fn<_t+bi-ps&&(fn=_t+bi-ps),Pr=new $a({individualShift:[{box:Pe,shift:fn,classes:[...xn,"ML__center"]},{box:ya,shift:-ps,classes:xn},{box:ye,shift:-ct,classes:[...xn,"ML__center"]}]}).wrap(ee)}const ti=ee.isDisplayStyle?ie.delim1:ie.delim2,Ei=this.leftDelim?this.bind(y,ra("open",this.leftDelim,ti,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):oa(ee,"open");let li=null;this.continuousFraction?li=new ni(null,{type:"close"}):this.rightDelim?li=this.bind(y,ra("close",this.rightDelim,ti,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):li=oa(ee,"close");const sa=new ni([Ei,Pr,li],{isTight:ee.isTight,type:"inner",classes:"mfrac"}),Fa=this.bind(y,sa);return this.caret&&(Fa.caret=this.caret),this.attachSupsub(y,{base:Fa})}},Nl=class jp extends Wr{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),we({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new ni(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 Wr{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new Nl(b)),this.skipBoundary=!1}static fromJson(y){return new Up("")}toJson(){return super.toJson()}render(y){const b=Wr.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(ee=>ee.value).join(""))!=null?E:""}},fh=class Vp extends Wr{constructor(y,b){super(ge(we({},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",ee=new ni(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(!ee)return null;ee.right=ee.italic;const ie=(ee.height-ee.depth)/2-ji*y.scalingFactor,se=ee.italic;ee.setTop(ie);let ye=ee;if(this.superscript||this.subscript){const Ee=(b=this.subsupPlacement)!=null?b:"auto";ye=Ee==="over-under"||Ee==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee,baseShift:ie,slant:se}):this.attachSupsub(y,{base:ee})}return new ni(this.bind(y,ye),{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=Pt(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)),Ha(E)}},dd=class Gp extends Wr{constructor(y){const b=y.body;super(ge(we({},y),{type:"overlap",body:typeof b=="string"?[new Wr({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),we(we({},super.toJson()),y)}render(y){const b=Wr.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new ni([b,new ni(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},Du=class Yp extends Wr{constructor(y){var b,E,ee,ie;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=(ee=y.paddedBody)!=null?ee:!1,this.paddedLabels=(ie=y.paddedLabels)!=null?ie:!1}static fromJson(y){return new Yp(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?yl(this.svgBody):Wr.createBox(y,this.body,{type:"ignore"});const E=new ga({parent:y,mathstyle:"scriptstyle"},this.style);let ee=null;this.svgAbove?ee=yl(this.svgAbove):this.above&&(ee=Wr.createBox(E,this.above,{type:"ignore"}));let ie=null;this.svgBelow?ie=yl(this.svgBelow):this.below&&(ie=Wr.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new ni([oa(y,"open"),b,oa(y,"close")],{type:"ignore"}));let se=om(y,{base:b,above:ee,below:ie,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 ye=new ni(y.base,{type:y.type});return ye.setStyle("position","relative"),ye}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let E=null;const ee=y.base,ie=0,se=["ML__center"];if(y.paddedAboveBelow&&se.push("ML__label_padding"),y.below&&y.above){const ye=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ee.depth+ie;E=new $a({bottom:ye,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:se},{box:ee,classes:["ML__center"]},b,{box:y.above,classes:se},a.metrics.bigOpSpacing5]})}else y.below?E=new $a({top:ee.height-ie,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:se},{box:ee,classes:["ML__center"]}]}):y.above&&(E=new $a({bottom:ee.depth+ie,children:[{box:ee,classes:["ML__center"]},b,{box:y.above,classes:se},a.metrics.bigOpSpacing5]}));return new ni(E,{type:y.type})}var of=class Xp extends Wr{constructor(y){var b,E,ee,ie;super(ge(we({},y),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(b=y.isInvisible)!=null?b:!1,this.smashDepth=(E=y.smashDepth)!=null?E:!1,this.smashHeight=(ee=y.smashHeight)!=null?ee:!1,this.smashWidth=(ie=y.smashWidth)!=null?ie:!1}static fromJson(y){return new Xp(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),we(we({},super.toJson()),y)}render(y){const b=new ga({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Wr.createBox(b,this.body,{classes:"inner"});const E=Wr.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ee=new ni(null,{classes:"fix"});return new ni([E,ee],{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 ee of E.children)this.smashHeight&&(ee.height=0),this.smashDepth&&(ee.depth=0);return new $a({firstBaseline:[{box:E}]},{type:E.type}).wrap(y)}},sf=class Qp extends Wr{constructor(y){var b;super(we({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 Qp(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 ni(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new ni(null,{classes:"mspace"}),E.left=y.toEm(this.width);else{const ee=(b={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?b:"mediumspace";E=new ni(null,{classes:ee})}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=Pt(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);const ee=(b=this.command)!=null?b:"";return this.width===void 0?ee:this._braced&&!("register"in this.width)?`${ee}{${hs(this.width)}}`:`${ee}${hs(this.width)}`}},o0=class Jp extends Wr{constructor(y){var b;super(ge(we({},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(ge(we({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Pt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=this.command,ee=this.bodyToLatex(y);return this.above&&!this.hasEmptyBranch("above")?Ii(`${E}[${this.aboveToLatex(y)}]`,ee):/^[0-9]$/.test(ee)?`${E}${ee}`:Ii(E,ee)}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 ga({parent:y,mathstyle:"cramp"},this.style),ee=(b=Wr.createBox(E,this.body,{type:"inner"}))!=null?b:new ni(null),ie=E.scalingFactor,se=E.metrics.defaultRuleThickness/ie,ye=y.isDisplayStyle?Ca:se,Ee=new ni(null,{classes:"ML__sqrt-line",style:this.style});Ee.height=se,Ee.softWidth=ee.width;let Pe=ie*(se+ye/4);const ct=Math.max(ie*2*ye,ee.height+ee.depth)+Pe+se,_t=new ga({parent:y},this.style),fn=this.bind(_t,new ni(ra("inner","\\surd",ct,!1,_t,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!fn)return null;const xn=fn.height+fn.depth-se;xn>ee.height+ee.depth+Pe&&(Pe=(Pe+xn-(ee.height+ee.depth))/2),fn.setTop(fn.height-ee.height-Pe);const Or=this.bind(y,new $a({firstBaseline:[{box:new ni(ee)},Pe-2*se,{box:Ee},se]})),bi=Wr.createBox(new ga({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!bi){const Ei=new ni([fn,Or],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Ei.setStyle("display","inline-block"),Ei.setStyle("height",Ei.height+Ei.depth,"em"),this.caret&&(Ei.caret=this.caret),this.bind(y,Ei)}const Pr=new $a({shift:-.6*(Math.max(fn.height,Or.height)-Math.max(fn.depth,Or.depth)),children:[{box:bi}]}),ti=new ni([new ni(Pr,{classes:"ML__sqrt-index",type:"ignore"}),fn,Or],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return ti.height=fn.height,ti.depth=fn.depth,this.caret&&(ti.caret=this.caret),this.bind(y,ti)}},sm=class extends ni{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 Ff(a,y){if(!a.parent)return;const b=a.parent.children,E=b.indexOf(a);let ee=E-1;for(;ee>=0&&b[ee].type==="ignore";)ee-=1;if(ee<0&&a.parent.parent&&a.parent.type==="lift"){Ff(a.parent,y);return}E>0&&b[E-1].type==="skip"?b[E-1].width+=y:b.splice(E,0,new sm(y))}var lm={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 lf(a,y){if(!a.children)return a;const b=a.children;cm(b);const E=y.getRegisterAsEm("thinmuskip"),ee=y.getRegisterAsEm("medmuskip"),ie=y.getRegisterAsEm("thickmuskip");return uf(b,(se,ye)=>{var Ee,Pe,He;if(!se)return;const ct=se.type,_t=ye.isTight?(Ee=um[ct])!=null?Ee:null:(Pe=lm[ct])!=null?Pe:null,fn=(He=_t==null?void 0:_t[ye.type])!=null?He:null;fn===3&&Ff(ye,E),fn===4&&Ff(ye,ee),fn===5&&Ff(ye,ie)}),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 Wr{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new Wr({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new $p(ge(we({},y),{tooltip:Hc(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 ge(we({},super.toJson()),{tooltip:b})}render(y){const b=Wr.createBox(new ga,this.body);if(!b)return null;const E=new ga({parent:y,mathstyle:"displaystyle"},{fontSize:Ui}),ee=ws(lf(new ni(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),ie=new ni([ee,b],{classes:"ML__tooltip-container"});return this.caret&&(ie.caret=this.caret),this.bind(y,ie)}},fd=class qp extends Wr{constructor(y,b){super(ge(we({},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 ni(this.value,{type:"op",mode:"math",maxFontSize:y.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:y.letterShapeStyle});let ee=E;if(this.superscript||this.subscript){const ie=(b=this.subsupPlacement)!=null?b:"auto";ee=ie==="over-under"||ie==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:E}):this.attachSupsub(y,{base:E})}return new ni(this.bind(y,ee),{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=Pt(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)),Ha(E)}};function Hc(a){if(Oe(a))return a.map(E=>Hc(E));if(typeof a=="string")return Wr.fromJson(a);a=we({},a);for(const E of Is)a[E]&&(a[E]=Hc(a[E]));a.args&&(a.args=dm(a.args)),a.array&&(a.array=Hc(a.array));const y=a.type;let b;y==="accent"&&(b=z.fromJson(a)),y==="array"&&(b=to.fromJson(a)),y==="box"&&(b=el.fromJson(a)),y==="chem"&&(b=n0.fromJson(a)),y==="composition"&&(b=xc.fromJson(a)),y==="delim"&&(b=r0.fromJson(a)),y==="enclose"&&(b=rf.fromJson(a)),y==="error"&&(b=Jl.fromJson(a)),y==="extensible-symbol"&&(b=fh.fromJson(a)),y==="genfrac"&&(b=Od.fromJson(a)),y==="group"&&(b=Dl.fromJson(a)),y==="latex"&&(b=Nl.fromJson(a)),y==="latexgroup"&&(b=af.fromJson(a)),y==="leftright"&&(b=Jo.fromJson(a)),y==="macro"&&(b=Nd.fromJson(a)),y==="macro-argument"&&(b=Ku.fromJson(a)),y==="operator"&&(b=fd.fromJson(a)),y==="overlap"&&(b=dd.fromJson(a)),y==="overunder"&&(b=Du.fromJson(a)),y==="placeholder"&&(b=Ia.fromJson(a)),y==="prompt"&&(b=Xu.fromJson(a)),y==="phantom"&&(b=of.fromJson(a)),y==="sizeddelim"&&(b=i0.fromJson(a)),y==="spacing"&&(b=sf.fromJson(a)),y==="subsup"&&(b=ku.fromJson(a)),y==="surd"&&(b=o0.fromJson(a)),y==="text"&&(b=uu.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=Wr.fromJson(a));for(const E of Is)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=>Hc(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>Hc(b)):y)}var s0={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]$/},l0=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,fm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,hm=[/^[a-z]$/,/^[A-Z]$/,l0,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 Vi{constructor(){super("math")}createAtom(a,y,b){var E,ee,ie,se;if(y===null)return new Wr({type:"mord",mode:"math",command:a,value:a,style:b});const ye=window.MathfieldElement.isFunction((E=y.command)!=null?E:a);if(y.definitionType==="symbol"){const Pe=new Wr({type:(ee=y.type)!=null?ee:"mord",mode:"math",command:(ie=y.command)!=null?ie:a,value:String.fromCodePoint(y.codepoint),style:b});return ye&&(Pe.isFunction=!0),a.startsWith("\\")&&(Pe.verbatimLatex=a),Pe}const Ee=new Wr({type:"mord",mode:"math",command:(se=y.command)!=null?se:a,value:a,style:b});return ye&&(Ee.isFunction=!0),a.startsWith("\\")&&(Ee.verbatimLatex=a),Ee}serialize(a,y){const b=gm(a,ge(we({},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((ye,Ee)=>{var Pe;ye.test(a.value)&&pm[(Pe=y.letterShapeStyle)!=null?Pe:"tex"][Ee]==="it"&&(E="italic")}),E==="up"&&(E=void 0);const ee=E?b+"-"+E:b;console.assert(s0[ee]!==void 0);const[ie,se]=s0[ee];return ph[b]&&!ph[b].test(a.value)?(a.value=Cn(a.value,b,E),null):(l0.test(a.value)&&(a.classes+=" lcGreek"),se&&(a.classes+=" "+se),ie)}};function gm(a,y){const{parent:b}=a[0],E=u0(b);return Fi(a,"variant").map(ee=>{const ie=u0(ee[0]);let se="";ie&&ie!==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"}[ie],console.assert(se!==void 0));const ye=Ha(ee.map(Ee=>Ee._serialize(y)));return se?Ii(se,ye):ye})}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 vm(a,y){return a.map(b=>b._serialize(y))}function ym(a,y){return Fi(a,"fontShape").map(b=>{const E=vm(b,y),{fontShape:ee}=b[0].style;let ie="";return ee==="it"&&(ie="\\textit"),ee==="sl"&&(ie="\\textsl"),ee==="sc"&&(ie="\\textsc"),ee==="n"&&(ie="\\textup"),!ie&&ee?`{${Ii("\\fontshape",ee)}${Ha(E)}}`:ie?Ii(ie,Ha(E)):Ha(E)})}function bm(a,y){return Fi(a,"fontSeries").map(b=>{const E=ym(b,y),{fontSeries:ee}=b[0].style;let ie="";return ee==="b"&&(ie="\\textbf"),ee==="l"&&(ie="\\textlf"),ee==="m"&&(ie="\\textmd"),ee&&!ie?`{${Ii("\\fontseries",ee)}${Ha(E)}}`:ie?Ii(ie,Ha(E)):Ha(E)})}function xm(a,y){return Fi(a,"fontSize").map(b=>{var E,ee;const ie=bm(b,y),se=(ee=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(E=b[0].style.fontSize)!=null?E:""])!=null?ee:"";return se?`${se} ${Ha(ie)}`:Ha(ie)})}function Sm(a,y,b){return Fi(a,"fontFamily").map(E=>{var ee,ie;const se=xm(E,y),ye=(ie={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ee=E[0].style.fontFamily)!=null?ee:""])!=null?ie:"";return ye?`\\${ye}{${Ha(se)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${Ha(se)}}`:b?`\\text{${Ha(se)}}`:Ha(se)})}var c0={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Cm=class extends Vi{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new uu(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return Sm(a,ge(we({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,E,ee,ie,se;const{fontFamily:ye}=y;if(c0[ye]?a.classes+=" "+c0[ye]:ye&&a.setStyle("font-family",ye),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 Ee=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);Ee&&(a.classes+=" ",a.classes+=(ee={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=Ee[1])!=null?E:""])!=null?ee:"",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"}[(ie=Ee[2])!=null?ie:""])!=null?se:"")}return"Main-Regular"}};new Cm;var wm=class extends Vi{constructor(){super("latex")}createAtom(a){return new Nl(a)}serialize(a,y){return a.filter(b=>b instanceof Nl&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new wm;var Em={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:[")",")",")",")"]}},Mm={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:["=","=","=","="]}},Am={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"]}},Dm={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:["=","=","=","="]}},Bm={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:["<",">","|",""]}},Lm={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:[".",".",".","."]}},Fm={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"]}},Tm={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:["<",">","",""]}},Pm={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 Rd(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 Im={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 gh(){switch(xe()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function vu(a){(!a.platform||a.platform===gh())&&cf.push(a)}function Nm(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[ee,ie]of Object.entries(y.mapping)){if(ie[0]===a)return E.key=`[${ee}]`,E;if(ie[1]===a)return E.shift=!0,E.key=`[${ee}]`,E;if(ie[2]===a)return E.alt=!0,E.key=`[${ee}]`,E;if(ie[3]===a)return E.shift=!0,E.alt=!0,E.key=`[${ee}]`,E}return E.key=(b=Im[a])!=null?b:"",E}function Om(a){if(a.code)return a;const y=Object.entries(ff().mapping);let b=!1,E=!1,ee="";for(let ie=0;ie<4;ie++){for(const[se,ye]of y)if(ye[ie]===a.key){ee=se,ie===3?(b=!0,E=!0):ie===2?b=!0:ie===1&&(E=!0);break}if(ee)break}return new KeyboardEvent(a.type,ge(we({},a),{altKey:b,shiftKey:E,code:ee}))}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 ee of cf)((y=ee.mapping[a.code])==null?void 0:y[E])===a.key?ee.score+=1:(b=ee.mapping[a.code])!=null&&b[E]&&(ee.score=0);cf.sort((ee,ie)=>ie.score-ee.score)}function _m(a){df=cf.find(y=>a.startsWith(y.locale))}function ff(){return df!=null?df:cf[0]}function zm(){switch(gh()){case"apple":return mh;case"windows":return d0;case"linux":return f0}return mh}switch(gh()){case"apple":vu(mh),vu(Mm),vu(Fm),vu(Dm);break;case"windows":vu(d0),vu(Am),vu(Tm),vu(Bm);break;case"linux":vu(f0),vu(km),vu(Pm),vu(Lm);break}vu(Em);function vh(a){var y;const b=/macos|ios/.test(xe()),E=a.split("+");let ee="";for(const ie of E)ee&&(ee+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),ie.startsWith("[Key")?ee+=ie.slice(4,5):ie.startsWith("Key")?ee+=ie.slice(3,4):ie.startsWith("[Digit")?ee+=ie.slice(6,7):ie.startsWith("Digit")?ee+=ie.slice(5,6):ee+=(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"}[ie.toLowerCase()])!=null?y:ie.toUpperCase();return ee}function Tf(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,ee)=>({x:E.x+ee.clientX,y:E.y+ee.clientY}),{x:0,y:0}),b=a.touches.length;return{x:y.x/b,y:y.y/b}}}function hd(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 Pf(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:Hm.has(a.code)}function If(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var Qu=class Mc{static get scrim(){return Mc._scrim||(Mc._scrim=new Mc),Mc._scrim}static open(y){Mc.scrim.open(y)}static close(){Mc.scrim.close()}static get state(){return Mc.scrim.state}static get element(){return Mc.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=If();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 ee=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const ie=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${ie+ee}px`,y!=null&&y.child&&E.append(y.child),this.state="open"}close(){var y,b,E,ee;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:ie}=this;ie.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),ie.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",If()!==this.savedActiveElement&&((ee=(E=this.savedActiveElement)==null?void 0:E.focus)==null||ee.call(E)),ie.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 Wm(a,y,b){let E=null,ee=null,ie=!1,se=!1,ye=!1;const Ee=new AbortController,Pe=Ee.signal;return a.addEventListener("keydown",He=>{if(ie||He.key==="Process"||He.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(He.code)){E=null;return}E=He,ee=null,b.onKeystroke(He)?a.textContent="":E=null},{capture:!0,signal:Pe}),a.addEventListener("keypress",He=>{ie||(E&&ee&&b.onKeystroke(E),ee=He)},{capture:!0,signal:Pe}),a.addEventListener("compositionstart",He=>{a.textContent="",ie=!0,b.onCompositionStart(He.data)},{capture:!0,signal:Pe}),a.addEventListener("compositionupdate",He=>{ie&&b.onCompositionUpdate(He.data)},{capture:!0,signal:Pe}),a.addEventListener("compositionend",He=>{a.textContent="",ie&&(ie=!1,b.onCompositionEnd(He.data))},{capture:!0,signal:Pe}),a.addEventListener("beforeinput",He=>He.stopImmediatePropagation(),{signal:Pe}),a.addEventListener("input",He=>{var ct;if(!ie&&(a.textContent="",He.inputType!=="insertCompositionText")){if(He.inputType==="insertFromPaste"){He.preventDefault(),He.stopPropagation();return}b.onInput((ct=He.data)!=null?ct:""),He.preventDefault(),He.stopPropagation()}},{signal:Pe}),a.addEventListener("paste",He=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(He)||He.preventDefault(),He.stopImmediatePropagation()},{signal:Pe}),a.addEventListener("cut",He=>b.onCut(He),{capture:!0,signal:Pe}),a.addEventListener("copy",He=>b.onCopy(He),{capture:!0,signal:Pe}),a.addEventListener("blur",He=>{var ct,_t;if(((_t=(ct=He.relatedTarget)==null?void 0:ct._mathfield)==null?void 0:_t.element)===y){a.focus({preventScroll:!0}),He.preventDefault(),He.stopPropagation();return}const fn=Qu.state;if(fn==="open"||fn==="opening"){He.preventDefault(),He.stopPropagation();return}if(He.relatedTarget===He.target.getRootNode().host){He.preventDefault(),He.stopPropagation();return}ye||se||(ye=!0,E=null,ee=null,b.onBlur(),ye=!1)},{capture:!0,signal:Pe}),a.addEventListener("focus",He=>{ye||se||(se=!0,b.onFocus(),se=!1)},{capture:!0,signal:Pe}),{dispose:()=>Ee.abort(),cancelComposition:()=>{ie&&(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:()=>If()===a,setAriaLabel:He=>a.setAttribute("aria-label",He),setValue:He=>{var ct;a.textContent=He,a.style.left="-1000px",(ct=window.getSelection())==null||ct.selectAllChildren(a)},moveTo:(He,ct)=>{a.style.top=`${ct}px`,a.style.left=`${He}px`}}}function _d(a){var y;if(!a||!Pf(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=Om(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 Zm(a){if(ot()){const y=xe(),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=Rd(h0(p0(b))),ee=Rd({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(xe()),cmd:!1,win:!1});for(let ie=a.length-1;ie>=0;ie--)if((a[ie].key===E||a[ie].key===ee)&&(!a[ie].ifMode||a[ie].ifMode===y))return a[ie].command;return""}function m0(a){let y=a;return Oe(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function Um(a,y){let b=[];if(typeof y=="string"){const ie=_c[y];Oe(ie)?b=ie.slice():ie&&b.push(ie)}const E=m0(y),ee=new RegExp("^"+E.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const ie of a)ee.test(m0(ie.command))&&b.push(ie.key);return b.map(vh)}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=xe()==="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&&!Zm(E))return;if(/^\[.+\]$/.test(b.key))return ge(we({},a),{key:Rd(b)});const ee=Nm(b.key,y);if(!ee)return ge(we({},a),{key:Rd(b)});if(ee.shift&&b.shift||ee.alt&&b.alt)throw new Error(`The keybinding ${a.key} (${yh(a.command)}) is conflicting with the key combination ${Rd(ee)} using the ${y.displayName} keyboard layout`);return ee.shift=ee.shift||b.shift,ee.alt=ee.alt||b.alt,ee.meta=b.meta,ee.ctrl=b.ctrl,ge(we({},a),{key:Rd(ee)})}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 ee of a)try{const ie=Vm(ee,y);if(!ie)continue;const se=E.find(ye=>ye.key===ie.key&&ye.ifMode===ie.ifMode);if(se)throw new Error(`Ambiguous key binding ${ee.key} (${yh(ee.command)}) matches ${se.key} (${yh(se.command)}) with the ${y.displayName} keyboard layout`);E.push(ie)}catch(ie){ie instanceof Error&&b.push(ie.message)}return[E,b]}var Ym=class extends Ga{constructor(){super("latex")}createAtom(a){return new Nl(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"}),Qs(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 ee=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Gs(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 ie=[];for(const Ee of y)fe.test(Ee)&&ie.push(new Nl(Ee));let se=a.at(a.position);if(se instanceof af&&(se=se.lastChild),!(se.parent instanceof af)){const Ee=new af("");se.parent.addChildAfter(Ee,se),se=Ee.firstChild}const ye=se.parent.addChildrenAfter(ie,se);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(ye)):ye&&(a.position=a.offsetOf(ye))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function Xm(a){return a.atoms.find(y=>y.type==="latexgroup")}function hf(a){var y,b;const E=a.atoms.find(ee=>ee.type==="latexgroup");return E?(b=(y=E.body)==null?void 0:y.filter(ee=>ee.type==="latex"))!=null?b:[]:[]}function g0(a,y){var b;let E=0,ee=!1;const ie=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;E<=ie&&!ee;){const Ee=a.at(E);ee=Ee instanceof Nl&&Ee.isSuggestion,ee||E++}if(!ee)return[void 0,void 0];let se=E,ye=!1;for(;se<=ie&&!ye;){const Ee=a.at(se);ye=!(Ee instanceof Nl&&Ee.isSuggestion),ye||se++}return[E-1,se-1]}new Ym;function Nf(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;Nf(a);for(const He of hf(E))He.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){Kd(a);return}const ee=[];let ie=E.at(E.position);for(;ie&&ie instanceof Nl&&/^[a-zA-Z\*]$/.test(ie.value);)ie=ie.leftSibling;if(ie&&ie instanceof Nl&&ie.value==="\\")for(ee.push(ie),ie=ie.rightSibling;ie&&ie instanceof Nl&&/^[a-zA-Z\*]$/.test(ie.value);)ee.push(ie),ie=ie.rightSibling;const se=ee.map(He=>He.value).join(""),ye=At(a,se);if(ye.length===0){if(/^\\[a-zA-Z\*]+$/.test(se))for(const He of ee)He.isError=!0;Kd(a);return}const Ee=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=Ee<0?ye.length-1:Ee%ye.length;const Pe=ye[a.suggestionIndex];if(Pe!==se){const He=ee[ee.length-1];He.parent.addChildrenAfter([...Pe.slice(se.length-Pe.length)].map(ct=>new Nl(ct,{isSuggestion:!0})),He),pd(a,{interactive:!0})}Jm(a,ye)}function v0(a){const[y,b]=g0(a,{before:a.position});if(y===void 0||b===void 0)return!1;let E=!1;return a.getAtoms([y,b]).forEach(ee=>{ee.isSuggestion&&(ee.isSuggestion=!1,E=!0)}),E}function zd(a,y="accept",b){var E,ee;Kd(a);const ie=Xm(a.model);if(!ie)return!1;if(y==="accept-suggestion"||y==="accept-all"){const Pe=hf(a.model).filter(He=>He.isSuggestion);if(Pe.length!==0){for(const He of Pe)He.isSuggestion=!1;a.model.position=a.model.offsetOf(Pe[Pe.length-1])}if(y==="accept-suggestion")return Pe.length!==0}const ye=hf(a.model).filter(Pe=>!Pe.isSuggestion).map(Pe=>Pe.value).join(""),Ee=ie.leftSibling;return ie.parent.removeChild(ie),a.model.position=a.model.offsetOf(Ee),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(Ga.insert(a.model,ye,{selectionMode:(ee=b==null?void 0:b.selectItem)!=null&&ee?"item":"placeholder",format:"latex",mode:"math"}),a.snapshot(),a.model.announce("replacement"),a.switchMode("math")),!0}function Of(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 Qm(a,y){const b=new ga({from:a.context}),E=new Wr({mode:"math",type:"root",body:Bl(y,{context:b})}),ee=ws(lf(new ni(E.render(b),{classes:"ML__base"}),b));return fl(ee,{classes:"ML__latex"}).toMarkup()}function Jm(a,y){var b;if(y.length===0){Kd(a);return}let E="";for(const[ie,se]of y.entries()){const ye=se,Ee=Qm(a,se),Pe=Um(a.keybindings,ye).join("<br>");E+=`<li role="button" data-command="${ye}" ${ie===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${ye}</span><span class="ML__popover__command">${Ee}</span>`,Pe&&(E+=`<span class="ML__popover__keybinding">${Pe}</span>`),E+="</li>"}const ee=$m(a,`<ul>${E}</ul>`);xh()&&((b=ee.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var ie;ee&&!xh()&&(ee.classList.add("is-visible"),Rf(a),(ie=ee.querySelector(".ML__popover__current"))==null||ie.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"){Kd(a);return}if(y!=null&&y.deferred){setTimeout(()=>Rf(a),32);return}const E=mu(a.field);if(!E)return;const ee=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,ie=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,se=window.innerWidth-document.documentElement.clientWidth,ye=window.innerHeight-document.documentElement.clientHeight,Ee=window.mathVirtualKeyboard.boundingRect.height,Pe=document.getElementById("mathlive-suggestion-popover");E.x+Pe.offsetWidth/2>ie-se?Pe.style.left=`${ie-Pe.offsetWidth-se}px`:E.x-Pe.offsetWidth/2<0?Pe.style.left="0":Pe.style.left=`${E.x-Pe.offsetWidth/2}px`;const He=E.y-E.height;ee-ye-Ee-E.y<He?(Pe.classList.add("ML__popover--reverse-direction"),Pe.classList.remove("top-tip"),Pe.classList.add("bottom-tip"),Pe.style.top=`${E.y-E.height-Pe.offsetHeight-15}px`):(Pe.classList.remove("ML__popover--reverse-direction"),Pe.classList.add("top-tip"),Pe.classList.remove("bottom-tip"),Pe.style.top=`${E.y+15}px`)}function Kd(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=Of("mathlive-suggestion-popover"),cu("suggestion-popover"),cu("core"),b.addEventListener("pointerdown",E=>E.preventDefault()),b.addEventListener("click",E=>{let ee=E.target;for(;ee&&!ee.dataset.command;)ee=ee.parentElement;ee&&(zd(a,"reject"),Ga.insert(a.model,ee.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 eg(){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,Sh=((b0=(y0=globalThis==null?void 0:globalThis.document)==null?void 0:y0.currentScript)==null?void 0:b0.src)||eg();function x0(a){return Vc(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(_f===null)try{const y=yield fetch(Sh,{method:"HEAD"});y.status===200&&(_f=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${Sh}")`)}return new URL(a,_f!=null?_f:Sh).href})}function tg(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var yu="not-loaded";function ng(){return Vc(this,null,function*(){return yu="not-loaded",zf()})}function zf(){return Vc(this,null,function*(){var a;if(yu!=="not-loaded")return;if(yu="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){yu="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))){yu="ready";return}if(!window.MathfieldElement.fontsDirectory){yu="not-loaded";return}const ee=yield x0(window.MathfieldElement.fontsDirectory);if(!ee){document.body.classList.add("ML__fonts-did-not-load"),yu="error";return}const ie=[["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=>tg(se[0].replace(/-[a-zA-Z]+$/,""),`${ee}/${se[0]}`,se[1]));try{(yield Promise.all(ie.map(ye=>{try{return ye.load()}catch(Ee){}}))).forEach(ye=>document.fonts.add(ye)),yu="ready";return}catch(se){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ee}"`,{cause:se}),document.body.classList.add("ML__fonts-did-not-load")}yu="error"}})}function rg(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 Qs(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{Ql(a)&&a.dirty&&(a.atomBoundsCache=new Map,pd(a,y),a.atomBoundsCache=void 0)})))}function ig(a,y){var b;y=y!=null?y:{};const E=new ga({from:ge(we({},a.context),{atomIdsSettings:{seed:y.forHighlighting?rg(Wr.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"}),ee=a.model.root.render(E);return fl(lf(ee,E),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function S0(a,y){const{model:b}=a;b.root.caret=void 0,b.root.isSelected=!1,b.root.containsCaret=!0;for(const ee of b.atoms)ee.caret=void 0,ee.isSelected=!1,ee.containsCaret=!1;if(b.selectionIsCollapsed){const ee=b.at(b.position);ee.caret=a.model.mode;let ie=ee.parent;for(;ie;)ie.containsCaret=!0,ie=ie.parent}else{const ee=b.getAtoms(b.selection,{includeChildren:!0});for(const ie of ee)ie.isSelected=!0}return ig(a,y).toMarkup()}function pd(a,y){if(!Ql(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 ee=a.isSelectionEditable&&a.hasFocus(),ie=E.classList.contains("ML__focused");ie&&!ee?E.classList.remove("ML__focused"):!ie&&ee&&E.classList.add("ML__focused");let se=S0(a,y);const ye=a.element.querySelector("[part=menu-toggle]");if(ye&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?ye.style.display="none":ye.style.display=""),a.model.atoms.length<=1){const Ee=a.options.contentPlaceholder;Ee&&(se+=`<span part=placeholder class="ML__content-placeholder">${Ll(Ee)}</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 ye of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))ye.remove();!(y!=null&&y)&&yu!=="error"&&yu!=="ready"&&setTimeout(()=>{yu==="ready"?Kf(a):setTimeout(()=>Kf(a),128)},32);const E=a.model,ee=b.offsetWidth,ie=b.getBoundingClientRect().width;let se=Math.floor(ie)/ee;if(se=isNaN(se)?1:se,E.selectionIsCollapsed){Rf(a,{deferred:!0});let ye=E.at(E.position);for(;ye&&ye.type!=="prompt"&&!(ye.containsCaret&&ye.displayContainsHighlight);)ye=ye.parent;if(ye!=null&&ye.containsCaret&&ye.displayContainsHighlight){const Ee=zc(a,_u(a,ye),se);if(Ee){Ee.left/=se,Ee.right/=se,Ee.top/=se,Ee.bottom/=se;const Pe=document.createElement("div");Pe.classList.add("ML__contains-highlight"),Pe.style.position="absolute",Pe.style.left=`${Ee.left+1}px`,Pe.style.top=`${Math.ceil(Ee.top)}px`,Pe.style.width=`${Math.ceil(Ee.right-Ee.left)}px`,Pe.style.height=`${Math.ceil(Ee.bottom-Ee.top)}px`,b.insertBefore(Pe,b.childNodes[0])}}return}for(const ye of ag(Ro(a,{excludeAtomsWithBackground:!0}))){ye.left/=se,ye.right/=se,ye.top/=se,ye.bottom/=se;const Ee=document.createElement("div");Ee.classList.add("ML__selection"),Ee.style.position="absolute",Ee.style.left=`${ye.left}px`,Ee.style.top=`${ye.top}px`,Ee.style.width=`${Math.ceil(ye.right-ye.left)}px`,Ee.style.height=`${Math.ceil(ye.bottom-ye.top-1)}px`,b.insertBefore(Ee,b.childNodes[0])}}function ag(a){let y=[];for(const b of a){let E=!1;for(const ee of y)if(b.left===ee.left&&b.right===ee.right&&b.top===ee.top&&b.bottom===ee.bottom){E=!0;break}E||y.push(b)}a=y,y=[];for(const b of a){let E=0;for(const ee of a)if(b.left>=ee.left&&b.right<=ee.right&&b.top>=ee.top&&b.bottom<=ee.bottom&&(E+=1,E>1))break;E===1&&y.push(b)}return y}var C0=3,Ju;function du(a,y){y=we({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Ju||(Ju={});for(const b of Object.keys(a))console.assert(!Ju[b],"Selector already defined: ",b),Ju[b]=ge(we({},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()),Ju[y]}function Hd(a){var y;return(y=Ch(a))==null?void 0:y.target}function og(a,y){var b;if(!y)return!1;let E,ee=[],ie=!1,se=!1;Oe(y)?(E=y[0],ee=y.slice(1)):E=y,E=E.replace(/-\w/g,Pe=>Pe[1].toUpperCase());const ye=Ju[E],Ee=ye==null?void 0:ye.target;if(Ee==="model"){if(!a.isSelectionEditable&&(ye!=null&&ye.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(E)&&(E!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(E)),/^complete/.test(E)||Nf(a),Ju[E].fn(a.model,...ee),pf(a),se=!0,ie=!0}else if(Ee==="virtual-keyboard")se=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,ie=!0;else if(Ju[E]){if(!a.isSelectionEditable&&(ye!=null&&ye.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),se=Ju[E].fn(a,...ee),ie=!0}else throw new Error(`Unknown command "${E}"`);return Ee!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||ye!=null&&ye.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),ye!=null&&ye.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),se&&Qs(a),ie}function sg(a,y){var b;if(!a)return!1;a.focus(),vp.keypressVibration&&Ve()&&navigator.vibrate(C0);const E=Ch(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ee=a.executeCommand(y);return a.scrollIntoView(),ee}du({performWithFeedback:(a,y)=>sg(a,y)});function lg(a){return pf(a,{atIndex:a.suggestionIndex+1}),!1}function ug(a){return pf(a,{atIndex:a.suggestionIndex-1}),!1}du({complete:zd},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),du({nextSuggestion:lg,previousSuggestion:ug},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Hf="mathlive#virtual-keyboard-message";function wh(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Hf}var cg=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(wh(y)){if(!as(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;Hd(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(we({type:Hf,action:y},b),this.targetOrigin)}},w0={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]"]]}},Wf={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 E0(a,y){var b,E,ee;const ie=Wc.singleton;if(!ie)return;const se=Wd(a),ye=(E=(b=ie.getKeycap(se==null?void 0:se.id))==null?void 0:b.variants)!=null?E:"";if(typeof ye=="string"&&!M0(ye)||Array.isArray(ye)&&ye.length===0){y==null||y();return}const Ee={};let Pe="";for(const Or of fg(ye)){const bi=k0(Or),Pr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);Ee[Pr]=bi;const[ti,Ei]=Zf(bi);Pe+=`<div id=${Pr} class="item ${Ei}">${ti}</div>`}const He=document.createElement("div");He.setAttribute("aria-hidden","true"),He.className="MLK__variant-panel",He.style.height="auto";const ct=Object.keys(Ee).length;let _t=5;ct===1?_t=1:ct===2||ct===4?_t=2:ct===3||ct===5||ct===6?_t=3:ct>=7&&ct<14&&(_t=4),He.style.width=`calc(var(--variant-keycap-length) * ${_t} + 12px)`,He.innerHTML=vp.createHTML(Pe),Qu.open({root:(ee=ie==null?void 0:ie.container)==null?void 0:ee.querySelector(".ML__keyboard"),child:He}),mf=new AbortController;const{signal:fn}=mf,xn=a==null?void 0:a.getBoundingClientRect();if(xn){xn.top-He.clientHeight<0&&(He.style.width="auto",ct<=6?He.style.height="56px":ct<=12?He.style.height="108px":ct<=18?He.style.height="205px":He.classList.add("compact"));const Or=Math.max(0,Math.min(window.innerWidth-He.offsetWidth,(xn.left+xn.right-He.offsetWidth)/2)),bi=xn.top-He.clientHeight+5;He.style.transform=`translate(${Or}px, ${bi}px)`,He.classList.add("is-visible"),requestAnimationFrame(()=>{He.addEventListener("pointerup",Pr=>{const ti=Wd(Pr.target);!(ti!=null&&ti.id)||!Ee[ti.id]||(Eh(Ee[ti.id]),gf(),y==null||y(),Pr.preventDefault())},{capture:!0,passive:!1,signal:fn}),He.addEventListener("pointerenter",Pr=>{const ti=Wd(Pr.target);!(ti!=null&&ti.id)||!Ee[ti.id]||ti.classList.add("is-active")},{capture:!0,signal:fn}),He.addEventListener("pointerleave",Pr=>{const ti=Wd(Pr.target);!(ti!=null&&ti.id)||!Ee[ti.id]||ti.classList.remove("is-active")},{capture:!0,signal:fn}),window.addEventListener("pointercancel",()=>{gf(),y==null||y()},{signal:fn}),window.addEventListener("pointerup",()=>{gf(),y==null||y()},{signal:fn})})}}function gf(){mf==null||mf.abort(),mf=null,Qu.state==="open"&&Qu.close()}function dg(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(je))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+je[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 M0(a){return Wf[a]!==void 0}function fg(a){var y;return typeof a!="string"?a:(Wf[a]||(Wf[a]=(y=dg(a))!=null?y:[]),Wf[a])}function hg(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function pg(a){return Object.keys(a).map(y=>`${y} {${hg(a[y])}}`).join("")}function vf(a){if(!a)return"";const y=new ga,b=new Wr({mode:"math",type:"root",body:Bl(a,{context:y,args:ee=>ee==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=ws(lf(new ni(b.render(y),{classes:"ML__base"}),y));return fl(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(ee=>k0(ee)))),(y=b.id)!=null||(b.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[b]}function mg(){var a,y;let E=window.mathVirtualKeyboard.alphabeticLayout;if(E==="auto"){const ye=ff();ye&&(E=ye.virtualLayout),(!E||E==="auto")&&(E=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[it.locale.slice(0,2)])!=null?a:"qwerty")}const ee={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},ie=(y=ee[E])!=null?y:ee.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 ye of ie){const Ee=[];for(const Pe of ye)/[a-z]/.test(Pe)?Ee.push({label:Pe,class:"hide-shift",shift:{label:Pe.toUpperCase()},variants:M0(Pe)?Pe:void 0}):Pe==="~"?E!=="dvorak"?Ee.push("[backspace]"):Ee.push({label:"[backspace]",width:1}):Pe==="^"?Ee.push("[shift]"):Pe===" "&&Ee.push("[separator-5]");se.push(Ee)}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 A0(a){if(a==="alphabetic")return mg();if(typeof a=="string")return console.assert(w0[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),A0(w0[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 ee=a,{rows:ie}=ee,se=Qe(ee,["rows"]);y=ge(we({},se),{layers:yf({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ee=a,{markup:ie}=ee,se=Qe(ee,["markup"]);y=ge(we({},se),{layers:yf(a.markup)})}else y=we({},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 ee of y.layers)if(ee.rows)for(const ie of ee.rows.flat()){Zd(ie)&&(b=!0);const se=ie.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 gg(a,y){var b,E;let ee='<div class="left">';if(a.normalizedLayouts.length>1)for(const[ie,se]of a.normalizedLayouts.entries()){const ye=se,Ee=[ie===y?"selected":"layer-switch"];ye.tooltip&&Ee.push("MLK__tooltip"),ye.labelClass&&Ee.push(...ye.labelClass.split(" ")),ee+=`<div class="${Ee.join(" ")}"`,ye.tooltip&&(ee+=" data-tooltip='"+((b=pt(ye.tooltip))!=null?b:ye.tooltip)+"' "),ie!==y&&(ee+=`data-layer="${ye.layers[0].id}"`),ee+=`>${(E=ye.label)!=null?E:"untitled"}</div>`}return ee+="</div>",ee}function vg(a,y){let b="";if(a.editToolbar==="none")return"";const ee=[];y.selectionIsCollapsed?ee.push("undo","redo","pasteFromClipboard"):ee.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const ie={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
data-command='"undo"'
data-tooltip='${pt("tooltip.undo")}'>
<svg><use xlink:href='#svg-undo' /></svg>
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
data-command='"redo"'
data-tooltip='${pt("tooltip.redo")}'>
<svg><use xlink:href='#svg-redo' /></svg>
</div>`,cutToClipboard:`
<div class='action'
data-command='"cutToClipboard"'
data-tooltip='${pt("tooltip.cut to clipboard")}'>
<svg><use xlink:href='#svg-cut' /></svg>
</div>
`,copyToClipboard:`
<div class='action'
data-command='"copyToClipboard"'
data-tooltip='${pt("tooltip.copy to clipboard")}'>
<svg><use xlink:href='#svg-copy' /></svg>
</div>
`,pasteFromClipboard:`
<div class='action'
data-command='"pasteFromClipboard"'
data-tooltip='${pt("tooltip.paste from clipboard")}'>
<svg><use xlink:href='#svg-paste' /></svg>
</div>
`};return b+=ee.map(se=>ie[se]).join(""),b}function yg(a){for(const y of a)bg(y)}function bg(a){const y=Wc.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,ee]=Zf(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function xg(){cu("virtual-keyboard"),cu("core"),zf()}function Sg(){x("core"),x("virtual-keyboard")}var Cg=`<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 wg(a){a.resetKeycapRegistry(),xg();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(Cg+a.normalizedLayouts.map((se,ye)=>Eg(a,se,ye)).join(""));const E=document.createElement("div");E.className="MLK__backdrop",E.appendChild(b),y.appendChild(E),y.addEventListener("pointerdown",Ag,{passive:!1});const ee=y.querySelectorAll(".ML__edit-toolbar");if(ee)for(const se of ee)se.addEventListener("click",ye=>{var Ee,Pe;let He=ye.target,ct="";for(;He&&!ct;)ct=(Ee=He==null?void 0:He.getAttribute("data-command"))!=null?Ee:"",He=(Pe=He==null?void 0:He.parentElement)!=null?Pe:null;ct&&a.executeCommand(JSON.parse(ct))});yg(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const ie=y.querySelectorAll(".MLK__layer");console.assert(ie.length>0,"No virtual keyboards available");for(const se of ie)se.addEventListener("pointerdown",ye=>ye.preventDefault());return a.currentLayer=a.latentLayer,y}function Eg(a,y,b){const E=[];if(!("layers"in y))return"";for(const ee of y.layers)E.push(`<div tabindex="-1" class="MLK__layer" id="${ee.id}">`),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(E.push("<div class='MLK__toolbar' role='toolbar'>"),E.push(gg(a,b)),y.displayEditToolbar&&E.push('<div class="ML__edit-toolbar right"></div>'),E.push("</div>")),E.push(Mg(a,ee)),E.push("</div>");return E.join("")}function Mg(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>${pg(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 ee of E)if(ee){const ie=a.registerKeycap(ee),[se,ye]=Zf(ee);/(^|\s)separator/.test(ye)?b+=`<div class="${ye}"`:b+=`<div tabindex="-1" id="${ie}" class="${ye}"`,ee.tooltip&&(b+=` data-tooltip="${ee.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 Zf(a,y={shifted:!1}){var b,E,ee,ie,se,ye,Ee;let Pe="",He=(b=a.class)!=null?b:"";if(y.shifted&&Zd(a)&&(He+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?Pe=vf(a.shift):typeof a.shift=="object"&&(Pe=a.shift.label?a.shift.label:(E=vf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?E:""),typeof a.shift=="object"&&(He=(ie=(ee=a.shift.class)!=null?ee:a.class)!=null?ie:"");else{if(Pe=a.label?a.label:(se=vf(a.latex||a.insert||"")||a.key)!=null?se:"",a.shift){let ct;typeof a.shift=="string"?ct=vf(a.shift):a.shift.label?ct=a.shift.label:ct=(ye=vf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?ye:"",Pe+=`<span class="MLK__shift">${ct}</span>`}a.aside&&(Pe+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(He)&&(He+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(He)||(He+=" MLK__keycap"),!/\bw[0-9]+\b/.test(He)&&a.width&&(He+=(Ee={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?Ee:""),[Pe,He||"MLK__keycap"]}var md={"[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="[,]"),!md[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&md[a.label]&&(b=ge(we(we({},md[a.label]),a),{label:md[a.label].label})),"key"in a&&a.key&&md[a.key]&&(b=ge(we(we({},md[a.key]),a),{key:md[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=we(we({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=we(we({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=we(we({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=we(we({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var bf;function Ag(a){var y;if(a.button!==0)return;const b=Wc.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 ee=Wd(a.target);if(!(ee!=null&&ee.id))return;const ie=b.getKeycap(ee.id);if(!ie)return;console.assert(a.type==="pointerdown");const se=new AbortController,ye=se.signal;ee.classList.add("is-pressed"),ee.addEventListener("pointerenter",jf(se),{capture:!0,signal:ye}),ee.addEventListener("pointerleave",jf(se),{capture:!0,signal:ye}),ee.addEventListener("pointercancel",jf(se),{signal:ye}),ee.addEventListener("pointerup",jf(se),{signal:ye}),Zd(ie)&&(ee.classList.add("is-active"),b.shiftPressCount++),ie.variants&&(bf&&clearTimeout(bf),bf=setTimeout(()=>{ee.classList.contains("is-pressed")&&(ee.classList.remove("is-pressed"),ee.classList.add("is-active"),a.target&&"releasePointerCapture"in a.target&&a.target.releasePointerCapture(a.pointerId),E0(ee,()=>{se.abort(),ee==null||ee.classList.remove("is-active")}))},300)),a.preventDefault()}function jf(a){return y=>{const b=Wd(y.target);if(!(b!=null&&b.id))return;const E=Wc.singleton;if(!E)return;const ee=E.getKeycap(b.id);if(ee){if(y.type==="pointerenter"&&y.target===b&&y.isPrimary&&b.classList.add("is-pressed"),y.type==="pointercancel"){b.classList.remove("is-pressed"),Zd(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted)),a.abort();return}if(y.type==="pointerleave"&&y.target===b){b.classList.remove("is-pressed"),Zd(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){bf&&clearTimeout(bf),Zd(ee)?b.classList.toggle("is-active",E.isShifted):b.classList.contains("is-pressed")&&(b.classList.remove("is-pressed"),E.isShifted&&ee.shift?typeof ee.shift=="string"?E.executeCommand(["insert",ee.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):Eh(ee.shift):Eh(ee),E.shiftPressCount===1&&!y.shiftKey&&(E.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function Eh(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=Wc.singleton)==null||y.executeCommand(b)}function kg(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 Wd(a){if(!a)return;let y=a;for(;y&&!kg(y);)y=y.parentElement;return y!=null?y:void 0}function Zd(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var Wc=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(ee=>{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(ee){window.addEventListener("message",this)}document.body.addEventListener("focusin",ee=>{const ie=ee.target;ie!=null&&ie.isConnected&&setTimeout(()=>{const se=D0();se&&!se.readOnly&&se.mathVirtualKeyboardPolicy==="auto"&&nt()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ee=>{ee.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{D0()||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 ee of E.layers)if(ee.id===y)return ee}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(ee=>ee==="default");E>=0&&b.splice(E,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(b),this._normalizedLayouts=b.map(ee=>A0(ee))}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 ee=E-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${ee}px)`:`${ee}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 ee=this.getKeycap(E.id);if(ee){const[ie,se]=Zf(ee,{shifted:this.isShifted});E.innerHTML=window.MathfieldElement.createHTML(ie),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 ee=this._element.getElementsByClassName("MLK__plate")[0];if(ee&&this.observer.observe(ee),E===window.document.body){const ie=E.style.paddingBottom;this.originalContainerBottomPadding=ie;const se=ee.offsetHeight-1;E.style.paddingBottom=ie?`calc(${ie} + ${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 ee;return(ee=this._element)==null?void 0:ee.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 ee=this._element.getElementsByClassName("MLK__plate")[0];ee&&this.observer.unobserve(ee),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}),gf(),Sg(),(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=wg(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&E0(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(wh(y)){if(!as(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:ee}=y,ie=Hd(ee);if(window.top!==void 0&&ie!=="virtual-keyboard")return;this.executeCommand(ee);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:we({type:Hf,action:y},b)}));return}if(E)E.postMessage(we({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 ee=b.command[1].split("");for(const ie of ee)this.dispatchEvent(new KeyboardEvent("keydown",{key:ie,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:ie,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 ee of E)ee.innerHTML=vg(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=[],ee=Hd(y);return Oe(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ee=Hd(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,ie=>ie[1].toUpperCase()),ee==="virtual-keyboard"?Ju[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 D0(){var a,y;let b=If(),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(ot()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=Wc.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>cg.singleton,configurable:!0});function Uf(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const E=a.scriptDepth;if(Oe(E))y.scriptDepth=[E[0],E[1]];else if(typeof E=="number")y.scriptDepth=[E,E];else if(typeof E=="string"){const[ie,se]=E.split(",").map(ye=>parseInt(ye.trim()));y.scriptDepth=[ie,se]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ee=a.mathVirtualKeyboardPolicy.toLowerCase();if(ee==="sandboxed"){if(window!==window.top){const ie=Wc.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>ie})}ee="manual"}y.mathVirtualKeyboardPolicy=ee;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?it.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=bt(a.macros);break;default:Oe(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=we({},a[b]):y[b]=a[b]}return y}function gd(a,y){let b;typeof y=="string"?b=[y]:y===void 0?b=Object.keys(a):b=y;const E={};for(const ee of b)a[ee]===null?E[ee]=null:Oe(a[ee])?E[ee]=[...a[ee]]:typeof a[ee]=="object"&&!(a[ee]instanceof Element)&&ee!=="computeEngine"?E[ee]=we({},a[ee]):E[ee]=a[ee];return typeof y=="string"?E[y]:E}function Vf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:ut,backgroundColorMap:Re,letterShapeStyle:it.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:Pd,inlineShortcuts:mc,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:sd,value:""}}function B0(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function Zc(a,y){!a||!y||(Oe(a)?a.forEach(b=>Zc(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),Zc(a.body,y),Zc(a.above,y),Zc(a.below,y),Zc(a.subscript,y),Zc(a.superscript,y)))}function Mh(a,y,b,E){function ee(se,ye){for(const Ee of ie)if(Ee.style[se]!==ye)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const ie=a.getAtoms(y,{includeChildren:!0});E.operation==="toggle"&&(b.color&&ee("color",b.color)&&(b.color="none",delete b.verbatimColor),b.backgroundColor&&ee("backgroundColor",b.backgroundColor)&&(b.backgroundColor="none",delete b.verbatimBackgroundColor),b.fontFamily&&ee("fontFamily",b.fontFamily)&&(b.fontFamily="none"),b.fontSeries&&ee("fontSeries",b.fontSeries)&&(b.fontSeries="auto"),b.fontShape&&ee("fontShape",b.fontShape)&&(b.fontShape="auto"),b.fontSize&&ee("fontSize",b.fontSize)&&(b.fontSize=Ui),b.variant&&ee("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ee("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const se of ie)se.applyStyle(b);return!0}function Dg(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 ee=new xc(y,{mode:b.mode});ee.caret=E,b.parent.addChildAfter(ee,b),a.position+=1}}function Bg(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}ht(["math","displaymath"],Bu),ht("center",Bu),xt("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 to("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),It("array","{columns:colspec}",(a,y,b,E)=>new to(a,Ah(y),b,{columns:E[0],mathstyleName:"textstyle"})),It(["equation","equation*","subequations"],"",(a,y,b)=>new to(a,Ah(y),b,{columns:[{align:"c"}]})),It(["multline","multline*"],"",Bu),It(["align","align*","aligned","eqnarray"],"",Bu),It("split","",Bu),It(["gather","gathered"],"",Bu),It(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",Bu),It(["smallmatrix","smallmatrix*"],"[columns:colspec]",Bu),It(["cases","dcases","rcases"],"",Bu);function Lg(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function Ah(a,y=1){return Lg(a)?Array(y).fill([[new Wr({type:"first"}),new Ia]]):a.map(b=>b.length===0?[[new Wr({type:"first"})]]:b.map(E=>E.length===0?[new Wr({type:"first"})]:(E[0].type!=="first"&&E.unshift(new Wr({type:"first"})),E)))}function Bu(a,y=[[[]]],b=[],E=[]){switch(y=Ah(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new to(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new to(a,y,b,{mathstyleName:"textstyle"});case"center":return new to(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new to(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new to(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new to(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new to(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:vd(E[0])});case"bmatrix":case"bmatrix*":return new to(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:vd(E[0])});case"Bmatrix":case"Bmatrix*":return new to(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:vd(E[0])});case"vmatrix":case"vmatrix*":return new to(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:vd(E[0])});case"Vmatrix":case"Vmatrix*":return new to(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:vd(E[0])});case"matrix":case"matrix*":return new to(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:vd(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new to(a,y,b,{mathstyleName:"scriptstyle",columns:vd(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new to(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 to(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new to(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ee=0;for(const ye of y)ee=Math.max(ee,ye.length);const ie=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let se=2;for(;se<ee;)ie.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),se+=2;return ie.push({gap:0}),new to(a,y,b,{arraycolsep:0,columns:ie,minColumns:2})}}return new to(a,y,b,{mathstyleName:"textstyle"})}function vd(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 Fg(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof to);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof to)){const E=a.at(a.position);if(b=E,!b.parent.parent){let ee=a.extractAtoms([a.position,a.lastOffset]),ie=a.extractAtoms([0,a.position]);ie.length===0&&(ie=Xf()),ee.length===0&&(ee=Xf());let se;return y.endsWith("column")?(se=Bu("split",[[ie,ee]]),a.root=se,yd(se,0,0)?bd(a,se,0,0):yd(se,0,1)?bd(a,se,0,1):a.position=a.offsetOf(E)):(se=Bu("lines",[[ie],[ee]]),a.root=se,yd(se,0,0)?bd(a,se,0,0):yd(se,1,0)?bd(a,se,1,0):a.position=a.offsetOf(E)),[void 0,[0,0]]}if(b.parent instanceof Jo){const ee=b.parent;let ie=a.extractAtoms([a.position,a.offsetOf(ee.lastChild)]),se=a.extractAtoms([a.offsetOf(ee.firstChild),a.position]);se.length===0&&(se=Xf()),ie.length===0&&(ie=Xf());let ye="pmatrix";const Ee=ee.leftDelim,Pe=ee.rightDelim;Ee==="("&&(Pe===")"||Pe==="?")?ye="pmatrix":(Ee==="["||Ee==="\\lbrack")&&(Pe==="]"||Pe==="\\rbrack"||Pe==="?")?ye="bmatrix":Ee==="\\vert"&&Pe==="\\vert"?ye="vmatrix":Ee==="\\Vert"&&Pe==="\\Vert"?ye="Vmatrix":(Ee==="{"||Ee==="\\lbrace")&&(Pe==="."||Pe==="?")&&(ye="cases");const He=Bu(ye,y.endsWith("column")?[[se,ie]]:[[se],[ie]]);return ee.parent.addChildBefore(He,ee),ee.parent.removeChild(ee),yd(He,0,0)?bd(a,He,0,0):y.endsWith("column")?yd(He,0,1)?bd(a,He,0,1):a.position=a.offsetOf(b):yd(He,1,0)?bd(a,He,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof to?[b.parent,b.parentBranch]:[void 0,[0,0]]}function yd(a,y,b){const E=a.getCell(y,b);return!E||E.length!==2?!1:E[1].type==="placeholder"}function Tg(a,y,b,E){const ee=y.getCell(b,E);return ee?[a.offsetOf(ee[0]),a.offsetOf(ee[ee.length-1])]:-1}function bd(a,y,b,E){const ee=Tg(a,y,b,E);typeof ee!="number"&&a.setSelection(ee)}function Gf(a,y,b,E,ee){const ie=y.getCell(b,E);ie&&a.setPositionHandlingPlaceholder(a.offsetOf(ie[ee==="start"?0:ie.length-1]))}function Yf(a,y){const[b,[E,ee]]=Fg(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(ee),Gf(a,b,E,ee+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(ee),Gf(a,b,E,ee,"start");break}}function L0(a){return a.contentWillChange({inputType:"insertText"})?(Yf(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Pg(a){return a.contentWillChange({inputType:"insertText"})?(Yf(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function F0(a){return a.contentWillChange({inputType:"insertText"})?(Yf(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Ig(a){return a.contentWillChange({inputType:"insertText"})?(Yf(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function T0(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 ee=a.at(a.position),ie=ee.type==="array"?ee:a.parentEnvironment;return ie.environmentName=y,ie.leftDelim=b,ie.rightDelim=E,a.contentDidChange({}),!0}function P0(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof to);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof to){const E=b.parent,ee=b.parentBranch;let ie;switch(y){case"row":if(E.rowCount>1){E.removeRow(ee[0]);const se=E.getCell(Math.max(0,ee[0]-1),ee[1]);ie=a.offsetOf(se[se.length-1])}break;case"column":if(E.colCount>E.minColumns){E.removeColumn(ee[1]);const se=E.getCell(ee[0],Math.max(0,ee[1]-1));ie=a.offsetOf(se[se.length-1])}break}ie&&a.setPositionHandlingPlaceholder(ie)}}function Ng(a){return a.contentWillChange({inputType:"deleteContent"})?(P0(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Og(a){return a.contentWillChange({inputType:"deleteContent"})?(P0(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}du({addRowAfter:L0,addColumnAfter:F0,addRowBefore:Pg,addColumnBefore:Ig,removeRow:Ng,removeColumn:Og,setEnvironment:T0},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Xf(){return[new Ia]}var I0=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}};I0.maximumDepth=1e3;var Rg=I0;function kh(a,y,b){if(a.at(y).mode!=="text")return y;const E=b==="backward"?-1:1;let ee;if(he.test(a.at(y).value)){let ie=y,se;do se=a.at(ie).mode==="text"&&he.test(a.at(ie).value),ie+=E;while(a.at(ie)&&se);ee=a.at(ie)?ie-2*E:ie-E}else if(/\s/.test(a.at(y).value)){let ie=y;for(;a.at(ie)&&a.at(ie).mode==="text"&&/\s/.test(a.at(ie).value);)ie+=E;if(!a.at(ie))ee=ie-E;else{let se=!0;do se=a.at(ie).mode==="text"&&!/\s/.test(a.at(ie).value),ie+=E;while(a.at(ie)&&se);ee=a.at(ie)?ie-2*E:ie-E}}else{let ie=y;for(;a.at(ie)&&a.at(ie).mode==="text"&&!/\s/.test(a.at(ie).value);)ie+=E;ee=a.at(ie)?ie:ie-E;let se=!0;for(;a.at(ie)&&se;)se=a.at(ie).mode==="text"&&/\s/.test(a.at(ie).value),se&&(ee=ie),ie+=E;ee=a.at(ie)?ie-2*E:ie-E}return ee-(E>0?0:1)}function jd(a,y,b){var E,ee,ie,se,ye,Ee,Pe;const He=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let ct=a.at(a.position);if(y==="forward"&&(ct.type==="subsup"?(ct=ct.rightSibling,ct||(ct=a.at(a.position+1))):ct=a.at(a.position+1)),!ct)return a.announce("plonk"),!1;let _t=a.offsetOf(ct);if(ct instanceof uu)_t=kh(a,_t,y);else if(ct instanceof Nl)if(ct.isSuggestion)for(console.assert(y==="forward");ct&&ct instanceof Nl;)ct.isSuggestion=!1,_t=a.offsetOf(ct),ct=ct.rightSibling;else if(y==="forward"){if(ct=ct.rightSibling,!ct||!(ct instanceof Nl))return a.announce("plonk"),!1;for(;ct&&ct instanceof Nl&&/[a-zA-Z\*]/.test(ct.value);)_t=a.offsetOf(ct),ct=ct.rightSibling}else{if(ct=ct.leftSibling,!ct||!(ct instanceof Nl))return a.announce("plonk"),!1;for(;ct&&ct instanceof Nl&&/[a-zA-Z\*]/.test(ct.value);)_t=a.offsetOf(ct),ct=ct.leftSibling}else if(y==="forward"&&ct.type==="mopen"){let fn=0;do ct.type==="mopen"?fn+=1:ct.type==="mclose"&&(fn-=1),ct=ct.rightSibling;while(!ct.isLastSibling&&fn!==0);_t=a.offsetOf(ct.leftSibling)}else if(y==="backward"&&ct.type==="mclose"){let fn=0;do ct.type==="mopen"?fn+=1:ct.type==="mclose"&&(fn-=1),ct=ct.leftSibling;while(!ct.isFirstSibling&&fn!==0);_t=a.offsetOf(ct)}else if(y==="backward")if(ct.type==="first")for(;_t>0&&ct.type==="first";)_t-=1,ct=a.at(_t);else{const fn=ct.type;ct.type==="subsup"&&(_t=a.offsetOf(a.at(_t).leftSibling)),_t-=1;let xn=(ee=a.at(_t))==null?void 0:ee.type;for(;_t>=0&&xn===fn;)((ie=a.at(_t))==null?void 0:ie.type)==="subsup"?_t=a.offsetOf(a.at(_t).leftSibling):_t-=1,xn=a.at(_t).type}else{const{type:fn}=ct;let xn=(se=a.at(_t))==null?void 0:se.type;const{lastOffset:Or}=a;for(;_t<=Or&&(xn===fn||xn==="subsup");){for(;((ye=a.at(_t).rightSibling)==null?void 0:ye.type)==="subsup";)_t=a.offsetOf(a.at(_t).rightSibling);_t+=1,xn=(Ee=a.at(_t))==null?void 0:Ee.type}_t-=1}if((Pe=b==null?void 0:b.extend)!=null&&Pe){if(!a.setSelection(a.anchor,_t))return a.announce("plonk"),!1}else{if(_t===a.position)return a.announce("plonk"),!1;a.position=_t}return a.announce("move",He),a.mathfield.stopCoalescingUndo(),!0}function $u(a,y,b){var E,ee;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[ye,Ee]=g0(a);ye!==void 0&&Ee!==void 0&&a.deleteAtoms([ye,Ee])}if(y==="upward")return zg(a,b);if(y==="downward")return Kg(a,b);if(b.extend){let ye=Qf(a,a.position,y);ye<0&&(ye=0),ye>a.lastOffset&&(ye=a.lastOffset);const Ee=a.setSelection(a.anchor,ye);return a.mathfield.stopCoalescingUndo(),Ee}if(a.selectionIsPlaceholder){a.collapseSelection(y);const ye=$u(a,y);return a.mathfield.stopCoalescingUndo(),ye}let ie=a.position;const se=ie;if(a.collapseSelection(y)?(ie=a.position,N0(a,ie)||(ie=Qf(a,ie,y))):ie=Qf(a,ie,y),ie<0||ie>a.lastOffset){let ye=!0;return a.silenceNotifications||(ye=(ee=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))!=null?ee:!0),ye&&a.announce("plonk"),ye}return a.setPositionHandlingPlaceholder(ie),a.mathfield.stopCoalescingUndo(),a.announce("move",se),!0}function Qf(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||N0(a,y)?y:Qf(a,y,b)}function N0(a,y){var b;const E=a.at(y);let ee=E.parent;for(;ee&&!ee.inCaptureSelection;)ee=ee.parent;return!(ee!=null&&ee.inCaptureSelection||(b=E.parent)!=null&&b.skipBoundary&&(!E.isFirstSibling&&E.isLastSibling||E.type==="first")||a.mathfield.hasEditablePrompts&&!E.parentPrompt)}function _g(a,y,b){let E=1/0,ee=0;for(;ee<y.length;ee++){const ie=Il(a.getHTMLElement(y[ee])).right,se=Math.abs(b-ie);if(se<=E)E=se;else break}return y[ee-1]}function Jf(a,y,b,E,ee){const ie=a.mathfield.hasEditablePrompts,se=ie?b.filter(Pe=>Pe.type==="prompt"&&!Pe.captureSelection):b,ye=Il(a.mathfield.getHTMLElement(y)).right,Ee=a.offsetOf(_g(a.mathfield,se,ye))-(ie?1:0);if(E){const[Pe,He]=a.selection.ranges[0];let ct;Ee<(ee==="up"?Pe:He)?ct={ranges:[[Ee,He]],direction:"backward"}:ct={ranges:[[Pe,Ee]],direction:"forward"},a.setSelection(ct)}else a.setPositionHandlingPlaceholder(Ee);a.announce(`move ${ee}`)}function zg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("backward");const ie=()=>{var Ee,Pe;let He=!0;return a.silenceNotifications||(He=(Pe=(Ee=a.mathfield.host)==null?void 0:Ee.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Pe:!0),a.announce(He?"plonk":"line"),He},se=a.at(a.position);let ye=se;for(;ye&&ye.parentBranch!=="below"&&!(Array.isArray(ye.parentBranch)&&ye.parent instanceof to);)ye=ye.parent;if(Array.isArray(ye==null?void 0:ye.parentBranch)&&ye.parent instanceof to){const Ee=ye.parent;if(ye.parentBranch[0]<1)return ie();const Pe=ye.parentBranch[0]-1,He=Ee.array[Pe][ye.parentBranch[1]];if(!He.some(_t=>_t.type==="prompt"&&!_t.captureSelection)&&a.mathfield.hasEditablePrompts)return ie();Jf(a,se,He,ee,"up")}else if(ye){const Ee=(E=ye.parent.branch("above"))!=null?E:ye.parent.createBranch("above");if(!Ee.some(He=>He.type==="prompt"&&He.placeholderId)&&a.mathfield.hasEditablePrompts)return ie();Jf(a,se,Ee,ee,"up")}else return ie();return a.mathfield.stopCoalescingUndo(),!0}function Kg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("forward");const ie=()=>{var Ee,Pe;let He=!0;return a.silenceNotifications||(He=(Pe=(Ee=a.mathfield.host)==null?void 0:Ee.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Pe:!0),a.announce(He?"plonk":"line"),He},se=a.at(a.position);let ye=se;for(;ye&&ye.parentBranch!=="above"&&!(Array.isArray(ye.parentBranch)&&ye.parent instanceof to);)ye=ye.parent;if(Array.isArray(ye==null?void 0:ye.parentBranch)&&ye.parent instanceof to){const Ee=ye.parent;if(ye.parentBranch[0]+1>Ee.array.length-1)return ie();const Pe=ye.parentBranch[0]+1,He=Ee.array[Pe][ye.parentBranch[1]];if(!He.some(_t=>_t.type==="prompt"&&!_t.captureSelection)&&a.mathfield.hasEditablePrompts)return ie();Jf(a,se,He,ee,"down")}else if(ye){const Ee=(E=ye.parent.branch("below"))!=null?E:ye.parent.createBranch("below");if(!Ee.some(He=>He.type==="prompt")&&a.mathfield.hasEditablePrompts)return ie();Jf(a,se,Ee,ee,"down")}else return ie();return!0}function O0(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 Hg(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 Wg(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(),Hg(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 ku({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(),Wg(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 ku({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 Zg(){function a(Ee){const Pe=[],He=[];return[...Ee.querySelectorAll(`input, select, textarea, a[href], button,
[tabindex], audio[controls], video[controls],
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((_t,fn)=>{const xn=E(_t);xn===0?Pe.push(_t):He.push({documentOrder:fn,tabIndex:xn,node:_t})}),He.sort((_t,fn)=>_t.tabIndex===fn.tabIndex?_t.documentOrder-fn.documentOrder:_t.tabIndex-fn.tabIndex).map(_t=>_t.node).concat(Pe)}function y(Ee){return!(!b(Ee)||ee(Ee)||E(Ee)<0)}function b(Ee){return!(Ee.disabled||Ee.type==="hidden"&&Ee.tagName.toUpperCase()==="INPUT"||ye(Ee))}function E(Ee){var Pe;const He=Number.parseInt((Pe=Ee.getAttribute("tabindex"))!=null?Pe:"NaN",10);return Number.isNaN(He)?Ee.contentEditable==="true"||(Ee.nodeName==="AUDIO"||Ee.nodeName==="VIDEO")&&Ee.getAttribute("tabindex")===null?0:Ee.tabIndex:He}function ee(Ee){return Ee.tagName.toUpperCase()==="INPUT"&&Ee.type==="radio"&&!se(Ee)}function ie(Ee,Pe){for(const He of Ee)if(He.checked&&He.form===Pe)return He;return null}function se(Ee){var Pe;if(!Ee.name)return!0;const ct=((Pe=Ee.form)!=null?Pe:Ee.ownerDocument).querySelectorAll('input[type="radio"][name="'+Ee.name+'"]'),_t=ie(ct,Ee.form);return!_t||_t===Ee}function ye(Ee){if(!ot()||Ee===document.activeElement||Ee.contains(document.activeElement))return!1;if(getComputedStyle(Ee).visibility==="hidden")return!0;const Pe=Ee.getBoundingClientRect();if(Pe.width===0||Pe.height===0)return!0;for(;Ee;){if(getComputedStyle(Ee).display==="none")return!0;Ee=Ee.parentElement}return!1}return ot()?a(document.body):[]}function $l(a,y,b="forward"){const E=a.position;if(Array.isArray(y)){const ee=a.offsetOf(y[0]),ie=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ee,ie):a.setSelection(ie,ee),a.announce("move",E),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?$l(a,[y.leftSibling,y]):$l(a,[y,y.leftSibling])}function Hu(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,ee;const ie=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&$u(a,y);let se;const ye=a.at(a.anchor).parentPrompt;ye?y==="forward"?se=a.offsetOf(ye)+1:se=a.offsetOf(ye.leftSibling):se=Math.max(a.position+ie,0);const Ee=Dh(a,se,y);if(!Ee||y==="forward"&&a.offsetOf(Ee)<se||y==="backward"&&a.offsetOf(Ee)>se){if(!b||!((ee=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||ee))return a.announce("plonk"),!1;const He=Zg();if(!document.activeElement||He.length<=1)return a.announce("plonk"),!1;let ct=He.indexOf(document.activeElement)+ie;return ct<0&&(ct=He.length-1),ct>=He.length&&(ct=0),He[ct].focus(),a.mathfield.stopCoalescingUndo(),!0}return Hu(a,Ee),!0}function Dh(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)}du({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 ee=b.parentBranch;let ie;if(typeof ee=="string"&&(ie=y[ee]),!ie){const ye=b.subsupPlacement?_0(a):R0(a);return a.mathfield.stopCoalescingUndo(),ye}E.branch(ie)||E.createBranch(ie);const se=a.setSelection(a.getBranchRange(a.offsetOf(E),ie));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=>O0(a),moveToNextChar:a=>$u(a,"forward"),moveToPreviousChar:a=>$u(a,"backward"),moveUp:a=>$u(a,"upward"),moveDown:a=>$u(a,"downward"),moveToNextWord:a=>jd(a,"forward"),moveToPreviousWord:a=>jd(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,ee;if(a.position===a.lastOffset&&a.anchor===a.lastOffset)return $f(a,"forward");const ie=a.at(a.position);if(ie.mode==="text"){if(a.selectionIsCollapsed){let _t=ie;for(;_t&&_t.mode==="text";)_t=_t.leftSibling;let fn=ie;for(;((y=fn.rightSibling)==null?void 0:y.mode)==="text";)fn=fn.rightSibling;if(_t&&fn)return $l(a,[_t,fn])}if(ie.rightSibling.mode==="text"){let _t=ie;for(;_t&&_t.mode==="text";)_t=_t.rightSibling;return _t?(Hu(a,(b=_t.leftSibling)!=null?b:_t),a.mathfield.switchMode("math"),!0):Hu(a,a.lastOffset)}}const ye=a.at(a.anchor).parentPrompt,Ee=ye?a.offsetOf(ye)+1:Math.max(a.position+1,0),Pe=Dh(a,Ee,"forward");if(Pe)return Hu(a,Pe);const He=z0(a,ie,_t=>_t.type==="leftright"||_t.type==="text","forward");if(He){if(He.mode==="text"){let _t=He;for(;_t&&_t.mode==="text";)_t=_t.rightSibling;return $l(a,[(E=He.leftSibling)!=null?E:He,(ee=_t.leftSibling)!=null?ee:_t])}return $l(a,He)}const ct=ie.parent;if(ct){if(ct.type==="leftright"||ct.type==="surd")return $l(a,ct);if(ie.parentBranch==="superscript"&&ct.subscript)return $l(a,ct.subscript);if(ie.parentBranch==="above"&&ct.below)return $l(a,ct.below);if(ie.parentBranch==="superscript"||ie.parentBranch==="subscript")return Hu(a,ct);if(ie.parentBranch==="above"||ie.parentBranch==="below")return $l(a,ct)}return Hu(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 ye=b;for(;ye&&ye.mode==="text";)ye=ye.leftSibling;let Ee=b;for(;((y=Ee.rightSibling)==null?void 0:y.mode)==="text";)Ee=Ee.rightSibling;if(ye&&Ee)return $l(a,[ye,Ee])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?Hu(a,b):Hu(a,0)}const ee=a.at(a.anchor).parentPrompt,ie=ee?a.offsetOf(ee.leftSibling):Math.max(a.position-1,0),se=Dh(a,ie,"backward");if(se)return Hu(a,se);if(E==="math"){const ye=z0(a,b,Pe=>Pe.type==="leftright"||Pe.type==="text","backward");if(ye){if(ye.mode==="text"){let Pe=ye;for(;Pe&&Pe.mode==="text";)Pe=Pe.leftSibling;return $l(a,[ye,Pe])}return $l(a,ye)}const Ee=b.parent;if(Ee){if(Ee.type==="leftright"||Ee.type==="surd")return $l(a,Ee);if(b.parentBranch==="subscript"&&Ee.superscript)return $l(a,Ee.superscript);if(b.parentBranch==="below"&&Ee.above)return $l(a,Ee.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return Hu(a,Ee);if(b.parentBranch==="above"||b.parentBranch==="below")return $l(a,Ee)}return Hu(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}),du({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 ie=y.rightSibling;for(;ie&&!b(ie);)ie=ie.rightSibling;return ie}let ee=y.leftSibling;for(;ee&&!b(ee);)ee=ee.leftSibling;return ee}function qf(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1,ie="";for(;!ee;){const se=a.at(E);ee=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),ee||(se.mode="text",se.command=se.value,se.verbatimLatex=void 0,ie+=se.value),E-=1,y-=1}a.contentDidChange({data:ie,inputType:"insertText"})}function xd(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1;const ie=[];for(;!ee;){const se=a.at(E);ee=y===0||!se||se.type==="first"||se.isFirstSibling||se.mode!=="text"||se.value===" "||typeof b=="function"&&!b(se),ee||(ie.push(Wr.serialize([se],{defaultMode:"math"})),se.mode="math"),E-=1,y-=1}Bh(a),a.contentDidChange({data:Ha(ie),inputType:"insertText"})}function Bh(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 jg(a){let y="",b=a.position,E=!1;for(;!E;){const ee=a.at(b);E=!(ee&&(ee.mode==="text"||ee.mode==="math"&&ee.type&&/mord|mpunct/.test(ee.type))),E||(y=ee.value+y),b-=1}return y}function Ug(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!Pf(b))return!1;const ee=_d(b);if(!E.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ee));const ie=jg(E)+ee;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ee))return!0;if(/[\^_]/.test(ee))return/(^|\s)[a-zA-Z][^_]$/.test(ie)&&xd(E,1),!0;const se={")":"(","}":"{","]":"["}[ee],{parent:ye}=E.at(E.position);if(se&&ye instanceof Jo&&ye.leftDelim===se)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(ie))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ee))return!0;if(/(^|[^a-zA-Z'])[a-zA-Z] $/.test(ie))return xd(E,1),!1;if(/\D\.[^\d\s]$/.test(ie)){xd(E,1);const Ee=E.at(E.position);return Ee.value="\u22C5",Ee.style.variant="normal",Ee.command="\\cdot",Ee.verbatimLatex=void 0,E.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(ie)||/\.\d$/.test(ie)||/\([\d+\-.]$/.test(ie))return xd(E,1),!0;if(/\([a-z][,;]$/.test(ie))return xd(E,2),!0;if(/[\d+\-=><*|]$/.test(ee))return Bh(E),!0}else{if(y==="[Space]")return qf(E,void 0,se=>/[a-z][:,;.]$/.test(se.value)),!0;if(/[a-zA-Z]{3,}$/.test(ie)&&!/(dxd|abc|xyz|uvw)$/.test(ie))return qf(E,void 0,se=>/[a-zA-Z]/.test(se.value)),!0;if(/(^|\W)(if)$/i.test(ie))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(ie)&&!/(αβγ)$/.test(ie))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(ee==="?"||ee==="."&&!/[\d-+]\.$/.test(ie))return!0}return!1}function Vg(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>"+(vh(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 Gg(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=K0();y.innerHTML=""}else{const y=Of("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function K0(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(cu("keystroke-caption"),cu("core"),Of("mathlive-keystroke-caption-panel"))}function Yg(){document.getElementById("mathlive-keystroke-caption-panel")&&(bh("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function H0(a,y){var b,E,ee;const{model:ie}=a,se=p0(y);if(y.isTrusted){Rm(y);const fn=ff();a.keyboardLayout!==fn.id&&(a.keyboardLayout=fn.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Vg(a,se),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let ye,Ee="",Pe;const He=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(ie.mode==="math")if(se==="[Backspace]")He.pop();else if(!Pf(y))a.flushInlineShortcutBuffer();else{const fn=_d(y),xn=[...(E=(b=He[He.length-1])==null?void 0:b.keystrokes)!=null?E:[],fn];He.push({state:ie.getState(),keystrokes:xn,leftSiblings:Xg(a)});let Or=0,bi="";for(;!ye&&Or<xn.length;)Pe=He.length-(xn.length-Or),bi=xn.slice(Or).join(""),ye=Nc(He[Pe].leftSiblings,bi,a.options.inlineShortcuts),!ye&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(bi)&&(ye=a.options.onInlineShortcut(a,bi)),Or+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(ye?a.switchMode("math"):Ug(a,se,y)&&(a.switchMode({math:"text",text:"math"}[ie.mode]),Ee=""))}if(!ye){if(Ee||(Ee=jm(a.keybindings,ie.mode,y)),!Ee&&(se==="[Enter]"||se==="[Return]")){let fn=!1;return ie.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(fn=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),fn||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),ie.contentDidChange({inputType:"insertLineBreak"})),fn}if((!Ee||se==="[Space]")&&ie.mode==="math"){if(se==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return Ga.insert(ie,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),Ee="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const fn=ie.at(ie.position+1),xn=ie.at(ie.position-1);if((fn==null?void 0:fn.mode)==="text"||(xn==null?void 0:xn.mode)==="text")return Ga.insert(ie," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ee=ie.at(ie.position))!=null&&ee.isDigit()&&window.MathfieldElement.decimalSeparator===","&&_d(y)===","&&(Ee="insertDecimalSeparator")}}if(!ye&&!Ee){if(ie.mathfield.smartFence){if(Fh(ie,_d(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:fn}=ie.at(ie.position);if(fn instanceof Jo&&fn.rightDelim==="?"&&ie.at(ie.position).isLastSibling&&/^[)}\]|]$/.test(se))return a.snapshot(),fn.isDirty=!0,fn.rightDelim=se,ie.position+=1,ie.selectionDidChange(),ie.contentDidChange({data:_d(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!ie.selectionIsCollapsed){const xn=_d(y);if(xn==="("||xn==="{"||xn==="["){const Or={"(":"(","{":"\\lbrace","[":"\\lbrack"}[xn],bi={"(":")","{":"\\rbrace","[":"\\rbrack"}[xn],[Pr,ti]=Gs(ie.selection);return a.snapshot(),ie.position=ti,Ga.insert(ie,bi,{format:"latex"}),ie.position=Pr,Ga.insert(ie,Or,{format:"latex"}),ie.setSelection(Pr+1,ti+1),ie.contentDidChange({data:xn,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const ct=ie.at(Math.max(ie.position,ie.anchor)),{parent:_t}=ct;if(Ee==="moveAfterParent"&&(_t==null?void 0:_t.type)==="leftright"&&ct.isLastSibling&&a.options.smartFence&&Fh(ie,".",a.defaultStyle)&&(Ee="",Qs(a)),a.keyboardDelegate.cancelComposition(),Ee)a.executeCommand(Ee);else if(ye){const fn=a.effectiveStyle;ie.setState(He[Pe].state);const xn=He[He.length-1].keystrokes;for(const Or of xn)Ga.insert(ie,Or,{silenceNotifications:!0,style:fn});a.snapshot("insert-shortcut"),ie.setState(He[Pe].state),ie.deferNotifications({content:!0,selection:!0,data:ye,type:"insertText"},()=>(Ga.insert(ie,ye,{format:"latex",style:fn}),Bh(a.model),ye.endsWith(" ")&&(a.switchMode("text"),Ga.insert(ie," ",{style:fn,mode:"text"})),a.snapshot(),ie.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,ie.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function Lh(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 ee=Ds(y);const ie=window.mathVirtualKeyboard;if(ie!=null&&ie.isShifted&&(ee=typeof ee=="string"?ee.toUpperCase():ee.map(Ee=>Ee.toUpperCase())),b.simulateKeystroke){let Ee=!0;for(const Pe of ee)H0(a,new KeyboardEvent("keypress",{key:Pe}))&&(Ee=!1);if(Ee)return}const se=E.at(E.position),ye=we(we({},se.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(Gs(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Nf(a);for(const Ee of ee)Ga.insert(E,Ee);a.snapshot("insert-latex"),pf(a)});else if(E.mode==="text"){for(const Ee of ee)Ga.insert(E,Ee,{style:ye});a.snapshot("insert-text")}else if(E.mode==="math")for(const Ee of ee)Qg(a,Ee,ye,se);a.dirty=!0,a.scrollIntoView()}function Xg(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 Qg(a,y,b,E){const ee=a.model;let ie={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(ie=["insert",a.options.mathModeSpace]),ie){a.executeCommand(ie);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){Jg(ee),Ga.insert(ee,y,{style:b}),a.snapshot(),O0(ee),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=we({},b),se.style.variant&&(b.variant=se.style.variant),se.style.variantStyle&&(b.variantStyle=se.style.variantStyle))}Ga.insert(ee,y,{style:b}),a.snapshot(`insert-${ee.at(ee.position).type}`)}function Jg(a){a.selectionIsCollapsed||(a.deleteAtoms(Gs(a.selection)),a.mathfield.snapshot("delete"))}function Fh(a,y,b){if(!y||a.mode!=="math")return!1;const E=a.at(a.position),{parent:ee}=E,ie={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!ie)return!1;const se=te[ie],ye=re[ie];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[Ee,Pe]=Gs(a.selection),He=a.extractAtoms([Ee,Pe]),ct=ee.addChildrenAfter([new Jo("left...right",He,{leftDelim:ie,rightDelim:ye})],a.at(Ee));return a.setSelection(a.offsetOf(ct.firstChild),a.offsetOf(ct.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ie,inputType:"insertText"}),!0}if(ie==="|"){const Ee=ee instanceof Jo?ee.leftDelim+ee.rightDelim:"";if(Ee==="\\lbrace\\rbrace"||Ee==="\\{\\}"||Ee==="\\lbrace?")return a.mathfield.snapshot(),Ga.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ie,inputType:"insertText"}),!0}if(ye){if(ee instanceof Jo&&ee.firstChild===E&&(ee.leftDelim==="?"||ee.leftDelim==="."))return ee.leftDelim=ie,ee.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ee instanceof Jo)){let ct=E;for(;ct&&!(ct.type==="mclose"&&ct.value===ye);)ct=ct.rightSibling;if(ct){a.mathfield.snapshot();const _t=a.extractAtoms([a.offsetOf(E),a.offsetOf(ct)]);return _t.pop(),ee.addChildrenAfter([new Jo("left...right",_t,{leftDelim:ie,rightDelim:ye})],E),a.position=a.offsetOf(ee.firstChild)+1,a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const Ee=a.offsetOf(E.lastSibling);let Pe;for(Pe=a.position;Pe<=Ee;Pe++){const ct=a.at(Pe);if(ct instanceof Jo&&(ct.leftDelim==="?"||ct.leftDelim===".")&&W0(ie,ct.rightDelim))break}const He=a.at(Pe);if(Pe<=Ee&&He instanceof Jo){He.leftDelim=ie,a.mathfield.snapshot();let ct=a.extractAtoms([a.position,Pe-1]);return ct=ct.filter(_t=>_t.type!=="first"),He.addChildren(ct,He.parentBranch),a.position+=1,a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ee instanceof Jo&&(ee.leftDelim==="?"||ee.leftDelim===".")&&W0(ie,ee.rightDelim)){ee.isDirty=!0,ee.leftDelim=ie,a.mathfield.snapshot();const ct=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const _t of ct)ee.parent.addChildBefore(_t,ee);return a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ee instanceof Jo&&ee.leftDelim==="|")){if(a.mathfield.snapshot(),Ga.insert(a,`\\left${ie}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const ct=a.offsetOf(E.lastSibling),_t=a.extractAtoms([a.position,ct]);a.at(a.position).body=_t,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(se){let Ee=E;for(;Ee;){if(Ee.type==="mopen"&&Ee.value===se){a.mathfield.snapshot();const fn=Ee.leftSibling,xn=a.extractAtoms([a.offsetOf(Ee.leftSibling),a.offsetOf(E)]);xn.shift();const Or=new Jo("left...right",xn,{leftDelim:se,rightDelim:ie});return ee.addChildrenAfter([Or],fn),a.position=a.offsetOf(Or),a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}Ee=Ee.leftSibling}if(ee instanceof Jo&&E.isLastSibling&&Th(ee.leftDelim,ie))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=ie,a.position+=1,a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const Pe=a.offsetOf(E.firstSibling);let He;for(He=a.position;He>=Pe;He--){const fn=a.at(He);if(fn instanceof Jo&&(fn.rightDelim==="?"||fn.rightDelim===".")&&Th(fn.leftDelim,ie))break}const ct=a.at(He);if(He>=Pe&&ct instanceof Jo)return a.mathfield.snapshot(),ct.rightDelim=ie,ct.addChildren(a.extractAtoms([He,a.position]),ct.parentBranch),a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ee instanceof Jo&&(ee.rightDelim==="?"||ee.rightDelim===".")&&Th(ee.leftDelim,ie))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=ie,ee.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(E.lastSibling)]),ee.parentBranch),a.position=a.offsetOf(ee),a.contentDidChange({data:ie,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const _t=ee.parent;return _t instanceof Jo&&(_t.rightDelim==="?"||_t.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(_t),Fh(a,ie,b)):!1}return!1}function Th(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):re[a]===y:!0}function W0(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):te[y]===a:!0}du({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:Gg,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)=>(Lh(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 ee="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),ie=0;for(;E.includes(ee)&&ie<100;){if(ie===99)return console.error("could not find a unique ID after 100 tries"),!1;ee="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),ie++}return a.insert(`\\placeholder[${y!=null?y:ee}]{}`,b),!0}}),du({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"}),du({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"}),Qs(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function $g(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=Ph(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=we(we({},a.defaultStyle),b)):a.model.deferNotifications({content:!0,type:"insertText"},()=>{E.selection.ranges.forEach(ee=>Mh(E,ee,b,{operation:"toggle"})),a.snapshot("style-change")}),!0}du({applyStyle:$g},{target:"mathfield",canUndo:!0,changeContent:!0});function Ph(a,y){var b,E,ee,ie,se,ye,Ee,Pe,He,ct;const _t={};if(typeof y.color=="string"){const xn=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";xn!==y.color&&(_t.verbatimColor=(ee=y.verbatimColor)!=null?ee:y.color),_t.color=xn}if(typeof y.backgroundColor=="string"){const xn=(se=a.backgroundColorMap((ie=y.backgroundColor)!=null?ie:y.verbatimBackgroundColor))!=null?se:"none";xn!==y.backgroundColor&&(_t.verbatimBackgroundColor=(ye=y.verbatimBackgroundColor)!=null?ye:y.backgroundColor),_t.backgroundColor=xn}typeof y.fontFamily=="string"&&(_t.fontFamily=y.fontFamily),typeof y.series=="string"&&(_t.fontSeries=y.series),typeof y.fontSeries=="string"&&(_t.fontSeries=y.fontSeries.toLowerCase()),_t.fontSeries&&(_t.fontSeries=(Ee={bold:"b",medium:"m",normal:"m"}[_t.fontSeries])!=null?Ee:_t.fontSeries),typeof y.shape=="string"&&(_t.fontShape=y.shape),typeof y.fontShape=="string"&&(_t.fontShape=y.fontShape.toLowerCase()),_t.fontShape&&(_t.fontShape=(Pe={italic:"it",up:"n",upright:"n",normal:"n"}[_t.fontShape])!=null?Pe:_t.fontShape),y.variant&&(_t.variant=y.variant.toLowerCase()),y.variantStyle&&(_t.variantStyle=y.variantStyle.toLowerCase());const fn=(He=y.size)!=null?He:y.fontSize;return typeof fn=="number"?_t.fontSize=Math.max(1,Math.min(10,fn)):typeof fn=="string"&&(_t.fontSize=(ct={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[fn.toLowerCase()])!=null?ct:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[fn]),_t}function Ih(a){let[y,b]=Gs(a.selection);if(y=Z0(a,y,"backward"),b=Z0(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 Z0(a,y,b){var E,ee,ie;let se=a.at(y);if(!se)return y;const ye=b==="forward"?1:-1;if(se.mode==="text"){for(;se&&!(se.mode!=="text"||!he.test(se.value));)y+=ye,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+=ye,se=a.at(y);else for(;se&&se.mode==="latex"&&/[a-zA-Z\*]/.test(se.value);)y+=ye,se=a.at(y);else if(se.value==="{"){if(b==="forward"){for(;se&&se.mode==="latex"&&se.value!=="}";)y+=ye,se=a.at(y);return y}return y-1}else if(se.value==="}"){if(b==="backward"){for(;se&&se.mode==="latex"&&se.value!=="{";)y+=ye,se=a.at(y);return y-1}return y}return y-1}if(se.mode==="math"){if(se.isDigit()){for(;(E=a.at(y+ye))!=null&&E.isDigit();)y+=ye;return b==="backward"?y-1:y}if(se.style.variant||se.style.variantStyle){let Ee=(ee=a.at(y))==null?void 0:ee.style;for(;Ee&&Ee.variant===se.style.variant&&Ee.variantStyle===se.style.variantStyle;)Ee=(ie=a.at(y+ye))==null?void 0:ie.style,y+=ye;return b==="backward"?y-1:y}return y}return y}du({selectGroup:a=>{const y=Ih(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>$u(a,"forward",{extend:!0}),extendSelectionBackward:a=>$u(a,"backward",{extend:!0}),extendToNextWord:a=>jd(a,"forward",{extend:!0}),extendToPreviousWord:a=>jd(a,"backward",{extend:!0}),extendSelectionUpward:a=>$u(a,"upward",{extend:!0}),extendSelectionDownward:a=>$u(a,"downward",{extend:!0}),extendToNextBoundary:a=>jd(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>jd(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 Sd=null,xf=0,eh=class Fu{static start(y,b,E,ee){var ie;Fu.element=y,(ie=Fu.controller)==null||ie.abort(),Fu.controller=new AbortController;const se={signal:Fu.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,se),y.addEventListener("pointerup",ee,se),y.addEventListener("pointercancel",ee,se),Nh(b)&&(Fu.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",E,se),window.addEventListener("blur",ee,se),window.addEventListener("mouseup",ee,se))}static stop(){var y;(y=Fu.controller)==null||y.abort(),Fu.controller=void 0,typeof Fu.pointerId=="number"&&(Fu.element.releasePointerCapture(Fu.pointerId),Fu.pointerId=void 0)}};function Nh(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 ee,ie=!1,se=!1,ye="none",Ee=!1,Pe=!1;const He=y.clientX,ct=y.clientY,_t=Date.now(),fn=E.field,xn=setInterval(()=>{Ee?fn.scroll({top:0,left:fn.scrollLeft-16}):Pe&&fn.scroll({top:0,left:fn.scrollLeft+16})},32);function Or(){eh.stop(),ie=!1,clearInterval(xn),a.element.classList.remove("tracking"),y&&y.preventDefault()}function bi(ti){if(!E.hasFocus()){Or();return}const Ei=ti.clientX,li=ti.clientY,sa=Nh(ti)&&ti.pointerType==="touch"?20:5;if(Date.now()<_t+500&&Math.abs(He-Ei)<sa&&Math.abs(ct-li)<sa){ti.preventDefault(),ti.stopPropagation();return}const Fa=fn.getBoundingClientRect();Pe=Ei>Fa.right,Ee=Ei<Fa.left;let ya=ee;Nh(ti)&&(ti.isPrimary||(ya=Sf(E,ti.clientX,ti.clientY,{bias:0})));const zo=Sf(E,Ei,li,{bias:Ei<=He?Ei===He?0:-1:1});ya>=0&&zo>=0&&(E.model.extendSelectionTo(ya,zo),Qs(a)),se&&Ih(E.model)}Sd&&Math.abs(Sd.x-He)<5&&Math.abs(Sd.y-ct)<5&&Date.now()<Sd.time+500?(xf+=1,Sd.time=_t):(Sd={x:He,y:ct,time:_t},xf=1);const Pr=fn.getBoundingClientRect();if(He>=Pr.left&&He<=Pr.right&&ct>=Pr.top&&ct<=Pr.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ee=Sf(a,He,ct,{bias:0}),ee>=0){if(a.element.classList.add("tracking"),y.shiftKey){const ti=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ee),v0(a.model)||ti?ye="all":ye="selection"}else a.model.at(ee).type==="placeholder"?(a.model.setSelection(ee-1,ee),ye="selection"):((b=a.model.at(ee).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ee,ee+1),ye="selection"):(a.model.position=ee,v0(a.model)?ye="all":ye="selection");a.defaultStyle={},y.detail===3||xf>2?(Or(),(y.detail===3||xf===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},ye="all")):ie||(ie=!0,eh.start(fn,y,bi,Or),(y.detail===2||xf===2)&&(se=!0,Ih(a.model),ye="all"))}a.hasFocus()||(ye="none",a.focus({preventScroll:!0}))}else Sd=null;a.stopCoalescingUndo(),ye!=="none"&&(a.model.selectionIsCollapsed&&(ye="all"),Qs(a)),y.preventDefault()}function qg(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,ee=y-(b.top+b.bottom)/2;return E*E+ee*ee}function U0(a,y,b,E,ee){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const ie=_u(a,b);if(!ie)return[1/0,null];let se=[1/0,null];if(b.hasChildren&&!b.captureSelection&&E>=ie.left&&E<=ie.right)for(const ye of b.children){const Ee=U0(a,y,ye,E,ee);Ee[0]<=se[0]&&(se=Ee)}return se[1]||(se=[qg(E,ee,ie),b]),y.set(b.id,se),se}function ev(a,y,b){const[,E]=U0(a,new Map,a.model.root,y,b);return E}function Sf(a,y,b,E){var ee;const ie=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!ie)return 0;if(y>ie.right||b>ie.bottom+8)return a.model.lastOffset;if(y<ie.left||b<ie.top-8)return 0;E=E!=null?E:{},E.bias=(ee=E.bias)!=null?ee:0;let se=ev(a,y,b);const ye=[];let Ee=se;for(;Ee;)ye.unshift(Ee),Ee=Ee.parent;for(const He of ye)if(He.captureSelection){se=He;break}let Pe=a.model.offsetOf(se);if(Pe<0)return-1;if(se.leftSibling)if(E.bias===0&&se.type!=="placeholder"){const He=_u(a,se);He&&y<(He.left+He.right)/2&&(Pe=a.model.offsetOf(se.leftSibling))}else E.bias<0&&(Pe=a.model.offsetOf(se.leftSibling));return Pe}var tv=class extends Ga{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",ee=typeof y!="string"?y.getData("application/json+mathlive"):"";if(ee)try{const ie=JSON.parse(ee);if(ie&&Array.isArray(ie)){a.snapshot();const se=Hc(ie),{model:ye}=a;ye.selectionIsCollapsed||ye.deleteAtoms(Gs(ye.selection));const Ee=ye.at(ye.position);if(Ee.parent instanceof to){console.assert(Ee.parentBranch!==void 0);const Pe=[];let He=[];se[0].type==="first"&&se.shift(),se[se.length-1].type==="first"&&se.pop();for(const xn of se)xn.type==="first"&&He.length>0?(Pe.push(He),He=[xn]):He.push(xn);He.length>0&&Pe.push(He);let ct=Number(Ee.parentBranch[0]),_t=Number(Ee.parentBranch[1]);const fn=Ee.parent.maxColumns;for(;Ee.parent.colCount-_t<Pe.length&&Ee.parent.colCount<fn;)Ee.parent.addColumn();Ee.parent.addChildrenAfter(Pe[0],Ee);for(let xn=1;xn<Pe.length;xn++)_t++,_t>=fn&&(_t=0,Ee.parent.addRowAfter(ct),ct++),Ee.parent.setCell(ct,_t,Pe[xn])}else Ee.parent.addChildrenAfter(se.filter(Pe=>Pe.type!=="first"),Ee);return ye.position=ye.offsetOf(se[se.length-1]),ye.contentDidChange({inputType:"insertFromPaste"}),Qs(a),!0}}catch(ie){}if(ee=typeof y!="string"?y.getData("application/json"):"",ee&&window.MathfieldElement.computeEngine)try{const ie=JSON.parse(ee);if(typeof ie=="object"&&"latex"in ie&&ie.latex&&(b=ie.latex),!b){const se=window.MathfieldElement.computeEngine.box(ie);se&&!se.has("Error")&&(b=se.latex)}b||(E="latex")}catch(ie){}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 ie;return[ie,b]=Mu(b),E==="auto"&&ie&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),Qs(a)),a.startRecording(),!0}return!1}insert(a,y,b){var E,ee;const ie=typeof y=="string"?y:(ee=(E=window.MathfieldElement.computeEngine)==null?void 0:E.box(y).latex)!=null?ee:"";if(!b.silenceNotifications&&!a.contentWillChange({data:ie,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 ye=a.silenceNotifications;a.silenceNotifications=!0;const Ee={"?":"\\placeholder{}","@":"\\placeholder{}"};Ee[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Gs(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 Pe=-1;Ee[0]?Ee["@"]=Ee[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(Pe=rv(a),Pe>=0&&(Ee["@"]=a.getValue(Pe,a.position,"latex"))),Ee[0]||(Ee[0]=Ee["?"]);let He=!1;const ct=Ei=>(He=!0,Ee[Ei]);let[_t,fn]=V0(a,y,ct,b);if(!fn)return!1;const xn=fn.length===1&&fn[0].type==="genfrac";xn&&Pe>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(Ee["@"]=Ee["?"],He=!1,[_t,fn]=V0(a,y,ct,b)):Pe>=0&&a.deleteAtoms([Pe,a.position]);const{parent:Or}=a.at(a.position),bi=Or.hasEmptyBranch("body");if(xn&&_t!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Or instanceof Jo&&Or.leftDelim==="("&&bi){const Ei=Or.parent,li=Or.parentBranch;Ei.removeChild(Or),Ei.setChildren(fn,li)}const Pr=a.at(a.position);Pr.parent.addChildrenAfter(fn,Pr),_t==="latex"&&typeof y=="string"&&(Or==null?void 0:Or.type)==="root"&&bi&&!He&&(Or.verbatimLatex=y),a.silenceNotifications=ye;const ti=fn[fn.length-1];if(b.selectionMode==="placeholder"){const Ei=fn.flatMap(li=>[li,...li.children]).find(li=>li.type==="placeholder");if(Ei){const li=a.offsetOf(Ei);a.setSelection(li-1,li),a.announce("move")}else ti&&(a.position=a.offsetOf(ti))}else b.selectionMode==="before"||(b.selectionMode==="after"?ti&&(a.position=a.offsetOf(ti)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(ti)));return a.contentDidChange({data:ie,inputType:"insertText"}),a.silenceNotifications=se,!0}};function V0(a,y,b,E){var ee;let ie,se=[];if(typeof y!="string"||E.format==="math-json"){const ye=window.MathfieldElement.computeEngine;if(!ye)return["math-json",[]];[ie,y]=["latex",ye.box(y).latex],se=Bl(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([ie,y]=Gu(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),se=Bl(y,{context:a.mathfield.context}),ie!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&th(se)):(E.format==="auto"||(ee=E.format)!=null&&ee.startsWith("latex"))&&(E.format==="auto"&&([ie,y]=Gu(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=Mu(y)),se=Bl(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&th(se));return Zc(se,E.style),[ie!=null?ie:"latex",se]}function nv(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof Jo&&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 Jo&&b.leftDelim==="("){let E=0,ee=0,ie=0;for(let se=0;b.body[se];se++)b.body[se].type==="genfrac"&&(E++,ee=se),ie++;ie===0&&E===1&&(a[y]=b.body[ee])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){th(y.branch(b));const E=nv(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof to)for(const b of y.cells)th(b)}}}function rv(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 ee=te[y.value];for(;!y.isFirstSibling&&!(y.type==="mopen"&&y.value===ee);)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 ee=[];for(;!y.isFirstSibling&&(G0(y)||ee.length>0);)y.type==="mclose"&&ee.unshift(y.value),y.type==="mopen"&&ee.length>0&&y.value===te[ee[0]]&&ee.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 tv;var iv=class extends Ga{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"),Qs(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 ee=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Gs(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 ie=av(y,a.mathfield.context);if(Zc(ie,b.style),!ie)return!1;const se=a.at(a.position),ye=se.parent.addChildrenAfter(ie,se);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(ye)):ye&&(a.position=a.offsetOf(ye))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function av(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 "),Bl(a,{context:y,parseMode:"text"})}new iv;function qu(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var ks=4,ou=20,pl=2*(ou+ks),nh=(a,y)=>`
<line x1="${a+ou}" y1="${y+ou}"
x2="${a>y?a+ou:7*ou+10*ks}"
y2="${a<y?y+ou:7*ou+10*ks}"/>
<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>`,Y0=(a,y)=>`
<line x1="${a+ou}" y1="${y+ou}"
x2="${a>y?a+ou:7*ou+10*ks}"
y2="${a<y?y+ou:7*ou+10*ks}"/>
<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>`,ov=`
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox=
"-2 -2 ${8*ou+10*ks+5} ${8*ou+10*ks+5}">
<rect
class="MLEP__array-insert-background rows"
x="0"
y="${pl+ks}"
height="${3*pl}"
width="${pl}"
rx="${pl/2}"/>
<rect
class="MLEP__array-insert-background columns"
x="${pl+ks}"
y="0"
height="${pl}"
width="${3*pl}"
rx="${pl/2}"/>
<g data-command='"moveDown"'>
${rh(2*(ks+pl),2*ks+3*pl,0)}
</g>
<g data-command='"moveUp"'>
${rh(2*(ks+pl),2*ks+pl,180)}
</g>
<g data-command='"moveToNextWord"'>
${rh(2*ks+3*pl,2*(ks+pl),-90)}
</g>
<g data-command='"moveToPreviousWord"'>
${rh(2*ks+pl,2*(ks+pl),90)}
</g>
<g>
<g data-command='"addColumnBefore"'>
${nh(2*ks+pl,ks)}
</g>
<g data-command='"removeColumn"'>
${Y0(2*ks+2*pl,ks)}
</g>
<g data-command='"addColumnAfter"'>
${nh(2*ks+3*pl,ks)}
</g>
<g data-command='"addRowBefore"'>
${nh(ks,2*ks+pl)}
</g>
<g data-command='"removeRow"'>
${Y0(ks,2*ks+2*pl)}
</g>
<g data-command='"addRowAfter"'>
${nh(ks,2*ks+3*pl)}
</g>
</svg>`,sv=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>`,lv=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>`,X0=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>`,uv=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>`,cv=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>`,dv=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>`,fv=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>`,hv=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>`,Oh={matrix:sv,pmatrix:lv,bmatrix:uv,Bmatrix:X0,vmatrix:cv,Vmatrix:dv},Rh={cases:fv,rcases:hv,Bmatrix:X0};function pv(a){var y,b;const E=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!E)return;let ee=0;E.forEach(xn=>{(!ee||xn.length>ee)&&(ee=xn.length)});let ie=document.getElementById("mathlive-environment-popover");ie||(ie=Of("mathlive-environment-popover"),cu("environment-popover"),cu("core"),ie.setAttribute("aria-hidden","true"));let se;const ye=ie.querySelector(".MLEP__environment-controls");ye?se=ye:(se=document.createElement("div"),ie.innerHTML="",ie.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=ov;let Ee=[],Pe="";const He=a.model.parentEnvironment.environmentName;if(jl(He)){const xn=gv(He);Pe=Oh[xn]("active");const Or=Oh,{[xn]:bi}=Or,Pr=Qe(Or,[Be(xn)]);Ee=Object.values(Pr).map(ti=>ti("inactive"))}else if(Ul(He)){const xn=vv(He);Pe=Rh[xn]("active");const Or=Rh,{[xn]:bi}=Or,Pr=Qe(Or,[Be(xn)]);Ee=Object.values(Pr).map(ti=>ti("inactive"))}else ll(He)&&(Pe=Oh.matrix("active"),Ee=Object.values(Rh).map(xn=>xn("inactive")));const ct=document.createElement("div");ct.className="MLEP__environment-delimiter-controls",ct.style.display="flex",ct.style.flexDirection="column",ct.innerHTML=`
<div class='MLEP__array-delimiter-options'>
${Pe}
${Ee.join("")}
</div>`,Pe&&se.appendChild(ct),se.querySelectorAll("[data-command]").forEach(xn=>{const Or=xn.dataset.command;let bi=Or;try{bi=JSON.parse(Or)}catch(Pr){}xn.addEventListener("mousedown",Pr=>Pr.preventDefault()),bi&&xn.addEventListener("click",()=>a.executeCommand(bi))});const fn=(b=a.field)==null?void 0:b.getBoundingClientRect();fn&&(ie.style.top=`${window.scrollY+(fn.top-ie.clientHeight-15)}px`,ie.style.left=`${fn.left+20}px`,ie.classList.add("is-visible"))}function _h(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function mv(){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&&Rs(b.environmentName)){const E=a.options.environmentPopoverPolicy;y=E==="auto"||E==="on"}}y?pv(a):_h()}function gv(a){return a.replace("*","")}function vv(a){return a==="dcases"?"cases":a}function Q0(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 yv(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 bv(a,y){var b,E,ee;const ie=(b=Q0(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(),ye=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let Ee=Math.min(ye,(E=y.height)!=null?E:se.height),Pe=zh(y.location.y,Ee,y.verticalPos,ie);Pe+Ee>window.innerHeight-8&&(y.alternateLocation?(Pe=zh(y.alternateLocation.y,Ee,y.verticalPos,ie),Pe+Ee>window.innerHeight-8&&(Pe=void 0)):Pe=void 0),Number.isFinite(Pe)||(Pe=Math.max(8,window.innerHeight-8-Ee),8+Ee>window.innerHeight-8&&(a.style.bottom="8px")),Ee=Math.min(Pe+Ee,window.innerHeight-8)-Pe;const He=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let ct=Math.min(He,(ee=y.width)!=null?ee:se.width),_t=zh(y.location.x,ct,y.horizontalPos,ie);_t+ct>window.innerWidth-8&&(y.alternateLocation?(_t=yv(y.alternateLocation.x,ct,y.verticalPos,ie),_t+ct>window.innerWidth-8&&(_t=void 0)):_t=void 0),Number.isFinite(_t)||(_t=Math.max(8,window.innerWidth-8-ct),8+ct>window.innerWidth-8&&(a.style.right="8px")),ct=Math.min(_t+ct,window.innerWidth-8)-_t,ie==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-_t-ct).toString()}px`:a.style.left=`${Math.ceil(_t).toString()}px`,a.style.top=`${Math.ceil(Pe).toString()}px`,Ee!==se.height&&(a.style.height=`${Math.ceil(Ee).toString()}px`),ct!==se.width&&(a.style.width=`${Math.ceil(ct).toString()}px`)}function xv(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function Ud(a){return"submenu"in a}function ec(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 Wh(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,Ud(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=ec(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 ee=this._declaration;if(Kh(ee)){this.enabled=!1,this.checked=!1;return}Hh(ee)&&(this.enabled=!1,this.checked=!1,this.visible=!0),ec(ee)&&(this.checked=ec(ee)&&((y=Vd(ee.checked,a))!=null?y:!1)),(ec(ee)||Ud(ee))&&(this.enabled=(b=Vd(ee.enabled,a))!=null?b:!0,this.visible=(E=Vd(ee.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(ec(ee)||Hh(ee)||Ud(ee))&&(this.label=Vd(ee.label,a),this.tooltip=Vd(ee.tooltip,a),this.ariaLabel=Vd(ee.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(Wh("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Wh("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),ec(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=vh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Wh("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,(ec(this._declaration)||Hh(this._declaration)||Ud(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(!ec(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=Q0(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(Sv(E,y.clientY-a.clientY,b)<=.2)return!1;let ie="right";if(this.submenu.element){const se=this.submenu.element.getBoundingClientRect(),ye=this.element.getBoundingClientRect();se.left<ye.left+ye.width/2&&(ie="left")}return ie==="right"?E>0:E<0}};function Sv(a,y,b){return Math.hypot(a,y)/b}function Vd(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 ef{constructor(y,b){this._element=null,this._activeMenuItem=null,this._dirty=!0;var E,ee;this.parentMenu=(E=b==null?void 0:b.parentMenu)!=null?E:null,this._submenuClass=b==null?void 0:b.submenuClass,this.columnCount=(ee=b==null?void 0:b.columnCount)!=null?ee: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,ee;this._menuItems.forEach(Pe=>Pe.updateState(y));const ie=this.hasCheck;this.hasCheck=this._menuItems.some(Pe=>Pe.visible&&Pe.hasCheck),this.hasCheck!==ie&&this._menuItems.forEach(Pe=>Pe.updateState(y));let se,ye=0;for(const Pe of this._menuItems)Pe.type==="heading"?(se&&ye===0&&(se.visible=!1),se=Pe,ye=0):Pe.type==="divider"&&se?(se.visible=ye>0,se=void 0,ye=0):se&&Pe.visible&&(ye+=1);se&&(se.visible=ye>0);let Ee=!0;for(const Pe of this._menuItems)Pe.type==="divider"?(Pe.visible=!Ee,Ee=!0):Pe.visible&&(Ee=!1);(b=this.activeMenuItem)!=null&&b.visible||(this.activeMenuItem=null),!((E=this.activeMenuItem)!=null&&E.enabled)&&((ee=this.activeMenuItem)==null?void 0:ee.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,ee,ie;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?(ee=y.element)==null||ee.focus({preventScroll:!0}):(ie=this._element)==null||ie.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let y=0,b=!1;const E=this._menuItems;for(;!b&&y<=E.length-1;){const ee=E[y];b=ee.type!=="divider"&&ee.visible&&ee.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 ee=y[b];E=ee.type!=="divider"&&ee.visible&&ee.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 ee=this._menuItems.indexOf(this._activeMenuItem),ie=1;for(;ee>=b&&ee<=E;){ee+=y>0?1:-1;const se=this._menuItems[ee];if(!se)break;if(se.visible&&se.enabled){if(ie===Math.abs(y))return this._menuItems[ee];ie+=1}}return y>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(y){this.updateIfDirty();const E=this._menuItems.filter(ee=>ee.visible&&ee.enabled).indexOf(y);return E<0?-1:E%this.columnCount}static get collator(){return ef._collator||(ef._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),ef._collator}findMenuItem(y){var b;this.updateIfDirty();const E=this._menuItems.filter(ye=>ye.type!=="divider"&&ye.visible&&ye.enabled);if(E.length===0)return null;const ee=Math.max(...E.map(ye=>ye.label.length))-y.length;if(ee<0)return null;let ie=null,se=0;for(;se<ee&&!ie;)ie=(b=E.find(ye=>ef.collator.compare(y,ye.label.substring(se,y.length))===0))!=null?b:null,se++;return ie}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&&bv(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,ee,ie;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(),(ie=(ee=this._element)==null?void 0:ee.parentNode)==null||ie.removeChild(this._element)}set openSubmenu(y){var b,E,ee,ie;const se=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((E=this.activeMenuItem.element)==null||E.setAttribute("aria-expanded",se.toString())),(ie=(ee=this.activeMenuItem)==null?void 0:ee.element)==null||ie.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=hd(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,E,ee;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=hd(y));let ie=!0;const se=this.activeSubmenu,ye=se.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":ye==null||ye.select(hd(y));break;case"ArrowRight":if((ye==null?void 0:ye.type)==="submenu")ye.select(hd(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!ye)se.activeMenuItem=se.firstMenuItem;else{const Ee=(b=se.getMenuItemColumn(ye))!=null?b:-1;if(Ee>=0&&Ee<((E=se.columnCount)!=null?E:1)-1){const Pe=se.nextMenuItem(1);Pe&&(se.activeMenuItem=Pe)}}break;case"ArrowLeft":if(se===this.rootMenu)ye||(se.activeMenuItem=se.firstMenuItem);else if((ye&&(ee=se.getMenuItemColumn(ye))!=null?ee:-1)<=0||!ye){se.hide();const Pe=se.parentMenu.activeMenuItem;if(Pe){const{element:He}=Pe;He==null||He.focus(),He==null||He.classList.remove("is-submenu-open")}}else{const Pe=se.nextMenuItem(-1);Pe&&(se.activeMenuItem=Pe)}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 Ee=se.findMenuItem(this.typingBuffer);Ee&&(se.activeMenuItem=Ee),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Pf(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const Ee=se.findMenuItem(this.typingBuffer);Ee&&(se.activeMenuItem=Ee),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else ie=!1}ie&&(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 Qu.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),Qu.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),Qu.state==="open"&&Qu.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(ge(we({},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,Qu.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 Cv=np;function rp(a){return Kh(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(ec(a)||Ud(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||ec(a)&&typeof a.checked=="function"?!0:Ud(a)?a.submenu.some(rp):!1}var ah=class{};ah.DELAY=300,ah.MAX_DISTANCE=10;function wv(a){return new Promise((y,b)=>{const E=Tf(a);E||y(!1);let ee=E;const ie=setTimeout(()=>{se.abort(),y(xv(ee,E)<ah.MAX_DISTANCE)},ah.DELAY),se=new AbortController,ye=se.signal;for(const Ee of["pointermove","pointerup","pointercancel"])window.addEventListener(Ee,Pe=>{if(Pe.type==="pointerup"||Pe.type==="pointercancel")clearTimeout(ie),se.abort(),y(!1);else if(Pe.type==="pointermove"){const He=Tf(Pe);He&&(ee=He)}},{passive:!0,signal:ye})})}function ip(a,y,b){return Vc(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:Tf(E),modifiers:hd(E)}))return a.preventDefault(),a.stopPropagation(),!0}if(a.type==="keydown"){const E=a;if(E.code==="ContextMenu"||E.code==="F10"&&E.shiftKey){const ee=y==null?void 0:y.getBoundingClientRect();if(ee&&b.show({target:y,location:{x:Math.ceil(ee.left+ee.width/2),y:Math.ceil(ee.top+ee.height/2)},modifiers:hd(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 ee=Tf(a);if(yield wv(a))return b.state!=="closed"?!1:(b.show({target:y,location:ee}),!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};xt(Object.keys(ap),"{body:auto}",{createAtom:a=>new z(ge(we({},a),{body:Rt(a.args[0]),accentChar:ap[a.command.slice(1)]}))}),xt(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=Ot(Rt(a.args[0]));return new z(ge(we({},a),{body:Rt(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),xt(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(ge(we({},a),{body:Rt(a.args[0]),svgAccent:"overarc"}))}),xt(["underarc","underparen"],"{body:auto}",{createAtom:a=>new Du(ge(we({},a),{body:Rt(a.args[0]),svgBelow:"underarc"}))}),xt("utilde","{body:auto}",{createAtom:a=>{const y=Rt(a.args[0]),b=Ot(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new Du(ge(we({},a),{body:y,svgBelow:E,boxType:Bs(y)}))}}),xt("^","{:string}",{createAtom:a=>{var y;return new Wr(ge(we({},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:"^"}))}}),xt("`","{:string}",{createAtom:a=>{var y;return new Wr(ge(we({},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:"`"}))}}),xt("'","{:string}",{createAtom:a=>{var y;return new Wr(ge(we({},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:"'"}))}}),xt('"',"{:string}",{createAtom:a=>{var y,b;return new Wr(ge(we({},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]:'"'}))}}),xt(".","{:string}",{createAtom:a=>{var y,b;return new Wr(ge(we({},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]:"."}))}}),xt("=","{:string}",{createAtom:a=>{var y,b;return new Wr(ge(we({},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]:"="}))}}),xt("~","{:string}",{createAtom:a=>{var y;return new Wr(ge(we({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"}))}}),xt("c","{:string}",{createAtom:a=>{var y;return new Wr(ge(we({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),xt("enclose","{notation:string}[style:string]{body:auto}",{createAtom:a=>{var y,b;const E=a.args,ee={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 ye of se){const Ee=ye.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(Ee)ee.strokeWidth=Ee[1],ee.strokeStyle=Ee[2],ee.strokeColor=Ee[3];else{const Pe=ye.match(/\s*([a-z]*)\s*=\s*"(.*)"/);Pe&&(Pe[1]==="mathbackground"?ee.backgroundcolor=Pe[2]:Pe[1]==="mathcolor"?ee.strokeColor=Pe[2]:Pe[1]==="padding"?ee.padding=Pe[2]:Pe[1]==="shadow"&&(ee.shadow=Pe[2]))}}ee.strokeStyle==="dashed"?ee.svgStrokeStyle="5,5":ee.strokeStyle==="dotted"&&(ee.svgStrokeStyle="1,5")}ee.borderStyle=`${ee.strokeWidth} ${ee.strokeStyle} ${ee.strokeColor}`;const ie={};return((b=E[0])!=null?b:"").split(/[, ]/).filter(se=>se.length>0).forEach(se=>{ie[se.toLowerCase()]=!0}),new rf(a.command,Rt(E[2]),ie,ee)}}),xt("cancel","{body:auto}",{createAtom:a=>{var y;return new rf(a.command,Rt(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:{}})}}),xt("bcancel","{body:auto}",{createAtom:a=>{var y;return new rf(a.command,Rt(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:{}})}}),xt("xcancel","{body:auto}",{createAtom:a=>{var y;return new rf(a.command,Rt(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:{}})}}),xt(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new Du(ge(we({},a),{body:Rt((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),xt("overbrace","{:auto}",{createAtom:a=>new Du(ge(we({},a),{body:Rt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),xt(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new Du(ge(we({},a),{body:Rt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),xt(["underbrace"],"{:auto}",{createAtom:a=>new Du(ge(we({},a),{body:Rt(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),xt(["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,ee,ie;return new Du(ge(we({},a),{svgBody:a.command.slice(1),above:((b=Rt((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:Rt((E=a.args)==null?void 0:E[1]),below:(ie=Rt((ee=a.args)==null?void 0:ee[0]))!=null?ie: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)}`}),xt(["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 fd(a.command.slice(1),ge(we({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),xt(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new fd({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],ge(we({},a),{limits:"over-under",variant:"main"}))}),xt(["lim","mod"],"",{ifMode:"math",createAtom:a=>new fd(a.command.slice(1),ge(we({},a),{limits:"over-under",variant:"main"}))}),xt(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new fd(a.command.slice(1),ge(we({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),xt(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new Wr(ge(we({},a),{body:Rt(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 ee=new ni("\xB0",{style:ge(we({},a.style),{variant:"normal",variantStyle:"up"})});return new ni([b,ee],{type:"inner",isSelected:a.isSelected,caret:E})}}),xt("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new o0(ge(we({},a),{body:Rt(a.args[1]),index:a.args[0]?Rt(a.args[0]):void 0}))}),xt(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=we({},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 Od(E[0]?Rt(E[0]):[new Ia],E[1]?Rt(E[1]):[new Ia],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}`:Ii(a.command,b,E)}}),xt(["brace","brack"],"",{infix:!0,createAtom:a=>new Od(Rt(a.args[0]),Rt(a.args[1]),ge(we({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>Ha([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),xt(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new Od(Rt(E[0]),Rt(E[1]),ge(we({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>Ha([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),xt(["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 Od(Rt(E[0]),Rt(E[1]),ge(we({},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)}`}),xt("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new Od(Rt(a.args[0]),Rt(a.args[1]),ge(we({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),xt(["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)],ge(we({},a),{limits:"auto",variant:"main"}))}),xt("smallint","",{ifMode:"math",createAtom:a=>new fd("\u222B",ge(we({},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"};xt(Object.keys(op),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=op[y.slice(1)];return new fh(b,ge(we({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),xt(["Re","Im"],"",{ifMode:"math",createAtom:a=>new fd({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],ge(we({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),xt("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new r0(ge(we({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),xt("the","{:value}",{createAtom:a=>new Wr(ge(we({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new ga({parent:y},a.style);let ee="";a.isSelected&&(ee+=" ML__selected");const ie=E.evaluate(a.args[0]);return new ni(((b=hs(ie))!=null?b:"").split("").map(se=>new ni(se,{type:"ord",classes:ee,mode:a.mode,isSelected:a.isSelected,style:we({variant:"main"},a.style)})),{type:"lift",style:a.style,caret:a.caret,isSelected:a.isSelected,classes:ee}).wrap(E)},serialize:a=>{var y;return`\\the${(y=hs(a.args[0]))!=null?y:"\\relax"}`}}),xt("mathtip","{:auto}{:math}",{createAtom:a=>new hh(ge(we({},a),{body:Rt(a.args[0]),tooltip:Rt(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Wr.serialize([a.tooltip],ge(we({},y),{defaultMode:"math"}))}}`}),xt("texttip","{:auto}{:text}",{createAtom:a=>new hh(ge(we({},a),{body:Rt(a.args[0]),tooltip:Rt(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Wr.serialize([a.tooltip],ge(we({},y),{defaultMode:"text"}))}}`}),xt("error","{:math}",{createAtom:a=>new Wr(ge(we({},a),{body:Rt(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),xt("ensuremath","{:math}",{createAtom:a=>new Wr(ge(we({},a),{body:Rt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(ge(we({},y),{defaultMode:"math"}))}}`}),xt("color","{:value}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=hs(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),xt("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=hs(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),xt("boxed","{content:math}",{createAtom:a=>new el(ge(we({},a),{body:Rt(a.args[0]),framecolor:{string:"black"}}))}),xt("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimBackgroundColor:(E=hs(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ee=y[0])!=null?ee:{string:"yellow"})}}}),xt("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new el(ge(we({},a),{body:Rt(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(ge(we({},y),{defaultMode:"text"})):Ii(a.command,(b=hs(a.framecolor))!=null?b:"",(E=hs(a.backgroundcolor))!=null?E:"",a.bodyToLatex(ge(we({},y),{defaultMode:"text"})))}}),xt("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=Rt(a.args[1]);return b?new el(ge(we({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new el(ge(we({},a),{body:E}))},serialize:(a,y)=>{var b,E;if(y.skipStyles)return a.bodyToLatex(y);let ee=a.command;if(Number.isFinite(a.padding)||a.border!==void 0||a.backgroundcolor!==void 0){const ie=[];a.padding&&ie.push((b=hs(a.padding))!=null?b:""),a.border&&ie.push(`border: ${a.border}`),a.backgroundcolor&&ie.push((E=hs(a.backgroundcolor))!=null?E:""),ee+=`[${ie.join(",")}]`}return Ii(ee,a.bodyToLatex(y))}}),xt(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new Wr(ge(we({},a),{body:Rt(a.args[0])})),render:(a,y)=>{const b=new ga({parent:y,mathstyle:a.command.slice(1)},a.style),E=Wr.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):`{${Ha([a.command,a.bodyToLatex(y)])}}`}),xt(["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]})}),xt("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),xt("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),xt("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),xt("selectfont","",{ifMode:"text",applyStyle:()=>({})}),xt("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),xt(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new Wr(ge(we({},a),{body:Rt(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),xt("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),xt("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),xt("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),xt("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),xt("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),xt("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),xt("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),xt("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),xt("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),xt("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),xt("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),xt("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),xt("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),xt("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),xt("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),xt("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),xt("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),xt("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),xt("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),xt("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),xt("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),xt("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),xt("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),xt("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),xt("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),xt("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),xt("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),xt(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),xt(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),xt("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),xt("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),xt("mbox","{:text}",{ifMode:"math",createAtom:a=>new Wr(ge(we({},a),{type:"mord",body:Rt(a.args[0]),mode:"math"})),serialize:(a,y)=>Ii("\\mbox",a.bodyToLatex(ge(we({},y),{defaultMode:"text"})))}),xt("text","{:text}",{ifMode:"math",applyMode:"text"}),xt(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new Wr(ge(we({},a),{body:Rt(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:""})}}),xt(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new Wr(ge(we({},a),{body:Rt(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}}),xt("htmlData","{data:string}{content:auto}",{createAtom:a=>new Wr(ge(we({},a),{body:Rt(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}}),xt(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new Wr(ge(we({},a),{body:Rt(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}}),xt("em","{:rest}",{createAtom:a=>new Wr(ge(we({},a),{body:Rt(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"})}),xt("emph","{:auto}",{createAtom:a=>new Wr(ge(we({},a),{body:Rt(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 sp={"\\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}};xt(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new i0(ge(we({},a),{delim:(y=a.args[0])!=null?y:".",size:sp[a.command].size,delimType:sp[a.command].mclass}))}}),xt(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new sf(ge(we({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),xt(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new sf(ge(we({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),xt("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new Wr(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===Ws||E===Zs)&&(b=1),(E===Ml||E===Es)&&(b=2),(E===Al||E===Ms)&&(b=3);const ee=Rt(a.args[b]);return Wr.createBox(y,ee)},serialize:(a,y)=>`\\mathchoice{${Wr.serialize(a.args[0],y)}}{${Wr.serialize(a.args[1],y)}}{${Wr.serialize(a.args[2],y)}}{${Wr.serialize(a.args[3],y)}}`}),xt("mathop","{:auto}",{createAtom:a=>new Wr(ge(we({},a),{type:"mop",body:Rt(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=Wr.createBox(y,a.body);if(a.superscript||a.subscript){const ee=(b=a.subsupPlacement)!=null?b:"auto";E=ee==="over-under"||ee==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:E}):a.attachSupsub(y,{base:E})}return new ni(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Ii(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)),Ha(b)}}),xt(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new Wr(ge(we({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:Rt(a.args[0])}))}),xt(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=Rt(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 Wr(ge(we({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=Wr.createBox(y,a.body);if(a.superscript||a.subscript){const ee=(b=a.subsupPlacement)!=null?b:"auto";E=ee==="over-under"||ee==="auto"&&y.isDisplayStyle?a.attachLimits(y,{base:E}):a.attachSupsub(y,{base:E})}return a.caret&&(E.caret=a.caret),new ni(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Ii(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)),Ha(b)}}),xt(["char","unicode"],"{charcode:value}",{createAtom:a=>new Wr(ge(we({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${hs((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)}}),xt("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new Wr(a),render:(a,y)=>{var b,E,ee;const ie=new ga({parent:y,mathstyle:"textstyle"},a.style),se=ie.toEm((b=a.args[0])!=null?b:{dimension:0}),ye=ie.toEm((E=a.args[1])!=null?E:{dimension:10}),Ee=ie.toEm((ee=a.args[2])!=null?ee:{dimension:10}),Pe=new ni(null,{classes:"rule",type:"ord"});return Pe.width=ye,Pe.height=Ee+se,Pe.depth=-se,Pe.setStyle("border-right-width",ye,"em"),Pe.setStyle("border-top-width",Ee,"em"),Pe.setStyle("border-color",a.style.color),Pe.setStyle("vertical-align",se,"em"),a.isSelected&&Pe.setStyle("opacity","50%"),a.bind(ie,Pe),a.caret&&(Pe.caret=a.caret),Pe.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${hs(a.args[0])}]`:""}{${hs(a.args[1])}}{${hs(a.args[2])}}`}),xt(["overline","underline"],"{:auto}",{createAtom:a=>new Wr(ge(we({},a),{body:Rt(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new ga({parent:y,mathstyle:"cramp"},a.style),ee=Wr.createBox(E,a.body);if(!ee)return null;const ie=E.metrics.defaultRuleThickness/E.scalingFactor,se=new ni(null,{classes:b+"-line"});se.height=ie,se.maxFontSize=ie*1.125*E.scalingFactor;let ye;return b==="overline"?ye=new $a({shift:0,children:[{box:ee},3*ie,{box:se},ie]}):ye=new $a({top:ee.height,children:[ie,{box:se},3*ie,{box:ee}]}),a.caret&&(ye.caret=a.caret),new ni(ye,{classes:b,type:"ignore"})}}),xt("overset","{:auto}{base:auto}",{createAtom:a=>{const y=Rt(a.args[1]);return new Du(ge(we({},a),{above:Rt(a.args[0]),body:y,skipBoundary:!1,boxType:Bs(y)}))},serialize:(a,y)=>Ii(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),xt("underset","{:auto}{base:auto}",{createAtom:a=>{const y=Rt(a.args[1]);return new Du(ge(we({},a),{below:Rt(a.args[0]),body:y,skipBoundary:!1,boxType:Bs(y)}))},serialize:(a,y)=>Ii(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),xt("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=Rt(a.args[2]);return new Du(ge(we({},a),{above:Rt(a.args[0]),below:Rt(a.args[1]),body:y,skipBoundary:!1,boxType:Bs(y)}))},serialize:(a,y)=>Ii(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),xt(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new Du(ge(we({},a),{body:Rt(a.args[2]),above:Rt(a.args[1]),below:Rt(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>Ii(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),xt("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ee;return new of(ge(we({},a),{body:Rt(a.args[1]),smashHeight:(b=(y=a.args[0])==null?void 0:y.includes("t"))!=null?b:!0,smashDepth:(ee=(E=a.args[0])==null?void 0:E.includes("b"))!=null?ee:!0}))}}),xt(["vphantom"],"{:auto}",{createAtom:a=>new of(ge(we({},a),{body:Rt(a.args[0]),isInvisible:!0,smashWidth:!0}))}),xt(["hphantom"],"{:auto}",{createAtom:a=>new of(ge(we({},a),{body:Rt(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),xt(["phantom"],"{:auto}",{createAtom:a=>new of(ge(we({},a),{body:Rt(a.args[0]),isInvisible:!0}))}),xt("not","{:math}",{createAtom:a=>{const y=Rt(a.args[0]);return y.length===0?new Wr(ge(we({},a),{type:"mrel",value:"\uE020"})):new Wr(ge(we({},a),{body:[new dd(ge(we({},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{${Wr.serialize(b.group,y)}}`:`\\not${Wr.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":Bs(Rt(a.args[0])),ee=Wr.createBox(y,a.body,{type:E});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)}}),xt(["ne","neq"],"",{createAtom:a=>new Wr(ge(we({},a),{type:"mrel",body:[new dd(ge(we({},a),{body:"\uE020",align:"right",boxType:"rel"})),new Wr(ge(we({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),xt("rlap","{:auto}",{createAtom:a=>new dd(ge(we({},a),{body:Rt(a.args[0]),align:"right"}))}),xt("llap","{:auto}",{createAtom:a=>new dd(ge(we({},a),{body:Rt(a.args[0]),align:"left"}))}),xt("mathrlap","{:math}",{createAtom:a=>new dd(ge(we({},a),{body:Rt(a.args[0]),align:"left"}))}),xt("mathllap","{:math}",{createAtom:a=>new dd(ge(we({},a),{body:Rt(a.args[0]),align:"left"}))}),xt("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new el(ge(we({},a),{body:Rt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Ii("\\raisebox",(b=hs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),xt("raise","{:value}{:auto}",{createAtom:a=>{var y;return new el(ge(we({},a),{body:Rt(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Ii("\\raise",(b=hs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),xt("lower","{:value}{:auto}",{createAtom:a=>{var y;return new el(ge(we({},a),{body:Rt(a.args[1]),padding:{dimension:0},offset:(y=sl(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return Ii("\\lower",(E=hs(sl((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),Ne("0123456789/@.?!"),Te(65,90),Te(97,122),Ne([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Ne([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Ne([["\\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]]),Ne([["\\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"),Ne([["\\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"]]),Ne([["\\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"]]),Ne([["\\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"),Ne([["+",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"),Ne([["\\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"),Ne([["\\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]]),Ne([["=",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"),Ne([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Ne([["\\wp",8472],["\\aleph",8501]]),Ne([["\\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"),Ne([["\\ ",160],["~",160]],"space"),xt(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new sf(a)}),xt("space","",{createAtom:a=>new sf(a)}),Ne([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Ne([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Ne([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var lp="<mo>&#x2061;</mo>",oh="<mo>&#8290;</mo>";function sh(a){return a.replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function ys(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Ev(a,y,b){var E,ee,ie,se,ye,Ee,Pe,He,ct,_t,fn;let xn=!1;y=y!=null?y:a.atoms.length;let Or="",bi="",Pr=a.atoms[a.index];const ti=(ee=(E=Pr.style)==null?void 0:E.variant)!=null?ee:"",Ei=(se=(ie=Pr.style)==null?void 0:ie.variantStyle)!=null?se:"";let li="";if(ti||Ei){const Fa=Cn(Pr.value,(ye=Pr.style)==null?void 0:ye.variant,(Ee=Pr.style)==null?void 0:Ee.variantStyle);if(Fa!==Pr.value)return a.index+=1,Or=`<mi${ys(Pr.id,b)}>${Fa}</mi>`,Cc(Or,a,b)||(a.mathML+=Or,a.lastType="mi"),!0;li=(Pe={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"}[Ei+ti])!=null?Pe:"",li=` mathvariant="${li}"`}const sa={"\\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(Pr.command==="!")return a.index+=1,Or="<mo>!</mo>",Cc(Or,a,b)||(a.mathML+=Or,a.lastType="mo"),!0;if(sa[Pr.command]){a.index+=1;let Fa=`<mi${ys(Pr.id,b)}${li}>${sa[Pr.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(Fa=oh+Fa),Cc(Fa,a,b)||(a.mathML+=Fa,a.lastType="mi"),!0}if(Pr.command==="\\operatorname")bi=Gd(Pr.body),a.index+=1;else if(ti||Ei)for(;a.index<y&&(Pr.type==="mord"||Pr.type==="macro")&&!Pr.isDigit()&&ti===((ct=(He=Pr.style)==null?void 0:He.variant)!=null?ct:"")&&Ei===((fn=(_t=Pr.style)==null?void 0:_t.variantStyle)!=null?fn:"");)bi+=Gd([Pr]),a.index+=1,Pr=a.atoms[a.index];else(Pr.type==="mord"||Pr.type==="macro")&&!Pr.isDigit()&&(bi+=Gd([Pr]),a.index+=1);if(bi.length>0){xn=!0,Or=`<mi${li}>${bi}</mi>`;const Fa=a.lastType;Or.endsWith(">f</mi>")||Or.endsWith(">g</mi>")?(Or+=lp,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(Or)?"mo":"mi",Cc(Or,a,b)||((Fa==="mi"||Fa==="mn"||Fa==="mtext"||Fa==="fence")&&(Or=oh+Or),a.mathML+=Or)}return xn}function Mv(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function Av(a){let y=-1,b=a.index,E=!1,ee=!1;for(;b<a.atoms.length&&!E&&!ee;){const ie=a.atoms[b];E=!ie.isDigit(),ee=!E&&ie.superscript!==void 0,b++}return ee&&(y=b-1),y}function Cc(a,y,b){var E;let ee=y.atoms[y.index-1];if(!ee)return!1;if(!ee.superscript&&!ee.subscript)if(((E=y.atoms[y.index])==null?void 0:E.type)==="subsup")ee=y.atoms[y.index],y.index+=1;else return!1;const ie=y.lastType;y.lastType="";const se=$o(ee.superscript,b);y.lastType="";const ye=$o(ee.subscript,b);if(y.lastType=ie,!se&&!ye)return!1;let Ee="";return se&&ye?Ee=`<msubsup>${a}${ye}${se}</msubsup>`:se?Ee=`<msup>${a}${se}</msup>`:ye&&(Ee=`<msub>${a}${ye}</msub>`),y.mathML+=Ee,y.lastType="",!0}function kv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="";for(;a.index<y&&a.atoms[a.index].mode==="text";)ee+=a.atoms[a.index].value?a.atoms[a.index].value:" ",a.index+=1;return ee.length>0?(a.mathML+=`<mtext ${ys(a.atoms[E].id,b)}>${ee}</mtext>`,a.lastType="mtext",!0):!1}function Dv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="",ie=Av(a);for(ie>=0&&ie<y&&(y=ie);a.index<y&&a.atoms[a.index].isDigit();)ee+=a.atoms[a.index].asDigit(),a.index+=1;return ee.length<=0?!1:(ee="<mn"+ys(a.atoms[E].id,b)+">"+ee+"</mn>",ie<0&&Mv(a)&&(ie=a.index,a.index+=1),Cc(ee,a,b)||(a.mathML+=ee,a.lastType="mn"),!0)}function Bv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",ie="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let se=!1,ye=0;const Ee=a.index;let Pe=-1,He=Ee+1;for(;He<y&&!se;)a.atoms[He].type==="mopen"?ye+=1:a.atoms[He].type==="mclose"&&(ye-=1),ye===-1&&(se=!0,Pe=He),He+=1;se&&(ee="<mrow>",ee+=Cd(a.atoms[Ee],b),ee+=$o(a.atoms,b,Ee+1,Pe),ee+=Cd(a.atoms[Pe],b),ee+="</mrow>",a.index=Pe+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=oh),Cc(ee,a,b)&&(E=!0,a.lastType="",ee=""),ie="fence")}return ee.length>0&&(E=!0,a.mathML+=ee,a.lastType=ie),E}function Lv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",ie="";const se=a.atoms[a.index];if(!se)return!1;const ye={"\\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(ye[se.command]){a.index+=1;const Ee=`<mo${ys(se.id,b)}>${ye[se.command]}</mo>`;return Cc(Ee,a,b)||(a.mathML+=Ee,a.lastType="mo"),!0}if(a.index<y&&(se.type==="mbin"||se.type==="mrel"))ee+=Zh(a.atoms[a.index],b),a.index+=1,ie="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 Ee=Cd(se,b);return se.superscript&&se.subscript?(ee+="<munderover>"+Ee,ee+=$o(se.subscript,b),ee+=$o(se.superscript,b),ee+="</munderover>"):se.superscript?(ee+="<mover>"+Ee,ee+=$o(se.superscript,b),ee+="</mover>"):se.subscript&&(ee+="<munder>"+Ee,ee+=$o(se.subscript,b),ee+="</munder>"),a.mathML+=ee,a.lastType="mo",a.index+=1,!0}{const Ee=a.atoms[a.index],Pe=Ee.value==="\\operatorname",He=Pe?'<mi class="MathML-Unit"'+ys(Ee.id,b)+">"+Gd(Ee.value)+"</mi>":Cd(Ee,b);ee+=He,!Pe&&!/^<mo>(.*)<\/mo>$/.test(He)?(ee+=lp,ie="applyfunction"):ie=Pe?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ee)&&(ee=oh+ee),a.index+=1}return ee.length>0&&(E=!0,Cc(ee,a,b)||(a.mathML+=ee,a.lastType=ie)),E}function $o(a,y,b,E){y!=null||(y={});const ee={atoms:[],index:b!=null?b:0,mathML:"",lastType:""};if(typeof a=="number"||typeof a=="boolean")ee.mathML=a.toString();else if(typeof a=="string")ee.mathML=a;else if(a instanceof Wr)ee.mathML=Zh(a,y);else if(Array.isArray(a)){ee.atoms=a;let ie=0;for(E=E||(a?a.length:0);ee.index<E;)if(kv(ee,E,y)||Dv(ee,E,y)||Ev(ee,E,y)||Lv(ee,E,y)||Bv(ee,E,y))ie+=1;else if(ee.index<E){let se=Zh(ee.atoms[ee.index],y);ee.lastType==="mn"&&se.length>0&&ee.atoms[ee.index].type==="genfrac"&&(se="<mo>&#x2064;</mo>"+se),ee.atoms[ee.index].type==="genfrac"?ee.lastType="mfrac":ee.lastType="",ee.index+=1,Cc(se,ee,y)?ie+=1:se.length>0&&(ee.mathML+=se,ie+=1)}ie>1&&(ee.mathML="<mrow>"+ee.mathML+"</mrow>")}return ee.mathML}function Cd(a,y){let b="";const E=Gd(a.value);return E&&(b="<mo"+ys(a.id,y)+">"+E+"</mo>"),b}function Gd(a){if(!a)return"";if(typeof a=="string")return sh(a);if(!Array.isArray(a)&&typeof a.body=="string")return sh(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return sh(y)}function Zh(a,y){var b,E,ee,ie,se,ye,Ee,Pe,He,ct,_t,fn,xn,Or,bi,Pr,ti,Ei,li,sa,Fa,ya;if(a.mode==="text")return`<mi${ys(a.id,y)}>${a.value}</mi>`;const zo={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"},ps={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Li="",bu="",nc,Lu,Fl,xu,su,bs;const{command:nl}=a;if(a.command==="\\error")return`<merror${ys(a.id,y)}>${$o(a.body,y)}</merror>`;const Tl={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},rc={"\\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":Li=$o(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(Li+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(Li+="<mo>"+(Tl[a.leftDelim]||a.leftDelim)+"</mo>")),Li+="<mtable",a.colFormat){for(Li+=' columnalign="',Fl=0;Fl<a.colFormat.length;Fl++)a.colFormat[Fl].align&&(Li+={l:"left",c:"center",r:"right"}[a.colFormat[Fl].align]+" ");Li+='"'}for(Li+=">",Lu=0;Lu<a.array.length;Lu++){for(Li+="<mtr>",nc=0;nc<a.array[Lu].length;nc++)Li+="<mtd>"+$o(a.array[Lu][nc],y)+"</mtd>";Li+="</mtr>"}Li+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(Li+="<mo>"+(Tl[a.leftDelim]||a.rightDelim)+"</mo>"),Li+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(Li+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(Li+="<mo"+ys(a.id,y)+">"+(Tl[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(Li+="<mfrac>",Li+=$o(a.above,y)||"<mi>&nbsp;</mi>",Li+=$o(a.below,y)||"<mi>&nbsp;</mi>",Li+="</mfrac>"):(Li+="<mtable"+ys(a.id,y)+">",Li+="<mtr>"+$o(a.above,y)+"</mtr>",Li+="<mtr>"+$o(a.below,y)+"</mtr>",Li+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(Li+="<mo"+ys(a.id,y)+">"+(Tl[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(Li+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(Li+="<msqrt"+ys(a.id,y)+">",Li+=$o(a.body,y),Li+="</msqrt>"):(Li+="<mroot"+ys(a.id,y)+">",Li+=$o(a.body,y),Li+=$o(a.above,y),Li+="</mroot>");break;case"leftright":const ic=a,ac=ic.leftDelim;Li="<mrow>",ac&&ac!=="."&&(Li+=`<mo${ys(a.id,y)}>${(b=Tl[ac])!=null?b:ac}</mo>`),a.body&&(Li+=$o(a.body,y));const oc=ic.matchingRightDelim();oc&&oc!=="."&&(Li+=`<mo${ys(a.id,y)}>${(E=Tl[oc])!=null?E:oc}</mo>`),Li+="</mrow>";break;case"sizeddelim":case"delim":Li+=`<mo${ys(a.id,y)}>${Tl[a.value]||a.value}</mo>`;break;case"accent":Li+='<mover accent="true"'+ys(a.id,y)+">",Li+=$o(a.body,y),Li+="<mo>"+(rc[nl]||a.accent)+"</mo>",Li+="</mover>";break;case"line":case"overlap":break;case"overunder":su=a.above,xu=a.below,(a.svgAbove||su)&&(a.svgBelow||xu)?bs=a.body:su&&su.length>0?(bs=a.body,(ie=(ee=a.body)==null?void 0:ee[0])!=null&&ie.below?(xu=a.body[0].below,bs=a.body[0].body):((ye=(se=a.body)==null?void 0:se[0])==null?void 0:ye.type)==="first"&&((Pe=(Ee=a.body)==null?void 0:Ee[1])!=null&&Pe.below)&&(xu=a.body[1].below,bs=a.body[1].body)):xu&&xu.length>0&&(bs=a.body,(ct=(He=a.body)==null?void 0:He[0])!=null&&ct.above?(su=a.body[0].above,bs=a.body[0].body):((fn=(_t=a.body)==null?void 0:_t[0])==null?void 0:fn.type)==="first"&&((Or=(xn=a.body)==null?void 0:xn[1])!=null&&Or.above)&&(su=a.body[1].overscript,bs=a.body[1].body)),(a.svgAbove||su)&&(a.svgBelow||xu)?(Li+=`<munderover ${ys(a.id,y)}>`,Li+=(bi=zo[a.svgBody])!=null?bi:$o(bs,y),Li+=(Pr=zo[a.svgBelow])!=null?Pr:$o(xu,y),Li+=(ti=zo[a.svgAbove])!=null?ti:$o(su,y),Li+="</munderover>"):a.svgAbove||su?(Li+=`<mover ${ys(a.id,y)}>`+((Ei=zo[a.svgBody])!=null?Ei:$o(bs,y)),Li+=(li=zo[a.svgAbove])!=null?li:$o(su,y),Li+="</mover>"):(a.svgBelow||xu)&&(Li+=`<munder ${ys(a.id,y)}>`+((sa=zo[a.svgBody])!=null?sa:$o(bs,y)),Li+=(Fa=zo[a.svgBelow])!=null?Fa:$o(xu,y),Li+="</munder>");break;case"placeholder":Li+="?";break;case"mord":{Li=typeof a.value=="string"?a.value:nl,nl==="\\char"?Li="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":Li.length>0&&Li.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?Li="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?Li=a.value.charAt(0):(console.error("Did not expect this"),Li=""));const Wu=/\d/.test(Li)?"mn":"mi";Li=`<${Wu}${ys(a.id,y)}>${sh(Li)}</${Wu}>`;break}case"mbin":case"mrel":case"minner":Li=Cd(a,y);break;case"mpunct":Li='<mo separator="true"'+ys(a.id,y)+">"+nl+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(Li="<mo"+ys(a.id,y)+">",Li+=nl==="\\operatorname"?a.body:nl||a.body,Li+="</mo>");break;case"box":Li='<menclose notation="box"',a.backgroundcolor&&(Li+=' mathbackground="'+a.backgroundcolor+'"'),Li+=ys(a.id,y)+">"+$o(a.body,y)+"</menclose>";break;case"spacing":Li+='<mspace width="'+((ya=ps[nl])!=null?ya:0)+'em"/>';break;case"enclose":Li='<menclose notation="';for(const Wu in a.notation)Object.prototype.hasOwnProperty.call(a.notation,Wu)&&a.notation[Wu]&&(Li+=bu+Wu,bu=" ");Li+=ys(a.id,y)+'">'+$o(a.body,y)+"</menclose>";break;case"prompt":Li='<menclose notation="roundexbox""">'+$o(a.body,y)+"</menclose>";break;case"space":Li+="&nbsp;";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Li+=Cd(a,y);break;case"mclose":Li+=Cd(a,y);break;case"macro":{const Wu=a.command+Gd(a.macroArgs);Wu&&(Li+=`<mo ${ys(a.id,y)}>${Wu}</mo>`)}break;case"latexgroup":Li+=$o(a.body,y);break;case"latex":Li+="<mtext"+ys(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":Li+=$o(a.body,y);break;case"text":Li+=`<mtext ${ys(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${ys(a.id,y)} displaystyle="true">${$o(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${ys(a.id,y)} displaystyle="false">${$o(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return Li}var Yd={"\\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 Fv(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function Cf(a){let y=0;if(Oe(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Tv(a){if(Oe(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function up(a){let y="";if(Oe(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Pv(a){return a?a.map(y=>y.value).join(""):""}function Po(a,y){var b,E,ee,ie,se;function ye(He){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(He)?` <say-as interpret-as="character">${He}</say-as>`:/[A-Z]/.test(He)?`capital <say-as interpret-as="character">${He.toLowerCase()}</say-as>`:He:/[a-z]/.test(He)?" '"+He.toUpperCase()+"'":/[A-Z]/.test(He)?" 'capital "+He.toUpperCase()+"'":He}function Ee(He){return"<emphasis>"+He+"</emphasis>"}if(!y)return"";let Pe="";if(Oe(y)){let He=!1,ct=!1;for(let _t=0;_t<y.length;_t++)y[_t].type!=="first"&&(y[_t].mode!=="text"&&(ct=!1),_t<y.length-2&&y[_t].type==="mopen"&&y[_t+2].type==="mclose"&&y[_t+1].type==="mord"?(Pe+=" of ",Pe+=Ee(Po(a,y[_t+1])),_t+=2):y[_t].mode==="text"?ct?Pe+=(b=y[_t].value)!=null?b:" ":(ct=!0,Pe+=Po("text",y[_t])):y[_t].isDigit()?He?Pe+=y[_t].asDigit():(He=!0,Pe+=Po(a,y[_t])):(He=!1,Pe+=Po(a,y[_t])))}else if(y.mode==="text")y.id&&a==="math"&&(Pe+='<mark name="'+y.id.toString()+'"/>'),Pe+=y.value;else{y.id&&a==="math"&&(Pe+='<mark name="'+y.id.toString()+'"/>');let He="",ct="",_t="",fn=!1;const{command:xn}=y;switch(xn){case"\\vec":return"vector "+Po(a,y.body);case"\\acute":return Po(a,y.body)+" acute";case"\\grave":return Po(a,y.body)+" grave";case"\\dot":return"dot over"+Po(a,y.body);case"\\ddot":return"double dot over"+Po(a,y.body);case"\\mathring":return"ring over"+Po(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+Po(a,y.body);case"\\bar":return Po(a,y.body)+" bar";case"\\breve":return Po(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Po(a,y.body);case"\\hat":case"\\widehat":return"hat over"+Po(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Po(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+Po(a,y.body)}switch(y.type){case"prompt":const Or=y.body.length>1?'start input . <break time="500ms"/> '+Po(a,y.body)+'. <break time="500ms"/> end input':"blank";Pe+=' <break time="300ms"/> '+Or+'. <break time="700ms"/>'+((E=y.correctness)!=null?E:"")+' . <break time="700ms"/> ';break;case"array":const bi=y.array,Pr=y.environmentName;if(Object.keys(jh).includes(Pr)){Pe+=` begin ${jh[Pr]} `;for(let li=0;li<bi.length;li++){li>0&&(Pe+=","),Pe+=` row ${li+1} `;for(let sa=0;sa<bi[li].length;sa++)sa>0&&(Pe+=","),Pe+=` column ${sa+1}: `,Pe+=Po("math",bi[li][sa])}Pe+=` end ${jh[Pr]} `}break;case"group":xn==="\\ne"?Pe+=" not equal ":(xn==="\\not"&&(Pe+=" not "),Pe+=Po("math",y.body));break;case"root":Pe+=Po("math",y.body);break;case"genfrac":if(He=Po("math",y.above),ct=Po("math",y.below),Cf(y.above)&&Cf(y.below)){const sa={"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)];sa?Pe=sa:Pe+=He+" over "+ct}else Pe+=' the fraction <break time="150ms"/>'+He+' over <break time="150ms"/>'+ct+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(_t=Po("math",y.body),y.hasEmptyBranch("above"))Pe+=Cf(y.body)?" the square root of "+_t+" , ":' the square root of <break time="200ms"/>'+_t+'. <break time="200ms"/> End square root';else{let li=Po("math",y.above);li=li.trim();const sa=li.replace(/<mark([^/]*)\/>/g,"");sa==="3"?Pe+=' the cube root of <break time="200ms"/>'+_t+'. <break time="200ms"/> End cube root':sa==="n"?Pe+=' the nth root of <break time="200ms"/>'+_t+'. <break time="200ms"/> End root':Pe+=' the root with index: <break time="200ms"/>'+li+', of <break time="200ms"/>'+_t+'. <break time="200ms"/> End root'}break;case"leftright":{const li=y;Pe+=(ee=li.leftDelim?Yd[li.leftDelim]:void 0)!=null?ee:li.leftDelim,Pe+=Po("math",y.body),Pe+=(ie=li.rightDelim?Yd[li.rightDelim]:void 0)!=null?ie:li.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const ti=xn.replace(/^\\/g,""),Ei=Kt()[ti];Ei&&(Ei!=null&&Ei.expand?Pe+=Po("math",y.body):Pe+=`${ti} `);break;case"placeholder":Pe+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(xn==="\\mathbin"||xn==="\\mathrel"||xn==="\\mathopen"||xn==="\\mathclose"||xn==="\\mathpunct"||xn==="\\mathord"||xn==="\\mathinner"){Pe=Po(a,y.body);break}let li=y.isDigit()?y.asDigit():y.value,sa=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(sa=y.value,li=sa),a==="text")Pe+=li;else{if(y.type==="mbin"&&(Pe+='<break time="150ms"/>'),li){const Fa=Yd[li]||(sa?Yd[sa.trim()]:"");if(Fa)Pe+=" "+Fa;else{const ya=sa?Fv(sa.trim()):"";Pe+=ya||ye(li)}}else Pe+=Po("math",y.body);y.type==="mbin"&&(Pe+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const li=y.command;if(li==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let sa=Po("math",y.superscript);sa=sa.trim();let Fa=Po("math",y.subscript);Fa=Fa.trim(),Pe+=' the summation from <break time="200ms"/>'+Fa+'<break time="200ms"/> to <break time="200ms"/>'+sa+'<break time="200ms"/> of <break time="150ms"/>',fn=!0}else if(y.hasEmptyBranch("subscript"))Pe+=" the summation of";else{let sa=Po("math",y.subscript);sa=sa.trim(),Pe+=' the summation from <break time="200ms"/>'+sa+'<break time="200ms"/> of <break time="150ms"/>',fn=!0}else if(li==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let sa=Po("math",y.superscript);sa=sa.trim();let Fa=Po("math",y.subscript);Fa=Fa.trim(),Pe+=' the product from <break time="200ms"/>'+Fa+'<break time="200ms"/> to <break time="200ms"/>'+sa+'<break time="200ms"/> of <break time="150ms"/>',fn=!0}else if(y.hasEmptyBranch("subscript"))Pe+=" the product of ";else{let sa=Po("math",y.subscript);sa=sa.trim(),Pe+=' the product from <break time="200ms"/>'+sa+'<break time="200ms"/> of <break time="150ms"/>',fn=!0}else if(li==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let sa=Po("math",y.superscript);sa=sa.trim();let Fa=Po("math",y.subscript);Fa=Fa.trim(),Pe+=' the integral from <break time="200ms"/>'+Ee(Fa)+'<break time="200ms"/> to <break time="200ms"/>'+Ee(sa)+' <break time="200ms"/> of ',fn=!0}else Pe+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const sa=(se=Yd[y.value])!=null?se:y.command?Yd[y.command]:void 0;Pe+=sa||" "+y.value}else y.command&&(y.command==="\\mathop"?Pe+=Po("math",y.body):y.command==="\\operatorname"?Pe+=Pv(y.body):Pe+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":_t=Po("math",y.body),Pe+=" crossed out "+_t+". End crossed out.";break;case"space":case"spacing":break}if(!fn&&!y.hasEmptyBranch("superscript")){let Or=Po(a,y.superscript);Or=Or.trim();const bi=Or.replace(/<[^>]*>/g,"");if(Cf(y.superscript)){if(a==="math"){const Pr=Tv(y.superscript);Pr&&(Pe+='<mark name="'+Pr+'"/>')}bi==="\u2032"?Pe+=" prime ":bi==="2"?Pe+=" squared ":bi==="3"?Pe+=" cubed ":Number.isNaN(Number.parseInt(bi))?Pe+=" to the "+Or+"; ":Pe+=' to the <say-as interpret-as="ordinal">'+bi+"</say-as> power; "}else Number.isNaN(Number.parseInt(bi))?Pe+=" raised to the "+Or+"; ":Pe+=' raised to the <say-as interpret-as="ordinal">'+bi+"</say-as> power; "}if(!fn&&!y.hasEmptyBranch("subscript")){let Or=Po("math",y.subscript);Or=Or.trim(),Pe+=Cf(y.subscript)?" sub "+Or:" subscript "+Or+". End subscript. "}}return Pe}function Xd(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ee=$o(a);if(ee){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=ge(we({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=ge(we({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=ge(we({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const ie=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&ie.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let se="";try{se=ie.toSpeech(ee)}catch(ye){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",ye)}return se}return""}let E=Po("math",a);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let ee="";window.MathfieldElement.speechEngineRate&&(ee='<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>'+ee+"<p><s>"+E+"</s></p>"+(ee?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&xe()==="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 wf={"\\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"},Ef={"\\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 Iv(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 tl(a){var y,b,E,ee,ie,se,ye,Ee,Pe,He,ct,_t,fn;if(!a)return"";if(Oe(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(tl).join("");if(a[0].mode==="text"){let Ei=0,li="";for(;((y=a[Ei])==null?void 0:y.mode)==="text";)li+=a[Ei].body?tl(a[Ei].body):a[Ei].value,Ei++;return`"${li}" ${tl(a.slice(Ei))}`}let Pr=0;const ti=[];for(;a[Pr]&&a[Pr].mode==="math";){let Ei="";for(;a[Pr]&&a[Pr].type==="mord"&&/\d/.test(a[Pr].value);)Ei+=a[Pr++].value;Ei?ti.push(Ei):ti.push(tl(a[Pr++]))}return ti.push(tl(a.slice(Pr))),Iv(ti)}if(a.mode==="text")return`"${a.value}"`;let xn="";const{command:Or}=a;let bi;if(Or==="\\placeholder")return`(${tl(a.body)})`;switch(a.type){case"accent":const Pr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Or];xn=`${Pr!=null?Pr:""} ${tl(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(ya=>ya.value).join("");case"group":case"root":xn=(b=wf[Or])!=null?b:tl(a.body);break;case"genfrac":{const ya=a;(ya.leftDelim||ya.rightDelim)&&(xn=ya.leftDelim==="."||!ya.leftDelim?"{:":ya.leftDelim),ya.hasBarLine?(xn+="(",xn+=tl(ya.above),xn+=")/(",xn+=tl(ya.below),xn+=")"):(xn+="("+tl(ya.above)+"),",xn+="("+tl(ya.below)+")"),(ya.leftDelim||ya.rightDelim)&&(xn+=ya.rightDelim==="."||!ya.rightDelim?"{:":ya.rightDelim)}break;case"surd":xn+=a.hasEmptyBranch("above")?"sqrt("+tl(a.body)+")":"root("+tl(a.above)+")("+tl(a.body)+")";break;case"latex":xn=a.value;break;case"leftright":{const ya=a,zo=ya.leftDelim;xn+=zo==="."||!zo?"{:":zo,xn+=tl(ya.body);const ps=ya.matchingRightDelim();xn+=ps==="."||!ps?":}":ps}break;case"sizeddelim":case"delim":xn=a.value;break;case"overlap":break;case"overunder":break;case"mord":xn=(ee=(E=wf[Or])!=null?E:Or)!=null?ee:typeof a.value=="string"?a.value:"",xn.startsWith("\\")&&(xn+=" "),bi=Or?Or.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,bi?xn=String.fromCodePoint(Number.parseInt("0x"+bi[1])):xn.length>0&&xn.startsWith("\\")&&(xn=typeof a.value=="string"?a.value.charAt(0):a.command),xn=Nv(xn,a.style);break;case"mbin":case"mrel":case"minner":xn=(se=(ie=wf[Or])!=null?ie:Ef[Or])!=null?se:a.value;break;case"mopen":case"mclose":xn=a.value;break;case"mpunct":xn=(ye=Ef[Or])!=null?ye:Or;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(Ef[Or]?xn=Ef[Or]:xn=Or==="\\operatorname"?tl(a.body):(Ee=a.value)!=null?Ee:Or,xn+=" ");break;case"array":const ti=a.array,Ei=a.environmentName,li=(Pe={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Ei])!=null?Pe:["(",")"],sa=[];for(const ya of ti){const zo=[];for(const ps of ya)zo.push(li[0]+tl(ps)+li[1]);sa.push(zo.join(","))}const Fa=(He={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Ei])!=null?He:["(",")"];xn=Fa[0]+sa.join(",")+Fa[1];break;case"box":break;case"spacing":xn=(ct=wf[Or])!=null?ct:" ";break;case"enclose":xn="("+tl(a.body)+")";break;case"space":xn=" ";break;case"subsup":xn="";break;case"macro":xn=(fn=(_t=wf[Or])!=null?_t:Ef[Or])!=null?fn:tl(a.body);break}if(!a.hasEmptyBranch("subscript")){xn+="_";const Pr=tl(a.subscript);xn+=Pr.length!==1?`(${Pr})`:Pr}if(!a.hasEmptyBranch("superscript")){xn+="^";const Pr=tl(a.superscript);xn+=Pr.length!==1?`(${Pr})`:Pr}return xn}function Nv(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 Ll(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ee=new ga({from:ge(we({},yo()),{renderPlaceholder:()=>new ni(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),se=new Wr({mode:"math",type:"root",body:Bl(a,{context:ee,parseMode:"math",mathstyle:y.mathstyle})}).render(ee);return se?(ws(lf(se,ee)),fl(se,{classes:"ML__latex"}).toMarkup()):""}function ky(a){return t0(a,{context:yo()})}function Ov(a,y={}){return $o(Bl(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Rv(a){const y=Bl(a,{parseMode:"math",mathstyle:"displaystyle"});return Xd(y)}var lh;function _v(a){var y,b;if(!lh){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?lh=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=lh==null?void 0:lh.box(a).latex)!=null?b:""}function Dy(a,y="math"){return tl(new Wr({type:"root",body:Bl(a,{parseMode:y})}))}function By(a){return Gu(a,{format:"ascii-math"})[1]}function Uh(a){if(typeof a=="string"){const y=zv(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Hv(a):"a"in a?cp(a):a}function Qd(a){return a<0?0:a>255?255:Math.round(a)}function zv(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],ee=E*Math.PI/180,ie={L:y,a:b*Math.cos(ee),b:b*Math.sin(ee)};return a.alpha!==void 0&&(ie.alpha=a.alpha),ie}function Kv(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.sqrt(b*b+E*E),se=Math.atan2(E,b)*180/Math.PI,ye={L:y,C:ee,H:se};return a.alpha!==void 0&&(ye.alpha=a.alpha),ye}function Gh(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*E,3),ie=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*E,3),se=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*E,3),ye=4.076741661347994*ee-3.307711590408193*ie+.230969928729428*se,Ee=-1.2684380040921763*ee+2.6097574006633715*ie-.3413193963102197*se,Pe=-.004196086541837188*ee-.7034186144594493*ie+1.7076147009309444*se,He=ct=>{const _t=Math.abs(ct);return _t<=.0031308?ct*12.92:(Math.sign(ct)||1)*(1.055*Math.pow(_t,1/2.4)-.055)};return[He(ye),He(Ee),He(Pe)]}function Yh(a){const[y,b,E]=a;return y>=0&&y<=1&&b>=0&&b<=1&&E>=0&&E<=1}function Xh(a,y){let[b,E,ee]=a;return b=Qd(b*255),E=Qd(E*255),ee=Qd(ee*255),y!==void 0?{r:b,g:E,b:ee,alpha:y}:{r:b,g:E,b:ee}}function cp(a){let[y,b,E]=Gh(a);if(Yh([y,b,E]))return Xh([y,b,E],a.alpha);const ee=Kv(a);if(ee.C=0,[y,b,E]=Gh(Vh(ee)),!Yh([y,b,E]))return Xh([y,b,E],a.alpha);let ie=0,se=a.L,ye=(ie+se)/2;ee.C=ye;const Ee=.36/Math.pow(2,12);for(;se-ie>Ee;)ye=(ie+se)/2,ee.C=ye,[y,b,E]=Gh(Vh(ee)),Yh([y,b,E])?ie=ye:se=ye;return Xh([y,b,E],a.alpha)}function Hv(a){return cp(Vh(a))}function dp(a,y){const b=Uh(a),E=Uh(y),ee=.56,ie=.57,se=.62,ye=.65,Ee=.022,Pe=1.414,He=.1,ct=5e-4,_t=1.14,fn=.027,xn=1.14,Or=.027;function bi(ya){return ya>=Ee?ya:ya+sc(Ee-ya,Pe)}function Pr(ya){return(ya<0?-1:1)*Math.pow(Math.abs(ya),2.4)}const ti=bi(Pr(E.r/255)*.2126729+Pr(E.g/255)*.7151522+Pr(E.b/255)*.072175),Ei=bi(Pr(b.r/255)*.2126729+Pr(b.g/255)*.7151522+Pr(b.b/255)*.072175);let li,sa,Fa;return Math.abs(Ei-ti)<ct?sa=0:Ei>ti?(li=sc(Ei,ee)-sc(ti,ie),sa=li*_t):(li=sc(Ei,ye)-sc(ti,se),sa=li*xn),Math.abs(sa)<He?Fa=0:sa>0?Fa=sa-Or:Fa=sa+fn,Fa*100}function fp(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const E=dp(a,b),ee=dp(a,y);return Math.abs(E)>Math.abs(ee)?b:y}function Wv(a){const y=Uh(a);let b=((1<<24)+(Qd(y.r)<<16)+(Qd(y.g)<<8)+Qd(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 Fs(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 Zv(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 jv(a,y){return Fs(a).length>0}function Uv(a){return[Qh(a,"double-struck","mathbb","tooltip.blackboard"),Qh(a,"fraktur","mathfrak","tooltip.fraktur"),Qh(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 Vv(a){return[{label:()=>Ll(`\\vec{${Fs(a)}}`),visible:()=>Fs(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Ll(`\\overrightarrow{${Fs(a)}}`),visible:()=>Fs(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Ll(`\\overleftarrow{${Fs(a)}}`),visible:()=>Fs(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Ll(`\\dot{${Fs(a)}}`),visible:()=>Fs(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Ll(`\\ddot{${Fs(a)}}`),visible:()=>Fs(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Ll(`\\bar{${Fs(a)}}`),visible:()=>Fs(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Ll(`\\overline{${Fs(a)}}`),visible:()=>Fs(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Ll(`\\overgroup{${Fs(a)}}`),visible:()=>Fs(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Ll(`\\overbrace{${Fs(a)}}`),visible:()=>Fs(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Ll(`\\underline{${Fs(a)}}`),visible:()=>Fs(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Ll(`\\undergroup{${Fs(a)}}`),visible:()=>Fs(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Ll(`\\underbrace{${Fs(a)}}`),visible:()=>Fs(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Gv(a){return[{label:()=>Ll(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Ll(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Ll(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Yv(a){const y=[];for(const b of Object.keys(Ze))y.push({class:(Wv(fp(Ze[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ze[b]} "></span>`,ariaLabel:()=>{var E;return(E=pt(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 Xv(a){const y=[];for(const b of Object.keys(je))y.push({class:(fp(je[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${je[b]} "></span>`,ariaLabel:()=>{var E;return(E=pt(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 Qv=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 Jv(a){const y=[];for(let b=1;b<=5;b++)for(let E=1;E<=5;E++)y.push({onCreate:(ee,ie)=>new Qv(ee,ie,b,E),label:"\u2610",tooltip:()=>pt("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 $v(a){return[{label:()=>pt("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>wd(a)},{label:()=>pt("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>wd(a)},{label:()=>pt("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>wd(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=ey(a);return b<y.maxColumns}},{label:()=>pt("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>wd(a)},{type:"divider"},{label:()=>pt("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>wd(a)},{label:()=>pt("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>wd(a)},{type:"divider"},{label:()=>pt("menu.borders"),visible:()=>(qv(a)||wd(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>Mf(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>Mf(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>Mf(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>Mf(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>Mf(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>pt("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:Jv(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>pt("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>pt("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{zd(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>pt("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{zd(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>pt("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>pt("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Uv(a),submenuClass:"variant-submenu"},{label:()=>pt("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Xv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>pt("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Yv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>pt("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Vv(a),submenuClass:"variant-submenu"},{label:()=>pt("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&Fs(a).length>0,submenu:Gv(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>pt("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=ty(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:()=>pt("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?pt("menu.solve-for",Ll(b)):pt("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],ee=(y=b.solve(E))==null?void 0:y.map(ie=>{var se;return(se=ie.simplify().latex)!=null?se:""});if(!ee){a.model.announce("plonk");return}a.insert(`${E}=${ee.length===1?ee[0]:"\\left\\lbrace"+(ee==null?void 0:ee.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>pt("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>pt("menu.copy"),id:"copy",submenu:[{label:()=>pt("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Ga.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>pt("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Ga.copyToClipboard(a,"ascii-math")},{label:()=>pt("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Ga.copyToClipboard(a,"math-ml")}]},{label:()=>pt("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>pt("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function wd(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function qv(a){return a.model.at(a.model.position).type==="array"}function ey(a){var y;const b=(y=a.model.parentEnvironment)==null?void 0:y.array;return b?[b.length,b.reduce((E,ee)=>Math.max(E,ee.length),0)]:[0,0]}function Mf(a,y){Nf(a),a.flushInlineShortcutBuffer(),T0(a.model,y),Qs(a)}function ty(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 ee=E.evaluate();return ee.isSame(E)&&(ee=E.N()),ee.latex}function Qh(a,y,b,E){return{label:()=>Ll(`\\${b}{${Fs(a)}}`),tooltip:()=>{var ee;return(ee=pt(E))!=null?ee:E},visible:()=>Zv(a,y),checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({variant:y}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({variant:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Jh(a,y,b,E){return{label:()=>Ll(`\\${b}{${Fs(a)}}`),tooltip:()=>{var ee;return(ee=pt(E))!=null?ee:E},visible:()=>jv(a,y),checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({variantStyle:y}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({variantStyle:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Jd(a,y){return a+Xd(y)}du({speak:(a,y,b)=>ny(a,y,b)},{target:"mathfield"});function ny(a,y,b){var E,ee;b=b!=null?b:{withHighlighting:!1};const{model:ie}=a;function se(He){let ct=null;switch(He){case"all":ct=ie.root;break;case"selection":ct=ie.getAtoms(ie.selection);break;case"left":{ct=ie.getAtoms(ie.offsetOf(ie.at(ie.position).leftSibling),ie.position);break}case"right":{ct=ie.getAtoms(ie.position,ie.offsetOf(ie.at(ie.position).rightSibling));break}case"group":ct=ie.getAtoms(ie.getSiblingsRange(ie.position));break;case"parent":{const{parent:_t}=ie.at(ie.position);_t!=null&&_t.parent?ct=_t:ct=ie.root;break}default:ct=ie.root}return ct}function ye(He){let ct="";switch(He){case"all":console.log("Internal failure: speak all failed");break;case"selection":ct="no selection";break;case"left":ct="at start";break;case"right":ct="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":ct="no parent";break;default:console.log('unknown speak_ param value: "'+He+'"');break}return ct}const Ee=se(y);if(Ee===null)return(ee=(E=window.MathfieldElement).speakHook)==null||ee.call(E,ye(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const Pe=Xd(Ee);return ot()&&b.withHighlighting?(Uc().readAloudMathfield=a,pd(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,Pe)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(Pe),!1}function ry(a){var y,b;if(!ot()){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"}),ee={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(ee,(ie,se)=>{if(ie)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ie}`);else if(se!=null&&se.AudioStream){const ye=new Uint8Array(se.AudioStream),Ee=new Blob([ye.buffer],{type:"audio/mpeg"}),Pe=URL.createObjectURL(Ee);new Audio(Pe).play().catch(ct=>console.log(ct))}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 iy(a,y,b,E){let ee="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ee=Jd("deleted: ",E);else if(y==="focus"||y.includes("move"))ee=ay(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+oy(a.model);else if(y==="replacement")ee=Jd("",a.model.at(a.model.position));else if(y==="line"){const ie=Jd("",a.model.root);a.keyboardDelegate.setAriaLabel(ie)}else ee=E?Jd(y+" ",E):y;if(ee){const ie=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ee+ie}}function ay(a,y){if(Number.isNaN(y))return"";const b=a.at(y);if(!b||b.treeDepth<=a.at(a.position).treeDepth)return"";let E="",ee=b.parent;const ie=a.at(a.position).parent;for(;ee!==a.root&&ee!==ie;)E+=`out of ${pp(ee)};`,ee=ee.parent;return E}function oy(a){if(!a.selectionIsCollapsed)return Jd("",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+=Jd("",b),y}var sy=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 ee={};if((y==null?void 0:y.type)==="undo"&&(ee={inputType:"historyUndo"}),(y==null?void 0:y.type)==="redo"&&(ee={inputType:"historyRedo"}),this.contentWillChange(ee)){const ie=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=Hc(a.content),this.selection=a.selection,this.silenceNotifications=ie,this.contentDidChange(ee)}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,ee;const ie=this.normalizeSelection(a,y);if(ie===void 0)throw new TypeError("Invalid selection");if(ie.ranges.length===1&&ie.ranges[0][0]===ie.ranges[0][1]){const He=ie.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(He))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((E=this.at(He-1))!=null&&E.parentPrompt){this._anchor=this.normalizeOffset(He-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ee=this.at(He+1))!=null&&ee.parentPrompt){this._anchor=this.normalizeOffset(He+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=He,this._position=He,this._selection=ie;return}const se=Gs(ie);ie.direction==="backward"?[this._position,this._anchor]=se:[this._anchor,this._position]=se;const ye=this.at(se[0]+1),Ee=this.at(se[1]),Pe=Wr.commonAncestor(ye,Ee);(Pe==null?void 0:Pe.type)==="array"&&ye.parent===Pe&&Ee.parent===Pe?this._selection={ranges:[se],direction:ie.direction}:this._selection={ranges:[se],direction:ie.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 Nl&&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(Ic(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((Pe,He)=>[...Pe,...this.getAtoms(He,E)],[]);a=a.ranges[0]}let ee,ie;if(Zl(a)){if(ee=a,!Zl(y))return[];ie=y}else[ee,ie]=a,E=y!=null?y:{};if(!Number.isFinite(ee))return[];E.includeChildren===void 0&&(E.includeChildren=!1),ee<0&&(ee=this.lastOffset-ee+1),ie<0&&(ie=this.lastOffset-ie+1);const se=Math.min(ee,ie)+1,ye=Math.max(ee,ie);if(!E.includeChildren&&se===1&&ye===this.lastOffset)return[this.root];let Ee=[];for(let Pe=se;Pe<=ye;Pe++){const He=this.atoms[Pe];mp(this,He,se,ye)&&Ee.push(He)}return E.includeChildren||(Ee=Ee.filter(Pe=>{let He=!1,{parent:ct}=Pe;for(;ct&&!He;)He=mp(this,ct,se,ye),ct=ct.parent;return!He})),Ee}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 ee=this.lastOffset;if(b==="forward"){for(let ie=y;ie<=ee;ie++)if(E=this.atoms[ie],a(E))return E;for(let ie=0;ie<y;ie++)if(E=this.atoms[ie],a(E))return E;return}for(let ie=y;ie>=0;ie--)if(E=this.atoms[ie],a(E))return E;for(let ie=ee;ie>y;ie--)if(E=this.atoms[ie],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 Wr({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 Wr.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 $o(a);if(b==="spoken")return Xd(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ee=Xd(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}if(b==="spoken-ssml"||b==="spoken-ssml-with-highlighting"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const ee=Xd(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}return b==="ascii-math"?tl(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,ee;if(Zl(a)&&Zl(y)?(E=[this.normalizeRange([a,y])],ee=b):pc(a)?(E=[this.normalizeRange(a)],ee=y):Ic(a)?(E=a.ranges,ee=y):(E=[this.normalizeRange([0,-1])],ee=a),ee!=null||(ee="latex"),ee==="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 ie=this.getValue({ranges:E},"latex-unstyled");try{const se=window.MathfieldElement.computeEngine.parse(ie);return JSON.stringify(se.json)}catch(se){return JSON.stringify(["Error",`'${se.toString()}'`])}}if(ee.startsWith("latex")){const ie={expandMacro:ee==="latex-expanded",skipStyles:ee==="latex-unstyled",skipPlaceholders:ee==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return Ha(E.map(se=>Wr.serialize(this.getAtoms(se),ie)))}return E.map(ie=>this.getAtoms(ie).map(se=>this.atomToString(se,ee)).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,ee]=b,{parent:ie}=this.at(ee);if(ie&&(ie.type==="genfrac"||ie.type==="subsup"))for(;ie!==this.root&&$h(this,ie,[E,ee]);)ee=this.offsetOf(ie),ie=ie.parent;for(ie=this.at(E).parent;ie!==this.root&&$h(this,ie,[E,ee]);)E=this.offsetOf(ie.leftSibling),ie=ie.parent;if(ie=this.at(ee).parent,(ie==null?void 0:ie.type)==="genfrac")for(;ie!==this.root&&$h(this,ie,[E,ee]);)ee=this.offsetOf(ie),console.assert(ee>=0),ie=ie.parent;this._position=this.normalizeOffset(y),this._selection={ranges:[[E,ee]],direction:"none"}})}announce(a,y,b=[]){var E,ee;((ee=(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?ee:!0)&&iy(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,E=this._anchor,ee=this._position,ie=this.silenceNotifications;this.silenceNotifications=!0;const se=this.root.changeCounter;y();const ye=this.root.changeCounter!==se,Ee=E!==this._anchor||ee!==this._position||hc(this._selection,b)==="different";return this.silenceNotifications=ie,a.content&&ye&&this.contentDidChange({inputType:a.type}),a.selection&&Ee&&this.selectionDidChange(),ye||Ee}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(Zl(a)){const ee=this.normalizeOffset(a);if(Zl(y)){const ie=this.normalizeOffset(y);E=ee<=ie?{ranges:[[ee,ie]],direction:"none"}:{ranges:[[ie,ee]],direction:"backward"}}else E={ranges:[[ee,ee]],direction:"none"}}else if(pc(a)){const ee=this.normalizeOffset(a[0]),ie=this.normalizeOffset(a[1]);E=ee<=ie?{ranges:[[ee,ie]],direction:"none"}:{ranges:[[ie,ee]],direction:"backward"}}else Ic(a)&&(E={ranges:a.ranges.map(ee=>this.normalizeRange(ee)),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(qu(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",ge(we({},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(qu(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 ee=a.offsetOf(y);if(ee<b||ee>E)return!1;if(!y.hasChildren)return!0;const ie=a.offsetOf(y.firstChild);if(ie>=b&&ie<=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,ee]=b,ie=a.offsetOf(y.firstChild),se=a.offsetOf(y.lastChild);return ie>=E&&ie<=ee&&se>=ie&&se<=ee}function Af(a,y,b,E){var ee,ie,se,ye,Ee,Pe;const He=b.parent;if(He&&b instanceof Jo){const ct=!E&&y==="forward"||E==="body"&&y==="backward";let _t=ct?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return ct?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(He.addChildrenAfter(b.removeBranch("body"),b),He.removeChild(b),_t--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(He.addChildrenAfter(b.removeBranch("body"),b),He.removeChild(b),_t--),a.position=_t,!0}if(He&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const ct=b.leftSibling;b.hasChildren&&He.addChildrenAfter(b.removeBranch("body"),b),He.removeChild(b),a.position=a.offsetOf(ct)}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),He.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(He&&(b.type==="box"||b.type==="enclose")){const ct=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return He.addChildrenAfter(b.removeBranch("body"),b),He.removeChild(b),a.position=a.offsetOf(ct),!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 ct=kf.fractionNavigationOrder==="numerator-denominator"?"above":"below",_t=ct==="above"?"below":"above";if(He&&(y==="forward"&&E===ct||y==="backward"&&E===_t)){const fn=b.removeBranch(ct),xn=b.removeBranch(_t);return He.addChildrenAfter([...fn,...xn],b),He.removeChild(b),a.position=a.offsetOf(fn.length>0?fn[fn.length-1]:xn[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 ct=y==="forward"?(se=(ee=b.superscript)==null?void 0:ee[0])!=null?se:(ie=b.subscript)==null?void 0:ie[0]:(Pe=(ye=b.subscript)==null?void 0:ye[0].lastSibling)!=null?Pe:(Ee=b.superscript)==null?void 0:Ee[0].lastSibling;return ct&&(a.position=a.offsetOf(ct)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const ct=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=ct,!0}if(E==="superscript")if(y==="backward"){const ct=a.offsetOf(b.firstChild)-1;console.assert(ct>=0),a.position=ct}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 ct=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=ct}return!0}if((He==null?void 0:He.type)==="genfrac"&&!E&&b.type!=="first"){let ct=a.offsetOf(b.leftSibling);return He.removeChild(b),He.hasEmptyBranch("above")&&He.hasEmptyBranch("below")?(ct=a.offsetOf(He.leftSibling),He.parent.removeChild(He),a.announce("delete",void 0,[He]),a.position=ct,!0):(a.announce("delete",void 0,[b]),a.position=ct,!0)}if(y==="backward"&&((He==null?void 0:He.command)==="\\ln"||(He==null?void 0:He.command)==="\\log")&&b.parentBranch!=="body"){const ct=a.offsetOf(He.leftSibling);return He.parent.removeChild(He),a.announce("delete",void 0,[He]),a.position=ct,!0}return!1}function ly(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&&Af(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(Af(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])}}):tc(a,Gs(a.selection),"deleteContentBackward")}function uy(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&&Af(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&Af(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&Af(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 ee=(y=a.at(a.position))==null?void 0:y.rightSibling;for(;(ee==null?void 0:ee.type)==="subsup";)ee.parent.removeChild(ee),ee=(b=a.at(a.position))==null?void 0:b.rightSibling;a.announce("delete",void 0,[E])}):tc(a,Gs(a.selection),"deleteContentForward")}function tc(a,y,b){const E=a.getAtoms(y);if(E.length>0&&E[0].parent){let ee=E[0].parent.firstChild;ee.type==="first"&&(ee=ee.rightSibling);const ie=E[E.length-1].parent.lastChild;let se=E[0];se.type==="first"&&(se=se.rightSibling);const ye=E[E.length-1];if(se===ee&&ye===ie){const Ee=E[0].parent;Ee.parent&&Ee.type!=="prompt"&&(y=[a.offsetOf(Ee.leftSibling),a.offsetOf(Ee)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const Ee=E[0].parent,Pe=E[0].parentBranch==="below"?"above":"below",He=a.offsetOf(Ee.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var ct,_t;const fn=Ee.removeBranch(Pe);if(fn.length===1&&fn[0].type==="placeholder")(_t=Ee.parent)==null||_t.removeChild(Ee),a.position=Math.max(0,He);else{const xn=Ee.parent.addChildrenAfter(fn,Ee);(ct=Ee.parent)==null||ct.removeChild(Ee),a.position=a.offsetOf(xn)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}du({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&tc(a,[0,-1],"deleteContent"),deleteForward:a=>uy(a),deleteBackward:a=>ly(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&tc(a,[a.anchor,kh(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&tc(a,[a.anchor,kh(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&tc(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&tc(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&tc(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&tc(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var cy=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${pt("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>`,dy=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${pt("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>`,fy=class{constructor(a,y){this.focusBlurInProgress=!1;var b,E,ee;this.options=we(ge(we({},Vf()),{macros:Kt(),registers:Eu()}),Uf(y)),this.eventController=new AbortController;const ie=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 ye=B0(this.options),Ee=new Wr({type:"root",mode:ye,body:Bl(se,{context:this.context})});this.model=new sy(this,ye,Ee),this.undoManager=new Rg(this.model);const Pe=[];if(Pe.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>"),Pe.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),Pe.push("<span part=content class=ML__content>"),Pe.push(S0(this)),Pe.push("</span>"),window.mathVirtualKeyboard&&(Pe.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">`),Pe.push(cy),Pe.push("</div>")),Pe.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),Pe.push(dy),Pe.push("</div>"),Pe.push("</span>"),Pe.push("<span class=ML__sr-only>"),Pe.push("<span role=status aria-live=assertive aria-atomic=true></span>"),Pe.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(Pe.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=it.subscribe(()=>it.update(this.element)),it.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",ct=>ct.stopImmediatePropagation(),{capture:!1,signal:ie}),this.field.addEventListener("wheel",this,{passive:!1,signal:ie}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:ie}):this.field.addEventListener("mousedown",this,{signal:ie}),(ee=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||ee.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(qu(this)))},{signal:ie}),this._menu=new Cv($v(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:ie});const He=this.element.querySelector("[part=menu-toggle]");He==null||He.addEventListener("pointerdown",ct=>{if(ct.currentTarget!==He||this._menu.state!=="closed")return;this.element.classList.add("tracking");const _t=He.getBoundingClientRect();this._menu.modifiers=hd(ct),this._menu.show({target:He,location:{x:_t.left,y:_t.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),ct.preventDefault(),ct.stopPropagation()},{signal:ie}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(He.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=Wm(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:ie}),document.addEventListener("scroll",this,{signal:ie}),this.resizeObserver=new ResizeObserver(()=>Qs(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:ie}),df&&!it.locale.startsWith(df.locale)&&_m(it.locale),yu!=="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(qu(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:mu(this.field))!=null?b:void 0,ee=a==null?void 0:a.modifiers,ie=this.element.querySelector("[part=container]");return this._menu.show({target:ie,location:E,modifiers:ee})}get colorMap(){return a=>{var y,b,E;return(E=(b=(y=this.options).colorMap)==null?void 0:b.call(y,a))!=null?E:ut(a)}}get backgroundColorMap(){return a=>{var y,b,E,ee,ie,se;return(se=(ie=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?ie:(ee=(E=this.options).colorMap)==null?void 0:ee.call(E,a))!=null?se:Re(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=Wr.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=we({},a[0].style);for(const b of a)for(const[E,ee]of Object.entries(b.style))y[E]!==ee&&delete y[E];return y}queryStyle(a){const y=Ph(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 Ee of Object.keys(y)){const Pe=this.queryStyle({[Ee]:y[Ee]});if(Pe==="none")return"none";if(Pe==="some")return"some"}return"all"}const E=Object.keys(y)[0],ee=y[E];if(this.model.selectionIsCollapsed)return this.effectiveStyle[E]===ee?"all":"none";const ie=this.model.getAtoms(this.model.selection,{includeChildren:!0});let se=ie.length;if(se===0)return"none";let ye=0;for(const Ee of ie){if(Ee.type==="first"){se-=1;continue}Ee.style[E]===ee&&(ye+=1)}return ye===0?"none":ye===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=we(we({},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=Wr.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&Ga.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)&&Qs(this)}getOptions(a){return gd(this.options,a)}getOption(a){return gd(this.options,a)}handleEvent(a){return Vc(this,null,function*(){var y;if(Ql(this)){if(wh(a)){if(!as(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(Hd(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(()=>Ql(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Ql(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!Ql(this))return;it.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,Yg(),qm(),mv()}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 Hd(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(qu(this))),!1):og(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=Ld(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();Ga.insert(this.model,a,y)&&(Qs(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,ee=this.host.getBoundingClientRect();ee.bottom>E.top&&((a=window.document.scrollingElement)==null||a.scrollBy(0,ee.bottom-E.top+8))}}this.dirty&&pd(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=mu(this.field);else{const E=Ro(this);if(E.length>0){let ee=-1/0,ie=-1/0;for(const se of E)se.right>ee&&(ee=se.right),se.top<ie&&(ie=se.top);b={x:ee+y.left-this.field.scrollLeft,y:ie+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const E=this.host.getBoundingClientRect(),ee=b.y;let ie=this.host.scrollTop;ee<E.top?ie=ee-E.top+this.host.scrollTop:ee>E.bottom&&(ie=ee-E.bottom+this.host.scrollTop+b.height),this.host.scroll({top:ie,left:0})}if(b){const E=b.x-window.scrollX;let ee=this.field.scrollLeft;E<y.left?ee=E-y.left+this.field.scrollLeft-20:E>y.right&&(ee=E-y.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:ee})}}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&&Ve()&&navigator.vibrate(C0),window.MathfieldElement.playSound("keypress")),a==="\\\\"?L0(this.model):a==="&"?F0(this.model):this.model.selectionIsCollapsed?Ga.insert(this.model,a,we({style:this.model.at(this.model.position).computedStyle},y)):Ga.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Qs(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 ee=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=ee;return}const ie=this.model.mode,{model:se}=this;se.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let ye=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const Ee=Bl(y,{context:this.context,parseMode:a});se.collapseSelection("forward");const Pe=se.at(se.position);se.position=se.offsetOf(Pe.parent.addChildrenAfter(Ee,Pe)),ye=!0}if(this.model.mode=a,a==="latex"){let Ee=se.selectionIsCollapsed;zd(this,"accept");let Pe,He=se.at(se.position);if(Ee)Pe="\\";else{const _t=Gs(se.selection);Pe=this.model.getValue(_t,"latex");const fn=this.model.extractAtoms(_t);fn.length===1&&fn[0].type==="placeholder"&&(Pe=y,Ee=!0),He=se.at(_t[0])}const ct=new af(Pe);He.parent.addChildAfter(ct,He),Ee?se.position=se.offsetOf(ct.lastChild):se.setSelection(se.offsetOf(ct.firstChild),se.offsetOf(ct.lastChild))}else hf(se).forEach(Ee=>{Ee.isError=!1});if(b){const Ee=Bl(b,{context:this.context,parseMode:ie});se.collapseSelection("forward");const Pe=se.at(se.position);se.position=se.offsetOf(Pe.parent.addChildrenAfter(Ee,Pe)),ye=!0}return Qs(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),ye}),this.model.mode=a,window.mathVirtualKeyboard.update(qu(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 ee={operation:"set",silenceNotifications:!1};pc(y)?ee.range=y:(y.operation==="toggle"&&(ee.operation="toggle"),ee.range=y.range,ee.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const ie=Ph(this,a),se=(E=ee.operation)!=null?E:"set";if(ee.range===void 0&&this.model.selectionIsCollapsed){if(se==="set"){this.defaultStyle=we(we({},this.defaultStyle),ie);return}const ye=we({},this.defaultStyle);for(const Ee of Object.keys(ie))ye[Ee]===ie[Ee]?(Ee==="color"&&delete ye.verbatimColor,Ee==="backgroundColor"&&delete ye.verbatimBackgroundColor,delete ye[Ee]):ye[Ee]=ie[Ee];this.defaultStyle=ye;return}this.model.deferNotifications({content:!ee.silenceNotifications,type:"insertText"},()=>{if(ee.range===void 0)for(const ye of this.model.selection.ranges)Mh(this.model,ye,ie,{operation:se});else Mh(this.model,ee.range,ie,{operation:se})}),Qs(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=mu(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=Sf(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),Qs(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),ee=this.model.offsetOf(b.lastChild);return this.model.getValue(E,ee,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 ee=this.model.getBranchRange(this.model.offsetOf(E),"body");this.model.setSelection(ee),this.insert(y,ge(we({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),Qs(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),Qs(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(qu(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(qu(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(qu(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),ee=(a=E.mode)!=null?a:B0(this.options);this.model.mode!==ee&&(this.model.mode==="latex"?(zd(this,"accept",{mode:ee}),b.position=b.offsetOf(E)):this.switchMode(ee))}(y=this.host)==null||y.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(qu(this)),ih(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",ge(we({},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(),pd(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="",Kd(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})),Qs(this),this.focusBlurInProgress=!1,_h();const E=new AbortController,ee=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{Ql(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ee})},{once:!0,signal:ee}),setTimeout(()=>E.abort(),100)}onInput(a){Lh(this,a)}onKeystroke(a){return H0(this,a)}onCompositionStart(a){this.model.deleteAtoms(Gs(this.model.selection));const y=mu(this.field);y&&requestAnimationFrame(()=>{pd(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Dg(this.model,a),Qs(this)}onCompositionEnd(a){Bg(this.model),Lh(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Ga.onCopy(this,a),tc(this.model,Gs(this.model.selection),"deleteByCut"),this.snapshot("cut"),Qs(this))}onCopy(a){Ga.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=Ga.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=>vn(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function gp(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)gp(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 hy(a,y){var b;if(!ot())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"}),ee={OutputFormat:"json",VoiceId:(b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna",Engine:"standard",Text:y,TextType:"ssml",SpeechMarkTypes:["ssml"]};Uc().readAloudElement=a,E.synthesizeSpeech(ee,(ie,se)=>{if(ie){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ie}`);return}if(!(se!=null&&se.AudioStream)){console.log("polly.synthesizeSpeech():",se);return}const ye=new TextDecoder("utf-8").decode(new Uint8Array(se.AudioStream));Uc().readAloudMarks=ye.split(`
`).map(Ee=>Ee?JSON.parse(Ee):{}),Uc().readAloudTokens=[];for(const Ee of Uc().readAloudMarks)Ee.value&&Uc().readAloudTokens.push(Ee.value);Uc().readAloudCurrentMark="",ee.OutputFormat="mp3",ee.SpeechMarkTypes=[],E.synthesizeSpeech(ee,(Ee,Pe)=>{if(Ee){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${Ee}`);return}if(!(Pe!=null&&Pe.AudioStream))return;const He=new Uint8Array(Pe.AudioStream),ct=new Blob([He.buffer],{type:"audio/mpeg"}),_t=URL.createObjectURL(ct),fn=Uc();fn.readAloudAudio?fn.readAloudAudio.pause():(fn.readAloudAudio=new Audio,fn.readAloudAudio.addEventListener("ended",()=>{const xn=fn.readAloudMathfield;fn.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),xn?(pd(xn),fn.readAloudElement=null,fn.readAloudMathfield=null,fn.readAloudTokens=[],fn.readAloudMarks=[],fn.readAloudCurrentMark=""):gp(fn.readAloudElement)}),fn.readAloudAudio.addEventListener("timeupdate",()=>{let xn="";const Or=fn.readAloudAudio.currentTime*1e3+100;for(const bi of fn.readAloudMarks)bi.time<Or&&(xn=bi.value);fn.readAloudCurrentMark!==xn&&(fn.readAloudCurrentToken=xn,xn&&xn===fn.readAloudFinalToken?fn.readAloudAudio.pause():(fn.readAloudCurrentMark=xn,qh(fn.readAloudElement,fn.readAloudCurrentMark)))})),fn.readAloudAudio.src=_t,fn.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),fn.readAloudAudio.play()})})}ot()||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 Go=new WeakMap,py=.5,jc={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 = ..."},Ol=class Ed extends HTMLElement{static get formAssociated(){return $d()}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,ng())}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,ee;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:(ee=y.delete)!=null?ee: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 it.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),it.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 it.strings}static set strings(y){it.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 Vc(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 ie=yield(yield fetch(yield x0(`${E}/${b}`))).arrayBuffer(),se=yield this.audioContext.decodeAudioData(ie);this.audioBuffers[y]=se}catch(ee){}})}static playSound(y){return Vc(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=py,b.connect(E).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const E of Object.keys(y))if(jc[E])if(jc[E].startsWith("mf."))if(jc[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${jc[E]}`);else{const ee=jc[E].match(/([a-zA-Z]+) =/);b.push(`Option \`${E}\` has been renamed \`${ee[1]}\``)}else b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${jc[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($d()&&(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=[Kc("core"),Kc("mathfield"),Kc("mathfield-element"),Kc("ui"),Kc("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>"+bc("core")+bc("mathfield")+bc("mathfield-element")+bc("ui")+bc("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(ee=>ee.nodeType===3?ee.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,ee;return(ee=(E=this._mathfield)==null?void 0:E.getPromptValue(y,b))!=null?ee:""}setPromptValue(y,b,E){var ee;(ee=this._mathfield)==null||ee.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 ee=(E=(b=Ed.computeEngine)==null?void 0:b.box(y).latex)!=null?E:null;ee!==null&&this._mathfield.setValue(ee),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?gd(this._mathfield.options,y):Go.has(this)?we({},gd(we(we({},Vf()),Uf(Go.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?gd(this._mathfield.options,y):Go.has(this)?gd(we(we({},Vf()),Uf(Go.get(this).options)),y):null}reflectAttributes(){const y=Vf(),b=this._getOptions();Object.keys(Ed.optionsAttributes).forEach(E=>{const ee=wc(E);Ed.optionsAttributes[E]==="on/off"?y[ee]!==b[ee]?this.setAttribute(E,b[ee]?"on":"off"):this.removeAttribute(E):y[ee]!==b[ee]&&(Ed.optionsAttributes[E]==="boolean"?b[ee]?this.setAttribute(E,""):this.removeAttribute(E):(typeof b[ee]=="string"||typeof b[ee]=="number")&&this.setAttribute(E,b[ee].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(Go.has(this)){const b=we(we({},Go.get(this).options),y);Go.set(this,ge(we({},Go.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else Go.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))jc[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${jc[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 ee,ie;if(this._mathfield)return this._mathfield.model.getValue(y,b,E);if(Go.has(this)){let se,ye,Ee;if(Ic(y)?([se,ye]=y.ranges[0],Ee=b):pc(y)?([se,ye]=y,Ee=b):Zl(y)&&Zl(b)?(se=y,ye=b,Ee=E):(se=0,ye=-1,Ee=y),(Ee===void 0||Ee==="latex")&&se===0&&ye===-1)return(ie=(ee=Go.get(this).value)!=null?ee:this.textContent)!=null?ie:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(Go.has(this)){const ee=Go.get(this).options;Go.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0});return}const E=Df(this);Go.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,ee;return(ee=(E=this._mathfield)==null?void 0:E.insert(y,b))!=null?ee:!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,ee;return(ee=(E=this._mathfield)==null?void 0:E.setCaretPoint(y,b))!=null?ee:!1}offsetFromPoint(y,b,E){return this._mathfield?Sf(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=_u(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,ee,ie;Qu.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"&&((ee=this._mathfield)==null||ee.focus()),y.type==="blur"&&((ie=this._mathfield)==null||ie.blur()))}connectedCallback(){var y,b,E,ee;const ie=window.getComputedStyle(this),se=this.shadowRoot,ye=ie.userSelect!=="none";if(ye)se.host.addEventListener("pointerdown",this,!0);else{const He=se.querySelector("span");He.style.pointerEvents="none"}se.host.addEventListener("focus",this,!0),se.host.addEventListener("blur",this,!0),$d()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),ye&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const Ee=se.querySelector("slot:not([name])");if(Ee)try{this._style=Ee.assignedElements().filter(He=>He.tagName.toLowerCase()==="style").map(He=>He.textContent).join("")}catch(He){console.error(He)}if(this._style){const He=document.createElement("style");He.textContent=this._style,se.appendChild(He)}let Pe="";if(this.hasAttribute("value")?Pe=this.getAttribute("value"):Pe=(y=Ee==null?void 0:Ee.assignedNodes().map(He=>He.nodeType===3?He.textContent:"").join("").trim())!=null?y:"",this._mathfield=new fy(se.querySelector(":host > span"),ge(we({},(E=(b=Go.get(this))==null?void 0:b.options)!=null?E:Df(this)),{eventSink:this,value:Pe})),!Go.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const He of Object.keys(Ed.optionsAttributes))this.upgradeProperty(wc(He))}if(!((ee=this._mathfield)!=null&&ee.model)){this._mathfield=null;return}if(Go.has(this)){const He=this._mathfield,ct=Go.get(this),_t=ct.menuItems;He.model.deferNotifications({content:!1,selection:!1},()=>{const fn=ct.value;fn!==void 0&&He.setValue(fn),He.model.selection=ct.selection,Go.delete(this)}),_t&&(this.menuItems=_t)}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=gd(this._mathfield.options,Object.keys(Ed.optionsAttributes).map(ee=>wc(ee)));Go.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 ee=E!==null;switch(y){case"contenteditable":Qs(this._mathfield);break;case"disabled":this.disabled=ee;break;case"read-only":case"readonly":this.readOnly=ee;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(y){const b=!!y;b?(this.setAttribute("readonly",""),$d()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):($d()?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"),$d()?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,ee){return typeof E!="string"?!1:(y._setOptions({registers:ge(we({},y._getOption("registers")),{[E]:ee})}),!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(ee=>ee.menuItem))!=null?y:[]:(E=(b=Go.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}Go.has(this)?Go.set(this,ge(we({},Go.get(this)),{menuItems:y})):Go.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Df(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 ee;(ee=this._mathfield)==null||ee.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:Go.has(this)?Go.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,Qs(this._mathfield);return}if(Go.has(this)){Go.set(this,ge(we({},Go.get(this)),{selection:y}));return}Go.set(this,{value:void 0,selection:y,options:Df(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:Go.has(this)?Go.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,Qs(this._mathfield)),Go.has(this)){Go.set(this,ge(we({},Go.get(this)),{selection:{ranges:[[y,y]]}}));return}Go.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:Df(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}};Ol.version="0.98.5",Ol._fontsDirectory="./fonts",Ol._soundsDirectory="./sounds",Ol.keypressVibration=!0,Ol._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},Ol._plonkSound="plonk.wav",Ol.audioBuffers={},Ol.createHTML=a=>a,Ol._speechEngineRate="100%",Ol._speechEngineVoice="Joanna",Ol._textToSpeechMarkup="",Ol._textToSpeechRules="mathlive",Ol._textToSpeechRulesOptions={},Ol.speakHook=ry,Ol.readAloudHook=hy,Ol._decimalSeparator=".",Ol.fractionNavigationOrder="numerator-denominator",Ol._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=Ol;function wc(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function Df(a){const y={readOnly:!1},b=kf.optionsAttributes;return Object.keys(b).forEach(E=>{if(a.hasAttribute(E)){const ee=a.getAttribute(E);E==="placeholder"?y.contentPlaceholder=ee!=null?ee:"":b[E]==="boolean"?y[wc(E)]=!0:b[E]==="on/off"?ee==="on"?y[wc(E)]=!0:ee==="off"?y[wc(E)]=!1:y[wc(E)]=void 0:b[E]==="number"?y[wc(E)]=Number.parseFloat(ee!=null?ee:"0"):y[wc(E)]=ee}}),y}function $d(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var vp=kf,yp,bp,xp,Sp;if(ot()&&!((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,(Sp=window.customElements)==null||Sp.define("math-field",kf)}function my(a,y,b){let E=b,ee=0;const ie=a.length;for(;E<y.length;){const se=y[E];if(ee<=0&&y.slice(E,E+ie)===a)return E;se==="\\"?E++:se==="{"?ee++:se==="}"&&ee--,E++}return-1}function uh(a,y,b,E,ee="latex"){const ie=[];for(const se of a)if(se.type==="text"){const ye=se.data;let Ee=!0,Pe=0,He;He=ye.indexOf(y),He!==-1&&(Pe=He,Pe>0&&ie.push({type:"text",data:ye.slice(0,Pe)}),Ee=!1);let ct=!1;for(;!ct;){if(Ee){if(He=ye.indexOf(y,Pe),He===-1){ct=!0;break}Pe!==He&&ie.push({type:"text",data:ye.slice(Pe,He)}),Pe=He}else{if(He=my(b,ye,Pe+y.length),He===-1){ct=!0;break}let _t=ye.slice(Pe+y.length,He);ee==="ascii-math"&&([,_t]=Gu(_t,{format:"ascii-math"})),ie.push({type:"math",data:_t,rawData:ye.slice(Pe,He+b.length),mathstyle:E}),Pe=He+b.length}Ee=!Ee}Pe<ye.length&&ie.push({type:"text",data:ye.slice(Pe)})}else ie.push(se);return ie}function Cp(a,y,b){let E=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ee,ie])=>{E=uh(E,ee,ie,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ee,ie])=>{E=uh(E,ee,ie,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ee,ie])=>{E=uh(E,ee,ie,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ee,ie])=>{E=uh(E,ee,ie,"displaystyle","ascii-math")}),E}function gy(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 vy(a,y,b,E){try{const ee=y.renderToMarkup(a,{mathstyle:b,format:"html"}),ie=document.createElement("span");return ie.dataset.latex=a,ie.style.display=b==="displaystyle"?"flex":"inline-flex",ie.setAttribute("aria-hidden","true"),ie.setAttribute("translate","no"),ie.innerHTML=window.MathfieldElement.createHTML(ee),ie}catch(ee){if(console.error("Could not parse'"+a+"' with ",ee),E)return document.createTextNode(a)}return null}function qd(a,y,b,E){var ee;const ie=vy(a,b,y||"textstyle",E),se=(ee=b.renderAccessibleContent)!=null?ee:"";if(ie&&/\b(mathml|speakable-text)\b/i.test(se)){const ye=document.createElement("span");if(/\bmathml\b/i.test(se)&&b.renderToMathML&&ye.append(gy(a,b)),/\bspeakable-text\b/i.test(se)&&b.renderToSpeakableText){const Ee=document.createElement("span");Ee.setAttribute("translate","no");const Pe=b.renderToSpeakableText(a);Ee.innerHTML=window.MathfieldElement.createHTML(Pe),Ee.className="ML__sr-only",ye.append(Ee)}return ye.append(ie),ye}return ie}function yy(a,y){var b,E,ee;let ie=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){ie=document.createDocumentFragment();const se=qd(a,"",y,!0);se&&ie.appendChild(se)}else{if(!a.trim())return null;const se=Cp(a,(E=y.TeX)==null?void 0:E.delimiters,(ee=y.asciiMath)==null?void 0:ee.delimiters);if(se.length===1&&se[0].type==="text")return null;ie=document.createDocumentFragment();for(const ye of se)if(ye.type==="text")ie.appendChild(document.createTextNode(ye.data));else{const Ee=qd(ye.data,ye.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);Ee&&ie.appendChild(Ee)}}return ie}function wp(a,y){var b,E,ee,ie,se,ye,Ee,Pe,He,ct,_t,fn,xn,Or,bi,Pr;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const ti=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test(ti)){a.textContent="";const li=qd(ti,"",y,!0);li&&a.append(li);return}const Ei=Cp(ti,(ee=y.TeX)==null?void 0:ee.delimiters,(ie=y.asciiMath)==null?void 0:ie.delimiters);if(Ei.length===1&&Ei[0].type==="math"){a.textContent="";const li=qd(Ei[0].data,Ei[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);li&&a.append(li);return}if(Ei.length===1&&Ei[0].type==="text")return}for(let ti=a.childNodes.length-1;ti>=0;ti--){const Ei=a.childNodes[ti];if(Ei.nodeType===3){const li=yy((se=Ei.textContent)!=null?se:"",y);li&&(ti+=li.childNodes.length-1,Ei.replaceWith(li))}else if(Ei.nodeType===1){const li=Ei,sa=Ei.nodeName.toLowerCase();if(sa==="script"){const Fa=Ei;let ya;if((ye=y.processScriptTypePattern)!=null&&ye.test(Fa.type))ya=(Ee=Fa.textContent)!=null?Ee:"";else if((Pe=y.processMathJSONScriptTypePattern)!=null&&Pe.test(Fa.type))try{ya=(ct=y.serializeToLatex)==null?void 0:ct.call(y,JSON.parse((He=Fa.textContent)!=null?He:""))}catch(zo){console.error(zo)}if(ya){let zo="textstyle";for(const Li of Fa.type.split(";")){const[bu,nc]=Li.toLowerCase().split("=");bu.trim()==="mode"&&(zo=nc.trim()==="display"?"displaystyle":"textstyle")}const ps=qd(ya,zo,y,!0);ps&&Fa.parentNode.replaceChild(ps,Fa)}}else if(((fn=(_t=y.processClassPattern)==null?void 0:_t.test(li.className))!=null?fn:!1)||!((Or=(xn=y.skipTags)==null?void 0:xn.includes(sa))!=null&&Or||(Pr=(bi=y.ignoreClassPattern)==null?void 0:bi.test(li.className))!=null&&Pr))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const ya=a.textContent;a.textContent="";const zo=qd(ya!=null?ya:"","displaystyle",y,!0);zo&&a.append(zo)}else wp(li,y)}}}var by={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 xy(a,y){var b,E,ee,ie;try{const se=we(we({},by),y);se.ignoreClassPattern=new RegExp((b=se.ignoreClass)!=null?b:""),se.processClassPattern=new RegExp((E=se.processClass)!=null?E:""),se.processScriptTypePattern=new RegExp((ee=se.processScriptType)!=null?ee:""),se.processMathJSONScriptTypePattern=new RegExp((ie=se.processMathJSONScriptType)!=null?ie:""),zf(),cu("core"),wp(a,se)}catch(se){se instanceof Error?console.error("renderMathInElement(): "+se.message):console.error("renderMathInElement(): Could not render math for element",a)}}function Sy(a,y){const b=Wc.singleton;return b?(b.show(),gf(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function Cy(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}du({switchKeyboardLayer:Sy,toggleVirtualKeyboard:Cy,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function Uc(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function Ly(){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 Fy(a){Ey(document.body,a)}function wy(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 Ey(a,y){var b,E,ee,ie;const se=wy(a);if(!se)return;const ye=y!=null?y:{};(b=ye.renderToMarkup)!=null||(ye.renderToMarkup=Ll),(E=ye.renderToMathML)!=null||(ye.renderToMathML=Ov),(ee=ye.renderToSpeakableText)!=null||(ye.renderToSpeakableText=Rv),(ie=ye.serializeToLatex)!=null||(ye.serializeToLatex=_v),xy(se,ye)}var Ty={mathlive:"0.98.5"}},17423:function(An,Jt,ne){"use strict";ne.d(Jt,{Z:function(){return we}});const oe=ge=>typeof ge=="object"&&ge!=null&&ge.nodeType===1,de=(ge,Be)=>(!Be||ge!=="hidden")&&ge!=="visible"&&ge!=="clip",Fe=(ge,Be)=>{if(ge.clientHeight<ge.scrollHeight||ge.clientWidth<ge.scrollWidth){const Qe=getComputedStyle(ge,null);return de(Qe.overflowY,Be)||de(Qe.overflowX,Be)||(Oe=>{const et=(ot=>{if(!ot.ownerDocument||!ot.ownerDocument.defaultView)return null;try{return ot.ownerDocument.defaultView.frameElement}catch(nt){return null}})(Oe);return!!et&&(et.clientHeight<Oe.scrollHeight||et.clientWidth<Oe.scrollWidth)})(ge)}return!1},Xe=(ge,Be,Qe,Oe,et,ot,nt,Ve)=>ot<ge&&nt>Be||ot>ge&&nt<Be?0:ot<=ge&&Ve<=Qe||nt>=Be&&Ve>=Qe?ot-ge-Oe:nt>Be&&Ve<Qe||ot<ge&&Ve>Qe?nt-Be+et:0,Se=ge=>{const Be=ge.parentElement;return Be==null?ge.getRootNode().host||null:Be},Me=(ge,Be)=>{var Qe,Oe,et,ot;if(typeof document=="undefined")return[];const{scrollMode:nt,block:Ve,inline:xe,boundary:mt,skipOverflowHiddenElements:Lt}=Be,it=typeof mt=="function"?mt:en=>en!==mt;if(!oe(ge))throw new TypeError("Invalid target");const pt=document.scrollingElement||document.documentElement,Ce=[];let be=ge;for(;oe(be)&&it(be);){if(be=Se(be),be===pt){Ce.push(be);break}be!=null&&be===document.body&&Fe(be)&&!Fe(document.documentElement)||be!=null&&Fe(be,Lt)&&Ce.push(be)}const Ze=(Oe=(Qe=window.visualViewport)==null?void 0:Qe.width)!=null?Oe:innerWidth,je=(ot=(et=window.visualViewport)==null?void 0:et.height)!=null?ot:innerHeight,{scrollX:Et,scrollY:ft}=window,{height:ut,width:Re,top:Vt,right:wt,bottom:yn,left:Ft}=ge.getBoundingClientRect(),{top:ln,right:Kn,bottom:rt,left:dt}=(en=>{const Ct=window.getComputedStyle(en);return{top:parseFloat(Ct.scrollMarginTop)||0,right:parseFloat(Ct.scrollMarginRight)||0,bottom:parseFloat(Ct.scrollMarginBottom)||0,left:parseFloat(Ct.scrollMarginLeft)||0}})(ge);let Ae=Ve==="start"||Ve==="nearest"?Vt-ln:Ve==="end"?yn+rt:Vt+ut/2-ln+rt,Bt=xe==="center"?Ft+Re/2-dt+Kn:xe==="end"?wt+Kn:Ft-dt;const Cn=[];for(let en=0;en<Ce.length;en++){const Ct=Ce[en],{height:Rt,width:tn,top:cr,right:Gn,bottom:qt,left:Fn}=Ct.getBoundingClientRect();if(nt==="if-needed"&&Vt>=0&&Ft>=0&&yn<=je&&wt<=Ze&&Vt>=cr&&yn<=qt&&Ft>=Fn&&wt<=Gn)return Cn;const lr=getComputedStyle(Ct),nn=parseInt(lr.borderLeftWidth,10),ze=parseInt(lr.borderTopWidth,10),ue=parseInt(lr.borderRightWidth,10),fe=parseInt(lr.borderBottomWidth,10);let ve=0,he=0;const le="offsetWidth"in Ct?Ct.offsetWidth-Ct.clientWidth-nn-ue:0,Ne="offsetHeight"in Ct?Ct.offsetHeight-Ct.clientHeight-ze-fe:0,Te="offsetWidth"in Ct?Ct.offsetWidth===0?0:tn/Ct.offsetWidth:0,gt="offsetHeight"in Ct?Ct.offsetHeight===0?0:Rt/Ct.offsetHeight:0;if(pt===Ct)ve=Ve==="start"?Ae:Ve==="end"?Ae-je:Ve==="nearest"?Xe(ft,ft+je,je,ze,fe,ft+Ae,ft+Ae+ut,ut):Ae-je/2,he=xe==="start"?Bt:xe==="center"?Bt-Ze/2:xe==="end"?Bt-Ze:Xe(Et,Et+Ze,Ze,nn,ue,Et+Bt,Et+Bt+Re,Re),ve=Math.max(0,ve+ft),he=Math.max(0,he+Et);else{ve=Ve==="start"?Ae-cr-ze:Ve==="end"?Ae-qt+fe+Ne:Ve==="nearest"?Xe(cr,qt,Rt,ze,fe+Ne,Ae,Ae+ut,ut):Ae-(cr+Rt/2)+Ne/2,he=xe==="start"?Bt-Fn-nn:xe==="center"?Bt-(Fn+tn/2)+le/2:xe==="end"?Bt-Gn+ue+le:Xe(Fn,Gn,tn,nn,ue+le,Bt,Bt+Re,Re);const{scrollLeft:At,scrollTop:Tt}=Ct;ve=gt===0?0:Math.max(0,Math.min(Tt+ve/gt,Ct.scrollHeight-Rt/gt+Ne)),he=Te===0?0:Math.max(0,Math.min(At+he/Te,Ct.scrollWidth-tn/Te+le)),Ae+=Tt-ve,Bt+=At-he}Cn.push({el:Ct,top:ve,left:he})}return Cn},ce=ge=>ge===!1?{block:"end",inline:"nearest"}:(Be=>Be===Object(Be)&&Object.keys(Be).length!==0)(ge)?ge:{block:"start",inline:"nearest"};function we(ge,Be){if(!ge.isConnected||!(et=>{let ot=et;for(;ot&&ot.parentNode;){if(ot.parentNode===document)return!0;ot=ot.parentNode instanceof ShadowRoot?ot.parentNode.host:ot.parentNode}return!1})(ge))return;const Qe=(et=>{const ot=window.getComputedStyle(et);return{top:parseFloat(ot.scrollMarginTop)||0,right:parseFloat(ot.scrollMarginRight)||0,bottom:parseFloat(ot.scrollMarginBottom)||0,left:parseFloat(ot.scrollMarginLeft)||0}})(ge);if((et=>typeof et=="object"&&typeof et.behavior=="function")(Be))return Be.behavior(Me(ge,Be));const Oe=typeof Be=="boolean"||Be==null?void 0:Be.behavior;for(const{el:et,top:ot,left:nt}of Me(ge,ce(Be))){const Ve=ot-Qe.top+Qe.bottom,xe=nt-Qe.left+Qe.right;et.scroll({top:Ve,left:xe,behavior:Oe})}}}}]);
}());