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/5812.753fbe01.async.js

3470 lines
1.9 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 zu=Math.pow;var yc=(An,Ut,oe)=>new Promise((me,Me)=>{var Pe=ke=>{try{ge(oe.next(ke))}catch(he){Me(he)}},pt=ke=>{try{ge(oe.throw(ke))}catch(he){Me(he)}},ge=ke=>ke.done?me(ke.value):Promise.resolve(ke.value).then(Pe,pt);ge((oe=oe.apply(An,Ut)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[5812],{89489:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},59477:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},40001:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},49198:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},84105:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},18785:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},87169:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},73331:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},15277:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},52671:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},8657:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},56082:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},33853:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},15075:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},62772:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},43531:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},61485:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},38819:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},47472:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},87395:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(ze,vt){return Me.createElement(ge.Z,(0,me.Z)({},ze,{ref:vt,icon:pt}))},he=Me.forwardRef(ke),we=he},14618:function(){"use strict"},66552:function(){"use strict"},18760:function(An,Ut){"use strict";Ut.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},82299:function(An,Ut){"use strict";Ut.Z={modal:"modal___A9Ovz",colorBlue:"colorBlue___XSmR5",formWrap:"formWrap___wRvaA",flexRow:"flexRow___C40dc",flexColumn:"flexColumn___LkZfj",example:"example___bz7Hw",exampleImg:"exampleImg___gNkC_",colorOrange:"colorOrange___Ka6zf",uploader:"uploader___plQRr",uploadImg:"uploadImg___cjOpL",imageTip:"imageTip___p1_lZ",uploadTipIcon:"uploadTipIcon___SpsS2",uploadTip:"uploadTip___e9JlL",color05101a:"color05101a___CDEUv",viewLargerImg:"viewLargerImg___IclRX",footerWrap:"footerWrap___beWC6",note:"note___CXi9y",schoolHintWrap:"schoolHintWrap___Ma6ly",colorCDCDCD:"colorCDCDCD___D0UWo",color0152d9:"color0152d9___hF3Bb"}},3352: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={},Ut="5.0",oe={},me=null,Me=!1,Pe=!1,pt=null,ge=!1,ke=null,he=null,we=0;we<arguments.length;we++){var Ee=arguments[we];if(Ee!==null)switch(typeof Ee){case"number":Ut=Ee.toFixed(1);break;case"string":Ee.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ut=Ee:pt=Ee;break;case"object":typeof Ee.is3D!="undefined"?me=Ee:oe=Ee;break;case"boolean":Me=Ee,Pe=!0;break}}me===null&&(me={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},oe.material_id!==void 0&&!Pe&&(Me=!0)),pt!==null&&oe.id===void 0&&(oe.id=pt);var ze="",vt="",Ie=!1,He=null,st=null,Je=null,Ue=!1,gt=null,Et=null,At=null,dt=null,nt=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var Ve=function(at){return parseFloat(at)>4?parseFloat(at):5};An.setHTML5Codebase=function(at,ot){he=at,Ct(at,ot)},An.setJavaCodebase=An.setJavaCodebaseVersion=An.isCompiledInstalled=An.setPreCompiledScriptPath=An.setPreCompiledResourcePath=function(){},An.setHTML5CodebaseVersion=function(at,ot){var Nt=parseFloat(at);if(Nt!==NaN&&Nt<5){console.log("The GeoGebra HTML5 codebase version "+Nt+" is deprecated. Using version latest instead.");return}ke=at,be(at,ot)},An.getHTML5CodebaseVersion=function(){return st},An.getParameters=function(){return oe},An.setFontsCSSURL=function(at){dt=at},An.setGiacJSURL=function(at){},An.setJNLPFile=function(at){ze=at},An.setJNLPBaseDir=function(at){},An.inject=function(){function at(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ot="auto",Nt=oe.id,Sn,$t=!1,mn=0;mn<arguments.length;mn++){var on=arguments[mn];typeof on=="string"?(on=on.toLowerCase(),on.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ot=on:Nt=arguments[mn]):typeof on=="boolean"?$t=on:on instanceof HTMLElement&&(Sn=on)}nn();function nn(){if(!ge){setTimeout(nn,200);return}ot=It(ot);var en=Sn||document.getElementById(Nt);if(!en){console.log("possibly bug on ajax loading? ");return}if(An.removeExistingApplet(en,!1),oe.width===void 0&&en.clientWidth&&(oe.width=en.clientWidth),oe.height===void 0&&en.clientHeight&&(oe.height=en.clientHeight),!(oe.width&&oe.height)&&ot==="html5"&&(delete oe.width,delete oe.height),He=ot,ot==="screenshot")qe(en,oe);else{var ye=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?ye=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(ye=(!Se()||at())&&$e()),ye?(He="screenshot",Dt(en,oe,$t,ot)):Pt(en,oe,$t)}}};function Se(){try{return window.self!==window.top}catch(at){return!0}}function $e(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}An.getViews=function(){return me},An.isJavaInstalled=function(){return!1};var Ye=function(at){var ot=function(mn){var on=JSON.parse(mn),nn=function(ue){return ue.type=="G"||ue.type=="E"},en=on.elements?on.elements.filter(nn)[0]:on;if(!en||!en.url){Nt();return}oe.fileName=en.url,ht(en.settings||{}),me.is3D=!0;var ye="https://www.geogebra.org/images/";An.setPreviewImage(gt||en.previewUrl,ye+"GeoGebra_loading.png",ye+"applet_play.png"),at()},Nt=function(){oe.onError&&oe.onError(),Yt("Error: Fetching material (id "+oe.material_id+") failed.",oe)},Sn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",$t="/materials/"+oe.material_id+"?scope=basic";Xe("https://"+Sn+"/api/proxy.php?path="+encodeURIComponent($t),ot,Nt)};function ht(at){var ot=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Nt){at[Nt]=!!at[Nt]}),ot.forEach(function(Nt){oe[Nt]===void 0&&at[Nt]!==void 0&&(oe[Nt]=at[Nt])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function Xe(at,ot,Nt){var Sn=new XMLHttpRequest;Sn.open("GET",at),Sn.onload=function(){ot(Sn.responseText)},Sn.onerror=Nt,Sn.send()}An.isHTML5Installed=function(){return!0},An.getLoadedAppletType=function(){return He},An.setPreviewImage=function(at,ot,Nt){gt=at,Et=ot,At=Nt},An.removeExistingApplet=function(at,ot){var Nt;typeof at=="string"&&(at=document.getElementById(at)),He=null;var Sn=null;for(Nt=0;Nt<at.childNodes.length;Nt++){var $t=at.childNodes[Nt],mn=$t.className;mn==="applet_screenshot"?ot?($t.style.display="block",He="screenshot"):$t.style.display="none":mn!=="applet_scaler prerender"&&(at.removeChild($t),Sn=mn&&mn.indexOf("appletParameters")!=-1?$t.id:null,Nt--)}var on=oe.id!==void 0?oe.id:Sn,nn=window[on];nn&&typeof nn.getBase64=="function"&&(nn.remove(),window[on]=null)},An.refreshHitPoints=function(){if(Ve(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var at=An.getAppletObject();return at&&typeof at.recalculateEnvironments=="function"?(at.recalculateEnvironments(),!0):!1},An.startAnimation=function(){var at=An.getAppletObject();return at&&typeof at.startAnimation=="function"?(at.startAnimation(),!0):!1},An.stopAnimation=function(){var at=An.getAppletObject();return at&&typeof at.stopAnimation=="function"?(at.stopAnimation(),!0):!1},An.getAppletObject=function(){var at=oe.id!==void 0?oe.id:"ggbApplet";return window[at]},An.resize=function(){};var ut=function(at,ot,Nt){var Sn=document.createElement("param");Sn.setAttribute("name",ot),Sn.setAttribute("value",Nt),at.appendChild(Sn)},Oe=function(at){return at&&at!=="false"},Pt=function(at,ot,Nt){Ve(st)<=4.2&&(Nt=!0);var Sn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==st||ggbHTML5LoadedCodebaseIsWebSimple&&!Ue)&&(Sn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var $t=document.createElement("div");$t.classList.add("appletParameters","notranslate");var mn=ot.width,on=ot.height;if(ot.disableAutoScale=ot.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ot.disableAutoScale,ot.width!==void 0)if(Ve(st)<=4.4)Oe(ot.showToolBar)&&(ot.height-=7),Oe(ot.showAlgebraInput)&&(ot.height-=37),ot.width<605&&Oe(ot.showToolBar)&&(ot.width=605,mn=605);else{var nn=100;(Oe(ot.showToolBar)||Oe(ot.showMenuBar))&&(ot.hasOwnProperty("customToolBar")&&(ot.customToolbar=ot.customToolBar),nn=Oe(ot.showMenuBar)?245:155),mn<nn&&(ot.width=nn,mn=nn)}$t.style.border="none",$t.style.display="inline-block";for(var en in ot)ot.hasOwnProperty(en)&&en!=="appletOnLoad"&&$t.setAttribute("data-param-"+en,ot[en]);dt&&$t.setAttribute("data-param-fontscssurl",dt),An.resize=function(){GGBAppletUtils.responsiveResize(at,ot)},window.addEventListener("resize",function(Ge){An.resize()});var ye=typeof ot.appletOnLoad=="function"?ot.appletOnLoad:function(){};if(!Nt&&ot.width!==void 0){ot.hasOwnProperty("showSplash")||$t.setAttribute("data-param-showSplash","false");var ue=at.querySelector(".applet_scaler.prerender"),se=ue!==null;if(se)var ce=ue.querySelector(".ggb_preview");else{var ce=St(mn,on,ot.borderColor,!1);ue=document.createElement("div"),ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.style.width=mn+"px",ue.style.height=on+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ue,"66%"),Ve(st)>=5?(ot.appletOnLoad=function(Ge){var xt=at.querySelector(".ggb_preview");xt&&xt.parentNode.removeChild(xt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ue),window.GGBT_wsf_view&&$(window).trigger("resize"),ye(Ge)},se||ue.appendChild(ce)):$t.appendChild(ce),ue.appendChild($t),se||at.appendChild(ue),setTimeout(function(){An.resize()},1)}else{var de=document.createElement("div");de.className="applet_scaler",de.style.position="relative",de.style.display="block",de.appendChild($t),at.appendChild(de),ot.appletOnLoad=function(Ge){An.resize(),ye(Ge)}}function ae(Ge,xt){xt&&typeof xt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ge,xt.appletOnLoad):renderGGBElement(Ge),Yt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",xt)}function Be(Ge,xt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ge,params:xt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Xt){ae(Xt.article,Xt.params)}),html5AppletsToProcess=null)},Ve(st)<5&&(Ge.className+=" geogebraweb")):ae(Ge,xt)}if(Sn){scriptLoadStarted=!0;for(var ft=0;ft<$t.childNodes.length;ft++){var Fe=$t.childNodes[ft].tagName;Fe==="TABLE"&&($t.removeChild($t.childNodes[ft]),ft--)}if(ggbHTML5LoadedScript!==null){var De=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');De!=null&&De.parentNode.removeChild(De)}var mt=document.createElement("script"),rt=function(){Be($t,ot)};mt.src=vt+Je,ggbHTML5LoadedCodebaseIsWebSimple=Ue,ggbHTML5LoadedCodebaseVersion=st,ggbHTML5LoadedScript=mt.src,Yt("GeoGebra HTML5 codebase loaded: '"+vt+"'.",ot),!he&&(!ke||ke=="5.0")?(Ue?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),rt()):vt.requirejs?__webpack_require__.e(7206).then(function(){var Ge=[__webpack_require__(97206)];rt.apply(null,Ge)}.bind(this)).catch(__webpack_require__.oe):(mt.onload=rt,at.appendChild(mt))}else Be($t,ot);ot.height=on,ot.width=mn},qe=function(at,ot,Nt){var Sn=St(ot.width,ot.height,ot.borderColor,Nt),$t=document.createElement("div");$t.style.position="relative",$t.style.display="block",$t.style.width=ot.width+"px",$t.style.height=ot.height+"px",$t.className="applet_screenshot applet_scaler"+(Nt?" applet_screenshot_play":""),$t.appendChild(Sn);var mn=GGBAppletUtils.getScale(ot,at,Nt);Nt?(at.appendChild(Bt()),window.GGBT_wsf_view||(at.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner($t,"66%"),at.appendChild($t),mn!==1&&!isNaN(mn)&&(GGBAppletUtils.scaleElement($t,mn),$t.style.width=ot.width+"px",$t.style.height=ot.height+"px",$t.parentNode.style.width=ot.width*mn+"px",$t.parentNode.style.height=ot.height*mn+"px"),An.resize=function(){zt(at,Sn,$t,Nt)},window.addEventListener("resize",function(on){An.resize()}),An.resize()};function zt(at,ot,Nt,Sn){if(at.contains(ot)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(at.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(at)}var $t=GGBAppletUtils.getScale(oe,at,Sn);Nt.parentNode!==null&&(!isNaN($t)&&$t!==1?(GGBAppletUtils.scaleElement(Nt,$t),Nt.parentNode.style.width=oe.width*$t+"px",Nt.parentNode.style.height=oe.height*$t+"px"):(GGBAppletUtils.scaleElement(Nt,1),Nt.parentNode.style.width=oe.width+"px",Nt.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(at),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}An.onExitFullscreen=function(at,ot){ot.appendChild(at)};var Dt=function(at,ot,Nt,Sn){qe(at,ot,!0);for(var $t=function(){var nn=[];for(on=0;on<at.childNodes.length;on++)nn.push(at.childNodes[on]);if(window.GGBT_wsf_view){var en=window.GGBT_wsf_view.renderFullScreen(at,ot.id),ye=document.getElementById("fullscreencontainer"),ue=jQuery(at).find(".fullscreencontent");ue.length>0?(en.remove(),ue.attr("id","fullscreencontent").show(),jQuery(ye).append(ue),window.dispatchEvent(new Event("resize"))):Pt(en,ot,!1),window.GGBT_wsf_view.launchFullScreen(ye)}else He=Sn,Pt(at,ot,!1);if(!window.GGBT_wsf_view)for(on=0;on<nn.length;on++)at.removeChild(nn[on])},mn=at.getElementsByClassName("ggb_preview_play"),on=0;on<mn.length;on++)mn[on].addEventListener("click",$t,!1),mn[on].addEventListener("ontouchstart",$t,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(at),$e()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Bt=function(){var at=document.createElement("div");if(at.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ot='.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");}',Nt=document.createElement("style");Nt.styleSheet?Nt.styleSheet.cssText=ot:Nt.appendChild(document.createTextNode(ot)),document.getElementsByTagName("head")[0].appendChild(Nt)}return at},St=function(at,ot,Nt,Sn){var $t=document.createElement("div");$t.className="ggb_preview",$t.style.position="absolute",$t.style.zIndex="90",$t.style.width=at-2+"px",$t.style.height=ot-2+"px",$t.style.top="0px",$t.style.left="0px",$t.style.overflow="hidden",$t.style.backgroundColor="white";var mn="lightgrey";Nt!==void 0&&(Nt==="none"?mn="transparent":mn=Nt),$t.style.border="1px solid "+mn;var on=document.createElement("img");if(on.style.position="relative",on.style.zIndex="1000",on.style.top="-1px",on.style.left="-1px",gt!==null&&on.setAttribute("src",gt),on.style.opacity=.7,Et!==null){var nn,en,ye;if(!Sn){nn=document.createElement("img"),nn.style.position="absolute",nn.style.zIndex="1001",nn.style.opacity=1,on.style.opacity=.3,en=360,en>at/4*3&&(en=at/4*3),ye=en/5.8,nn.setAttribute("src",Et),nn.setAttribute("width",en),nn.setAttribute("height",ye);var ue=(at-en)/2,se=(ot-ye)/2;nn.style.left=ue+"px",nn.style.top=se+"px",$t.appendChild(nn)}}return $t.appendChild(on),$t},It=function(at){return at=at.toLowerCase(),at==="html5"||at==="screenshot"?at:"html5"},Qe=["web","webSimple","web3d","tablet","tablet3d","phone"],be=function(at,ot){if(st=at,ot){Ct(st,!0);return}var Nt=!Me;if(Nt){var Sn=Ve(st);!isNaN(Sn)&&Sn<4.4&&(Nt=!1)}var $t,mn;window.location.protocol.substr(0,4)==="http"?$t=window.location.protocol:$t="http:";var on=st.indexOf("//");on>0?mn=st:on===0?mn=$t+st:mn="https://www.geogebra.org/apps/5.2.814.0/";for(var nn in Qe)if(st.slice(Qe[nn].length*-1)===Qe[nn]||st.slice((Qe[nn].length+1)*-1)===Qe[nn]+"/"){Ct(mn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Nt&&!me.is3D&&!me.AV&&!me.SV&&!me.CV&&!me.EV2&&!me.CP&&!me.PC&&!me.DA&&!me.FI&&!me.PV&&!Oe(oe.showToolBar)&&!Oe(oe.showMenuBar)&&!Oe(oe.showAlgebraInput)&&!Oe(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?mn+="webSimple/":mn+="web3d/",Ct(mn,!1)},Ct=function(at,ot){if(at.requirejs){vt=at;return}at.slice(-1)!=="/"&&(at+="/"),vt=at,ot===null&&(ot=at.indexOf("http")===-1),Ie=ot,Je="web.nocache.js",Ue=!1;var Nt=vt.split("/");Nt.length>1&&(!ot&&Nt[Nt.length-2]==="webSimple"?(Je="webSimple.nocache.js",Ue=!0):Qe.indexOf(Nt[Nt.length-2])>=0&&(Je=Nt[Nt.length-2]+".nocache.js")),Nt=at.split("/"),st=Nt[Nt.length-3],st.substr(0,4)==="test"?st=st.substr(4,1)+"."+st.substr(5,1):(st.substr(0,3)==="war"||st.substr(0,4)==="beta")&&(st="5.0");var Sn=parseFloat(st);Sn!==NaN&&Sn<5&&at.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Sn+" is deprecated. Using version latest instead."),be("5.0",ot))},Yt=function(at,ot){window.console&&window.console.log&&(!ot||typeof ot.showLogging=="undefined"||ot.showLogging&&ot.showLogging!=="false")&&console.log(at)};oe.material_id!==void 0?Ye(Zt):Zt();function Zt(){var at=Ut;ke!==null?at=ke:parseFloat(at)<5&&(at="5.0"),be(at,!1),he!==null&&Ct(he,Ie),ge=!0}return An},GGBAppletUtils=function(){"use strict";function An(){return window.GGBT_wsf_edit!==void 0}function Ut(ge,ke){ke!=1?(ge.style.transformOrigin="0% 0% 0px",ge.style.webkitTransformOrigin="0% 0% 0px",ge.style.transform="scale("+ke+","+ke+")",ge.style.webkitTransform="scale("+ke+","+ke+")",ge.style.maxWidth="initial",ge.querySelector(".ggb_preview")!==null&&(ge.querySelector(".ggb_preview").style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ge.style.transform="none",ge.style.webkitTransform="none")}function oe(ge,ke,he,we,Ee,ze){var vt=null;if(ze!=null&&ze!="")for(var Ie=ge.parentNode;Ie!=null;)if((" "+Ie.className+" ").indexOf(" "+ze+" ")>-1){vt=Ie;break}else Ie=Ie.parentNode;var He=0,st=0,Je=0,Ue=0,gt=0,Et=0,At=0;if(vt)He=vt.offsetWidth,st=Math.max(we?vt.offsetWidth:0,vt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(He=Math.min(window.innerWidth,document.documentElement.clientWidth),st=Math.min(window.innerHeight,document.documentElement.clientHeight),Je=He):(He=window.innerWidth,st=window.innerHeight,Je=window.innerWidth),ge){var dt=ge.getBoundingClientRect();dt.left>0&&dt.left<=He&&(Ee===void 0||!Ee)&&(document.dir==="rtl"?(gt=He-dt.width-dt.left,Et=Je<=480?10:30):(Et=dt.left,gt=Je<=480?10:30),Ue=Et+gt)}if(ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var nt=ge.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ue=40,At=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ue=0,At=40)}}return ge&&((he===void 0||!he)&&ke>0&&ke+Ue<He?He=ke:He-=Ue,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(he===void 0||!he)&&(st-=At)),{width:He,height:st}}function me(ge,ke,he,we,Ee){if(ge.isScreenshoGenerator)return 1;var ze=we!==void 0&&we,vt=ge.noScaleMargin!=null&&ge.noScaleMargin,Ie=function(nt){return nt&&nt!=="false"},He=Ie(ge.autoHeight),st=oe(ke,ge.width,he,He,ze&&window.GGBT_wsf_view||vt,Ee),Je=parseInt(st.width),Ue=ge.width,gt=ge.height;if(Ue===void 0){var Et=ke.querySelector(".appletParameters");Et&&(Ue=Et.offsetWidth,gt=Et.offsetHeight)}var At=Je/Ue,dt=ze?1:st.height/gt;return he!==void 0&&!he&&(At=Math.min(1,At),dt=Math.min(1,dt)),Math.min(At,dt)}function Me(ge,ke,he){var we=1,Ee,ze=!1;if(ge.hasOwnProperty("allowUpscale")&&(ze=ge.allowUpscale),ge.hasOwnProperty("scale")&&(we=parseFloat(ge.scale),(isNaN(we)||we===null||we===0)&&(we=1),we>1&&(ze=!0)),ke&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ze=!0),!(ge.hasOwnProperty("disableAutoScale")&&ge.disableAutoScale))Ee=me(ge,ke,ze,he,ge.scaleContainerClass);else return we;return ze&&(!ge.hasOwnProperty("scale")||we===1)?Ee:Math.min(we,Ee)}function Pe(ge){var ke=Math.min(window.innerWidth,document.documentElement.clientWidth),he=Math.min(window.innerHeight,document.documentElement.clientHeight),we=ge.getBoundingClientRect(),Ee=(ke-we.width)/2,ze=(he-we.height)/2;ze<0&&(ze=0),ge.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ee<40?ge.style.left="40px":ge.style.left=Ee+"px",ge.style.top=ze+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ze<40?ge.style.top="40px":ge.style.top=ze+"px",ge.style.left=Ee+"px")}function pt(ge,ke){var he=ge.querySelector(".appletParameters");if(he){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ke.id!==he.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ge)}if(he.parentElement&&/fullscreen/.test(he.parentElement.className))return;var we=Me(ke,ge);An()&&he.setAttribute("data-param-scale",we);for(var Ee=null,ze=0;ze<ge.childNodes.length;ze++)if(ge.childNodes[ze].className!==void 0&&ge.childNodes[ze].className.match(/^applet_scaler/)){Ee=ge.childNodes[ze];break}if(Ee!==null&&Ee.querySelector(".noscale")!==null)return;var vt=ke.id!==void 0?ke.id:"ggbApplet",Ie=window[vt];(Ie==null||!Ie.recalculateEnvironments)&&Ee!==null&&!Ee.className.match(/fullscreen/)&&(Ee.parentNode.style.transform="",!isNaN(we)&&we!==1?(Ee.parentNode.style.width=ke.width*we+"px",Ee.parentNode.style.height=ke.height*we+"px",Ut(Ee,we)):(Ut(Ee,1),Ee.parentNode.style.width=ke.width+"px",Ee.parentNode.style.height=ke.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Pe(ge),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(he).parents(".content-added-content"))}}return{responsiveResize:pt,isFlexibleWorksheetEditor:An,positionCenter:Pe,getScale:Me,scaleElement:Ut}}();__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,Ut){}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 Ut=s[L].bindings;s[L].bindings=function(){for(var oe=Ut?Ut():{},me=An[webModule.__softPermutationId],Me=O;Me<me.length;Me++){var Pe=me[Me];oe[Pe[O]]=Pe[P]}return oe}};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 Ut=document.compatMode==U?V:W;t.write(Ut+X),t.close()}}}function w(An){function Ut(me){function Me(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Pe=Me();if(Pe){me();return}function pt(){if(!Pe){if(!Me())return;Pe=!0,me(),o.removeEventListener&&o.removeEventListener(Z,pt,!1),ge&&clearInterval(ge)}}o.addEventListener&&o.addEventListener(Z,pt,!1);var ge=setInterval(function(){pt()},$)}function oe(me){var Me=u(),Pe=Me.body,pt=Me.createElement(_);pt.language=ab,pt.crossOrigin=W,pt.src=me,webModule.__errFn&&(pt.onerror=function(){webModule.__errFn(L,new Error(bb+me))}),Pe.appendChild(pt)}Ut(function(){oe(An)})}webModule.__startLoadingFragment=function(An){return C(An)},webModule.__installRunAsyncCode=function(An){var Ut=u(),oe=Ut.body,me=Ut.createElement(_);me.language=ab,me.text=An,oe.appendChild(me),oe.removeChild(me)};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 Ut=c[An];return Ut==null?null:Ut},r=d,webModule.__errFn=e}function B(){function An(ge){var ke=ge.lastIndexOf(rb);ke==-1&&(ke=ge.length);var he=ge.indexOf(sb);he==-1&&(he=ge.length);var we=ge.lastIndexOf(tb,Math.min(he,ke));return we>=O?ge.substring(O,we+P):W}function Ut(ge){if(!ge.match(/^\w+:\/\//)){var ke=o.createElement(ub);ke.src=ge+vb,ge=An(ke.src)}return ge}function oe(){var ge=__gwt_getMetaProperty(wb);return ge!=null?ge:W}function me(){for(var ge=o.getElementsByTagName(_),ke=O;ke<ge.length;++ke)if(ge[ke].src.indexOf(xb)!=-1)return An(ge[ke].src);return W}function Me(){var ge=o.getElementsByTagName(yb);return ge.length>O?ge[ge.length-P].href:W}function Pe(){var ge=o.location;return ge.href==ge.protocol+zb+ge.host+ge.pathname+ge.search+ge.hash}var pt=oe();return pt==W&&(pt=me()),pt==W&&(pt=Me()),pt==W&&Pe()&&(pt=An(o.location.href)),pt=Ut(pt),pt}function C(An){return An.match(/^\//)||An.match(/^[a-zA-Z]+:\/\//)?An:webModule.__moduleBase+An}function D(){var An=[],Ut=O,oe=[],me=[];function Me(ge){var ke=me[ge](),he=oe[ge];if(ke in he)return ke;var we=[];for(var Ee in he)we[he[Ee]]=Ee;throw r&&r(ge,we,ke),null}if(__gwt_isKnownPropertyValue=function(ge,ke){return ke in oe[ge]},webModule.__getPropMap=function(){var ge={};for(var ke in oe)oe.hasOwnProperty(ke)&&(ge[ke]=Me(ke));return ge},webModule.__computePropValue=Me,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Pe;try{Pe=Cb;var pt=Pe.indexOf(Db);pt!=-1&&(Ut=parseInt(Pe.substring(pt+P),$),Pe=Pe.substring(O,pt))}catch(ge){}return webModule.__softPermutationId=Ut,C(Pe+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})()},79090:function(An,Ut,oe){"use strict";oe.d(Ut,{Ax:function(){return pt},Ds:function(){return ge},KI:function(){return he},SI:function(){return Pe},f1:function(){return Me}});var me=oe(6521);function Me(we){let Ee=!0;if(we.length>0){for(let ze=0;ze<we.length;ze++)if(we[ze].compile_success==0||!we[ze].compile_success){Ee=!1;break}}else Ee=!1;return Ee}function Pe(we,Ee=""){let ze=[];for(let vt=0;vt<we.length;vt++){let Ie=we[vt],He=Ee?`${Ee}/${Ie.name}`:`${Ie.name}`;ze.push({title:Ie.name,type:Ie.type,isLeaf:Ie.type!=="tree",key:He})}return ze}function pt(we,Ee,ze){for(let vt=0;vt<we.length;vt++){let Ie=we[vt];if(Ie.key===Ee){Ie.children=ze;break}Ie.children&&pt(Ie.children,Ee,ze)}return we}function ge(we,Ee,ze){let vt;return function(){let Ie=this,He=arguments,st=function(){vt=null,ze||we.apply(Ie,He)},Je=ze&&!vt;clearTimeout(vt),vt=setTimeout(st,Ee),Je&&we.apply(Ie,He)}}const ke=!0,he=me.Z.API_SERVER},36544:function(An,Ut,oe){"use strict";var me=oe(59301),Me=oe(91482),Pe=oe(92832),pt=oe(78241),ge=oe(8591),ke=oe(43418),he=oe(1710),we=oe(79769),Ee=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Ie=(Ue,gt)=>{var Et={};for(var At in Ue)ze.call(Ue,At)&&gt.indexOf(At)<0&&(Et[At]=Ue[At]);if(Ue!=null&&Ee)for(var At of Ee(Ue))gt.indexOf(At)<0&&vt.call(Ue,At)&&(Et[At]=Ue[At]);return Et},He=(Ue,gt,Et)=>new Promise((At,dt)=>{var nt=$e=>{try{Se(Et.next($e))}catch(Ye){dt(Ye)}},Ve=$e=>{try{Se(Et.throw($e))}catch(Ye){dt(Ye)}},Se=$e=>$e.done?At($e.value):Promise.resolve($e.value).then(nt,Ve);Se((Et=Et.apply(Ue,gt)).next())});const st=Pe.default.TextArea,Je=Ue=>{var gt=Ue,{account:Et,globalSetting:At,loading:dt,dispatch:nt,schoolName:Ve,departmentName:Se,visible:$e,onClose:Ye=()=>{},onSuccess:ht=()=>{}}=gt,Xe=Ie(gt,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]);const[ut]=pt.default.useForm(),Oe=(0,me.useRef)(),[Pt,qe]=(0,me.useState)(!1);(0,me.useEffect)(()=>{Oe.current=Xe.schoolId},[Xe.schoolId]),(0,me.useEffect)(()=>{ut.setFieldsValue({department:Se})},[Se]);const zt=Dt=>He(void 0,null,function*(){var Bt,St,It;const{department:Qe,remarks:be}=Dt||{};qe(!0);const Ct=yield(0,we.ZP)("/api/add_department_applies/inspect.json",{method:"get",params:{name:Qe,school_id:Oe.current}});qe(!1);const Yt=()=>He(void 0,null,function*(){const Zt=yield nt({type:"account/appplyDepartment",payload:{school_id:Oe.current,name:Qe,remarks:be}});(Zt==null?void 0:Zt.status)===0&&(ge.ZP.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),ht(Qe),Ye())});if((Ct==null?void 0:Ct.status)===0){if((Bt=Ct==null?void 0:Ct.data)!=null&&Bt.name){ke.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:me.createElement("div",null,me.createElement("div",{className:"mb10"},"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u7533\u8BF7\u65B0\u589E\u7684\u90E8\u95E8\u5DF2\u5B58\u5728\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4E3A\u8BE5\u90E8\u95E8\uFF1F"),me.createElement(he.default,{rowKey:"name",columns:[{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"name"},{title:"\u7528\u6237\u6570",dataIndex:"size"}],dataSource:[{name:(St=Ct==null?void 0:Ct.data)==null?void 0:St.name,size:(It=Ct==null?void 0:Ct.data)==null?void 0:It.size}],pagination:!1})),onOk:()=>{ht(Qe),Ye()}});return}Yt()}});return me.createElement(ke.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:$e,title:"\u7533\u8BF7\u6DFB\u52A0\u90E8\u95E8\u540D\u79F0",width:"600px",onCancel:Ye,onOk:()=>ut.submit(),confirmLoading:Pt},me.createElement(pt.default,{form:ut,labelCol:{span:4},wrapperCol:{span:20},onFinish:zt},me.createElement(pt.default.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},Ve),me.createElement(pt.default.Item,{label:"\u90E8\u95E8\u540D\u79F0\uFF1A",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"}]},me.createElement(Pe.default,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),me.createElement(pt.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks",style:{marginBottom:0}},me.createElement(st,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"}))))};Ut.Z=(0,Me.connect)(({account:Ue,loading:gt,globalSetting:Et})=>({account:Ue,globalSetting:Et,loading:gt.effects}))(Je)},15868:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return vt}});var me=oe(59301),Me={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Pe=oe(92310),pt=oe.n(Pe),ge=oe(71418),ke=oe(2859),he=oe(79769),we=oe(25544),Ee=(Ie,He,st)=>new Promise((Je,Ue)=>{var gt=dt=>{try{At(st.next(dt))}catch(nt){Ue(nt)}},Et=dt=>{try{At(st.throw(dt))}catch(nt){Ue(nt)}},At=dt=>dt.done?Je(dt.value):Promise.resolve(dt.value).then(gt,Et);At((st=st.apply(Ie,He)).next())}),vt=({data:Ie,className:He,fullWidth:st,style:Je={},onClose:Ue,onOk:gt,showFullTools:Et,noAssociationId:At})=>{const dt=(0,me.useRef)(null),nt=(0,me.useRef)(null),Ve=(0,me.useRef)(null),Se=(0,me.useRef)(null),[$e,Ye]=(0,me.useState)(!1),[ht,Xe]=(0,me.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,me.useEffect)(()=>{Ve.current||(Ve.current=document.createElement("style"),document.head.appendChild(Ve.current)),Ie!=null&&Ie.visible?(document.body.setAttribute("data-custom","y-hidden"),Ve.current.innerHTML=" html { overflow-y: hidden; }",Ie!=null&&Ie.src&&ut()):(document.body.removeAttribute("data-custom"),Ve.current&&(document.head.removeChild(Ve.current),Ve.current=null))},[Ie==null?void 0:Ie.visible]);const ut=()=>Ee(void 0,null,function*(){Ye(!0),Xe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Dt=yield(0,we.ZJ)(Ie==null?void 0:Ie.src);dt.current.src="",dt.current.src=Dt,dt.current.onload=function(){zt()},Ye(!1),Xe("")}),Oe=()=>{document.body.removeAttribute("data-custom"),Ve.current.innerHTML=" ",Ue()},Pt=Dt=>Ee(void 0,null,function*(){Ye(!0),Xe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Bt=yield(0,he.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ie.title,file:Dt.dataUrl}});Bt!=null&&Bt.id&&!At?(yield(0,he.ZP)(`/api/attachments/${Ie.id}/add_subitem.json`,{method:"post",body:{subitem_id:Bt==null?void 0:Bt.id,settings:JSON.stringify(Dt.state)}})).status===0&&gt():Bt!=null&&Bt.id&&gt(Bt),document.body.removeAttribute("data-custom"),Ve.current.innerHTML=" ",Ye(!1),Xe("")}),qe=()=>{const Dt=document.querySelector('a[href="https://markerjs.com/"]');Dt&&Dt.parentNode&&(Dt.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(St=>{const It=document.querySelector(St.name);It&&It.setAttribute("title",St.title)})},zt=()=>{nt.current=new ke.hP(dt.current),nt.current.targetRoot=Se.current,nt.current.addEventListener("render",Pt),nt.current.addEventListener("beforeclose",Oe),Et&&(nt.current.availableMarkerTypes=nt.current.ALL_MARKER_TYPES,nt.current.uiStyleSettings.redoButtonVisible=!0,nt.current.uiStyleSettings.notesButtonVisible=!0,nt.current.uiStyleSettings.zoomButtonVisible=!0,nt.current.uiStyleSettings.zoomOutButtonVisible=!0,nt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=nt.current.uiStyleSettings,nt.current.show(),Ie!=null&&Ie.snapshotData&&nt.current.restoreState(Ie.snapshotData),setTimeout(()=>{window.scrollTo(0,0),qe()},300)};return me.createElement(me.Fragment,null,(Ie==null?void 0:Ie.visible)&&me.createElement(ge.Z,{spinning:$e,tip:ht,style:{position:"absolute"}},me.createElement("div",{ref:Se,className:pt()(Me.imageDimensions,He,st?Me.fullWidth:""),style:Je},me.createElement("img",{className:Me.img,ref:dt}))))}},3315:function(An,Ut,oe){"use strict";var me=oe(59301),Me=oe(95237),Pe=oe(43604),pt=oe(99313),ge=oe(3113),ke=oe(39655),he=oe(18760),we=oe(48136),Ee=oe(59301);const ze=(0,me.forwardRef)(({callback:vt,showSaveButton:Ie,value:He=""},st)=>{const Je=(0,me.useRef)(),Ue=[{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 "}]}]}],gt=[{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}`}]}]}],Et=nt=>{Je.current.setValue(Je.current.getValue()+" "+nt.value+" ")},At=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ee.createElement(Me.Z,{className:he.Z.lists,gutter:[10,10]},Ue.map((nt,Ve)=>Ee.createElement(Pe.Z,{flex:"110px",className:he.Z.item},Ee.createElement("div",null,Ee.createElement(ke.Z,{value:`$$${nt.value}$$`}),nt.name),Ee.createElement("div",{className:he.Z.children},nt.children.map((Se,$e)=>Ee.createElement("div",{key:$e},Ee.createElement("h1",null,Se.name),Ee.createElement(Me.Z,{gutter:[10,10]},Se.data.map((Ye,ht)=>Ee.createElement(Pe.Z,{key:ht,onClick:()=>Et(Ye),className:he.Z.diamond},Ee.createElement(ke.Z,{value:"`$$"+Ye.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ee.createElement(Me.Z,{className:he.Z.lists,gutter:[10,10]},gt.map((nt,Ve)=>Ee.createElement(Pe.Z,{flex:"110px",className:he.Z.item},Ee.createElement("div",null,Ee.createElement(ke.Z,{value:"`$$"+nt.value+"$$`"}),nt.name),Ee.createElement("div",{className:he.Z.children},nt.children.map((Se,$e)=>Ee.createElement("div",{key:$e},Se.name&&Ee.createElement("h1",null,Se.name),Ee.createElement(Me.Z,{gutter:[10,10]},Se.data.map((Ye,ht)=>Ee.createElement(Pe.Z,{key:ht,onClick:()=>Et(Ye),className:he.Z.diamond},Ee.createElement(ke.Z,{value:"`$$"+Ye.value+"$$`"}))))))))))}],dt=()=>{var nt=document.createElement("div");nt.innerHTML=Je.current.getValue();var Ve=nt.innerText;return vt&&vt(Ve),Ve};return(0,me.useImperativeHandle)(st,()=>({getData:dt})),Ee.createElement("div",{className:he.Z.mathWrap},Ee.createElement(pt.default,{defaultActiveKey:"1",items:At}),Ee.createElement("math-field",{locale:"zh_cn",className:he.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Je,style:{width:800,marginTop:30,fontSize:18}},He||""),Ie&&Ee.createElement("div",{className:he.Z.button},Ee.createElement(ge.ZP,{size:"large",onClick:dt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ut.Z=ze},67831:function(An,Ut,oe){"use strict";oe.d(Ut,{h:function(){return nt}});var me=oe(59301),Me=oe(57809),Pe=oe(78241),pt=oe(3113),ge=oe(89780),ke=oe.n(ge),he=oe(14618),we=oe(66552),Ee=Object.defineProperty,ze=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,Je=(Ve,Se,$e)=>Se in Ve?Ee(Ve,Se,{enumerable:!0,configurable:!0,writable:!0,value:$e}):Ve[Se]=$e,Ue=(Ve,Se)=>{for(var $e in Se||(Se={}))He.call(Se,$e)&&Je(Ve,$e,Se[$e]);if(Ie)for(var $e of Ie(Se))st.call(Se,$e)&&Je(Ve,$e,Se[$e]);return Ve},gt=(Ve,Se)=>ze(Ve,vt(Se));const Et=Me.default.Option,At={labelCol:{span:4},wrapperCol:{span:20}},dt={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Ut.Z=({callback:Ve,onCancel:Se})=>{const[$e,Ye]=(0,me.useState)("python");function ht(ut){Ye(dt[ut][1])}function Xe(ut){Ve(ut)}return me.createElement(Pe.default,gt(Ue({},At),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Xe,style:{width:500}}),me.createElement(Pe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},me.createElement(Me.default,{getPopupContainer:ut=>ut.parentNode,onChange:ht},Object.keys(dt).map(ut=>me.createElement(Et,{key:ut,value:ut},dt[ut][0])))),me.createElement(Pe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},me.createElement(nt,{mode:$e})),me.createElement("div",{className:"flex-container flex-end"},me.createElement(pt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),me.createElement(pt.ZP,{type:"ghost",onClick:Se},"\u53D6\u6D88")))};function nt({value:Ve,onChange:Se,mode:$e,options:Ye={}}){const ht=(0,me.useRef)(),[Xe,ut]=(0,me.useState)();return(0,me.useEffect)(()=>{if(Xe){let Oe=function(Pt){const qe=Pt.getValue();Se&&Se(qe)};return Xe.on("change",Oe),()=>{Xe.off("change",Oe)}}},[Xe,Se]),(0,me.useEffect)(()=>{Xe&&Xe.setOption("mode",$e)},[Xe,$e]),(0,me.useEffect)(()=>{Xe&&(Ve!==Xe.getValue()||Ve==="")&&setTimeout(()=>{Xe.setValue(Ve||"")},300)},[Xe,Ve]),(0,me.useEffect)(()=>{if(ht.current&&!Xe){const Oe=ke().fromTextArea(ht.current,Ue({mode:$e,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ye));ut(Oe)}},[ht.current,Xe]),me.createElement("div",{className:"my-codemirror-container"},me.createElement("textarea",{ref:ht}))}},40973:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return Nn}});var me=oe(59301),Me=oe(89780),Pe=oe.n(Me),pt=oe(76374),ge=oe(14618),ke=oe(6313),he=oe(25717),we=oe(99498),Ee=oe(25419),ze=oe(67549),vt=oe(39655),Ie=({value:wn="",className:In,showTextOnly:xn,showLines:kn,style:gn={}})=>{const bt=(0,me.useMemo)(()=>"",[wn]);return me.createElement(me.Fragment,null,me.createElement("div",{dangerouslySetInnerHTML:{__html:bt}}))},He=oe(59301),st=Object.defineProperty,Je=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,dt=(wn,In,xn)=>In in wn?st(wn,In,{enumerable:!0,configurable:!0,writable:!0,value:xn}):wn[In]=xn,nt=(wn,In)=>{for(var xn in In||(In={}))Et.call(In,xn)&&dt(wn,xn,In[xn]);if(gt)for(var xn of gt(In))At.call(In,xn)&&dt(wn,xn,In[xn]);return wn},Ve=(wn,In)=>Je(wn,Ue(In));let Se=[{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 $e({onActionCallback:wn,title:In,icon:xn,actionName:kn,className:gn="",children:bt}){function Ae(){wn(kn)}return He.createElement("a",{title:In,className:gn,onClick:Ae},He.createElement("i",{className:`${xn}`}),bt)}var Ye=({watch:wn,showNullButton:In,showNullProgramButton:xn,onActionCallback:kn,fullScreen:gn,insertTemp:bt,hidetoolBar:Ae,extraUse:je})=>{const Ze=[...Se,{title:`${wn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${wn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return He.createElement("ul",{className:"markdown-toolbar-container"},!Ae&&Ze.map((We,yt)=>He.createElement("li",{key:yt},We.actionName?He.createElement($e,Ve(nt({},We),{onActionCallback:kn})):He.createElement("span",{className:"v-line"}))),In?He.createElement("li",null,He.createElement($e,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:kn},He.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,xn?He.createElement(He.Fragment,null,He.createElement("li",null,He.createElement($e,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:kn},He.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),He.createElement("li",null,He.createElement($e,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:kn},He.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,bt&&He.createElement("li",null,He.createElement($e,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${bt}`,onActionCallback:kn},He.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),je&&He.createElement("li",null,je),He.createElement("li",{className:"btn-full-screen"},He.createElement($e,{icon:`${gn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:gn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:kn})))},ht=oe(53531),Xe=oe(78241),ut=oe(92832),Oe=oe(3113),Pt=Object.defineProperty,qe=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,It=(wn,In,xn)=>In in wn?Pt(wn,In,{enumerable:!0,configurable:!0,writable:!0,value:xn}):wn[In]=xn,Qe=(wn,In)=>{for(var xn in In||(In={}))Bt.call(In,xn)&&It(wn,xn,In[xn]);if(Dt)for(var xn of Dt(In))St.call(In,xn)&&It(wn,xn,In[xn]);return wn},be=(wn,In)=>qe(wn,zt(In));const Ct={labelCol:{span:4},wrapperCol:{span:20}};var Yt=({callback:wn,onCancel:In})=>{function xn(kn){wn(kn)}return me.createElement(Xe.default,be(Qe({},Ct),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:xn,style:{width:500}}),me.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},me.createElement(ut.default,null)),me.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},me.createElement(ut.default,null)),me.createElement("div",{className:"flex-container flex-end"},me.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),me.createElement(Oe.ZP,{type:"ghost",onClick:In},"\u53D6\u6D88")))},Zt=oe(67831),at=oe(58448),ot=oe(43418),Nt=oe(95237),Sn=oe(15868),$t=oe(59301),mn=({callback:wn,onCancel:In})=>{const xn=document.createElement("canvas"),kn=xn.getContext("2d");xn.width=1e3,xn.height=800,kn.fillStyle="#ffffff",kn.fillRect(0,0,xn.width,xn.height);const gn=xn.toDataURL("image/png");return $t.createElement(ot.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},$t.createElement(Nt.Z,{style:{height:"100vh"}},$t.createElement(Sn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:gn,visible:!0,title:String(Date.now())},onOk:bt=>{wn({src:bt.url})},onClose:In})))},on=oe(8591),nn=oe(43428),en=oe(43604),ye={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ue=oe(59301),ce=(0,me.forwardRef)(({onCancel:wn,editImgId:In,callback:xn},kn)=>{let gn=(0,me.useRef)(),bt=(0,me.useRef)(),Ae=(0,me.useRef)(),je=(0,me.useRef)(!1);const Ze=(0,me.useRef)(!1);console.log("ref:",kn);const[We,yt]=(0,me.useState)(0),[Lt,Jt]=(0,me.useState)("100vh");(0,me.useEffect)(()=>{yt(1);try{indexedDB.databases().then(yn=>{yn.forEach(En=>indexedDB.deleteDatabase(En.name))})}catch(yn){}},[]),(0,me.useEffect)(()=>(window.addEventListener("message",ln),()=>{window.removeEventListener("message",ln)}),[]),(0,me.useImperativeHandle)(kn,()=>({setHeight:Jt}));const Ht=yn=>{window.saveDrawData(En=>{if(En===null&&!yn){on.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}on.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),xn({src:`/api/attachments/${En}`,id:En,disabledClose:!0})})},ln=yn=>{var En;((En=yn==null?void 0:yn.data)==null?void 0:En.type)==="closePop"&&Ht(!0)};return ue.createElement("div",{ref:Ze,className:"body-overflow-initial"},ue.createElement(nn.Z,{width:"100vw",height:Lt,footer:null,closable:!0,placement:"bottom",open:!!We,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ye.drawerWrap}`,onClose:()=>{window.saveDrawData(yn=>{xn({src:`/api/attachments/${yn}`,id:yn})})},title:ue.createElement(Nt.Z,{align:"middle"},ue.createElement(en.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ue.createElement(en.Z,{onClick:()=>{Jt(Lt==="60px"?"100vh":"60px")}},ue.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ue.createElement(en.Z,{onClick:Ht},ue.createElement(Oe.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ue.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${In||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:bt})))}),de=oe(6521),ae=oe(5112),Be=oe(5871);const ft=ae.ZP.Group,Fe={margin:"0 8px"};var De=({callback:wn,onCancel:In})=>{function xn(kn){wn(kn)}return me.createElement(Xe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:xn},me.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},me.createElement("span",{style:Fe},"\u5355\u5143\u683C\u6570\uFF1A"),me.createElement("span",{style:Fe},"\u884C\u6570"),me.createElement(Xe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},me.createElement(Be.Z,null)),me.createElement("span",{style:Fe},"\u5217\u6570"),me.createElement(Xe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},me.createElement(Be.Z,null))),me.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},me.createElement("span",{style:Fe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),me.createElement(Xe.default.Item,{name:"align"},me.createElement(ft,null,me.createElement(ae.ZP,{value:"default"},me.createElement("i",{className:"fa fa-align-justify"})),me.createElement(ae.ZP,{value:"left"},me.createElement("i",{className:"fa fa-align-left"})),me.createElement(ae.ZP,{value:"center"},me.createElement("i",{className:"fa fa-align-center"})),me.createElement(ae.ZP,{value:"right"},me.createElement("i",{className:"fa fa-align-right"}))))),me.createElement("div",{className:"flex-container flex-end"},me.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),me.createElement(Oe.ZP,{type:"ghost",onClick:In},"\u53D6\u6D88")))},mt=oe(78673),rt=oe(3352),Ge=oe.n(rt),Xt=(0,me.forwardRef)(({use3d:wn,width:In,height:xn,callback:kn,showSaveButton:gn},bt)=>{const Ae=(0,me.useRef)(),je=(0,me.useRef)(),[Ze,We]=(0,me.useState)(!1),yt=(0,me.useRef)({id:Ae,appName:"graphing",width:In||1e3,height:xn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,me.useEffect)(()=>{je.current=new(Ge())(yt.current,!0),window.onload=function(){je.current.inject("applet_container")}},[]);const Lt=()=>{var Jt=window.ggbApplet.getPNGBase64(1,!0,72);return kn&&kn(Jt),Jt};return(0,me.useEffect)(()=>{yt.current.appName=Ze?"3D":"graphing",je.current.inject("applet_container")},[Ze]),(0,me.useEffect)(()=>{We(wn)},[wn]),(0,me.useImperativeHandle)(bt,()=>({getImgData:Lt})),me.createElement(me.Fragment,null,me.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ae}),me.createElement(Nt.Z,{align:"middle"},me.createElement(en.Z,{flex:1},me.createElement(mt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ze,onChange:Jt=>We(Jt)})),me.createElement(en.Z,null,me.createElement(Oe.ZP,{size:"large",onClick:Lt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ct=oe(3315),Rt=oe(1012);const rn="link",lt="upload-image",Le="add-flowchart",it="draw-image",Ot="add-flowchart",Ft="code-block",Qt="add-table",bn="------------",Bn={default:bn,left:`:${bn}`,center:`:${bn}:`,right:`${bn}:`};var Ln=oe(57649),Gn=(wn,In,xn)=>new Promise((kn,gn)=>{var bt=Ze=>{try{je(xn.next(Ze))}catch(We){gn(We)}},Ae=Ze=>{try{je(xn.throw(Ze))}catch(We){gn(We)}},je=Ze=>Ze.done?kn(Ze.value):Promise.resolve(Ze.value).then(bt,Ae);je((xn=xn.apply(wn,In)).next())});function Yn(){}let _n=0;const ir=1e4,br="\u2581",wr="@\u2581\u2581@",qn="@\u2581@",fr=`
**\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`,kr=["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 Qn(wn){return/^\d+$/.test(wn)?`${wn}px`:wn}const ei=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Vt={[ei+"-B"]:"bold",[ei+"-I"]:"italic"},Rn={[rn]:"\u6DFB\u52A0\u94FE\u63A5",[Ft]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[lt]:"\u6DFB\u52A0\u56FE\u7247",[it]:"\u6DFB\u52A0\u753B\u56FE",[Le]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Qt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Nn=({defaultValue:wn="",onChange:In,width:xn="100%",height:kn=400,miniToolbar:gn=!1,isFocus:bt=!1,watch:Ae,insertTemp:je,mode:Ze="markdown",id:We="markdown-editor-id",showResizeBar:yt=!1,noStorage:Lt=!1,showNullButton:Jt=!1,showNullProgramButton:Ht=!1,hidetoolBar:ln=!1,fullScreen:yn=!1,onBlur:En,onCMBeforeChange:Mn,onFullScreen:Kt,className:hn="",disablePaste:Hn=!1,disabled:Zn=!1,disabledFill:Kn=!1,placeholder:jn="",values:nr="",extraUse:On,onAddBlank:cr})=>{const[Mt,an]=(0,me.useState)(null),[cn,Cn]=(0,me.useState)(wn),[un,vn]=(0,me.useState)(Ae),[pn,Pn]=(0,me.useState)(yn),[Vn,er]=(0,me.useState)(""),[pr,mr]=(0,me.useState)(0),[Pr,Ir]=(0,me.useState)(kn),[Lr,$r]=(0,me.useState)(!1),Hr=(0,me.useRef)((0,Rt.Z)()),Zr=(0,me.useRef)(!1),gr=(0,me.useRef)(),[zr,Cr]=(0,me.useState)(0),[lr,jr]=(0,me.useState)(0),li=(0,me.useRef)(),Dr=(0,me.useRef)(),Jn=(0,me.useRef)(),Xn=(0,me.useRef)(),Wr=(0,me.useRef)(),Er=(0,me.useRef)(),Jr=()=>Gn(void 0,null,function*(){var Sr;const xr=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Hr.current}});(Sr=xr==null?void 0:xr.attachments)!=null&&Sr.length&&(console.log("cm:",Mt,li),xr.attachments.map(sr=>{sr.content_type.indexOf("image")>-1?Mt.replaceSelection(`![,](/api/attachments/${sr.id}?type=${sr.content_type})`):sr.content_type.indexOf("video")>-1?Mt.replaceSelection(`<video width="100%" controls src="${de.Z.API_SERVER}/api/attachments/${data.id}"></video>`):sr.content_type.indexOf("pdf")>-1?Mt.replaceSelection(`<a href="${de.Z.API_SERVER}/api/attachments/${sr.id}?type=${sr.content_type}&disposition=inline" target="_blank">${sr.name}</a>`):Mt.replaceSelection(`[${sr.name}](${de.Z.API_SERVER}/api/attachments/${sr.id}?type=${sr.content_type})`)}))});(0,me.useEffect)(()=>{const Sr=window.scrollY||window.pageYOffset;Cn(nr),Mt==null||Mt.setValue(nr),window.scrollTo(0,Sr)},[nr]),(0,me.useEffect)(()=>{Kt==null||Kt(pn)},[pn]),(0,me.useEffect)(()=>{if(li.current){let Sr=function(sr,hr){var xi;if(Hn){hr.preventDefault();return}const Fi=hr.clipboardData;if(Fi){const Zi=Fi.types.toString(),Yi=Fi.items;if(Zi==="Files"||Fi.types.indexOf("Files")>-1){if(hr.preventDefault(),Ze=="stex")return;try{let Wi=Yi[1];((xi=Yi[0])==null?void 0:xi.kind)==="file"&&(Wi=Yi[0]);const ra=Wi.getAsFile(),Ba=ra.name.split(".").pop();(0,at.I)(ra,Aa=>{var ho,no,Fa;Aa.id?((ho=ra==null?void 0:ra.type)==null?void 0:ho.indexOf("image"))>-1?xr.replaceSelection(`<img width="100%" src="/api/attachments/${Aa.id}?type=${Aa.content_type})" alt="" />`):((no=ra==null?void 0:ra.type)==null?void 0:no.indexOf("video"))>-1?xr.replaceSelection(`<video width="100%" controls src="/api/attachments/${Aa.id}"></video>`):((Fa=ra==null?void 0:ra.type)==null?void 0:Fa.indexOf("pdf"))>-1?xr.replaceSelection(`<a href="/api/attachments/${Aa.id}?type=${ra.type}&disposition=inline" target="_blank">${ra.name}</a>`):kr.includes(Ba)?xr.replaceSelection(`<a href="/api/attachments/${Aa.id}?type=office&disposition=inline" target="_blank">${ra.name}</a>`):xr.replaceSelection(`[${ra.name}](/api/attachments/${Aa.id}?type=${Aa.content_type})`):(Aa==null?void 0:Aa.status)===401&&(on.ZP.warning((Aa==null?void 0:Aa.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Wi){on.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const xr=Pe().fromTextArea(li.current,{mode:Ze,lineNumbers:!gn,lineWrapping:!0,value:wn,autoCloseTags:!Ht,autoCloseBrackets:!0});return xr.on("keyup",function(sr,hr){hr.keyCode===8&&(sr.getValue()==""?xr.setOption("placeholder",jn):xr.setOption("placeholder",null))}),xr.on("keydown",function(sr,hr){if(hr.keyCode===8){var xi=ti(sr);xi&&hr.preventDefault()}}),bt&&xr.focus(),xr.on("paste",Sr),xr.on("dragleave",function(sr,hr){Dr.current.classList.remove("mouse-hover-md")}),Zn&&xr.on("beforeChange",function(sr,hr){(hr.origin==="paste"||hr.origin==="+input")&&hr.cancel()}),an(xr),()=>{xr.off("paste",Sr)}}},[]);const ci=(0,me.useCallback)(()=>{if(Dr.current)try{}catch(Sr){console.log(Sr,"---- to set md editor body height")}},[Pr,Dr,pn]);(0,me.useEffect)(()=>{function Sr(){let xr=new pt.Z(sr=>{for(let hr of sr)(hr.target.offsetHeight>0||hr.target.offsetWidth>0)&&(ci(),Mt.setSize("100%","100%"),Mt.refresh())});return xr.observe(li.current.parentElement),xr}if(Mt){const xr=Sr();return()=>{var sr,hr;(sr=li.current)!=null&&sr.parentElement&&xr.unobserve((hr=li.current)==null?void 0:hr.parentElement)}}},[Mt,ci]),(0,me.useEffect)(()=>{if(Mt){let Sr=[];for(const[xr,sr]of Object.entries(Vt)){let hr={[xr]:()=>{Bi(sr)}};Sr.push(hr),Mt.addKeyMap(hr)}return gr.current=setInterval(()=>{Zr.current&&Jr()},4e3),()=>{clearInterval(gr.current);for(let xr of Sr)Mt.removeKeyMap(xr)}}},[Mt]),(0,me.useEffect)(()=>{yn!==pn&&Pn(yn)},[yn]),(0,Ln.Z)(()=>{if(!Lt&&pr>0){let Sr=new Date().getTime(),xr=window.sessionStorage.getItem(We);Sr>=pr+ir&&(!xr||xr!==cn)&&(window.sessionStorage.setItem(We,cn),$r(!0))}},ir),(0,me.useEffect)(()=>{vn(Ae)},[Mt,Ae]),(0,me.useEffect)(()=>{Mt&&bt&&Mt.focus()},[Mt,bt]),(0,me.useEffect)(()=>{if(un&&Mt){let Sr=function(sr){let hr=sr.target;if(Xn.current){let xi=hr.scrollTop/hr.scrollHeight;Xn.current.scrollTop=Xn.current.scrollHeight*xi}};const xr=Mt.getScrollerElement();return xr.addEventListener("scroll",Sr),()=>{xr.removeEventListener("scroll",Sr)}}},[Mt,un]),(0,me.useEffect)(()=>{if(Mt&&Mn){let Sr=function(xr,sr){Mn(xr,sr)};return Mt.on("beforeChange",Sr),()=>{Mt.off("beforeChange",Sr)}}},[Mt,Mn]),(0,me.useEffect)(()=>{if(Mt&&En){let Sr=function(){En(Mt.getValue())};return Mt.on("blur",Sr),()=>{Mt.off("blur",Sr)}}},[Mt,En]);function ti(Sr,xr){var sr=Sr.getDoc(),hr=sr.getCursor(),xi=sr.getLine(hr.line),Fi=xi.charAt(hr.ch-1),Zi=xi.lastIndexOf("@\u2581@",hr.ch),Yi=xi.lastIndexOf("@\u2581\u2581@",hr.ch),Wi=Zi>Yi?Zi:Yi,ra=Zi>Yi?3:4;if(wr.indexOf(Fi)===-1)return null;if(console.log("change1:",xr,Sr,xi,hr,Wi,Zi,Yi,Fi),Wi>=0&&hr.ch-Wi<5){var Ba=Wi+ra;return sr.replaceRange("",{line:hr.line,ch:Wi},{line:hr.line,ch:Ba}),{line:hr.line,ch:Ba}}return null}(0,me.useEffect)(()=>{if(Mt){let Sr=function(xr,sr){const hr=xr.getValue();Cn(hr),mr(new Date().getTime()),xr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),In&&(Ht?In(hr,Va(hr)):In(hr))};return Mt.on("change",Sr),()=>{Mt.off("change",Sr)}}},[Mt,In]),(0,me.useEffect)(()=>{if(Mt)if(wn==null)Mt.setValue(""),Cn("");else{const Sr=window.scrollY||window.pageYOffset;wn!==Mt.getValue()&&(Mt.setValue(wn),Cn(wn),Mt.setCursor(Zn?1:Mt.lineCount(),0),window.scrollTo(0,Sr))}},[Mt,wn]);const Bi=(0,me.useCallback)(Sr=>{const xr=Mt.getCursor(),sr=Mt.getSelection();let hr=sr.split(`
`);switch(Sr){case"bold":return Mt.replaceSelection("**"+sr+"**"),sr===""&&Mt.setCursor(xr.line,xr.ch+2),Mt.focus();case"italic":return Mt.replaceSelection("*"+sr+"*"),sr===""&&Mt.setCursor(xr.line,xr.ch+1),Mt.focus();case"code":return Mt.replaceSelection("`"+sr+"`"),sr===""&&Mt.setCursor(xr.line,xr.ch+1),Mt.focus();case"inline-latex":return er("inline-latex"),Mt.focus();case"latex":return Mt.replaceSelection("```latex\n"+sr+"\n```"),Mt.setCursor(xr.line+1,sr.length+1),Mt.focus();case"line-break":return Mt.replaceSelection(`<br/>
`),Mt.focus();case"list-ul":return sr===""?Mt.replaceSelection("- "+sr):Mt.replaceSelection(hr.map(xi=>xi===""?"":`- ${xi}`).join(`
`)),Mt.focus();case"list-ol":return sr===""?Mt.replaceSelection("1. "+sr):Mt.replaceSelection(hr.map((xi,Fi)=>xi===""?"":`${Fi+1}. ${xi}`).join(`
`)),Mt.focus();case"add-null-ch":cr==null||cr();return;case"add-signal":return sr===""&&Mt.setCursor(xr.line,xr.ch),Mt.replaceSelection(qn),Mt.focus();case"add-multiple":return sr===""&&Mt.setCursor(xr.line,xr.ch),Mt.replaceSelection(wr),Mt.focus();case"inster-template-1":return sr===""&&Mt.setCursor(xr.line,xr.ch),Mt.replaceSelection(fr),Mt.focus();case"eraser":return Mt.setValue(""),Mt.focus();case"trigger-watch":return vn(!un),Mt.focus();case"trigger-full-screen":return Pn(!pn),Mt.focus();case rn:er(rn);return;case Ft:er(Ft);return;case lt:er(lt);return;case it:er(it);return;case"maths-latex":er("maths-latex");return;case Le:Wr.current="",sessionStorage.removeItem("file_id"),er(Le);return;case Qt:er(Qt);return;default:throw new Error}},[Mt,un,pn]),vi=(0,me.useCallback)((Sr,xr)=>{var sr,hr,xi,Fi,Zi,Yi;er("");const{src:Wi,alt:ra,id:Ba}=Sr||{};switch(Vn){case rn:const{title:al,link:po}=Sr;return Mt.replaceSelection(`[${al}](${po})`),Mt.focus();case Ft:const{language:wo,content:Xa}=Sr;return Mt.replaceSelection(["```"+wo,Xa,"```"].join(`
`)),Mt.focus();case"maths-latex":for(var Aa=atob(Sr),ho=new Uint8Array(Aa.length),no=0;no<Aa.length;no++)ho[no]=Aa.charCodeAt(no);var Fa=new Blob([ho],{type:"image/png"});(0,at.I)(Fa,ji=>{ji.id?Mt.replaceSelection(`![,](/api/attachments/${ji.id}?type=${ji.content_type})`):(ji==null?void 0:ji.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Mt.replaceSelection("`$$"+Sr+"$$`");break;case Ot:if(!Ba)return;Mt.focus(),Mt.getValue().indexOf(Wi)===-1?Mt.replaceSelection(`<center><img id="${Ba}" width="80%" src="${Wi}" class="draw-flowchart" alt="${ra||""}" /></center>`):document.getElementById(Ba).src=de.Z.API_SERVER+Wi+"?t="+Date.now();try{setTimeout(()=>{En(Mt.getValue())},100)}catch(ji){}break;case lt:case it:const ya=xr,hi=(xi=(hr=(sr=ya==null?void 0:ya.name)==null?void 0:sr.split("."))==null?void 0:hr.pop)==null?void 0:xi.call(hr);return((Fi=ya==null?void 0:ya.type)==null?void 0:Fi.indexOf("image"))>-1||!(ya!=null&&ya.type)?ya!=null&&ya.align||ya!=null&&ya.width?Mt.replaceSelection(`<p style="text-align:${ya.align||"initial"}"><img width="${ya.width?ya.width+"%":"initial"}" src="${Wi}" alt="${ra||""}" /></p>`):Mt.replaceSelection(`<img width="100%" src="${Wi}" alt="${ra||""}" />`):((Zi=ya==null?void 0:ya.type)==null?void 0:Zi.indexOf("video"))>-1?Mt.replaceSelection(`<video width="100%" controls src="${Wi}"></video>`):((Yi=ya==null?void 0:ya.type)==null?void 0:Yi.indexOf("pdf"))>-1?Mt.replaceSelection(`<a href="${Wi}?type=${ya.type}&disposition=inline" target="_blank">${ya.name}</a>`):kr.includes(hi)?Mt.replaceSelection(`<a href="${Wi}?type=office&disposition=inline" target="_blank">${ya.name}</a>`):Mt.replaceSelection(`[${ya.name}](${Wi})`),Mt.focus();case Qt:const{row:Ni,col:Ei,align:fi}=Sr;let Xi=`
`;for(let ji=0;ji<Ni;ji++){let Na=[],$a=[];for(let Ra=0;Ra<Ei;Ra++)ji===1&&$a.push(Bn[fi]),Na.push(" ");ji===1&&(Xi+=`| ${$a.join(" | ")} |
`),Xi+=`| ${Na.join(Ei===1?"":" | ")} |
`}return Mt.replaceSelection(Xi+`
`),Mt.focus();default:throw new Error}},[Mt,Vn]),Ui=(0,me.useMemo)(()=>{switch(Vn){case rn:return me.createElement(Yt,{callback:vi,onCancel:Or});case Ft:return me.createElement(Zt.Z,{callback:vi,onCancel:Or});case lt:return me.createElement(at.Z,{callback:vi,onCancel:Or});case Le:return me.createElement(ce,{editImgId:Wr.current,callback:vi,onCancel:Or});case Qt:return me.createElement(De,{callback:vi,onCancel:Or});case"maths-latex":return me.createElement(Xt,{showSaveButton:!0,callback:vi});case"inline-latex":return me.createElement(ct.Z,{showSaveButton:!0,callback:vi});default:return null}},[Vn]);function Or(){er("")}(0,me.useEffect)(()=>{if(Jn.current){let Sr=function(Zi){xi=!0,Fi=Zi.pageY},xr=function(){xi=!1},sr=function(Zi){if(xi){let Yi=Zi.pageY-Fi;Yi<0&&(Yi=0),Yi>300&&(Yi=300);let Wi=kn+Yi+"px";Ir(Wi)}},hr=Jn.current,xi=!1,Fi=0;return hr.addEventListener("mousedown",Sr),document.addEventListener("mousemove",sr),document.addEventListener("mouseup",xr),()=>{hr.removeEventListener("mousedown",Sr),document.removeEventListener("mousemove",sr),document.removeEventListener("mouseup",xr)}}},[Mt,Jn]),(0,me.useEffect)(()=>{Ir(kn)},[kn]);const _r=Qn(xn),si=Qn(Pr),di={width:_r,height:si},ea=(0,me.useMemo)(()=>{if(pr){let Sr=new Date(pr),xr=Sr.getHours(),sr=Sr.getMinutes(),hr=Sr.getSeconds();return xr=xr<10?"0"+xr:xr,sr=sr<10?"0"+sr:sr,hr=hr<10?"0"+hr:hr,`${xr}:${sr}:${hr}`}return 0},[pr]),Va=Sr=>{const xr=[];if(Ht){let sr=-1;Sr=Sr.replace(/(@▁▁@|@▁@)/g,function(hr,xi,Fi){xr.push({multiLine:hr!==qn})})}return xr};function Da(){window.sessionStorage.removeItem(We),$r(!1),mr(0)}function _i(){$r(!1),mr(0),Mt.setValue(window.sessionStorage.getItem(We))}(0,me.useEffect)(()=>{Rn[Vn]&&Vn!==it&&Vn!==Le&&setTimeout(()=>{const Sr=document.getElementsByClassName("markdown-popup-form")[0],xr=window.innerWidth/2-Sr.offsetWidth/2,sr=window.innerHeight/2-Sr.offsetHeight/2;Cr(xr),jr(sr)},0)},[Vn]);const da=Sr=>{Sr.preventDefault();const xr=Sr.clientX-zr,sr=Sr.clientY-lr;document.body.onmousemove=hr=>{let xi=hr.clientX-xr,Fi=hr.clientY-sr;const Zi=document.getElementsByClassName("markdown-popup-form")[0],Yi=window.innerWidth-Zi.offsetWidth,Wi=window.innerHeight-Zi.offsetHeight;xi=Math.max(0,Math.min(xi,Yi)),Fi=Math.max(0,Math.min(Fi,Wi)),sa(hr.clientX,hr.clientY,xr,sr)&&(Cr(xi),jr(Fi))},document.body.onmouseup=function(){document.body.onmousemove=null}},sa=(Sr,xr,sr,hr)=>{const xi=document.body.clientHeight,Fi=document.body.clientWidth;return Sr<20&&sr>Sr||Sr>Fi-20&&sr<Sr||xr<20&&hr>xr||xr>xi-20&&hr<xr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return me.createElement(me.Fragment,null,me.createElement("div",{className:"markdown-editor-wrapper",ref:Dr},me.createElement("div",{className:`markdown-editor-container ${hn} ${un?"on-preview":""} ${gn?"mini":""} ${pn?"full-screen":""}`,style:di},me.createElement(Ye,{insertTemp:je,watch:un,fullScreen:pn,showNullButton:Jt,showNullProgramButton:Ht,onActionCallback:Bi,hidetoolBar:ln,extraUse:On}),me.createElement("div",{className:"markdown-editor-body"},me.createElement("div",{className:"codemirror-container"},me.createElement("textarea",{ref:li,placeholder:jn})),un?me.createElement("div",{ref:Xn,className:"preview-container"},Ze==="stex"&&me.createElement(Ie,{value:cn}),Ze!=="stex"&&me.createElement(vt.Z,{edit:!0,disabledFill:Kn,showProgramFill:Ht,value:cn,openEditor:Sr=>{var xr;Wr.current=Sr,(xr=Er.current)==null||xr.setHeight("100vh"),setTimeout(()=>{er("add-flowchart")},150)}})):null))),yt?me.createElement("a",{ref:Jn,className:"editor-resize"}):null,Vn===it&&me.createElement(mn,{callback:vi,onCancel:Or}),Vn===Le&&me.createElement(ce,{ref:Er,editImgId:Wr.current,callback:vi,onCancel:Or}),me.createElement(ht.Z,null,Rn[Vn]&&Vn!==it&&Vn!==Le?me.createElement(ot.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:zr,top:lr},title:me.createElement("div",{style:{cursor:"move"},onMouseDown:da},Rn[Vn]),open:!0,onCancel:Or,footer:null,destroyOnClose:!0,width:Vn===Le?"1200px":null,height:Vn===Le?"80vh":null,className:"markdown-popup-form"},Ui):null))}},58448:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return $e},I:function(){return ht}});var me=oe(78241),Me=oe(8591),Pe=oe(92832),pt=oe(81327),ge=oe(5871),ke=oe(5112),he=oe(3113),we=oe(79090),Ee=oe(59301),ze=oe(7544),vt=oe(59301),Ie=Object.defineProperty,He=Object.defineProperties,st=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Et=(Xe,ut,Oe)=>ut in Xe?Ie(Xe,ut,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Xe[ut]=Oe,At=(Xe,ut)=>{for(var Oe in ut||(ut={}))Ue.call(ut,Oe)&&Et(Xe,Oe,ut[Oe]);if(Je)for(var Oe of Je(ut))gt.call(ut,Oe)&&Et(Xe,Oe,ut[Oe]);return Xe},dt=(Xe,ut)=>He(Xe,st(ut));const{useForm:nt}=me.default,Ve={width:280,marginRight:10},Se={labelCol:{span:5},wrapperCol:{span:19}};var $e=({callback:Xe,onCancel:ut})=>{const[Oe]=nt();let Pt=(0,Ee.useRef)();function qe(Bt){Pt.current.width=Oe.getFieldValue("width"),Pt.current.align=Oe.getFieldValue("align"),Xe(Bt,Pt.current)}function zt(Bt,St){if(Bt.status===-1){Me.ZP.error(Bt.message);return}Oe.setFieldsValue({src:`/api/attachments/${Bt.id}`,type:St.type})}function Dt(Bt){let St=Bt.target.files[0];Pt.current=St,ht(St,zt)}return vt.createElement(me.default,dt(At({form:Oe},Se),{className:"upload-image-panel",onFinish:qe,style:{width:470,overflow:"hidden"}}),vt.createElement(me.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},vt.createElement("div",{className:"flex-container"},vt.createElement(me.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},vt.createElement(Pe.default,{style:Ve})),vt.createElement(Ye,{onFileChange:Dt}))),vt.createElement(me.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},vt.createElement(Pe.default,{style:{width:264}})),vt.createElement(me.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},vt.createElement(pt.Z,null,vt.createElement(me.default.Item,{name:"width",style:{margin:0}},vt.createElement(ge.Z,{style:{width:264}})),vt.createElement("span",{className:"ml8"},"%"))),vt.createElement(me.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},vt.createElement(ke.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"}]})),vt.createElement("aside",null,vt.createElement(me.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},vt.createElement(he.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),vt.createElement(he.ZP,{type:"default",onClick:ut},"\u53D6\u6D88"))))};function Ye({onFileChange:Xe}){return vt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",vt.createElement("input",{type:"file",onChange:Xe}))}function ht(Xe,ut){if(!Xe)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ze.bg)())throw Me.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Oe=new FormData;Oe.append("editormd-image-file",Xe),Oe.append("file_param_name","editormd-image-file"),Oe.append("byxhr","true");var Pt=new window.XMLHttpRequest;Pt.withCredentials=!0,Pt.addEventListener("load",function(qe){ut(JSON.parse(qe.target.responseText),Xe)},!1),Pt.addEventListener("error",function(qe){console.error(qe)},!1),Pt.open("POST",`${we.KI}/api/attachments.json`),Pt.send(Oe)}},53531:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return Pe}});var me=oe(59301),Me=oe(4676);class Pe extends me.Component{constructor(ge){super(ge);const ke=window.document;this.node=ke.createElement("div"),ke.body.appendChild(this.node)}render(){const{children:ge}=this.props;return(0,Me.createPortal)(ge,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},57649:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return Me}});var me=oe(59301);function Me(Pe,pt){const ge=(0,me.useRef)();(0,me.useEffect)(()=>{ge.current=Pe}),(0,me.useEffect)(()=>{function ke(){ge.current()}if(pt!==null){let he=setInterval(ke,pt);return()=>clearInterval(he)}},[pt])}},35879:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return ye}});var me=oe(59301),Me=oe(91482),Pe=oe(57809),pt=oe(54580),ge=oe(78241),ke=oe(8591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299),gt=oe(25544),Et=oe(36544),At=oe(19842),dt=oe(29679),nt=oe(19248),Ve=oe(23495),Se={flexRow:"flexRow___jGYtM",flexColumn:"flexColumn___NPMB3",formWrap:"formWrap___vwH9N",example:"example____BmJC",footerWrap:"footerWrap___lp1L0"},$e=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,ht=Object.prototype.propertyIsEnumerable,Xe=(ue,se)=>{var ce={};for(var de in ue)Ye.call(ue,de)&&se.indexOf(de)<0&&(ce[de]=ue[de]);if(ue!=null&&$e)for(var de of $e(ue))se.indexOf(de)<0&&ht.call(ue,de)&&(ce[de]=ue[de]);return ce},ut=(ue,se,ce)=>new Promise((de,ae)=>{var Be=De=>{try{Fe(ce.next(De))}catch(mt){ae(mt)}},ft=De=>{try{Fe(ce.throw(De))}catch(mt){ae(mt)}},Fe=De=>De.done?de(De.value):Promise.resolve(De.value).then(Be,ft);Fe((ce=ce.apply(ue,se)).next())});const Oe=(ue,se)=>se.some(ce=>ce.label.toLowerCase().indexOf(ue.toLowerCase())>-1),Pt=vt.default.TextArea,qe=ue=>{var se=ue,{account:ce,globalSetting:de,loading:ae,dispatch:Be,schoolName:ft,visible:Fe,onClose:De=()=>{},onSuccess:mt=()=>{}}=se,rt=Xe(se,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]);const[Ge]=ge.default.useForm();(0,me.useEffect)(()=>{Ge.setFieldsValue({name:ft})},[ft]);const xt=Xt=>ut(void 0,null,function*(){const{name:ct,city:Rt=[],address:rn,remarks:lt}=Xt||{},Le=yield Be({type:"account/appplySchool",payload:{name:ct,province:Rt[0],city:Rt[1],address:rn,remarks:lt}});De(),Le&&(ke.ZP.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),mt(ct))});return me.createElement(he.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Fe,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},me.createElement(ge.default,{className:Se.formWrap,form:Ge,labelCol:{span:4},wrapperCol:{span:20},onFinish:xt},me.createElement(ge.default.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},me.createElement(vt.default,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),me.createElement("div",{className:`${Se.flexRow} ${Se.example}`},me.createElement("div",null,"\u793A\u4F8B\uFF1A"),me.createElement("div",{className:Se.flexColumn},me.createElement("div",null,me.createElement(dt.Z,{style:{color:"rgb(82, 196, 26)"}}),me.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6E56\u5357\u5927\u5B66")),me.createElement("div",null,me.createElement(nt.Z,{style:{color:"red"}}),me.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6E56\u5927\u5CB3\u9E93\u4E66\u9662")))),me.createElement(ge.default.Item,{label:"\u5730\u533A\uFF1A",name:"city"},me.createElement(At.Z,{allowClear:!0,size:"middle",options:Ve.P,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:Oe}})),me.createElement(ge.default.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},me.createElement(vt.default,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),me.createElement(ge.default.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},me.createElement(Pt,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),me.createElement("div",{className:Se.footerWrap},me.createElement(ge.default.Item,null,me.createElement(He.ZP,{className:"mr5",size:"middle",onClick:()=>{De()}},"\u53D6\u6D88"),me.createElement(He.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:ae["account/appplySchool"]},"\u4FDD\u5B58")))))};var zt=(0,Me.connect)(({account:ue,loading:se,globalSetting:ce})=>({account:ue,globalSetting:ce,loading:se.effects}))(qe),Dt=oe(32717),Bt=oe(78267),St=oe(59301),It=Object.defineProperty,Qe=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,Yt=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,at=(ue,se,ce)=>se in ue?It(ue,se,{enumerable:!0,configurable:!0,writable:!0,value:ce}):ue[se]=ce,ot=(ue,se)=>{for(var ce in se||(se={}))Yt.call(se,ce)&&at(ue,ce,se[ce]);if(Ct)for(var ce of Ct(se))Zt.call(se,ce)&&at(ue,ce,se[ce]);return ue},Nt=(ue,se)=>Qe(ue,be(se)),Sn=(ue,se)=>{var ce={};for(var de in ue)Yt.call(ue,de)&&se.indexOf(de)<0&&(ce[de]=ue[de]);if(ue!=null&&Ct)for(var de of Ct(ue))se.indexOf(de)<0&&Zt.call(ue,de)&&(ce[de]=ue[de]);return ce},$t=(ue,se,ce)=>new Promise((de,ae)=>{var Be=De=>{try{Fe(ce.next(De))}catch(mt){ae(mt)}},ft=De=>{try{Fe(ce.throw(De))}catch(mt){ae(mt)}},Fe=De=>De.done?de(De.value):Promise.resolve(De.value).then(Be,ft);Fe((ce=ce.apply(ue,se)).next())});const mn=Pe.default.Option,on=pt.default.Dragger;var nn=(ue=>(ue[ue.Professor=1]="Professor",ue[ue.AssistantProfessor=2]="AssistantProfessor",ue[ue.Student=3]="Student",ue))(nn||{});const en=ue=>{var se=ue,{user:ce,account:de,globalSetting:ae,loading:Be,dispatch:ft,Scoid:Fe}=se,De=Sn(se,["user","account","globalSetting","loading","dispatch","Scoid"]),mt,rt;const[Ge]=ge.default.useForm(),[xt,Xt]=(0,me.useState)({}),[ct,Rt]=(0,me.useState)([]),[rn,lt]=(0,me.useState)([]),[Le,it]=(0,me.useState)([]),[Ot,Ft]=(0,me.useState)([]),[Qt,bn]=(0,me.useState)(),[Bn,Ln]=(0,me.useState)(),[Gn,Yn]=(0,me.useState)(),[_n,ir]=(0,me.useState)(),[br,wr]=(0,me.useState)(),qn=(0,me.useRef)((0,Bt.throttle)(gn=>fr(gn),1200,{leading:!0,trailing:!0})).current;(0,me.useEffect)(()=>{},[]),(0,me.useEffect)(()=>{$t(void 0,null,function*(){if(!Fe)return;const gn=yield kr(Fe);it(gn==null?void 0:gn.departments)})},[Fe]);const fr=gn=>$t(void 0,null,function*(){var bt,Ae;const je=yield ft({type:"account/getSchoolOption",payload:{keyword:gn,limit:10}});Rt(je==null?void 0:je.schools),gn&&gn!=""&&(lt((bt=je==null?void 0:je.schools)==null?void 0:bt.filter(We=>We.name.includes(gn))),(((Ae=je==null?void 0:je.schools)==null?void 0:Ae.find(We=>We.name===gn))||{}).id?Rn(gn,null,je==null?void 0:je.schools):(Ge.setFieldsValue({department:""}),Xt(ot(ot({},xt),{school:gn,department:""}))))}),kr=gn=>{if(gn)return ft({type:"account/getDepartmentOption",payload:{id:gn}})};(0,me.useEffect)(()=>{if(!de.basicInfo)return;const{basicInfo:gn}=de,bt={identity:gn.identity,school:gn.school_name,department:gn.department_name,studentNo:gn.student_id,jobTitle:gn.identity=="teacher"?gn.technical_title:"\u6559\u6388",manager:gn.identity=="professional"?gn.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};Ge.setFieldsValue(bt),Xt(bt)},[de.basicInfo]);const Qn=()=>{ir(!0)},Nr=()=>{if(!ct.find(gn=>gn.name===xt.school)){ke.ZP.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}wr(!0)},ei=gn=>{Xt(ot({},Ge.getFieldsValue())),"school"in gn&&(lt(ct.filter(Ae=>Ae.name.includes(gn.school))),(ct.find(Ae=>Ae.name===gn.school)||{}).id?Rn(gn.school):(Ge.setFieldsValue({department:""}),Xt(ot(ot({},xt),{school:gn.school,department:""}))))},Vt=(gn,bt)=>{if(de.actionTabs.checkedList.includes(1)){he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:St.createElement("div",{className:"tc"},bt||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:()=>{window.location.href=`/classrooms/${gn}/students`}});return}window.location.href=`/classrooms/${gn}/students`},Rn=(gn,bt,Ae)=>$t(void 0,null,function*(){var je,Ze,We;const yt=(je=(Ae||ct).find(Ht=>Ht.name===gn))==null?void 0:je.id,Lt=(yield kr(yt))||{};it(Lt==null?void 0:Lt.departments);const Jt=bt||((We=(Ze=Lt==null?void 0:Lt.departments)==null?void 0:Ze[0])==null?void 0:We.name);Ge.setFieldsValue({department:Jt}),Xt(ot(ot({},xt),{school:gn,department:Jt}))}),Nn=gn=>$t(void 0,null,function*(){yield fr(),Ge.setFieldsValue({school:gn,department:""}),Xt(ot(ot({},xt),{school:gn,department:""}))}),wn=gn=>{var bt;if(gn.file.status==="uploading"){Yn(!0);return}gn.file.status==="done"&&(console.log(gn.file,gn.file.response),Ln((bt=gn.file.response)==null?void 0:bt.id),(0,gt.y3)(gn.file.originFileObj,Ae=>{bn(Ae),Yn(!1)}))},In=gn=>$t(void 0,null,function*(){var bt,Ae,je,Ze,We;const{school:yt,department:Lt,identity:Jt,studentNo:Ht,jobTitle:ln,manager:yn}=gn||{};if(!Qt){ke.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01");return}const En=(bt=ct.find(Hn=>Hn.name===yt))==null?void 0:bt.id,Mn=(Ae=Le.find(Hn=>Hn.name===Lt))==null?void 0:Ae.id;let Kt;Jt==="student"?Kt=Ht:Jt==="teacher"?Kt=ln:Kt=yn;const hn=yield ft({type:"account/applyProfessionalAuth",payload:{id:((je=de.basicInfo)==null?void 0:je.id)||((Ze=ce.userInfo)==null?void 0:Ze.login),school_id:En,department_id:Mn,identity:Jt,extra:Kt,attachment_ids:[Bn]}});if(de.actionTabs.code){let Hn=yield(0,Dt.cR)({invite_code:de.actionTabs.code,professor:de.actionTabs.checkedList.includes(1)?1:null,assistant_professor:de.actionTabs.checkedList.includes(2)?1:null,student:de.actionTabs.checkedList.includes(3)?1:null});Hn.message==="\u52A0\u5165\u6210\u529F"&&(Hn!=null&&Hn.course_id?Vt(Hn.course_id,Hn.message):ke.ZP.success(Hn.message))}xn(),hn&&(ke.ZP.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),ft({type:"account/getBasicInfo",payload:{login:(We=ce.userInfo)==null?void 0:We.login}}))}),xn=()=>{ft({type:"account/setActionTabs",payload:{}})},kn={data:{type:"professional"},multiple:!0,showUploadList:!1,action:`${st.Z.API_SERVER}/api/attachments.json`,className:Ue.Z.uploader,onChange:wn,beforeUpload:gn=>{const bt=gn.type==="image/jpeg"||gn.type==="image/png"||gn.type==="image/jpg"||gn.type==="image/bmp";return bt||ke.ZP.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),bt}};return St.createElement(he.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:Ue.Z.modal,open:de.actionTabs.key==="Account-ProfessionalAuth",title:St.createElement(we.Z,{style:{padding:"25px"},align:"middle",justify:"space-between"},St.createElement(Ee.Z,null,"\u804C\u4E1A\u8BA4\u8BC1"),St.createElement(Ee.Z,null,St.createElement("i",{className:"iconfont icon-guanbi11",style:{color:"#979797",cursor:"pointer"},onClick:xn}))),width:"660px",footer:null},St.createElement(ze.Z,{spinning:!!Gn},St.createElement(ge.default,{className:Ue.Z.formWrap,form:Ge,colon:!1,onValuesChange:ei,onFinish:In},St.createElement(we.Z,{gutter:[10,0]},St.createElement(Ee.Z,{flex:"300px"},St.createElement(ge.default.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},St.createElement(Pe.default,null,St.createElement(mn,{value:"teacher"},"\u6559\u5E08"),St.createElement(mn,{value:"student"},"\u5B66\u751F"),St.createElement(mn,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB")))),xt.identity==="student"&&St.createElement(Ee.Z,{flex:"200px"},St.createElement(ge.default.Item,{initialValue:xt.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},St.createElement(vt.default,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),xt.identity==="teacher"&&St.createElement(Ee.Z,{flex:"200px"},St.createElement(ge.default.Item,{initialValue:xt.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},St.createElement(Pe.default,null,St.createElement(mn,{value:"\u6559\u6388"},"\u6559\u6388"),St.createElement(mn,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),St.createElement(mn,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),St.createElement(mn,{value:"\u52A9\u6559"},"\u52A9\u6559")))),xt.identity==="professional"&&St.createElement(Ee.Z,{flex:"200px"},St.createElement(ge.default.Item,{initialValue:xt.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},St.createElement(Pe.default,null,St.createElement(mn,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),St.createElement(mn,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),St.createElement(mn,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),St.createElement(mn,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),St.createElement(mn,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08"))))),St.createElement(ge.default.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",extra:xt.school&&!(ct!=null&&ct.find(gn=>gn.name===xt.school))&&St.createElement("div",{className:Ue.Z.schoolHintWrap},St.createElement("span",{className:Ue.Z.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",xt.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),St.createElement("span",{className:`${Ue.Z.color0152d9} current`,onClick:Qn},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},St.createElement(Ie.Z,{showSearch:!0,onSearch:qn,options:rn==null?void 0:rn.map(gn=>({value:gn.name}))})),St.createElement(ge.default.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",extra:xt.department&&!(Le!=null&&Le.find(gn=>gn.name===xt.department))&&St.createElement("div",{className:Ue.Z.schoolHintWrap},St.createElement("span",{className:Ue.Z.colorCDCDCD},xt.department?`\u672A\u627E\u5230\u5305\u542B\u201C${xt.department}\u201D\u7684\u9AD8\u6821\uFF0C`:"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),St.createElement("span",{className:`${Ue.Z.color0152d9} current`,onClick:Nr},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},St.createElement(Ie.Z,{showSearch:!0,onChange:gn=>Ft(Le.filter(bt=>bt.name.includes(gn))),options:Ot==null?void 0:Ot.map(gn=>({value:gn.name}))})),St.createElement(ge.default.Item,{label:"\u804C\u4E1A\u8BC1\u4E0A\u4F20"},St.createElement("div",{className:Ue.Z.flexRow},St.createElement("div",{className:Ue.Z.flexColumn},St.createElement(on,Nt(ot({},kn),{accept:".png,.jpg,.bmp,.jpeg"}),Qt?St.createElement("img",{src:Qt,className:Ue.Z.uploadImg}):St.createElement("div",{className:Ue.Z.imageTip},St.createElement("p",null,St.createElement("i",{className:`iconfont icon-cuban2shangchuanyunduan ${Ue.Z.uploadTipIcon}`})),St.createElement("p",{className:Ue.Z.uploadTip},St.createElement("a",{className:Ue.Z.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),St.createElement("span",{className:"tc"},St.createElement("p",{className:Ue.Z.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))),St.createElement("div",{className:`${Ue.Z.flexColumn} ${Ue.Z.example}`},St.createElement("span",{className:Ue.Z.exampleImg},St.createElement("img",{src:Je})),St.createElement("span",{className:"tc"},St.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),St.createElement("p",{className:`${Ue.Z.colorOrange} font12`},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))))),St.createElement("div",{className:Ue.Z.footerWrap},St.createElement(ge.default.Item,null,St.createElement(He.ZP,{className:"mr5",size:"middle",onClick:xn},"\u53D6\u6D88"),St.createElement(He.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Be["account/applyProfessionalAuth"]},"\u4FDD\u5B58"))),St.createElement("div",{className:Ue.Z.note},St.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),St.createElement("p",null,"1.\u6839\u636E\u804C\u4E1A\u4E0A\u4F20\u76F8\u5E94\u7684\u8BC1\u4EF6\u7167\uFF1A\u6559\u5E08\uFF08\u6559\u5E08\u8BC1\uFF09\uFF0C\u4E13\u4E1A\u4EBA\u58EB\uFF08\u5458\u5DE5\u8BC1\uFF09\u3001\u5B66\u751F\uFF08\u5B66\u751F\u8BC1\uFF09\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u5185\u5BB9\u5B8C\u6574\u5E76\u4E14\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),St.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u804C\u4E1A\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),St.createElement("p",null,"3.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B\u804C\u4E1A\u53D8\u66F4\u8BF7\u9009\u62E9\u91CD\u65B0\u8BA4\u8BC1\uFF1B"),St.createElement("p",null,"4.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),St.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),St.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u5B66\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u804C\u4E1A\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3",!((mt=ae==null?void 0:ae.setting)!=null&&mt.is_local)&&"\u5E73\u53F0","\u8D26\u53F7\u3002"),St.createElement("p",null,"7.\u975E\u8001\u5E08\u8EAB\u4EFD\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u804C\u4E1A\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))),St.createElement(zt,{visible:_n,onClose:()=>ir(!1),schoolName:xt.school,onSuccess:Nn}),St.createElement(Et.Z,{visible:br,onClose:()=>wr(!1),schoolId:(rt=ct.find(gn=>gn.name===xt.school))==null?void 0:rt.id,schoolName:xt.school,departmentName:xt.department,onSuccess:gn=>Rn(xt.school,gn)}))};var ye=(0,Me.connect)(({user:ue,account:se,loading:ce,globalSetting:de})=>({user:ue,account:se,globalSetting:de,loading:ce.effects}))(en)},23495:function(An,Ut,oe){"use strict";oe.d(Ut,{P:function(){return me}});const me=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},20808:function(An,Ut,oe){"use strict";oe.d(Ut,{rX:function(){return nt},pW:function(){return Ve},gy:function(){return Se},xY:function(){return dt},O5:function(){return At},tJ:function(){return st},o1:function(){return Je},Rd:function(){return Et}});var me=oe(91482),Me=oe(43418),Pe=oe(28103),pt=oe(8591),ge=oe(7544),ke=oe(25544),he=oe(87169),we=oe(25510),Ee="data:image/png;base64,iVBORw0KGgoA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KusyCzmKUdMTr0hN3srzVRWlpS7PS11HT8EVJdVe06nd5b2Jq4CSgddRwbCd5GUt3YIzukjEqYazBu7NvmdiTIbdbLBzSIezzHnFva310//r4zv1XfmF+8I+vP3/ey4FOAlfrvHKFvlr2emq9BC4ngU5fcjnEHrqXwCxKoFfoWSyVnqepJdAr9NSi6xFnUQK9Qs9iqfQ8TS2BXqGnFl2POIsS6BV6Fkul52lqCfQKPbXoesRZlECv0LNYKj1PU0ugV+ipRdcjzqIEeoWexVLpeZpaAr1CTy26HnEWJdAr9CyWSs/T1BLoFXpq0fWIsyiBXqFnsVR6nqaWQK/QU4uuR5xFCfQKPYul0vM0tQR6hZ5adD3iLEqgV+hZLJWep6kl0Cv01KLrEWdRAr1Cz2Kp9DxNLYFeoacWXY84ixLoFXoWS6XnaWoJ9Ao9teh6xFmUwP8BvOeeqRbgzD0AAAAASUVORK5CYII=",ze=oe.p+"static/newqrcode.a8740efb.png",vt=oe(32637),Ie=oe(59301),He=($e,Ye,ht)=>new Promise((Xe,ut)=>{var Oe=zt=>{try{qe(ht.next(zt))}catch(Dt){ut(Dt)}},Pt=zt=>{try{qe(ht.throw(zt))}catch(Dt){ut(Dt)}},qe=zt=>zt.done?Xe(zt.value):Promise.resolve(zt.value).then(Oe,Pt);qe((ht=ht.apply($e,Ye)).next())});const st=($e,Ye=!1)=>!!(Je($e)&&Ue(Ye)),Je=$e=>(0,ge.bg)()?!0:($e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),Ue=($e=!1)=>{var Ye;const{user:ht}=(0,me.getDvaApp)()._store.getState();return(Ye=ht.userInfo)!=null&&Ye.profile_completed?!0:(Me.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,ke.xg)("/account/profile/edit"),gt()}}),!1)},gt=()=>{Me.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},Et=()=>{Me.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Ie.createElement("div",{style:{textAlign:"center"}},Ie.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),Ie.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:vt}),Ie.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},At=()=>{var $e;const{user:Ye}=(0,me.getDvaApp)()._store.getState();return($e=Ye.userInfo)!=null&&$e.professional_certification?!0:(Me.default.confirm({title:"\u63D0\u793A",centered:!0,content:Ie.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,ke.xg)("/account/certification")}}),!1)},dt=()=>(0,ge.V9)()?!0:(Me.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Ie.createElement("div",{className:"tc",style:{marginLeft:-38}},Ie.createElement("p",null,"\u626B\u7801\u52A0\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Ie.createElement("img",{src:ze,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),nt=($e,Ye)=>$e?!0:(Me.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Ie.createElement("div",null,Ie.createElement("p",null,Ye||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),Ie.createElement("div",{style:{marginLeft:"110px"}},Ie.createElement("img",{src:Ee,width:200}),Ie.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ke.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Ve=$e=>{Me.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Ie.createElement("div",null,Ie.createElement("div",null,Ie.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),Ie.createElement(Pe.Z,null),Ie.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Ie.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",Ie.createElement("a",null,$e),"\u5929\u3002"),Ie.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Ie.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),Ie.createElement("div",{style:{textAlign:"center",marginTop:30}},Ie.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:we,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Se=($e,Ye="")=>{const{shixunsDetail:{detail:ht}}=(0,me.getDvaApp)()._store.getState();if((ht==null?void 0:ht.public)===2||(ht==null?void 0:ht.public)===1||(ht==null?void 0:ht.shixun_status)===3){let Xe="";return(ht==null?void 0:ht.public)===2&&(Xe="\u5DF2\u516C\u5F00"),(ht==null?void 0:ht.public)===1&&(Xe="\u5F85\u5BA1\u6838"),(ht==null?void 0:ht.shixun_status)===3&&(Xe="\u5DF2\u5173\u95ED"),Me.default.info({centered:!0,icon:Ie.createElement(he.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Ie.createElement("div",{className:"tc",style:{marginLeft:-38}},Ie.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Ie.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Xe,"\uFF0C",Ye,"\u3002"),Ie.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Ie.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:we,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(ht==null?void 0:ht.shixun_status)===2?(Me.default.confirm({centered:!0,icon:Ie.createElement(he.Z,null),title:"\u63D0\u793A",content:Ie.createElement("div",null,Ie.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Ye,"\u3002"),Ie.createElement("br",null),Ie.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{Me.default.confirm({width:440,centered:!0,icon:Ie.createElement(he.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>He(void 0,null,function*(){(yield $e({type:"shixunsDetail/cancelRelease",payload:{id:ht==null?void 0:ht.identifier}})).status!==401&&(pt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),$e({type:"shixunsDetail/getShixunsDetail",payload:{id:ht==null?void 0:ht.identifier}}),$e({type:"practiceSetting/getCommonData",payload:{id:ht==null?void 0:ht.identifier}}))})})}}),!0):!1}},50371:function(An,Ut){"use strict";function oe(){const me=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Me=1;Me<arguments.length;Me++){const Pe=Me<0||arguments.length<=Me?void 0:arguments[Me];Pe&&Object.keys(Pe).forEach(pt=>{const ge=Pe[pt];ge!==void 0&&(me[pt]=ge)})}return me}Ut.Z=oe},13845:function(An,Ut,oe){"use strict";oe.d(Ut,{F:function(){return me},Z:function(){return Me}});function me(Pe){return Pe!=null&&Pe===Pe.window}function Me(Pe,pt){var ge,ke;if(typeof window=="undefined")return 0;const he=pt?"scrollTop":"scrollLeft";let we=0;return me(Pe)?we=Pe[pt?"pageYOffset":"pageXOffset"]:Pe instanceof Document?we=Pe.documentElement[he]:(Pe instanceof HTMLElement||Pe)&&(we=Pe[he]),Pe&&!me(Pe)&&typeof we!="number"&&(we=(ke=((ge=Pe.ownerDocument)!==null&&ge!==void 0?ge:Pe).documentElement)===null||ke===void 0?void 0:ke[he]),we}},56762:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return Me}});var me=oe(59301);function Me(){const[,Pe]=me.useReducer(pt=>pt+1,0);return Pe}},68031:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return pt}});var me=oe(16089);function Me(ge,ke,he,we){const Ee=he-ke;return ge/=we/2,ge<1?Ee/2*ge*ge*ge+ke:Ee/2*((ge-=2)*ge*ge+2)+ke}var Pe=oe(13845);function pt(ge){let ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:he=()=>window,callback:we,duration:Ee=450}=ke,ze=he(),vt=(0,Pe.Z)(ze,!0),Ie=Date.now(),He=()=>{const Je=Date.now()-Ie,Ue=Me(Je>Ee?Ee:Je,vt,ge,Ee);(0,Pe.F)(ze)?ze.scrollTo(window.pageXOffset,Ue):ze instanceof Document||ze.constructor.name==="HTMLDocument"?ze.documentElement.scrollTop=Ue:ze.scrollTop=Ue,Je<Ee?(0,me.Z)(He):typeof we=="function"&&we()};(0,me.Z)(He)}},19080:function(An,Ut,oe){"use strict";oe.d(Ut,{F:function(){return ge},Z:function(){return pt}});var me=oe(92310),Me=oe.n(me);const Pe=null;function pt(ke,he,we){return Me()({[`${ke}-status-success`]:he==="success",[`${ke}-status-warning`]:he==="warning",[`${ke}-status-error`]:he==="error",[`${ke}-status-validating`]:he==="validating",[`${ke}-has-feedback`]:we})}const ge=(ke,he)=>he||ke},88522:function(An,Ut,oe){"use strict";var me=oe(92310),Me=oe.n(me),Pe=oe(11592),pt=oe(2738),ge=oe(59301),ke=oe(53487),he=oe(92343),we=oe(36355),Ee=oe(57809);const{Option:ze}=Ee.default;function vt(Je){return Je&&Je.type&&(Je.type.isSelectOption||Je.type.isSelectOptGroup)}const Ie=(Je,Ue)=>{const{prefixCls:gt,className:Et,popupClassName:At,dropdownClassName:dt,children:nt,dataSource:Ve}=Je,Se=(0,Pe.Z)(nt);let $e;Se.length===1&&(0,he.l$)(Se[0])&&!vt(Se[0])&&([$e]=Se);const Ye=$e?()=>$e:void 0;let ht;Se.length&&vt(Se[0])?ht=nt:ht=Ve?Ve.map(Oe=>{if((0,he.l$)(Oe))return Oe;switch(typeof Oe){case"string":return ge.createElement(ze,{key:Oe,value:Oe},Oe);case"object":{const{value:Pt}=Oe;return ge.createElement(ze,{key:Pt,value:Pt},Oe.text)}default:return}}):[];const{getPrefixCls:Xe}=ge.useContext(we.E_),ut=Xe("select",gt);return ge.createElement(Ee.default,Object.assign({ref:Ue,suffixIcon:null},(0,pt.Z)(Je,["dataSource","dropdownClassName"]),{prefixCls:ut,popupClassName:At||dt,className:Me()(`${ut}-auto-complete`,Et),mode:Ee.default.SECRET_COMBOBOX_MODE_DO_NOT_USE},{getInputElement:Ye}),ht)},He=ge.forwardRef(Ie),st=(0,ke.Z)(He);He.Option=ze,He._InternalPanelDoNotUseOrYouWillBeFired=st,Ut.Z=He},19842:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return ei}});var me=oe(77654),Me=oe(59301),Pe=oe(33853),pt=oe(58617),ge=oe(38819),ke=oe(92310),he=oe.n(ke),we=oe(60499),Ee=oe(72190),ze=oe(42244),vt=oe(77861),Ie=oe(17115),He=oe(90782),st=oe(6089),Je=oe(18929),Ue=Me.createContext(null),gt=Ue,Et=oe(43749),At=oe(18642),dt=oe(85899),nt="__rc_cascader_search_mark__",Ve=function(Rn,Nn,wn){var In=wn.label;return Nn.some(function(xn){return String(xn[In]).toLowerCase().includes(Rn.toLowerCase())})},Se=function(Rn,Nn,wn,In){return Nn.map(function(xn){return xn[In.label]}).join(" / ")},$e=function(Vt,Rn,Nn,wn,In,xn){var kn=In.filter,gn=kn===void 0?Ve:kn,bt=In.render,Ae=bt===void 0?Se:bt,je=In.limit,Ze=je===void 0?50:je,We=In.sort;return Me.useMemo(function(){var yt=[];if(!Vt)return[];function Lt(Jt,Ht){var ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Jt.forEach(function(yn){if(!(!We&&Ze!==!1&&Ze>0&&yt.length>=Ze)){var En=[].concat((0,me.Z)(Ht),[yn]),Mn=yn[Nn.children],Kt=ln||yn.disabled;if((!Mn||Mn.length===0||xn)&&gn(Vt,En,{label:Nn.label})){var hn;yt.push((0,dt.Z)((0,dt.Z)({},yn),{},(hn={disabled:Kt},(0,At.Z)(hn,Nn.label,Ae(Vt,En,wn,Nn)),(0,At.Z)(hn,nt,En),(0,At.Z)(hn,Nn.children,void 0),hn)))}Mn&&Lt(yn[Nn.children],En,Kt)}})}return Lt(Rn,[]),We&&yt.sort(function(Jt,Ht){return We(Jt[nt],Ht[nt],Vt,Nn)}),Ze!==!1&&Ze>0?yt.slice(0,Ze):yt},[Vt,Rn,Nn,wn,Ae,xn,gn,We,Ze])},Ye="__RC_CASCADER_SPLIT__",ht="SHOW_PARENT",Xe="SHOW_CHILD";function ut(Vt){return Vt.join(Ye)}function Oe(Vt){return Vt.map(ut)}function Pt(Vt){return Vt.split(Ye)}function qe(Vt){var Rn=Vt||{},Nn=Rn.label,wn=Rn.value,In=Rn.children,xn=wn||"value";return{label:Nn||"label",value:xn,key:xn,children:In||"children"}}function zt(Vt,Rn){var Nn,wn;return(Nn=Vt.isLeaf)!==null&&Nn!==void 0?Nn:!((wn=Vt[Rn.children])!==null&&wn!==void 0&&wn.length)}function Dt(Vt){var Rn=Vt.parentElement;if(Rn){var Nn=Vt.offsetTop-Rn.offsetTop;Nn-Rn.scrollTop<0?Rn.scrollTo({top:Nn}):Nn+Vt.offsetHeight-Rn.scrollTop>Rn.offsetHeight&&Rn.scrollTo({top:Nn+Vt.offsetHeight-Rn.offsetHeight})}}function Bt(Vt,Rn){return Vt.map(function(Nn){var wn;return(wn=Nn[nt])===null||wn===void 0?void 0:wn.map(function(In){return In[Rn.value]})})}function St(Vt,Rn,Nn){var wn=new Set(Vt),In=Rn();return Vt.filter(function(xn){var kn=In[xn],gn=kn?kn.parent:null,bt=kn?kn.children:null;return kn&&kn.node.disabled?!0:Nn===Xe?!(bt&&bt.some(function(Ae){return Ae.key&&wn.has(Ae.key)})):!(gn&&!gn.node.disabled&&wn.has(gn.key))})}function It(Vt,Rn,Nn){for(var wn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,In=Rn,xn=[],kn=function(){var Ae,je,Ze,We=Vt[gn],yt=(Ae=In)===null||Ae===void 0?void 0:Ae.findIndex(function(Jt){var Ht=Jt[Nn.value];return wn?String(Ht)===String(We):Ht===We}),Lt=yt!==-1?(je=In)===null||je===void 0?void 0:je[yt]:null;xn.push({value:(Ze=Lt==null?void 0:Lt[Nn.value])!==null&&Ze!==void 0?Ze:We,index:yt,option:Lt}),In=Lt==null?void 0:Lt[Nn.children]},gn=0;gn<Vt.length;gn+=1)kn();return xn}var Qe=function(Vt,Rn,Nn,wn,In){return Me.useMemo(function(){var xn=In||function(kn){var gn=wn?kn.slice(-1):kn,bt=" / ";return gn.every(function(Ae){return["string","number"].includes((0,Et.Z)(Ae))})?gn.join(bt):gn.reduce(function(Ae,je,Ze){var We=Me.isValidElement(je)?Me.cloneElement(je,{key:Ze}):je;return Ze===0?[We]:[].concat((0,me.Z)(Ae),[bt,We])},[])};return Vt.map(function(kn){var gn,bt,Ae=It(kn,Rn,Nn),je=xn(Ae.map(function(We){var yt,Lt=We.option,Jt=We.value;return(yt=Lt==null?void 0:Lt[Nn.label])!==null&&yt!==void 0?yt:Jt}),Ae.map(function(We){var yt=We.option;return yt})),Ze=ut(kn);return{label:je,value:Ze,key:Ze,valueCells:kn,disabled:(gn=Ae[Ae.length-1])===null||gn===void 0||(bt=gn.option)===null||bt===void 0?void 0:bt.disabled}})},[Vt,Rn,Nn,In,wn])},be=oe(71430),Ct=function(Vt,Rn){var Nn=Me.useRef({options:null,info:null}),wn=Me.useCallback(function(){return Nn.current.options!==Vt&&(Nn.current.options=Vt,Nn.current.info=(0,be.I8)(Vt,{fieldNames:Rn,initWrapper:function(xn){return(0,dt.Z)((0,dt.Z)({},xn),{},{pathKeyEntities:{}})},processEntity:function(xn,kn){var gn=xn.nodes.map(function(bt){return bt[Rn.value]}).join(Ye);kn.pathKeyEntities[gn]=xn,xn.key=gn}})),Nn.current.info.pathKeyEntities},[Rn,Vt]);return wn},Yt=function(Vt,Rn){return Me.useCallback(function(Nn){var wn=[],In=[];return Nn.forEach(function(xn){var kn=It(xn,Vt,Rn);kn.every(function(gn){return gn.option})?In.push(xn):wn.push(xn)}),[In,wn]},[Vt,Rn])},Zt=oe(48736);function at(Vt){return Me.useMemo(function(){if(!Vt)return[!1,{}];var Rn={matchInputWidth:!0,limit:50};return Vt&&(0,Et.Z)(Vt)==="object"&&(Rn=(0,dt.Z)((0,dt.Z)({},Rn),Vt)),Rn.limit<=0&&delete Rn.limit,[!0,Rn]},[Vt])}var ot=Me.memo(function(Vt){var Rn=Vt.children;return Rn},function(Vt,Rn){return!Rn.open}),Nt=ot;function Sn(Vt){var Rn,Nn=Vt.prefixCls,wn=Vt.checked,In=Vt.halfChecked,xn=Vt.disabled,kn=Vt.onClick,gn=Vt.disableCheckbox,bt=Me.useContext(gt),Ae=bt.checkable,je=typeof Ae!="boolean"?Ae:null;return Me.createElement("span",{className:he()("".concat(Nn),(Rn={},(0,At.Z)(Rn,"".concat(Nn,"-checked"),wn),(0,At.Z)(Rn,"".concat(Nn,"-indeterminate"),!wn&&In),(0,At.Z)(Rn,"".concat(Nn,"-disabled"),xn||gn),Rn)),onClick:kn},je)}var $t="__cascader_fix_label__";function mn(Vt){var Rn=Vt.prefixCls,Nn=Vt.multiple,wn=Vt.options,In=Vt.activeValue,xn=Vt.prevValuePath,kn=Vt.onToggleOpen,gn=Vt.onSelect,bt=Vt.onActive,Ae=Vt.checkedSet,je=Vt.halfCheckedSet,Ze=Vt.loadingKeys,We=Vt.isSelectable,yt=Vt.searchValue,Lt="".concat(Rn,"-menu"),Jt="".concat(Rn,"-menu-item"),Ht=Me.useContext(gt),ln=Ht.fieldNames,yn=Ht.changeOnSelect,En=Ht.expandTrigger,Mn=Ht.expandIcon,Kt=Ht.loadingIcon,hn=Ht.dropdownMenuColumnStyle,Hn=En==="hover",Zn=Me.useMemo(function(){return wn.map(function(Kn){var jn,nr=Kn.disabled,On=Kn.disableCheckbox,cr=Kn[nt],Mt=(jn=Kn[$t])!==null&&jn!==void 0?jn:Kn[ln.label],an=Kn[ln.value],cn=zt(Kn,ln),Cn=cr?cr.map(function(Vn){return Vn[ln.value]}):[].concat((0,me.Z)(xn),[an]),un=ut(Cn),vn=Ze.includes(un),pn=Ae.has(un),Pn=je.has(un);return{disabled:nr,label:Mt,value:an,isLeaf:cn,isLoading:vn,checked:pn,halfChecked:Pn,option:Kn,disableCheckbox:On,fullPath:Cn,fullPathKey:un}})},[wn,Ae,ln,je,Ze,xn]);return Me.createElement("ul",{className:Lt,role:"menu"},Zn.map(function(Kn){var jn,nr=Kn.disabled,On=Kn.label,cr=Kn.value,Mt=Kn.isLeaf,an=Kn.isLoading,cn=Kn.checked,Cn=Kn.halfChecked,un=Kn.option,vn=Kn.fullPath,pn=Kn.fullPathKey,Pn=Kn.disableCheckbox,Vn=function(){if(!(nr||yt)){var Pr=(0,me.Z)(vn);Hn&&Mt&&Pr.pop(),bt(Pr)}},er=function(){We(un)&&gn(vn,Mt)},pr;return typeof un.title=="string"?pr=un.title:typeof On=="string"&&(pr=On),Me.createElement("li",{key:pn,className:he()(Jt,(jn={},(0,At.Z)(jn,"".concat(Jt,"-expand"),!Mt),(0,At.Z)(jn,"".concat(Jt,"-active"),In===cr||In===pn),(0,At.Z)(jn,"".concat(Jt,"-disabled"),nr),(0,At.Z)(jn,"".concat(Jt,"-loading"),an),jn)),style:hn,role:"menuitemcheckbox",title:pr,"aria-checked":cn,"data-path-key":pn,onClick:function(){Vn(),!Pn&&(!Nn||Mt)&&er()},onDoubleClick:function(){yn&&kn(!1)},onMouseEnter:function(){Hn&&Vn()},onMouseDown:function(Pr){Pr.preventDefault()}},Nn&&Me.createElement(Sn,{prefixCls:"".concat(Rn,"-checkbox"),checked:cn,halfChecked:Cn,disabled:nr||Pn,disableCheckbox:Pn,onClick:function(Pr){Pn||(Pr.stopPropagation(),er())}}),Me.createElement("div",{className:"".concat(Jt,"-content")},On),!an&&Mn&&!Mt&&Me.createElement("div",{className:"".concat(Jt,"-expand-icon")},Mn),an&&Kt&&Me.createElement("div",{className:"".concat(Jt,"-loading-icon")},Kt))}))}var on=function(){var Vt=(0,vt.lk)(),Rn=Vt.multiple,Nn=Vt.open,wn=Me.useContext(gt),In=wn.values,xn=Me.useState([]),kn=(0,Ee.Z)(xn,2),gn=kn[0],bt=kn[1];return Me.useEffect(function(){if(Nn&&!Rn){var Ae=In[0];bt(Ae||[])}},[Nn]),[gn,bt]},nn=oe(10228),en=function(Vt,Rn,Nn,wn,In,xn){var kn=(0,vt.lk)(),gn=kn.direction,bt=kn.searchValue,Ae=kn.toggleOpen,je=kn.open,Ze=gn==="rtl",We=Me.useMemo(function(){for(var hn=-1,Hn=Rn,Zn=[],Kn=[],jn=wn.length,nr=Bt(Rn,Nn),On=function(un){var vn=Hn.findIndex(function(pn,Pn){return(nr[Pn]?ut(nr[Pn]):pn[Nn.value])===wn[un]});if(vn===-1)return"break";hn=vn,Zn.push(hn),Kn.push(wn[un]),Hn=Hn[hn][Nn.children]},cr=0;cr<jn&&Hn;cr+=1){var Mt=On(cr);if(Mt==="break")break}for(var an=Rn,cn=0;cn<Zn.length-1;cn+=1)an=an[Zn[cn]][Nn.children];return[Kn,hn,an,nr]},[wn,Nn,Rn]),yt=(0,Ee.Z)(We,4),Lt=yt[0],Jt=yt[1],Ht=yt[2],ln=yt[3],yn=function(Hn){In(Hn)},En=function(Hn){var Zn=Ht.length,Kn=Jt;Kn===-1&&Hn<0&&(Kn=Zn);for(var jn=0;jn<Zn;jn+=1){Kn=(Kn+Hn+Zn)%Zn;var nr=Ht[Kn];if(nr&&!nr.disabled){var On=Lt.slice(0,-1).concat(ln[Kn]?ut(ln[Kn]):nr[Nn.value]);yn(On);return}}},Mn=function(){if(Lt.length>1){var Hn=Lt.slice(0,-1);yn(Hn)}else Ae(!1)},Kt=function(){var Hn,Zn=((Hn=Ht[Jt])===null||Hn===void 0?void 0:Hn[Nn.children])||[],Kn=Zn.find(function(nr){return!nr.disabled});if(Kn){var jn=[].concat((0,me.Z)(Lt),[Kn[Nn.value]]);yn(jn)}};Me.useImperativeHandle(Vt,function(){return{onKeyDown:function(Hn){var Zn=Hn.which;switch(Zn){case nn.Z.UP:case nn.Z.DOWN:{var Kn=0;Zn===nn.Z.UP?Kn=-1:Zn===nn.Z.DOWN&&(Kn=1),Kn!==0&&En(Kn);break}case nn.Z.LEFT:{if(bt)break;Ze?Kt():Mn();break}case nn.Z.RIGHT:{if(bt)break;Ze?Mn():Kt();break}case nn.Z.BACKSPACE:{bt||Mn();break}case nn.Z.ENTER:{if(Lt.length){var jn=Ht[Jt],nr=(jn==null?void 0:jn[nt])||[];nr.length?xn(nr.map(function(On){return On[Nn.value]}),nr[nr.length-1]):xn(Lt,Ht[Jt])}break}case nn.Z.ESC:Ae(!1),je&&Hn.stopPropagation()}},onKeyUp:function(){}}})},ye=Me.forwardRef(function(Vt,Rn){var Nn,wn,In,xn,kn=(0,vt.lk)(),gn=kn.prefixCls,bt=kn.multiple,Ae=kn.searchValue,je=kn.toggleOpen,Ze=kn.notFoundContent,We=kn.direction,yt=kn.open,Lt=Me.useRef(),Jt=We==="rtl",Ht=Me.useContext(gt),ln=Ht.options,yn=Ht.values,En=Ht.halfValues,Mn=Ht.fieldNames,Kt=Ht.changeOnSelect,hn=Ht.onSelect,Hn=Ht.searchOptions,Zn=Ht.dropdownPrefixCls,Kn=Ht.loadData,jn=Ht.expandTrigger,nr=Zn||gn,On=Me.useState([]),cr=(0,Ee.Z)(On,2),Mt=cr[0],an=cr[1],cn=function(lr){if(!(!Kn||Ae)){var jr=It(lr,ln,Mn),li=jr.map(function(Xn){var Wr=Xn.option;return Wr}),Dr=li[li.length-1];if(Dr&&!zt(Dr,Mn)){var Jn=ut(lr);an(function(Xn){return[].concat((0,me.Z)(Xn),[Jn])}),Kn(li)}}};Me.useEffect(function(){Mt.length&&Mt.forEach(function(Cr){var lr=Pt(Cr),jr=It(lr,ln,Mn,!0).map(function(Dr){var Jn=Dr.option;return Jn}),li=jr[jr.length-1];(!li||li[Mn.children]||zt(li,Mn))&&an(function(Dr){return Dr.filter(function(Jn){return Jn!==Cr})})})},[ln,Mt,Mn]);var Cn=Me.useMemo(function(){return new Set(Oe(yn))},[yn]),un=Me.useMemo(function(){return new Set(Oe(En))},[En]),vn=on(),pn=(0,Ee.Z)(vn,2),Pn=pn[0],Vn=pn[1],er=function(lr){Vn(lr),cn(lr)},pr=function(lr){var jr=lr.disabled,li=zt(lr,Mn);return!jr&&(li||Kt||bt)},mr=function(lr,jr){var li=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;hn(lr),!bt&&(jr||Kt&&(jn==="hover"||li))&&je(!1)},Pr=Me.useMemo(function(){return Ae?Hn:ln},[Ae,Hn,ln]),Ir=Me.useMemo(function(){for(var Cr=[{options:Pr}],lr=Pr,jr=Bt(lr,Mn),li=function(){var Wr=Pn[Dr],Er=lr.find(function(ci,ti){return(jr[ti]?ut(jr[ti]):ci[Mn.value])===Wr}),Jr=Er==null?void 0:Er[Mn.children];if(!(Jr!=null&&Jr.length))return"break";lr=Jr,Cr.push({options:Jr})},Dr=0;Dr<Pn.length;Dr+=1){var Jn=li();if(Jn==="break")break}return Cr},[Pr,Pn,Mn]),Lr=function(lr,jr){pr(jr)&&mr(lr,zt(jr,Mn),!0)};en(Rn,Pr,Mn,Pn,er,Lr),Me.useEffect(function(){for(var Cr=0;Cr<Pn.length;Cr+=1){var lr,jr=Pn.slice(0,Cr+1),li=ut(jr),Dr=(lr=Lt.current)===null||lr===void 0?void 0:lr.querySelector('li[data-path-key="'.concat(li.replace(/\\{0,2}"/g,'\\"'),'"]'));Dr&&Dt(Dr)}},[Pn]);var $r=!((Nn=Ir[0])!==null&&Nn!==void 0&&(wn=Nn.options)!==null&&wn!==void 0&&wn.length),Hr=[(In={},(0,At.Z)(In,Mn.value,"__EMPTY__"),(0,At.Z)(In,$t,Ze),(0,At.Z)(In,"disabled",!0),In)],Zr=(0,dt.Z)((0,dt.Z)({},Vt),{},{multiple:!$r&&bt,onSelect:mr,onActive:er,onToggleOpen:je,checkedSet:Cn,halfCheckedSet:un,loadingKeys:Mt,isSelectable:pr}),gr=$r?[{options:Hr}]:Ir,zr=gr.map(function(Cr,lr){var jr=Pn.slice(0,lr),li=Pn[lr];return Me.createElement(mn,(0,we.Z)({key:lr},Zr,{searchValue:Ae,prefixCls:nr,options:Cr.options,prevValuePath:jr,activeValue:li}))});return Me.createElement(Nt,{open:yt},Me.createElement("div",{className:he()("".concat(nr,"-menus"),(xn={},(0,At.Z)(xn,"".concat(nr,"-menu-empty"),$r),(0,At.Z)(xn,"".concat(nr,"-rtl"),Jt),xn)),ref:Lt},zr))}),ue=ye;function se(Vt){var Rn=Vt.onPopupVisibleChange,Nn=Vt.popupVisible,wn=Vt.popupClassName,In=Vt.popupPlacement;warning(!Rn,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Nn===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(wn===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(In===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function ce(Vt,Rn){if(Vt){var Nn=function wn(In){for(var xn=0;xn<In.length;xn++){var kn=In[xn];if(kn[Rn==null?void 0:Rn.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(kn[Rn==null?void 0:Rn.children])&&wn(kn[Rn==null?void 0:Rn.children]))return!0}};Nn(Vt)}}var de=null,ae=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy"];function Be(Vt){return Array.isArray(Vt)&&Array.isArray(Vt[0])}function ft(Vt){return Vt?Be(Vt)?Vt:(Vt.length===0?[]:[Vt]).map(function(Rn){return Array.isArray(Rn)?Rn:[Rn]}):[]}var Fe=Me.forwardRef(function(Vt,Rn){var Nn=Vt.id,wn=Vt.prefixCls,In=wn===void 0?"rc-cascader":wn,xn=Vt.fieldNames,kn=Vt.defaultValue,gn=Vt.value,bt=Vt.changeOnSelect,Ae=Vt.onChange,je=Vt.displayRender,Ze=Vt.checkable,We=Vt.autoClearSearchValue,yt=We===void 0?!0:We,Lt=Vt.searchValue,Jt=Vt.onSearch,Ht=Vt.showSearch,ln=Vt.expandTrigger,yn=Vt.options,En=Vt.dropdownPrefixCls,Mn=Vt.loadData,Kt=Vt.popupVisible,hn=Vt.open,Hn=Vt.popupClassName,Zn=Vt.dropdownClassName,Kn=Vt.dropdownMenuColumnStyle,jn=Vt.popupPlacement,nr=Vt.placement,On=Vt.onDropdownVisibleChange,cr=Vt.onPopupVisibleChange,Mt=Vt.expandIcon,an=Mt===void 0?">":Mt,cn=Vt.loadingIcon,Cn=Vt.children,un=Vt.dropdownMatchSelectWidth,vn=un===void 0?!1:un,pn=Vt.showCheckedStrategy,Pn=pn===void 0?ht:pn,Vn=(0,ze.Z)(Vt,ae),er=(0,Ie.ZP)(Nn),pr=!!Ze,mr=(0,Je.Z)(kn,{value:gn,postState:ft}),Pr=(0,Ee.Z)(mr,2),Ir=Pr[0],Lr=Pr[1],$r=Me.useMemo(function(){return qe(xn)},[JSON.stringify(xn)]),Hr=Me.useMemo(function(){return yn||[]},[yn]),Zr=Ct(Hr,$r),gr=Me.useCallback(function(sr){var hr=Zr();return sr.map(function(xi){var Fi=hr[xi].nodes;return Fi.map(function(Zi){return Zi[$r.value]})})},[Zr,$r]),zr=(0,Je.Z)("",{value:Lt,postState:function(hr){return hr||""}}),Cr=(0,Ee.Z)(zr,2),lr=Cr[0],jr=Cr[1],li=function(hr,xi){jr(hr),xi.source!=="blur"&&Jt&&Jt(hr)},Dr=at(Ht),Jn=(0,Ee.Z)(Dr,2),Xn=Jn[0],Wr=Jn[1],Er=$e(lr,Hr,$r,En||In,Wr,bt),Jr=Yt(Hr,$r),ci=Me.useMemo(function(){var sr=Jr(Ir),hr=(0,Ee.Z)(sr,2),xi=hr[0],Fi=hr[1];if(!pr||!Ir.length)return[xi,[],Fi];var Zi=Oe(xi),Yi=Zr(),Wi=(0,He.S)(Zi,!0,Yi),ra=Wi.checkedKeys,Ba=Wi.halfCheckedKeys;return[gr(ra),gr(Ba),Fi]},[pr,Ir,Zr,gr,Jr]),ti=(0,Ee.Z)(ci,3),Bi=ti[0],vi=ti[1],Ui=ti[2],Or=Me.useMemo(function(){var sr=Oe(Bi),hr=St(sr,Zr,Pn);return[].concat((0,me.Z)(Ui),(0,me.Z)(gr(hr)))},[Bi,Zr,gr,Ui,Pn]),_r=Qe(Or,Hr,$r,pr,je),si=(0,st.Z)(function(sr){if(Lr(sr),Ae){var hr=ft(sr),xi=hr.map(function(Yi){return It(Yi,Hr,$r).map(function(Wi){return Wi.option})}),Fi=pr?hr:hr[0],Zi=pr?xi:xi[0];Ae(Fi,Zi)}}),di=(0,st.Z)(function(sr){if((!pr||yt)&&jr(""),!pr)si(sr);else{var hr=ut(sr),xi=Oe(Bi),Fi=Oe(vi),Zi=xi.includes(hr),Yi=Ui.some(function(po){return ut(po)===hr}),Wi=Bi,ra=Ui;if(Yi&&!Zi)ra=Ui.filter(function(po){return ut(po)!==hr});else{var Ba=Zi?xi.filter(function(po){return po!==hr}):[].concat((0,me.Z)(xi),[hr]),Aa=Zr(),ho;if(Zi){var no=(0,He.S)(Ba,{checked:!1,halfCheckedKeys:Fi},Aa);ho=no.checkedKeys}else{var Fa=(0,He.S)(Ba,!0,Aa);ho=Fa.checkedKeys}var al=St(ho,Zr,Pn);Wi=gr(al)}si([].concat((0,me.Z)(ra),(0,me.Z)(Wi)))}}),ea=function(hr,xi){if(xi.type==="clear"){si([]);return}var Fi=xi.values[0],Zi=Fi.valueCells;di(Zi)},Va=hn!==void 0?hn:Kt,Da=Zn||Hn,_i=nr||jn,da=function(hr){On==null||On(hr),cr==null||cr(hr)},sa=Me.useMemo(function(){return{options:Hr,fieldNames:$r,values:Bi,halfValues:vi,changeOnSelect:bt,onSelect:di,checkable:Ze,searchOptions:Er,dropdownPrefixCls:En,loadData:Mn,expandTrigger:ln,expandIcon:an,loadingIcon:cn,dropdownMenuColumnStyle:Kn}},[Hr,$r,Bi,vi,bt,di,Ze,Er,En,Mn,ln,an,cn,Kn]),Sr=!(lr?Er:Hr).length,xr=lr&&Wr.matchInputWidth||Sr?{}:{minWidth:"auto"};return Me.createElement(gt.Provider,{value:sa},Me.createElement(vt.Ac,(0,we.Z)({},Vn,{ref:Rn,id:er,prefixCls:In,autoClearSearchValue:yt,dropdownMatchSelectWidth:vn,dropdownStyle:xr,displayValues:_r,onDisplayValuesChange:ea,mode:pr?"multiple":void 0,searchValue:lr,onSearch:li,showSearch:Xn,OptionList:ue,emptyOptions:Sr,open:Va,dropdownClassName:Da,placement:_i,onDropdownVisibleChange:da,getRawInputElement:function(){return Cn}})))});Fe.SHOW_PARENT=ht,Fe.SHOW_CHILD=Xe;var De=Fe,mt=De,rt=oe(2738),Ge=oe(62892),xt=oe(53487),Xt=oe(19080),ct=oe(36355),Rt=oe(93891),rn=oe(1684),lt=oe(19716),Le=oe(32441),it=oe(14154),Ot=oe(58582),Ft=oe(84443),Qt=oe(66339),bn=oe(33234),Bn=oe(98447),Ln=oe(17313),Gn=oe(74207),Yn=oe(83116);const _n=Vt=>{const{prefixCls:Rn,componentCls:Nn,antCls:wn}=Vt,In=`${Nn}-menu-item`,xn=`
&${In}-expand ${In}-expand-icon,
${In}-loading-icon
`;return[{[Nn]:{width:Vt.controlWidth}},{[`${Nn}-dropdown`]:[(0,Bn.C2)(`${Rn}-checkbox`,Vt),{[`&${wn}-select-dropdown`]:{padding:0}},{[Nn]:{"&-checkbox":{top:0,marginInlineEnd:Vt.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Nn}-menu-empty`]:{[`${Nn}-menu`]:{width:"100%",height:"auto",[In]:{color:Vt.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Vt.controlItemWidth,height:Vt.dropdownHeight,margin:0,padding:Vt.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Vt.lineWidth}px ${Vt.lineType} ${Vt.colorSplit}`},"&-item":Object.assign(Object.assign({},Ln.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Vt.optionPadding,lineHeight:Vt.lineHeight,cursor:"pointer",transition:`all ${Vt.motionDurationMid}`,borderRadius:Vt.borderRadiusSM,"&:hover":{background:Vt.controlItemBgHover},"&-disabled":{color:Vt.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[xn]:{color:Vt.colorTextDisabled}},[`&-active:not(${In}-disabled)`]:{"&, &:hover":{fontWeight:Vt.optionSelectedFontWeight,backgroundColor:Vt.optionSelectedBg}},"&-content":{flex:"auto"},[xn]:{marginInlineStart:Vt.paddingXXS,color:Vt.colorTextDescription,fontSize:Vt.fontSizeIcon},"&-keyword":{color:Vt.colorHighlight}})}}}]},{[`${Nn}-dropdown-rtl`]:{direction:"rtl"}},(0,Gn.c)(Vt)]};var ir=(0,Yn.Z)("Cascader",Vt=>[_n(Vt)],Vt=>{const Rn=Math.round((Vt.controlHeight-Vt.fontSize*Vt.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Vt.controlItemBgActive,optionSelectedFontWeight:Vt.fontWeightStrong,optionPadding:`${Rn}px ${Vt.paddingSM}px`,menuPadding:Vt.paddingXXS}}),br=function(Vt,Rn){var Nn={};for(var wn in Vt)Object.prototype.hasOwnProperty.call(Vt,wn)&&Rn.indexOf(wn)<0&&(Nn[wn]=Vt[wn]);if(Vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var In=0,wn=Object.getOwnPropertySymbols(Vt);In<wn.length;In++)Rn.indexOf(wn[In])<0&&Object.prototype.propertyIsEnumerable.call(Vt,wn[In])&&(Nn[wn[In]]=Vt[wn[In]]);return Nn};const{SHOW_CHILD:wr,SHOW_PARENT:qn}=mt;function fr(Vt,Rn,Nn){const wn=Vt.toLowerCase().split(Rn).reduce((kn,gn,bt)=>bt===0?[gn]:[].concat((0,me.Z)(kn),[Rn,gn]),[]),In=[];let xn=0;return wn.forEach((kn,gn)=>{const bt=xn+kn.length;let Ae=Vt.slice(xn,bt);xn=bt,gn%2===1&&(Ae=Me.createElement("span",{className:`${Nn}-menu-item-keyword`,key:`separator-${gn}`},Ae)),In.push(Ae)}),In}const kr=(Vt,Rn,Nn,wn)=>{const In=[],xn=Vt.toLowerCase();return Rn.forEach((kn,gn)=>{gn!==0&&In.push(" / ");let bt=kn[wn.label];const Ae=typeof bt;(Ae==="string"||Ae==="number")&&(bt=fr(String(bt),xn,Nn)),In.push(bt)}),In},Qn=Me.forwardRef((Vt,Rn)=>{const{prefixCls:Nn,size:wn,disabled:In,className:xn,rootClassName:kn,multiple:gn,bordered:bt=!0,transitionName:Ae,choiceTransitionName:je="",popupClassName:Ze,dropdownClassName:We,expandIcon:yt,placement:Lt,showSearch:Jt,allowClear:Ht=!0,notFoundContent:ln,direction:yn,getPopupContainer:En,status:Mn,showArrow:Kt,builtinPlacements:hn,style:Hn}=Vt,Zn=br(Vt,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Kn=(0,rt.Z)(Zn,["suffixIcon"]),{getPopupContainer:jn,getPrefixCls:nr,renderEmpty:On,direction:cr,popupOverflow:Mt,cascader:an}=Me.useContext(ct.E_),cn=yn||cr,Cn=cn==="rtl",{status:un,hasFeedback:vn,isFormItemInput:pn,feedbackIcon:Pn}=Me.useContext(Le.aM),Vn=(0,Xt.F)(un,Mn),er=ln||(On==null?void 0:On("Cascader"))||Me.createElement(Rt.Z,{componentName:"Cascader"}),pr=nr(),mr=nr("select",Nn),Pr=nr("cascader",Nn),[Ir,Lr]=(0,it.Z)(mr),[$r]=ir(Pr),{compactSize:Hr,compactItemClassnames:Zr}=(0,bn.ri)(mr,yn),gr=he()(Ze||We,`${Pr}-dropdown`,{[`${Pr}-dropdown-rtl`]:cn==="rtl"},kn,Lr),zr=Me.useMemo(()=>{if(!Jt)return Jt;let Ui={render:kr};return typeof Jt=="object"&&(Ui=Object.assign(Object.assign({},Ui),Jt)),Ui},[Jt]),Cr=(0,lt.Z)(Ui=>{var Or;return(Or=wn!=null?wn:Hr)!==null&&Or!==void 0?Or:Ui}),lr=Me.useContext(rn.Z),jr=In!=null?In:lr;let li=yt;yt||(li=Cn?Me.createElement(Pe.Z,null):Me.createElement(ge.Z,null));const Dr=Me.createElement("span",{className:`${mr}-menu-item-loading-icon`},Me.createElement(pt.Z,{spin:!0})),Jn=Me.useMemo(()=>gn?Me.createElement("span",{className:`${Pr}-checkbox-inner`}):!1,[gn]),Xn=(0,Ft.Z)(Vt.suffixIcon,Kt),{suffixIcon:Wr,removeIcon:Er,clearIcon:Jr}=(0,Qt.Z)(Object.assign(Object.assign({},Vt),{hasFeedback:vn,feedbackIcon:Pn,showSuffixIcon:Xn,multiple:gn,prefixCls:mr,componentName:"Cascader"})),ci=Me.useMemo(()=>Lt!==void 0?Lt:Cn?"bottomRight":"bottomLeft",[Lt,Cn]),ti=(0,Ot.Z)(hn,Mt),Bi=Ht===!0?{clearIcon:Jr}:Ht,vi=Me.createElement(mt,Object.assign({prefixCls:mr,className:he()(!Nn&&Pr,{[`${mr}-lg`]:Cr==="large",[`${mr}-sm`]:Cr==="small",[`${mr}-rtl`]:Cn,[`${mr}-borderless`]:!bt,[`${mr}-in-form-item`]:pn},(0,Xt.Z)(mr,Vn,vn),Zr,an==null?void 0:an.className,xn,kn,Lr),disabled:jr,style:Object.assign(Object.assign({},an==null?void 0:an.style),Hn)},Kn,{builtinPlacements:ti,direction:cn,placement:ci,notFoundContent:er,allowClear:Bi,showSearch:zr,expandIcon:li,suffixIcon:Wr,removeIcon:Er,loadingIcon:Dr,checkable:Jn,dropdownClassName:gr,dropdownPrefixCls:Nn||Pr,choiceTransitionName:(0,Ge.m)(pr,"",je),transitionName:(0,Ge.m)(pr,"slide-up",Ae),getPopupContainer:En||jn,ref:Rn}));return $r(Ir(vi))}),Nr=(0,xt.Z)(Qn);Qn.SHOW_PARENT=qn,Qn.SHOW_CHILD=wr,Qn._InternalPanelDoNotUseOrYouWillBeFired=Nr;var ei=Qn},24905:function(An,Ut,oe){"use strict";oe.d(Ut,{default:function(){return $e}});var me=oe(92310),Me=oe.n(me),Pe=oe(5630),pt=oe(59301),ge=oe(36355),ke=oe(1684),he=oe(32441),Ee=pt.createContext(null),ze=oe(98447),vt=oe(14088),Ie=oe(4572),He=function(Ye,ht){var Xe={};for(var ut in Ye)Object.prototype.hasOwnProperty.call(Ye,ut)&&ht.indexOf(ut)<0&&(Xe[ut]=Ye[ut]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,ut=Object.getOwnPropertySymbols(Ye);Oe<ut.length;Oe++)ht.indexOf(ut[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Ye,ut[Oe])&&(Xe[ut[Oe]]=Ye[ut[Oe]]);return Xe};const st=(Ye,ht)=>{var Xe;const{prefixCls:ut,className:Oe,rootClassName:Pt,children:qe,indeterminate:zt=!1,style:Dt,onMouseEnter:Bt,onMouseLeave:St,skipGroup:It=!1,disabled:Qe}=Ye,be=He(Ye,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ct,direction:Yt,checkbox:Zt}=pt.useContext(ge.E_),at=pt.useContext(Ee),{isFormItemInput:ot}=pt.useContext(he.aM),Nt=pt.useContext(ke.Z),Sn=(Xe=(at==null?void 0:at.disabled)||Qe)!==null&&Xe!==void 0?Xe:Nt,$t=pt.useRef(be.value);pt.useEffect(()=>{at==null||at.registerValue(be.value)},[]),pt.useEffect(()=>{if(!It)return be.value!==$t.current&&(at==null||at.cancelValue($t.current),at==null||at.registerValue(be.value),$t.current=be.value),()=>at==null?void 0:at.cancelValue(be.value)},[be.value]);const mn=Ct("checkbox",ut),[on,nn]=(0,ze.ZP)(mn),en=Object.assign({},be);at&&!It&&(en.onChange=function(){be.onChange&&be.onChange.apply(be,arguments),at.toggleOption&&at.toggleOption({label:qe,value:be.value})},en.name=at.name,en.checked=at.value.includes(be.value));const ye=Me()(`${mn}-wrapper`,{[`${mn}-rtl`]:Yt==="rtl",[`${mn}-wrapper-checked`]:en.checked,[`${mn}-wrapper-disabled`]:Sn,[`${mn}-wrapper-in-form-item`]:ot},Zt==null?void 0:Zt.className,Oe,Pt,nn),ue=Me()({[`${mn}-indeterminate`]:zt},Ie.A,nn),se=zt?"mixed":void 0;return on(pt.createElement(vt.Z,{component:"Checkbox",disabled:Sn},pt.createElement("label",{className:ye,style:Object.assign(Object.assign({},Zt==null?void 0:Zt.style),Dt),onMouseEnter:Bt,onMouseLeave:St},pt.createElement(Pe.Z,Object.assign({"aria-checked":se},en,{prefixCls:mn,className:ue,disabled:Sn,ref:ht})),qe!==void 0&&pt.createElement("span",null,qe))))};var Ue=pt.forwardRef(st),gt=oe(77654),Et=oe(2738),At=function(Ye,ht){var Xe={};for(var ut in Ye)Object.prototype.hasOwnProperty.call(Ye,ut)&&ht.indexOf(ut)<0&&(Xe[ut]=Ye[ut]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,ut=Object.getOwnPropertySymbols(Ye);Oe<ut.length;Oe++)ht.indexOf(ut[Oe])<0&&Object.prototype.propertyIsEnumerable.call(Ye,ut[Oe])&&(Xe[ut[Oe]]=Ye[ut[Oe]]);return Xe};const dt=(Ye,ht)=>{const{defaultValue:Xe,children:ut,options:Oe=[],prefixCls:Pt,className:qe,rootClassName:zt,style:Dt,onChange:Bt}=Ye,St=At(Ye,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:It,direction:Qe}=pt.useContext(ge.E_),[be,Ct]=pt.useState(St.value||Xe||[]),[Yt,Zt]=pt.useState([]);pt.useEffect(()=>{"value"in St&&Ct(St.value||[])},[St.value]);const at=pt.useMemo(()=>Oe.map(ce=>typeof ce=="string"||typeof ce=="number"?{label:ce,value:ce}:ce),[Oe]),ot=ce=>{Zt(de=>de.filter(ae=>ae!==ce))},Nt=ce=>{Zt(de=>[].concat((0,gt.Z)(de),[ce]))},Sn=ce=>{const de=be.indexOf(ce.value),ae=(0,gt.Z)(be);de===-1?ae.push(ce.value):ae.splice(de,1),"value"in St||Ct(ae),Bt==null||Bt(ae.filter(Be=>Yt.includes(Be)).sort((Be,ft)=>{const Fe=at.findIndex(mt=>mt.value===Be),De=at.findIndex(mt=>mt.value===ft);return Fe-De}))},$t=It("checkbox",Pt),mn=`${$t}-group`,[on,nn]=(0,ze.ZP)($t),en=(0,Et.Z)(St,["value","disabled"]),ye=Oe.length?at.map(ce=>pt.createElement(Ue,{prefixCls:$t,key:ce.value.toString(),disabled:"disabled"in ce?ce.disabled:St.disabled,value:ce.value,checked:be.includes(ce.value),onChange:ce.onChange,className:`${mn}-item`,style:ce.style,title:ce.title},ce.label)):ut,ue={toggleOption:Sn,value:be,disabled:St.disabled,name:St.name,registerValue:Nt,cancelValue:ot},se=Me()(mn,{[`${mn}-rtl`]:Qe==="rtl"},qe,zt,nn);return on(pt.createElement("div",Object.assign({className:se,style:Dt},en,{ref:ht}),pt.createElement(Ee.Provider,{value:ue},ye)))},nt=pt.forwardRef(dt);var Ve=pt.memo(nt);const Se=Ue;Se.Group=Ve,Se.__ANT_CHECKBOX=!0;var $e=Se},98447:function(An,Ut,oe){"use strict";oe.d(Ut,{C2:function(){return ge}});var me=oe(17313),Me=oe(37613),Pe=oe(83116);const pt=ke=>{const{checkboxCls:he}=ke,we=`${he}-wrapper`;return[{[`${he}-group`]:Object.assign(Object.assign({},(0,me.Wf)(ke)),{display:"inline-flex",flexWrap:"wrap",columnGap:ke.marginXS,[`> ${ke.antCls}-row`]:{flex:1}}),[we]:Object.assign(Object.assign({},(0,me.Wf)(ke)),{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}}}),[he]:Object.assign(Object.assign({},(0,me.Wf)(ke)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ke.borderRadiusSM,alignSelf:"center",[`${he}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${he}-inner`]:Object.assign({},(0,me.oN)(ke))},[`${he}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ke.checkboxSize,height:ke.checkboxSize,direction:"ltr",backgroundColor:ke.colorBgContainer,border:`${ke.lineWidth}px ${ke.lineType} ${ke.colorBorder}`,borderRadius:ke.borderRadiusSM,borderCollapse:"separate",transition:`all ${ke.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ke.checkboxSize/14*5,height:ke.checkboxSize/14*8,border:`${ke.lineWidthBold}px solid ${ke.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ke.motionDurationFast} ${ke.motionEaseInBack}, opacity ${ke.motionDurationFast}`}},"& + span":{paddingInlineStart:ke.paddingXS,paddingInlineEnd:ke.paddingXS}})},{[`
${we}:not(${we}-disabled),
${he}:not(${he}-disabled)
`]:{[`&:hover ${he}-inner`]:{borderColor:ke.colorPrimary}},[`${we}:not(${we}-disabled)`]:{[`&:hover ${he}-checked:not(${he}-disabled) ${he}-inner`]:{backgroundColor:ke.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${he}-checked:not(${he}-disabled):after`]:{borderColor:ke.colorPrimaryHover}}},{[`${he}-checked`]:{[`${he}-inner`]:{backgroundColor:ke.colorPrimary,borderColor:ke.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ke.motionDurationMid} ${ke.motionEaseOutBack} ${ke.motionDurationFast}`}}},[`
${we}-checked:not(${we}-disabled),
${he}-checked:not(${he}-disabled)
`]:{[`&:hover ${he}-inner`]:{backgroundColor:ke.colorPrimaryHover,borderColor:"transparent"}}},{[he]:{"&-indeterminate":{[`${he}-inner`]:{backgroundColor:ke.colorBgContainer,borderColor:ke.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ke.fontSizeLG/2,height:ke.fontSizeLG/2,backgroundColor:ke.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${we}-disabled`]:{cursor:"not-allowed"},[`${he}-disabled`]:{[`&, ${he}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${he}-inner`]:{background:ke.colorBgContainerDisabled,borderColor:ke.colorBorder,"&:after":{borderColor:ke.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ke.colorTextDisabled},[`&${he}-indeterminate ${he}-inner::after`]:{background:ke.colorTextDisabled}}}]};function ge(ke,he){const we=(0,Me.TS)(he,{checkboxCls:`.${ke}`,checkboxSize:he.controlInteractiveSize});return[pt(we)]}Ut.ZP=(0,Pe.Z)("Checkbox",(ke,he)=>{let{prefixCls:we}=he;return[ge(we,ke)]})},93891:function(An,Ut,oe){"use strict";var me=oe(59301),Me=oe(36355),Pe=oe(64165);const pt=ge=>{const{componentName:ke}=ge,{getPrefixCls:he}=(0,me.useContext)(Me.E_),we=he("empty");switch(ke){case"Table":case"List":return me.createElement(Pe.Z,{image:Pe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return me.createElement(Pe.Z,{image:Pe.Z.PRESENTED_IMAGE_SIMPLE,className:`${we}-small`});default:return me.createElement(Pe.Z,null)}};Ut.Z=pt},28103:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return Ie}});var me=oe(92310),Me=oe.n(me),Pe=oe(59301),pt=oe(36355),ge=oe(17313),ke=oe(83116),he=oe(37613);const we=He=>{const{componentCls:st,sizePaddingEdgeHorizontal:Je,colorSplit:Ue,lineWidth:gt,textPaddingInline:Et,orientationMargin:At,verticalMarginInline:dt}=He;return{[st]:Object.assign(Object.assign({},(0,ge.Wf)(He)),{borderBlockStart:`${gt}px solid ${Ue}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:dt,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${gt}px solid ${Ue}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${He.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${st}-with-text`]:{display:"flex",alignItems:"center",margin:`${He.dividerHorizontalWithTextGutterMargin}px 0`,color:He.colorTextHeading,fontWeight:500,fontSize:He.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Ue}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${gt}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${st}-with-text-left`]:{"&::before":{width:`${At*100}%`},"&::after":{width:`${100-At*100}%`}},[`&-horizontal${st}-with-text-right`]:{"&::before":{width:`${100-At*100}%`},"&::after":{width:`${At*100}%`}},[`${st}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Et},"&-dashed":{background:"none",borderColor:Ue,borderStyle:"dashed",borderWidth:`${gt}px 0 0`},[`&-horizontal${st}-with-text${st}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${st}-dashed`]:{borderInlineStartWidth:gt,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${st}-with-text`]:{color:He.colorText,fontWeight:"normal",fontSize:He.fontSize},[`&-horizontal${st}-with-text-left${st}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${st}-inner-text`]:{paddingInlineStart:Je}},[`&-horizontal${st}-with-text-right${st}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${st}-inner-text`]:{paddingInlineEnd:Je}}})}};var Ee=(0,ke.Z)("Divider",He=>{const st=(0,he.TS)(He,{dividerHorizontalWithTextGutterMargin:He.margin,dividerHorizontalGutterMargin:He.marginLG,sizePaddingEdgeHorizontal:0});return[we(st)]},He=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:He.marginXS})),ze=function(He,st){var Je={};for(var Ue in He)Object.prototype.hasOwnProperty.call(He,Ue)&&st.indexOf(Ue)<0&&(Je[Ue]=He[Ue]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,Ue=Object.getOwnPropertySymbols(He);gt<Ue.length;gt++)st.indexOf(Ue[gt])<0&&Object.prototype.propertyIsEnumerable.call(He,Ue[gt])&&(Je[Ue[gt]]=He[Ue[gt]]);return Je},Ie=He=>{const{getPrefixCls:st,direction:Je,divider:Ue}=Pe.useContext(pt.E_),{prefixCls:gt,type:Et="horizontal",orientation:At="center",orientationMargin:dt,className:nt,rootClassName:Ve,children:Se,dashed:$e,plain:Ye,style:ht}=He,Xe=ze(He,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),ut=st("divider",gt),[Oe,Pt]=Ee(ut),qe=At.length>0?`-${At}`:At,zt=!!Se,Dt=At==="left"&&dt!=null,Bt=At==="right"&&dt!=null,St=Me()(ut,Ue==null?void 0:Ue.className,Pt,`${ut}-${Et}`,{[`${ut}-with-text`]:zt,[`${ut}-with-text${qe}`]:zt,[`${ut}-dashed`]:!!$e,[`${ut}-plain`]:!!Ye,[`${ut}-rtl`]:Je==="rtl",[`${ut}-no-default-orientation-margin-left`]:Dt,[`${ut}-no-default-orientation-margin-right`]:Bt},nt,Ve),It=Pe.useMemo(()=>typeof dt=="number"?dt:/^\d+$/.test(dt)?Number(dt):dt,[dt]),Qe=Object.assign(Object.assign({},Dt&&{marginLeft:It}),Bt&&{marginRight:It});return Oe(Pe.createElement("div",Object.assign({className:St,style:Object.assign(Object.assign({},Ue==null?void 0:Ue.style),ht)},Xe,{role:"separator"}),Se&&Et!=="vertical"&&Pe.createElement("span",{className:`${ut}-inner-text`,style:Qe},Se)))}},43428:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return on}});var me=oe(92310),Me=oe.n(me),Pe=oe(85899),pt=oe(72190),ge=oe(43403),ke=oe(34280),he=oe(59301),we=he.createContext(null),Ee=he.createContext({}),ze=we,vt=oe(18642),Ie=oe(60499),He=oe(77900),st=oe(10228),Je=oe(26112),Ue=oe(70425),gt=function(en){var ye=en.prefixCls,ue=en.className,se=en.style,ce=en.children,de=en.containerRef,ae=en.id,Be=en.onMouseEnter,ft=en.onMouseOver,Fe=en.onMouseLeave,De=en.onClick,mt=en.onKeyDown,rt=en.onKeyUp,Ge={onMouseEnter:Be,onMouseOver:ft,onMouseLeave:Fe,onClick:De,onKeyDown:mt,onKeyUp:rt},xt=he.useContext(Ee),Xt=xt.panel,ct=(0,Ue.useComposeRef)(Xt,de);return he.createElement(he.Fragment,null,he.createElement("div",(0,Ie.Z)({id:ae,className:Me()("".concat(ye,"-content"),ue),style:(0,Pe.Z)({},se),"aria-modal":"true",role:"dialog",ref:ct},Ge),ce))},Et=gt,At=oe(48736);function dt(nn){return typeof nn=="string"&&String(Number(nn))===nn?((0,At.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(nn)):nn}function nt(nn){warning(!("wrapperClassName"in nn),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!nn.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ve={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Se(nn,en){var ye,ue,se,ce,de=nn.prefixCls,ae=nn.open,Be=nn.placement,ft=nn.inline,Fe=nn.push,De=nn.forceRender,mt=nn.autoFocus,rt=nn.keyboard,Ge=nn.rootClassName,xt=nn.rootStyle,Xt=nn.zIndex,ct=nn.className,Rt=nn.id,rn=nn.style,lt=nn.motion,Le=nn.width,it=nn.height,Ot=nn.children,Ft=nn.contentWrapperStyle,Qt=nn.mask,bn=nn.maskClosable,Bn=nn.maskMotion,Ln=nn.maskClassName,Gn=nn.maskStyle,Yn=nn.afterOpenChange,_n=nn.onClose,ir=nn.onMouseEnter,br=nn.onMouseOver,wr=nn.onMouseLeave,qn=nn.onClick,fr=nn.onKeyDown,kr=nn.onKeyUp,Qn=he.useRef(),Nr=he.useRef(),ei=he.useRef();he.useImperativeHandle(en,function(){return Qn.current});var Vt=function(Ht){var ln=Ht.keyCode,yn=Ht.shiftKey;switch(ln){case st.Z.TAB:{if(ln===st.Z.TAB){if(!yn&&document.activeElement===ei.current){var En;(En=Nr.current)===null||En===void 0||En.focus({preventScroll:!0})}else if(yn&&document.activeElement===Nr.current){var Mn;(Mn=ei.current)===null||Mn===void 0||Mn.focus({preventScroll:!0})}}break}case st.Z.ESC:{_n&&rt&&(Ht.stopPropagation(),_n(Ht));break}}};he.useEffect(function(){if(ae&&mt){var Jt;(Jt=Qn.current)===null||Jt===void 0||Jt.focus({preventScroll:!0})}},[ae]);var Rn=he.useState(!1),Nn=(0,pt.Z)(Rn,2),wn=Nn[0],In=Nn[1],xn=he.useContext(ze),kn;Fe===!1?kn={distance:0}:Fe===!0?kn={}:kn=Fe||{};var gn=(ye=(ue=(se=kn)===null||se===void 0?void 0:se.distance)!==null&&ue!==void 0?ue:xn==null?void 0:xn.pushDistance)!==null&&ye!==void 0?ye:180,bt=he.useMemo(function(){return{pushDistance:gn,push:function(){In(!0)},pull:function(){In(!1)}}},[gn]);he.useEffect(function(){if(ae){var Jt;xn==null||(Jt=xn.push)===null||Jt===void 0||Jt.call(xn)}else{var Ht;xn==null||(Ht=xn.pull)===null||Ht===void 0||Ht.call(xn)}},[ae]),he.useEffect(function(){return function(){var Jt;xn==null||(Jt=xn.pull)===null||Jt===void 0||Jt.call(xn)}},[]);var Ae=Qt&&he.createElement(He.default,(0,Ie.Z)({key:"mask"},Bn,{visible:ae}),function(Jt,Ht){var ln=Jt.className,yn=Jt.style;return he.createElement("div",{className:Me()("".concat(de,"-mask"),ln,Ln),style:(0,Pe.Z)((0,Pe.Z)({},yn),Gn),onClick:bn&&ae?_n:void 0,ref:Ht})}),je=typeof lt=="function"?lt(Be):lt,Ze={};if(wn&&gn)switch(Be){case"top":Ze.transform="translateY(".concat(gn,"px)");break;case"bottom":Ze.transform="translateY(".concat(-gn,"px)");break;case"left":Ze.transform="translateX(".concat(gn,"px)");break;default:Ze.transform="translateX(".concat(-gn,"px)");break}Be==="left"||Be==="right"?Ze.width=dt(Le):Ze.height=dt(it);var We={onMouseEnter:ir,onMouseOver:br,onMouseLeave:wr,onClick:qn,onKeyDown:fr,onKeyUp:kr},yt=he.createElement(He.default,(0,Ie.Z)({key:"panel"},je,{visible:ae,forceRender:De,onVisibleChanged:function(Ht){Yn==null||Yn(Ht)},removeOnLeave:!1,leavedClassName:"".concat(de,"-content-wrapper-hidden")}),function(Jt,Ht){var ln=Jt.className,yn=Jt.style;return he.createElement("div",(0,Ie.Z)({className:Me()("".concat(de,"-content-wrapper"),ln),style:(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},Ze),yn),Ft)},(0,Je.Z)(nn,{data:!0})),he.createElement(Et,(0,Ie.Z)({id:Rt,containerRef:Ht,prefixCls:de,className:ct,style:rn},We),Ot))}),Lt=(0,Pe.Z)({},xt);return Xt&&(Lt.zIndex=Xt),he.createElement(ze.Provider,{value:bt},he.createElement("div",{className:Me()(de,"".concat(de,"-").concat(Be),Ge,(ce={},(0,vt.Z)(ce,"".concat(de,"-open"),ae),(0,vt.Z)(ce,"".concat(de,"-inline"),ft),ce)),style:Lt,tabIndex:-1,ref:Qn,onKeyDown:Vt},Ae,he.createElement("div",{tabIndex:0,ref:Nr,style:Ve,"aria-hidden":"true","data-sentinel":"start"}),yt,he.createElement("div",{tabIndex:0,ref:ei,style:Ve,"aria-hidden":"true","data-sentinel":"end"})))}var $e=he.forwardRef(Se),Ye=$e,ht=function(en){var ye=en.open,ue=ye===void 0?!1:ye,se=en.prefixCls,ce=se===void 0?"rc-drawer":se,de=en.placement,ae=de===void 0?"right":de,Be=en.autoFocus,ft=Be===void 0?!0:Be,Fe=en.keyboard,De=Fe===void 0?!0:Fe,mt=en.width,rt=mt===void 0?378:mt,Ge=en.mask,xt=Ge===void 0?!0:Ge,Xt=en.maskClosable,ct=Xt===void 0?!0:Xt,Rt=en.getContainer,rn=en.forceRender,lt=en.afterOpenChange,Le=en.destroyOnClose,it=en.onMouseEnter,Ot=en.onMouseOver,Ft=en.onMouseLeave,Qt=en.onClick,bn=en.onKeyDown,Bn=en.onKeyUp,Ln=en.panelRef,Gn=he.useState(!1),Yn=(0,pt.Z)(Gn,2),_n=Yn[0],ir=Yn[1],br=he.useState(!1),wr=(0,pt.Z)(br,2),qn=wr[0],fr=wr[1];(0,ke.Z)(function(){fr(!0)},[]);var kr=qn?ue:!1,Qn=he.useRef(),Nr=he.useRef();(0,ke.Z)(function(){kr&&(Nr.current=document.activeElement)},[kr]);var ei=function(In){var xn;if(ir(In),lt==null||lt(In),!In&&Nr.current&&!((xn=Qn.current)!==null&&xn!==void 0&&xn.contains(Nr.current))){var kn;(kn=Nr.current)===null||kn===void 0||kn.focus({preventScroll:!0})}},Vt=he.useMemo(function(){return{panel:Ln}},[Ln]);if(!rn&&!_n&&!kr&&Le)return null;var Rn={onMouseEnter:it,onMouseOver:Ot,onMouseLeave:Ft,onClick:Qt,onKeyDown:bn,onKeyUp:Bn},Nn=(0,Pe.Z)((0,Pe.Z)({},en),{},{open:kr,prefixCls:ce,placement:ae,autoFocus:ft,keyboard:De,width:rt,mask:xt,maskClosable:ct,inline:Rt===!1,afterOpenChange:ei,ref:Qn},Rn);return he.createElement(Ee.Provider,{value:Vt},he.createElement(ge.Z,{open:kr||rn||_n,autoDestroy:!1,getContainer:Rt,autoLock:xt&&(kr||_n)},he.createElement(Ye,Nn)))},Xe=ht,ut=Xe,Oe=oe(62892),Pt=oe(36355),qe=oe(32441),zt=oe(47729),Bt=nn=>{const{prefixCls:en,title:ye,footer:ue,extra:se,closeIcon:ce,closable:de,onClose:ae,headerStyle:Be,drawerStyle:ft,bodyStyle:Fe,footerStyle:De,children:mt}=nn,rt=he.useCallback(Rt=>he.createElement("button",{type:"button",onClick:ae,"aria-label":"Close",className:`${en}-close`},Rt),[ae]),[Ge,xt]=(0,zt.Z)(de,ce,rt,void 0,!0),Xt=he.useMemo(()=>!ye&&!Ge?null:he.createElement("div",{style:Be,className:Me()(`${en}-header`,{[`${en}-header-close-only`]:Ge&&!ye&&!se})},he.createElement("div",{className:`${en}-header-title`},xt,ye&&he.createElement("div",{className:`${en}-title`},ye)),se&&he.createElement("div",{className:`${en}-extra`},se)),[Ge,xt,se,Be,en,ye]),ct=he.useMemo(()=>{if(!ue)return null;const Rt=`${en}-footer`;return he.createElement("div",{className:Rt,style:De},ue)},[ue,De,en]);return he.createElement("div",{className:`${en}-wrapper-body`,style:ft},Xt,he.createElement("div",{className:`${en}-body`,style:Fe},mt),ct)},St=oe(33234),It=oe(83116),Qe=oe(37613),Ct=nn=>{const{componentCls:en,motionDurationSlow:ye}=nn,ue={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ye}`}}};return{[en]:{[`${en}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${ye}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${en}-panel-motion`]:{"&-left":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Yt=nn=>{const{componentCls:en,zIndexPopup:ye,colorBgMask:ue,colorBgElevated:se,motionDurationSlow:ce,motionDurationMid:de,padding:ae,paddingLG:Be,fontSizeLG:ft,lineHeightLG:Fe,lineWidth:De,lineType:mt,colorSplit:rt,marginSM:Ge,colorIcon:xt,colorIconHover:Xt,colorText:ct,fontWeightStrong:Rt,footerPaddingBlock:rn,footerPaddingInline:lt}=nn,Le=`${en}-content-wrapper`;return{[en]:{position:"fixed",inset:0,zIndex:ye,pointerEvents:"none","&-pure":{position:"relative",background:se,[`&${en}-left`]:{boxShadow:nn.boxShadowDrawerLeft},[`&${en}-right`]:{boxShadow:nn.boxShadowDrawerRight},[`&${en}-top`]:{boxShadow:nn.boxShadowDrawerUp},[`&${en}-bottom`]:{boxShadow:nn.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${en}-mask`]:{position:"absolute",inset:0,zIndex:ye,background:ue,pointerEvents:"auto"},[Le]:{position:"absolute",zIndex:ye,maxWidth:"100vw",transition:`all ${ce}`,"&-hidden":{display:"none"}},[`&-left > ${Le}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:nn.boxShadowDrawerLeft},[`&-right > ${Le}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:nn.boxShadowDrawerRight},[`&-top > ${Le}`]:{top:0,insetInline:0,boxShadow:nn.boxShadowDrawerUp},[`&-bottom > ${Le}`]:{bottom:0,insetInline:0,boxShadow:nn.boxShadowDrawerDown},[`${en}-content`]:{width:"100%",height:"100%",overflow:"auto",background:se,pointerEvents:"auto"},[`${en}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${en}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${ae}px ${Be}px`,fontSize:ft,lineHeight:Fe,borderBottom:`${De}px ${mt} ${rt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${en}-extra`]:{flex:"none"},[`${en}-close`]:{display:"inline-block",marginInlineEnd:Ge,color:xt,fontWeight:Rt,fontSize:ft,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${de}`,textRendering:"auto","&:focus, &:hover":{color:Xt,textDecoration:"none"}},[`${en}-title`]:{flex:1,margin:0,color:ct,fontWeight:nn.fontWeightStrong,fontSize:ft,lineHeight:Fe},[`${en}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Be,overflow:"auto"},[`${en}-footer`]:{flexShrink:0,padding:`${rn}px ${lt}px`,borderTop:`${De}px ${mt} ${rt}`},"&-rtl":{direction:"rtl"}}}};var Zt=(0,It.Z)("Drawer",nn=>{const en=(0,Qe.TS)(nn,{});return[Yt(en),Ct(en)]},nn=>({zIndexPopup:nn.zIndexPopupBase,footerPaddingBlock:nn.paddingXS,footerPaddingInline:nn.padding})),at=oe(11575),ot=function(nn,en){var ye={};for(var ue in nn)Object.prototype.hasOwnProperty.call(nn,ue)&&en.indexOf(ue)<0&&(ye[ue]=nn[ue]);if(nn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ue=Object.getOwnPropertySymbols(nn);se<ue.length;se++)en.indexOf(ue[se])<0&&Object.prototype.propertyIsEnumerable.call(nn,ue[se])&&(ye[ue[se]]=nn[ue[se]]);return ye};const Nt=null,Sn={distance:180},$t=nn=>{var en;const{rootClassName:ye,width:ue,height:se,size:ce="default",mask:de=!0,push:ae=Sn,open:Be,afterOpenChange:ft,onClose:Fe,prefixCls:De,getContainer:mt,style:rt,className:Ge,visible:xt,afterVisibleChange:Xt}=nn,ct=ot(nn,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Rt,getPrefixCls:rn,direction:lt,drawer:Le}=he.useContext(Pt.E_),it=rn("drawer",De),[Ot,Ft]=Zt(it),Qt=mt===void 0&&Rt?()=>Rt(document.body):mt,bn=Me()({"no-mask":!de,[`${it}-rtl`]:lt==="rtl"},ye,Ft),Bn=he.useMemo(()=>ue!=null?ue:ce==="large"?736:378,[ue,ce]),Ln=he.useMemo(()=>se!=null?se:ce==="large"?736:378,[se,ce]),Gn={motionName:(0,Oe.m)(it,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Yn=ir=>({motionName:(0,Oe.m)(it,`panel-motion-${ir}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),_n=(0,at.H)();return Ot(he.createElement(St.BR,null,he.createElement(qe.Ux,{status:!0,override:!0},he.createElement(ut,Object.assign({prefixCls:it,onClose:Fe,maskMotion:Gn,motion:Yn},ct,{open:Be!=null?Be:xt,mask:de,push:ae,width:Bn,height:Ln,style:Object.assign(Object.assign({},Le==null?void 0:Le.style),rt),className:Me()(Le==null?void 0:Le.className,Ge),rootClassName:bn,getContainer:Qt,afterOpenChange:ft!=null?ft:Xt,panelRef:_n}),he.createElement(Bt,Object.assign({prefixCls:it},ct,{onClose:Fe}))))))},mn=nn=>{const{prefixCls:en,style:ye,className:ue,placement:se="right"}=nn,ce=ot(nn,["prefixCls","style","className","placement"]),{getPrefixCls:de}=he.useContext(Pt.E_),ae=de("drawer",en),[Be,ft]=Zt(ae),Fe=Me()(ae,`${ae}-pure`,`${ae}-${se}`,ft,ue);return Be(he.createElement("div",{className:Fe,style:ye},he.createElement(Bt,Object.assign({prefixCls:ae},ce))))};$t._InternalPanelDoNotUseOrYouWillBeFired=mn;var on=$t},91857:function(An,Ut,oe){"use strict";var me=oe(59301),Me=oe(38819),Pe=oe(92310),pt=oe.n(Pe),ge=oe(31561),ke=oe(70425),he=oe(18929),we=oe(2738),Ee=oe(79676),ze=oe(53487),vt=oe(92343),Ie=oe(36355),He=oe(20834),st=oe(40875),Je=oe(88088),Ue=oe(47211);const gt=null,Et=Ve=>{const{menu:Se,arrow:$e,prefixCls:Ye,children:ht,trigger:Xe,disabled:ut,dropdownRender:Oe,getPopupContainer:Pt,overlayClassName:qe,rootClassName:zt,open:Dt,onOpenChange:Bt,visible:St,onVisibleChange:It,mouseEnterDelay:Qe=.15,mouseLeaveDelay:be=.1,autoAdjustOverflow:Ct=!0,placement:Yt="",overlay:Zt,transitionName:at}=Ve,{getPopupContainer:ot,getPrefixCls:Nt,direction:Sn}=me.useContext(Ie.E_),$t=me.useMemo(()=>{const Ge=Nt();return at!==void 0?at:Yt.includes("top")?`${Ge}-slide-down`:`${Ge}-slide-up`},[Nt,Yt,at]),mn=me.useMemo(()=>Yt?Yt.includes("Center")?Yt.slice(0,Yt.indexOf("Center")):Yt:Sn==="rtl"?"bottomRight":"bottomLeft",[Yt,Sn]),on=Nt("dropdown",Ye),[nn,en]=(0,Ue.Z)(on),[,ye]=(0,Je.Z)(),ue=me.Children.only(ht),se=(0,vt.Tm)(ue,{className:pt()(`${on}-trigger`,{[`${on}-rtl`]:Sn==="rtl"},ue.props.className),disabled:ut}),ce=ut?[]:Xe;let de;ce&&ce.includes("contextMenu")&&(de=!0);const[ae,Be]=(0,he.Z)(!1,{value:Dt!=null?Dt:St}),ft=(0,ke.useEvent)(Ge=>{Bt==null||Bt(Ge),It==null||It(Ge),Be(Ge)}),Fe=pt()(qe,zt,en,{[`${on}-rtl`]:Sn==="rtl"}),De=(0,Ee.Z)({arrowPointAtCenter:typeof $e=="object"&&$e.pointAtCenter,autoAdjustOverflow:Ct,offset:ye.marginXXS,arrowWidth:$e?ye.sizePopupArrow:0,borderRadius:ye.borderRadius}),mt=me.useCallback(()=>{Be(!1)},[]),rt=()=>{let Ge;return Se!=null&&Se.items?Ge=me.createElement(He.default,Object.assign({},Se)):typeof Zt=="function"?Ge=Zt():Ge=Zt,Oe&&(Ge=Oe(Ge)),Ge=me.Children.only(typeof Ge=="string"?me.createElement("span",null,Ge):Ge),me.createElement(st.J,{prefixCls:`${on}-menu`,expandIcon:me.createElement("span",{className:`${on}-menu-submenu-arrow`},me.createElement(Me.Z,{className:`${on}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:mt,validator:xt=>{let{mode:Xt}=xt}},Ge)};return nn(me.createElement(ge.Z,Object.assign({alignPoint:de},(0,we.Z)(Ve,["rootClassName"]),{mouseEnterDelay:Qe,mouseLeaveDelay:be,visible:ae,builtinPlacements:De,arrow:!!$e,overlayClassName:Fe,prefixCls:on,getPopupContainer:Pt||ot,transitionName:$t,trigger:ce,overlay:rt,placement:mn,onVisibleChange:ft}),se))};function At(Ve){return Object.assign(Object.assign({},Ve),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const dt=(0,ze.Z)(Et,"dropdown",Ve=>Ve,At),nt=Ve=>me.createElement(dt,Object.assign({},Ve),me.createElement("span",null));Et._InternalPanelDoNotUseOrYouWillBeFired=nt,Ut.Z=Et},38854:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return Je}});var me=oe(91857),Me=oe(92310),Pe=oe.n(Me),pt=oe(59301),ge=oe(18785),ke=oe(3113),he=oe(36355),we=oe(81327),Ee=oe(33234),ze=oe(47211),vt=function(Ue,gt){var Et={};for(var At in Ue)Object.prototype.hasOwnProperty.call(Ue,At)&&gt.indexOf(At)<0&&(Et[At]=Ue[At]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,At=Object.getOwnPropertySymbols(Ue);dt<At.length;dt++)gt.indexOf(At[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ue,At[dt])&&(Et[At[dt]]=Ue[At[dt]]);return Et};const Ie=Ue=>{const{getPopupContainer:gt,getPrefixCls:Et,direction:At}=pt.useContext(he.E_),{prefixCls:dt,type:nt="default",danger:Ve,disabled:Se,loading:$e,onClick:Ye,htmlType:ht,children:Xe,className:ut,menu:Oe,arrow:Pt,autoFocus:qe,overlay:zt,trigger:Dt,align:Bt,open:St,onOpenChange:It,placement:Qe,getPopupContainer:be,href:Ct,icon:Yt=pt.createElement(ge.Z,null),title:Zt,buttonsRender:at=rt=>rt,mouseEnterDelay:ot,mouseLeaveDelay:Nt,overlayClassName:Sn,overlayStyle:$t,destroyPopupOnHide:mn,dropdownRender:on}=Ue,nn=vt(Ue,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),en=Et("dropdown",dt),ye=`${en}-button`,[ue,se]=(0,ze.Z)(en),ce={menu:Oe,arrow:Pt,autoFocus:qe,align:Bt,disabled:Se,trigger:Se?[]:Dt,onOpenChange:It,getPopupContainer:be||gt,mouseEnterDelay:ot,mouseLeaveDelay:Nt,overlayClassName:Sn,overlayStyle:$t,destroyPopupOnHide:mn,dropdownRender:on},{compactSize:de,compactItemClassnames:ae}=(0,Ee.ri)(en,At),Be=Pe()(ye,ae,ut,se);"overlay"in Ue&&(ce.overlay=zt),"open"in Ue&&(ce.open=St),"placement"in Ue?ce.placement=Qe:ce.placement=At==="rtl"?"bottomLeft":"bottomRight";const ft=pt.createElement(ke.ZP,{type:nt,danger:Ve,disabled:Se,loading:$e,onClick:Ye,htmlType:ht,href:Ct,title:Zt},Xe),Fe=pt.createElement(ke.ZP,{type:nt,danger:Ve,icon:Yt}),[De,mt]=at([ft,Fe]);return ue(pt.createElement(we.Z.Compact,Object.assign({className:Be,size:de,block:!0},nn),De,pt.createElement(me.Z,Object.assign({},ce),mt)))};Ie.__ANT_BUTTON=!0;var He=Ie;const st=me.Z;st.Button=He;var Je=st},47211:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return vt}});var me=oe(17313),Me=oe(13826),Pe=oe(92899),pt=oe(29878),ge=oe(19447),ke=oe(83116),he=oe(37613),Ee=Ie=>{const{componentCls:He,menuCls:st,colorError:Je,colorTextLightSolid:Ue}=Ie,gt=`${st}-item`;return{[`${He}, ${He}-menu-submenu`]:{[`${st} ${gt}`]:{[`&${gt}-danger:not(${gt}-disabled)`]:{color:Je,"&:hover":{color:Ue,backgroundColor:Je}}}}}};const ze=Ie=>{const{componentCls:He,menuCls:st,zIndexPopup:Je,dropdownArrowDistance:Ue,sizePopupArrow:gt,antCls:Et,iconCls:At,motionDurationMid:dt,dropdownPaddingVertical:nt,fontSize:Ve,dropdownEdgeChildPadding:Se,colorTextDisabled:$e,fontSizeIcon:Ye,controlPaddingHorizontal:ht,colorBgElevated:Xe}=Ie;return[{[He]:Object.assign(Object.assign({},(0,me.Wf)(Ie)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Je,display:"block","&::before":{position:"absolute",insetBlock:-Ue+gt/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Et}-btn`]:{[`& > ${At}-down, & > ${Et}-btn-icon > ${At}-down`]:{fontSize:Ye}},[`${He}-wrap`]:{position:"relative",[`${Et}-btn > ${At}-down`]:{fontSize:Ye},[`${At}-down::before`]:{transition:`transform ${dt}`}},[`${He}-wrap-open`]:{[`${At}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Et}-slide-down-enter${Et}-slide-down-enter-active${He}-placement-bottomLeft,
&${Et}-slide-down-appear${Et}-slide-down-appear-active${He}-placement-bottomLeft,
&${Et}-slide-down-enter${Et}-slide-down-enter-active${He}-placement-bottom,
&${Et}-slide-down-appear${Et}-slide-down-appear-active${He}-placement-bottom,
&${Et}-slide-down-enter${Et}-slide-down-enter-active${He}-placement-bottomRight,
&${Et}-slide-down-appear${Et}-slide-down-appear-active${He}-placement-bottomRight`]:{animationName:Me.fJ},[`&${Et}-slide-up-enter${Et}-slide-up-enter-active${He}-placement-topLeft,
&${Et}-slide-up-appear${Et}-slide-up-appear-active${He}-placement-topLeft,
&${Et}-slide-up-enter${Et}-slide-up-enter-active${He}-placement-top,
&${Et}-slide-up-appear${Et}-slide-up-appear-active${He}-placement-top,
&${Et}-slide-up-enter${Et}-slide-up-enter-active${He}-placement-topRight,
&${Et}-slide-up-appear${Et}-slide-up-appear-active${He}-placement-topRight`]:{animationName:Me.Qt},[`&${Et}-slide-down-leave${Et}-slide-down-leave-active${He}-placement-bottomLeft,
&${Et}-slide-down-leave${Et}-slide-down-leave-active${He}-placement-bottom,
&${Et}-slide-down-leave${Et}-slide-down-leave-active${He}-placement-bottomRight`]:{animationName:Me.Uw},[`&${Et}-slide-up-leave${Et}-slide-up-leave-active${He}-placement-topLeft,
&${Et}-slide-up-leave${Et}-slide-up-leave-active${He}-placement-top,
&${Et}-slide-up-leave${Et}-slide-up-leave-active${He}-placement-topRight`]:{animationName:Me.ly}})},(0,ge.ZP)(Ie,{colorBg:Xe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${He} ${st}`]:{position:"relative",margin:0},[`${st}-submenu-popup`]:{position:"absolute",zIndex:Je,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${He}, ${He}-menu-submenu`]:{[st]:Object.assign(Object.assign({padding:Se,listStyleType:"none",backgroundColor:Xe,backgroundClip:"padding-box",borderRadius:Ie.borderRadiusLG,outline:"none",boxShadow:Ie.boxShadowSecondary},(0,me.Qy)(Ie)),{[`${st}-item-group-title`]:{padding:`${nt}px ${ht}px`,color:Ie.colorTextDescription,transition:`all ${dt}`},[`${st}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${st}-item-icon`]:{minWidth:Ve,marginInlineEnd:Ie.marginXS,fontSize:Ie.fontSizeSM},[`${st}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${dt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${st}-item, ${st}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${nt}px ${ht}px`,color:Ie.colorText,fontWeight:"normal",fontSize:Ve,lineHeight:Ie.lineHeight,cursor:"pointer",transition:`all ${dt}`,borderRadius:Ie.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ie.controlItemBgHover}},(0,me.Qy)(Ie)),{"&-selected":{color:Ie.colorPrimary,backgroundColor:Ie.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ie.controlItemBgActiveHover}},"&-disabled":{color:$e,cursor:"not-allowed","&:hover":{color:$e,backgroundColor:Xe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ie.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ie.colorSplit},[`${He}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ie.paddingXS,[`${He}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ie.colorTextDescription,fontSize:Ye,fontStyle:"normal"}}}),[`${st}-item-group-list`]:{margin:`0 ${Ie.marginXS}px`,padding:0,listStyle:"none"},[`${st}-submenu-title`]:{paddingInlineEnd:ht+Ie.fontSizeSM},[`${st}-submenu-vertical`]:{position:"relative"},[`${st}-submenu${st}-submenu-disabled ${He}-menu-submenu-title`]:{[`&, ${He}-menu-submenu-arrow-icon`]:{color:$e,backgroundColor:Xe,cursor:"not-allowed"}},[`${st}-submenu-selected ${He}-menu-submenu-title`]:{color:Ie.colorPrimary}})}},[(0,Me.oN)(Ie,"slide-up"),(0,Me.oN)(Ie,"slide-down"),(0,Pe.Fm)(Ie,"move-up"),(0,Pe.Fm)(Ie,"move-down"),(0,pt._y)(Ie,"zoom-big")]]};var vt=(0,ke.Z)("Dropdown",(Ie,He)=>{let{rootPrefixCls:st}=He;const{marginXXS:Je,sizePopupArrow:Ue,controlHeight:gt,fontSize:Et,lineHeight:At,paddingXXS:dt,componentCls:nt,borderRadiusLG:Ve}=Ie,Se=(gt-Et*At)/2,{dropdownArrowOffset:$e}=(0,ge.fS)({contentRadius:Ve}),Ye=(0,he.TS)(Ie,{menuCls:`${nt}-menu`,rootPrefixCls:st,dropdownArrowDistance:Ue/2+Je,dropdownArrowOffset:$e,dropdownPaddingVertical:Se,dropdownEdgeChildPadding:dt});return[ze(Ye),Ee(Ye)]},Ie=>({zIndexPopup:Ie.zIndexPopupBase+50}))},64165:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return dt}});var me=oe(92310),Me=oe.n(me),Pe=oe(59301),pt=oe(36355),ge=oe(9763),ke=oe(64993),he=oe(88088),Ee=()=>{const[,nt]=(0,he.Z)(),Se=new ke.C(nt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Pe.createElement("svg",{style:Se,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Pe.createElement("g",{fill:"none",fillRule:"evenodd"},Pe.createElement("g",{transform:"translate(24 31.67)"},Pe.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Pe.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"}),Pe.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)"}),Pe.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"}),Pe.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"})),Pe.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"}),Pe.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Pe.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Pe.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},vt=()=>{const[,nt]=(0,he.Z)(),{colorFill:Ve,colorFillTertiary:Se,colorFillQuaternary:$e,colorBgContainer:Ye}=nt,{borderColor:ht,shadowColor:Xe,contentColor:ut}=(0,Pe.useMemo)(()=>({borderColor:new ke.C(Ve).onBackground(Ye).toHexShortString(),shadowColor:new ke.C(Se).onBackground(Ye).toHexShortString(),contentColor:new ke.C($e).onBackground(Ye).toHexShortString()}),[Ve,Se,$e,Ye]);return Pe.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Pe.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Pe.createElement("ellipse",{fill:Xe,cx:"32",cy:"33",rx:"32",ry:"7"}),Pe.createElement("g",{fillRule:"nonzero",stroke:ht},Pe.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"}),Pe.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}))))},Ie=oe(83116),He=oe(37613);const st=nt=>{const{componentCls:Ve,margin:Se,marginXS:$e,marginXL:Ye,fontSize:ht,lineHeight:Xe}=nt;return{[Ve]:{marginInline:$e,fontSize:ht,lineHeight:Xe,textAlign:"center",[`${Ve}-image`]:{height:nt.emptyImgHeight,marginBottom:$e,opacity:nt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ve}-description`]:{color:nt.colorText},[`${Ve}-footer`]:{marginTop:Se},"&-normal":{marginBlock:Ye,color:nt.colorTextDisabled,[`${Ve}-description`]:{color:nt.colorTextDisabled},[`${Ve}-image`]:{height:nt.emptyImgHeightMD}},"&-small":{marginBlock:$e,color:nt.colorTextDisabled,[`${Ve}-image`]:{height:nt.emptyImgHeightSM}}}}};var Je=(0,Ie.Z)("Empty",nt=>{const{componentCls:Ve,controlHeightLG:Se}=nt,$e=(0,He.TS)(nt,{emptyImgCls:`${Ve}-img`,emptyImgHeight:Se*2.5,emptyImgHeightMD:Se,emptyImgHeightSM:Se*.875});return[st($e)]}),Ue=function(nt,Ve){var Se={};for(var $e in nt)Object.prototype.hasOwnProperty.call(nt,$e)&&Ve.indexOf($e)<0&&(Se[$e]=nt[$e]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,$e=Object.getOwnPropertySymbols(nt);Ye<$e.length;Ye++)Ve.indexOf($e[Ye])<0&&Object.prototype.propertyIsEnumerable.call(nt,$e[Ye])&&(Se[$e[Ye]]=nt[$e[Ye]]);return Se};const gt=Pe.createElement(Ee,null),Et=Pe.createElement(vt,null),At=nt=>{var{className:Ve,rootClassName:Se,prefixCls:$e,image:Ye=gt,description:ht,children:Xe,imageStyle:ut,style:Oe}=nt,Pt=Ue(nt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:qe,direction:zt,empty:Dt}=Pe.useContext(pt.E_),Bt=qe("empty",$e),[St,It]=Je(Bt),[Qe]=(0,ge.Z)("Empty"),be=typeof ht!="undefined"?ht:Qe==null?void 0:Qe.description,Ct=typeof be=="string"?be:"empty";let Yt=null;return typeof Ye=="string"?Yt=Pe.createElement("img",{alt:Ct,src:Ye}):Yt=Ye,St(Pe.createElement("div",Object.assign({className:Me()(It,Bt,Dt==null?void 0:Dt.className,{[`${Bt}-normal`]:Ye===Et,[`${Bt}-rtl`]:zt==="rtl"},Ve,Se),style:Object.assign(Object.assign({},Dt==null?void 0:Dt.style),Oe)},Pt),Pe.createElement("div",{className:`${Bt}-image`,style:ut},Yt),be&&Pe.createElement("div",{className:`${Bt}-description`},be),Xe&&Pe.createElement("div",{className:`${Bt}-footer`},Xe)))};At.PRESENTED_IMAGE_DEFAULT=gt,At.PRESENTED_IMAGE_SIMPLE=Et;var dt=At},78241:function(An,Ut,oe){"use strict";oe.d(Ut,{default:function(){return gn}});var me=oe(77654),Me=oe(92310),Pe=oe.n(Me),pt=oe(77900),ge=oe(59301),ke=oe(62892),he=oe(32441);function we(bt){const[Ae,je]=ge.useState(bt);return ge.useEffect(()=>{const Ze=setTimeout(()=>{je(bt)},bt.length?0:10);return()=>{clearTimeout(Ze)}},[bt]),Ae}var Ee=oe(17313),ze=oe(29878),vt=oe(8378),Ie=oe(37613),He=oe(83116),Je=bt=>{const{componentCls:Ae}=bt,je=`${Ae}-show-help`,Ze=`${Ae}-show-help-item`;return{[je]:{transition:`opacity ${bt.motionDurationSlow} ${bt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ze]:{overflow:"hidden",transition:`height ${bt.motionDurationSlow} ${bt.motionEaseInOut},
opacity ${bt.motionDurationSlow} ${bt.motionEaseInOut},
transform ${bt.motionDurationSlow} ${bt.motionEaseInOut} !important`,[`&${Ze}-appear, &${Ze}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Ze}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Ue=bt=>({legend:{display:"block",width:"100%",marginBottom:bt.marginLG,padding:0,color:bt.colorTextDescription,fontSize:bt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${bt.lineWidth}px ${bt.lineType} ${bt.colorBorder}`},label:{fontSize:bt.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 ${bt.controlOutlineWidth}px ${bt.controlOutline}`},output:{display:"block",paddingTop:15,color:bt.colorText,fontSize:bt.fontSize,lineHeight:bt.lineHeight}}),gt=(bt,Ae)=>{const{formItemCls:je}=bt;return{[je]:{[`${je}-label > label`]:{height:Ae},[`${je}-control-input`]:{minHeight:Ae}}}},Et=bt=>{const{componentCls:Ae}=bt;return{[bt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ee.Wf)(bt)),Ue(bt)),{[`${Ae}-text`]:{display:"inline-block",paddingInlineEnd:bt.paddingSM},"&-small":Object.assign({},gt(bt,bt.controlHeightSM)),"&-large":Object.assign({},gt(bt,bt.controlHeightLG))})}},At=bt=>{const{formItemCls:Ae,iconCls:je,componentCls:Ze,rootPrefixCls:We,labelRequiredMarkColor:yt,labelColor:Lt,labelFontSize:Jt,labelHeight:Ht,labelColonMarginInlineStart:ln,labelColonMarginInlineEnd:yn,itemMarginBottom:En}=bt;return{[Ae]:Object.assign(Object.assign({},(0,Ee.Wf)(bt)),{marginBottom:En,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${We}-row`]:{display:"none"},"&-has-warning":{[`${Ae}-split`]:{color:bt.colorError}},"&-has-error":{[`${Ae}-split`]:{color:bt.colorWarning}},[`${Ae}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${bt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Ht,color:Lt,fontSize:Jt,[`> ${je}`]:{fontSize:bt.fontSize,verticalAlign:"top"},[`&${Ae}-required:not(${Ae}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:bt.marginXXS,color:yt,fontSize:bt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ze}-hide-required-mark &`]:{display:"none"}},[`${Ae}-optional`]:{display:"inline-block",marginInlineStart:bt.marginXXS,color:bt.colorTextDescription,[`${Ze}-hide-required-mark &`]:{display:"none"}},[`${Ae}-tooltip`]:{color:bt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:bt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ln,marginInlineEnd:yn},[`&${Ae}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ae}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${We}-col-'"]):not([class*="' ${We}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:bt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ae]:{"&-explain, &-extra":{clear:"both",color:bt.colorTextDescription,fontSize:bt.fontSize,lineHeight:bt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:bt.controlHeightSM,transition:`color ${bt.motionDurationMid} ${bt.motionEaseOut}`},"&-explain":{"&-error":{color:bt.colorError},"&-warning":{color:bt.colorWarning}}},[`&-with-help ${Ae}-explain`]:{height:"auto",opacity:1},[`${Ae}-feedback-icon`]:{fontSize:bt.fontSize,textAlign:"center",visibility:"visible",animationName:ze.kr,animationDuration:bt.motionDurationMid,animationTimingFunction:bt.motionEaseOutBack,pointerEvents:"none","&-success":{color:bt.colorSuccess},"&-error":{color:bt.colorError},"&-warning":{color:bt.colorWarning},"&-validating":{color:bt.colorPrimary}}})}},dt=bt=>{const{componentCls:Ae,formItemCls:je}=bt;return{[`${Ae}-horizontal`]:{[`${je}-label`]:{flexGrow:0},[`${je}-control`]:{flex:"1 1 0",minWidth:0},[`${je}-label[class$='-24'], ${je}-label[class*='-24 ']`]:{[`& + ${je}-control`]:{minWidth:"unset"}}}}},nt=bt=>{const{componentCls:Ae,formItemCls:je}=bt;return{[`${Ae}-inline`]:{display:"flex",flexWrap:"wrap",[je]:{flex:"none",marginInlineEnd:bt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${je}-label,
> ${je}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${je}-label`]:{flex:"none"},[`${Ae}-text`]:{display:"inline-block"},[`${je}-has-feedback`]:{display:"inline-block"}}}}},Ve=bt=>({padding:bt.verticalLabelPadding,margin:bt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Se=bt=>{const{componentCls:Ae,formItemCls:je,rootPrefixCls:Ze}=bt;return{[`${je} ${je}-label`]:Ve(bt),[Ae]:{[je]:{flexWrap:"wrap",[`${je}-label, ${je}-control`]:{[`&:not([class*=" ${Ze}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},$e=bt=>{const{componentCls:Ae,formItemCls:je,rootPrefixCls:Ze}=bt;return{[`${Ae}-vertical`]:{[je]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Ae}-item-control`]:{width:"100%"}}},[`${Ae}-vertical ${je}-label,
.${Ze}-col-24${je}-label,
.${Ze}-col-xl-24${je}-label`]:Ve(bt),[`@media (max-width: ${bt.screenXSMax}px)`]:[Se(bt),{[Ae]:{[`.${Ze}-col-xs-24${je}-label`]:Ve(bt)}}],[`@media (max-width: ${bt.screenSMMax}px)`]:{[Ae]:{[`.${Ze}-col-sm-24${je}-label`]:Ve(bt)}},[`@media (max-width: ${bt.screenMDMax}px)`]:{[Ae]:{[`.${Ze}-col-md-24${je}-label`]:Ve(bt)}},[`@media (max-width: ${bt.screenLGMax}px)`]:{[Ae]:{[`.${Ze}-col-lg-24${je}-label`]:Ve(bt)}}}},Ye=(bt,Ae)=>(0,Ie.TS)(bt,{formItemCls:`${bt.componentCls}-item`,rootPrefixCls:Ae});var ht=(0,He.Z)("Form",(bt,Ae)=>{let{rootPrefixCls:je}=Ae;const Ze=Ye(bt,je);return[Et(Ze),At(Ze),Je(Ze),dt(Ze),nt(Ze),$e(Ze),(0,vt.Z)(Ze),ze.kr]},bt=>({labelRequiredMarkColor:bt.colorError,labelColor:bt.colorTextHeading,labelFontSize:bt.fontSize,labelHeight:bt.controlHeight,labelColonMarginInlineStart:bt.marginXXS/2,labelColonMarginInlineEnd:bt.marginXS,itemMarginBottom:bt.marginLG,verticalLabelPadding:`0 0 ${bt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Xe=[];function ut(bt,Ae,je){let Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof bt=="string"?bt:`${Ae}-${Ze}`,error:bt,errorStatus:je}}var Pt=bt=>{let{help:Ae,helpStatus:je,errors:Ze=Xe,warnings:We=Xe,className:yt,fieldId:Lt,onVisibleChanged:Jt}=bt;const{prefixCls:Ht}=ge.useContext(he.Rk),ln=`${Ht}-item-explain`,[,yn]=ht(Ht),En=(0,ge.useMemo)(()=>(0,ke.Z)(Ht),[Ht]),Mn=we(Ze),Kt=we(We),hn=ge.useMemo(()=>Ae!=null?[ut(Ae,"help",je)]:[].concat((0,me.Z)(Mn.map((Zn,Kn)=>ut(Zn,"error","error",Kn))),(0,me.Z)(Kt.map((Zn,Kn)=>ut(Zn,"warning","warning",Kn)))),[Ae,je,Mn,Kt]),Hn={};return Lt&&(Hn.id=`${Lt}_help`),ge.createElement(pt.default,{motionDeadline:En.motionDeadline,motionName:`${Ht}-show-help`,visible:!!hn.length,onVisibleChanged:Jt},Zn=>{const{className:Kn,style:jn}=Zn;return ge.createElement("div",Object.assign({},Hn,{className:Pe()(ln,Kn,yt,yn),style:jn,role:"alert"}),ge.createElement(pt.CSSMotionList,Object.assign({keys:hn},(0,ke.Z)(Ht),{motionName:`${Ht}-show-help-item`,component:!1}),nr=>{const{key:On,error:cr,errorStatus:Mt,className:an,style:cn}=nr;return ge.createElement("div",{key:On,className:Pe()(an,{[`${ln}-${Mt}`]:Mt}),style:cn},cr)}))})},qe=oe(95013),zt=oe(36355),Dt=oe(1684),Bt=oe(52946),St=oe(19716),It=oe(16722);const Qe=["parentNode"],be="form_item";function Ct(bt){return bt===void 0||bt===!1?[]:Array.isArray(bt)?bt:[bt]}function Yt(bt,Ae){if(!bt.length)return;const je=bt.join("_");return Ae?`${Ae}_${je}`:Qe.includes(je)?`${be}_${je}`:je}function Zt(bt,Ae,je,Ze,We,yt){let Lt=Ze;return yt!==void 0?Lt=yt:je.validating?Lt="validating":bt.length?Lt="error":Ae.length?Lt="warning":(je.touched||We&&je.validated)&&(Lt="success"),Lt}function at(bt){return Ct(bt).join("_")}function ot(bt){const[Ae]=(0,qe.useForm)(),je=ge.useRef({}),Ze=ge.useMemo(()=>bt!=null?bt:Object.assign(Object.assign({},Ae),{__INTERNAL__:{itemRef:We=>yt=>{const Lt=at(We);yt?je.current[Lt]=yt:delete je.current[Lt]}},scrollToField:function(We){let yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Lt=Ct(We),Jt=Yt(Lt,Ze.__INTERNAL__.name),Ht=Jt?document.getElementById(Jt):null;Ht&&(0,It.Z)(Ht,Object.assign({scrollMode:"if-needed",block:"nearest"},yt))},getFieldInstance:We=>{const yt=at(We);return je.current[yt]}}),[bt,Ae]);return[Ze]}var Nt=oe(28726),Sn=function(bt,Ae){var je={};for(var Ze in bt)Object.prototype.hasOwnProperty.call(bt,Ze)&&Ae.indexOf(Ze)<0&&(je[Ze]=bt[Ze]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ze=Object.getOwnPropertySymbols(bt);We<Ze.length;We++)Ae.indexOf(Ze[We])<0&&Object.prototype.propertyIsEnumerable.call(bt,Ze[We])&&(je[Ze[We]]=bt[Ze[We]]);return je};const $t=(bt,Ae)=>{const je=ge.useContext(Dt.Z),{getPrefixCls:Ze,direction:We,form:yt}=ge.useContext(zt.E_),{prefixCls:Lt,className:Jt,rootClassName:Ht,size:ln,disabled:yn=je,form:En,colon:Mn,labelAlign:Kt,labelWrap:hn,labelCol:Hn,wrapperCol:Zn,hideRequiredMark:Kn,layout:jn="horizontal",scrollToFirstError:nr,requiredMark:On,onFinishFailed:cr,name:Mt,style:an,feedbackIcons:cn}=bt,Cn=Sn(bt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),un=(0,St.Z)(ln),vn=ge.useContext(Nt.Z),pn=(0,ge.useMemo)(()=>On!==void 0?On:yt&&yt.requiredMark!==void 0?yt.requiredMark:!Kn,[Kn,On,yt]),Pn=Mn!=null?Mn:yt==null?void 0:yt.colon,Vn=Ze("form",Lt),[er,pr]=ht(Vn),mr=Pe()(Vn,`${Vn}-${jn}`,{[`${Vn}-hide-required-mark`]:pn===!1,[`${Vn}-rtl`]:We==="rtl",[`${Vn}-${un}`]:un},pr,yt==null?void 0:yt.className,Jt,Ht),[Pr]=ot(En),{__INTERNAL__:Ir}=Pr;Ir.name=Mt;const Lr=(0,ge.useMemo)(()=>({name:Mt,labelAlign:Kt,labelCol:Hn,labelWrap:hn,wrapperCol:Zn,vertical:jn==="vertical",colon:Pn,requiredMark:pn,itemRef:Ir.itemRef,form:Pr,feedbackIcons:cn}),[Mt,Kt,Hn,Zn,jn,Pn,pn,Pr,cn]);ge.useImperativeHandle(Ae,()=>Pr);const $r=(Zr,gr)=>{if(Zr){let zr={block:"nearest"};typeof Zr=="object"&&(zr=Zr),Pr.scrollToField(gr,zr)}},Hr=Zr=>{if(cr==null||cr(Zr),Zr.errorFields.length){const gr=Zr.errorFields[0].name;if(nr!==void 0){$r(nr,gr);return}yt&&yt.scrollToFirstError!==void 0&&$r(yt.scrollToFirstError,gr)}};return er(ge.createElement(Dt.n,{disabled:yn},ge.createElement(Bt.q,{size:un},ge.createElement(he.RV,Object.assign({},{validateMessages:vn}),ge.createElement(he.q3.Provider,{value:Lr},ge.createElement(qe.default,Object.assign({id:Mt},Cn,{name:Mt,onFinishFailed:Hr,form:Pr,style:Object.assign(Object.assign({},yt==null?void 0:yt.style),an),className:mr})))))))};var on=ge.forwardRef($t),nn=oe(41799),en=oe(8654),ye=oe(92343),ue=oe(11592);function se(bt){if(typeof bt=="function")return bt;const Ae=(0,ue.Z)(bt);return Ae.length<=1?Ae[0]:Ae}const ce=()=>{const{status:bt,errors:Ae=[],warnings:je=[]}=(0,ge.useContext)(he.aM);return{status:bt,errors:Ae,warnings:je}};ce.Context=he.aM;var de=ce,ae=oe(16089);function Be(bt){const[Ae,je]=ge.useState(bt),Ze=(0,ge.useRef)(null),We=(0,ge.useRef)([]),yt=(0,ge.useRef)(!1);ge.useEffect(()=>(yt.current=!1,()=>{yt.current=!0,ae.Z.cancel(Ze.current),Ze.current=null}),[]);function Lt(Jt){yt.current||(Ze.current===null&&(We.current=[],Ze.current=(0,ae.Z)(()=>{Ze.current=null,je(Ht=>{let ln=Ht;return We.current.forEach(yn=>{ln=yn(ln)}),ln})})),We.current.push(Jt))}return[Ae,Lt]}function ft(){const{itemRef:bt}=ge.useContext(he.q3),Ae=ge.useRef({});function je(Ze,We){const yt=We&&typeof We=="object"&&We.ref,Lt=Ze.join("_");return(Ae.current.name!==Lt||Ae.current.originRef!==yt)&&(Ae.current.name=Lt,Ae.current.originRef=yt,Ae.current.ref=(0,en.sQ)(bt(Ze),yt)),Ae.current.ref}return je}var Fe=oe(29194),De=oe(34280),mt=oe(2738),rt=oe(27382),Ge=oe(37028);const xt=bt=>{const{formItemCls:Ae}=bt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ae}-control`]:{display:"flex"}}}};var Xt=(0,He.b)(["Form","item-item"],(bt,Ae)=>{let{rootPrefixCls:je}=Ae;const Ze=Ye(bt,je);return[xt(Ze)]}),Rt=bt=>{const{prefixCls:Ae,status:je,wrapperCol:Ze,children:We,errors:yt,warnings:Lt,_internalItemRender:Jt,extra:Ht,help:ln,fieldId:yn,marginBottom:En,onErrorVisibleChanged:Mn}=bt,Kt=`${Ae}-item`,hn=ge.useContext(he.q3),Hn=Ze||hn.wrapperCol||{},Zn=Pe()(`${Kt}-control`,Hn.className),Kn=ge.useMemo(()=>Object.assign({},hn),[hn]);delete Kn.labelCol,delete Kn.wrapperCol;const jn=ge.createElement("div",{className:`${Kt}-control-input`},ge.createElement("div",{className:`${Kt}-control-input-content`},We)),nr=ge.useMemo(()=>({prefixCls:Ae,status:je}),[Ae,je]),On=En!==null||yt.length||Lt.length?ge.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},ge.createElement(he.Rk.Provider,{value:nr},ge.createElement(Pt,{fieldId:yn,errors:yt,warnings:Lt,help:ln,helpStatus:je,className:`${Kt}-explain-connected`,onVisibleChanged:Mn})),!!En&&ge.createElement("div",{style:{width:0,height:En}})):null,cr={};yn&&(cr.id=`${yn}_extra`);const Mt=Ht?ge.createElement("div",Object.assign({},cr,{className:`${Kt}-extra`}),Ht):null,an=Jt&&Jt.mark==="pro_table_render"&&Jt.render?Jt.render(bt,{input:jn,errorList:On,extra:Mt}):ge.createElement(ge.Fragment,null,jn,On,Mt);return ge.createElement(he.q3.Provider,{value:Kn},ge.createElement(Ge.Z,Object.assign({},Hn,{className:Zn}),an),ge.createElement(Xt,{prefixCls:Ae}))},rn=oe(61485),lt=oe(31724),Le=oe(9763),it=oe(6848),Ot=function(bt,Ae){var je={};for(var Ze in bt)Object.prototype.hasOwnProperty.call(bt,Ze)&&Ae.indexOf(Ze)<0&&(je[Ze]=bt[Ze]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ze=Object.getOwnPropertySymbols(bt);We<Ze.length;We++)Ae.indexOf(Ze[We])<0&&Object.prototype.propertyIsEnumerable.call(bt,Ze[We])&&(je[Ze[We]]=bt[Ze[We]]);return je};function Ft(bt){return bt?typeof bt=="object"&&!ge.isValidElement(bt)?bt:{title:bt}:null}var bn=bt=>{let{prefixCls:Ae,label:je,htmlFor:Ze,labelCol:We,labelAlign:yt,colon:Lt,required:Jt,requiredMark:Ht,tooltip:ln}=bt;var yn;const[En]=(0,Le.Z)("Form"),{vertical:Mn,labelAlign:Kt,labelCol:hn,labelWrap:Hn,colon:Zn}=ge.useContext(he.q3);if(!je)return null;const Kn=We||hn||{},jn=yt||Kt,nr=`${Ae}-item-label`,On=Pe()(nr,jn==="left"&&`${nr}-left`,Kn.className,{[`${nr}-wrap`]:!!Hn});let cr=je;const Mt=Lt===!0||Zn!==!1&&Lt!==!1;Mt&&!Mn&&typeof je=="string"&&je.trim()!==""&&(cr=je.replace(/[:|]\s*$/,""));const cn=Ft(ln);if(cn){const{icon:pn=ge.createElement(rn.Z,null)}=cn,Pn=Ot(cn,["icon"]),Vn=ge.createElement(it.Z,Object.assign({},Pn),ge.cloneElement(pn,{className:`${Ae}-item-tooltip`,title:""}));cr=ge.createElement(ge.Fragment,null,cr,Vn)}const Cn=Ht==="optional",un=typeof Ht=="function";un?cr=Ht(cr,{required:!!Jt}):Cn&&!Jt&&(cr=ge.createElement(ge.Fragment,null,cr,ge.createElement("span",{className:`${Ae}-item-optional`,title:""},(En==null?void 0:En.optional)||((yn=lt.Z.Form)===null||yn===void 0?void 0:yn.optional))));const vn=Pe()({[`${Ae}-item-required`]:Jt,[`${Ae}-item-required-mark-optional`]:Cn||un,[`${Ae}-item-no-colon`]:!Mt});return ge.createElement(Ge.Z,Object.assign({},Kn,{className:On}),ge.createElement("label",{htmlFor:Ze,className:vn,title:typeof je=="string"?je:""},cr))},Bn=oe(29679),Ln=oe(19248),Gn=oe(96512),Yn=oe(58617);const _n={success:Bn.Z,warning:Gn.Z,error:Ln.Z,validating:Yn.Z};function ir(bt){let{children:Ae,errors:je,warnings:Ze,hasFeedback:We,validateStatus:yt,prefixCls:Lt,meta:Jt,noStyle:Ht}=bt;const ln=`${Lt}-item`,{feedbackIcons:yn}=ge.useContext(he.q3),En=Zt(je,Ze,Jt,null,!!We,yt),{isFormItemInput:Mn,status:Kt}=ge.useContext(he.aM),hn=ge.useMemo(()=>{var Hn;let Zn;if(We){const nr=We!==!0&&We.icons||yn,On=En&&((Hn=nr==null?void 0:nr({status:En,errors:je,warnings:Ze}))===null||Hn===void 0?void 0:Hn[En]),cr=En&&_n[En];Zn=On!==!1&&cr?ge.createElement("span",{className:Pe()(`${ln}-feedback-icon`,`${ln}-feedback-icon-${En}`)},On||ge.createElement(cr,null)):null}let Kn=!0,jn=En||"";return Ht&&(Kn=Mn,jn=(En!=null?En:Kt)||""),{status:jn,errors:je,warnings:Ze,hasFeedback:!!We,feedbackIcon:Zn,isFormItemInput:Kn}},[En,We,Ht,Mn,Kt]);return ge.createElement(he.aM.Provider,{value:hn},Ae)}var br=function(bt,Ae){var je={};for(var Ze in bt)Object.prototype.hasOwnProperty.call(bt,Ze)&&Ae.indexOf(Ze)<0&&(je[Ze]=bt[Ze]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ze=Object.getOwnPropertySymbols(bt);We<Ze.length;We++)Ae.indexOf(Ze[We])<0&&Object.prototype.propertyIsEnumerable.call(bt,Ze[We])&&(je[Ze[We]]=bt[Ze[We]]);return je};function wr(bt){const{prefixCls:Ae,className:je,rootClassName:Ze,style:We,help:yt,errors:Lt,warnings:Jt,validateStatus:Ht,meta:ln,hasFeedback:yn,hidden:En,children:Mn,fieldId:Kt,required:hn,isRequired:Hn,onSubItemMetaChange:Zn}=bt,Kn=br(bt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),jn=`${Ae}-item`,{requiredMark:nr}=ge.useContext(he.q3),On=ge.useRef(null),cr=we(Lt),Mt=we(Jt),an=yt!=null,cn=!!(an||Lt.length||Jt.length),Cn=!!On.current&&(0,Fe.Z)(On.current),[un,vn]=ge.useState(null);(0,De.Z)(()=>{if(cn&&On.current){const pr=getComputedStyle(On.current);vn(parseInt(pr.marginBottom,10))}},[cn,Cn]);const pn=pr=>{pr||vn(null)},Vn=function(){let pr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const mr=pr?cr:ln.errors,Pr=pr?Mt:ln.warnings;return Zt(mr,Pr,ln,"",!!yn,Ht)}(),er=Pe()(jn,je,Ze,{[`${jn}-with-help`]:an||cr.length||Mt.length,[`${jn}-has-feedback`]:Vn&&yn,[`${jn}-has-success`]:Vn==="success",[`${jn}-has-warning`]:Vn==="warning",[`${jn}-has-error`]:Vn==="error",[`${jn}-is-validating`]:Vn==="validating",[`${jn}-hidden`]:En});return ge.createElement("div",{className:er,style:We,ref:On},ge.createElement(rt.Z,Object.assign({className:`${jn}-row`},(0,mt.Z)(Kn,["_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"])),ge.createElement(bn,Object.assign({htmlFor:Kt},bt,{requiredMark:nr,required:hn!=null?hn:Hn,prefixCls:Ae})),ge.createElement(Rt,Object.assign({},bt,ln,{errors:cr,warnings:Mt,prefixCls:Ae,status:Vn,help:yt,marginBottom:un,onErrorVisibleChanged:pn}),ge.createElement(he.qI.Provider,{value:Zn},ge.createElement(ir,{prefixCls:Ae,meta:ln,errors:ln.errors,warnings:ln.warnings,hasFeedback:yn,validateStatus:Vn},Mn)))),!!un&&ge.createElement("div",{className:`${jn}-margin-offset`,style:{marginBottom:-un}}))}const qn="__SPLIT__",fr=null,kr=ge.memo(bt=>{let{children:Ae}=bt;return Ae},(bt,Ae)=>bt.value===Ae.value&&bt.update===Ae.update&&bt.childProps.length===Ae.childProps.length&&bt.childProps.every((je,Ze)=>je===Ae.childProps[Ze]));function Qn(bt){return bt!=null}function Nr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ei(bt){const{name:Ae,noStyle:je,className:Ze,dependencies:We,prefixCls:yt,shouldUpdate:Lt,rules:Jt,children:Ht,required:ln,label:yn,messageVariables:En,trigger:Mn="onChange",validateTrigger:Kt,hidden:hn,help:Hn}=bt,{getPrefixCls:Zn}=ge.useContext(zt.E_),{name:Kn}=ge.useContext(he.q3),jn=se(Ht),nr=typeof jn=="function",On=ge.useContext(he.qI),{validateTrigger:cr}=ge.useContext(qe.FieldContext),Mt=Kt!==void 0?Kt:cr,an=Qn(Ae),cn=Zn("form",yt),[Cn,un]=ht(cn),vn=ge.useContext(qe.ListContext),pn=ge.useRef(),[Pn,Vn]=Be({}),[er,pr]=(0,nn.Z)(()=>Nr()),mr=gr=>{const zr=vn==null?void 0:vn.getKey(gr.name);if(pr(gr.destroy?Nr():gr,!0),je&&Hn!==!1&&On){let Cr=gr.name;if(gr.destroy)Cr=pn.current||Cr;else if(zr!==void 0){const[lr,jr]=zr;Cr=[lr].concat((0,me.Z)(jr)),pn.current=Cr}On(gr,Cr)}},Pr=(gr,zr)=>{Vn(Cr=>{const lr=Object.assign({},Cr),li=[].concat((0,me.Z)(gr.name.slice(0,-1)),(0,me.Z)(zr)).join(qn);return gr.destroy?delete lr[li]:lr[li]=gr,lr})},[Ir,Lr]=ge.useMemo(()=>{const gr=(0,me.Z)(er.errors),zr=(0,me.Z)(er.warnings);return Object.values(Pn).forEach(Cr=>{gr.push.apply(gr,(0,me.Z)(Cr.errors||[])),zr.push.apply(zr,(0,me.Z)(Cr.warnings||[]))}),[gr,zr]},[Pn,er.errors,er.warnings]),$r=ft();function Hr(gr,zr,Cr){return je&&!hn?ge.createElement(ir,{prefixCls:cn,hasFeedback:bt.hasFeedback,validateStatus:bt.validateStatus,meta:er,errors:Ir,warnings:Lr,noStyle:!0},gr):ge.createElement(wr,Object.assign({key:"row"},bt,{className:Pe()(Ze,un),prefixCls:cn,fieldId:zr,isRequired:Cr,errors:Ir,warnings:Lr,meta:er,onSubItemMetaChange:Pr}),gr)}if(!an&&!nr&&!We)return Cn(Hr(jn));let Zr={};return typeof yn=="string"?Zr.label=yn:Ae&&(Zr.label=String(Ae)),En&&(Zr=Object.assign(Object.assign({},Zr),En)),Cn(ge.createElement(qe.Field,Object.assign({},bt,{messageVariables:Zr,trigger:Mn,validateTrigger:Mt,onMetaChange:mr}),(gr,zr,Cr)=>{const lr=Ct(Ae).length&&zr?zr.name:[],jr=Yt(lr,Kn),li=ln!==void 0?ln:!!(Jt&&Jt.some(Xn=>{if(Xn&&typeof Xn=="object"&&Xn.required&&!Xn.warningOnly)return!0;if(typeof Xn=="function"){const Wr=Xn(Cr);return Wr&&Wr.required&&!Wr.warningOnly}return!1})),Dr=Object.assign({},gr);let Jn=null;if(Array.isArray(jn)&&an)Jn=jn;else if(!(nr&&(!(Lt||We)||an))){if(!(We&&!nr&&!an))if((0,ye.l$)(jn)){const Xn=Object.assign(Object.assign({},jn.props),Dr);if(Xn.id||(Xn.id=jr),Hn||Ir.length>0||Lr.length>0||bt.extra){const Jr=[];(Hn||Ir.length>0)&&Jr.push(`${jr}_help`),bt.extra&&Jr.push(`${jr}_extra`),Xn["aria-describedby"]=Jr.join(" ")}Ir.length>0&&(Xn["aria-invalid"]="true"),li&&(Xn["aria-required"]="true"),(0,en.Yr)(jn)&&(Xn.ref=$r(lr,jn)),new Set([].concat((0,me.Z)(Ct(Mn)),(0,me.Z)(Ct(Mt)))).forEach(Jr=>{Xn[Jr]=function(){for(var ci,ti,Bi,vi,Ui,Or=arguments.length,_r=new Array(Or),si=0;si<Or;si++)_r[si]=arguments[si];(Bi=Dr[Jr])===null||Bi===void 0||(ci=Bi).call.apply(ci,[Dr].concat(_r)),(Ui=(vi=jn.props)[Jr])===null||Ui===void 0||(ti=Ui).call.apply(ti,[vi].concat(_r))}});const Er=[Xn["aria-required"],Xn["aria-invalid"],Xn["aria-describedby"]];Jn=ge.createElement(kr,{value:Dr[bt.valuePropName||"value"],update:jn,childProps:Er},(0,ye.Tm)(jn,Xn))}else nr&&(Lt||We)&&!an?Jn=jn(Cr):Jn=jn}return Hr(Jn,jr,li)}))}const Vt=ei;Vt.useStatus=de;var Rn=Vt,Nn=function(bt,Ae){var je={};for(var Ze in bt)Object.prototype.hasOwnProperty.call(bt,Ze)&&Ae.indexOf(Ze)<0&&(je[Ze]=bt[Ze]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ze=Object.getOwnPropertySymbols(bt);We<Ze.length;We++)Ae.indexOf(Ze[We])<0&&Object.prototype.propertyIsEnumerable.call(bt,Ze[We])&&(je[Ze[We]]=bt[Ze[We]]);return je},In=bt=>{var{prefixCls:Ae,children:je}=bt,Ze=Nn(bt,["prefixCls","children"]);const{getPrefixCls:We}=ge.useContext(zt.E_),yt=We("form",Ae),Lt=ge.useMemo(()=>({prefixCls:yt,status:"error"}),[yt]);return ge.createElement(qe.List,Object.assign({},Ze),(Jt,Ht,ln)=>ge.createElement(he.Rk.Provider,{value:Lt},je(Jt.map(yn=>Object.assign(Object.assign({},yn),{fieldKey:yn.key})),Ht,{errors:ln.errors,warnings:ln.warnings})))};function xn(){const{form:bt}=(0,ge.useContext)(he.q3);return bt}const kn=on;kn.Item=Rn,kn.List=In,kn.ErrorList=Pt,kn.useForm=ot,kn.useFormInstance=xn,kn.useWatch=qe.useWatch,kn.Provider=he.RV,kn.create=()=>{};var gn=kn},8628:function(An,Ut,oe){"use strict";var me=oe(59301),Me=oe(34280),Pe=oe(56762),pt=oe(69507);function ge(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const he=(0,me.useRef)({}),we=(0,Pe.Z)(),Ee=(0,pt.ZP)();return(0,Me.Z)(()=>{const ze=Ee.subscribe(vt=>{he.current=vt,ke&&we()});return()=>Ee.unsubscribe(ze)},[]),he.current}Ut.Z=ge},5871:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return rn}});var me=oe(84105),Me=oe(87395),Pe=oe(92310),pt=oe.n(Pe),ge=oe(60499),ke=oe(18642),he=oe(43749),we=oe(72190),Ee=oe(42244),ze=oe(38705),vt=oe(17212);function Ie(){return typeof BigInt=="function"}function He(lt){return!lt&&lt!==0&&!Number.isNaN(lt)||!String(lt).trim()}function st(lt){var Le=lt.trim(),it=Le.startsWith("-");it&&(Le=Le.slice(1)),Le=Le.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Le.startsWith(".")&&(Le="0".concat(Le));var Ot=Le||"0",Ft=Ot.split("."),Qt=Ft[0]||"0",bn=Ft[1]||"0";Qt==="0"&&bn==="0"&&(it=!1);var Bn=it?"-":"";return{negative:it,negativeStr:Bn,trimStr:Ot,integerStr:Qt,decimalStr:bn,fullStr:"".concat(Bn).concat(Ot)}}function Je(lt){var Le=String(lt);return!Number.isNaN(Number(Le))&&Le.includes("e")}function Ue(lt){var Le=String(lt);if(Je(lt)){var it=Number(Le.slice(Le.indexOf("e-")+2)),Ot=Le.match(/\.(\d+)/);return Ot!=null&&Ot[1]&&(it+=Ot[1].length),it}return Le.includes(".")&&Et(Le)?Le.length-Le.indexOf(".")-1:0}function gt(lt){var Le=String(lt);if(Je(lt)){if(lt>Number.MAX_SAFE_INTEGER)return String(Ie()?BigInt(lt).toString():Number.MAX_SAFE_INTEGER);if(lt<Number.MIN_SAFE_INTEGER)return String(Ie()?BigInt(lt).toString():Number.MIN_SAFE_INTEGER);Le=lt.toFixed(Ue(Le))}return st(Le).fullStr}function Et(lt){return typeof lt=="number"?!Number.isNaN(lt):lt?/^\s*-?\d+(\.\d+)?\s*$/.test(lt)||/^\s*-?\d+\.\s*$/.test(lt)||/^\s*-?\.\d+\s*$/.test(lt):!1}var At=function(){function lt(Le){if((0,ze.Z)(this,lt),(0,ke.Z)(this,"origin",""),(0,ke.Z)(this,"negative",void 0),(0,ke.Z)(this,"integer",void 0),(0,ke.Z)(this,"decimal",void 0),(0,ke.Z)(this,"decimalLen",void 0),(0,ke.Z)(this,"empty",void 0),(0,ke.Z)(this,"nan",void 0),He(Le)){this.empty=!0;return}if(this.origin=String(Le),Le==="-"||Number.isNaN(Le)){this.nan=!0;return}var it=Le;if(Je(it)&&(it=Number(it)),it=typeof it=="string"?it:gt(it),Et(it)){var Ot=st(it);this.negative=Ot.negative;var Ft=Ot.trimStr.split(".");this.integer=BigInt(Ft[0]);var Qt=Ft[1]||"0";this.decimal=BigInt(Qt),this.decimalLen=Qt.length}else this.nan=!0}return(0,vt.Z)(lt,[{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(it){var Ot="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(it,"0"));return BigInt(Ot)}},{key:"negate",value:function(){var it=new lt(this.toString());return it.negative=!it.negative,it}},{key:"cal",value:function(it,Ot,Ft){var Qt=Math.max(this.getDecimalStr().length,it.getDecimalStr().length),bn=this.alignDecimal(Qt),Bn=it.alignDecimal(Qt),Ln=Ot(bn,Bn).toString(),Gn=Ft(Qt),Yn=st(Ln),_n=Yn.negativeStr,ir=Yn.trimStr,br="".concat(_n).concat(ir.padStart(Gn+1,"0"));return new lt("".concat(br.slice(0,-Gn),".").concat(br.slice(-Gn)))}},{key:"add",value:function(it){if(this.isInvalidate())return new lt(it);var Ot=new lt(it);return Ot.isInvalidate()?this:this.cal(Ot,function(Ft,Qt){return Ft+Qt},function(Ft){return Ft})}},{key:"multi",value:function(it){var Ot=new lt(it);return this.isInvalidate()||Ot.isInvalidate()?new lt(NaN):this.cal(Ot,function(Ft,Qt){return Ft*Qt},function(Ft){return Ft*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(it){return this.toString()===(it==null?void 0:it.toString())}},{key:"lessEquals",value:function(it){return this.add(it.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return it?this.isInvalidate()?"":st("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),lt}(),dt=function(){function lt(Le){if((0,ze.Z)(this,lt),(0,ke.Z)(this,"origin",""),(0,ke.Z)(this,"number",void 0),(0,ke.Z)(this,"empty",void 0),He(Le)){this.empty=!0;return}this.origin=String(Le),this.number=Number(Le)}return(0,vt.Z)(lt,[{key:"negate",value:function(){return new lt(-this.toNumber())}},{key:"add",value:function(it){if(this.isInvalidate())return new lt(it);var Ot=Number(it);if(Number.isNaN(Ot))return this;var Ft=this.number+Ot;if(Ft>Number.MAX_SAFE_INTEGER)return new lt(Number.MAX_SAFE_INTEGER);if(Ft<Number.MIN_SAFE_INTEGER)return new lt(Number.MIN_SAFE_INTEGER);var Qt=Math.max(Ue(this.number),Ue(Ot));return new lt(Ft.toFixed(Qt))}},{key:"multi",value:function(it){var Ot=Number(it);if(this.isInvalidate()||Number.isNaN(Ot))return new lt(NaN);var Ft=this.number*Ot;if(Ft>Number.MAX_SAFE_INTEGER)return new lt(Number.MAX_SAFE_INTEGER);if(Ft<Number.MIN_SAFE_INTEGER)return new lt(Number.MIN_SAFE_INTEGER);var Qt=Math.max(Ue(this.number),Ue(Ot));return new lt(Ft.toFixed(Qt))}},{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(it){return this.toNumber()===(it==null?void 0:it.toNumber())}},{key:"lessEquals",value:function(it){return this.add(it.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return it?this.isInvalidate()?"":gt(this.number):this.origin}}]),lt}();function nt(lt){return Ie()?new At(lt):new dt(lt)}function Ve(lt,Le,it){var Ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(lt==="")return"";var Ft=st(lt),Qt=Ft.negativeStr,bn=Ft.integerStr,Bn=Ft.decimalStr,Ln="".concat(Le).concat(Bn),Gn="".concat(Qt).concat(bn);if(it>=0){var Yn=Number(Bn[it]);if(Yn>=5&&!Ot){var _n=nt(lt).add("".concat(Qt,"0.").concat("0".repeat(it)).concat(10-Yn));return Ve(_n.toString(),Le,it,Ot)}return it===0?Gn:"".concat(Gn).concat(Le).concat(Bn.padEnd(it,"0").slice(0,it))}return Ln===".0"?Gn:"".concat(Gn).concat(Ln)}var Se=nt,$e=oe(93681),Ye=oe(34280),ht=oe(8654),Xe=oe(59301),ut=oe(48736);function Oe(lt,Le){var it=(0,Xe.useRef)(null);function Ot(){try{var Qt=lt.selectionStart,bn=lt.selectionEnd,Bn=lt.value,Ln=Bn.substring(0,Qt),Gn=Bn.substring(bn);it.current={start:Qt,end:bn,value:Bn,beforeTxt:Ln,afterTxt:Gn}}catch(Yn){}}function Ft(){if(lt&&it.current&&Le)try{var Qt=lt.value,bn=it.current,Bn=bn.beforeTxt,Ln=bn.afterTxt,Gn=bn.start,Yn=Qt.length;if(Qt.endsWith(Ln))Yn=Qt.length-it.current.afterTxt.length;else if(Qt.startsWith(Bn))Yn=Bn.length;else{var _n=Bn[Gn-1],ir=Qt.indexOf(_n,Gn-1);ir!==-1&&(Yn=ir+1)}lt.setSelectionRange(Yn,Yn)}catch(br){(0,ut.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(br.message))}}return[Ot,Ft]}var Pt=oe(49658),qe=function(){var Le=(0,Xe.useState)(!1),it=(0,we.Z)(Le,2),Ot=it[0],Ft=it[1];return(0,Ye.Z)(function(){Ft((0,Pt.Z)())},[]),Ot},zt=qe,Dt=oe(16089),Bt=200,St=600;function It(lt){var Le=lt.prefixCls,it=lt.upNode,Ot=lt.downNode,Ft=lt.upDisabled,Qt=lt.downDisabled,bn=lt.onStep,Bn=Xe.useRef(),Ln=Xe.useRef([]),Gn=Xe.useRef();Gn.current=bn;var Yn=function(){clearTimeout(Bn.current)},_n=function(Nr,ei){Nr.preventDefault(),Yn(),Gn.current(ei);function Vt(){Gn.current(ei),Bn.current=setTimeout(Vt,Bt)}Bn.current=setTimeout(Vt,St)};Xe.useEffect(function(){return function(){Yn(),Ln.current.forEach(function(Qn){return Dt.Z.cancel(Qn)})}},[]);var ir=zt();if(ir)return null;var br="".concat(Le,"-handler"),wr=pt()(br,"".concat(br,"-up"),(0,ke.Z)({},"".concat(br,"-up-disabled"),Ft)),qn=pt()(br,"".concat(br,"-down"),(0,ke.Z)({},"".concat(br,"-down-disabled"),Qt)),fr=function(){return Ln.current.push((0,Dt.Z)(Yn))},kr={unselectable:"on",role:"button",onMouseUp:fr,onMouseLeave:fr};return Xe.createElement("div",{className:"".concat(br,"-wrap")},Xe.createElement("span",(0,ge.Z)({},kr,{onMouseDown:function(Nr){_n(Nr,!0)},"aria-label":"Increase Value","aria-disabled":Ft,className:wr}),it||Xe.createElement("span",{unselectable:"on",className:"".concat(Le,"-handler-up-inner")})),Xe.createElement("span",(0,ge.Z)({},kr,{onMouseDown:function(Nr){_n(Nr,!1)},"aria-label":"Decrease Value","aria-disabled":Qt,className:qn}),Ot||Xe.createElement("span",{unselectable:"on",className:"".concat(Le,"-handler-down-inner")})))}function Qe(lt){var Le=typeof lt=="number"?gt(lt):st(lt).fullStr,it=Le.includes(".");return it?st(Le.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:lt+"0"}var be=oe(5643),Ct=function(){var lt=(0,Xe.useRef)(0),Le=function(){Dt.Z.cancel(lt.current)};return(0,Xe.useEffect)(function(){return Le},[]),function(it){Le(),lt.current=(0,Dt.Z)(function(){it()})}},Yt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Zt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],at=function(Le,it){return Le||it.isEmpty()?it.toString():it.toNumber()},ot=function(Le){var it=Se(Le);return it.isInvalidate()?null:it},Nt=Xe.forwardRef(function(lt,Le){var it,Ot=lt.prefixCls,Ft=Ot===void 0?"rc-input-number":Ot,Qt=lt.className,bn=lt.style,Bn=lt.min,Ln=lt.max,Gn=lt.step,Yn=Gn===void 0?1:Gn,_n=lt.defaultValue,ir=lt.value,br=lt.disabled,wr=lt.readOnly,qn=lt.upHandler,fr=lt.downHandler,kr=lt.keyboard,Qn=lt.controls,Nr=Qn===void 0?!0:Qn,ei=lt.classNames,Vt=lt.stringMode,Rn=lt.parser,Nn=lt.formatter,wn=lt.precision,In=lt.decimalSeparator,xn=lt.onChange,kn=lt.onInput,gn=lt.onPressEnter,bt=lt.onStep,Ae=(0,Ee.Z)(lt,Yt),je="".concat(Ft,"-input"),Ze=Xe.useRef(null),We=Xe.useState(!1),yt=(0,we.Z)(We,2),Lt=yt[0],Jt=yt[1],Ht=Xe.useRef(!1),ln=Xe.useRef(!1),yn=Xe.useRef(!1),En=Xe.useState(function(){return Se(ir!=null?ir:_n)}),Mn=(0,we.Z)(En,2),Kt=Mn[0],hn=Mn[1];function Hn(Jn){ir===void 0&&hn(Jn)}var Zn=Xe.useCallback(function(Jn,Xn){if(!Xn)return wn>=0?wn:Math.max(Ue(Jn),Ue(Yn))},[wn,Yn]),Kn=Xe.useCallback(function(Jn){var Xn=String(Jn);if(Rn)return Rn(Xn);var Wr=Xn;return In&&(Wr=Wr.replace(In,".")),Wr.replace(/[^\w.-]+/g,"")},[Rn,In]),jn=Xe.useRef(""),nr=Xe.useCallback(function(Jn,Xn){if(Nn)return Nn(Jn,{userTyping:Xn,input:String(jn.current)});var Wr=typeof Jn=="number"?gt(Jn):Jn;if(!Xn){var Er=Zn(Wr,Xn);if(Et(Wr)&&(In||Er>=0)){var Jr=In||".";Wr=Ve(Wr,Jr,Er)}}return Wr},[Nn,Zn,In]),On=Xe.useState(function(){var Jn=_n!=null?_n:ir;return Kt.isInvalidate()&&["string","number"].includes((0,he.Z)(Jn))?Number.isNaN(Jn)?"":Jn:nr(Kt.toString(),!1)}),cr=(0,we.Z)(On,2),Mt=cr[0],an=cr[1];jn.current=Mt;function cn(Jn,Xn){an(nr(Jn.isInvalidate()?Jn.toString(!1):Jn.toString(!Xn),Xn))}var Cn=Xe.useMemo(function(){return ot(Ln)},[Ln,wn]),un=Xe.useMemo(function(){return ot(Bn)},[Bn,wn]),vn=Xe.useMemo(function(){return!Cn||!Kt||Kt.isInvalidate()?!1:Cn.lessEquals(Kt)},[Cn,Kt]),pn=Xe.useMemo(function(){return!un||!Kt||Kt.isInvalidate()?!1:Kt.lessEquals(un)},[un,Kt]),Pn=Oe(Ze.current,Lt),Vn=(0,we.Z)(Pn,2),er=Vn[0],pr=Vn[1],mr=function(Xn){return Cn&&!Xn.lessEquals(Cn)?Cn:un&&!un.lessEquals(Xn)?un:null},Pr=function(Xn){return!mr(Xn)},Ir=function(Xn,Wr){var Er=Xn,Jr=Pr(Er)||Er.isEmpty();if(!Er.isEmpty()&&!Wr&&(Er=mr(Er)||Er,Jr=!0),!wr&&!br&&Jr){var ci=Er.toString(),ti=Zn(ci,Wr);return ti>=0&&(Er=Se(Ve(ci,".",ti)),Pr(Er)||(Er=Se(Ve(ci,".",ti,!0)))),Er.equals(Kt)||(Hn(Er),xn==null||xn(Er.isEmpty()?null:at(Vt,Er)),ir===void 0&&cn(Er,Wr)),Er}return Kt},Lr=Ct(),$r=function Jn(Xn){if(er(),jn.current=Xn,an(Xn),!ln.current){var Wr=Kn(Xn),Er=Se(Wr);Er.isNaN()||Ir(Er,!0)}kn==null||kn(Xn),Lr(function(){var Jr=Xn;Rn||(Jr=Xn.replace(/。/g,".")),Jr!==Xn&&Jn(Jr)})},Hr=function(){ln.current=!0},Zr=function(){ln.current=!1,$r(Ze.current.value)},gr=function(Xn){$r(Xn.target.value)},zr=function(Xn){var Wr;if(!(Xn&&vn||!Xn&&pn)){Ht.current=!1;var Er=Se(yn.current?Qe(Yn):Yn);Xn||(Er=Er.negate());var Jr=(Kt||Se(0)).add(Er.toString()),ci=Ir(Jr,!1);bt==null||bt(at(Vt,ci),{offset:yn.current?Qe(Yn):Yn,type:Xn?"up":"down"}),(Wr=Ze.current)===null||Wr===void 0||Wr.focus()}},Cr=function(Xn){var Wr=Se(Kn(Mt)),Er=Wr;Wr.isNaN()?Er=Ir(Kt,Xn):Er=Ir(Wr,Xn),ir!==void 0?cn(Kt,!1):Er.isNaN()||cn(Er,!1)},lr=function(){Ht.current=!0},jr=function(Xn){var Wr=Xn.key,Er=Xn.shiftKey;Ht.current=!0,yn.current=Er,Wr==="Enter"&&(ln.current||(Ht.current=!1),Cr(!1),gn==null||gn(Xn)),kr!==!1&&!ln.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Wr)&&(zr(Wr==="Up"||Wr==="ArrowUp"),Xn.preventDefault())},li=function(){Ht.current=!1,yn.current=!1},Dr=function(){Cr(!1),Jt(!1),Ht.current=!1};return(0,Ye.o)(function(){Kt.isInvalidate()||cn(Kt,!1)},[wn]),(0,Ye.o)(function(){var Jn=Se(ir);hn(Jn);var Xn=Se(Kn(Mt));(!Jn.equals(Xn)||!Ht.current||Nn)&&cn(Jn,Ht.current)},[ir]),(0,Ye.o)(function(){Nn&&pr()},[Mt]),Xe.createElement("div",{className:pt()(Ft,ei==null?void 0:ei.input,Qt,(it={},(0,ke.Z)(it,"".concat(Ft,"-focused"),Lt),(0,ke.Z)(it,"".concat(Ft,"-disabled"),br),(0,ke.Z)(it,"".concat(Ft,"-readonly"),wr),(0,ke.Z)(it,"".concat(Ft,"-not-a-number"),Kt.isNaN()),(0,ke.Z)(it,"".concat(Ft,"-out-of-range"),!Kt.isInvalidate()&&!Pr(Kt)),it)),style:bn,onFocus:function(){Jt(!0)},onBlur:Dr,onKeyDown:jr,onKeyUp:li,onCompositionStart:Hr,onCompositionEnd:Zr,onBeforeInput:lr},Nr&&Xe.createElement(It,{prefixCls:Ft,upNode:qn,downNode:fr,upDisabled:vn,downDisabled:pn,onStep:zr}),Xe.createElement("div",{className:"".concat(je,"-wrap")},Xe.createElement("input",(0,ge.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Bn,"aria-valuemax":Ln,"aria-valuenow":Kt.isInvalidate()?null:Kt.toString(),step:Yn},Ae,{ref:(0,ht.sQ)(Ze,Le),className:je,value:Mt,onChange:gr,disabled:br,readOnly:wr}))))}),Sn=Xe.forwardRef(function(lt,Le){var it=lt.disabled,Ot=lt.style,Ft=lt.prefixCls,Qt=lt.value,bn=lt.prefix,Bn=lt.suffix,Ln=lt.addonBefore,Gn=lt.addonAfter,Yn=lt.classes,_n=lt.className,ir=lt.classNames,br=(0,Ee.Z)(lt,Zt),wr=Xe.useRef(null),qn=function(kr){wr.current&&(0,be.nH)(wr.current,kr)};return Xe.createElement($e.BaseInput,{inputElement:Xe.createElement(Nt,(0,ge.Z)({prefixCls:Ft,disabled:it,classNames:ir,ref:(0,ht.sQ)(wr,Le)},br)),className:_n,triggerFocus:qn,prefixCls:Ft,value:Qt,disabled:it,style:Ot,prefix:bn,suffix:Bn,addonAfter:Gn,addonBefore:Ln,classes:Yn,classNames:ir,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Sn.displayName="InputNumber";var $t=Sn,mn=$t,on=oe(19080),nn=oe(36355),en=oe(92736),ye=oe(1684),ue=oe(19716),se=oe(32441),ce=oe(33234),de=oe(9937),ae=oe(17313),Be=oe(74207),ft=oe(83116),Fe=oe(37613);const De=(lt,Le)=>{let{componentCls:it,borderRadiusSM:Ot,borderRadiusLG:Ft}=lt;const Qt=Le==="lg"?Ft:Ot;return{[`&-${Le}`]:{[`${it}-handler-wrap`]:{borderStartEndRadius:Qt,borderEndEndRadius:Qt},[`${it}-handler-up`]:{borderStartEndRadius:Qt},[`${it}-handler-down`]:{borderEndEndRadius:Qt}}}},mt=lt=>{const{componentCls:Le,lineWidth:it,lineType:Ot,colorBorder:Ft,borderRadius:Qt,fontSizeLG:bn,controlHeightLG:Bn,controlHeightSM:Ln,colorError:Gn,paddingInlineSM:Yn,colorTextDescription:_n,motionDurationMid:ir,handleHoverColor:br,paddingInline:wr,paddingBlock:qn,handleBg:fr,handleActiveBg:kr,colorTextDisabled:Qn,borderRadiusSM:Nr,borderRadiusLG:ei,controlWidth:Vt,handleVisible:Rn,handleBorderColor:Nn}=lt;return[{[Le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(lt)),(0,de.ik)(lt)),(0,de.bi)(lt,Le)),{display:"inline-block",width:Vt,margin:0,padding:0,border:`${it}px ${Ot} ${Ft}`,borderRadius:Qt,"&-rtl":{direction:"rtl",[`${Le}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:bn,borderRadius:ei,[`input${Le}-input`]:{height:Bn-2*it}},"&-sm":{padding:0,borderRadius:Nr,[`input${Le}-input`]:{height:Ln-2*it,padding:`0 ${Yn}px`}},"&:hover":Object.assign({},(0,de.pU)(lt)),"&-focused":Object.assign({},(0,de.M1)(lt)),"&-out-of-range":{[`${Le}-input-wrap`]:{input:{color:Gn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(lt)),(0,de.s7)(lt)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Le}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Le}-group-addon`]:{borderRadius:ei,fontSize:lt.fontSizeLG}},"&-sm":{[`${Le}-group-addon`]:{borderRadius:Nr}},[`${Le}-wrapper-disabled > ${Le}-group-addon`]:Object.assign({},(0,de.Xy)(lt))}}),[`&-disabled ${Le}-input`]:{cursor:"not-allowed"},[Le]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(lt)),{width:"100%",padding:`${qn}px ${wr}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Qt,outline:0,transition:`all ${ir} linear`,appearance:"textfield",fontSize:"inherit"}),(0,de.nz)(lt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Le]:Object.assign(Object.assign(Object.assign({[`&:hover ${Le}-handler-wrap, &-focused ${Le}-handler-wrap`]:{opacity:1},[`${Le}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:lt.handleWidth,height:"100%",background:fr,borderStartStartRadius:0,borderStartEndRadius:Qt,borderEndEndRadius:Qt,borderEndStartRadius:0,opacity:Rn===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${ir} linear ${ir}`,[`${Le}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Le}-handler-up-inner,
${Le}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:lt.handleFontSize}}},[`${Le}-handler`]:{height:"50%",overflow:"hidden",color:_n,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${it}px ${Ot} ${Nn}`,transition:`all ${ir} linear`,"&:active":{background:kr},"&:hover":{height:"60%",[`
${Le}-handler-up-inner,
${Le}-handler-down-inner
`]:{color:br}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,ae.Ro)()),{color:_n,transition:`all ${ir} linear`,userSelect:"none"})},[`${Le}-handler-up`]:{borderStartEndRadius:Qt},[`${Le}-handler-down`]:{borderBlockStart:`${it}px ${Ot} ${Nn}`,borderEndEndRadius:Qt}},De(lt,"lg")),De(lt,"sm")),{"&-disabled, &-readonly":{[`${Le}-handler-wrap`]:{display:"none"},[`${Le}-input`]:{color:"inherit"}},[`
${Le}-handler-up-disabled,
${Le}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Le}-handler-up-disabled:hover &-handler-up-inner,
${Le}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Qn}})},{[`${Le}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Le}-handler-down`]:{borderBlockStartWidth:0}}}]},rt=lt=>{const{componentCls:Le,paddingBlock:it,paddingInline:Ot,inputAffixPadding:Ft,controlWidth:Qt,borderRadiusLG:bn,borderRadiusSM:Bn}=lt;return{[`${Le}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,de.ik)(lt)),(0,de.bi)(lt,`${Le}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Qt,padding:0,paddingInlineStart:Ot,"&-lg":{borderRadius:bn},"&-sm":{borderRadius:Bn},[`&:not(${Le}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,de.pU)(lt)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Le}-disabled`]:{background:"transparent"},[`> div${Le}`]:{width:"100%",border:"none",outline:"none",[`&${Le}-focused`]:{boxShadow:"none !important"}},[`input${Le}-input`]:{padding:`${it}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Le}-handler-wrap`]:{zIndex:2},[Le]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Ft},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Ot,marginInlineStart:Ft}}})}};var Ge=(0,ft.Z)("InputNumber",lt=>{const Le=(0,Fe.TS)(lt,(0,de.e5)(lt));return[mt(Le),rt(Le),(0,Be.c)(Le)]},lt=>Object.assign(Object.assign({},(0,de.TM)(lt)),{controlWidth:90,handleWidth:lt.controlHeightSM-lt.lineWidth*2,handleFontSize:lt.fontSize/2,handleVisible:"auto",handleActiveBg:lt.colorFillAlter,handleBg:lt.colorBgContainer,handleHoverColor:lt.colorPrimary,handleBorderColor:lt.colorBorder})),xt=function(lt,Le){var it={};for(var Ot in lt)Object.prototype.hasOwnProperty.call(lt,Ot)&&Le.indexOf(Ot)<0&&(it[Ot]=lt[Ot]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Ot=Object.getOwnPropertySymbols(lt);Ft<Ot.length;Ft++)Le.indexOf(Ot[Ft])<0&&Object.prototype.propertyIsEnumerable.call(lt,Ot[Ft])&&(it[Ot[Ft]]=lt[Ot[Ft]]);return it};const Xt=Xe.forwardRef((lt,Le)=>{const{getPrefixCls:it,direction:Ot}=Xe.useContext(nn.E_),Ft=Xe.useRef(null);Xe.useImperativeHandle(Le,()=>Ft.current);const{className:Qt,rootClassName:bn,size:Bn,disabled:Ln,prefixCls:Gn,addonBefore:Yn,addonAfter:_n,prefix:ir,bordered:br=!0,readOnly:wr,status:qn,controls:fr}=lt,kr=xt(lt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Qn=it("input-number",Gn),[Nr,ei]=Ge(Qn),{compactSize:Vt,compactItemClassnames:Rn}=(0,ce.ri)(Qn,Ot);let Nn=Xe.createElement(Me.Z,{className:`${Qn}-handler-up-inner`}),wn=Xe.createElement(me.Z,{className:`${Qn}-handler-down-inner`});const In=typeof fr=="boolean"?fr:void 0;typeof fr=="object"&&(Nn=typeof fr.upIcon=="undefined"?Nn:Xe.createElement("span",{className:`${Qn}-handler-up-inner`},fr.upIcon),wn=typeof fr.downIcon=="undefined"?wn:Xe.createElement("span",{className:`${Qn}-handler-down-inner`},fr.downIcon));const{hasFeedback:xn,status:kn,isFormItemInput:gn,feedbackIcon:bt}=Xe.useContext(se.aM),Ae=(0,on.F)(kn,qn),je=(0,ue.Z)(Ht=>{var ln;return(ln=Bn!=null?Bn:Vt)!==null&&ln!==void 0?ln:Ht}),Ze=Xe.useContext(ye.Z),We=Ln!=null?Ln:Ze,yt=pt()({[`${Qn}-lg`]:je==="large",[`${Qn}-sm`]:je==="small",[`${Qn}-rtl`]:Ot==="rtl",[`${Qn}-borderless`]:!br,[`${Qn}-in-form-item`]:gn},(0,on.Z)(Qn,Ae),Rn,ei),Lt=`${Qn}-group`,Jt=Xe.createElement(mn,Object.assign({ref:Ft,disabled:We,className:pt()(Qt,bn),upHandler:Nn,downHandler:wn,prefixCls:Qn,readOnly:wr,controls:In,prefix:ir,suffix:xn&&bt,addonAfter:_n&&Xe.createElement(ce.BR,null,Xe.createElement(se.Ux,{override:!0,status:!0},_n)),addonBefore:Yn&&Xe.createElement(ce.BR,null,Xe.createElement(se.Ux,{override:!0,status:!0},Yn)),classNames:{input:yt},classes:{affixWrapper:pt()((0,on.Z)(`${Qn}-affix-wrapper`,Ae,xn),{[`${Qn}-affix-wrapper-sm`]:je==="small",[`${Qn}-affix-wrapper-lg`]:je==="large",[`${Qn}-affix-wrapper-rtl`]:Ot==="rtl",[`${Qn}-affix-wrapper-borderless`]:!br},ei),wrapper:pt()({[`${Lt}-rtl`]:Ot==="rtl",[`${Qn}-wrapper-disabled`]:We},ei),group:pt()({[`${Qn}-group-wrapper-sm`]:je==="small",[`${Qn}-group-wrapper-lg`]:je==="large",[`${Qn}-group-wrapper-rtl`]:Ot==="rtl"},(0,on.Z)(`${Qn}-group-wrapper`,Ae,xn),ei)}},kr));return Nr(Jt)}),ct=Xt,Rt=lt=>Xe.createElement(en.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Xe.createElement(Xt,Object.assign({},lt)));ct._InternalPanelDoNotUseOrYouWillBeFired=Rt;var rn=ct},9432:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return At},n:function(){return gt}});var me=oe(19248),Me=oe(92310),Pe=oe.n(Me),pt=oe(93681),ge=oe(8654),ke=oe(59301),he=oe(19080),we=oe(36355),Ee=oe(1684),ze=oe(19716),vt=oe(32441),Ie=oe(33234),He=oe(59412),st=oe(9937);function Je(dt){return!!(dt.prefix||dt.suffix||dt.allowClear)}var Ue=function(dt,nt){var Ve={};for(var Se in dt)Object.prototype.hasOwnProperty.call(dt,Se)&&nt.indexOf(Se)<0&&(Ve[Se]=dt[Se]);if(dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Se=Object.getOwnPropertySymbols(dt);$e<Se.length;$e++)nt.indexOf(Se[$e])<0&&Object.prototype.propertyIsEnumerable.call(dt,Se[$e])&&(Ve[Se[$e]]=dt[Se[$e]]);return Ve};function gt(dt,nt){if(!dt)return;dt.focus(nt);const{cursor:Ve}=nt||{};if(Ve){const Se=dt.value.length;switch(Ve){case"start":dt.setSelectionRange(0,0);break;case"end":dt.setSelectionRange(Se,Se);break;default:dt.setSelectionRange(0,Se);break}}}var At=(0,ke.forwardRef)((dt,nt)=>{var Ve;const{prefixCls:Se,bordered:$e=!0,status:Ye,size:ht,disabled:Xe,onBlur:ut,onFocus:Oe,suffix:Pt,allowClear:qe,addonAfter:zt,addonBefore:Dt,className:Bt,style:St,styles:It,rootClassName:Qe,onChange:be,classNames:Ct}=dt,Yt=Ue(dt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Zt,direction:at,input:ot}=ke.useContext(we.E_),Nt=Zt("input",Se),Sn=(0,ke.useRef)(null),[$t,mn]=(0,st.ZP)(Nt),{compactSize:on,compactItemClassnames:nn}=(0,Ie.ri)(Nt,at),en=(0,ze.Z)(Xt=>{var ct;return(ct=ht!=null?ht:on)!==null&&ct!==void 0?ct:Xt}),ye=ke.useContext(Ee.Z),ue=Xe!=null?Xe:ye,{status:se,hasFeedback:ce,feedbackIcon:de}=(0,ke.useContext)(vt.aM),ae=(0,he.F)(se,Ye),Be=Je(dt)||!!ce,ft=(0,ke.useRef)(Be);(0,ke.useEffect)(()=>{var Xt;Be&&ft.current,ft.current=Be},[Be]);const Fe=(0,He.Z)(Sn,!0),De=Xt=>{Fe(),ut==null||ut(Xt)},mt=Xt=>{Fe(),Oe==null||Oe(Xt)},rt=Xt=>{Fe(),be==null||be(Xt)},Ge=(ce||Pt)&&ke.createElement(ke.Fragment,null,Pt,ce&&de);let xt;return typeof qe=="object"&&(qe!=null&&qe.clearIcon)?xt=qe:qe&&(xt={clearIcon:ke.createElement(me.Z,null)}),$t(ke.createElement(pt.default,Object.assign({ref:(0,ge.sQ)(nt,Sn),prefixCls:Nt,autoComplete:ot==null?void 0:ot.autoComplete},Yt,{disabled:ue,onBlur:De,onFocus:mt,style:Object.assign(Object.assign({},ot==null?void 0:ot.style),St),styles:Object.assign(Object.assign({},ot==null?void 0:ot.styles),It),suffix:Ge,allowClear:xt,className:Pe()(Bt,Qe,nn,ot==null?void 0:ot.className),onChange:rt,addonAfter:zt&&ke.createElement(Ie.BR,null,ke.createElement(vt.Ux,{override:!0,status:!0},zt)),addonBefore:Dt&&ke.createElement(Ie.BR,null,ke.createElement(vt.Ux,{override:!0,status:!0},Dt)),classNames:Object.assign(Object.assign(Object.assign({},Ct),ot==null?void 0:ot.classNames),{input:Pe()({[`${Nt}-sm`]:en==="small",[`${Nt}-lg`]:en==="large",[`${Nt}-rtl`]:at==="rtl",[`${Nt}-borderless`]:!$e},!Be&&(0,he.Z)(Nt,ae),Ct==null?void 0:Ct.input,(Ve=ot==null?void 0:ot.classNames)===null||Ve===void 0?void 0:Ve.input,mn)}),classes:{affixWrapper:Pe()({[`${Nt}-affix-wrapper-sm`]:en==="small",[`${Nt}-affix-wrapper-lg`]:en==="large",[`${Nt}-affix-wrapper-rtl`]:at==="rtl",[`${Nt}-affix-wrapper-borderless`]:!$e},(0,he.Z)(`${Nt}-affix-wrapper`,ae,ce),mn),wrapper:Pe()({[`${Nt}-group-rtl`]:at==="rtl"},mn),group:Pe()({[`${Nt}-group-wrapper-sm`]:en==="small",[`${Nt}-group-wrapper-lg`]:en==="large",[`${Nt}-group-wrapper-rtl`]:at==="rtl",[`${Nt}-group-wrapper-disabled`]:ue},(0,he.Z)(`${Nt}-group-wrapper`,ae,ce),mn)}})))})},1643:function(An,Ut,oe){"use strict";var me=oe(19248),Me=oe(92310),Pe=oe.n(Me),pt=oe(9296),ge=oe(59301),ke=oe(19080),he=oe(36355),we=oe(1684),Ee=oe(19716),ze=oe(32441),vt=oe(9432),Ie=oe(9937),He=function(Je,Ue){var gt={};for(var Et in Je)Object.prototype.hasOwnProperty.call(Je,Et)&&Ue.indexOf(Et)<0&&(gt[Et]=Je[Et]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,Et=Object.getOwnPropertySymbols(Je);At<Et.length;At++)Ue.indexOf(Et[At])<0&&Object.prototype.propertyIsEnumerable.call(Je,Et[At])&&(gt[Et[At]]=Je[Et[At]]);return gt};const st=(0,ge.forwardRef)((Je,Ue)=>{const{prefixCls:gt,bordered:Et=!0,size:At,disabled:dt,status:nt,allowClear:Ve,showCount:Se,classNames:$e,rootClassName:Ye,className:ht}=Je,Xe=He(Je,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:ut,direction:Oe}=ge.useContext(he.E_),Pt=(0,Ee.Z)(At),qe=ge.useContext(we.Z),zt=dt!=null?dt:qe,{status:Dt,hasFeedback:Bt,feedbackIcon:St}=ge.useContext(ze.aM),It=(0,ke.F)(Dt,nt),Qe=ge.useRef(null);ge.useImperativeHandle(Ue,()=>{var at;return{resizableTextArea:(at=Qe.current)===null||at===void 0?void 0:at.resizableTextArea,focus:ot=>{var Nt,Sn;(0,vt.n)((Sn=(Nt=Qe.current)===null||Nt===void 0?void 0:Nt.resizableTextArea)===null||Sn===void 0?void 0:Sn.textArea,ot)},blur:()=>{var ot;return(ot=Qe.current)===null||ot===void 0?void 0:ot.blur()}}});const be=ut("input",gt);let Ct;typeof Ve=="object"&&(Ve!=null&&Ve.clearIcon)?Ct=Ve:Ve&&(Ct={clearIcon:ge.createElement(me.Z,null)});const[Yt,Zt]=(0,Ie.ZP)(be);return Yt(ge.createElement(pt.default,Object.assign({},Xe,{disabled:zt,allowClear:Ct,className:Pe()(ht,Ye),classes:{affixWrapper:Pe()(`${be}-textarea-affix-wrapper`,{[`${be}-affix-wrapper-rtl`]:Oe==="rtl",[`${be}-affix-wrapper-borderless`]:!Et,[`${be}-affix-wrapper-sm`]:Pt==="small",[`${be}-affix-wrapper-lg`]:Pt==="large",[`${be}-textarea-show-count`]:Se},(0,ke.Z)(`${be}-affix-wrapper`,It),Zt)},classNames:Object.assign(Object.assign({},$e),{textarea:Pe()({[`${be}-borderless`]:!Et,[`${be}-sm`]:Pt==="small",[`${be}-lg`]:Pt==="large"},(0,ke.Z)(be,It),Zt,$e==null?void 0:$e.textarea)}),prefixCls:be,suffix:Bt&&ge.createElement("span",{className:`${be}-textarea-suffix`},St),showCount:Se,ref:Qe})))});Ut.Z=st},59412:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return Me}});var me=oe(59301);function Me(Pe,pt){const ge=(0,me.useRef)([]),ke=()=>{ge.current.push(setTimeout(()=>{var he,we,Ee,ze;!((he=Pe.current)===null||he===void 0)&&he.input&&((we=Pe.current)===null||we===void 0?void 0:we.input.getAttribute("type"))==="password"&&(!((Ee=Pe.current)===null||Ee===void 0)&&Ee.input.hasAttribute("value"))&&((ze=Pe.current)===null||ze===void 0||ze.input.removeAttribute("value"))}))};return(0,me.useEffect)(()=>(pt&&ke(),()=>ge.current.forEach(he=>{he&&clearTimeout(he)})),[]),ke}},92832:function(An,Ut,oe){"use strict";oe.d(Ut,{default:function(){return Pt}});var me=oe(92310),Me=oe.n(me),Pe=oe(59301),pt=oe(36355),ge=oe(32441),ke=oe(9937),we=qe=>{const{getPrefixCls:zt,direction:Dt}=(0,Pe.useContext)(pt.E_),{prefixCls:Bt,className:St}=qe,It=zt("input-group",Bt),Qe=zt("input"),[be,Ct]=(0,ke.ZP)(Qe),Yt=Me()(It,{[`${It}-lg`]:qe.size==="large",[`${It}-sm`]:qe.size==="small",[`${It}-compact`]:qe.compact,[`${It}-rtl`]:Dt==="rtl"},Ct,St),Zt=(0,Pe.useContext)(ge.aM),at=(0,Pe.useMemo)(()=>Object.assign(Object.assign({},Zt),{isFormItemInput:!1}),[Zt]);return be(Pe.createElement("span",{className:Yt,style:qe.style,onMouseEnter:qe.onMouseEnter,onMouseLeave:qe.onMouseLeave,onFocus:qe.onFocus,onBlur:qe.onBlur},Pe.createElement(ge.aM.Provider,{value:at},qe.children)))},Ee=oe(9432),ze=oe(73331),vt=oe(15277),Ie=oe(2738),He=oe(8654),st=oe(59412),Je=function(qe,zt){var Dt={};for(var Bt in qe)Object.prototype.hasOwnProperty.call(qe,Bt)&&zt.indexOf(Bt)<0&&(Dt[Bt]=qe[Bt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Bt=Object.getOwnPropertySymbols(qe);St<Bt.length;St++)zt.indexOf(Bt[St])<0&&Object.prototype.propertyIsEnumerable.call(qe,Bt[St])&&(Dt[Bt[St]]=qe[Bt[St]]);return Dt};const Ue=qe=>qe?Pe.createElement(vt.Z,null):Pe.createElement(ze.Z,null),gt={click:"onClick",hover:"onMouseOver"};var At=Pe.forwardRef((qe,zt)=>{const{visibilityToggle:Dt=!0}=qe,Bt=typeof Dt=="object"&&Dt.visible!==void 0,[St,It]=(0,Pe.useState)(()=>Bt?Dt.visible:!1),Qe=(0,Pe.useRef)(null);Pe.useEffect(()=>{Bt&&It(Dt.visible)},[Bt,Dt]);const be=(0,st.Z)(Qe),Ct=()=>{const{disabled:ue}=qe;ue||(St&&be(),It(se=>{var ce;const de=!se;return typeof Dt=="object"&&((ce=Dt.onVisibleChange)===null||ce===void 0||ce.call(Dt,de)),de}))},Yt=ue=>{const{action:se="click",iconRender:ce=Ue}=qe,de=gt[se]||"",ae=ce(St),Be={[de]:Ct,className:`${ue}-icon`,key:"passwordIcon",onMouseDown:ft=>{ft.preventDefault()},onMouseUp:ft=>{ft.preventDefault()}};return Pe.cloneElement(Pe.isValidElement(ae)?ae:Pe.createElement("span",null,ae),Be)},{className:Zt,prefixCls:at,inputPrefixCls:ot,size:Nt}=qe,Sn=Je(qe,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$t}=Pe.useContext(pt.E_),mn=$t("input",ot),on=$t("input-password",at),nn=Dt&&Yt(on),en=Me()(on,Zt,{[`${on}-${Nt}`]:!!Nt}),ye=Object.assign(Object.assign({},(0,Ie.Z)(Sn,["suffix","iconRender","visibilityToggle"])),{type:St?"text":"password",className:en,prefixCls:mn,suffix:nn});return Nt&&(ye.size=Nt),Pe.createElement(Ee.Z,Object.assign({ref:(0,He.sQ)(zt,Qe)},ye))}),dt=oe(47472),nt=oe(92343),Ve=oe(3113),Se=oe(19716),$e=oe(33234),Ye=function(qe,zt){var Dt={};for(var Bt in qe)Object.prototype.hasOwnProperty.call(qe,Bt)&&zt.indexOf(Bt)<0&&(Dt[Bt]=qe[Bt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Bt=Object.getOwnPropertySymbols(qe);St<Bt.length;St++)zt.indexOf(Bt[St])<0&&Object.prototype.propertyIsEnumerable.call(qe,Bt[St])&&(Dt[Bt[St]]=qe[Bt[St]]);return Dt},Xe=Pe.forwardRef((qe,zt)=>{const{prefixCls:Dt,inputPrefixCls:Bt,className:St,size:It,suffix:Qe,enterButton:be=!1,addonAfter:Ct,loading:Yt,disabled:Zt,onSearch:at,onChange:ot,onCompositionStart:Nt,onCompositionEnd:Sn}=qe,$t=Ye(qe,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:mn,direction:on}=Pe.useContext(pt.E_),nn=Pe.useRef(!1),en=mn("input-search",Dt),ye=mn("input",Bt),{compactSize:ue}=(0,$e.ri)(en,on),se=(0,Se.Z)(Rt=>{var rn;return(rn=It!=null?It:ue)!==null&&rn!==void 0?rn:Rt}),ce=Pe.useRef(null),de=Rt=>{Rt&&Rt.target&&Rt.type==="click"&&at&&at(Rt.target.value,Rt,{source:"clear"}),ot&&ot(Rt)},ae=Rt=>{var rn;document.activeElement===((rn=ce.current)===null||rn===void 0?void 0:rn.input)&&Rt.preventDefault()},Be=Rt=>{var rn,lt;at&&at((lt=(rn=ce.current)===null||rn===void 0?void 0:rn.input)===null||lt===void 0?void 0:lt.value,Rt,{source:"input"})},ft=Rt=>{nn.current||Yt||Be(Rt)},Fe=typeof be=="boolean"?Pe.createElement(dt.Z,null):null,De=`${en}-button`;let mt;const rt=be||{},Ge=rt.type&&rt.type.__ANT_BUTTON===!0;Ge||rt.type==="button"?mt=(0,nt.Tm)(rt,Object.assign({onMouseDown:ae,onClick:Rt=>{var rn,lt;(lt=(rn=rt==null?void 0:rt.props)===null||rn===void 0?void 0:rn.onClick)===null||lt===void 0||lt.call(rn,Rt),Be(Rt)},key:"enterButton"},Ge?{className:De,size:se}:{})):mt=Pe.createElement(Ve.ZP,{className:De,type:be?"primary":void 0,size:se,disabled:Zt,key:"enterButton",onMouseDown:ae,onClick:Be,loading:Yt,icon:Fe},be),Ct&&(mt=[mt,(0,nt.Tm)(Ct,{key:"addonAfter"})]);const xt=Me()(en,{[`${en}-rtl`]:on==="rtl",[`${en}-${se}`]:!!se,[`${en}-with-button`]:!!be},St),Xt=Rt=>{nn.current=!0,Nt==null||Nt(Rt)},ct=Rt=>{nn.current=!1,Sn==null||Sn(Rt)};return Pe.createElement(Ee.Z,Object.assign({ref:(0,He.sQ)(ce,zt),onPressEnter:ft},$t,{size:se,onCompositionStart:Xt,onCompositionEnd:ct,prefixCls:ye,addonAfter:mt,suffix:Qe,onChange:de,className:xt,disabled:Zt}))}),ut=oe(1643);const Oe=Ee.Z;Oe.Group=we,Oe.Search=Xe,Oe.TextArea=ut.Z,Oe.Password=At;var Pt=Oe},9937:function(An,Ut,oe){"use strict";oe.d(Ut,{M1:function(){return he},TM:function(){return nt},Xy:function(){return we},bi:function(){return vt},e5:function(){return dt},ik:function(){return Ie},nz:function(){return ge},pU:function(){return ke},s7:function(){return He},x0:function(){return ze}});var me=oe(17313),Me=oe(74207),Pe=oe(37613),pt=oe(83116);const ge=Ve=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Ve,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),ke=Ve=>({borderColor:Ve.hoverBorderColor}),he=Ve=>({borderColor:Ve.activeBorderColor,boxShadow:Ve.activeShadow,outline:0}),we=Ve=>({color:Ve.colorTextDisabled,backgroundColor:Ve.colorBgContainerDisabled,borderColor:Ve.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},ke((0,Pe.TS)(Ve,{hoverBorderColor:Ve.colorBorder})))}),Ee=Ve=>{const{paddingBlockLG:Se,fontSizeLG:$e,lineHeightLG:Ye,borderRadiusLG:ht,paddingInlineLG:Xe}=Ve;return{padding:`${Se}px ${Xe}px`,fontSize:$e,lineHeight:Ye,borderRadius:ht}},ze=Ve=>({padding:`${Ve.paddingBlockSM}px ${Ve.paddingInlineSM}px`,borderRadius:Ve.borderRadiusSM}),vt=(Ve,Se)=>{const{componentCls:$e,colorError:Ye,colorWarning:ht,errorActiveShadow:Xe,warningActiveShadow:ut,colorErrorBorderHover:Oe,colorWarningBorderHover:Pt}=Ve;return{[`&-status-error:not(${Se}-disabled):not(${Se}-borderless)${Se}`]:{borderColor:Ye,"&:hover":{borderColor:Oe},"&:focus, &-focused":Object.assign({},he((0,Pe.TS)(Ve,{activeBorderColor:Ye,activeShadow:Xe}))),[`${$e}-prefix, ${$e}-suffix`]:{color:Ye}},[`&-status-warning:not(${Se}-disabled):not(${Se}-borderless)${Se}`]:{borderColor:ht,"&:hover":{borderColor:Pt},"&:focus, &-focused":Object.assign({},he((0,Pe.TS)(Ve,{activeBorderColor:ht,activeShadow:ut}))),[`${$e}-prefix, ${$e}-suffix`]:{color:ht}}}},Ie=Ve=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ve.paddingBlock}px ${Ve.paddingInline}px`,color:Ve.colorText,fontSize:Ve.fontSize,lineHeight:Ve.lineHeight,backgroundColor:Ve.colorBgContainer,backgroundImage:"none",borderWidth:Ve.lineWidth,borderStyle:Ve.lineType,borderColor:Ve.colorBorder,borderRadius:Ve.borderRadius,transition:`all ${Ve.motionDurationMid}`},ge(Ve.colorTextPlaceholder)),{"&:hover":Object.assign({},ke(Ve)),"&:focus, &-focused":Object.assign({},he(Ve)),"&-disabled, &[disabled]":Object.assign({},we(Ve)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Ve.controlHeight,lineHeight:Ve.lineHeight,verticalAlign:"bottom",transition:`all ${Ve.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Ee(Ve)),"&-sm":Object.assign({},ze(Ve)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),He=Ve=>{const{componentCls:Se,antCls:$e}=Ve;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Ve.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Se}, &-lg > ${Se}-group-addon`]:Object.assign({},Ee(Ve)),[`&-sm ${Se}, &-sm > ${Se}-group-addon`]:Object.assign({},ze(Ve)),[`&-lg ${$e}-select-single ${$e}-select-selector`]:{height:Ve.controlHeightLG},[`&-sm ${$e}-select-single ${$e}-select-selector`]:{height:Ve.controlHeightSM},[`> ${Se}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Se}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Ve.paddingInline}px`,color:Ve.colorText,fontWeight:"normal",fontSize:Ve.fontSize,textAlign:"center",backgroundColor:Ve.colorFillAlter,border:`${Ve.lineWidth}px ${Ve.lineType} ${Ve.colorBorder}`,borderRadius:Ve.borderRadius,transition:`all ${Ve.motionDurationSlow}`,lineHeight:1,[`${$e}-select`]:{margin:`-${Ve.paddingBlock+1}px -${Ve.paddingInline}px`,[`&${$e}-select-single:not(${$e}-select-customize-input)`]:{[`${$e}-select-selector`]:{backgroundColor:"inherit",border:`${Ve.lineWidth}px ${Ve.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${$e}-select-selector`]:{color:Ve.colorPrimary}}},[`${$e}-cascader-picker`]:{margin:`-9px -${Ve.paddingInline}px`,backgroundColor:"transparent",[`${$e}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Se}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Se}-search-with-button &`]:{zIndex:0}}},[`> ${Se}:first-child, ${Se}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${$e}-select ${$e}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Se}-affix-wrapper`]:{[`&:not(:first-child) ${Se}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Se}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Se}:last-child, ${Se}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${$e}-select ${$e}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Se}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Se}-search &`]:{borderStartStartRadius:Ve.borderRadius,borderEndStartRadius:Ve.borderRadius}},[`&:not(:first-child), ${Se}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Se}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,me.dF)()),{[`${Se}-group-addon, ${Se}-group-wrap, > ${Se}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Ve.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${Se}-affix-wrapper,
& > ${Se}-number-affix-wrapper,
& > ${$e}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Ve.lineWidth,borderInlineEndWidth:Ve.lineWidth},[`${Se}`]:{float:"none"},[`& > ${$e}-select > ${$e}-select-selector,
& > ${$e}-select-auto-complete ${Se},
& > ${$e}-cascader-picker ${Se},
& > ${Se}-group-wrapper ${Se}`]:{borderInlineEndWidth:Ve.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${$e}-select-focused`]:{zIndex:1},[`& > ${$e}-select > ${$e}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${$e}-select:first-child > ${$e}-select-selector,
& > ${$e}-select-auto-complete:first-child ${Se},
& > ${$e}-cascader-picker:first-child ${Se}`]:{borderStartStartRadius:Ve.borderRadius,borderEndStartRadius:Ve.borderRadius},[`& > *:last-child,
& > ${$e}-select:last-child > ${$e}-select-selector,
& > ${$e}-cascader-picker:last-child ${Se},
& > ${$e}-cascader-picker-focused:last-child ${Se}`]:{borderInlineEndWidth:Ve.lineWidth,borderStartEndRadius:Ve.borderRadius,borderEndEndRadius:Ve.borderRadius},[`& > ${$e}-select-auto-complete ${Se}`]:{verticalAlign:"top"},[`${Se}-group-wrapper + ${Se}-group-wrapper`]:{marginInlineStart:-Ve.lineWidth,[`${Se}-affix-wrapper`]:{borderRadius:0}},[`${Se}-group-wrapper:not(:last-child)`]:{[`&${Se}-search > ${Se}-group`]:{[`& > ${Se}-group-addon > ${Se}-search-button`]:{borderRadius:0},[`& > ${Se}`]:{borderStartStartRadius:Ve.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ve.borderRadius}}}})}},st=Ve=>{const{componentCls:Se,controlHeightSM:$e,lineWidth:Ye}=Ve,Xe=($e-Ye*2-16)/2;return{[Se]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,me.Wf)(Ve)),Ie(Ve)),vt(Ve,Se)),{'&[type="color"]':{height:Ve.controlHeight,[`&${Se}-lg`]:{height:Ve.controlHeightLG},[`&${Se}-sm`]:{height:$e,paddingTop:Xe,paddingBottom:Xe}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Je=Ve=>{const{componentCls:Se}=Ve;return{[`${Se}-clear-icon`]:{margin:0,color:Ve.colorTextQuaternary,fontSize:Ve.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Ve.motionDurationSlow}`,"&:hover":{color:Ve.colorTextTertiary},"&:active":{color:Ve.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ve.inputAffixPadding}px`}}}},Ue=Ve=>{const{componentCls:Se,inputAffixPadding:$e,colorTextDescription:Ye,motionDurationSlow:ht,colorIcon:Xe,colorIconHover:ut,iconCls:Oe}=Ve;return{[`${Se}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ie(Ve)),{display:"inline-flex",[`&:not(${Se}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},ke(Ve)),{zIndex:1,[`${Se}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Se}[disabled]`]:{background:"transparent"}},[`> input${Se}`]:{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"'},[`${Se}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Ve.paddingXS}},"&-show-count-suffix":{color:Ye},"&-show-count-has-suffix":{marginInlineEnd:Ve.paddingXXS},"&-prefix":{marginInlineEnd:$e},"&-suffix":{marginInlineStart:$e}}}),Je(Ve)),{[`${Oe}${Se}-password-icon`]:{color:Xe,cursor:"pointer",transition:`all ${ht}`,"&:hover":{color:ut}}}),vt(Ve,`${Se}-affix-wrapper`))}},gt=Ve=>{const{componentCls:Se,colorError:$e,colorWarning:Ye,borderRadiusLG:ht,borderRadiusSM:Xe}=Ve;return{[`${Se}-group`]:Object.assign(Object.assign(Object.assign({},(0,me.Wf)(Ve)),He(Ve)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Se}-group-addon`]:{borderRadius:ht,fontSize:Ve.fontSizeLG}},"&-sm":{[`${Se}-group-addon`]:{borderRadius:Xe}},"&-status-error":{[`${Se}-group-addon`]:{color:$e,borderColor:$e}},"&-status-warning":{[`${Se}-group-addon`]:{color:Ye,borderColor:Ye}},"&-disabled":{[`${Se}-group-addon`]:Object.assign({},we(Ve))},[`&:not(${Se}-compact-first-item):not(${Se}-compact-last-item)${Se}-compact-item`]:{[`${Se}, ${Se}-group-addon`]:{borderRadius:0}},[`&:not(${Se}-compact-last-item)${Se}-compact-first-item`]:{[`${Se}, ${Se}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Se}-compact-first-item)${Se}-compact-last-item`]:{[`${Se}, ${Se}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},Et=Ve=>{const{componentCls:Se,antCls:$e}=Ve,Ye=`${Se}-search`;return{[Ye]:{[`${Se}`]:{"&:hover, &:focus":{borderColor:Ve.colorPrimaryHover,[`+ ${Se}-group-addon ${Ye}-button:not(${$e}-btn-primary)`]:{borderInlineStartColor:Ve.colorPrimaryHover}}},[`${Se}-affix-wrapper`]:{borderRadius:0},[`${Se}-lg`]:{lineHeight:Ve.lineHeightLG-2e-4},[`> ${Se}-group`]:{[`> ${Se}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Ye}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Ve.borderRadius,borderEndEndRadius:Ve.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Ye}-button:not(${$e}-btn-primary)`]:{color:Ve.colorTextDescription,"&:hover":{color:Ve.colorPrimaryHover},"&:active":{color:Ve.colorPrimaryActive},[`&${$e}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Ye}-button`]:{height:Ve.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Ye}-button`]:{height:Ve.controlHeightLG},[`&-small ${Ye}-button`]:{height:Ve.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Se}-compact-item`]:{[`&:not(${Se}-compact-last-item)`]:{[`${Se}-group-addon`]:{[`${Se}-search-button`]:{marginInlineEnd:-Ve.lineWidth,borderRadius:0}}},[`&:not(${Se}-compact-first-item)`]:{[`${Se},${Se}-affix-wrapper`]:{borderRadius:0}},[`> ${Se}-group-addon ${Se}-search-button,
> ${Se},
${Se}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Se}-affix-wrapper-focused`]:{zIndex:2}}}}},At=Ve=>{const{componentCls:Se,paddingLG:$e}=Ve,Ye=`${Se}-textarea`;return{[Ye]:{position:"relative","&-show-count":{[`> ${Se}`]:{height:"100%"},[`${Se}-data-count`]:{position:"absolute",bottom:-Ve.fontSize*Ve.lineHeight,insetInlineEnd:0,color:Ve.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Se}`]:{paddingInlineEnd:$e}},[`&-affix-wrapper${Ye}-has-feedback`]:{[`${Se}`]:{paddingInlineEnd:$e}},[`&-affix-wrapper${Se}-affix-wrapper`]:{padding:0,[`> textarea${Se}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Se}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Se}-clear-icon`]:{position:"absolute",insetInlineEnd:Ve.paddingXS,insetBlockStart:Ve.paddingXS},[`${Ye}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ve.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function dt(Ve){return(0,Pe.TS)(Ve,{inputAffixPadding:Ve.paddingXXS})}const nt=Ve=>{const{controlHeight:Se,fontSize:$e,lineHeight:Ye,lineWidth:ht,controlHeightSM:Xe,controlHeightLG:ut,fontSizeLG:Oe,lineHeightLG:Pt,paddingSM:qe,controlPaddingHorizontalSM:zt,controlPaddingHorizontal:Dt,colorFillAlter:Bt,colorPrimaryHover:St,controlOutlineWidth:It,controlOutline:Qe,colorErrorOutline:be,colorWarningOutline:Ct}=Ve;return{paddingBlock:Math.max(Math.round((Se-$e*Ye)/2*10)/10-ht,3),paddingBlockSM:Math.max(Math.round((Xe-$e*Ye)/2*10)/10-ht,0),paddingBlockLG:Math.ceil((ut-Oe*Pt)/2*10)/10-ht,paddingInline:qe-ht,paddingInlineSM:zt-ht,paddingInlineLG:Dt-ht,addonBg:Bt,activeBorderColor:St,hoverBorderColor:St,activeShadow:`0 0 0 ${It}px ${Qe}`,errorActiveShadow:`0 0 0 ${It}px ${be}`,warningActiveShadow:`0 0 0 ${It}px ${Ct}`}};Ut.ZP=(0,pt.Z)("Input",Ve=>{const Se=(0,Pe.TS)(Ve,dt(Ve));return[st(Se),At(Se),Ue(Se),gt(Se),Et(Se),(0,Me.c)(Se)]},nt)},45818:function(An,Ut,oe){"use strict";oe.d(Ut,{D:function(){return dt},Z:function(){return Se}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(Ye,ht){return Me.createElement(ge.Z,(0,me.Z)({},Ye,{ref:ht,icon:pt}))},he=Me.forwardRef(ke),we=he,Ee=oe(33853),ze=oe(38819),vt=oe(92310),Ie=oe.n(vt),He=oe(2738),Je=$e=>!isNaN(parseFloat($e))&&isFinite($e),Ue=oe(36355),gt=oe(84966),Et=function($e,Ye){var ht={};for(var Xe in $e)Object.prototype.hasOwnProperty.call($e,Xe)&&Ye.indexOf(Xe)<0&&(ht[Xe]=$e[Xe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Xe=Object.getOwnPropertySymbols($e);ut<Xe.length;ut++)Ye.indexOf(Xe[ut])<0&&Object.prototype.propertyIsEnumerable.call($e,Xe[ut])&&(ht[Xe[ut]]=$e[Xe[ut]]);return ht};const At={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},dt=Me.createContext({}),nt=(()=>{let $e=0;return function(){let Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return $e+=1,`${Ye}${$e}`}})();var Se=Me.forwardRef(($e,Ye)=>{const{prefixCls:ht,className:Xe,trigger:ut,children:Oe,defaultCollapsed:Pt=!1,theme:qe="dark",style:zt={},collapsible:Dt=!1,reverseArrow:Bt=!1,width:St=200,collapsedWidth:It=80,zeroWidthTriggerStyle:Qe,breakpoint:be,onCollapse:Ct,onBreakpoint:Yt}=$e,Zt=Et($e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:at}=(0,Me.useContext)(gt.Gs),[ot,Nt]=(0,Me.useState)("collapsed"in $e?$e.collapsed:Pt),[Sn,$t]=(0,Me.useState)(!1);(0,Me.useEffect)(()=>{"collapsed"in $e&&Nt($e.collapsed)},[$e.collapsed]);const mn=(se,ce)=>{"collapsed"in $e||Nt(se),Ct==null||Ct(se,ce)},on=(0,Me.useRef)();on.current=se=>{$t(se.matches),Yt==null||Yt(se.matches),ot!==se.matches&&mn(se.matches,"responsive")},(0,Me.useEffect)(()=>{function se(de){return on.current(de)}let ce;if(typeof window!="undefined"){const{matchMedia:de}=window;if(de&&be&&be in At){ce=de(`(max-width: ${At[be]})`);try{ce.addEventListener("change",se)}catch(ae){ce.addListener(se)}se(ce)}}return()=>{try{ce==null||ce.removeEventListener("change",se)}catch(de){ce==null||ce.removeListener(se)}}},[be]),(0,Me.useEffect)(()=>{const se=nt("ant-sider-");return at.addSider(se),()=>at.removeSider(se)},[]);const nn=()=>{mn(!ot,"clickTrigger")},{getPrefixCls:en}=(0,Me.useContext)(Ue.E_),ye=()=>{const se=en("layout-sider",ht),ce=(0,He.Z)(Zt,["collapsed"]),de=ot?It:St,ae=Je(de)?`${de}px`:String(de),Be=parseFloat(String(It||0))===0?Me.createElement("span",{onClick:nn,className:Ie()(`${se}-zero-width-trigger`,`${se}-zero-width-trigger-${Bt?"right":"left"}`),style:Qe},ut||Me.createElement(we,null)):null,De={expanded:Bt?Me.createElement(ze.Z,null):Me.createElement(Ee.Z,null),collapsed:Bt?Me.createElement(Ee.Z,null):Me.createElement(ze.Z,null)}[ot?"collapsed":"expanded"],mt=ut!==null?Be||Me.createElement("div",{className:`${se}-trigger`,onClick:nn,style:{width:ae}},ut||De):null,rt=Object.assign(Object.assign({},zt),{flex:`0 0 ${ae}`,maxWidth:ae,minWidth:ae,width:ae}),Ge=Ie()(se,`${se}-${qe}`,{[`${se}-collapsed`]:!!ot,[`${se}-has-trigger`]:Dt&&ut!==null&&!Be,[`${se}-below`]:!!Sn,[`${se}-zero-width`]:parseFloat(ae)===0},Xe);return Me.createElement("aside",Object.assign({className:Ge},ce,{style:rt,ref:Ye}),Me.createElement("div",{className:`${se}-children`},Oe),Dt||Sn&&Be?mt:null)},ue=Me.useMemo(()=>({siderCollapsed:ot}),[ot]);return Me.createElement(dt.Provider,{value:ue},ye())})},84966:function(An,Ut,oe){"use strict";oe.d(Ut,{VY:function(){return dt},$_:function(){return At},h4:function(){return Et},Gs:function(){return He},ZP:function(){return nt}});var me=oe(77654),Me=oe(92310),Pe=oe.n(Me),pt=oe(2738),ge=oe(59301),ke=oe(36355),he=oe(83116),Ee=Ve=>{const{componentCls:Se,bodyBg:$e,lightSiderBg:Ye,lightTriggerBg:ht,lightTriggerColor:Xe}=Ve;return{[`${Se}-sider-light`]:{background:Ye,[`${Se}-sider-trigger`]:{color:Xe,background:ht},[`${Se}-sider-zero-width-trigger`]:{color:Xe,background:ht,border:`1px solid ${$e}`,borderInlineStart:0}}}};const ze=Ve=>{const{antCls:Se,componentCls:$e,colorText:Ye,triggerColor:ht,footerBg:Xe,triggerBg:ut,headerHeight:Oe,headerPadding:Pt,headerColor:qe,footerPadding:zt,triggerHeight:Dt,zeroTriggerHeight:Bt,zeroTriggerWidth:St,motionDurationMid:It,motionDurationSlow:Qe,fontSize:be,borderRadius:Ct,bodyBg:Yt,headerBg:Zt,siderBg:at}=Ve;return{[$e]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Yt,"&, *":{boxSizing:"border-box"},[`&${$e}-has-sider`]:{flexDirection:"row",[`> ${$e}, > ${$e}-content`]:{width:0}},[`${$e}-header, &${$e}-footer`]:{flex:"0 0 auto"},[`${$e}-sider`]:{position:"relative",minWidth:0,background:at,transition:`all ${It}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Se}-menu${Se}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Dt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Dt,color:ht,lineHeight:`${Dt}px`,textAlign:"center",background:ut,cursor:"pointer",transition:`all ${It}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Oe,insetInlineEnd:-St,zIndex:1,width:St,height:Bt,color:ht,fontSize:Ve.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:at,borderStartStartRadius:0,borderStartEndRadius:Ct,borderEndEndRadius:Ct,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Qe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Qe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-St,borderStartStartRadius:Ct,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ct}}}}},Ee(Ve)),{"&-rtl":{direction:"rtl"}}),[`${$e}-header`]:{height:Oe,padding:Pt,color:qe,lineHeight:`${Oe}px`,background:Zt,[`${Se}-menu`]:{lineHeight:"inherit"}},[`${$e}-footer`]:{padding:zt,color:Ye,fontSize:be,background:Xe},[`${$e}-content`]:{flex:"auto",minHeight:0}}};var vt=(0,he.Z)("Layout",Ve=>[ze(Ve)],Ve=>{const{colorBgLayout:Se,controlHeight:$e,controlHeightLG:Ye,colorText:ht,controlHeightSM:Xe,marginXXS:ut,colorTextLightSolid:Oe,colorBgContainer:Pt}=Ve,qe=Ye*1.25;return{colorBgHeader:"#001529",colorBgBody:Se,colorBgTrigger:"#002140",bodyBg:Se,headerBg:"#001529",headerHeight:$e*2,headerPadding:`0 ${qe}px`,headerColor:ht,footerPadding:`${Xe}px ${qe}px`,footerBg:Se,siderBg:"#001529",triggerHeight:Ye+ut*2,triggerBg:"#002140",triggerColor:Oe,zeroTriggerWidth:Ye,zeroTriggerHeight:Ye,lightSiderBg:Pt,lightTriggerBg:Pt,lightTriggerColor:ht}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ie=function(Ve,Se){var $e={};for(var Ye in Ve)Object.prototype.hasOwnProperty.call(Ve,Ye)&&Se.indexOf(Ye)<0&&($e[Ye]=Ve[Ye]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Ye=Object.getOwnPropertySymbols(Ve);ht<Ye.length;ht++)Se.indexOf(Ye[ht])<0&&Object.prototype.propertyIsEnumerable.call(Ve,Ye[ht])&&($e[Ye[ht]]=Ve[Ye[ht]]);return $e};const He=ge.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function st(Ve){let{suffixCls:Se,tagName:$e,displayName:Ye}=Ve;return ht=>ge.forwardRef((ut,Oe)=>ge.createElement(ht,Object.assign({ref:Oe,suffixCls:Se,tagName:$e},ut)))}const Je=ge.forwardRef((Ve,Se)=>{const{prefixCls:$e,suffixCls:Ye,className:ht,tagName:Xe}=Ve,ut=Ie(Ve,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Oe}=ge.useContext(ke.E_),Pt=Oe("layout",$e),[qe,zt]=vt(Pt),Dt=Ye?`${Pt}-${Ye}`:Pt;return qe(ge.createElement(Xe,Object.assign({className:Pe()($e||Dt,ht,zt),ref:Se},ut)))}),Ue=ge.forwardRef((Ve,Se)=>{const{direction:$e}=ge.useContext(ke.E_),[Ye,ht]=ge.useState([]),{prefixCls:Xe,className:ut,rootClassName:Oe,children:Pt,hasSider:qe,tagName:zt,style:Dt}=Ve,Bt=Ie(Ve,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),St=(0,pt.Z)(Bt,["suffixCls"]),{getPrefixCls:It,layout:Qe}=ge.useContext(ke.E_),be=It("layout",Xe),[Ct,Yt]=vt(be),Zt=Pe()(be,{[`${be}-has-sider`]:typeof qe=="boolean"?qe:Ye.length>0,[`${be}-rtl`]:$e==="rtl"},Qe==null?void 0:Qe.className,ut,Oe,Yt),at=ge.useMemo(()=>({siderHook:{addSider:ot=>{ht(Nt=>[].concat((0,me.Z)(Nt),[ot]))},removeSider:ot=>{ht(Nt=>Nt.filter(Sn=>Sn!==ot))}}}),[]);return Ct(ge.createElement(He.Provider,{value:at},ge.createElement(zt,Object.assign({ref:Se,className:Zt,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),Dt)},St),Pt)))}),gt=st({tagName:"div",displayName:"Layout"})(Ue),Et=st({suffixCls:"header",tagName:"header",displayName:"Header"})(Je),At=st({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Je),dt=st({suffixCls:"content",tagName:"main",displayName:"Content"})(Je);var nt=gt},40875:function(An,Ut,oe){"use strict";oe.d(Ut,{J:function(){return ke}});var me=oe(59301),Me=oe(33234),Pe=oe(70425),pt=function(he,we){var Ee={};for(var ze in he)Object.prototype.hasOwnProperty.call(he,ze)&&we.indexOf(ze)<0&&(Ee[ze]=he[ze]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,ze=Object.getOwnPropertySymbols(he);vt<ze.length;vt++)we.indexOf(ze[vt])<0&&Object.prototype.propertyIsEnumerable.call(he,ze[vt])&&(Ee[ze[vt]]=he[ze[vt]]);return Ee};const ge=me.createContext(null),ke=me.forwardRef((he,we)=>{const{children:Ee}=he,ze=pt(he,["children"]),vt=me.useContext(ge),Ie=me.useMemo(()=>Object.assign(Object.assign({},vt),ze),[vt,ze.prefixCls,ze.mode,ze.selectable]);return me.createElement(ge.Provider,{value:Ie},me.createElement(Me.BR,null,(0,Pe.supportNodeRef)(Ee)?me.cloneElement(Ee,{ref:we}):Ee))});Ut.Z=ge},20834:function(An,Ut,oe){"use strict";oe.d(Ut,{default:function(){return ue}});var me=oe(15285),Me=oe(59301),Pe=oe(45818),pt=oe(92310),ge=oe.n(pt),ke=oe(36355),he=function(se,ce){var de={};for(var ae in se)Object.prototype.hasOwnProperty.call(se,ae)&&ce.indexOf(ae)<0&&(de[ae]=se[ae]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,ae=Object.getOwnPropertySymbols(se);Be<ae.length;Be++)ce.indexOf(ae[Be])<0&&Object.prototype.propertyIsEnumerable.call(se,ae[Be])&&(de[ae[Be]]=se[ae[Be]]);return de},Ee=se=>{const{prefixCls:ce,className:de,dashed:ae}=se,Be=he(se,["prefixCls","className","dashed"]),{getPrefixCls:ft}=Me.useContext(ke.E_),Fe=ft("menu",ce),De=ge()({[`${Fe}-item-divider-dashed`]:!!ae},de);return Me.createElement(me.iz,Object.assign({className:De},Be))},ze=oe(11592),vt=oe(2738),Ie=oe(6848),He=oe(92343),Je=(0,Me.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),gt=se=>{var ce;const{className:de,children:ae,icon:Be,title:ft,danger:Fe}=se,{prefixCls:De,firstLevel:mt,direction:rt,disableMenuItemTitleTooltip:Ge,inlineCollapsed:xt}=Me.useContext(Je),Xt=it=>{const Ot=Me.createElement("span",{className:`${De}-title-content`},ae);return(!Be||(0,He.l$)(ae)&&ae.type==="span")&&ae&&it&&mt&&typeof ae=="string"?Me.createElement("div",{className:`${De}-inline-collapsed-noicon`},ae.charAt(0)):Ot},{siderCollapsed:ct}=Me.useContext(Pe.D);let Rt=ft;typeof ft=="undefined"?Rt=mt?ae:"":ft===!1&&(Rt="");const rn={title:Rt};!ct&&!xt&&(rn.title=null,rn.open=!1);const lt=(0,ze.Z)(ae).length;let Le=Me.createElement(me.ck,Object.assign({},(0,vt.Z)(se,["title","icon","danger"]),{className:ge()({[`${De}-item-danger`]:Fe,[`${De}-item-only-child`]:(Be?lt+1:lt)===1},de),title:typeof ft=="string"?ft:void 0}),(0,He.Tm)(Be,{className:ge()((0,He.l$)(Be)?(ce=Be.props)===null||ce===void 0?void 0:ce.className:"",`${De}-item-icon`)}),Xt(xt));return Ge||(Le=Me.createElement(Ie.Z,Object.assign({},rn,{placement:rt==="rtl"?"left":"right",overlayClassName:`${De}-inline-collapsed-tooltip`}),Le)),Le},At=se=>{var ce;const{popupClassName:de,icon:ae,title:Be,theme:ft}=se,Fe=Me.useContext(Je),{prefixCls:De,inlineCollapsed:mt,theme:rt}=Fe,Ge=(0,me.Xl)();let xt;if(!ae)xt=mt&&!Ge.length&&Be&&typeof Be=="string"?Me.createElement("div",{className:`${De}-inline-collapsed-noicon`},Be.charAt(0)):Me.createElement("span",{className:`${De}-title-content`},Be);else{const ct=(0,He.l$)(Be)&&Be.type==="span";xt=Me.createElement(Me.Fragment,null,(0,He.Tm)(ae,{className:ge()((0,He.l$)(ae)?(ce=ae.props)===null||ce===void 0?void 0:ce.className:"",`${De}-item-icon`)}),ct?Be:Me.createElement("span",{className:`${De}-title-content`},Be))}const Xt=Me.useMemo(()=>Object.assign(Object.assign({},Fe),{firstLevel:!1}),[Fe]);return Me.createElement(Je.Provider,{value:Xt},Me.createElement(me.Wd,Object.assign({},(0,vt.Z)(se,["icon"]),{title:xt,popupClassName:ge()(De,de,`${De}-${ft||rt}`)})))},dt=oe(18785),nt=oe(70425),Ve=oe(62892),Se=oe(40875),$e=function(se,ce){var de={};for(var ae in se)Object.prototype.hasOwnProperty.call(se,ae)&&ce.indexOf(ae)<0&&(de[ae]=se[ae]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,ae=Object.getOwnPropertySymbols(se);Be<ae.length;Be++)ce.indexOf(ae[Be])<0&&Object.prototype.propertyIsEnumerable.call(se,ae[Be])&&(de[ae[Be]]=se[ae[Be]]);return de};function Ye(se){return(se||[]).map((ce,de)=>{if(ce&&typeof ce=="object"){const ae=ce,{label:Be,children:ft,key:Fe,type:De}=ae,mt=$e(ae,["label","children","key","type"]),rt=Fe!=null?Fe:`tmp-${de}`;return ft||De==="group"?De==="group"?Me.createElement(me.BW,Object.assign({key:rt},mt,{title:Be}),Ye(ft)):Me.createElement(At,Object.assign({key:rt},mt,{title:Be}),Ye(ft)):De==="divider"?Me.createElement(Ee,Object.assign({key:rt},mt)):Me.createElement(gt,Object.assign({key:rt},mt),Be)}return null}).filter(ce=>ce)}function ht(se){return Me.useMemo(()=>se&&Ye(se),[se])}var Xe=oe(64993),ut=oe(17313),Oe=oe(8378),Pt=oe(13826),qe=oe(29878),zt=oe(83116),Dt=oe(37613),St=se=>{const{componentCls:ce,motionDurationSlow:de,horizontalLineHeight:ae,colorSplit:Be,lineWidth:ft,lineType:Fe,itemPaddingInline:De}=se;return{[`${ce}-horizontal`]:{lineHeight:ae,border:0,borderBottom:`${ft}px ${Fe} ${Be}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ce}-item, ${ce}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:De},[`> ${ce}-item:hover,
> ${ce}-item-active,
> ${ce}-submenu ${ce}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ce}-item, ${ce}-submenu-title`]:{transition:[`border-color ${de}`,`background ${de}`].join(",")},[`${ce}-submenu-arrow`]:{display:"none"}}}},Qe=se=>{let{componentCls:ce,menuArrowOffset:de}=se;return{[`${ce}-rtl`]:{direction:"rtl"},[`${ce}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ce}-rtl${ce}-vertical,
${ce}-submenu-rtl ${ce}-vertical`]:{[`${ce}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${de})`},"&::after":{transform:`rotate(45deg) translateY(${de})`}}}}};const be=se=>Object.assign({},(0,ut.oN)(se));var Yt=(se,ce)=>{const{componentCls:de,itemColor:ae,itemSelectedColor:Be,groupTitleColor:ft,itemBg:Fe,subMenuItemBg:De,itemSelectedBg:mt,activeBarHeight:rt,activeBarWidth:Ge,activeBarBorderWidth:xt,motionDurationSlow:Xt,motionEaseInOut:ct,motionEaseOut:Rt,itemPaddingInline:rn,motionDurationMid:lt,itemHoverColor:Le,lineType:it,colorSplit:Ot,itemDisabledColor:Ft,dangerItemColor:Qt,dangerItemHoverColor:bn,dangerItemSelectedColor:Bn,dangerItemActiveBg:Ln,dangerItemSelectedBg:Gn,itemHoverBg:Yn,itemActiveBg:_n,menuSubMenuBg:ir,horizontalItemSelectedColor:br,horizontalItemSelectedBg:wr,horizontalItemBorderRadius:qn,horizontalItemHoverBg:fr,popupBg:kr}=se;return{[`${de}-${ce}, ${de}-${ce} > ${de}`]:{color:ae,background:Fe,[`&${de}-root:focus-visible`]:Object.assign({},be(se)),[`${de}-item-group-title`]:{color:ft},[`${de}-submenu-selected`]:{[`> ${de}-submenu-title`]:{color:Be}},[`${de}-item-disabled, ${de}-submenu-disabled`]:{color:`${Ft} !important`},[`${de}-item:not(${de}-item-selected):not(${de}-submenu-selected)`]:{[`&:hover, > ${de}-submenu-title:hover`]:{color:Le}},[`&:not(${de}-horizontal)`]:{[`${de}-item:not(${de}-item-selected)`]:{"&:hover":{backgroundColor:Yn},"&:active":{backgroundColor:_n}},[`${de}-submenu-title`]:{"&:hover":{backgroundColor:Yn},"&:active":{backgroundColor:_n}}},[`${de}-item-danger`]:{color:Qt,[`&${de}-item:hover`]:{[`&:not(${de}-item-selected):not(${de}-submenu-selected)`]:{color:bn}},[`&${de}-item:active`]:{background:Ln}},[`${de}-item a`]:{"&, &:hover":{color:"inherit"}},[`${de}-item-selected`]:{color:Be,[`&${de}-item-danger`]:{color:Bn},"a, a:hover":{color:"inherit"}},[`& ${de}-item-selected`]:{backgroundColor:mt,[`&${de}-item-danger`]:{backgroundColor:Gn}},[`${de}-item, ${de}-submenu-title`]:{[`&:not(${de}-item-disabled):focus-visible`]:Object.assign({},be(se))},[`&${de}-submenu > ${de}`]:{backgroundColor:ir},[`&${de}-popup > ${de}`]:{backgroundColor:kr},[`&${de}-horizontal`]:Object.assign(Object.assign({},ce==="dark"?{borderBottom:0}:{}),{[`> ${de}-item, > ${de}-submenu`]:{top:xt,marginTop:-xt,marginBottom:0,borderRadius:qn,"&::after":{position:"absolute",insetInline:rn,bottom:0,borderBottom:`${rt}px solid transparent`,transition:`border-color ${Xt} ${ct}`,content:'""'},"&:hover, &-active, &-open":{background:fr,"&::after":{borderBottomWidth:rt,borderBottomColor:br}},"&-selected":{color:br,backgroundColor:wr,"&:hover":{backgroundColor:wr},"&::after":{borderBottomWidth:rt,borderBottomColor:br}}}}),[`&${de}-root`]:{[`&${de}-inline, &${de}-vertical`]:{borderInlineEnd:`${xt}px ${it} ${Ot}`}},[`&${de}-inline`]:{[`${de}-sub${de}-inline`]:{background:De},[`${de}-item, ${de}-submenu-title`]:xt&&Ge?{width:`calc(100% + ${xt}px)`}:{},[`${de}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ge}px solid ${Be}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${lt} ${Rt}`,`opacity ${lt} ${Rt}`].join(","),content:'""'},[`&${de}-item-danger`]:{"&::after":{borderInlineEndColor:Bn}}},[`${de}-selected, ${de}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${lt} ${ct}`,`opacity ${lt} ${ct}`].join(",")}}}}}};const Zt=se=>{const{componentCls:ce,itemHeight:de,itemMarginInline:ae,padding:Be,menuArrowSize:ft,marginXS:Fe,itemMarginBlock:De}=se,mt=Be+ft+Fe;return{[`${ce}-item`]:{position:"relative",overflow:"hidden"},[`${ce}-item, ${ce}-submenu-title`]:{height:de,lineHeight:`${de}px`,paddingInline:Be,overflow:"hidden",textOverflow:"ellipsis",marginInline:ae,marginBlock:De,width:`calc(100% - ${ae*2}px)`},[`> ${ce}-item,
> ${ce}-submenu > ${ce}-submenu-title`]:{height:de,lineHeight:`${de}px`},[`${ce}-item-group-list ${ce}-submenu-title,
${ce}-submenu-title`]:{paddingInlineEnd:mt}}};var ot=se=>{const{componentCls:ce,iconCls:de,itemHeight:ae,colorTextLightSolid:Be,dropdownWidth:ft,controlHeightLG:Fe,motionDurationMid:De,motionEaseOut:mt,paddingXL:rt,itemMarginInline:Ge,fontSizeLG:xt,motionDurationSlow:Xt,paddingXS:ct,boxShadowSecondary:Rt,collapsedWidth:rn,collapsedIconSize:lt}=se,Le={height:ae,lineHeight:`${ae}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ce]:{"&-inline, &-vertical":Object.assign({[`&${ce}-root`]:{boxShadow:"none"}},Zt(se))},[`${ce}-submenu-popup`]:{[`${ce}-vertical`]:Object.assign(Object.assign({},Zt(se)),{boxShadow:Rt})}},{[`${ce}-submenu-popup ${ce}-vertical${ce}-sub`]:{minWidth:ft,maxHeight:`calc(100vh - ${Fe*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ce}-inline`]:{width:"100%",[`&${ce}-root`]:{[`${ce}-item, ${ce}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Xt}`,`background ${Xt}`,`padding ${De} ${mt}`].join(","),[`> ${ce}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ce}-sub${ce}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ce}-submenu > ${ce}-submenu-title`]:Le,[`& ${ce}-item-group-title`]:{paddingInlineStart:rt}},[`${ce}-item`]:Le}},{[`${ce}-inline-collapsed`]:{width:rn,[`&${ce}-root`]:{[`${ce}-item, ${ce}-submenu ${ce}-submenu-title`]:{[`> ${ce}-inline-collapsed-noicon`]:{fontSize:xt,textAlign:"center"}}},[`> ${ce}-item,
> ${ce}-item-group > ${ce}-item-group-list > ${ce}-item,
> ${ce}-item-group > ${ce}-item-group-list > ${ce}-submenu > ${ce}-submenu-title,
> ${ce}-submenu > ${ce}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${xt/2}px - ${Ge}px)`,textOverflow:"clip",[`
${ce}-submenu-arrow,
${ce}-submenu-expand-icon
`]:{opacity:0},[`${ce}-item-icon, ${de}`]:{margin:0,fontSize:lt,lineHeight:`${ae}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ce}-item-icon, ${de}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ce}-item-icon, ${de}`]:{display:"none"},"a, a:hover":{color:Be}},[`${ce}-item-group-title`]:Object.assign(Object.assign({},ut.vS),{paddingInline:ct})}}]};const Nt=se=>{const{componentCls:ce,motionDurationSlow:de,motionDurationMid:ae,motionEaseInOut:Be,motionEaseOut:ft,iconCls:Fe,iconSize:De,iconMarginInlineEnd:mt}=se;return{[`${ce}-item, ${ce}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${de}`,`background ${de}`,`padding ${de} ${Be}`].join(","),[`${ce}-item-icon, ${Fe}`]:{minWidth:De,fontSize:De,transition:[`font-size ${ae} ${ft}`,`margin ${de} ${Be}`,`color ${de}`].join(","),"+ span":{marginInlineStart:mt,opacity:1,transition:[`opacity ${de} ${Be}`,`margin ${de}`,`color ${de}`].join(",")}},[`${ce}-item-icon`]:Object.assign({},(0,ut.Ro)()),[`&${ce}-item-only-child`]:{[`> ${Fe}, > ${ce}-item-icon`]:{marginInlineEnd:0}}},[`${ce}-item-disabled, ${ce}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ce}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Sn=se=>{const{componentCls:ce,motionDurationSlow:de,motionEaseInOut:ae,borderRadius:Be,menuArrowSize:ft,menuArrowOffset:Fe}=se;return{[`${ce}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:se.margin,width:ft,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${de} ${ae}, opacity ${de}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ft*.6,height:ft*.15,backgroundColor:"currentcolor",borderRadius:Be,transition:[`background ${de} ${ae}`,`transform ${de} ${ae}`,`top ${de} ${ae}`,`color ${de} ${ae}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Fe})`},"&::after":{transform:`rotate(-45deg) translateY(${Fe})`}}}}},$t=se=>{const{antCls:ce,componentCls:de,fontSize:ae,motionDurationSlow:Be,motionDurationMid:ft,motionEaseInOut:Fe,paddingXS:De,padding:mt,colorSplit:rt,lineWidth:Ge,zIndexPopup:xt,borderRadiusLG:Xt,subMenuItemBorderRadius:ct,menuArrowSize:Rt,menuArrowOffset:rn,lineType:lt,menuPanelMaskInset:Le,groupTitleLineHeight:it,groupTitleFontSize:Ot}=se;return[{"":{[`${de}`]:Object.assign(Object.assign({},(0,ut.dF)()),{"&-hidden":{display:"none"}})},[`${de}-submenu-hidden`]:{display:"none"}},{[de]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(se)),(0,ut.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ae,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Be} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${de}-item`]:{flex:"none"}},[`${de}-item, ${de}-submenu, ${de}-submenu-title`]:{borderRadius:se.itemBorderRadius},[`${de}-item-group-title`]:{padding:`${De}px ${mt}px`,fontSize:Ot,lineHeight:it,transition:`all ${Be}`},[`&-horizontal ${de}-submenu`]:{transition:[`border-color ${Be} ${Fe}`,`background ${Be} ${Fe}`].join(",")},[`${de}-submenu, ${de}-submenu-inline`]:{transition:[`border-color ${Be} ${Fe}`,`background ${Be} ${Fe}`,`padding ${ft} ${Fe}`].join(",")},[`${de}-submenu ${de}-sub`]:{cursor:"initial",transition:[`background ${Be} ${Fe}`,`padding ${Be} ${Fe}`].join(",")},[`${de}-title-content`]:{transition:`color ${Be}`},[`${de}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${de}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:rt,borderStyle:lt,borderWidth:0,borderTopWidth:Ge,marginBlock:Ge,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Nt(se)),{[`${de}-item-group`]:{[`${de}-item-group-list`]:{margin:0,padding:0,[`${de}-item, ${de}-submenu-title`]:{paddingInline:`${ae*2}px ${mt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:xt,borderRadius:Xt,boxShadow:"none",transformOrigin:"0 0",[`&${de}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Le}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Le},"\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:se.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:se.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:se.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:se.paddingXS},[`> ${de}`]:Object.assign(Object.assign(Object.assign({borderRadius:Xt},Nt(se)),Sn(se)),{[`${de}-item, ${de}-submenu > ${de}-submenu-title`]:{borderRadius:ct},[`${de}-submenu-title::after`]:{transition:`transform ${Be} ${Fe}`}})}}),Sn(se)),{[`&-inline-collapsed ${de}-submenu-arrow,
&-inline ${de}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${rn})`},"&::after":{transform:`rotate(45deg) translateX(-${rn})`}},[`${de}-submenu-open${de}-submenu-inline > ${de}-submenu-title > ${de}-submenu-arrow`]:{transform:`translateY(-${Rt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${rn})`},"&::before":{transform:`rotate(45deg) translateX(${rn})`}}})},{[`${ce}-layout-header`]:{[de]:{lineHeight:"inherit"}}}]};var mn=(se,ce)=>(0,zt.Z)("Menu",ae=>{if(ce===!1)return[];const{colorBgElevated:Be,colorPrimary:ft,colorTextLightSolid:Fe,controlHeightLG:De,fontSize:mt,darkItemColor:rt,darkDangerItemColor:Ge,darkItemBg:xt,darkSubMenuItemBg:Xt,darkItemSelectedColor:ct,darkItemSelectedBg:Rt,darkDangerItemSelectedBg:rn,darkItemHoverBg:lt,darkGroupTitleColor:Le,darkItemHoverColor:it,darkItemDisabledColor:Ot,darkDangerItemHoverColor:Ft,darkDangerItemSelectedColor:Qt,darkDangerItemActiveBg:bn}=ae,Bn=mt/7*5,Ln=(0,Dt.TS)(ae,{menuArrowSize:Bn,menuHorizontalHeight:De*1.15,menuArrowOffset:`${Bn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Be}),Gn=(0,Dt.TS)(Ln,{itemColor:rt,itemHoverColor:it,groupTitleColor:Le,itemSelectedColor:ct,itemBg:xt,popupBg:xt,subMenuItemBg:Xt,itemActiveBg:"transparent",itemSelectedBg:Rt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:lt,itemDisabledColor:Ot,dangerItemColor:Ge,dangerItemHoverColor:Ft,dangerItemSelectedColor:Qt,dangerItemActiveBg:bn,dangerItemSelectedBg:rn,menuSubMenuBg:Xt,horizontalItemSelectedColor:Fe,horizontalItemSelectedBg:ft});return[$t(Ln),St(Ln),ot(Ln),Yt(Ln,"light"),Yt(Gn,"dark"),Qe(Ln),(0,Oe.Z)(Ln),(0,Pt.oN)(Ln,"slide-up"),(0,Pt.oN)(Ln,"slide-down"),(0,qe._y)(Ln,"zoom-big")]},ae=>{const{colorPrimary:Be,colorError:ft,colorTextDisabled:Fe,colorErrorBg:De,colorText:mt,colorTextDescription:rt,colorBgContainer:Ge,colorFillAlter:xt,colorFillContent:Xt,lineWidth:ct,lineWidthBold:Rt,controlItemBgActive:rn,colorBgTextHover:lt,controlHeightLG:Le,lineHeight:it,colorBgElevated:Ot,marginXXS:Ft,padding:Qt,fontSize:bn,controlHeightSM:Bn,fontSizeLG:Ln,colorTextLightSolid:Gn,colorErrorHover:Yn}=ae,_n=new Xe.C(Gn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ae.zIndexPopupBase+50,radiusItem:ae.borderRadiusLG,itemBorderRadius:ae.borderRadiusLG,radiusSubMenuItem:ae.borderRadiusSM,subMenuItemBorderRadius:ae.borderRadiusSM,colorItemText:mt,itemColor:mt,colorItemTextHover:mt,itemHoverColor:mt,colorItemTextHoverHorizontal:Be,horizontalItemHoverColor:Be,colorGroupTitle:rt,groupTitleColor:rt,colorItemTextSelected:Be,itemSelectedColor:Be,colorItemTextSelectedHorizontal:Be,horizontalItemSelectedColor:Be,colorItemBg:Ge,itemBg:Ge,colorItemBgHover:lt,itemHoverBg:lt,colorItemBgActive:Xt,itemActiveBg:rn,colorSubItemBg:xt,subMenuItemBg:xt,colorItemBgSelected:rn,itemSelectedBg:rn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Rt,activeBarHeight:Rt,colorActiveBarBorderSize:ct,activeBarBorderWidth:ct,colorItemTextDisabled:Fe,itemDisabledColor:Fe,colorDangerItemText:ft,dangerItemColor:ft,colorDangerItemTextHover:ft,dangerItemHoverColor:ft,colorDangerItemTextSelected:ft,dangerItemSelectedColor:ft,colorDangerItemBgActive:De,dangerItemActiveBg:De,colorDangerItemBgSelected:De,dangerItemSelectedBg:De,itemMarginInline:ae.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Le,groupTitleLineHeight:it,collapsedWidth:Le*2,popupBg:Ot,itemMarginBlock:Ft,itemPaddingInline:Qt,horizontalLineHeight:`${Le*1.15}px`,iconSize:bn,iconMarginInlineEnd:Bn-bn,collapsedIconSize:Ln,groupTitleFontSize:bn,darkItemDisabledColor:new Xe.C(Gn).setAlpha(.25).toRgbString(),darkItemColor:_n,darkDangerItemColor:ft,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Gn,darkItemSelectedBg:Be,darkDangerItemSelectedBg:ft,darkItemHoverBg:"transparent",darkGroupTitleColor:_n,darkItemHoverColor:Gn,darkDangerItemHoverColor:Yn,darkDangerItemSelectedColor:Gn,darkDangerItemActiveBg:ft}},{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"]]})(se),on=function(se,ce){var de={};for(var ae in se)Object.prototype.hasOwnProperty.call(se,ae)&&ce.indexOf(ae)<0&&(de[ae]=se[ae]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,ae=Object.getOwnPropertySymbols(se);Be<ae.length;Be++)ce.indexOf(ae[Be])<0&&Object.prototype.propertyIsEnumerable.call(se,ae[Be])&&(de[ae[Be]]=se[ae[Be]]);return de},en=(0,Me.forwardRef)((se,ce)=>{var de,ae;const Be=Me.useContext(Se.Z),ft=Be||{},{getPrefixCls:Fe,getPopupContainer:De,direction:mt,menu:rt}=Me.useContext(ke.E_),Ge=Fe(),{prefixCls:xt,className:Xt,style:ct,theme:Rt="light",expandIcon:rn,_internalDisableMenuItemTitleTooltip:lt,inlineCollapsed:Le,siderCollapsed:it,items:Ot,children:Ft,rootClassName:Qt,mode:bn,selectable:Bn,onClick:Ln,overflowedIndicatorPopupClassName:Gn}=se,Yn=on(se,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),_n=(0,vt.Z)(Yn,["collapsedWidth"]),ir=ht(Ot)||Ft;(de=ft.validator)===null||de===void 0||de.call(ft,{mode:bn});const br=(0,nt.useEvent)(function(){var wn;Ln==null||Ln.apply(void 0,arguments),(wn=ft.onClick)===null||wn===void 0||wn.call(ft)}),wr=ft.mode||bn,qn=Bn!=null?Bn:ft.selectable,fr=Me.useMemo(()=>it!==void 0?it:Le,[Le,it]),kr={horizontal:{motionName:`${Ge}-slide-up`},inline:(0,Ve.Z)(Ge),other:{motionName:`${Ge}-zoom-big`}},Qn=Fe("menu",xt||ft.prefixCls),[Nr,ei]=mn(Qn,!Be),Vt=ge()(`${Qn}-${Rt}`,rt==null?void 0:rt.className,Xt);let Rn;if(typeof rn=="function")Rn=rn;else if(rn===null||rn===!1)Rn=null;else if(ft.expandIcon===null||ft.expandIcon===!1)Rn=null;else{const wn=rn!=null?rn:ft.expandIcon;Rn=(0,He.Tm)(wn,{className:ge()(`${Qn}-submenu-expand-icon`,(0,He.l$)(wn)?(ae=wn.props)===null||ae===void 0?void 0:ae.className:"")})}const Nn=Me.useMemo(()=>({prefixCls:Qn,inlineCollapsed:fr||!1,direction:mt,firstLevel:!0,theme:Rt,mode:wr,disableMenuItemTitleTooltip:lt}),[Qn,fr,mt,lt,Rt]);return Nr(Me.createElement(Se.Z.Provider,{value:null},Me.createElement(Je.Provider,{value:Nn},Me.createElement(me.ZP,Object.assign({getPopupContainer:De,overflowedIndicator:Me.createElement(dt.Z,null),overflowedIndicatorPopupClassName:ge()(Qn,`${Qn}-${Rt}`,Gn),mode:wr,selectable:qn,onClick:br},_n,{inlineCollapsed:fr,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),ct),className:Vt,prefixCls:Qn,direction:mt,defaultMotions:kr,expandIcon:Rn,ref:ce,rootClassName:ge()(Qt,ei)}),ir))))});const ye=(0,Me.forwardRef)((se,ce)=>{const de=(0,Me.useRef)(null),ae=Me.useContext(Pe.D);return(0,Me.useImperativeHandle)(ce,()=>({menu:de.current,focus:Be=>{var ft;(ft=de.current)===null||ft===void 0||ft.focus(Be)}})),Me.createElement(en,Object.assign({ref:de},se,ae))});ye.Item=gt,ye.SubMenu=At,ye.Divider=Ee,ye.ItemGroup=me.BW;var ue=ye},58421:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return ft}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(De,mt){return Me.createElement(ge.Z,(0,me.Z)({},De,{ref:mt,icon:pt}))},he=Me.forwardRef(ke),we=he,Ee=oe(49198),ze=oe(33853),vt=oe(38819),Ie=oe(92310),He=oe.n(Ie),st=oe(18642),Je=oe(85899),Ue=oe(38705),gt=oe(17212),Et=oe(39153),At=oe(55401),dt=oe(26112),nt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ve=nt,Se=oe(91735),$e=function(Fe){(0,Et.Z)(mt,Fe);var De=(0,At.Z)(mt);function mt(){var rt;(0,Ue.Z)(this,mt);for(var Ge=arguments.length,xt=new Array(Ge),Xt=0;Xt<Ge;Xt++)xt[Xt]=arguments[Xt];return rt=De.call.apply(De,[this].concat(xt)),rt.state={goInputText:""},rt.getValidValue=function(){var ct=rt.state.goInputText;return!ct||Number.isNaN(ct)?void 0:Number(ct)},rt.buildOptionText=function(ct){return"".concat(ct," ").concat(rt.props.locale.items_per_page)},rt.changeSize=function(ct){rt.props.changeSize(Number(ct))},rt.handleChange=function(ct){rt.setState({goInputText:ct.target.value})},rt.handleBlur=function(ct){var Rt=rt.props,rn=Rt.goButton,lt=Rt.quickGo,Le=Rt.rootPrefixCls,it=rt.state.goInputText;rn||it===""||(rt.setState({goInputText:""}),!(ct.relatedTarget&&(ct.relatedTarget.className.indexOf("".concat(Le,"-item-link"))>=0||ct.relatedTarget.className.indexOf("".concat(Le,"-item"))>=0))&&lt(rt.getValidValue()))},rt.go=function(ct){var Rt=rt.state.goInputText;Rt!==""&&(ct.keyCode===Ve.ENTER||ct.type==="click")&&(rt.setState({goInputText:""}),rt.props.quickGo(rt.getValidValue()))},rt}return(0,gt.Z)(mt,[{key:"getPageSizeOptions",value:function(){var Ge=this.props,xt=Ge.pageSize,Xt=Ge.pageSizeOptions;return Xt.some(function(ct){return ct.toString()===xt.toString()})?Xt:Xt.concat([xt.toString()]).sort(function(ct,Rt){var rn=Number.isNaN(Number(ct))?0:Number(ct),lt=Number.isNaN(Number(Rt))?0:Number(Rt);return rn-lt})}},{key:"render",value:function(){var Ge=this,xt=this.props,Xt=xt.pageSize,ct=xt.locale,Rt=xt.rootPrefixCls,rn=xt.changeSize,lt=xt.quickGo,Le=xt.goButton,it=xt.selectComponentClass,Ot=xt.buildOptionText,Ft=xt.selectPrefixCls,Qt=xt.disabled,bn=this.state.goInputText,Bn="".concat(Rt,"-options"),Ln=it,Gn=null,Yn=null,_n=null;if(!rn&&!lt)return null;var ir=this.getPageSizeOptions();if(rn&&Ln){var br=ir.map(function(wr,qn){return Me.createElement(Ln.Option,{key:qn,value:wr.toString()},(Ot||Ge.buildOptionText)(wr))});Gn=Me.createElement(Ln,{disabled:Qt,prefixCls:Ft,showSearch:!1,className:"".concat(Bn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Xt||ir[0]).toString(),onChange:this.changeSize,getPopupContainer:function(qn){return qn.parentNode},"aria-label":ct.page_size,defaultOpen:!1},br)}return lt&&(Le&&(_n=typeof Le=="boolean"?Me.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Qt,className:"".concat(Bn,"-quick-jumper-button")},ct.jump_to_confirm):Me.createElement("span",{onClick:this.go,onKeyUp:this.go},Le)),Yn=Me.createElement("div",{className:"".concat(Bn,"-quick-jumper")},ct.jump_to,Me.createElement("input",{disabled:Qt,type:"text",value:bn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":ct.page}),ct.page,_n)),Me.createElement("li",{className:"".concat(Bn)},Gn,Yn)}}]),mt}(Me.Component);$e.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ye=$e,ht=function(De){var mt,rt=De.rootPrefixCls,Ge=De.page,xt=De.active,Xt=De.className,ct=De.showTitle,Rt=De.onClick,rn=De.onKeyPress,lt=De.itemRender,Le="".concat(rt,"-item"),it=He()(Le,"".concat(Le,"-").concat(Ge),(mt={},(0,st.Z)(mt,"".concat(Le,"-active"),xt),(0,st.Z)(mt,"".concat(Le,"-disabled"),!Ge),(0,st.Z)(mt,De.className,Xt),mt)),Ot=function(){Rt(Ge)},Ft=function(Bn){rn(Bn,Rt,Ge)},Qt=lt(Ge,"page",Me.createElement("a",{rel:"nofollow"},Ge));return Qt?Me.createElement("li",{title:ct?Ge.toString():null,className:it,onClick:Ot,onKeyPress:Ft,tabIndex:0},Qt):null},Xe=ht;function ut(){}function Oe(Fe){var De=Number(Fe);return typeof De=="number"&&!Number.isNaN(De)&&isFinite(De)&&Math.floor(De)===De}var Pt=function(De,mt,rt){return rt};function qe(Fe,De,mt){var rt=typeof Fe=="undefined"?De.pageSize:Fe;return Math.floor((mt.total-1)/rt)+1}var zt=function(Fe){(0,Et.Z)(mt,Fe);var De=(0,At.Z)(mt);function mt(rt){var Ge;(0,Ue.Z)(this,mt),Ge=De.call(this,rt),Ge.paginationNode=Me.createRef(),Ge.getJumpPrevPage=function(){return Math.max(1,Ge.state.current-(Ge.props.showLessItems?3:5))},Ge.getJumpNextPage=function(){return Math.min(qe(void 0,Ge.state,Ge.props),Ge.state.current+(Ge.props.showLessItems?3:5))},Ge.getItemIcon=function(rn,lt){var Le=Ge.props.prefixCls,it=rn||Me.createElement("button",{type:"button","aria-label":lt,className:"".concat(Le,"-item-link")});return typeof rn=="function"&&(it=Me.createElement(rn,(0,Je.Z)({},Ge.props))),it},Ge.isValid=function(rn){var lt=Ge.props.total;return Oe(rn)&&rn!==Ge.state.current&&Oe(lt)&&lt>0},Ge.shouldDisplayQuickJumper=function(){var rn=Ge.props,lt=rn.showQuickJumper,Le=rn.total,it=Ge.state.pageSize;return Le<=it?!1:lt},Ge.handleKeyDown=function(rn){(rn.keyCode===Ve.ARROW_UP||rn.keyCode===Ve.ARROW_DOWN)&&rn.preventDefault()},Ge.handleKeyUp=function(rn){var lt=Ge.getValidValue(rn),Le=Ge.state.currentInputValue;lt!==Le&&Ge.setState({currentInputValue:lt}),rn.keyCode===Ve.ENTER?Ge.handleChange(lt):rn.keyCode===Ve.ARROW_UP?Ge.handleChange(lt-1):rn.keyCode===Ve.ARROW_DOWN&&Ge.handleChange(lt+1)},Ge.handleBlur=function(rn){var lt=Ge.getValidValue(rn);Ge.handleChange(lt)},Ge.changePageSize=function(rn){var lt=Ge.state.current,Le=qe(rn,Ge.state,Ge.props);lt=lt>Le?Le:lt,Le===0&&(lt=Ge.state.current),typeof rn=="number"&&("pageSize"in Ge.props||Ge.setState({pageSize:rn}),"current"in Ge.props||Ge.setState({current:lt,currentInputValue:lt})),Ge.props.onShowSizeChange(lt,rn),"onChange"in Ge.props&&Ge.props.onChange&&Ge.props.onChange(lt,rn)},Ge.handleChange=function(rn){var lt=Ge.props,Le=lt.disabled,it=lt.onChange,Ot=Ge.state,Ft=Ot.pageSize,Qt=Ot.current,bn=Ot.currentInputValue;if(Ge.isValid(rn)&&!Le){var Bn=qe(void 0,Ge.state,Ge.props),Ln=rn;return rn>Bn?Ln=Bn:rn<1&&(Ln=1),"current"in Ge.props||Ge.setState({current:Ln}),Ln!==bn&&Ge.setState({currentInputValue:Ln}),it(Ln,Ft),Ln}return Qt},Ge.prev=function(){Ge.hasPrev()&&Ge.handleChange(Ge.state.current-1)},Ge.next=function(){Ge.hasNext()&&Ge.handleChange(Ge.state.current+1)},Ge.jumpPrev=function(){Ge.handleChange(Ge.getJumpPrevPage())},Ge.jumpNext=function(){Ge.handleChange(Ge.getJumpNextPage())},Ge.hasPrev=function(){return Ge.state.current>1},Ge.hasNext=function(){return Ge.state.current<qe(void 0,Ge.state,Ge.props)},Ge.runIfEnter=function(rn,lt){if(rn.key==="Enter"||rn.charCode===13){for(var Le=arguments.length,it=new Array(Le>2?Le-2:0),Ot=2;Ot<Le;Ot++)it[Ot-2]=arguments[Ot];lt.apply(void 0,it)}},Ge.runIfEnterPrev=function(rn){Ge.runIfEnter(rn,Ge.prev)},Ge.runIfEnterNext=function(rn){Ge.runIfEnter(rn,Ge.next)},Ge.runIfEnterJumpPrev=function(rn){Ge.runIfEnter(rn,Ge.jumpPrev)},Ge.runIfEnterJumpNext=function(rn){Ge.runIfEnter(rn,Ge.jumpNext)},Ge.handleGoTO=function(rn){(rn.keyCode===Ve.ENTER||rn.type==="click")&&Ge.handleChange(Ge.state.currentInputValue)},Ge.renderPrev=function(rn){var lt=Ge.props,Le=lt.prevIcon,it=lt.itemRender,Ot=it(rn,"prev",Ge.getItemIcon(Le,"prev page")),Ft=!Ge.hasPrev();return(0,Me.isValidElement)(Ot)?(0,Me.cloneElement)(Ot,{disabled:Ft}):Ot},Ge.renderNext=function(rn){var lt=Ge.props,Le=lt.nextIcon,it=lt.itemRender,Ot=it(rn,"next",Ge.getItemIcon(Le,"next page")),Ft=!Ge.hasNext();return(0,Me.isValidElement)(Ot)?(0,Me.cloneElement)(Ot,{disabled:Ft}):Ot};var xt=rt.onChange!==ut,Xt="current"in rt;Xt&&!xt&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var ct=rt.defaultCurrent;"current"in rt&&(ct=rt.current);var Rt=rt.defaultPageSize;return"pageSize"in rt&&(Rt=rt.pageSize),ct=Math.min(ct,qe(Rt,void 0,rt)),Ge.state={current:ct,currentInputValue:ct,pageSize:Rt},Ge}return(0,gt.Z)(mt,[{key:"componentDidUpdate",value:function(Ge,xt){var Xt=this.props.prefixCls;if(xt.current!==this.state.current&&this.paginationNode.current){var ct=this.paginationNode.current.querySelector(".".concat(Xt,"-item-").concat(xt.current));if(ct&&document.activeElement===ct){var Rt;ct==null||(Rt=ct.blur)===null||Rt===void 0||Rt.call(ct)}}}},{key:"getValidValue",value:function(Ge){var xt=Ge.target.value,Xt=qe(void 0,this.state,this.props),ct=this.state.currentInputValue,Rt;return xt===""?Rt=xt:Number.isNaN(Number(xt))?Rt=ct:xt>=Xt?Rt=Xt:Rt=Number(xt),Rt}},{key:"getShowSizeChanger",value:function(){var Ge=this.props,xt=Ge.showSizeChanger,Xt=Ge.total,ct=Ge.totalBoundaryShowSizeChanger;return typeof xt!="undefined"?xt:Xt>ct}},{key:"render",value:function(){var Ge=this.props,xt=Ge.prefixCls,Xt=Ge.className,ct=Ge.style,Rt=Ge.disabled,rn=Ge.hideOnSinglePage,lt=Ge.total,Le=Ge.locale,it=Ge.showQuickJumper,Ot=Ge.showLessItems,Ft=Ge.showTitle,Qt=Ge.showTotal,bn=Ge.simple,Bn=Ge.itemRender,Ln=Ge.showPrevNextJumpers,Gn=Ge.jumpPrevIcon,Yn=Ge.jumpNextIcon,_n=Ge.selectComponentClass,ir=Ge.selectPrefixCls,br=Ge.pageSizeOptions,wr=this.state,qn=wr.current,fr=wr.pageSize,kr=wr.currentInputValue;if(rn===!0&&lt<=fr)return null;var Qn=qe(void 0,this.state,this.props),Nr=[],ei=null,Vt=null,Rn=null,Nn=null,wn=null,In=it&&it.goButton,xn=Ot?1:2,kn=qn-1>0?qn-1:0,gn=qn+1<Qn?qn+1:Qn,bt=(0,dt.Z)(this.props,{aria:!0,data:!0}),Ae=Qt&&Me.createElement("li",{className:"".concat(xt,"-total-text")},Qt(lt,[lt===0?0:(qn-1)*fr+1,qn*fr>lt?lt:qn*fr]));if(bn){In&&(typeof In=="boolean"?wn=Me.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Le.jump_to_confirm):wn=Me.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},In),wn=Me.createElement("li",{title:Ft?"".concat(Le.jump_to).concat(qn,"/").concat(Qn):null,className:"".concat(xt,"-simple-pager")},wn));var je=this.renderPrev(kn);return Me.createElement("ul",(0,me.Z)({className:He()(xt,"".concat(xt,"-simple"),(0,st.Z)({},"".concat(xt,"-disabled"),Rt),Xt),style:ct,ref:this.paginationNode},bt),Ae,je?Me.createElement("li",{title:Ft?Le.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:He()("".concat(xt,"-prev"),(0,st.Z)({},"".concat(xt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},je):null,Me.createElement("li",{title:Ft?"".concat(qn,"/").concat(Qn):null,className:"".concat(xt,"-simple-pager")},Me.createElement("input",{type:"text",value:kr,disabled:Rt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Me.createElement("span",{className:"".concat(xt,"-slash")},"/"),Qn),Me.createElement("li",{title:Ft?Le.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:He()("".concat(xt,"-next"),(0,st.Z)({},"".concat(xt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(gn)),wn)}if(Qn<=3+xn*2){var Ze={locale:Le,rootPrefixCls:xt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ft,itemRender:Bn};Qn||Nr.push(Me.createElement(Xe,(0,me.Z)({},Ze,{key:"noPager",page:1,className:"".concat(xt,"-item-disabled")})));for(var We=1;We<=Qn;We+=1){var yt=qn===We;Nr.push(Me.createElement(Xe,(0,me.Z)({},Ze,{key:We,page:We,active:yt})))}}else{var Lt=Ot?Le.prev_3:Le.prev_5,Jt=Ot?Le.next_3:Le.next_5,Ht=Bn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Gn,"prev page")),ln=Bn(this.getJumpNextPage(),"jump-next",this.getItemIcon(Yn,"next page"));Ln&&(ei=Ht?Me.createElement("li",{title:Ft?Lt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:He()("".concat(xt,"-jump-prev"),(0,st.Z)({},"".concat(xt,"-jump-prev-custom-icon"),!!Gn))},Ht):null,Vt=ln?Me.createElement("li",{title:Ft?Jt:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:He()("".concat(xt,"-jump-next"),(0,st.Z)({},"".concat(xt,"-jump-next-custom-icon"),!!Yn))},ln):null),Nn=Me.createElement(Xe,{locale:Le,last:!0,rootPrefixCls:xt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Qn,page:Qn,active:!1,showTitle:Ft,itemRender:Bn}),Rn=Me.createElement(Xe,{locale:Le,rootPrefixCls:xt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ft,itemRender:Bn});var yn=Math.max(1,qn-xn),En=Math.min(qn+xn,Qn);qn-1<=xn&&(En=1+xn*2),Qn-qn<=xn&&(yn=Qn-xn*2);for(var Mn=yn;Mn<=En;Mn+=1){var Kt=qn===Mn;Nr.push(Me.createElement(Xe,{locale:Le,rootPrefixCls:xt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Mn,page:Mn,active:Kt,showTitle:Ft,itemRender:Bn}))}qn-1>=xn*2&&qn!==3&&(Nr[0]=(0,Me.cloneElement)(Nr[0],{className:"".concat(xt,"-item-after-jump-prev")}),Nr.unshift(ei)),Qn-qn>=xn*2&&qn!==Qn-2&&(Nr[Nr.length-1]=(0,Me.cloneElement)(Nr[Nr.length-1],{className:"".concat(xt,"-item-before-jump-next")}),Nr.push(Vt)),yn!==1&&Nr.unshift(Rn),En!==Qn&&Nr.push(Nn)}var hn=!this.hasPrev()||!Qn,Hn=!this.hasNext()||!Qn,Zn=this.renderPrev(kn),Kn=this.renderNext(gn);return Me.createElement("ul",(0,me.Z)({className:He()(xt,Xt,(0,st.Z)({},"".concat(xt,"-disabled"),Rt)),style:ct,ref:this.paginationNode},bt),Ae,Zn?Me.createElement("li",{title:Ft?Le.prev_page:null,onClick:this.prev,tabIndex:hn?null:0,onKeyPress:this.runIfEnterPrev,className:He()("".concat(xt,"-prev"),(0,st.Z)({},"".concat(xt,"-disabled"),hn)),"aria-disabled":hn},Zn):null,Nr,Kn?Me.createElement("li",{title:Ft?Le.next_page:null,onClick:this.next,tabIndex:Hn?null:0,onKeyPress:this.runIfEnterNext,className:He()("".concat(xt,"-next"),(0,st.Z)({},"".concat(xt,"-disabled"),Hn)),"aria-disabled":Hn},Kn):null,Me.createElement(Ye,{disabled:Rt,locale:Le,rootPrefixCls:xt,selectComponentClass:_n,selectPrefixCls:ir,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:qn,pageSize:fr,pageSizeOptions:br,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:In}))}}],[{key:"getDerivedStateFromProps",value:function(Ge,xt){var Xt={};if("current"in Ge&&(Xt.current=Ge.current,Ge.current!==xt.current&&(Xt.currentInputValue=Xt.current)),"pageSize"in Ge&&Ge.pageSize!==xt.pageSize){var ct=xt.current,Rt=qe(Ge.pageSize,xt,Ge);ct=ct>Rt?Rt:ct,"current"in Ge||(Xt.current=ct,Xt.currentInputValue=ct),Xt.pageSize=Ge.pageSize}return Xt}}]),mt}(Me.Component);zt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:ut,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:ut,locale:Se.Z,style:{},itemRender:Pt,totalBoundaryShowSizeChanger:50};var Dt=zt,Bt=oe(22075),St=oe(36355),It=oe(19716),Qe=oe(8628),be=oe(9763),Ct=oe(57809);const Yt=Fe=>Me.createElement(Ct.default,Object.assign({},Fe,{showSearch:!0,size:"small"})),Zt=Fe=>Me.createElement(Ct.default,Object.assign({},Fe,{showSearch:!0,size:"middle"}));Yt.Option=Ct.default.Option,Zt.Option=Ct.default.Option;var at=oe(9937),ot=oe(17313),Nt=oe(83116),Sn=oe(37613);const $t=Fe=>{const{componentCls:De}=Fe;return{[`${De}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${De}-item-link`]:{color:Fe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${De}-item-link`]:{color:Fe.colorTextDisabled,cursor:"not-allowed"}}},[`&${De}-disabled`]:{cursor:"not-allowed",[`${De}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Fe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Fe.colorBorder,backgroundColor:Fe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Fe.itemActiveBgDisabled},a:{color:Fe.itemActiveColorDisabled}}},[`${De}-item-link`]:{color:Fe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${De}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${De}-simple-pager`]:{color:Fe.colorTextDisabled},[`${De}-jump-prev, ${De}-jump-next`]:{[`${De}-item-link-icon`]:{opacity:0},[`${De}-item-ellipsis`]:{opacity:1}}},[`&${De}-simple`]:{[`${De}-prev, ${De}-next`]:{[`&${De}-disabled ${De}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},mn=Fe=>{const{componentCls:De}=Fe;return{[`&${De}-mini ${De}-total-text, &${De}-mini ${De}-simple-pager`]:{height:Fe.itemSizeSM,lineHeight:`${Fe.itemSizeSM}px`},[`&${De}-mini ${De}-item`]:{minWidth:Fe.itemSizeSM,height:Fe.itemSizeSM,margin:0,lineHeight:`${Fe.itemSizeSM-2}px`},[`&${De}-mini:not(${De}-disabled) ${De}-item:not(${De}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Fe.colorBgTextHover},"&:active":{backgroundColor:Fe.colorBgTextActive}},[`&${De}-mini ${De}-prev, &${De}-mini ${De}-next`]:{minWidth:Fe.itemSizeSM,height:Fe.itemSizeSM,margin:0,lineHeight:`${Fe.itemSizeSM}px`},[`&${De}-mini:not(${De}-disabled)`]:{[`${De}-prev, ${De}-next`]:{[`&:hover ${De}-item-link`]:{backgroundColor:Fe.colorBgTextHover},[`&:active ${De}-item-link`]:{backgroundColor:Fe.colorBgTextActive},[`&${De}-disabled:hover ${De}-item-link`]:{backgroundColor:"transparent"}}},[`
&${De}-mini ${De}-prev ${De}-item-link,
&${De}-mini ${De}-next ${De}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Fe.itemSizeSM,lineHeight:`${Fe.itemSizeSM}px`}},[`&${De}-mini ${De}-jump-prev, &${De}-mini ${De}-jump-next`]:{height:Fe.itemSizeSM,marginInlineEnd:0,lineHeight:`${Fe.itemSizeSM}px`},[`&${De}-mini ${De}-options`]:{marginInlineStart:Fe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Fe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Fe.itemSizeSM,lineHeight:`${Fe.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,at.x0)(Fe)),{width:Fe.paginationMiniQuickJumperInputWidth,height:Fe.controlHeightSM})}}}},on=Fe=>{const{componentCls:De}=Fe;return{[`
&${De}-simple ${De}-prev,
&${De}-simple ${De}-next
`]:{height:Fe.itemSizeSM,lineHeight:`${Fe.itemSizeSM}px`,verticalAlign:"top",[`${De}-item-link`]:{height:Fe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Fe.colorBgTextHover},"&:active":{backgroundColor:Fe.colorBgTextActive},"&::after":{height:Fe.itemSizeSM,lineHeight:`${Fe.itemSizeSM}px`}}},[`&${De}-simple ${De}-simple-pager`]:{display:"inline-block",height:Fe.itemSizeSM,marginInlineEnd:Fe.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Fe.marginXS,padding:`0 ${Fe.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Fe.itemInputBg,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,borderRadius:Fe.borderRadius,outline:"none",transition:`border-color ${Fe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Fe.colorPrimary},"&:focus":{borderColor:Fe.colorPrimaryHover,boxShadow:`${Fe.inputOutlineOffset}px 0 ${Fe.controlOutlineWidth}px ${Fe.controlOutline}`},"&[disabled]":{color:Fe.colorTextDisabled,backgroundColor:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,cursor:"not-allowed"}}}}},nn=Fe=>{const{componentCls:De}=Fe;return{[`${De}-jump-prev, ${De}-jump-next`]:{outline:0,[`${De}-item-container`]:{position:"relative",[`${De}-item-link-icon`]:{color:Fe.colorPrimary,fontSize:Fe.fontSizeSM,opacity:0,transition:`all ${Fe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${De}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Fe.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Fe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Fe.paginationEllipsisTextIndent,opacity:1,transition:`all ${Fe.motionDurationMid}`}},"&:hover":{[`${De}-item-link-icon`]:{opacity:1},[`${De}-item-ellipsis`]:{opacity:0}}},[`
${De}-prev,
${De}-jump-prev,
${De}-jump-next
`]:{marginInlineEnd:Fe.marginXS},[`
${De}-prev,
${De}-next,
${De}-jump-prev,
${De}-jump-next
`]:{display:"inline-block",minWidth:Fe.itemSize,height:Fe.itemSize,color:Fe.colorText,fontFamily:Fe.fontFamily,lineHeight:`${Fe.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Fe.borderRadius,cursor:"pointer",transition:`all ${Fe.motionDurationMid}`},[`${De}-prev, ${De}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Fe.colorText,cursor:"pointer",userSelect:"none"},[`${De}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Fe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Fe.lineWidth}px ${Fe.lineType} transparent`,borderRadius:Fe.borderRadius,outline:"none",transition:`all ${Fe.motionDurationMid}`},[`&:hover ${De}-item-link`]:{backgroundColor:Fe.colorBgTextHover},[`&:active ${De}-item-link`]:{backgroundColor:Fe.colorBgTextActive},[`&${De}-disabled:hover`]:{[`${De}-item-link`]:{backgroundColor:"transparent"}}},[`${De}-slash`]:{marginInlineEnd:Fe.paginationSlashMarginInlineEnd,marginInlineStart:Fe.paginationSlashMarginInlineStart},[`${De}-options`]:{display:"inline-block",marginInlineStart:Fe.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Fe.controlHeight,marginInlineStart:Fe.marginXS,lineHeight:`${Fe.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,at.ik)(Fe)),{width:Fe.controlHeightLG*1.25,height:Fe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Fe.marginXS,marginInlineEnd:Fe.marginXS})}}}},en=Fe=>{const{componentCls:De}=Fe;return{[`${De}-item`]:{display:"inline-block",minWidth:Fe.itemSize,height:Fe.itemSize,marginInlineEnd:Fe.marginXS,fontFamily:Fe.fontFamily,lineHeight:`${Fe.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Fe.lineWidth}px ${Fe.lineType} transparent`,borderRadius:Fe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Fe.paginationItemPaddingInline}px`,color:Fe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${De}-item-active)`]:{"&:hover":{transition:`all ${Fe.motionDurationMid}`,backgroundColor:Fe.colorBgTextHover},"&:active":{backgroundColor:Fe.colorBgTextActive}},"&-active":{fontWeight:Fe.fontWeightStrong,backgroundColor:Fe.itemActiveBg,borderColor:Fe.colorPrimary,a:{color:Fe.colorPrimary},"&:hover":{borderColor:Fe.colorPrimaryHover},"&:hover a":{color:Fe.colorPrimaryHover}}}}},ye=Fe=>{const{componentCls:De}=Fe;return{[De]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ot.Wf)(Fe)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${De}-total-text`]:{display:"inline-block",height:Fe.itemSize,marginInlineEnd:Fe.marginXS,lineHeight:`${Fe.itemSize-2}px`,verticalAlign:"middle"}}),en(Fe)),nn(Fe)),on(Fe)),mn(Fe)),$t(Fe)),{[`@media only screen and (max-width: ${Fe.screenLG}px)`]:{[`${De}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Fe.screenSM}px)`]:{[`${De}-options`]:{display:"none"}}}),[`&${Fe.componentCls}-rtl`]:{direction:"rtl"}}},ue=Fe=>{const{componentCls:De}=Fe;return{[`${De}${De}-disabled:not(${De}-mini)`]:{"&, &:hover":{[`${De}-item-link`]:{borderColor:Fe.colorBorder}},"&:focus-visible":{[`${De}-item-link`]:{borderColor:Fe.colorBorder}},[`${De}-item, ${De}-item-link`]:{backgroundColor:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,[`&:hover:not(${De}-item-active)`]:{backgroundColor:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,a:{color:Fe.colorTextDisabled}},[`&${De}-item-active`]:{backgroundColor:Fe.itemActiveBgDisabled}},[`${De}-prev, ${De}-next`]:{"&:hover button":{backgroundColor:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,color:Fe.colorTextDisabled},[`${De}-item-link`]:{backgroundColor:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder}}},[`${De}:not(${De}-mini)`]:{[`${De}-prev, ${De}-next`]:{"&:hover button":{borderColor:Fe.colorPrimaryHover,backgroundColor:Fe.itemBg},[`${De}-item-link`]:{backgroundColor:Fe.itemLinkBg,borderColor:Fe.colorBorder},[`&:hover ${De}-item-link`]:{borderColor:Fe.colorPrimary,backgroundColor:Fe.itemBg,color:Fe.colorPrimary},[`&${De}-disabled`]:{[`${De}-item-link`]:{borderColor:Fe.colorBorder,color:Fe.colorTextDisabled}}},[`${De}-item`]:{backgroundColor:Fe.itemBg,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,[`&:hover:not(${De}-item-active)`]:{borderColor:Fe.colorPrimary,backgroundColor:Fe.itemBg,a:{color:Fe.colorPrimary}},"&-active":{borderColor:Fe.colorPrimary}}}}},se=Fe=>{const{componentCls:De}=Fe;return{[`${De}:not(${De}-disabled)`]:{[`${De}-item`]:Object.assign({},(0,ot.Qy)(Fe)),[`${De}-jump-prev, ${De}-jump-next`]:{"&:focus-visible":Object.assign({[`${De}-item-link-icon`]:{opacity:1},[`${De}-item-ellipsis`]:{opacity:0}},(0,ot.oN)(Fe))},[`${De}-prev, ${De}-next`]:{[`&:focus-visible ${De}-item-link`]:Object.assign({},(0,ot.oN)(Fe))}}}};var ce=(0,Nt.Z)("Pagination",Fe=>{const De=(0,Sn.TS)(Fe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Fe.marginXXS/2,paginationMiniQuickJumperInputWidth:Fe.controlHeightLG*1.1,paginationItemPaddingInline:Fe.marginXXS*1.5,paginationEllipsisLetterSpacing:Fe.marginXXS/2,paginationSlashMarginInlineStart:Fe.marginXXS,paginationSlashMarginInlineEnd:Fe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,at.e5)(Fe),(0,at.TM)(Fe));return[ye(De),se(De),Fe.wireframe&&ue(De)]},Fe=>({itemBg:Fe.colorBgContainer,itemSize:Fe.controlHeight,itemSizeSM:Fe.controlHeightSM,itemActiveBg:Fe.colorBgContainer,itemLinkBg:Fe.colorBgContainer,itemActiveColorDisabled:Fe.colorTextDisabled,itemActiveBgDisabled:Fe.controlItemBgActiveDisabled,itemInputBg:Fe.colorBgContainer,miniOptionsSizeChangerTop:0})),de=function(Fe,De){var mt={};for(var rt in Fe)Object.prototype.hasOwnProperty.call(Fe,rt)&&De.indexOf(rt)<0&&(mt[rt]=Fe[rt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,rt=Object.getOwnPropertySymbols(Fe);Ge<rt.length;Ge++)De.indexOf(rt[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Fe,rt[Ge])&&(mt[rt[Ge]]=Fe[rt[Ge]]);return mt},Be=Fe=>{const{prefixCls:De,selectPrefixCls:mt,className:rt,rootClassName:Ge,style:xt,size:Xt,locale:ct,selectComponentClass:Rt,responsive:rn,showSizeChanger:lt}=Fe,Le=de(Fe,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:it}=(0,Qe.Z)(rn),{getPrefixCls:Ot,direction:Ft,pagination:Qt={}}=Me.useContext(St.E_),bn=Ot("pagination",De),[Bn,Ln]=ce(bn),Gn=lt!=null?lt:Qt.showSizeChanger,Yn=Me.useMemo(()=>{const Qn=Me.createElement("span",{className:`${bn}-item-ellipsis`},"\u2022\u2022\u2022"),Nr=Me.createElement("button",{className:`${bn}-item-link`,type:"button",tabIndex:-1},Ft==="rtl"?Me.createElement(vt.Z,null):Me.createElement(ze.Z,null)),ei=Me.createElement("button",{className:`${bn}-item-link`,type:"button",tabIndex:-1},Ft==="rtl"?Me.createElement(ze.Z,null):Me.createElement(vt.Z,null)),Vt=Me.createElement("a",{className:`${bn}-item-link`},Me.createElement("div",{className:`${bn}-item-container`},Ft==="rtl"?Me.createElement(Ee.Z,{className:`${bn}-item-link-icon`}):Me.createElement(we,{className:`${bn}-item-link-icon`}),Qn)),Rn=Me.createElement("a",{className:`${bn}-item-link`},Me.createElement("div",{className:`${bn}-item-container`},Ft==="rtl"?Me.createElement(we,{className:`${bn}-item-link-icon`}):Me.createElement(Ee.Z,{className:`${bn}-item-link-icon`}),Qn));return{prevIcon:Nr,nextIcon:ei,jumpPrevIcon:Vt,jumpNextIcon:Rn}},[Ft,bn]),[_n]=(0,be.Z)("Pagination",Bt.Z),ir=Object.assign(Object.assign({},_n),ct),br=(0,It.Z)(Xt),wr=br==="small"||!!(it&&!br&&rn),qn=Ot("select",mt),fr=He()({[`${bn}-mini`]:wr,[`${bn}-rtl`]:Ft==="rtl"},Qt==null?void 0:Qt.className,rt,Ge,Ln),kr=Object.assign(Object.assign({},Qt==null?void 0:Qt.style),xt);return Bn(Me.createElement(Dt,Object.assign({},Yn,Le,{style:kr,prefixCls:bn,selectPrefixCls:qn,className:fr,selectComponentClass:Rt||(wr?Yt:Zt),locale:ir,showSizeChanger:Gn})))},ft=Be},93948:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return lt}});var me=oe(59301),Me=oe(29679),Pe=oe(40001),pt=oe(19248),ge=oe(99267),ke=oe(92310),he=oe.n(ke),we=oe(2738),Ee=oe(36355),ze=oe(60499),vt=oe(85899),Ie=oe(42244),He={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},st=function(){var it=(0,me.useRef)([]),Ot=(0,me.useRef)(null);return(0,me.useEffect)(function(){var Ft=Date.now(),Qt=!1;it.current.forEach(function(bn){if(bn){Qt=!0;var Bn=bn.style;Bn.transitionDuration=".3s, .3s, .3s, .06s",Ot.current&&Ft-Ot.current<100&&(Bn.transitionDuration="0s, 0s")}}),Qt&&(Ot.current=Date.now())}),it.current},Je=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ue=function(it){var Ot=(0,vt.Z)((0,vt.Z)({},He),it),Ft=Ot.className,Qt=Ot.percent,bn=Ot.prefixCls,Bn=Ot.strokeColor,Ln=Ot.strokeLinecap,Gn=Ot.strokeWidth,Yn=Ot.style,_n=Ot.trailColor,ir=Ot.trailWidth,br=Ot.transition,wr=(0,Ie.Z)(Ot,Je);delete wr.gapPosition;var qn=Array.isArray(Qt)?Qt:[Qt],fr=Array.isArray(Bn)?Bn:[Bn],kr=st(),Qn=Gn/2,Nr=100-Gn/2,ei="M ".concat(Ln==="round"?Qn:0,",").concat(Qn,`
L `).concat(Ln==="round"?Nr:100,",").concat(Qn),Vt="0 0 100 ".concat(Gn),Rn=0;return me.createElement("svg",(0,ze.Z)({className:he()("".concat(bn,"-line"),Ft),viewBox:Vt,preserveAspectRatio:"none",style:Yn},wr),me.createElement("path",{className:"".concat(bn,"-line-trail"),d:ei,strokeLinecap:Ln,stroke:_n,strokeWidth:ir||Gn,fillOpacity:"0"}),qn.map(function(Nn,wn){var In=1;switch(Ln){case"round":In=1-Gn/100;break;case"square":In=1-Gn/2/100;break;default:In=1;break}var xn={strokeDasharray:"".concat(Nn*In,"px, 100px"),strokeDashoffset:"-".concat(Rn,"px"),transition:br||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},kn=fr[wn]||fr[fr.length-1];return Rn+=Nn,me.createElement("path",{key:wn,className:"".concat(bn,"-line-path"),d:ei,strokeLinecap:Ln,stroke:kn,strokeWidth:Gn,fillOpacity:"0",ref:function(bt){kr[wn]=bt},style:xn})}))},gt=Ue,Et=oe(43749),At=oe(72190),dt=oe(47273),nt=0,Ve=(0,dt.Z)();function Se(){var Le;return Ve?(Le=nt,nt+=1):Le="TEST_OR_SSR",Le}var $e=function(Le){var it=me.useState(),Ot=(0,At.Z)(it,2),Ft=Ot[0],Qt=Ot[1];return me.useEffect(function(){Qt("rc_progress_".concat(Se()))},[]),Le||Ft},Ye=function(it){var Ot=it.bg,Ft=it.children;return me.createElement("div",{style:{width:"100%",height:"100%",background:Ot}},Ft)};function ht(Le,it){return Object.keys(Le).map(function(Ot){var Ft=parseFloat(Ot),Qt="".concat(Math.floor(Ft*it),"%");return"".concat(Le[Ot]," ").concat(Qt)})}var Xe=me.forwardRef(function(Le,it){var Ot=Le.prefixCls,Ft=Le.color,Qt=Le.gradientId,bn=Le.radius,Bn=Le.style,Ln=Le.ptg,Gn=Le.strokeLinecap,Yn=Le.strokeWidth,_n=Le.size,ir=Le.gapDegree,br=Ft&&(0,Et.Z)(Ft)==="object",wr=br?"#FFF":void 0,qn=_n/2,fr=me.createElement("circle",{className:"".concat(Ot,"-circle-path"),r:bn,cx:qn,cy:qn,stroke:wr,strokeLinecap:Gn,strokeWidth:Yn,opacity:Ln===0?0:1,style:Bn,ref:it});if(!br)return fr;var kr="".concat(Qt,"-conic"),Qn=ir?"".concat(180+ir/2,"deg"):"0deg",Nr=ht(Ft,(360-ir)/360),ei=ht(Ft,1),Vt="conic-gradient(from ".concat(Qn,", ").concat(Nr.join(", "),")"),Rn="linear-gradient(to ".concat(ir?"bottom":"top",", ").concat(ei.join(", "),")");return me.createElement(me.Fragment,null,me.createElement("mask",{id:kr},fr),me.createElement("foreignObject",{x:0,y:0,width:_n,height:_n,mask:"url(#".concat(kr,")")},me.createElement(Ye,{bg:Rn},me.createElement(Ye,{bg:Vt}))))}),ut=Xe,Oe=100,Pt=function(it,Ot,Ft,Qt,bn,Bn,Ln,Gn,Yn,_n){var ir=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,br=Ft/100*360*((360-Bn)/360),wr=Bn===0?0:{bottom:0,top:180,left:90,right:-90}[Ln],qn=(100-Qt)/100*Ot;Yn==="round"&&Qt!==100&&(qn+=_n/2,qn>=Ot&&(qn=Ot-.01));var fr=Oe/2;return{stroke:typeof Gn=="string"?Gn:void 0,strokeDasharray:"".concat(Ot,"px ").concat(it),strokeDashoffset:qn+ir,transform:"rotate(".concat(bn+br+wr,"deg)"),transformOrigin:"".concat(fr,"px ").concat(fr,"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}},qe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function zt(Le){var it=Le!=null?Le:[];return Array.isArray(it)?it:[it]}var Dt=function(it){var Ot=(0,vt.Z)((0,vt.Z)({},He),it),Ft=Ot.id,Qt=Ot.prefixCls,bn=Ot.steps,Bn=Ot.strokeWidth,Ln=Ot.trailWidth,Gn=Ot.gapDegree,Yn=Gn===void 0?0:Gn,_n=Ot.gapPosition,ir=Ot.trailColor,br=Ot.strokeLinecap,wr=Ot.style,qn=Ot.className,fr=Ot.strokeColor,kr=Ot.percent,Qn=(0,Ie.Z)(Ot,qe),Nr=Oe/2,ei=$e(Ft),Vt="".concat(ei,"-gradient"),Rn=Nr-Bn/2,Nn=Math.PI*2*Rn,wn=Yn>0?90+Yn/2:-90,In=Nn*((360-Yn)/360),xn=(0,Et.Z)(bn)==="object"?bn:{count:bn,space:2},kn=xn.count,gn=xn.space,bt=zt(kr),Ae=zt(fr),je=Ae.find(function(ln){return ln&&(0,Et.Z)(ln)==="object"}),Ze=je&&(0,Et.Z)(je)==="object",We=Ze?"butt":br,yt=Pt(Nn,In,0,100,wn,Yn,_n,ir,We,Bn),Lt=st(),Jt=function(){var yn=0;return bt.map(function(En,Mn){var Kt=Ae[Mn]||Ae[Ae.length-1],hn=Pt(Nn,In,yn,En,wn,Yn,_n,Kt,We,Bn);return yn+=En,me.createElement(ut,{key:Mn,color:Kt,ptg:En,radius:Rn,prefixCls:Qt,gradientId:Vt,style:hn,strokeLinecap:We,strokeWidth:Bn,gapDegree:Yn,ref:function(Zn){Lt[Mn]=Zn},size:Oe})}).reverse()},Ht=function(){var yn=Math.round(kn*(bt[0]/100)),En=100/kn,Mn=0;return new Array(kn).fill(null).map(function(Kt,hn){var Hn=hn<=yn-1?Ae[0]:ir,Zn=Hn&&(0,Et.Z)(Hn)==="object"?"url(#".concat(Vt,")"):void 0,Kn=Pt(Nn,In,Mn,En,wn,Yn,_n,Hn,"butt",Bn,gn);return Mn+=(In-Kn.strokeDashoffset+gn)*100/In,me.createElement("circle",{key:hn,className:"".concat(Qt,"-circle-path"),r:Rn,cx:Nr,cy:Nr,stroke:Zn,strokeWidth:Bn,opacity:1,style:Kn,ref:function(nr){Lt[hn]=nr}})})};return me.createElement("svg",(0,ze.Z)({className:he()("".concat(Qt,"-circle"),qn),viewBox:"0 0 ".concat(Oe," ").concat(Oe),style:wr,id:Ft,role:"presentation"},Qn),!kn&&me.createElement("circle",{className:"".concat(Qt,"-circle-trail"),r:Rn,cx:Nr,cy:Nr,stroke:ir,strokeLinecap:We,strokeWidth:Ln||Bn,style:yt}),kn?Ht():Jt())},Bt=Dt,St={Line:gt,Circle:Bt},It=oe(6848),Qe=oe(30071);function be(Le){return!Le||Le<0?0:Le>100?100:Le}function Ct(Le){let{success:it,successPercent:Ot}=Le,Ft=Ot;return it&&"progress"in it&&(Ft=it.progress),it&&"percent"in it&&(Ft=it.percent),Ft}const Yt=Le=>{let{percent:it,success:Ot,successPercent:Ft}=Le;const Qt=be(Ct({success:Ot,successPercent:Ft}));return[Qt,be(be(it)-Qt)]},Zt=Le=>{let{success:it={},strokeColor:Ot}=Le;const{strokeColor:Ft}=it;return[Ft||Qe.presetPrimaryColors.green,Ot||null]},at=(Le,it,Ot)=>{var Ft,Qt,bn,Bn;let Ln=-1,Gn=-1;if(it==="step"){const Yn=Ot.steps,_n=Ot.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?(Ln=Le==="small"?2:14,Gn=_n!=null?_n:8):typeof Le=="number"?[Ln,Gn]=[Le,Le]:[Ln=14,Gn=8]=Le,Ln*=Yn}else if(it==="line"){const Yn=Ot==null?void 0:Ot.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?Gn=Yn||(Le==="small"?6:8):typeof Le=="number"?[Ln,Gn]=[Le,Le]:[Ln=-1,Gn=8]=Le}else(it==="circle"||it==="dashboard")&&(typeof Le=="string"||typeof Le=="undefined"?[Ln,Gn]=Le==="small"?[60,60]:[120,120]:typeof Le=="number"?[Ln,Gn]=[Le,Le]:(Ln=(Qt=(Ft=Le[0])!==null&&Ft!==void 0?Ft:Le[1])!==null&&Qt!==void 0?Qt:120,Gn=(Bn=(bn=Le[0])!==null&&bn!==void 0?bn:Le[1])!==null&&Bn!==void 0?Bn:120));return[Ln,Gn]},ot=3,Nt=Le=>ot/Le*100;var $t=Le=>{const{prefixCls:it,trailColor:Ot=null,strokeLinecap:Ft="round",gapPosition:Qt,gapDegree:bn,width:Bn=120,type:Ln,children:Gn,success:Yn,size:_n=Bn}=Le,[ir,br]=at(_n,"circle");let{strokeWidth:wr}=Le;wr===void 0&&(wr=Math.max(Nt(ir),6));const qn={width:ir,height:br,fontSize:ir*.15+6},fr=me.useMemo(()=>{if(bn||bn===0)return bn;if(Ln==="dashboard")return 75},[bn,Ln]),kr=Qt||Ln==="dashboard"&&"bottom"||void 0,Qn=Object.prototype.toString.call(Le.strokeColor)==="[object Object]",Nr=Zt({success:Yn,strokeColor:Le.strokeColor}),ei=he()(`${it}-inner`,{[`${it}-circle-gradient`]:Qn}),Vt=me.createElement(Bt,{percent:Yt(Le),strokeWidth:wr,trailWidth:wr,strokeColor:Nr,strokeLinecap:Ft,trailColor:Ot,prefixCls:it,gapDegree:fr,gapPosition:kr});return me.createElement("div",{className:ei,style:qn},ir<=20?me.createElement(It.Z,{title:Gn},me.createElement("span",null,Vt)):me.createElement(me.Fragment,null,Vt,Gn))},mn=function(Le,it){var Ot={};for(var Ft in Le)Object.prototype.hasOwnProperty.call(Le,Ft)&&it.indexOf(Ft)<0&&(Ot[Ft]=Le[Ft]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qt=0,Ft=Object.getOwnPropertySymbols(Le);Qt<Ft.length;Qt++)it.indexOf(Ft[Qt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ft[Qt])&&(Ot[Ft[Qt]]=Le[Ft[Qt]]);return Ot};const on=Le=>{let it=[];return Object.keys(Le).forEach(Ot=>{const Ft=parseFloat(Ot.replace(/%/g,""));isNaN(Ft)||it.push({key:Ft,value:Le[Ot]})}),it=it.sort((Ot,Ft)=>Ot.key-Ft.key),it.map(Ot=>{let{key:Ft,value:Qt}=Ot;return`${Qt} ${Ft}%`}).join(", ")},nn=(Le,it)=>{const{from:Ot=Qe.presetPrimaryColors.blue,to:Ft=Qe.presetPrimaryColors.blue,direction:Qt=it==="rtl"?"to left":"to right"}=Le,bn=mn(Le,["from","to","direction"]);if(Object.keys(bn).length!==0){const Bn=on(bn);return{backgroundImage:`linear-gradient(${Qt}, ${Bn})`}}return{backgroundImage:`linear-gradient(${Qt}, ${Ot}, ${Ft})`}};var ye=Le=>{const{prefixCls:it,direction:Ot,percent:Ft,size:Qt,strokeWidth:bn,strokeColor:Bn,strokeLinecap:Ln="round",children:Gn,trailColor:Yn=null,success:_n}=Le,ir=Bn&&typeof Bn!="string"?nn(Bn,Ot):{backgroundColor:Bn},br=Ln==="square"||Ln==="butt"?0:void 0,wr={backgroundColor:Yn||void 0,borderRadius:br},qn=Qt!=null?Qt:[-1,bn||(Qt==="small"?6:8)],[fr,kr]=at(qn,"line",{strokeWidth:bn}),Qn=Object.assign({width:`${be(Ft)}%`,height:kr,borderRadius:br},ir),Nr=Ct(Le),ei={width:`${be(Nr)}%`,height:kr,borderRadius:br,backgroundColor:_n==null?void 0:_n.strokeColor},Vt={width:fr<0?"100%":fr,height:kr};return me.createElement(me.Fragment,null,me.createElement("div",{className:`${it}-outer`,style:Vt},me.createElement("div",{className:`${it}-inner`,style:wr},me.createElement("div",{className:`${it}-bg`,style:Qn}),Nr!==void 0?me.createElement("div",{className:`${it}-success-bg`,style:ei}):null)),Gn)},se=Le=>{const{size:it,steps:Ot,percent:Ft=0,strokeWidth:Qt=8,strokeColor:bn,trailColor:Bn=null,prefixCls:Ln,children:Gn}=Le,Yn=Math.round(Ot*(Ft/100)),_n=it==="small"?2:14,ir=it!=null?it:[_n,Qt],[br,wr]=at(ir,"step",{steps:Ot,strokeWidth:Qt}),qn=br/Ot,fr=new Array(Ot);for(let kr=0;kr<Ot;kr++){const Qn=Array.isArray(bn)?bn[kr]:bn;fr[kr]=me.createElement("div",{key:kr,className:he()(`${Ln}-steps-item`,{[`${Ln}-steps-item-active`]:kr<=Yn-1}),style:{backgroundColor:kr<=Yn-1?Qn:Bn,width:qn,height:wr}})}return me.createElement("div",{className:`${Ln}-steps-outer`},fr,Gn)},ce=oe(36237),de=oe(17313),ae=oe(83116),Be=oe(37613);const ft=Le=>{const it=Le?"100%":"-100%";return new ce.Keyframes(`antProgress${Le?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${it}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${it}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Fe=Le=>{const{componentCls:it,iconCls:Ot}=Le;return{[it]:Object.assign(Object.assign({},(0,de.Wf)(Le)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Le.fontSize,marginInlineEnd:Le.marginXS,marginBottom:Le.marginXS},[`${it}-outer`]:{display:"inline-block",width:"100%"},[`&${it}-show-info`]:{[`${it}-outer`]:{marginInlineEnd:`calc(-2em - ${Le.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Le.paddingXS}px)`}},[`${it}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Le.remainingColor,borderRadius:Le.lineBorderRadius},[`${it}-inner:not(${it}-circle-gradient)`]:{[`${it}-circle-path`]:{stroke:Le.defaultColor}},[`${it}-success-bg, ${it}-bg`]:{position:"relative",backgroundColor:Le.defaultColor,borderRadius:Le.lineBorderRadius,transition:`all ${Le.motionDurationSlow} ${Le.motionEaseInOutCirc}`},[`${it}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Le.colorSuccess},[`${it}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Le.marginXS,color:Le.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ot]:{fontSize:Le.fontSize}},[`&${it}-status-active`]:{[`${it}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Le.colorBgContainer,borderRadius:Le.lineBorderRadius,opacity:0,animationName:ft(),animationDuration:Le.progressActiveMotionDuration,animationTimingFunction:Le.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${it}-rtl${it}-status-active`]:{[`${it}-bg::before`]:{animationName:ft(!0)}},[`&${it}-status-exception`]:{[`${it}-bg`]:{backgroundColor:Le.colorError},[`${it}-text`]:{color:Le.colorError}},[`&${it}-status-exception ${it}-inner:not(${it}-circle-gradient)`]:{[`${it}-circle-path`]:{stroke:Le.colorError}},[`&${it}-status-success`]:{[`${it}-bg`]:{backgroundColor:Le.colorSuccess},[`${it}-text`]:{color:Le.colorSuccess}},[`&${it}-status-success ${it}-inner:not(${it}-circle-gradient)`]:{[`${it}-circle-path`]:{stroke:Le.colorSuccess}}})}},De=Le=>{const{componentCls:it,iconCls:Ot}=Le;return{[it]:{[`${it}-circle-trail`]:{stroke:Le.remainingColor},[`&${it}-circle ${it}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${it}-circle ${it}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Le.circleTextColor,fontSize:Le.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ot]:{fontSize:`${Le.fontSize/Le.fontSizeSM}em`}},[`${it}-circle&-status-exception`]:{[`${it}-text`]:{color:Le.colorError}},[`${it}-circle&-status-success`]:{[`${it}-text`]:{color:Le.colorSuccess}}},[`${it}-inline-circle`]:{lineHeight:1,[`${it}-inner`]:{verticalAlign:"bottom"}}}},mt=Le=>{const{componentCls:it}=Le;return{[it]:{[`${it}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Le.progressStepMinWidth,marginInlineEnd:Le.progressStepMarginInlineEnd,backgroundColor:Le.remainingColor,transition:`all ${Le.motionDurationSlow}`,"&-active":{backgroundColor:Le.defaultColor}}}}}},rt=Le=>{const{componentCls:it,iconCls:Ot}=Le;return{[it]:{[`${it}-small&-line, ${it}-small&-line ${it}-text ${Ot}`]:{fontSize:Le.fontSizeSM}}}};var Ge=(0,ae.Z)("Progress",Le=>{const it=Le.marginXXS/2,Ot=(0,Be.TS)(Le,{progressStepMarginInlineEnd:it,progressStepMinWidth:it,progressActiveMotionDuration:"2.4s"});return[Fe(Ot),De(Ot),mt(Ot),rt(Ot)]},Le=>({circleTextColor:Le.colorText,defaultColor:Le.colorInfo,remainingColor:Le.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),xt=function(Le,it){var Ot={};for(var Ft in Le)Object.prototype.hasOwnProperty.call(Le,Ft)&&it.indexOf(Ft)<0&&(Ot[Ft]=Le[Ft]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qt=0,Ft=Object.getOwnPropertySymbols(Le);Qt<Ft.length;Qt++)it.indexOf(Ft[Qt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Ft[Qt])&&(Ot[Ft[Qt]]=Le[Ft[Qt]]);return Ot};const Xt=null,ct=["normal","exception","active","success"];var rn=me.forwardRef((Le,it)=>{const{prefixCls:Ot,className:Ft,rootClassName:Qt,steps:bn,strokeColor:Bn,percent:Ln=0,size:Gn="default",showInfo:Yn=!0,type:_n="line",status:ir,format:br,style:wr}=Le,qn=xt(Le,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),fr=me.useMemo(()=>{var bt,Ae;const je=Ct(Le);return parseInt(je!==void 0?(bt=je!=null?je:0)===null||bt===void 0?void 0:bt.toString():(Ae=Ln!=null?Ln:0)===null||Ae===void 0?void 0:Ae.toString(),10)},[Ln,Le.success,Le.successPercent]),kr=me.useMemo(()=>!ct.includes(ir)&&fr>=100?"success":ir||"normal",[ir,fr]),{getPrefixCls:Qn,direction:Nr,progress:ei}=me.useContext(Ee.E_),Vt=Qn("progress",Ot),[Rn,Nn]=Ge(Vt),wn=me.useMemo(()=>{if(!Yn)return null;const bt=Ct(Le);let Ae;const je=br||(We=>`${We}%`),Ze=_n==="line";return br||kr!=="exception"&&kr!=="success"?Ae=je(be(Ln),be(bt)):kr==="exception"?Ae=Ze?me.createElement(pt.Z,null):me.createElement(ge.Z,null):kr==="success"&&(Ae=Ze?me.createElement(Me.Z,null):me.createElement(Pe.Z,null)),me.createElement("span",{className:`${Vt}-text`,title:typeof Ae=="string"?Ae:void 0},Ae)},[Yn,Ln,fr,kr,_n,Vt,br]),In=Array.isArray(Bn)?Bn[0]:Bn,xn=typeof Bn=="string"||Array.isArray(Bn)?Bn:void 0;let kn;_n==="line"?kn=bn?me.createElement(se,Object.assign({},Le,{strokeColor:xn,prefixCls:Vt,steps:bn}),wn):me.createElement(ye,Object.assign({},Le,{strokeColor:In,prefixCls:Vt,direction:Nr}),wn):(_n==="circle"||_n==="dashboard")&&(kn=me.createElement($t,Object.assign({},Le,{strokeColor:In,prefixCls:Vt,progressStatus:kr}),wn));const gn=he()(Vt,`${Vt}-status-${kr}`,`${Vt}-${_n==="dashboard"&&"circle"||bn&&"steps"||_n}`,{[`${Vt}-inline-circle`]:_n==="circle"&&at(Gn,"circle")[0]<=20,[`${Vt}-show-info`]:Yn,[`${Vt}-${Gn}`]:typeof Gn=="string",[`${Vt}-rtl`]:Nr==="rtl"},ei==null?void 0:ei.className,Ft,Qt,Nn);return Rn(me.createElement("div",Object.assign({ref:it,style:Object.assign(Object.assign({},ei==null?void 0:ei.style),wr),className:gn,role:"progressbar","aria-valuenow":fr},(0,we.Z)(qn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),kn))}),lt=rn},5112:function(An,Ut,oe){"use strict";oe.d(Ut,{ZP:function(){return Qe}});var me=oe(92310),Me=oe.n(me),Pe=oe(18929),pt=oe(26112),ge=oe(59301),ke=oe(36355),he=oe(19716);const we=ge.createContext(null),Ee=we.Provider;var ze=we;const vt=ge.createContext(null),Ie=vt.Provider;var He=oe(5630),st=oe(8654),Je=oe(1684),Ue=oe(32441),gt=oe(17313),Et=oe(83116),At=oe(37613);const dt=be=>{const{componentCls:Ct,antCls:Yt}=be,Zt=`${Ct}-group`;return{[Zt]:Object.assign(Object.assign({},(0,gt.Wf)(be)),{display:"inline-block",fontSize:0,[`&${Zt}-rtl`]:{direction:"rtl"},[`${Yt}-badge ${Yt}-badge-count`]:{zIndex:1},[`> ${Yt}-badge:not(:first-child) > ${Yt}-button-wrapper`]:{borderInlineStart:"none"}})}},nt=be=>{const{componentCls:Ct,wrapperMarginInlineEnd:Yt,colorPrimary:Zt,radioSize:at,motionDurationSlow:ot,motionDurationMid:Nt,motionEaseInOutCirc:Sn,colorBgContainer:$t,colorBorder:mn,lineWidth:on,dotSize:nn,colorBgContainerDisabled:en,colorTextDisabled:ye,paddingXS:ue,dotColorDisabled:se,lineType:ce,radioDotDisabledSize:de,wireframe:ae,colorWhite:Be}=be,ft=`${Ct}-inner`;return{[`${Ct}-wrapper`]:Object.assign(Object.assign({},(0,gt.Wf)(be)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Yt,cursor:"pointer",[`&${Ct}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:be.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Ct}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${on}px ${ce} ${Zt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Ct]:Object.assign(Object.assign({},(0,gt.Wf)(be)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Ct}-wrapper:hover &,
&:hover ${ft}`]:{borderColor:Zt},[`${Ct}-input:focus-visible + ${ft}`]:Object.assign({},(0,gt.oN)(be)),[`${Ct}:hover::after, ${Ct}-wrapper:hover &::after`]:{visibility:"visible"},[`${Ct}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:at,height:at,marginBlockStart:at/-2,marginInlineStart:at/-2,backgroundColor:ae?Zt:Be,borderBlockStart:0,borderInlineStart:0,borderRadius:at,transform:"scale(0)",opacity:0,transition:`all ${ot} ${Sn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:at,height:at,backgroundColor:$t,borderColor:mn,borderStyle:"solid",borderWidth:on,borderRadius:"50%",transition:`all ${Nt}`},[`${Ct}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Ct}-checked`]:{[ft]:{borderColor:Zt,backgroundColor:ae?$t:Zt,"&::after":{transform:`scale(${nn/at})`,opacity:1,transition:`all ${ot} ${Sn}`}}},[`${Ct}-disabled`]:{cursor:"not-allowed",[ft]:{backgroundColor:en,borderColor:mn,cursor:"not-allowed","&::after":{backgroundColor:se}},[`${Ct}-input`]:{cursor:"not-allowed"},[`${Ct}-disabled + span`]:{color:ye,cursor:"not-allowed"},[`&${Ct}-checked`]:{[ft]:{"&::after":{transform:`scale(${de/at})`}}}},[`span${Ct} + *`]:{paddingInlineStart:ue,paddingInlineEnd:ue}})}},Ve=be=>{const{buttonColor:Ct,controlHeight:Yt,componentCls:Zt,lineWidth:at,lineType:ot,colorBorder:Nt,motionDurationSlow:Sn,motionDurationMid:$t,buttonPaddingInline:mn,fontSize:on,buttonBg:nn,fontSizeLG:en,controlHeightLG:ye,controlHeightSM:ue,paddingXS:se,borderRadius:ce,borderRadiusSM:de,borderRadiusLG:ae,buttonCheckedBg:Be,buttonSolidCheckedColor:ft,colorTextDisabled:Fe,colorBgContainerDisabled:De,buttonCheckedBgDisabled:mt,buttonCheckedColorDisabled:rt,colorPrimary:Ge,colorPrimaryHover:xt,colorPrimaryActive:Xt,buttonSolidCheckedBg:ct,buttonSolidCheckedHoverBg:Rt,buttonSolidCheckedActiveBg:rn}=be;return{[`${Zt}-button-wrapper`]:{position:"relative",display:"inline-block",height:Yt,margin:0,paddingInline:mn,paddingBlock:0,color:Ct,fontSize:on,lineHeight:`${Yt-at*2}px`,background:nn,border:`${at}px ${ot} ${Nt}`,borderBlockStartWidth:at+.02,borderInlineStartWidth:0,borderInlineEndWidth:at,cursor:"pointer",transition:[`color ${$t}`,`background ${$t}`,`box-shadow ${$t}`].join(","),a:{color:Ct},[`> ${Zt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-at,insetInlineStart:-at,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:at,paddingInline:0,backgroundColor:Nt,transition:`background-color ${Sn}`,content:'""'}},"&:first-child":{borderInlineStart:`${at}px ${ot} ${Nt}`,borderStartStartRadius:ce,borderEndStartRadius:ce},"&:last-child":{borderStartEndRadius:ce,borderEndEndRadius:ce},"&:first-child:last-child":{borderRadius:ce},[`${Zt}-group-large &`]:{height:ye,fontSize:en,lineHeight:`${ye-at*2}px`,"&:first-child":{borderStartStartRadius:ae,borderEndStartRadius:ae},"&:last-child":{borderStartEndRadius:ae,borderEndEndRadius:ae}},[`${Zt}-group-small &`]:{height:ue,paddingInline:se-at,paddingBlock:0,lineHeight:`${ue-at*2}px`,"&:first-child":{borderStartStartRadius:de,borderEndStartRadius:de},"&:last-child":{borderStartEndRadius:de,borderEndEndRadius:de}},"&:hover":{position:"relative",color:Ge},"&:has(:focus-visible)":Object.assign({},(0,gt.oN)(be)),[`${Zt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Zt}-button-wrapper-disabled)`]:{zIndex:1,color:Ge,background:Be,borderColor:Ge,"&::before":{backgroundColor:Ge},"&:first-child":{borderColor:Ge},"&:hover":{color:xt,borderColor:xt,"&::before":{backgroundColor:xt}},"&:active":{color:Xt,borderColor:Xt,"&::before":{backgroundColor:Xt}}},[`${Zt}-group-solid &-checked:not(${Zt}-button-wrapper-disabled)`]:{color:ft,background:ct,borderColor:ct,"&:hover":{color:ft,background:Rt,borderColor:Rt},"&:active":{color:ft,background:rn,borderColor:rn}},"&-disabled":{color:Fe,backgroundColor:De,borderColor:Nt,cursor:"not-allowed","&:first-child, &:hover":{color:Fe,backgroundColor:De,borderColor:Nt}},[`&-disabled${Zt}-button-wrapper-checked`]:{color:rt,backgroundColor:mt,borderColor:Nt,boxShadow:"none"}}}},Se=be=>be-4*2;var $e=(0,Et.Z)("Radio",be=>{const{controlOutline:Ct,controlOutlineWidth:Yt,radioSize:Zt}=be,at=`0 0 0 ${Yt}px ${Ct}`,ot=at,Nt=Se(Zt),Sn=(0,At.TS)(be,{radioDotDisabledSize:Nt,radioFocusShadow:at,radioButtonFocusShadow:ot});return[dt(Sn),nt(Sn),Ve(Sn)]},be=>{const{wireframe:Ct,padding:Yt,marginXS:Zt,lineWidth:at,fontSizeLG:ot,colorText:Nt,colorBgContainer:Sn,colorTextDisabled:$t,controlItemBgActiveDisabled:mn,colorTextLightSolid:on,colorPrimary:nn,colorPrimaryHover:en,colorPrimaryActive:ye}=be,ue=4,se=ot,ce=Ct?Se(se):se-(ue+at)*2;return{radioSize:se,dotSize:ce,dotColorDisabled:$t,buttonSolidCheckedColor:on,buttonSolidCheckedBg:nn,buttonSolidCheckedHoverBg:en,buttonSolidCheckedActiveBg:ye,buttonBg:Sn,buttonCheckedBg:Sn,buttonColor:Nt,buttonCheckedBgDisabled:mn,buttonCheckedColorDisabled:$t,buttonPaddingInline:Yt-at,wrapperMarginInlineEnd:Zt}}),Ye=oe(14088),ht=oe(4572),Xe=function(be,Ct){var Yt={};for(var Zt in be)Object.prototype.hasOwnProperty.call(be,Zt)&&Ct.indexOf(Zt)<0&&(Yt[Zt]=be[Zt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Zt=Object.getOwnPropertySymbols(be);at<Zt.length;at++)Ct.indexOf(Zt[at])<0&&Object.prototype.propertyIsEnumerable.call(be,Zt[at])&&(Yt[Zt[at]]=be[Zt[at]]);return Yt};const ut=(be,Ct)=>{var Yt,Zt;const at=ge.useContext(ze),ot=ge.useContext(vt),{getPrefixCls:Nt,direction:Sn,radio:$t}=ge.useContext(ke.E_),mn=ge.useRef(null),on=(0,st.sQ)(Ct,mn),{isFormItemInput:nn}=ge.useContext(Ue.aM),en=Xt=>{var ct,Rt;(ct=be.onChange)===null||ct===void 0||ct.call(be,Xt),(Rt=at==null?void 0:at.onChange)===null||Rt===void 0||Rt.call(at,Xt)},{prefixCls:ye,className:ue,rootClassName:se,children:ce,style:de}=be,ae=Xe(be,["prefixCls","className","rootClassName","children","style"]),Be=Nt("radio",ye),ft=((at==null?void 0:at.optionType)||ot)==="button",Fe=ft?`${Be}-button`:Be,[De,mt]=$e(Be),rt=Object.assign({},ae),Ge=ge.useContext(Je.Z);at&&(rt.name=at.name,rt.onChange=en,rt.checked=be.value===at.value,rt.disabled=(Yt=rt.disabled)!==null&&Yt!==void 0?Yt:at.disabled),rt.disabled=(Zt=rt.disabled)!==null&&Zt!==void 0?Zt:Ge;const xt=Me()(`${Fe}-wrapper`,{[`${Fe}-wrapper-checked`]:rt.checked,[`${Fe}-wrapper-disabled`]:rt.disabled,[`${Fe}-wrapper-rtl`]:Sn==="rtl",[`${Fe}-wrapper-in-form-item`]:nn},$t==null?void 0:$t.className,ue,se,mt);return De(ge.createElement(Ye.Z,{component:"Radio",disabled:rt.disabled},ge.createElement("label",{className:xt,style:Object.assign(Object.assign({},$t==null?void 0:$t.style),de),onMouseEnter:be.onMouseEnter,onMouseLeave:be.onMouseLeave},ge.createElement(He.Z,Object.assign({},rt,{className:Me()(rt.className,!ft&&ht.A),type:"radio",prefixCls:Fe,ref:on})),ce!==void 0?ge.createElement("span",null,ce):null)))};var Pt=ge.forwardRef(ut);const qe=ge.forwardRef((be,Ct)=>{const{getPrefixCls:Yt,direction:Zt}=ge.useContext(ke.E_),[at,ot]=(0,Pe.Z)(be.defaultValue,{value:be.value}),Nt=ct=>{const Rt=at,rn=ct.target.value;"value"in be||ot(rn);const{onChange:lt}=be;lt&&rn!==Rt&&lt(ct)},{prefixCls:Sn,className:$t,rootClassName:mn,options:on,buttonStyle:nn="outline",disabled:en,children:ye,size:ue,style:se,id:ce,onMouseEnter:de,onMouseLeave:ae,onFocus:Be,onBlur:ft}=be,Fe=Yt("radio",Sn),De=`${Fe}-group`,[mt,rt]=$e(Fe);let Ge=ye;on&&on.length>0&&(Ge=on.map(ct=>typeof ct=="string"||typeof ct=="number"?ge.createElement(Pt,{key:ct.toString(),prefixCls:Fe,disabled:en,value:ct,checked:at===ct},ct):ge.createElement(Pt,{key:`radio-group-value-options-${ct.value}`,prefixCls:Fe,disabled:ct.disabled||en,value:ct.value,checked:at===ct.value,title:ct.title,style:ct.style},ct.label)));const xt=(0,he.Z)(ue),Xt=Me()(De,`${De}-${nn}`,{[`${De}-${xt}`]:xt,[`${De}-rtl`]:Zt==="rtl"},$t,mn,rt);return mt(ge.createElement("div",Object.assign({},(0,pt.Z)(be,{aria:!0,data:!0}),{className:Xt,style:se,onMouseEnter:de,onMouseLeave:ae,onFocus:Be,onBlur:ft,id:ce,ref:Ct}),ge.createElement(Ee,{value:{onChange:Nt,value:at,disabled:be.disabled,name:be.name,optionType:be.optionType}},Ge)))});var zt=ge.memo(qe),Dt=function(be,Ct){var Yt={};for(var Zt in be)Object.prototype.hasOwnProperty.call(be,Zt)&&Ct.indexOf(Zt)<0&&(Yt[Zt]=be[Zt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Zt=Object.getOwnPropertySymbols(be);at<Zt.length;at++)Ct.indexOf(Zt[at])<0&&Object.prototype.propertyIsEnumerable.call(be,Zt[at])&&(Yt[Zt[at]]=be[Zt[at]]);return Yt};const Bt=(be,Ct)=>{const{getPrefixCls:Yt}=ge.useContext(ke.E_),{prefixCls:Zt}=be,at=Dt(be,["prefixCls"]),ot=Yt("radio",Zt);return ge.createElement(Ie,{value:"button"},ge.createElement(Pt,Object.assign({prefixCls:ot},at,{type:"radio",ref:Ct})))};var St=ge.forwardRef(Bt);const It=Pt;It.Button=St,It.Group=zt,It.__ANT_RADIO=!0;var Qe=It},57809:function(An,Ut,oe){"use strict";var me=oe(92310),Me=oe.n(me),Pe=oe(77861),pt=oe(2738),ge=oe(59301),ke=oe(53487),he=oe(62892),we=oe(19080),Ee=oe(36355),ze=oe(1684),vt=oe(93891),Ie=oe(19716),He=oe(32441),st=oe(33234),Je=oe(14154),Ue=oe(58582),gt=oe(84443),Et=oe(66339),At=function($e,Ye){var ht={};for(var Xe in $e)Object.prototype.hasOwnProperty.call($e,Xe)&&Ye.indexOf(Xe)<0&&(ht[Xe]=$e[Xe]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Xe=Object.getOwnPropertySymbols($e);ut<Xe.length;ut++)Ye.indexOf(Xe[ut])<0&&Object.prototype.propertyIsEnumerable.call($e,Xe[ut])&&(ht[Xe[ut]]=$e[Xe[ut]]);return ht};const dt="SECRET_COMBOBOX_MODE_DO_NOT_USE",nt=($e,Ye)=>{var ht,{prefixCls:Xe,bordered:ut=!0,className:Oe,rootClassName:Pt,getPopupContainer:qe,popupClassName:zt,dropdownClassName:Dt,listHeight:Bt=256,placement:St,listItemHeight:It=24,size:Qe,disabled:be,notFoundContent:Ct,status:Yt,builtinPlacements:Zt,dropdownMatchSelectWidth:at,popupMatchSelectWidth:ot,direction:Nt,style:Sn,allowClear:$t}=$e,mn=At($e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:on,getPrefixCls:nn,renderEmpty:en,direction:ye,virtual:ue,popupMatchSelectWidth:se,popupOverflow:ce,select:de}=ge.useContext(Ee.E_),ae=nn("select",Xe),Be=nn(),ft=Nt!=null?Nt:ye,{compactSize:Fe,compactItemClassnames:De}=(0,st.ri)(ae,ft),[mt,rt]=(0,Je.Z)(ae),Ge=ge.useMemo(()=>{const{mode:kr}=mn;if(kr!=="combobox")return kr===dt?"combobox":kr},[mn.mode]),xt=Ge==="multiple"||Ge==="tags",Xt=(0,gt.Z)(mn.suffixIcon,mn.showArrow),ct=(ht=ot!=null?ot:at)!==null&&ht!==void 0?ht:se,{status:Rt,hasFeedback:rn,isFormItemInput:lt,feedbackIcon:Le}=ge.useContext(He.aM),it=(0,we.F)(Rt,Yt);let Ot;Ct!==void 0?Ot=Ct:Ge==="combobox"?Ot=null:Ot=(en==null?void 0:en("Select"))||ge.createElement(vt.Z,{componentName:"Select"});const{suffixIcon:Ft,itemIcon:Qt,removeIcon:bn,clearIcon:Bn}=(0,Et.Z)(Object.assign(Object.assign({},mn),{multiple:xt,hasFeedback:rn,feedbackIcon:Le,showSuffixIcon:Xt,prefixCls:ae,showArrow:mn.showArrow,componentName:"Select"})),Ln=$t===!0?{clearIcon:Bn}:$t,Gn=(0,pt.Z)(mn,["suffixIcon","itemIcon"]),Yn=Me()(zt||Dt,{[`${ae}-dropdown-${ft}`]:ft==="rtl"},Pt,rt),_n=(0,Ie.Z)(kr=>{var Qn;return(Qn=Qe!=null?Qe:Fe)!==null&&Qn!==void 0?Qn:kr}),ir=ge.useContext(ze.Z),br=be!=null?be:ir,wr=Me()({[`${ae}-lg`]:_n==="large",[`${ae}-sm`]:_n==="small",[`${ae}-rtl`]:ft==="rtl",[`${ae}-borderless`]:!ut,[`${ae}-in-form-item`]:lt},(0,we.Z)(ae,it,rn),De,de==null?void 0:de.className,Oe,Pt,rt),qn=ge.useMemo(()=>St!==void 0?St:ft==="rtl"?"bottomRight":"bottomLeft",[St,ft]),fr=(0,Ue.Z)(Zt,ce);return mt(ge.createElement(Pe.ZP,Object.assign({ref:Ye,virtual:ue,showSearch:de==null?void 0:de.showSearch},Gn,{style:Object.assign(Object.assign({},de==null?void 0:de.style),Sn),dropdownMatchSelectWidth:ct,builtinPlacements:fr,transitionName:(0,he.m)(Be,"slide-up",mn.transitionName),listHeight:Bt,listItemHeight:It,mode:Ge,prefixCls:ae,placement:qn,direction:ft,suffixIcon:Ft,menuItemSelectedIcon:Qt,removeIcon:bn,allowClear:Ln,notFoundContent:Ot,className:wr,getPopupContainer:qe||on,dropdownClassName:Yn,disabled:br})))},Ve=ge.forwardRef(nt),Se=(0,ke.Z)(Ve);Ve.SECRET_COMBOBOX_MODE_DO_NOT_USE=dt,Ve.Option=Pe.Wx,Ve.OptGroup=Pe.Xo,Ve._InternalPanelDoNotUseOrYouWillBeFired=Se,Ut.default=Ve},14154:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return Ve}});var me=oe(17313),Me=oe(74207),Pe=oe(37613),pt=oe(83116),ge=oe(13826),ke=oe(92899);const he=Se=>{const{optionHeight:$e,optionFontSize:Ye,optionLineHeight:ht,optionPadding:Xe}=Se;return{position:"relative",display:"block",minHeight:$e,padding:Xe,color:Se.colorText,fontWeight:"normal",fontSize:Ye,lineHeight:ht,boxSizing:"border-box"}};var Ee=Se=>{const{antCls:$e,componentCls:Ye}=Se,ht=`${Ye}-item`,Xe=`&${$e}-slide-up-enter${$e}-slide-up-enter-active`,ut=`&${$e}-slide-up-appear${$e}-slide-up-appear-active`,Oe=`&${$e}-slide-up-leave${$e}-slide-up-leave-active`,Pt=`${Ye}-dropdown-placement-`;return[{[`${Ye}-dropdown`]:Object.assign(Object.assign({},(0,me.Wf)(Se)),{position:"absolute",top:-9999,zIndex:Se.zIndexPopup,boxSizing:"border-box",padding:Se.paddingXXS,overflow:"hidden",fontSize:Se.fontSize,fontVariant:"initial",backgroundColor:Se.colorBgElevated,borderRadius:Se.borderRadiusLG,outline:"none",boxShadow:Se.boxShadowSecondary,[`
${Xe}${Pt}bottomLeft,
${ut}${Pt}bottomLeft
`]:{animationName:ge.fJ},[`
${Xe}${Pt}topLeft,
${ut}${Pt}topLeft,
${Xe}${Pt}topRight,
${ut}${Pt}topRight
`]:{animationName:ge.Qt},[`${Oe}${Pt}bottomLeft`]:{animationName:ge.Uw},[`
${Oe}${Pt}topLeft,
${Oe}${Pt}topRight
`]:{animationName:ge.ly},"&-hidden":{display:"none"},[`${ht}`]:Object.assign(Object.assign({},he(Se)),{cursor:"pointer",transition:`background ${Se.motionDurationSlow} ease`,borderRadius:Se.borderRadiusSM,"&-group":{color:Se.colorTextDescription,fontSize:Se.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},me.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${ht}-option-disabled)`]:{backgroundColor:Se.optionActiveBg},[`&-selected:not(${ht}-option-disabled)`]:{color:Se.optionSelectedColor,fontWeight:Se.optionSelectedFontWeight,backgroundColor:Se.optionSelectedBg,[`${ht}-option-state`]:{color:Se.colorPrimary}},"&-disabled":{[`&${ht}-option-selected`]:{backgroundColor:Se.colorBgContainerDisabled},color:Se.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Se.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ge.oN)(Se,"slide-up"),(0,ge.oN)(Se,"slide-down"),(0,ke.Fm)(Se,"move-up"),(0,ke.Fm)(Se,"move-down")]};const ze=2,vt=Se=>{let{controlHeightSM:$e,controlHeight:Ye,lineWidth:ht}=Se;const Xe=(Ye-$e)/2-ht,ut=Math.ceil(Xe/2);return[Xe,ut]};function Ie(Se,$e){const{componentCls:Ye,iconCls:ht}=Se,Xe=`${Ye}-selection-overflow`,ut=Se.multipleSelectItemHeight,[Oe]=vt(Se),Pt=$e?`${Ye}-${$e}`:"";return{[`${Ye}-multiple${Pt}`]:{fontSize:Se.fontSize,[Xe]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ye}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Oe-ze}px ${ze*2}px`,borderRadius:Se.borderRadius,[`${Ye}-show-search&`]:{cursor:"text"},[`${Ye}-disabled&`]:{background:Se.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ze}px 0`,lineHeight:`${ut}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${Ye}-show-arrow ${Ye}-selector,
&${Ye}-allow-clear ${Ye}-selector
`]:{paddingInlineEnd:Se.fontSizeIcon+Se.controlPaddingHorizontal},[`${Ye}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:ut,marginTop:ze,marginBottom:ze,lineHeight:`${ut-Se.lineWidth*2}px`,background:Se.multipleItemBg,border:`${Se.lineWidth}px ${Se.lineType} ${Se.multipleItemBorderColor}`,borderRadius:Se.borderRadiusSM,cursor:"default",transition:`font-size ${Se.motionDurationSlow}, line-height ${Se.motionDurationSlow}, height ${Se.motionDurationSlow}`,userSelect:"none",marginInlineEnd:ze*2,paddingInlineStart:Se.paddingXS,paddingInlineEnd:Se.paddingXS/2,[`${Ye}-disabled&`]:{color:Se.multipleItemColorDisabled,borderColor:Se.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Se.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,me.Ro)()),{display:"inline-flex",alignItems:"center",color:Se.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ht}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Se.colorIconHover}})},[`${Xe}-item + ${Xe}-item`]:{[`${Ye}-selection-search`]:{marginInlineStart:0}},[`${Ye}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Se.inputPaddingHorizontalBase-Oe,"\n &-input,\n &-mirror\n ":{height:ut,fontFamily:Se.fontFamily,lineHeight:`${ut}px`,transition:`all ${Se.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ye}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Se.inputPaddingHorizontalBase,insetInlineEnd:Se.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Se.motionDurationSlow}`}}}}var st=Se=>{const{componentCls:$e}=Se,Ye=(0,Pe.TS)(Se,{controlHeight:Se.controlHeightSM,multipleSelectItemHeight:Se.controlHeightXS,borderRadius:Se.borderRadiusSM,borderRadiusSM:Se.borderRadiusXS}),ht=(0,Pe.TS)(Se,{fontSize:Se.fontSizeLG,controlHeight:Se.controlHeightLG,multipleSelectItemHeight:Se.multipleItemHeightLG,borderRadius:Se.borderRadiusLG,borderRadiusSM:Se.borderRadius}),[,Xe]=vt(Se);return[Ie(Se),Ie(Ye,"sm"),{[`${$e}-multiple${$e}-sm`]:{[`${$e}-selection-placeholder`]:{insetInline:Se.controlPaddingHorizontalSM-Se.lineWidth},[`${$e}-selection-search`]:{marginInlineStart:Xe}}},Ie(ht,"lg")]};function Je(Se,$e){const{componentCls:Ye,inputPaddingHorizontalBase:ht,borderRadius:Xe}=Se,ut=Se.controlHeight-Se.lineWidth*2,Oe=Math.ceil(Se.fontSize*1.25),Pt=$e?`${Ye}-${$e}`:"";return{[`${Ye}-single${Pt}`]:{fontSize:Se.fontSize,[`${Ye}-selector`]:Object.assign(Object.assign({},(0,me.Wf)(Se)),{display:"flex",borderRadius:Xe,[`${Ye}-selection-search`]:{position:"absolute",top:0,insetInlineStart:ht,insetInlineEnd:ht,bottom:0,"&-input":{width:"100%"}},[`
${Ye}-selection-item,
${Ye}-selection-placeholder
`]:{padding:0,lineHeight:`${ut}px`,transition:`all ${Se.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${ut}px`}},[`${Ye}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ye}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ye}-selection-item:after`,`${Ye}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Ye}-show-arrow ${Ye}-selection-item,
&${Ye}-show-arrow ${Ye}-selection-placeholder
`]:{paddingInlineEnd:Oe},[`&${Ye}-open ${Ye}-selection-item`]:{color:Se.colorTextPlaceholder},[`&:not(${Ye}-customize-input)`]:{[`${Ye}-selector`]:{width:"100%",height:Se.controlHeight,padding:`0 ${ht}px`,[`${Ye}-selection-search-input`]:{height:ut},"&:after":{lineHeight:`${ut}px`}}},[`&${Ye}-customize-input`]:{[`${Ye}-selector`]:{"&:after":{display:"none"},[`${Ye}-selection-search`]:{position:"static",width:"100%"},[`${Ye}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ht}px`,"&:after":{display:"none"}}}}}}}function Ue(Se){const{componentCls:$e}=Se,Ye=Se.controlPaddingHorizontalSM-Se.lineWidth;return[Je(Se),Je((0,Pe.TS)(Se,{controlHeight:Se.controlHeightSM,borderRadius:Se.borderRadiusSM}),"sm"),{[`${$e}-single${$e}-sm`]:{[`&:not(${$e}-customize-input)`]:{[`${$e}-selection-search`]:{insetInlineStart:Ye,insetInlineEnd:Ye},[`${$e}-selector`]:{padding:`0 ${Ye}px`},[`&${$e}-show-arrow ${$e}-selection-search`]:{insetInlineEnd:Ye+Se.fontSize*1.5},[`
&${$e}-show-arrow ${$e}-selection-item,
&${$e}-show-arrow ${$e}-selection-placeholder
`]:{paddingInlineEnd:Se.fontSize*1.5}}}},Je((0,Pe.TS)(Se,{controlHeight:Se.singleItemHeightLG,fontSize:Se.fontSizeLG,borderRadius:Se.borderRadiusLG}),"lg")]}const gt=Se=>{const{componentCls:$e,selectorBg:Ye}=Se;return{position:"relative",backgroundColor:Ye,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,transition:`all ${Se.motionDurationMid} ${Se.motionEaseInOut}`,input:{cursor:"pointer"},[`${$e}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${$e}-disabled&`]:{color:Se.colorTextDisabled,background:Se.colorBgContainerDisabled,cursor:"not-allowed",[`${$e}-multiple&`]:{background:Se.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Et=function(Se,$e){let Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:ht,borderHoverColor:Xe,outlineColor:ut,antCls:Oe}=$e,Pt=Ye?{[`${ht}-selector`]:{borderColor:Xe}}:{};return{[Se]:{[`&:not(${ht}-disabled):not(${ht}-customize-input):not(${Oe}-pagination-size-changer)`]:Object.assign(Object.assign({},Pt),{[`${ht}-focused& ${ht}-selector`]:{borderColor:Xe,boxShadow:`0 0 0 ${$e.controlOutlineWidth}px ${ut}`,outline:0},[`&:hover ${ht}-selector`]:{borderColor:Xe}})}}},At=Se=>{const{componentCls:$e}=Se;return{[`${$e}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},dt=Se=>{const{componentCls:$e,inputPaddingHorizontalBase:Ye,iconCls:ht}=Se;return{[$e]:Object.assign(Object.assign({},(0,me.Wf)(Se)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${$e}-customize-input) ${$e}-selector`]:Object.assign(Object.assign({},gt(Se)),At(Se)),[`${$e}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},me.vS),[`${$e}-selection-placeholder`]:Object.assign(Object.assign({},me.vS),{flex:1,color:Se.colorTextPlaceholder,pointerEvents:"none"}),[`${$e}-arrow`]:Object.assign(Object.assign({},(0,me.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ye,height:Se.fontSizeIcon,marginTop:-Se.fontSizeIcon/2,color:Se.colorTextQuaternary,fontSize:Se.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[ht]:{verticalAlign:"top",transition:`transform ${Se.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${$e}-suffix)`]:{pointerEvents:"auto"}},[`${$e}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${$e}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ye,zIndex:1,display:"inline-block",width:Se.fontSizeIcon,height:Se.fontSizeIcon,marginTop:-Se.fontSizeIcon/2,color:Se.colorTextQuaternary,fontSize:Se.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Se.clearBg,cursor:"pointer",opacity:0,transition:`color ${Se.motionDurationMid} ease, opacity ${Se.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Se.colorTextTertiary}},"&:hover":{[`${$e}-clear`]:{opacity:1}}}),[`${$e}-has-feedback`]:{[`${$e}-clear`]:{insetInlineEnd:Ye+Se.fontSize+Se.paddingXS}}}},nt=Se=>{const{componentCls:$e}=Se;return[{[$e]:{[`&-borderless ${$e}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${$e}-in-form-item`]:{width:"100%"}}},dt(Se),Ue(Se),st(Se),Ee(Se),{[`${$e}-rtl`]:{direction:"rtl"}},Et($e,(0,Pe.TS)(Se,{borderHoverColor:Se.colorPrimaryHover,outlineColor:Se.controlOutline})),Et(`${$e}-status-error`,(0,Pe.TS)(Se,{borderHoverColor:Se.colorErrorHover,outlineColor:Se.colorErrorOutline}),!0),Et(`${$e}-status-warning`,(0,Pe.TS)(Se,{borderHoverColor:Se.colorWarningHover,outlineColor:Se.colorWarningOutline}),!0),(0,Me.c)(Se,{borderElCls:`${$e}-selector`,focusElCls:`${$e}-focused`})]};var Ve=(0,pt.Z)("Select",(Se,$e)=>{let{rootPrefixCls:Ye}=$e;const ht=(0,Pe.TS)(Se,{rootPrefixCls:Ye,inputPaddingHorizontalBase:Se.paddingSM-1,multipleSelectItemHeight:Se.multipleItemHeight});return[nt(ht)]},Se=>{const{fontSize:$e,lineHeight:Ye,controlHeight:ht,controlPaddingHorizontal:Xe,zIndexPopupBase:ut,colorText:Oe,fontWeightStrong:Pt,controlItemBgActive:qe,controlItemBgHover:zt,colorBgContainer:Dt,colorFillSecondary:Bt,controlHeightLG:St,controlHeightSM:It,colorBgContainerDisabled:Qe,colorTextDisabled:be}=Se;return{zIndexPopup:ut+50,optionSelectedColor:Oe,optionSelectedFontWeight:Pt,optionSelectedBg:qe,optionActiveBg:zt,optionPadding:`${(ht-$e*Ye)/2}px ${Xe}px`,optionFontSize:$e,optionLineHeight:Ye,optionHeight:ht,selectorBg:Dt,clearBg:Dt,singleItemHeightLG:St,multipleItemBg:Bt,multipleItemBorderColor:"transparent",multipleItemHeight:It,multipleItemHeightLG:ht,multipleSelectorBgDisabled:Qe,multipleItemColorDisabled:be,multipleItemBorderColorDisabled:"transparent"}})},58582:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return Me}});const me=Pe=>{const ge={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Pe==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ge),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ge),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ge),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ge),{points:["br","tr"],offset:[0,-4]})}};function Me(Pe,pt){return Pe||me(pt)}},84443:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return me}});function me(Me,Pe){return Pe!==void 0?Pe:Me!==null}},66339:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});var me=oe(40001),Me=oe(19248),Pe=oe(99267),pt=oe(84105),ge=oe(58617),ke=oe(47472),he=oe(59301);function we(Ee){let{suffixIcon:ze,clearIcon:vt,menuItemSelectedIcon:Ie,removeIcon:He,loading:st,multiple:Je,hasFeedback:Ue,prefixCls:gt,showSuffixIcon:Et,feedbackIcon:At,showArrow:dt,componentName:nt}=Ee;const Ve=vt!=null?vt:he.createElement(Me.Z,null),Se=Xe=>ze===null&&!Ue&&!dt?null:he.createElement(he.Fragment,null,Et!==!1&&Xe,Ue&&At);let $e=null;if(ze!==void 0)$e=Se(ze);else if(st)$e=Se(he.createElement(ge.Z,{spin:!0}));else{const Xe=`${gt}-suffix`;$e=ut=>{let{open:Oe,showSearch:Pt}=ut;return Se(Oe&&Pt?he.createElement(ke.Z,{className:Xe}):he.createElement(pt.Z,{className:Xe}))}}let Ye=null;Ie!==void 0?Ye=Ie:Je?Ye=he.createElement(me.Z,null):Ye=null;let ht=null;return He!==void 0?ht=He:ht=he.createElement(Pe.Z,null),{clearIcon:Ve,suffixIcon:$e,itemIcon:Ye,removeIcon:ht}}},61621:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return ce}});var me=oe(92310),Me=oe.n(me),Pe=oe(59301),pt=oe(36355),ge=oe(2738),he=de=>{const{prefixCls:ae,className:Be,style:ft,size:Fe,shape:De}=de,mt=Me()({[`${ae}-lg`]:Fe==="large",[`${ae}-sm`]:Fe==="small"}),rt=Me()({[`${ae}-circle`]:De==="circle",[`${ae}-square`]:De==="square",[`${ae}-round`]:De==="round"}),Ge=Pe.useMemo(()=>typeof Fe=="number"?{width:Fe,height:Fe,lineHeight:`${Fe}px`}:{},[Fe]);return Pe.createElement("span",{className:Me()(ae,mt,rt,Be),style:Object.assign(Object.assign({},Ge),ft)})},we=oe(36237),Ee=oe(83116),ze=oe(37613);const vt=new we.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ie=de=>({height:de,lineHeight:`${de}px`}),He=de=>Object.assign({width:de},Ie(de)),st=de=>({background:de.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:vt,animationDuration:de.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Je=de=>Object.assign({width:de*5,minWidth:de*5},Ie(de)),Ue=de=>{const{skeletonAvatarCls:ae,gradientFromColor:Be,controlHeight:ft,controlHeightLG:Fe,controlHeightSM:De}=de;return{[`${ae}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Be},He(ft)),[`${ae}${ae}-circle`]:{borderRadius:"50%"},[`${ae}${ae}-lg`]:Object.assign({},He(Fe)),[`${ae}${ae}-sm`]:Object.assign({},He(De))}},gt=de=>{const{controlHeight:ae,borderRadiusSM:Be,skeletonInputCls:ft,controlHeightLG:Fe,controlHeightSM:De,gradientFromColor:mt}=de;return{[`${ft}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:mt,borderRadius:Be},Je(ae)),[`${ft}-lg`]:Object.assign({},Je(Fe)),[`${ft}-sm`]:Object.assign({},Je(De))}},Et=de=>Object.assign({width:de},Ie(de)),At=de=>{const{skeletonImageCls:ae,imageSizeBase:Be,gradientFromColor:ft,borderRadiusSM:Fe}=de;return{[`${ae}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:ft,borderRadius:Fe},Et(Be*2)),{[`${ae}-path`]:{fill:"#bfbfbf"},[`${ae}-svg`]:Object.assign(Object.assign({},Et(Be)),{maxWidth:Be*4,maxHeight:Be*4}),[`${ae}-svg${ae}-svg-circle`]:{borderRadius:"50%"}}),[`${ae}${ae}-circle`]:{borderRadius:"50%"}}},dt=(de,ae,Be)=>{const{skeletonButtonCls:ft}=de;return{[`${Be}${ft}-circle`]:{width:ae,minWidth:ae,borderRadius:"50%"},[`${Be}${ft}-round`]:{borderRadius:ae}}},nt=de=>Object.assign({width:de*2,minWidth:de*2},Ie(de)),Ve=de=>{const{borderRadiusSM:ae,skeletonButtonCls:Be,controlHeight:ft,controlHeightLG:Fe,controlHeightSM:De,gradientFromColor:mt}=de;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Be}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:mt,borderRadius:ae,width:ft*2,minWidth:ft*2},nt(ft))},dt(de,ft,Be)),{[`${Be}-lg`]:Object.assign({},nt(Fe))}),dt(de,Fe,`${Be}-lg`)),{[`${Be}-sm`]:Object.assign({},nt(De))}),dt(de,De,`${Be}-sm`))},Se=de=>{const{componentCls:ae,skeletonAvatarCls:Be,skeletonTitleCls:ft,skeletonParagraphCls:Fe,skeletonButtonCls:De,skeletonInputCls:mt,skeletonImageCls:rt,controlHeight:Ge,controlHeightLG:xt,controlHeightSM:Xt,gradientFromColor:ct,padding:Rt,marginSM:rn,borderRadius:lt,titleHeight:Le,blockRadius:it,paragraphLiHeight:Ot,controlHeightXS:Ft,paragraphMarginTop:Qt}=de;return{[`${ae}`]:{display:"table",width:"100%",[`${ae}-header`]:{display:"table-cell",paddingInlineEnd:Rt,verticalAlign:"top",[`${Be}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ct},He(Ge)),[`${Be}-circle`]:{borderRadius:"50%"},[`${Be}-lg`]:Object.assign({},He(xt)),[`${Be}-sm`]:Object.assign({},He(Xt))},[`${ae}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${ft}`]:{width:"100%",height:Le,background:ct,borderRadius:it,[`+ ${Fe}`]:{marginBlockStart:Xt}},[`${Fe}`]:{padding:0,"> li":{width:"100%",height:Ot,listStyle:"none",background:ct,borderRadius:it,"+ li":{marginBlockStart:Ft}}},[`${Fe}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${ae}-content`]:{[`${ft}, ${Fe} > li`]:{borderRadius:lt}}},[`${ae}-with-avatar ${ae}-content`]:{[`${ft}`]:{marginBlockStart:rn,[`+ ${Fe}`]:{marginBlockStart:Qt}}},[`${ae}${ae}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Ve(de)),Ue(de)),gt(de)),At(de)),[`${ae}${ae}-block`]:{width:"100%",[`${De}`]:{width:"100%"},[`${mt}`]:{width:"100%"}},[`${ae}${ae}-active`]:{[`
${ft},
${Fe} > li,
${Be},
${De},
${mt},
${rt}
`]:Object.assign({},st(de))}}};var $e=(0,Ee.Z)("Skeleton",de=>{const{componentCls:ae}=de,Be=(0,ze.TS)(de,{skeletonAvatarCls:`${ae}-avatar`,skeletonTitleCls:`${ae}-title`,skeletonParagraphCls:`${ae}-paragraph`,skeletonButtonCls:`${ae}-button`,skeletonInputCls:`${ae}-input`,skeletonImageCls:`${ae}-image`,imageSizeBase:de.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${de.gradientFromColor} 25%, ${de.gradientToColor} 37%, ${de.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Se(Be)]},de=>{const{colorFillContent:ae,colorFill:Be}=de,ft=ae,Fe=Be;return{color:ft,colorGradientEnd:Fe,gradientFromColor:ft,gradientToColor:Fe,titleHeight:de.controlHeight/2,blockRadius:de.borderRadiusSM,paragraphMarginTop:de.marginLG+de.marginXXS,paragraphLiHeight:de.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ht=de=>{const{prefixCls:ae,className:Be,rootClassName:ft,active:Fe,shape:De="circle",size:mt="default"}=de,{getPrefixCls:rt}=Pe.useContext(pt.E_),Ge=rt("skeleton",ae),[xt,Xt]=$e(Ge),ct=(0,ge.Z)(de,["prefixCls","className"]),Rt=Me()(Ge,`${Ge}-element`,{[`${Ge}-active`]:Fe},Be,ft,Xt);return xt(Pe.createElement("div",{className:Rt},Pe.createElement(he,Object.assign({prefixCls:`${Ge}-avatar`,shape:De,size:mt},ct))))},ut=de=>{const{prefixCls:ae,className:Be,rootClassName:ft,active:Fe,block:De=!1,size:mt="default"}=de,{getPrefixCls:rt}=Pe.useContext(pt.E_),Ge=rt("skeleton",ae),[xt,Xt]=$e(Ge),ct=(0,ge.Z)(de,["prefixCls"]),Rt=Me()(Ge,`${Ge}-element`,{[`${Ge}-active`]:Fe,[`${Ge}-block`]:De},Be,ft,Xt);return xt(Pe.createElement("div",{className:Rt},Pe.createElement(he,Object.assign({prefixCls:`${Ge}-button`,size:mt},ct))))};const Oe="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 qe=de=>{const{prefixCls:ae,className:Be,rootClassName:ft,style:Fe,active:De}=de,{getPrefixCls:mt}=Pe.useContext(pt.E_),rt=mt("skeleton",ae),[Ge,xt]=$e(rt),Xt=Me()(rt,`${rt}-element`,{[`${rt}-active`]:De},Be,ft,xt);return Ge(Pe.createElement("div",{className:Xt},Pe.createElement("div",{className:Me()(`${rt}-image`,Be),style:Fe},Pe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${rt}-image-svg`},Pe.createElement("path",{d:Oe,className:`${rt}-image-path`})))))},Dt=de=>{const{prefixCls:ae,className:Be,rootClassName:ft,active:Fe,block:De,size:mt="default"}=de,{getPrefixCls:rt}=Pe.useContext(pt.E_),Ge=rt("skeleton",ae),[xt,Xt]=$e(Ge),ct=(0,ge.Z)(de,["prefixCls"]),Rt=Me()(Ge,`${Ge}-element`,{[`${Ge}-active`]:Fe,[`${Ge}-block`]:De},Be,ft,Xt);return xt(Pe.createElement("div",{className:Rt},Pe.createElement(he,Object.assign({prefixCls:`${Ge}-input`,size:mt},ct))))},Bt=oe(60499),St={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},It=St,Qe=oe(7657),be=function(ae,Be){return Pe.createElement(Qe.Z,(0,Bt.Z)({},ae,{ref:Be,icon:It}))},Ct=Pe.forwardRef(be),Yt=Ct,at=de=>{const{prefixCls:ae,className:Be,rootClassName:ft,style:Fe,active:De,children:mt}=de,{getPrefixCls:rt}=Pe.useContext(pt.E_),Ge=rt("skeleton",ae),[xt,Xt]=$e(Ge),ct=Me()(Ge,`${Ge}-element`,{[`${Ge}-active`]:De},Xt,Be,ft),Rt=mt!=null?mt:Pe.createElement(Yt,null);return xt(Pe.createElement("div",{className:ct},Pe.createElement("div",{className:Me()(`${Ge}-image`,Be),style:Fe},Rt)))},ot=oe(77654),Sn=de=>{const ae=rt=>{const{width:Ge,rows:xt=2}=de;if(Array.isArray(Ge))return Ge[rt];if(xt-1===rt)return Ge},{prefixCls:Be,className:ft,style:Fe,rows:De}=de,mt=(0,ot.Z)(Array(De)).map((rt,Ge)=>Pe.createElement("li",{key:Ge,style:{width:ae(Ge)}}));return Pe.createElement("ul",{className:Me()(Be,ft),style:Fe},mt)},mn=de=>{let{prefixCls:ae,className:Be,width:ft,style:Fe}=de;return Pe.createElement("h3",{className:Me()(ae,Be),style:Object.assign({width:ft},Fe)})};function on(de){return de&&typeof de=="object"?de:{}}function nn(de,ae){return de&&!ae?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function en(de,ae){return!de&&ae?{width:"38%"}:de&&ae?{width:"50%"}:{}}function ye(de,ae){const Be={};return(!de||!ae)&&(Be.width="61%"),!de&&ae?Be.rows=3:Be.rows=2,Be}const ue=de=>{const{prefixCls:ae,loading:Be,className:ft,rootClassName:Fe,style:De,children:mt,avatar:rt=!1,title:Ge=!0,paragraph:xt=!0,active:Xt,round:ct}=de,{getPrefixCls:Rt,direction:rn,skeleton:lt}=Pe.useContext(pt.E_),Le=Rt("skeleton",ae),[it,Ot]=$e(Le);if(Be||!("loading"in de)){const Ft=!!rt,Qt=!!Ge,bn=!!xt;let Bn;if(Ft){const Yn=Object.assign(Object.assign({prefixCls:`${Le}-avatar`},nn(Qt,bn)),on(rt));Bn=Pe.createElement("div",{className:`${Le}-header`},Pe.createElement(he,Object.assign({},Yn)))}let Ln;if(Qt||bn){let Yn;if(Qt){const ir=Object.assign(Object.assign({prefixCls:`${Le}-title`},en(Ft,bn)),on(Ge));Yn=Pe.createElement(mn,Object.assign({},ir))}let _n;if(bn){const ir=Object.assign(Object.assign({prefixCls:`${Le}-paragraph`},ye(Ft,Qt)),on(xt));_n=Pe.createElement(Sn,Object.assign({},ir))}Ln=Pe.createElement("div",{className:`${Le}-content`},Yn,_n)}const Gn=Me()(Le,{[`${Le}-with-avatar`]:Ft,[`${Le}-active`]:Xt,[`${Le}-rtl`]:rn==="rtl",[`${Le}-round`]:ct},lt==null?void 0:lt.className,ft,Fe,Ot);return it(Pe.createElement("div",{className:Gn,style:Object.assign(Object.assign({},lt==null?void 0:lt.style),De)},Bn,Ln))}return typeof mt!="undefined"?mt:null};ue.Button=ut,ue.Avatar=ht,ue.Input=Dt,ue.Image=qe,ue.Node=at;var se=ue,ce=se},31797:function(An,Ut,oe){"use strict";oe.d(Ut,{default:function(){return $e}});var me=oe(59301),Me=oe(56762),Pe=oe(92343),pt=oe(92310),ge=oe.n(pt),ke=oe(36355),he=oe(61621),Ee=Ye=>{const{value:ht,formatter:Xe,precision:ut,decimalSeparator:Oe,groupSeparator:Pt="",prefixCls:qe}=Ye;let zt;if(typeof Xe=="function")zt=Xe(ht);else{const Dt=String(ht),Bt=Dt.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Bt||Dt==="-")zt=Dt;else{const St=Bt[1];let It=Bt[2]||"0",Qe=Bt[4]||"";It=It.replace(/\B(?=(\d{3})+(?!\d))/g,Pt),typeof ut=="number"&&(Qe=Qe.padEnd(ut,"0").slice(0,ut>0?ut:0)),Qe&&(Qe=`${Oe}${Qe}`),zt=[me.createElement("span",{key:"int",className:`${qe}-content-value-int`},St,It),Qe&&me.createElement("span",{key:"decimal",className:`${qe}-content-value-decimal`},Qe)]}}return me.createElement("span",{className:`${qe}-content-value`},zt)},ze=oe(17313),vt=oe(83116),Ie=oe(37613);const He=Ye=>{const{componentCls:ht,marginXXS:Xe,padding:ut,colorTextDescription:Oe,titleFontSize:Pt,colorTextHeading:qe,contentFontSize:zt,fontFamily:Dt}=Ye;return{[`${ht}`]:Object.assign(Object.assign({},(0,ze.Wf)(Ye)),{[`${ht}-title`]:{marginBottom:Xe,color:Oe,fontSize:Pt},[`${ht}-skeleton`]:{paddingTop:ut},[`${ht}-content`]:{color:qe,fontSize:zt,fontFamily:Dt,[`${ht}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ht}-content-prefix, ${ht}-content-suffix`]:{display:"inline-block"},[`${ht}-content-prefix`]:{marginInlineEnd:Xe},[`${ht}-content-suffix`]:{marginInlineStart:Xe}}})}};var st=(0,vt.Z)("Statistic",Ye=>{const ht=(0,Ie.TS)(Ye,{});return[He(ht)]},Ye=>{const{fontSizeHeading3:ht,fontSize:Xe}=Ye;return{titleFontSize:Xe,contentFontSize:ht}}),Ue=Ye=>{const{prefixCls:ht,className:Xe,rootClassName:ut,style:Oe,valueStyle:Pt,value:qe=0,title:zt,valueRender:Dt,prefix:Bt,suffix:St,loading:It=!1,onMouseEnter:Qe,onMouseLeave:be,decimalSeparator:Ct=".",groupSeparator:Yt=","}=Ye,{getPrefixCls:Zt,direction:at,statistic:ot}=me.useContext(ke.E_),Nt=Zt("statistic",ht),[Sn,$t]=st(Nt),mn=me.createElement(Ee,Object.assign({decimalSeparator:Ct,groupSeparator:Yt,prefixCls:Nt},Ye,{value:qe})),on=ge()(Nt,{[`${Nt}-rtl`]:at==="rtl"},ot==null?void 0:ot.className,Xe,ut,$t);return Sn(me.createElement("div",{className:on,style:Object.assign(Object.assign({},ot==null?void 0:ot.style),Oe),onMouseEnter:Qe,onMouseLeave:be},zt&&me.createElement("div",{className:`${Nt}-title`},zt),me.createElement(he.Z,{paragraph:!1,loading:It,className:`${Nt}-skeleton`},me.createElement("div",{style:Pt,className:`${Nt}-content`},Bt&&me.createElement("span",{className:`${Nt}-content-prefix`},Bt),Dt?Dt(mn):mn,St&&me.createElement("span",{className:`${Nt}-content-suffix`},St)))))};const gt=[["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 Et(Ye,ht){let Xe=Ye;const ut=/\[[^\]]*]/g,Oe=(ht.match(ut)||[]).map(Dt=>Dt.slice(1,-1)),Pt=ht.replace(ut,"[]"),qe=gt.reduce((Dt,Bt)=>{let[St,It]=Bt;if(Dt.includes(St)){const Qe=Math.floor(Xe/It);return Xe-=Qe*It,Dt.replace(new RegExp(`${St}+`,"g"),be=>{const Ct=be.length;return Qe.toString().padStart(Ct,"0")})}return Dt},Pt);let zt=0;return qe.replace(ut,()=>{const Dt=Oe[zt];return zt+=1,Dt})}function At(Ye,ht){const{format:Xe=""}=ht,ut=new Date(Ye).getTime(),Oe=Date.now(),Pt=Math.max(ut-Oe,0);return Et(Pt,Xe)}const dt=1e3/30;function nt(Ye){return new Date(Ye).getTime()}const Ve=Ye=>{const{value:ht,format:Xe="HH:mm:ss",onChange:ut,onFinish:Oe}=Ye,Pt=(0,Me.Z)(),qe=me.useRef(null),zt=()=>{Oe==null||Oe(),qe.current&&(clearInterval(qe.current),qe.current=null)},Dt=()=>{const It=nt(ht);It>=Date.now()&&(qe.current=setInterval(()=>{Pt(),ut==null||ut(It-Date.now()),It<Date.now()&&zt()},dt))};me.useEffect(()=>(Dt(),()=>{qe.current&&(clearInterval(qe.current),qe.current=null)}),[ht]);const Bt=(It,Qe)=>At(It,Object.assign(Object.assign({},Qe),{format:Xe})),St=It=>(0,Pe.Tm)(It,{title:void 0});return me.createElement(Ue,Object.assign({},Ye,{valueRender:St,formatter:Bt}))};var Se=me.memo(Ve);Ue.Countdown=Se;var $e=Ue},8378:function(An,Ut){"use strict";const oe=me=>({[me.componentCls]:{[`${me.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${me.motionDurationMid} ${me.motionEaseInOut},
opacity ${me.motionDurationMid} ${me.motionEaseInOut} !important`}},[`${me.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${me.motionDurationMid} ${me.motionEaseInOut},
opacity ${me.motionDurationMid} ${me.motionEaseInOut} !important`}}});Ut.Z=oe},92899:function(An,Ut,oe){"use strict";oe.d(Ut,{Fm:function(){return Ie}});var me=oe(36237),Me=oe(95406);const Pe=new me.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pt=new me.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ge=new me.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ke=new me.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),he=new me.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 me.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Ee=new me.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ze=new me.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),vt={"move-up":{inKeyframes:Ee,outKeyframes:ze},"move-down":{inKeyframes:Pe,outKeyframes:pt},"move-left":{inKeyframes:ge,outKeyframes:ke},"move-right":{inKeyframes:he,outKeyframes:we}},Ie=(He,st)=>{const{antCls:Je}=He,Ue=`${Je}-${st}`,{inKeyframes:gt,outKeyframes:Et}=vt[st];return[(0,Me.R)(Ue,gt,Et,He.motionDurationMid),{[`
${Ue}-enter,
${Ue}-appear
`]:{opacity:0,animationTimingFunction:He.motionEaseOutCirc},[`${Ue}-leave`]:{animationTimingFunction:He.motionEaseInOutCirc}}]}},13826:function(An,Ut,oe){"use strict";oe.d(Ut,{Qt:function(){return ge},Uw:function(){return pt},fJ:function(){return Pe},ly:function(){return ke},oN:function(){return Ie}});var me=oe(36237),Me=oe(95406);const Pe=new me.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),pt=new me.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ge=new me.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),ke=new me.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),he=new me.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),we=new me.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ee=new me.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ze=new me.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),vt={"slide-up":{inKeyframes:Pe,outKeyframes:pt},"slide-down":{inKeyframes:ge,outKeyframes:ke},"slide-left":{inKeyframes:he,outKeyframes:we},"slide-right":{inKeyframes:Ee,outKeyframes:ze}},Ie=(He,st)=>{const{antCls:Je}=He,Ue=`${Je}-${st}`,{inKeyframes:gt,outKeyframes:Et}=vt[st];return[(0,Me.R)(Ue,gt,Et,He.motionDurationMid),{[`
${Ue}-enter,
${Ue}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:He.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${Ue}-leave`]:{animationTimingFunction:He.motionEaseInQuint}}]}},15969:function(An,Ut,oe){"use strict";oe.d(Ut,{N:function(){return me}});const me=Me=>({color:Me.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Me.motionDurationSlow}`,"&:focus, &:hover":{color:Me.colorLinkHover},"&:active":{color:Me.colorLinkActive}})},78673:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return Pt}});var me=oe(58617),Me=oe(92310),Pe=oe.n(Me),pt=oe(60499),ge=oe(18642),ke=oe(72190),he=oe(42244),we=oe(59301),Ee=oe(18929),ze=oe(10228),vt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Ie=we.forwardRef(function(qe,zt){var Dt,Bt=qe.prefixCls,St=Bt===void 0?"rc-switch":Bt,It=qe.className,Qe=qe.checked,be=qe.defaultChecked,Ct=qe.disabled,Yt=qe.loadingIcon,Zt=qe.checkedChildren,at=qe.unCheckedChildren,ot=qe.onClick,Nt=qe.onChange,Sn=qe.onKeyDown,$t=(0,he.Z)(qe,vt),mn=(0,Ee.Z)(!1,{value:Qe,defaultValue:be}),on=(0,ke.Z)(mn,2),nn=on[0],en=on[1];function ye(de,ae){var Be=nn;return Ct||(Be=de,en(Be),Nt==null||Nt(Be,ae)),Be}function ue(de){de.which===ze.Z.LEFT?ye(!1,de):de.which===ze.Z.RIGHT&&ye(!0,de),Sn==null||Sn(de)}function se(de){var ae=ye(!nn,de);ot==null||ot(ae,de)}var ce=Pe()(St,It,(Dt={},(0,ge.Z)(Dt,"".concat(St,"-checked"),nn),(0,ge.Z)(Dt,"".concat(St,"-disabled"),Ct),Dt));return we.createElement("button",(0,pt.Z)({},$t,{type:"button",role:"switch","aria-checked":nn,disabled:Ct,className:ce,ref:zt,onKeyDown:ue,onClick:se}),Yt,we.createElement("span",{className:"".concat(St,"-inner")},we.createElement("span",{className:"".concat(St,"-inner-checked")},Zt),we.createElement("span",{className:"".concat(St,"-inner-unchecked")},at)))});Ie.displayName="Switch";var He=Ie,st=oe(14088),Je=oe(36355),Ue=oe(1684),gt=oe(19716),Et=oe(64993),At=oe(17313),dt=oe(83116),nt=oe(37613);const Ve=qe=>{const{componentCls:zt,trackHeightSM:Dt,trackPadding:Bt,trackMinWidthSM:St,innerMinMarginSM:It,innerMaxMarginSM:Qe,handleSizeSM:be}=qe,Ct=`${zt}-inner`;return{[zt]:{[`&${zt}-small`]:{minWidth:St,height:Dt,lineHeight:`${Dt}px`,[`${zt}-inner`]:{paddingInlineStart:Qe,paddingInlineEnd:It,[`${Ct}-checked`]:{marginInlineStart:`calc(-100% + ${be+Bt*2}px - ${Qe*2}px)`,marginInlineEnd:`calc(100% - ${be+Bt*2}px + ${Qe*2}px)`},[`${Ct}-unchecked`]:{marginTop:-Dt,marginInlineStart:0,marginInlineEnd:0}},[`${zt}-handle`]:{width:be,height:be},[`${zt}-loading-icon`]:{top:(be-qe.switchLoadingIconSize)/2,fontSize:qe.switchLoadingIconSize},[`&${zt}-checked`]:{[`${zt}-inner`]:{paddingInlineStart:It,paddingInlineEnd:Qe,[`${Ct}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ct}-unchecked`]:{marginInlineStart:`calc(100% - ${be+Bt*2}px + ${Qe*2}px)`,marginInlineEnd:`calc(-100% + ${be+Bt*2}px - ${Qe*2}px)`}},[`${zt}-handle`]:{insetInlineStart:`calc(100% - ${be+Bt}px)`}},[`&:not(${zt}-disabled):active`]:{[`&:not(${zt}-checked) ${Ct}`]:{[`${Ct}-unchecked`]:{marginInlineStart:qe.marginXXS/2,marginInlineEnd:-qe.marginXXS/2}},[`&${zt}-checked ${Ct}`]:{[`${Ct}-checked`]:{marginInlineStart:-qe.marginXXS/2,marginInlineEnd:qe.marginXXS/2}}}}}}},Se=qe=>{const{componentCls:zt,handleSize:Dt}=qe;return{[zt]:{[`${zt}-loading-icon${qe.iconCls}`]:{position:"relative",top:(Dt-qe.fontSize)/2,color:qe.switchLoadingIconColor,verticalAlign:"top"},[`&${zt}-checked ${zt}-loading-icon`]:{color:qe.switchColor}}}},$e=qe=>{const{componentCls:zt,motion:Dt,trackPadding:Bt,handleBg:St,handleShadow:It,handleSize:Qe}=qe,be=`${zt}-handle`;return{[zt]:{[be]:{position:"absolute",top:Bt,insetInlineStart:Bt,width:Qe,height:Qe,transition:`all ${qe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:St,borderRadius:Qe/2,boxShadow:It,transition:`all ${qe.switchDuration} ease-in-out`,content:'""'}},[`&${zt}-checked ${be}`]:{insetInlineStart:`calc(100% - ${Qe+Bt}px)`},[`&:not(${zt}-disabled):active`]:Dt?{[`${be}::before`]:{insetInlineEnd:qe.switchHandleActiveInset,insetInlineStart:0},[`&${zt}-checked ${be}::before`]:{insetInlineEnd:0,insetInlineStart:qe.switchHandleActiveInset}}:{}}}},Ye=qe=>{const{componentCls:zt,trackHeight:Dt,trackPadding:Bt,innerMinMargin:St,innerMaxMargin:It,handleSize:Qe}=qe,be=`${zt}-inner`;return{[zt]:{[be]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:It,paddingInlineEnd:St,transition:`padding-inline-start ${qe.switchDuration} ease-in-out, padding-inline-end ${qe.switchDuration} ease-in-out`,[`${be}-checked, ${be}-unchecked`]:{display:"block",color:qe.colorTextLightSolid,fontSize:qe.fontSizeSM,transition:`margin-inline-start ${qe.switchDuration} ease-in-out, margin-inline-end ${qe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${be}-checked`]:{marginInlineStart:`calc(-100% + ${Qe+Bt*2}px - ${It*2}px)`,marginInlineEnd:`calc(100% - ${Qe+Bt*2}px + ${It*2}px)`},[`${be}-unchecked`]:{marginTop:-Dt,marginInlineStart:0,marginInlineEnd:0}},[`&${zt}-checked ${be}`]:{paddingInlineStart:St,paddingInlineEnd:It,[`${be}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${be}-unchecked`]:{marginInlineStart:`calc(100% - ${Qe+Bt*2}px + ${It*2}px)`,marginInlineEnd:`calc(-100% + ${Qe+Bt*2}px - ${It*2}px)`}},[`&:not(${zt}-disabled):active`]:{[`&:not(${zt}-checked) ${be}`]:{[`${be}-unchecked`]:{marginInlineStart:Bt*2,marginInlineEnd:-Bt*2}},[`&${zt}-checked ${be}`]:{[`${be}-checked`]:{marginInlineStart:-Bt*2,marginInlineEnd:Bt*2}}}}}},ht=qe=>{const{componentCls:zt,trackHeight:Dt,trackMinWidth:Bt}=qe;return{[zt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,At.Wf)(qe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Bt,height:Dt,lineHeight:`${Dt}px`,verticalAlign:"middle",background:qe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${qe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${zt}-disabled)`]:{background:qe.colorTextTertiary}}),(0,At.Qy)(qe)),{[`&${zt}-checked`]:{background:qe.switchColor,[`&:hover:not(${zt}-disabled)`]:{background:qe.colorPrimaryHover}},[`&${zt}-loading, &${zt}-disabled`]:{cursor:"not-allowed",opacity:qe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${zt}-rtl`]:{direction:"rtl"}})}};var Xe=(0,dt.Z)("Switch",qe=>{const zt=(0,nt.TS)(qe,{switchDuration:qe.motionDurationMid,switchColor:qe.colorPrimary,switchDisabledOpacity:qe.opacityLoading,switchLoadingIconSize:qe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${qe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ht(zt),Ye(zt),$e(zt),Se(zt),Ve(zt)]},qe=>{const{fontSize:zt,lineHeight:Dt,controlHeight:Bt,colorWhite:St}=qe,It=zt*Dt,Qe=Bt/2,be=2,Ct=It-be*2,Yt=Qe-be*2;return{trackHeight:It,trackHeightSM:Qe,trackMinWidth:Ct*2+be*4,trackMinWidthSM:Yt*2+be*2,trackPadding:be,handleBg:St,handleSize:Ct,handleSizeSM:Yt,handleShadow:`0 2px 4px 0 ${new Et.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Ct/2,innerMaxMargin:Ct+be+be*2,innerMinMarginSM:Yt/2,innerMaxMarginSM:Yt+be+be*2}}),ut=function(qe,zt){var Dt={};for(var Bt in qe)Object.prototype.hasOwnProperty.call(qe,Bt)&&zt.indexOf(Bt)<0&&(Dt[Bt]=qe[Bt]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,Bt=Object.getOwnPropertySymbols(qe);St<Bt.length;St++)zt.indexOf(Bt[St])<0&&Object.prototype.propertyIsEnumerable.call(qe,Bt[St])&&(Dt[Bt[St]]=qe[Bt[St]]);return Dt};const Oe=we.forwardRef((qe,zt)=>{const{prefixCls:Dt,size:Bt,disabled:St,loading:It,className:Qe,rootClassName:be,style:Ct}=qe,Yt=ut(qe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Zt,direction:at,switch:ot}=we.useContext(Je.E_),Nt=we.useContext(Ue.Z),Sn=(St!=null?St:Nt)||It,$t=Zt("switch",Dt),mn=we.createElement("div",{className:`${$t}-handle`},It&&we.createElement(me.Z,{className:`${$t}-loading-icon`})),[on,nn]=Xe($t),en=(0,gt.Z)(Bt),ye=Pe()(ot==null?void 0:ot.className,{[`${$t}-small`]:en==="small",[`${$t}-loading`]:It,[`${$t}-rtl`]:at==="rtl"},Qe,be,nn),ue=Object.assign(Object.assign({},ot==null?void 0:ot.style),Ct);return on(we.createElement(st.Z,{component:"Switch"},we.createElement(He,Object.assign({},Yt,{prefixCls:$t,className:ye,style:ue,disabled:Sn,ref:zt,loadingIcon:mn}))))});Oe.__ANT_SWITCH=!0;var Pt=Oe},1710:function(An,Ut,oe){"use strict";oe.d(Ut,{default:function(){return Jc}});var me={},Me="rc-table-internal-hook",Pe=oe(72190),pt=oe(6089),ge=oe(34280),ke=oe(13697),he=oe(59301),we=oe(4676);function Ee(Re){var Ke=he.createContext(void 0),wt=function(Gt){var _t=Gt.value,fn=Gt.children,dn=he.useRef(_t);dn.current=_t;var sn=he.useState(function(){return{getValue:function(){return dn.current},listeners:new Set}}),Tn=(0,Pe.Z)(sn,1),Un=Tn[0];return(0,ge.Z)(function(){(0,we.unstable_batchedUpdates)(function(){Un.listeners.forEach(function(zn){zn(_t)})})},[_t]),he.createElement(Ke.Provider,{value:Un},fn)};return{Context:Ke,Provider:wt,defaultValue:Re}}function ze(Re,Ke){var wt=(0,pt.Z)(typeof Ke=="function"?Ke:function(zn){if(Ke===void 0)return zn;if(!Array.isArray(Ke))return zn[Ke];var ur={};return Ke.forEach(function(ar){ur[ar]=zn[ar]}),ur}),Tt=he.useContext(Re==null?void 0:Re.Context),Gt=Tt||{},_t=Gt.listeners,fn=Gt.getValue,dn=he.useRef();dn.current=wt(Tt?fn():Re==null?void 0:Re.defaultValue);var sn=he.useState({}),Tn=(0,Pe.Z)(sn,2),Un=Tn[1];return(0,ge.Z)(function(){if(!Tt)return;function zn(ur){var ar=wt(ur);(0,ke.Z)(dn.current,ar,!0)||Un({})}return _t.add(zn),function(){_t.delete(zn)}},[Tt]),dn.current}var vt=oe(60499),Ie=oe(8654);function He(){var Re=he.createContext(null);function Ke(){return he.useContext(Re)}function wt(Gt,_t){var fn=(0,Ie.Yr)(Gt),dn=function(Tn,Un){var zn=fn?{ref:Un}:{},ur=he.useRef(0),ar=he.useRef(Tn),or=Ke();return or!==null?he.createElement(Gt,(0,vt.Z)({},Tn,zn)):((!_t||_t(ar.current,Tn))&&(ur.current+=1),ar.current=Tn,he.createElement(Re.Provider,{value:ur.current},he.createElement(Gt,(0,vt.Z)({},Tn,zn))))};return fn?he.forwardRef(dn):dn}function Tt(Gt,_t){var fn=(0,Ie.Yr)(Gt),dn=function(Tn,Un){var zn=fn?{ref:Un}:{};return Ke(),he.createElement(Gt,(0,vt.Z)({},Tn,zn))};return fn?he.memo(he.forwardRef(dn),_t):he.memo(dn,_t)}return{makeImmutable:wt,responseImmutable:Tt,useImmutableMark:Ke}}var st=He(),Je=st.makeImmutable,Ue=st.responseImmutable,gt=st.useImmutableMark,Et=He(),At=Et.makeImmutable,dt=Et.responseImmutable,nt=Et.useImmutableMark,Ve=Ee(),Se=Ve;function $e(Re,Ke){var wt=he.useRef(0);wt.current+=1;var Tt=he.useRef(Re),Gt=[];Object.keys(Re||{}).map(function(fn){var dn;(Re==null?void 0:Re[fn])!==((dn=Tt.current)===null||dn===void 0?void 0:dn[fn])&&Gt.push(fn)}),Tt.current=Re;var _t=he.useRef([]);return Gt.length&&(_t.current=Gt),he.useDebugValue(wt.current),he.useDebugValue(_t.current.join(", ")),Ke&&console.log("".concat(Ke,":"),wt.current,_t.current),wt.current}var Ye=null,ht=he.memo(function(){var Re=$e();return he.createElement("h1",null,"Render Times: ",Re)});ht.displayName="RenderBlock";var Xe=oe(43749),ut=oe(85899),Oe=oe(18642),Pt=oe(92310),qe=oe.n(Pt),zt=oe(80547),Dt=oe(97938),Bt=oe(48736),St=he.createContext({renderWithProps:!1}),It=St,Qe="RC_TABLE_KEY";function be(Re){return Re==null?[]:Array.isArray(Re)?Re:[Re]}function Ct(Re){var Ke=[],wt={};return Re.forEach(function(Tt){for(var Gt=Tt||{},_t=Gt.key,fn=Gt.dataIndex,dn=_t||be(fn).join("-")||Qe;wt[dn];)dn="".concat(dn,"_next");wt[dn]=!0,Ke.push(dn)}),Ke}function Yt(Re){return Re!=null}function Zt(Re){return Re&&(0,Xe.Z)(Re)==="object"&&!Array.isArray(Re)&&!he.isValidElement(Re)}function at(Re,Ke,wt,Tt,Gt,_t){var fn=he.useContext(It),dn=nt(),sn=(0,zt.Z)(function(){if(Yt(Tt))return[Tt];var Tn=Ke==null||Ke===""?[]:Array.isArray(Ke)?Ke:[Ke],Un=(0,Dt.Z)(Re,Tn),zn=Un,ur=void 0;if(Gt){var ar=Gt(Un,Re,wt);Zt(ar)?(zn=ar.children,ur=ar.props,fn.renderWithProps=!0):zn=ar}return[zn,ur]},[dn,Re,Tt,Ke,Gt,wt],function(Tn,Un){if(_t){var zn=(0,Pe.Z)(Tn,2),ur=zn[1],ar=(0,Pe.Z)(Un,2),or=ar[1];return _t(or,ur)}return fn.renderWithProps?!0:!(0,ke.Z)(Tn,Un,!0)});return sn}function ot(Re,Ke,wt,Tt){var Gt=Re+Ke-1;return Re<=Tt&&Gt>=wt}function Nt(Re,Ke){return ze(Se,function(wt){var Tt=ot(Re,Ke||1,wt.hoverStartRow,wt.hoverEndRow);return[Tt,wt.onHover]})}var Sn=function(Ke){var wt=Ke.ellipsis,Tt=Ke.rowType,Gt=Ke.children,_t,fn=wt===!0?{showTitle:!0}:wt;return fn&&(fn.showTitle||Tt==="header")&&(typeof Gt=="string"||typeof Gt=="number"?_t=Gt.toString():he.isValidElement(Gt)&&typeof Gt.props.children=="string"&&(_t=Gt.props.children)),_t};function $t(Re){var Ke,wt,Tt,Gt,_t,fn,dn,sn,Tn=Re.component,Un=Re.children,zn=Re.ellipsis,ur=Re.scope,ar=Re.prefixCls,or=Re.className,Vr=Re.align,Tr=Re.record,Gr=Re.render,Fr=Re.dataIndex,qr=Re.renderIndex,Ci=Re.shouldCellUpdate,wi=Re.index,ui=Re.rowType,Ti=Re.colSpan,Vi=Re.rowSpan,ri=Re.fixLeft,mi=Re.fixRight,ii=Re.firstFixLeft,Ar=Re.lastFixLeft,ai=Re.firstFixRight,Ii=Re.lastFixRight,Ji=Re.appendNode,Ai=Re.additionalProps,Xr=Ai===void 0?{}:Ai,Ki=Re.isSticky,Gi="".concat(ar,"-cell"),ba=ze(Se,["supportSticky","allColumnsFixedLeft"]),ha=ba.supportSticky,qa=ba.allColumnsFixedLeft,Ka=at(Tr,Fr,qr,Un,Gr,Ci),$i=(0,Pe.Z)(Ka,2),mo=$i[0],oa=$i[1],Ga={},Ha=typeof ri=="number"&&ha,Eo=typeof mi=="number"&&ha;Ha&&(Ga.position="sticky",Ga.left=ri),Eo&&(Ga.position="sticky",Ga.right=mi);var Li=(Ke=(wt=(Tt=oa==null?void 0:oa.colSpan)!==null&&Tt!==void 0?Tt:Xr.colSpan)!==null&&wt!==void 0?wt:Ti)!==null&&Ke!==void 0?Ke:1,Mi=(Gt=(_t=(fn=oa==null?void 0:oa.rowSpan)!==null&&fn!==void 0?fn:Xr.rowSpan)!==null&&_t!==void 0?_t:Vi)!==null&&Gt!==void 0?Gt:1,ki=Nt(wi,Mi),yi=(0,Pe.Z)(ki,2),pa=yi[0],Si=yi[1],Hi=function(yo){var Ro;Tr&&Si(wi,wi+Mi-1),Xr==null||(Ro=Xr.onMouseEnter)===null||Ro===void 0||Ro.call(Xr,yo)},la=function(yo){var Ro;Tr&&Si(-1,-1),Xr==null||(Ro=Xr.onMouseLeave)===null||Ro===void 0||Ro.call(Xr,yo)};if(Li===0||Mi===0)return null;var na=(dn=Xr.title)!==null&&dn!==void 0?dn:Sn({rowType:ui,ellipsis:zn,children:mo}),Vo=qe()(Gi,or,(sn={},(0,Oe.Z)(sn,"".concat(Gi,"-fix-left"),Ha&&ha),(0,Oe.Z)(sn,"".concat(Gi,"-fix-left-first"),ii&&ha),(0,Oe.Z)(sn,"".concat(Gi,"-fix-left-last"),Ar&&ha),(0,Oe.Z)(sn,"".concat(Gi,"-fix-left-all"),Ar&&qa&&ha),(0,Oe.Z)(sn,"".concat(Gi,"-fix-right"),Eo&&ha),(0,Oe.Z)(sn,"".concat(Gi,"-fix-right-first"),ai&&ha),(0,Oe.Z)(sn,"".concat(Gi,"-fix-right-last"),Ii&&ha),(0,Oe.Z)(sn,"".concat(Gi,"-ellipsis"),zn),(0,Oe.Z)(sn,"".concat(Gi,"-with-append"),Ji),(0,Oe.Z)(sn,"".concat(Gi,"-fix-sticky"),(Ha||Eo)&&Ki&&ha),(0,Oe.Z)(sn,"".concat(Gi,"-row-hover"),!oa&&pa),sn),Xr.className,oa==null?void 0:oa.className),Mo={};Vr&&(Mo.textAlign=Vr);var Rl=(0,ut.Z)((0,ut.Z)((0,ut.Z)((0,ut.Z)({},Ga),Xr.style),Mo),oa==null?void 0:oa.style),vo=mo;return(0,Xe.Z)(vo)==="object"&&!Array.isArray(vo)&&!he.isValidElement(vo)&&(vo=null),zn&&(Ar||ai)&&(vo=he.createElement("span",{className:"".concat(Gi,"-content")},vo)),he.createElement(Tn,(0,vt.Z)({},oa,Xr,{className:Vo,style:Rl,title:na,scope:ur,onMouseEnter:Hi,onMouseLeave:la,colSpan:Li!==1?Li:null,rowSpan:Mi!==1?Mi:null}),Ji,vo)}var mn=he.memo($t);function on(Re,Ke,wt,Tt,Gt,_t){var fn=wt[Re]||{},dn=wt[Ke]||{},sn,Tn;fn.fixed==="left"?sn=Tt.left[Gt==="rtl"?Ke:Re]:dn.fixed==="right"&&(Tn=Tt.right[Gt==="rtl"?Re:Ke]);var Un=!1,zn=!1,ur=!1,ar=!1,or=wt[Ke+1],Vr=wt[Re-1],Tr=!(_t!=null&&_t.children);if(Gt==="rtl"){if(sn!==void 0){var Gr=Vr&&Vr.fixed==="left";ar=!Gr&&Tr}else if(Tn!==void 0){var Fr=or&&or.fixed==="right";ur=!Fr&&Tr}}else if(sn!==void 0){var qr=or&&or.fixed==="left";Un=!qr&&Tr}else if(Tn!==void 0){var Ci=Vr&&Vr.fixed==="right";zn=!Ci&&Tr}return{fixLeft:sn,fixRight:Tn,lastFixLeft:Un,firstFixRight:zn,lastFixRight:ur,firstFixLeft:ar,isSticky:Tt.isSticky}}var nn=he.createContext({}),en=nn;function ye(Re){var Ke=Re.className,wt=Re.index,Tt=Re.children,Gt=Re.colSpan,_t=Gt===void 0?1:Gt,fn=Re.rowSpan,dn=Re.align,sn=ze(Se,["prefixCls","direction"]),Tn=sn.prefixCls,Un=sn.direction,zn=he.useContext(en),ur=zn.scrollColumnIndex,ar=zn.stickyOffsets,or=zn.flattenColumns,Vr=zn.columns,Tr=wt+_t-1,Gr=Tr+1===ur?_t+1:_t,Fr=on(wt,wt+Gr-1,or,ar,Un,Vr==null?void 0:Vr[wt]);return he.createElement(mn,(0,vt.Z)({className:Ke,index:wt,component:"td",prefixCls:Tn,record:null,dataIndex:null,align:dn,colSpan:Gr,rowSpan:fn,render:function(){return Tt}},Fr))}var ue=oe(42244),se=["children"];function ce(Re){var Ke=Re.children,wt=(0,ue.Z)(Re,se);return he.createElement("tr",wt,Ke)}function de(Re){var Ke=Re.children;return Ke}de.Row=ce,de.Cell=ye;var ae=de;function Be(Re){var Ke=Re.children,wt=Re.stickyOffsets,Tt=Re.flattenColumns,Gt=Re.columns,_t=ze(Se,"prefixCls"),fn=Tt.length-1,dn=Tt[fn],sn=he.useMemo(function(){return{stickyOffsets:wt,flattenColumns:Tt,scrollColumnIndex:dn!=null&&dn.scrollbar?fn:null,columns:Gt}},[dn,Tt,fn,wt,Gt]);return he.createElement(en.Provider,{value:sn},he.createElement("tfoot",{className:"".concat(_t,"-summary")},Ke))}var ft=dt(Be),Fe=ae,De=oe(70425),mt=oe(29301),rt=oe(29194),Ge=oe(24514),xt=oe(75152),Xt=oe(26112);function ct(Re,Ke,wt,Tt,Gt,_t,fn){Re.push({record:Ke,indent:wt,index:fn});var dn=_t(Ke),sn=Gt==null?void 0:Gt.has(dn);if(Ke&&Array.isArray(Ke[Tt])&&sn)for(var Tn=0;Tn<Ke[Tt].length;Tn+=1)ct(Re,Ke[Tt][Tn],wt+1,Tt,Gt,_t,Tn)}function Rt(Re,Ke,wt,Tt){var Gt=he.useMemo(function(){if(wt!=null&&wt.size){for(var _t=[],fn=0;fn<(Re==null?void 0:Re.length);fn+=1){var dn=Re[fn];ct(_t,dn,0,Ke,wt,Tt,fn)}return _t}return Re==null?void 0:Re.map(function(sn,Tn){return{record:sn,indent:0,index:Tn}})},[Re,Ke,wt,Tt]);return Gt}function rn(Re){var Ke=Re.prefixCls,wt=Re.children,Tt=Re.component,Gt=Re.cellComponent,_t=Re.className,fn=Re.expanded,dn=Re.colSpan,sn=Re.isEmpty,Tn=ze(Se,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Un=Tn.scrollbarSize,zn=Tn.fixHeader,ur=Tn.fixColumn,ar=Tn.componentWidth,or=Tn.horizonScroll,Vr=wt;return(sn?or&&ar:ur)&&(Vr=he.createElement("div",{style:{width:ar-(zn?Un:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ke,"-expanded-row-fixed")},Vr)),he.createElement(Tt,{className:_t,style:{display:fn?null:"none"}},he.createElement(mn,{component:Gt,prefixCls:Ke,colSpan:dn},Vr))}var lt=rn;function Le(Re,Ke,wt,Tt){var Gt=ze(Se,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),_t=Gt.flattenColumns,fn=Gt.expandableType,dn=Gt.expandedKeys,sn=Gt.childrenColumnName,Tn=Gt.onTriggerExpand,Un=Gt.rowExpandable,zn=Gt.onRow,ur=Gt.expandRowByClick,ar=Gt.rowClassName,or=fn==="nest",Vr=fn==="row"&&(!Un||Un(Re)),Tr=Vr||or,Gr=dn&&dn.has(Ke),Fr=sn&&Re&&Re[sn],qr=(0,De.useEvent)(Tn),Ci=zn==null?void 0:zn(Re,wt),wi=Ci==null?void 0:Ci.onClick,ui=function(mi){ur&&Tr&&Tn(Re,mi);for(var ii=arguments.length,Ar=new Array(ii>1?ii-1:0),ai=1;ai<ii;ai++)Ar[ai-1]=arguments[ai];wi==null||wi.apply(void 0,[mi].concat(Ar))},Ti;typeof ar=="string"?Ti=ar:typeof ar=="function"&&(Ti=ar(Re,wt,Tt));var Vi=Ct(_t);return(0,ut.Z)((0,ut.Z)({},Gt),{},{columnsKey:Vi,nestExpandable:or,expanded:Gr,hasNestChildren:Fr,record:Re,onTriggerExpand:qr,rowSupportExpand:Vr,expandable:Tr,rowProps:(0,ut.Z)((0,ut.Z)({},Ci),{},{className:qe()(Ti,Ci==null?void 0:Ci.className),onClick:ui})})}function it(Re,Ke,wt,Tt,Gt){var _t=Re.record,fn=Re.prefixCls,dn=Re.columnsKey,sn=Re.fixedInfoList,Tn=Re.expandIconColumnIndex,Un=Re.nestExpandable,zn=Re.indentSize,ur=Re.expandIcon,ar=Re.expanded,or=Re.hasNestChildren,Vr=Re.onTriggerExpand,Tr=dn[wt],Gr=sn[wt],Fr;wt===(Tn||0)&&Un&&(Fr=he.createElement(he.Fragment,null,he.createElement("span",{style:{paddingLeft:"".concat(zn*Tt,"px")},className:"".concat(fn,"-row-indent indent-level-").concat(Tt)}),ur({prefixCls:fn,expanded:ar,expandable:or,record:_t,onExpand:Vr})));var qr;return Ke.onCell&&(qr=Ke.onCell(_t,Gt)),{key:Tr,fixedInfo:Gr,appendCellNode:Fr,additionalCellProps:qr||{}}}function Ot(Re){var Ke=Re.className,wt=Re.style,Tt=Re.record,Gt=Re.index,_t=Re.renderIndex,fn=Re.rowKey,dn=Re.indent,sn=dn===void 0?0:dn,Tn=Re.rowComponent,Un=Re.cellComponent,zn=Re.scopeCellComponent,ur=Le(Tt,fn,Gt,sn),ar=ur.prefixCls,or=ur.flattenColumns,Vr=ur.expandedRowClassName,Tr=ur.expandedRowRender,Gr=ur.rowProps,Fr=ur.expanded,qr=ur.rowSupportExpand,Ci=he.useState(!1),wi=(0,Pe.Z)(Ci,2),ui=wi[0],Ti=wi[1];he.useEffect(function(){Fr&&Ti(!0)},[Fr]);var Vi=he.createElement(Tn,(0,vt.Z)({},Gr,{"data-row-key":fn,className:qe()(Ke,"".concat(ar,"-row"),"".concat(ar,"-row-level-").concat(sn),Gr==null?void 0:Gr.className),style:(0,ut.Z)((0,ut.Z)({},wt),Gr==null?void 0:Gr.style)}),or.map(function(Ar,ai){var Ii=Ar.render,Ji=Ar.dataIndex,Ai=Ar.className,Xr=it(ur,Ar,ai,sn,Gt),Ki=Xr.key,Gi=Xr.fixedInfo,ba=Xr.appendCellNode,ha=Xr.additionalCellProps;return he.createElement(mn,(0,vt.Z)({className:Ai,ellipsis:Ar.ellipsis,align:Ar.align,scope:Ar.rowScope,component:Ar.rowScope?zn:Un,prefixCls:ar,key:Ki,record:Tt,index:Gt,renderIndex:_t,dataIndex:Ji,render:Ii,shouldCellUpdate:Ar.shouldCellUpdate},Gi,{appendNode:ba,additionalProps:ha}))})),ri;if(qr&&(ui||Fr)){var mi=Tr(Tt,Gt,sn+1,Fr),ii=Vr&&Vr(Tt,Gt,sn);ri=he.createElement(lt,{expanded:Fr,className:qe()("".concat(ar,"-expanded-row"),"".concat(ar,"-expanded-row-level-").concat(sn+1),ii),prefixCls:ar,component:Tn,cellComponent:Un,colSpan:or.length,isEmpty:!1},mi)}return he.createElement(he.Fragment,null,Vi,ri)}Ot.displayName="BodyRow";var Ft=dt(Ot);function Qt(Re){var Ke=Re.columnKey,wt=Re.onColumnResize,Tt=he.useRef();return he.useEffect(function(){Tt.current&&wt(Ke,Tt.current.offsetWidth)},[]),he.createElement(mt.Z,{data:Ke},he.createElement("td",{ref:Tt,style:{padding:0,border:0,height:0}},he.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function bn(Re){var Ke=Re.prefixCls,wt=Re.columnsKey,Tt=Re.onColumnResize;return he.createElement("tr",{"aria-hidden":"true",className:"".concat(Ke,"-measure-row"),style:{height:0,fontSize:0}},he.createElement(mt.Z.Collection,{onBatchResize:function(_t){_t.forEach(function(fn){var dn=fn.data,sn=fn.size;Tt(dn,sn.offsetWidth)})}},wt.map(function(Gt){return he.createElement(Qt,{key:Gt,columnKey:Gt,onColumnResize:Tt})})))}function Bn(Re){var Ke=Re.data,wt=Re.measureColumnWidth,Tt=ze(Se,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Gt=Tt.prefixCls,_t=Tt.getComponent,fn=Tt.onColumnResize,dn=Tt.flattenColumns,sn=Tt.getRowKey,Tn=Tt.expandedKeys,Un=Tt.childrenColumnName,zn=Tt.emptyNode,ur=Rt(Ke,Un,Tn,sn),ar=he.useRef({renderWithProps:!1}),or=_t(["body","wrapper"],"tbody"),Vr=_t(["body","row"],"tr"),Tr=_t(["body","cell"],"td"),Gr=_t(["body","cell"],"th"),Fr;Ke.length?Fr=ur.map(function(Ci,wi){var ui=Ci.record,Ti=Ci.indent,Vi=Ci.index,ri=sn(ui,wi);return he.createElement(Ft,{key:ri,rowKey:ri,record:ui,index:wi,renderIndex:Vi,rowComponent:Vr,cellComponent:Tr,scopeCellComponent:Gr,getRowKey:sn,indent:Ti})}):Fr=he.createElement(lt,{expanded:!0,className:"".concat(Gt,"-placeholder"),prefixCls:Gt,component:Vr,cellComponent:Tr,colSpan:dn.length,isEmpty:!0},zn);var qr=Ct(dn);return he.createElement(It.Provider,{value:ar.current},he.createElement(or,{className:"".concat(Gt,"-tbody")},wt&&he.createElement(bn,{prefixCls:Gt,columnsKey:qr,onColumnResize:fn}),Fr))}Bn.displayName="Body";var Ln=dt(Bn),Gn=["expandable"],Yn="RC_TABLE_INTERNAL_COL_DEFINE";function _n(Re){var Ke=Re.expandable,wt=(0,ue.Z)(Re,Gn),Tt;return"expandable"in Re?Tt=(0,ut.Z)((0,ut.Z)({},wt),Ke):Tt=wt,Tt.showExpandColumn===!1&&(Tt.expandIconColumnIndex=-1),Tt}var ir=["columnType"];function br(Re){for(var Ke=Re.colWidths,wt=Re.columns,Tt=Re.columCount,Gt=[],_t=Tt||wt.length,fn=!1,dn=_t-1;dn>=0;dn-=1){var sn=Ke[dn],Tn=wt&&wt[dn],Un=Tn&&Tn[Yn];if(sn||Un||fn){var zn=Un||{},ur=zn.columnType,ar=(0,ue.Z)(zn,ir);Gt.unshift(he.createElement("col",(0,vt.Z)({key:dn,style:{width:sn}},ar))),fn=!0}}return he.createElement("colgroup",null,Gt)}var wr=br,qn=oe(77654),fr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function kr(Re,Ke){return(0,he.useMemo)(function(){for(var wt=[],Tt=0;Tt<Ke;Tt+=1){var Gt=Re[Tt];if(Gt!==void 0)wt[Tt]=Gt;else return null}return wt},[Re.join("_"),Ke])}var Qn=he.forwardRef(function(Re,Ke){var wt=Re.className,Tt=Re.noData,Gt=Re.columns,_t=Re.flattenColumns,fn=Re.colWidths,dn=Re.columCount,sn=Re.stickyOffsets,Tn=Re.direction,Un=Re.fixHeader,zn=Re.stickyTopOffset,ur=Re.stickyBottomOffset,ar=Re.stickyClassName,or=Re.onScroll,Vr=Re.maxContentScroll,Tr=Re.children,Gr=(0,ue.Z)(Re,fr),Fr=ze(Se,["prefixCls","scrollbarSize","isSticky"]),qr=Fr.prefixCls,Ci=Fr.scrollbarSize,wi=Fr.isSticky,ui=wi&&!Un?0:Ci,Ti=he.useRef(null),Vi=he.useCallback(function(Ai){(0,Ie.mH)(Ke,Ai),(0,Ie.mH)(Ti,Ai)},[]);he.useEffect(function(){var Ai;function Xr(Ki){var Gi=Ki,ba=Gi.currentTarget,ha=Gi.deltaX;ha&&(or({currentTarget:ba,scrollLeft:ba.scrollLeft+ha}),Ki.preventDefault())}return(Ai=Ti.current)===null||Ai===void 0||Ai.addEventListener("wheel",Xr),function(){var Ki;(Ki=Ti.current)===null||Ki===void 0||Ki.removeEventListener("wheel",Xr)}},[]);var ri=he.useMemo(function(){return _t.every(function(Ai){return Ai.width})},[_t]),mi=_t[_t.length-1],ii={fixed:mi?mi.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(qr,"-cell-scrollbar")}}},Ar=(0,he.useMemo)(function(){return ui?[].concat((0,qn.Z)(Gt),[ii]):Gt},[ui,Gt]),ai=(0,he.useMemo)(function(){return ui?[].concat((0,qn.Z)(_t),[ii]):_t},[ui,_t]),Ii=(0,he.useMemo)(function(){var Ai=sn.right,Xr=sn.left;return(0,ut.Z)((0,ut.Z)({},sn),{},{left:Tn==="rtl"?[].concat((0,qn.Z)(Xr.map(function(Ki){return Ki+ui})),[0]):Xr,right:Tn==="rtl"?Ai:[].concat((0,qn.Z)(Ai.map(function(Ki){return Ki+ui})),[0]),isSticky:wi})},[ui,sn,wi]),Ji=kr(fn,dn);return he.createElement("div",{style:(0,ut.Z)({overflow:"hidden"},wi?{top:zn,bottom:ur}:{}),ref:Vi,className:qe()(wt,(0,Oe.Z)({},ar,!!ar))},he.createElement("table",{style:{tableLayout:"fixed",visibility:Tt||Ji?null:"hidden"}},(!Tt||!Vr||ri)&&he.createElement(wr,{colWidths:Ji?[].concat((0,qn.Z)(Ji),[ui]):[],columCount:dn+1,columns:ai}),Tr((0,ut.Z)((0,ut.Z)({},Gr),{},{stickyOffsets:Ii,columns:Ar,flattenColumns:ai}))))});Qn.displayName="FixedHolder";var Nr=he.memo(Qn);function ei(Re){var Ke=Re.cells,wt=Re.stickyOffsets,Tt=Re.flattenColumns,Gt=Re.rowComponent,_t=Re.cellComponent,fn=Re.tdCellComponent,dn=Re.onHeaderRow,sn=Re.index,Tn=ze(Se,["prefixCls","direction"]),Un=Tn.prefixCls,zn=Tn.direction,ur;dn&&(ur=dn(Ke.map(function(or){return or.column}),sn));var ar=Ct(Ke.map(function(or){return or.column}));return he.createElement(Gt,ur,Ke.map(function(or,Vr){var Tr=or.column,Gr=on(or.colStart,or.colEnd,Tt,wt,zn,Tr),Fr;return Tr&&Tr.onHeaderCell&&(Fr=or.column.onHeaderCell(Tr)),he.createElement(mn,(0,vt.Z)({},or,{scope:Tr.title?or.colSpan>1?"colgroup":"col":null,ellipsis:Tr.ellipsis,align:Tr.align,component:Tr.title?_t:fn,prefixCls:Un,key:ar[Vr]},Gr,{additionalProps:Fr,rowType:"header"}))}))}ei.displayName="HeaderRow";var Vt=ei;function Rn(Re){var Ke=[];function wt(fn,dn){var sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ke[sn]=Ke[sn]||[];var Tn=dn,Un=fn.filter(Boolean).map(function(zn){var ur={key:zn.key,className:zn.className||"",children:zn.title,column:zn,colStart:Tn},ar=1,or=zn.children;return or&&or.length>0&&(ar=wt(or,Tn,sn+1).reduce(function(Vr,Tr){return Vr+Tr},0),ur.hasSubColumns=!0),"colSpan"in zn&&(ar=zn.colSpan),"rowSpan"in zn&&(ur.rowSpan=zn.rowSpan),ur.colSpan=ar,ur.colEnd=ur.colStart+ar-1,Ke[sn].push(ur),Tn+=ar,ar});return Un}wt(Re,0);for(var Tt=Ke.length,Gt=function(dn){Ke[dn].forEach(function(sn){!("rowSpan"in sn)&&!sn.hasSubColumns&&(sn.rowSpan=Tt-dn)})},_t=0;_t<Tt;_t+=1)Gt(_t);return Ke}function Nn(Re){var Ke=Re.stickyOffsets,wt=Re.columns,Tt=Re.flattenColumns,Gt=Re.onHeaderRow,_t=ze(Se,["prefixCls","getComponent"]),fn=_t.prefixCls,dn=_t.getComponent,sn=he.useMemo(function(){return Rn(wt)},[wt]),Tn=dn(["header","wrapper"],"thead"),Un=dn(["header","row"],"tr"),zn=dn(["header","cell"],"th"),ur=dn(["header","cell"],"td");return he.createElement(Tn,{className:"".concat(fn,"-thead")},sn.map(function(ar,or){var Vr=he.createElement(Vt,{key:or,flattenColumns:Tt,cells:ar,stickyOffsets:Ke,rowComponent:Un,cellComponent:zn,tdCellComponent:ur,onHeaderRow:Gt,index:or});return Vr}))}var wn=dt(Nn),In=oe(11592);function xn(Re){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ke=="number"?Ke:Ke.endsWith("%")?Re*parseFloat(Ke)/100:null}function kn(Re,Ke){return he.useMemo(function(){if(Ke&&Ke>0){var wt=0,Tt=0;Re.forEach(function(Tn){var Un=xn(Ke,Tn.width);Un?wt+=Un:Tt+=1});var Gt=Ke-wt,_t=Tt,fn=Gt/Tt,dn=0,sn=Re.map(function(Tn){var Un=(0,ut.Z)({},Tn),zn=xn(Ke,Un.width);if(zn)Un.width=zn;else{var ur=Math.floor(fn);Un.width=_t===1?Gt:ur,Gt-=ur,_t-=1}return dn+=Un.width,Un});return[sn,dn]}return[Re,Ke]},[Re,Ke])}var gn=["children"],bt=["fixed"];function Ae(Re){return(0,In.Z)(Re).filter(function(Ke){return he.isValidElement(Ke)}).map(function(Ke){var wt=Ke.key,Tt=Ke.props,Gt=Tt.children,_t=(0,ue.Z)(Tt,gn),fn=(0,ut.Z)({key:wt},_t);return Gt&&(fn.children=Ae(Gt)),fn})}function je(Re){var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Re.filter(function(wt){return wt&&(0,Xe.Z)(wt)==="object"}).reduce(function(wt,Tt,Gt){var _t=Tt.fixed,fn=_t===!0?"left":_t,dn="".concat(Ke,"-").concat(Gt),sn=Tt.children;return sn&&sn.length>0?[].concat((0,qn.Z)(wt),(0,qn.Z)(je(sn,dn).map(function(Tn){return(0,ut.Z)({fixed:fn},Tn)}))):[].concat((0,qn.Z)(wt),[(0,ut.Z)((0,ut.Z)({key:dn},Tt),{},{fixed:fn})])},[])}function Ze(Re){for(var Ke=!0,wt=0;wt<Re.length;wt+=1){var Tt=Re[wt];if(Ke&&Tt.fixed!=="left")Ke=!1;else if(!Ke&&Tt.fixed==="left"){warning(!1,"Index ".concat(wt-1," of `columns` missing `fixed='left'` prop."));break}}for(var Gt=!0,_t=Re.length-1;_t>=0;_t-=1){var fn=Re[_t];if(Gt&&fn.fixed!=="right")Gt=!1;else if(!Gt&&fn.fixed==="right"){warning(!1,"Index ".concat(_t+1," of `columns` missing `fixed='right'` prop."));break}}}function We(Re){return Re.map(function(Ke){var wt=Ke.fixed,Tt=(0,ue.Z)(Ke,bt),Gt=wt;return wt==="left"?Gt="right":wt==="right"&&(Gt="left"),(0,ut.Z)({fixed:Gt},Tt)})}function yt(Re,Ke){var wt=Re.prefixCls,Tt=Re.columns,Gt=Re.children,_t=Re.expandable,fn=Re.expandedKeys,dn=Re.columnTitle,sn=Re.getRowKey,Tn=Re.onTriggerExpand,Un=Re.expandIcon,zn=Re.rowExpandable,ur=Re.expandIconColumnIndex,ar=Re.direction,or=Re.expandRowByClick,Vr=Re.columnWidth,Tr=Re.fixed,Gr=Re.scrollWidth,Fr=he.useMemo(function(){return Tt||Ae(Gt)},[Tt,Gt]),qr=he.useMemo(function(){if(_t){var mi,ii=Fr.slice();if(!ii.includes(me)){var Ar=ur||0;Ar>=0&&ii.splice(Ar,0,me)}var ai=ii.indexOf(me);ii=ii.filter(function(Xr,Ki){return Xr!==me||Ki===ai});var Ii=Fr[ai],Ji;(Tr==="left"||Tr)&&!ur?Ji="left":(Tr==="right"||Tr)&&ur===Fr.length?Ji="right":Ji=Ii?Ii.fixed:null;var Ai=(mi={},(0,Oe.Z)(mi,Yn,{className:"".concat(wt,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Oe.Z)(mi,"title",dn),(0,Oe.Z)(mi,"fixed",Ji),(0,Oe.Z)(mi,"className","".concat(wt,"-row-expand-icon-cell")),(0,Oe.Z)(mi,"width",Vr),(0,Oe.Z)(mi,"render",function(Ki,Gi,ba){var ha=sn(Gi,ba),qa=fn.has(ha),Ka=zn?zn(Gi):!0,$i=Un({prefixCls:wt,expanded:qa,expandable:Ka,record:Gi,onExpand:Tn});return or?he.createElement("span",{onClick:function(oa){return oa.stopPropagation()}},$i):$i}),mi);return ii.map(function(Xr){return Xr===me?Ai:Xr})}return Fr.filter(function(Xr){return Xr!==me})},[_t,Fr,sn,fn,Un,ar]),Ci=he.useMemo(function(){var mi=qr;return Ke&&(mi=Ke(mi)),mi.length||(mi=[{render:function(){return null}}]),mi},[Ke,qr,ar]),wi=he.useMemo(function(){return ar==="rtl"?We(je(Ci)):je(Ci)},[Ci,ar,Gr]),ui=kn(wi,Gr),Ti=(0,Pe.Z)(ui,2),Vi=Ti[0],ri=Ti[1];return[Ci,Vi,ri]}var Lt=yt;function Jt(Re){var Ke,wt=Re.prefixCls,Tt=Re.record,Gt=Re.onExpand,_t=Re.expanded,fn=Re.expandable,dn="".concat(wt,"-row-expand-icon");if(!fn)return he.createElement("span",{className:qe()(dn,"".concat(wt,"-row-spaced"))});var sn=function(Un){Gt(Tt,Un),Un.stopPropagation()};return he.createElement("span",{className:qe()(dn,(Ke={},(0,Oe.Z)(Ke,"".concat(wt,"-row-expanded"),_t),(0,Oe.Z)(Ke,"".concat(wt,"-row-collapsed"),!_t),Ke)),onClick:sn})}function Ht(Re,Ke,wt){var Tt=[];function Gt(_t){(_t||[]).forEach(function(fn,dn){Tt.push(Ke(fn,dn)),Gt(fn[wt])})}return Gt(Re),Tt}function ln(Re,Ke,wt){var Tt=_n(Re),Gt=Tt.expandIcon,_t=Tt.expandedRowKeys,fn=Tt.defaultExpandedRowKeys,dn=Tt.defaultExpandAllRows,sn=Tt.expandedRowRender,Tn=Tt.onExpand,Un=Tt.onExpandedRowsChange,zn=Tt.childrenColumnName,ur=Gt||Jt,ar=zn||"children",or=he.useMemo(function(){return sn?"row":Re.expandable&&Re.internalHooks===Me&&Re.expandable.__PARENT_RENDER_ICON__||Ke.some(function(wi){return wi&&(0,Xe.Z)(wi)==="object"&&wi[ar]})?"nest":!1},[!!sn,Ke]),Vr=he.useState(function(){return fn||(dn?Ht(Ke,wt,ar):[])}),Tr=(0,Pe.Z)(Vr,2),Gr=Tr[0],Fr=Tr[1],qr=he.useMemo(function(){return new Set(_t||Gr||[])},[_t,Gr]),Ci=he.useCallback(function(wi){var ui=wt(wi,Ke.indexOf(wi)),Ti,Vi=qr.has(ui);Vi?(qr.delete(ui),Ti=(0,qn.Z)(qr)):Ti=[].concat((0,qn.Z)(qr),[ui]),Fr(Ti),Tn&&Tn(!Vi,wi),Un&&Un(Ti)},[wt,qr,Ke,Tn,Un]);return[Tt,or,qr,ur,ar,Ci]}function yn(Re,Ke,wt,Tt){var Gt=Re.map(function(_t,fn){return on(fn,fn,Re,Ke,wt,Tt==null?void 0:Tt[fn])});return(0,zt.Z)(function(){return Gt},[Gt],function(_t,fn){return!(0,ke.Z)(_t,fn)})}function En(Re){var Ke=(0,he.useRef)(Re),wt=(0,he.useState)({}),Tt=(0,Pe.Z)(wt,2),Gt=Tt[1],_t=(0,he.useRef)(null),fn=(0,he.useRef)([]);function dn(sn){fn.current.push(sn);var Tn=Promise.resolve();_t.current=Tn,Tn.then(function(){if(_t.current===Tn){var Un=fn.current,zn=Ke.current;fn.current=[],Un.forEach(function(ur){Ke.current=ur(Ke.current)}),_t.current=null,zn!==Ke.current&&Gt({})}})}return(0,he.useEffect)(function(){return function(){_t.current=null}},[]),[Ke.current,dn]}function Mn(Re){var Ke=(0,he.useRef)(Re||null),wt=(0,he.useRef)();function Tt(){window.clearTimeout(wt.current)}function Gt(fn){Ke.current=fn,Tt(),wt.current=window.setTimeout(function(){Ke.current=null,wt.current=void 0},100)}function _t(){return Ke.current}return(0,he.useEffect)(function(){return Tt},[]),[Gt,_t]}function Kt(){var Re=he.useState(-1),Ke=(0,Pe.Z)(Re,2),wt=Ke[0],Tt=Ke[1],Gt=he.useState(-1),_t=(0,Pe.Z)(Gt,2),fn=_t[0],dn=_t[1],sn=he.useCallback(function(Tn,Un){Tt(Tn),dn(Un)},[]);return[wt,fn,sn]}var hn=oe(47273),Hn=(0,hn.Z)()?window:null;function Zn(Re,Ke){var wt=(0,Xe.Z)(Re)==="object"?Re:{},Tt=wt.offsetHeader,Gt=Tt===void 0?0:Tt,_t=wt.offsetSummary,fn=_t===void 0?0:_t,dn=wt.offsetScroll,sn=dn===void 0?0:dn,Tn=wt.getContainer,Un=Tn===void 0?function(){return Hn}:Tn,zn=Un()||Hn;return he.useMemo(function(){var ur=!!Re;return{isSticky:ur,stickyClassName:ur?"".concat(Ke,"-sticky-holder"):"",offsetHeader:Gt,offsetSummary:fn,offsetScroll:sn,container:zn}},[sn,Gt,fn,Ke,zn])}function Kn(Re,Ke,wt){var Tt=(0,he.useMemo)(function(){for(var Gt=[],_t=[],fn=0,dn=0,sn=0;sn<Ke;sn+=1)if(wt==="rtl"){_t[sn]=dn,dn+=Re[sn]||0;var Tn=Ke-sn-1;Gt[Tn]=fn,fn+=Re[Tn]||0}else{Gt[sn]=fn,fn+=Re[sn]||0;var Un=Ke-sn-1;_t[Un]=dn,dn+=Re[Un]||0}return{left:Gt,right:_t}},[Re,Ke,wt]);return Tt}var jn=Kn;function nr(Re){var Ke=Re.className,wt=Re.children;return he.createElement("div",{className:Ke},wt)}var On=nr,cr=oe(8224),Mt=oe(55468),an=function(Ke,wt){var Tt,Gt,_t=Ke.scrollBodyRef,fn=Ke.onScroll,dn=Ke.offsetScroll,sn=Ke.container,Tn=ze(Se,"prefixCls"),Un=((Tt=_t.current)===null||Tt===void 0?void 0:Tt.scrollWidth)||0,zn=((Gt=_t.current)===null||Gt===void 0?void 0:Gt.clientWidth)||0,ur=Un&&zn*(zn/Un),ar=he.useRef(),or=En({scrollLeft:0,isHiddenScrollBar:!1}),Vr=(0,Pe.Z)(or,2),Tr=Vr[0],Gr=Vr[1],Fr=he.useRef({delta:0,x:0}),qr=he.useState(!1),Ci=(0,Pe.Z)(qr,2),wi=Ci[0],ui=Ci[1],Ti=function(){ui(!1)},Vi=function(ai){ai.persist(),Fr.current.delta=ai.pageX-Tr.scrollLeft,Fr.current.x=0,ui(!0),ai.preventDefault()},ri=function(ai){var Ii,Ji=ai||((Ii=window)===null||Ii===void 0?void 0:Ii.event),Ai=Ji.buttons;if(!wi||Ai===0){wi&&ui(!1);return}var Xr=Fr.current.x+ai.pageX-Fr.current.x-Fr.current.delta;Xr<=0&&(Xr=0),Xr+ur>=zn&&(Xr=zn-ur),fn({scrollLeft:Xr/zn*(Un+2)}),Fr.current.x=ai.pageX},mi=function(){if(_t.current){var ai=(0,Mt.os)(_t.current).top,Ii=ai+_t.current.offsetHeight,Ji=sn===window?document.documentElement.scrollTop+window.innerHeight:(0,Mt.os)(sn).top+sn.clientHeight;Ii-(0,xt.Z)()<=Ji||ai>=Ji-dn?Gr(function(Ai){return(0,ut.Z)((0,ut.Z)({},Ai),{},{isHiddenScrollBar:!0})}):Gr(function(Ai){return(0,ut.Z)((0,ut.Z)({},Ai),{},{isHiddenScrollBar:!1})})}},ii=function(ai){Gr(function(Ii){return(0,ut.Z)((0,ut.Z)({},Ii),{},{scrollLeft:ai/Un*zn||0})})};return he.useImperativeHandle(wt,function(){return{setScrollLeft:ii}}),he.useEffect(function(){var Ar=(0,cr.Z)(document.body,"mouseup",Ti,!1),ai=(0,cr.Z)(document.body,"mousemove",ri,!1);return mi(),function(){Ar.remove(),ai.remove()}},[ur,wi]),he.useEffect(function(){var Ar=(0,cr.Z)(sn,"scroll",mi,!1),ai=(0,cr.Z)(window,"resize",mi,!1);return function(){Ar.remove(),ai.remove()}},[sn]),he.useEffect(function(){Tr.isHiddenScrollBar||Gr(function(Ar){var ai=_t.current;return ai?(0,ut.Z)((0,ut.Z)({},Ar),{},{scrollLeft:ai.scrollLeft/ai.scrollWidth*ai.clientWidth}):Ar})},[Tr.isHiddenScrollBar]),Un<=zn||!ur||Tr.isHiddenScrollBar?null:he.createElement("div",{style:{height:(0,xt.Z)(),width:zn,bottom:dn},className:"".concat(Tn,"-sticky-scroll")},he.createElement("div",{onMouseDown:Vi,ref:ar,className:qe()("".concat(Tn,"-sticky-scroll-bar"),(0,Oe.Z)({},"".concat(Tn,"-sticky-scroll-bar-active"),wi)),style:{width:"".concat(ur,"px"),transform:"translate3d(".concat(Tr.scrollLeft,"px, 0, 0)")}}))},cn=he.forwardRef(an);function Cn(Re){return null}var un=Cn;function vn(Re){return null}var pn=vn,Pn="rc-table",Vn=[],er={};function pr(){return"No Data"}function mr(Re){var Ke,wt=(0,ut.Z)({rowKey:"key",prefixCls:Pn,emptyText:pr},Re),Tt=wt.prefixCls,Gt=wt.className,_t=wt.rowClassName,fn=wt.style,dn=wt.data,sn=wt.rowKey,Tn=wt.scroll,Un=wt.tableLayout,zn=wt.direction,ur=wt.title,ar=wt.footer,or=wt.summary,Vr=wt.caption,Tr=wt.id,Gr=wt.showHeader,Fr=wt.components,qr=wt.emptyText,Ci=wt.onRow,wi=wt.onHeaderRow,ui=wt.internalHooks,Ti=wt.transformColumns,Vi=wt.internalRefs,ri=wt.tailor,mi=wt.sticky,ii=dn||Vn,Ar=!!ii.length,ai=ui===Me,Ii=he.useCallback(function(va,Ea){return(0,Dt.Z)(Fr,va)||Ea},[Fr]),Ji=he.useMemo(function(){return typeof sn=="function"?sn:function(va){var Ea=va&&va[sn];return Ea}},[sn]),Ai=Ii(["body"]),Xr=Kt(),Ki=(0,Pe.Z)(Xr,3),Gi=Ki[0],ba=Ki[1],ha=Ki[2],qa=ln(wt,ii,Ji),Ka=(0,Pe.Z)(qa,6),$i=Ka[0],mo=Ka[1],oa=Ka[2],Ga=Ka[3],Ha=Ka[4],Eo=Ka[5],Li=Tn==null?void 0:Tn.x,Mi=he.useState(0),ki=(0,Pe.Z)(Mi,2),yi=ki[0],pa=ki[1],Si=Lt((0,ut.Z)((0,ut.Z)((0,ut.Z)({},wt),$i),{},{expandable:!!$i.expandedRowRender,columnTitle:$i.columnTitle,expandedKeys:oa,getRowKey:Ji,onTriggerExpand:Eo,expandIcon:Ga,expandIconColumnIndex:$i.expandIconColumnIndex,direction:zn,scrollWidth:ai&&ri&&typeof Li=="number"?Li:null}),ai?Ti:null),Hi=(0,Pe.Z)(Si,3),la=Hi[0],na=Hi[1],Vo=Hi[2],Mo=Vo!=null?Vo:Li,Rl=he.useMemo(function(){return{columns:la,flattenColumns:na}},[la,na]),vo=he.useRef(),$l=he.useRef(),yo=he.useRef(),Ro=he.useRef(),gs=he.useRef(),fa=he.useState(!1),Mr=(0,Pe.Z)(fa,2),xa=Mr[0],Co=Mr[1],ko=he.useState(!1),Ri=(0,Pe.Z)(ko,2),ka=Ri[0],zo=Ri[1],Pl=En(new Map),ss=(0,Pe.Z)(Pl,2),pl=ss[0],Go=ss[1],es=Ct(na),Uo=es.map(function(va){return pl.get(va)}),ml=he.useMemo(function(){return Uo},[Uo.join("_")]),tl=jn(ml,na.length,zn),eo=Tn&&Yt(Tn.y),to=Tn&&Yt(Mo)||!!$i.fixed,ul=to&&na.some(function(va){var Ea=va.fixed;return Ea}),ys=he.useRef(),zl=Zn(mi,Tt),us=zl.isSticky,Ns=zl.offsetHeader,rc=zl.offsetSummary,ma=zl.offsetScroll,Ia=zl.stickyClassName,Bo=zl.container,Ta=he.useMemo(function(){return or==null?void 0:or(ii)},[or,ii]),Po=(eo||us)&&he.isValidElement(Ta)&&Ta.type===ae&&Ta.props.fixed,Xo,xl,bs;eo&&(xl={overflowY:"scroll",maxHeight:Tn.y}),to&&(Xo={overflowX:"auto"},eo||(xl={overflowY:"hidden"}),bs={width:Mo===!0?"auto":Mo,minWidth:"100%"});var Mc=he.useCallback(function(va,Ea){(0,rt.Z)(vo.current)&&Go(function(gl){if(gl.get(va)!==Ea){var ws=new Map(gl);return ws.set(va,Ea),ws}return gl})},[]),Us=Mn(null),xs=(0,Pe.Z)(Us,2),ca=xs[0],io=xs[1];function cs(va,Ea){Ea&&(typeof Ea=="function"?Ea(va):Ea.scrollLeft!==va&&(Ea.scrollLeft=va,Ea.scrollLeft!==va&&setTimeout(function(){Ea.scrollLeft=va},0)))}var lu=(0,pt.Z)(function(va){var Ea=va.currentTarget,gl=va.scrollLeft,ws=zn==="rtl",Es=typeof gl=="number"?gl:Ea.scrollLeft,Ac=Ea||er;if(!io()||io()===Ac){var Ao;ca(Ac),cs(Es,$l.current),cs(Es,yo.current),cs(Es,gs.current),cs(Es,(Ao=ys.current)===null||Ao===void 0?void 0:Ao.setScrollLeft)}var ns=Ea||$l.current;if(ns){var Lc=ns.scrollWidth,Ys=ns.clientWidth;if(Lc===Ys){Co(!1),zo(!1);return}ws?(Co(-Es<Lc-Ys),zo(-Es>0)):(Co(Es>0),zo(Es<Lc-Ys))}}),_l=function(){to&&yo.current?lu({currentTarget:yo.current}):(Co(!1),zo(!1))},qc=function(Ea){var gl=Ea.width;gl!==yi&&(_l(),pa(vo.current?vo.current.offsetWidth:gl))},Do=he.useRef(!1);he.useEffect(function(){Do.current&&_l()},[to,dn,la.length]),he.useEffect(function(){Do.current=!0},[]);var kc=he.useState(0),ed=(0,Pe.Z)(kc,2),ic=ed[0],ac=ed[1],xu=he.useState(!0),su=(0,Pe.Z)(xu,2),Rr=su[0],Dc=su[1];he.useEffect(function(){(!ri||!ai)&&(yo.current instanceof Element?ac((0,xt.o)(yo.current).width):ac((0,xt.o)(Ro.current).width)),Dc((0,Ge.G)("position","sticky"))},[]),he.useEffect(function(){ai&&Vi&&(Vi.body.current=yo.current)});var oc=he.useCallback(function(va){return he.createElement(he.Fragment,null,he.createElement(wn,va),Po==="top"&&he.createElement(ft,va,Ta))},[Po,Ta]),lc=he.useCallback(function(va){return he.createElement(ft,va,Ta)},[Ta]),ts=Ii(["table"],"table"),Xs=he.useMemo(function(){return Un||(ul?Mo==="max-content"?"auto":"fixed":eo||us||na.some(function(va){var Ea=va.ellipsis;return Ea})?"fixed":"auto")},[eo,ul,na,Un,us]),Cu,uu={colWidths:ml,columCount:na.length,stickyOffsets:tl,onHeaderRow:wi,fixHeader:eo,scroll:Tn},Ua=he.useMemo(function(){return Ar?null:typeof qr=="function"?qr():qr},[Ar,qr]),td=he.createElement(Ln,{data:ii,measureColumnWidth:eo||to||us}),sc=he.createElement(wr,{colWidths:na.map(function(va){var Ea=va.width;return Ea}),columns:na}),Cs=Vr!=null?he.createElement("caption",{className:"".concat(Tt,"-caption")},Vr):void 0,Zu=(0,Xt.Z)(wt,{data:!0}),Rs=(0,Xt.Z)(wt,{aria:!0});if(eo||us){var zs;typeof Ai=="function"?(zs=Ai(ii,{scrollbarSize:ic,ref:yo,onScroll:lu}),uu.colWidths=na.map(function(va,Ea){var gl=va.width,ws=Ea===na.length-1?gl-ic:gl;return typeof ws=="number"&&!Number.isNaN(ws)?ws:0})):zs=he.createElement("div",{style:(0,ut.Z)((0,ut.Z)({},Xo),xl),onScroll:lu,ref:yo,className:qe()("".concat(Tt,"-body"))},he.createElement(ts,(0,vt.Z)({style:(0,ut.Z)((0,ut.Z)({},bs),{},{tableLayout:Xs})},Rs),Cs,sc,td,!Po&&Ta&&he.createElement(ft,{stickyOffsets:tl,flattenColumns:na,columns:la},Ta)));var vl=(0,ut.Z)((0,ut.Z)((0,ut.Z)({noData:!ii.length,maxContentScroll:to&&Mo==="max-content"},uu),Rl),{},{direction:zn,stickyClassName:Ia,onScroll:lu});Cu=he.createElement(he.Fragment,null,Gr!==!1&&he.createElement(Nr,(0,vt.Z)({},vl,{stickyTopOffset:Ns,className:"".concat(Tt,"-header"),ref:$l}),oc),zs,Po&&Po!=="top"&&he.createElement(Nr,(0,vt.Z)({},vl,{stickyBottomOffset:rc,className:"".concat(Tt,"-summary"),ref:gs}),lc),us&&he.createElement(cn,{ref:ys,offsetScroll:ma,scrollBodyRef:yo,onScroll:lu,container:Bo}))}else Cu=he.createElement("div",{style:(0,ut.Z)((0,ut.Z)({},Xo),xl),className:qe()("".concat(Tt,"-content")),onScroll:lu,ref:yo},he.createElement(ts,(0,vt.Z)({style:(0,ut.Z)((0,ut.Z)({},bs),{},{tableLayout:Xs})},Rs),Cs,sc,Gr!==!1&&he.createElement(wn,(0,vt.Z)({},uu,Rl)),td,Ta&&he.createElement(ft,{stickyOffsets:tl,flattenColumns:na,columns:la},Ta)));var Kl=he.createElement("div",(0,vt.Z)({className:qe()(Tt,Gt,(Ke={},(0,Oe.Z)(Ke,"".concat(Tt,"-rtl"),zn==="rtl"),(0,Oe.Z)(Ke,"".concat(Tt,"-ping-left"),xa),(0,Oe.Z)(Ke,"".concat(Tt,"-ping-right"),ka),(0,Oe.Z)(Ke,"".concat(Tt,"-layout-fixed"),Un==="fixed"),(0,Oe.Z)(Ke,"".concat(Tt,"-fixed-header"),eo),(0,Oe.Z)(Ke,"".concat(Tt,"-fixed-column"),ul),(0,Oe.Z)(Ke,"".concat(Tt,"-scroll-horizontal"),to),(0,Oe.Z)(Ke,"".concat(Tt,"-has-fix-left"),na[0]&&na[0].fixed),(0,Oe.Z)(Ke,"".concat(Tt,"-has-fix-right"),na[na.length-1]&&na[na.length-1].fixed==="right"),Ke)),style:fn,id:Tr,ref:vo},Zu),ur&&he.createElement(On,{className:"".concat(Tt,"-title")},ur(ii)),he.createElement("div",{ref:Ro,className:"".concat(Tt,"-container")},Cu),ar&&he.createElement(On,{className:"".concat(Tt,"-footer")},ar(ii)));to&&(Kl=he.createElement(mt.Z,{onResize:qc},Kl));var nl=yn(na,tl,zn,la),Ss=he.useMemo(function(){return{scrollX:Mo,prefixCls:Tt,getComponent:Ii,scrollbarSize:ic,direction:zn,fixedInfoList:nl,isSticky:us,supportSticky:Rr,componentWidth:yi,fixHeader:eo,fixColumn:ul,horizonScroll:to,tableLayout:Xs,rowClassName:_t,expandedRowClassName:$i.expandedRowClassName,expandIcon:Ga,expandableType:mo,expandRowByClick:$i.expandRowByClick,expandedRowRender:$i.expandedRowRender,onTriggerExpand:Eo,expandIconColumnIndex:$i.expandIconColumnIndex,indentSize:$i.indentSize,allColumnsFixedLeft:na.every(function(va){return va.fixed==="left"}),emptyNode:Ua,columns:la,flattenColumns:na,onColumnResize:Mc,hoverStartRow:Gi,hoverEndRow:ba,onHover:ha,rowExpandable:$i.rowExpandable,onRow:Ci,getRowKey:Ji,expandedKeys:oa,childrenColumnName:Ha}},[Mo,Tt,Ii,ic,zn,nl,us,Rr,yi,eo,ul,to,Xs,_t,$i.expandedRowClassName,Ga,mo,$i.expandRowByClick,$i.expandedRowRender,Eo,$i.expandIconColumnIndex,$i.indentSize,Ua,la,na,Mc,Gi,ba,ha,$i.rowExpandable,Ci,Ji,oa,Ha]);return he.createElement(Se.Provider,{value:Ss},Kl)}function Pr(Re){return At(mr,Re)}var Ir=Pr();Ir.EXPAND_COLUMN=me,Ir.INTERNAL_HOOKS=Me,Ir.Column=un,Ir.ColumnGroup=pn,Ir.Summary=Fe;var Lr=Ir,$r=oe(48911),Hr=Ee(null),Zr=Ee(null);function gr(Re,Ke,wt){var Tt=Ke||1;return wt[Re+Tt]-(wt[Re]||0)}function zr(Re){var Ke=Re.rowInfo,wt=Re.column,Tt=Re.colIndex,Gt=Re.indent,_t=Re.index,fn=Re.renderIndex,dn=Re.record,sn=Re.style,Tn=Re.className,Un=Re.inverse,zn=Re.getHeight,ur=wt.render,ar=wt.dataIndex,or=wt.className,Vr=wt.width,Tr=ze(Zr,["columnsOffset"]),Gr=Tr.columnsOffset,Fr=it(Ke,wt,Tt,Gt,_t),qr=Fr.key,Ci=Fr.fixedInfo,wi=Fr.appendCellNode,ui=Fr.additionalCellProps,Ti=ui.style,Vi=ui.colSpan,ri=Vi===void 0?1:Vi,mi=ui.rowSpan,ii=mi===void 0?1:mi,Ar=Tt-1,ai=gr(Ar,ri,Gr),Ii=ri>1?Vr-ai:0,Ji=(0,ut.Z)((0,ut.Z)((0,ut.Z)({},Ti),sn),{},{flex:"0 0 ".concat(ai,"px"),width:"".concat(ai,"px"),marginRight:Ii,pointerEvents:"auto"}),Ai=he.useMemo(function(){return Un?ii<=1:ri===0||ii===0||ii>1},[ii,ri,Un]);Ai?Ji.visibility="hidden":Un&&(Ji.height=zn==null?void 0:zn(ii));var Xr=Ai?function(){return null}:ur,Ki={};return(ii===0||ri===0)&&(Ki.rowSpan=1,Ki.colSpan=1),he.createElement(mn,(0,vt.Z)({className:qe()(or,Tn),ellipsis:wt.ellipsis,align:wt.align,scope:wt.rowScope,component:"div",prefixCls:Ke.prefixCls,key:qr,record:dn,index:_t,renderIndex:fn,dataIndex:ar,render:Xr,shouldCellUpdate:wt.shouldCellUpdate},Ci,{appendNode:wi,additionalProps:(0,ut.Z)((0,ut.Z)({},ui),{},{style:Ji},Ki)}))}var Cr=zr,lr=["data","index","className","rowKey","style","extra","getHeight"],jr=he.forwardRef(function(Re,Ke){var wt=Re.data,Tt=Re.index,Gt=Re.className,_t=Re.rowKey,fn=Re.style,dn=Re.extra,sn=Re.getHeight,Tn=(0,ue.Z)(Re,lr),Un=wt.record,zn=wt.indent,ur=wt.index,ar=ze(Se,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),or=ar.scrollX,Vr=ar.flattenColumns,Tr=ar.prefixCls,Gr=ar.fixColumn,Fr=ar.componentWidth,qr=Le(Un,_t,Tt,zn),Ci=qr.rowSupportExpand,wi=qr.expanded,ui=qr.rowProps,Ti=qr.expandedRowRender,Vi=qr.expandedRowClassName,ri;if(Ci&&wi){var mi=Ti(Un,Tt,zn+1,wi),ii=Vi==null?void 0:Vi(Un,Tt,zn),Ar={};Gr&&(Ar={style:(0,Oe.Z)({},"--virtual-width","".concat(Fr,"px"))});var ai="".concat(Tr,"-expanded-row-cell");ri=he.createElement("div",{className:qe()("".concat(Tr,"-expanded-row"),"".concat(Tr,"-expanded-row-level-").concat(zn+1),ii)},he.createElement(mn,{component:"div",prefixCls:Tr,className:qe()(ai,(0,Oe.Z)({},"".concat(ai,"-fixed"),Gr)),additionalProps:Ar},mi))}var Ii=(0,ut.Z)((0,ut.Z)({},fn),{},{width:or});dn&&(Ii.position="absolute",Ii.pointerEvents="none");var Ji=he.createElement("div",(0,vt.Z)({},ui,Tn,{ref:Ci?null:Ke,className:qe()(Gt,"".concat(Tr,"-row"),ui==null?void 0:ui.className,(0,Oe.Z)({},"".concat(Tr,"-row-extra"),dn)),style:(0,ut.Z)((0,ut.Z)({},Ii),ui==null?void 0:ui.style)}),Vr.map(function(Ai,Xr){return he.createElement(Cr,{key:Xr,rowInfo:qr,column:Ai,colIndex:Xr,indent:zn,index:Tt,renderIndex:ur,record:Un,inverse:dn,getHeight:sn})}));return Ci?he.createElement("div",{ref:Ke},Ji,ri):Ji}),li=dt(jr),Dr=li,Jn=he.forwardRef(function(Re,Ke){var wt=Re.data,Tt=Re.onScroll,Gt=ze(Se,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),_t=Gt.flattenColumns,fn=Gt.onColumnResize,dn=Gt.getRowKey,sn=Gt.expandedKeys,Tn=Gt.prefixCls,Un=Gt.childrenColumnName,zn=Gt.emptyNode,ur=Gt.scrollX,ar=ze(Hr),or=ar.scrollY,Vr=ar.listItemHeight,Tr=he.useRef(),Gr=Rt(wt,Un,sn,dn),Fr=he.useMemo(function(){var ri=0;return _t.map(function(mi){var ii=mi.width,Ar=mi.key;return ri+=ii,[Ar,ii,ri]})},[_t]),qr=he.useMemo(function(){return Fr.map(function(ri){return ri[2]})},[Fr]);he.useEffect(function(){Fr.forEach(function(ri){var mi=(0,Pe.Z)(ri,2),ii=mi[0],Ar=mi[1];fn(ii,Ar)})},[Fr]),he.useImperativeHandle(Ke,function(){var ri={};return Object.defineProperty(ri,"scrollLeft",{get:function(){var ii;return((ii=Tr.current)===null||ii===void 0?void 0:ii.getScrollInfo().x)||0},set:function(ii){var Ar;(Ar=Tr.current)===null||Ar===void 0||Ar.scrollTo({left:ii})}}),ri});var Ci=function(mi,ii){var Ar,ai=(Ar=Gr[ii])===null||Ar===void 0?void 0:Ar.record,Ii=mi.onCell;if(Ii){var Ji,Ai=Ii(ai,ii);return(Ji=Ai==null?void 0:Ai.rowSpan)!==null&&Ji!==void 0?Ji:1}return 1},wi=function(mi){var ii=mi.start,Ar=mi.end,ai=mi.getSize,Ii=mi.offsetY;if(Ar<0)return null;for(var Ji=_t.filter(function(Li){return Ci(Li,ii)===0}),Ai=ii,Xr=function(Mi){if(Ji=Ji.filter(function(ki){return Ci(ki,Mi)===0}),!Ji.length)return Ai=Mi,"break"},Ki=ii;Ki>=0;Ki-=1){var Gi=Xr(Ki);if(Gi==="break")break}for(var ba=_t.filter(function(Li){return Ci(Li,Ar)!==1}),ha=Ar,qa=function(Mi){if(ba=ba.filter(function(ki){return Ci(ki,Mi)!==1}),!ba.length)return ha=Math.max(Mi-1,Ar),"break"},Ka=Ar;Ka<Gr.length;Ka+=1){var $i=qa(Ka);if($i==="break")break}for(var mo=[],oa=function(Mi){var ki=Gr[Mi];if(!ki)return"continue";_t.some(function(yi){return Ci(yi,Mi)>1})&&mo.push(Mi)},Ga=Ai;Ga<=ha;Ga+=1)var Ha=oa(Ga);var Eo=mo.map(function(Li){var Mi=Gr[Li],ki=dn(Mi.record,Li),yi=function(Hi){var la=Li+Hi-1,na=dn(Gr[la].record,la),Vo=ai(ki,na);return Vo.bottom-Vo.top},pa=ai(ki);return he.createElement(Dr,{key:Li,data:Mi,rowKey:ki,index:Li,style:{top:-Ii+pa.top},extra:!0,getHeight:yi})});return Eo},ui=he.useMemo(function(){return{columnsOffset:qr}},[qr]),Ti="".concat(Tn,"-tbody"),Vi;return Gr.length?Vi=he.createElement($r.Z,{fullHeight:!1,ref:Tr,className:qe()(Ti,"".concat(Ti,"-virtual")),height:or,itemHeight:Vr||24,data:Gr,itemKey:function(mi){return dn(mi.record)},scrollWidth:ur,onVirtualScroll:function(mi){var ii=mi.x;Tt({scrollLeft:ii})},extraRender:wi},function(ri,mi,ii){var Ar=dn(ri.record,mi);return he.createElement(Dr,(0,vt.Z)({data:ri,rowKey:Ar,index:mi},ii))}):Vi=he.createElement("div",{className:qe()("".concat(Tn,"-placeholder"))},he.createElement(mn,{component:"div",prefixCls:Tn},zn)),he.createElement(Zr.Provider,{value:ui},Vi)}),Xn=dt(Jn),Wr=Xn,Er=function(Ke,wt){var Tt=wt.ref,Gt=wt.onScroll;return he.createElement(Wr,{ref:Tt,data:Ke,onScroll:Gt})},Jr=100;function ci(Re){var Ke=Re.columns,wt=Re.scroll,Tt=Re.prefixCls,Gt=Tt===void 0?Pn:Tt,_t=Re.className,fn=Re.listItemHeight,dn=wt||{},sn=dn.x,Tn=dn.y;typeof sn!="number"&&(sn=((Ke||[]).length+1)*Jr),typeof Tn!="number"&&(Tn=500);var Un=he.useMemo(function(){return{scrollY:Tn,listItemHeight:fn}},[Tn,fn]);return he.createElement(Hr.Provider,{value:Un},he.createElement(Lr,(0,vt.Z)({},Re,{className:qe()(_t,"".concat(Gt,"-virtual")),scroll:(0,ut.Z)((0,ut.Z)({},wt),{},{x:sn}),components:{body:Er},columns:Ke,internalHooks:Me,tailor:!0})))}function ti(Re){return At(ci,Re)}var Bi=ti(),vi=null;function Ui(Re){return null}var Or=Ui;function _r(Re){return null}var si=_r,di=oe(2738),ea=oe(68031),Va=oe(36355),Da=oe(93891),_i=oe(19716),da=oe(8628),sa=oe(31724),Sr=oe(58421),xr=oe(71418),sr=oe(88088);function hr(Re){return function(wt){let{prefixCls:Tt,onExpand:Gt,record:_t,expanded:fn,expandable:dn}=wt;const sn=`${Tt}-row-expand-icon`;return he.createElement("button",{type:"button",onClick:Tn=>{Gt(_t,Tn),Tn.stopPropagation()},className:qe()(sn,{[`${sn}-spaced`]:!dn,[`${sn}-expanded`]:dn&&fn,[`${sn}-collapsed`]:dn&&!fn}),"aria-label":fn?Re.collapse:Re.expand,"aria-expanded":fn})}}var xi=hr;function Fi(Re,Ke){return"key"in Re&&Re.key!==void 0&&Re.key!==null?Re.key:Re.dataIndex?Array.isArray(Re.dataIndex)?Re.dataIndex.join("."):Re.dataIndex:Ke}function Zi(Re,Ke){return Ke?`${Ke}-${Re}`:`${Re}`}function Yi(Re,Ke){return typeof Re=="function"?Re(Ke):Re}function Wi(Re,Ke){const wt=Yi(Re,Ke);return Object.prototype.toString.call(wt)==="[object Object]"?"":wt}var ra={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"},Ba=ra,Aa=oe(7657),ho=function(Ke,wt){return he.createElement(Aa.Z,(0,vt.Z)({},Ke,{ref:wt,icon:Ba}))},no=he.forwardRef(ho),Fa=no,al=oe(56762);function po(Re){const Ke=he.useRef(Re),wt=(0,al.Z)();return[()=>Ke.current,Tt=>{Ke.current=Tt,wt()}]}var wo=oe(3113),Xa=oe(24905),ya=oe(38854),hi=oe(64165),Ni=oe(20834),Ei=oe(40875),fi=oe(5112),Xi=oe(17574),ji=oe(47472),Na=oe(92832);function $a(Re){let{value:Ke,onChange:wt,filterSearch:Tt,tablePrefixCls:Gt,locale:_t}=Re;return Tt?he.createElement("div",{className:`${Gt}-filter-dropdown-search`},he.createElement(Na.default,{prefix:he.createElement(ji.Z,null),placeholder:_t.filterSearchPlaceholder,onChange:wt,value:Ke,htmlSize:1,className:`${Gt}-filter-dropdown-search-input`})):null}var Ra=$a,ro=oe(10228);const ia=Re=>{const{keyCode:Ke}=Re;Ke===ro.Z.ENTER&&Re.stopPropagation()};var Ya=he.forwardRef((Re,Ke)=>he.createElement("div",{className:Re.className,onClick:wt=>wt.stopPropagation(),onKeyDown:ia,ref:Ke},Re.children));function Qa(Re){let Ke=[];return(Re||[]).forEach(wt=>{let{value:Tt,children:Gt}=wt;Ke.push(Tt),Gt&&(Ke=[].concat((0,qn.Z)(Ke),(0,qn.Z)(Qa(Gt))))}),Ke}function go(Re){return Re.some(Ke=>{let{children:wt}=Ke;return wt})}function Ja(Re,Ke){return typeof Ke=="string"||typeof Ke=="number"?Ke==null?void 0:Ke.toString().toLowerCase().includes(Re.trim().toLowerCase()):!1}function hs(Re){let{filters:Ke,prefixCls:wt,filteredKeys:Tt,filterMultiple:Gt,searchValue:_t,filterSearch:fn}=Re;return Ke.map((dn,sn)=>{const Tn=String(dn.value);if(dn.children)return{key:Tn||sn,label:dn.text,popupClassName:`${wt}-dropdown-submenu`,children:hs({filters:dn.children,prefixCls:wt,filteredKeys:Tt,filterMultiple:Gt,searchValue:_t,filterSearch:fn})};const Un=Gt?Xa.default:fi.ZP,zn={key:dn.value!==void 0?Tn:sn,label:he.createElement(he.Fragment,null,he.createElement(Un,{checked:Tt.includes(Tn)}),he.createElement("span",null,dn.text))};return _t.trim()?typeof fn=="function"?fn(_t,dn)?zn:null:Ja(_t,dn.text)?zn:null:zn})}function Dl(Re){var Ke,wt;const{tablePrefixCls:Tt,prefixCls:Gt,column:_t,dropdownPrefixCls:fn,columnKey:dn,filterMultiple:sn,filterMode:Tn="menu",filterSearch:Un=!1,filterState:zn,triggerFilter:ur,locale:ar,children:or,getPopupContainer:Vr}=Re,{filterDropdownOpen:Tr,onFilterDropdownOpenChange:Gr,filterResetToDefaultFilteredValue:Fr,defaultFilteredValue:qr,filterDropdownVisible:Ci,onFilterDropdownVisibleChange:wi}=_t,[ui,Ti]=he.useState(!1),Vi=!!(zn&&(!((Ke=zn.filteredKeys)===null||Ke===void 0)&&Ke.length||zn.forceFiltered)),ri=Si=>{Ti(Si),Gr==null||Gr(Si),wi==null||wi(Si)},mi=(wt=Tr!=null?Tr:Ci)!==null&&wt!==void 0?wt:ui,ii=zn==null?void 0:zn.filteredKeys,[Ar,ai]=po(ii||[]),Ii=Si=>{let{selectedKeys:Hi}=Si;ai(Hi)},Ji=(Si,Hi)=>{let{node:la,checked:na}=Hi;Ii(sn?{selectedKeys:Si}:{selectedKeys:na&&la.key?[la.key]:[]})};he.useEffect(()=>{ui&&Ii({selectedKeys:ii||[]})},[ii]);const[Ai,Xr]=he.useState([]),Ki=Si=>{Xr(Si)},[Gi,ba]=he.useState(""),ha=Si=>{const{value:Hi}=Si.target;ba(Hi)};he.useEffect(()=>{ui||ba("")},[ui]);const qa=Si=>{const Hi=Si&&Si.length?Si:null;if(Hi===null&&(!zn||!zn.filteredKeys)||(0,ke.Z)(Hi,zn==null?void 0:zn.filteredKeys,!0))return null;ur({column:_t,key:dn,filteredKeys:Hi})},Ka=()=>{ri(!1),qa(Ar())},$i=function(){let{confirm:Si,closeDropdown:Hi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Si&&qa([]),Hi&&ri(!1),ba(""),ai(Fr?(qr||[]).map(la=>String(la)):[])},mo=function(){let{closeDropdown:Si}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Si&&ri(!1),qa(Ar())},oa=Si=>{Si&&ii!==void 0&&ai(ii||[]),ri(Si),!Si&&!_t.filterDropdown&&Ka()},Ga=qe()({[`${fn}-menu-without-submenu`]:!go(_t.filters||[])}),Ha=Si=>{if(Si.target.checked){const Hi=Qa(_t==null?void 0:_t.filters).map(la=>String(la));ai(Hi)}else ai([])},Eo=Si=>{let{filters:Hi}=Si;return(Hi||[]).map((la,na)=>{const Vo=String(la.value),Mo={title:la.text,key:la.value!==void 0?Vo:na};return la.children&&(Mo.children=Eo({filters:la.children})),Mo})},Li=Si=>{var Hi;return Object.assign(Object.assign({},Si),{text:Si.title,value:Si.key,children:((Hi=Si.children)===null||Hi===void 0?void 0:Hi.map(la=>Li(la)))||[]})};let Mi;if(typeof _t.filterDropdown=="function")Mi=_t.filterDropdown({prefixCls:`${fn}-custom`,setSelectedKeys:Si=>Ii({selectedKeys:Si}),selectedKeys:Ar(),confirm:mo,clearFilters:$i,filters:_t.filters,visible:mi,close:()=>{ri(!1)}});else if(_t.filterDropdown)Mi=_t.filterDropdown;else{const Si=Ar()||[],Hi=()=>(_t.filters||[]).length===0?he.createElement(hi.Z,{image:hi.Z.PRESENTED_IMAGE_SIMPLE,description:ar.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Tn==="tree"?he.createElement(he.Fragment,null,he.createElement(Ra,{filterSearch:Un,value:Gi,onChange:ha,tablePrefixCls:Tt,locale:ar}),he.createElement("div",{className:`${Tt}-filter-dropdown-tree`},sn?he.createElement(Xa.default,{checked:Si.length===Qa(_t.filters).length,indeterminate:Si.length>0&&Si.length<Qa(_t.filters).length,className:`${Tt}-filter-dropdown-checkall`,onChange:Ha},ar.filterCheckall):null,he.createElement(Xi.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:sn,checkStrictly:!sn,className:`${fn}-menu`,onCheck:Ji,checkedKeys:Si,selectedKeys:Si,showIcon:!1,treeData:Eo({filters:_t.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Gi.trim()?na=>typeof Un=="function"?Un(Gi,Li(na)):Ja(Gi,na.title):void 0}))):he.createElement(he.Fragment,null,he.createElement(Ra,{filterSearch:Un,value:Gi,onChange:ha,tablePrefixCls:Tt,locale:ar}),he.createElement(Ni.default,{selectable:!0,multiple:sn,prefixCls:`${fn}-menu`,className:Ga,onSelect:Ii,onDeselect:Ii,selectedKeys:Si,getPopupContainer:Vr,openKeys:Ai,onOpenChange:Ki,items:hs({filters:_t.filters||[],filterSearch:Un,prefixCls:Gt,filteredKeys:Ar(),filterMultiple:sn,searchValue:Gi})})),la=()=>Fr?(0,ke.Z)((qr||[]).map(na=>String(na)),Si,!0):Si.length===0;Mi=he.createElement(he.Fragment,null,Hi(),he.createElement("div",{className:`${Gt}-dropdown-btns`},he.createElement(wo.ZP,{type:"link",size:"small",disabled:la(),onClick:()=>$i()},ar.filterReset),he.createElement(wo.ZP,{type:"primary",size:"small",onClick:Ka},ar.filterConfirm)))}_t.filterDropdown&&(Mi=he.createElement(Ei.J,{selectable:void 0},Mi));const ki=()=>he.createElement(Ya,{className:`${Gt}-dropdown`},Mi);let yi;typeof _t.filterIcon=="function"?yi=_t.filterIcon(Vi):_t.filterIcon?yi=_t.filterIcon:yi=he.createElement(Fa,null);const{direction:pa}=he.useContext(Va.E_);return he.createElement("div",{className:`${Gt}-column`},he.createElement("span",{className:`${Tt}-column-title`},or),he.createElement(ya.Z,{dropdownRender:ki,trigger:["click"],open:mi,onOpenChange:oa,getPopupContainer:Vr,placement:pa==="rtl"?"bottomLeft":"bottomRight"},he.createElement("span",{role:"button",tabIndex:-1,className:qe()(`${Gt}-trigger`,{active:Vi}),onClick:Si=>{Si.stopPropagation()}},yi)))}var Al=Dl;function ol(Re,Ke,wt){let Tt=[];return(Re||[]).forEach((Gt,_t)=>{var fn;const dn=Zi(_t,wt);if(Gt.filters||"filterDropdown"in Gt||"onFilter"in Gt)if("filteredValue"in Gt){let sn=Gt.filteredValue;"filterDropdown"in Gt||(sn=(fn=sn==null?void 0:sn.map(String))!==null&&fn!==void 0?fn:sn),Tt.push({column:Gt,key:Fi(Gt,dn),filteredKeys:sn,forceFiltered:Gt.filtered})}else Tt.push({column:Gt,key:Fi(Gt,dn),filteredKeys:Ke&&Gt.defaultFilteredValue?Gt.defaultFilteredValue:void 0,forceFiltered:Gt.filtered});"children"in Gt&&(Tt=[].concat((0,qn.Z)(Tt),(0,qn.Z)(ol(Gt.children,Ke,dn))))}),Tt}function Ds(Re,Ke,wt,Tt,Gt,_t,fn,dn){return wt.map((sn,Tn)=>{const Un=Zi(Tn,dn),{filterMultiple:zn=!0,filterMode:ur,filterSearch:ar}=sn;let or=sn;if(or.filters||or.filterDropdown){const Vr=Fi(or,Un),Tr=Tt.find(Gr=>{let{key:Fr}=Gr;return Vr===Fr});or=Object.assign(Object.assign({},or),{title:Gr=>he.createElement(Al,{tablePrefixCls:Re,prefixCls:`${Re}-filter`,dropdownPrefixCls:Ke,column:or,columnKey:Vr,filterState:Tr,filterMultiple:zn,filterMode:ur,filterSearch:ar,triggerFilter:_t,locale:Gt,getPopupContainer:fn},Yi(sn.title,Gr))})}return"children"in or&&(or=Object.assign(Object.assign({},or),{children:Ds(Re,Ke,or.children,Tt,Gt,_t,fn,Un)})),or})}function Ll(Re){const Ke={};return Re.forEach(wt=>{let{key:Tt,filteredKeys:Gt,column:_t}=wt;const{filters:fn,filterDropdown:dn}=_t;if(dn)Ke[Tt]=Gt||null;else if(Array.isArray(Gt)){const sn=Qa(fn);Ke[Tt]=sn.filter(Tn=>Gt.includes(String(Tn)))}else Ke[Tt]=null}),Ke}function Oo(Re,Ke){return Ke.reduce((wt,Tt)=>{const{column:{onFilter:Gt,filters:_t},filteredKeys:fn}=Tt;return Gt&&fn&&fn.length?wt.filter(dn=>fn.some(sn=>{const Tn=Qa(_t),Un=Tn.findIndex(ur=>String(ur)===String(sn)),zn=Un!==-1?Tn[Un]:sn;return Gt(zn,dn)})):wt},Re)}const xo=Re=>Re.flatMap(Ke=>"children"in Ke?[Ke].concat((0,qn.Z)(xo(Ke.children||[]))):[Ke]);function Hl(Re){let{prefixCls:Ke,dropdownPrefixCls:wt,mergedColumns:Tt,onFilterChange:Gt,getPopupContainer:_t,locale:fn}=Re;const dn=he.useMemo(()=>xo(Tt||[]),[Tt]),[sn,Tn]=he.useState(()=>ol(dn,!0)),Un=he.useMemo(()=>{const or=ol(dn,!1);if(or.length===0)return or;let Vr=!0,Tr=!0;if(or.forEach(Gr=>{let{filteredKeys:Fr}=Gr;Fr!==void 0?Vr=!1:Tr=!1}),Vr){const Gr=(dn||[]).map((Fr,qr)=>Fi(Fr,Zi(qr)));return sn.filter(Fr=>{let{key:qr}=Fr;return Gr.includes(qr)}).map(Fr=>{const qr=dn[Gr.findIndex(Ci=>Ci===Fr.key)];return Object.assign(Object.assign({},Fr),{column:Object.assign(Object.assign({},Fr.column),qr),forceFiltered:qr.filtered})})}return or},[dn,sn]),zn=he.useMemo(()=>Ll(Un),[Un]),ur=or=>{const Vr=Un.filter(Tr=>{let{key:Gr}=Tr;return Gr!==or.key});Vr.push(or),Tn(Vr),Gt(Ll(Vr),Vr)};return[or=>Ds(Ke,wt,or,Un,fn,ur,_t),Un,zn]}var Ul=Hl;function Xl(Re,Ke,wt){const Tt=he.useRef({});function Gt(_t){if(!Tt.current||Tt.current.data!==Re||Tt.current.childrenColumnName!==Ke||Tt.current.getRowKey!==wt){let dn=function(sn){sn.forEach((Tn,Un)=>{const zn=wt(Tn,Un);fn.set(zn,Tn),Tn&&typeof Tn=="object"&&Ke in Tn&&dn(Tn[Ke]||[])})};const fn=new Map;dn(Re),Tt.current={data:Re,childrenColumnName:Ke,kvMap:fn,getRowKey:wt}}return Tt.current.kvMap.get(_t)}return[Gt]}var As=oe(50371),as=function(Re,Ke){var wt={};for(var Tt in Re)Object.prototype.hasOwnProperty.call(Re,Tt)&&Ke.indexOf(Tt)<0&&(wt[Tt]=Re[Tt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Tt=Object.getOwnPropertySymbols(Re);Gt<Tt.length;Gt++)Ke.indexOf(Tt[Gt])<0&&Object.prototype.propertyIsEnumerable.call(Re,Tt[Gt])&&(wt[Tt[Gt]]=Re[Tt[Gt]]);return wt};const ll=10;function qo(Re,Ke){const wt={current:Re.current,pageSize:Re.pageSize};return Object.keys(Ke&&typeof Ke=="object"?Ke:{}).forEach(Gt=>{const _t=Re[Gt];typeof _t!="function"&&(wt[Gt]=_t)}),wt}function Pa(Re,Ke,wt){const Tt=wt&&typeof wt=="object"?wt:{},{total:Gt=0}=Tt,_t=as(Tt,["total"]),[fn,dn]=(0,he.useState)(()=>({current:"defaultCurrent"in _t?_t.defaultCurrent:1,pageSize:"defaultPageSize"in _t?_t.defaultPageSize:ll})),sn=(0,As.Z)(fn,_t,{total:Gt>0?Gt:Re}),Tn=Math.ceil((Gt||Re)/sn.pageSize);sn.current>Tn&&(sn.current=Tn||1);const Un=(ur,ar)=>{dn({current:ur!=null?ur:1,pageSize:ar||sn.pageSize})},zn=(ur,ar)=>{var or;wt&&((or=wt.onChange)===null||or===void 0||or.call(wt,ur,ar)),Un(ur,ar),Ke(ur,ar||(sn==null?void 0:sn.pageSize))};return wt===!1?[{},()=>{}]:[Object.assign(Object.assign({},sn),{onChange:zn}),Un]}var Yl=Pa,Ls=oe(84105),Zl=oe(35654),ua=oe(90782),ta=oe(71430),za=oe(18929);const lo={},ja="SELECT_ALL",Fo="SELECT_INVERT",Zo="SELECT_NONE",fl=[],Wo=(Re,Ke)=>{let wt=[];return(Ke||[]).forEach(Tt=>{wt.push(Tt),Tt&&typeof Tt=="object"&&Re in Tt&&(wt=[].concat((0,qn.Z)(wt),(0,qn.Z)(Wo(Re,Tt[Re]))))}),wt};var Bl=(Re,Ke)=>{const{preserveSelectedRowKeys:wt,selectedRowKeys:Tt,defaultSelectedRowKeys:Gt,getCheckboxProps:_t,onChange:fn,onSelect:dn,onSelectAll:sn,onSelectInvert:Tn,onSelectNone:Un,onSelectMultiple:zn,columnWidth:ur,type:ar,selections:or,fixed:Vr,renderCell:Tr,hideSelectAll:Gr,checkStrictly:Fr=!0}=Ke||{},{prefixCls:qr,data:Ci,pageData:wi,getRecordByKey:ui,getRowKey:Ti,expandType:Vi,childrenColumnName:ri,locale:mi,getPopupContainer:ii}=Re,[Ar,ai]=(0,za.Z)(Tt||Gt||fl,{value:Tt}),Ii=he.useRef(new Map),Ji=(0,he.useCallback)(Li=>{if(wt){const Mi=new Map;Li.forEach(ki=>{let yi=ui(ki);!yi&&Ii.current.has(ki)&&(yi=Ii.current.get(ki)),Mi.set(ki,yi)}),Ii.current=Mi}},[ui,wt]);he.useEffect(()=>{Ji(Ar)},[Ar]);const{keyEntities:Ai}=(0,he.useMemo)(()=>{if(Fr)return{keyEntities:null};let Li=Ci;if(wt){const Mi=new Set(Ci.map((yi,pa)=>Ti(yi,pa))),ki=Array.from(Ii.current).reduce((yi,pa)=>{let[Si,Hi]=pa;return Mi.has(Si)?yi:yi.concat(Hi)},[]);Li=[].concat((0,qn.Z)(Li),(0,qn.Z)(ki))}return(0,ta.I8)(Li,{externalGetKey:Ti,childrenPropName:ri})},[Ci,Ti,Fr,ri,wt]),Xr=(0,he.useMemo)(()=>Wo(ri,wi),[ri,wi]),Ki=(0,he.useMemo)(()=>{const Li=new Map;return Xr.forEach((Mi,ki)=>{const yi=Ti(Mi,ki),pa=(_t?_t(Mi):null)||{};Li.set(yi,pa)}),Li},[Xr,Ti,_t]),Gi=(0,he.useCallback)(Li=>{var Mi;return!!(!((Mi=Ki.get(Ti(Li)))===null||Mi===void 0)&&Mi.disabled)},[Ki,Ti]),[ba,ha]=(0,he.useMemo)(()=>{if(Fr)return[Ar||[],[]];const{checkedKeys:Li,halfCheckedKeys:Mi}=(0,ua.S)(Ar,!0,Ai,Gi);return[Li||[],Mi]},[Ar,Fr,Ai,Gi]),qa=(0,he.useMemo)(()=>{const Li=ar==="radio"?ba.slice(0,1):ba;return new Set(Li)},[ba,ar]),Ka=(0,he.useMemo)(()=>ar==="radio"?new Set:new Set(ha),[ha,ar]),[$i,mo]=(0,he.useState)(null);he.useEffect(()=>{Ke||ai(fl)},[!!Ke]);const oa=(0,he.useCallback)((Li,Mi)=>{let ki,yi;Ji(Li),wt?(ki=Li,yi=Li.map(pa=>Ii.current.get(pa))):(ki=[],yi=[],Li.forEach(pa=>{const Si=ui(pa);Si!==void 0&&(ki.push(pa),yi.push(Si))})),ai(ki),fn==null||fn(ki,yi,{type:Mi})},[ai,ui,fn,wt]),Ga=(0,he.useCallback)((Li,Mi,ki,yi)=>{if(dn){const pa=ki.map(Si=>ui(Si));dn(ui(Li),Mi,pa,yi)}oa(ki,"single")},[dn,ui,oa]),Ha=(0,he.useMemo)(()=>!or||Gr?null:(or===!0?[ja,Fo,Zo]:or).map(Mi=>Mi===ja?{key:"all",text:mi.selectionAll,onSelect(){oa(Ci.map((ki,yi)=>Ti(ki,yi)).filter(ki=>{const yi=Ki.get(ki);return!(yi!=null&&yi.disabled)||qa.has(ki)}),"all")}}:Mi===Fo?{key:"invert",text:mi.selectInvert,onSelect(){const ki=new Set(qa);wi.forEach((pa,Si)=>{const Hi=Ti(pa,Si),la=Ki.get(Hi);la!=null&&la.disabled||(ki.has(Hi)?ki.delete(Hi):ki.add(Hi))});const yi=Array.from(ki);Tn&&Tn(yi),oa(yi,"invert")}}:Mi===Zo?{key:"none",text:mi.selectNone,onSelect(){Un==null||Un(),oa(Array.from(qa).filter(ki=>{const yi=Ki.get(ki);return yi==null?void 0:yi.disabled}),"none")}}:Mi).map(Mi=>Object.assign(Object.assign({},Mi),{onSelect:function(){for(var ki,yi,pa=arguments.length,Si=new Array(pa),Hi=0;Hi<pa;Hi++)Si[Hi]=arguments[Hi];(yi=Mi.onSelect)===null||yi===void 0||(ki=yi).call.apply(ki,[Mi].concat(Si)),mo(null)}})),[or,qa,wi,Ti,Tn,oa]);return[(0,he.useCallback)(Li=>{var Mi;if(!Ke)return Li.filter(fa=>fa!==lo);let ki=(0,qn.Z)(Li);const yi=new Set(qa),pa=Xr.map(Ti).filter(fa=>!Ki.get(fa).disabled),Si=pa.every(fa=>yi.has(fa)),Hi=pa.some(fa=>yi.has(fa)),la=()=>{const fa=[];Si?pa.forEach(xa=>{yi.delete(xa),fa.push(xa)}):pa.forEach(xa=>{yi.has(xa)||(yi.add(xa),fa.push(xa))});const Mr=Array.from(yi);sn==null||sn(!Si,Mr.map(xa=>ui(xa)),fa.map(xa=>ui(xa))),oa(Mr,"all"),mo(null)};let na;if(ar!=="radio"){let fa;if(Ha){const Ri={getPopupContainer:ii,items:Ha.map((ka,zo)=>{const{key:Pl,text:ss,onSelect:pl}=ka;return{key:Pl!=null?Pl:zo,onClick:()=>{pl==null||pl(pa)},label:ss}})};fa=he.createElement("div",{className:`${qr}-selection-extra`},he.createElement(ya.Z,{menu:Ri,getPopupContainer:ii},he.createElement("span",null,he.createElement(Ls.Z,null))))}const Mr=Xr.map((Ri,ka)=>{const zo=Ti(Ri,ka),Pl=Ki.get(zo)||{};return Object.assign({checked:yi.has(zo)},Pl)}).filter(Ri=>{let{disabled:ka}=Ri;return ka}),xa=!!Mr.length&&Mr.length===Xr.length,Co=xa&&Mr.every(Ri=>{let{checked:ka}=Ri;return ka}),ko=xa&&Mr.some(Ri=>{let{checked:ka}=Ri;return ka});na=!Gr&&he.createElement("div",{className:`${qr}-selection`},he.createElement(Xa.default,{checked:xa?Co:!!Xr.length&&Si,indeterminate:xa?!Co&&ko:!Si&&Hi,onChange:la,disabled:Xr.length===0||xa,"aria-label":fa?"Custom selection":"Select all",skipGroup:!0}),fa)}let Vo;ar==="radio"?Vo=(fa,Mr,xa)=>{const Co=Ti(Mr,xa),ko=yi.has(Co);return{node:he.createElement(fi.ZP,Object.assign({},Ki.get(Co),{checked:ko,onClick:Ri=>Ri.stopPropagation(),onChange:Ri=>{yi.has(Co)||Ga(Co,!0,[Co],Ri.nativeEvent)}})),checked:ko}}:Vo=(fa,Mr,xa)=>{var Co;const ko=Ti(Mr,xa),Ri=yi.has(ko),ka=Ka.has(ko),zo=Ki.get(ko);let Pl;return Vi==="nest"?Pl=ka:Pl=(Co=zo==null?void 0:zo.indeterminate)!==null&&Co!==void 0?Co:ka,{node:he.createElement(Xa.default,Object.assign({},zo,{indeterminate:Pl,checked:Ri,skipGroup:!0,onClick:ss=>ss.stopPropagation(),onChange:ss=>{let{nativeEvent:pl}=ss;const{shiftKey:Go}=pl;let es=-1,Uo=-1;if(Go&&Fr){const ml=new Set([$i,ko]);pa.some((tl,eo)=>{if(ml.has(tl))if(es===-1)es=eo;else return Uo=eo,!0;return!1})}if(Uo!==-1&&es!==Uo&&Fr){const ml=pa.slice(es,Uo+1),tl=[];Ri?ml.forEach(to=>{yi.has(to)&&(tl.push(to),yi.delete(to))}):ml.forEach(to=>{yi.has(to)||(tl.push(to),yi.add(to))});const eo=Array.from(yi);zn==null||zn(!Ri,eo.map(to=>ui(to)),tl.map(to=>ui(to))),oa(eo,"multiple")}else{const ml=ba;if(Fr){const tl=Ri?(0,Zl._5)(ml,ko):(0,Zl.L0)(ml,ko);Ga(ko,!Ri,tl,pl)}else{const tl=(0,ua.S)([].concat((0,qn.Z)(ml),[ko]),!0,Ai,Gi),{checkedKeys:eo,halfCheckedKeys:to}=tl;let ul=eo;if(Ri){const ys=new Set(eo);ys.delete(ko),ul=(0,ua.S)(Array.from(ys),{checked:!1,halfCheckedKeys:to},Ai,Gi).checkedKeys}Ga(ko,!Ri,ul,pl)}}mo(Ri?null:ko)}})),checked:Ri}};const Mo=(fa,Mr,xa)=>{const{node:Co,checked:ko}=Vo(fa,Mr,xa);return Tr?Tr(ko,Mr,xa,Co):Co};if(!ki.includes(lo))if(ki.findIndex(fa=>{var Mr;return((Mr=fa[Yn])===null||Mr===void 0?void 0:Mr.columnType)==="EXPAND_COLUMN"})===0){const[fa,...Mr]=ki;ki=[fa,lo].concat((0,qn.Z)(Mr))}else ki=[lo].concat((0,qn.Z)(ki));const Rl=ki.indexOf(lo);ki=ki.filter((fa,Mr)=>fa!==lo||Mr===Rl);const vo=ki[Rl-1],$l=ki[Rl+1];let yo=Vr;yo===void 0&&(($l==null?void 0:$l.fixed)!==void 0?yo=$l.fixed:(vo==null?void 0:vo.fixed)!==void 0&&(yo=vo.fixed)),yo&&vo&&((Mi=vo[Yn])===null||Mi===void 0?void 0:Mi.columnType)==="EXPAND_COLUMN"&&vo.fixed===void 0&&(vo.fixed=yo);const Ro=qe()(`${qr}-selection-col`,{[`${qr}-selection-col-with-dropdown`]:or&&ar==="checkbox"}),gs={fixed:yo,width:ur,className:`${qr}-selection-column`,title:Ke.columnTitle||na,render:Mo,onCell:Ke.onCell,[Yn]:{className:Ro}};return ki.map(fa=>fa===lo?gs:fa)},[Ti,Xr,Ke,ba,qa,Ka,ur,Ha,Vi,$i,Ki,zn,Ga,Gi]),qa]},$o=oe(89489),vu=oe(59477),ps=oe(6848);const ms="ascend",nu="descend";function js(Re){return typeof Re.sorter=="object"&&typeof Re.sorter.multiple=="number"?Re.sorter.multiple:!1}function Bs(Re){return typeof Re=="function"?Re:Re&&typeof Re=="object"&&Re.compare?Re.compare:!1}function Yu(Re,Ke){return Ke?Re[Re.indexOf(Ke)+1]:Re[0]}function os(Re,Ke,wt){let Tt=[];function Gt(_t,fn){Tt.push({column:_t,key:Fi(_t,fn),multiplePriority:js(_t),sortOrder:_t.sortOrder})}return(Re||[]).forEach((_t,fn)=>{const dn=Zi(fn,wt);_t.children?("sortOrder"in _t&&Gt(_t,dn),Tt=[].concat((0,qn.Z)(Tt),(0,qn.Z)(os(_t.children,Ke,dn)))):_t.sorter&&("sortOrder"in _t?Gt(_t,dn):Ke&&_t.defaultSortOrder&&Tt.push({column:_t,key:Fi(_t,dn),multiplePriority:js(_t),sortOrder:_t.defaultSortOrder}))}),Tt}function ru(Re,Ke,wt,Tt,Gt,_t,fn,dn){return(Ke||[]).map((sn,Tn)=>{const Un=Zi(Tn,dn);let zn=sn;if(zn.sorter){const ur=zn.sortDirections||Gt,ar=zn.showSorterTooltip===void 0?fn:zn.showSorterTooltip,or=Fi(zn,Un),Vr=wt.find(Vi=>{let{key:ri}=Vi;return ri===or}),Tr=Vr?Vr.sortOrder:null,Gr=Yu(ur,Tr);let Fr;if(sn.sortIcon)Fr=sn.sortIcon({sortOrder:Tr});else{const Vi=ur.includes(ms)&&he.createElement(vu.Z,{className:qe()(`${Re}-column-sorter-up`,{active:Tr===ms})}),ri=ur.includes(nu)&&he.createElement($o.Z,{className:qe()(`${Re}-column-sorter-down`,{active:Tr===nu})});Fr=he.createElement("span",{className:qe()(`${Re}-column-sorter`,{[`${Re}-column-sorter-full`]:!!(Vi&&ri)})},he.createElement("span",{className:`${Re}-column-sorter-inner`,"aria-hidden":"true"},Vi,ri))}const{cancelSort:qr,triggerAsc:Ci,triggerDesc:wi}=_t||{};let ui=qr;Gr===nu?ui=wi:Gr===ms&&(ui=Ci);const Ti=typeof ar=="object"?ar:{title:ui};zn=Object.assign(Object.assign({},zn),{className:qe()(zn.className,{[`${Re}-column-sort`]:Tr}),title:Vi=>{const ri=he.createElement("div",{className:`${Re}-column-sorters`},he.createElement("span",{className:`${Re}-column-title`},Yi(sn.title,Vi)),Fr);return ar?he.createElement(ps.Z,Object.assign({},Ti),ri):ri},onHeaderCell:Vi=>{const ri=sn.onHeaderCell&&sn.onHeaderCell(Vi)||{},mi=ri.onClick,ii=ri.onKeyDown;ri.onClick=Ii=>{Tt({column:sn,key:or,sortOrder:Gr,multiplePriority:js(sn)}),mi==null||mi(Ii)},ri.onKeyDown=Ii=>{Ii.keyCode===ro.Z.ENTER&&(Tt({column:sn,key:or,sortOrder:Gr,multiplePriority:js(sn)}),ii==null||ii(Ii))};const Ar=Wi(sn.title,{}),ai=Ar==null?void 0:Ar.toString();return Tr?ri["aria-sort"]=Tr==="ascend"?"ascending":"descending":ri["aria-label"]=ai||"",ri.className=qe()(ri.className,`${Re}-column-has-sorters`),ri.tabIndex=0,sn.ellipsis&&(ri.title=(Ar!=null?Ar:"").toString()),ri}})}return"children"in zn&&(zn=Object.assign(Object.assign({},zn),{children:ru(Re,zn.children,wt,Tt,Gt,_t,fn,Un)})),zn})}function ls(Re){const{column:Ke,sortOrder:wt}=Re;return{column:Ke,order:wt,field:Ke.dataIndex,columnKey:Ke.key}}function vs(Re){const Ke=Re.filter(wt=>{let{sortOrder:Tt}=wt;return Tt}).map(ls);return Ke.length===0&&Re.length?Object.assign(Object.assign({},ls(Re[Re.length-1])),{column:void 0}):Ke.length<=1?Ke[0]||{}:Ke}function Sa(Re,Ke,wt){const Tt=Ke.slice().sort((fn,dn)=>dn.multiplePriority-fn.multiplePriority),Gt=Re.slice(),_t=Tt.filter(fn=>{let{column:{sorter:dn},sortOrder:sn}=fn;return Bs(dn)&&sn});return _t.length?Gt.sort((fn,dn)=>{for(let sn=0;sn<_t.length;sn+=1){const Tn=_t[sn],{column:{sorter:Un},sortOrder:zn}=Tn,ur=Bs(Un);if(ur&&zn){const ar=ur(fn,dn,zn);if(ar!==0)return zn===ms?ar:-ar}}return 0}).map(fn=>{const dn=fn[wt];return dn?Object.assign(Object.assign({},fn),{[wt]:Sa(dn,Ke,wt)}):fn}):Gt}function La(Re){let{prefixCls:Ke,mergedColumns:wt,onSorterChange:Tt,sortDirections:Gt,tableLocale:_t,showSorterTooltip:fn}=Re;const[dn,sn]=he.useState(os(wt,!0)),Tn=he.useMemo(()=>{let or=!0;const Vr=os(wt,!1);if(!Vr.length)return dn;const Tr=[];function Gr(qr){or?Tr.push(qr):Tr.push(Object.assign(Object.assign({},qr),{sortOrder:null}))}let Fr=null;return Vr.forEach(qr=>{Fr===null?(Gr(qr),qr.sortOrder&&(qr.multiplePriority===!1?or=!1:Fr=!0)):(Fr&&qr.multiplePriority!==!1||(or=!1),Gr(qr))}),Tr},[wt,dn]),Un=he.useMemo(()=>{const or=Tn.map(Vr=>{let{column:Tr,sortOrder:Gr}=Vr;return{column:Tr,order:Gr}});return{sortColumns:or,sortColumn:or[0]&&or[0].column,sortOrder:or[0]&&or[0].order}},[Tn]);function zn(or){let Vr;or.multiplePriority===!1||!Tn.length||Tn[0].multiplePriority===!1?Vr=[or]:Vr=[].concat((0,qn.Z)(Tn.filter(Tr=>{let{key:Gr}=Tr;return Gr!==or.key})),[or]),sn(Vr),Tt(vs(Vr),Vr)}return[or=>ru(Ke,or,Tn,zn,Gt,_t,fn),Tn,Un,()=>vs(Tn)]}function _a(Re,Ke){return Re.map(wt=>{const Tt=Object.assign({},wt);return Tt.title=Yi(wt.title,Ke),"children"in Tt&&(Tt.children=_a(Tt.children,Ke)),Tt})}function hl(Re){return[he.useCallback(wt=>_a(wt,Re),[Re])]}var jo=Pr((Re,Ke)=>{const{_renderTimes:wt}=Re,{_renderTimes:Tt}=Ke;return wt!==Tt}),Wl=ti((Re,Ke)=>{const{_renderTimes:wt}=Re,{_renderTimes:Tt}=Ke;return wt!==Tt}),sl=oe(64993),No=oe(17313),Ql=oe(83116),Jl=oe(37613),Ps=Re=>{const{componentCls:Ke}=Re,wt=`${Re.lineWidth}px ${Re.lineType} ${Re.tableBorderColor}`,Tt=(Gt,_t,fn)=>({[`&${Ke}-${Gt}`]:{[`> ${Ke}-container`]:{[`> ${Ke}-content, > ${Ke}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ke}-expanded-row-fixed`]:{margin:`-${_t}px -${fn+Re.lineWidth}px`}}}}}});return{[`${Ke}-wrapper`]:{[`${Ke}${Ke}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ke}-title`]:{border:wt,borderBottom:0},[`> ${Ke}-container`]:{borderInlineStart:wt,borderTop:wt,[`
> ${Ke}-content,
> ${Ke}-header,
> ${Ke}-body,
> ${Ke}-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:wt},"> thead":{"> tr:not(:last-child) > th":{borderBottom:wt},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ke}-cell-fix-right-first::after`]:{borderInlineEnd:wt}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ke}-expanded-row-fixed`]:{margin:`-${Re.tablePaddingVertical}px -${Re.tablePaddingHorizontal+Re.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Re.lineWidth,bottom:0,borderInlineEnd:wt,content:'""'}}}}}},[`&${Ke}-scroll-horizontal`]:{[`> ${Ke}-container > ${Ke}-body`]:{"> table > tbody":{[`
> tr${Ke}-expanded-row,
> tr${Ke}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Tt("middle",Re.tablePaddingVerticalMiddle,Re.tablePaddingHorizontalMiddle)),Tt("small",Re.tablePaddingVerticalSmall,Re.tablePaddingHorizontalSmall)),{[`> ${Ke}-footer`]:{border:wt,borderTop:0}}),[`${Ke}-cell`]:{[`${Ke}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Re.lineWidth}px 0 ${Re.lineWidth}px ${Re.tableHeaderBg}`}},[`${Ke}-bordered ${Ke}-cell-scrollbar`]:{borderInlineEnd:wt}}}},gu=Re=>{const{componentCls:Ke}=Re;return{[`${Ke}-wrapper`]:{[`${Ke}-cell-ellipsis`]:Object.assign(Object.assign({},No.vS),{wordBreak:"keep-all",[`
&${Ke}-cell-fix-left-last,
&${Ke}-cell-fix-right-first
`]:{overflow:"visible",[`${Ke}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ke}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},bc=Re=>{const{componentCls:Ke}=Re;return{[`${Ke}-wrapper`]:{[`${Ke}-tbody > tr${Ke}-placeholder`]:{textAlign:"center",color:Re.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Re.colorBgContainer}}}}},_u=oe(15969),Ju=Re=>{const{componentCls:Ke,antCls:wt,controlInteractiveSize:Tt,motionDurationSlow:Gt,lineWidth:_t,paddingXS:fn,lineType:dn,tableBorderColor:sn,tableExpandIconBg:Tn,tableExpandColumnWidth:Un,borderRadius:zn,fontSize:ur,fontSizeSM:ar,lineHeight:or,tablePaddingVertical:Vr,tablePaddingHorizontal:Tr,tableExpandedRowBg:Gr,paddingXXS:Fr}=Re,qr=Tt/2-_t,Ci=qr*2+_t*3,wi=`${_t}px ${dn} ${sn}`,ui=Fr-_t;return{[`${Ke}-wrapper`]:{[`${Ke}-expand-icon-col`]:{width:Un},[`${Ke}-row-expand-icon-cell`]:{textAlign:"center",[`${Ke}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ke}-row-indent`]:{height:1,float:"left"},[`${Ke}-row-expand-icon`]:Object.assign(Object.assign({},(0,_u.N)(Re)),{position:"relative",float:"left",boxSizing:"border-box",width:Ci,height:Ci,padding:0,color:"inherit",lineHeight:`${Ci}px`,background:Tn,border:wi,borderRadius:zn,transform:`scale(${Tt/Ci})`,transition:`all ${Gt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Gt} ease-out`,content:'""'},"&::before":{top:qr,insetInlineEnd:ui,insetInlineStart:ui,height:_t},"&::after":{top:ui,bottom:ui,insetInlineStart:qr,width:_t,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"}}),[`${Ke}-row-indent + ${Ke}-row-expand-icon`]:{marginTop:(ur*or-_t*3)/2-Math.ceil((ar*1.4-_t*3)/2),marginInlineEnd:fn},[`tr${Ke}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Gr}},[`${wt}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ke}-expanded-row-fixed`]:{position:"relative",margin:`-${Vr}px -${Tr}px`,padding:`${Vr}px ${Tr}px`}}}},xc=Re=>{const{componentCls:Ke,antCls:wt,iconCls:Tt,tableFilterDropdownWidth:Gt,tableFilterDropdownSearchWidth:_t,paddingXXS:fn,paddingXS:dn,colorText:sn,lineWidth:Tn,lineType:Un,tableBorderColor:zn,tableHeaderIconColor:ur,fontSizeSM:ar,tablePaddingHorizontal:or,borderRadius:Vr,motionDurationSlow:Tr,colorTextDescription:Gr,colorPrimary:Fr,tableHeaderFilterActiveBg:qr,colorTextDisabled:Ci,tableFilterDropdownBg:wi,tableFilterDropdownHeight:ui,controlItemBgHover:Ti,controlItemBgActive:Vi,boxShadowSecondary:ri,filterDropdownMenuBg:mi}=Re,ii=`${wt}-dropdown`,Ar=`${Ke}-filter-dropdown`,ai=`${wt}-tree`,Ii=`${Tn}px ${Un} ${zn}`;return[{[`${Ke}-wrapper`]:{[`${Ke}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ke}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-fn,marginInline:`${fn}px ${-or/2}px`,padding:`0 ${fn}px`,color:ur,fontSize:ar,borderRadius:Vr,cursor:"pointer",transition:`all ${Tr}`,"&:hover":{color:Gr,background:qr},"&.active":{color:Fr}}}},{[`${wt}-dropdown`]:{[Ar]:Object.assign(Object.assign({},(0,No.Wf)(Re)),{minWidth:Gt,backgroundColor:wi,borderRadius:Vr,boxShadow:ri,overflow:"hidden",[`${ii}-menu`]:{maxHeight:ui,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:mi,"&:empty::after":{display:"block",padding:`${dn}px 0`,color:Ci,fontSize:ar,textAlign:"center",content:'"Not Found"'}},[`${Ar}-tree`]:{paddingBlock:`${dn}px 0`,paddingInline:dn,[ai]:{padding:0},[`${ai}-treenode ${ai}-node-content-wrapper:hover`]:{backgroundColor:Ti},[`${ai}-treenode-checkbox-checked ${ai}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Vi}}},[`${Ar}-search`]:{padding:dn,borderBottom:Ii,"&-input":{input:{minWidth:_t},[Tt]:{color:Ci}}},[`${Ar}-checkall`]:{width:"100%",marginBottom:fn,marginInlineStart:fn},[`${Ar}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${dn-Tn}px ${dn}px`,overflow:"hidden",borderTop:Ii}})}},{[`${wt}-dropdown ${Ar}, ${Ar}-submenu`]:{[`${wt}-checkbox-wrapper + span`]:{paddingInlineStart:dn,color:sn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},iu=Re=>{const{componentCls:Ke,lineWidth:wt,colorSplit:Tt,motionDurationSlow:Gt,zIndexTableFixed:_t,tableBg:fn,zIndexTableSticky:dn}=Re,sn=Tt;return{[`${Ke}-wrapper`]:{[`
${Ke}-cell-fix-left,
${Ke}-cell-fix-right
`]:{position:"sticky !important",zIndex:_t,background:fn},[`
${Ke}-cell-fix-left-first::after,
${Ke}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-wt,width:30,transform:"translateX(100%)",transition:`box-shadow ${Gt}`,content:'""',pointerEvents:"none"},[`${Ke}-cell-fix-left-all::after`]:{display:"none"},[`
${Ke}-cell-fix-right-first::after,
${Ke}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-wt,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Gt}`,content:'""',pointerEvents:"none"},[`${Ke}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:dn+1,width:30,transition:`box-shadow ${Gt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ke}-ping-left`]:{[`&:not(${Ke}-has-fix-left) ${Ke}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${sn}`}},[`
${Ke}-cell-fix-left-first::after,
${Ke}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${sn}`},[`${Ke}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ke}-ping-right`]:{[`&:not(${Ke}-has-fix-right) ${Ke}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${sn}`}},[`
${Ke}-cell-fix-right-first::after,
${Ke}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${sn}`}}}}},Sc=Re=>{const{componentCls:Ke,antCls:wt}=Re;return{[`${Ke}-wrapper`]:{[`${Ke}-pagination${wt}-pagination`]:{margin:`${Re.margin}px 0`},[`${Ke}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Re.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Is=Re=>{const{componentCls:Ke,tableRadius:wt}=Re;return{[`${Ke}-wrapper`]:{[Ke]:{[`${Ke}-title, ${Ke}-header`]:{borderRadius:`${wt}px ${wt}px 0 0`},[`${Ke}-title + ${Ke}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ke}-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:wt,borderStartEndRadius:wt,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:wt},"> *:last-child":{borderStartEndRadius:wt}}},"&-footer":{borderRadius:`0 0 ${wt}px ${wt}px`}}}}},Uc=Re=>{const{componentCls:Ke}=Re;return{[`${Ke}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ke}-pagination-left`]:{justifyContent:"flex-end"},[`${Ke}-pagination-right`]:{justifyContent:"flex-start"},[`${Ke}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ke}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ke}-row-indent`]:{float:"right"}}}}},tc=Re=>{const{componentCls:Ke,antCls:wt,iconCls:Tt,fontSizeIcon:Gt,padding:_t,paddingXS:fn,tableHeaderIconColor:dn,tableHeaderIconColorHover:sn,tableSelectionColumnWidth:Tn}=Re;return{[`${Ke}-wrapper`]:{[`${Ke}-selection-col`]:{width:Tn,[`&${Ke}-selection-col-with-dropdown`]:{width:Tn+Gt+_t/4}},[`${Ke}-bordered ${Ke}-selection-col`]:{width:Tn+fn*2,[`&${Ke}-selection-col-with-dropdown`]:{width:Tn+Gt+_t/4+fn*2}},[`
table tr th${Ke}-selection-column,
table tr td${Ke}-selection-column
`]:{paddingInlineEnd:Re.paddingXS,paddingInlineStart:Re.paddingXS,textAlign:"center",[`${wt}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ke}-selection-column${Ke}-cell-fix-left`]:{zIndex:Re.zIndexTableFixed+1},[`table tr th${Ke}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ke}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ke}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Re.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Re.tablePaddingHorizontal/4}px`,[Tt]:{color:dn,fontSize:Gt,verticalAlign:"baseline","&:hover":{color:sn}}}}}},ou=Re=>{const{componentCls:Ke}=Re,wt=(Tt,Gt,_t,fn)=>({[`${Ke}${Ke}-${Tt}`]:{fontSize:fn,[`
${Ke}-title,
${Ke}-footer,
${Ke}-cell,
${Ke}-thead > tr > th,
${Ke}-tbody > tr > th,
${Ke}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${Gt}px ${_t}px`},[`${Ke}-filter-trigger`]:{marginInlineEnd:`-${_t/2}px`},[`${Ke}-expanded-row-fixed`]:{margin:`-${Gt}px -${_t}px`},[`${Ke}-tbody`]:{[`${Ke}-wrapper:only-child ${Ke}`]:{marginBlock:`-${Gt}px`,marginInline:`${Re.tableExpandColumnWidth-_t}px -${_t}px`}},[`${Ke}-selection-column`]:{paddingInlineStart:`${_t/4}px`}}});return{[`${Ke}-wrapper`]:Object.assign(Object.assign({},wt("middle",Re.tablePaddingVerticalMiddle,Re.tablePaddingHorizontalMiddle,Re.tableFontSizeMiddle)),wt("small",Re.tablePaddingVerticalSmall,Re.tablePaddingHorizontalSmall,Re.tableFontSizeSmall))}},Hu=Re=>{const{componentCls:Ke,marginXXS:wt,fontSizeIcon:Tt,tableHeaderIconColor:Gt,tableHeaderIconColorHover:_t}=Re;return{[`${Ke}-wrapper`]:{[`${Ke}-thead th${Ke}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Re.motionDurationSlow}`,"&:hover":{background:Re.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Re.colorPrimary},[`
&${Ke}-cell-fix-left:hover,
&${Ke}-cell-fix-right:hover
`]:{background:Re.tableFixedHeaderSortActiveBg}},[`${Ke}-thead th${Ke}-column-sort`]:{background:Re.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ke}-column-sort`]:{background:Re.tableBodySortBg},[`${Ke}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ke}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ke}-column-sorter`]:{marginInlineStart:wt,color:Gt,fontSize:0,transition:`color ${Re.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Tt,"&.active":{color:Re.colorPrimary}},[`${Ke}-column-sorter-up + ${Ke}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ke}-column-sorters:hover ${Ke}-column-sorter`]:{color:_t}}}},Vs=Re=>{const{componentCls:Ke,opacityLoading:wt,tableScrollThumbBg:Tt,tableScrollThumbBgHover:Gt,tableScrollThumbSize:_t,tableScrollBg:fn,zIndexTableSticky:dn,stickyScrollBarBorderRadius:sn}=Re,Tn=`${Re.lineWidth}px ${Re.lineType} ${Re.tableBorderColor}`;return{[`${Ke}-wrapper`]:{[`${Ke}-sticky`]:{"&-holder":{position:"sticky",zIndex:dn,background:Re.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${_t}px !important`,zIndex:dn,display:"flex",alignItems:"center",background:fn,borderTop:Tn,opacity:wt,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:_t,backgroundColor:Tt,borderRadius:sn,transition:`all ${Re.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Gt}}}}}}},Ts=Re=>{const{componentCls:Ke,lineWidth:wt,tableBorderColor:Tt}=Re,Gt=`${wt}px ${Re.lineType} ${Tt}`;return{[`${Ke}-wrapper`]:{[`${Ke}-summary`]:{position:"relative",zIndex:Re.zIndexTableFixed,background:Re.tableBg,"> tr":{"> th, > td":{borderBottom:Gt}}},[`div${Ke}-summary`]:{boxShadow:`0 -${wt}px 0 ${Tt}`}}}},Os=Re=>{const{componentCls:Ke}=Re,wt=`${Re.lineWidth}px ${Re.lineType} ${Re.tableBorderColor}`,Tt=`${Ke}-expanded-row-cell`;return{[`${Ke}-wrapper`]:{[`${Ke}-tbody-virtual`]:{[`${Ke}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ke}-cell`]:{borderBottom:wt},[`${Ke}-expanded-row`]:{[`${Tt}${Tt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Re.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ke}-bordered`]:{[`${Ke}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:wt,position:"absolute"},[`${Ke}-cell`]:{borderInlineEnd:wt,[`&${Ke}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Re.lineWidth,borderInlineStart:wt}}}}}}};const Nl=Re=>{const{componentCls:Ke,fontWeightStrong:wt,tablePaddingVertical:Tt,tablePaddingHorizontal:Gt,lineWidth:_t,lineType:fn,tableBorderColor:dn,tableFontSize:sn,tableBg:Tn,tableRadius:Un,tableHeaderTextColor:zn,motionDurationMid:ur,tableHeaderBg:ar,tableHeaderCellSplitColor:or,tableRowHoverBg:Vr,tableSelectedRowBg:Tr,tableSelectedRowHoverBg:Gr,tableFooterTextColor:Fr,tableFooterBg:qr,paddingContentVerticalLG:Ci}=Re,wi=`${_t}px ${fn} ${dn}`;return{[`${Ke}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,No.dF)()),{[Ke]:Object.assign(Object.assign({},(0,No.Wf)(Re)),{fontSize:sn,background:Tn,borderRadius:`${Un}px ${Un}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Un}px ${Un}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Ke}-cell,
${Ke}-thead > tr > th,
${Ke}-tbody > tr > th,
${Ke}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Ci}px ${Gt}px`,overflowWrap:"break-word"},[`${Ke}-title`]:{padding:`${Tt}px ${Gt}px`},[`${Ke}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:zn,fontWeight:wt,textAlign:"start",background:ar,borderBottom:wi,transition:`background ${ur} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ke}-selection-column):not(${Ke}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:or,transform:"translateY(-50%)",transition:`background-color ${ur}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ke}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${ur}, border-color ${ur}`,borderBottom:wi,[`
> ${Ke}-wrapper:only-child,
> ${Ke}-expanded-row-fixed > ${Ke}-wrapper:only-child
`]:{[Ke]:{marginBlock:`-${Tt}px`,marginInline:`${Re.tableExpandColumnWidth-Gt}px -${Gt}px`,[`${Ke}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:zn,fontWeight:wt,textAlign:"start",background:ar,borderBottom:wi,transition:`background ${ur} ease`},[`
&${Ke}-row:hover > th,
&${Ke}-row:hover > td,
> th${Ke}-cell-row-hover,
> td${Ke}-cell-row-hover
`]:{background:Vr},[`&${Ke}-row-selected`]:{"> th, > td":{background:Tr},"&:hover > th, &:hover > td":{background:Gr}}}},[`${Ke}-footer`]:{padding:`${Tt}px ${Gt}px`,color:Fr,background:qr}})}};var Gs=(0,Ql.Z)("Table",Re=>{const{colorTextHeading:Ke,colorSplit:wt,colorIcon:Tt,colorIconHover:Gt,opacityLoading:_t,colorBgContainer:fn,controlInteractiveSize:dn,headerBg:sn,headerColor:Tn,headerSortActiveBg:Un,headerSortHoverBg:zn,bodySortBg:ur,rowHoverBg:ar,rowSelectedBg:or,rowSelectedHoverBg:Vr,rowExpandedBg:Tr,cellPaddingBlock:Gr,cellPaddingInline:Fr,cellPaddingBlockMD:qr,cellPaddingInlineMD:Ci,cellPaddingBlockSM:wi,cellPaddingInlineSM:ui,borderColor:Ti,footerBg:Vi,footerColor:ri,headerBorderRadius:mi,cellFontSize:ii,cellFontSizeMD:Ar,cellFontSizeSM:ai,headerSplitColor:Ii,fixedHeaderSortActiveBg:Ji,headerFilterHoverBg:Ai,filterDropdownBg:Xr,expandIconBg:Ki,selectionColumnWidth:Gi,stickyScrollBarBg:ba}=Re,ha=new sl.C(Tt),qa=new sl.C(Gt),Ka=2,$i=(0,Jl.TS)(Re,{tableFontSize:ii,tableBg:fn,tableRadius:mi,tablePaddingVertical:Gr,tablePaddingHorizontal:Fr,tablePaddingVerticalMiddle:qr,tablePaddingHorizontalMiddle:Ci,tablePaddingVerticalSmall:wi,tablePaddingHorizontalSmall:ui,tableBorderColor:Ti,tableHeaderTextColor:Tn,tableHeaderBg:sn,tableFooterTextColor:ri,tableFooterBg:Vi,tableHeaderCellSplitColor:Ii,tableHeaderSortBg:Un,tableHeaderSortHoverBg:zn,tableHeaderIconColor:ha.clone().setAlpha(ha.getAlpha()*_t).toRgbString(),tableHeaderIconColorHover:qa.clone().setAlpha(qa.getAlpha()*_t).toRgbString(),tableBodySortBg:ur,tableFixedHeaderSortActiveBg:Ji,tableHeaderFilterActiveBg:Ai,tableFilterDropdownBg:Xr,tableRowHoverBg:ar,tableSelectedRowBg:or,tableSelectedRowHoverBg:Vr,zIndexTableFixed:Ka,zIndexTableSticky:Ka+1,tableFontSizeMiddle:Ar,tableFontSizeSmall:ai,tableSelectionColumnWidth:Gi,tableExpandIconBg:Ki,tableExpandColumnWidth:dn+2*Re.padding,tableExpandedRowBg:Tr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ba,tableScrollThumbBgHover:Ke,tableScrollBg:wt});return[Nl($i),Sc($i),Ts($i),Hu($i),xc($i),Ps($i),Is($i),Ju($i),Ts($i),bc($i),tc($i),iu($i),Vs($i),gu($i),ou($i),Uc($i),Os($i)]},Re=>{const{colorFillAlter:Ke,colorBgContainer:wt,colorTextHeading:Tt,colorFillSecondary:Gt,colorFillContent:_t,controlItemBgActive:fn,controlItemBgActiveHover:dn,padding:sn,paddingSM:Tn,paddingXS:Un,colorBorderSecondary:zn,borderRadiusLG:ur,fontSize:ar,controlHeight:or,colorTextPlaceholder:Vr}=Re,Tr=new sl.C(Gt).onBackground(wt).toHexShortString(),Gr=new sl.C(_t).onBackground(wt).toHexShortString(),Fr=new sl.C(Ke).onBackground(wt).toHexShortString();return{headerBg:Fr,headerColor:Tt,headerSortActiveBg:Tr,headerSortHoverBg:Gr,bodySortBg:Fr,rowHoverBg:Fr,rowSelectedBg:fn,rowSelectedHoverBg:dn,rowExpandedBg:Ke,cellPaddingBlock:sn,cellPaddingInline:sn,cellPaddingBlockMD:Tn,cellPaddingInlineMD:Un,cellPaddingBlockSM:Un,cellPaddingInlineSM:Un,borderColor:zn,headerBorderRadius:ur,footerBg:Fr,footerColor:Tt,cellFontSize:ar,cellFontSizeMD:ar,cellFontSizeSM:ar,headerSplitColor:zn,fixedHeaderSortActiveBg:Tr,headerFilterHoverBg:_t,filterDropdownMenuBg:wt,filterDropdownBg:wt,expandIconBg:wt,selectionColumnWidth:or,stickyScrollBarBg:Vr,stickyScrollBarBorderRadius:100}});const nc=[],wc=(Re,Ke)=>{const{prefixCls:wt,className:Tt,rootClassName:Gt,style:_t,size:fn,bordered:dn,dropdownPrefixCls:sn,dataSource:Tn,pagination:Un,rowSelection:zn,rowKey:ur="key",rowClassName:ar,columns:or,children:Vr,childrenColumnName:Tr,onChange:Gr,getPopupContainer:Fr,loading:qr,expandIcon:Ci,expandable:wi,expandedRowRender:ui,expandIconColumnIndex:Ti,indentSize:Vi,scroll:ri,sortDirections:mi,locale:ii,showSorterTooltip:Ar=!0,virtual:ai}=Re,Ii=he.useMemo(()=>or||Ae(Vr),[or,Vr]),Ji=he.useMemo(()=>Ii.some(ma=>ma.responsive),[Ii]),Ai=(0,da.Z)(Ji),Xr=he.useMemo(()=>{const ma=new Set(Object.keys(Ai).filter(Ia=>Ai[Ia]));return Ii.filter(Ia=>!Ia.responsive||Ia.responsive.some(Bo=>ma.has(Bo)))},[Ii,Ai]),Ki=(0,di.Z)(Re,["className","style","columns"]),{locale:Gi=sa.Z,direction:ba,table:ha,renderEmpty:qa,getPrefixCls:Ka,getPopupContainer:$i}=he.useContext(Va.E_),mo=(0,_i.Z)(fn),oa=Object.assign(Object.assign({},Gi.Table),ii),Ga=Tn||nc,Ha=Ka("table",wt),Eo=Ka("dropdown",sn),Li=Object.assign({childrenColumnName:Tr,expandIconColumnIndex:Ti},wi),{childrenColumnName:Mi="children"}=Li,ki=he.useMemo(()=>Ga.some(ma=>ma==null?void 0:ma[Mi])?"nest":ui||wi&&wi.expandedRowRender?"row":null,[Ga]),yi={body:he.useRef()},pa=he.useMemo(()=>typeof ur=="function"?ur:ma=>ma==null?void 0:ma[ur],[ur]),[Si]=Xl(Ga,Mi,pa),Hi={},la=function(ma,Ia){let Bo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Ta,Po,Xo;const xl=Object.assign(Object.assign({},Hi),ma);Bo&&((Ta=Hi.resetPagination)===null||Ta===void 0||Ta.call(Hi),!((Po=xl.pagination)===null||Po===void 0)&&Po.current&&(xl.pagination.current=1),Un&&Un.onChange&&Un.onChange(1,(Xo=xl.pagination)===null||Xo===void 0?void 0:Xo.pageSize)),ri&&ri.scrollToFirstRowOnChange!==!1&&yi.body.current&&(0,ea.Z)(0,{getContainer:()=>yi.body.current}),Gr==null||Gr(xl.pagination,xl.filters,xl.sorter,{currentDataSource:Oo(Sa(Ga,xl.sorterStates,Mi),xl.filterStates),action:Ia})},na=(ma,Ia)=>{la({sorter:ma,sorterStates:Ia},"sort",!1)},[Vo,Mo,Rl,vo]=La({prefixCls:Ha,mergedColumns:Xr,onSorterChange:na,sortDirections:mi||["ascend","descend"],tableLocale:oa,showSorterTooltip:Ar}),$l=he.useMemo(()=>Sa(Ga,Mo,Mi),[Ga,Mo]);Hi.sorter=vo(),Hi.sorterStates=Mo;const yo=(ma,Ia)=>{la({filters:ma,filterStates:Ia},"filter",!0)},[Ro,gs,fa]=Ul({prefixCls:Ha,locale:oa,dropdownPrefixCls:Eo,mergedColumns:Xr,onFilterChange:yo,getPopupContainer:Fr||$i}),Mr=Oo($l,gs);Hi.filters=fa,Hi.filterStates=gs;const xa=he.useMemo(()=>{const ma={};return Object.keys(fa).forEach(Ia=>{fa[Ia]!==null&&(ma[Ia]=fa[Ia])}),Object.assign(Object.assign({},Rl),{filters:ma})},[Rl,fa]),[Co]=hl(xa),ko=(ma,Ia)=>{la({pagination:Object.assign(Object.assign({},Hi.pagination),{current:ma,pageSize:Ia})},"paginate")},[Ri,ka]=Yl(Mr.length,ko,Un);Hi.pagination=Un===!1?{}:qo(Ri,Un),Hi.resetPagination=ka;const zo=he.useMemo(()=>{if(Un===!1||!Ri.pageSize)return Mr;const{current:ma=1,total:Ia,pageSize:Bo=ll}=Ri;return Mr.length<Ia?Mr.length>Bo?Mr.slice((ma-1)*Bo,ma*Bo):Mr:Mr.slice((ma-1)*Bo,ma*Bo)},[!!Un,Mr,Ri&&Ri.current,Ri&&Ri.pageSize,Ri&&Ri.total]),[Pl,ss]=Bl({prefixCls:Ha,data:Mr,pageData:zo,getRowKey:pa,getRecordByKey:Si,expandType:ki,childrenColumnName:Mi,locale:oa,getPopupContainer:Fr||$i},zn),pl=(ma,Ia,Bo)=>{let Ta;return typeof ar=="function"?Ta=qe()(ar(ma,Ia,Bo)):Ta=qe()(ar),qe()({[`${Ha}-row-selected`]:ss.has(pa(ma,Ia))},Ta)};Li.__PARENT_RENDER_ICON__=Li.expandIcon,Li.expandIcon=Li.expandIcon||Ci||xi(oa),ki==="nest"&&Li.expandIconColumnIndex===void 0?Li.expandIconColumnIndex=zn?1:0:Li.expandIconColumnIndex>0&&zn&&(Li.expandIconColumnIndex-=1),typeof Li.indentSize!="number"&&(Li.indentSize=typeof Vi=="number"?Vi:15);const Go=he.useCallback(ma=>Co(Pl(Ro(Vo(ma)))),[Vo,Ro,Pl]);let es,Uo;if(Un!==!1&&(Ri!=null&&Ri.total)){let ma;Ri.size?ma=Ri.size:ma=mo==="small"||mo==="middle"?"small":void 0;const Ia=Po=>he.createElement(Sr.Z,Object.assign({},Ri,{className:qe()(`${Ha}-pagination ${Ha}-pagination-${Po}`,Ri.className),size:ma})),Bo=ba==="rtl"?"left":"right",{position:Ta}=Ri;if(Ta!==null&&Array.isArray(Ta)){const Po=Ta.find(bs=>bs.includes("top")),Xo=Ta.find(bs=>bs.includes("bottom")),xl=Ta.every(bs=>`${bs}`=="none");!Po&&!Xo&&!xl&&(Uo=Ia(Bo)),Po&&(es=Ia(Po.toLowerCase().replace("top",""))),Xo&&(Uo=Ia(Xo.toLowerCase().replace("bottom","")))}else Uo=Ia(Bo)}let ml;typeof qr=="boolean"?ml={spinning:qr}:typeof qr=="object"&&(ml=Object.assign({spinning:!0},qr));const[tl,eo]=Gs(Ha),[,to]=(0,sr.Z)(),ul=qe()(`${Ha}-wrapper`,ha==null?void 0:ha.className,{[`${Ha}-wrapper-rtl`]:ba==="rtl"},Tt,Gt,eo),ys=Object.assign(Object.assign({},ha==null?void 0:ha.style),_t),zl=ii&&ii.emptyText||(qa==null?void 0:qa("Table"))||he.createElement(Da.Z,{componentName:"Table"}),us=ai?Wl:jo,Ns={},rc=he.useMemo(()=>{const{fontSize:ma,lineHeight:Ia,padding:Bo,paddingXS:Ta,paddingSM:Po}=to,Xo=Math.floor(ma*Ia);switch(mo){case"large":return Bo*2+Xo;case"small":return Ta*2+Xo;default:return Po*2+Xo}},[to,mo]);return ai&&(Ns.listItemHeight=rc),tl(he.createElement("div",{ref:Ke,className:ul,style:ys},he.createElement(xr.Z,Object.assign({spinning:!1},ml),es,he.createElement(us,Object.assign({},Ns,Ki,{columns:Xr,direction:ba,expandable:Li,prefixCls:Ha,className:qe()({[`${Ha}-middle`]:mo==="middle",[`${Ha}-small`]:mo==="small",[`${Ha}-bordered`]:dn,[`${Ha}-empty`]:Ga.length===0}),data:zo,rowKey:pa,rowClassName:pl,emptyText:zl,internalHooks:Me,internalRefs:yi,transformColumns:Go})),Uo)))};var Ec=he.forwardRef(wc);const Qc=(Re,Ke)=>{const wt=he.useRef(0);return wt.current+=1,he.createElement(Ec,Object.assign({},Re,{ref:Ke,_renderTimes:wt.current}))},bl=he.forwardRef(Qc);bl.SELECTION_COLUMN=lo,bl.EXPAND_COLUMN=me,bl.SELECTION_ALL=ja,bl.SELECTION_INVERT=Fo,bl.SELECTION_NONE=Zo,bl.Column=Or,bl.ColumnGroup=si,bl.Summary=Fe;var Fs=bl,Jc=Fs},99313:function(An,Ut,oe){"use strict";oe.d(Ut,{default:function(){return bt}});var me=oe(99267),Me=oe(18785),Pe=oe(62772),pt=oe(92310),ge=oe.n(pt),ke=oe(60499),he=oe(18642),we=oe(85899),Ee=oe(72190),ze=oe(43749),vt=oe(42244),Ie=oe(59301),He=oe(49658),st=oe(18929),Je=oe(77900),Ue=(0,Ie.createContext)(null),gt=Ie.forwardRef(function(Ae,je){var Ze=Ae.prefixCls,We=Ae.className,yt=Ae.style,Lt=Ae.id,Jt=Ae.active,Ht=Ae.tabKey,ln=Ae.children;return Ie.createElement("div",{id:Lt&&"".concat(Lt,"-panel-").concat(Ht),role:"tabpanel",tabIndex:Jt?0:-1,"aria-labelledby":Lt&&"".concat(Lt,"-tab-").concat(Ht),"aria-hidden":!Jt,style:yt,className:ge()(Ze,Jt&&"".concat(Ze,"-active"),We),ref:je},ln)}),Et=gt,At=["key","forceRender","style","className"];function dt(Ae){var je=Ae.id,Ze=Ae.activeKey,We=Ae.animated,yt=Ae.tabPosition,Lt=Ae.destroyInactiveTabPane,Jt=Ie.useContext(Ue),Ht=Jt.prefixCls,ln=Jt.tabs,yn=We.tabPane,En="".concat(Ht,"-tabpane");return Ie.createElement("div",{className:ge()("".concat(Ht,"-content-holder"))},Ie.createElement("div",{className:ge()("".concat(Ht,"-content"),"".concat(Ht,"-content-").concat(yt),(0,he.Z)({},"".concat(Ht,"-content-animated"),yn))},ln.map(function(Mn){var Kt=Mn.key,hn=Mn.forceRender,Hn=Mn.style,Zn=Mn.className,Kn=(0,vt.Z)(Mn,At),jn=Kt===Ze;return Ie.createElement(Je.default,(0,ke.Z)({key:Kt,visible:jn,forceRender:hn,removeOnLeave:!!Lt,leavedClassName:"".concat(En,"-hidden")},We.tabPaneMotion),function(nr,On){var cr=nr.style,Mt=nr.className;return Ie.createElement(Et,(0,ke.Z)({},Kn,{prefixCls:En,id:je,tabKey:Kt,animated:yn,active:jn,style:(0,we.Z)((0,we.Z)({},Hn),cr),className:ge()(Zn,Mt),ref:On}))})})))}var nt=oe(77654),Ve=oe(29301),Se=oe(6089),$e=oe(8654),Ye={width:0,height:0,left:0,top:0};function ht(Ae,je,Ze){return(0,Ie.useMemo)(function(){for(var We,yt=new Map,Lt=je.get((We=Ae[0])===null||We===void 0?void 0:We.key)||Ye,Jt=Lt.left+Lt.width,Ht=0;Ht<Ae.length;Ht+=1){var ln=Ae[Ht].key,yn=je.get(ln);if(!yn){var En;yn=je.get((En=Ae[Ht-1])===null||En===void 0?void 0:En.key)||Ye}var Mn=yt.get(ln)||(0,we.Z)({},yn);Mn.right=Jt-Mn.left-Mn.width,yt.set(ln,Mn)}return yt},[Ae.map(function(We){return We.key}).join("_"),je,Ze])}function Xe(Ae,je){var Ze=Ie.useRef(Ae),We=Ie.useState({}),yt=(0,Ee.Z)(We,2),Lt=yt[1];function Jt(Ht){var ln=typeof Ht=="function"?Ht(Ze.current):Ht;ln!==Ze.current&&je(ln,Ze.current),Ze.current=ln,Lt({})}return[Ze.current,Jt]}var ut=.1,Oe=.01,Pt=20,qe=Math.pow(.995,Pt);function zt(Ae,je){var Ze=(0,Ie.useState)(),We=(0,Ee.Z)(Ze,2),yt=We[0],Lt=We[1],Jt=(0,Ie.useState)(0),Ht=(0,Ee.Z)(Jt,2),ln=Ht[0],yn=Ht[1],En=(0,Ie.useState)(0),Mn=(0,Ee.Z)(En,2),Kt=Mn[0],hn=Mn[1],Hn=(0,Ie.useState)(),Zn=(0,Ee.Z)(Hn,2),Kn=Zn[0],jn=Zn[1],nr=(0,Ie.useRef)();function On(un){var vn=un.touches[0],pn=vn.screenX,Pn=vn.screenY;Lt({x:pn,y:Pn}),window.clearInterval(nr.current)}function cr(un){if(yt){un.preventDefault();var vn=un.touches[0],pn=vn.screenX,Pn=vn.screenY;Lt({x:pn,y:Pn});var Vn=pn-yt.x,er=Pn-yt.y;je(Vn,er);var pr=Date.now();yn(pr),hn(pr-ln),jn({x:Vn,y:er})}}function Mt(){if(yt&&(Lt(null),jn(null),Kn)){var un=Kn.x/Kt,vn=Kn.y/Kt,pn=Math.abs(un),Pn=Math.abs(vn);if(Math.max(pn,Pn)<ut)return;var Vn=un,er=vn;nr.current=window.setInterval(function(){if(Math.abs(Vn)<Oe&&Math.abs(er)<Oe){window.clearInterval(nr.current);return}Vn*=qe,er*=qe,je(Vn*Pt,er*Pt)},Pt)}}var an=(0,Ie.useRef)();function cn(un){var vn=un.deltaX,pn=un.deltaY,Pn=0,Vn=Math.abs(vn),er=Math.abs(pn);Vn===er?Pn=an.current==="x"?vn:pn:Vn>er?(Pn=vn,an.current="x"):(Pn=pn,an.current="y"),je(-Pn,-Pn)&&un.preventDefault()}var Cn=(0,Ie.useRef)(null);Cn.current={onTouchStart:On,onTouchMove:cr,onTouchEnd:Mt,onWheel:cn},Ie.useEffect(function(){function un(Vn){Cn.current.onTouchStart(Vn)}function vn(Vn){Cn.current.onTouchMove(Vn)}function pn(Vn){Cn.current.onTouchEnd(Vn)}function Pn(Vn){Cn.current.onWheel(Vn)}return document.addEventListener("touchmove",vn,{passive:!1}),document.addEventListener("touchend",pn,{passive:!1}),Ae.current.addEventListener("touchstart",un,{passive:!1}),Ae.current.addEventListener("wheel",Pn),function(){document.removeEventListener("touchmove",vn),document.removeEventListener("touchend",pn)}},[])}var Dt=oe(34280);function Bt(Ae){var je=(0,Ie.useState)(0),Ze=(0,Ee.Z)(je,2),We=Ze[0],yt=Ze[1],Lt=(0,Ie.useRef)(0),Jt=(0,Ie.useRef)();return Jt.current=Ae,(0,Dt.o)(function(){var Ht;(Ht=Jt.current)===null||Ht===void 0||Ht.call(Jt)},[We]),function(){Lt.current===We&&(Lt.current+=1,yt(Lt.current))}}function St(Ae){var je=(0,Ie.useRef)([]),Ze=(0,Ie.useState)({}),We=(0,Ee.Z)(Ze,2),yt=We[1],Lt=(0,Ie.useRef)(typeof Ae=="function"?Ae():Ae),Jt=Bt(function(){var ln=Lt.current;je.current.forEach(function(yn){ln=yn(ln)}),je.current=[],Lt.current=ln,yt({})});function Ht(ln){je.current.push(ln),Jt()}return[Lt.current,Ht]}var It={width:0,height:0,left:0,top:0,right:0};function Qe(Ae,je,Ze,We,yt,Lt,Jt){var Ht=Jt.tabs,ln=Jt.tabPosition,yn=Jt.rtl,En,Mn,Kt;return["top","bottom"].includes(ln)?(En="width",Mn=yn?"right":"left",Kt=Math.abs(Ze)):(En="height",Mn="top",Kt=-Ze),(0,Ie.useMemo)(function(){if(!Ht.length)return[0,0];for(var hn=Ht.length,Hn=hn,Zn=0;Zn<hn;Zn+=1){var Kn=Ae.get(Ht[Zn].key)||It;if(Kn[Mn]+Kn[En]>Kt+je){Hn=Zn-1;break}}for(var jn=0,nr=hn-1;nr>=0;nr-=1){var On=Ae.get(Ht[nr].key)||It;if(On[Mn]<Kt){jn=nr+1;break}}return jn>=Hn?[0,0]:[jn,Hn]},[Ae,je,We,yt,Lt,Kt,ln,Ht.map(function(hn){return hn.key}).join("_"),yn])}function be(Ae){var je;return Ae instanceof Map?(je={},Ae.forEach(function(Ze,We){je[We]=Ze})):je=Ae,JSON.stringify(je)}var Ct="TABS_DQ";function Yt(Ae){return String(Ae).replace(/"/g,Ct)}function Zt(Ae,je,Ze,We){return!(!Ze||We||Ae===!1||Ae===void 0&&(je===!1||je===null))}function at(Ae,je){var Ze=Ae.prefixCls,We=Ae.editable,yt=Ae.locale,Lt=Ae.style;return!We||We.showAdd===!1?null:Ie.createElement("button",{ref:je,type:"button",className:"".concat(Ze,"-nav-add"),style:Lt,"aria-label":(yt==null?void 0:yt.addAriaLabel)||"Add tab",onClick:function(Ht){We.onEdit("add",{event:Ht})}},We.addIcon||"+")}var ot=Ie.forwardRef(at),Nt=Ie.forwardRef(function(Ae,je){var Ze=Ae.position,We=Ae.prefixCls,yt=Ae.extra;if(!yt)return null;var Lt,Jt={};return(0,ze.Z)(yt)==="object"&&!Ie.isValidElement(yt)?Jt=yt:Jt.right=yt,Ze==="right"&&(Lt=Jt.right),Ze==="left"&&(Lt=Jt.left),Lt?Ie.createElement("div",{className:"".concat(We,"-extra-content"),ref:je},Lt):null}),Sn=Nt,$t=oe(31561),mn=oe(15285),on=oe(10228);function nn(Ae,je){var Ze=Ae.prefixCls,We=Ae.id,yt=Ae.tabs,Lt=Ae.locale,Jt=Ae.mobile,Ht=Ae.moreIcon,ln=Ht===void 0?"More":Ht,yn=Ae.moreTransitionName,En=Ae.style,Mn=Ae.className,Kt=Ae.editable,hn=Ae.tabBarGutter,Hn=Ae.rtl,Zn=Ae.removeAriaLabel,Kn=Ae.onTabClick,jn=Ae.getPopupContainer,nr=Ae.popupClassName,On=(0,Ie.useState)(!1),cr=(0,Ee.Z)(On,2),Mt=cr[0],an=cr[1],cn=(0,Ie.useState)(null),Cn=(0,Ee.Z)(cn,2),un=Cn[0],vn=Cn[1],pn="".concat(We,"-more-popup"),Pn="".concat(Ze,"-dropdown"),Vn=un!==null?"".concat(pn,"-").concat(un):null,er=Lt==null?void 0:Lt.dropdownAriaLabel;function pr(Zr,gr){Zr.preventDefault(),Zr.stopPropagation(),Kt.onEdit("remove",{key:gr,event:Zr})}var mr=Ie.createElement(mn.ZP,{onClick:function(gr){var zr=gr.key,Cr=gr.domEvent;Kn(zr,Cr),an(!1)},prefixCls:"".concat(Pn,"-menu"),id:pn,tabIndex:-1,role:"listbox","aria-activedescendant":Vn,selectedKeys:[un],"aria-label":er!==void 0?er:"expanded dropdown"},yt.map(function(Zr){var gr=Zr.closable,zr=Zr.disabled,Cr=Zr.closeIcon,lr=Zr.key,jr=Zr.label,li=Zt(gr,Cr,Kt,zr);return Ie.createElement(mn.sN,{key:lr,id:"".concat(pn,"-").concat(lr),role:"option","aria-controls":We&&"".concat(We,"-panel-").concat(lr),disabled:zr},Ie.createElement("span",null,jr),li&&Ie.createElement("button",{type:"button","aria-label":Zn||"remove",tabIndex:0,className:"".concat(Pn,"-menu-item-remove"),onClick:function(Jn){Jn.stopPropagation(),pr(Jn,lr)}},Cr||Kt.removeIcon||"\xD7"))}));function Pr(Zr){for(var gr=yt.filter(function(li){return!li.disabled}),zr=gr.findIndex(function(li){return li.key===un})||0,Cr=gr.length,lr=0;lr<Cr;lr+=1){zr=(zr+Zr+Cr)%Cr;var jr=gr[zr];if(!jr.disabled){vn(jr.key);return}}}function Ir(Zr){var gr=Zr.which;if(!Mt){[on.Z.DOWN,on.Z.SPACE,on.Z.ENTER].includes(gr)&&(an(!0),Zr.preventDefault());return}switch(gr){case on.Z.UP:Pr(-1),Zr.preventDefault();break;case on.Z.DOWN:Pr(1),Zr.preventDefault();break;case on.Z.ESC:an(!1);break;case on.Z.SPACE:case on.Z.ENTER:un!==null&&Kn(un,Zr);break}}(0,Ie.useEffect)(function(){var Zr=document.getElementById(Vn);Zr&&Zr.scrollIntoView&&Zr.scrollIntoView(!1)},[un]),(0,Ie.useEffect)(function(){Mt||vn(null)},[Mt]);var Lr=(0,he.Z)({},Hn?"marginRight":"marginLeft",hn);yt.length||(Lr.visibility="hidden",Lr.order=1);var $r=ge()((0,he.Z)({},"".concat(Pn,"-rtl"),Hn)),Hr=Jt?null:Ie.createElement($t.Z,{prefixCls:Pn,overlay:mr,trigger:["hover"],visible:yt.length?Mt:!1,transitionName:yn,onVisibleChange:an,overlayClassName:ge()($r,nr),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:jn},Ie.createElement("button",{type:"button",className:"".concat(Ze,"-nav-more"),style:Lr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":pn,id:"".concat(We,"-more"),"aria-expanded":Mt,onKeyDown:Ir},ln));return Ie.createElement("div",{className:ge()("".concat(Ze,"-nav-operations"),Mn),style:En,ref:je},Hr,Ie.createElement(ot,{prefixCls:Ze,locale:Lt,editable:Kt}))}var en=Ie.memo(Ie.forwardRef(nn),function(Ae,je){return je.tabMoving});function ye(Ae){var je,Ze=Ae.prefixCls,We=Ae.id,yt=Ae.active,Lt=Ae.tab,Jt=Lt.key,Ht=Lt.label,ln=Lt.disabled,yn=Lt.closeIcon,En=Ae.closable,Mn=Ae.renderWrapper,Kt=Ae.removeAriaLabel,hn=Ae.editable,Hn=Ae.onClick,Zn=Ae.onFocus,Kn=Ae.style,jn="".concat(Ze,"-tab"),nr=Zt(En,yn,hn,ln);function On(an){ln||Hn(an)}function cr(an){an.preventDefault(),an.stopPropagation(),hn.onEdit("remove",{key:Jt,event:an})}var Mt=Ie.createElement("div",{key:Jt,"data-node-key":Yt(Jt),className:ge()(jn,(je={},(0,he.Z)(je,"".concat(jn,"-with-remove"),nr),(0,he.Z)(je,"".concat(jn,"-active"),yt),(0,he.Z)(je,"".concat(jn,"-disabled"),ln),je)),style:Kn,onClick:On},Ie.createElement("div",{role:"tab","aria-selected":yt,id:We&&"".concat(We,"-tab-").concat(Jt),className:"".concat(jn,"-btn"),"aria-controls":We&&"".concat(We,"-panel-").concat(Jt),"aria-disabled":ln,tabIndex:ln?null:0,onClick:function(cn){cn.stopPropagation(),On(cn)},onKeyDown:function(cn){[on.Z.SPACE,on.Z.ENTER].includes(cn.which)&&(cn.preventDefault(),On(cn))},onFocus:Zn},Ht),nr&&Ie.createElement("button",{type:"button","aria-label":Kt||"remove",tabIndex:0,className:"".concat(jn,"-remove"),onClick:function(cn){cn.stopPropagation(),cr(cn)}},yn||hn.removeIcon||"\xD7"));return Mn?Mn(Mt):Mt}var ue=ye,se=oe(16089),ce=function(je){var Ze=je.activeTabOffset,We=je.horizontal,yt=je.rtl,Lt=je.indicatorSize,Jt=(0,Ie.useState)(),Ht=(0,Ee.Z)(Jt,2),ln=Ht[0],yn=Ht[1],En=(0,Ie.useRef)(),Mn=function(Hn){return typeof Lt=="function"?Lt(Hn):typeof Lt=="number"?Lt:Hn};function Kt(){se.Z.cancel(En.current)}return(0,Ie.useEffect)(function(){var hn={};return Ze&&(We?(yt?(hn.right=Ze.right+Ze.width/2,hn.transform="translateX(50%)"):(hn.left=Ze.left+Ze.width/2,hn.transform="translateX(-50%)"),hn.width=Mn(Ze.width)):(hn.top=Ze.top+Ze.height/2,hn.transform="translateY(-50%)",hn.height=Mn(Ze.height))),Kt(),En.current=(0,se.Z)(function(){yn(hn)}),Kt},[Ze,We,yt,Lt]),{style:ln}},de=ce,ae=function(je){var Ze=je.current||{},We=Ze.offsetWidth,yt=We===void 0?0:We,Lt=Ze.offsetHeight,Jt=Lt===void 0?0:Lt;return[yt,Jt]},Be=function(je,Ze){return je[Ze?0:1]};function ft(Ae,je){var Ze,We=Ie.useContext(Ue),yt=We.prefixCls,Lt=We.tabs,Jt=Ae.className,Ht=Ae.style,ln=Ae.id,yn=Ae.animated,En=Ae.activeKey,Mn=Ae.rtl,Kt=Ae.extra,hn=Ae.editable,Hn=Ae.locale,Zn=Ae.tabPosition,Kn=Ae.tabBarGutter,jn=Ae.children,nr=Ae.onTabClick,On=Ae.onTabScroll,cr=Ae.indicatorSize,Mt=(0,Ie.useRef)(),an=(0,Ie.useRef)(),cn=(0,Ie.useRef)(),Cn=(0,Ie.useRef)(),un=(0,Ie.useRef)(),vn=(0,Ie.useRef)(),pn=(0,Ie.useRef)(),Pn=Zn==="top"||Zn==="bottom",Vn=Xe(0,function(ia,aa){Pn&&On&&On({direction:ia>aa?"left":"right"})}),er=(0,Ee.Z)(Vn,2),pr=er[0],mr=er[1],Pr=Xe(0,function(ia,aa){!Pn&&On&&On({direction:ia>aa?"top":"bottom"})}),Ir=(0,Ee.Z)(Pr,2),Lr=Ir[0],$r=Ir[1],Hr=(0,Ie.useState)([0,0]),Zr=(0,Ee.Z)(Hr,2),gr=Zr[0],zr=Zr[1],Cr=(0,Ie.useState)([0,0]),lr=(0,Ee.Z)(Cr,2),jr=lr[0],li=lr[1],Dr=(0,Ie.useState)([0,0]),Jn=(0,Ee.Z)(Dr,2),Xn=Jn[0],Wr=Jn[1],Er=(0,Ie.useState)([0,0]),Jr=(0,Ee.Z)(Er,2),ci=Jr[0],ti=Jr[1],Bi=St(new Map),vi=(0,Ee.Z)(Bi,2),Ui=vi[0],Or=vi[1],_r=ht(Lt,Ui,jr[0]),si=Be(gr,Pn),di=Be(jr,Pn),ea=Be(Xn,Pn),Va=Be(ci,Pn),Da=si<di+ea,_i=Da?si-Va:si-ea,da="".concat(yt,"-nav-operations-hidden"),sa=0,Sr=0;Pn&&Mn?(sa=0,Sr=Math.max(0,di-_i)):(sa=Math.min(0,_i-di),Sr=0);function xr(ia){return ia<sa?sa:ia>Sr?Sr:ia}var sr=(0,Ie.useRef)(),hr=(0,Ie.useState)(),xi=(0,Ee.Z)(hr,2),Fi=xi[0],Zi=xi[1];function Yi(){Zi(Date.now())}function Wi(){window.clearTimeout(sr.current)}zt(Cn,function(ia,aa){function Ya(Qa,go){Qa(function(Ja){var hs=xr(Ja+go);return hs})}return Da?(Pn?Ya(mr,ia):Ya($r,aa),Wi(),Yi(),!0):!1}),(0,Ie.useEffect)(function(){return Wi(),Fi&&(sr.current=window.setTimeout(function(){Zi(0)},100)),Wi},[Fi]);var ra=Qe(_r,_i,Pn?pr:Lr,di,ea,Va,(0,we.Z)((0,we.Z)({},Ae),{},{tabs:Lt})),Ba=(0,Ee.Z)(ra,2),Aa=Ba[0],ho=Ba[1],no=(0,Se.Z)(function(){var ia=arguments.length>0&&arguments[0]!==void 0?arguments[0]:En,aa=_r.get(ia)||{width:0,height:0,left:0,right:0,top:0};if(Pn){var Ya=pr;Mn?aa.right<pr?Ya=aa.right:aa.right+aa.width>pr+_i&&(Ya=aa.right+aa.width-_i):aa.left<-pr?Ya=-aa.left:aa.left+aa.width>-pr+_i&&(Ya=-(aa.left+aa.width-_i)),$r(0),mr(xr(Ya))}else{var Qa=Lr;aa.top<-Lr?Qa=-aa.top:aa.top+aa.height>-Lr+_i&&(Qa=-(aa.top+aa.height-_i)),mr(0),$r(xr(Qa))}}),Fa={};Zn==="top"||Zn==="bottom"?Fa[Mn?"marginRight":"marginLeft"]=Kn:Fa.marginTop=Kn;var al=Lt.map(function(ia,aa){var Ya=ia.key;return Ie.createElement(ue,{id:ln,prefixCls:yt,key:Ya,tab:ia,style:aa===0?void 0:Fa,closable:ia.closable,editable:hn,active:Ya===En,renderWrapper:jn,removeAriaLabel:Hn==null?void 0:Hn.removeAriaLabel,onClick:function(go){nr(Ya,go)},onFocus:function(){no(Ya),Yi(),Cn.current&&(Mn||(Cn.current.scrollLeft=0),Cn.current.scrollTop=0)}})}),po=function(){return Or(function(){var aa=new Map;return Lt.forEach(function(Ya){var Qa,go=Ya.key,Ja=(Qa=un.current)===null||Qa===void 0?void 0:Qa.querySelector('[data-node-key="'.concat(Yt(go),'"]'));Ja&&aa.set(go,{width:Ja.offsetWidth,height:Ja.offsetHeight,left:Ja.offsetLeft,top:Ja.offsetTop})}),aa})};(0,Ie.useEffect)(function(){po()},[Lt.map(function(ia){return ia.key}).join("_")]);var wo=Bt(function(){var ia=ae(Mt),aa=ae(an),Ya=ae(cn);zr([ia[0]-aa[0]-Ya[0],ia[1]-aa[1]-Ya[1]]);var Qa=ae(pn);Wr(Qa);var go=ae(vn);ti(go);var Ja=ae(un);li([Ja[0]-Qa[0],Ja[1]-Qa[1]]),po()}),Xa=Lt.slice(0,Aa),ya=Lt.slice(ho+1),hi=[].concat((0,nt.Z)(Xa),(0,nt.Z)(ya)),Ni=_r.get(En),Ei=de({activeTabOffset:Ni,horizontal:Pn,rtl:Mn,indicatorSize:cr}),fi=Ei.style;(0,Ie.useEffect)(function(){no()},[En,sa,Sr,be(Ni),be(_r),Pn]),(0,Ie.useEffect)(function(){wo()},[Mn]);var Xi=!!hi.length,ji="".concat(yt,"-nav-wrap"),Na,$a,Ra,ro;return Pn?Mn?($a=pr>0,Na=pr!==Sr):(Na=pr<0,$a=pr!==sa):(Ra=Lr<0,ro=Lr!==sa),Ie.createElement(Ve.Z,{onResize:wo},Ie.createElement("div",{ref:(0,$e.x1)(je,Mt),role:"tablist",className:ge()("".concat(yt,"-nav"),Jt),style:Ht,onKeyDown:function(){Yi()}},Ie.createElement(Sn,{ref:an,position:"left",extra:Kt,prefixCls:yt}),Ie.createElement(Ve.Z,{onResize:wo},Ie.createElement("div",{className:ge()(ji,(Ze={},(0,he.Z)(Ze,"".concat(ji,"-ping-left"),Na),(0,he.Z)(Ze,"".concat(ji,"-ping-right"),$a),(0,he.Z)(Ze,"".concat(ji,"-ping-top"),Ra),(0,he.Z)(Ze,"".concat(ji,"-ping-bottom"),ro),Ze)),ref:Cn},Ie.createElement(Ve.Z,{onResize:wo},Ie.createElement("div",{ref:un,className:"".concat(yt,"-nav-list"),style:{transform:"translate(".concat(pr,"px, ").concat(Lr,"px)"),transition:Fi?"none":void 0}},al,Ie.createElement(ot,{ref:pn,prefixCls:yt,locale:Hn,editable:hn,style:(0,we.Z)((0,we.Z)({},al.length===0?void 0:Fa),{},{visibility:Xi?"hidden":null})}),Ie.createElement("div",{className:ge()("".concat(yt,"-ink-bar"),(0,he.Z)({},"".concat(yt,"-ink-bar-animated"),yn.inkBar)),style:fi}))))),Ie.createElement(en,(0,ke.Z)({},Ae,{removeAriaLabel:Hn==null?void 0:Hn.removeAriaLabel,ref:vn,prefixCls:yt,tabs:hi,className:!Xi&&da,tabMoving:!!Fi})),Ie.createElement(Sn,{ref:cn,position:"right",extra:Kt,prefixCls:yt})))}var Fe=Ie.forwardRef(ft),De=["renderTabBar"],mt=["label","key"];function rt(Ae){var je=Ae.renderTabBar,Ze=(0,vt.Z)(Ae,De),We=Ie.useContext(Ue),yt=We.tabs;if(je){var Lt=(0,we.Z)((0,we.Z)({},Ze),{},{panes:yt.map(function(Jt){var Ht=Jt.label,ln=Jt.key,yn=(0,vt.Z)(Jt,mt);return Ie.createElement(Et,(0,ke.Z)({tab:Ht,key:ln,tabKey:ln},yn))})});return je(Lt,Fe)}return Ie.createElement(Fe,Ze)}var Ge=oe(48736);function xt(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},je;return Ae===!1?je={inkBar:!1,tabPane:!1}:Ae===!0?je={inkBar:!0,tabPane:!1}:je=(0,we.Z)({inkBar:!0},(0,ze.Z)(Ae)==="object"?Ae:{}),je.tabPaneMotion&&je.tabPane===void 0&&(je.tabPane=!0),!je.tabPaneMotion&&je.tabPane&&(je.tabPane=!1),je}var Xt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],ct=0;function Rt(Ae,je){var Ze,We=Ae.id,yt=Ae.prefixCls,Lt=yt===void 0?"rc-tabs":yt,Jt=Ae.className,Ht=Ae.items,ln=Ae.direction,yn=Ae.activeKey,En=Ae.defaultActiveKey,Mn=Ae.editable,Kt=Ae.animated,hn=Ae.tabPosition,Hn=hn===void 0?"top":hn,Zn=Ae.tabBarGutter,Kn=Ae.tabBarStyle,jn=Ae.tabBarExtraContent,nr=Ae.locale,On=Ae.moreIcon,cr=Ae.moreTransitionName,Mt=Ae.destroyInactiveTabPane,an=Ae.renderTabBar,cn=Ae.onChange,Cn=Ae.onTabClick,un=Ae.onTabScroll,vn=Ae.getPopupContainer,pn=Ae.popupClassName,Pn=Ae.indicatorSize,Vn=(0,vt.Z)(Ae,Xt),er=Ie.useMemo(function(){return(Ht||[]).filter(function(ti){return ti&&(0,ze.Z)(ti)==="object"&&"key"in ti})},[Ht]),pr=ln==="rtl",mr=xt(Kt),Pr=(0,Ie.useState)(!1),Ir=(0,Ee.Z)(Pr,2),Lr=Ir[0],$r=Ir[1];(0,Ie.useEffect)(function(){$r((0,He.Z)())},[]);var Hr=(0,st.Z)(function(){var ti;return(ti=er[0])===null||ti===void 0?void 0:ti.key},{value:yn,defaultValue:En}),Zr=(0,Ee.Z)(Hr,2),gr=Zr[0],zr=Zr[1],Cr=(0,Ie.useState)(function(){return er.findIndex(function(ti){return ti.key===gr})}),lr=(0,Ee.Z)(Cr,2),jr=lr[0],li=lr[1];(0,Ie.useEffect)(function(){var ti=er.findIndex(function(vi){return vi.key===gr});if(ti===-1){var Bi;ti=Math.max(0,Math.min(jr,er.length-1)),zr((Bi=er[ti])===null||Bi===void 0?void 0:Bi.key)}li(ti)},[er.map(function(ti){return ti.key}).join("_"),gr,jr]);var Dr=(0,st.Z)(null,{value:We}),Jn=(0,Ee.Z)(Dr,2),Xn=Jn[0],Wr=Jn[1];(0,Ie.useEffect)(function(){We||(Wr("rc-tabs-".concat(ct)),ct+=1)},[]);function Er(ti,Bi){Cn==null||Cn(ti,Bi);var vi=ti!==gr;zr(ti),vi&&(cn==null||cn(ti))}var Jr={id:Xn,activeKey:gr,animated:mr,tabPosition:Hn,rtl:pr,mobile:Lr},ci=(0,we.Z)((0,we.Z)({},Jr),{},{editable:Mn,locale:nr,moreIcon:On,moreTransitionName:cr,tabBarGutter:Zn,onTabClick:Er,onTabScroll:un,extra:jn,style:Kn,panes:null,getPopupContainer:vn,popupClassName:pn,indicatorSize:Pn});return Ie.createElement(Ue.Provider,{value:{tabs:er,prefixCls:Lt}},Ie.createElement("div",(0,ke.Z)({ref:je,id:We,className:ge()(Lt,"".concat(Lt,"-").concat(Hn),(Ze={},(0,he.Z)(Ze,"".concat(Lt,"-mobile"),Lr),(0,he.Z)(Ze,"".concat(Lt,"-editable"),Mn),(0,he.Z)(Ze,"".concat(Lt,"-rtl"),pr),Ze),Jt)},Vn),Ie.createElement(rt,(0,ke.Z)({},ci,{renderTabBar:an})),Ie.createElement(dt,(0,ke.Z)({destroyInactiveTabPane:Mt},Jr,{animated:mr}))))}var rn=Ie.forwardRef(Rt),lt=rn,Le=lt,it=oe(36355),Ot=oe(19716),Qt=()=>null,bn=oe(62892);const Bn={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Ln(Ae){let je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Ze;return je===!1?Ze={inkBar:!1,tabPane:!1}:je===!0?Ze={inkBar:!0,tabPane:!0}:Ze=Object.assign({inkBar:!0},typeof je=="object"?je:{}),Ze.tabPane&&(Ze.tabPaneMotion=Object.assign(Object.assign({},Bn),{motionName:(0,bn.m)(Ae,"switch")})),Ze}var Gn=oe(11592),Yn=function(Ae,je){var Ze={};for(var We in Ae)Object.prototype.hasOwnProperty.call(Ae,We)&&je.indexOf(We)<0&&(Ze[We]=Ae[We]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,We=Object.getOwnPropertySymbols(Ae);yt<We.length;yt++)je.indexOf(We[yt])<0&&Object.prototype.propertyIsEnumerable.call(Ae,We[yt])&&(Ze[We[yt]]=Ae[We[yt]]);return Ze};function _n(Ae){return Ae.filter(je=>je)}function ir(Ae,je){if(Ae)return Ae;const Ze=(0,Gn.Z)(je).map(We=>{if(Ie.isValidElement(We)){const{key:yt,props:Lt}=We,Jt=Lt||{},{tab:Ht}=Jt,ln=Yn(Jt,["tab"]);return Object.assign(Object.assign({key:String(yt)},ln),{label:Ht})}return null});return _n(Ze)}var br=oe(17313),wr=oe(83116),qn=oe(37613),fr=oe(13826),Qn=Ae=>{const{componentCls:je,motionDurationSlow:Ze}=Ae;return[{[je]:{[`${je}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Ze}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Ze}`}}}}},[(0,fr.oN)(Ae,"slide-up"),(0,fr.oN)(Ae,"slide-down")]]};const Nr=Ae=>{const{componentCls:je,tabsCardPadding:Ze,cardBg:We,cardGutter:yt,colorBorderSecondary:Lt,itemSelectedColor:Jt}=Ae;return{[`${je}-card`]:{[`> ${je}-nav, > div > ${je}-nav`]:{[`${je}-tab`]:{margin:0,padding:Ze,background:We,border:`${Ae.lineWidth}px ${Ae.lineType} ${Lt}`,transition:`all ${Ae.motionDurationSlow} ${Ae.motionEaseInOut}`},[`${je}-tab-active`]:{color:Jt,background:Ae.colorBgContainer},[`${je}-ink-bar`]:{visibility:"hidden"}},[`&${je}-top, &${je}-bottom`]:{[`> ${je}-nav, > div > ${je}-nav`]:{[`${je}-tab + ${je}-tab`]:{marginLeft:{_skip_check_:!0,value:`${yt}px`}}}},[`&${je}-top`]:{[`> ${je}-nav, > div > ${je}-nav`]:{[`${je}-tab`]:{borderRadius:`${Ae.borderRadiusLG}px ${Ae.borderRadiusLG}px 0 0`},[`${je}-tab-active`]:{borderBottomColor:Ae.colorBgContainer}}},[`&${je}-bottom`]:{[`> ${je}-nav, > div > ${je}-nav`]:{[`${je}-tab`]:{borderRadius:`0 0 ${Ae.borderRadiusLG}px ${Ae.borderRadiusLG}px`},[`${je}-tab-active`]:{borderTopColor:Ae.colorBgContainer}}},[`&${je}-left, &${je}-right`]:{[`> ${je}-nav, > div > ${je}-nav`]:{[`${je}-tab + ${je}-tab`]:{marginTop:`${yt}px`}}},[`&${je}-left`]:{[`> ${je}-nav, > div > ${je}-nav`]:{[`${je}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ae.borderRadiusLG}px 0 0 ${Ae.borderRadiusLG}px`}},[`${je}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:Ae.colorBgContainer}}}},[`&${je}-right`]:{[`> ${je}-nav, > div > ${je}-nav`]:{[`${je}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ae.borderRadiusLG}px ${Ae.borderRadiusLG}px 0`}},[`${je}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:Ae.colorBgContainer}}}}}}},ei=Ae=>{const{componentCls:je,itemHoverColor:Ze,dropdownEdgeChildVerticalPadding:We}=Ae;return{[`${je}-dropdown`]:Object.assign(Object.assign({},(0,br.Wf)(Ae)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ae.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${je}-dropdown-menu`]:{maxHeight:Ae.tabsDropdownHeight,margin:0,padding:`${We}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:Ae.colorBgContainer,backgroundClip:"padding-box",borderRadius:Ae.borderRadiusLG,outline:"none",boxShadow:Ae.boxShadowSecondary,"&-item":Object.assign(Object.assign({},br.vS),{display:"flex",alignItems:"center",minWidth:Ae.tabsDropdownWidth,margin:0,padding:`${Ae.paddingXXS}px ${Ae.paddingSM}px`,color:Ae.colorText,fontWeight:"normal",fontSize:Ae.fontSize,lineHeight:Ae.lineHeight,cursor:"pointer",transition:`all ${Ae.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:Ae.marginSM},color:Ae.colorTextDescription,fontSize:Ae.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Ze}},"&:hover":{background:Ae.controlItemBgHover},"&-disabled":{"&, &:hover":{color:Ae.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Vt=Ae=>{const{componentCls:je,margin:Ze,colorBorderSecondary:We,horizontalMargin:yt,verticalItemPadding:Lt,verticalItemMargin:Jt}=Ae;return{[`${je}-top, ${je}-bottom`]:{flexDirection:"column",[`> ${je}-nav, > div > ${je}-nav`]:{margin:yt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Ae.lineWidth}px ${Ae.lineType} ${We}`,content:"''"},[`${je}-ink-bar`]:{height:Ae.lineWidthBold,"&-animated":{transition:`width ${Ae.motionDurationSlow}, left ${Ae.motionDurationSlow},
right ${Ae.motionDurationSlow}`}},[`${je}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:Ae.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:Ae.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:Ae.boxShadowTabsOverflowRight},[`&${je}-nav-wrap-ping-left::before`]:{opacity:1},[`&${je}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${je}-top`]:{[`> ${je}-nav,
> div > ${je}-nav`]:{"&::before":{bottom:0},[`${je}-ink-bar`]:{bottom:0}}},[`${je}-bottom`]:{[`> ${je}-nav, > div > ${je}-nav`]:{order:1,marginTop:`${Ze}px`,marginBottom:0,"&::before":{top:0},[`${je}-ink-bar`]:{top:0}},[`> ${je}-content-holder, > div > ${je}-content-holder`]:{order:0}},[`${je}-left, ${je}-right`]:{[`> ${je}-nav, > div > ${je}-nav`]:{flexDirection:"column",minWidth:Ae.controlHeight*1.25,[`${je}-tab`]:{padding:Lt,textAlign:"center"},[`${je}-tab + ${je}-tab`]:{margin:Jt},[`${je}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:Ae.controlHeight},"&::before":{top:0,boxShadow:Ae.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:Ae.boxShadowTabsOverflowBottom},[`&${je}-nav-wrap-ping-top::before`]:{opacity:1},[`&${je}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${je}-ink-bar`]:{width:Ae.lineWidthBold,"&-animated":{transition:`height ${Ae.motionDurationSlow}, top ${Ae.motionDurationSlow}`}},[`${je}-nav-list, ${je}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${je}-left`]:{[`> ${je}-nav, > div > ${je}-nav`]:{[`${je}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${je}-content-holder, > div > ${je}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${Ae.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`},[`> ${je}-content > ${je}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:Ae.paddingLG}}}},[`${je}-right`]:{[`> ${je}-nav, > div > ${je}-nav`]:{order:1,[`${je}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${je}-content-holder, > div > ${je}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-Ae.lineWidth},borderRight:{_skip_check_:!0,value:`${Ae.lineWidth}px ${Ae.lineType} ${Ae.colorBorder}`},[`> ${je}-content > ${je}-tabpane`]:{paddingRight:{_skip_check_:!0,value:Ae.paddingLG}}}}}},Rn=Ae=>{const{componentCls:je,cardPaddingSM:Ze,cardPaddingLG:We,horizontalItemPaddingSM:yt,horizontalItemPaddingLG:Lt}=Ae;return{[je]:{"&-small":{[`> ${je}-nav`]:{[`${je}-tab`]:{padding:yt,fontSize:Ae.titleFontSizeSM}}},"&-large":{[`> ${je}-nav`]:{[`${je}-tab`]:{padding:Lt,fontSize:Ae.titleFontSizeLG}}}},[`${je}-card`]:{[`&${je}-small`]:{[`> ${je}-nav`]:{[`${je}-tab`]:{padding:Ze}},[`&${je}-bottom`]:{[`> ${je}-nav ${je}-tab`]:{borderRadius:`0 0 ${Ae.borderRadius}px ${Ae.borderRadius}px`}},[`&${je}-top`]:{[`> ${je}-nav ${je}-tab`]:{borderRadius:`${Ae.borderRadius}px ${Ae.borderRadius}px 0 0`}},[`&${je}-right`]:{[`> ${je}-nav ${je}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Ae.borderRadius}px ${Ae.borderRadius}px 0`}}},[`&${je}-left`]:{[`> ${je}-nav ${je}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Ae.borderRadius}px 0 0 ${Ae.borderRadius}px`}}}},[`&${je}-large`]:{[`> ${je}-nav`]:{[`${je}-tab`]:{padding:We}}}}}},Nn=Ae=>{const{componentCls:je,itemActiveColor:Ze,itemHoverColor:We,iconCls:yt,tabsHorizontalItemMargin:Lt,horizontalItemPadding:Jt,itemSelectedColor:Ht,itemColor:ln}=Ae,yn=`${je}-tab`;return{[yn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Jt,fontSize:Ae.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:ln,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Ze}},(0,br.Qy)(Ae)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-Ae.marginXXS},marginLeft:{_skip_check_:!0,value:Ae.marginXS},color:Ae.colorTextDescription,fontSize:Ae.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${Ae.motionDurationSlow}`,"&:hover":{color:Ae.colorTextHeading}},"&:hover":{color:We},[`&${yn}-active ${yn}-btn`]:{color:Ht,textShadow:Ae.tabsActiveTextShadow},[`&${yn}-disabled`]:{color:Ae.colorTextDisabled,cursor:"not-allowed"},[`&${yn}-disabled ${yn}-btn, &${yn}-disabled ${je}-remove`]:{"&:focus, &:active":{color:Ae.colorTextDisabled}},[`& ${yn}-remove ${yt}`]:{margin:0},[yt]:{marginRight:{_skip_check_:!0,value:Ae.marginSM}}},[`${yn} + ${yn}`]:{margin:{_skip_check_:!0,value:Lt}}}},wn=Ae=>{const{componentCls:je,tabsHorizontalItemMarginRTL:Ze,iconCls:We,cardGutter:yt}=Ae;return{[`${je}-rtl`]:{direction:"rtl",[`${je}-nav`]:{[`${je}-tab`]:{margin:{_skip_check_:!0,value:Ze},[`${je}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[We]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${Ae.marginSM}px`}},[`${je}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${Ae.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${Ae.marginXXS}px`},[We]:{margin:0}}}},[`&${je}-left`]:{[`> ${je}-nav`]:{order:1},[`> ${je}-content-holder`]:{order:0}},[`&${je}-right`]:{[`> ${je}-nav`]:{order:0},[`> ${je}-content-holder`]:{order:1}},[`&${je}-card${je}-top, &${je}-card${je}-bottom`]:{[`> ${je}-nav, > div > ${je}-nav`]:{[`${je}-tab + ${je}-tab`]:{marginRight:{_skip_check_:!0,value:yt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${je}-dropdown-rtl`]:{direction:"rtl"},[`${je}-menu-item`]:{[`${je}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},In=Ae=>{const{componentCls:je,tabsCardPadding:Ze,cardHeight:We,cardGutter:yt,itemHoverColor:Lt,itemActiveColor:Jt,colorBorderSecondary:Ht}=Ae;return{[je]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,br.Wf)(Ae)),{display:"flex",[`> ${je}-nav, > div > ${je}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${je}-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 ${Ae.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${je}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${Ae.motionDurationSlow}`},[`${je}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${je}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${je}-nav-more`]:{position:"relative",padding:Ze,background:"transparent",border:0,color:Ae.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:Ae.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${je}-nav-add`]:Object.assign({minWidth:We,marginLeft:{_skip_check_:!0,value:yt},padding:`0 ${Ae.paddingXS}px`,background:"transparent",border:`${Ae.lineWidth}px ${Ae.lineType} ${Ht}`,borderRadius:`${Ae.borderRadiusLG}px ${Ae.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:Ae.colorText,transition:`all ${Ae.motionDurationSlow} ${Ae.motionEaseInOut}`,"&:hover":{color:Lt},"&:active, &:focus:not(:focus-visible)":{color:Jt}},(0,br.Qy)(Ae))},[`${je}-extra-content`]:{flex:"none"},[`${je}-ink-bar`]:{position:"absolute",background:Ae.inkBarColor,pointerEvents:"none"}}),Nn(Ae)),{[`${je}-content`]:{position:"relative",width:"100%"},[`${je}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${je}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${je}-centered`]:{[`> ${je}-nav, > div > ${je}-nav`]:{[`${je}-nav-wrap`]:{[`&:not([class*='${je}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var xn=(0,wr.Z)("Tabs",Ae=>{const je=(0,qn.TS)(Ae,{tabsCardPadding:Ae.cardPadding||`${(Ae.cardHeight-Math.round(Ae.fontSize*Ae.lineHeight))/2-Ae.lineWidth}px ${Ae.padding}px`,dropdownEdgeChildVerticalPadding:Ae.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Ae.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${Ae.horizontalItemGutter}px`});return[Rn(je),wn(je),Vt(je),ei(je),Nr(je),In(je),Qn(je)]},Ae=>{const je=Ae.controlHeightLG;return{zIndexPopup:Ae.zIndexPopupBase+50,cardBg:Ae.colorFillAlter,cardHeight:je,cardPadding:"",cardPaddingSM:`${Ae.paddingXXS*1.5}px ${Ae.padding}px`,cardPaddingLG:`${Ae.paddingXS}px ${Ae.padding}px ${Ae.paddingXXS*1.5}px`,titleFontSize:Ae.fontSize,titleFontSizeLG:Ae.fontSizeLG,titleFontSizeSM:Ae.fontSize,inkBarColor:Ae.colorPrimary,horizontalMargin:`0 0 ${Ae.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${Ae.paddingSM}px 0`,horizontalItemPaddingSM:`${Ae.paddingXS}px 0`,horizontalItemPaddingLG:`${Ae.padding}px 0`,verticalItemPadding:`${Ae.paddingXS}px ${Ae.paddingLG}px`,verticalItemMargin:`${Ae.margin}px 0 0 0`,itemColor:Ae.colorText,itemSelectedColor:Ae.colorPrimary,itemHoverColor:Ae.colorPrimaryHover,itemActiveColor:Ae.colorPrimaryActive,cardGutter:Ae.marginXXS/2}}),kn=function(Ae,je){var Ze={};for(var We in Ae)Object.prototype.hasOwnProperty.call(Ae,We)&&je.indexOf(We)<0&&(Ze[We]=Ae[We]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,We=Object.getOwnPropertySymbols(Ae);yt<We.length;yt++)je.indexOf(We[yt])<0&&Object.prototype.propertyIsEnumerable.call(Ae,We[yt])&&(Ze[We[yt]]=Ae[We[yt]]);return Ze};const gn=Ae=>{const{type:je,className:Ze,rootClassName:We,size:yt,onEdit:Lt,hideAdd:Jt,centered:Ht,addIcon:ln,popupClassName:yn,children:En,items:Mn,animated:Kt,style:hn,indicatorSize:Hn}=Ae,Zn=kn(Ae,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Kn,moreIcon:jn=Ie.createElement(Me.Z,null)}=Zn,{direction:nr,tabs:On,getPrefixCls:cr,getPopupContainer:Mt}=Ie.useContext(it.E_),an=cr("tabs",Kn),[cn,Cn]=xn(an);let un;je==="editable-card"&&(un={onEdit:(pr,mr)=>{let{key:Pr,event:Ir}=mr;Lt==null||Lt(pr==="add"?Ir:Pr,pr)},removeIcon:Ie.createElement(me.Z,null),addIcon:ln||Ie.createElement(Pe.Z,null),showAdd:Jt!==!0});const vn=cr(),pn=ir(Mn,En),Pn=Ln(an,Kt),Vn=(0,Ot.Z)(yt),er=Object.assign(Object.assign({},On==null?void 0:On.style),hn);return cn(Ie.createElement(Le,Object.assign({direction:nr,getPopupContainer:Mt,moreTransitionName:`${vn}-slide-up`},Zn,{items:pn,className:ge()({[`${an}-${Vn}`]:Vn,[`${an}-card`]:["card","editable-card"].includes(je),[`${an}-editable-card`]:je==="editable-card",[`${an}-centered`]:Ht},On==null?void 0:On.className,Ze,We,Cn),popupClassName:ge()(yn,Cn),style:er,editable:un,moreIcon:jn,prefixCls:an,animated:Pn,indicatorSize:Hn!=null?Hn:On==null?void 0:On.indicatorSize})))};gn.TabPane=Qt;var bt=gn},17574:function(An,Ut,oe){"use strict";oe.d(Ut,{default:function(){return Qe}});var me=oe(38028),Me=oe(77654),Pe=oe(52671),pt=oe(8657),ge=oe(60499),ke=oe(59301),he={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"},we=he,Ee=oe(7657),ze=function(Ct,Yt){return ke.createElement(Ee.Z,(0,ge.Z)({},Ct,{ref:Yt,icon:we}))},vt=ke.forwardRef(ze),Ie=vt,He=oe(92310),st=oe.n(He),Je=oe(35654),Ue=oe(71430),gt=oe(36355),Et=oe(56082),At=oe(62892),dt=oe(20648);const nt=4;function Ve(be){const{dropPosition:Ct,dropLevelOffset:Yt,prefixCls:Zt,indent:at,direction:ot="ltr"}=be,Nt=ot==="ltr"?"left":"right",Sn=ot==="ltr"?"right":"left",$t={[Nt]:-Yt*at+nt,[Sn]:0};switch(Ct){case-1:$t.top=-3;break;case 1:$t.bottom=-3;break;default:$t.bottom=-3,$t[Nt]=at+nt;break}return ke.createElement("div",{style:$t,className:`${Zt}-drop-indicator`})}var Se=oe(71997),Ye=ke.forwardRef((be,Ct)=>{const{getPrefixCls:Yt,direction:Zt,virtual:at,tree:ot}=ke.useContext(gt.E_),{prefixCls:Nt,className:Sn,showIcon:$t=!1,showLine:mn,switcherIcon:on,blockNode:nn=!1,children:en,checkable:ye=!1,selectable:ue=!0,draggable:se,motion:ce,style:de}=be,ae=Yt("tree",Nt),Be=Yt(),ft=ce!=null?ce:Object.assign(Object.assign({},(0,At.Z)(Be)),{motionAppear:!1}),Fe=Object.assign(Object.assign({},be),{checkable:ye,selectable:ue,showIcon:$t,motion:ft,blockNode:nn,showLine:!!mn,dropIndicatorRender:Ve}),[De,mt]=(0,dt.ZP)(ae),rt=ke.useMemo(()=>{if(!se)return!1;let xt={};switch(typeof se){case"function":xt.nodeDraggable=se;break;case"object":xt=Object.assign({},se);break;default:break}return xt.icon!==!1&&(xt.icon=xt.icon||ke.createElement(Et.Z,null)),xt},[se]),Ge=xt=>ke.createElement(Se.Z,{prefixCls:ae,switcherIcon:on,treeNodeProps:xt,showLine:mn});return De(ke.createElement(me.Z,Object.assign({itemHeight:20,ref:Ct,virtual:at},Fe,{style:Object.assign(Object.assign({},ot==null?void 0:ot.style),de),prefixCls:ae,className:st()({[`${ae}-icon-hide`]:!$t,[`${ae}-block-node`]:nn,[`${ae}-unselectable`]:!ue,[`${ae}-rtl`]:Zt==="rtl"},ot==null?void 0:ot.className,Sn,mt),direction:Zt,checkable:ye&&ke.createElement("span",{className:`${ae}-checkbox-inner`}),selectable:ue,switcherIcon:Ge,draggable:rt}),en))}),ht;(function(be){be[be.None=0]="None",be[be.Start=1]="Start",be[be.End=2]="End"})(ht||(ht={}));function Xe(be,Ct){function Yt(Zt){const{key:at,children:ot}=Zt;Ct(at,Zt)!==!1&&Xe(ot||[],Ct)}be.forEach(Yt)}function ut(be){let{treeData:Ct,expandedKeys:Yt,startKey:Zt,endKey:at}=be;const ot=[];let Nt=ht.None;if(Zt&&Zt===at)return[Zt];if(!Zt||!at)return[];function Sn($t){return $t===Zt||$t===at}return Xe(Ct,$t=>{if(Nt===ht.End)return!1;if(Sn($t)){if(ot.push($t),Nt===ht.None)Nt=ht.Start;else if(Nt===ht.Start)return Nt=ht.End,!1}else Nt===ht.Start&&ot.push($t);return Yt.includes($t)}),ot}function Oe(be,Ct){const Yt=(0,Me.Z)(Ct),Zt=[];return Xe(be,(at,ot)=>{const Nt=Yt.indexOf(at);return Nt!==-1&&(Zt.push(ot),Yt.splice(Nt,1)),!!Yt.length}),Zt}var Pt=function(be,Ct){var Yt={};for(var Zt in be)Object.prototype.hasOwnProperty.call(be,Zt)&&Ct.indexOf(Zt)<0&&(Yt[Zt]=be[Zt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Zt=Object.getOwnPropertySymbols(be);at<Zt.length;at++)Ct.indexOf(Zt[at])<0&&Object.prototype.propertyIsEnumerable.call(be,Zt[at])&&(Yt[Zt[at]]=be[Zt[at]]);return Yt};function qe(be){const{isLeaf:Ct,expanded:Yt}=be;return Ct?ke.createElement(Pe.Z,null):Yt?ke.createElement(pt.Z,null):ke.createElement(Ie,null)}function zt(be){let{treeData:Ct,children:Yt}=be;return Ct||(0,Ue.zn)(Yt)}const Dt=(be,Ct)=>{var{defaultExpandAll:Yt,defaultExpandParent:Zt,defaultExpandedKeys:at}=be,ot=Pt(be,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Nt=ke.useRef(),Sn=ke.useRef(),$t=()=>{const{keyEntities:rt}=(0,Ue.I8)(zt(ot));let Ge;return Yt?Ge=Object.keys(rt):Zt?Ge=(0,Je.r7)(ot.expandedKeys||at||[],rt):Ge=ot.expandedKeys||at,Ge},[mn,on]=ke.useState(ot.selectedKeys||ot.defaultSelectedKeys||[]),[nn,en]=ke.useState(()=>$t());ke.useEffect(()=>{"selectedKeys"in ot&&on(ot.selectedKeys)},[ot.selectedKeys]),ke.useEffect(()=>{"expandedKeys"in ot&&en(ot.expandedKeys)},[ot.expandedKeys]);const ye=(rt,Ge)=>{var xt;return"expandedKeys"in ot||en(rt),(xt=ot.onExpand)===null||xt===void 0?void 0:xt.call(ot,rt,Ge)},ue=(rt,Ge)=>{var xt;const{multiple:Xt}=ot,{node:ct,nativeEvent:Rt}=Ge,{key:rn=""}=ct,lt=zt(ot),Le=Object.assign(Object.assign({},Ge),{selected:!0}),it=(Rt==null?void 0:Rt.ctrlKey)||(Rt==null?void 0:Rt.metaKey),Ot=Rt==null?void 0:Rt.shiftKey;let Ft;Xt&&it?(Ft=rt,Nt.current=rn,Sn.current=Ft,Le.selectedNodes=Oe(lt,Ft)):Xt&&Ot?(Ft=Array.from(new Set([].concat((0,Me.Z)(Sn.current||[]),(0,Me.Z)(ut({treeData:lt,expandedKeys:nn,startKey:rn,endKey:Nt.current}))))),Le.selectedNodes=Oe(lt,Ft)):(Ft=[rn],Nt.current=rn,Sn.current=Ft,Le.selectedNodes=Oe(lt,Ft)),(xt=ot.onSelect)===null||xt===void 0||xt.call(ot,Ft,Le),"selectedKeys"in ot||on(Ft)},{getPrefixCls:se,direction:ce}=ke.useContext(gt.E_),{prefixCls:de,className:ae,showIcon:Be=!0,expandAction:ft="click"}=ot,Fe=Pt(ot,["prefixCls","className","showIcon","expandAction"]),De=se("tree",de),mt=st()(`${De}-directory`,{[`${De}-directory-rtl`]:ce==="rtl"},ae);return ke.createElement(Ye,Object.assign({icon:qe,ref:Ct,blockNode:!0},Fe,{showIcon:Be,expandAction:ft,prefixCls:De,className:mt,expandedKeys:nn,selectedKeys:mn,onSelect:ue,onExpand:ye}))};var St=ke.forwardRef(Dt);const It=Ye;It.DirectoryTree=St,It.TreeNode=me.O;var Qe=It},20648:function(An,Ut,oe){"use strict";oe.d(Ut,{TM:function(){return He},Yk:function(){return Ie}});var me=oe(36237),Me=oe(98447),Pe=oe(17313),pt=oe(8378),ge=oe(37613),ke=oe(83116);const he=new me.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),we=(st,Je)=>({[`.${st}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Je.motionDurationSlow}`}}}),Ee=(st,Je)=>({[`.${st}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Je.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Je.lineWidthBold}px solid ${Je.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ze=(st,Je)=>{const{treeCls:Ue,treeNodeCls:gt,treeNodePadding:Et,titleHeight:At,nodeSelectedBg:dt,nodeHoverBg:nt}=Je,Ve=Je.paddingXS;return{[Ue]:Object.assign(Object.assign({},(0,Pe.Wf)(Je)),{background:Je.colorBgContainer,borderRadius:Je.borderRadius,transition:`background-color ${Je.motionDurationSlow}`,[`&${Ue}-rtl`]:{[`${Ue}-switcher`]:{"&_close":{[`${Ue}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Ue}-active-focused)`]:Object.assign({},(0,Pe.oN)(Je)),[`${Ue}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Ue}-block-node`]:{[`${Ue}-list-holder-inner`]:{alignItems:"stretch",[`${Ue}-node-content-wrapper`]:{flex:"auto"},[`${gt}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Et,insetInlineStart:0,border:`1px solid ${Je.colorPrimary}`,opacity:0,animationName:he,animationDuration:Je.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${gt}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Et}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Ue}-node-content-wrapper`]:{color:Je.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Ue}-node-content-wrapper`]:Object.assign({},(0,Pe.oN)(Je)),[`&:not(${gt}-disabled).filter-node ${Ue}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${Ue}-draggable-icon`]:{flexShrink:0,width:At,lineHeight:`${At}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${Je.motionDurationSlow}`,[`${gt}:hover &`]:{opacity:.45}},[`&${gt}-disabled`]:{[`${Ue}-draggable-icon`]:{visibility:"hidden"}}}},[`${Ue}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:At}},[`${Ue}-draggable-icon`]:{visibility:"hidden"},[`${Ue}-switcher`]:Object.assign(Object.assign({},we(st,Je)),{position:"relative",flex:"none",alignSelf:"stretch",width:At,margin:0,lineHeight:`${At}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${Ue}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:Je.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:At/2,bottom:-Et,marginInlineStart:-1,borderInlineEnd:`1px solid ${Je.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:At/2*.8,height:At/2,borderBottom:`1px solid ${Je.colorBorder}`,content:'""'}}}),[`${Ue}-checkbox`]:{top:"initial",marginInlineEnd:Ve},[`${Ue}-node-content-wrapper, ${Ue}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:At,margin:0,padding:`0 ${Je.paddingXS/2}px`,color:"inherit",lineHeight:`${At}px`,background:"transparent",borderRadius:Je.borderRadius,cursor:"pointer",transition:`all ${Je.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:nt},[`&${Ue}-node-selected`]:{backgroundColor:dt},[`${Ue}-iconEle`]:{display:"inline-block",width:At,height:At,lineHeight:`${At}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Ue}-unselectable ${Ue}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Ue}-node-content-wrapper`]:Object.assign({lineHeight:`${At}px`,userSelect:"none"},Ee(st,Je)),[`${gt}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${Je.colorPrimary}`}},"&-show-line":{[`${Ue}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:At/2,bottom:-Et,borderInlineEnd:`1px solid ${Je.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Ue}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${gt}-leaf-last`]:{[`${Ue}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${At/2}px !important`}}}}})}},vt=st=>{const{treeCls:Je,treeNodeCls:Ue,treeNodePadding:gt,directoryNodeSelectedBg:Et,directoryNodeSelectedColor:At}=st;return{[`${Je}${Je}-directory`]:{[Ue]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:gt,insetInlineStart:0,transition:`background-color ${st.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:st.controlItemBgHover}},"> *":{zIndex:1},[`${Je}-switcher`]:{transition:`color ${st.motionDurationMid}`},[`${Je}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${Je}-node-selected`]:{color:At,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:Et},[`${Je}-switcher`]:{color:At},[`${Je}-node-content-wrapper`]:{color:At,background:"transparent"}}}}}},Ie=(st,Je)=>{const Ue=`.${st}`,gt=`${Ue}-treenode`,Et=Je.paddingXS/2,At=(0,ge.TS)(Je,{treeCls:Ue,treeNodeCls:gt,treeNodePadding:Et});return[ze(st,At),vt(At)]},He=st=>{const{controlHeightSM:Je}=st;return{titleHeight:Je,nodeHoverBg:st.controlItemBgHover,nodeSelectedBg:st.controlItemBgActive}};Ut.ZP=(0,ke.Z)("Tree",(st,Je)=>{let{prefixCls:Ue}=Je;return[{[st.componentCls]:(0,Me.C2)(`${Ue}-checkbox`,st)},Ie(Ue,st),(0,pt.Z)(st)]},st=>{const{colorTextLightSolid:Je,colorPrimary:Ue}=st;return Object.assign(Object.assign({},He(st)),{directoryNodeSelectedColor:Je,directoryNodeSelectedBg:Ue})})},71997:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return gt}});var me=oe(60499),Me=oe(59301),Pe={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"},pt=Pe,ge=oe(7657),ke=function(At,dt){return Me.createElement(ge.Z,(0,me.Z)({},At,{ref:dt,icon:pt}))},he=Me.forwardRef(ke),we=he,Ee=oe(52671),ze=oe(58617),vt=oe(15075),Ie=oe(43531),He=oe(92310),st=oe.n(He),Je=oe(92343),gt=Et=>{const{prefixCls:At,switcherIcon:dt,treeNodeProps:nt,showLine:Ve}=Et,{isLeaf:Se,expanded:$e,loading:Ye}=nt;if(Ye)return Me.createElement(ze.Z,{className:`${At}-switcher-loading-icon`});let ht;if(Ve&&typeof Ve=="object"&&(ht=Ve.showLeafIcon),Se){if(!Ve)return null;if(typeof ht!="boolean"&&ht){const Oe=typeof ht=="function"?ht(nt):ht,Pt=`${At}-switcher-line-custom-icon`;return(0,Je.l$)(Oe)?(0,Je.Tm)(Oe,{className:st()(Oe.props.className||"",Pt)}):Oe}return ht?Me.createElement(Ee.Z,{className:`${At}-switcher-line-icon`}):Me.createElement("span",{className:`${At}-switcher-leaf-line`})}const Xe=`${At}-switcher-icon`,ut=typeof dt=="function"?dt(nt):dt;return(0,Je.l$)(ut)?(0,Je.Tm)(ut,{className:st()(ut.props.className||"",Xe)}):ut!==void 0?ut:Ve?$e?Me.createElement(vt.Z,{className:`${At}-switcher-line-icon`}):Me.createElement(Ie.Z,{className:`${At}-switcher-line-icon`}):Me.createElement(we,{className:Xe})}},99498:function(An,Ut,oe){(function(me){me(oe(89780))})(function(me){me.defineOption("placeholder","",function(we,Ee,ze){var vt=ze&&ze!=me.Init;if(Ee&&!vt)we.on("blur",ge),we.on("change",ke),we.on("swapDoc",ke),me.on(we.getInputField(),"compositionupdate",we.state.placeholderCompose=function(){pt(we)}),ke(we);else if(!Ee&&vt){we.off("blur",ge),we.off("change",ke),we.off("swapDoc",ke),me.off(we.getInputField(),"compositionupdate",we.state.placeholderCompose),Me(we);var Ie=we.getWrapperElement();Ie.className=Ie.className.replace(" CodeMirror-empty","")}Ee&&!we.hasFocus()&&ge(we)});function Me(we){we.state.placeholder&&(we.state.placeholder.parentNode.removeChild(we.state.placeholder),we.state.placeholder=null)}function Pe(we){Me(we);var Ee=we.state.placeholder=document.createElement("pre");Ee.style.cssText="height: 0; overflow: visible",Ee.style.direction=we.getOption("direction"),Ee.className="CodeMirror-placeholder CodeMirror-line-like";var ze=we.getOption("placeholder");typeof ze=="string"&&(ze=document.createTextNode(ze)),Ee.appendChild(ze),we.display.lineSpace.insertBefore(Ee,we.display.lineSpace.firstChild)}function pt(we){setTimeout(function(){var Ee=!1,ze=we.getInputField();ze.nodeName=="TEXTAREA"?Ee=!ze.value:we.lineCount()==1&&(Ee=!/[^\u200b]/.test(ze.querySelector(".CodeMirror-line").textContent)),Ee?Pe(we):Me(we)},20)}function ge(we){he(we)&&Pe(we)}function ke(we){var Ee=we.getWrapperElement(),ze=he(we);Ee.className=Ee.className.replace(" CodeMirror-empty","")+(ze?" CodeMirror-empty":""),ze?Pe(we):Me(we)}function he(we){return we.lineCount()===1&&we.getLine(0)===""}})},25717:function(An,Ut,oe){(function(me){me(oe(89780))})(function(me){var Me={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Pe=me.Pos;me.defineOption("autoCloseBrackets",!1,function(Je,Ue,gt){gt&&gt!=me.Init&&(Je.removeKeyMap(ge),Je.state.closeBrackets=null),Ue&&(ke(pt(Ue,"pairs")),Je.state.closeBrackets=Ue,Je.addKeyMap(ge))});function pt(Je,Ue){return Ue=="pairs"&&typeof Je=="string"?Je:typeof Je=="object"&&Je[Ue]!=null?Je[Ue]:Me[Ue]}var ge={Backspace:Ee,Enter:ze};function ke(Je){for(var Ue=0;Ue<Je.length;Ue++){var gt=Je.charAt(Ue),Et="'"+gt+"'";ge[Et]||(ge[Et]=he(gt))}}ke(Me.pairs+"`");function he(Je){return function(Ue){return Ie(Ue,Je)}}function we(Je){var Ue=Je.state.closeBrackets;if(!Ue||Ue.override)return Ue;var gt=Je.getModeAt(Je.getCursor());return gt.closeBrackets||Ue}function Ee(Je){var Ue=we(Je);if(!Ue||Je.getOption("disableInput"))return me.Pass;for(var gt=pt(Ue,"pairs"),Et=Je.listSelections(),At=0;At<Et.length;At++){if(!Et[At].empty())return me.Pass;var dt=He(Je,Et[At].head);if(!dt||gt.indexOf(dt)%2!=0)return me.Pass}for(var At=Et.length-1;At>=0;At--){var nt=Et[At].head;Je.replaceRange("",Pe(nt.line,nt.ch-1),Pe(nt.line,nt.ch+1),"+delete")}}function ze(Je){var Ue=we(Je),gt=Ue&&pt(Ue,"explode");if(!gt||Je.getOption("disableInput"))return me.Pass;for(var Et=Je.listSelections(),At=0;At<Et.length;At++){if(!Et[At].empty())return me.Pass;var dt=He(Je,Et[At].head);if(!dt||gt.indexOf(dt)%2!=0)return me.Pass}Je.operation(function(){var nt=Je.lineSeparator()||`
`;Je.replaceSelection(nt+nt,null),Je.execCommand("goCharLeft"),Et=Je.listSelections();for(var Ve=0;Ve<Et.length;Ve++){var Se=Et[Ve].head.line;Je.indentLine(Se,null,!0),Je.indentLine(Se+1,null,!0)}})}function vt(Je){var Ue=me.cmpPos(Je.anchor,Je.head)>0;return{anchor:new Pe(Je.anchor.line,Je.anchor.ch+(Ue?-1:1)),head:new Pe(Je.head.line,Je.head.ch+(Ue?1:-1))}}function Ie(Je,Ue){var gt=we(Je);if(!gt||Je.getOption("disableInput"))return me.Pass;var Et=pt(gt,"pairs"),At=Et.indexOf(Ue);if(At==-1)return me.Pass;for(var dt=pt(gt,"closeBefore"),nt=pt(gt,"triples"),Ve=Et.charAt(At+1)==Ue,Se=Je.listSelections(),$e=At%2==0,Ye,ht=0;ht<Se.length;ht++){var Xe=Se[ht],ut=Xe.head,Oe,Pt=Je.getRange(ut,Pe(ut.line,ut.ch+1));if($e&&!Xe.empty())Oe="surround";else if((Ve||!$e)&&Pt==Ue)Ve&&st(Je,ut)?Oe="both":nt.indexOf(Ue)>=0&&Je.getRange(ut,Pe(ut.line,ut.ch+3))==Ue+Ue+Ue?Oe="skipThree":Oe="skip";else if(Ve&&ut.ch>1&&nt.indexOf(Ue)>=0&&Je.getRange(Pe(ut.line,ut.ch-2),ut)==Ue+Ue){if(ut.ch>2&&/\bstring/.test(Je.getTokenTypeAt(Pe(ut.line,ut.ch-2))))return me.Pass;Oe="addFour"}else if(Ve){var qe=ut.ch==0?" ":Je.getRange(Pe(ut.line,ut.ch-1),ut);if(!me.isWordChar(Pt)&&qe!=Ue&&!me.isWordChar(qe))Oe="both";else return me.Pass}else if($e&&(Pt.length===0||/\s/.test(Pt)||dt.indexOf(Pt)>-1))Oe="both";else return me.Pass;if(!Ye)Ye=Oe;else if(Ye!=Oe)return me.Pass}var zt=At%2?Et.charAt(At-1):Ue,Dt=At%2?Ue:Et.charAt(At+1);Je.operation(function(){if(Ye=="skip")Je.execCommand("goCharRight");else if(Ye=="skipThree")for(var Bt=0;Bt<3;Bt++)Je.execCommand("goCharRight");else if(Ye=="surround"){for(var St=Je.getSelections(),Bt=0;Bt<St.length;Bt++)St[Bt]=zt+St[Bt]+Dt;Je.replaceSelections(St,"around"),St=Je.listSelections().slice();for(var Bt=0;Bt<St.length;Bt++)St[Bt]=vt(St[Bt]);Je.setSelections(St)}else Ye=="both"?(Je.replaceSelection(zt+Dt,null),Je.triggerElectric(zt+Dt),Je.execCommand("goCharLeft")):Ye=="addFour"&&(Je.replaceSelection(zt+zt+zt+zt,"before"),Je.execCommand("goCharRight"))})}function He(Je,Ue){var gt=Je.getRange(Pe(Ue.line,Ue.ch-1),Pe(Ue.line,Ue.ch+1));return gt.length==2?gt:null}function st(Je,Ue){var gt=Je.getTokenAt(Pe(Ue.line,Ue.ch+1));return/\bstring/.test(gt.type)&&gt.start==Ue.ch&&(Ue.ch==0||!/\bstring/.test(Je.getTokenTypeAt(Ue)))}})},6313:function(An,Ut,oe){(function(me){me(oe(89780),oe(32855))})(function(me){me.defineOption("autoCloseTags",!1,function(Ee,ze,vt){if(vt!=me.Init&&vt&&Ee.removeKeyMap("autoCloseTags"),!!ze){var Ie={name:"autoCloseTags"};(typeof ze!="object"||ze.whenClosing!==!1)&&(Ie["'/'"]=function(He){return ke(He)}),(typeof ze!="object"||ze.whenOpening!==!1)&&(Ie["'>'"]=function(He){return pt(He)}),Ee.addKeyMap(Ie)}});var Me=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Pe=["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 pt(Ee){if(Ee.getOption("disableInput"))return me.Pass;for(var ze=Ee.listSelections(),vt=[],Ie=Ee.getOption("autoCloseTags"),He=0;He<ze.length;He++){if(!ze[He].empty())return me.Pass;var st=ze[He].head,Je=Ee.getTokenAt(st),Ue=me.innerMode(Ee.getMode(),Je.state),gt=Ue.state,Et=Ue.mode.xmlCurrentTag&&Ue.mode.xmlCurrentTag(gt),At=Et&&Et.name;if(!At)return me.Pass;var dt=Ue.mode.configuration=="html",nt=typeof Ie=="object"&&Ie.dontCloseTags||dt&&Me,Ve=typeof Ie=="object"&&Ie.indentTags||dt&&Pe;Je.end>st.ch&&(At=At.slice(0,At.length-Je.end+st.ch));var Se=At.toLowerCase();if(!At||Je.type=="string"&&(Je.end!=st.ch||!/[\"\']/.test(Je.string.charAt(Je.string.length-1))||Je.string.length==1)||Je.type=="tag"&&Et.close||Je.string.indexOf("/")==st.ch-Je.start-1||nt&&he(nt,Se)>-1||we(Ee,Ue.mode.xmlCurrentContext&&Ue.mode.xmlCurrentContext(gt)||[],At,st,!0))return me.Pass;var $e=typeof Ie=="object"&&Ie.emptyTags;if($e&&he($e,At)>-1){vt[He]={text:"/>",newPos:me.Pos(st.line,st.ch+2)};continue}var Ye=Ve&&he(Ve,Se)>-1;vt[He]={indent:Ye,text:">"+(Ye?`
`:"")+"</"+At+">",newPos:Ye?me.Pos(st.line+1,0):me.Pos(st.line,st.ch+1)}}for(var ht=typeof Ie=="object"&&Ie.dontIndentOnAutoClose,He=ze.length-1;He>=0;He--){var Xe=vt[He];Ee.replaceRange(Xe.text,ze[He].head,ze[He].anchor,"+insert");var ut=Ee.listSelections().slice(0);ut[He]={head:Xe.newPos,anchor:Xe.newPos},Ee.setSelections(ut),!ht&&Xe.indent&&(Ee.indentLine(Xe.newPos.line,null,!0),Ee.indentLine(Xe.newPos.line+1,null,!0))}}function ge(Ee,ze){for(var vt=Ee.listSelections(),Ie=[],He=ze?"/":"</",st=Ee.getOption("autoCloseTags"),Je=typeof st=="object"&&st.dontIndentOnSlash,Ue=0;Ue<vt.length;Ue++){if(!vt[Ue].empty())return me.Pass;var gt=vt[Ue].head,Et=Ee.getTokenAt(gt),At=me.innerMode(Ee.getMode(),Et.state),dt=At.state;if(ze&&(Et.type=="string"||Et.string.charAt(0)!="<"||Et.start!=gt.ch-1))return me.Pass;var nt,Ve=At.mode.name!="xml"&&Ee.getMode().name=="htmlmixed";if(Ve&&At.mode.name=="javascript")nt=He+"script";else if(Ve&&At.mode.name=="css")nt=He+"style";else{var Se=At.mode.xmlCurrentContext&&At.mode.xmlCurrentContext(dt);if(!Se||Se.length&&we(Ee,Se,Se[Se.length-1],gt))return me.Pass;nt=He+Se[Se.length-1]}Ee.getLine(gt.line).charAt(Et.end)!=">"&&(nt+=">"),Ie[Ue]=nt}if(Ee.replaceSelections(Ie),vt=Ee.listSelections(),!Je)for(var Ue=0;Ue<vt.length;Ue++)(Ue==vt.length-1||vt[Ue].head.line<vt[Ue+1].head.line)&&Ee.indentLine(vt[Ue].head.line)}function ke(Ee){return Ee.getOption("disableInput")?me.Pass:ge(Ee,!0)}me.commands.closeTag=function(Ee){return ge(Ee)};function he(Ee,ze){if(Ee.indexOf)return Ee.indexOf(ze);for(var vt=0,Ie=Ee.length;vt<Ie;++vt)if(Ee[vt]==ze)return vt;return-1}function we(Ee,ze,vt,Ie,He){if(!me.scanForClosingTag)return!1;var st=Math.min(Ee.lastLine()+1,Ie.line+500),Je=me.scanForClosingTag(Ee,Ie,null,st);if(!Je||Je.tag!=vt)return!1;for(var Ue=He?1:0,gt=ze.length-1;gt>=0&&ze[gt]==vt;gt--)++Ue;Ie=Je.to;for(var gt=1;gt<Ue;gt++){var Et=me.scanForClosingTag(Ee,Ie,null,st);if(!Et||Et.tag!=vt)return!1;Ie=Et.to}return!0}})},32855:function(An,Ut,oe){(function(me){me(oe(89780))})(function(me){"use strict";var Me=me.Pos;function Pe(gt,Et){return gt.line-Et.line||gt.ch-Et.ch}var pt="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",ge=pt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ke=new RegExp("<(/?)(["+pt+"]["+ge+"]*)","g");function he(gt,Et,At,dt){this.line=Et,this.ch=At,this.cm=gt,this.text=gt.getLine(Et),this.min=dt?Math.max(dt.from,gt.firstLine()):gt.firstLine(),this.max=dt?Math.min(dt.to-1,gt.lastLine()):gt.lastLine()}function we(gt,Et){var At=gt.cm.getTokenTypeAt(Me(gt.line,Et));return At&&/\btag\b/.test(At)}function Ee(gt){if(!(gt.line>=gt.max))return gt.ch=0,gt.text=gt.cm.getLine(++gt.line),!0}function ze(gt){if(!(gt.line<=gt.min))return gt.text=gt.cm.getLine(--gt.line),gt.ch=gt.text.length,!0}function vt(gt){for(;;){var Et=gt.text.indexOf(">",gt.ch);if(Et==-1){if(Ee(gt))continue;return}if(!we(gt,Et+1)){gt.ch=Et+1;continue}var At=gt.text.lastIndexOf("/",Et),dt=At>-1&&!/\S/.test(gt.text.slice(At+1,Et));return gt.ch=Et+1,dt?"selfClose":"regular"}}function Ie(gt){for(;;){var Et=gt.ch?gt.text.lastIndexOf("<",gt.ch-1):-1;if(Et==-1){if(ze(gt))continue;return}if(!we(gt,Et+1)){gt.ch=Et;continue}ke.lastIndex=Et,gt.ch=Et;var At=ke.exec(gt.text);if(At&&At.index==Et)return At}}function He(gt){for(;;){ke.lastIndex=gt.ch;var Et=ke.exec(gt.text);if(!Et){if(Ee(gt))continue;return}if(!we(gt,Et.index+1)){gt.ch=Et.index+1;continue}return gt.ch=Et.index+Et[0].length,Et}}function st(gt){for(;;){var Et=gt.ch?gt.text.lastIndexOf(">",gt.ch-1):-1;if(Et==-1){if(ze(gt))continue;return}if(!we(gt,Et+1)){gt.ch=Et;continue}var At=gt.text.lastIndexOf("/",Et),dt=At>-1&&!/\S/.test(gt.text.slice(At+1,Et));return gt.ch=Et+1,dt?"selfClose":"regular"}}function Je(gt,Et){for(var At=[];;){var dt=He(gt),nt,Ve=gt.line,Se=gt.ch-(dt?dt[0].length:0);if(!dt||!(nt=vt(gt)))return;if(nt!="selfClose")if(dt[1]){for(var $e=At.length-1;$e>=0;--$e)if(At[$e]==dt[2]){At.length=$e;break}if($e<0&&(!Et||Et==dt[2]))return{tag:dt[2],from:Me(Ve,Se),to:Me(gt.line,gt.ch)}}else At.push(dt[2])}}function Ue(gt,Et){for(var At=[];;){var dt=st(gt);if(!dt)return;if(dt=="selfClose"){Ie(gt);continue}var nt=gt.line,Ve=gt.ch,Se=Ie(gt);if(!Se)return;if(Se[1])At.push(Se[2]);else{for(var $e=At.length-1;$e>=0;--$e)if(At[$e]==Se[2]){At.length=$e;break}if($e<0&&(!Et||Et==Se[2]))return{tag:Se[2],from:Me(gt.line,gt.ch),to:Me(nt,Ve)}}}}me.registerHelper("fold","xml",function(gt,Et){for(var At=new he(gt,Et.line,0);;){var dt=He(At);if(!dt||At.line!=Et.line)return;var nt=vt(At);if(!nt)return;if(!dt[1]&&nt!="selfClose"){var Ve=Me(At.line,At.ch),Se=Je(At,dt[2]);return Se&&Pe(Se.from,Ve)>0?{from:Ve,to:Se.from}:null}}}),me.findMatchingTag=function(gt,Et,At){var dt=new he(gt,Et.line,Et.ch,At);if(!(dt.text.indexOf(">")==-1&&dt.text.indexOf("<")==-1)){var nt=vt(dt),Ve=nt&&Me(dt.line,dt.ch),Se=nt&&Ie(dt);if(!(!nt||!Se||Pe(dt,Et)>0)){var $e={from:Me(dt.line,dt.ch),to:Ve,tag:Se[2]};return nt=="selfClose"?{open:$e,close:null,at:"open"}:Se[1]?{open:Ue(dt,Se[2]),close:$e,at:"close"}:(dt=new he(gt,Ve.line,Ve.ch,At),{open:$e,close:Je(dt,Se[2]),at:"open"})}}},me.findEnclosingTag=function(gt,Et,At,dt){for(var nt=new he(gt,Et.line,Et.ch,At);;){var Ve=Ue(nt,dt);if(!Ve)break;var Se=new he(gt,Et.line,Et.ch,At),$e=Je(Se,Ve.tag);if($e)return{open:Ve,close:$e}}},me.scanForClosingTag=function(gt,Et,At,dt){var nt=new he(gt,Et.line,Et.ch,dt?{from:0,to:dt}:null);return Je(nt,At)}})},89780:function(An){(function(Ut,oe){An.exports=oe()})(this,function(){"use strict";var Ut=navigator.userAgent,oe=navigator.platform,me=/gecko\/\d/i.test(Ut),Me=/MSIE \d/.test(Ut),Pe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ut),pt=/Edge\/(\d+)/.exec(Ut),ge=Me||Pe||pt,ke=ge&&(Me?document.documentMode||6:+(pt||Pe)[1]),he=!pt&&/WebKit\//.test(Ut),we=he&&/Qt\/\d+\.\d+/.test(Ut),Ee=!pt&&/Chrome\//.test(Ut),ze=/Opera\//.test(Ut),vt=/Apple Computer/.test(navigator.vendor),Ie=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ut),He=/PhantomJS/.test(Ut),st=!pt&&/AppleWebKit/.test(Ut)&&/Mobile\/\w+/.test(Ut),Je=/Android/.test(Ut),Ue=st||Je||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ut),gt=st||/Mac/.test(oe),Et=/\bCrOS\b/.test(Ut),At=/win/i.test(oe),dt=ze&&Ut.match(/Version\/(\d*\.\d*)/);dt&&(dt=Number(dt[1])),dt&&dt>=15&&(ze=!1,he=!0);var nt=gt&&(we||ze&&(dt==null||dt<12.11)),Ve=me||ge&&ke>=9;function Se(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var $e=function(x,z){var ne=x.className,te=Se(z).exec(ne);if(te){var ie=ne.slice(te.index+te[0].length);x.className=ne.slice(0,te.index)+(ie?te[1]+ie:"")}};function Ye(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function ht(x,z){return Ye(x).appendChild(z)}function Xe(x,z,ne,te){var ie=document.createElement(x);if(ne&&(ie.className=ne),te&&(ie.style.cssText=te),typeof z=="string")ie.appendChild(document.createTextNode(z));else if(z)for(var fe=0;fe<z.length;++fe)ie.appendChild(z[fe]);return ie}function ut(x,z,ne,te){var ie=Xe(x,z,ne,te);return ie.setAttribute("role","presentation"),ie}var Oe;document.createRange?Oe=function(x,z,ne,te){var ie=document.createRange();return ie.setEnd(te||x,ne),ie.setStart(x,z),ie}:Oe=function(x,z,ne){var te=document.body.createTextRange();try{te.moveToElementText(x.parentNode)}catch(ie){return te}return te.collapse(!0),te.moveEnd("character",ne),te.moveStart("character",z),te};function Pt(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 qe(){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 zt(x,z){var ne=x.className;Se(z).test(ne)||(x.className+=(ne?" ":"")+z)}function Dt(x,z){for(var ne=x.split(" "),te=0;te<ne.length;te++)ne[te]&&!Se(ne[te]).test(z)&&(z+=" "+ne[te]);return z}var Bt=function(x){x.select()};st?Bt=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:ge&&(Bt=function(x){try{x.select()}catch(z){}});function St(x){var z=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,z)}}function It(x,z,ne){z||(z={});for(var te in x)x.hasOwnProperty(te)&&(ne!==!1||!z.hasOwnProperty(te))&&(z[te]=x[te]);return z}function Qe(x,z,ne,te,ie){z==null&&(z=x.search(/[^\s\u00a0]/),z==-1&&(z=x.length));for(var fe=te||0,xe=ie||0;;){var Ne=x.indexOf(" ",fe);if(Ne<0||Ne>=z)return xe+(z-fe);xe+=Ne-fe,xe+=ne-xe%ne,fe=Ne+1}}var be=function(){this.id=null,this.f=null,this.time=0,this.handler=St(this.onTimeout,this)};be.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},be.prototype.set=function(x,z){this.f=z;var ne=+new Date+x;(!this.id||ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,x),this.time=ne)};function Ct(x,z){for(var ne=0;ne<x.length;++ne)if(x[ne]==z)return ne;return-1}var Yt=50,Zt={toString:function(){return"CodeMirror.Pass"}},at={scroll:!1},ot={origin:"*mouse"},Nt={origin:"+move"};function Sn(x,z,ne){for(var te=0,ie=0;;){var fe=x.indexOf(" ",te);fe==-1&&(fe=x.length);var xe=fe-te;if(fe==x.length||ie+xe>=z)return te+Math.min(xe,z-ie);if(ie+=fe-te,ie+=ne-ie%ne,te=fe+1,ie>=z)return te}}var $t=[""];function mn(x){for(;$t.length<=x;)$t.push(on($t)+" ");return $t[x]}function on(x){return x[x.length-1]}function nn(x,z){for(var ne=[],te=0;te<x.length;te++)ne[te]=z(x[te],te);return ne}function en(x,z,ne){for(var te=0,ie=ne(z);te<x.length&&ne(x[te])<=ie;)te++;x.splice(te,0,z)}function ye(){}function ue(x,z){var ne;return Object.create?ne=Object.create(x):(ye.prototype=x,ne=new ye),z&&It(z,ne),ne}var se=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ce(x){return/\w/.test(x)||x>"\x80"&&(x.toUpperCase()!=x.toLowerCase()||se.test(x))}function de(x,z){return z?z.source.indexOf("\\w")>-1&&ce(x)?!0:z.test(x):ce(x)}function ae(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Be=/[\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 ft(x){return x.charCodeAt(0)>=768&&Be.test(x)}function Fe(x,z,ne){for(;(ne<0?z>0:z<x.length)&&ft(x.charAt(z));)z+=ne;return z}function De(x,z,ne){for(var te=z>ne?-1:1;;){if(z==ne)return z;var ie=(z+ne)/2,fe=te<0?Math.ceil(ie):Math.floor(ie);if(fe==z)return x(fe)?z:ne;x(fe)?ne=fe:z=fe+te}}function mt(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ie=!1,fe=0;fe<x.length;++fe){var xe=x[fe];(xe.from<ne&&xe.to>z||z==ne&&xe.to==z)&&(te(Math.max(xe.from,z),Math.min(xe.to,ne),xe.level==1?"rtl":"ltr",fe),ie=!0)}ie||te(z,ne,"ltr")}var rt=null;function Ge(x,z,ne){var te;rt=null;for(var ie=0;ie<x.length;++ie){var fe=x[ie];if(fe.from<z&&fe.to>z)return ie;fe.to==z&&(fe.from!=fe.to&&ne=="before"?te=ie:rt=ie),fe.from==z&&(fe.from!=fe.to&&ne!="before"?te=ie:rt=ie)}return te!=null?te:rt}var xt=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(et){return et<=247?x.charAt(et):1424<=et&&et<=1524?"R":1536<=et&&et<=1785?z.charAt(et-1536):1774<=et&&et<=2220?"r":8192<=et&&et<=8203?"w":et==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ie=/[stwN]/,fe=/[LRr]/,xe=/[Lb1n]/,Ne=/[1n]/;function _e(et,Wt,tn){this.level=et,this.from=Wt,this.to=tn}return function(et,Wt){var tn=Wt=="ltr"?"L":"R";if(et.length==0||Wt=="ltr"&&!te.test(et))return!1;for(var Fn=et.length,Dn=[],rr=0;rr<Fn;++rr)Dn.push(ne(et.charCodeAt(rr)));for(var yr=0,Yr=tn;yr<Fn;++yr){var oi=Dn[yr];oi=="m"?Dn[yr]=Yr:Yr=oi}for(var pi=0,ni=tn;pi<Fn;++pi){var gi=Dn[pi];gi=="1"&&ni=="r"?Dn[pi]="n":fe.test(gi)&&(ni=gi,gi=="r"&&(Dn[pi]="R"))}for(var Oi=1,zi=Dn[0];Oi<Fn-1;++Oi){var ga=Dn[Oi];ga=="+"&&zi=="1"&&Dn[Oi+1]=="1"?Dn[Oi]="1":ga==","&&zi==Dn[Oi+1]&&(zi=="1"||zi=="n")&&(Dn[Oi]=zi),zi=ga}for(var uo=0;uo<Fn;++uo){var yl=Dn[uo];if(yl==",")Dn[uo]="N";else if(yl=="%"){var Io=void 0;for(Io=uo+1;Io<Fn&&Dn[Io]=="%";++Io);for(var jl=uo&&Dn[uo-1]=="!"||Io<Fn&&Dn[Io]=="1"?"1":"N",Vl=uo;Vl<Io;++Vl)Dn[Vl]=jl;uo=Io-1}}for(var rl=0,Gl=tn;rl<Fn;++rl){var qi=Dn[rl];Gl=="L"&&qi=="1"?Dn[rl]="L":fe.test(qi)&&(Gl=qi)}for(var _o=0;_o<Fn;++_o)if(ie.test(Dn[_o])){var To=void 0;for(To=_o+1;To<Fn&&ie.test(Dn[To]);++To);for(var Ko=(_o?Dn[_o-1]:tn)=="L",Yo=(To<Fn?Dn[To]:tn)=="L",$u=Ko==Yo?Ko?"L":"R":tn,rs=_o;rs<To;++rs)Dn[rs]=$u;_o=To-1}for(var Sl=[],Za,cl=0;cl<Fn;)if(xe.test(Dn[cl])){var sd=cl;for(++cl;cl<Fn&&xe.test(Dn[cl]);++cl);Sl.push(new _e(0,sd,cl))}else{var hu=cl,ku=Sl.length,Qs=Wt=="rtl"?1:0;for(++cl;cl<Fn&&Dn[cl]!="L";++cl);for(var il=hu;il<cl;)if(Ne.test(Dn[il])){hu<il&&(Sl.splice(ku,0,new _e(1,hu,il)),ku+=Qs);var ju=il;for(++il;il<cl&&Ne.test(Dn[il]);++il);Sl.splice(ku,0,new _e(2,ju,il)),ku+=Qs,hu=il}else++il;hu<cl&&Sl.splice(ku,0,new _e(1,hu,cl))}return Wt=="ltr"&&(Sl[0].level==1&&(Za=et.match(/^\s+/))&&(Sl[0].from=Za[0].length,Sl.unshift(new _e(0,0,Za[0].length))),on(Sl).level==1&&(Za=et.match(/\s+$/))&&(on(Sl).to-=Za[0].length,Sl.push(new _e(0,Fn-Za[0].length,Fn)))),Wt=="rtl"?Sl.reverse():Sl}}();function Xt(x,z){var ne=x.order;return ne==null&&(ne=x.order=xt(x.text,z)),ne}var ct=[],Rt=function(x,z,ne){if(x.addEventListener)x.addEventListener(z,ne,!1);else if(x.attachEvent)x.attachEvent("on"+z,ne);else{var te=x._handlers||(x._handlers={});te[z]=(te[z]||ct).concat(ne)}};function rn(x,z){return x._handlers&&x._handlers[z]||ct}function lt(x,z,ne){if(x.removeEventListener)x.removeEventListener(z,ne,!1);else if(x.detachEvent)x.detachEvent("on"+z,ne);else{var te=x._handlers,ie=te&&te[z];if(ie){var fe=Ct(ie,ne);fe>-1&&(te[z]=ie.slice(0,fe).concat(ie.slice(fe+1)))}}}function Le(x,z){var ne=rn(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ie=0;ie<ne.length;++ie)ne[ie].apply(null,te)}function it(x,z,ne){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),Le(x,ne||z.type,x,z),Ln(z)||z.codemirrorIgnore}function Ot(x){var z=x._handlers&&x._handlers.cursorActivity;if(z)for(var ne=x.curOp.cursorActivityHandlers||(x.curOp.cursorActivityHandlers=[]),te=0;te<z.length;++te)Ct(ne,z[te])==-1&&ne.push(z[te])}function Ft(x,z){return rn(x,z).length>0}function Qt(x){x.prototype.on=function(z,ne){Rt(this,z,ne)},x.prototype.off=function(z,ne){lt(this,z,ne)}}function bn(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function Bn(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function Ln(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function Gn(x){bn(x),Bn(x)}function Yn(x){return x.target||x.srcElement}function _n(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),gt&&x.ctrlKey&&z==1&&(z=3),z}var ir=function(){if(ge&&ke<9)return!1;var x=Xe("div");return"draggable"in x||"dragDrop"in x}(),br;function wr(x){if(br==null){var z=Xe("span","\u200B");ht(x,Xe("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(br=z.offsetWidth<=1&&z.offsetHeight>2&&!(ge&&ke<8))}var ne=br?Xe("span","\u200B"):Xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var qn;function fr(x){if(qn!=null)return qn;var z=ht(x,document.createTextNode("A\u062EA")),ne=Oe(z,0,1).getBoundingClientRect(),te=Oe(z,1,2).getBoundingClientRect();return Ye(x),!ne||ne.left==ne.right?!1:qn=te.right-ne.right<3}var kr=`
b`.split(/\n/).length!=3?function(x){for(var z=0,ne=[],te=x.length;z<=te;){var ie=x.indexOf(`
`,z);ie==-1&&(ie=x.length);var fe=x.slice(z,x.charAt(ie-1)=="\r"?ie-1:ie),xe=fe.indexOf("\r");xe!=-1?(ne.push(fe.slice(0,xe)),z+=xe+1):(ne.push(fe),z=ie+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},Qn=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(ne){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},Nr=function(){var x=Xe("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),ei=null;function Vt(x){if(ei!=null)return ei;var z=ht(x,Xe("span","x")),ne=z.getBoundingClientRect(),te=Oe(z,0,1).getBoundingClientRect();return ei=Math.abs(ne.left-te.left)>1}var Rn={},Nn={};function wn(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),Rn[x]=z}function In(x,z){Nn[x]=z}function xn(x){if(typeof x=="string"&&Nn.hasOwnProperty(x))x=Nn[x];else if(x&&typeof x.name=="string"&&Nn.hasOwnProperty(x.name)){var z=Nn[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 xn("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return xn("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function kn(x,z){z=xn(z);var ne=Rn[z.name];if(!ne)return kn(x,"text/plain");var te=ne(x,z);if(gn.hasOwnProperty(z.name)){var ie=gn[z.name];for(var fe in ie)ie.hasOwnProperty(fe)&&(te.hasOwnProperty(fe)&&(te["_"+fe]=te[fe]),te[fe]=ie[fe])}if(te.name=z.name,z.helperType&&(te.helperType=z.helperType),z.modeProps)for(var xe in z.modeProps)te[xe]=z.modeProps[xe];return te}var gn={};function bt(x,z){var ne=gn.hasOwnProperty(x)?gn[x]:gn[x]={};It(z,ne)}function Ae(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var ne={};for(var te in z){var ie=z[te];ie instanceof Array&&(ie=ie.concat([])),ne[te]=ie}return ne}function je(x,z){for(var ne;x.innerMode&&(ne=x.innerMode(z),!(!ne||ne.mode==x));)z=ne.state,x=ne.mode;return ne||{mode:x,state:z}}function Ze(x,z,ne){return x.startState?x.startState(z,ne):!0}var We=function(x,z,ne){this.pos=this.start=0,this.string=x,this.tabSize=z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ne};We.prototype.eol=function(){return this.pos>=this.string.length},We.prototype.sol=function(){return this.pos==this.lineStart},We.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},We.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},We.prototype.eat=function(x){var z=this.string.charAt(this.pos),ne;if(typeof x=="string"?ne=z==x:ne=z&&(x.test?x.test(z):x(z)),ne)return++this.pos,z},We.prototype.eatWhile=function(x){for(var z=this.pos;this.eat(x););return this.pos>z},We.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},We.prototype.skipToEnd=function(){this.pos=this.string.length},We.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},We.prototype.backUp=function(x){this.pos-=x},We.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Qe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Qe(this.string,this.lineStart,this.tabSize):0)},We.prototype.indentation=function(){return Qe(this.string,null,this.tabSize)-(this.lineStart?Qe(this.string,this.lineStart,this.tabSize):0)},We.prototype.match=function(x,z,ne){if(typeof x=="string"){var te=function(xe){return ne?xe.toLowerCase():xe},ie=this.string.substr(this.pos,x.length);if(te(ie)==te(x))return z!==!1&&(this.pos+=x.length),!0}else{var fe=this.string.slice(this.pos).match(x);return fe&&fe.index>0?null:(fe&&z!==!1&&(this.pos+=fe[0].length),fe)}},We.prototype.current=function(){return this.string.slice(this.start,this.pos)},We.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},We.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},We.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function yt(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 ne=x;!ne.lines;)for(var te=0;;++te){var ie=ne.children[te],fe=ie.chunkSize();if(z<fe){ne=ie;break}z-=fe}return ne.lines[z]}function Lt(x,z,ne){var te=[],ie=z.line;return x.iter(z.line,ne.line+1,function(fe){var xe=fe.text;ie==ne.line&&(xe=xe.slice(0,ne.ch)),ie==z.line&&(xe=xe.slice(z.ch)),te.push(xe),++ie}),te}function Jt(x,z,ne){var te=[];return x.iter(z,ne,function(ie){te.push(ie.text)}),te}function Ht(x,z){var ne=z-x.height;if(ne)for(var te=x;te;te=te.parent)te.height+=ne}function ln(x){if(x.parent==null)return null;for(var z=x.parent,ne=Ct(z.lines,x),te=z.parent;te;z=te,te=te.parent)for(var ie=0;te.children[ie]!=z;++ie)ne+=te.children[ie].chunkSize();return ne+z.first}function yn(x,z){var ne=x.first;e:do{for(var te=0;te<x.children.length;++te){var ie=x.children[te],fe=ie.height;if(z<fe){x=ie;continue e}z-=fe,ne+=ie.chunkSize()}return ne}while(!x.lines);for(var xe=0;xe<x.lines.length;++xe){var Ne=x.lines[xe],_e=Ne.height;if(z<_e)break;z-=_e}return ne+xe}function En(x,z){return z>=x.first&&z<x.first+x.size}function Mn(x,z){return String(x.lineNumberFormatter(z+x.firstLineNumber))}function Kt(x,z,ne){if(ne===void 0&&(ne=null),!(this instanceof Kt))return new Kt(x,z,ne);this.line=x,this.ch=z,this.sticky=ne}function hn(x,z){return x.line-z.line||x.ch-z.ch}function Hn(x,z){return x.sticky==z.sticky&&hn(x,z)==0}function Zn(x){return Kt(x.line,x.ch)}function Kn(x,z){return hn(x,z)<0?z:x}function jn(x,z){return hn(x,z)<0?x:z}function nr(x,z){return Math.max(x.first,Math.min(z,x.first+x.size-1))}function On(x,z){if(z.line<x.first)return Kt(x.first,0);var ne=x.first+x.size-1;return z.line>ne?Kt(ne,yt(x,ne).text.length):cr(z,yt(x,z.line).text.length)}function cr(x,z){var ne=x.ch;return ne==null||ne>z?Kt(x.line,z):ne<0?Kt(x.line,0):x}function Mt(x,z){for(var ne=[],te=0;te<z.length;te++)ne[te]=On(x,z[te]);return ne}var an=function(x,z){this.state=x,this.lookAhead=z},cn=function(x,z,ne,te){this.state=z,this.doc=x,this.line=ne,this.maxLookAhead=te||0,this.baseTokens=null,this.baseTokenPos=1};cn.prototype.lookAhead=function(x){var z=this.doc.getLine(this.line+x);return z!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),z},cn.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}},cn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},cn.fromSaved=function(x,z,ne){return z instanceof an?new cn(x,Ae(x.mode,z.state),ne,z.lookAhead):new cn(x,Ae(x.mode,z),ne)},cn.prototype.save=function(x){var z=x!==!1?Ae(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new an(z,this.maxLookAhead):z};function Cn(x,z,ne,te){var ie=[x.state.modeGen],fe={};Pr(x,z.text,x.doc.mode,ne,function(et,Wt){return ie.push(et,Wt)},fe,te);for(var xe=ne.state,Ne=function(et){ne.baseTokens=ie;var Wt=x.state.overlays[et],tn=1,Fn=0;ne.state=!0,Pr(x,z.text,Wt.mode,ne,function(Dn,rr){for(var yr=tn;Fn<Dn;){var Yr=ie[tn];Yr>Dn&&ie.splice(tn,1,Dn,ie[tn+1],Yr),tn+=2,Fn=Math.min(Dn,Yr)}if(rr)if(Wt.opaque)ie.splice(yr,tn-yr,Dn,"overlay "+rr),tn=yr+2;else for(;yr<tn;yr+=2){var oi=ie[yr+1];ie[yr+1]=(oi?oi+" ":"")+"overlay "+rr}},fe),ne.state=xe,ne.baseTokens=null,ne.baseTokenPos=1},_e=0;_e<x.state.overlays.length;++_e)Ne(_e);return{styles:ie,classes:fe.bgClass||fe.textClass?fe:null}}function un(x,z,ne){if(!z.styles||z.styles[0]!=x.state.modeGen){var te=vn(x,ln(z)),ie=z.text.length>x.options.maxHighlightLength&&Ae(x.doc.mode,te.state),fe=Cn(x,z,te);ie&&(te.state=ie),z.stateAfter=te.save(!ie),z.styles=fe.styles,fe.classes?z.styleClasses=fe.classes:z.styleClasses&&(z.styleClasses=null),ne===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return z.styles}function vn(x,z,ne){var te=x.doc,ie=x.display;if(!te.mode.startState)return new cn(te,!0,z);var fe=Ir(x,z,ne),xe=fe>te.first&&yt(te,fe-1).stateAfter,Ne=xe?cn.fromSaved(te,xe,fe):new cn(te,Ze(te.mode),fe);return te.iter(fe,z,function(_e){pn(x,_e.text,Ne);var et=Ne.line;_e.stateAfter=et==z-1||et%5==0||et>=ie.viewFrom&&et<ie.viewTo?Ne.save():null,Ne.nextLine()}),ne&&(te.modeFrontier=Ne.line),Ne}function pn(x,z,ne,te){var ie=x.doc.mode,fe=new We(z,x.options.tabSize,ne);for(fe.start=fe.pos=te||0,z==""&&Pn(ie,ne.state);!fe.eol();)Vn(ie,fe,ne.state),fe.start=fe.pos}function Pn(x,z){if(x.blankLine)return x.blankLine(z);if(x.innerMode){var ne=je(x,z);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}}function Vn(x,z,ne,te){for(var ie=0;ie<10;ie++){te&&(te[0]=je(x,ne).mode);var fe=x.token(z,ne);if(z.pos>z.start)return fe}throw new Error("Mode "+x.name+" failed to advance stream.")}var er=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function pr(x,z,ne,te){var ie=x.doc,fe=ie.mode,xe;z=On(ie,z);var Ne=yt(ie,z.line),_e=vn(x,z.line,ne),et=new We(Ne.text,x.options.tabSize,_e),Wt;for(te&&(Wt=[]);(te||et.pos<z.ch)&&!et.eol();)et.start=et.pos,xe=Vn(fe,et,_e.state),te&&Wt.push(new er(et,xe,Ae(ie.mode,_e.state)));return te?Wt:new er(et,xe,_e.state)}function mr(x,z){if(x)for(;;){var ne=x.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ne)break;x=x.slice(0,ne.index)+x.slice(ne.index+ne[0].length);var te=ne[1]?"bgClass":"textClass";z[te]==null?z[te]=ne[2]:new RegExp("(?:^|\\s)"+ne[2]+"(?:$|\\s)").test(z[te])||(z[te]+=" "+ne[2])}return x}function Pr(x,z,ne,te,ie,fe,xe){var Ne=ne.flattenSpans;Ne==null&&(Ne=x.options.flattenSpans);var _e=0,et=null,Wt=new We(z,x.options.tabSize,te),tn,Fn=x.options.addModeClass&&[null];for(z==""&&mr(Pn(ne,te.state),fe);!Wt.eol();){if(Wt.pos>x.options.maxHighlightLength?(Ne=!1,xe&&pn(x,z,te,Wt.pos),Wt.pos=z.length,tn=null):tn=mr(Vn(ne,Wt,te.state,Fn),fe),Fn){var Dn=Fn[0].name;Dn&&(tn="m-"+(tn?Dn+" "+tn:Dn))}if(!Ne||et!=tn){for(;_e<Wt.start;)_e=Math.min(Wt.start,_e+5e3),ie(_e,et);et=tn}Wt.start=Wt.pos}for(;_e<Wt.pos;){var rr=Math.min(Wt.pos,_e+5e3);ie(rr,et),_e=rr}}function Ir(x,z,ne){for(var te,ie,fe=x.doc,xe=ne?-1:z-(x.doc.mode.innerMode?1e3:100),Ne=z;Ne>xe;--Ne){if(Ne<=fe.first)return fe.first;var _e=yt(fe,Ne-1),et=_e.stateAfter;if(et&&(!ne||Ne+(et instanceof an?et.lookAhead:0)<=fe.modeFrontier))return Ne;var Wt=Qe(_e.text,null,x.options.tabSize);(ie==null||te>Wt)&&(ie=Ne-1,te=Wt)}return ie}function Lr(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontier<z-10)){for(var ne=x.first,te=z-1;te>ne;te--){var ie=yt(x,te).stateAfter;if(ie&&(!(ie instanceof an)||te+ie.lookAhead<z)){ne=te+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,ne)}}var $r=!1,Hr=!1;function Zr(){$r=!0}function gr(){Hr=!0}function zr(x,z,ne){this.marker=x,this.from=z,this.to=ne}function Cr(x,z){if(x)for(var ne=0;ne<x.length;++ne){var te=x[ne];if(te.marker==z)return te}}function lr(x,z){for(var ne,te=0;te<x.length;++te)x[te]!=z&&(ne||(ne=[])).push(x[te]);return ne}function jr(x,z){x.markedSpans=x.markedSpans?x.markedSpans.concat([z]):[z],z.marker.attachLine(x)}function li(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var fe=x[ie],xe=fe.marker,Ne=fe.from==null||(xe.inclusiveLeft?fe.from<=z:fe.from<z);if(Ne||fe.from==z&&xe.type=="bookmark"&&(!ne||!fe.marker.insertLeft)){var _e=fe.to==null||(xe.inclusiveRight?fe.to>=z:fe.to>z);(te||(te=[])).push(new zr(xe,fe.from,_e?null:fe.to))}}return te}function Dr(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var fe=x[ie],xe=fe.marker,Ne=fe.to==null||(xe.inclusiveRight?fe.to>=z:fe.to>z);if(Ne||fe.from==z&&xe.type=="bookmark"&&(!ne||fe.marker.insertLeft)){var _e=fe.from==null||(xe.inclusiveLeft?fe.from<=z:fe.from<z);(te||(te=[])).push(new zr(xe,_e?null:fe.from-z,fe.to==null?null:fe.to-z))}}return te}function Jn(x,z){if(z.full)return null;var ne=En(x,z.from.line)&&yt(x,z.from.line).markedSpans,te=En(x,z.to.line)&&yt(x,z.to.line).markedSpans;if(!ne&&!te)return null;var ie=z.from.ch,fe=z.to.ch,xe=hn(z.from,z.to)==0,Ne=li(ne,ie,xe),_e=Dr(te,fe,xe),et=z.text.length==1,Wt=on(z.text).length+(et?ie:0);if(Ne)for(var tn=0;tn<Ne.length;++tn){var Fn=Ne[tn];if(Fn.to==null){var Dn=Cr(_e,Fn.marker);Dn?et&&(Fn.to=Dn.to==null?null:Dn.to+Wt):Fn.to=ie}}if(_e)for(var rr=0;rr<_e.length;++rr){var yr=_e[rr];if(yr.to!=null&&(yr.to+=Wt),yr.from==null){var Yr=Cr(Ne,yr.marker);Yr||(yr.from=Wt,et&&(Ne||(Ne=[])).push(yr))}else yr.from+=Wt,et&&(Ne||(Ne=[])).push(yr)}Ne&&(Ne=Xn(Ne)),_e&&_e!=Ne&&(_e=Xn(_e));var oi=[Ne];if(!et){var pi=z.text.length-2,ni;if(pi>0&&Ne)for(var gi=0;gi<Ne.length;++gi)Ne[gi].to==null&&(ni||(ni=[])).push(new zr(Ne[gi].marker,null,null));for(var Oi=0;Oi<pi;++Oi)oi.push(ni);oi.push(_e)}return oi}function Xn(x){for(var z=0;z<x.length;++z){var ne=x[z];ne.from!=null&&ne.from==ne.to&&ne.marker.clearWhenEmpty!==!1&&x.splice(z--,1)}return x.length?x:null}function Wr(x,z,ne){var te=null;if(x.iter(z.line,ne.line+1,function(Dn){if(Dn.markedSpans)for(var rr=0;rr<Dn.markedSpans.length;++rr){var yr=Dn.markedSpans[rr].marker;yr.readOnly&&(!te||Ct(te,yr)==-1)&&(te||(te=[])).push(yr)}}),!te)return null;for(var ie=[{from:z,to:ne}],fe=0;fe<te.length;++fe)for(var xe=te[fe],Ne=xe.find(0),_e=0;_e<ie.length;++_e){var et=ie[_e];if(!(hn(et.to,Ne.from)<0||hn(et.from,Ne.to)>0)){var Wt=[_e,1],tn=hn(et.from,Ne.from),Fn=hn(et.to,Ne.to);(tn<0||!xe.inclusiveLeft&&!tn)&&Wt.push({from:et.from,to:Ne.from}),(Fn>0||!xe.inclusiveRight&&!Fn)&&Wt.push({from:Ne.to,to:et.to}),ie.splice.apply(ie,Wt),_e+=Wt.length-3}}return ie}function Er(x){var z=x.markedSpans;if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.detachLine(x);x.markedSpans=null}}function Jr(x,z){if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.attachLine(x);x.markedSpans=z}}function ci(x){return x.inclusiveLeft?-1:0}function ti(x){return x.inclusiveRight?1:0}function Bi(x,z){var ne=x.lines.length-z.lines.length;if(ne!=0)return ne;var te=x.find(),ie=z.find(),fe=hn(te.from,ie.from)||ci(x)-ci(z);if(fe)return-fe;var xe=hn(te.to,ie.to)||ti(x)-ti(z);return xe||z.id-x.id}function vi(x,z){var ne=Hr&&x.markedSpans,te;if(ne)for(var ie=void 0,fe=0;fe<ne.length;++fe)ie=ne[fe],ie.marker.collapsed&&(z?ie.from:ie.to)==null&&(!te||Bi(te,ie.marker)<0)&&(te=ie.marker);return te}function Ui(x){return vi(x,!0)}function Or(x){return vi(x,!1)}function _r(x,z){var ne=Hr&&x.markedSpans,te;if(ne)for(var ie=0;ie<ne.length;++ie){var fe=ne[ie];fe.marker.collapsed&&(fe.from==null||fe.from<z)&&(fe.to==null||fe.to>z)&&(!te||Bi(te,fe.marker)<0)&&(te=fe.marker)}return te}function si(x,z,ne,te,ie){var fe=yt(x,z),xe=Hr&&fe.markedSpans;if(xe)for(var Ne=0;Ne<xe.length;++Ne){var _e=xe[Ne];if(_e.marker.collapsed){var et=_e.marker.find(0),Wt=hn(et.from,ne)||ci(_e.marker)-ci(ie),tn=hn(et.to,te)||ti(_e.marker)-ti(ie);if(!(Wt>=0&&tn<=0||Wt<=0&&tn>=0)&&(Wt<=0&&(_e.marker.inclusiveRight&&ie.inclusiveLeft?hn(et.to,ne)>=0:hn(et.to,ne)>0)||Wt>=0&&(_e.marker.inclusiveRight&&ie.inclusiveLeft?hn(et.from,te)<=0:hn(et.from,te)<0)))return!0}}}function di(x){for(var z;z=Ui(x);)x=z.find(-1,!0).line;return x}function ea(x){for(var z;z=Or(x);)x=z.find(1,!0).line;return x}function Va(x){for(var z,ne;z=Or(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function Da(x,z){var ne=yt(x,z),te=di(ne);return ne==te?z:ln(te)}function _i(x,z){if(z>x.lastLine())return z;var ne=yt(x,z),te;if(!da(x,ne))return z;for(;te=Or(ne);)ne=te.find(1,!0).line;return ln(ne)+1}function da(x,z){var ne=Hr&&z.markedSpans;if(ne){for(var te=void 0,ie=0;ie<ne.length;++ie)if(te=ne[ie],!!te.marker.collapsed){if(te.from==null)return!0;if(!te.marker.widgetNode&&te.from==0&&te.marker.inclusiveLeft&&sa(x,z,te))return!0}}}function sa(x,z,ne){if(ne.to==null){var te=ne.marker.find(1,!0);return sa(x,te.line,Cr(te.line.markedSpans,ne.marker))}if(ne.marker.inclusiveRight&&ne.to==z.text.length)return!0;for(var ie=void 0,fe=0;fe<z.markedSpans.length;++fe)if(ie=z.markedSpans[fe],ie.marker.collapsed&&!ie.marker.widgetNode&&ie.from==ne.to&&(ie.to==null||ie.to!=ne.from)&&(ie.marker.inclusiveLeft||ne.marker.inclusiveRight)&&sa(x,z,ie))return!0}function Sr(x){x=di(x);for(var z=0,ne=x.parent,te=0;te<ne.lines.length;++te){var ie=ne.lines[te];if(ie==x)break;z+=ie.height}for(var fe=ne.parent;fe;ne=fe,fe=ne.parent)for(var xe=0;xe<fe.children.length;++xe){var Ne=fe.children[xe];if(Ne==ne)break;z+=Ne.height}return z}function xr(x){if(x.height==0)return 0;for(var z=x.text.length,ne,te=x;ne=Ui(te);){var ie=ne.find(0,!0);te=ie.from.line,z+=ie.from.ch-ie.to.ch}for(te=x;ne=Or(te);){var fe=ne.find(0,!0);z-=te.text.length-fe.from.ch,te=fe.to.line,z+=te.text.length-fe.to.ch}return z}function sr(x){var z=x.display,ne=x.doc;z.maxLine=yt(ne,ne.first),z.maxLineLength=xr(z.maxLine),z.maxLineChanged=!0,ne.iter(function(te){var ie=xr(te);ie>z.maxLineLength&&(z.maxLineLength=ie,z.maxLine=te)})}var hr=function(x,z,ne){this.text=x,Jr(this,z),this.height=ne?ne(this):1};hr.prototype.lineNo=function(){return ln(this)},Qt(hr);function xi(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),Er(x),Jr(x,ne);var ie=te?te(x):1;ie!=x.height&&Ht(x,ie)}function Fi(x){x.parent=null,Er(x)}var Zi={},Yi={};function Wi(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?Yi:Zi;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function ra(x,z){var ne=ut("span",null,null,he?"padding-right: .1px":null),te={pre:ut("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var ie=0;ie<=(z.rest?z.rest.length:0);ie++){var fe=ie?z.rest[ie-1]:z.line,xe=void 0;te.pos=0,te.addToken=Aa,fr(x.display.measure)&&(xe=Xt(fe,x.doc.direction))&&(te.addToken=no(te.addToken,xe)),te.map=[];var Ne=z!=x.display.externalMeasured&&ln(fe);al(fe,te,un(x,fe,Ne)),fe.styleClasses&&(fe.styleClasses.bgClass&&(te.bgClass=Dt(fe.styleClasses.bgClass,te.bgClass||"")),fe.styleClasses.textClass&&(te.textClass=Dt(fe.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(wr(x.display.measure))),ie==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(he){var _e=te.content.lastChild;(/\bcm-tab\b/.test(_e.className)||_e.querySelector&&_e.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return Le(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=Dt(te.pre.className,te.textClass||"")),te}function Ba(x){var z=Xe("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function Aa(x,z,ne,te,ie,fe,xe){if(z){var Ne=x.splitSpaces?ho(z,x.trailingSpace):z,_e=x.cm.state.specialChars,et=!1,Wt;if(!_e.test(z))x.col+=z.length,Wt=document.createTextNode(Ne),x.map.push(x.pos,x.pos+z.length,Wt),ge&&ke<9&&(et=!0),x.pos+=z.length;else{Wt=document.createDocumentFragment();for(var tn=0;;){_e.lastIndex=tn;var Fn=_e.exec(z),Dn=Fn?Fn.index-tn:z.length-tn;if(Dn){var rr=document.createTextNode(Ne.slice(tn,tn+Dn));ge&&ke<9?Wt.appendChild(Xe("span",[rr])):Wt.appendChild(rr),x.map.push(x.pos,x.pos+Dn,rr),x.col+=Dn,x.pos+=Dn}if(!Fn)break;tn+=Dn+1;var yr=void 0;if(Fn[0]==" "){var Yr=x.cm.options.tabSize,oi=Yr-x.col%Yr;yr=Wt.appendChild(Xe("span",mn(oi),"cm-tab")),yr.setAttribute("role","presentation"),yr.setAttribute("cm-text"," "),x.col+=oi}else Fn[0]=="\r"||Fn[0]==`
`?(yr=Wt.appendChild(Xe("span",Fn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),yr.setAttribute("cm-text",Fn[0]),x.col+=1):(yr=x.cm.options.specialCharPlaceholder(Fn[0]),yr.setAttribute("cm-text",Fn[0]),ge&&ke<9?Wt.appendChild(Xe("span",[yr])):Wt.appendChild(yr),x.col+=1);x.map.push(x.pos,x.pos+1,yr),x.pos++}}if(x.trailingSpace=Ne.charCodeAt(z.length-1)==32,ne||te||ie||et||fe||xe){var pi=ne||"";te&&(pi+=te),ie&&(pi+=ie);var ni=Xe("span",[Wt],pi,fe);if(xe)for(var gi in xe)xe.hasOwnProperty(gi)&&gi!="style"&&gi!="class"&&ni.setAttribute(gi,xe[gi]);return x.content.appendChild(ni)}x.content.appendChild(Wt)}}function ho(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",ie=0;ie<x.length;ie++){var fe=x.charAt(ie);fe==" "&&ne&&(ie==x.length-1||x.charCodeAt(ie+1)==32)&&(fe="\xA0"),te+=fe,ne=fe==" "}return te}function no(x,z){return function(ne,te,ie,fe,xe,Ne,_e){ie=ie?ie+" cm-force-border":"cm-force-border";for(var et=ne.pos,Wt=et+te.length;;){for(var tn=void 0,Fn=0;Fn<z.length&&(tn=z[Fn],!(tn.to>et&&tn.from<=et));Fn++);if(tn.to>=Wt)return x(ne,te,ie,fe,xe,Ne,_e);x(ne,te.slice(0,tn.to-et),ie,fe,null,Ne,_e),fe=null,te=te.slice(tn.to-et),et=tn.to}}}function Fa(x,z,ne,te){var ie=!te&&ne.widgetNode;ie&&x.map.push(x.pos,x.pos+z,ie),!te&&x.cm.display.input.needsContentAttribute&&(ie||(ie=x.content.appendChild(document.createElement("span"))),ie.setAttribute("cm-marker",ne.id)),ie&&(x.cm.display.input.setUneditable(ie),x.content.appendChild(ie)),x.pos+=z,x.trailingSpace=!1}function al(x,z,ne){var te=x.markedSpans,ie=x.text,fe=0;if(!te){for(var xe=1;xe<ne.length;xe+=2)z.addToken(z,ie.slice(fe,fe=ne[xe]),Wi(ne[xe+1],z.cm.options));return}for(var Ne=ie.length,_e=0,et=1,Wt="",tn,Fn,Dn=0,rr,yr,Yr,oi,pi;;){if(Dn==_e){rr=yr=Yr=Fn="",pi=null,oi=null,Dn=1/0;for(var ni=[],gi=void 0,Oi=0;Oi<te.length;++Oi){var zi=te[Oi],ga=zi.marker;if(ga.type=="bookmark"&&zi.from==_e&&ga.widgetNode)ni.push(ga);else if(zi.from<=_e&&(zi.to==null||zi.to>_e||ga.collapsed&&zi.to==_e&&zi.from==_e)){if(zi.to!=null&&zi.to!=_e&&Dn>zi.to&&(Dn=zi.to,yr=""),ga.className&&(rr+=" "+ga.className),ga.css&&(Fn=(Fn?Fn+";":"")+ga.css),ga.startStyle&&zi.from==_e&&(Yr+=" "+ga.startStyle),ga.endStyle&&zi.to==Dn&&(gi||(gi=[])).push(ga.endStyle,zi.to),ga.title&&((pi||(pi={})).title=ga.title),ga.attributes)for(var uo in ga.attributes)(pi||(pi={}))[uo]=ga.attributes[uo];ga.collapsed&&(!oi||Bi(oi.marker,ga)<0)&&(oi=zi)}else zi.from>_e&&Dn>zi.from&&(Dn=zi.from)}if(gi)for(var yl=0;yl<gi.length;yl+=2)gi[yl+1]==Dn&&(yr+=" "+gi[yl]);if(!oi||oi.from==_e)for(var Io=0;Io<ni.length;++Io)Fa(z,0,ni[Io]);if(oi&&(oi.from||0)==_e){if(Fa(z,(oi.to==null?Ne+1:oi.to)-_e,oi.marker,oi.from==null),oi.to==null)return;oi.to==_e&&(oi=!1)}}if(_e>=Ne)break;for(var jl=Math.min(Ne,Dn);;){if(Wt){var Vl=_e+Wt.length;if(!oi){var rl=Vl>jl?Wt.slice(0,jl-_e):Wt;z.addToken(z,rl,tn?tn+rr:rr,Yr,_e+rl.length==Dn?yr:"",Fn,pi)}if(Vl>=jl){Wt=Wt.slice(jl-_e),_e=jl;break}_e=Vl,Yr=""}Wt=ie.slice(fe,fe=ne[et++]),tn=Wi(ne[et++],z.cm.options)}}}function po(x,z,ne){this.line=z,this.rest=Va(z),this.size=this.rest?ln(on(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=da(x,z)}function wo(x,z,ne){for(var te=[],ie,fe=z;fe<ne;fe=ie){var xe=new po(x.doc,yt(x.doc,fe),fe);ie=fe+xe.size,te.push(xe)}return te}var Xa=null;function ya(x){Xa?Xa.ops.push(x):x.ownsGroup=Xa={ops:[x],delayedCallbacks:[]}}function hi(x){var z=x.delayedCallbacks,ne=0;do{for(;ne<z.length;ne++)z[ne].call(null);for(var te=0;te<x.ops.length;te++){var ie=x.ops[te];if(ie.cursorActivityHandlers)for(;ie.cursorActivityCalled<ie.cursorActivityHandlers.length;)ie.cursorActivityHandlers[ie.cursorActivityCalled++].call(null,ie.cm)}}while(ne<z.length)}function Ni(x,z){var ne=x.ownsGroup;if(ne)try{hi(ne)}finally{Xa=null,z(ne)}}var Ei=null;function fi(x,z){var ne=rn(x,z);if(ne.length){var te=Array.prototype.slice.call(arguments,2),ie;Xa?ie=Xa.delayedCallbacks:Ei?ie=Ei:(ie=Ei=[],setTimeout(Xi,0));for(var fe=function(Ne){ie.push(function(){return ne[Ne].apply(null,te)})},xe=0;xe<ne.length;++xe)fe(xe)}}function Xi(){var x=Ei;Ei=null;for(var z=0;z<x.length;++z)x[z]()}function ji(x,z,ne,te){for(var ie=0;ie<z.changes.length;ie++){var fe=z.changes[ie];fe=="text"?ro(x,z):fe=="gutter"?aa(x,z,ne,te):fe=="class"?ia(x,z):fe=="widget"&&Ya(x,z,te)}z.changes=null}function Na(x){return x.node==x.text&&(x.node=Xe("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),ge&&ke<8&&(x.node.style.zIndex=2)),x.node}function $a(x,z){var ne=z.bgClass?z.bgClass+" "+(z.line.bgClass||""):z.line.bgClass;if(ne&&(ne+=" CodeMirror-linebackground"),z.background)ne?z.background.className=ne:(z.background.parentNode.removeChild(z.background),z.background=null);else if(ne){var te=Na(z);z.background=te.insertBefore(Xe("div",null,ne),te.firstChild),x.display.input.setUneditable(z.background)}}function Ra(x,z){var ne=x.display.externalMeasured;return ne&&ne.line==z.line?(x.display.externalMeasured=null,z.measure=ne.measure,ne.built):ra(x,z)}function ro(x,z){var ne=z.text.className,te=Ra(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,ia(x,z)):ne&&(z.text.className=ne)}function ia(x,z){$a(x,z),z.line.wrapClass?Na(z).className=z.line.wrapClass:z.node!=z.text&&(z.node.className="");var ne=z.textClass?z.textClass+" "+(z.line.textClass||""):z.line.textClass;z.text.className=ne||""}function aa(x,z,ne,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 ie=Na(z);z.gutterBackground=Xe("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),ie.insertBefore(z.gutterBackground,z.text)}var fe=z.line.gutterMarkers;if(x.options.lineNumbers||fe){var xe=Na(z),Ne=z.gutter=Xe("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px");if(x.display.input.setUneditable(Ne),xe.insertBefore(Ne,z.text),z.line.gutterClass&&(Ne.className+=" "+z.line.gutterClass),x.options.lineNumbers&&(!fe||!fe["CodeMirror-linenumbers"])&&(z.lineNumber=Ne.appendChild(Xe("div",Mn(x.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),fe)for(var _e=0;_e<x.display.gutterSpecs.length;++_e){var et=x.display.gutterSpecs[_e].className,Wt=fe.hasOwnProperty(et)&&fe[et];Wt&&Ne.appendChild(Xe("div",[Wt],"CodeMirror-gutter-elt","left: "+te.gutterLeft[et]+"px; width: "+te.gutterWidth[et]+"px"))}}}function Ya(x,z,ne){z.alignable&&(z.alignable=null);for(var te=Se("CodeMirror-linewidget"),ie=z.node.firstChild,fe=void 0;ie;ie=fe)fe=ie.nextSibling,te.test(ie.className)&&z.node.removeChild(ie);go(x,z,ne)}function Qa(x,z,ne,te){var ie=Ra(x,z);return z.text=z.node=ie.pre,ie.bgClass&&(z.bgClass=ie.bgClass),ie.textClass&&(z.textClass=ie.textClass),ia(x,z),aa(x,z,ne,te),go(x,z,te),z.node}function go(x,z,ne){if(Ja(x,z.line,z,ne,!0),z.rest)for(var te=0;te<z.rest.length;te++)Ja(x,z.rest[te],z,ne,!1)}function Ja(x,z,ne,te,ie){if(z.widgets)for(var fe=Na(ne),xe=0,Ne=z.widgets;xe<Ne.length;++xe){var _e=Ne[xe],et=Xe("div",[_e.node],"CodeMirror-linewidget"+(_e.className?" "+_e.className:""));_e.handleMouseEvents||et.setAttribute("cm-ignore-events","true"),hs(_e,et,ne,te),x.display.input.setUneditable(et),ie&&_e.above?fe.insertBefore(et,ne.gutter||ne.text):fe.appendChild(et),fi(_e,"redraw")}}function hs(x,z,ne,te){if(x.noHScroll){(ne.alignable||(ne.alignable=[])).push(z);var ie=te.wrapperWidth;z.style.left=te.fixedPos+"px",x.coverGutter||(ie-=te.gutterTotalWidth,z.style.paddingLeft=te.gutterTotalWidth+"px"),z.style.width=ie+"px"}x.coverGutter&&(z.style.zIndex=5,z.style.position="relative",x.noHScroll||(z.style.marginLeft=-te.gutterTotalWidth+"px"))}function Dl(x){if(x.height!=null)return x.height;var z=x.doc.cm;if(!z)return 0;if(!Pt(document.body,x.node)){var ne="position: relative;";x.coverGutter&&(ne+="margin-left: -"+z.display.gutters.offsetWidth+"px;"),x.noHScroll&&(ne+="width: "+z.display.wrapper.clientWidth+"px;"),ht(z.display.measure,Xe("div",[x.node],null,ne))}return x.height=x.node.parentNode.offsetHeight}function Al(x,z){for(var ne=Yn(z);ne!=x.wrapper;ne=ne.parentNode)if(!ne||ne.nodeType==1&&ne.getAttribute("cm-ignore-events")=="true"||ne.parentNode==x.sizer&&ne!=x.mover)return!0}function ol(x){return x.lineSpace.offsetTop}function Ds(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function Ll(x){if(x.cachedPaddingH)return x.cachedPaddingH;var z=ht(x.measure,Xe("pre","x","CodeMirror-line-like")),ne=window.getComputedStyle?window.getComputedStyle(z):z.currentStyle,te={left:parseInt(ne.paddingLeft),right:parseInt(ne.paddingRight)};return!isNaN(te.left)&&!isNaN(te.right)&&(x.cachedPaddingH=te),te}function Oo(x){return Yt-x.display.nativeBarWidth}function xo(x){return x.display.scroller.clientWidth-Oo(x)-x.display.barWidth}function Hl(x){return x.display.scroller.clientHeight-Oo(x)-x.display.barHeight}function Ul(x,z,ne){var te=x.options.lineWrapping,ie=te&&xo(x);if(!z.measure.heights||te&&z.measure.width!=ie){var fe=z.measure.heights=[];if(te){z.measure.width=ie;for(var xe=z.text.firstChild.getClientRects(),Ne=0;Ne<xe.length-1;Ne++){var _e=xe[Ne],et=xe[Ne+1];Math.abs(_e.bottom-et.bottom)>2&&fe.push((_e.bottom+et.top)/2-ne.top)}}fe.push(ne.bottom-ne.top)}}function Xl(x,z,ne){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 ie=0;ie<x.rest.length;ie++)if(ln(x.rest[ie])>ne)return{map:x.measure.maps[ie],cache:x.measure.caches[ie],before:!0}}function As(x,z){z=di(z);var ne=ln(z),te=x.display.externalMeasured=new po(x.doc,z,ne);te.lineN=ne;var ie=te.built=ra(x,te);return te.text=ie.pre,ht(x.display.lineMeasure,ie.pre),te}function as(x,z,ne,te){return Pa(x,qo(x,z),ne,te)}function ll(x,z){if(z>=x.display.viewFrom&&z<x.display.viewTo)return x.display.view[sl(x,z)];var ne=x.display.externalMeasured;if(ne&&z>=ne.lineN&&z<ne.lineN+ne.size)return ne}function qo(x,z){var ne=ln(z),te=ll(x,ne);te&&!te.text?te=null:te&&te.changes&&(ji(x,te,ne,La(x)),x.curOp.forceUpdate=!0),te||(te=As(x,z));var ie=Xl(te,z,ne);return{line:z,view:te,rect:null,map:ie.map,cache:ie.cache,before:ie.before,hasHeights:!1}}function Pa(x,z,ne,te,ie){z.before&&(ne=-1);var fe=ne+(te||""),xe;return z.cache.hasOwnProperty(fe)?xe=z.cache[fe]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(Ul(x,z.view,z.rect),z.hasHeights=!0),xe=ua(x,z,ne,te),xe.bogus||(z.cache[fe]=xe)),{left:xe.left,right:xe.right,top:ie?xe.rtop:xe.top,bottom:ie?xe.rbottom:xe.bottom}}var Yl={left:0,right:0,top:0,bottom:0};function Ls(x,z,ne){for(var te,ie,fe,xe,Ne,_e,et=0;et<x.length;et+=3)if(Ne=x[et],_e=x[et+1],z<Ne?(ie=0,fe=1,xe="left"):z<_e?(ie=z-Ne,fe=ie+1):(et==x.length-3||z==_e&&x[et+3]>z)&&(fe=_e-Ne,ie=fe-1,z>=_e&&(xe="right")),ie!=null){if(te=x[et+2],Ne==_e&&ne==(te.insertLeft?"left":"right")&&(xe=ne),ne=="left"&&ie==0)for(;et&&x[et-2]==x[et-3]&&x[et-1].insertLeft;)te=x[(et-=3)+2],xe="left";if(ne=="right"&&ie==_e-Ne)for(;et<x.length-3&&x[et+3]==x[et+4]&&!x[et+5].insertLeft;)te=x[(et+=3)+2],xe="right";break}return{node:te,start:ie,end:fe,collapse:xe,coverStart:Ne,coverEnd:_e}}function Zl(x,z){var ne=Yl;if(z=="left")for(var te=0;te<x.length&&(ne=x[te]).left==ne.right;te++);else for(var ie=x.length-1;ie>=0&&(ne=x[ie]).left==ne.right;ie--);return ne}function ua(x,z,ne,te){var ie=Ls(z.map,ne,te),fe=ie.node,xe=ie.start,Ne=ie.end,_e=ie.collapse,et;if(fe.nodeType==3){for(var Wt=0;Wt<4;Wt++){for(;xe&&ft(z.line.text.charAt(ie.coverStart+xe));)--xe;for(;ie.coverStart+Ne<ie.coverEnd&&ft(z.line.text.charAt(ie.coverStart+Ne));)++Ne;if(ge&&ke<9&&xe==0&&Ne==ie.coverEnd-ie.coverStart?et=fe.parentNode.getBoundingClientRect():et=Zl(Oe(fe,xe,Ne).getClientRects(),te),et.left||et.right||xe==0)break;Ne=xe,xe=xe-1,_e="right"}ge&&ke<11&&(et=ta(x.display.measure,et))}else{xe>0&&(_e=te="right");var tn;x.options.lineWrapping&&(tn=fe.getClientRects()).length>1?et=tn[te=="right"?tn.length-1:0]:et=fe.getBoundingClientRect()}if(ge&&ke<9&&!xe&&(!et||!et.left&&!et.right)){var Fn=fe.parentNode.getClientRects()[0];Fn?et={left:Fn.left,right:Fn.left+Sa(x.display),top:Fn.top,bottom:Fn.bottom}:et=Yl}for(var Dn=et.top-z.rect.top,rr=et.bottom-z.rect.top,yr=(Dn+rr)/2,Yr=z.view.measure.heights,oi=0;oi<Yr.length-1&&!(yr<Yr[oi]);oi++);var pi=oi?Yr[oi-1]:0,ni=Yr[oi],gi={left:(_e=="right"?et.right:et.left)-z.rect.left,right:(_e=="left"?et.left:et.right)-z.rect.left,top:pi,bottom:ni};return!et.left&&!et.right&&(gi.bogus=!0),x.options.singleCursorHeightPerLine||(gi.rtop=Dn,gi.rbottom=rr),gi}function ta(x,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Vt(x))return z;var ne=screen.logicalXDPI/screen.deviceXDPI,te=screen.logicalYDPI/screen.deviceYDPI;return{left:z.left*ne,right:z.right*ne,top:z.top*te,bottom:z.bottom*te}}function za(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 lo(x){x.display.externalMeasure=null,Ye(x.display.lineMeasure);for(var z=0;z<x.display.view.length;z++)za(x.display.view[z])}function ja(x){lo(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function Fo(){return Ee&&Je?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Zo(){return Ee&&Je?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function fl(x){var z=0;if(x.widgets)for(var ne=0;ne<x.widgets.length;++ne)x.widgets[ne].above&&(z+=Dl(x.widgets[ne]));return z}function Wo(x,z,ne,te,ie){if(!ie){var fe=fl(z);ne.top+=fe,ne.bottom+=fe}if(te=="line")return ne;te||(te="local");var xe=Sr(z);if(te=="local"?xe+=ol(x.display):xe-=x.display.viewOffset,te=="page"||te=="window"){var Ne=x.display.lineSpace.getBoundingClientRect();xe+=Ne.top+(te=="window"?0:Zo());var _e=Ne.left+(te=="window"?0:Fo());ne.left+=_e,ne.right+=_e}return ne.top+=xe,ne.bottom+=xe,ne}function Fl(x,z,ne){if(ne=="div")return z;var te=z.left,ie=z.top;if(ne=="page")te-=Fo(),ie-=Zo();else if(ne=="local"||!ne){var fe=x.display.sizer.getBoundingClientRect();te+=fe.left,ie+=fe.top}var xe=x.display.lineSpace.getBoundingClientRect();return{left:te-xe.left,top:ie-xe.top}}function Bl(x,z,ne,te,ie){return te||(te=yt(x.doc,z.line)),Wo(x,te,as(x,te,z.ch,ie),ne)}function $o(x,z,ne,te,ie,fe){te=te||yt(x.doc,z.line),ie||(ie=qo(x,te));function xe(rr,yr){var Yr=Pa(x,ie,rr,yr?"right":"left",fe);return yr?Yr.left=Yr.right:Yr.right=Yr.left,Wo(x,te,Yr,ne)}var Ne=Xt(te,x.doc.direction),_e=z.ch,et=z.sticky;if(_e>=te.text.length?(_e=te.text.length,et="before"):_e<=0&&(_e=0,et="after"),!Ne)return xe(et=="before"?_e-1:_e,et=="before");function Wt(rr,yr,Yr){var oi=Ne[yr],pi=oi.level==1;return xe(Yr?rr-1:rr,pi!=Yr)}var tn=Ge(Ne,_e,et),Fn=rt,Dn=Wt(_e,tn,et=="before");return Fn!=null&&(Dn.other=Wt(_e,Fn,et!="before")),Dn}function vu(x,z){var ne=0;z=On(x.doc,z),x.options.lineWrapping||(ne=Sa(x.display)*z.ch);var te=yt(x.doc,z.line),ie=Sr(te)+ol(x.display);return{left:ne,right:ne,top:ie,bottom:ie+te.height}}function ps(x,z,ne,te,ie){var fe=Kt(x,z,ne);return fe.xRel=ie,te&&(fe.outside=te),fe}function ms(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return ps(te.first,0,null,-1,-1);var ie=yn(te,ne),fe=te.first+te.size-1;if(ie>fe)return ps(te.first+te.size-1,yt(te,fe).text.length,null,1,1);z<0&&(z=0);for(var xe=yt(te,ie);;){var Ne=Yu(x,xe,ie,z,ne),_e=_r(xe,Ne.ch+(Ne.xRel>0||Ne.outside>0?1:0));if(!_e)return Ne;var et=_e.find(1);if(et.line==ie)return et;xe=yt(te,ie=et.line)}}function nu(x,z,ne,te){te-=fl(z);var ie=z.text.length,fe=De(function(xe){return Pa(x,ne,xe-1).bottom<=te},ie,0);return ie=De(function(xe){return Pa(x,ne,xe).top>te},fe,ie),{begin:fe,end:ie}}function js(x,z,ne,te){ne||(ne=qo(x,z));var ie=Wo(x,z,Pa(x,ne,te),"line").top;return nu(x,z,ne,ie)}function Bs(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function Yu(x,z,ne,te,ie){ie-=Sr(z);var fe=qo(x,z),xe=fl(z),Ne=0,_e=z.text.length,et=!0,Wt=Xt(z,x.doc.direction);if(Wt){var tn=(x.options.lineWrapping?ru:os)(x,z,ne,fe,Wt,te,ie);et=tn.level!=1,Ne=et?tn.from:tn.to-1,_e=et?tn.to:tn.from-1}var Fn=null,Dn=null,rr=De(function(Oi){var zi=Pa(x,fe,Oi);return zi.top+=xe,zi.bottom+=xe,Bs(zi,te,ie,!1)?(zi.top<=ie&&zi.left<=te&&(Fn=Oi,Dn=zi),!0):!1},Ne,_e),yr,Yr,oi=!1;if(Dn){var pi=te-Dn.left<Dn.right-te,ni=pi==et;rr=Fn+(ni?0:1),Yr=ni?"after":"before",yr=pi?Dn.left:Dn.right}else{!et&&(rr==_e||rr==Ne)&&rr++,Yr=rr==0?"after":rr==z.text.length?"before":Pa(x,fe,rr-(et?1:0)).bottom+xe<=ie==et?"after":"before";var gi=$o(x,Kt(ne,rr,Yr),"line",z,fe);yr=gi.left,oi=ie<gi.top?-1:ie>=gi.bottom?1:0}return rr=Fe(z.text,rr,1),ps(ne,rr,Yr,oi,te-yr)}function os(x,z,ne,te,ie,fe,xe){var Ne=De(function(tn){var Fn=ie[tn],Dn=Fn.level!=1;return Bs($o(x,Kt(ne,Dn?Fn.to:Fn.from,Dn?"before":"after"),"line",z,te),fe,xe,!0)},0,ie.length-1),_e=ie[Ne];if(Ne>0){var et=_e.level!=1,Wt=$o(x,Kt(ne,et?_e.from:_e.to,et?"after":"before"),"line",z,te);Bs(Wt,fe,xe,!0)&&Wt.top>xe&&(_e=ie[Ne-1])}return _e}function ru(x,z,ne,te,ie,fe,xe){var Ne=nu(x,z,te,xe),_e=Ne.begin,et=Ne.end;/\s/.test(z.text.charAt(et-1))&&et--;for(var Wt=null,tn=null,Fn=0;Fn<ie.length;Fn++){var Dn=ie[Fn];if(!(Dn.from>=et||Dn.to<=_e)){var rr=Dn.level!=1,yr=Pa(x,te,rr?Math.min(et,Dn.to)-1:Math.max(_e,Dn.from)).right,Yr=yr<fe?fe-yr+1e9:yr-fe;(!Wt||tn>Yr)&&(Wt=Dn,tn=Yr)}}return Wt||(Wt=ie[ie.length-1]),Wt.from<_e&&(Wt={from:_e,to:Wt.to,level:Wt.level}),Wt.to>et&&(Wt={from:Wt.from,to:et,level:Wt.level}),Wt}var ls;function vs(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(ls==null){ls=Xe("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)ls.appendChild(document.createTextNode("x")),ls.appendChild(Xe("br"));ls.appendChild(document.createTextNode("x"))}ht(x.measure,ls);var ne=ls.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),Ye(x.measure),ne||1}function Sa(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=Xe("span","xxxxxxxxxx"),ne=Xe("pre",[z],"CodeMirror-line-like");ht(x.measure,ne);var te=z.getBoundingClientRect(),ie=(te.right-te.left)/10;return ie>2&&(x.cachedCharWidth=ie),ie||10}function La(x){for(var z=x.display,ne={},te={},ie=z.gutters.clientLeft,fe=z.gutters.firstChild,xe=0;fe;fe=fe.nextSibling,++xe){var Ne=x.display.gutterSpecs[xe].className;ne[Ne]=fe.offsetLeft+fe.clientLeft+ie,te[Ne]=fe.clientWidth}return{fixedPos:_a(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function _a(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function hl(x){var z=vs(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/Sa(x.display)-3);return function(ie){if(da(x.doc,ie))return 0;var fe=0;if(ie.widgets)for(var xe=0;xe<ie.widgets.length;xe++)ie.widgets[xe].height&&(fe+=ie.widgets[xe].height);return ne?fe+(Math.ceil(ie.text.length/te)||1)*z:fe+z}}function jo(x){var z=x.doc,ne=hl(x);z.iter(function(te){var ie=ne(te);ie!=te.height&&Ht(te,ie)})}function Wl(x,z,ne,te){var ie=x.display;if(!ne&&Yn(z).getAttribute("cm-not-content")=="true")return null;var fe,xe,Ne=ie.lineSpace.getBoundingClientRect();try{fe=z.clientX-Ne.left,xe=z.clientY-Ne.top}catch(tn){return null}var _e=ms(x,fe,xe),et;if(te&&_e.xRel>0&&(et=yt(x.doc,_e.line).text).length==_e.ch){var Wt=Qe(et,et.length,x.options.tabSize)-et.length;_e=Kt(_e.line,Math.max(0,Math.round((fe-Ll(x.display).left)/Sa(x.display))-Wt))}return _e}function sl(x,z){if(z>=x.display.viewTo||(z-=x.display.viewFrom,z<0))return null;for(var ne=x.display.view,te=0;te<ne.length;te++)if(z-=ne[te].size,z<0)return te}function No(x,z,ne,te){z==null&&(z=x.doc.first),ne==null&&(ne=x.doc.first+x.doc.size),te||(te=0);var ie=x.display;if(te&&ne<ie.viewTo&&(ie.updateLineNumbers==null||ie.updateLineNumbers>z)&&(ie.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ie.viewTo)Hr&&Da(x.doc,z)<ie.viewTo&&Jl(x);else if(ne<=ie.viewFrom)Hr&&_i(x.doc,ne+te)>ie.viewFrom?Jl(x):(ie.viewFrom+=te,ie.viewTo+=te);else if(z<=ie.viewFrom&&ne>=ie.viewTo)Jl(x);else if(z<=ie.viewFrom){var fe=ql(x,ne,ne+te,1);fe?(ie.view=ie.view.slice(fe.index),ie.viewFrom=fe.lineN,ie.viewTo+=te):Jl(x)}else if(ne>=ie.viewTo){var xe=ql(x,z,z,-1);xe?(ie.view=ie.view.slice(0,xe.index),ie.viewTo=xe.lineN):Jl(x)}else{var Ne=ql(x,z,z,-1),_e=ql(x,ne,ne+te,1);Ne&&_e?(ie.view=ie.view.slice(0,Ne.index).concat(wo(x,Ne.lineN,_e.lineN)).concat(ie.view.slice(_e.index)),ie.viewTo+=te):Jl(x)}var et=ie.externalMeasured;et&&(ne<et.lineN?et.lineN+=te:z<et.lineN+et.size&&(ie.externalMeasured=null))}function Ql(x,z,ne){x.curOp.viewChanged=!0;var te=x.display,ie=x.display.externalMeasured;if(ie&&z>=ie.lineN&&z<ie.lineN+ie.size&&(te.externalMeasured=null),!(z<te.viewFrom||z>=te.viewTo)){var fe=te.view[sl(x,z)];if(fe.node!=null){var xe=fe.changes||(fe.changes=[]);Ct(xe,ne)==-1&&xe.push(ne)}}}function Jl(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function ql(x,z,ne,te){var ie=sl(x,z),fe,xe=x.display.view;if(!Hr||ne==x.doc.first+x.doc.size)return{index:ie,lineN:ne};for(var Ne=x.display.viewFrom,_e=0;_e<ie;_e++)Ne+=xe[_e].size;if(Ne!=z){if(te>0){if(ie==xe.length-1)return null;fe=Ne+xe[ie].size-z,ie++}else fe=Ne-z;z+=fe,ne+=fe}for(;Da(x.doc,ne)!=ne;){if(ie==(te<0?0:xe.length-1))return null;ne+=te*xe[ie-(te<0?1:0)].size,ie+=te}return{index:ie,lineN:ne}}function Ps(x,z,ne){var te=x.display,ie=te.view;ie.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=wo(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=wo(x,z,te.viewFrom).concat(te.view):te.viewFrom<z&&(te.view=te.view.slice(sl(x,z))),te.viewFrom=z,te.viewTo<ne?te.view=te.view.concat(wo(x,te.viewTo,ne)):te.viewTo>ne&&(te.view=te.view.slice(0,sl(x,ne)))),te.viewTo=ne}function Qu(x){for(var z=x.display.view,ne=0,te=0;te<z.length;te++){var ie=z[te];!ie.hidden&&(!ie.node||ie.changes)&&++ne}return ne}function gu(x){x.display.input.showSelection(x.display.input.prepareSelection())}function Gc(x,z){z===void 0&&(z=!0);for(var ne=x.doc,te={},ie=te.cursors=document.createDocumentFragment(),fe=te.selection=document.createDocumentFragment(),xe=0;xe<ne.sel.ranges.length;xe++)if(!(!z&&xe==ne.sel.primIndex)){var Ne=ne.sel.ranges[xe];if(!(Ne.from().line>=x.display.viewTo||Ne.to().line<x.display.viewFrom)){var _e=Ne.empty();(_e||x.options.showCursorWhenSelecting)&&bc(x,Ne.head,ie),_e||Ad(x,Ne,fe)}}return te}function bc(x,z,ne){var te=$o(x,z,"div",null,null,!x.options.singleCursorHeightPerLine),ie=ne.appendChild(Xe("div","\xA0","CodeMirror-cursor"));if(ie.style.left=te.left+"px",ie.style.top=te.top+"px",ie.style.height=Math.max(0,te.bottom-te.top)*x.options.cursorHeight+"px",te.other){var fe=ne.appendChild(Xe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));fe.style.display="",fe.style.left=te.other.left+"px",fe.style.top=te.other.top+"px",fe.style.height=(te.other.bottom-te.other.top)*.85+"px"}}function _u(x,z){return x.top-z.top||x.left-z.left}function Ad(x,z,ne){var te=x.display,ie=x.doc,fe=document.createDocumentFragment(),xe=Ll(x.display),Ne=xe.left,_e=Math.max(te.sizerWidth,xo(x)-te.sizer.offsetLeft)-xe.right,et=ie.direction=="ltr";function Wt(ni,gi,Oi,zi){gi<0&&(gi=0),gi=Math.round(gi),zi=Math.round(zi),fe.appendChild(Xe("div",null,"CodeMirror-selected","position: absolute; left: "+ni+`px;
top: `+gi+"px; width: "+(Oi==null?_e-ni:Oi)+`px;
height: `+(zi-gi)+"px"))}function tn(ni,gi,Oi){var zi=yt(ie,ni),ga=zi.text.length,uo,yl;function Io(rl,Gl){return Bl(x,Kt(ni,rl),"div",zi,Gl)}function jl(rl,Gl,qi){var _o=js(x,zi,null,rl),To=Gl=="ltr"==(qi=="after")?"left":"right",Ko=qi=="after"?_o.begin:_o.end-(/\s/.test(zi.text.charAt(_o.end-1))?2:1);return Io(Ko,To)[To]}var Vl=Xt(zi,ie.direction);return mt(Vl,gi||0,Oi==null?ga:Oi,function(rl,Gl,qi,_o){var To=qi=="ltr",Ko=Io(rl,To?"left":"right"),Yo=Io(Gl-1,To?"right":"left"),$u=gi==null&&rl==0,rs=Oi==null&&Gl==ga,Sl=_o==0,Za=!Vl||_o==Vl.length-1;if(Yo.top-Ko.top<=3){var cl=(et?$u:rs)&&Sl,sd=(et?rs:$u)&&Za,hu=cl?Ne:(To?Ko:Yo).left,ku=sd?_e:(To?Yo:Ko).right;Wt(hu,Ko.top,ku-hu,Ko.bottom)}else{var Qs,il,ju,wl;To?(Qs=et&&$u&&Sl?Ne:Ko.left,il=et?_e:jl(rl,qi,"before"),ju=et?Ne:jl(Gl,qi,"after"),wl=et&&rs&&Za?_e:Yo.right):(Qs=et?jl(rl,qi,"before"):Ne,il=!et&&$u&&Sl?_e:Ko.right,ju=!et&&rs&&Za?Ne:Yo.left,wl=et?jl(Gl,qi,"after"):_e),Wt(Qs,Ko.top,il-Qs,Ko.bottom),Ko.bottom<Yo.top&&Wt(Ne,Ko.bottom,null,Yo.top),Wt(ju,Yo.top,wl-ju,Yo.bottom)}(!uo||_u(Ko,uo)<0)&&(uo=Ko),_u(Yo,uo)<0&&(uo=Yo),(!yl||_u(Ko,yl)<0)&&(yl=Ko),_u(Yo,yl)<0&&(yl=Yo)}),{start:uo,end:yl}}var Fn=z.from(),Dn=z.to();if(Fn.line==Dn.line)tn(Fn.line,Fn.ch,Dn.ch);else{var rr=yt(ie,Fn.line),yr=yt(ie,Dn.line),Yr=di(rr)==di(yr),oi=tn(Fn.line,Fn.ch,Yr?rr.text.length+1:null).end,pi=tn(Dn.line,Yr?0:null,Dn.ch).start;Yr&&(oi.top<pi.top-2?(Wt(oi.right,oi.top,null,oi.bottom),Wt(Ne,pi.top,pi.left,pi.bottom)):Wt(oi.right,oi.top,pi.left-oi.right,oi.bottom)),oi.bottom<pi.top&&Wt(Ne,oi.bottom,null,pi.top)}ne.appendChild(fe)}function Ju(x){if(x.state.focused){var z=x.display;clearInterval(z.blinker);var ne=!0;z.cursorDiv.style.visibility="",x.options.cursorBlinkRate>0?z.blinker=setInterval(function(){x.hasFocus()||iu(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function Ku(x){x.state.focused||(x.display.input.focus(),Cc(x))}function xc(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,iu(x))},100)}function Cc(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(Le(x,"focus",x,z),x.state.focused=!0,zt(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),he&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),Ju(x))}function iu(x,z){x.state.delayingBlurEvent||(x.state.focused&&(Le(x,"blur",x,z),x.state.focused=!1,$e(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function qu(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te<z.view.length;te++){var ie=z.view[te],fe=x.options.lineWrapping,xe=void 0,Ne=0;if(!ie.hidden){if(ge&&ke<8){var _e=ie.node.offsetTop+ie.node.offsetHeight;xe=_e-ne,ne=_e}else{var et=ie.node.getBoundingClientRect();xe=et.bottom-et.top,!fe&&ie.text.firstChild&&(Ne=ie.text.firstChild.getBoundingClientRect().right-et.left-1)}var Wt=ie.line.height-xe;if((Wt>.005||Wt<-.005)&&(Ht(ie.line,xe),Sc(ie.line),ie.rest))for(var tn=0;tn<ie.rest.length;tn++)Sc(ie.rest[tn]);if(Ne>x.display.sizerWidth){var Fn=Math.ceil(Ne/Sa(x.display));Fn>x.display.maxLineLength&&(x.display.maxLineLength=Fn,x.display.maxLine=ie.line,x.display.maxLineChanged=!0)}}}}function Sc(x){if(x.widgets)for(var z=0;z<x.widgets.length;++z){var ne=x.widgets[z],te=ne.node.parentNode;te&&(ne.height=te.offsetHeight)}}function el(x,z,ne){var te=ne&&ne.top!=null?Math.max(0,ne.top):x.scroller.scrollTop;te=Math.floor(te-ol(x));var ie=ne&&ne.bottom!=null?ne.bottom:te+x.wrapper.clientHeight,fe=yn(z,te),xe=yn(z,ie);if(ne&&ne.ensure){var Ne=ne.ensure.from.line,_e=ne.ensure.to.line;Ne<fe?(fe=Ne,xe=yn(z,Sr(yt(z,Ne))+x.wrapper.clientHeight)):Math.min(_e,z.lastLine())>=xe&&(fe=yn(z,Sr(yt(z,_e))-x.wrapper.clientHeight),xe=_e)}return{from:fe,to:Math.max(xe,fe+1)}}function Is(x,z){if(!it(x,"scrollCursorIntoView")){var ne=x.display,te=ne.sizer.getBoundingClientRect(),ie=null;if(z.top+te.top<0?ie=!0:z.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ie=!1),ie!=null&&!He){var fe=Xe("div","\u200B",null,`position: absolute;
top: `+(z.top-ne.viewOffset-ol(x.display))+`px;
height: `+(z.bottom-z.top+Oo(x)+ne.barHeight)+`px;
left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(fe),fe.scrollIntoView(ie),x.display.lineSpace.removeChild(fe)}}}function au(x,z,ne,te){te==null&&(te=0);var ie;!x.options.lineWrapping&&z==ne&&(z=z.ch?Kt(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?Kt(z.line,z.ch+1,"before"):z);for(var fe=0;fe<5;fe++){var xe=!1,Ne=$o(x,z),_e=!ne||ne==z?Ne:$o(x,ne);ie={left:Math.min(Ne.left,_e.left),top:Math.min(Ne.top,_e.top)-te,right:Math.max(Ne.left,_e.left),bottom:Math.max(Ne.bottom,_e.bottom)+te};var et=ec(x,ie),Wt=x.doc.scrollTop,tn=x.doc.scrollLeft;if(et.scrollTop!=null&&(Vs(x,et.scrollTop),Math.abs(x.doc.scrollTop-Wt)>1&&(xe=!0)),et.scrollLeft!=null&&(Ts(x,et.scrollLeft),Math.abs(x.doc.scrollLeft-tn)>1&&(xe=!0)),!xe)break}return ie}function Uc(x,z){var ne=ec(x,z);ne.scrollTop!=null&&Vs(x,ne.scrollTop),ne.scrollLeft!=null&&Ts(x,ne.scrollLeft)}function ec(x,z){var ne=x.display,te=vs(x.display);z.top<0&&(z.top=0);var ie=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,fe=Hl(x),xe={};z.bottom-z.top>fe&&(z.bottom=z.top+fe);var Ne=x.doc.height+Ds(ne),_e=z.top<te,et=z.bottom>Ne-te;if(z.top<ie)xe.scrollTop=_e?0:z.top;else if(z.bottom>ie+fe){var Wt=Math.min(z.top,(et?Ne:z.bottom)-fe);Wt!=ie&&(xe.scrollTop=Wt)}var tn=x.options.fixedGutter?0:ne.gutters.offsetWidth,Fn=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-tn,Dn=xo(x)-ne.gutters.offsetWidth,rr=z.right-z.left>Dn;return rr&&(z.right=z.left+Dn),z.left<10?xe.scrollLeft=0:z.left<Fn?xe.scrollLeft=Math.max(0,z.left+tn-(rr?0:10)):z.right>Dn+Fn-3&&(xe.scrollLeft=z.right+(rr?0:10)-Dn),xe}function tc(x,z){z!=null&&(Hu(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function yu(x){Hu(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function ou(x,z,ne){(z!=null||ne!=null)&&Hu(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function Ld(x,z){Hu(x),x.curOp.scrollToPos=z}function Hu(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=vu(x,z.from),te=vu(x,z.to);Xc(x,ne,te,z.margin)}}function Xc(x,z,ne,te){var ie=ec(x,{left:Math.min(z.left,ne.left),top:Math.min(z.top,ne.top)-te,right:Math.max(z.right,ne.right),bottom:Math.max(z.bottom,ne.bottom)+te});ou(x,ie.scrollLeft,ie.scrollTop)}function Vs(x,z){Math.abs(x.doc.scrollTop-z)<2||(me||Gr(x,{top:z}),Yc(x,z,!0),me&&Gr(x),Tn(x,100))}function Yc(x,z,ne){z=Math.max(0,Math.min(x.display.scroller.scrollHeight-x.display.scroller.clientHeight,z)),!(x.display.scroller.scrollTop==z&&!ne)&&(x.doc.scrollTop=z,x.display.scrollbars.setScrollTop(z),x.display.scroller.scrollTop!=z&&(x.display.scroller.scrollTop=z))}function Ts(x,z,ne,te){z=Math.max(0,Math.min(z,x.display.scroller.scrollWidth-x.display.scroller.clientWidth)),!((ne?z==x.doc.scrollLeft:Math.abs(x.doc.scrollLeft-z)<2)&&!te)&&(x.doc.scrollLeft=z,wi(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function bu(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+Ds(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?ne:0,docHeight:te,scrollHeight:te+Oo(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var Os=function(x,z,ne){this.cm=ne;var te=this.vert=Xe("div",[Xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ie=this.horiz=Xe("div",[Xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ie.tabIndex=-1,x(te),x(ie),Rt(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),Rt(ie,"scroll",function(){ie.clientWidth&&z(ie.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ge&&ke<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Os.prototype.update=function(x){var z=x.scrollWidth>x.clientWidth+1,ne=x.scrollHeight>x.clientHeight+1,te=x.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=z?te+"px":"0";var ie=x.viewHeight-(z?te:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+ie)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=ne?te+"px":"0",this.horiz.style.left=x.barLeft+"px";var fe=x.viewWidth-x.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+fe)+"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:ne?te:0,bottom:z?te:0}},Os.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Os.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Os.prototype.zeroWidthHack=function(){var x=gt&&!Ie?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new be,this.disableVert=new be},Os.prototype.enableZeroWidthBar=function(x,z,ne){x.style.pointerEvents="auto";function te(){var ie=x.getBoundingClientRect(),fe=ne=="vert"?document.elementFromPoint(ie.right-1,(ie.top+ie.bottom)/2):document.elementFromPoint((ie.right+ie.left)/2,ie.bottom-1);fe!=x?x.style.pointerEvents="none":z.set(1e3,te)}z.set(1e3,te)},Os.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var Nl=function(){};Nl.prototype.update=function(){return{bottom:0,right:0}},Nl.prototype.setScrollLeft=function(){},Nl.prototype.setScrollTop=function(){},Nl.prototype.clear=function(){};function Gs(x,z){z||(z=bu(x));var ne=x.display.barWidth,te=x.display.barHeight;nc(x,z);for(var ie=0;ie<4&&ne!=x.display.barWidth||te!=x.display.barHeight;ie++)ne!=x.display.barWidth&&x.options.lineWrapping&&qu(x),nc(x,bu(x)),ne=x.display.barWidth,te=x.display.barHeight}function nc(x,z){var ne=x.display,te=ne.scrollbars.update(z);ne.sizer.style.paddingRight=(ne.barWidth=te.right)+"px",ne.sizer.style.paddingBottom=(ne.barHeight=te.bottom)+"px",ne.heightForcer.style.borderBottom=te.bottom+"px solid transparent",te.right&&te.bottom?(ne.scrollbarFiller.style.display="block",ne.scrollbarFiller.style.height=te.bottom+"px",ne.scrollbarFiller.style.width=te.right+"px"):ne.scrollbarFiller.style.display="",te.bottom&&x.options.coverGutterNextToScrollbar&&x.options.fixedGutter?(ne.gutterFiller.style.display="block",ne.gutterFiller.style.height=te.bottom+"px",ne.gutterFiller.style.width=z.gutterWidth+"px"):ne.gutterFiller.style.display=""}var wc={native:Os,null:Nl};function Ec(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&$e(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new wc[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),Rt(z,"mousedown",function(){x.state.focused&&setTimeout(function(){return x.display.input.focus()},0)}),z.setAttribute("cm-not-content","true")},function(z,ne){ne=="horizontal"?Ts(x,z):Vs(x,z)},x),x.display.scrollbars.addClass&&zt(x.display.wrapper,x.display.scrollbars.addClass)}var Qc=0;function bl(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:++Qc},ya(x.curOp)}function Fs(x){var z=x.curOp;z&&Ni(z,function(ne){for(var te=0;te<ne.ops.length;te++)ne.ops[te].cm.curOp=null;Jc(ne)})}function Jc(x){for(var z=x.ops,ne=0;ne<z.length;ne++)Re(z[ne]);for(var te=0;te<z.length;te++)Ke(z[te]);for(var ie=0;ie<z.length;ie++)wt(z[ie]);for(var fe=0;fe<z.length;fe++)Tt(z[fe]);for(var xe=0;xe<z.length;xe++)Gt(z[xe])}function Re(x){var z=x.cm,ne=z.display;ur(z),x.updateMaxLine&&sr(z),x.mustUpdate=x.viewChanged||x.forceUpdate||x.scrollTop!=null||x.scrollToPos&&(x.scrollToPos.from.line<ne.viewFrom||x.scrollToPos.to.line>=ne.viewTo)||ne.maxLineChanged&&z.options.lineWrapping,x.update=x.mustUpdate&&new zn(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Ke(x){x.updatedDisplay=x.mustUpdate&&Vr(x.cm,x.update)}function wt(x){var z=x.cm,ne=z.display;x.updatedDisplay&&qu(z),x.barMeasure=bu(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=as(z,ne.maxLine,ne.maxLine.text.length).left+3,z.display.sizerWidth=x.adjustWidthTo,x.barMeasure.scrollWidth=Math.max(ne.scroller.clientWidth,ne.sizer.offsetLeft+x.adjustWidthTo+Oo(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-xo(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function Tt(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<z.doc.scrollLeft&&Ts(z,Math.min(z.display.scroller.scrollLeft,x.maxScrollLeft),!0),z.display.maxLineChanged=!1);var ne=x.focus&&x.focus==qe();x.preparedSelection&&z.display.input.showSelection(x.preparedSelection,ne),(x.updatedDisplay||x.startHeight!=z.doc.height)&&Gs(z,x.barMeasure),x.updatedDisplay&&Ci(z,x.barMeasure),x.selectionChanged&&Ju(z),z.state.focused&&x.updateInput&&z.display.input.reset(x.typing),ne&&Ku(x.cm)}function Gt(x){var z=x.cm,ne=z.display,te=z.doc;if(x.updatedDisplay&&Tr(z,x.update),ne.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),x.scrollTop!=null&&Yc(z,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&Ts(z,x.scrollLeft,!0,!0),x.scrollToPos){var ie=au(z,On(te,x.scrollToPos.from),On(te,x.scrollToPos.to),x.scrollToPos.margin);Is(z,ie)}var fe=x.maybeHiddenMarkers,xe=x.maybeUnhiddenMarkers;if(fe)for(var Ne=0;Ne<fe.length;++Ne)fe[Ne].lines.length||Le(fe[Ne],"hide");if(xe)for(var _e=0;_e<xe.length;++_e)xe[_e].lines.length&&Le(xe[_e],"unhide");ne.wrapper.offsetHeight&&(te.scrollTop=z.display.scroller.scrollTop),x.changeObjs&&Le(z,"changes",z,x.changeObjs),x.update&&x.update.finish()}function _t(x,z){if(x.curOp)return z();bl(x);try{return z()}finally{Fs(x)}}function fn(x,z){return function(){if(x.curOp)return z.apply(x,arguments);bl(x);try{return z.apply(x,arguments)}finally{Fs(x)}}}function dn(x){return function(){if(this.curOp)return x.apply(this,arguments);bl(this);try{return x.apply(this,arguments)}finally{Fs(this)}}}function sn(x){return function(){var z=this.cm;if(!z||z.curOp)return x.apply(this,arguments);bl(z);try{return x.apply(this,arguments)}finally{Fs(z)}}}function Tn(x,z){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(z,St(Un,x))}function Un(x){var z=x.doc;if(!(z.highlightFrontier>=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=vn(x,z.highlightFrontier),ie=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(fe){if(te.line>=x.display.viewFrom){var xe=fe.styles,Ne=fe.text.length>x.options.maxHighlightLength?Ae(z.mode,te.state):null,_e=Cn(x,fe,te,!0);Ne&&(te.state=Ne),fe.styles=_e.styles;var et=fe.styleClasses,Wt=_e.classes;Wt?fe.styleClasses=Wt:et&&(fe.styleClasses=null);for(var tn=!xe||xe.length!=fe.styles.length||et!=Wt&&(!et||!Wt||et.bgClass!=Wt.bgClass||et.textClass!=Wt.textClass),Fn=0;!tn&&Fn<xe.length;++Fn)tn=xe[Fn]!=fe.styles[Fn];tn&&ie.push(te.line),fe.stateAfter=te.save(),te.nextLine()}else fe.text.length<=x.options.maxHighlightLength&&pn(x,fe.text,te),fe.stateAfter=te.line%5==0?te.save():null,te.nextLine();if(+new Date>ne)return Tn(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),ie.length&&_t(x,function(){for(var fe=0;fe<ie.length;fe++)Ql(x,ie[fe],"text")})}}var zn=function(x,z,ne){var te=x.display;this.viewport=z,this.visible=el(te,x.doc,z),this.editorIsHidden=!te.wrapper.offsetWidth,this.wrapperHeight=te.wrapper.clientHeight,this.wrapperWidth=te.wrapper.clientWidth,this.oldDisplayWidth=xo(x),this.force=ne,this.dims=La(x),this.events=[]};zn.prototype.signal=function(x,z){Ft(x,z)&&this.events.push(arguments)},zn.prototype.finish=function(){for(var x=0;x<this.events.length;x++)Le.apply(null,this.events[x])};function ur(x){var z=x.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=Oo(x)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=Oo(x)+"px",z.scrollbarsClipped=!0)}function ar(x){if(x.hasFocus())return null;var z=qe();if(!z||!Pt(x.display.lineDiv,z))return null;var ne={activeElt:z};if(window.getSelection){var te=window.getSelection();te.anchorNode&&te.extend&&Pt(x.display.lineDiv,te.anchorNode)&&(ne.anchorNode=te.anchorNode,ne.anchorOffset=te.anchorOffset,ne.focusNode=te.focusNode,ne.focusOffset=te.focusOffset)}return ne}function or(x){if(!(!x||!x.activeElt||x.activeElt==qe())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&Pt(document.body,x.anchorNode)&&Pt(document.body,x.focusNode))){var z=window.getSelection(),ne=document.createRange();ne.setEnd(x.anchorNode,x.anchorOffset),ne.collapse(!1),z.removeAllRanges(),z.addRange(ne),z.extend(x.focusNode,x.focusOffset)}}function Vr(x,z){var ne=x.display,te=x.doc;if(z.editorIsHidden)return Jl(x),!1;if(!z.force&&z.visible.from>=ne.viewFrom&&z.visible.to<=ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo)&&ne.renderedView==ne.view&&Qu(x)==0)return!1;ui(x)&&(Jl(x),z.dims=La(x));var ie=te.first+te.size,fe=Math.max(z.visible.from-x.options.viewportMargin,te.first),xe=Math.min(ie,z.visible.to+x.options.viewportMargin);ne.viewFrom<fe&&fe-ne.viewFrom<20&&(fe=Math.max(te.first,ne.viewFrom)),ne.viewTo>xe&&ne.viewTo-xe<20&&(xe=Math.min(ie,ne.viewTo)),Hr&&(fe=Da(x.doc,fe),xe=_i(x.doc,xe));var Ne=fe!=ne.viewFrom||xe!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;Ps(x,fe,xe),ne.viewOffset=Sr(yt(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var _e=Qu(x);if(!Ne&&_e==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var et=ar(x);return _e>4&&(ne.lineDiv.style.display="none"),Fr(x,ne.updateLineNumbers,z.dims),_e>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,or(et),Ye(ne.cursorDiv),Ye(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,Ne&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,Tn(x,400)),ne.updateLineNumbers=null,!0}function Tr(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==xo(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+Ds(x.display)-Hl(x),ne.top)}),z.visible=el(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=el(x.display,x.doc,ne));if(!Vr(x,z))break;qu(x);var ie=bu(x);gu(x),Gs(x,ie),Ci(x,ie),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 Gr(x,z){var ne=new zn(x,z);if(Vr(x,ne)){qu(x),Tr(x,ne);var te=bu(x);gu(x),Gs(x,te),Ci(x,te),ne.finish()}}function Fr(x,z,ne){var te=x.display,ie=x.options.lineNumbers,fe=te.lineDiv,xe=fe.firstChild;function Ne(rr){var yr=rr.nextSibling;return he&&gt&&x.display.currentWheelTarget==rr?rr.style.display="none":rr.parentNode.removeChild(rr),yr}for(var _e=te.view,et=te.viewFrom,Wt=0;Wt<_e.length;Wt++){var tn=_e[Wt];if(!tn.hidden)if(!tn.node||tn.node.parentNode!=fe){var Fn=Qa(x,tn,et,ne);fe.insertBefore(Fn,xe)}else{for(;xe!=tn.node;)xe=Ne(xe);var Dn=ie&&z!=null&&z<=et&&tn.lineNumber;tn.changes&&(Ct(tn.changes,"gutter")>-1&&(Dn=!1),ji(x,tn,et,ne)),Dn&&(Ye(tn.lineNumber),tn.lineNumber.appendChild(document.createTextNode(Mn(x.options,et)))),xe=tn.node.nextSibling}et+=tn.size}for(;xe;)xe=Ne(xe)}function qr(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Ci(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+Oo(x)+"px"}function wi(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=_a(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ie=z.gutters.offsetWidth,fe=te+"px",xe=0;xe<ne.length;xe++)if(!ne[xe].hidden){x.options.fixedGutter&&(ne[xe].gutter&&(ne[xe].gutter.style.left=fe),ne[xe].gutterBackground&&(ne[xe].gutterBackground.style.left=fe));var Ne=ne[xe].alignable;if(Ne)for(var _e=0;_e<Ne.length;_e++)Ne[_e].style.left=fe}x.options.fixedGutter&&(z.gutters.style.left=te+ie+"px")}}function ui(x){if(!x.options.lineNumbers)return!1;var z=x.doc,ne=Mn(x.options,z.first+z.size-1),te=x.display;if(ne.length!=te.lineNumChars){var ie=te.measure.appendChild(Xe("div",[Xe("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),fe=ie.firstChild.offsetWidth,xe=ie.offsetWidth-fe;return te.lineGutter.style.width="",te.lineNumInnerWidth=Math.max(fe,te.lineGutter.offsetWidth-xe)+1,te.lineNumWidth=te.lineNumInnerWidth+xe,te.lineNumChars=te.lineNumInnerWidth?ne.length:-1,te.lineGutter.style.width=te.lineNumWidth+"px",qr(x.display),!0}return!1}function Ti(x,z){for(var ne=[],te=!1,ie=0;ie<x.length;ie++){var fe=x[ie],xe=null;if(typeof fe!="string"&&(xe=fe.style,fe=fe.className),fe=="CodeMirror-linenumbers")if(z)te=!0;else continue;ne.push({className:fe,style:xe})}return z&&!te&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function Vi(x){var z=x.gutters,ne=x.gutterSpecs;Ye(z),x.lineGutter=null;for(var te=0;te<ne.length;++te){var ie=ne[te],fe=ie.className,xe=ie.style,Ne=z.appendChild(Xe("div",null,"CodeMirror-gutter "+fe));xe&&(Ne.style.cssText=xe),fe=="CodeMirror-linenumbers"&&(x.lineGutter=Ne,Ne.style.width=(x.lineNumWidth||1)+"px")}z.style.display=ne.length?"":"none",qr(x)}function ri(x){Vi(x.display),No(x),wi(x)}function mi(x,z,ne,te){var ie=this;this.input=ne,ie.scrollbarFiller=Xe("div",null,"CodeMirror-scrollbar-filler"),ie.scrollbarFiller.setAttribute("cm-not-content","true"),ie.gutterFiller=Xe("div",null,"CodeMirror-gutter-filler"),ie.gutterFiller.setAttribute("cm-not-content","true"),ie.lineDiv=ut("div",null,"CodeMirror-code"),ie.selectionDiv=Xe("div",null,null,"position: relative; z-index: 1"),ie.cursorDiv=Xe("div",null,"CodeMirror-cursors"),ie.measure=Xe("div",null,"CodeMirror-measure"),ie.lineMeasure=Xe("div",null,"CodeMirror-measure"),ie.lineSpace=ut("div",[ie.measure,ie.lineMeasure,ie.selectionDiv,ie.cursorDiv,ie.lineDiv],null,"position: relative; outline: none");var fe=ut("div",[ie.lineSpace],"CodeMirror-lines");ie.mover=Xe("div",[fe],null,"position: relative"),ie.sizer=Xe("div",[ie.mover],"CodeMirror-sizer"),ie.sizerWidth=null,ie.heightForcer=Xe("div",null,null,"position: absolute; height: "+Yt+"px; width: 1px;"),ie.gutters=Xe("div",null,"CodeMirror-gutters"),ie.lineGutter=null,ie.scroller=Xe("div",[ie.sizer,ie.heightForcer,ie.gutters],"CodeMirror-scroll"),ie.scroller.setAttribute("tabIndex","-1"),ie.wrapper=Xe("div",[ie.scrollbarFiller,ie.gutterFiller,ie.scroller],"CodeMirror"),ge&&ke<8&&(ie.gutters.style.zIndex=-1,ie.scroller.style.paddingRight=0),!he&&!(me&&Ue)&&(ie.scroller.draggable=!0),x&&(x.appendChild?x.appendChild(ie.wrapper):x(ie.wrapper)),ie.viewFrom=ie.viewTo=z.first,ie.reportedViewFrom=ie.reportedViewTo=z.first,ie.view=[],ie.renderedView=null,ie.externalMeasured=null,ie.viewOffset=0,ie.lastWrapHeight=ie.lastWrapWidth=0,ie.updateLineNumbers=null,ie.nativeBarWidth=ie.barHeight=ie.barWidth=0,ie.scrollbarsClipped=!1,ie.lineNumWidth=ie.lineNumInnerWidth=ie.lineNumChars=null,ie.alignWidgets=!1,ie.cachedCharWidth=ie.cachedTextHeight=ie.cachedPaddingH=null,ie.maxLine=null,ie.maxLineLength=0,ie.maxLineChanged=!1,ie.wheelDX=ie.wheelDY=ie.wheelStartX=ie.wheelStartY=null,ie.shift=!1,ie.selForContextMenu=null,ie.activeTouch=null,ie.gutterSpecs=Ti(te.gutters,te.lineNumbers),Vi(ie),ne.init(ie)}var ii=0,Ar=null;ge?Ar=-.53:me?Ar=15:Ee?Ar=-.7:vt&&(Ar=-1/3);function ai(x){var z=x.wheelDeltaX,ne=x.wheelDeltaY;return z==null&&x.detail&&x.axis==x.HORIZONTAL_AXIS&&(z=x.detail),ne==null&&x.detail&&x.axis==x.VERTICAL_AXIS?ne=x.detail:ne==null&&(ne=x.wheelDelta),{x:z,y:ne}}function Ii(x){var z=ai(x);return z.x*=Ar,z.y*=Ar,z}function Ji(x,z){var ne=ai(z),te=ne.x,ie=ne.y,fe=x.display,xe=fe.scroller,Ne=xe.scrollWidth>xe.clientWidth,_e=xe.scrollHeight>xe.clientHeight;if(te&&Ne||ie&&_e){if(ie&&gt&&he){e:for(var et=z.target,Wt=fe.view;et!=xe;et=et.parentNode)for(var tn=0;tn<Wt.length;tn++)if(Wt[tn].node==et){x.display.currentWheelTarget=et;break e}}if(te&&!me&&!ze&&Ar!=null){ie&&_e&&Vs(x,Math.max(0,xe.scrollTop+ie*Ar)),Ts(x,Math.max(0,xe.scrollLeft+te*Ar)),(!ie||ie&&_e)&&bn(z),fe.wheelStartX=null;return}if(ie&&Ar!=null){var Fn=ie*Ar,Dn=x.doc.scrollTop,rr=Dn+fe.wrapper.clientHeight;Fn<0?Dn=Math.max(0,Dn+Fn-50):rr=Math.min(x.doc.height,rr+Fn+50),Gr(x,{top:Dn,bottom:rr})}ii<20&&(fe.wheelStartX==null?(fe.wheelStartX=xe.scrollLeft,fe.wheelStartY=xe.scrollTop,fe.wheelDX=te,fe.wheelDY=ie,setTimeout(function(){if(fe.wheelStartX!=null){var yr=xe.scrollLeft-fe.wheelStartX,Yr=xe.scrollTop-fe.wheelStartY,oi=Yr&&fe.wheelDY&&Yr/fe.wheelDY||yr&&fe.wheelDX&&yr/fe.wheelDX;fe.wheelStartX=fe.wheelStartY=null,oi&&(Ar=(Ar*ii+oi)/(ii+1),++ii)}},200)):(fe.wheelDX+=te,fe.wheelDY+=ie))}}var Ai=function(x,z){this.ranges=x,this.primIndex=z};Ai.prototype.primary=function(){return this.ranges[this.primIndex]},Ai.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 ne=this.ranges[z],te=x.ranges[z];if(!Hn(ne.anchor,te.anchor)||!Hn(ne.head,te.head))return!1}return!0},Ai.prototype.deepCopy=function(){for(var x=[],z=0;z<this.ranges.length;z++)x[z]=new Xr(Zn(this.ranges[z].anchor),Zn(this.ranges[z].head));return new Ai(x,this.primIndex)},Ai.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},Ai.prototype.contains=function(x,z){z||(z=x);for(var ne=0;ne<this.ranges.length;ne++){var te=this.ranges[ne];if(hn(z,te.from())>=0&&hn(x,te.to())<=0)return ne}return-1};var Xr=function(x,z){this.anchor=x,this.head=z};Xr.prototype.from=function(){return jn(this.anchor,this.head)},Xr.prototype.to=function(){return Kn(this.anchor,this.head)},Xr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ki(x,z,ne){var te=x&&x.options.selectionsMayTouch,ie=z[ne];z.sort(function(Fn,Dn){return hn(Fn.from(),Dn.from())}),ne=Ct(z,ie);for(var fe=1;fe<z.length;fe++){var xe=z[fe],Ne=z[fe-1],_e=hn(Ne.to(),xe.from());if(te&&!xe.empty()?_e>0:_e>=0){var et=jn(Ne.from(),xe.from()),Wt=Kn(Ne.to(),xe.to()),tn=Ne.empty()?xe.from()==xe.head:Ne.from()==Ne.head;fe<=ne&&--ne,z.splice(--fe,2,new Xr(tn?Wt:et,tn?et:Wt))}}return new Ai(z,ne)}function Gi(x,z){return new Ai([new Xr(x,z||x)],0)}function ba(x){return x.text?Kt(x.from.line+x.text.length-1,on(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function ha(x,z){if(hn(x,z.from)<0)return x;if(hn(x,z.to)<=0)return ba(z);var ne=x.line+z.text.length-(z.to.line-z.from.line)-1,te=x.ch;return x.line==z.to.line&&(te+=ba(z).ch-z.to.ch),Kt(ne,te)}function qa(x,z){for(var ne=[],te=0;te<x.sel.ranges.length;te++){var ie=x.sel.ranges[te];ne.push(new Xr(ha(ie.anchor,z),ha(ie.head,z)))}return Ki(x.cm,ne,x.sel.primIndex)}function Ka(x,z,ne){return x.line==z.line?Kt(ne.line,x.ch-z.ch+ne.ch):Kt(ne.line+(x.line-z.line),x.ch)}function $i(x,z,ne){for(var te=[],ie=Kt(x.first,0),fe=ie,xe=0;xe<z.length;xe++){var Ne=z[xe],_e=Ka(Ne.from,ie,fe),et=Ka(ba(Ne),ie,fe);if(ie=Ne.to,fe=et,ne=="around"){var Wt=x.sel.ranges[xe],tn=hn(Wt.head,Wt.anchor)<0;te[xe]=new Xr(tn?et:_e,tn?_e:et)}else te[xe]=new Xr(_e,_e)}return new Ai(te,x.sel.primIndex)}function mo(x){x.doc.mode=kn(x.options,x.doc.modeOption),oa(x)}function oa(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,Tn(x,100),x.state.modeGen++,x.curOp&&No(x)}function Ga(x,z){return z.from.ch==0&&z.to.ch==0&&on(z.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function Ha(x,z,ne,te){function ie(pi){return ne?ne[pi]:null}function fe(pi,ni,gi){xi(pi,ni,gi,te),fi(pi,"change",pi,z)}function xe(pi,ni){for(var gi=[],Oi=pi;Oi<ni;++Oi)gi.push(new hr(et[Oi],ie(Oi),te));return gi}var Ne=z.from,_e=z.to,et=z.text,Wt=yt(x,Ne.line),tn=yt(x,_e.line),Fn=on(et),Dn=ie(et.length-1),rr=_e.line-Ne.line;if(z.full)x.insert(0,xe(0,et.length)),x.remove(et.length,x.size-et.length);else if(Ga(x,z)){var yr=xe(0,et.length-1);fe(tn,tn.text,Dn),rr&&x.remove(Ne.line,rr),yr.length&&x.insert(Ne.line,yr)}else if(Wt==tn)if(et.length==1)fe(Wt,Wt.text.slice(0,Ne.ch)+Fn+Wt.text.slice(_e.ch),Dn);else{var Yr=xe(1,et.length-1);Yr.push(new hr(Fn+Wt.text.slice(_e.ch),Dn,te)),fe(Wt,Wt.text.slice(0,Ne.ch)+et[0],ie(0)),x.insert(Ne.line+1,Yr)}else if(et.length==1)fe(Wt,Wt.text.slice(0,Ne.ch)+et[0]+tn.text.slice(_e.ch),ie(0)),x.remove(Ne.line+1,rr);else{fe(Wt,Wt.text.slice(0,Ne.ch)+et[0],ie(0)),fe(tn,Fn+tn.text.slice(_e.ch),Dn);var oi=xe(1,et.length-1);rr>1&&x.remove(Ne.line+1,rr-1),x.insert(Ne.line+1,oi)}fi(x,"change",x,z)}function Eo(x,z,ne){function te(ie,fe,xe){if(ie.linked)for(var Ne=0;Ne<ie.linked.length;++Ne){var _e=ie.linked[Ne];if(_e.doc!=fe){var et=xe&&_e.sharedHist;ne&&!et||(z(_e.doc,et),te(_e.doc,ie,et))}}}te(x,null,!0)}function Li(x,z){if(z.cm)throw new Error("This document is already in use.");x.doc=z,z.cm=x,jo(x),mo(x),Mi(x),x.options.lineWrapping||sr(x),x.options.mode=z.modeOption,No(x)}function Mi(x){(x.doc.direction=="rtl"?zt:$e)(x.display.lineDiv,"CodeMirror-rtl")}function ki(x){_t(x,function(){Mi(x),No(x)})}function yi(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 pa(x,z){var ne={from:Zn(z.from),to:ba(z),text:Lt(x,z.from,z.to)};return Rl(x,ne,z.from.line,z.to.line+1),Eo(x,function(te){return Rl(te,ne,z.from.line,z.to.line+1)},!0),ne}function Si(x){for(;x.length;){var z=on(x);if(z.ranges)x.pop();else break}}function Hi(x,z){if(z)return Si(x.done),on(x.done);if(x.done.length&&!on(x.done).ranges)return on(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),on(x.done)}function la(x,z,ne,te){var ie=x.history;ie.undone.length=0;var fe=+new Date,xe,Ne;if((ie.lastOp==te||ie.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ie.lastModTime>fe-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(xe=Hi(ie,ie.lastOp==te)))Ne=on(xe.changes),hn(z.from,z.to)==0&&hn(z.from,Ne.to)==0?Ne.to=ba(z):xe.changes.push(pa(x,z));else{var _e=on(ie.done);for((!_e||!_e.ranges)&&Mo(x.sel,ie.done),xe={changes:[pa(x,z)],generation:ie.generation},ie.done.push(xe);ie.done.length>ie.undoDepth;)ie.done.shift(),ie.done[0].ranges||ie.done.shift()}ie.done.push(ne),ie.generation=++ie.maxGeneration,ie.lastModTime=ie.lastSelTime=fe,ie.lastOp=ie.lastSelOp=te,ie.lastOrigin=ie.lastSelOrigin=z.origin,Ne||Le(x,"historyAdded")}function na(x,z,ne,te){var ie=z.charAt(0);return ie=="*"||ie=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function Vo(x,z,ne,te){var ie=x.history,fe=te&&te.origin;ne==ie.lastSelOp||fe&&ie.lastSelOrigin==fe&&(ie.lastModTime==ie.lastSelTime&&ie.lastOrigin==fe||na(x,fe,on(ie.done),z))?ie.done[ie.done.length-1]=z:Mo(z,ie.done),ie.lastSelTime=+new Date,ie.lastSelOrigin=fe,ie.lastSelOp=ne,te&&te.clearRedo!==!1&&Si(ie.undone)}function Mo(x,z){var ne=on(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function Rl(x,z,ne,te){var ie=z["spans_"+x.id],fe=0;x.iter(Math.max(x.first,ne),Math.min(x.first+x.size,te),function(xe){xe.markedSpans&&((ie||(ie=z["spans_"+x.id]={}))[fe]=xe.markedSpans),++fe})}function vo(x){if(!x)return null;for(var z,ne=0;ne<x.length;++ne)x[ne].marker.explicitlyCleared?z||(z=x.slice(0,ne)):z&&z.push(x[ne]);return z?z.length?z:null:x}function $l(x,z){var ne=z["spans_"+x.id];if(!ne)return null;for(var te=[],ie=0;ie<z.text.length;++ie)te.push(vo(ne[ie]));return te}function yo(x,z){var ne=$l(x,z),te=Jn(x,z);if(!ne)return te;if(!te)return ne;for(var ie=0;ie<ne.length;++ie){var fe=ne[ie],xe=te[ie];if(fe&&xe)e:for(var Ne=0;Ne<xe.length;++Ne){for(var _e=xe[Ne],et=0;et<fe.length;++et)if(fe[et].marker==_e.marker)continue e;fe.push(_e)}else xe&&(ne[ie]=xe)}return ne}function Ro(x,z,ne){for(var te=[],ie=0;ie<x.length;++ie){var fe=x[ie];if(fe.ranges){te.push(ne?Ai.prototype.deepCopy.call(fe):fe);continue}var xe=fe.changes,Ne=[];te.push({changes:Ne});for(var _e=0;_e<xe.length;++_e){var et=xe[_e],Wt=void 0;if(Ne.push({from:et.from,to:et.to,text:et.text}),z)for(var tn in et)(Wt=tn.match(/^spans_(\d+)$/))&&Ct(z,Number(Wt[1]))>-1&&(on(Ne)[tn]=et[tn],delete et[tn])}}return te}function gs(x,z,ne,te){if(te){var ie=x.anchor;if(ne){var fe=hn(z,ie)<0;fe!=hn(ne,ie)<0?(ie=z,z=ne):fe!=hn(z,ne)<0&&(z=ne)}return new Xr(ie,z)}else return new Xr(ne||z,z)}function fa(x,z,ne,te,ie){ie==null&&(ie=x.cm&&(x.cm.display.shift||x.extend)),ka(x,new Ai([gs(x.sel.primary(),z,ne,ie)],0),te)}function Mr(x,z,ne){for(var te=[],ie=x.cm&&(x.cm.display.shift||x.extend),fe=0;fe<x.sel.ranges.length;fe++)te[fe]=gs(x.sel.ranges[fe],z[fe],null,ie);var xe=Ki(x.cm,te,x.sel.primIndex);ka(x,xe,ne)}function xa(x,z,ne,te){var ie=x.sel.ranges.slice(0);ie[z]=ne,ka(x,Ki(x.cm,ie,x.sel.primIndex),te)}function Co(x,z,ne,te){ka(x,Gi(z,ne),te)}function ko(x,z,ne){var te={ranges:z.ranges,update:function(ie){this.ranges=[];for(var fe=0;fe<ie.length;fe++)this.ranges[fe]=new Xr(On(x,ie[fe].anchor),On(x,ie[fe].head))},origin:ne&&ne.origin};return Le(x,"beforeSelectionChange",x,te),x.cm&&Le(x.cm,"beforeSelectionChange",x.cm,te),te.ranges!=z.ranges?Ki(x.cm,te.ranges,te.ranges.length-1):z}function Ri(x,z,ne){var te=x.history.done,ie=on(te);ie&&ie.ranges?(te[te.length-1]=z,zo(x,z,ne)):ka(x,z,ne)}function ka(x,z,ne){zo(x,z,ne),Vo(x,x.sel,x.cm?x.cm.curOp.id:NaN,ne)}function zo(x,z,ne){(Ft(x,"beforeSelectionChange")||x.cm&&Ft(x.cm,"beforeSelectionChange"))&&(z=ko(x,z,ne));var te=ne&&ne.bias||(hn(z.primary().head,x.sel.primary().head)<0?-1:1);Pl(x,pl(x,z,te,!0)),!(ne&&ne.scroll===!1)&&x.cm&&yu(x.cm)}function Pl(x,z){z.equals(x.sel)||(x.sel=z,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,Ot(x.cm)),fi(x,"cursorActivity",x))}function ss(x){Pl(x,pl(x,x.sel,null,!1))}function pl(x,z,ne,te){for(var ie,fe=0;fe<z.ranges.length;fe++){var xe=z.ranges[fe],Ne=z.ranges.length==x.sel.ranges.length&&x.sel.ranges[fe],_e=es(x,xe.anchor,Ne&&Ne.anchor,ne,te),et=es(x,xe.head,Ne&&Ne.head,ne,te);(ie||_e!=xe.anchor||et!=xe.head)&&(ie||(ie=z.ranges.slice(0,fe)),ie[fe]=new Xr(_e,et))}return ie?Ki(x.cm,ie,z.primIndex):z}function Go(x,z,ne,te,ie){var fe=yt(x,z.line);if(fe.markedSpans)for(var xe=0;xe<fe.markedSpans.length;++xe){var Ne=fe.markedSpans[xe],_e=Ne.marker,et="selectLeft"in _e?!_e.selectLeft:_e.inclusiveLeft,Wt="selectRight"in _e?!_e.selectRight:_e.inclusiveRight;if((Ne.from==null||(et?Ne.from<=z.ch:Ne.from<z.ch))&&(Ne.to==null||(Wt?Ne.to>=z.ch:Ne.to>z.ch))){if(ie&&(Le(_e,"beforeCursorEnter"),_e.explicitlyCleared))if(fe.markedSpans){--xe;continue}else break;if(!_e.atomic)continue;if(ne){var tn=_e.find(te<0?1:-1),Fn=void 0;if((te<0?Wt:et)&&(tn=Uo(x,tn,-te,tn&&tn.line==z.line?fe:null)),tn&&tn.line==z.line&&(Fn=hn(tn,ne))&&(te<0?Fn<0:Fn>0))return Go(x,tn,z,te,ie)}var Dn=_e.find(te<0?-1:1);return(te<0?et:Wt)&&(Dn=Uo(x,Dn,te,Dn.line==z.line?fe:null)),Dn?Go(x,Dn,z,te,ie):null}}return z}function es(x,z,ne,te,ie){var fe=te||1,xe=Go(x,z,ne,fe,ie)||!ie&&Go(x,z,ne,fe,!0)||Go(x,z,ne,-fe,ie)||!ie&&Go(x,z,ne,-fe,!0);return xe||(x.cantEdit=!0,Kt(x.first,0))}function Uo(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?On(x,Kt(z.line-1)):null:ne>0&&z.ch==(te||yt(x,z.line)).text.length?z.line<x.first+x.size-1?Kt(z.line+1,0):null:new Kt(z.line,z.ch+ne)}function ml(x){x.setSelection(Kt(x.firstLine(),0),Kt(x.lastLine()),at)}function tl(x,z,ne){var te={canceled:!1,from:z.from,to:z.to,text:z.text,origin:z.origin,cancel:function(){return te.canceled=!0}};return ne&&(te.update=function(ie,fe,xe,Ne){ie&&(te.from=On(x,ie)),fe&&(te.to=On(x,fe)),xe&&(te.text=xe),Ne!==void 0&&(te.origin=Ne)}),Le(x,"beforeChange",x,te),x.cm&&Le(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 eo(x,z,ne){if(x.cm){if(!x.cm.curOp)return fn(x.cm,eo)(x,z,ne);if(x.cm.state.suppressEdits)return}if(!((Ft(x,"beforeChange")||x.cm&&Ft(x.cm,"beforeChange"))&&(z=tl(x,z,!0),!z))){var te=$r&&!ne&&Wr(x,z.from,z.to);if(te)for(var ie=te.length-1;ie>=0;--ie)to(x,{from:te[ie].from,to:te[ie].to,text:ie?[""]:z.text,origin:z.origin});else to(x,z)}}function to(x,z){if(!(z.text.length==1&&z.text[0]==""&&hn(z.from,z.to)==0)){var ne=qa(x,z);la(x,z,ne,x.cm?x.cm.curOp.id:NaN),zl(x,z,ne,Jn(x,z));var te=[];Eo(x,function(ie,fe){!fe&&Ct(te,ie.history)==-1&&(Ia(ie.history,z),te.push(ie.history)),zl(ie,z,null,Jn(ie,z))})}}function ul(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ie=x.history,fe,xe=x.sel,Ne=z=="undo"?ie.done:ie.undone,_e=z=="undo"?ie.undone:ie.done,et=0;et<Ne.length&&(fe=Ne[et],!(ne?fe.ranges&&!fe.equals(x.sel):!fe.ranges));et++);if(et!=Ne.length){for(ie.lastOrigin=ie.lastSelOrigin=null;;)if(fe=Ne.pop(),fe.ranges){if(Mo(fe,_e),ne&&!fe.equals(x.sel)){ka(x,fe,{clearRedo:!1});return}xe=fe}else if(te){Ne.push(fe);return}else break;var Wt=[];Mo(xe,_e),_e.push({changes:Wt,generation:ie.generation}),ie.generation=fe.generation||++ie.maxGeneration;for(var tn=Ft(x,"beforeChange")||x.cm&&Ft(x.cm,"beforeChange"),Fn=function(yr){var Yr=fe.changes[yr];if(Yr.origin=z,tn&&!tl(x,Yr,!1))return Ne.length=0,{};Wt.push(pa(x,Yr));var oi=yr?qa(x,Yr):on(Ne);zl(x,Yr,oi,yo(x,Yr)),!yr&&x.cm&&x.cm.scrollIntoView({from:Yr.from,to:ba(Yr)});var pi=[];Eo(x,function(ni,gi){!gi&&Ct(pi,ni.history)==-1&&(Ia(ni.history,Yr),pi.push(ni.history)),zl(ni,Yr,null,yo(ni,Yr))})},Dn=fe.changes.length-1;Dn>=0;--Dn){var rr=Fn(Dn);if(rr)return rr.v}}}}function ys(x,z){if(z!=0&&(x.first+=z,x.sel=new Ai(nn(x.sel.ranges,function(ie){return new Xr(Kt(ie.anchor.line+z,ie.anchor.ch),Kt(ie.head.line+z,ie.head.ch))}),x.sel.primIndex),x.cm)){No(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;te<ne.viewTo;te++)Ql(x.cm,te,"gutter")}}function zl(x,z,ne,te){if(x.cm&&!x.cm.curOp)return fn(x.cm,zl)(x,z,ne,te);if(z.to.line<x.first){ys(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 ie=z.text.length-1-(x.first-z.from.line);ys(x,ie),z={from:Kt(x.first,0),to:Kt(z.to.line+ie,z.to.ch),text:[on(z.text)],origin:z.origin}}var fe=x.lastLine();z.to.line>fe&&(z={from:z.from,to:Kt(fe,yt(x,fe).text.length),text:[z.text[0]],origin:z.origin}),z.removed=Lt(x,z.from,z.to),ne||(ne=qa(x,z)),x.cm?us(x.cm,z,te):Ha(x,z,te),zo(x,ne,at),x.cantEdit&&es(x,Kt(x.firstLine(),0))&&(x.cantEdit=!1)}}function us(x,z,ne){var te=x.doc,ie=x.display,fe=z.from,xe=z.to,Ne=!1,_e=fe.line;x.options.lineWrapping||(_e=ln(di(yt(te,fe.line))),te.iter(_e,xe.line+1,function(Dn){if(Dn==ie.maxLine)return Ne=!0,!0})),te.sel.contains(z.from,z.to)>-1&&Ot(x),Ha(te,z,ne,hl(x)),x.options.lineWrapping||(te.iter(_e,fe.line+z.text.length,function(Dn){var rr=xr(Dn);rr>ie.maxLineLength&&(ie.maxLine=Dn,ie.maxLineLength=rr,ie.maxLineChanged=!0,Ne=!1)}),Ne&&(x.curOp.updateMaxLine=!0)),Lr(te,fe.line),Tn(x,400);var et=z.text.length-(xe.line-fe.line)-1;z.full?No(x):fe.line==xe.line&&z.text.length==1&&!Ga(x.doc,z)?Ql(x,fe.line,"text"):No(x,fe.line,xe.line+1,et);var Wt=Ft(x,"changes"),tn=Ft(x,"change");if(tn||Wt){var Fn={from:fe,to:xe,text:z.text,removed:z.removed,origin:z.origin};tn&&fi(x,"change",x,Fn),Wt&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(Fn)}x.display.selForContextMenu=null}function Ns(x,z,ne,te,ie){var fe;te||(te=ne),hn(te,ne)<0&&(fe=[te,ne],ne=fe[0],te=fe[1]),typeof z=="string"&&(z=x.splitLines(z)),eo(x,{from:ne,to:te,text:z,origin:ie})}function rc(x,z,ne,te){ne<x.line?x.line+=te:z<x.line&&(x.line=z,x.ch=0)}function ma(x,z,ne,te){for(var ie=0;ie<x.length;++ie){var fe=x[ie],xe=!0;if(fe.ranges){fe.copied||(fe=x[ie]=fe.deepCopy(),fe.copied=!0);for(var Ne=0;Ne<fe.ranges.length;Ne++)rc(fe.ranges[Ne].anchor,z,ne,te),rc(fe.ranges[Ne].head,z,ne,te);continue}for(var _e=0;_e<fe.changes.length;++_e){var et=fe.changes[_e];if(ne<et.from.line)et.from=Kt(et.from.line+te,et.from.ch),et.to=Kt(et.to.line+te,et.to.ch);else if(z<=et.to.line){xe=!1;break}}xe||(x.splice(0,ie+1),ie=0)}}function Ia(x,z){var ne=z.from.line,te=z.to.line,ie=z.text.length-(te-ne)-1;ma(x.done,ne,te,ie),ma(x.undone,ne,te,ie)}function Bo(x,z,ne,te){var ie=z,fe=z;return typeof z=="number"?fe=yt(x,nr(x,z)):ie=ln(z),ie==null?null:(te(fe,ie)&&x.cm&&Ql(x.cm,ie,ne),fe)}function Ta(x){this.lines=x,this.parent=null;for(var z=0,ne=0;ne<x.length;++ne)x[ne].parent=this,z+=x[ne].height;this.height=z}Ta.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,z){for(var ne=x,te=x+z;ne<te;++ne){var ie=this.lines[ne];this.height-=ie.height,Fi(ie),fi(ie,"delete")}this.lines.splice(x,z)},collapse:function(x){x.push.apply(x,this.lines)},insertInner:function(x,z,ne){this.height+=ne,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,ne){for(var te=x+z;x<te;++x)if(ne(this.lines[x]))return!0}};function Po(x){this.children=x;for(var z=0,ne=0,te=0;te<x.length;++te){var ie=x[te];z+=ie.chunkSize(),ne+=ie.height,ie.parent=this}this.size=z,this.height=ne,this.parent=null}Po.prototype={chunkSize:function(){return this.size},removeInner:function(x,z){this.size-=z;for(var ne=0;ne<this.children.length;++ne){var te=this.children[ne],ie=te.chunkSize();if(x<ie){var fe=Math.min(z,ie-x),xe=te.height;if(te.removeInner(x,fe),this.height-=xe-te.height,ie==fe&&(this.children.splice(ne--,1),te.parent=null),(z-=fe)==0)break;x=0}else x-=ie}if(this.size-z<25&&(this.children.length>1||!(this.children[0]instanceof Ta))){var Ne=[];this.collapse(Ne),this.children=[new Ta(Ne)],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,ne){this.size+=z.length,this.height+=ne;for(var te=0;te<this.children.length;++te){var ie=this.children[te],fe=ie.chunkSize();if(x<=fe){if(ie.insertInner(x,z,ne),ie.lines&&ie.lines.length>50){for(var xe=ie.lines.length%25+25,Ne=xe;Ne<ie.lines.length;){var _e=new Ta(ie.lines.slice(Ne,Ne+=25));ie.height-=_e.height,this.children.splice(++te,0,_e),_e.parent=this}ie.lines=ie.lines.slice(0,xe),this.maybeSpill()}break}x-=fe}},maybeSpill:function(){if(!(this.children.length<=10)){var x=this;do{var z=x.children.splice(x.children.length-5,5),ne=new Po(z);if(x.parent){x.size-=ne.size,x.height-=ne.height;var ie=Ct(x.parent.children,x);x.parent.children.splice(ie+1,0,ne)}else{var te=new Po(x.children);te.parent=x,x.children=[te,ne],x=te}ne.parent=x.parent}while(x.children.length>10);x.parent.maybeSpill()}},iterN:function(x,z,ne){for(var te=0;te<this.children.length;++te){var ie=this.children[te],fe=ie.chunkSize();if(x<fe){var xe=Math.min(z,fe-x);if(ie.iterN(x,xe,ne))return!0;if((z-=xe)==0)break;x=0}else x-=fe}}};var Xo=function(x,z,ne){if(ne)for(var te in ne)ne.hasOwnProperty(te)&&(this[te]=ne[te]);this.doc=x,this.node=z};Xo.prototype.clear=function(){var x=this.doc.cm,z=this.line.widgets,ne=this.line,te=ln(ne);if(!(te==null||!z)){for(var ie=0;ie<z.length;++ie)z[ie]==this&&z.splice(ie--,1);z.length||(ne.widgets=null);var fe=Dl(this);Ht(ne,Math.max(0,ne.height-fe)),x&&(_t(x,function(){xl(x,ne,-fe),Ql(x,te,"widget")}),fi(x,"lineWidgetCleared",x,this,te))}},Xo.prototype.changed=function(){var x=this,z=this.height,ne=this.doc.cm,te=this.line;this.height=null;var ie=Dl(this)-z;ie&&(da(this.doc,te)||Ht(te,te.height+ie),ne&&_t(ne,function(){ne.curOp.forceUpdate=!0,xl(ne,te,ie),fi(ne,"lineWidgetChanged",ne,x,ln(te))}))},Qt(Xo);function xl(x,z,ne){Sr(z)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&tc(x,ne)}function bs(x,z,ne,te){var ie=new Xo(x,ne,te),fe=x.cm;return fe&&ie.noHScroll&&(fe.display.alignWidgets=!0),Bo(x,z,"widget",function(xe){var Ne=xe.widgets||(xe.widgets=[]);if(ie.insertAt==null?Ne.push(ie):Ne.splice(Math.min(Ne.length-1,Math.max(0,ie.insertAt)),0,ie),ie.line=xe,fe&&!da(x,xe)){var _e=Sr(xe)<x.scrollTop;Ht(xe,xe.height+Dl(ie)),_e&&tc(fe,ie.height),fe.curOp.forceUpdate=!0}return!0}),fe&&fi(fe,"lineWidgetAdded",fe,ie,typeof z=="number"?z:ln(z)),ie}var Mc=0,Us=function(x,z){this.lines=[],this.type=z,this.doc=x,this.id=++Mc};Us.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,z=x&&!x.curOp;if(z&&bl(x),Ft(this,"clear")){var ne=this.find();ne&&fi(this,"clear",ne.from,ne.to)}for(var te=null,ie=null,fe=0;fe<this.lines.length;++fe){var xe=this.lines[fe],Ne=Cr(xe.markedSpans,this);x&&!this.collapsed?Ql(x,ln(xe),"text"):x&&(Ne.to!=null&&(ie=ln(xe)),Ne.from!=null&&(te=ln(xe))),xe.markedSpans=lr(xe.markedSpans,Ne),Ne.from==null&&this.collapsed&&!da(this.doc,xe)&&x&&Ht(xe,vs(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var _e=0;_e<this.lines.length;++_e){var et=di(this.lines[_e]),Wt=xr(et);Wt>x.display.maxLineLength&&(x.display.maxLine=et,x.display.maxLineLength=Wt,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&No(x,te,ie+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&ss(x.doc)),x&&fi(x,"markerCleared",x,this,te,ie),z&&Fs(x),this.parent&&this.parent.clear()}},Us.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ne,te,ie=0;ie<this.lines.length;++ie){var fe=this.lines[ie],xe=Cr(fe.markedSpans,this);if(xe.from!=null&&(ne=Kt(z?fe:ln(fe),xe.from),x==-1))return ne;if(xe.to!=null&&(te=Kt(z?fe:ln(fe),xe.to),x==1))return te}return ne&&{from:ne,to:te}},Us.prototype.changed=function(){var x=this,z=this.find(-1,!0),ne=this,te=this.doc.cm;!z||!te||_t(te,function(){var ie=z.line,fe=ln(z.line),xe=ll(te,fe);if(xe&&(za(xe),te.curOp.selectionChanged=te.curOp.forceUpdate=!0),te.curOp.updateMaxLine=!0,!da(ne.doc,ie)&&ne.height!=null){var Ne=ne.height;ne.height=null;var _e=Dl(ne)-Ne;_e&&Ht(ie,ie.height+_e)}fi(te,"markerChanged",te,x)})},Us.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||Ct(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},Us.prototype.detachLine=function(x){if(this.lines.splice(Ct(this.lines,x),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},Qt(Us);function xs(x,z,ne,te,ie){if(te&&te.shared)return io(x,z,ne,te,ie);if(x.cm&&!x.cm.curOp)return fn(x.cm,xs)(x,z,ne,te,ie);var fe=new Us(x,ie),xe=hn(z,ne);if(te&&It(te,fe,!1),xe>0||xe==0&&fe.clearWhenEmpty!==!1)return fe;if(fe.replacedWith&&(fe.collapsed=!0,fe.widgetNode=ut("span",[fe.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||fe.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(fe.widgetNode.insertLeft=!0)),fe.collapsed){if(si(x,z.line,z,ne,fe)||z.line!=ne.line&&si(x,ne.line,z,ne,fe))throw new Error("Inserting collapsed marker partially overlapping an existing one");gr()}fe.addToHistory&&la(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var Ne=z.line,_e=x.cm,et;if(x.iter(Ne,ne.line+1,function(tn){_e&&fe.collapsed&&!_e.options.lineWrapping&&di(tn)==_e.display.maxLine&&(et=!0),fe.collapsed&&Ne!=z.line&&Ht(tn,0),jr(tn,new zr(fe,Ne==z.line?z.ch:null,Ne==ne.line?ne.ch:null)),++Ne}),fe.collapsed&&x.iter(z.line,ne.line+1,function(tn){da(x,tn)&&Ht(tn,0)}),fe.clearOnEnter&&Rt(fe,"beforeCursorEnter",function(){return fe.clear()}),fe.readOnly&&(Zr(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),fe.collapsed&&(fe.id=++Mc,fe.atomic=!0),_e){if(et&&(_e.curOp.updateMaxLine=!0),fe.collapsed)No(_e,z.line,ne.line+1);else if(fe.className||fe.startStyle||fe.endStyle||fe.css||fe.attributes||fe.title)for(var Wt=z.line;Wt<=ne.line;Wt++)Ql(_e,Wt,"text");fe.atomic&&ss(_e.doc),fi(_e,"markerAdded",_e,fe)}return fe}var ca=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne<x.length;++ne)x[ne].parent=this};ca.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();fi(this,"clear")}},ca.prototype.find=function(x,z){return this.primary.find(x,z)},Qt(ca);function io(x,z,ne,te,ie){te=It(te),te.shared=!1;var fe=[xs(x,z,ne,te,ie)],xe=fe[0],Ne=te.widgetNode;return Eo(x,function(_e){Ne&&(te.widgetNode=Ne.cloneNode(!0)),fe.push(xs(_e,On(_e,z),On(_e,ne),te,ie));for(var et=0;et<_e.linked.length;++et)if(_e.linked[et].isParent)return;xe=on(fe)}),new ca(fe,xe)}function cs(x){return x.findMarks(Kt(x.first,0),x.clipPos(Kt(x.lastLine())),function(z){return z.parent})}function lu(x,z){for(var ne=0;ne<z.length;ne++){var te=z[ne],ie=te.find(),fe=x.clipPos(ie.from),xe=x.clipPos(ie.to);if(hn(fe,xe)){var Ne=xs(x,fe,xe,te.primary,te.primary.type);te.markers.push(Ne),Ne.parent=te}}}function _l(x){for(var z=function(te){var ie=x[te],fe=[ie.primary.doc];Eo(ie.primary.doc,function(_e){return fe.push(_e)});for(var xe=0;xe<ie.markers.length;xe++){var Ne=ie.markers[xe];Ct(fe,Ne.doc)==-1&&(Ne.parent=null,ie.markers.splice(xe--,1))}},ne=0;ne<x.length;ne++)z(ne)}var qc=0,Do=function(x,z,ne,te,ie){if(!(this instanceof Do))return new Do(x,z,ne,te,ie);ne==null&&(ne=0),Po.call(this,[new Ta([new hr("",null)])]),this.first=ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ne;var fe=Kt(ne,0);this.sel=Gi(fe),this.history=new yi(null),this.id=++qc,this.modeOption=z,this.lineSep=te,this.direction=ie=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),Ha(this,{from:fe,to:fe,text:x}),ka(this,Gi(fe),at)};Do.prototype=ue(Po.prototype,{constructor:Do,iter:function(x,z,ne){ne?this.iterN(x-this.first,z-x,ne):this.iterN(this.first,this.first+this.size,x)},insert:function(x,z){for(var ne=0,te=0;te<z.length;++te)ne+=z[te].height;this.insertInner(x-this.first,z,ne)},remove:function(x,z){this.removeInner(x-this.first,z)},getValue:function(x){var z=Jt(this,this.first,this.first+this.size);return x===!1?z:z.join(x||this.lineSeparator())},setValue:sn(function(x){var z=Kt(this.first,0),ne=this.first+this.size-1;eo(this,{from:z,to:Kt(ne,yt(this,ne).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&ou(this.cm,0,0),ka(this,Gi(z),at)}),replaceRange:function(x,z,ne,te){z=On(this,z),ne=ne?On(this,ne):z,Ns(this,x,z,ne,te)},getRange:function(x,z,ne){var te=Lt(this,On(this,x),On(this,z));return ne===!1?te:te.join(ne||this.lineSeparator())},getLine:function(x){var z=this.getLineHandle(x);return z&&z.text},getLineHandle:function(x){if(En(this,x))return yt(this,x)},getLineNumber:function(x){return ln(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=yt(this,x)),di(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return On(this,x)},getCursor:function(x){var z=this.sel.primary(),ne;return x==null||x=="head"?ne=z.head:x=="anchor"?ne=z.anchor:x=="end"||x=="to"||x===!1?ne=z.to():ne=z.from(),ne},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:sn(function(x,z,ne){Co(this,On(this,typeof x=="number"?Kt(x,z||0):x),null,ne)}),setSelection:sn(function(x,z,ne){Co(this,On(this,x),On(this,z||x),ne)}),extendSelection:sn(function(x,z,ne){fa(this,On(this,x),z&&On(this,z),ne)}),extendSelections:sn(function(x,z){Mr(this,Mt(this,x),z)}),extendSelectionsBy:sn(function(x,z){var ne=nn(this.sel.ranges,x);Mr(this,Mt(this,ne),z)}),setSelections:sn(function(x,z,ne){if(x.length){for(var te=[],ie=0;ie<x.length;ie++)te[ie]=new Xr(On(this,x[ie].anchor),On(this,x[ie].head));z==null&&(z=Math.min(x.length-1,this.sel.primIndex)),ka(this,Ki(this.cm,te,z),ne)}}),addSelection:sn(function(x,z,ne){var te=this.sel.ranges.slice(0);te.push(new Xr(On(this,x),On(this,z||x))),ka(this,Ki(this.cm,te,te.length-1),ne)}),getSelection:function(x){for(var z=this.sel.ranges,ne,te=0;te<z.length;te++){var ie=Lt(this,z[te].from(),z[te].to());ne=ne?ne.concat(ie):ie}return x===!1?ne:ne.join(x||this.lineSeparator())},getSelections:function(x){for(var z=[],ne=this.sel.ranges,te=0;te<ne.length;te++){var ie=Lt(this,ne[te].from(),ne[te].to());x!==!1&&(ie=ie.join(x||this.lineSeparator())),z[te]=ie}return z},replaceSelection:function(x,z,ne){for(var te=[],ie=0;ie<this.sel.ranges.length;ie++)te[ie]=x;this.replaceSelections(te,z,ne||"+input")},replaceSelections:sn(function(x,z,ne){for(var te=[],ie=this.sel,fe=0;fe<ie.ranges.length;fe++){var xe=ie.ranges[fe];te[fe]={from:xe.from(),to:xe.to(),text:this.splitLines(x[fe]),origin:ne}}for(var Ne=z&&z!="end"&&$i(this,te,z),_e=te.length-1;_e>=0;_e--)eo(this,te[_e]);Ne?Ri(this,Ne):this.cm&&yu(this.cm)}),undo:sn(function(){ul(this,"undo")}),redo:sn(function(){ul(this,"redo")}),undoSelection:sn(function(){ul(this,"undo",!0)}),redoSelection:sn(function(){ul(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,ne=0,te=0;te<x.done.length;te++)x.done[te].ranges||++z;for(var ie=0;ie<x.undone.length;ie++)x.undone[ie].ranges||++ne;return{undo:z,redo:ne}},clearHistory:function(){var x=this;this.history=new yi(this.history.maxGeneration),Eo(this,function(z){return z.history=x.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(x){return x&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(x){return this.history.generation==(x||this.cleanGeneration)},getHistory:function(){return{done:Ro(this.history.done),undone:Ro(this.history.undone)}},setHistory:function(x){var z=this.history=new yi(this.history.maxGeneration);z.done=Ro(x.done.slice(0),null,!0),z.undone=Ro(x.undone.slice(0),null,!0)},setGutterMarker:sn(function(x,z,ne){return Bo(this,x,"gutter",function(te){var ie=te.gutterMarkers||(te.gutterMarkers={});return ie[z]=ne,!ne&&ae(ie)&&(te.gutterMarkers=null),!0})}),clearGutter:sn(function(x){var z=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[x]&&Bo(z,ne,"gutter",function(){return ne.gutterMarkers[x]=null,ae(ne.gutterMarkers)&&(ne.gutterMarkers=null),!0})})}),lineInfo:function(x){var z;if(typeof x=="number"){if(!En(this,x)||(z=x,x=yt(this,x),!x))return null}else if(z=ln(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:sn(function(x,z,ne){return Bo(this,x,z=="gutter"?"gutter":"class",function(te){var ie=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass";if(!te[ie])te[ie]=ne;else{if(Se(ne).test(te[ie]))return!1;te[ie]+=" "+ne}return!0})}),removeLineClass:sn(function(x,z,ne){return Bo(this,x,z=="gutter"?"gutter":"class",function(te){var ie=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass",fe=te[ie];if(fe)if(ne==null)te[ie]=null;else{var xe=fe.match(Se(ne));if(!xe)return!1;var Ne=xe.index+xe[0].length;te[ie]=fe.slice(0,xe.index)+(!xe.index||Ne==fe.length?"":" ")+fe.slice(Ne)||null}else return!1;return!0})}),addLineWidget:sn(function(x,z,ne){return bs(this,x,z,ne)}),removeLineWidget:function(x){x.clear()},markText:function(x,z,ne){return xs(this,On(this,x),On(this,z),ne,ne&&ne.type||"range")},setBookmark:function(x,z){var ne={replacedWith:z&&(z.nodeType==null?z.widget:z),insertLeft:z&&z.insertLeft,clearWhenEmpty:!1,shared:z&&z.shared,handleMouseEvents:z&&z.handleMouseEvents};return x=On(this,x),xs(this,x,x,ne,"bookmark")},findMarksAt:function(x){x=On(this,x);var z=[],ne=yt(this,x.line).markedSpans;if(ne)for(var te=0;te<ne.length;++te){var ie=ne[te];(ie.from==null||ie.from<=x.ch)&&(ie.to==null||ie.to>=x.ch)&&z.push(ie.marker.parent||ie.marker)}return z},findMarks:function(x,z,ne){x=On(this,x),z=On(this,z);var te=[],ie=x.line;return this.iter(x.line,z.line+1,function(fe){var xe=fe.markedSpans;if(xe)for(var Ne=0;Ne<xe.length;Ne++){var _e=xe[Ne];!(_e.to!=null&&ie==x.line&&x.ch>=_e.to||_e.from==null&&ie!=x.line||_e.from!=null&&ie==z.line&&_e.from>=z.ch)&&(!ne||ne(_e.marker))&&te.push(_e.marker.parent||_e.marker)}++ie}),te},getAllMarks:function(){var x=[];return this.iter(function(z){var ne=z.markedSpans;if(ne)for(var te=0;te<ne.length;++te)ne[te].from!=null&&x.push(ne[te].marker)}),x},posFromIndex:function(x){var z,ne=this.first,te=this.lineSeparator().length;return this.iter(function(ie){var fe=ie.text.length+te;if(fe>x)return z=x,!0;x-=fe,++ne}),On(this,Kt(ne,z))},indexFromPos:function(x){x=On(this,x);var z=x.ch;if(x.line<this.first||x.ch<0)return 0;var ne=this.lineSeparator().length;return this.iter(this.first,x.line,function(te){z+=te.text.length+ne}),z},copy:function(x){var z=new Do(Jt(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,ne=this.first+this.size;x.from!=null&&x.from>z&&(z=x.from),x.to!=null&&x.to<ne&&(ne=x.to);var te=new Do(Jt(this,z,ne),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}],lu(te,cs(this)),te},unlinkDoc:function(x){if(x instanceof Qi&&(x=x.doc),this.linked)for(var z=0;z<this.linked.length;++z){var ne=this.linked[z];if(ne.doc==x){this.linked.splice(z,1),x.unlinkDoc(this),_l(cs(this));break}}if(x.history==this.history){var te=[x.id];Eo(x,function(ie){return te.push(ie.id)},!0),x.history=new yi(null),x.history.done=Ro(this.history.done,te),x.history.undone=Ro(this.history.undone,te)}},iterLinkedDocs:function(x){Eo(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):kr(x)},lineSeparator:function(){return this.lineSep||`
`},setDirection:sn(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(z){return z.order=null}),this.cm&&ki(this.cm))})}),Do.prototype.eachLine=Do.prototype.iter;var kc=0;function ed(x){var z=this;if(xu(z),!(it(z,x)||Al(z.display,x))){bn(x),ge&&(kc=+new Date);var ne=Wl(z,x,!0),te=x.dataTransfer.files;if(!(!ne||z.isReadOnly()))if(te&&te.length&&window.FileReader&&window.File)for(var ie=te.length,fe=Array(ie),xe=0,Ne=function(){++xe==ie&&fn(z,function(){ne=On(z.doc,ne);var Dn={from:ne,to:ne,text:z.doc.splitLines(fe.filter(function(rr){return rr!=null}).join(z.doc.lineSeparator())),origin:"paste"};eo(z.doc,Dn),Ri(z.doc,Gi(On(z.doc,ne),On(z.doc,ba(Dn))))})()},_e=function(Dn,rr){if(z.options.allowDropFileTypes&&Ct(z.options.allowDropFileTypes,Dn.type)==-1){Ne();return}var yr=new FileReader;yr.onerror=function(){return Ne()},yr.onload=function(){var Yr=yr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Yr)){Ne();return}fe[rr]=Yr,Ne()},yr.readAsText(Dn)},et=0;et<te.length;et++)_e(te[et],et);else{if(z.state.draggingText&&z.doc.sel.contains(ne)>-1){z.state.draggingText(x),setTimeout(function(){return z.display.input.focus()},20);return}try{var Wt=x.dataTransfer.getData("Text");if(Wt){var tn;if(z.state.draggingText&&!z.state.draggingText.copy&&(tn=z.listSelections()),zo(z.doc,Gi(ne,ne)),tn)for(var Fn=0;Fn<tn.length;++Fn)Ns(z.doc,"",tn[Fn].anchor,tn[Fn].head,"drag");z.replaceSelection(Wt,"around","paste"),z.display.input.focus()}}catch(Dn){}}}}function ic(x,z){if(ge&&(!x.state.draggingText||+new Date-kc<100)){Gn(z);return}if(!(it(x,z)||Al(x.display,z))&&(z.dataTransfer.setData("Text",x.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!vt)){var ne=Xe("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ze&&(ne.width=ne.height=1,x.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),z.dataTransfer.setDragImage(ne,0,0),ze&&ne.parentNode.removeChild(ne)}}function ac(x,z){var ne=Wl(x,z);if(ne){var te=document.createDocumentFragment();bc(x,ne,te),x.display.dragCursor||(x.display.dragCursor=Xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),ht(x.display.dragCursor,te)}}function xu(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function su(x){if(document.getElementsByClassName){for(var z=document.getElementsByClassName("CodeMirror"),ne=[],te=0;te<z.length;te++){var ie=z[te].CodeMirror;ie&&ne.push(ie)}ne.length&&ne[0].operation(function(){for(var fe=0;fe<ne.length;fe++)x(ne[fe])})}}var Rr=!1;function Dc(){Rr||(oc(),Rr=!0)}function oc(){var x;Rt(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,su(lc)},100))}),Rt(window,"blur",function(){return su(iu)})}function lc(x){var z=x.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,x.setSize()}for(var ts={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"},Xs=0;Xs<10;Xs++)ts[Xs+48]=ts[Xs+96]=String(Xs);for(var Cu=65;Cu<=90;Cu++)ts[Cu]=String.fromCharCode(Cu);for(var uu=1;uu<=12;uu++)ts[uu+111]=ts[uu+63235]="F"+uu;var Ua={};Ua.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"},Ua.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"},Ua.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"},Ua.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"]},Ua.default=gt?Ua.macDefault:Ua.pcDefault;function td(x){var z=x.split(/-(?!$)/);x=z[z.length-1];for(var ne,te,ie,fe,xe=0;xe<z.length-1;xe++){var Ne=z[xe];if(/^(cmd|meta|m)$/i.test(Ne))fe=!0;else if(/^a(lt)?$/i.test(Ne))ne=!0;else if(/^(c|ctrl|control)$/i.test(Ne))te=!0;else if(/^s(hift)?$/i.test(Ne))ie=!0;else throw new Error("Unrecognized modifier name: "+Ne)}return ne&&(x="Alt-"+x),te&&(x="Ctrl-"+x),fe&&(x="Cmd-"+x),ie&&(x="Shift-"+x),x}function sc(x){var z={};for(var ne in x)if(x.hasOwnProperty(ne)){var te=x[ne];if(/^(name|fallthrough|(de|at)tach)$/.test(ne))continue;if(te=="..."){delete x[ne];continue}for(var ie=nn(ne.split(" "),td),fe=0;fe<ie.length;fe++){var xe=void 0,Ne=void 0;fe==ie.length-1?(Ne=ie.join(" "),xe=te):(Ne=ie.slice(0,fe+1).join(" "),xe="...");var _e=z[Ne];if(!_e)z[Ne]=xe;else if(_e!=xe)throw new Error("Inconsistent bindings for "+Ne)}delete x[ne]}for(var et in z)x[et]=z[et];return x}function Cs(x,z,ne,te){z=vl(z);var ie=z.call?z.call(x,te):z[x];if(ie===!1)return"nothing";if(ie==="...")return"multi";if(ie!=null&&ne(ie))return"handled";if(z.fallthrough){if(Object.prototype.toString.call(z.fallthrough)!="[object Array]")return Cs(x,z.fallthrough,ne,te);for(var fe=0;fe<z.fallthrough.length;fe++){var xe=Cs(x,z.fallthrough[fe],ne,te);if(xe)return xe}}}function Zu(x){var z=typeof x=="string"?x:ts[x.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function Rs(x,z,ne){var te=x;return z.altKey&&te!="Alt"&&(x="Alt-"+x),(nt?z.metaKey:z.ctrlKey)&&te!="Ctrl"&&(x="Ctrl-"+x),(nt?z.ctrlKey:z.metaKey)&&te!="Mod"&&(x="Cmd-"+x),!ne&&z.shiftKey&&te!="Shift"&&(x="Shift-"+x),x}function zs(x,z){if(ze&&x.keyCode==34&&x.char)return!1;var ne=ts[x.keyCode];return ne==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(ne=x.code),Rs(ne,x,z))}function vl(x){return typeof x=="string"?Ua[x]:x}function Kl(x,z){for(var ne=x.doc.sel.ranges,te=[],ie=0;ie<ne.length;ie++){for(var fe=z(ne[ie]);te.length&&hn(fe.from,on(te).to)<=0;){var xe=te.pop();if(hn(xe.from,fe.from)<0){fe.from=xe.from;break}}te.push(fe)}_t(x,function(){for(var Ne=te.length-1;Ne>=0;Ne--)Ns(x.doc,"",te[Ne].from,te[Ne].to,"+delete");yu(x)})}function nl(x,z,ne){var te=Fe(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function Ss(x,z,ne){var te=nl(x,z.ch,ne);return te==null?null:new Kt(z.line,te,ne<0?"after":"before")}function va(x,z,ne,te,ie){if(x){z.doc.direction=="rtl"&&(ie=-ie);var fe=Xt(ne,z.doc.direction);if(fe){var xe=ie<0?on(fe):fe[0],Ne=ie<0==(xe.level==1),_e=Ne?"after":"before",et;if(xe.level>0||z.doc.direction=="rtl"){var Wt=qo(z,ne);et=ie<0?ne.text.length-1:0;var tn=Pa(z,Wt,et).top;et=De(function(Fn){return Pa(z,Wt,Fn).top==tn},ie<0==(xe.level==1)?xe.from:xe.to-1,et),_e=="before"&&(et=nl(ne,et,1))}else et=ie<0?xe.to:xe.from;return new Kt(te,et,_e)}}return new Kt(te,ie<0?ne.text.length:0,ie<0?"before":"after")}function Ea(x,z,ne,te){var ie=Xt(z,x.doc.direction);if(!ie)return Ss(z,ne,te);ne.ch>=z.text.length?(ne.ch=z.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var fe=Ge(ie,ne.ch,ne.sticky),xe=ie[fe];if(x.doc.direction=="ltr"&&xe.level%2==0&&(te>0?xe.to>ne.ch:xe.from<ne.ch))return Ss(z,ne,te);var Ne=function(oi,pi){return nl(z,oi instanceof Kt?oi.ch:oi,pi)},_e,et=function(oi){return x.options.lineWrapping?(_e=_e||qo(x,z),js(x,z,_e,oi)):{begin:0,end:z.text.length}},Wt=et(ne.sticky=="before"?Ne(ne,-1):ne.ch);if(x.doc.direction=="rtl"||xe.level==1){var tn=xe.level==1==te<0,Fn=Ne(ne,tn?1:-1);if(Fn!=null&&(tn?Fn<=xe.to&&Fn<=Wt.end:Fn>=xe.from&&Fn>=Wt.begin)){var Dn=tn?"before":"after";return new Kt(ne.line,Fn,Dn)}}var rr=function(oi,pi,ni){for(var gi=function(uo,yl){return yl?new Kt(ne.line,Ne(uo,1),"before"):new Kt(ne.line,uo,"after")};oi>=0&&oi<ie.length;oi+=pi){var Oi=ie[oi],zi=pi>0==(Oi.level!=1),ga=zi?ni.begin:Ne(ni.end,-1);if(Oi.from<=ga&&ga<Oi.to||(ga=zi?Oi.from:Ne(Oi.to,-1),ni.begin<=ga&&ga<ni.end))return gi(ga,zi)}},yr=rr(fe+te,te,Wt);if(yr)return yr;var Yr=te>0?Wt.end:Ne(Wt.begin,-1);return Yr!=null&&!(te>0&&Yr==z.text.length)&&(yr=rr(te>0?0:ie.length-1,te,et(Yr)),yr)?yr:null}var gl={selectAll:ml,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),at)},killLine:function(x){return Kl(x,function(z){if(z.empty()){var ne=yt(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line<x.lastLine()?{from:z.head,to:Kt(z.head.line+1,0)}:{from:z.head,to:Kt(z.head.line,ne)}}else return{from:z.from(),to:z.to()}})},deleteLine:function(x){return Kl(x,function(z){return{from:Kt(z.from().line,0),to:On(x.doc,Kt(z.to().line+1,0))}})},delLineLeft:function(x){return Kl(x,function(z){return{from:Kt(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(x){return Kl(x,function(z){var ne=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:ne},"div");return{from:te,to:z.from()}})},delWrappedLineRight:function(x){return Kl(x,function(z){var ne=x.charCoords(z.head,"div").top+5,te=x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"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(Kt(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(Kt(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(z){return ws(x,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(z){return Ac(x,z.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(z){return Es(x,z.head.line)},{origin:"+move",bias:-1})},goLineRight:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"div")},Nt)},goLineLeft:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:0,top:ne},"div")},Nt)},goLineLeftSmart:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5,te=x.coordsChar({left:0,top:ne},"div");return te.ch<x.getLine(te.line).search(/\S/)?Ac(x,z.head):te},Nt)},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=[],ne=x.listSelections(),te=x.options.tabSize,ie=0;ie<ne.length;ie++){var fe=ne[ie].from(),xe=Qe(x.getLine(fe.line),fe.ch,te);z.push(mn(te-xe%te))}x.replaceSelections(z)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return _t(x,function(){for(var z=x.listSelections(),ne=[],te=0;te<z.length;te++)if(z[te].empty()){var ie=z[te].head,fe=yt(x.doc,ie.line).text;if(fe){if(ie.ch==fe.length&&(ie=new Kt(ie.line,ie.ch-1)),ie.ch>0)ie=new Kt(ie.line,ie.ch+1),x.replaceRange(fe.charAt(ie.ch-1)+fe.charAt(ie.ch-2),Kt(ie.line,ie.ch-2),ie,"+transpose");else if(ie.line>x.doc.first){var xe=yt(x.doc,ie.line-1).text;xe&&(ie=new Kt(ie.line,1),x.replaceRange(fe.charAt(0)+x.doc.lineSeparator()+xe.charAt(xe.length-1),Kt(ie.line-1,xe.length-1),ie,"+transpose"))}}ne.push(new Xr(ie,ie))}x.setSelections(ne)})},newlineAndIndent:function(x){return _t(x,function(){for(var z=x.listSelections(),ne=z.length-1;ne>=0;ne--)x.replaceRange(x.doc.lineSeparator(),z[ne].anchor,z[ne].head,"+input");z=x.listSelections();for(var te=0;te<z.length;te++)x.indentLine(z[te].from().line,null,!0);yu(x)})},openLine:function(x){return x.replaceSelection(`
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function ws(x,z){var ne=yt(x.doc,z),te=di(ne);return te!=ne&&(z=ln(te)),va(!0,x,te,z,1)}function Es(x,z){var ne=yt(x.doc,z),te=ea(ne);return te!=ne&&(z=ln(te)),va(!0,x,ne,z,-1)}function Ac(x,z){var ne=ws(x,z.line),te=yt(x.doc,ne.line),ie=Xt(te,x.doc.direction);if(!ie||ie[0].level==0){var fe=Math.max(ne.ch,te.text.search(/\S/)),xe=z.line==ne.line&&z.ch<=fe&&z.ch;return Kt(ne.line,xe?0:fe,ne.sticky)}return ne}function Ao(x,z,ne){if(typeof z=="string"&&(z=gl[z],!z))return!1;x.display.input.ensurePolled();var te=x.display.shift,ie=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ne&&(x.display.shift=!1),ie=z(x)!=Zt}finally{x.display.shift=te,x.state.suppressEdits=!1}return ie}function ns(x,z,ne){for(var te=0;te<x.state.keyMaps.length;te++){var ie=Cs(z,x.state.keyMaps[te],ne,x);if(ie)return ie}return x.options.extraKeys&&Cs(z,x.options.extraKeys,ne,x)||Cs(z,x.options.keyMap,ne,x)}var Lc=new be;function Ys(x,z,ne,te){var ie=x.state.keySeq;if(ie){if(Zu(z))return"handled";if(/\'$/.test(z)?x.state.keySeq=null:Lc.set(50,function(){x.state.keySeq==ie&&(x.state.keySeq=null,x.display.input.reset())}),nd(x,ie+" "+z,ne,te))return!0}return nd(x,z,ne,te)}function nd(x,z,ne,te){var ie=ns(x,z,te);return ie=="multi"&&(x.state.keySeq=z),ie=="handled"&&fi(x,"keyHandled",x,z,ne),(ie=="handled"||ie=="multi")&&(bn(ne),Ju(x)),!!ie}function wa(x,z){var ne=zs(z,!0);return ne?z.shiftKey&&!x.state.keySeq?Ys(x,"Shift-"+ne,z,function(te){return Ao(x,te,!0)})||Ys(x,ne,z,function(te){if(typeof te=="string"?/^go[A-Z]/.test(te):te.motion)return Ao(x,te)}):Ys(x,ne,z,function(te){return Ao(x,te)}):!1}function uc(x,z,ne){return Ys(x,"'"+ne+"'",z,function(te){return Ao(x,te,!0)})}var cu=null;function Bc(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&(z.curOp.focus=qe(),!it(z,x))){ge&&ke<11&&x.keyCode==27&&(x.returnValue=!1);var ne=x.keyCode;z.display.shift=ne==16||x.shiftKey;var te=wa(z,x);ze&&(cu=te?ne:null,!te&&ne==88&&!Nr&&(gt?x.metaKey:x.ctrlKey)&&z.replaceSelection("",null,"cut")),me&&!gt&&!te&&ne==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&tr(z)}}function tr(x){var z=x.display.lineDiv;zt(z,"CodeMirror-crosshair");function ne(te){(te.keyCode==18||!te.altKey)&&($e(z,"CodeMirror-crosshair"),lt(document,"keyup",ne),lt(document,"mouseover",ne))}Rt(document,"keyup",ne),Rt(document,"mouseover",ne)}function hf(x){x.keyCode==16&&(this.doc.sel.shift=!1),it(this,x)}function pf(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&!(Al(z.display,x)||it(z,x)||x.ctrlKey&&!x.altKey||gt&&x.metaKey)){var ne=x.keyCode,te=x.charCode;if(ze&&ne==cu){cu=null,bn(x);return}if(!(ze&&(!x.which||x.which<10)&&wa(z,x))){var ie=String.fromCharCode(te==null?ne:te);ie!="\b"&&(uc(z,x,ie)||z.display.input.onKeyPress(x))}}}var Bd=400,Pd=function(x,z,ne){this.time=x,this.pos=z,this.button=ne};Pd.prototype.compare=function(x,z,ne){return this.time+Bd>x&&hn(z,this.pos)==0&&ne==this.button};var du,Pc;function ih(x,z){var ne=+new Date;return Pc&&Pc.compare(ne,x,z)?(du=Pc=null,"triple"):du&&du.compare(ne,x,z)?(Pc=new Pd(ne,x,z),du=null,"double"):(du=new Pd(ne,x,z),Pc=null,"single")}function Cl(x){var z=this,ne=z.display;if(!(it(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,Al(ne,x)){he||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!Il(z,x)){var te=Wl(z,x),ie=_n(x),fe=te?ih(te,ie):"single";window.focus(),ie==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&Su(z,ie,te,fe,x))&&(ie==1?te?id(z,te,fe,x):Yn(x)==ne.scroller&&bn(x):ie==2?(te&&fa(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ie==3&&(Ve?z.display.input.onContextMenu(x):xc(z)))}}}function Su(x,z,ne,te,ie){var fe="Click";return te=="double"?fe="Double"+fe:te=="triple"&&(fe="Triple"+fe),fe=(z==1?"Left":z==2?"Middle":"Right")+fe,Ys(x,Rs(fe,ie),ie,function(xe){if(typeof xe=="string"&&(xe=gl[xe]),!xe)return!1;var Ne=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),Ne=xe(x,ne)!=Zt}finally{x.state.suppressEdits=!1}return Ne})}function rd(x,z,ne){var te=x.getOption("configureMouse"),ie=te?te(x,z,ne):{};if(ie.unit==null){var fe=Et?ne.shiftKey&&ne.metaKey:ne.altKey;ie.unit=fe?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(ie.extend==null||x.doc.extend)&&(ie.extend=x.doc.extend||ne.shiftKey),ie.addNew==null&&(ie.addNew=gt?ne.metaKey:ne.ctrlKey),ie.moveOnDrag==null&&(ie.moveOnDrag=!(gt?ne.altKey:ne.ctrlKey)),ie}function id(x,z,ne,te){ge?setTimeout(St(Ku,x),0):x.curOp.focus=qe();var ie=rd(x,ne,te),fe=x.doc.sel,xe;x.options.dragDrop&&ir&&!x.isReadOnly()&&ne=="single"&&(xe=fe.contains(z))>-1&&(hn((xe=fe.ranges[xe]).from(),z)<0||z.xRel>0)&&(hn(xe.to(),z)>0||z.xRel<0)?ah(x,te,z,ie):Id(x,te,z,ie)}function ah(x,z,ne,te){var ie=x.display,fe=!1,xe=fn(x,function(et){he&&(ie.scroller.draggable=!1),x.state.draggingText=!1,lt(ie.wrapper.ownerDocument,"mouseup",xe),lt(ie.wrapper.ownerDocument,"mousemove",Ne),lt(ie.scroller,"dragstart",_e),lt(ie.scroller,"drop",xe),fe||(bn(et),te.addNew||fa(x.doc,ne,null,null,te.extend),he&&!vt||ge&&ke==9?setTimeout(function(){ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),ie.input.focus()},20):ie.input.focus())}),Ne=function(et){fe=fe||Math.abs(z.clientX-et.clientX)+Math.abs(z.clientY-et.clientY)>=10},_e=function(){return fe=!0};he&&(ie.scroller.draggable=!0),x.state.draggingText=xe,xe.copy=!te.moveOnDrag,ie.scroller.dragDrop&&ie.scroller.dragDrop(),Rt(ie.wrapper.ownerDocument,"mouseup",xe),Rt(ie.wrapper.ownerDocument,"mousemove",Ne),Rt(ie.scroller,"dragstart",_e),Rt(ie.scroller,"drop",xe),xc(x),setTimeout(function(){return ie.input.focus()},20)}function mf(x,z,ne){if(ne=="char")return new Xr(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new Xr(Kt(z.line,0),On(x.doc,Kt(z.line+1,0)));var te=ne(x,z);return new Xr(te.from,te.to)}function Id(x,z,ne,te){var ie=x.display,fe=x.doc;bn(z);var xe,Ne,_e=fe.sel,et=_e.ranges;if(te.addNew&&!te.extend?(Ne=fe.sel.contains(ne),Ne>-1?xe=et[Ne]:xe=new Xr(ne,ne)):(xe=fe.sel.primary(),Ne=fe.sel.primIndex),te.unit=="rectangle")te.addNew||(xe=new Xr(ne,ne)),ne=Wl(x,z,!0,!0),Ne=-1;else{var Wt=mf(x,ne,te.unit);te.extend?xe=gs(xe,Wt.anchor,Wt.head,te.extend):xe=Wt}te.addNew?Ne==-1?(Ne=et.length,ka(fe,Ki(x,et.concat([xe]),Ne),{scroll:!1,origin:"*mouse"})):et.length>1&&et[Ne].empty()&&te.unit=="char"&&!te.extend?(ka(fe,Ki(x,et.slice(0,Ne).concat(et.slice(Ne+1)),0),{scroll:!1,origin:"*mouse"}),_e=fe.sel):xa(fe,Ne,xe,ot):(Ne=0,ka(fe,new Ai([xe],0),ot),_e=fe.sel);var tn=ne;function Fn(ni){if(hn(tn,ni)!=0)if(tn=ni,te.unit=="rectangle"){for(var gi=[],Oi=x.options.tabSize,zi=Qe(yt(fe,ne.line).text,ne.ch,Oi),ga=Qe(yt(fe,ni.line).text,ni.ch,Oi),uo=Math.min(zi,ga),yl=Math.max(zi,ga),Io=Math.min(ne.line,ni.line),jl=Math.min(x.lastLine(),Math.max(ne.line,ni.line));Io<=jl;Io++){var Vl=yt(fe,Io).text,rl=Sn(Vl,uo,Oi);uo==yl?gi.push(new Xr(Kt(Io,rl),Kt(Io,rl))):Vl.length>rl&&gi.push(new Xr(Kt(Io,rl),Kt(Io,Sn(Vl,yl,Oi))))}gi.length||gi.push(new Xr(ne,ne)),ka(fe,Ki(x,_e.ranges.slice(0,Ne).concat(gi),Ne),{origin:"*mouse",scroll:!1}),x.scrollIntoView(ni)}else{var Gl=xe,qi=mf(x,ni,te.unit),_o=Gl.anchor,To;hn(qi.anchor,_o)>0?(To=qi.head,_o=jn(Gl.from(),qi.anchor)):(To=qi.anchor,_o=Kn(Gl.to(),qi.head));var Ko=_e.ranges.slice(0);Ko[Ne]=vf(x,new Xr(On(fe,_o),To)),ka(fe,Ki(x,Ko,Ne),ot)}}var Dn=ie.wrapper.getBoundingClientRect(),rr=0;function yr(ni){var gi=++rr,Oi=Wl(x,ni,!0,te.unit=="rectangle");if(Oi)if(hn(Oi,tn)!=0){x.curOp.focus=qe(),Fn(Oi);var zi=el(ie,fe);(Oi.line>=zi.to||Oi.line<zi.from)&&setTimeout(fn(x,function(){rr==gi&&yr(ni)}),150)}else{var ga=ni.clientY<Dn.top?-20:ni.clientY>Dn.bottom?20:0;ga&&setTimeout(fn(x,function(){rr==gi&&(ie.scroller.scrollTop+=ga,yr(ni))}),50)}}function Yr(ni){x.state.selectingText=!1,rr=1/0,ni&&(bn(ni),ie.input.focus()),lt(ie.wrapper.ownerDocument,"mousemove",oi),lt(ie.wrapper.ownerDocument,"mouseup",pi),fe.history.lastSelOrigin=null}var oi=fn(x,function(ni){ni.buttons===0||!_n(ni)?Yr(ni):yr(ni)}),pi=fn(x,Yr);x.state.selectingText=pi,Rt(ie.wrapper.ownerDocument,"mousemove",oi),Rt(ie.wrapper.ownerDocument,"mouseup",pi)}function vf(x,z){var ne=z.anchor,te=z.head,ie=yt(x.doc,ne.line);if(hn(ne,te)==0&&ne.sticky==te.sticky)return z;var fe=Xt(ie);if(!fe)return z;var xe=Ge(fe,ne.ch,ne.sticky),Ne=fe[xe];if(Ne.from!=ne.ch&&Ne.to!=ne.ch)return z;var _e=xe+(Ne.from==ne.ch==(Ne.level!=1)?0:1);if(_e==0||_e==fe.length)return z;var et;if(te.line!=ne.line)et=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var Wt=Ge(fe,te.ch,te.sticky),tn=Wt-xe||(te.ch-ne.ch)*(Ne.level==1?-1:1);Wt==_e-1||Wt==_e?et=tn<0:et=tn>0}var Fn=fe[_e+(et?-1:0)],Dn=et==(Fn.level==1),rr=Dn?Fn.from:Fn.to,yr=Dn?"after":"before";return ne.ch==rr&&ne.sticky==yr?z:new Xr(new Kt(ne.line,rr,yr),te)}function Ic(x,z,ne,te){var ie,fe;if(z.touches)ie=z.touches[0].clientX,fe=z.touches[0].clientY;else try{ie=z.clientX,fe=z.clientY}catch(Fn){return!1}if(ie>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&bn(z);var xe=x.display,Ne=xe.lineDiv.getBoundingClientRect();if(fe>Ne.bottom||!Ft(x,ne))return Ln(z);fe-=Ne.top-xe.viewOffset;for(var _e=0;_e<x.display.gutterSpecs.length;++_e){var et=xe.gutters.childNodes[_e];if(et&&et.getBoundingClientRect().right>=ie){var Wt=yn(x.doc,fe),tn=x.display.gutterSpecs[_e];return Le(x,ne,x,Wt,tn.className,z),Ln(z)}}}function Il(x,z){return Ic(x,z,"gutterClick",!0)}function wu(x,z){Al(x.display,z)||gf(x,z)||it(x,z,"contextmenu")||Ve||x.display.input.onContextMenu(z)}function gf(x,z){return Ft(x,"gutterContextMenu")?Ic(x,z,"gutterContextMenu",!1):!1}function Td(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ja(x)}var Eu={toString:function(){return"CodeMirror.Init"}},yf={},ad={};function oh(x){var z=x.optionHandlers;function ne(te,ie,fe,xe){x.defaults[te]=ie,fe&&(z[te]=xe?function(Ne,_e,et){et!=Eu&&fe(Ne,_e,et)}:fe)}x.defineOption=ne,x.Init=Eu,ne("value","",function(te,ie){return te.setValue(ie)},!0),ne("mode",null,function(te,ie){te.doc.modeOption=ie,mo(te)},!0),ne("indentUnit",2,mo,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){oa(te),ja(te),No(te)},!0),ne("lineSeparator",null,function(te,ie){if(te.doc.lineSep=ie,!!ie){var fe=[],xe=te.doc.first;te.doc.iter(function(_e){for(var et=0;;){var Wt=_e.text.indexOf(ie,et);if(Wt==-1)break;et=Wt+ie.length,fe.push(Kt(xe,Wt))}xe++});for(var Ne=fe.length-1;Ne>=0;Ne--)Ns(te.doc,ie,fe[Ne],Kt(fe[Ne].line,fe[Ne].ch+ie.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ie,fe){te.state.specialChars=new RegExp(ie.source+(ie.test(" ")?"":"| "),"g"),fe!=Eu&&te.refresh()}),ne("specialCharPlaceholder",Ba,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",Ue?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,ie){return te.getInputField().spellcheck=ie},!0),ne("autocorrect",!1,function(te,ie){return te.getInputField().autocorrect=ie},!0),ne("autocapitalize",!1,function(te,ie){return te.getInputField().autocapitalize=ie},!0),ne("rtlMoveVisually",!At),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){Td(te),ri(te)},!0),ne("keyMap","default",function(te,ie,fe){var xe=vl(ie),Ne=fe!=Eu&&vl(fe);Ne&&Ne.detach&&Ne.detach(te,xe),xe.attach&&xe.attach(te,Ne||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,bf,!0),ne("gutters",[],function(te,ie){te.display.gutterSpecs=Ti(ie,te.options.lineNumbers),ri(te)},!0),ne("fixedGutter",!0,function(te,ie){te.display.gutters.style.left=ie?_a(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return Gs(te)},!0),ne("scrollbarStyle","native",function(te){Ec(te),Gs(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,ie){te.display.gutterSpecs=Ti(te.options.gutters,ie),ri(te)},!0),ne("firstLineNumber",1,ri,!0),ne("lineNumberFormatter",function(te){return te},ri,!0),ne("showCursorWhenSelecting",!1,gu,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ie){ie=="nocursor"&&(iu(te),te.display.input.blur()),te.display.input.readOnlyChanged(ie)}),ne("screenReaderLabel",null,function(te,ie){ie=ie===""?null:ie,te.display.input.screenReaderLabelChanged(ie)}),ne("disableInput",!1,function(te,ie){ie||te.display.input.reset()},!0),ne("dragDrop",!0,lh),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,gu,!0),ne("singleCursorHeightPerLine",!0,gu,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,oa,!0),ne("addModeClass",!1,oa,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,ie){return te.doc.history.undoDepth=ie}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,oa,!0),ne("moveInputWithCursor",!0,function(te,ie){ie||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ie){return te.display.input.getField().tabIndex=ie||""}),ne("autofocus",null),ne("direction","ltr",function(te,ie){return te.doc.setDirection(ie)},!0),ne("phrases",null)}function lh(x,z,ne){var te=ne&&ne!=Eu;if(!z!=!te){var ie=x.display.dragFunctions,fe=z?Rt:lt;fe(x.display.scroller,"dragstart",ie.start),fe(x.display.scroller,"dragenter",ie.enter),fe(x.display.scroller,"dragover",ie.over),fe(x.display.scroller,"dragleave",ie.leave),fe(x.display.scroller,"drop",ie.drop)}}function bf(x){x.options.lineWrapping?(zt(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):($e(x.display.wrapper,"CodeMirror-wrap"),sr(x)),jo(x),No(x),ja(x),setTimeout(function(){return Gs(x)},100)}function Qi(x,z){var ne=this;if(!(this instanceof Qi))return new Qi(x,z);this.options=z=z?It(z):{},It(yf,z,!1);var te=z.value;typeof te=="string"?te=new Do(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ie=new Qi.inputStyles[z.inputStyle](this),fe=this.display=new mi(x,te,ie,z);fe.wrapper.CodeMirror=this,Td(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ec(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new be,keySeq:null,specialChars:null},z.autofocus&&!Ue&&fe.input.focus(),ge&&ke<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),sh(this),Dc(),bl(this),this.curOp.forceUpdate=!0,Li(this,te),z.autofocus&&!Ue||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Cc(ne)},20):iu(this);for(var xe in ad)ad.hasOwnProperty(xe)&&ad[xe](this,z[xe],Eu);ui(this),z.finishInit&&z.finishInit(this);for(var Ne=0;Ne<Od.length;++Ne)Od[Ne](this);Fs(this),he&&z.lineWrapping&&getComputedStyle(fe.lineDiv).textRendering=="optimizelegibility"&&(fe.lineDiv.style.textRendering="auto")}Qi.defaults=yf,Qi.optionHandlers=ad;function sh(x){var z=x.display;Rt(z.scroller,"mousedown",fn(x,Cl)),ge&&ke<11?Rt(z.scroller,"dblclick",fn(x,function(_e){if(!it(x,_e)){var et=Wl(x,_e);if(!(!et||Il(x,_e)||Al(x.display,_e))){bn(_e);var Wt=x.findWordAt(et);fa(x.doc,Wt.anchor,Wt.head)}}})):Rt(z.scroller,"dblclick",function(_e){return it(x,_e)||bn(_e)}),Rt(z.scroller,"contextmenu",function(_e){return wu(x,_e)}),Rt(z.input.getField(),"contextmenu",function(_e){z.scroller.contains(_e.target)||wu(x,_e)});var ne,te={end:0};function ie(){z.activeTouch&&(ne=setTimeout(function(){return z.activeTouch=null},1e3),te=z.activeTouch,te.end=+new Date)}function fe(_e){if(_e.touches.length!=1)return!1;var et=_e.touches[0];return et.radiusX<=1&&et.radiusY<=1}function xe(_e,et){if(et.left==null)return!0;var Wt=et.left-_e.left,tn=et.top-_e.top;return Wt*Wt+tn*tn>20*20}Rt(z.scroller,"touchstart",function(_e){if(!it(x,_e)&&!fe(_e)&&!Il(x,_e)){z.input.ensurePolled(),clearTimeout(ne);var et=+new Date;z.activeTouch={start:et,moved:!1,prev:et-te.end<=300?te:null},_e.touches.length==1&&(z.activeTouch.left=_e.touches[0].pageX,z.activeTouch.top=_e.touches[0].pageY)}}),Rt(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),Rt(z.scroller,"touchend",function(_e){var et=z.activeTouch;if(et&&!Al(z,_e)&&et.left!=null&&!et.moved&&new Date-et.start<300){var Wt=x.coordsChar(z.activeTouch,"page"),tn;!et.prev||xe(et,et.prev)?tn=new Xr(Wt,Wt):!et.prev.prev||xe(et,et.prev.prev)?tn=x.findWordAt(Wt):tn=new Xr(Kt(Wt.line,0),On(x.doc,Kt(Wt.line+1,0))),x.setSelection(tn.anchor,tn.head),x.focus(),bn(_e)}ie()}),Rt(z.scroller,"touchcancel",ie),Rt(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Vs(x,z.scroller.scrollTop),Ts(x,z.scroller.scrollLeft,!0),Le(x,"scroll",x))}),Rt(z.scroller,"mousewheel",function(_e){return Ji(x,_e)}),Rt(z.scroller,"DOMMouseScroll",function(_e){return Ji(x,_e)}),Rt(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(_e){it(x,_e)||Gn(_e)},over:function(_e){it(x,_e)||(ac(x,_e),Gn(_e))},start:function(_e){return ic(x,_e)},drop:fn(x,ed),leave:function(_e){it(x,_e)||xu(x)}};var Ne=z.input.getField();Rt(Ne,"keyup",function(_e){return hf.call(x,_e)}),Rt(Ne,"keydown",fn(x,Bc)),Rt(Ne,"keypress",fn(x,pf)),Rt(Ne,"focus",function(_e){return Cc(x,_e)}),Rt(Ne,"blur",function(_e){return iu(x,_e)})}var Od=[];Qi.defineInitHook=function(x){return Od.push(x)};function _s(x,z,ne,te){var ie=x.doc,fe;ne==null&&(ne="add"),ne=="smart"&&(ie.mode.indent?fe=vn(x,z).state:ne="prev");var xe=x.options.tabSize,Ne=yt(ie,z),_e=Qe(Ne.text,null,xe);Ne.stateAfter&&(Ne.stateAfter=null);var et=Ne.text.match(/^\s*/)[0],Wt;if(!te&&!/\S/.test(Ne.text))Wt=0,ne="not";else if(ne=="smart"&&(Wt=ie.mode.indent(fe,Ne.text.slice(et.length),Ne.text),Wt==Zt||Wt>150)){if(!te)return;ne="prev"}ne=="prev"?z>ie.first?Wt=Qe(yt(ie,z-1).text,null,xe):Wt=0:ne=="add"?Wt=_e+x.options.indentUnit:ne=="subtract"?Wt=_e-x.options.indentUnit:typeof ne=="number"&&(Wt=_e+ne),Wt=Math.max(0,Wt);var tn="",Fn=0;if(x.options.indentWithTabs)for(var Dn=Math.floor(Wt/xe);Dn;--Dn)Fn+=xe,tn+=" ";if(Fn<Wt&&(tn+=mn(Wt-Fn)),tn!=et)return Ns(ie,tn,Kt(z,0),Kt(z,et.length),"+input"),Ne.stateAfter=null,!0;for(var rr=0;rr<ie.sel.ranges.length;rr++){var yr=ie.sel.ranges[rr];if(yr.head.line==z&&yr.head.ch<et.length){var Yr=Kt(z,et.length);xa(ie,rr,new Xr(Yr,Yr));break}}}var Ks=null;function Mu(x){Ks=x}function Fd(x,z,ne,te,ie){var fe=x.doc;x.display.shift=!1,te||(te=fe.sel);var xe=+new Date-200,Ne=ie=="paste"||x.state.pasteIncoming>xe,_e=kr(z),et=null;if(Ne&&te.ranges.length>1)if(Ks&&Ks.text.join(`
`)==z){if(te.ranges.length%Ks.text.length==0){et=[];for(var Wt=0;Wt<Ks.text.length;Wt++)et.push(fe.splitLines(Ks.text[Wt]))}}else _e.length==te.ranges.length&&x.options.pasteLinesPerSelection&&(et=nn(_e,function(oi){return[oi]}));for(var tn=x.curOp.updateInput,Fn=te.ranges.length-1;Fn>=0;Fn--){var Dn=te.ranges[Fn],rr=Dn.from(),yr=Dn.to();Dn.empty()&&(ne&&ne>0?rr=Kt(rr.line,rr.ch-ne):x.state.overwrite&&!Ne?yr=Kt(yr.line,Math.min(yt(fe,yr.line).text.length,yr.ch+on(_e).length)):Ne&&Ks&&Ks.lineWise&&Ks.text.join(`
`)==_e.join(`
`)&&(rr=yr=Kt(rr.line,0)));var Yr={from:rr,to:yr,text:et?et[Fn%et.length]:_e,origin:ie||(Ne?"paste":x.state.cutIncoming>xe?"cut":"+input")};eo(x.doc,Yr),fi(x,"inputRead",x,Yr)}z&&!Ne&&Rd(x,z),yu(x),x.curOp.updateInput<2&&(x.curOp.updateInput=tn),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function Nd(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&_t(z,function(){return Fd(z,ne,0,null,"paste")}),!0}function Rd(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ne=x.doc.sel,te=ne.ranges.length-1;te>=0;te--){var ie=ne.ranges[te];if(!(ie.head.ch>100||te&&ne.ranges[te-1].head.line==ie.head.line)){var fe=x.getModeAt(ie.head),xe=!1;if(fe.electricChars){for(var Ne=0;Ne<fe.electricChars.length;Ne++)if(z.indexOf(fe.electricChars.charAt(Ne))>-1){xe=_s(x,ie.head.line,"smart");break}}else fe.electricInput&&fe.electricInput.test(yt(x.doc,ie.head.line).text.slice(0,ie.head.ch))&&(xe=_s(x,ie.head.line,"smart"));xe&&fi(x,"electricInput",x,ie.head.line)}}}function cc(x){for(var z=[],ne=[],te=0;te<x.doc.sel.ranges.length;te++){var ie=x.doc.sel.ranges[te].head.line,fe={anchor:Kt(ie,0),head:Kt(ie+1,0)};ne.push(fe),z.push(x.getRange(fe.anchor,fe.head))}return{text:z,ranges:ne}}function xf(x,z,ne,te){x.setAttribute("autocorrect",ne?"":"off"),x.setAttribute("autocapitalize",te?"":"off"),x.setAttribute("spellcheck",!!z)}function zd(){var x=Xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=Xe("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return he?x.style.width="1000px":x.setAttribute("wrap","off"),st&&(x.style.border="1px solid black"),xf(x),z}function _d(x){var z=x.optionHandlers,ne=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(te,ie){var fe=this.options,xe=fe[te];fe[te]==ie&&te!="mode"||(fe[te]=ie,z.hasOwnProperty(te)&&fn(this,z[te])(this,ie,xe),Le(this,"optionChange",this,te))},getOption:function(te){return this.options[te]},getDoc:function(){return this.doc},addKeyMap:function(te,ie){this.state.keyMaps[ie?"push":"unshift"](vl(te))},removeKeyMap:function(te){for(var ie=this.state.keyMaps,fe=0;fe<ie.length;++fe)if(ie[fe]==te||ie[fe].name==te)return ie.splice(fe,1),!0},addOverlay:dn(function(te,ie){var fe=te.token?te:x.getMode(this.options,te);if(fe.startState)throw new Error("Overlays may not be stateful.");en(this.state.overlays,{mode:fe,modeSpec:te,opaque:ie&&ie.opaque,priority:ie&&ie.priority||0},function(xe){return xe.priority}),this.state.modeGen++,No(this)}),removeOverlay:dn(function(te){for(var ie=this.state.overlays,fe=0;fe<ie.length;++fe){var xe=ie[fe].modeSpec;if(xe==te||typeof te=="string"&&xe.name==te){ie.splice(fe,1),this.state.modeGen++,No(this);return}}}),indentLine:dn(function(te,ie,fe){typeof ie!="string"&&typeof ie!="number"&&(ie==null?ie=this.options.smartIndent?"smart":"prev":ie=ie?"add":"subtract"),En(this.doc,te)&&_s(this,te,ie,fe)}),indentSelection:dn(function(te){for(var ie=this.doc.sel.ranges,fe=-1,xe=0;xe<ie.length;xe++){var Ne=ie[xe];if(Ne.empty())Ne.head.line>fe&&(_s(this,Ne.head.line,te,!0),fe=Ne.head.line,xe==this.doc.sel.primIndex&&yu(this));else{var _e=Ne.from(),et=Ne.to(),Wt=Math.max(fe,_e.line);fe=Math.min(this.lastLine(),et.line-(et.ch?0:1))+1;for(var tn=Wt;tn<fe;++tn)_s(this,tn,te);var Fn=this.doc.sel.ranges;_e.ch==0&&ie.length==Fn.length&&Fn[xe].from().ch>0&&xa(this.doc,xe,new Xr(_e,Fn[xe].to()),at)}}}),getTokenAt:function(te,ie){return pr(this,te,ie)},getLineTokens:function(te,ie){return pr(this,Kt(te),ie,!0)},getTokenTypeAt:function(te){te=On(this.doc,te);var ie=un(this,yt(this.doc,te.line)),fe=0,xe=(ie.length-1)/2,Ne=te.ch,_e;if(Ne==0)_e=ie[2];else for(;;){var et=fe+xe>>1;if((et?ie[et*2-1]:0)>=Ne)xe=et;else if(ie[et*2+1]<Ne)fe=et+1;else{_e=ie[et*2+2];break}}var Wt=_e?_e.indexOf("overlay "):-1;return Wt<0?_e:Wt==0?null:_e.slice(0,Wt-1)},getModeAt:function(te){var ie=this.doc.mode;return ie.innerMode?x.innerMode(ie,this.getTokenAt(te).state).mode:ie},getHelper:function(te,ie){return this.getHelpers(te,ie)[0]},getHelpers:function(te,ie){var fe=[];if(!ne.hasOwnProperty(ie))return fe;var xe=ne[ie],Ne=this.getModeAt(te);if(typeof Ne[ie]=="string")xe[Ne[ie]]&&fe.push(xe[Ne[ie]]);else if(Ne[ie])for(var _e=0;_e<Ne[ie].length;_e++){var et=xe[Ne[ie][_e]];et&&fe.push(et)}else Ne.helperType&&xe[Ne.helperType]?fe.push(xe[Ne.helperType]):xe[Ne.name]&&fe.push(xe[Ne.name]);for(var Wt=0;Wt<xe._global.length;Wt++){var tn=xe._global[Wt];tn.pred(Ne,this)&&Ct(fe,tn.val)==-1&&fe.push(tn.val)}return fe},getStateAfter:function(te,ie){var fe=this.doc;return te=nr(fe,te==null?fe.first+fe.size-1:te),vn(this,te+1,ie).state},cursorCoords:function(te,ie){var fe,xe=this.doc.sel.primary();return te==null?fe=xe.head:typeof te=="object"?fe=On(this.doc,te):fe=te?xe.from():xe.to(),$o(this,fe,ie||"page")},charCoords:function(te,ie){return Bl(this,On(this.doc,te),ie||"page")},coordsChar:function(te,ie){return te=Fl(this,te,ie||"page"),ms(this,te.left,te.top)},lineAtHeight:function(te,ie){return te=Fl(this,{top:te,left:0},ie||"page").top,yn(this.doc,te+this.display.viewOffset)},heightAtLine:function(te,ie,fe){var xe=!1,Ne;if(typeof te=="number"){var _e=this.doc.first+this.doc.size-1;te<this.doc.first?te=this.doc.first:te>_e&&(te=_e,xe=!0),Ne=yt(this.doc,te)}else Ne=te;return Wo(this,Ne,{top:0,left:0},ie||"page",fe||xe).top+(xe?this.doc.height-Sr(Ne):0)},defaultTextHeight:function(){return vs(this.display)},defaultCharWidth:function(){return Sa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ie,fe,xe,Ne){var _e=this.display;te=$o(this,On(this.doc,te));var et=te.bottom,Wt=te.left;if(ie.style.position="absolute",ie.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ie),_e.sizer.appendChild(ie),xe=="over")et=te.top;else if(xe=="above"||xe=="near"){var tn=Math.max(_e.wrapper.clientHeight,this.doc.height),Fn=Math.max(_e.sizer.clientWidth,_e.lineSpace.clientWidth);(xe=="above"||te.bottom+ie.offsetHeight>tn)&&te.top>ie.offsetHeight?et=te.top-ie.offsetHeight:te.bottom+ie.offsetHeight<=tn&&(et=te.bottom),Wt+ie.offsetWidth>Fn&&(Wt=Fn-ie.offsetWidth)}ie.style.top=et+"px",ie.style.left=ie.style.right="",Ne=="right"?(Wt=_e.sizer.clientWidth-ie.offsetWidth,ie.style.right="0px"):(Ne=="left"?Wt=0:Ne=="middle"&&(Wt=(_e.sizer.clientWidth-ie.offsetWidth)/2),ie.style.left=Wt+"px"),fe&&Uc(this,{left:Wt,top:et,right:Wt+ie.offsetWidth,bottom:et+ie.offsetHeight})},triggerOnKeyDown:dn(Bc),triggerOnKeyPress:dn(pf),triggerOnKeyUp:hf,triggerOnMouseDown:dn(Cl),execCommand:function(te){if(gl.hasOwnProperty(te))return gl[te].call(null,this)},triggerElectric:dn(function(te){Rd(this,te)}),findPosH:function(te,ie,fe,xe){var Ne=1;ie<0&&(Ne=-1,ie=-ie);for(var _e=On(this.doc,te),et=0;et<ie&&(_e=od(this.doc,_e,Ne,fe,xe),!_e.hitSide);++et);return _e},moveH:dn(function(te,ie){var fe=this;this.extendSelectionsBy(function(xe){return fe.display.shift||fe.doc.extend||xe.empty()?od(fe.doc,xe.head,te,ie,fe.options.rtlMoveVisually):te<0?xe.from():xe.to()},Nt)}),deleteH:dn(function(te,ie){var fe=this.doc.sel,xe=this.doc;fe.somethingSelected()?xe.replaceSelection("",null,"+delete"):Kl(this,function(Ne){var _e=od(xe,Ne.head,te,ie,!1);return te<0?{from:_e,to:Ne.head}:{from:Ne.head,to:_e}})}),findPosV:function(te,ie,fe,xe){var Ne=1,_e=xe;ie<0&&(Ne=-1,ie=-ie);for(var et=On(this.doc,te),Wt=0;Wt<ie;++Wt){var tn=$o(this,et,"div");if(_e==null?_e=tn.left:tn.left=_e,et=Cf(this,tn,Ne,fe),et.hitSide)break}return et},moveV:dn(function(te,ie){var fe=this,xe=this.doc,Ne=[],_e=!this.display.shift&&!xe.extend&&xe.sel.somethingSelected();if(xe.extendSelectionsBy(function(Wt){if(_e)return te<0?Wt.from():Wt.to();var tn=$o(fe,Wt.head,"div");Wt.goalColumn!=null&&(tn.left=Wt.goalColumn),Ne.push(tn.left);var Fn=Cf(fe,tn,te,ie);return ie=="page"&&Wt==xe.sel.primary()&&tc(fe,Bl(fe,Fn,"div").top-tn.top),Fn},Nt),Ne.length)for(var et=0;et<xe.sel.ranges.length;et++)xe.sel.ranges[et].goalColumn=Ne[et]}),findWordAt:function(te){var ie=this.doc,fe=yt(ie,te.line).text,xe=te.ch,Ne=te.ch;if(fe){var _e=this.getHelper(te,"wordChars");(te.sticky=="before"||Ne==fe.length)&&xe?--xe:++Ne;for(var et=fe.charAt(xe),Wt=de(et,_e)?function(tn){return de(tn,_e)}:/\s/.test(et)?function(tn){return/\s/.test(tn)}:function(tn){return!/\s/.test(tn)&&!de(tn)};xe>0&&Wt(fe.charAt(xe-1));)--xe;for(;Ne<fe.length&&Wt(fe.charAt(Ne));)++Ne}return new Xr(Kt(te.line,xe),Kt(te.line,Ne))},toggleOverwrite:function(te){te!=null&&te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?zt(this.display.cursorDiv,"CodeMirror-overwrite"):$e(this.display.cursorDiv,"CodeMirror-overwrite"),Le(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==qe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:dn(function(te,ie){ou(this,te,ie)}),getScrollInfo:function(){var te=this.display.scroller;return{left:te.scrollLeft,top:te.scrollTop,height:te.scrollHeight-Oo(this)-this.display.barHeight,width:te.scrollWidth-Oo(this)-this.display.barWidth,clientHeight:Hl(this),clientWidth:xo(this)}},scrollIntoView:dn(function(te,ie){te==null?(te={from:this.doc.sel.primary().head,to:null},ie==null&&(ie=this.options.cursorScrollMargin)):typeof te=="number"?te={from:Kt(te,0),to:null}:te.from==null&&(te={from:te,to:null}),te.to||(te.to=te.from),te.margin=ie||0,te.from.line!=null?Ld(this,te):Xc(this,te.from,te.to,te.margin)}),setSize:dn(function(te,ie){var fe=this,xe=function(_e){return typeof _e=="number"||/^\d+$/.test(String(_e))?_e+"px":_e};te!=null&&(this.display.wrapper.style.width=xe(te)),ie!=null&&(this.display.wrapper.style.height=xe(ie)),this.options.lineWrapping&&lo(this);var Ne=this.display.viewFrom;this.doc.iter(Ne,this.display.viewTo,function(_e){if(_e.widgets){for(var et=0;et<_e.widgets.length;et++)if(_e.widgets[et].noHScroll){Ql(fe,Ne,"widget");break}}++Ne}),this.curOp.forceUpdate=!0,Le(this,"refresh",this)}),operation:function(te){return _t(this,te)},startOperation:function(){return bl(this)},endOperation:function(){return Fs(this)},refresh:dn(function(){var te=this.display.cachedTextHeight;No(this),this.curOp.forceUpdate=!0,ja(this),ou(this,this.doc.scrollLeft,this.doc.scrollTop),qr(this.display),(te==null||Math.abs(te-vs(this.display))>.5||this.options.lineWrapping)&&jo(this),Le(this,"refresh",this)}),swapDoc:dn(function(te){var ie=this.doc;return ie.cm=null,this.state.selectingText&&this.state.selectingText(),Li(this,te),ja(this),this.display.input.reset(),ou(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,fi(this,"swapDoc",this,ie),ie}),phrase:function(te){var ie=this.options.phrases;return ie&&Object.prototype.hasOwnProperty.call(ie,te)?ie[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}},Qt(x),x.registerHelper=function(te,ie,fe){ne.hasOwnProperty(te)||(ne[te]=x[te]={_global:[]}),ne[te][ie]=fe},x.registerGlobalHelper=function(te,ie,fe,xe){x.registerHelper(te,ie,xe),ne[te]._global.push({pred:fe,val:xe})}}function od(x,z,ne,te,ie){var fe=z,xe=ne,Ne=yt(x,z.line),_e=ie&&x.direction=="rtl"?-ne:ne;function et(){var pi=z.line+_e;return pi<x.first||pi>=x.first+x.size?!1:(z=new Kt(pi,z.ch,z.sticky),Ne=yt(x,pi))}function Wt(pi){var ni;if(te=="codepoint"){var gi=Ne.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(gi)?ni=null:ni=new Kt(z.line,Math.max(0,Math.min(Ne.text.length,z.ch+ne*(gi>=55296&&gi<56320?2:1))),-ne)}else ie?ni=Ea(x.cm,Ne,z,ne):ni=Ss(Ne,z,ne);if(ni==null)if(!pi&&et())z=va(ie,x.cm,Ne,z.line,_e);else return!1;else z=ni;return!0}if(te=="char"||te=="codepoint")Wt();else if(te=="column")Wt(!0);else if(te=="word"||te=="group")for(var tn=null,Fn=te=="group",Dn=x.cm&&x.cm.getHelper(z,"wordChars"),rr=!0;!(ne<0&&!Wt(!rr));rr=!1){var yr=Ne.text.charAt(z.ch)||`
`,Yr=de(yr,Dn)?"w":Fn&&yr==`
`?"n":!Fn||/\s/.test(yr)?null:"p";if(Fn&&!rr&&!Yr&&(Yr="s"),tn&&tn!=Yr){ne<0&&(ne=1,Wt(),z.sticky="after");break}if(Yr&&(tn=Yr),ne>0&&!Wt(!rr))break}var oi=es(x,z,fe,xe,!0);return Hn(fe,oi)&&(oi.hitSide=!0),oi}function Cf(x,z,ne,te){var ie=x.doc,fe=z.left,xe;if(te=="page"){var Ne=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),_e=Math.max(Ne-.5*vs(x.display),3);xe=(ne>0?z.bottom:z.top)+ne*_e}else te=="line"&&(xe=ne>0?z.bottom+3:z.top-3);for(var et;et=ms(x,fe,xe),!!et.outside;){if(ne<0?xe<=0:xe>=ie.height){et.hitSide=!0;break}xe+=ne*5}return et}var ao=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new be,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ao.prototype.init=function(x){var z=this,ne=this,te=ne.cm,ie=ne.div=x.lineDiv;xf(ie,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function fe(Ne){for(var _e=Ne.target;_e;_e=_e.parentNode){if(_e==ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_e.className))break}return!1}Rt(ie,"paste",function(Ne){!fe(Ne)||it(te,Ne)||Nd(Ne,te)||ke<=11&&setTimeout(fn(te,function(){return z.updateFromDOM()}),20)}),Rt(ie,"compositionstart",function(Ne){z.composing={data:Ne.data,done:!1}}),Rt(ie,"compositionupdate",function(Ne){z.composing||(z.composing={data:Ne.data,done:!1})}),Rt(ie,"compositionend",function(Ne){z.composing&&(Ne.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),Rt(ie,"touchstart",function(){return ne.forceCompositionEnd()}),Rt(ie,"input",function(){z.composing||z.readFromDOMSoon()});function xe(Ne){if(!(!fe(Ne)||it(te,Ne))){if(te.somethingSelected())Mu({lineWise:!1,text:te.getSelections()}),Ne.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var _e=cc(te);Mu({lineWise:!0,text:_e.text}),Ne.type=="cut"&&te.operation(function(){te.setSelections(_e.ranges,0,at),te.replaceSelection("",null,"cut")})}else return;if(Ne.clipboardData){Ne.clipboardData.clearData();var et=Ks.text.join(`
`);if(Ne.clipboardData.setData("Text",et),Ne.clipboardData.getData("Text")==et){Ne.preventDefault();return}}var Wt=zd(),tn=Wt.firstChild;te.display.lineSpace.insertBefore(Wt,te.display.lineSpace.firstChild),tn.value=Ks.text.join(`
`);var Fn=document.activeElement;Bt(tn),setTimeout(function(){te.display.lineSpace.removeChild(Wt),Fn.focus(),Fn==ie&&ne.showPrimarySelection()},50)}}Rt(ie,"copy",xe),Rt(ie,"cut",xe)},ao.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},ao.prototype.prepareSelection=function(){var x=Gc(this.cm,!1);return x.focus=document.activeElement==this.div,x},ao.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},ao.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ao.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,ne=z.doc.sel.primary(),te=ne.from(),ie=ne.to();if(z.display.viewTo==z.display.viewFrom||te.line>=z.display.viewTo||ie.line<z.display.viewFrom){x.removeAllRanges();return}var fe=ld(z,x.anchorNode,x.anchorOffset),xe=ld(z,x.focusNode,x.focusOffset);if(!(fe&&!fe.bad&&xe&&!xe.bad&&hn(jn(fe,xe),te)==0&&hn(Kn(fe,xe),ie)==0)){var Ne=z.display.view,_e=te.line>=z.display.viewFrom&&Sf(z,te)||{node:Ne[0].measure.map[2],offset:0},et=ie.line<z.display.viewTo&&Sf(z,ie);if(!et){var Wt=Ne[Ne.length-1].measure,tn=Wt.maps?Wt.maps[Wt.maps.length-1]:Wt.map;et={node:tn[tn.length-1],offset:tn[tn.length-2]-tn[tn.length-3]}}if(!_e||!et){x.removeAllRanges();return}var Fn=x.rangeCount&&x.getRangeAt(0),Dn;try{Dn=Oe(_e.node,_e.offset,et.offset,et.node)}catch(rr){}Dn&&(!me&&z.state.focused?(x.collapse(_e.node,_e.offset),Dn.collapsed||(x.removeAllRanges(),x.addRange(Dn))):(x.removeAllRanges(),x.addRange(Dn)),Fn&&x.anchorNode==null?x.addRange(Fn):me&&this.startGracePeriod()),this.rememberSelection()}},ao.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)},ao.prototype.showMultipleSelections=function(x){ht(this.cm.display.cursorDiv,x.cursors),ht(this.cm.display.selectionDiv,x.selection)},ao.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},ao.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var z=x.getRangeAt(0).commonAncestorContainer;return Pt(this.div,z)},ao.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ao.prototype.blur=function(){this.div.blur()},ao.prototype.getField=function(){return this.div},ao.prototype.supportsTouch=function(){return!0},ao.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():_t(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)},ao.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},ao.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),z=this.cm;if(Je&&Ee&&this.cm.display.gutterSpecs.length&&uh(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ne=ld(z,x.anchorNode,x.anchorOffset),te=ld(z,x.focusNode,x.focusOffset);ne&&te&&_t(z,function(){ka(z.doc,Gi(ne,te),at),(ne.bad||te.bad)&&(z.curOp.selectionChanged=!0)})}}},ao.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var x=this.cm,z=x.display,ne=x.doc.sel.primary(),te=ne.from(),ie=ne.to();if(te.ch==0&&te.line>x.firstLine()&&(te=Kt(te.line-1,yt(x.doc,te.line-1).length)),ie.ch==yt(x.doc,ie.line).text.length&&ie.line<x.lastLine()&&(ie=Kt(ie.line+1,0)),te.line<z.viewFrom||ie.line>z.viewTo-1)return!1;var fe,xe,Ne;te.line==z.viewFrom||(fe=sl(x,te.line))==0?(xe=ln(z.view[0].line),Ne=z.view[0].node):(xe=ln(z.view[fe].line),Ne=z.view[fe-1].node.nextSibling);var _e=sl(x,ie.line),et,Wt;if(_e==z.view.length-1?(et=z.viewTo-1,Wt=z.lineDiv.lastChild):(et=ln(z.view[_e+1].line)-1,Wt=z.view[_e+1].node.previousSibling),!Ne)return!1;for(var tn=x.doc.splitLines(ch(x,Ne,Wt,xe,et)),Fn=Lt(x.doc,Kt(xe,0),Kt(et,yt(x.doc,et).text.length));tn.length>1&&Fn.length>1;)if(on(tn)==on(Fn))tn.pop(),Fn.pop(),et--;else if(tn[0]==Fn[0])tn.shift(),Fn.shift(),xe++;else break;for(var Dn=0,rr=0,yr=tn[0],Yr=Fn[0],oi=Math.min(yr.length,Yr.length);Dn<oi&&yr.charCodeAt(Dn)==Yr.charCodeAt(Dn);)++Dn;for(var pi=on(tn),ni=on(Fn),gi=Math.min(pi.length-(tn.length==1?Dn:0),ni.length-(Fn.length==1?Dn:0));rr<gi&&pi.charCodeAt(pi.length-rr-1)==ni.charCodeAt(ni.length-rr-1);)++rr;if(tn.length==1&&Fn.length==1&&xe==te.line)for(;Dn&&Dn>te.ch&&pi.charCodeAt(pi.length-rr-1)==ni.charCodeAt(ni.length-rr-1);)Dn--,rr++;tn[tn.length-1]=pi.slice(0,pi.length-rr).replace(/^\u200b+/,""),tn[0]=tn[0].slice(Dn).replace(/\u200b+$/,"");var Oi=Kt(xe,Dn),zi=Kt(et,Fn.length?on(Fn).length-rr:0);if(tn.length>1||tn[0]||hn(Oi,zi))return Ns(x.doc,tn,Oi,zi,"+input"),!0},ao.prototype.ensurePolled=function(){this.forceCompositionEnd()},ao.prototype.reset=function(){this.forceCompositionEnd()},ao.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ao.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))},ao.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&_t(this.cm,function(){return No(x.cm)})},ao.prototype.setUneditable=function(x){x.contentEditable="false"},ao.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||fn(this.cm,Fd)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},ao.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},ao.prototype.onContextMenu=function(){},ao.prototype.resetPosition=function(){},ao.prototype.needsContentAttribute=!0;function Sf(x,z){var ne=ll(x,z.line);if(!ne||ne.hidden)return null;var te=yt(x.doc,z.line),ie=Xl(ne,te,z.line),fe=Xt(te,x.doc.direction),xe="left";if(fe){var Ne=Ge(fe,z.ch);xe=Ne%2?"right":"left"}var _e=Ls(ie.map,z.ch,xe);return _e.offset=_e.collapse=="right"?_e.end:_e.start,_e}function uh(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function dc(x,z){return z&&(x.bad=!0),x}function ch(x,z,ne,te,ie){var fe="",xe=!1,Ne=x.doc.lineSeparator(),_e=!1;function et(Dn){return function(rr){return rr.id==Dn}}function Wt(){xe&&(fe+=Ne,_e&&(fe+=Ne),xe=_e=!1)}function tn(Dn){Dn&&(Wt(),fe+=Dn)}function Fn(Dn){if(Dn.nodeType==1){var rr=Dn.getAttribute("cm-text");if(rr){tn(rr);return}var yr=Dn.getAttribute("cm-marker"),Yr;if(yr){var oi=x.findMarks(Kt(te,0),Kt(ie+1,0),et(+yr));oi.length&&(Yr=oi[0].find(0))&&tn(Lt(x.doc,Yr.from,Yr.to).join(Ne));return}if(Dn.getAttribute("contenteditable")=="false")return;var pi=/^(pre|div|p|li|table|br)$/i.test(Dn.nodeName);if(!/^br$/i.test(Dn.nodeName)&&Dn.textContent.length==0)return;pi&&Wt();for(var ni=0;ni<Dn.childNodes.length;ni++)Fn(Dn.childNodes[ni]);/^(pre|p)$/i.test(Dn.nodeName)&&(_e=!0),pi&&(xe=!0)}else Dn.nodeType==3&&tn(Dn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Fn(z),z!=ne;)z=z.nextSibling,_e=!1;return fe}function ld(x,z,ne){var te;if(z==x.display.lineDiv){if(te=x.display.lineDiv.childNodes[ne],!te)return dc(x.clipPos(Kt(x.display.viewTo-1)),!0);z=null,ne=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 ie=0;ie<x.display.view.length;ie++){var fe=x.display.view[ie];if(fe.node==te)return dh(fe,z,ne)}}function dh(x,z,ne){var te=x.text.firstChild,ie=!1;if(!z||!Pt(te,z))return dc(Kt(ln(x.line),0),!0);if(z==te&&(ie=!0,z=te.childNodes[ne],ne=0,!z)){var fe=x.rest?on(x.rest):x.line;return dc(Kt(ln(fe),fe.text.length),ie)}var xe=z.nodeType==3?z:null,Ne=z;for(!xe&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(xe=z.firstChild,ne&&(ne=xe.nodeValue.length));Ne.parentNode!=te;)Ne=Ne.parentNode;var _e=x.measure,et=_e.maps;function Wt(Yr,oi,pi){for(var ni=-1;ni<(et?et.length:0);ni++)for(var gi=ni<0?_e.map:et[ni],Oi=0;Oi<gi.length;Oi+=3){var zi=gi[Oi+2];if(zi==Yr||zi==oi){var ga=ln(ni<0?x.line:x.rest[ni]),uo=gi[Oi]+pi;return(pi<0||zi!=Yr)&&(uo=gi[Oi+(pi?1:0)]),Kt(ga,uo)}}}var tn=Wt(xe,Ne,ne);if(tn)return dc(tn,ie);for(var Fn=Ne.nextSibling,Dn=xe?xe.nodeValue.length-ne:0;Fn;Fn=Fn.nextSibling){if(tn=Wt(Fn,Fn.firstChild,0),tn)return dc(Kt(tn.line,tn.ch-Dn),ie);Dn+=Fn.textContent.length}for(var rr=Ne.previousSibling,yr=ne;rr;rr=rr.previousSibling){if(tn=Wt(rr,rr.firstChild,-1),tn)return dc(Kt(tn.line,tn.ch+yr),ie);yr+=rr.textContent.length}}var so=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new be,this.hasSelection=!1,this.composing=null};so.prototype.init=function(x){var z=this,ne=this,te=this.cm;this.createField(x);var ie=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),st&&(ie.style.width="0px"),Rt(ie,"input",function(){ge&&ke>=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),Rt(ie,"paste",function(xe){it(te,xe)||Nd(xe,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function fe(xe){if(!it(te,xe)){if(te.somethingSelected())Mu({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var Ne=cc(te);Mu({lineWise:!0,text:Ne.text}),xe.type=="cut"?te.setSelections(Ne.ranges,null,at):(ne.prevInput="",ie.value=Ne.text.join(`
`),Bt(ie))}else return;xe.type=="cut"&&(te.state.cutIncoming=+new Date)}}Rt(ie,"cut",fe),Rt(ie,"copy",fe),Rt(x.scroller,"paste",function(xe){if(!(Al(x,xe)||it(te,xe))){if(!ie.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var Ne=new Event("paste");Ne.clipboardData=xe.clipboardData,ie.dispatchEvent(Ne)}}),Rt(x.lineSpace,"selectstart",function(xe){Al(x,xe)||bn(xe)}),Rt(ie,"compositionstart",function(){var xe=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:xe,range:te.markText(xe,te.getCursor("to"),{className:"CodeMirror-composing"})}}),Rt(ie,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},so.prototype.createField=function(x){this.wrapper=zd(),this.textarea=this.wrapper.firstChild},so.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},so.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ne=x.doc,te=Gc(x);if(x.options.moveInputWithCursor){var ie=$o(x,ne.sel.primary().head,"div"),fe=z.wrapper.getBoundingClientRect(),xe=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ie.top+xe.top-fe.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ie.left+xe.left-fe.left))}return te},so.prototype.showSelection=function(x){var z=this.cm,ne=z.display;ht(ne.cursorDiv,x.cursors),ht(ne.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},so.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var z=this.cm;if(z.somethingSelected()){this.prevInput="";var ne=z.getSelection();this.textarea.value=ne,z.state.focused&&Bt(this.textarea),ge&&ke>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",ge&&ke>=9&&(this.hasSelection=null))}},so.prototype.getField=function(){return this.textarea},so.prototype.supportsTouch=function(){return!1},so.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ue||qe()!=this.textarea))try{this.textarea.focus()}catch(x){}},so.prototype.blur=function(){this.textarea.blur()},so.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},so.prototype.receivedFocus=function(){this.slowPoll()},so.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},so.prototype.fastPoll=function(){var x=!1,z=this;z.pollingFast=!0;function ne(){var te=z.poll();!te&&!x?(x=!0,z.polling.set(60,ne)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,ne)},so.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||Qn(ne)&&!te&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var ie=ne.value;if(ie==te&&!z.somethingSelected())return!1;if(ge&&ke>=9&&this.hasSelection===ie||gt&&/[\uf700-\uf7ff]/.test(ie))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var fe=ie.charCodeAt(0);if(fe==8203&&!te&&(te="\u200B"),fe==8666)return this.reset(),this.cm.execCommand("undo")}for(var xe=0,Ne=Math.min(te.length,ie.length);xe<Ne&&te.charCodeAt(xe)==ie.charCodeAt(xe);)++xe;return _t(z,function(){Fd(z,ie.slice(xe),te.length-xe,null,x.composing?"*compose":null),ie.length>1e3||ie.indexOf(`
`)>-1?ne.value=x.prevInput="":x.prevInput=ie,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},so.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},so.prototype.onKeyPress=function(){ge&&ke>=9&&(this.hasSelection=null),this.fastPoll()},so.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,ie=z.textarea;z.contextMenuPending&&z.contextMenuPending();var fe=Wl(ne,x),xe=te.scroller.scrollTop;if(!fe||ze)return;var Ne=ne.options.resetSelectionOnContextMenu;Ne&&ne.doc.sel.contains(fe)==-1&&fn(ne,ka)(ne.doc,Gi(fe),at);var _e=ie.style.cssText,et=z.wrapper.style.cssText,Wt=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ie.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(x.clientY-Wt.top-5)+"px; left: "+(x.clientX-Wt.left-5)+`px;
z-index: 1000; background: `+(ge?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var tn;he&&(tn=window.scrollY),te.input.focus(),he&&window.scrollTo(null,tn),te.input.reset(),ne.somethingSelected()||(ie.value=z.prevInput=" "),z.contextMenuPending=Dn,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function Fn(){if(ie.selectionStart!=null){var yr=ne.somethingSelected(),Yr="\u200B"+(yr?ie.value:"");ie.value="\u21DA",ie.value=Yr,z.prevInput=yr?"":"\u200B",ie.selectionStart=1,ie.selectionEnd=Yr.length,te.selForContextMenu=ne.doc.sel}}function Dn(){if(z.contextMenuPending==Dn&&(z.contextMenuPending=!1,z.wrapper.style.cssText=et,ie.style.cssText=_e,ge&&ke<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=xe),ie.selectionStart!=null)){(!ge||ge&&ke<9)&&Fn();var yr=0,Yr=function(){te.selForContextMenu==ne.doc.sel&&ie.selectionStart==0&&ie.selectionEnd>0&&z.prevInput=="\u200B"?fn(ne,ml)(ne):yr++<10?te.detectingSelectAll=setTimeout(Yr,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(Yr,200)}}if(ge&&ke>=9&&Fn(),Ve){Gn(x);var rr=function(){lt(window,"mouseup",rr),setTimeout(Dn,20)};Rt(window,"mouseup",rr)}else setTimeout(Dn,50)},so.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},so.prototype.setUneditable=function(){},so.prototype.needsContentAttribute=!1;function Wu(x,z){if(z=z?It(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 ne=qe();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=Ne.getValue()}var ie;if(x.form&&(Rt(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var fe=x.form;ie=fe.submit;try{var xe=fe.submit=function(){te(),fe.submit=ie,fe.submit(),fe.submit=xe}}catch(_e){}}z.finishInit=function(_e){_e.save=te,_e.getTextArea=function(){return x},_e.toTextArea=function(){_e.toTextArea=isNaN,te(),x.parentNode.removeChild(_e.getWrapperElement()),x.style.display="",x.form&&(lt(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ie))}},x.style.display="none";var Ne=Qi(function(_e){return x.parentNode.insertBefore(_e,x.nextSibling)},z);return Ne}function fc(x){x.off=lt,x.on=Rt,x.wheelEventPixels=Ii,x.Doc=Do,x.splitLines=kr,x.countColumn=Qe,x.findColumn=Sn,x.isWordChar=ce,x.Pass=Zt,x.signal=Le,x.Line=hr,x.changeEnd=ba,x.scrollbarModel=wc,x.Pos=Kt,x.cmpPos=hn,x.modes=Rn,x.mimeModes=Nn,x.resolveMode=xn,x.getMode=kn,x.modeExtensions=gn,x.extendMode=bt,x.copyState=Ae,x.startState=Ze,x.innerMode=je,x.commands=gl,x.keyMap=Ua,x.keyName=zs,x.isModifierKey=Zu,x.lookupKey=Cs,x.normalizeKeyMap=sc,x.StringStream=We,x.SharedTextMarker=ca,x.TextMarker=Us,x.LineWidget=Xo,x.e_preventDefault=bn,x.e_stopPropagation=Bn,x.e_stop=Gn,x.addClass=zt,x.contains=Pt,x.rmClass=$e,x.keyNames=ts}oh(Qi),_d(Qi);var fu="iter insert remove copy getEditor constructor".split(" ");for(var Ms in Do.prototype)Do.prototype.hasOwnProperty(Ms)&&Ct(fu,Ms)<0&&(Qi.prototype[Ms]=function(x){return function(){return x.apply(this.doc,arguments)}}(Do.prototype[Ms]));return Qt(Do),Qi.inputStyles={textarea:so,contenteditable:ao},Qi.defineMode=function(x){!Qi.defaults.mode&&x!="null"&&(Qi.defaults.mode=x),wn.apply(this,arguments)},Qi.defineMIME=In,Qi.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),Qi.defineMIME("text/plain","null"),Qi.defineExtension=function(x,z){Qi.prototype[x]=z},Qi.defineDocExtension=function(x,z){Do.prototype[x]=z},Qi.fromTextArea=Wu,fc(Qi),Qi.version="5.58.2",Qi})},25419:function(An,Ut,oe){(function(me){me(oe(89780),oe(15525),oe(98101))})(function(me){"use strict";me.defineMode("markdown",function(Me,Pe){var pt=me.getMode(Me,"text/html"),ge=pt.name=="null";function ke(Qe){if(me.findModeByName){var be=me.findModeByName(Qe);be&&(Qe=be.mime||be.mimes[0])}var Ct=me.getMode(Me,Qe);return Ct.name=="null"?null:Ct}Pe.highlightFormatting===void 0&&(Pe.highlightFormatting=!1),Pe.maxBlockquoteDepth===void 0&&(Pe.maxBlockquoteDepth=0),Pe.taskLists===void 0&&(Pe.taskLists=!1),Pe.strikethrough===void 0&&(Pe.strikethrough=!1),Pe.emoji===void 0&&(Pe.emoji=!1),Pe.fencedCodeBlockHighlighting===void 0&&(Pe.fencedCodeBlockHighlighting=!0),Pe.fencedCodeBlockDefaultMode===void 0&&(Pe.fencedCodeBlockDefaultMode="text/plain"),Pe.xml===void 0&&(Pe.xml=!0),Pe.tokenTypeOverrides===void 0&&(Pe.tokenTypeOverrides={});var he={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 he)he.hasOwnProperty(we)&&Pe.tokenTypeOverrides[we]&&(he[we]=Pe.tokenTypeOverrides[we]);var Ee=/^([*\-_])(?:\s*\1){2,}\s*$/,ze=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,vt=/^\[(x| )\](?=\s)/i,Ie=Pe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,He=/^ {0,3}(?:\={1,}|-{2,})\s*$/,st=/^[^#!\[\]*_\\<>` "'(~:]+/,Je=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ue=/^\s*\[[^\]]+?\]:.*$/,gt=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Et=" ";function At(Qe,be,Ct){return be.f=be.inline=Ct,Ct(Qe,be)}function dt(Qe,be,Ct){return be.f=be.block=Ct,Ct(Qe,be)}function nt(Qe){return!Qe||!/\S/.test(Qe.string)}function Ve(Qe){if(Qe.linkTitle=!1,Qe.linkHref=!1,Qe.linkText=!1,Qe.em=!1,Qe.strong=!1,Qe.strikethrough=!1,Qe.quote=0,Qe.indentedCode=!1,Qe.f==$e){var be=ge;if(!be){var Ct=me.innerMode(pt,Qe.htmlState);be=Ct.mode.name=="xml"&&Ct.state.tagStart===null&&!Ct.state.context&&Ct.state.tokenize.isInText}be&&(Qe.f=ut,Qe.block=Se,Qe.htmlState=null)}return Qe.trailingSpace=0,Qe.trailingSpaceNewLine=!1,Qe.prevLine=Qe.thisLine,Qe.thisLine={stream:null},null}function Se(Qe,be){var Ct=Qe.column()===be.indentation,Yt=nt(be.prevLine.stream),Zt=be.indentedCode,at=be.prevLine.hr,ot=be.list!==!1,Nt=(be.listStack[be.listStack.length-1]||0)+3;be.indentedCode=!1;var Sn=be.indentation;if(be.indentationDiff===null&&(be.indentationDiff=be.indentation,ot)){for(be.list=null;Sn<be.listStack[be.listStack.length-1];)be.listStack.pop(),be.listStack.length?be.indentation=be.listStack[be.listStack.length-1]:be.list=!1;be.list!==!1&&(be.indentationDiff=Sn-be.listStack[be.listStack.length-1])}var $t=!Yt&&!at&&!be.prevLine.header&&(!ot||!Zt)&&!be.prevLine.fencedCodeEnd,mn=(be.list===!1||at||Yt)&&be.indentation<=Nt&&Qe.match(Ee),on=null;if(be.indentationDiff>=4&&(Zt||be.prevLine.fencedCodeEnd||be.prevLine.header||Yt))return Qe.skipToEnd(),be.indentedCode=!0,he.code;if(Qe.eatSpace())return null;if(Ct&&be.indentation<=Nt&&(on=Qe.match(Ie))&&on[1].length<=6)return be.quote=0,be.header=on[1].length,be.thisLine.header=!0,Pe.highlightFormatting&&(be.formatting="header"),be.f=be.inline,ht(be);if(be.indentation<=Nt&&Qe.eat(">"))return be.quote=Ct?1:be.quote+1,Pe.highlightFormatting&&(be.formatting="quote"),Qe.eatSpace(),ht(be);if(!mn&&!be.setext&&Ct&&be.indentation<=Nt&&(on=Qe.match(ze))){var nn=on[1]?"ol":"ul";return be.indentation=Sn+Qe.current().length,be.list=!0,be.quote=0,be.listStack.push(be.indentation),be.em=!1,be.strong=!1,be.code=!1,be.strikethrough=!1,Pe.taskLists&&Qe.match(vt,!1)&&(be.taskList=!0),be.f=be.inline,Pe.highlightFormatting&&(be.formatting=["list","list-"+nn]),ht(be)}else{if(Ct&&be.indentation<=Nt&&(on=Qe.match(Je,!0)))return be.quote=0,be.fencedEndRE=new RegExp(on[1]+"+ *$"),be.localMode=Pe.fencedCodeBlockHighlighting&&ke(on[2]||Pe.fencedCodeBlockDefaultMode),be.localMode&&(be.localState=me.startState(be.localMode)),be.f=be.block=Ye,Pe.highlightFormatting&&(be.formatting="code-block"),be.code=-1,ht(be);if(be.setext||(!$t||!ot)&&!be.quote&&be.list===!1&&!be.code&&!mn&&!Ue.test(Qe.string)&&(on=Qe.lookAhead(1))&&(on=on.match(He)))return be.setext?(be.header=be.setext,be.setext=0,Qe.skipToEnd(),Pe.highlightFormatting&&(be.formatting="header")):(be.header=on[0].charAt(0)=="="?1:2,be.setext=be.header),be.thisLine.header=!0,be.f=be.inline,ht(be);if(mn)return Qe.skipToEnd(),be.hr=!0,be.thisLine.hr=!0,he.hr;if(Qe.peek()==="[")return At(Qe,be,Dt)}return At(Qe,be,be.inline)}function $e(Qe,be){var Ct=pt.token(Qe,be.htmlState);if(!ge){var Yt=me.innerMode(pt,be.htmlState);(Yt.mode.name=="xml"&&Yt.state.tagStart===null&&!Yt.state.context&&Yt.state.tokenize.isInText||be.md_inside&&Qe.current().indexOf(">")>-1)&&(be.f=ut,be.block=Se,be.htmlState=null)}return Ct}function Ye(Qe,be){var Ct=be.listStack[be.listStack.length-1]||0,Yt=be.indentation<Ct,Zt=Ct+3;if(be.fencedEndRE&&be.indentation<=Zt&&(Yt||Qe.match(be.fencedEndRE))){Pe.highlightFormatting&&(be.formatting="code-block");var at;return Yt||(at=ht(be)),be.localMode=be.localState=null,be.block=Se,be.f=ut,be.fencedEndRE=null,be.code=0,be.thisLine.fencedCodeEnd=!0,Yt?dt(Qe,be,be.block):at}else return be.localMode?be.localMode.token(Qe,be.localState):(Qe.skipToEnd(),he.code)}function ht(Qe){var be=[];if(Qe.formatting){be.push(he.formatting),typeof Qe.formatting=="string"&&(Qe.formatting=[Qe.formatting]);for(var Ct=0;Ct<Qe.formatting.length;Ct++)be.push(he.formatting+"-"+Qe.formatting[Ct]),Qe.formatting[Ct]==="header"&&be.push(he.formatting+"-"+Qe.formatting[Ct]+"-"+Qe.header),Qe.formatting[Ct]==="quote"&&(!Pe.maxBlockquoteDepth||Pe.maxBlockquoteDepth>=Qe.quote?be.push(he.formatting+"-"+Qe.formatting[Ct]+"-"+Qe.quote):be.push("error"))}if(Qe.taskOpen)return be.push("meta"),be.length?be.join(" "):null;if(Qe.taskClosed)return be.push("property"),be.length?be.join(" "):null;if(Qe.linkHref?be.push(he.linkHref,"url"):(Qe.strong&&be.push(he.strong),Qe.em&&be.push(he.em),Qe.strikethrough&&be.push(he.strikethrough),Qe.emoji&&be.push(he.emoji),Qe.linkText&&be.push(he.linkText),Qe.code&&be.push(he.code),Qe.image&&be.push(he.image),Qe.imageAltText&&be.push(he.imageAltText,"link"),Qe.imageMarker&&be.push(he.imageMarker)),Qe.header&&be.push(he.header,he.header+"-"+Qe.header),Qe.quote&&(be.push(he.quote),!Pe.maxBlockquoteDepth||Pe.maxBlockquoteDepth>=Qe.quote?be.push(he.quote+"-"+Qe.quote):be.push(he.quote+"-"+Pe.maxBlockquoteDepth)),Qe.list!==!1){var Yt=(Qe.listStack.length-1)%3;Yt?Yt===1?be.push(he.list2):be.push(he.list3):be.push(he.list1)}return Qe.trailingSpaceNewLine?be.push("trailing-space-new-line"):Qe.trailingSpace&&be.push("trailing-space-"+(Qe.trailingSpace%2?"a":"b")),be.length?be.join(" "):null}function Xe(Qe,be){if(Qe.match(st,!0))return ht(be)}function ut(Qe,be){var Ct=be.text(Qe,be);if(typeof Ct!="undefined")return Ct;if(be.list)return be.list=null,ht(be);if(be.taskList){var Yt=Qe.match(vt,!0)[1]===" ";return Yt?be.taskOpen=!0:be.taskClosed=!0,Pe.highlightFormatting&&(be.formatting="task"),be.taskList=!1,ht(be)}if(be.taskOpen=!1,be.taskClosed=!1,be.header&&Qe.match(/^#+$/,!0))return Pe.highlightFormatting&&(be.formatting="header"),ht(be);var Zt=Qe.next();if(be.linkTitle){be.linkTitle=!1;var at=Zt;Zt==="("&&(at=")"),at=(at+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ot="^\\s*(?:[^"+at+"\\\\]+|\\\\\\\\|\\\\.)"+at;if(Qe.match(new RegExp(ot),!0))return he.linkHref}if(Zt==="`"){var Nt=be.formatting;Pe.highlightFormatting&&(be.formatting="code"),Qe.eatWhile("`");var Sn=Qe.current().length;if(be.code==0&&(!be.quote||Sn==1))return be.code=Sn,ht(be);if(Sn==be.code){var $t=ht(be);return be.code=0,$t}else return be.formatting=Nt,ht(be)}else if(be.code)return ht(be);if(Zt==="\\"&&(Qe.next(),Pe.highlightFormatting)){var mn=ht(be),on=he.formatting+"-escape";return mn?mn+" "+on:on}if(Zt==="!"&&Qe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return be.imageMarker=!0,be.image=!0,Pe.highlightFormatting&&(be.formatting="image"),ht(be);if(Zt==="["&&be.imageMarker&&Qe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return be.imageMarker=!1,be.imageAltText=!0,Pe.highlightFormatting&&(be.formatting="image"),ht(be);if(Zt==="]"&&be.imageAltText){Pe.highlightFormatting&&(be.formatting="image");var mn=ht(be);return be.imageAltText=!1,be.image=!1,be.inline=be.f=Pt,mn}if(Zt==="["&&!be.image)return be.linkText&&Qe.match(/^.*?\]/)||(be.linkText=!0,Pe.highlightFormatting&&(be.formatting="link")),ht(be);if(Zt==="]"&&be.linkText){Pe.highlightFormatting&&(be.formatting="link");var mn=ht(be);return be.linkText=!1,be.inline=be.f=Qe.match(/\(.*?\)| ?\[.*?\]/,!1)?Pt:ut,mn}if(Zt==="<"&&Qe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){be.f=be.inline=Oe,Pe.highlightFormatting&&(be.formatting="link");var mn=ht(be);return mn?mn+=" ":mn="",mn+he.linkInline}if(Zt==="<"&&Qe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){be.f=be.inline=Oe,Pe.highlightFormatting&&(be.formatting="link");var mn=ht(be);return mn?mn+=" ":mn="",mn+he.linkEmail}if(Pe.xml&&Zt==="<"&&Qe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var nn=Qe.string.indexOf(">",Qe.pos);if(nn!=-1){var en=Qe.string.substring(Qe.start,nn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(en)&&(be.md_inside=!0)}return Qe.backUp(1),be.htmlState=me.startState(pt),dt(Qe,be,$e)}if(Pe.xml&&Zt==="<"&&Qe.match(/^\/\w*?>/))return be.md_inside=!1,"tag";if(Zt==="*"||Zt==="_"){for(var ye=1,ue=Qe.pos==1?" ":Qe.string.charAt(Qe.pos-2);ye<3&&Qe.eat(Zt);)ye++;var se=Qe.peek()||" ",ce=!/\s/.test(se)&&(!gt.test(se)||/\s/.test(ue)||gt.test(ue)),de=!/\s/.test(ue)&&(!gt.test(ue)||/\s/.test(se)||gt.test(se)),ae=null,Be=null;if(ye%2&&(!be.em&&ce&&(Zt==="*"||!de||gt.test(ue))?ae=!0:be.em==Zt&&de&&(Zt==="*"||!ce||gt.test(se))&&(ae=!1)),ye>1&&(!be.strong&&ce&&(Zt==="*"||!de||gt.test(ue))?Be=!0:be.strong==Zt&&de&&(Zt==="*"||!ce||gt.test(se))&&(Be=!1)),Be!=null||ae!=null){Pe.highlightFormatting&&(be.formatting=ae==null?"strong":Be==null?"em":"strong em"),ae===!0&&(be.em=Zt),Be===!0&&(be.strong=Zt);var $t=ht(be);return ae===!1&&(be.em=!1),Be===!1&&(be.strong=!1),$t}}else if(Zt===" "&&(Qe.eat("*")||Qe.eat("_"))){if(Qe.peek()===" ")return ht(be);Qe.backUp(1)}if(Pe.strikethrough){if(Zt==="~"&&Qe.eatWhile(Zt)){if(be.strikethrough){Pe.highlightFormatting&&(be.formatting="strikethrough");var $t=ht(be);return be.strikethrough=!1,$t}else if(Qe.match(/^[^\s]/,!1))return be.strikethrough=!0,Pe.highlightFormatting&&(be.formatting="strikethrough"),ht(be)}else if(Zt===" "&&Qe.match(/^~~/,!0)){if(Qe.peek()===" ")return ht(be);Qe.backUp(2)}}if(Pe.emoji&&Zt===":"&&Qe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){be.emoji=!0,Pe.highlightFormatting&&(be.formatting="emoji");var ft=ht(be);return be.emoji=!1,ft}return Zt===" "&&(Qe.match(/^ +$/,!1)?be.trailingSpace++:be.trailingSpace&&(be.trailingSpaceNewLine=!0)),ht(be)}function Oe(Qe,be){var Ct=Qe.next();if(Ct===">"){be.f=be.inline=ut,Pe.highlightFormatting&&(be.formatting="link");var Yt=ht(be);return Yt?Yt+=" ":Yt="",Yt+he.linkInline}return Qe.match(/^[^>]+/,!0),he.linkInline}function Pt(Qe,be){if(Qe.eatSpace())return null;var Ct=Qe.next();return Ct==="("||Ct==="["?(be.f=be.inline=zt(Ct==="("?")":"]"),Pe.highlightFormatting&&(be.formatting="link-string"),be.linkHref=!0,ht(be)):"error"}var qe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function zt(Qe){return function(be,Ct){var Yt=be.next();if(Yt===Qe){Ct.f=Ct.inline=ut,Pe.highlightFormatting&&(Ct.formatting="link-string");var Zt=ht(Ct);return Ct.linkHref=!1,Zt}return be.match(qe[Qe]),Ct.linkHref=!0,ht(Ct)}}function Dt(Qe,be){return Qe.match(/^([^\]\\]|\\.)*\]:/,!1)?(be.f=Bt,Qe.next(),Pe.highlightFormatting&&(be.formatting="link"),be.linkText=!0,ht(be)):At(Qe,be,ut)}function Bt(Qe,be){if(Qe.match(/^\]:/,!0)){be.f=be.inline=St,Pe.highlightFormatting&&(be.formatting="link");var Ct=ht(be);return be.linkText=!1,Ct}return Qe.match(/^([^\]\\]|\\.)+/,!0),he.linkText}function St(Qe,be){return Qe.eatSpace()?null:(Qe.match(/^[^\s]+/,!0),Qe.peek()===void 0?be.linkTitle=!0:Qe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),be.f=be.inline=ut,he.linkHref+" url")}var It={startState:function(){return{f:Se,prevLine:{stream:null},thisLine:{stream:null},block:Se,htmlState:null,indentation:0,inline:ut,text:Xe,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(Qe){return{f:Qe.f,prevLine:Qe.prevLine,thisLine:Qe.thisLine,block:Qe.block,htmlState:Qe.htmlState&&me.copyState(pt,Qe.htmlState),indentation:Qe.indentation,localMode:Qe.localMode,localState:Qe.localMode?me.copyState(Qe.localMode,Qe.localState):null,inline:Qe.inline,text:Qe.text,formatting:!1,linkText:Qe.linkText,linkTitle:Qe.linkTitle,linkHref:Qe.linkHref,code:Qe.code,em:Qe.em,strong:Qe.strong,strikethrough:Qe.strikethrough,emoji:Qe.emoji,header:Qe.header,setext:Qe.setext,hr:Qe.hr,taskList:Qe.taskList,list:Qe.list,listStack:Qe.listStack.slice(0),quote:Qe.quote,indentedCode:Qe.indentedCode,trailingSpace:Qe.trailingSpace,trailingSpaceNewLine:Qe.trailingSpaceNewLine,md_inside:Qe.md_inside,fencedEndRE:Qe.fencedEndRE}},token:function(Qe,be){if(be.formatting=!1,Qe!=be.thisLine.stream){if(be.header=0,be.hr=!1,Qe.match(/^\s*$/,!0))return Ve(be),null;if(be.prevLine=be.thisLine,be.thisLine={stream:Qe},be.taskList=!1,be.trailingSpace=0,be.trailingSpaceNewLine=!1,!be.localState&&(be.f=be.block,be.f!=$e)){var Ct=Qe.match(/^\s*/,!0)[0].replace(/\t/g,Et).length;if(be.indentation=Ct,be.indentationDiff=null,Ct>0)return null}}return be.f(Qe,be)},innerMode:function(Qe){return Qe.block==$e?{state:Qe.htmlState,mode:pt}:Qe.localState?{state:Qe.localState,mode:Qe.localMode}:{state:Qe,mode:It}},indent:function(Qe,be,Ct){return Qe.block==$e&&pt.indent?pt.indent(Qe.htmlState,be,Ct):Qe.localState&&Qe.localMode.indent?Qe.localMode.indent(Qe.localState,be,Ct):me.Pass},blankLine:Ve,getType:ht,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return It},"xml"),me.defineMIME("text/markdown","markdown"),me.defineMIME("text/x-markdown","markdown")})},98101:function(An,Ut,oe){(function(me){me(oe(89780))})(function(me){"use strict";me.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 Me=0;Me<me.modeInfo.length;Me++){var Pe=me.modeInfo[Me];Pe.mimes&&(Pe.mime=Pe.mimes[0])}me.findModeByMIME=function(pt){pt=pt.toLowerCase();for(var ge=0;ge<me.modeInfo.length;ge++){var ke=me.modeInfo[ge];if(ke.mime==pt)return ke;if(ke.mimes){for(var he=0;he<ke.mimes.length;he++)if(ke.mimes[he]==pt)return ke}}if(/\+xml$/.test(pt))return me.findModeByMIME("application/xml");if(/\+json$/.test(pt))return me.findModeByMIME("application/json")},me.findModeByExtension=function(pt){pt=pt.toLowerCase();for(var ge=0;ge<me.modeInfo.length;ge++){var ke=me.modeInfo[ge];if(ke.ext){for(var he=0;he<ke.ext.length;he++)if(ke.ext[he]==pt)return ke}}},me.findModeByFileName=function(pt){for(var ge=0;ge<me.modeInfo.length;ge++){var ke=me.modeInfo[ge];if(ke.file&&ke.file.test(pt))return ke}var he=pt.lastIndexOf("."),we=he>-1&&pt.substring(he+1,pt.length);if(we)return me.findModeByExtension(we)},me.findModeByName=function(pt){pt=pt.toLowerCase();for(var ge=0;ge<me.modeInfo.length;ge++){var ke=me.modeInfo[ge];if(ke.name.toLowerCase()==pt)return ke;if(ke.alias){for(var he=0;he<ke.alias.length;he++)if(ke.alias[he].toLowerCase()==pt)return ke}}}})},67549:function(An,Ut,oe){(function(me){me(oe(89780))})(function(me){"use strict";me.defineMode("stex",function(Me,Pe){"use strict";function pt(st,Je){st.cmdState.push(Je)}function ge(st){return st.cmdState.length>0?st.cmdState[st.cmdState.length-1]:null}function ke(st){var Je=st.cmdState.pop();Je&&Je.closeBracket()}function he(st){for(var Je=st.cmdState,Ue=Je.length-1;Ue>=0;Ue--){var gt=Je[Ue];if(gt.name!="DEFAULT")return gt}return{styleIdentifier:function(){return null}}}function we(st,Je,Ue){return function(){this.name=st,this.bracketNo=0,this.style=Je,this.styles=Ue,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ee={};Ee.importmodule=we("importmodule","tag",["string","builtin"]),Ee.documentclass=we("documentclass","tag",["","atom"]),Ee.usepackage=we("usepackage","tag",["atom"]),Ee.begin=we("begin","tag",["atom"]),Ee.end=we("end","tag",["atom"]),Ee.label=we("label","tag",["atom"]),Ee.ref=we("ref","tag",["atom"]),Ee.eqref=we("eqref","tag",["atom"]),Ee.cite=we("cite","tag",["atom"]),Ee.bibitem=we("bibitem","tag",["atom"]),Ee.Bibitem=we("Bibitem","tag",["atom"]),Ee.RBibitem=we("RBibitem","tag",["atom"]),Ee.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ze(st,Je){st.f=Je}function vt(st,Je){var Ue;if(st.match(/^\\[a-zA-Z@]+/)){var gt=st.current().slice(1);return Ue=Ee.hasOwnProperty(gt)?Ee[gt]:Ee.DEFAULT,Ue=new Ue,pt(Je,Ue),ze(Je,He),Ue.style}if(st.match(/^\\[$&%#{}_]/)||st.match(/^\\[,;!\/\\]/))return"tag";if(st.match("\\["))return ze(Je,function(At,dt){return Ie(At,dt,"\\]")}),"keyword";if(st.match("\\("))return ze(Je,function(At,dt){return Ie(At,dt,"\\)")}),"keyword";if(st.match("$$"))return ze(Je,function(At,dt){return Ie(At,dt,"$$")}),"keyword";if(st.match("$"))return ze(Je,function(At,dt){return Ie(At,dt,"$")}),"keyword";var Et=st.next();if(Et=="%")return st.skipToEnd(),"comment";if(Et=="}"||Et=="]"){if(Ue=ge(Je),Ue)Ue.closeBracket(Et),ze(Je,He);else return"error";return"bracket"}else return Et=="{"||Et=="["?(Ue=Ee.DEFAULT,Ue=new Ue,pt(Je,Ue),"bracket"):/\d/.test(Et)?(st.eatWhile(/[\w.%]/),"atom"):(st.eatWhile(/[\w\-_]/),Ue=he(Je),Ue.name=="begin"&&(Ue.argument=st.current()),Ue.styleIdentifier())}function Ie(st,Je,Ue){if(st.eatSpace())return null;if(Ue&&st.match(Ue))return ze(Je,vt),"keyword";if(st.match(/^\\[a-zA-Z@]+/))return"tag";if(st.match(/^[a-zA-Z]+/))return"variable-2";if(st.match(/^\\[$&%#{}_]/)||st.match(/^\\[,;!\/]/)||st.match(/^[\^_&]/))return"tag";if(st.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(st.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var gt=st.next();return gt=="{"||gt=="}"||gt=="["||gt=="]"||gt=="("||gt==")"?"bracket":gt=="%"?(st.skipToEnd(),"comment"):"error"}function He(st,Je){var Ue=st.peek(),gt;return Ue=="{"||Ue=="["?(gt=ge(Je),gt.openBracket(Ue),st.eat(Ue),ze(Je,vt),"bracket"):/[ \t\r]/.test(Ue)?(st.eat(Ue),null):(ze(Je,vt),ke(Je),vt(st,Je))}return{startState:function(){var st=Pe.inMathMode?function(Je,Ue){return Ie(Je,Ue)}:vt;return{cmdState:[],f:st}},copyState:function(st){return{cmdState:st.cmdState.slice(),f:st.f}},token:function(st,Je){return Je.f(st,Je)},blankLine:function(st){st.f=vt,st.cmdState.length=0},lineComment:"%"}}),me.defineMIME("text/x-stex","stex"),me.defineMIME("text/x-latex","stex")})},15525:function(An,Ut,oe){(function(me){me(oe(89780))})(function(me){"use strict";var Me={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},Pe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};me.defineMode("xml",function(pt,ge){var ke=pt.indentUnit,he={},we=ge.htmlMode?Me:Pe;for(var Ee in we)he[Ee]=we[Ee];for(var Ee in ge)he[Ee]=ge[Ee];var ze,vt;function Ie(Oe,Pt){function qe(Bt){return Pt.tokenize=Bt,Bt(Oe,Pt)}var zt=Oe.next();if(zt=="<")return Oe.eat("!")?Oe.eat("[")?Oe.match("CDATA[")?qe(Je("atom","]]>")):null:Oe.match("--")?qe(Je("comment","-->")):Oe.match("DOCTYPE",!0,!0)?(Oe.eatWhile(/[\w\._\-]/),qe(Ue(1))):null:Oe.eat("?")?(Oe.eatWhile(/[\w\._\-]/),Pt.tokenize=Je("meta","?>"),"meta"):(ze=Oe.eat("/")?"closeTag":"openTag",Pt.tokenize=He,"tag bracket");if(zt=="&"){var Dt;return Oe.eat("#")?Oe.eat("x")?Dt=Oe.eatWhile(/[a-fA-F\d]/)&&Oe.eat(";"):Dt=Oe.eatWhile(/[\d]/)&&Oe.eat(";"):Dt=Oe.eatWhile(/[\w\.\-:]/)&&Oe.eat(";"),Dt?"atom":"error"}else return Oe.eatWhile(/[^&<]/),null}Ie.isInText=!0;function He(Oe,Pt){var qe=Oe.next();if(qe==">"||qe=="/"&&Oe.eat(">"))return Pt.tokenize=Ie,ze=qe==">"?"endTag":"selfcloseTag","tag bracket";if(qe=="=")return ze="equals",null;if(qe=="<"){Pt.tokenize=Ie,Pt.state=dt,Pt.tagName=Pt.tagStart=null;var zt=Pt.tokenize(Oe,Pt);return zt?zt+" tag error":"tag error"}else return/[\'\"]/.test(qe)?(Pt.tokenize=st(qe),Pt.stringStartCol=Oe.column(),Pt.tokenize(Oe,Pt)):(Oe.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function st(Oe){var Pt=function(qe,zt){for(;!qe.eol();)if(qe.next()==Oe){zt.tokenize=He;break}return"string"};return Pt.isInAttribute=!0,Pt}function Je(Oe,Pt){return function(qe,zt){for(;!qe.eol();){if(qe.match(Pt)){zt.tokenize=Ie;break}qe.next()}return Oe}}function Ue(Oe){return function(Pt,qe){for(var zt;(zt=Pt.next())!=null;){if(zt=="<")return qe.tokenize=Ue(Oe+1),qe.tokenize(Pt,qe);if(zt==">")if(Oe==1){qe.tokenize=Ie;break}else return qe.tokenize=Ue(Oe-1),qe.tokenize(Pt,qe)}return"meta"}}function gt(Oe,Pt,qe){this.prev=Oe.context,this.tagName=Pt,this.indent=Oe.indented,this.startOfLine=qe,(he.doNotIndent.hasOwnProperty(Pt)||Oe.context&&Oe.context.noIndent)&&(this.noIndent=!0)}function Et(Oe){Oe.context&&(Oe.context=Oe.context.prev)}function At(Oe,Pt){for(var qe;;){if(!Oe.context||(qe=Oe.context.tagName,!he.contextGrabbers.hasOwnProperty(qe)||!he.contextGrabbers[qe].hasOwnProperty(Pt)))return;Et(Oe)}}function dt(Oe,Pt,qe){return Oe=="openTag"?(qe.tagStart=Pt.column(),nt):Oe=="closeTag"?Ve:dt}function nt(Oe,Pt,qe){return Oe=="word"?(qe.tagName=Pt.current(),vt="tag",Ye):he.allowMissingTagName&&Oe=="endTag"?(vt="tag bracket",Ye(Oe,Pt,qe)):(vt="error",nt)}function Ve(Oe,Pt,qe){if(Oe=="word"){var zt=Pt.current();return qe.context&&qe.context.tagName!=zt&&he.implicitlyClosed.hasOwnProperty(qe.context.tagName)&&Et(qe),qe.context&&qe.context.tagName==zt||he.matchClosing===!1?(vt="tag",Se):(vt="tag error",$e)}else return he.allowMissingTagName&&Oe=="endTag"?(vt="tag bracket",Se(Oe,Pt,qe)):(vt="error",$e)}function Se(Oe,Pt,qe){return Oe!="endTag"?(vt="error",Se):(Et(qe),dt)}function $e(Oe,Pt,qe){return vt="error",Se(Oe,Pt,qe)}function Ye(Oe,Pt,qe){if(Oe=="word")return vt="attribute",ht;if(Oe=="endTag"||Oe=="selfcloseTag"){var zt=qe.tagName,Dt=qe.tagStart;return qe.tagName=qe.tagStart=null,Oe=="selfcloseTag"||he.autoSelfClosers.hasOwnProperty(zt)?At(qe,zt):(At(qe,zt),qe.context=new gt(qe,zt,Dt==qe.indented)),dt}return vt="error",Ye}function ht(Oe,Pt,qe){return Oe=="equals"?Xe:(he.allowMissing||(vt="error"),Ye(Oe,Pt,qe))}function Xe(Oe,Pt,qe){return Oe=="string"?ut:Oe=="word"&&he.allowUnquoted?(vt="string",Ye):(vt="error",Ye(Oe,Pt,qe))}function ut(Oe,Pt,qe){return Oe=="string"?ut:Ye(Oe,Pt,qe)}return{startState:function(Oe){var Pt={tokenize:Ie,state:dt,indented:Oe||0,tagName:null,tagStart:null,context:null};return Oe!=null&&(Pt.baseIndent=Oe),Pt},token:function(Oe,Pt){if(!Pt.tagName&&Oe.sol()&&(Pt.indented=Oe.indentation()),Oe.eatSpace())return null;ze=null;var qe=Pt.tokenize(Oe,Pt);return(qe||ze)&&qe!="comment"&&(vt=null,Pt.state=Pt.state(ze||qe,Oe,Pt),vt&&(qe=vt=="error"?qe+" error":vt)),qe},indent:function(Oe,Pt,qe){var zt=Oe.context;if(Oe.tokenize.isInAttribute)return Oe.tagStart==Oe.indented?Oe.stringStartCol+1:Oe.indented+ke;if(zt&&zt.noIndent)return me.Pass;if(Oe.tokenize!=He&&Oe.tokenize!=Ie)return qe?qe.match(/^(\s*)/)[0].length:0;if(Oe.tagName)return he.multilineTagIndentPastTag!==!1?Oe.tagStart+Oe.tagName.length+2:Oe.tagStart+ke*(he.multilineTagIndentFactor||1);if(he.alignCDATA&&/<!\[CDATA\[/.test(Pt))return 0;var Dt=Pt&&/^<(\/)?([\w_:\.-]*)/.exec(Pt);if(Dt&&Dt[1])for(;zt;)if(zt.tagName==Dt[2]){zt=zt.prev;break}else if(he.implicitlyClosed.hasOwnProperty(zt.tagName))zt=zt.prev;else break;else if(Dt)for(;zt;){var Bt=he.contextGrabbers[zt.tagName];if(Bt&&Bt.hasOwnProperty(Dt[2]))zt=zt.prev;else break}for(;zt&&zt.prev&&!zt.startOfLine;)zt=zt.prev;return zt?zt.indent+ke:Oe.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:he.htmlMode?"html":"xml",helperType:he.htmlMode?"html":"xml",skipAttribute:function(Oe){Oe.state==Xe&&(Oe.state=Ye)},xmlCurrentTag:function(Oe){return Oe.tagName?{name:Oe.tagName,close:Oe.type=="closeTag"}:null},xmlCurrentContext:function(Oe){for(var Pt=[],qe=Oe.context;qe;qe=qe.prev)qe.tagName&&Pt.push(qe.tagName);return Pt.reverse()}}}),me.defineMIME("text/xml","xml"),me.defineMIME("application/xml","xml"),me.mimeModes.hasOwnProperty("text/html")||me.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(An,Ut,oe){"use strict";oe.d(Ut,{hP:function(){return en}});var me=function(ye,ue){return(me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ce){se.__proto__=ce}||function(se,ce){for(var de in ce)Object.prototype.hasOwnProperty.call(ce,de)&&(se[de]=ce[de])})(ye,ue)};function Me(ye,ue){function se(){this.constructor=ye}me(ye,ue),ye.prototype=ue===null?Object.create(ue):(se.prototype=ue.prototype,new se)}function Pe(ye,ue,se,ce){return new(se||(se=Promise))(function(de,ae){function Be(De){try{Fe(ce.next(De))}catch(mt){ae(mt)}}function ft(De){try{Fe(ce.throw(De))}catch(mt){ae(mt)}}function Fe(De){var mt;De.done?de(De.value):(mt=De.value,mt instanceof se?mt:new se(function(rt){rt(mt)})).then(Be,ft)}Fe((ce=ce.apply(ye,ue||[])).next())})}function pt(ye,ue){var se,ce,de,ae,Be={label:0,sent:function(){if(1&de[0])throw de[1];return de[1]},trys:[],ops:[]};return ae={next:ft(0),throw:ft(1),return:ft(2)},typeof Symbol=="function"&&(ae[Symbol.iterator]=function(){return this}),ae;function ft(Fe){return function(De){return function(mt){if(se)throw new TypeError("Generator is already executing.");for(;Be;)try{if(se=1,ce&&(de=2&mt[0]?ce.return:mt[0]?ce.throw||((de=ce.return)&&de.call(ce),0):ce.next)&&!(de=de.call(ce,mt[1])).done)return de;switch(ce=0,de&&(mt=[2&mt[0],de.value]),mt[0]){case 0:case 1:de=mt;break;case 4:return Be.label++,{value:mt[1],done:!1};case 5:Be.label++,ce=mt[1],mt=[0];continue;case 7:mt=Be.ops.pop(),Be.trys.pop();continue;default:if(de=Be.trys,!((de=de.length>0&&de[de.length-1])||mt[0]!==6&&mt[0]!==2)){Be=0;continue}if(mt[0]===3&&(!de||mt[1]>de[0]&&mt[1]<de[3])){Be.label=mt[1];break}if(mt[0]===6&&Be.label<de[1]){Be.label=de[1],de=mt;break}if(de&&Be.label<de[2]){Be.label=de[2],Be.ops.push(mt);break}de[2]&&Be.ops.pop(),Be.trys.pop();continue}mt=ue.call(ye,Be)}catch(rt){mt=[6,rt],ce=0}finally{se=de=0}if(5&mt[0])throw mt[1];return{value:mt[0]?mt[1]:void 0,done:!0}}([Fe,De])}}}function ge(){for(var ye=0,ue=0,se=arguments.length;ue<se;ue++)ye+=arguments[ue].length;var ce=Array(ye),de=0;for(ue=0;ue<se;ue++)for(var ae=arguments[ue],Be=0,ft=ae.length;Be<ft;Be++,de++)ce[de]=ae[Be];return ce}var ke=function(){function ye(){}return ye.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ye.setAttributes=function(ue,se){for(var ce=0,de=se;ce<de.length;ce++){var ae=de[ce],Be=ae[0],ft=ae[1];ue.setAttribute(Be,ft)}},ye.createRect=function(ue,se,ce){var de=document.createElementNS("http://www.w3.org/2000/svg","rect");return de.setAttribute("width",ue.toString()),de.setAttribute("height",se.toString()),ce&&ye.setAttributes(de,ce),de},ye.createLine=function(ue,se,ce,de,ae){var Be=document.createElementNS("http://www.w3.org/2000/svg","line");return Be.setAttribute("x1",ue.toString()),Be.setAttribute("y1",se.toString()),Be.setAttribute("x2",ce.toString()),Be.setAttribute("y2",de.toString()),ae&&ye.setAttributes(Be,ae),Be},ye.createPolygon=function(ue,se){var ce=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ce.setAttribute("points",ue),se&&ye.setAttributes(ce,se),ce},ye.createCircle=function(ue,se){var ce=document.createElementNS("http://www.w3.org/2000/svg","circle");return ce.setAttribute("cx",(ue/2).toString()),ce.setAttribute("cy",(ue/2).toString()),ce.setAttribute("r",ue.toString()),se&&ye.setAttributes(ce,se),ce},ye.createEllipse=function(ue,se,ce){var de=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return de.setAttribute("cx",(ue/2).toString()),de.setAttribute("cy",(se/2).toString()),de.setAttribute("rx",(ue/2).toString()),de.setAttribute("ry",(se/2).toString()),ce&&ye.setAttributes(de,ce),de},ye.createGroup=function(ue){var se=document.createElementNS("http://www.w3.org/2000/svg","g");return ue&&ye.setAttributes(se,ue),se},ye.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ye.createMarker=function(ue,se,ce,de,ae,Be,ft){var Fe=document.createElementNS("http://www.w3.org/2000/svg","marker");return ye.setAttributes(Fe,[["id",ue],["orient",se],["markerWidth",ce.toString()],["markerHeight",de.toString()],["refX",ae.toString()],["refY",Be.toString()]]),Fe.appendChild(ft),Fe},ye.createText=function(ue){var se=document.createElementNS("http://www.w3.org/2000/svg","text");return se.setAttribute("x","0"),se.setAttribute("y","0"),ue&&ye.setAttributes(se,ue),se},ye.createTSpan=function(ue,se){var ce=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ce.textContent=ue,se&&ye.setAttributes(ce,se),ce},ye.createImage=function(ue){var se=document.createElementNS("http://www.w3.org/2000/svg","image");return ue&&ye.setAttributes(se,ue),se},ye.createPoint=function(ue,se){var ce=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ce.x=ue,ce.y=se,ce},ye.createPath=function(ue,se){var ce=document.createElementNS("http://www.w3.org/2000/svg","path");return ce.setAttribute("d",ue),se&&ye.setAttributes(ce,se),ce},ye}(),he=function(){function ye(){}return ye.addKey=function(ue){ye.key=ue},Object.defineProperty(ye,"isLicensed",{get:function(){return!!ye.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ye.key)},enumerable:!1,configurable:!0}),ye}(),we=function(){function ye(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ye.prototype.rasterize=function(ue,se,ce){var de=this;return new Promise(function(ae){var Be=ce!==void 0?ce:document.createElement("canvas");ue===null&&(de.markersOnly=!0,de.naturalSize=!1);var ft=document.createElementNS("http://www.w3.org/2000/svg","svg");ft.setAttribute("xmlns","http://www.w3.org/2000/svg"),ft.setAttribute("width",se.width.baseVal.valueAsString),ft.setAttribute("height",se.height.baseVal.valueAsString),ft.setAttribute("viewBox","0 0 "+se.viewBox.baseVal.width.toString()+" "+se.viewBox.baseVal.height.toString()),ft.innerHTML=se.innerHTML,de.naturalSize===!0?(ft.width.baseVal.value=ue.naturalWidth,ft.height.baseVal.value=ue.naturalHeight):de.width!==void 0&&de.height!==void 0&&(ft.width.baseVal.value=de.width,ft.height.baseVal.value=de.height),Be.width=ft.width.baseVal.value,Be.height=ft.height.baseVal.value;var Fe=ft.outerHTML,De=Be.getContext("2d");de.markersOnly!==!0&&De.drawImage(ue,0,0,Be.width,Be.height);var mt=window.URL,rt=new Image(Be.width,Be.height);rt.setAttribute("crossOrigin","anonymous");var Ge=new Blob([Fe],{type:"image/svg+xml"}),xt=mt.createObjectURL(Ge);rt.onload=function(){De.drawImage(rt,0,0),mt.revokeObjectURL(xt);var Xt=Be.toDataURL(de.imageType,de.imageQuality);ae(Xt)},rt.src=xt})},ye}(),Ee=function(){},ze=function(){function ye(ue){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ue+"_"}return Object.defineProperty(ye.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ye.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(ye.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ye.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},ye.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)},ye.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 vt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new vt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new vt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new Ie("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new Ie("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ye.prototype.removeStyleSheet=function(){var ue;this.styleSheet&&(((ue=this.styleSheetRoot)!==null&&ue!==void 0?ue:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ye}(),vt=function(ye,ue){this.selector=ye,this.style=ue},Ie=function(ye,ue){this.localName=ye,this.style=ue},He=function(){function ye(ue,se,ce,de,ae){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ue,this.displayMode=se,this.markerItems=ce,this.uiStyleSettings=de,this.styles=ae,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ye.prototype.show=function(ue){var se=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 ce=document.createElement("div");ce.className=this.toolbarBlockStyleClass.name,ce.style.whiteSpace="nowrap",this.uiContainer.appendChild(ce),this.addActionButton(ce,'<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(ce,'<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(ce,'<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(ce,'<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(ce,'<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(ce,'<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(ce,'<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(ce,'<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(ae){var Be=document.createElement("div");Be.className=""+se.toolbarButtonStyleClass.name,Be.setAttribute("data-type-name",ae.typeName),Be.innerHTML=ae.icon,Be.addEventListener("click",function(){se.markerToolbarButtonClicked(Be,ae)}),se.buttons.push(Be),se.markerButtons.push(Be)}),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 de=document.createElement("div");de.className=this.toolbarBlockStyleClass.name,de.style.whiteSpace="nowrap",de.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(de),this.addActionButton(de,'<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(de,'<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()},ye.prototype.addButtonClickListener=function(ue){this.buttonClickListeners.push(ue)},ye.prototype.removeButtonClickListener=function(ue){this.buttonClickListeners.indexOf(ue)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ue),1)},ye.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ye.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 se=0;se<this.markerButtons.length;se++)se<ue||se===ue&&this.markerButtons.length-1===ue?this.markerButtonBlock.appendChild(this.markerButtons[se]):(se===ue&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[se]))}},ye.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")},ye.prototype.resetButtonStyles=function(){var ue=this;this.buttons.forEach(function(se){se.className=se.className.replace(ue.uiStyleSettings.toolbarButtonStyleColorsClassName?ue.uiStyleSettings.toolbarButtonStyleColorsClassName:ue.toolbarButtonStyleColorsClass.name,"").trim(),se.className=se.className.replace(ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ue.toolbarActiveButtonStyleColorsClass.name,"").trim(),se.className+=" "+(ue.uiStyleSettings.toolbarButtonStyleColorsClassName?ue.uiStyleSettings.toolbarButtonStyleColorsClassName:ue.toolbarButtonStyleColorsClass.name)})},ye.prototype.addActionButton=function(ue,se,ce){var de=this,ae=document.createElement("div");switch(ae.className=""+this.toolbarButtonStyleClass.name,ae.innerHTML=se,ae.setAttribute("data-action",ce),ae.addEventListener("click",function(){de.actionToolbarButtonClicked(ae,ce)}),ce){case"select":ae.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ae.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ae.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ae.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ae.style.fill=this.uiStyleSettings.closeButtonColor}ue.appendChild(ae),this.buttons.push(ae)},ye.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ie("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 Ie("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ie("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ie("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 Ie("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var ue=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ie("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 Ie("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ie("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new vt("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new vt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ye.prototype.markerToolbarButtonClicked=function(ue,se){this.setActiveButton(ue),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ce){return ce("marker",se)}),this.markerButtonOverflowBlock.style.display="none"},ye.prototype.actionToolbarButtonClicked=function(ue,se){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ce){return ce("action",se)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ye.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)},ye.prototype.setActiveMarkerButton=function(ue){var se=this.markerButtons.find(function(ce){return ce.getAttribute("data-type-name")===ue});se&&this.setActiveButton(se)},ye.prototype.setCurrentMarker=function(ue){var se=this;this.currentMarker=ue,this.buttons.filter(function(ce){return/delete|notes/.test(ce.getAttribute("data-action"))}).forEach(function(ce){se.currentMarker===void 0?(ce.style.fillOpacity="0.4",ce.style.pointerEvents="none"):(ce.style.fillOpacity="1",ce.style.pointerEvents="all")})},ye}(),st=function(){function ye(ue,se,ce,de){this.panels=[],this.panelButtons=[],this.markerjsContainer=ue,this.displayMode=se,this.uiStyleSettings=ce,this.styles=de,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ye.prototype.addStyles=function(){var ue;this.toolboxStyleClass=this.styles.addClass(new Ie("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 Ie("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var se=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ie("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ie("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ie("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 Ie("toolbox-panel-row_colors",`
background-color: `+((ue=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ue!==void 0?ue:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ie("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*se)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*se)+`px;
padding: `+se+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ie("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ie("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new vt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new vt("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ye.prototype.show=function(ue){var se;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,this.uiContainer.className=this.toolboxStyleClass.name+" "+((se=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&se!==void 0?se:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ye.prototype.setPanelButtons=function(ue){var se,ce,de=this;this.panels=ue,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((se=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&se!==void 0?se:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ae){var Be;ae.uiStyleSettings=de.uiStyleSettings;var ft=document.createElement("div");ft.className=de.toolboxButtonStyleClass.name+" "+((Be=de.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Be!==void 0?Be:de.toolboxButtonStyleColorsClass.name),ft.innerHTML=ae.icon,ft.title=ae.title,ft.addEventListener("click",function(){de.panelButtonClick(ae)}),de.panelButtons.push(ft),de.buttonRow.appendChild(ft)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ye.prototype.panelButtonClick=function(ue){var se=this,ce=-1;if(ue!==this.activePanel){ce=this.panels.indexOf(ue),this.panelRow.innerHTML="";var de=ue.getUi();de.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(de),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(){se.displayMode==="inline"?se.panelRow.style.display="none":se.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ae,Be){var ft,Fe;ae.className=se.toolboxButtonStyleClass.name+" "+(Be===ce?""+((ft=se.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ft!==void 0?ft:se.toolboxActiveButtonStyleColorsClass.name):""+((Fe=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Fe!==void 0?Fe:se.toolboxButtonStyleColorsClass.name))})},ye}(),Je=function(ye,ue){this.title=ye,this.icon=ue},Ue=function(ye){function ue(se,ce,de,ae){var Be=ye.call(this,se,ae||'<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 Be.colors=[],Be.addTransparent=!1,Be.colorBoxes=[],Be.colors=ce,Be.currentColor=de,Be.setCurrentColor=Be.setCurrentColor.bind(Be),Be.getColorBox=Be.getColorBox.bind(Be),Be}return Me(ue,ye),ue.prototype.getUi=function(){var se=this,ce=document.createElement("div");return ce.style.overflow="hidden",ce.style.whiteSpace="nowrap",this.colors.forEach(function(de){var ae=se.getColorBox(de);ce.appendChild(ae),se.colorBoxes.push(ae)}),ce},ue.prototype.getColorBox=function(se){var ce=this,de=this.uiStyleSettings.toolbarHeight/4,ae=this.uiStyleSettings.toolbarHeight-de,Be=document.createElement("div");Be.style.display="inline-block",Be.style.boxSizing="content-box",Be.style.width=ae-2+"px",Be.style.height=ae-2+"px",Be.style.padding="1px",Be.style.marginRight="2px",Be.style.marginBottom="2px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderRadius=(ae+2)/2+"px",Be.style.borderColor=se===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){ce.setCurrentColor(se,Be)});var ft=document.createElement("div");return ft.style.display="inline-block",ft.style.width=ae-2+"px",ft.style.height=ae-2+"px",ft.style.backgroundColor=se,ft.style.borderRadius=ae/2+"px",se==="transparent"&&(ft.style.fill=this.uiStyleSettings.toolboxAccentColor,ft.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>`),Be.appendChild(ft),Be},ue.prototype.setCurrentColor=function(se,ce){var de=this;this.currentColor=se,this.colorBoxes.forEach(function(ae){ae.style.borderColor=ae===ce?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(se)},ue}(Je),gt=function(){function ye(ue,se,ce){this._state="new",this._isSelected=!1,this._container=ue,this._overlayContainer=se,this.globalSettings=ce,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ye.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ye.prototype.ownsTarget=function(ue){return!1},Object.defineProperty(ye.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ye.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ye.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ye.prototype.pointerDown=function(ue,se){},ye.prototype.dblClick=function(ue,se){},ye.prototype.manipulate=function(ue){},ye.prototype.pointerUp=function(ue){this.stateChanged()},ye.prototype.dispose=function(){},ye.prototype.addMarkerVisualToContainer=function(ue){this.container.childNodes.length>0?this.container.insertBefore(ue,this.container.childNodes[0]):this.container.appendChild(ue)},ye.prototype.getState=function(){return{typeName:ye.typeName,state:this.state,notes:this.notes}},ye.prototype.restoreState=function(ue){this._state=ue.state,this.notes=ue.notes},ye.prototype.scale=function(ue,se){},ye.prototype.colorChanged=function(ue){this.onColorChanged&&this.onColorChanged(ue),this.stateChanged()},ye.prototype.fillColorChanged=function(ue){this.onFillColorChanged&&this.onFillColorChanged(ue),this.stateChanged()},ye.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)}},ye.typeName="MarkerBase",ye}(),Et=function(){function ye(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ye.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},ye}(),At=function(){function ye(){this.GRIP_SIZE=10,this.visual=ke.createGroup(),this.visual.appendChild(ke.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ke.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ye.prototype.ownsTarget=function(ue){return ue===this.visual||ue===this.visual.childNodes[0]||ue===this.visual.childNodes[1]},ye}(),dt=function(){function ye(){}return ye.toITransformMatrix=function(ue){return{a:ue.a,b:ue.b,c:ue.c,d:ue.d,e:ue.e,f:ue.f}},ye.toSVGMatrix=function(ue,se){return ue.a=se.a,ue.b=se.b,ue.c=se.c,ue.d=se.d,ue.e=se.e,ue.f=se.f,ue},ye}(),nt=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,ce,de)||this;return ae.left=0,ae.top=0,ae.width=0,ae.height=0,ae.defaultSize={x:50,y:20},ae.offsetX=0,ae.offsetY=0,ae.rotationAngle=0,ae.CB_DISTANCE=10,ae._suppressMarkerCreateEvent=!1,ae.container.transform.baseVal.appendItem(ke.createTransform()),ae.setupControlBox(),ae}return Me(ue,ye),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(se){this._visual=se;var ce=ke.createTransform();this._visual.transform.baseVal.appendItem(ce)},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(se){return!!ye.prototype.ownsTarget.call(this,se)||!!(this.controlGrips.findGripByVisual(se)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(se))},ue.prototype.pointerDown=function(se,ce){ye.prototype.pointerDown.call(this,se,ce),this.state==="new"&&(this.left=se.x,this.top=se.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var de=this.unrotatePoint(se);if(this.manipulationStartX=de.x,this.manipulationStartY=de.y,this.offsetX=de.x-this.left,this.offsetY=de.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ce),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ce)){this.activeGrip=this.rotatorGrip;var ae=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ae.x-this.width/2,this.top=ae.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Be=this.container.transform.baseVal.getItem(0);Be.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Be,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ue.prototype.pointerUp=function(se){var ce=this.state;ye.prototype.pointerUp.call(this,se),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(se),this._state="select",ce==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ue.prototype.moveVisual=function(se){this.visual.style.transform="translate("+se.x+"px, "+se.y+"px)"},ue.prototype.manipulate=function(se){var ce=this.unrotatePoint(se);this.state==="creating"?this.resize(se):this.state==="move"?(this.left=this.manipulationStartLeft+(ce.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ce.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ce):this.state==="rotate"&&this.rotate(se)},ue.prototype.resize=function(se){var ce=this.manipulationStartLeft,de=this.manipulationStartWidth,ae=this.manipulationStartTop,Be=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ce=this.manipulationStartLeft+se.x-this.manipulationStartX,de=this.manipulationStartWidth+this.manipulationStartLeft-ce;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:de=this.manipulationStartWidth+se.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ae=this.manipulationStartTop+se.y-this.manipulationStartY,Be=this.manipulationStartHeight+this.manipulationStartTop-ae;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Be=this.manipulationStartHeight+se.y-this.manipulationStartY}de>=0?(this.left=ce,this.width=de):(this.left=ce+de,this.width=-de),Be>=0?(this.top=ae,this.height=Be):(this.top=ae+Be,this.height=-Be),this.setSize()},ue.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ue.prototype.rotate=function(se){if(Math.abs(se.x-this.centerX)>.1){var ce=Math.sign(se.x-this.centerX);this.rotationAngle=180*Math.atan((se.y-this.centerY)/(se.x-this.centerX))/Math.PI+90*ce,this.applyRotation()}},ue.prototype.applyRotation=function(){var se=this.container.transform.baseVal.getItem(0);se.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(se,0)},ue.prototype.rotatePoint=function(se){if(this.rotationAngle===0)return se;var ce=this.container.getCTM(),de=ke.createPoint(se.x,se.y);return{x:(de=de.matrixTransform(ce)).x,y:de.y}},ue.prototype.unrotatePoint=function(se){if(this.rotationAngle===0)return se;var ce=this.container.getCTM();ce=ce.inverse();var de=ke.createPoint(se.x,se.y);return{x:(de=de.matrixTransform(ce)).x,y:de.y}},ue.prototype.select=function(){ye.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){ye.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=ke.createGroup();var se=ke.createTransform();se.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(se),this.container.appendChild(this.controlBox),this.controlRect=ke.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=ke.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 Et,this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){var se=this.controlBox.transform.baseVal.getItem(0);se.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(se,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 se=new At;return se.visual.transform.baseVal.appendItem(ke.createTransform()),this.controlBox.appendChild(se.visual),se},ue.prototype.positionGrips=function(){var se=this.controlGrips.topLeft.GRIP_SIZE,ce=-se/2,de=ce,ae=(this.width+this.CB_DISTANCE)/2-se/2,Be=(this.height+this.CB_DISTANCE)/2-se/2,ft=this.height+this.CB_DISTANCE-se/2,Fe=this.width+this.CB_DISTANCE-se/2;this.positionGrip(this.controlGrips.topLeft.visual,ce,de),this.positionGrip(this.controlGrips.topCenter.visual,ae,de),this.positionGrip(this.controlGrips.topRight.visual,Fe,de),this.positionGrip(this.controlGrips.centerLeft.visual,ce,Be),this.positionGrip(this.controlGrips.centerRight.visual,Fe,Be),this.positionGrip(this.controlGrips.bottomLeft.visual,ce,ft),this.positionGrip(this.controlGrips.bottomCenter.visual,ae,ft),this.positionGrip(this.controlGrips.bottomRight.visual,Fe,ft),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ae,de-3*this.CB_DISTANCE)},ue.prototype.positionGrip=function(se,ce,de){var ae=se.transform.baseVal.getItem(0);ae.setTranslate(ce,de),se.transform.baseVal.replaceItem(ae,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:dt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:dt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ye.prototype.getState.call(this))},ue.prototype.restoreState=function(se){ye.prototype.restoreState.call(this,se);var ce=se;this.left=ce.left,this.top=ce.top,this.width=ce.width,this.height=ce.height,this.rotationAngle=ce.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(dt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ce.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(dt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ce.containerTransformMatrix))},ue.prototype.scale=function(se,ce){ye.prototype.scale.call(this,se,ce);var de=this.rotatePoint({x:this.left,y:this.top}),ae=this.unrotatePoint({x:de.x*se,y:de.y*ce});this.left=ae.x,this.top=ae.y,this.width=this.width*se,this.height=this.height*ce,this.adjustControlBox()},ue}(gt),Ve=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,ce,de)||this;return ae.fillColor="transparent",ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.opacity=1,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setFillColor=ae.setFillColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.createVisual=ae.createVisual.bind(ae),ae}return Me(ue,ye),ue.prototype.ownsTarget=function(se){return!(!ye.prototype.ownsTarget.call(this,se)&&se!==this.visual)},ue.prototype.createVisual=function(){this.visual=ke.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(se,ce){ye.prototype.pointerDown.call(this,se,ce),this.state==="new"&&(this.createVisual(),this.moveVisual(se),this._state="creating")},ue.prototype.manipulate=function(se){ye.prototype.manipulate.call(this,se)},ue.prototype.resize=function(se){ye.prototype.resize.call(this,se),this.setSize()},ue.prototype.setSize=function(){ye.prototype.setSize.call(this),ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(se){ye.prototype.pointerUp.call(this,se),this.setSize()},ue.prototype.setStrokeColor=function(se){this.strokeColor=se,this.visual&&ke.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(se),this.stateChanged()},ue.prototype.setFillColor=function(se){this.fillColor=se,this.visual&&ke.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ue.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.visual&&ke.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.visual&&ke.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},ye.prototype.getState.call(this))},ue.prototype.restoreState=function(se){var ce=se;this.fillColor=ce.fillColor,this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.opacity=ce.opacity,this.createVisual(),ye.prototype.restoreState.call(this,se),this.setSize()},ue.prototype.scale=function(se,ce){ye.prototype.scale.call(this,se,ce),this.setSize()},ue.title="Rectangle marker",ue}(nt),Se=function(ye){function ue(se,ce,de,ae){var Be=ye.call(this,se,ae||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Be.widths=[],Be.widthBoxes=[],Be.widths=ce,Be.currentWidth=de,Be.setCurrentWidth=Be.setCurrentWidth.bind(Be),Be}return Me(ue,ye),ue.prototype.getUi=function(){var se=this,ce=document.createElement("div");return ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2",this.widths.forEach(function(de){var ae=document.createElement("div");ae.style.display="flex",ae.style.flexGrow="2",ae.style.alignItems="center",ae.style.justifyContent="space-between",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.borderColor=de===se.currentWidth?se.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){se.setCurrentWidth(de,ae)}),ce.appendChild(ae);var Be=document.createElement("div");Be.innerText=de.toString(),Be.style.marginRight="5px",ae.appendChild(Be);var ft=document.createElement("div");ft.style.minHeight="20px",ft.style.flexGrow="2",ft.style.display="flex",ft.style.alignItems="center";var Fe=document.createElement("hr");Fe.style.minWidth="20px",Fe.style.border="0px",Fe.style.borderTop=de+"px solid "+se.uiStyleSettings.toolboxColor,Fe.style.flexGrow="2",ft.appendChild(Fe),ae.appendChild(ft),se.widthBoxes.push(ae)}),ce},ue.prototype.setCurrentWidth=function(se,ce){var de=this;this.currentWidth=se,this.widthBoxes.forEach(function(ae){ae.style.borderColor=ae===ce?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ue}(Je),$e=function(ye){function ue(se,ce,de,ae){var Be=ye.call(this,se,ae||'<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 Be.styles=[],Be.styleBoxes=[],Be.styles=ce,Be.currentStyle=de,Be.setCurrentStyle=Be.setCurrentStyle.bind(Be),Be}return Me(ue,ye),ue.prototype.getUi=function(){var se=this,ce=document.createElement("div");return ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2",this.styles.forEach(function(de){var ae=document.createElement("div");ae.style.display="flex",ae.style.alignItems="center",ae.style.justifyContent="space-between",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.overflow="hidden",ae.style.maxWidth=100/se.styles.length-5+"%",ae.style.borderColor=de===se.currentStyle?se.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){se.setCurrentStyle(de,ae)}),ce.appendChild(ae);var Be=document.createElement("div");Be.style.minHeight="20px",Be.style.flexGrow="2",Be.style.overflow="hidden";var ft=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+se.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(de!==""?'stroke-dasharray="'+de+'"':"")+` />
</svg>`;Be.innerHTML=ft,ae.appendChild(Be),se.styleBoxes.push(ae)}),ce},ue.prototype.setCurrentStyle=function(se,ce){var de=this;this.currentStyle=se,this.styleBoxes.forEach(function(ae){ae.style.borderColor=ae===ce?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ue}(Je),Ye=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,ce,de)||this;return ae.strokeColor=de.defaultColor,ae.strokeWidth=de.defaultStrokeWidth,ae.strokeDasharray=de.defaultStrokeDasharray,ae.strokePanel=new Ue("Line color",de.defaultColorSet,de.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.strokeWidthPanel=new Se("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new $e("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae}return Me(ue,ye),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=ye.prototype.getState.call(this);return se.typeName=ue.typeName,se},ue.typeName="FrameMarker",ue.title="Frame marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ue}(Ve),ht=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"},Xe=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,ce,de)||this;return ae.x1=0,ae.y1=0,ae.x2=0,ae.y2=0,ae.defaultLength=50,ae.manipulationStartX=0,ae.manipulationStartY=0,ae.manipulationStartX1=0,ae.manipulationStartY1=0,ae.manipulationStartX2=0,ae.manipulationStartY2=0,ae.setupControlBox(),ae}return Me(ue,ye),ue.prototype.ownsTarget=function(se){return!!ye.prototype.ownsTarget.call(this,se)||!(!this.grip1.ownsTarget(se)&&!this.grip2.ownsTarget(se))},ue.prototype.pointerDown=function(se,ce){ye.prototype.pointerDown.call(this,se,ce),this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.state==="new"&&(this.x1=se.x,this.y1=se.y,this.x2=se.x,this.y2=se.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(ce)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ce)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ue.prototype.pointerUp=function(se){var ce=this.state;ye.prototype.pointerUp.call(this,se),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(se),this._state="select",ce==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ue.prototype.adjustVisual=function(){},ue.prototype.manipulate=function(se){this.state==="creating"?this.resize(se):this.state==="move"?(this.x1=this.manipulationStartX1+se.x-this.manipulationStartX,this.y1=this.manipulationStartY1+se.y-this.manipulationStartY,this.x2=this.manipulationStartX2+se.x-this.manipulationStartX,this.y2=this.manipulationStartY2+se.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(se)},ue.prototype.resize=function(se){switch(this.activeGrip){case this.grip1:this.x1=se.x,this.y1=se.y;break;case this.grip2:case void 0:this.x2=se.x,this.y2=se.y}this.adjustVisual(),this.adjustControlBox()},ue.prototype.select=function(){ye.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){ye.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=ke.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 se=new At;return se.visual.transform.baseVal.appendItem(ke.createTransform()),this.controlBox.appendChild(se.visual),se},ue.prototype.positionGrips=function(){var se=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-se/2,this.y1-se/2),this.positionGrip(this.grip2.visual,this.x2-se/2,this.y2-se/2)},ue.prototype.positionGrip=function(se,ce,de){var ae=se.transform.baseVal.getItem(0);ae.setTranslate(ce,de),se.transform.baseVal.replaceItem(ae,0)},ue.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ye.prototype.getState.call(this))},ue.prototype.restoreState=function(se){ye.prototype.restoreState.call(this,se);var ce=se;this.x1=ce.x1,this.y1=ce.y1,this.x2=ce.x2,this.y2=ce.y2},ue.prototype.scale=function(se,ce){ye.prototype.scale.call(this,se,ce),this.x1=this.x1*se,this.y1=this.y1*ce,this.x2=this.x2*se,this.y2=this.y2*ce,this.adjustVisual(),this.adjustControlBox()},ue}(gt),ut=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,ce,de)||this;return ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.strokeColor=de.defaultColor,ae.strokeWidth=de.defaultStrokeWidth,ae.strokeDasharray=de.defaultStrokeDasharray,ae.strokePanel=new Ue("Line color",de.defaultColorSet,de.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.strokeWidthPanel=new Se("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new $e("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae}return Me(ue,ye),ue.prototype.ownsTarget=function(se){return!(!ye.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.selectorLine&&se!==this.visibleLine)},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.selectorLine=ke.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ke.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(se,ce){ye.prototype.pointerDown.call(this,se,ce),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()),ke.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setStrokeColor=function(se){this.strokeColor=se,this.adjustVisual(),this.colorChanged(se)},ue.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,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 se=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ye.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){ye.prototype.restoreState.call(this,se);var ce=se;this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.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}(Xe),Oe=function(ye){function ue(se,ce,de,ae){var Be=ye.call(this,se,ae||'<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 Be.fonts=[],Be.fontBoxes=[],Be.fonts=ce,Be.currentFont=de,Be.setCurrentFont=Be.setCurrentFont.bind(Be),Be}return Me(ue,ye),ue.prototype.getUi=function(){var se=this,ce=document.createElement("div");return ce.style.overflow="hidden",ce.style.flexGrow="2",this.fonts.forEach(function(de){var ae=document.createElement("div");ae.style.display="inline-block",ae.style.alignItems="center",ae.style.justifyContent="space-between",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.overflow="hidden",ae.style.maxWidth=100/se.fonts.length-5+"%",ae.style.borderColor=de===se.currentFont?se.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){se.setCurrentFont(de,ae)}),ce.appendChild(ae);var Be=document.createElement("div");Be.style.display="flex",Be.style.minHeight="20px",Be.style.flexGrow="2",Be.style.fontFamily=de,Be.style.overflow="hidden";var ft=document.createElement("div");ft.style.whiteSpace="nowrap",ft.style.overflow="hidden",ft.style.textOverflow="ellipsis",ft.innerHTML="The quick brown fox jumps over the lazy dog",Be.appendChild(ft),ae.appendChild(Be),se.fontBoxes.push(ae)}),ce},ue.prototype.setCurrentFont=function(se,ce){var de=this;this.currentFont=se,this.fontBoxes.forEach(function(ae){ae.style.borderColor=ae===ce?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ue}(Je),Pt=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,ce,de)||this;return ae.color="transparent",ae.padding=5,ae.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ae.text=ae.DEFAULT_TEXT,ae.isMoved=!1,ae.color=de.defaultColor,ae.fontFamily=de.defaultFontFamily,ae.defaultSize={x:100,y:30},ae.setColor=ae.setColor.bind(ae),ae.setFont=ae.setFont.bind(ae),ae.renderText=ae.renderText.bind(ae),ae.sizeText=ae.sizeText.bind(ae),ae.textEditDivClicked=ae.textEditDivClicked.bind(ae),ae.showTextEditor=ae.showTextEditor.bind(ae),ae.setSize=ae.setSize.bind(ae),ae.positionTextEditor=ae.positionTextEditor.bind(ae),ae.colorPanel=new Ue("Color",de.defaultColorSet,de.defaultColor),ae.colorPanel.onColorChanged=ae.setColor,ae.fontFamilyPanel=new Oe("Font",de.defaultFontFamilies,de.defaultFontFamily),ae.fontFamilyPanel.onFontChanged=ae.setFont,ae}return Me(ue,ye),ue.prototype.ownsTarget=function(se){if(ye.prototype.ownsTarget.call(this,se)||se===this.visual||se===this.textElement||se===this.bgRectangle)return!0;var ce=!1;return this.textElement.childNodes.forEach(function(de){de===se&&(ce=!0)}),ce},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.bgRectangle=ke.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ke.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ke.createTransform()),this.textElement.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ue.prototype.pointerDown=function(se,ce){ye.prototype.pointerDown.call(this,se,ce),this.isMoved=!1,this.pointerDownPoint=se,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(se),this._state="creating")},ue.prototype.renderText=function(){var se=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(ce){se.textElement.appendChild(ke.createTSpan(ce.trim()===""?" ":ce.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ue.prototype.getTextScale=function(){var se=this.textElement.getBBox(),ce=1;if(se.width>0&&se.height>0){var de=(1*this.width-this.width*this.padding*2/100)/se.width,ae=(1*this.height-this.height*this.padding*2/100)/se.height;ce=Math.min(de,ae)}return ce},ue.prototype.getTextPosition=function(se){var ce=this.textElement.getBBox(),de=0,ae=0;return ce.width>0&&ce.height>0&&(de=(this.width-ce.width*se)/2,ae=this.height/2-ce.height*se/2),{x:de,y:ae}},ue.prototype.sizeText=function(){var se=this.textElement.getBBox(),ce=this.getTextScale(),de=this.getTextPosition(ce);de.y-=se.y*ce,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+de.x+"px, "+de.y+"px) scale("+ce+", "+ce+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(de.x,de.y),this.textElement.transform.baseVal.getItem(1).setScale(ce,ce))},ue.prototype.manipulate=function(se){ye.prototype.manipulate.call(this,se),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(se.x-this.pointerDownPoint.x)>5||Math.abs(se.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(se){ye.prototype.resize.call(this,se),this.isMoved=!0,this.setSize(),this.sizeText()},ue.prototype.setSize=function(){ye.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ue.prototype.pointerUp=function(se){var ce=this.state;ce==="creating"&&(this._suppressMarkerCreateEvent=!0),ye.prototype.pointerUp.call(this,se),this.setSize(),(ce==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.showTextEditor=function(){var se=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(ce){ce.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ce=Number.parseFloat(se.textEditor.style.fontSize);se.textEditor.clientWidth>=Number.parseInt(se.textEditor.style.maxWidth)&&ce>.9;)ce-=.1,se.textEditor.style.fontSize=Math.max(ce,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ce){ce.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ce){if(ce.clipboardData){var de=ce.clipboardData.getData("text"),ae=window.getSelection();if(!ae.rangeCount)return!1;ae.deleteFromDocument(),ae.getRangeAt(0).insertNode(document.createTextNode(de)),ce.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){se.textEditDivClicked(se.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 se=this.getTextScale(),ce=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),de=this.textElement.getBBox(),ae={x:de.width*se,y:de.height*se};ce.x-=ae.x/2,ce.y-=ae.y/2,this.textEditor.style.top=ce.y+"px",this.textEditor.style.left=ce.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ce.x+"px",this.textEditor.style.fontSize=Math.max(16*se,12)+"px",this.textElement.style.display="none"}},ue.prototype.textEditDivClicked=function(se){this.text=se.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ue.prototype.select=function(){ye.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ue.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ye.prototype.deselect.call(this)},ue.prototype.dblClick=function(se,ce){ye.prototype.dblClick.call(this,se,ce),this.showTextEditor()},ue.prototype.setColor=function(se){this.textElement&&ke.setAttributes(this.textElement,[["fill",se]]),this.color=se,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(se)},ue.prototype.setFont=function(se){this.textElement&&ke.setAttributes(this.textElement,[["font-family",se]]),this.fontFamily=se,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 se=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ye.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){var ce=se;this.color=ce.color,this.fontFamily=ce.fontFamily,this.padding=ce.padding,this.text=ce.text,this.createVisual(),ye.prototype.restoreState.call(this,se),this.setSize()},ue.prototype.scale=function(se,ce){ye.prototype.scale.call(this,se,ce),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}(nt),qe=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,ce,de)||this;return ae.color="transparent",ae.lineWidth=3,ae.drawing=!1,ae.pixelRatio=1,ae.color=de.defaultColor,ae.lineWidth=de.defaultStrokeWidth,ae.pixelRatio=de.freehandPixelRatio,ae.setColor=ae.setColor.bind(ae),ae.addCanvas=ae.addCanvas.bind(ae),ae.finishCreation=ae.finishCreation.bind(ae),ae.setLineWidth=ae.setLineWidth.bind(ae),ae.colorPanel=new Ue("Color",de.defaultColorSet,de.defaultColor),ae.colorPanel.onColorChanged=ae.setColor,ae.lineWidthPanel=new Se("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),ae.lineWidthPanel.onWidthChanged=ae.setLineWidth,ae}return Me(ue,ye),ue.prototype.ownsTarget=function(se){return!(!ye.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.drawingImage)},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.drawingImage=ke.createImage(),this.visual.appendChild(this.drawingImage);var se=ke.createTransform();this.visual.transform.baseVal.appendItem(se),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(se,ce){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(se.x,se.y),this.drawing=!0):ye.prototype.pointerDown.call(this,se,ce)},ue.prototype.manipulate=function(se){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(se.x,se.y),this.canvasContext.stroke()):ye.prototype.manipulate.call(this,se)},ue.prototype.resize=function(se){ye.prototype.resize.call(this,se),ke.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(se){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ye.prototype.pointerUp.call(this,se)},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(),ye.prototype.select.call(this)},ue.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ye.prototype.deselect.call(this)},ue.prototype.finishCreation=function(){for(var se=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ce=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],de=ce[0],ae=ce[1],Be=ce[2],ft=ce[3],Fe=!1,De=0;De<this.canvasElement.height;De++)for(var mt=0;mt<this.canvasElement.width;mt++)se.data[De*this.canvasElement.width*4+4*mt+3]>0&&(Fe=!0,De<ae&&(ae=De),mt<de&&(de=mt),De>ft&&(ft=De),mt>Be&&(Be=mt));if(Fe){this.left=de/this.pixelRatio,this.top=ae/this.pixelRatio,this.width=(Be-de)/this.pixelRatio,this.height=(ft-ae)/this.pixelRatio;var rt=document.createElement("canvas");rt.width=Be-de,rt.height=ft-ae,rt.getContext("2d").putImageData(this.canvasContext.getImageData(de,ae,Be-de,ft-ae),0,0),this.drawingImgUrl=rt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ue.prototype.setDrawingImage=function(){ke.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ke.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ue.prototype.setColor=function(se){this.color=se,this.colorChanged(se)},ue.prototype.setLineWidth=function(se){this.lineWidth=se},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 se=Object.assign({drawingImgUrl:this.drawingImgUrl},ye.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){this.createVisual(),ye.prototype.restoreState.call(this,se),this.drawingImgUrl=se.drawingImgUrl,this.setDrawingImage()},ue.prototype.scale=function(se,ce){ye.prototype.scale.call(this,se,ce),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}(nt),zt=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,de||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ae.typeBoxes=[],ae.currentType=ce,ae.setCurrentType=ae.setCurrentType.bind(ae),ae}return Me(ue,ye),ue.prototype.getUi=function(){var se=this,ce=document.createElement("div");ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2";for(var de=function(ft){var Fe="both";switch(ft){case 0:Fe="both";break;case 1:Fe="start";break;case 2:Fe="end";break;case 3:Fe="none"}var De=document.createElement("div");if(De.style.display="flex",De.style.flexGrow="2",De.style.alignItems="center",De.style.justifyContent="space-between",De.style.padding="5px",De.style.borderWidth="2px",De.style.borderStyle="solid",De.style.borderColor=Fe===ae.currentType?ae.uiStyleSettings.toolboxAccentColor:"transparent",De.addEventListener("click",function(){se.setCurrentType(Fe,De)}),ce.appendChild(De),Fe==="both"||Fe==="start"){var mt=document.createElement("div");mt.style.display="flex",mt.style.alignItems="center",mt.style.minHeight="20px",mt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(ae.uiStyleSettings!==void 0?ae.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,mt.style.marginLeft="5px",De.appendChild(mt)}var rt=document.createElement("div");rt.style.display="flex",rt.style.alignItems="center",rt.style.minHeight="20px",rt.style.flexGrow="2";var Ge=document.createElement("hr");if(Ge.style.minWidth="20px",Ge.style.border="0px",Ge.style.borderTop="3px solid "+(ae.uiStyleSettings!==void 0?ae.uiStyleSettings.toolboxColor:"#eeeeee"),Ge.style.flexGrow="2",rt.appendChild(Ge),De.appendChild(rt),Fe==="both"||Fe==="end"){var xt=document.createElement("div");xt.style.display="flex",xt.style.alignItems="center",xt.style.minHeight="20px",xt.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="`+(ae.uiStyleSettings!==void 0?ae.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,xt.style.marginRight="5px",De.appendChild(xt)}ae.typeBoxes.push(De)},ae=this,Be=0;Be<4;Be++)de(Be);return ce},ue.prototype.setCurrentType=function(se,ce){var de=this;this.currentType=se,this.typeBoxes.forEach(function(ae){ae.style.borderColor=ae===ce?de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ue}(Je),Dt=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,ce,de)||this;return ae.arrowType="end",ae.arrowBaseHeight=10,ae.arrowBaseWidth=10,ae.getArrowPoints=ae.getArrowPoints.bind(ae),ae.setArrowType=ae.setArrowType.bind(ae),ae.arrowTypePanel=new zt("Arrow type","end"),ae.arrowTypePanel.onArrowTypeChanged=ae.setArrowType,ae}return Me(ue,ye),ue.prototype.ownsTarget=function(se){return!(!ye.prototype.ownsTarget.call(this,se)&&se!==this.arrow1&&se!==this.arrow2)},ue.prototype.getArrowPoints=function(se,ce){var de=this.arrowBaseWidth+2*this.strokeWidth,ae=this.arrowBaseHeight+2*this.strokeWidth;return se-de/2+","+(ce+ae/2)+" "+se+","+(ce-ae/2)+" "+(se+de/2)+","+(ce+ae/2)},ue.prototype.createTips=function(){this.arrow1=ke.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ke.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ke.createTransform()),this.visual.appendChild(this.arrow2)},ue.prototype.pointerDown=function(se,ce){ye.prototype.pointerDown.call(this,se,ce),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(ye.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",ke.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ke.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var se=0;Math.abs(this.x1-this.x2)>.1&&(se=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ce=this.arrow1.transform.baseVal.getItem(0);ce.setRotate(se,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ce,0);var de=this.arrow2.transform.baseVal.getItem(0);de.setRotate(se+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(de,0)}},ue.prototype.setArrowType=function(se){this.arrowType=se,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 se=Object.assign({arrowType:this.arrowType},ye.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){ye.prototype.restoreState.call(this,se);var ce=se;this.arrowType=ce.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),Bt=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,ce,de)||this;return ae.fillColor=de.defaultFillColor,ae.strokeWidth=0,ae.fillPanel=new Ue("Color",de.defaultColorSet,de.defaultFillColor),ae.fillPanel.onColorChanged=ae.setFillColor,ae}return Me(ue,ye),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=ye.prototype.getState.call(this);return se.typeName=ue.typeName,se},ue.typeName="CoverMarker",ue.title="Cover marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ue}(Ve),St=function(ye){function ue(se,ce,de,ae){var Be=ye.call(this,se,ae||'<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 Be.opacities=[],Be.opacityBoxes=[],Be.opacities=ce,Be.currentOpacity=de,Be.setCurrentOpacity=Be.setCurrentOpacity.bind(Be),Be}return Me(ue,ye),ue.prototype.getUi=function(){var se=this,ce=document.createElement("div");return ce.style.display="flex",ce.style.overflow="hidden",ce.style.flexGrow="2",ce.style.justifyContent="space-between",this.opacities.forEach(function(de){var ae=document.createElement("div");ae.style.display="flex",ae.style.alignItems="center",ae.style.justifyContent="center",ae.style.padding="5px",ae.style.borderWidth="2px",ae.style.borderStyle="solid",ae.style.borderColor=de===se.currentOpacity?se.uiStyleSettings.toolboxAccentColor:"transparent",ae.addEventListener("click",function(){se.setCurrentOpacity(de,ae)}),ce.appendChild(ae);var Be=document.createElement("div");Be.innerText=100*de+"%",ae.appendChild(Be),se.opacityBoxes.push(ae)}),ce},ue.prototype.setCurrentOpacity=function(se,ce){var de=this;this.currentOpacity=se,this.opacityBoxes.forEach(function(ae){ae.style.borderColor=ae===ce?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ue}(Je),It=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,ce,de)||this;return ae.setOpacity=ae.setOpacity.bind(ae),ae.fillColor=de.defaultHighlightColor,ae.strokeWidth=0,ae.opacity=de.defaultHighlightOpacity,ae.fillPanel=new Ue("Color",de.defaultColorSet,ae.fillColor),ae.fillPanel.onColorChanged=ae.setFillColor,ae.opacityPanel=new St("Opacity",de.defaultOpacitySteps,ae.opacity),ae.opacityPanel.onOpacityChanged=ae.setOpacity,ae}return Me(ue,ye),ue.prototype.setOpacity=function(se){this.opacity=se,this.visual&&ke.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 se=ye.prototype.getState.call(this);return se.typeName=ue.typeName,se},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}(Bt),Qe='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',be='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Ct=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,ce,de)||this;return ae.bgColor="transparent",ae.tipPosition={x:0,y:0},ae.tipBase1Position={x:0,y:0},ae.tipBase2Position={x:0,y:0},ae.tipMoving=!1,ae.color=de.defaultStrokeColor,ae.bgColor=de.defaultFillColor,ae.fontFamily=de.defaultFontFamily,ae.defaultSize={x:100,y:30},ae.setBgColor=ae.setBgColor.bind(ae),ae.getTipPoints=ae.getTipPoints.bind(ae),ae.positionTip=ae.positionTip.bind(ae),ae.setTipPoints=ae.setTipPoints.bind(ae),ae.colorPanel=new Ue("Text color",de.defaultColorSet,ae.color,Qe),ae.colorPanel.onColorChanged=ae.setColor,ae.bgColorPanel=new Ue("Fill color",de.defaultColorSet,ae.bgColor,be),ae.bgColorPanel.onColorChanged=ae.setBgColor,ae.fontFamilyPanel=new Oe("Font",de.defaultFontFamilies,de.defaultFontFamily),ae.fontFamilyPanel.onFontChanged=ae.setFont,ae.tipGrip=new At,ae.tipGrip.visual.transform.baseVal.appendItem(ke.createTransform()),ae.controlBox.appendChild(ae.tipGrip.visual),ae}return Me(ue,ye),ue.prototype.ownsTarget=function(se){return ye.prototype.ownsTarget.call(this,se)||this.tipGrip.ownsTarget(se)||this.tip===se},ue.prototype.createTip=function(){ke.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ke.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ue.prototype.pointerDown=function(se,ce){this.state==="new"&&ye.prototype.pointerDown.call(this,se,ce),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ce)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ye.prototype.pointerDown.call(this,se,ce)},ue.prototype.pointerUp=function(se){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ye.prototype.pointerUp.call(this,se);else{var ce=this.state==="creating";ye.prototype.pointerUp.call(this,se),this.setTipPoints(ce),this.positionTip()}},ue.prototype.manipulate=function(se){if(this.tipMoving){var ce=this.unrotatePoint(se);this.tipPosition={x:ce.x-this.manipulationStartLeft,y:ce.y-this.manipulationStartTop},this.positionTip()}else ye.prototype.manipulate.call(this,se)},ue.prototype.setBgColor=function(se){this.bgRectangle&&this.tip&&(ke.setAttributes(this.bgRectangle,[["fill",se]]),ke.setAttributes(this.tip,[["fill",se]])),this.bgColor=se,this.fillColorChanged(se)},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(se){se===void 0&&(se=!1);var ce=Math.min(this.height/2,15),de=this.height/5;se&&(this.tipPosition={x:ce+de/2,y:this.height+20});var ae=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ae<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(de=this.width/5,ce=Math.min(this.width/2,15),this.tipBase1Position={x:ce,y:0},this.tipBase2Position={x:ce+de,y:0}):(this.tipBase1Position={x:0,y:ce},this.tipBase2Position={x:0,y:ce+de}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ae<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(de=this.width/5,ce=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ce-de,y:0},this.tipBase2Position={x:this.width-ce,y:0}):(this.tipBase1Position={x:this.width,y:ce},this.tipBase2Position={x:this.width,y:ce+de}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ae<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(de=this.width/5,ce=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ce-de,y:this.height},this.tipBase2Position={x:this.width-ce,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ce-de},this.tipBase2Position={x:this.width,y:this.height-ce}):ae<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(de=this.width/5,ce=Math.min(this.width/2,15),this.tipBase1Position={x:ce,y:this.height},this.tipBase2Position={x:ce+de,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ce},this.tipBase2Position={x:0,y:this.height-ce-de})},ue.prototype.resize=function(se){ye.prototype.resize.call(this,se),this.positionTip()},ue.prototype.positionTip=function(){ke.setAttributes(this.tip,[["points",this.getTipPoints()]]);var se=this.tipGrip.visual.transform.baseVal.getItem(0);se.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(se,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(),ye.prototype.select.call(this)},ue.prototype.getState=function(){var se=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ye.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){var ce=se;this.bgColor=ce.bgColor,this.tipPosition=ce.tipPosition,ye.prototype.restoreState.call(this,se),this.createTip(),this.setTipPoints()},ue.prototype.scale=function(se,ce){ye.prototype.scale.call(this,se,ce),this.tipPosition={x:this.tipPosition.x*se,y:this.tipPosition.y*ce},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}(Pt),Yt=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,ce,de)||this;return ae.fillColor="transparent",ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.opacity=1,ae.strokeColor=de.defaultColor,ae.strokeWidth=de.defaultStrokeWidth,ae.strokeDasharray=de.defaultStrokeDasharray,ae.fillColor=de.defaultFillColor,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setFillColor=ae.setFillColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.setOpacity=ae.setOpacity.bind(ae),ae.createVisual=ae.createVisual.bind(ae),ae.strokePanel=new Ue("Line color",ge(de.defaultColorSet,["transparent"]),de.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.fillPanel=new Ue("Fill color",ge(de.defaultColorSet,["transparent"]),ae.fillColor,be),ae.fillPanel.onColorChanged=ae.setFillColor,ae.strokeWidthPanel=new Se("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new $e("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae.opacityPanel=new St("Opacity",de.defaultOpacitySteps,ae.opacity),ae.opacityPanel.onOpacityChanged=ae.setOpacity,ae}return Me(ue,ye),ue.prototype.ownsTarget=function(se){return!(!ye.prototype.ownsTarget.call(this,se)&&se!==this.visual)},ue.prototype.createVisual=function(){this.visual=ke.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(se,ce){ye.prototype.pointerDown.call(this,se,ce),this.state==="new"&&(this.createVisual(),this.moveVisual(se),this._state="creating")},ue.prototype.manipulate=function(se){ye.prototype.manipulate.call(this,se)},ue.prototype.resize=function(se){ye.prototype.resize.call(this,se),this.setSize()},ue.prototype.setSize=function(){ye.prototype.setSize.call(this),ke.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(se){ye.prototype.pointerUp.call(this,se),this.setSize()},ue.prototype.setStrokeColor=function(se){this.strokeColor=se,this.visual&&ke.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(se),this.stateChanged()},ue.prototype.setFillColor=function(se){this.fillColor=se,this.visual&&ke.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(se),this.stateChanged()},ue.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.visual&&ke.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.visual&&ke.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ue.prototype.setOpacity=function(se){this.opacity=se,this.visual&&ke.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 se=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ye.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){var ce=se;this.fillColor=ce.fillColor,this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.opacity=ce.opacity,this.createVisual(),ye.prototype.restoreState.call(this,se),this.setSize()},ue.prototype.scale=function(se,ce){ye.prototype.scale.call(this,se,ce),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}(nt),Zt=function(ye){function ue(se,ce,de){return ye.call(this,se,ce,de)||this}return Me(ue,ye),Object.defineProperty(ue.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(se){return!(!ye.prototype.ownsTarget.call(this,se)&&se!==this.tip1&&se!==this.tip2)},ue.prototype.createTips=function(){this.tip1=ke.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(ke.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ke.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(ke.createTransform()),this.visual.appendChild(this.tip2)},ue.prototype.pointerDown=function(se,ce){ye.prototype.pointerDown.call(this,se,ce),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(ye.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ke.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()]]),ke.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 se=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ce=this.tip1.transform.baseVal.getItem(0);ce.setRotate(se,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ce,0);var de=this.tip2.transform.baseVal.getItem(0);de.setRotate(se+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(de,0)}},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=ye.prototype.getState.call(this);return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){ye.prototype.restoreState.call(this,se),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),at=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,ce,de)||this;return ae.strokePanel.colors=de.defaultColorSet,ae.fillColor="transparent",ae}return Me(ue,ye),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=ye.prototype.getState.call(this);return se.typeName=ue.typeName,se},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}(Yt),ot=function(){function ye(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ye.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ye.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))},ye.prototype.replaceLastUndoStep=function(ue){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ue)},ye.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ye.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}},ye.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ye}(),Nt=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,ce,de)||this;return ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.curveX=0,ae.curveY=0,ae.manipulationStartCurveX=0,ae.manipulationStartCurveY=0,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.positionGrips=ae.positionGrips.bind(ae),ae.addControlGrips=ae.addControlGrips.bind(ae),ae.adjustVisual=ae.adjustVisual.bind(ae),ae.setupControlBox=ae.setupControlBox.bind(ae),ae.resize=ae.resize.bind(ae),ae.strokeColor=de.defaultColor,ae.strokeWidth=de.defaultStrokeWidth,ae.strokeDasharray=de.defaultStrokeDasharray,ae.strokePanel=new Ue("Line color",de.defaultColorSet,de.defaultColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.strokeWidthPanel=new Se("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new $e("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae}return Me(ue,ye),ue.prototype.ownsTarget=function(se){return!(!ye.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.selectorCurve&&se!==this.visibleCurve&&!this.curveGrip.ownsTarget(se))},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=ke.createGroup(),this.selectorCurve=ke.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ke.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(se,ce){ye.prototype.pointerDown.call(this,se,ce),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=se.x,this.curveY=se.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ce)&&(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()),ke.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ke.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ke.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setupControlBox=function(){ye.prototype.setupControlBox.call(this),this.curveControlLine1=ke.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ke.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,ye.prototype.addControlGrips.call(this)},ue.prototype.positionGrips=function(){ye.prototype.positionGrips.call(this);var se=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-se/2,this.curveY-se/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(se){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+se.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+se.y-this.manipulationStartY),ye.prototype.manipulate.call(this,se)},ue.prototype.resize=function(se){this.activeGrip===this.curveGrip&&(this.curveX=se.x,this.curveY=se.y),ye.prototype.resize.call(this,se),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(se){this.strokeColor=se,this.adjustVisual(),this.colorChanged(se)},ue.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.adjustVisual()},ue.prototype.scale=function(se,ce){this.curveX=this.curveX*se,this.curveY=this.curveY*ce,ye.prototype.scale.call(this,se,ce)},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var se=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ye.prototype.getState.call(this));return se.typeName=ue.typeName,se},ue.prototype.restoreState=function(se){ye.prototype.restoreState.call(this,se);var ce=se;this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.curveX=ce.curveX,this.curveY=ce.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}(Xe),Sn=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,ce,de)||this;return ae.fillColor="transparent",ae.strokeColor="transparent",ae.strokeWidth=0,ae.strokeDasharray="",ae.textColor="transparent",ae.fontSize="1rem",ae.isMoved=!1,ae.captionText="Caption",ae.PADDING=5,ae.captionBoxWidth=0,ae.captionBoxHeight=0,ae.strokeColor=de.defaultColor,ae.strokeWidth=de.defaultStrokeWidth,ae.strokeDasharray=de.defaultStrokeDasharray,ae.fillColor=de.defaultFillColor,ae.textColor=de.defaultStrokeColor,ae.fontFamily=de.defaultFontFamily,ae.fontSize=de.defaultCaptionFontSize,ae.captionText=de.defaultCaptionText,ae.setStrokeColor=ae.setStrokeColor.bind(ae),ae.setFillColor=ae.setFillColor.bind(ae),ae.setStrokeWidth=ae.setStrokeWidth.bind(ae),ae.setStrokeDasharray=ae.setStrokeDasharray.bind(ae),ae.createVisual=ae.createVisual.bind(ae),ae.sizeCaption=ae.sizeCaption.bind(ae),ae.setCaptionText=ae.setCaptionText.bind(ae),ae.showTextEditor=ae.showTextEditor.bind(ae),ae.positionTextEditor=ae.positionTextEditor.bind(ae),ae.finishTextEditing=ae.finishTextEditing.bind(ae),ae.setFont=ae.setFont.bind(ae),ae.setTextColor=ae.setTextColor.bind(ae),ae.strokePanel=new Ue("Line color",ge(de.defaultColorSet,["transparent"]),ae.strokeColor),ae.strokePanel.onColorChanged=ae.setStrokeColor,ae.fillPanel=new Ue("Fill color",ge(de.defaultColorSet,["transparent"]),ae.fillColor,be),ae.fillPanel.onColorChanged=ae.setFillColor,ae.strokeWidthPanel=new Se("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),ae.strokeWidthPanel.onWidthChanged=ae.setStrokeWidth,ae.strokeStylePanel=new $e("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),ae.strokeStylePanel.onStyleChanged=ae.setStrokeDasharray,ae.fontFamilyPanel=new Oe("Font",de.defaultFontFamilies,de.defaultFontFamily),ae.fontFamilyPanel.onFontChanged=ae.setFont,ae.textColorPanel=new Ue("Text color",de.defaultColorSet,ae.textColor,Qe),ae.textColorPanel.onColorChanged=ae.setTextColor,ae}return Me(ue,ye),ue.prototype.ownsTarget=function(se){return!(!ye.prototype.ownsTarget.call(this,se)&&se!==this.visual&&se!==this.frame&&se!==this.captionBg&&se!==this.captionElement)},ue.prototype.createVisual=function(){this.visual=ke.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ke.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ke.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=ke.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(se){this.captionText=se,this.captionElement.textContent=this.captionText,this.sizeCaption()},ue.prototype.pointerDown=function(se,ce){ye.prototype.pointerDown.call(this,se,ce),this.isMoved=!1,this.pointerDownPoint=se,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(se),this._state="creating")},ue.prototype.manipulate=function(se){ye.prototype.manipulate.call(this,se),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(se.x-this.pointerDownPoint.x)>5||Math.abs(se.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(se){ye.prototype.resize.call(this,se),this.setSize()},ue.prototype.sizeCaption=function(){var se=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=se.width+2*this.PADDING,this.captionBoxHeight=se.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ke.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')"]]),ke.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 se=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(ce){ce.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ce){ce.key==="Enter"&&se.finishTextEditing(se.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ce){ce.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){se.finishTextEditing(se.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){se.finishTextEditing(se.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(se){this.setCaptionText(se.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ue.prototype.setFont=function(se){this.captionElement&&ke.setAttributes(this.captionElement,[["font-family",se]]),this.fontFamily=se,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ue.prototype.setTextColor=function(se){this.captionElement&&ke.setAttributes(this.captionElement,[["fill",se]]),this.textColor=se,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ue.prototype.setSize=function(){ye.prototype.setSize.call(this),ke.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ue.prototype.pointerUp=function(se){ye.prototype.pointerUp.call(this,se),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.dblClick=function(se,ce){ye.prototype.dblClick.call(this,se,ce),this.showTextEditor()},ue.prototype.setStrokeColor=function(se){this.strokeColor=se,this.frame&&ke.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(se),this.stateChanged()},ue.prototype.setFillColor=function(se){this.fillColor=se,this.captionBg&&ke.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(se),this.stateChanged()},ue.prototype.setStrokeWidth=function(se){this.strokeWidth=se,this.frame&&ke.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(se){this.strokeDasharray=se,this.frame&&ke.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 se=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},ye.prototype.getState.call(this));return se.typeName=this.typeName,se},ue.prototype.restoreState=function(se){var ce=se;this.fillColor=ce.fillColor,this.strokeColor=ce.strokeColor,this.strokeWidth=ce.strokeWidth,this.strokeDasharray=ce.strokeDasharray,this.textColor=ce.textColor,this.fontFamily=ce.fontFamily,this.captionText=ce.captionText,this.fontSize=ce.fontSize,this.createVisual(),ye.prototype.restoreState.call(this,se),this.setSize()},ue.prototype.scale=function(se,ce){ye.prototype.scale.call(this,se,ce),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}(nt),$t=function(){function ye(ue,se){se===void 0&&(se=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ue,this.cancelable=se}return Object.defineProperty(ye.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ye.prototype.preventDefault=function(){this._defaultPrevented=!0},ye}(),mn=function(ye){function ue(se,ce,de){var ae=ye.call(this,se,!1)||this;return ae.dataUrl=ce,ae.state=de,ae}return Me(ue,ye),ue}($t),on=function(ye){function ue(se,ce,de){de===void 0&&(de=!1);var ae=ye.call(this,se,de)||this;return ae.marker=ce,ae}return Me(ue,ye),ue}($t),nn=function(){function ye(){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 ye.prototype.addEventListener=function(ue,se){this[ue].push(se)},ye.prototype.removeEventListener=function(ue,se){var ce=this[ue].indexOf(se);ce>-1&&this[ue].splice(ce,1)},ye}(),en=function(){function ye(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 ht,this._isOpen=!1,this.undoRedoManager=new ot,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new nn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ye.instanceCounter++,this.styles=new ze(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(ye.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ye,qe,Dt,Pt,at,Yt,It,Ct,Zt,Bt,ut,Nt,Sn]},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ye,qe,Dt,Pt,Yt,It,Ct]},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ye,qe,Dt,Pt,It]},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ue){var se=this;this._availableMarkerTypes.splice(0),ue.forEach(function(ce){if(typeof ce=="string"){var de=se.ALL_MARKER_TYPES.find(function(ae){return ae.typeName===ce});de!==void 0&&se._availableMarkerTypes.push(de)}else se._availableMarkerTypes.push(ce)})},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ye.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(ye.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ye.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),he.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ye.prototype.show=function(){var ue=this;this.styles.styleSheetRoot===void 0&&Ee.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ee.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(se){return se(new $t(ue))})},ye.prototype.render=function(){return Pe(this,void 0,void 0,function(){var ue;return pt(this,function(se){switch(se.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 se.sent(),[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,se.sent()]}})})},ye.prototype.close=function(ue){var se=this;if(ue===void 0&&(ue=!1),this.isOpen){var ce=!1;ue||this.eventListeners.beforeclose.forEach(function(de){var ae=new $t(se,!0);de(ae),ae.defaultPrevented&&(ce=!0)}),ce||(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(de){return de(new $t(se))}),this.detachEvents(),this._isOpen=!1)}},ye.prototype.addMarkersToToolbar=function(){for(var ue,se=[],ce=0;ce<arguments.length;ce++)se[ce]=arguments[ce];(ue=this._availableMarkerTypes).push.apply(ue,se)},ye.prototype.addRenderEventListener=function(ue){this.addEventListener("render",function(se){ue(se.dataUrl,se.state)})},ye.prototype.removeRenderEventListener=function(ue){},ye.prototype.addCloseEventListener=function(ue){this.addEventListener("close",function(){ue()})},ye.prototype.removeCloseEventListener=function(ue){},ye.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))},ye.prototype.onPopupTargetResize=function(){var ue=1*this.target.clientWidth/this.target.clientHeight,se=this.editorCanvas.clientWidth/ue>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ue:this.editorCanvas.clientWidth,ce=se<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ue;this.resize(se,ce)},ye.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ye.prototype.resize=function(ue,se){this._isResizing=!0;var ce=ue/this.imageWidth,de=se/this.imageHeight;this.imageWidth=Math.round(ue),this.imageHeight=Math.round(se),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(ce,de),this._isResizing=!1},ye.prototype.scaleMarkers=function(ue,se){var ce,de=this;this._currentMarker&&this._currentMarker instanceof Pt?this._currentMarker.scale(ue,se):(ce=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ae){ae!==de._currentMarker&&ae.scale(ue,se)}),ce!==void 0&&this.setCurrentMarker(ce)},ye.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"},ye.prototype.setTopLeft=function(){var ue=this.editingTarget.getBoundingClientRect(),se=this.editorCanvas.getBoundingClientRect();this.left=ue.left-se.left,this.top=ue.top-se.top},ye.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)},ye.prototype.addDefs=function(){for(var ue,se=[],ce=0;ce<arguments.length;ce++)se[ce]=arguments[ce];this.defs=ke.createDefs(),this.addDefsToImage(),(ue=this.defs).append.apply(ue,se)},ye.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ye.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)},ye.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ye.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ye.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)},ye.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ye.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)},ye.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()},ye.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")},ye.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"},ye.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ye.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 He(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 st(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ye.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ye.prototype.removeMarker=function(ue){this.markerImage.removeChild(ue.container),this.markers.indexOf(ue)>-1&&this.markers.splice(this.markers.indexOf(ue),1),ue.dispose()},ye.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())},ye.prototype.toolbarButtonClicked=function(ue,se){if(ue==="marker"&&se!==void 0)this.createNewMarker(se);else if(ue==="action")switch(se){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()}},ye.prototype.deleteSelectedMarker=function(){var ue=this;if(this._currentMarker!==void 0){var se=!1;if(this.eventListeners.markerbeforedelete.forEach(function(de){var ae=new on(ue,ue._currentMarker,!0);de(ae),ae.defaultPrevented&&(se=!0)}),!se){var ce=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(de){return de(new on(ue,ce))})}}},ye.prototype.clear=function(){var ue=this,se=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Be){var ft=new on(ue,void 0,!0);Be(ft),ft.defaultPrevented&&(se=!0)}),!se)){this.setCurrentMarker();for(var ce=function(Be){var ft=de.markers[Be];de.setCurrentMarker(de.markers[Be]),de._currentMarker.dispose(),de.markerImage.removeChild(de._currentMarker.container),de.markers.splice(de.markers.indexOf(de._currentMarker),1),de.eventListeners.markerdelete.forEach(function(Fe){return Fe(new on(ue,ft))})},de=this,ae=this.markers.length-1;ae>=0;ae--)ce(ae);this.addUndoStep()}},Object.defineProperty(ye.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ye.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))},ye.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)},ye.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ye.prototype.addUndoStep=function(){var ue=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var se=this.getState(),ce=this.undoRedoManager.getLastUndoStep();if(!ce||ce.width===se.width&&ce.height===se.height){var de=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(se),de<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ae){return ae(new $t(ue))})}else this.undoRedoManager.replaceLastUndoStep(se),this.eventListeners.statechange.forEach(function(ae){return ae(new $t(ue))})}},ye.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ye.prototype.undoStep=function(){var ue=this,se=this.undoRedoManager.undo();se!==void 0&&(this.restoreState(se),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ce){return ce(new $t(ue))}))},ye.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ye.prototype.redoStep=function(){var ue=this,se=this.undoRedoManager.redo();se!==void 0&&(this.restoreState(se),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ce){return ce(new $t(ue))}))},ye.prototype.stepZoom=function(){var ue=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ue<this.zoomSteps.length-1?this.zoomSteps[ue+1]:this.zoomSteps[0]},ye.prototype.panTo=function(ue){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ue.x,top:this.prevPanPoint.y-ue.y}),this.prevPanPoint=ue},ye.prototype.startRenderAndClose=function(){return Pe(this,void 0,void 0,function(){var ue,se,ce=this;return pt(this,function(de){switch(de.label){case 0:return[4,this.render()];case 1:return ue=de.sent(),se=this.getState(),this.eventListeners.render.forEach(function(ae){return ae(new mn(ce,ue,se))}),this.close(!0),[2]}})})},ye.prototype.getState=function(ue){ue===!0&&this.setCurrentMarker();var se={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ce){return se.markers.push(ce.getState())}),se},ye.prototype.restoreState=function(ue){var se=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ue.markers.forEach(function(ce){var de=se._availableMarkerTypes.find(function(Be){return Be.typeName===ce.typeName});if(de!==void 0){var ae=se.addNewMarker(de);ae.restoreState(ce),se.markers.push(ae)}}),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(ce){return ce(new $t(se))})},ye.prototype.addNewMarker=function(ue){var se=ke.createGroup();return this.markerImage.appendChild(se),new ue(se,this.overlayContainer,this.settings)},ye.prototype.createNewMarker=function(ue){var se,ce=this;(se=typeof ue=="string"?this._availableMarkerTypes.find(function(de){return de.typeName===ue}):ue)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(se),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(se.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(de){return de(new on(ce,ce._currentMarker))}))},ye.prototype.markerCreated=function(ue){var se=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ue),this.setCurrentMarker(ue),ue instanceof qe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(qe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ce){return ce(new on(se,se._currentMarker))})},ye.prototype.colorChanged=function(ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ue,this.settings.defaultStrokeColor=ue)},ye.prototype.fillColorChanged=function(ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ue)},ye.prototype.markerStateChanged=function(ue){var se=this;this.eventListeners.markerchange.forEach(function(ce){return ce(new on(se,ue))})},ye.prototype.setCurrentMarker=function(ue){var se=this;this._currentMarker!==ue&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ce){return ce(new on(se,se._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(ce){return ce(new on(se,se._currentMarker))}))},ye.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 se=this.markers.find(function(ce){return ce.ownsTarget(ue.target)});se!==void 0?(this.setCurrentMarker(se),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))},ye.prototype.onDblClick=function(ue){if(this._isFocused||this.focus(),this.mode==="select"){var se=this.markers.find(function(ce){return ce.ownsTarget(ue.target)});se!==void 0&&se!==this._currentMarker&&this.setCurrentMarker(se),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ue.clientX,ue.clientY),ue.target):this.setCurrentMarker()}},ye.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}))},ye.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()},ye.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ye.prototype.onKeyUp=function(ue){this._currentMarker===void 0||this.notesArea!==void 0||ue.key!=="Delete"&&ue.key!=="Backspace"||this.deleteSelectedMarker()},ye.prototype.clientToLocalCoordinates=function(ue,se){var ce=this.markerImage.getBoundingClientRect();return{x:(ue-ce.left)/this.zoomLevel,y:(se-ce.top)/this.zoomLevel}},ye.prototype.onWindowResize=function(){this.positionUI()},ye.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()},ye.prototype.addLicenseKey=function(ue){he.addKey(ue)},ye.prototype.addEventListener=function(ue,se){this.eventListeners.addEventListener(ue,se)},ye.prototype.removeEventListener=function(ue,se){this.eventListeners.removeEventListener(ue,se)},ye.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(ye.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ye.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(se){return se(new $t(ue))}))},ye.prototype.blur=function(){var ue=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(se){return se(new $t(ue))}))},ye.instanceCounter=0,ye}()},5630:function(An,Ut,oe){"use strict";var me=oe(60499),Me=oe(85899),Pe=oe(18642),pt=oe(72190),ge=oe(42244),ke=oe(92310),he=oe.n(ke),we=oe(18929),Ee=oe(59301),ze=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],vt=(0,Ee.forwardRef)(function(Ie,He){var st,Je=Ie.prefixCls,Ue=Je===void 0?"rc-checkbox":Je,gt=Ie.className,Et=Ie.style,At=Ie.checked,dt=Ie.disabled,nt=Ie.defaultChecked,Ve=nt===void 0?!1:nt,Se=Ie.type,$e=Se===void 0?"checkbox":Se,Ye=Ie.title,ht=Ie.onChange,Xe=(0,ge.Z)(Ie,ze),ut=(0,Ee.useRef)(null),Oe=(0,we.Z)(Ve,{value:At}),Pt=(0,pt.Z)(Oe,2),qe=Pt[0],zt=Pt[1];(0,Ee.useImperativeHandle)(He,function(){return{focus:function(){var It;(It=ut.current)===null||It===void 0||It.focus()},blur:function(){var It;(It=ut.current)===null||It===void 0||It.blur()},input:ut.current}});var Dt=he()(Ue,gt,(st={},(0,Pe.Z)(st,"".concat(Ue,"-checked"),qe),(0,Pe.Z)(st,"".concat(Ue,"-disabled"),dt),st)),Bt=function(It){dt||("checked"in Ie||zt(It.target.checked),ht==null||ht({target:(0,Me.Z)((0,Me.Z)({},Ie),{},{type:$e,checked:It.target.checked}),stopPropagation:function(){It.stopPropagation()},preventDefault:function(){It.preventDefault()},nativeEvent:It.nativeEvent}))};return Ee.createElement("span",{className:Dt,title:Ye,style:Et},Ee.createElement("input",(0,me.Z)({},Xe,{className:"".concat(Ue,"-input"),ref:ut,onChange:Bt,disabled:dt,checked:!!qe,type:$e})),Ee.createElement("span",{className:"".concat(Ue,"-inner")}))});Ut.Z=vt},31561:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return $e}});var me=oe(60499),Me=oe(18642),Pe=oe(72190),pt=oe(42244),ge=oe(35593),ke=oe(92310),he=oe.n(ke),we=oe(8654),Ee=oe(59301),ze=oe(10228),vt=oe(16089),Ie=ze.Z.ESC,He=ze.Z.TAB;function st(Ye){var ht=Ye.visible,Xe=Ye.triggerRef,ut=Ye.onVisibleChange,Oe=Ye.autoFocus,Pt=Ye.overlayRef,qe=Ee.useRef(!1),zt=function(){if(ht){var It,Qe;(It=Xe.current)===null||It===void 0||(Qe=It.focus)===null||Qe===void 0||Qe.call(It),ut==null||ut(!1)}},Dt=function(){var It;return(It=Pt.current)!==null&&It!==void 0&&It.focus?(Pt.current.focus(),qe.current=!0,!0):!1},Bt=function(It){switch(It.keyCode){case Ie:zt();break;case He:{var Qe=!1;qe.current||(Qe=Dt()),Qe?It.preventDefault():zt();break}}};Ee.useEffect(function(){return ht?(window.addEventListener("keydown",Bt),Oe&&(0,vt.Z)(Dt,3),function(){window.removeEventListener("keydown",Bt),qe.current=!1}):function(){qe.current=!1}},[ht])}var Je=(0,Ee.forwardRef)(function(Ye,ht){var Xe=Ye.overlay,ut=Ye.arrow,Oe=Ye.prefixCls,Pt=(0,Ee.useMemo)(function(){var zt;return typeof Xe=="function"?zt=Xe():zt=Xe,zt},[Xe]),qe=(0,we.sQ)(ht,Pt==null?void 0:Pt.ref);return Ee.createElement(Ee.Fragment,null,ut&&Ee.createElement("div",{className:"".concat(Oe,"-arrow")}),Ee.cloneElement(Pt,{ref:(0,we.Yr)(Pt)?qe:void 0}))}),Ue=Je,gt={adjustX:1,adjustY:1},Et=[0,0],At={topLeft:{points:["bl","tl"],overflow:gt,offset:[0,-4],targetOffset:Et},top:{points:["bc","tc"],overflow:gt,offset:[0,-4],targetOffset:Et},topRight:{points:["br","tr"],overflow:gt,offset:[0,-4],targetOffset:Et},bottomLeft:{points:["tl","bl"],overflow:gt,offset:[0,4],targetOffset:Et},bottom:{points:["tc","bc"],overflow:gt,offset:[0,4],targetOffset:Et},bottomRight:{points:["tr","br"],overflow:gt,offset:[0,4],targetOffset:Et}},dt=At,nt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ve(Ye,ht){var Xe,ut=Ye.arrow,Oe=ut===void 0?!1:ut,Pt=Ye.prefixCls,qe=Pt===void 0?"rc-dropdown":Pt,zt=Ye.transitionName,Dt=Ye.animation,Bt=Ye.align,St=Ye.placement,It=St===void 0?"bottomLeft":St,Qe=Ye.placements,be=Qe===void 0?dt:Qe,Ct=Ye.getPopupContainer,Yt=Ye.showAction,Zt=Ye.hideAction,at=Ye.overlayClassName,ot=Ye.overlayStyle,Nt=Ye.visible,Sn=Ye.trigger,$t=Sn===void 0?["hover"]:Sn,mn=Ye.autoFocus,on=Ye.overlay,nn=Ye.children,en=Ye.onVisibleChange,ye=(0,pt.Z)(Ye,nt),ue=Ee.useState(),se=(0,Pe.Z)(ue,2),ce=se[0],de=se[1],ae="visible"in Ye?Nt:ce,Be=Ee.useRef(null),ft=Ee.useRef(null),Fe=Ee.useRef(null);Ee.useImperativeHandle(ht,function(){return Be.current});var De=function(lt){de(lt),en==null||en(lt)};st({visible:ae,triggerRef:Fe,onVisibleChange:De,autoFocus:mn,overlayRef:ft});var mt=function(lt){var Le=Ye.onOverlayClick;de(!1),Le&&Le(lt)},rt=function(){return Ee.createElement(Ue,{ref:ft,overlay:on,prefixCls:qe,arrow:Oe})},Ge=function(){return typeof on=="function"?rt:rt()},xt=function(){var lt=Ye.minOverlayWidthMatchTrigger,Le=Ye.alignPoint;return"minOverlayWidthMatchTrigger"in Ye?lt:!Le},Xt=function(){var lt=Ye.openClassName;return lt!==void 0?lt:"".concat(qe,"-open")},ct=Ee.cloneElement(nn,{className:he()((Xe=nn.props)===null||Xe===void 0?void 0:Xe.className,ae&&Xt()),ref:(0,we.Yr)(nn)?(0,we.sQ)(Fe,nn.ref):void 0}),Rt=Zt;return!Rt&&$t.indexOf("contextMenu")!==-1&&(Rt=["click"]),Ee.createElement(ge.Z,(0,me.Z)({builtinPlacements:be},ye,{prefixCls:qe,ref:Be,popupClassName:he()(at,(0,Me.Z)({},"".concat(qe,"-show-arrow"),Oe)),popupStyle:ot,action:$t,showAction:Yt,hideAction:Rt,popupPlacement:It,popupAlign:Bt,popupTransitionName:zt,popupAnimation:Dt,popupVisible:ae,stretch:xt()?"minWidth":"",popup:Ge(),onPopupVisibleChange:De,onPopupClick:mt,getPopupContainer:Ct}),ct)}var Se=Ee.forwardRef(Ve),$e=Se},93681:function(An,Ut,oe){"use strict";oe.r(Ut),oe.d(Ut,{BaseInput:function(){return ze},default:function(){return At}});var me=oe(60499),Me=oe(85899),Pe=oe(18642),pt=oe(43749),ge=oe(92310),ke=oe.n(ge),he=oe(59301),we=oe(5643),Ee=function(nt){var Ve,Se,$e=nt.inputElement,Ye=nt.prefixCls,ht=nt.prefix,Xe=nt.suffix,ut=nt.addonBefore,Oe=nt.addonAfter,Pt=nt.className,qe=nt.style,zt=nt.disabled,Dt=nt.readOnly,Bt=nt.focused,St=nt.triggerFocus,It=nt.allowClear,Qe=nt.value,be=nt.handleReset,Ct=nt.hidden,Yt=nt.classes,Zt=nt.classNames,at=nt.dataAttrs,ot=nt.styles,Nt=nt.components,Sn=(Nt==null?void 0:Nt.affixWrapper)||"span",$t=(Nt==null?void 0:Nt.groupWrapper)||"span",mn=(Nt==null?void 0:Nt.wrapper)||"span",on=(Nt==null?void 0:Nt.groupAddon)||"span",nn=(0,he.useRef)(null),en=function(rt){var Ge;(Ge=nn.current)!==null&&Ge!==void 0&&Ge.contains(rt.target)&&(St==null||St())},ye=function(){var rt;if(!It)return null;var Ge=!zt&&!Dt&&Qe,xt="".concat(Ye,"-clear-icon"),Xt=(0,pt.Z)(It)==="object"&&It!==null&&It!==void 0&&It.clearIcon?It.clearIcon:"\u2716";return he.createElement("span",{onClick:be,onMouseDown:function(Rt){return Rt.preventDefault()},className:ke()(xt,(rt={},(0,Pe.Z)(rt,"".concat(xt,"-hidden"),!Ge),(0,Pe.Z)(rt,"".concat(xt,"-has-suffix"),!!Xe),rt)),role:"button",tabIndex:-1},Xt)},ue=(0,he.cloneElement)($e,{value:Qe,hidden:Ct,className:ke()((Ve=$e.props)===null||Ve===void 0?void 0:Ve.className,!(0,we.X3)(nt)&&!(0,we.He)(nt)&&Pt)||null,style:(0,Me.Z)((0,Me.Z)({},(Se=$e.props)===null||Se===void 0?void 0:Se.style),!(0,we.X3)(nt)&&!(0,we.He)(nt)?qe:{})});if((0,we.X3)(nt)){var se,ce="".concat(Ye,"-affix-wrapper"),de=ke()(ce,(se={},(0,Pe.Z)(se,"".concat(ce,"-disabled"),zt),(0,Pe.Z)(se,"".concat(ce,"-focused"),Bt),(0,Pe.Z)(se,"".concat(ce,"-readonly"),Dt),(0,Pe.Z)(se,"".concat(ce,"-input-with-clear-btn"),Xe&&It&&Qe),se),!(0,we.He)(nt)&&Pt,Yt==null?void 0:Yt.affixWrapper,Zt==null?void 0:Zt.affixWrapper),ae=(Xe||It)&&he.createElement("span",{className:ke()("".concat(Ye,"-suffix"),Zt==null?void 0:Zt.suffix),style:ot==null?void 0:ot.suffix},ye(),Xe);ue=he.createElement(Sn,(0,me.Z)({className:de,style:(0,Me.Z)((0,Me.Z)({},(0,we.He)(nt)?void 0:qe),ot==null?void 0:ot.affixWrapper),hidden:!(0,we.He)(nt)&&Ct,onClick:en},at==null?void 0:at.affixWrapper,{ref:nn}),ht&&he.createElement("span",{className:ke()("".concat(Ye,"-prefix"),Zt==null?void 0:Zt.prefix),style:ot==null?void 0:ot.prefix},ht),(0,he.cloneElement)($e,{value:Qe,hidden:null}),ae)}if((0,we.He)(nt)){var Be="".concat(Ye,"-group"),ft="".concat(Be,"-addon"),Fe=ke()("".concat(Ye,"-wrapper"),Be,Yt==null?void 0:Yt.wrapper),De=ke()("".concat(Ye,"-group-wrapper"),Pt,Yt==null?void 0:Yt.group);return he.createElement($t,{className:De,style:qe,hidden:Ct},he.createElement(mn,{className:Fe},ut&&he.createElement(on,{className:ft},ut),(0,he.cloneElement)(ue,{hidden:null}),Oe&&he.createElement(on,{className:ft},Oe)))}return ue},ze=Ee,vt=oe(77654),Ie=oe(72190),He=oe(42244),st=oe(18929),Je=oe(2738),Ue=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],gt=(0,he.forwardRef)(function(dt,nt){var Ve=dt.autoComplete,Se=dt.onChange,$e=dt.onFocus,Ye=dt.onBlur,ht=dt.onPressEnter,Xe=dt.onKeyDown,ut=dt.prefixCls,Oe=ut===void 0?"rc-input":ut,Pt=dt.disabled,qe=dt.htmlSize,zt=dt.className,Dt=dt.maxLength,Bt=dt.suffix,St=dt.showCount,It=dt.type,Qe=It===void 0?"text":It,be=dt.classes,Ct=dt.classNames,Yt=dt.styles,Zt=(0,He.Z)(dt,Ue),at=(0,st.Z)(dt.defaultValue,{value:dt.value}),ot=(0,Ie.Z)(at,2),Nt=ot[0],Sn=ot[1],$t=(0,he.useState)(!1),mn=(0,Ie.Z)($t,2),on=mn[0],nn=mn[1],en=(0,he.useRef)(null),ye=function(De){en.current&&(0,we.nH)(en.current,De)};(0,he.useImperativeHandle)(nt,function(){return{focus:ye,blur:function(){var De;(De=en.current)===null||De===void 0||De.blur()},setSelectionRange:function(De,mt,rt){var Ge;(Ge=en.current)===null||Ge===void 0||Ge.setSelectionRange(De,mt,rt)},select:function(){var De;(De=en.current)===null||De===void 0||De.select()},input:en.current}}),(0,he.useEffect)(function(){nn(function(Fe){return Fe&&Pt?!1:Fe})},[Pt]);var ue=function(De){dt.value===void 0&&Sn(De.target.value),en.current&&(0,we.rJ)(en.current,De,Se)},se=function(De){ht&&De.key==="Enter"&&ht(De),Xe==null||Xe(De)},ce=function(De){nn(!0),$e==null||$e(De)},de=function(De){nn(!1),Ye==null||Ye(De)},ae=function(De){Sn(""),ye(),en.current&&(0,we.rJ)(en.current,De,Se)},Be=function(){var De=(0,Je.Z)(dt,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return he.createElement("input",(0,me.Z)({autoComplete:Ve},De,{onChange:ue,onFocus:ce,onBlur:de,onKeyDown:se,className:ke()(Oe,(0,Pe.Z)({},"".concat(Oe,"-disabled"),Pt),Ct==null?void 0:Ct.input),style:Yt==null?void 0:Yt.input,ref:en,size:qe,type:Qe}))},ft=function(){var De=Number(Dt)>0;if(Bt||St){var mt=(0,we.D7)(Nt),rt=(0,vt.Z)(mt).length,Ge=(0,pt.Z)(St)==="object"?St.formatter({value:mt,count:rt,maxLength:Dt}):"".concat(rt).concat(De?" / ".concat(Dt):"");return he.createElement(he.Fragment,null,!!St&&he.createElement("span",{className:ke()("".concat(Oe,"-show-count-suffix"),(0,Pe.Z)({},"".concat(Oe,"-show-count-has-suffix"),!!Bt),Ct==null?void 0:Ct.count),style:(0,Me.Z)({},Yt==null?void 0:Yt.count)},Ge),Bt)}return null};return he.createElement(ze,(0,me.Z)({},Zt,{prefixCls:Oe,className:zt,inputElement:Be(),handleReset:ae,value:(0,we.D7)(Nt),focused:on,triggerFocus:ye,suffix:ft(),disabled:Pt,classes:be,classNames:Ct,styles:Yt}))}),Et=gt,At=Et},5643:function(An,Ut,oe){"use strict";oe.d(Ut,{D7:function(){return ge},He:function(){return me},X3:function(){return Me},nH:function(){return pt},rJ:function(){return Pe}});function me(ke){return!!(ke.addonBefore||ke.addonAfter)}function Me(ke){return!!(ke.prefix||ke.suffix||ke.allowClear)}function Pe(ke,he,we,Ee){if(we){var ze=he;if(he.type==="click"){var vt=ke.cloneNode(!0);ze=Object.create(he,{target:{value:vt},currentTarget:{value:vt}}),vt.value="",we(ze);return}if(Ee!==void 0){ze=Object.create(he,{target:{value:ke},currentTarget:{value:ke}}),ke.value=Ee,we(ze);return}we(ze)}}function pt(ke,he){if(ke){ke.focus(he);var we=he||{},Ee=we.cursor;if(Ee){var ze=ke.value.length;switch(Ee){case"start":ke.setSelectionRange(0,0);break;case"end":ke.setSelectionRange(ze,ze);break;default:ke.setSelectionRange(0,ze)}}}}function ge(ke){return typeof ke=="undefined"||ke===null?"":String(ke)}},15285:function(An,Ut,oe){"use strict";oe.d(Ut,{iz:function(){return Mn},ck:function(){return qn},BW:function(){return En},sN:function(){return qn},Wd:function(){return Lt},ZP:function(){return cr},Xl:function(){return Xe}});var me=oe(60499),Me=oe(18642),Pe=oe(85899),pt=oe(77654),ge=oe(72190),ke=oe(42244),he=oe(92310),we=oe.n(he),Ee=oe(83836),ze=oe(18929),vt=oe(13697),Ie=oe(48736),He=oe(59301),st=oe(4676),Je=He.createContext(null);function Ue(Mt,an){return Mt===void 0?null:"".concat(Mt,"-").concat(an)}function gt(Mt){var an=He.useContext(Je);return Ue(an,Mt)}var Et=oe(80547),At=["children","locked"],dt=He.createContext(null);function nt(Mt,an){var cn=(0,Pe.Z)({},Mt);return Object.keys(an).forEach(function(Cn){var un=an[Cn];un!==void 0&&(cn[Cn]=un)}),cn}function Ve(Mt){var an=Mt.children,cn=Mt.locked,Cn=(0,ke.Z)(Mt,At),un=He.useContext(dt),vn=(0,Et.Z)(function(){return nt(un,Cn)},[un,Cn],function(pn,Pn){return!cn&&(pn[0]!==Pn[0]||!(0,vt.Z)(pn[1],Pn[1],!0))});return He.createElement(dt.Provider,{value:vn},an)}var Se=[],$e=He.createContext(null);function Ye(){return He.useContext($e)}var ht=He.createContext(Se);function Xe(Mt){var an=He.useContext(ht);return He.useMemo(function(){return Mt!==void 0?[].concat((0,pt.Z)(an),[Mt]):an},[an,Mt])}var ut=He.createContext(null),Oe=He.createContext({}),Pt=Oe,qe=oe(29194);function zt(Mt){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,qe.Z)(Mt)){var cn=Mt.nodeName.toLowerCase(),Cn=["input","select","textarea","button"].includes(cn)||Mt.isContentEditable||cn==="a"&&!!Mt.getAttribute("href"),un=Mt.getAttribute("tabindex"),vn=Number(un),pn=null;return un&&!Number.isNaN(vn)?pn=vn:Cn&&pn===null&&(pn=0),Cn&&Mt.disabled&&(pn=null),pn!==null&&(pn>=0||an&&pn<0)}return!1}function Dt(Mt){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,cn=(0,pt.Z)(Mt.querySelectorAll("*")).filter(function(Cn){return zt(Cn,an)});return zt(Mt,an)&&cn.unshift(Mt),cn}var Bt=null;function St(){Bt=document.activeElement}function It(){Bt=null}function Qe(){if(Bt)try{Bt.focus()}catch(Mt){}}function be(Mt,an){if(an.keyCode===9){var cn=Dt(Mt),Cn=cn[an.shiftKey?0:cn.length-1],un=Cn===document.activeElement||Mt===document.activeElement;if(un){var vn=cn[an.shiftKey?cn.length-1:0];vn.focus(),an.preventDefault()}}}var Ct=oe(10228),Yt=oe(16089),Zt=Ct.Z.LEFT,at=Ct.Z.RIGHT,ot=Ct.Z.UP,Nt=Ct.Z.DOWN,Sn=Ct.Z.ENTER,$t=Ct.Z.ESC,mn=Ct.Z.HOME,on=Ct.Z.END,nn=[ot,Nt,Zt,at];function en(Mt,an,cn,Cn){var un,vn,pn,Pn,Vn="prev",er="next",pr="children",mr="parent";if(Mt==="inline"&&Cn===Sn)return{inlineTrigger:!0};var Pr=(un={},(0,Me.Z)(un,ot,Vn),(0,Me.Z)(un,Nt,er),un),Ir=(vn={},(0,Me.Z)(vn,Zt,cn?er:Vn),(0,Me.Z)(vn,at,cn?Vn:er),(0,Me.Z)(vn,Nt,pr),(0,Me.Z)(vn,Sn,pr),vn),Lr=(pn={},(0,Me.Z)(pn,ot,Vn),(0,Me.Z)(pn,Nt,er),(0,Me.Z)(pn,Sn,pr),(0,Me.Z)(pn,$t,mr),(0,Me.Z)(pn,Zt,cn?pr:mr),(0,Me.Z)(pn,at,cn?mr:pr),pn),$r={inline:Pr,horizontal:Ir,vertical:Lr,inlineSub:Pr,horizontalSub:Lr,verticalSub:Lr},Hr=(Pn=$r["".concat(Mt).concat(an?"":"Sub")])===null||Pn===void 0?void 0:Pn[Cn];switch(Hr){case Vn:return{offset:-1,sibling:!0};case er:return{offset:1,sibling:!0};case mr:return{offset:-1,sibling:!1};case pr:return{offset:1,sibling:!1};default:return null}}function ye(Mt){for(var an=Mt;an;){if(an.getAttribute("data-menu-list"))return an;an=an.parentElement}return null}function ue(Mt,an){for(var cn=Mt||document.activeElement;cn;){if(an.has(cn))return cn;cn=cn.parentElement}return null}function se(Mt,an){var cn=Dt(Mt,!0);return cn.filter(function(Cn){return an.has(Cn)})}function ce(Mt,an,cn){var Cn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Mt)return null;var un=se(Mt,an),vn=un.length,pn=un.findIndex(function(Pn){return cn===Pn});return Cn<0?pn===-1?pn=vn-1:pn-=1:Cn>0&&(pn+=1),pn=(pn+vn)%vn,un[pn]}var de=function(an,cn){var Cn=new Set,un=new Map,vn=new Map;return an.forEach(function(pn){var Pn=document.querySelector("[data-menu-id='".concat(Ue(cn,pn),"']"));Pn&&(Cn.add(Pn),vn.set(Pn,pn),un.set(pn,Pn))}),{elements:Cn,key2element:un,element2key:vn}};function ae(Mt,an,cn,Cn,un,vn,pn,Pn,Vn,er){var pr=He.useRef(),mr=He.useRef();mr.current=an;var Pr=function(){Yt.Z.cancel(pr.current)};return He.useEffect(function(){return function(){Pr()}},[]),function(Ir){var Lr=Ir.which;if([].concat(nn,[Sn,$t,mn,on]).includes(Lr)){var $r=vn(),Hr=de($r,Cn),Zr=Hr,gr=Zr.elements,zr=Zr.key2element,Cr=Zr.element2key,lr=zr.get(an),jr=ue(lr,gr),li=Cr.get(jr),Dr=en(Mt,pn(li,!0).length===1,cn,Lr);if(!Dr&&Lr!==mn&&Lr!==on)return;(nn.includes(Lr)||[mn,on].includes(Lr))&&Ir.preventDefault();var Jn=function(vi){if(vi){var Ui=vi,Or=vi.querySelector("a");Or!=null&&Or.getAttribute("href")&&(Ui=Or);var _r=Cr.get(vi);Pn(_r),Pr(),pr.current=(0,Yt.Z)(function(){mr.current===_r&&Ui.focus()})}};if([mn,on].includes(Lr)||Dr.sibling||!jr){var Xn;!jr||Mt==="inline"?Xn=un.current:Xn=ye(jr);var Wr,Er=se(Xn,gr);Lr===mn?Wr=Er[0]:Lr===on?Wr=Er[Er.length-1]:Wr=ce(Xn,gr,jr,Dr.offset),Jn(Wr)}else if(Dr.inlineTrigger)Vn(li);else if(Dr.offset>0)Vn(li,!0),Pr(),pr.current=(0,Yt.Z)(function(){Hr=de($r,Cn);var Bi=jr.getAttribute("aria-controls"),vi=document.getElementById(Bi),Ui=ce(vi,Hr.elements);Jn(Ui)},5);else if(Dr.offset<0){var Jr=pn(li,!0),ci=Jr[Jr.length-2],ti=zr.get(ci);Vn(ci,!1),Jn(ti)}}er==null||er(Ir)}}function Be(Mt){Promise.resolve().then(Mt)}var ft="__RC_UTIL_PATH_SPLIT__",Fe=function(an){return an.join(ft)},De=function(an){return an.split(ft)},mt="rc-menu-more";function rt(){var Mt=He.useState({}),an=(0,ge.Z)(Mt,2),cn=an[1],Cn=(0,He.useRef)(new Map),un=(0,He.useRef)(new Map),vn=He.useState([]),pn=(0,ge.Z)(vn,2),Pn=pn[0],Vn=pn[1],er=(0,He.useRef)(0),pr=(0,He.useRef)(!1),mr=function(){pr.current||cn({})},Pr=(0,He.useCallback)(function(zr,Cr){var lr=Fe(Cr);un.current.set(lr,zr),Cn.current.set(zr,lr),er.current+=1;var jr=er.current;Be(function(){jr===er.current&&mr()})},[]),Ir=(0,He.useCallback)(function(zr,Cr){var lr=Fe(Cr);un.current.delete(lr),Cn.current.delete(zr)},[]),Lr=(0,He.useCallback)(function(zr){Vn(zr)},[]),$r=(0,He.useCallback)(function(zr,Cr){var lr=Cn.current.get(zr)||"",jr=De(lr);return Cr&&Pn.includes(jr[0])&&jr.unshift(mt),jr},[Pn]),Hr=(0,He.useCallback)(function(zr,Cr){return zr.some(function(lr){var jr=$r(lr,!0);return jr.includes(Cr)})},[$r]),Zr=function(){var Cr=(0,pt.Z)(Cn.current.keys());return Pn.length&&Cr.push(mt),Cr},gr=(0,He.useCallback)(function(zr){var Cr="".concat(Cn.current.get(zr)).concat(ft),lr=new Set;return(0,pt.Z)(un.current.keys()).forEach(function(jr){jr.startsWith(Cr)&&lr.add(un.current.get(jr))}),lr},[]);return He.useEffect(function(){return function(){pr.current=!0}},[]),{registerPath:Pr,unregisterPath:Ir,refreshOverflowKeys:Lr,isSubPathKey:Hr,getKeyPath:$r,getKeys:Zr,getSubPathKeys:gr}}function Ge(Mt){var an=He.useRef(Mt);an.current=Mt;var cn=He.useCallback(function(){for(var Cn,un=arguments.length,vn=new Array(un),pn=0;pn<un;pn++)vn[pn]=arguments[pn];return(Cn=an.current)===null||Cn===void 0?void 0:Cn.call.apply(Cn,[an].concat(vn))},[]);return Mt?cn:void 0}var xt=Math.random().toFixed(5).toString().slice(2),Xt=0;function ct(Mt){var an=(0,ze.Z)(Mt,{value:Mt}),cn=(0,ge.Z)(an,2),Cn=cn[0],un=cn[1];return He.useEffect(function(){Xt+=1;var vn="".concat(xt,"-").concat(Xt);un("rc-menu-uuid-".concat(vn))},[]),Cn}var Rt=oe(38705),rn=oe(17212),lt=oe(39153),Le=oe(55401),it=oe(2738),Ot=oe(8654);function Ft(Mt,an,cn,Cn){var un=He.useContext(dt),vn=un.activeKey,pn=un.onActive,Pn=un.onInactive,Vn={active:vn===Mt};return an||(Vn.onMouseEnter=function(er){cn==null||cn({key:Mt,domEvent:er}),pn(Mt)},Vn.onMouseLeave=function(er){Cn==null||Cn({key:Mt,domEvent:er}),Pn(Mt)}),Vn}function Qt(Mt){var an=He.useContext(dt),cn=an.mode,Cn=an.rtl,un=an.inlineIndent;if(cn!=="inline")return null;var vn=Mt;return Cn?{paddingRight:vn*un}:{paddingLeft:vn*un}}function bn(Mt){var an=Mt.icon,cn=Mt.props,Cn=Mt.children,un;return an===null||an===!1?null:(typeof an=="function"?un=He.createElement(an,(0,Pe.Z)({},cn)):typeof an!="boolean"&&(un=an),un||Cn||null)}var Bn=["item"];function Ln(Mt){var an=Mt.item,cn=(0,ke.Z)(Mt,Bn);return Object.defineProperty(cn,"item",{get:function(){return(0,Ie.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),an}}),cn}var Gn=["title","attribute","elementRef"],Yn=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],_n=["active"],ir=function(Mt){(0,lt.Z)(cn,Mt);var an=(0,Le.Z)(cn);function cn(){return(0,Rt.Z)(this,cn),an.apply(this,arguments)}return(0,rn.Z)(cn,[{key:"render",value:function(){var un=this.props,vn=un.title,pn=un.attribute,Pn=un.elementRef,Vn=(0,ke.Z)(un,Gn),er=(0,it.Z)(Vn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Ie.ZP)(!pn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),He.createElement(Ee.Z.Item,(0,me.Z)({},pn,{title:typeof vn=="string"?vn:void 0},er,{ref:Pn}))}}]),cn}(He.Component),br=He.forwardRef(function(Mt,an){var cn,Cn=Mt.style,un=Mt.className,vn=Mt.eventKey,pn=Mt.warnKey,Pn=Mt.disabled,Vn=Mt.itemIcon,er=Mt.children,pr=Mt.role,mr=Mt.onMouseEnter,Pr=Mt.onMouseLeave,Ir=Mt.onClick,Lr=Mt.onKeyDown,$r=Mt.onFocus,Hr=(0,ke.Z)(Mt,Yn),Zr=gt(vn),gr=He.useContext(dt),zr=gr.prefixCls,Cr=gr.onItemClick,lr=gr.disabled,jr=gr.overflowDisabled,li=gr.itemIcon,Dr=gr.selectedKeys,Jn=gr.onActive,Xn=He.useContext(Pt),Wr=Xn._internalRenderMenuItem,Er="".concat(zr,"-item"),Jr=He.useRef(),ci=He.useRef(),ti=lr||Pn,Bi=(0,Ot.x1)(an,ci),vi=Xe(vn),Ui=function(sr){return{key:vn,keyPath:(0,pt.Z)(vi).reverse(),item:Jr.current,domEvent:sr}},Or=Vn||li,_r=Ft(vn,ti,mr,Pr),si=_r.active,di=(0,ke.Z)(_r,_n),ea=Dr.includes(vn),Va=Qt(vi.length),Da=function(sr){if(!ti){var hr=Ui(sr);Ir==null||Ir(Ln(hr)),Cr(hr)}},_i=function(sr){if(Lr==null||Lr(sr),sr.which===Ct.Z.ENTER){var hr=Ui(sr);Ir==null||Ir(Ln(hr)),Cr(hr)}},da=function(sr){Jn(vn),$r==null||$r(sr)},sa={};Mt.role==="option"&&(sa["aria-selected"]=ea);var Sr=He.createElement(ir,(0,me.Z)({ref:Jr,elementRef:Bi,role:pr===null?"none":pr||"menuitem",tabIndex:Pn?null:-1,"data-menu-id":jr&&Zr?null:Zr},Hr,di,sa,{component:"li","aria-disabled":Pn,style:(0,Pe.Z)((0,Pe.Z)({},Va),Cn),className:we()(Er,(cn={},(0,Me.Z)(cn,"".concat(Er,"-active"),si),(0,Me.Z)(cn,"".concat(Er,"-selected"),ea),(0,Me.Z)(cn,"".concat(Er,"-disabled"),ti),cn),un),onClick:Da,onKeyDown:_i,onFocus:da}),er,He.createElement(bn,{props:(0,Pe.Z)((0,Pe.Z)({},Mt),{},{isSelected:ea}),icon:Or}));return Wr&&(Sr=Wr(Sr,Mt,{selected:ea})),Sr});function wr(Mt,an){var cn=Mt.eventKey,Cn=Ye(),un=Xe(cn);return He.useEffect(function(){if(Cn)return Cn.registerPath(cn,un),function(){Cn.unregisterPath(cn,un)}},[un]),Cn?null:He.createElement(br,(0,me.Z)({},Mt,{ref:an}))}var qn=He.forwardRef(wr),fr=["className","children"],kr=function(an,cn){var Cn=an.className,un=an.children,vn=(0,ke.Z)(an,fr),pn=He.useContext(dt),Pn=pn.prefixCls,Vn=pn.mode,er=pn.rtl;return He.createElement("ul",(0,me.Z)({className:we()(Pn,er&&"".concat(Pn,"-rtl"),"".concat(Pn,"-sub"),"".concat(Pn,"-").concat(Vn==="inline"?"inline":"vertical"),Cn),role:"menu"},vn,{"data-menu-list":!0,ref:cn}),un)},Qn=He.forwardRef(kr);Qn.displayName="SubMenuList";var Nr=Qn,ei=oe(11592);function Vt(Mt,an){return(0,ei.Z)(Mt).map(function(cn,Cn){if(He.isValidElement(cn)){var un,vn,pn=cn.key,Pn=(un=(vn=cn.props)===null||vn===void 0?void 0:vn.eventKey)!==null&&un!==void 0?un:pn,Vn=Pn==null;Vn&&(Pn="tmp_key-".concat([].concat((0,pt.Z)(an),[Cn]).join("-")));var er={key:Pn,eventKey:Pn};return He.cloneElement(cn,er)}return cn})}var Rn=oe(35593),Nn={adjustX:1,adjustY:1},wn={topLeft:{points:["bl","tl"],overflow:Nn},topRight:{points:["br","tr"],overflow:Nn},bottomLeft:{points:["tl","bl"],overflow:Nn},bottomRight:{points:["tr","br"],overflow:Nn},leftTop:{points:["tr","tl"],overflow:Nn},leftBottom:{points:["br","bl"],overflow:Nn},rightTop:{points:["tl","tr"],overflow:Nn},rightBottom:{points:["bl","br"],overflow:Nn}},In={topLeft:{points:["bl","tl"],overflow:Nn},topRight:{points:["br","tr"],overflow:Nn},bottomLeft:{points:["tl","bl"],overflow:Nn},bottomRight:{points:["tr","br"],overflow:Nn},rightTop:{points:["tr","tl"],overflow:Nn},rightBottom:{points:["br","bl"],overflow:Nn},leftTop:{points:["tl","tr"],overflow:Nn},leftBottom:{points:["bl","br"],overflow:Nn}},xn=null;function kn(Mt,an,cn){if(an)return an;if(cn)return cn[Mt]||cn.other}var gn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function bt(Mt){var an=Mt.prefixCls,cn=Mt.visible,Cn=Mt.children,un=Mt.popup,vn=Mt.popupStyle,pn=Mt.popupClassName,Pn=Mt.popupOffset,Vn=Mt.disabled,er=Mt.mode,pr=Mt.onVisibleChange,mr=He.useContext(dt),Pr=mr.getPopupContainer,Ir=mr.rtl,Lr=mr.subMenuOpenDelay,$r=mr.subMenuCloseDelay,Hr=mr.builtinPlacements,Zr=mr.triggerSubMenuAction,gr=mr.forceSubMenuRender,zr=mr.rootClassName,Cr=mr.motion,lr=mr.defaultMotions,jr=He.useState(!1),li=(0,ge.Z)(jr,2),Dr=li[0],Jn=li[1],Xn=Ir?(0,Pe.Z)((0,Pe.Z)({},In),Hr):(0,Pe.Z)((0,Pe.Z)({},wn),Hr),Wr=gn[er],Er=kn(er,Cr,lr),Jr=He.useRef(Er);er!=="inline"&&(Jr.current=Er);var ci=(0,Pe.Z)((0,Pe.Z)({},Jr.current),{},{leavedClassName:"".concat(an,"-hidden"),removeOnLeave:!1,motionAppear:!0}),ti=He.useRef();return He.useEffect(function(){return ti.current=(0,Yt.Z)(function(){Jn(cn)}),function(){Yt.Z.cancel(ti.current)}},[cn]),He.createElement(Rn.Z,{prefixCls:an,popupClassName:we()("".concat(an,"-popup"),(0,Me.Z)({},"".concat(an,"-rtl"),Ir),pn,zr),stretch:er==="horizontal"?"minWidth":null,getPopupContainer:Pr,builtinPlacements:Xn,popupPlacement:Wr,popupVisible:Dr,popup:un,popupStyle:vn,popupAlign:Pn&&{offset:Pn},action:Vn?[]:[Zr],mouseEnterDelay:Lr,mouseLeaveDelay:$r,onPopupVisibleChange:pr,forceRender:gr,popupMotion:ci,fresh:!0},Cn)}var Ae=oe(77900);function je(Mt){var an=Mt.id,cn=Mt.open,Cn=Mt.keyPath,un=Mt.children,vn="inline",pn=He.useContext(dt),Pn=pn.prefixCls,Vn=pn.forceSubMenuRender,er=pn.motion,pr=pn.defaultMotions,mr=pn.mode,Pr=He.useRef(!1);Pr.current=mr===vn;var Ir=He.useState(!Pr.current),Lr=(0,ge.Z)(Ir,2),$r=Lr[0],Hr=Lr[1],Zr=Pr.current?cn:!1;He.useEffect(function(){Pr.current&&Hr(!1)},[mr]);var gr=(0,Pe.Z)({},kn(vn,er,pr));Cn.length>1&&(gr.motionAppear=!1);var zr=gr.onVisibleChanged;return gr.onVisibleChanged=function(Cr){return!Pr.current&&!Cr&&Hr(!0),zr==null?void 0:zr(Cr)},$r?null:He.createElement(Ve,{mode:vn,locked:!Pr.current},He.createElement(Ae.default,(0,me.Z)({visible:Zr},gr,{forceRender:Vn,removeOnLeave:!1,leavedClassName:"".concat(Pn,"-hidden")}),function(Cr){var lr=Cr.className,jr=Cr.style;return He.createElement(Nr,{id:an,className:lr,style:jr},un)}))}var Ze=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],We=["active"],yt=function(an){var cn,Cn=an.style,un=an.className,vn=an.title,pn=an.eventKey,Pn=an.warnKey,Vn=an.disabled,er=an.internalPopupClose,pr=an.children,mr=an.itemIcon,Pr=an.expandIcon,Ir=an.popupClassName,Lr=an.popupOffset,$r=an.popupStyle,Hr=an.onClick,Zr=an.onMouseEnter,gr=an.onMouseLeave,zr=an.onTitleClick,Cr=an.onTitleMouseEnter,lr=an.onTitleMouseLeave,jr=(0,ke.Z)(an,Ze),li=gt(pn),Dr=He.useContext(dt),Jn=Dr.prefixCls,Xn=Dr.mode,Wr=Dr.openKeys,Er=Dr.disabled,Jr=Dr.overflowDisabled,ci=Dr.activeKey,ti=Dr.selectedKeys,Bi=Dr.itemIcon,vi=Dr.expandIcon,Ui=Dr.onItemClick,Or=Dr.onOpenChange,_r=Dr.onActive,si=He.useContext(Pt),di=si._internalRenderSubMenuItem,ea=He.useContext(ut),Va=ea.isSubPathKey,Da=Xe(),_i="".concat(Jn,"-submenu"),da=Er||Vn,sa=He.useRef(),Sr=He.useRef(),xr=mr!=null?mr:Bi,sr=Pr!=null?Pr:vi,hr=Wr.includes(pn),xi=!Jr&&hr,Fi=Va(ti,pn),Zi=Ft(pn,da,Cr,lr),Yi=Zi.active,Wi=(0,ke.Z)(Zi,We),ra=He.useState(!1),Ba=(0,ge.Z)(ra,2),Aa=Ba[0],ho=Ba[1],no=function(Ra){da||ho(Ra)},Fa=function(Ra){no(!0),Zr==null||Zr({key:pn,domEvent:Ra})},al=function(Ra){no(!1),gr==null||gr({key:pn,domEvent:Ra})},po=He.useMemo(function(){return Yi||(Xn!=="inline"?Aa||Va([ci],pn):!1)},[Xn,Yi,ci,Aa,pn,Va]),wo=Qt(Da.length),Xa=function(Ra){da||(zr==null||zr({key:pn,domEvent:Ra}),Xn==="inline"&&Or(pn,!hr))},ya=Ge(function($a){Hr==null||Hr(Ln($a)),Ui($a)}),hi=function(Ra){Xn!=="inline"&&Or(pn,Ra)},Ni=function(){_r(pn)},Ei=li&&"".concat(li,"-popup"),fi=He.createElement("div",(0,me.Z)({role:"menuitem",style:wo,className:"".concat(_i,"-title"),tabIndex:da?null:-1,ref:sa,title:typeof vn=="string"?vn:null,"data-menu-id":Jr&&li?null:li,"aria-expanded":xi,"aria-haspopup":!0,"aria-controls":Ei,"aria-disabled":da,onClick:Xa,onFocus:Ni},Wi),vn,He.createElement(bn,{icon:Xn!=="horizontal"?sr:void 0,props:(0,Pe.Z)((0,Pe.Z)({},an),{},{isOpen:xi,isSubMenu:!0})},He.createElement("i",{className:"".concat(_i,"-arrow")}))),Xi=He.useRef(Xn);if(Xn!=="inline"&&Da.length>1?Xi.current="vertical":Xi.current=Xn,!Jr){var ji=Xi.current;fi=He.createElement(bt,{mode:ji,prefixCls:_i,visible:!er&&xi&&Xn!=="inline",popupClassName:Ir,popupOffset:Lr,popupStyle:$r,popup:He.createElement(Ve,{mode:ji==="horizontal"?"vertical":ji},He.createElement(Nr,{id:Ei,ref:Sr},pr)),disabled:da,onVisibleChange:hi},fi)}var Na=He.createElement(Ee.Z.Item,(0,me.Z)({role:"none"},jr,{component:"li",style:Cn,className:we()(_i,"".concat(_i,"-").concat(Xn),un,(cn={},(0,Me.Z)(cn,"".concat(_i,"-open"),xi),(0,Me.Z)(cn,"".concat(_i,"-active"),po),(0,Me.Z)(cn,"".concat(_i,"-selected"),Fi),(0,Me.Z)(cn,"".concat(_i,"-disabled"),da),cn)),onMouseEnter:Fa,onMouseLeave:al}),fi,!Jr&&He.createElement(je,{id:Ei,open:xi,keyPath:Da},pr));return di&&(Na=di(Na,an,{selected:Fi,active:po,open:xi,disabled:da})),He.createElement(Ve,{onItemClick:ya,mode:Xn==="horizontal"?"vertical":Xn,itemIcon:xr,expandIcon:sr},Na)};function Lt(Mt){var an=Mt.eventKey,cn=Mt.children,Cn=Xe(an),un=Vt(cn,Cn),vn=Ye();He.useEffect(function(){if(vn)return vn.registerPath(an,Cn),function(){vn.unregisterPath(an,Cn)}},[Cn]);var pn;return vn?pn=un:pn=He.createElement(yt,Mt,un),He.createElement(ht.Provider,{value:Cn},pn)}var Jt=oe(43749),Ht=["className","title","eventKey","children"],ln=["children"],yn=function(an){var cn=an.className,Cn=an.title,un=an.eventKey,vn=an.children,pn=(0,ke.Z)(an,Ht),Pn=He.useContext(dt),Vn=Pn.prefixCls,er="".concat(Vn,"-item-group");return He.createElement("li",(0,me.Z)({role:"presentation"},pn,{onClick:function(mr){return mr.stopPropagation()},className:we()(er,cn)}),He.createElement("div",{role:"presentation",className:"".concat(er,"-title"),title:typeof Cn=="string"?Cn:void 0},Cn),He.createElement("ul",{role:"group",className:"".concat(er,"-list")},vn))};function En(Mt){var an=Mt.children,cn=(0,ke.Z)(Mt,ln),Cn=Xe(cn.eventKey),un=Vt(an,Cn),vn=Ye();return vn?un:He.createElement(yn,(0,it.Z)(cn,["warnKey"]),un)}function Mn(Mt){var an=Mt.className,cn=Mt.style,Cn=He.useContext(dt),un=Cn.prefixCls,vn=Ye();return vn?null:He.createElement("li",{role:"separator",className:we()("".concat(un,"-item-divider"),an),style:cn})}var Kt=["label","children","key","type"];function hn(Mt){return(Mt||[]).map(function(an,cn){if(an&&(0,Jt.Z)(an)==="object"){var Cn=an,un=Cn.label,vn=Cn.children,pn=Cn.key,Pn=Cn.type,Vn=(0,ke.Z)(Cn,Kt),er=pn!=null?pn:"tmp-".concat(cn);return vn||Pn==="group"?Pn==="group"?He.createElement(En,(0,me.Z)({key:er},Vn,{title:un}),hn(vn)):He.createElement(Lt,(0,me.Z)({key:er},Vn,{title:un}),hn(vn)):Pn==="divider"?He.createElement(Mn,(0,me.Z)({key:er},Vn)):He.createElement(qn,(0,me.Z)({key:er},Vn),un)}return null}).filter(function(an){return an})}function Hn(Mt,an,cn){var Cn=Mt;return an&&(Cn=hn(an)),Vt(Cn,cn)}var Zn=["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"],Kn=[],jn=He.forwardRef(function(Mt,an){var cn,Cn,un=Mt,vn=un.prefixCls,pn=vn===void 0?"rc-menu":vn,Pn=un.rootClassName,Vn=un.style,er=un.className,pr=un.tabIndex,mr=pr===void 0?0:pr,Pr=un.items,Ir=un.children,Lr=un.direction,$r=un.id,Hr=un.mode,Zr=Hr===void 0?"vertical":Hr,gr=un.inlineCollapsed,zr=un.disabled,Cr=un.disabledOverflow,lr=un.subMenuOpenDelay,jr=lr===void 0?.1:lr,li=un.subMenuCloseDelay,Dr=li===void 0?.1:li,Jn=un.forceSubMenuRender,Xn=un.defaultOpenKeys,Wr=un.openKeys,Er=un.activeKey,Jr=un.defaultActiveFirst,ci=un.selectable,ti=ci===void 0?!0:ci,Bi=un.multiple,vi=Bi===void 0?!1:Bi,Ui=un.defaultSelectedKeys,Or=un.selectedKeys,_r=un.onSelect,si=un.onDeselect,di=un.inlineIndent,ea=di===void 0?24:di,Va=un.motion,Da=un.defaultMotions,_i=un.triggerSubMenuAction,da=_i===void 0?"hover":_i,sa=un.builtinPlacements,Sr=un.itemIcon,xr=un.expandIcon,sr=un.overflowedIndicator,hr=sr===void 0?"...":sr,xi=un.overflowedIndicatorPopupClassName,Fi=un.getPopupContainer,Zi=un.onClick,Yi=un.onOpenChange,Wi=un.onKeyDown,ra=un.openAnimation,Ba=un.openTransitionName,Aa=un._internalRenderMenuItem,ho=un._internalRenderSubMenuItem,no=(0,ke.Z)(un,Zn),Fa=He.useMemo(function(){return Hn(Ir,Pr,Kn)},[Ir,Pr]),al=He.useState(!1),po=(0,ge.Z)(al,2),wo=po[0],Xa=po[1],ya=He.useRef(),hi=ct($r),Ni=Lr==="rtl",Ei=(0,ze.Z)(Xn,{value:Wr,postState:function(La){return La||Kn}}),fi=(0,ge.Z)(Ei,2),Xi=fi[0],ji=fi[1],Na=function(La){var _a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function hl(){ji(La),Yi==null||Yi(La)}_a?(0,st.flushSync)(hl):hl()},$a=He.useState(Xi),Ra=(0,ge.Z)($a,2),ro=Ra[0],ia=Ra[1],aa=He.useRef(!1),Ya=He.useMemo(function(){return(Zr==="inline"||Zr==="vertical")&&gr?["vertical",gr]:[Zr,!1]},[Zr,gr]),Qa=(0,ge.Z)(Ya,2),go=Qa[0],Ja=Qa[1],hs=go==="inline",Dl=He.useState(go),Al=(0,ge.Z)(Dl,2),ol=Al[0],Ds=Al[1],Ll=He.useState(Ja),Oo=(0,ge.Z)(Ll,2),xo=Oo[0],Hl=Oo[1];He.useEffect(function(){Ds(go),Hl(Ja),aa.current&&(hs?ji(ro):Na(Kn))},[go,Ja]);var Ul=He.useState(0),Xl=(0,ge.Z)(Ul,2),As=Xl[0],as=Xl[1],ll=As>=Fa.length-1||ol!=="horizontal"||Cr;He.useEffect(function(){hs&&ia(Xi)},[Xi]),He.useEffect(function(){return aa.current=!0,function(){aa.current=!1}},[]);var qo=rt(),Pa=qo.registerPath,Yl=qo.unregisterPath,Ls=qo.refreshOverflowKeys,Zl=qo.isSubPathKey,ua=qo.getKeyPath,ta=qo.getKeys,za=qo.getSubPathKeys,lo=He.useMemo(function(){return{registerPath:Pa,unregisterPath:Yl}},[Pa,Yl]),ja=He.useMemo(function(){return{isSubPathKey:Zl}},[Zl]);He.useEffect(function(){Ls(ll?Kn:Fa.slice(As+1).map(function(Sa){return Sa.key}))},[As,ll]);var Fo=(0,ze.Z)(Er||Jr&&((cn=Fa[0])===null||cn===void 0?void 0:cn.key),{value:Er}),Zo=(0,ge.Z)(Fo,2),fl=Zo[0],Wo=Zo[1],Fl=Ge(function(Sa){Wo(Sa)}),Bl=Ge(function(){Wo(void 0)});(0,He.useImperativeHandle)(an,function(){return{list:ya.current,focus:function(La){var _a,hl=ta(),jo=de(hl,hi),Wl=jo.elements,sl=jo.key2element,No=jo.element2key,Ql=se(ya.current,Wl),Jl=fl!=null?fl:Ql[0]?No.get(Ql[0]):(_a=Fa.find(function(Qu){return!Qu.props.disabled}))===null||_a===void 0?void 0:_a.key,ql=sl.get(Jl);if(Jl&&ql){var Ps;ql==null||(Ps=ql.focus)===null||Ps===void 0||Ps.call(ql,La)}}}});var $o=(0,ze.Z)(Ui||[],{value:Or,postState:function(La){return Array.isArray(La)?La:La==null?Kn:[La]}}),vu=(0,ge.Z)($o,2),ps=vu[0],ms=vu[1],nu=function(La){if(ti){var _a=La.key,hl=ps.includes(_a),jo;vi?hl?jo=ps.filter(function(sl){return sl!==_a}):jo=[].concat((0,pt.Z)(ps),[_a]):jo=[_a],ms(jo);var Wl=(0,Pe.Z)((0,Pe.Z)({},La),{},{selectedKeys:jo});hl?si==null||si(Wl):_r==null||_r(Wl)}!vi&&Xi.length&&ol!=="inline"&&Na(Kn)},js=Ge(function(Sa){Zi==null||Zi(Ln(Sa)),nu(Sa)}),Bs=Ge(function(Sa,La){var _a=Xi.filter(function(jo){return jo!==Sa});if(La)_a.push(Sa);else if(ol!=="inline"){var hl=za(Sa);_a=_a.filter(function(jo){return!hl.has(jo)})}(0,vt.Z)(Xi,_a,!0)||Na(_a,!0)}),Yu=function(La,_a){var hl=_a!=null?_a:!Xi.includes(La);Bs(La,hl)},os=ae(ol,fl,Ni,hi,ya,ta,ua,Wo,Yu,Wi);He.useEffect(function(){Xa(!0)},[]);var ru=He.useMemo(function(){return{_internalRenderMenuItem:Aa,_internalRenderSubMenuItem:ho}},[Aa,ho]),ls=ol!=="horizontal"||Cr?Fa:Fa.map(function(Sa,La){return He.createElement(Ve,{key:Sa.key,overflowDisabled:La>As},Sa)}),vs=He.createElement(Ee.Z,(0,me.Z)({id:$r,ref:ya,prefixCls:"".concat(pn,"-overflow"),component:"ul",itemComponent:qn,className:we()(pn,"".concat(pn,"-root"),"".concat(pn,"-").concat(ol),er,(Cn={},(0,Me.Z)(Cn,"".concat(pn,"-inline-collapsed"),xo),(0,Me.Z)(Cn,"".concat(pn,"-rtl"),Ni),Cn),Pn),dir:Lr,style:Vn,role:"menu",tabIndex:mr,data:ls,renderRawItem:function(La){return La},renderRawRest:function(La){var _a=La.length,hl=_a?Fa.slice(-_a):null;return He.createElement(Lt,{eventKey:mt,title:hr,disabled:ll,internalPopupClose:_a===0,popupClassName:xi},hl)},maxCount:ol!=="horizontal"||Cr?Ee.Z.INVALIDATE:Ee.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(La){as(La)},onKeyDown:os},no));return He.createElement(Pt.Provider,{value:ru},He.createElement(Je.Provider,{value:hi},He.createElement(Ve,{prefixCls:pn,rootClassName:Pn,mode:ol,openKeys:Xi,rtl:Ni,disabled:zr,motion:wo?Va:null,defaultMotions:wo?Da:null,activeKey:fl,onActive:Fl,onInactive:Bl,selectedKeys:ps,inlineIndent:ea,subMenuOpenDelay:jr,subMenuCloseDelay:Dr,forceSubMenuRender:Jn,builtinPlacements:sa,triggerSubMenuAction:da,getPopupContainer:Fi,itemIcon:Sr,expandIcon:xr,onItemClick:js,onOpenChange:Bs},He.createElement(ut.Provider,{value:ja},vs),He.createElement("div",{style:{display:"none"},"aria-hidden":!0},He.createElement($e.Provider,{value:lo},Fa)))))}),nr=jn,On=nr;On.Item=qn,On.SubMenu=Lt,On.ItemGroup=En,On.Divider=Mn;var cr=On},83836:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return St}});var me=oe(60499),Me=oe(85899),Pe=oe(72190),pt=oe(42244),ge=oe(59301),ke=oe(92310),he=oe.n(ke),we=oe(29301),Ee=oe(34280),ze=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],vt=void 0;function Ie(It,Qe){var be=It.prefixCls,Ct=It.invalidate,Yt=It.item,Zt=It.renderItem,at=It.responsive,ot=It.responsiveDisabled,Nt=It.registerSize,Sn=It.itemKey,$t=It.className,mn=It.style,on=It.children,nn=It.display,en=It.order,ye=It.component,ue=ye===void 0?"div":ye,se=(0,pt.Z)(It,ze),ce=at&&!nn;function de(De){Nt(Sn,De)}ge.useEffect(function(){return function(){de(null)}},[]);var ae=Zt&&Yt!==vt?Zt(Yt,{index:en}):on,Be;Ct||(Be={opacity:ce?0:1,height:ce?0:vt,overflowY:ce?"hidden":vt,order:at?en:vt,pointerEvents:ce?"none":vt,position:ce?"absolute":vt});var ft={};ce&&(ft["aria-hidden"]=!0);var Fe=ge.createElement(ue,(0,me.Z)({className:he()(!Ct&&be,$t),style:(0,Me.Z)((0,Me.Z)({},Be),mn)},ft,se,{ref:Qe}),ae);return at&&(Fe=ge.createElement(we.Z,{onResize:function(mt){var rt=mt.offsetWidth;de(rt)},disabled:ot},Fe)),Fe}var He=ge.forwardRef(Ie);He.displayName="Item";var st=He,Je=oe(6089),Ue=oe(4676),gt=oe(16089);function Et(It){if(typeof MessageChannel=="undefined")(0,gt.Z)(It);else{var Qe=new MessageChannel;Qe.port1.onmessage=function(){return It()},Qe.port2.postMessage(void 0)}}function At(){var It=ge.useRef(null),Qe=function(Ct){It.current||(It.current=[],Et(function(){(0,Ue.unstable_batchedUpdates)(function(){It.current.forEach(function(Yt){Yt()}),It.current=null})})),It.current.push(Ct)};return Qe}function dt(It,Qe){var be=ge.useState(Qe),Ct=(0,Pe.Z)(be,2),Yt=Ct[0],Zt=Ct[1],at=(0,Je.Z)(function(ot){It(function(){Zt(ot)})});return[Yt,at]}var nt=ge.createContext(null),Ve=["component"],Se=["className"],$e=["className"],Ye=function(Qe,be){var Ct=ge.useContext(nt);if(!Ct){var Yt=Qe.component,Zt=Yt===void 0?"div":Yt,at=(0,pt.Z)(Qe,Ve);return ge.createElement(Zt,(0,me.Z)({},at,{ref:be}))}var ot=Ct.className,Nt=(0,pt.Z)(Ct,Se),Sn=Qe.className,$t=(0,pt.Z)(Qe,$e);return ge.createElement(nt.Provider,{value:null},ge.createElement(st,(0,me.Z)({ref:be,className:he()(ot,Sn)},Nt,$t)))},ht=ge.forwardRef(Ye);ht.displayName="RawItem";var Xe=ht,ut=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Oe="responsive",Pt="invalidate";function qe(It){return"+ ".concat(It.length," ...")}function zt(It,Qe){var be=It.prefixCls,Ct=be===void 0?"rc-overflow":be,Yt=It.data,Zt=Yt===void 0?[]:Yt,at=It.renderItem,ot=It.renderRawItem,Nt=It.itemKey,Sn=It.itemWidth,$t=Sn===void 0?10:Sn,mn=It.ssr,on=It.style,nn=It.className,en=It.maxCount,ye=It.renderRest,ue=It.renderRawRest,se=It.prefix,ce=It.suffix,de=It.component,ae=de===void 0?"div":de,Be=It.itemComponent,ft=It.onVisibleChange,Fe=(0,pt.Z)(It,ut),De=mn==="full",mt=At(),rt=dt(mt,null),Ge=(0,Pe.Z)(rt,2),xt=Ge[0],Xt=Ge[1],ct=xt||0,Rt=dt(mt,new Map),rn=(0,Pe.Z)(Rt,2),lt=rn[0],Le=rn[1],it=dt(mt,0),Ot=(0,Pe.Z)(it,2),Ft=Ot[0],Qt=Ot[1],bn=dt(mt,0),Bn=(0,Pe.Z)(bn,2),Ln=Bn[0],Gn=Bn[1],Yn=dt(mt,0),_n=(0,Pe.Z)(Yn,2),ir=_n[0],br=_n[1],wr=dt(mt,0),qn=(0,Pe.Z)(wr,2),fr=qn[0],kr=qn[1],Qn=(0,ge.useState)(null),Nr=(0,Pe.Z)(Qn,2),ei=Nr[0],Vt=Nr[1],Rn=(0,ge.useState)(null),Nn=(0,Pe.Z)(Rn,2),wn=Nn[0],In=Nn[1],xn=ge.useMemo(function(){return wn===null&&De?Number.MAX_SAFE_INTEGER:wn||0},[wn,xt]),kn=(0,ge.useState)(!1),gn=(0,Pe.Z)(kn,2),bt=gn[0],Ae=gn[1],je="".concat(Ct,"-item"),Ze=Math.max(Ft,Ln),We=en===Oe,yt=Zt.length&&We,Lt=en===Pt,Jt=yt||typeof en=="number"&&Zt.length>en,Ht=(0,ge.useMemo)(function(){var vn=Zt;return yt?xt===null&&De?vn=Zt:vn=Zt.slice(0,Math.min(Zt.length,ct/$t)):typeof en=="number"&&(vn=Zt.slice(0,en)),vn},[Zt,$t,xt,en,yt]),ln=(0,ge.useMemo)(function(){return yt?Zt.slice(xn+1):Zt.slice(Ht.length)},[Zt,Ht,yt,xn]),yn=(0,ge.useCallback)(function(vn,pn){var Pn;return typeof Nt=="function"?Nt(vn):(Pn=Nt&&(vn==null?void 0:vn[Nt]))!==null&&Pn!==void 0?Pn:pn},[Nt]),En=(0,ge.useCallback)(at||function(vn){return vn},[at]);function Mn(vn,pn,Pn){wn===vn&&(pn===void 0||pn===ei)||(In(vn),Pn||(Ae(vn<Zt.length-1),ft==null||ft(vn)),pn!==void 0&&Vt(pn))}function Kt(vn,pn){Xt(pn.clientWidth)}function hn(vn,pn){Le(function(Pn){var Vn=new Map(Pn);return pn===null?Vn.delete(vn):Vn.set(vn,pn),Vn})}function Hn(vn,pn){Gn(pn),Qt(Ln)}function Zn(vn,pn){br(pn)}function Kn(vn,pn){kr(pn)}function jn(vn){return lt.get(yn(Ht[vn],vn))}(0,Ee.Z)(function(){if(ct&&typeof Ze=="number"&&Ht){var vn=ir+fr,pn=Ht.length,Pn=pn-1;if(!pn){Mn(0,null);return}for(var Vn=0;Vn<pn;Vn+=1){var er=jn(Vn);if(De&&(er=er||0),er===void 0){Mn(Vn-1,void 0,!0);break}if(vn+=er,Pn===0&&vn<=ct||Vn===Pn-1&&vn+jn(Pn)<=ct){Mn(Pn,null);break}else if(vn+Ze>ct){Mn(Vn-1,vn-er-fr+Ln);break}}ce&&jn(0)+fr>ct&&Vt(null)}},[ct,lt,Ln,ir,fr,yn,Ht]);var nr=bt&&!!ln.length,On={};ei!==null&&yt&&(On={position:"absolute",left:ei,top:0});var cr={prefixCls:je,responsive:yt,component:Be,invalidate:Lt},Mt=ot?function(vn,pn){var Pn=yn(vn,pn);return ge.createElement(nt.Provider,{key:Pn,value:(0,Me.Z)((0,Me.Z)({},cr),{},{order:pn,item:vn,itemKey:Pn,registerSize:hn,display:pn<=xn})},ot(vn,pn))}:function(vn,pn){var Pn=yn(vn,pn);return ge.createElement(st,(0,me.Z)({},cr,{order:pn,key:Pn,item:vn,renderItem:En,itemKey:Pn,registerSize:hn,display:pn<=xn}))},an={order:nr?xn:Number.MAX_SAFE_INTEGER,className:"".concat(je,"-rest"),registerSize:Hn,display:nr},cn=ye||qe,Cn=ue?ge.createElement(nt.Provider,{value:(0,Me.Z)((0,Me.Z)({},cr),an)},ue(ln)):ge.createElement(st,(0,me.Z)({},cr,an),typeof cn=="function"?cn(ln):cn),un=ge.createElement(ae,(0,me.Z)({className:he()(!Lt&&Ct,nn),style:on,ref:Qe},Fe),se&&ge.createElement(st,(0,me.Z)({},cr,{responsive:We,responsiveDisabled:!yt,order:-1,className:"".concat(je,"-prefix"),registerSize:Zn,display:!0}),se),Ht.map(Mt),Jt?Cn:null,ce&&ge.createElement(st,(0,me.Z)({},cr,{responsive:We,responsiveDisabled:!yt,order:xn,className:"".concat(je,"-suffix"),registerSize:Kn,display:!0,style:On}),ce));return We?ge.createElement(we.Z,{onResize:Kt,disabled:!yt},un):un}var Dt=ge.forwardRef(zt);Dt.displayName="Overflow",Dt.Item=Xe,Dt.RESPONSIVE=Oe,Dt.INVALIDATE=Pt;var Bt=Dt,St=Bt},91735:function(An,Ut){"use strict";Ut.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"}},17115:function(An,Ut,oe){"use strict";oe.d(Ut,{ZP:function(){return he}});var me=oe(72190),Me=oe(59301),Pe=oe(47273),pt=0,ge=(0,Pe.Z)();function ke(){var we;return ge?(we=pt,pt+=1):we="TEST_OR_SSR",we}function he(we){var Ee=Me.useState(),ze=(0,me.Z)(Ee,2),vt=ze[0],Ie=ze[1];return Me.useEffect(function(){Ie("rc_select_".concat(ke()))},[]),we||vt}},77861:function(An,Ut,oe){"use strict";oe.d(Ut,{Ac:function(){return xt},Xo:function(){return Ln},Wx:function(){return Yn},ZP:function(){return je},lk:function(){return nt}});var me=oe(60499),Me=oe(77654),Pe=oe(18642),pt=oe(85899),ge=oe(72190),ke=oe(42244),he=oe(43749),we=oe(18929),Ee=oe(48736),ze=oe(59301),vt=oe(92310),Ie=oe.n(vt),He=oe(34280),st=oe(49658),Je=oe(10228),Ue=oe(8654),gt=function(We){var yt=We.className,Lt=We.customizeIcon,Jt=We.customizeIconProps,Ht=We.onMouseDown,ln=We.onClick,yn=We.children,En;return typeof Lt=="function"?En=Lt(Jt):En=Lt,ze.createElement("span",{className:yt,onMouseDown:function(Kt){Kt.preventDefault(),Ht&&Ht(Kt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ln,"aria-hidden":!0},En!==void 0?En:ze.createElement("span",{className:Ie()(yt.split(/\s+/).map(function(Mn){return"".concat(Mn,"-icon")}))},yn))},Et=gt;function At(Ze,We,yt,Lt,Jt){var Ht=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ln=arguments.length>6?arguments[6]:void 0,yn=arguments.length>7?arguments[7]:void 0,En=ze.useMemo(function(){if((0,he.Z)(Lt)==="object")return Lt.clearIcon;if(Jt)return Jt},[Lt,Jt]),Mn=ze.useMemo(function(){return!!(!Ht&&Lt&&(yt.length||ln)&&!(yn==="combobox"&&ln===""))},[Lt,Ht,yt.length,ln,yn]);return{allowClear:Mn,clearIcon:ze.createElement(Et,{className:"".concat(Ze,"-clear"),onMouseDown:We,customizeIcon:En},"\xD7")}}var dt=ze.createContext(null);function nt(){return ze.useContext(dt)}function Ve(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,We=ze.useState(!1),yt=(0,ge.Z)(We,2),Lt=yt[0],Jt=yt[1],Ht=ze.useRef(null),ln=function(){window.clearTimeout(Ht.current)};ze.useEffect(function(){return ln},[]);var yn=function(Mn,Kt){ln(),Ht.current=window.setTimeout(function(){Jt(Mn),Kt&&Kt()},Ze)};return[Lt,yn,ln]}function Se(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,We=ze.useRef(null),yt=ze.useRef(null);ze.useEffect(function(){return function(){window.clearTimeout(yt.current)}},[]);function Lt(Jt){(Jt||We.current===null)&&(We.current=Jt),window.clearTimeout(yt.current),yt.current=window.setTimeout(function(){We.current=null},Ze)}return[function(){return We.current},Lt]}function $e(Ze,We,yt,Lt){var Jt=ze.useRef(null);Jt.current={open:We,triggerOpen:yt,customizedTrigger:Lt},ze.useEffect(function(){function Ht(ln){var yn;if(!((yn=Jt.current)!==null&&yn!==void 0&&yn.customizedTrigger)){var En=ln.target;En.shadowRoot&&ln.composed&&(En=ln.composedPath()[0]||En),Jt.current.open&&Ze().filter(function(Mn){return Mn}).every(function(Mn){return!Mn.contains(En)&&Mn!==En})&&Jt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Ht),function(){return window.removeEventListener("mousedown",Ht)}},[])}var Ye=oe(26112),ht=oe(83836),Xe=function(We,yt){var Lt,Jt,Ht=We.prefixCls,ln=We.id,yn=We.inputElement,En=We.disabled,Mn=We.tabIndex,Kt=We.autoFocus,hn=We.autoComplete,Hn=We.editable,Zn=We.activeDescendantId,Kn=We.value,jn=We.maxLength,nr=We.onKeyDown,On=We.onMouseDown,cr=We.onChange,Mt=We.onPaste,an=We.onCompositionStart,cn=We.onCompositionEnd,Cn=We.open,un=We.attrs,vn=yn||ze.createElement("input",null),pn=vn,Pn=pn.ref,Vn=pn.props,er=Vn.onKeyDown,pr=Vn.onChange,mr=Vn.onMouseDown,Pr=Vn.onCompositionStart,Ir=Vn.onCompositionEnd,Lr=Vn.style;return(0,Ee.Kp)(!("maxLength"in vn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),vn=ze.cloneElement(vn,(0,pt.Z)((0,pt.Z)((0,pt.Z)({type:"search"},Vn),{},{id:ln,ref:(0,Ue.sQ)(yt,Pn),disabled:En,tabIndex:Mn,autoComplete:hn||"off",autoFocus:Kt,className:Ie()("".concat(Ht,"-selection-search-input"),(Lt=vn)===null||Lt===void 0||(Jt=Lt.props)===null||Jt===void 0?void 0:Jt.className),role:"combobox","aria-label":"Search","aria-expanded":Cn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ln,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ln,"_list"),"aria-activedescendant":Cn?Zn:void 0},un),{},{value:Hn?Kn:"",maxLength:jn,readOnly:!Hn,unselectable:Hn?null:"on",style:(0,pt.Z)((0,pt.Z)({},Lr),{},{opacity:Hn?null:0}),onKeyDown:function(Hr){nr(Hr),er&&er(Hr)},onMouseDown:function(Hr){On(Hr),mr&&mr(Hr)},onChange:function(Hr){cr(Hr),pr&&pr(Hr)},onCompositionStart:function(Hr){an(Hr),Pr&&Pr(Hr)},onCompositionEnd:function(Hr){cn(Hr),Ir&&Ir(Hr)},onPaste:Mt})),vn},ut=ze.forwardRef(Xe);ut.displayName="Input";var Oe=ut;function Pt(Ze){return Array.isArray(Ze)?Ze:Ze!==void 0?[Ze]:[]}var qe=typeof window!="undefined"&&window.document&&window.document.documentElement,zt=qe;function Dt(Ze){return Ze!=null}function Bt(Ze){return!Ze&&Ze!==0}function St(Ze){return["string","number"].includes((0,he.Z)(Ze))}function It(Ze){var We=void 0;return Ze&&(St(Ze.title)?We=Ze.title.toString():St(Ze.label)&&(We=Ze.label.toString())),We}function Qe(Ze,We){zt?ze.useLayoutEffect(Ze,We):ze.useEffect(Ze,We)}function be(Ze){var We;return(We=Ze.key)!==null&&We!==void 0?We:Ze.value}var Ct=function(We){We.preventDefault(),We.stopPropagation()},Yt=function(We){var yt=We.id,Lt=We.prefixCls,Jt=We.values,Ht=We.open,ln=We.searchValue,yn=We.autoClearSearchValue,En=We.inputRef,Mn=We.placeholder,Kt=We.disabled,hn=We.mode,Hn=We.showSearch,Zn=We.autoFocus,Kn=We.autoComplete,jn=We.activeDescendantId,nr=We.tabIndex,On=We.removeIcon,cr=We.maxTagCount,Mt=We.maxTagTextLength,an=We.maxTagPlaceholder,cn=an===void 0?function(ci){return"+ ".concat(ci.length," ...")}:an,Cn=We.tagRender,un=We.onToggleOpen,vn=We.onRemove,pn=We.onInputChange,Pn=We.onInputPaste,Vn=We.onInputKeyDown,er=We.onInputMouseDown,pr=We.onInputCompositionStart,mr=We.onInputCompositionEnd,Pr=ze.useRef(null),Ir=(0,ze.useState)(0),Lr=(0,ge.Z)(Ir,2),$r=Lr[0],Hr=Lr[1],Zr=(0,ze.useState)(!1),gr=(0,ge.Z)(Zr,2),zr=gr[0],Cr=gr[1],lr="".concat(Lt,"-selection"),jr=Ht||hn==="multiple"&&yn===!1||hn==="tags"?ln:"",li=hn==="tags"||hn==="multiple"&&yn===!1||Hn&&(Ht||zr);Qe(function(){Hr(Pr.current.scrollWidth)},[jr]);function Dr(ci,ti,Bi,vi,Ui){return ze.createElement("span",{className:Ie()("".concat(lr,"-item"),(0,Pe.Z)({},"".concat(lr,"-item-disabled"),Bi)),title:It(ci)},ze.createElement("span",{className:"".concat(lr,"-item-content")},ti),vi&&ze.createElement(Et,{className:"".concat(lr,"-item-remove"),onMouseDown:Ct,onClick:Ui,customizeIcon:On},"\xD7"))}function Jn(ci,ti,Bi,vi,Ui){var Or=function(si){Ct(si),un(!Ht)};return ze.createElement("span",{onMouseDown:Or},Cn({label:ti,value:ci,disabled:Bi,closable:vi,onClose:Ui}))}function Xn(ci){var ti=ci.disabled,Bi=ci.label,vi=ci.value,Ui=!Kt&&!ti,Or=Bi;if(typeof Mt=="number"&&(typeof Bi=="string"||typeof Bi=="number")){var _r=String(Or);_r.length>Mt&&(Or="".concat(_r.slice(0,Mt),"..."))}var si=function(ea){ea&&ea.stopPropagation(),vn(ci)};return typeof Cn=="function"?Jn(vi,Or,ti,Ui,si):Dr(ci,Or,ti,Ui,si)}function Wr(ci){var ti=typeof cn=="function"?cn(ci):cn;return Dr({title:ti},ti,!1)}var Er=ze.createElement("div",{className:"".concat(lr,"-search"),style:{width:$r},onFocus:function(){Cr(!0)},onBlur:function(){Cr(!1)}},ze.createElement(Oe,{ref:En,open:Ht,prefixCls:Lt,id:yt,inputElement:null,disabled:Kt,autoFocus:Zn,autoComplete:Kn,editable:li,activeDescendantId:jn,value:jr,onKeyDown:Vn,onMouseDown:er,onChange:pn,onPaste:Pn,onCompositionStart:pr,onCompositionEnd:mr,tabIndex:nr,attrs:(0,Ye.Z)(We,!0)}),ze.createElement("span",{ref:Pr,className:"".concat(lr,"-search-mirror"),"aria-hidden":!0},jr,"\xA0")),Jr=ze.createElement(ht.Z,{prefixCls:"".concat(lr,"-overflow"),data:Jt,renderItem:Xn,renderRest:Wr,suffix:Er,itemKey:be,maxCount:cr});return ze.createElement(ze.Fragment,null,Jr,!Jt.length&&!jr&&ze.createElement("span",{className:"".concat(lr,"-placeholder")},Mn))},Zt=Yt,at=function(We){var yt=We.inputElement,Lt=We.prefixCls,Jt=We.id,Ht=We.inputRef,ln=We.disabled,yn=We.autoFocus,En=We.autoComplete,Mn=We.activeDescendantId,Kt=We.mode,hn=We.open,Hn=We.values,Zn=We.placeholder,Kn=We.tabIndex,jn=We.showSearch,nr=We.searchValue,On=We.activeValue,cr=We.maxLength,Mt=We.onInputKeyDown,an=We.onInputMouseDown,cn=We.onInputChange,Cn=We.onInputPaste,un=We.onInputCompositionStart,vn=We.onInputCompositionEnd,pn=We.title,Pn=ze.useState(!1),Vn=(0,ge.Z)(Pn,2),er=Vn[0],pr=Vn[1],mr=Kt==="combobox",Pr=mr||jn,Ir=Hn[0],Lr=nr||"";mr&&On&&!er&&(Lr=On),ze.useEffect(function(){mr&&pr(!1)},[mr,On]);var $r=Kt!=="combobox"&&!hn&&!jn?!1:!!Lr,Hr=pn===void 0?It(Ir):pn,Zr=function(){if(Ir)return null;var zr=$r?{visibility:"hidden"}:void 0;return ze.createElement("span",{className:"".concat(Lt,"-selection-placeholder"),style:zr},Zn)};return ze.createElement(ze.Fragment,null,ze.createElement("span",{className:"".concat(Lt,"-selection-search")},ze.createElement(Oe,{ref:Ht,prefixCls:Lt,id:Jt,open:hn,inputElement:yt,disabled:ln,autoFocus:yn,autoComplete:En,editable:Pr,activeDescendantId:Mn,value:Lr,onKeyDown:Mt,onMouseDown:an,onChange:function(zr){pr(!0),cn(zr)},onPaste:Cn,onCompositionStart:un,onCompositionEnd:vn,tabIndex:Kn,attrs:(0,Ye.Z)(We,!0),maxLength:mr?cr:void 0})),!mr&&Ir?ze.createElement("span",{className:"".concat(Lt,"-selection-item"),title:Hr,style:$r?{visibility:"hidden"}:void 0},Ir.label):null,Zr())},ot=at;function Nt(Ze){return![Je.Z.ESC,Je.Z.SHIFT,Je.Z.BACKSPACE,Je.Z.TAB,Je.Z.WIN_KEY,Je.Z.ALT,Je.Z.META,Je.Z.WIN_KEY_RIGHT,Je.Z.CTRL,Je.Z.SEMICOLON,Je.Z.EQUALS,Je.Z.CAPS_LOCK,Je.Z.CONTEXT_MENU,Je.Z.F1,Je.Z.F2,Je.Z.F3,Je.Z.F4,Je.Z.F5,Je.Z.F6,Je.Z.F7,Je.Z.F8,Je.Z.F9,Je.Z.F10,Je.Z.F11,Je.Z.F12].includes(Ze)}var Sn=function(We,yt){var Lt=(0,ze.useRef)(null),Jt=(0,ze.useRef)(!1),Ht=We.prefixCls,ln=We.open,yn=We.mode,En=We.showSearch,Mn=We.tokenWithEnter,Kt=We.autoClearSearchValue,hn=We.onSearch,Hn=We.onSearchSubmit,Zn=We.onToggleOpen,Kn=We.onInputKeyDown,jn=We.domRef;ze.useImperativeHandle(yt,function(){return{focus:function(){Lt.current.focus()},blur:function(){Lt.current.blur()}}});var nr=Se(0),On=(0,ge.Z)(nr,2),cr=On[0],Mt=On[1],an=function(Lr){var $r=Lr.which;($r===Je.Z.UP||$r===Je.Z.DOWN)&&Lr.preventDefault(),Kn&&Kn(Lr),$r===Je.Z.ENTER&&yn==="tags"&&!Jt.current&&!ln&&(Hn==null||Hn(Lr.target.value)),Nt($r)&&Zn(!0)},cn=function(){Mt(!0)},Cn=(0,ze.useRef)(null),un=function(Lr){hn(Lr,!0,Jt.current)!==!1&&Zn(!0)},vn=function(){Jt.current=!0},pn=function(Lr){Jt.current=!1,yn!=="combobox"&&un(Lr.target.value)},Pn=function(Lr){var $r=Lr.target.value;if(Mn&&Cn.current&&/[\r\n]/.test(Cn.current)){var Hr=Cn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");$r=$r.replace(Hr,Cn.current)}Cn.current=null,un($r)},Vn=function(Lr){var $r=Lr.clipboardData,Hr=$r.getData("text");Cn.current=Hr},er=function(Lr){var $r=Lr.target;if($r!==Lt.current){var Hr=document.body.style.msTouchAction!==void 0;Hr?setTimeout(function(){Lt.current.focus()}):Lt.current.focus()}},pr=function(Lr){var $r=cr();Lr.target!==Lt.current&&!$r&&yn!=="combobox"&&Lr.preventDefault(),(yn!=="combobox"&&(!En||!$r)||!ln)&&(ln&&Kt!==!1&&hn("",!0,!1),Zn())},mr={inputRef:Lt,onInputKeyDown:an,onInputMouseDown:cn,onInputChange:Pn,onInputPaste:Vn,onInputCompositionStart:vn,onInputCompositionEnd:pn},Pr=yn==="multiple"||yn==="tags"?ze.createElement(Zt,(0,me.Z)({},We,mr)):ze.createElement(ot,(0,me.Z)({},We,mr));return ze.createElement("div",{ref:jn,className:"".concat(Ht,"-selector"),onClick:er,onMouseDown:pr},Pr)},$t=ze.forwardRef(Sn);$t.displayName="Selector";var mn=$t,on=oe(35593),nn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],en=function(We){var yt=We===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:yt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:yt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:yt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:yt,adjustY:1},htmlRegion:"scroll"}}},ye=function(We,yt){var Lt=We.prefixCls,Jt=We.disabled,Ht=We.visible,ln=We.children,yn=We.popupElement,En=We.animation,Mn=We.transitionName,Kt=We.dropdownStyle,hn=We.dropdownClassName,Hn=We.direction,Zn=Hn===void 0?"ltr":Hn,Kn=We.placement,jn=We.builtinPlacements,nr=We.dropdownMatchSelectWidth,On=We.dropdownRender,cr=We.dropdownAlign,Mt=We.getPopupContainer,an=We.empty,cn=We.getTriggerDOMNode,Cn=We.onPopupVisibleChange,un=We.onPopupMouseEnter,vn=(0,ke.Z)(We,nn),pn="".concat(Lt,"-dropdown"),Pn=yn;On&&(Pn=On(yn));var Vn=ze.useMemo(function(){return jn||en(nr)},[jn,nr]),er=En?"".concat(pn,"-").concat(En):Mn,pr=typeof nr=="number",mr=ze.useMemo(function(){return pr?null:nr===!1?"minWidth":"width"},[nr,pr]),Pr=Kt;pr&&(Pr=(0,pt.Z)((0,pt.Z)({},Pr),{},{width:nr}));var Ir=ze.useRef(null);return ze.useImperativeHandle(yt,function(){return{getPopupElement:function(){return Ir.current}}}),ze.createElement(on.Z,(0,me.Z)({},vn,{showAction:Cn?["click"]:[],hideAction:Cn?["click"]:[],popupPlacement:Kn||(Zn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Vn,prefixCls:pn,popupTransitionName:er,popup:ze.createElement("div",{ref:Ir,onMouseEnter:un},Pn),stretch:mr,popupAlign:cr,popupVisible:Ht,getPopupContainer:Mt,popupClassName:Ie()(hn,(0,Pe.Z)({},"".concat(pn,"-empty"),an)),popupStyle:Pr,getTriggerDOMNode:cn,onPopupVisibleChange:Cn}),ln)},ue=ze.forwardRef(ye);ue.displayName="SelectTrigger";var se=ue,ce=oe(48745);function de(Ze,We){var yt=Ze.key,Lt;return"value"in Ze&&(Lt=Ze.value),yt!=null?yt:Lt!==void 0?Lt:"rc-index-key-".concat(We)}function ae(Ze,We){var yt=Ze||{},Lt=yt.label,Jt=yt.value,Ht=yt.options,ln=yt.groupLabel,yn=Lt||(We?"children":"label");return{label:yn,value:Jt||"value",options:Ht||"options",groupLabel:ln||yn}}function Be(Ze){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yt=We.fieldNames,Lt=We.childrenAsData,Jt=[],Ht=ae(yt,!1),ln=Ht.label,yn=Ht.value,En=Ht.options,Mn=Ht.groupLabel;function Kt(hn,Hn){hn.forEach(function(Zn){if(Hn||!(En in Zn)){var Kn=Zn[yn];Jt.push({key:de(Zn,Jt.length),groupOption:Hn,data:Zn,label:Zn[ln],value:Kn})}else{var jn=Zn[Mn];jn===void 0&&Lt&&(jn=Zn.label),Jt.push({key:de(Zn,Jt.length),group:!0,data:Zn,label:jn}),Kt(Zn[En],!0)}})}return Kt(Ze,!1),Jt}function ft(Ze){var We=(0,pt.Z)({},Ze);return"props"in We||Object.defineProperty(We,"props",{get:function(){return(0,Ee.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),We}}),We}function Fe(Ze,We){if(!We||!We.length)return null;var yt=!1;function Lt(Ht,ln){var yn=(0,ce.Z)(ln),En=yn[0],Mn=yn.slice(1);if(!En)return[Ht];var Kt=Ht.split(En);return yt=yt||Kt.length>1,Kt.reduce(function(hn,Hn){return[].concat((0,Me.Z)(hn),(0,Me.Z)(Lt(Hn,Mn)))},[]).filter(function(hn){return hn})}var Jt=Lt(Ze,We);return yt?Jt:null}var De=["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"],mt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function rt(Ze){return Ze==="tags"||Ze==="multiple"}var Ge=ze.forwardRef(function(Ze,We){var yt,Lt,Jt=Ze.id,Ht=Ze.prefixCls,ln=Ze.className,yn=Ze.showSearch,En=Ze.tagRender,Mn=Ze.direction,Kt=Ze.omitDomProps,hn=Ze.displayValues,Hn=Ze.onDisplayValuesChange,Zn=Ze.emptyOptions,Kn=Ze.notFoundContent,jn=Kn===void 0?"Not Found":Kn,nr=Ze.onClear,On=Ze.mode,cr=Ze.disabled,Mt=Ze.loading,an=Ze.getInputElement,cn=Ze.getRawInputElement,Cn=Ze.open,un=Ze.defaultOpen,vn=Ze.onDropdownVisibleChange,pn=Ze.activeValue,Pn=Ze.onActiveValueChange,Vn=Ze.activeDescendantId,er=Ze.searchValue,pr=Ze.autoClearSearchValue,mr=Ze.onSearch,Pr=Ze.onSearchSplit,Ir=Ze.tokenSeparators,Lr=Ze.allowClear,$r=Ze.suffixIcon,Hr=Ze.clearIcon,Zr=Ze.OptionList,gr=Ze.animation,zr=Ze.transitionName,Cr=Ze.dropdownStyle,lr=Ze.dropdownClassName,jr=Ze.dropdownMatchSelectWidth,li=Ze.dropdownRender,Dr=Ze.dropdownAlign,Jn=Ze.placement,Xn=Ze.builtinPlacements,Wr=Ze.getPopupContainer,Er=Ze.showAction,Jr=Er===void 0?[]:Er,ci=Ze.onFocus,ti=Ze.onBlur,Bi=Ze.onKeyUp,vi=Ze.onKeyDown,Ui=Ze.onMouseDown,Or=(0,ke.Z)(Ze,De),_r=rt(On),si=(yn!==void 0?yn:_r)||On==="combobox",di=(0,pt.Z)({},Or);mt.forEach(function(ua){delete di[ua]}),Kt==null||Kt.forEach(function(ua){delete di[ua]});var ea=ze.useState(!1),Va=(0,ge.Z)(ea,2),Da=Va[0],_i=Va[1];ze.useEffect(function(){_i((0,st.Z)())},[]);var da=ze.useRef(null),sa=ze.useRef(null),Sr=ze.useRef(null),xr=ze.useRef(null),sr=ze.useRef(null),hr=Ve(),xi=(0,ge.Z)(hr,3),Fi=xi[0],Zi=xi[1],Yi=xi[2];ze.useImperativeHandle(We,function(){var ua,ta;return{focus:(ua=xr.current)===null||ua===void 0?void 0:ua.focus,blur:(ta=xr.current)===null||ta===void 0?void 0:ta.blur,scrollTo:function(lo){var ja;return(ja=sr.current)===null||ja===void 0?void 0:ja.scrollTo(lo)}}});var Wi=ze.useMemo(function(){var ua;if(On!=="combobox")return er;var ta=(ua=hn[0])===null||ua===void 0?void 0:ua.value;return typeof ta=="string"||typeof ta=="number"?String(ta):""},[er,On,hn]),ra=On==="combobox"&&typeof an=="function"&&an()||null,Ba=typeof cn=="function"&&cn(),Aa=(0,Ue.x1)(sa,Ba==null||(yt=Ba.props)===null||yt===void 0?void 0:yt.ref),ho=ze.useState(!1),no=(0,ge.Z)(ho,2),Fa=no[0],al=no[1];(0,He.Z)(function(){al(!0)},[]);var po=(0,we.Z)(!1,{defaultValue:un,value:Cn}),wo=(0,ge.Z)(po,2),Xa=wo[0],ya=wo[1],hi=Fa?Xa:!1,Ni=!jn&&Zn;(cr||Ni&&hi&&On==="combobox")&&(hi=!1);var Ei=Ni?!1:hi,fi=ze.useCallback(function(ua){var ta=ua!==void 0?ua:!hi;cr||(ya(ta),hi!==ta&&(vn==null||vn(ta)))},[cr,hi,ya,vn]),Xi=ze.useMemo(function(){return(Ir||[]).some(function(ua){return[`
`,`\r
`].includes(ua)})},[Ir]),ji=function(ta,za,lo){var ja=!0,Fo=ta;Pn==null||Pn(null);var Zo=lo?null:Fe(ta,Ir);return On!=="combobox"&&Zo&&(Fo="",Pr==null||Pr(Zo),fi(!1),ja=!1),mr&&Wi!==Fo&&mr(Fo,{source:za?"typing":"effect"}),ja},Na=function(ta){!ta||!ta.trim()||mr(ta,{source:"submit"})};ze.useEffect(function(){!hi&&!_r&&On!=="combobox"&&ji("",!1,!1)},[hi]),ze.useEffect(function(){Xa&&cr&&ya(!1),cr&&Zi(!1)},[cr]);var $a=Se(),Ra=(0,ge.Z)($a,2),ro=Ra[0],ia=Ra[1],aa=function(ta){var za=ro(),lo=ta.which;if(lo===Je.Z.ENTER&&(On!=="combobox"&&ta.preventDefault(),hi||fi(!0)),ia(!!Wi),lo===Je.Z.BACKSPACE&&!za&&_r&&!Wi&&hn.length){for(var ja=(0,Me.Z)(hn),Fo=null,Zo=ja.length-1;Zo>=0;Zo-=1){var fl=ja[Zo];if(!fl.disabled){ja.splice(Zo,1),Fo=fl;break}}Fo&&Hn(ja,{type:"remove",values:[Fo]})}for(var Wo=arguments.length,Fl=new Array(Wo>1?Wo-1:0),Bl=1;Bl<Wo;Bl++)Fl[Bl-1]=arguments[Bl];if(hi&&sr.current){var $o;($o=sr.current).onKeyDown.apply($o,[ta].concat(Fl))}vi==null||vi.apply(void 0,[ta].concat(Fl))},Ya=function(ta){for(var za=arguments.length,lo=new Array(za>1?za-1:0),ja=1;ja<za;ja++)lo[ja-1]=arguments[ja];if(hi&&sr.current){var Fo;(Fo=sr.current).onKeyUp.apply(Fo,[ta].concat(lo))}Bi==null||Bi.apply(void 0,[ta].concat(lo))},Qa=function(ta){var za=hn.filter(function(lo){return lo!==ta});Hn(za,{type:"remove",values:[ta]})},go=ze.useRef(!1),Ja=function(){Zi(!0),cr||(ci&&!go.current&&ci.apply(void 0,arguments),Jr.includes("focus")&&fi(!0)),go.current=!0},hs=function(){Zi(!1,function(){go.current=!1,fi(!1)}),!cr&&(Wi&&(On==="tags"?mr(Wi,{source:"submit"}):On==="multiple"&&mr("",{source:"blur"})),ti&&ti.apply(void 0,arguments))},Dl=[];ze.useEffect(function(){return function(){Dl.forEach(function(ua){return clearTimeout(ua)}),Dl.splice(0,Dl.length)}},[]);var Al=function(ta){var za,lo=ta.target,ja=(za=Sr.current)===null||za===void 0?void 0:za.getPopupElement();if(ja&&ja.contains(lo)){var Fo=setTimeout(function(){var Fl=Dl.indexOf(Fo);if(Fl!==-1&&Dl.splice(Fl,1),Yi(),!Da&&!ja.contains(document.activeElement)){var Bl;(Bl=xr.current)===null||Bl===void 0||Bl.focus()}});Dl.push(Fo)}for(var Zo=arguments.length,fl=new Array(Zo>1?Zo-1:0),Wo=1;Wo<Zo;Wo++)fl[Wo-1]=arguments[Wo];Ui==null||Ui.apply(void 0,[ta].concat(fl))},ol=ze.useState({}),Ds=(0,ge.Z)(ol,2),Ll=Ds[1];function Oo(){Ll({})}var xo;Ba&&(xo=function(ta){fi(ta)}),$e(function(){var ua;return[da.current,(ua=Sr.current)===null||ua===void 0?void 0:ua.getPopupElement()]},Ei,fi,!!Ba);var Hl=ze.useMemo(function(){return(0,pt.Z)((0,pt.Z)({},Ze),{},{notFoundContent:jn,open:hi,triggerOpen:Ei,id:Jt,showSearch:si,multiple:_r,toggleOpen:fi})},[Ze,jn,Ei,hi,Jt,si,_r,fi]),Ul=!!$r||Mt,Xl;Ul&&(Xl=ze.createElement(Et,{className:Ie()("".concat(Ht,"-arrow"),(0,Pe.Z)({},"".concat(Ht,"-arrow-loading"),Mt)),customizeIcon:$r,customizeIconProps:{loading:Mt,searchValue:Wi,open:hi,focused:Fi,showSearch:si}}));var As=function(){var ta;nr==null||nr(),(ta=xr.current)===null||ta===void 0||ta.focus(),Hn([],{type:"clear",values:hn}),ji("",!1,!1)},as=At(Ht,As,hn,Lr,Hr,cr,Wi,On),ll=as.allowClear,qo=as.clearIcon,Pa=ze.createElement(Zr,{ref:sr}),Yl=Ie()(Ht,ln,(Lt={},(0,Pe.Z)(Lt,"".concat(Ht,"-focused"),Fi),(0,Pe.Z)(Lt,"".concat(Ht,"-multiple"),_r),(0,Pe.Z)(Lt,"".concat(Ht,"-single"),!_r),(0,Pe.Z)(Lt,"".concat(Ht,"-allow-clear"),Lr),(0,Pe.Z)(Lt,"".concat(Ht,"-show-arrow"),Ul),(0,Pe.Z)(Lt,"".concat(Ht,"-disabled"),cr),(0,Pe.Z)(Lt,"".concat(Ht,"-loading"),Mt),(0,Pe.Z)(Lt,"".concat(Ht,"-open"),hi),(0,Pe.Z)(Lt,"".concat(Ht,"-customize-input"),ra),(0,Pe.Z)(Lt,"".concat(Ht,"-show-search"),si),Lt)),Ls=ze.createElement(se,{ref:Sr,disabled:cr,prefixCls:Ht,visible:Ei,popupElement:Pa,animation:gr,transitionName:zr,dropdownStyle:Cr,dropdownClassName:lr,direction:Mn,dropdownMatchSelectWidth:jr,dropdownRender:li,dropdownAlign:Dr,placement:Jn,builtinPlacements:Xn,getPopupContainer:Wr,empty:Zn,getTriggerDOMNode:function(){return sa.current},onPopupVisibleChange:xo,onPopupMouseEnter:Oo},Ba?ze.cloneElement(Ba,{ref:Aa}):ze.createElement(mn,(0,me.Z)({},Ze,{domRef:sa,prefixCls:Ht,inputElement:ra,ref:xr,id:Jt,showSearch:si,autoClearSearchValue:pr,mode:On,activeDescendantId:Vn,tagRender:En,values:hn,open:hi,onToggleOpen:fi,activeValue:pn,searchValue:Wi,onSearch:ji,onSearchSubmit:Na,onRemove:Qa,tokenWithEnter:Xi}))),Zl;return Ba?Zl=Ls:Zl=ze.createElement("div",(0,me.Z)({className:Yl},di,{ref:da,onMouseDown:Al,onKeyDown:aa,onKeyUp:Ya,onFocus:Ja,onBlur:hs}),Fi&&!hi&&ze.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(hn.map(function(ua){var ta=ua.label,za=ua.value;return["number","string"].includes((0,he.Z)(ta))?ta:za}).join(", "))),Ls,Xl,ll&&qo),ze.createElement(dt.Provider,{value:Hl},Zl)}),xt=Ge,Xt=function(Ze,We){var yt=ze.useRef({values:new Map,options:new Map}),Lt=ze.useMemo(function(){var Ht=yt.current,ln=Ht.values,yn=Ht.options,En=Ze.map(function(hn){if(hn.label===void 0){var Hn;return(0,pt.Z)((0,pt.Z)({},hn),{},{label:(Hn=ln.get(hn.value))===null||Hn===void 0?void 0:Hn.label})}return hn}),Mn=new Map,Kt=new Map;return En.forEach(function(hn){Mn.set(hn.value,hn),Kt.set(hn.value,We.get(hn.value)||yn.get(hn.value))}),yt.current.values=Mn,yt.current.options=Kt,En},[Ze,We]),Jt=ze.useCallback(function(Ht){return We.get(Ht)||yt.current.options.get(Ht)},[We]);return[Lt,Jt]};function ct(Ze,We){return Pt(Ze).join("").toUpperCase().includes(We)}var Rt=function(Ze,We,yt,Lt,Jt){return ze.useMemo(function(){if(!yt||Lt===!1)return Ze;var Ht=We.options,ln=We.label,yn=We.value,En=[],Mn=typeof Lt=="function",Kt=yt.toUpperCase(),hn=Mn?Lt:function(Zn,Kn){return Jt?ct(Kn[Jt],Kt):Kn[Ht]?ct(Kn[ln!=="children"?ln:"label"],Kt):ct(Kn[yn],Kt)},Hn=Mn?function(Zn){return ft(Zn)}:function(Zn){return Zn};return Ze.forEach(function(Zn){if(Zn[Ht]){var Kn=hn(yt,Hn(Zn));if(Kn)En.push(Zn);else{var jn=Zn[Ht].filter(function(nr){return hn(yt,Hn(nr))});jn.length&&En.push((0,pt.Z)((0,pt.Z)({},Zn),{},(0,Pe.Z)({},Ht,jn)))}return}hn(yt,Hn(Zn))&&En.push(Zn)}),En},[Ze,Lt,Jt,yt,We])},rn=oe(17115),lt=oe(11592),Le=["children","value"],it=["children"];function Ot(Ze){var We=Ze,yt=We.key,Lt=We.props,Jt=Lt.children,Ht=Lt.value,ln=(0,ke.Z)(Lt,Le);return(0,pt.Z)({key:yt,value:Ht!==void 0?Ht:yt,children:Jt},ln)}function Ft(Ze){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,lt.Z)(Ze).map(function(yt,Lt){if(!ze.isValidElement(yt)||!yt.type)return null;var Jt=yt,Ht=Jt.type.isSelectOptGroup,ln=Jt.key,yn=Jt.props,En=yn.children,Mn=(0,ke.Z)(yn,it);return We||!Ht?Ot(yt):(0,pt.Z)((0,pt.Z)({key:"__RC_SELECT_GRP__".concat(ln===null?Lt:ln,"__"),label:ln},Mn),{},{options:Ft(En)})}).filter(function(yt){return yt})}function Qt(Ze,We,yt,Lt,Jt){return ze.useMemo(function(){var Ht=Ze,ln=!Ze;ln&&(Ht=Ft(We));var yn=new Map,En=new Map,Mn=function(Hn,Zn,Kn){Kn&&typeof Kn=="string"&&Hn.set(Zn[Kn],Zn)};function Kt(hn){for(var Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Zn=0;Zn<hn.length;Zn+=1){var Kn=hn[Zn];!Kn[yt.options]||Hn?(yn.set(Kn[yt.value],Kn),Mn(En,Kn,yt.label),Mn(En,Kn,Lt),Mn(En,Kn,Jt)):Kt(Kn[yt.options],!0)}}return Kt(Ht),{options:Ht,valueOptions:yn,labelOptions:En}},[Ze,We,yt,Lt,Jt])}function bn(Ze){var We=ze.useRef();We.current=Ze;var yt=ze.useCallback(function(){return We.current.apply(We,arguments)},[]);return yt}var Bn=function(){return null};Bn.isSelectOptGroup=!0;var Ln=Bn,Gn=function(){return null};Gn.isSelectOption=!0;var Yn=Gn,_n=oe(80547),ir=oe(2738),br=oe(48911),wr=ze.createContext(null),qn=wr;function fr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var kr=["disabled","title","children","style","className"];function Qn(Ze){return typeof Ze=="string"||typeof Ze=="number"}var Nr=function(We,yt){var Lt=nt(),Jt=Lt.prefixCls,Ht=Lt.id,ln=Lt.open,yn=Lt.multiple,En=Lt.mode,Mn=Lt.searchValue,Kt=Lt.toggleOpen,hn=Lt.notFoundContent,Hn=Lt.onPopupScroll,Zn=ze.useContext(qn),Kn=Zn.flattenOptions,jn=Zn.onActiveValue,nr=Zn.defaultActiveFirstOption,On=Zn.onSelect,cr=Zn.menuItemSelectedIcon,Mt=Zn.rawValues,an=Zn.fieldNames,cn=Zn.virtual,Cn=Zn.direction,un=Zn.listHeight,vn=Zn.listItemHeight,pn="".concat(Jt,"-item"),Pn=(0,_n.Z)(function(){return Kn},[ln,Kn],function(Dr,Jn){return Jn[0]&&Dr[1]!==Jn[1]}),Vn=ze.useRef(null),er=function(Jn){Jn.preventDefault()},pr=function(Jn){Vn.current&&Vn.current.scrollTo(typeof Jn=="number"?{index:Jn}:Jn)},mr=function(Jn){for(var Xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Wr=Pn.length,Er=0;Er<Wr;Er+=1){var Jr=(Jn+Er*Xn+Wr)%Wr,ci=Pn[Jr],ti=ci.group,Bi=ci.data;if(!ti&&!Bi.disabled)return Jr}return-1},Pr=ze.useState(function(){return mr(0)}),Ir=(0,ge.Z)(Pr,2),Lr=Ir[0],$r=Ir[1],Hr=function(Jn){var Xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;$r(Jn);var Wr={source:Xn?"keyboard":"mouse"},Er=Pn[Jn];if(!Er){jn(null,-1,Wr);return}jn(Er.value,Jn,Wr)};(0,ze.useEffect)(function(){Hr(nr!==!1?mr(0):-1)},[Pn.length,Mn]);var Zr=ze.useCallback(function(Dr){return Mt.has(Dr)&&En!=="combobox"},[En,(0,Me.Z)(Mt).toString(),Mt.size]);(0,ze.useEffect)(function(){var Dr=setTimeout(function(){if(!yn&&ln&&Mt.size===1){var Xn=Array.from(Mt)[0],Wr=Pn.findIndex(function(Er){var Jr=Er.data;return Jr.value===Xn});Wr!==-1&&(Hr(Wr),pr(Wr))}});if(ln){var Jn;(Jn=Vn.current)===null||Jn===void 0||Jn.scrollTo(void 0)}return function(){return clearTimeout(Dr)}},[ln,Mn,Kn.length]);var gr=function(Jn){Jn!==void 0&&On(Jn,{selected:!Mt.has(Jn)}),yn||Kt(!1)};if(ze.useImperativeHandle(yt,function(){return{onKeyDown:function(Jn){var Xn=Jn.which,Wr=Jn.ctrlKey;switch(Xn){case Je.Z.N:case Je.Z.P:case Je.Z.UP:case Je.Z.DOWN:{var Er=0;if(Xn===Je.Z.UP?Er=-1:Xn===Je.Z.DOWN?Er=1:fr()&&Wr&&(Xn===Je.Z.N?Er=1:Xn===Je.Z.P&&(Er=-1)),Er!==0){var Jr=mr(Lr+Er,Er);pr(Jr),Hr(Jr,!0)}break}case Je.Z.ENTER:{var ci=Pn[Lr];ci&&!ci.data.disabled?gr(ci.value):gr(void 0),ln&&Jn.preventDefault();break}case Je.Z.ESC:Kt(!1),ln&&Jn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Jn){pr(Jn)}}}),Pn.length===0)return ze.createElement("div",{role:"listbox",id:"".concat(Ht,"_list"),className:"".concat(pn,"-empty"),onMouseDown:er},hn);var zr=Object.keys(an).map(function(Dr){return an[Dr]}),Cr=function(Jn){return Jn.label};function lr(Dr,Jn){var Xn=Dr.group;return{role:Xn?"presentation":"option",id:"".concat(Ht,"_list_").concat(Jn)}}var jr=function(Jn){var Xn=Pn[Jn];if(!Xn)return null;var Wr=Xn.data||{},Er=Wr.value,Jr=Xn.group,ci=(0,Ye.Z)(Wr,!0),ti=Cr(Xn);return Xn?ze.createElement("div",(0,me.Z)({"aria-label":typeof ti=="string"&&!Jr?ti:null},ci,{key:Jn},lr(Xn,Jn),{"aria-selected":Zr(Er)}),Er):null},li={role:"listbox",id:"".concat(Ht,"_list")};return ze.createElement(ze.Fragment,null,cn&&ze.createElement("div",(0,me.Z)({},li,{style:{height:0,width:0,overflow:"hidden"}}),jr(Lr-1),jr(Lr),jr(Lr+1)),ze.createElement(br.Z,{itemKey:"key",ref:Vn,data:Pn,height:un,itemHeight:vn,fullHeight:!1,onMouseDown:er,onScroll:Hn,virtual:cn,direction:Cn,innerProps:cn?null:li},function(Dr,Jn){var Xn,Wr=Dr.group,Er=Dr.groupOption,Jr=Dr.data,ci=Dr.label,ti=Dr.value,Bi=Jr.key;if(Wr){var vi,Ui=(vi=Jr.title)!==null&&vi!==void 0?vi:Qn(ci)?ci.toString():void 0;return ze.createElement("div",{className:Ie()(pn,"".concat(pn,"-group")),title:Ui},ci!==void 0?ci:Bi)}var Or=Jr.disabled,_r=Jr.title,si=Jr.children,di=Jr.style,ea=Jr.className,Va=(0,ke.Z)(Jr,kr),Da=(0,ir.Z)(Va,zr),_i=Zr(ti),da="".concat(pn,"-option"),sa=Ie()(pn,da,ea,(Xn={},(0,Pe.Z)(Xn,"".concat(da,"-grouped"),Er),(0,Pe.Z)(Xn,"".concat(da,"-active"),Lr===Jn&&!Or),(0,Pe.Z)(Xn,"".concat(da,"-disabled"),Or),(0,Pe.Z)(Xn,"".concat(da,"-selected"),_i),Xn)),Sr=Cr(Dr),xr=!cr||typeof cr=="function"||_i,sr=typeof Sr=="number"?Sr:Sr||ti,hr=Qn(sr)?sr.toString():void 0;return _r!==void 0&&(hr=_r),ze.createElement("div",(0,me.Z)({},(0,Ye.Z)(Da),cn?{}:lr(Dr,Jn),{"aria-selected":_i,className:sa,title:hr,onMouseMove:function(){Lr===Jn||Or||Hr(Jn)},onClick:function(){Or||gr(ti)},style:di}),ze.createElement("div",{className:"".concat(da,"-content")},sr),ze.isValidElement(cr)||_i,xr&&ze.createElement(Et,{className:"".concat(pn,"-option-state"),customizeIcon:cr,customizeIconProps:{isSelected:_i}},_i?"\u2713":null))}))},ei=ze.forwardRef(Nr);ei.displayName="OptionList";var Vt=ei;function Rn(Ze){var We=Ze.mode,yt=Ze.options,Lt=Ze.children,Jt=Ze.backfill,Ht=Ze.allowClear,ln=Ze.placeholder,yn=Ze.getInputElement,En=Ze.showSearch,Mn=Ze.onSearch,Kt=Ze.defaultOpen,hn=Ze.autoFocus,Hn=Ze.labelInValue,Zn=Ze.value,Kn=Ze.inputValue,jn=Ze.optionLabelProp,nr=isMultiple(We),On=En!==void 0?En:nr||We==="combobox",cr=yt||convertChildrenToData(Lt);if(warning(We!=="tags"||cr.every(function(Cn){return!Cn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),We==="tags"||We==="combobox"){var Mt=cr.some(function(Cn){return Cn.options?Cn.options.some(function(un){return typeof("value"in un?un.value:un.key)=="number"}):typeof("value"in Cn?Cn.value:Cn.key)=="number"});warning(!Mt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(We!=="combobox"||!jn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(We==="combobox"||!Jt,"`backfill` only works with `combobox` mode."),warning(We==="combobox"||!yn,"`getInputElement` only work with `combobox` mode."),noteOnce(We!=="combobox"||!yn||!Ht||!ln,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Mn&&!On&&We!=="combobox"&&We!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Kt||hn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Zn!=null){var an=toArray(Zn);warning(!Hn||an.every(function(Cn){return _typeof(Cn)==="object"&&("key"in Cn||"value"in Cn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!nr||Array.isArray(Zn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Lt){var cn=null;toNodeArray(Lt).some(function(Cn){if(!React.isValidElement(Cn)||!Cn.type)return!1;var un=Cn,vn=un.type;if(vn.isSelectOption)return!1;if(vn.isSelectOptGroup){var pn=toNodeArray(Cn.props.children).every(function(Pn){return!React.isValidElement(Pn)||!Cn.type||Pn.type.isSelectOption?!0:(cn=Pn.type,!1)});return!pn}return cn=vn,!0}),cn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(cn.displayName||cn.name||cn,"`.")),warning(Kn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Nn(Ze,We){if(Ze){var yt=function Lt(Jt){for(var Ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln=0;ln<Jt.length;ln++){var yn=Jt[ln];if(yn[We==null?void 0:We.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Ht&&Array.isArray(yn[We==null?void 0:We.options])&&Lt(yn[We==null?void 0:We.options],!0))break}};yt(Ze)}}var wn=null,In=["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"],xn=["inputValue"];function kn(Ze){return!Ze||(0,he.Z)(Ze)!=="object"}var gn=ze.forwardRef(function(Ze,We){var yt=Ze.id,Lt=Ze.mode,Jt=Ze.prefixCls,Ht=Jt===void 0?"rc-select":Jt,ln=Ze.backfill,yn=Ze.fieldNames,En=Ze.inputValue,Mn=Ze.searchValue,Kt=Ze.onSearch,hn=Ze.autoClearSearchValue,Hn=hn===void 0?!0:hn,Zn=Ze.onSelect,Kn=Ze.onDeselect,jn=Ze.dropdownMatchSelectWidth,nr=jn===void 0?!0:jn,On=Ze.filterOption,cr=Ze.filterSort,Mt=Ze.optionFilterProp,an=Ze.optionLabelProp,cn=Ze.options,Cn=Ze.children,un=Ze.defaultActiveFirstOption,vn=Ze.menuItemSelectedIcon,pn=Ze.virtual,Pn=Ze.direction,Vn=Ze.listHeight,er=Vn===void 0?200:Vn,pr=Ze.listItemHeight,mr=pr===void 0?20:pr,Pr=Ze.value,Ir=Ze.defaultValue,Lr=Ze.labelInValue,$r=Ze.onChange,Hr=(0,ke.Z)(Ze,In),Zr=(0,rn.ZP)(yt),gr=rt(Lt),zr=!!(!cn&&Cn),Cr=ze.useMemo(function(){return On===void 0&&Lt==="combobox"?!1:On},[On,Lt]),lr=ze.useMemo(function(){return ae(yn,zr)},[JSON.stringify(yn),zr]),jr=(0,we.Z)("",{value:Mn!==void 0?Mn:En,postState:function(Ni){return Ni||""}}),li=(0,ge.Z)(jr,2),Dr=li[0],Jn=li[1],Xn=Qt(cn,Cn,lr,Mt,an),Wr=Xn.valueOptions,Er=Xn.labelOptions,Jr=Xn.options,ci=ze.useCallback(function(hi){var Ni=Pt(hi);return Ni.map(function(Ei){var fi,Xi,ji,Na,$a;if(kn(Ei))fi=Ei;else{var Ra;ji=Ei.key,Xi=Ei.label,fi=(Ra=Ei.value)!==null&&Ra!==void 0?Ra:ji}var ro=Wr.get(fi);if(ro){var ia;if(Xi===void 0&&(Xi=ro==null?void 0:ro[an||lr.label]),ji===void 0&&(ji=(ia=ro==null?void 0:ro.key)!==null&&ia!==void 0?ia:fi),Na=ro==null?void 0:ro.disabled,$a=ro==null?void 0:ro.title,0)var aa}return{label:Xi,value:fi,key:ji,disabled:Na,title:$a}})},[lr,an,Wr]),ti=(0,we.Z)(Ir,{value:Pr}),Bi=(0,ge.Z)(ti,2),vi=Bi[0],Ui=Bi[1],Or=ze.useMemo(function(){var hi,Ni=ci(vi);return Lt==="combobox"&&Bt((hi=Ni[0])===null||hi===void 0?void 0:hi.value)?[]:Ni},[vi,ci,Lt]),_r=Xt(Or,Wr),si=(0,ge.Z)(_r,2),di=si[0],ea=si[1],Va=ze.useMemo(function(){if(!Lt&&di.length===1){var hi=di[0];if(hi.value===null&&(hi.label===null||hi.label===void 0))return[]}return di.map(function(Ni){var Ei;return(0,pt.Z)((0,pt.Z)({},Ni),{},{label:(Ei=Ni.label)!==null&&Ei!==void 0?Ei:Ni.value})})},[Lt,di]),Da=ze.useMemo(function(){return new Set(di.map(function(hi){return hi.value}))},[di]);ze.useEffect(function(){if(Lt==="combobox"){var hi,Ni=(hi=di[0])===null||hi===void 0?void 0:hi.value;Jn(Dt(Ni)?String(Ni):"")}},[di]);var _i=bn(function(hi,Ni){var Ei,fi=Ni!=null?Ni:hi;return Ei={},(0,Pe.Z)(Ei,lr.value,hi),(0,Pe.Z)(Ei,lr.label,fi),Ei}),da=ze.useMemo(function(){if(Lt!=="tags")return Jr;var hi=(0,Me.Z)(Jr),Ni=function(fi){return Wr.has(fi)};return(0,Me.Z)(di).sort(function(Ei,fi){return Ei.value<fi.value?-1:1}).forEach(function(Ei){var fi=Ei.value;Ni(fi)||hi.push(_i(fi,Ei.label))}),hi},[_i,Jr,Wr,di,Lt]),sa=Rt(da,lr,Dr,Cr,Mt),Sr=ze.useMemo(function(){return Lt!=="tags"||!Dr||sa.some(function(hi){return hi[Mt||"value"]===Dr})||sa.some(function(hi){return hi[lr.value]===Dr})?sa:[_i(Dr)].concat((0,Me.Z)(sa))},[_i,Mt,Lt,sa,Dr,lr]),xr=ze.useMemo(function(){return cr?(0,Me.Z)(Sr).sort(function(hi,Ni){return cr(hi,Ni)}):Sr},[Sr,cr]),sr=ze.useMemo(function(){return Be(xr,{fieldNames:lr,childrenAsData:zr})},[xr,lr,zr]),hr=function(Ni){var Ei=ci(Ni);if(Ui(Ei),$r&&(Ei.length!==di.length||Ei.some(function(ji,Na){var $a;return(($a=di[Na])===null||$a===void 0?void 0:$a.value)!==(ji==null?void 0:ji.value)}))){var fi=Lr?Ei:Ei.map(function(ji){return ji.value}),Xi=Ei.map(function(ji){return ft(ea(ji.value))});$r(gr?fi:fi[0],gr?Xi:Xi[0])}},xi=ze.useState(null),Fi=(0,ge.Z)(xi,2),Zi=Fi[0],Yi=Fi[1],Wi=ze.useState(0),ra=(0,ge.Z)(Wi,2),Ba=ra[0],Aa=ra[1],ho=un!==void 0?un:Lt!=="combobox",no=ze.useCallback(function(hi,Ni){var Ei=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},fi=Ei.source,Xi=fi===void 0?"keyboard":fi;Aa(Ni),ln&&Lt==="combobox"&&hi!==null&&Xi==="keyboard"&&Yi(String(hi))},[ln,Lt]),Fa=function(Ni,Ei,fi){var Xi=function(){var go,Ja=ea(Ni);return[Lr?{label:Ja==null?void 0:Ja[lr.label],value:Ni,key:(go=Ja==null?void 0:Ja.key)!==null&&go!==void 0?go:Ni}:Ni,ft(Ja)]};if(Ei&&Zn){var ji=Xi(),Na=(0,ge.Z)(ji,2),$a=Na[0],Ra=Na[1];Zn($a,Ra)}else if(!Ei&&Kn&&fi!=="clear"){var ro=Xi(),ia=(0,ge.Z)(ro,2),aa=ia[0],Ya=ia[1];Kn(aa,Ya)}},al=bn(function(hi,Ni){var Ei,fi=gr?Ni.selected:!0;fi?Ei=gr?[].concat((0,Me.Z)(di),[hi]):[hi]:Ei=di.filter(function(Xi){return Xi.value!==hi}),hr(Ei),Fa(hi,fi),Lt==="combobox"?Yi(""):(!rt||Hn)&&(Jn(""),Yi(""))}),po=function(Ni,Ei){hr(Ni);var fi=Ei.type,Xi=Ei.values;(fi==="remove"||fi==="clear")&&Xi.forEach(function(ji){Fa(ji.value,!1,fi)})},wo=function(Ni,Ei){if(Jn(Ni),Yi(null),Ei.source==="submit"){var fi=(Ni||"").trim();if(fi){var Xi=Array.from(new Set([].concat((0,Me.Z)(Da),[fi])));hr(Xi),Fa(fi,!0),Jn("")}return}Ei.source!=="blur"&&(Lt==="combobox"&&hr(Ni),Kt==null||Kt(Ni))},Xa=function(Ni){var Ei=Ni;Lt!=="tags"&&(Ei=Ni.map(function(Xi){var ji=Er.get(Xi);return ji==null?void 0:ji.value}).filter(function(Xi){return Xi!==void 0}));var fi=Array.from(new Set([].concat((0,Me.Z)(Da),(0,Me.Z)(Ei))));hr(fi),fi.forEach(function(Xi){Fa(Xi,!0)})},ya=ze.useMemo(function(){var hi=pn!==!1&&nr!==!1;return(0,pt.Z)((0,pt.Z)({},Xn),{},{flattenOptions:sr,onActiveValue:no,defaultActiveFirstOption:ho,onSelect:al,menuItemSelectedIcon:vn,rawValues:Da,fieldNames:lr,virtual:hi,direction:Pn,listHeight:er,listItemHeight:mr,childrenAsData:zr})},[Xn,sr,no,ho,al,vn,Da,lr,pn,nr,er,mr,zr]);return ze.createElement(qn.Provider,{value:ya},ze.createElement(xt,(0,me.Z)({},Hr,{id:Zr,prefixCls:Ht,ref:We,omitDomProps:xn,mode:Lt,displayValues:Va,onDisplayValuesChange:po,direction:Pn,searchValue:Dr,onSearch:wo,autoClearSearchValue:Hn,onSearchSplit:Xa,dropdownMatchSelectWidth:nr,OptionList:Vt,emptyOptions:!sr.length,activeValue:Zi,activeDescendantId:"".concat(Zr,"_list_").concat(Ba)})))}),bt=gn;bt.Option=Yn,bt.OptGroup=Ln;var Ae=bt,je=Ae},9296:function(An,Ut,oe){"use strict";oe.r(Ut),oe.d(Ut,{ResizableTextArea:function(){return ut},default:function(){return Bt}});var me=oe(60499),Me=oe(85899),Pe=oe(18642),pt=oe(43749),ge=oe(72190),ke=oe(42244),he=oe(77654),we=oe(92310),Ee=oe.n(we),ze=oe(93681),vt=oe(5643),Ie=oe(18929),He=oe(59301),st=oe(29301),Je=oe(34280),Ue=oe(16089),gt=`
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;
`,Et=["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"],At={},dt;function nt(St){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qe=St.getAttribute("id")||St.getAttribute("data-reactid")||St.getAttribute("name");if(It&&At[Qe])return At[Qe];var be=window.getComputedStyle(St),Ct=be.getPropertyValue("box-sizing")||be.getPropertyValue("-moz-box-sizing")||be.getPropertyValue("-webkit-box-sizing"),Yt=parseFloat(be.getPropertyValue("padding-bottom"))+parseFloat(be.getPropertyValue("padding-top")),Zt=parseFloat(be.getPropertyValue("border-bottom-width"))+parseFloat(be.getPropertyValue("border-top-width")),at=Et.map(function(Nt){return"".concat(Nt,":").concat(be.getPropertyValue(Nt))}).join(";"),ot={sizingStyle:at,paddingSize:Yt,borderSize:Zt,boxSizing:Ct};return It&&Qe&&(At[Qe]=ot),ot}function Ve(St){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;dt||(dt=document.createElement("textarea"),dt.setAttribute("tab-index","-1"),dt.setAttribute("aria-hidden","true"),document.body.appendChild(dt)),St.getAttribute("wrap")?dt.setAttribute("wrap",St.getAttribute("wrap")):dt.removeAttribute("wrap");var Ct=nt(St,It),Yt=Ct.paddingSize,Zt=Ct.borderSize,at=Ct.boxSizing,ot=Ct.sizingStyle;dt.setAttribute("style","".concat(ot,";").concat(gt)),dt.value=St.value||St.placeholder||"";var Nt=void 0,Sn=void 0,$t,mn=dt.scrollHeight;if(at==="border-box"?mn+=Zt:at==="content-box"&&(mn-=Yt),Qe!==null||be!==null){dt.value=" ";var on=dt.scrollHeight-Yt;Qe!==null&&(Nt=on*Qe,at==="border-box"&&(Nt=Nt+Yt+Zt),mn=Math.max(Nt,mn)),be!==null&&(Sn=on*be,at==="border-box"&&(Sn=Sn+Yt+Zt),$t=mn>Sn?"":"hidden",mn=Math.min(Sn,mn))}var nn={height:mn,overflowY:$t,resize:"none"};return Nt&&(nn.minHeight=Nt),Sn&&(nn.maxHeight=Sn),nn}var Se=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$e=0,Ye=1,ht=2,Xe=He.forwardRef(function(St,It){var Qe=St,be=Qe.prefixCls,Ct=Qe.onPressEnter,Yt=Qe.defaultValue,Zt=Qe.value,at=Qe.autoSize,ot=Qe.onResize,Nt=Qe.className,Sn=Qe.style,$t=Qe.disabled,mn=Qe.onChange,on=Qe.onInternalAutoSize,nn=(0,ke.Z)(Qe,Se),en=(0,Ie.Z)(Yt,{value:Zt,postState:function(Ln){return Ln!=null?Ln:""}}),ye=(0,ge.Z)(en,2),ue=ye[0],se=ye[1],ce=function(Ln){se(Ln.target.value),mn==null||mn(Ln)},de=He.useRef();He.useImperativeHandle(It,function(){return{textArea:de.current}});var ae=He.useMemo(function(){return at&&(0,pt.Z)(at)==="object"?[at.minRows,at.maxRows]:[]},[at]),Be=(0,ge.Z)(ae,2),ft=Be[0],Fe=Be[1],De=!!at,mt=function(){try{if(document.activeElement===de.current){var Ln=de.current,Gn=Ln.selectionStart,Yn=Ln.selectionEnd,_n=Ln.scrollTop;de.current.setSelectionRange(Gn,Yn),de.current.scrollTop=_n}}catch(ir){}},rt=He.useState(ht),Ge=(0,ge.Z)(rt,2),xt=Ge[0],Xt=Ge[1],ct=He.useState(),Rt=(0,ge.Z)(ct,2),rn=Rt[0],lt=Rt[1],Le=function(){Xt($e)};(0,Je.Z)(function(){De&&Le()},[Zt,ft,Fe,De]),(0,Je.Z)(function(){if(xt===$e)Xt(Ye);else if(xt===Ye){var Bn=Ve(de.current,!1,ft,Fe);Xt(ht),lt(Bn)}else mt()},[xt]);var it=He.useRef(),Ot=function(){Ue.Z.cancel(it.current)},Ft=function(Ln){xt===ht&&(ot==null||ot(Ln),at&&(Ot(),it.current=(0,Ue.Z)(function(){Le()})))};He.useEffect(function(){return Ot},[]);var Qt=De?rn:null,bn=(0,Me.Z)((0,Me.Z)({},Sn),Qt);return(xt===$e||xt===Ye)&&(bn.overflowY="hidden",bn.overflowX="hidden"),He.createElement(st.Z,{onResize:Ft,disabled:!(at||ot)},He.createElement("textarea",(0,me.Z)({},nn,{ref:de,style:bn,className:Ee()(be,Nt,(0,Pe.Z)({},"".concat(be,"-disabled"),$t)),disabled:$t,value:ue,onChange:ce})))}),ut=Xe,Oe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Pt(St,It){return(0,he.Z)(St||"").slice(0,It).join("")}function qe(St,It,Qe,be){var Ct=Qe;return St?Ct=Pt(Qe,be):(0,he.Z)(It||"").length<Qe.length&&(0,he.Z)(Qe||"").length>be&&(Ct=It),Ct}var zt=He.forwardRef(function(St,It){var Qe,be=St.defaultValue,Ct=St.value,Yt=St.onFocus,Zt=St.onBlur,at=St.onChange,ot=St.allowClear,Nt=St.maxLength,Sn=St.onCompositionStart,$t=St.onCompositionEnd,mn=St.suffix,on=St.prefixCls,nn=on===void 0?"rc-textarea":on,en=St.classes,ye=St.showCount,ue=St.className,se=St.style,ce=St.disabled,de=St.hidden,ae=St.classNames,Be=St.styles,ft=St.onResize,Fe=(0,ke.Z)(St,Oe),De=(0,Ie.Z)(be,{value:Ct,defaultValue:be}),mt=(0,ge.Z)(De,2),rt=mt[0],Ge=mt[1],xt=(0,He.useRef)(null),Xt=He.useState(!1),ct=(0,ge.Z)(Xt,2),Rt=ct[0],rn=ct[1],lt=He.useState(!1),Le=(0,ge.Z)(lt,2),it=Le[0],Ot=Le[1],Ft=He.useRef(),Qt=He.useRef(0),bn=He.useState(null),Bn=(0,ge.Z)(bn,2),Ln=Bn[0],Gn=Bn[1],Yn=function(){var kn;(kn=xt.current)===null||kn===void 0||kn.textArea.focus()};(0,He.useImperativeHandle)(It,function(){return{resizableTextArea:xt.current,focus:Yn,blur:function(){var kn;(kn=xt.current)===null||kn===void 0||kn.textArea.blur()}}}),(0,He.useEffect)(function(){rn(function(xn){return!ce&&xn})},[ce]);var _n=Number(Nt)>0,ir=function(kn){Ot(!0),Ft.current=rt,Qt.current=kn.currentTarget.selectionStart,Sn==null||Sn(kn)},br=function(kn){Ot(!1);var gn=kn.currentTarget.value;if(_n){var bt,Ae=Qt.current>=Nt+1||Qt.current===((bt=Ft.current)===null||bt===void 0?void 0:bt.length);gn=qe(Ae,Ft.current,gn,Nt)}gn!==rt&&(Ge(gn),(0,vt.rJ)(kn.currentTarget,kn,at,gn)),$t==null||$t(kn)},wr=function(kn){var gn=kn.target.value;if(!it&&_n){var bt=kn.target.selectionStart>=Nt+1||kn.target.selectionStart===gn.length||!kn.target.selectionStart;gn=qe(bt,rt,gn,Nt)}Ge(gn),(0,vt.rJ)(kn.currentTarget,kn,at,gn)},qn=function(kn){var gn=Fe.onPressEnter,bt=Fe.onKeyDown;kn.key==="Enter"&&gn&&gn(kn),bt==null||bt(kn)},fr=function(kn){rn(!0),Yt==null||Yt(kn)},kr=function(kn){rn(!1),Zt==null||Zt(kn)},Qn=function(kn){var gn;Ge(""),Yn(),(0,vt.rJ)((gn=xt.current)===null||gn===void 0?void 0:gn.textArea,kn,at)},Nr=(0,vt.D7)(rt);!it&&_n&&Ct==null&&(Nr=Pt(Nr,Nt));var ei=mn,Vt;if(ye){var Rn=(0,he.Z)(Nr).length;(0,pt.Z)(ye)==="object"?Vt=ye.formatter({value:Nr,count:Rn,maxLength:Nt}):Vt="".concat(Rn).concat(_n?" / ".concat(Nt):""),ei=He.createElement(He.Fragment,null,ei,He.createElement("span",{className:Ee()("".concat(nn,"-data-count"),ae==null?void 0:ae.count),style:Be==null?void 0:Be.count},Vt))}var Nn=function(kn){var gn;ft==null||ft(kn),(gn=xt.current)!==null&&gn!==void 0&&gn.textArea.style.height&&Gn(!0)},wn=!Fe.autoSize&&!ye&&!ot,In=He.createElement(ze.BaseInput,{value:Nr,allowClear:ot,handleReset:Qn,suffix:ei,prefixCls:nn,classes:{affixWrapper:Ee()(en==null?void 0:en.affixWrapper,(Qe={},(0,Pe.Z)(Qe,"".concat(nn,"-show-count"),ye),(0,Pe.Z)(Qe,"".concat(nn,"-textarea-allow-clear"),ot),Qe))},disabled:ce,focused:Rt,className:ue,style:(0,Me.Z)((0,Me.Z)({},se),Ln&&!wn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Vt=="string"?Vt:void 0}},hidden:de,inputElement:He.createElement(ut,(0,me.Z)({},Fe,{onKeyDown:qn,onChange:wr,onFocus:fr,onBlur:kr,onCompositionStart:ir,onCompositionEnd:br,className:ae==null?void 0:ae.textarea,style:(0,Me.Z)((0,Me.Z)({},Be==null?void 0:Be.textarea),{},{resize:se==null?void 0:se.resize}),disabled:ce,prefixCls:nn,onResize:Nn,ref:xt}))});return In}),Dt=zt,Bt=Dt},39417:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return Ye}});var me=oe(60499),Me=oe(18642),Pe=oe(42244),pt=oe(85899),ge=oe(38705),ke=oe(17212),he=oe(15793),we=oe(39153),Ee=oe(55401),ze=oe(92310),vt=oe.n(ze),Ie=oe(26112),He=oe(59301),st=oe(39378),Je=function(Xe){for(var ut=Xe.prefixCls,Oe=Xe.level,Pt=Xe.isStart,qe=Xe.isEnd,zt="".concat(ut,"-indent-unit"),Dt=[],Bt=0;Bt<Oe;Bt+=1){var St;Dt.push(He.createElement("span",{key:Bt,className:vt()(zt,(St={},(0,Me.Z)(St,"".concat(zt,"-start"),Pt[Bt]),(0,Me.Z)(St,"".concat(zt,"-end"),qe[Bt]),St))}))}return He.createElement("span",{"aria-hidden":"true",className:"".concat(ut,"-indent")},Dt)},Ue=He.memo(Je),gt=oe(67841),Et=oe(71430),At=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],dt="open",nt="close",Ve="---",Se=function(ht){(0,we.Z)(ut,ht);var Xe=(0,Ee.Z)(ut);function ut(){var Oe;(0,ge.Z)(this,ut);for(var Pt=arguments.length,qe=new Array(Pt),zt=0;zt<Pt;zt++)qe[zt]=arguments[zt];return Oe=Xe.call.apply(Xe,[this].concat(qe)),Oe.state={dragNodeHighlight:!1},Oe.selectHandle=void 0,Oe.cacheIndent=void 0,Oe.onSelectorClick=function(Dt){var Bt=Oe.props.context.onNodeClick;Bt(Dt,(0,Et.F)(Oe.props)),Oe.isSelectable()?Oe.onSelect(Dt):Oe.onCheck(Dt)},Oe.onSelectorDoubleClick=function(Dt){var Bt=Oe.props.context.onNodeDoubleClick;Bt(Dt,(0,Et.F)(Oe.props))},Oe.onSelect=function(Dt){if(!Oe.isDisabled()){var Bt=Oe.props.context.onNodeSelect;Bt(Dt,(0,Et.F)(Oe.props))}},Oe.onCheck=function(Dt){if(!Oe.isDisabled()){var Bt=Oe.props,St=Bt.disableCheckbox,It=Bt.checked,Qe=Oe.props.context.onNodeCheck;if(!(!Oe.isCheckable()||St)){var be=!It;Qe(Dt,(0,Et.F)(Oe.props),be)}}},Oe.onMouseEnter=function(Dt){var Bt=Oe.props.context.onNodeMouseEnter;Bt(Dt,(0,Et.F)(Oe.props))},Oe.onMouseLeave=function(Dt){var Bt=Oe.props.context.onNodeMouseLeave;Bt(Dt,(0,Et.F)(Oe.props))},Oe.onContextMenu=function(Dt){var Bt=Oe.props.context.onNodeContextMenu;Bt(Dt,(0,Et.F)(Oe.props))},Oe.onDragStart=function(Dt){var Bt=Oe.props.context.onNodeDragStart;Dt.stopPropagation(),Oe.setState({dragNodeHighlight:!0}),Bt(Dt,(0,he.Z)(Oe));try{Dt.dataTransfer.setData("text/plain","")}catch(St){}},Oe.onDragEnter=function(Dt){var Bt=Oe.props.context.onNodeDragEnter;Dt.preventDefault(),Dt.stopPropagation(),Bt(Dt,(0,he.Z)(Oe))},Oe.onDragOver=function(Dt){var Bt=Oe.props.context.onNodeDragOver;Dt.preventDefault(),Dt.stopPropagation(),Bt(Dt,(0,he.Z)(Oe))},Oe.onDragLeave=function(Dt){var Bt=Oe.props.context.onNodeDragLeave;Dt.stopPropagation(),Bt(Dt,(0,he.Z)(Oe))},Oe.onDragEnd=function(Dt){var Bt=Oe.props.context.onNodeDragEnd;Dt.stopPropagation(),Oe.setState({dragNodeHighlight:!1}),Bt(Dt,(0,he.Z)(Oe))},Oe.onDrop=function(Dt){var Bt=Oe.props.context.onNodeDrop;Dt.preventDefault(),Dt.stopPropagation(),Oe.setState({dragNodeHighlight:!1}),Bt(Dt,(0,he.Z)(Oe))},Oe.onExpand=function(Dt){var Bt=Oe.props,St=Bt.loading,It=Bt.context.onNodeExpand;St||It(Dt,(0,Et.F)(Oe.props))},Oe.setSelectHandle=function(Dt){Oe.selectHandle=Dt},Oe.getNodeState=function(){var Dt=Oe.props.expanded;return Oe.isLeaf()?null:Dt?dt:nt},Oe.hasChildren=function(){var Dt=Oe.props.eventKey,Bt=Oe.props.context.keyEntities,St=(0,gt.Z)(Bt,Dt)||{},It=St.children;return!!(It||[]).length},Oe.isLeaf=function(){var Dt=Oe.props,Bt=Dt.isLeaf,St=Dt.loaded,It=Oe.props.context.loadData,Qe=Oe.hasChildren();return Bt===!1?!1:Bt||!It&&!Qe||It&&St&&!Qe},Oe.isDisabled=function(){var Dt=Oe.props.disabled,Bt=Oe.props.context.disabled;return!!(Bt||Dt)},Oe.isCheckable=function(){var Dt=Oe.props.checkable,Bt=Oe.props.context.checkable;return!Bt||Dt===!1?!1:Bt},Oe.syncLoadData=function(Dt){var Bt=Dt.expanded,St=Dt.loading,It=Dt.loaded,Qe=Oe.props.context,be=Qe.loadData,Ct=Qe.onNodeLoad;St||be&&Bt&&!Oe.isLeaf()&&!Oe.hasChildren()&&!It&&Ct((0,Et.F)(Oe.props))},Oe.isDraggable=function(){var Dt=Oe.props,Bt=Dt.data,St=Dt.context.draggable;return!!(St&&(!St.nodeDraggable||St.nodeDraggable(Bt)))},Oe.renderDragHandler=function(){var Dt=Oe.props.context,Bt=Dt.draggable,St=Dt.prefixCls;return Bt!=null&&Bt.icon?He.createElement("span",{className:"".concat(St,"-draggable-icon")},Bt.icon):null},Oe.renderSwitcherIconDom=function(Dt){var Bt=Oe.props.switcherIcon,St=Oe.props.context.switcherIcon,It=Bt||St;return typeof It=="function"?It((0,pt.Z)((0,pt.Z)({},Oe.props),{},{isLeaf:Dt})):It},Oe.renderSwitcher=function(){var Dt=Oe.props.expanded,Bt=Oe.props.context.prefixCls;if(Oe.isLeaf()){var St=Oe.renderSwitcherIconDom(!0);return St!==!1?He.createElement("span",{className:vt()("".concat(Bt,"-switcher"),"".concat(Bt,"-switcher-noop"))},St):null}var It=vt()("".concat(Bt,"-switcher"),"".concat(Bt,"-switcher_").concat(Dt?dt:nt)),Qe=Oe.renderSwitcherIconDom(!1);return Qe!==!1?He.createElement("span",{onClick:Oe.onExpand,className:It},Qe):null},Oe.renderCheckbox=function(){var Dt=Oe.props,Bt=Dt.checked,St=Dt.halfChecked,It=Dt.disableCheckbox,Qe=Oe.props.context.prefixCls,be=Oe.isDisabled(),Ct=Oe.isCheckable();if(!Ct)return null;var Yt=typeof Ct!="boolean"?Ct:null;return He.createElement("span",{className:vt()("".concat(Qe,"-checkbox"),Bt&&"".concat(Qe,"-checkbox-checked"),!Bt&&St&&"".concat(Qe,"-checkbox-indeterminate"),(be||It)&&"".concat(Qe,"-checkbox-disabled")),onClick:Oe.onCheck},Yt)},Oe.renderIcon=function(){var Dt=Oe.props.loading,Bt=Oe.props.context.prefixCls;return He.createElement("span",{className:vt()("".concat(Bt,"-iconEle"),"".concat(Bt,"-icon__").concat(Oe.getNodeState()||"docu"),Dt&&"".concat(Bt,"-icon_loading"))})},Oe.renderSelector=function(){var Dt=Oe.state.dragNodeHighlight,Bt=Oe.props,St=Bt.title,It=St===void 0?Ve:St,Qe=Bt.selected,be=Bt.icon,Ct=Bt.loading,Yt=Bt.data,Zt=Oe.props.context,at=Zt.prefixCls,ot=Zt.showIcon,Nt=Zt.icon,Sn=Zt.loadData,$t=Zt.titleRender,mn=Oe.isDisabled(),on="".concat(at,"-node-content-wrapper"),nn;if(ot){var en=be||Nt;nn=en?He.createElement("span",{className:vt()("".concat(at,"-iconEle"),"".concat(at,"-icon__customize"))},typeof en=="function"?en(Oe.props):en):Oe.renderIcon()}else Sn&&Ct&&(nn=Oe.renderIcon());var ye;typeof It=="function"?ye=It(Yt):$t?ye=$t(Yt):ye=It;var ue=He.createElement("span",{className:"".concat(at,"-title")},ye);return He.createElement("span",{ref:Oe.setSelectHandle,title:typeof It=="string"?It:"",className:vt()("".concat(on),"".concat(on,"-").concat(Oe.getNodeState()||"normal"),!mn&&(Qe||Dt)&&"".concat(at,"-node-selected")),onMouseEnter:Oe.onMouseEnter,onMouseLeave:Oe.onMouseLeave,onContextMenu:Oe.onContextMenu,onClick:Oe.onSelectorClick,onDoubleClick:Oe.onSelectorDoubleClick},nn,ue,Oe.renderDropIndicator())},Oe.renderDropIndicator=function(){var Dt=Oe.props,Bt=Dt.disabled,St=Dt.eventKey,It=Oe.props.context,Qe=It.draggable,be=It.dropLevelOffset,Ct=It.dropPosition,Yt=It.prefixCls,Zt=It.indent,at=It.dropIndicatorRender,ot=It.dragOverNodeKey,Nt=It.direction,Sn=!!Qe,$t=!Bt&&Sn&&ot===St,mn=Zt!=null?Zt:Oe.cacheIndent;return Oe.cacheIndent=Zt,$t?at({dropPosition:Ct,dropLevelOffset:be,indent:mn,prefixCls:Yt,direction:Nt}):null},Oe}return(0,ke.Z)(ut,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Pt=this.props.selectable,qe=this.props.context.selectable;return typeof Pt=="boolean"?Pt:qe}},{key:"render",value:function(){var Pt,qe=this.props,zt=qe.eventKey,Dt=qe.className,Bt=qe.style,St=qe.dragOver,It=qe.dragOverGapTop,Qe=qe.dragOverGapBottom,be=qe.isLeaf,Ct=qe.isStart,Yt=qe.isEnd,Zt=qe.expanded,at=qe.selected,ot=qe.checked,Nt=qe.halfChecked,Sn=qe.loading,$t=qe.domRef,mn=qe.active,on=qe.data,nn=qe.onMouseMove,en=qe.selectable,ye=(0,Pe.Z)(qe,At),ue=this.props.context,se=ue.prefixCls,ce=ue.filterTreeNode,de=ue.keyEntities,ae=ue.dropContainerKey,Be=ue.dropTargetKey,ft=ue.draggingNodeKey,Fe=this.isDisabled(),De=(0,Ie.Z)(ye,{aria:!0,data:!0}),mt=(0,gt.Z)(de,zt)||{},rt=mt.level,Ge=Yt[Yt.length-1],xt=this.isDraggable(),Xt=!Fe&&xt,ct=ft===zt,Rt=en!==void 0?{"aria-selected":!!en}:void 0;return He.createElement("div",(0,me.Z)({ref:$t,className:vt()(Dt,"".concat(se,"-treenode"),(Pt={},(0,Me.Z)(Pt,"".concat(se,"-treenode-disabled"),Fe),(0,Me.Z)(Pt,"".concat(se,"-treenode-switcher-").concat(Zt?"open":"close"),!be),(0,Me.Z)(Pt,"".concat(se,"-treenode-checkbox-checked"),ot),(0,Me.Z)(Pt,"".concat(se,"-treenode-checkbox-indeterminate"),Nt),(0,Me.Z)(Pt,"".concat(se,"-treenode-selected"),at),(0,Me.Z)(Pt,"".concat(se,"-treenode-loading"),Sn),(0,Me.Z)(Pt,"".concat(se,"-treenode-active"),mn),(0,Me.Z)(Pt,"".concat(se,"-treenode-leaf-last"),Ge),(0,Me.Z)(Pt,"".concat(se,"-treenode-draggable"),xt),(0,Me.Z)(Pt,"dragging",ct),(0,Me.Z)(Pt,"drop-target",Be===zt),(0,Me.Z)(Pt,"drop-container",ae===zt),(0,Me.Z)(Pt,"drag-over",!Fe&&St),(0,Me.Z)(Pt,"drag-over-gap-top",!Fe&&It),(0,Me.Z)(Pt,"drag-over-gap-bottom",!Fe&&Qe),(0,Me.Z)(Pt,"filter-node",ce&&ce((0,Et.F)(this.props))),Pt)),style:Bt,draggable:Xt,"aria-grabbed":ct,onDragStart:Xt?this.onDragStart:void 0,onDragEnter:xt?this.onDragEnter:void 0,onDragOver:xt?this.onDragOver:void 0,onDragLeave:xt?this.onDragLeave:void 0,onDrop:xt?this.onDrop:void 0,onDragEnd:xt?this.onDragEnd:void 0,onMouseMove:nn},Rt,De),He.createElement(Ue,{prefixCls:se,level:rt,isStart:Ct,isEnd:Yt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),ut}(He.Component),$e=function(Xe){return He.createElement(st.k.Consumer,null,function(ut){return He.createElement(Se,(0,me.Z)({},Xe,{context:ut}))})};$e.displayName="TreeNode",$e.isTreeNode=1;var Ye=$e},39378:function(An,Ut,oe){"use strict";oe.d(Ut,{k:function(){return Me}});var me=oe(59301),Me=me.createContext(null)},38028:function(An,Ut,oe){"use strict";oe.d(Ut,{O:function(){return Ye.Z},Z:function(){return ue}});var me=oe(60499),Me=oe(18642),Pe=oe(43749),pt=oe(85899),ge=oe(77654),ke=oe(38705),he=oe(17212),we=oe(15793),Ee=oe(39153),ze=oe(55401),vt=oe(92310),Ie=oe.n(vt),He=oe(10228),st=oe(26112),Je=oe(48736),Ue=oe(59301),gt=oe(39378);function Et(se){var ce=se.dropPosition,de=se.dropLevelOffset,ae=se.indent,Be={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ce){case-1:Be.top=0,Be.left=-de*ae;break;case 1:Be.bottom=0,Be.left=-de*ae;break;case 0:Be.bottom=0,Be.left=ae;break}return Ue.createElement("div",{style:Be})}function At(se){if(se==null)throw new TypeError("Cannot destructure "+se)}var dt=oe(72190),nt=oe(42244),Ve=oe(34280),Se=oe(48911),$e=oe(77900),Ye=oe(39417);function ht(se,ce){var de=Ue.useState(!1),ae=(0,dt.Z)(de,2),Be=ae[0],ft=ae[1];Ue.useLayoutEffect(function(){if(Be)return se(),function(){ce()}},[Be]),Ue.useLayoutEffect(function(){return ft(!0),function(){ft(!1)}},[])}var Xe=oe(71430),ut=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Oe=function(ce,de){var ae=ce.className,Be=ce.style,ft=ce.motion,Fe=ce.motionNodes,De=ce.motionType,mt=ce.onMotionStart,rt=ce.onMotionEnd,Ge=ce.active,xt=ce.treeNodeRequiredProps,Xt=(0,nt.Z)(ce,ut),ct=Ue.useState(!0),Rt=(0,dt.Z)(ct,2),rn=Rt[0],lt=Rt[1],Le=Ue.useContext(gt.k),it=Le.prefixCls,Ot=Fe&&De!=="hide";(0,Ve.Z)(function(){Fe&&Ot!==rn&&lt(Ot)},[Fe]);var Ft=function(){Fe&&mt()},Qt=Ue.useRef(!1),bn=function(){Fe&&!Qt.current&&(Qt.current=!0,rt())};ht(Ft,bn);var Bn=function(Gn){Ot===Gn&&bn()};return Fe?Ue.createElement($e.default,(0,me.Z)({ref:de,visible:rn},ft,{motionAppear:De==="show",onVisibleChanged:Bn}),function(Ln,Gn){var Yn=Ln.className,_n=Ln.style;return Ue.createElement("div",{ref:Gn,className:Ie()("".concat(it,"-treenode-motion"),Yn),style:_n},Fe.map(function(ir){var br=(0,me.Z)({},(At(ir.data),ir.data)),wr=ir.title,qn=ir.key,fr=ir.isStart,kr=ir.isEnd;delete br.children;var Qn=(0,Xe.H8)(qn,xt);return Ue.createElement(Ye.Z,(0,me.Z)({},br,Qn,{title:wr,active:Ge,data:ir.data,key:qn,isStart:fr,isEnd:kr}))}))}):Ue.createElement(Ye.Z,(0,me.Z)({domRef:de,className:ae,style:Be},Xt,{active:Ge}))};Oe.displayName="MotionTreeNode";var Pt=Ue.forwardRef(Oe),qe=Pt;function zt(){var se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],de=se.length,ae=ce.length;if(Math.abs(de-ae)!==1)return{add:!1,key:null};function Be(ft,Fe){var De=new Map;ft.forEach(function(rt){De.set(rt,!0)});var mt=Fe.filter(function(rt){return!De.has(rt)});return mt.length===1?mt[0]:null}return de<ae?{add:!0,key:Be(se,ce)}:{add:!1,key:Be(ce,se)}}function Dt(se,ce,de){var ae=se.findIndex(function(De){return De.key===de}),Be=se[ae+1],ft=ce.findIndex(function(De){return De.key===de});if(Be){var Fe=ce.findIndex(function(De){return De.key===Be.key});return ce.slice(ft+1,Fe)}return ce.slice(ft+1)}var Bt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],St={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},It=function(){},Qe="RC_TREE_MOTION_".concat(Math.random()),be={key:Qe},Ct={key:Qe,level:0,index:0,pos:"0",node:be,nodes:[be]},Yt={parent:null,children:[],pos:Ct.pos,data:be,title:null,key:Qe,isStart:[],isEnd:[]};function Zt(se,ce,de,ae){return ce===!1||!de?se:se.slice(0,Math.ceil(de/ae)+1)}function at(se){var ce=se.key,de=se.pos;return(0,Xe.km)(ce,de)}function ot(se){for(var ce=String(se.data.key),de=se;de.parent;)de=de.parent,ce="".concat(de.data.key," > ").concat(ce);return ce}var Nt=Ue.forwardRef(function(se,ce){var de=se.prefixCls,ae=se.data,Be=se.selectable,ft=se.checkable,Fe=se.expandedKeys,De=se.selectedKeys,mt=se.checkedKeys,rt=se.loadedKeys,Ge=se.loadingKeys,xt=se.halfCheckedKeys,Xt=se.keyEntities,ct=se.disabled,Rt=se.dragging,rn=se.dragOverNodeKey,lt=se.dropPosition,Le=se.motion,it=se.height,Ot=se.itemHeight,Ft=se.virtual,Qt=se.focusable,bn=se.activeItem,Bn=se.focused,Ln=se.tabIndex,Gn=se.onKeyDown,Yn=se.onFocus,_n=se.onBlur,ir=se.onActiveChange,br=se.onListChangeStart,wr=se.onListChangeEnd,qn=(0,nt.Z)(se,Bt),fr=Ue.useRef(null),kr=Ue.useRef(null);Ue.useImperativeHandle(ce,function(){return{scrollTo:function(hn){fr.current.scrollTo(hn)},getIndentWidth:function(){return kr.current.offsetWidth}}});var Qn=Ue.useState(Fe),Nr=(0,dt.Z)(Qn,2),ei=Nr[0],Vt=Nr[1],Rn=Ue.useState(ae),Nn=(0,dt.Z)(Rn,2),wn=Nn[0],In=Nn[1],xn=Ue.useState(ae),kn=(0,dt.Z)(xn,2),gn=kn[0],bt=kn[1],Ae=Ue.useState([]),je=(0,dt.Z)(Ae,2),Ze=je[0],We=je[1],yt=Ue.useState(null),Lt=(0,dt.Z)(yt,2),Jt=Lt[0],Ht=Lt[1],ln=Ue.useRef(ae);ln.current=ae;function yn(){var Kt=ln.current;In(Kt),bt(Kt),We([]),Ht(null),wr()}(0,Ve.Z)(function(){Vt(Fe);var Kt=zt(ei,Fe);if(Kt.key!==null)if(Kt.add){var hn=wn.findIndex(function(On){var cr=On.key;return cr===Kt.key}),Hn=Zt(Dt(wn,ae,Kt.key),Ft,it,Ot),Zn=wn.slice();Zn.splice(hn+1,0,Yt),bt(Zn),We(Hn),Ht("show")}else{var Kn=ae.findIndex(function(On){var cr=On.key;return cr===Kt.key}),jn=Zt(Dt(ae,wn,Kt.key),Ft,it,Ot),nr=ae.slice();nr.splice(Kn+1,0,Yt),bt(nr),We(jn),Ht("hide")}else wn!==ae&&(In(ae),bt(ae))},[Fe,ae]),Ue.useEffect(function(){Rt||yn()},[Rt]);var En=Le?gn:ae,Mn={expandedKeys:Fe,selectedKeys:De,loadedKeys:rt,loadingKeys:Ge,checkedKeys:mt,halfCheckedKeys:xt,dragOverNodeKey:rn,dropPosition:lt,keyEntities:Xt};return Ue.createElement(Ue.Fragment,null,Bn&&bn&&Ue.createElement("span",{style:St,"aria-live":"assertive"},ot(bn)),Ue.createElement("div",null,Ue.createElement("input",{style:St,disabled:Qt===!1||ct,tabIndex:Qt!==!1?Ln:null,onKeyDown:Gn,onFocus:Yn,onBlur:_n,value:"",onChange:It,"aria-label":"for screen reader"})),Ue.createElement("div",{className:"".concat(de,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Ue.createElement("div",{className:"".concat(de,"-indent")},Ue.createElement("div",{ref:kr,className:"".concat(de,"-indent-unit")}))),Ue.createElement(Se.Z,(0,me.Z)({},qn,{data:En,itemKey:at,height:it,fullHeight:!1,virtual:Ft,itemHeight:Ot,prefixCls:"".concat(de,"-list"),ref:fr,onVisibleChange:function(hn,Hn){var Zn=new Set(hn),Kn=Hn.filter(function(jn){return!Zn.has(jn)});Kn.some(function(jn){return at(jn)===Qe})&&yn()}}),function(Kt){var hn=Kt.pos,Hn=(0,me.Z)({},(At(Kt.data),Kt.data)),Zn=Kt.title,Kn=Kt.key,jn=Kt.isStart,nr=Kt.isEnd,On=(0,Xe.km)(Kn,hn);delete Hn.key,delete Hn.children;var cr=(0,Xe.H8)(On,Mn);return Ue.createElement(qe,(0,me.Z)({},Hn,cr,{title:Zn,active:!!bn&&Kn===bn.key,pos:hn,data:Kt.data,isStart:jn,isEnd:nr,motion:Le,motionNodes:Kn===Qe?Ze:null,motionType:Jt,onMotionStart:br,onMotionEnd:yn,treeNodeRequiredProps:Mn,onMouseMove:function(){ir(null)}}))}))});Nt.displayName="NodeList";var Sn=Nt,$t=oe(35654),mn=oe(90782),on=oe(67841),nn=10,en=function(se){(0,Ee.Z)(de,se);var ce=(0,ze.Z)(de);function de(){var ae;(0,ke.Z)(this,de);for(var Be=arguments.length,ft=new Array(Be),Fe=0;Fe<Be;Fe++)ft[Fe]=arguments[Fe];return ae=ce.call.apply(ce,[this].concat(ft)),ae.destroyed=!1,ae.delayedDragEnterLogic=void 0,ae.loadingRetryTimes={},ae.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,Xe.w$)()},ae.dragStartMousePosition=null,ae.dragNode=void 0,ae.currentMouseOverDroppableNodeKey=null,ae.listRef=Ue.createRef(),ae.onNodeDragStart=function(De,mt){var rt=ae.state,Ge=rt.expandedKeys,xt=rt.keyEntities,Xt=ae.props.onDragStart,ct=mt.props.eventKey;ae.dragNode=mt,ae.dragStartMousePosition={x:De.clientX,y:De.clientY};var Rt=(0,$t._5)(Ge,ct);ae.setState({draggingNodeKey:ct,dragChildrenKeys:(0,$t.wA)(ct,xt),indent:ae.listRef.current.getIndentWidth()}),ae.setExpandedKeys(Rt),window.addEventListener("dragend",ae.onWindowDragEnd),Xt==null||Xt({event:De,node:(0,Xe.F)(mt.props)})},ae.onNodeDragEnter=function(De,mt){var rt=ae.state,Ge=rt.expandedKeys,xt=rt.keyEntities,Xt=rt.dragChildrenKeys,ct=rt.flattenNodes,Rt=rt.indent,rn=ae.props,lt=rn.onDragEnter,Le=rn.onExpand,it=rn.allowDrop,Ot=rn.direction,Ft=mt.props,Qt=Ft.pos,bn=Ft.eventKey,Bn=(0,we.Z)(ae),Ln=Bn.dragNode;if(ae.currentMouseOverDroppableNodeKey!==bn&&(ae.currentMouseOverDroppableNodeKey=bn),!Ln){ae.resetDragState();return}var Gn=(0,$t.OM)(De,Ln,mt,Rt,ae.dragStartMousePosition,it,ct,xt,Ge,Ot),Yn=Gn.dropPosition,_n=Gn.dropLevelOffset,ir=Gn.dropTargetKey,br=Gn.dropContainerKey,wr=Gn.dropTargetPos,qn=Gn.dropAllowed,fr=Gn.dragOverNodeKey;if(Xt.indexOf(ir)!==-1||!qn){ae.resetDragState();return}if(ae.delayedDragEnterLogic||(ae.delayedDragEnterLogic={}),Object.keys(ae.delayedDragEnterLogic).forEach(function(kr){clearTimeout(ae.delayedDragEnterLogic[kr])}),Ln.props.eventKey!==mt.props.eventKey&&(De.persist(),ae.delayedDragEnterLogic[Qt]=window.setTimeout(function(){if(ae.state.draggingNodeKey!==null){var kr=(0,ge.Z)(Ge),Qn=(0,on.Z)(xt,mt.props.eventKey);Qn&&(Qn.children||[]).length&&(kr=(0,$t.L0)(Ge,mt.props.eventKey)),"expandedKeys"in ae.props||ae.setExpandedKeys(kr),Le==null||Le(kr,{node:(0,Xe.F)(mt.props),expanded:!0,nativeEvent:De.nativeEvent})}},800)),Ln.props.eventKey===ir&&_n===0){ae.resetDragState();return}ae.setState({dragOverNodeKey:fr,dropPosition:Yn,dropLevelOffset:_n,dropTargetKey:ir,dropContainerKey:br,dropTargetPos:wr,dropAllowed:qn}),lt==null||lt({event:De,node:(0,Xe.F)(mt.props),expandedKeys:Ge})},ae.onNodeDragOver=function(De,mt){var rt=ae.state,Ge=rt.dragChildrenKeys,xt=rt.flattenNodes,Xt=rt.keyEntities,ct=rt.expandedKeys,Rt=rt.indent,rn=ae.props,lt=rn.onDragOver,Le=rn.allowDrop,it=rn.direction,Ot=(0,we.Z)(ae),Ft=Ot.dragNode;if(Ft){var Qt=(0,$t.OM)(De,Ft,mt,Rt,ae.dragStartMousePosition,Le,xt,Xt,ct,it),bn=Qt.dropPosition,Bn=Qt.dropLevelOffset,Ln=Qt.dropTargetKey,Gn=Qt.dropContainerKey,Yn=Qt.dropAllowed,_n=Qt.dropTargetPos,ir=Qt.dragOverNodeKey;Ge.indexOf(Ln)!==-1||!Yn||(Ft.props.eventKey===Ln&&Bn===0?ae.state.dropPosition===null&&ae.state.dropLevelOffset===null&&ae.state.dropTargetKey===null&&ae.state.dropContainerKey===null&&ae.state.dropTargetPos===null&&ae.state.dropAllowed===!1&&ae.state.dragOverNodeKey===null||ae.resetDragState():bn===ae.state.dropPosition&&Bn===ae.state.dropLevelOffset&&Ln===ae.state.dropTargetKey&&Gn===ae.state.dropContainerKey&&_n===ae.state.dropTargetPos&&Yn===ae.state.dropAllowed&&ir===ae.state.dragOverNodeKey||ae.setState({dropPosition:bn,dropLevelOffset:Bn,dropTargetKey:Ln,dropContainerKey:Gn,dropTargetPos:_n,dropAllowed:Yn,dragOverNodeKey:ir}),lt==null||lt({event:De,node:(0,Xe.F)(mt.props)}))}},ae.onNodeDragLeave=function(De,mt){ae.currentMouseOverDroppableNodeKey===mt.props.eventKey&&!De.currentTarget.contains(De.relatedTarget)&&(ae.resetDragState(),ae.currentMouseOverDroppableNodeKey=null);var rt=ae.props.onDragLeave;rt==null||rt({event:De,node:(0,Xe.F)(mt.props)})},ae.onWindowDragEnd=function(De){ae.onNodeDragEnd(De,null,!0),window.removeEventListener("dragend",ae.onWindowDragEnd)},ae.onNodeDragEnd=function(De,mt){var rt=ae.props.onDragEnd;ae.setState({dragOverNodeKey:null}),ae.cleanDragState(),rt==null||rt({event:De,node:(0,Xe.F)(mt.props)}),ae.dragNode=null,window.removeEventListener("dragend",ae.onWindowDragEnd)},ae.onNodeDrop=function(De,mt){var rt,Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xt=ae.state,Xt=xt.dragChildrenKeys,ct=xt.dropPosition,Rt=xt.dropTargetKey,rn=xt.dropTargetPos,lt=xt.dropAllowed;if(lt){var Le=ae.props.onDrop;if(ae.setState({dragOverNodeKey:null}),ae.cleanDragState(),Rt!==null){var it=(0,pt.Z)((0,pt.Z)({},(0,Xe.H8)(Rt,ae.getTreeNodeRequiredProps())),{},{active:((rt=ae.getActiveItem())===null||rt===void 0?void 0:rt.key)===Rt,data:(0,on.Z)(ae.state.keyEntities,Rt).node}),Ot=Xt.indexOf(Rt)!==-1;(0,Je.ZP)(!Ot,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ft=(0,$t.yx)(rn),Qt={event:De,node:(0,Xe.F)(it),dragNode:ae.dragNode?(0,Xe.F)(ae.dragNode.props):null,dragNodesKeys:[ae.dragNode.props.eventKey].concat(Xt),dropToGap:ct!==0,dropPosition:ct+Number(Ft[Ft.length-1])};Ge||Le==null||Le(Qt),ae.dragNode=null}}},ae.cleanDragState=function(){var De=ae.state.draggingNodeKey;De!==null&&ae.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ae.dragStartMousePosition=null,ae.currentMouseOverDroppableNodeKey=null},ae.triggerExpandActionExpand=function(De,mt){var rt=ae.state,Ge=rt.expandedKeys,xt=rt.flattenNodes,Xt=mt.expanded,ct=mt.key,Rt=mt.isLeaf;if(!(Rt||De.shiftKey||De.metaKey||De.ctrlKey)){var rn=xt.filter(function(Le){return Le.key===ct})[0],lt=(0,Xe.F)((0,pt.Z)((0,pt.Z)({},(0,Xe.H8)(ct,ae.getTreeNodeRequiredProps())),{},{data:rn.data}));ae.setExpandedKeys(Xt?(0,$t._5)(Ge,ct):(0,$t.L0)(Ge,ct)),ae.onNodeExpand(De,lt)}},ae.onNodeClick=function(De,mt){var rt=ae.props,Ge=rt.onClick,xt=rt.expandAction;xt==="click"&&ae.triggerExpandActionExpand(De,mt),Ge==null||Ge(De,mt)},ae.onNodeDoubleClick=function(De,mt){var rt=ae.props,Ge=rt.onDoubleClick,xt=rt.expandAction;xt==="doubleClick"&&ae.triggerExpandActionExpand(De,mt),Ge==null||Ge(De,mt)},ae.onNodeSelect=function(De,mt){var rt=ae.state.selectedKeys,Ge=ae.state,xt=Ge.keyEntities,Xt=Ge.fieldNames,ct=ae.props,Rt=ct.onSelect,rn=ct.multiple,lt=mt.selected,Le=mt[Xt.key],it=!lt;it?rn?rt=(0,$t.L0)(rt,Le):rt=[Le]:rt=(0,$t._5)(rt,Le);var Ot=rt.map(function(Ft){var Qt=(0,on.Z)(xt,Ft);return Qt?Qt.node:null}).filter(function(Ft){return Ft});ae.setUncontrolledState({selectedKeys:rt}),Rt==null||Rt(rt,{event:"select",selected:it,node:mt,selectedNodes:Ot,nativeEvent:De.nativeEvent})},ae.onNodeCheck=function(De,mt,rt){var Ge=ae.state,xt=Ge.keyEntities,Xt=Ge.checkedKeys,ct=Ge.halfCheckedKeys,Rt=ae.props,rn=Rt.checkStrictly,lt=Rt.onCheck,Le=mt.key,it,Ot={event:"check",node:mt,checked:rt,nativeEvent:De.nativeEvent};if(rn){var Ft=rt?(0,$t.L0)(Xt,Le):(0,$t._5)(Xt,Le),Qt=(0,$t._5)(ct,Le);it={checked:Ft,halfChecked:Qt},Ot.checkedNodes=Ft.map(function(_n){return(0,on.Z)(xt,_n)}).filter(function(_n){return _n}).map(function(_n){return _n.node}),ae.setUncontrolledState({checkedKeys:Ft})}else{var bn=(0,mn.S)([].concat((0,ge.Z)(Xt),[Le]),!0,xt),Bn=bn.checkedKeys,Ln=bn.halfCheckedKeys;if(!rt){var Gn=new Set(Bn);Gn.delete(Le);var Yn=(0,mn.S)(Array.from(Gn),{checked:!1,halfCheckedKeys:Ln},xt);Bn=Yn.checkedKeys,Ln=Yn.halfCheckedKeys}it=Bn,Ot.checkedNodes=[],Ot.checkedNodesPositions=[],Ot.halfCheckedKeys=Ln,Bn.forEach(function(_n){var ir=(0,on.Z)(xt,_n);if(ir){var br=ir.node,wr=ir.pos;Ot.checkedNodes.push(br),Ot.checkedNodesPositions.push({node:br,pos:wr})}}),ae.setUncontrolledState({checkedKeys:Bn},!1,{halfCheckedKeys:Ln})}lt==null||lt(it,Ot)},ae.onNodeLoad=function(De){var mt=De.key,rt=new Promise(function(Ge,xt){ae.setState(function(Xt){var ct=Xt.loadedKeys,Rt=ct===void 0?[]:ct,rn=Xt.loadingKeys,lt=rn===void 0?[]:rn,Le=ae.props,it=Le.loadData,Ot=Le.onLoad;if(!it||Rt.indexOf(mt)!==-1||lt.indexOf(mt)!==-1)return null;var Ft=it(De);return Ft.then(function(){var Qt=ae.state.loadedKeys,bn=(0,$t.L0)(Qt,mt);Ot==null||Ot(bn,{event:"load",node:De}),ae.setUncontrolledState({loadedKeys:bn}),ae.setState(function(Bn){return{loadingKeys:(0,$t._5)(Bn.loadingKeys,mt)}}),Ge()}).catch(function(Qt){if(ae.setState(function(Bn){return{loadingKeys:(0,$t._5)(Bn.loadingKeys,mt)}}),ae.loadingRetryTimes[mt]=(ae.loadingRetryTimes[mt]||0)+1,ae.loadingRetryTimes[mt]>=nn){var bn=ae.state.loadedKeys;(0,Je.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ae.setUncontrolledState({loadedKeys:(0,$t.L0)(bn,mt)}),Ge()}xt(Qt)}),{loadingKeys:(0,$t.L0)(lt,mt)}})});return rt.catch(function(){}),rt},ae.onNodeMouseEnter=function(De,mt){var rt=ae.props.onMouseEnter;rt==null||rt({event:De,node:mt})},ae.onNodeMouseLeave=function(De,mt){var rt=ae.props.onMouseLeave;rt==null||rt({event:De,node:mt})},ae.onNodeContextMenu=function(De,mt){var rt=ae.props.onRightClick;rt&&(De.preventDefault(),rt({event:De,node:mt}))},ae.onFocus=function(){var De=ae.props.onFocus;ae.setState({focused:!0});for(var mt=arguments.length,rt=new Array(mt),Ge=0;Ge<mt;Ge++)rt[Ge]=arguments[Ge];De==null||De.apply(void 0,rt)},ae.onBlur=function(){var De=ae.props.onBlur;ae.setState({focused:!1}),ae.onActiveChange(null);for(var mt=arguments.length,rt=new Array(mt),Ge=0;Ge<mt;Ge++)rt[Ge]=arguments[Ge];De==null||De.apply(void 0,rt)},ae.getTreeNodeRequiredProps=function(){var De=ae.state,mt=De.expandedKeys,rt=De.selectedKeys,Ge=De.loadedKeys,xt=De.loadingKeys,Xt=De.checkedKeys,ct=De.halfCheckedKeys,Rt=De.dragOverNodeKey,rn=De.dropPosition,lt=De.keyEntities;return{expandedKeys:mt||[],selectedKeys:rt||[],loadedKeys:Ge||[],loadingKeys:xt||[],checkedKeys:Xt||[],halfCheckedKeys:ct||[],dragOverNodeKey:Rt,dropPosition:rn,keyEntities:lt}},ae.setExpandedKeys=function(De){var mt=ae.state,rt=mt.treeData,Ge=mt.fieldNames,xt=(0,Xe.oH)(rt,De,Ge);ae.setUncontrolledState({expandedKeys:De,flattenNodes:xt},!0)},ae.onNodeExpand=function(De,mt){var rt=ae.state.expandedKeys,Ge=ae.state,xt=Ge.listChanging,Xt=Ge.fieldNames,ct=ae.props,Rt=ct.onExpand,rn=ct.loadData,lt=mt.expanded,Le=mt[Xt.key];if(!xt){var it=rt.indexOf(Le),Ot=!lt;if((0,Je.ZP)(lt&&it!==-1||!lt&&it===-1,"Expand state not sync with index check"),Ot?rt=(0,$t.L0)(rt,Le):rt=(0,$t._5)(rt,Le),ae.setExpandedKeys(rt),Rt==null||Rt(rt,{node:mt,expanded:Ot,nativeEvent:De.nativeEvent}),Ot&&rn){var Ft=ae.onNodeLoad(mt);Ft&&Ft.then(function(){var Qt=(0,Xe.oH)(ae.state.treeData,rt,Xt);ae.setUncontrolledState({flattenNodes:Qt})}).catch(function(){var Qt=ae.state.expandedKeys,bn=(0,$t._5)(Qt,Le);ae.setExpandedKeys(bn)})}}},ae.onListChangeStart=function(){ae.setUncontrolledState({listChanging:!0})},ae.onListChangeEnd=function(){setTimeout(function(){ae.setUncontrolledState({listChanging:!1})})},ae.onActiveChange=function(De){var mt=ae.state.activeKey,rt=ae.props.onActiveChange;mt!==De&&(ae.setState({activeKey:De}),De!==null&&ae.scrollTo({key:De}),rt==null||rt(De))},ae.getActiveItem=function(){var De=ae.state,mt=De.activeKey,rt=De.flattenNodes;return mt===null?null:rt.find(function(Ge){var xt=Ge.key;return xt===mt})||null},ae.offsetActiveKey=function(De){var mt=ae.state,rt=mt.flattenNodes,Ge=mt.activeKey,xt=rt.findIndex(function(Rt){var rn=Rt.key;return rn===Ge});xt===-1&&De<0&&(xt=rt.length),xt=(xt+De+rt.length)%rt.length;var Xt=rt[xt];if(Xt){var ct=Xt.key;ae.onActiveChange(ct)}else ae.onActiveChange(null)},ae.onKeyDown=function(De){var mt=ae.state,rt=mt.activeKey,Ge=mt.expandedKeys,xt=mt.checkedKeys,Xt=mt.fieldNames,ct=ae.props,Rt=ct.onKeyDown,rn=ct.checkable,lt=ct.selectable;switch(De.which){case He.Z.UP:{ae.offsetActiveKey(-1),De.preventDefault();break}case He.Z.DOWN:{ae.offsetActiveKey(1),De.preventDefault();break}}var Le=ae.getActiveItem();if(Le&&Le.data){var it=ae.getTreeNodeRequiredProps(),Ot=Le.data.isLeaf===!1||!!(Le.data[Xt.children]||[]).length,Ft=(0,Xe.F)((0,pt.Z)((0,pt.Z)({},(0,Xe.H8)(rt,it)),{},{data:Le.data,active:!0}));switch(De.which){case He.Z.LEFT:{Ot&&Ge.includes(rt)?ae.onNodeExpand({},Ft):Le.parent&&ae.onActiveChange(Le.parent.key),De.preventDefault();break}case He.Z.RIGHT:{Ot&&!Ge.includes(rt)?ae.onNodeExpand({},Ft):Le.children&&Le.children.length&&ae.onActiveChange(Le.children[0].key),De.preventDefault();break}case He.Z.ENTER:case He.Z.SPACE:{rn&&!Ft.disabled&&Ft.checkable!==!1&&!Ft.disableCheckbox?ae.onNodeCheck({},Ft,!xt.includes(rt)):!rn&&lt&&!Ft.disabled&&Ft.selectable!==!1&&ae.onNodeSelect({},Ft);break}}}Rt==null||Rt(De)},ae.setUncontrolledState=function(De){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ae.destroyed){var Ge=!1,xt=!0,Xt={};Object.keys(De).forEach(function(ct){if(ct in ae.props){xt=!1;return}Ge=!0,Xt[ct]=De[ct]}),Ge&&(!mt||xt)&&ae.setState((0,pt.Z)((0,pt.Z)({},Xt),rt))}},ae.scrollTo=function(De){ae.listRef.current.scrollTo(De)},ae}return(0,he.Z)(de,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Be=this.props.activeKey;Be!==void 0&&Be!==this.state.activeKey&&(this.setState({activeKey:Be}),Be!==null&&this.scrollTo({key:Be}))}},{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 Be,ft=this.state,Fe=ft.focused,De=ft.flattenNodes,mt=ft.keyEntities,rt=ft.draggingNodeKey,Ge=ft.activeKey,xt=ft.dropLevelOffset,Xt=ft.dropContainerKey,ct=ft.dropTargetKey,Rt=ft.dropPosition,rn=ft.dragOverNodeKey,lt=ft.indent,Le=this.props,it=Le.prefixCls,Ot=Le.className,Ft=Le.style,Qt=Le.showLine,bn=Le.focusable,Bn=Le.tabIndex,Ln=Bn===void 0?0:Bn,Gn=Le.selectable,Yn=Le.showIcon,_n=Le.icon,ir=Le.switcherIcon,br=Le.draggable,wr=Le.checkable,qn=Le.checkStrictly,fr=Le.disabled,kr=Le.motion,Qn=Le.loadData,Nr=Le.filterTreeNode,ei=Le.height,Vt=Le.itemHeight,Rn=Le.virtual,Nn=Le.titleRender,wn=Le.dropIndicatorRender,In=Le.onContextMenu,xn=Le.onScroll,kn=Le.direction,gn=Le.rootClassName,bt=Le.rootStyle,Ae=(0,st.Z)(this.props,{aria:!0,data:!0}),je;return br&&((0,Pe.Z)(br)==="object"?je=br:typeof br=="function"?je={nodeDraggable:br}:je={}),Ue.createElement(gt.k.Provider,{value:{prefixCls:it,selectable:Gn,showIcon:Yn,icon:_n,switcherIcon:ir,draggable:je,draggingNodeKey:rt,checkable:wr,checkStrictly:qn,disabled:fr,keyEntities:mt,dropLevelOffset:xt,dropContainerKey:Xt,dropTargetKey:ct,dropPosition:Rt,dragOverNodeKey:rn,indent:lt,direction:kn,dropIndicatorRender:wn,loadData:Qn,filterTreeNode:Nr,titleRender:Nn,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}},Ue.createElement("div",{role:"tree",className:Ie()(it,Ot,gn,(Be={},(0,Me.Z)(Be,"".concat(it,"-show-line"),Qt),(0,Me.Z)(Be,"".concat(it,"-focused"),Fe),(0,Me.Z)(Be,"".concat(it,"-active-focused"),Ge!==null),Be)),style:bt},Ue.createElement(Sn,(0,me.Z)({ref:this.listRef,prefixCls:it,style:Ft,data:De,disabled:fr,selectable:Gn,checkable:!!wr,motion:kr,dragging:rt!==null,height:ei,itemHeight:Vt,virtual:Rn,focusable:bn,focused:Fe,tabIndex:Ln,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:In,onScroll:xn},this.getTreeNodeRequiredProps(),Ae))))}}],[{key:"getDerivedStateFromProps",value:function(Be,ft){var Fe=ft.prevProps,De={prevProps:Be};function mt(bn){return!Fe&&bn in Be||Fe&&Fe[bn]!==Be[bn]}var rt,Ge=ft.fieldNames;if(mt("fieldNames")&&(Ge=(0,Xe.w$)(Be.fieldNames),De.fieldNames=Ge),mt("treeData")?rt=Be.treeData:mt("children")&&((0,Je.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),rt=(0,Xe.zn)(Be.children)),rt){De.treeData=rt;var xt=(0,Xe.I8)(rt,{fieldNames:Ge});De.keyEntities=(0,pt.Z)((0,Me.Z)({},Qe,Ct),xt.keyEntities)}var Xt=De.keyEntities||ft.keyEntities;if(mt("expandedKeys")||Fe&&mt("autoExpandParent"))De.expandedKeys=Be.autoExpandParent||!Fe&&Be.defaultExpandParent?(0,$t.r7)(Be.expandedKeys,Xt):Be.expandedKeys;else if(!Fe&&Be.defaultExpandAll){var ct=(0,pt.Z)({},Xt);delete ct[Qe],De.expandedKeys=Object.keys(ct).map(function(bn){return ct[bn].key})}else!Fe&&Be.defaultExpandedKeys&&(De.expandedKeys=Be.autoExpandParent||Be.defaultExpandParent?(0,$t.r7)(Be.defaultExpandedKeys,Xt):Be.defaultExpandedKeys);if(De.expandedKeys||delete De.expandedKeys,rt||De.expandedKeys){var Rt=(0,Xe.oH)(rt||ft.treeData,De.expandedKeys||ft.expandedKeys,Ge);De.flattenNodes=Rt}if(Be.selectable&&(mt("selectedKeys")?De.selectedKeys=(0,$t.BT)(Be.selectedKeys,Be):!Fe&&Be.defaultSelectedKeys&&(De.selectedKeys=(0,$t.BT)(Be.defaultSelectedKeys,Be))),Be.checkable){var rn;if(mt("checkedKeys")?rn=(0,$t.E6)(Be.checkedKeys)||{}:!Fe&&Be.defaultCheckedKeys?rn=(0,$t.E6)(Be.defaultCheckedKeys)||{}:rt&&(rn=(0,$t.E6)(Be.checkedKeys)||{checkedKeys:ft.checkedKeys,halfCheckedKeys:ft.halfCheckedKeys}),rn){var lt=rn,Le=lt.checkedKeys,it=Le===void 0?[]:Le,Ot=lt.halfCheckedKeys,Ft=Ot===void 0?[]:Ot;if(!Be.checkStrictly){var Qt=(0,mn.S)(it,!0,Xt);it=Qt.checkedKeys,Ft=Qt.halfCheckedKeys}De.checkedKeys=it,De.halfCheckedKeys=Ft}}return mt("loadedKeys")&&(De.loadedKeys=Be.loadedKeys),De}}]),de}(Ue.Component);en.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Et,allowDrop:function(){return!0},expandAction:!1},en.TreeNode=Ye.Z;var ye=en,ue=ye},35654:function(An,Ut,oe){"use strict";oe.d(Ut,{BT:function(){return Ue},E6:function(){return At},L0:function(){return ze},OM:function(){return Je},_5:function(){return Ee},r7:function(){return dt},wA:function(){return Ie},yx:function(){return vt}});var me=oe(77654),Me=oe(43749),Pe=oe(48736),pt=oe(59301),ge=oe(39417),ke=oe(67841),he=oe(71430),we=null;function Ee(nt,Ve){if(!nt)return[];var Se=nt.slice(),$e=Se.indexOf(Ve);return $e>=0&&Se.splice($e,1),Se}function ze(nt,Ve){var Se=(nt||[]).slice();return Se.indexOf(Ve)===-1&&Se.push(Ve),Se}function vt(nt){return nt.split("-")}function Ie(nt,Ve){var Se=[],$e=(0,ke.Z)(Ve,nt);function Ye(){var ht=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ht.forEach(function(Xe){var ut=Xe.key,Oe=Xe.children;Se.push(ut),Ye(Oe)})}return Ye($e.children),Se}function He(nt){if(nt.parent){var Ve=vt(nt.pos);return Number(Ve[Ve.length-1])===nt.parent.children.length-1}return!1}function st(nt){var Ve=vt(nt.pos);return Number(Ve[Ve.length-1])===0}function Je(nt,Ve,Se,$e,Ye,ht,Xe,ut,Oe,Pt){var qe,zt=nt.clientX,Dt=nt.clientY,Bt=nt.target.getBoundingClientRect(),St=Bt.top,It=Bt.height,Qe=(Pt==="rtl"?-1:1)*(((Ye==null?void 0:Ye.x)||0)-zt),be=(Qe-12)/$e,Ct=(0,ke.Z)(ut,Se.props.eventKey);if(Dt<St+It/2){var Yt=Xe.findIndex(function(ue){return ue.key===Ct.key}),Zt=Yt<=0?0:Yt-1,at=Xe[Zt].key;Ct=(0,ke.Z)(ut,at)}var ot=Ct.key,Nt=Ct,Sn=Ct.key,$t=0,mn=0;if(!Oe.includes(ot))for(var on=0;on<be&&He(Ct);on+=1)Ct=Ct.parent,mn+=1;var nn=Ve.props.data,en=Ct.node,ye=!0;return st(Ct)&&Ct.level===0&&Dt<St+It/2&&ht({dragNode:nn,dropNode:en,dropPosition:-1})&&Ct.key===Se.props.eventKey?$t=-1:(Nt.children||[]).length&&Oe.includes(Sn)?ht({dragNode:nn,dropNode:en,dropPosition:0})?$t=0:ye=!1:mn===0?be>-1.5?ht({dragNode:nn,dropNode:en,dropPosition:1})?$t=1:ye=!1:ht({dragNode:nn,dropNode:en,dropPosition:0})?$t=0:ht({dragNode:nn,dropNode:en,dropPosition:1})?$t=1:ye=!1:ht({dragNode:nn,dropNode:en,dropPosition:1})?$t=1:ye=!1,{dropPosition:$t,dropLevelOffset:mn,dropTargetKey:Ct.key,dropTargetPos:Ct.pos,dragOverNodeKey:Sn,dropContainerKey:$t===0?null:((qe=Ct.parent)===null||qe===void 0?void 0:qe.key)||null,dropAllowed:ye}}function Ue(nt,Ve){if(nt){var Se=Ve.multiple;return Se?nt.slice():nt.length?[nt[0]]:nt}}var gt=function(Ve){return Ve};function Et(nt,Ve){if(!nt)return[];var Se=Ve||{},$e=Se.processProps,Ye=$e===void 0?gt:$e,ht=Array.isArray(nt)?nt:[nt];return ht.map(function(Xe){var ut=Xe.children,Oe=_objectWithoutProperties(Xe,we),Pt=Et(ut,Ve);return React.createElement(TreeNode,_extends({key:Oe.key},Ye(Oe)),Pt)})}function At(nt){if(!nt)return null;var Ve;if(Array.isArray(nt))Ve={checkedKeys:nt,halfCheckedKeys:void 0};else if((0,Me.Z)(nt)==="object")Ve={checkedKeys:nt.checked||void 0,halfCheckedKeys:nt.halfChecked||void 0};else return(0,Pe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ve}function dt(nt,Ve){var Se=new Set;function $e(Ye){if(!Se.has(Ye)){var ht=(0,ke.Z)(Ve,Ye);if(ht){Se.add(Ye);var Xe=ht.parent,ut=ht.node;ut.disabled||Xe&&$e(Xe.key)}}}return(nt||[]).forEach(function(Ye){$e(Ye)}),(0,me.Z)(Se)}},90782:function(An,Ut,oe){"use strict";oe.d(Ut,{S:function(){return he}});var me=oe(48736),Me=oe(67841);function Pe(we,Ee){var ze=new Set;return we.forEach(function(vt){Ee.has(vt)||ze.add(vt)}),ze}function pt(we){var Ee=we||{},ze=Ee.disabled,vt=Ee.disableCheckbox,Ie=Ee.checkable;return!!(ze||vt)||Ie===!1}function ge(we,Ee,ze,vt){for(var Ie=new Set(we),He=new Set,st=0;st<=ze;st+=1){var Je=Ee.get(st)||new Set;Je.forEach(function(At){var dt=At.key,nt=At.node,Ve=At.children,Se=Ve===void 0?[]:Ve;Ie.has(dt)&&!vt(nt)&&Se.filter(function($e){return!vt($e.node)}).forEach(function($e){Ie.add($e.key)})})}for(var Ue=new Set,gt=ze;gt>=0;gt-=1){var Et=Ee.get(gt)||new Set;Et.forEach(function(At){var dt=At.parent,nt=At.node;if(!(vt(nt)||!At.parent||Ue.has(At.parent.key))){if(vt(At.parent.node)){Ue.add(dt.key);return}var Ve=!0,Se=!1;(dt.children||[]).filter(function($e){return!vt($e.node)}).forEach(function($e){var Ye=$e.key,ht=Ie.has(Ye);Ve&&!ht&&(Ve=!1),!Se&&(ht||He.has(Ye))&&(Se=!0)}),Ve&&Ie.add(dt.key),Se&&He.add(dt.key),Ue.add(dt.key)}})}return{checkedKeys:Array.from(Ie),halfCheckedKeys:Array.from(Pe(He,Ie))}}function ke(we,Ee,ze,vt,Ie){for(var He=new Set(we),st=new Set(Ee),Je=0;Je<=vt;Je+=1){var Ue=ze.get(Je)||new Set;Ue.forEach(function(dt){var nt=dt.key,Ve=dt.node,Se=dt.children,$e=Se===void 0?[]:Se;!He.has(nt)&&!st.has(nt)&&!Ie(Ve)&&$e.filter(function(Ye){return!Ie(Ye.node)}).forEach(function(Ye){He.delete(Ye.key)})})}st=new Set;for(var gt=new Set,Et=vt;Et>=0;Et-=1){var At=ze.get(Et)||new Set;At.forEach(function(dt){var nt=dt.parent,Ve=dt.node;if(!(Ie(Ve)||!dt.parent||gt.has(dt.parent.key))){if(Ie(dt.parent.node)){gt.add(nt.key);return}var Se=!0,$e=!1;(nt.children||[]).filter(function(Ye){return!Ie(Ye.node)}).forEach(function(Ye){var ht=Ye.key,Xe=He.has(ht);Se&&!Xe&&(Se=!1),!$e&&(Xe||st.has(ht))&&($e=!0)}),Se||He.delete(nt.key),$e&&st.add(nt.key),gt.add(nt.key)}})}return{checkedKeys:Array.from(He),halfCheckedKeys:Array.from(Pe(st,He))}}function he(we,Ee,ze,vt){var Ie=[],He;vt?He=vt:He=pt;var st=new Set(we.filter(function(Et){var At=!!(0,Me.Z)(ze,Et);return At||Ie.push(Et),At})),Je=new Map,Ue=0;Object.keys(ze).forEach(function(Et){var At=ze[Et],dt=At.level,nt=Je.get(dt);nt||(nt=new Set,Je.set(dt,nt)),nt.add(At),Ue=Math.max(Ue,dt)}),(0,me.ZP)(!Ie.length,"Tree missing follow keys: ".concat(Ie.slice(0,100).map(function(Et){return"'".concat(Et,"'")}).join(", ")));var gt;return Ee===!0?gt=ge(st,Je,Ue,He):gt=ke(st,Ee.halfCheckedKeys,Je,Ue,He),gt}},67841:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return me}});function me(Me,Pe){return Me[Pe]}},71430:function(An,Ut,oe){"use strict";oe.d(Ut,{F:function(){return dt},H8:function(){return At},I8:function(){return Et},km:function(){return Ie},oH:function(){return Ue},w$:function(){return He},zn:function(){return Je}});var me=oe(43749),Me=oe(77654),Pe=oe(85899),pt=oe(42244),ge=oe(11592),ke=oe(2738),he=oe(48736),we=oe(67841),Ee=["children"];function ze(nt,Ve){return"".concat(nt,"-").concat(Ve)}function vt(nt){return nt&&nt.type&&nt.type.isTreeNode}function Ie(nt,Ve){return nt!=null?nt:Ve}function He(nt){var Ve=nt||{},Se=Ve.title,$e=Ve._title,Ye=Ve.key,ht=Ve.children,Xe=Se||"title";return{title:Xe,_title:$e||[Xe],key:Ye||"key",children:ht||"children"}}function st(nt,Ve){var Se=new Map;function $e(Ye){var ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ye||[]).forEach(function(Xe){var ut=Xe[Ve.key],Oe=Xe[Ve.children];warning(ut!=null,"Tree node must have a certain key: [".concat(ht).concat(ut,"]"));var Pt=String(ut);warning(!Se.has(Pt)||ut===null||ut===void 0,"Same 'key' exist in the Tree: ".concat(Pt)),Se.set(Pt,!0),$e(Oe,"".concat(ht).concat(Pt," > "))})}$e(nt)}function Je(nt){function Ve(Se){var $e=(0,ge.Z)(Se);return $e.map(function(Ye){if(!vt(Ye))return(0,he.ZP)(!Ye,"Tree/TreeNode can only accept TreeNode as children."),null;var ht=Ye.key,Xe=Ye.props,ut=Xe.children,Oe=(0,pt.Z)(Xe,Ee),Pt=(0,Pe.Z)({key:ht},Oe),qe=Ve(ut);return qe.length&&(Pt.children=qe),Pt}).filter(function(Ye){return Ye})}return Ve(nt)}function Ue(nt,Ve,Se){var $e=He(Se),Ye=$e._title,ht=$e.key,Xe=$e.children,ut=new Set(Ve===!0?[]:Ve),Oe=[];function Pt(qe){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return qe.map(function(Dt,Bt){for(var St=ze(zt?zt.pos:"0",Bt),It=Ie(Dt[ht],St),Qe,be=0;be<Ye.length;be+=1){var Ct=Ye[be];if(Dt[Ct]!==void 0){Qe=Dt[Ct];break}}var Yt=(0,Pe.Z)((0,Pe.Z)({},(0,ke.Z)(Dt,[].concat((0,Me.Z)(Ye),[ht,Xe]))),{},{title:Qe,key:It,parent:zt,pos:St,children:null,data:Dt,isStart:[].concat((0,Me.Z)(zt?zt.isStart:[]),[Bt===0]),isEnd:[].concat((0,Me.Z)(zt?zt.isEnd:[]),[Bt===qe.length-1])});return Oe.push(Yt),Ve===!0||ut.has(It)?Yt.children=Pt(Dt[Xe]||[],Yt):Yt.children=[],Yt})}return Pt(nt),Oe}function gt(nt,Ve,Se){var $e={};(0,me.Z)(Se)==="object"?$e=Se:$e={externalGetKey:Se},$e=$e||{};var Ye=$e,ht=Ye.childrenPropName,Xe=Ye.externalGetKey,ut=Ye.fieldNames,Oe=He(ut),Pt=Oe.key,qe=Oe.children,zt=ht||qe,Dt;Xe?typeof Xe=="string"?Dt=function(It){return It[Xe]}:typeof Xe=="function"&&(Dt=function(It){return Xe(It)}):Dt=function(It,Qe){return Ie(It[Pt],Qe)};function Bt(St,It,Qe,be){var Ct=St?St[zt]:nt,Yt=St?ze(Qe.pos,It):"0",Zt=St?[].concat((0,Me.Z)(be),[St]):[];if(St){var at=Dt(St,Yt),ot={node:St,index:It,pos:Yt,key:at,parentPos:Qe.node?Qe.pos:null,level:Qe.level+1,nodes:Zt};Ve(ot)}Ct&&Ct.forEach(function(Nt,Sn){Bt(Nt,Sn,{node:St,pos:Yt,level:Qe?Qe.level+1:-1},Zt)})}Bt(null)}function Et(nt){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Se=Ve.initWrapper,$e=Ve.processEntity,Ye=Ve.onProcessFinished,ht=Ve.externalGetKey,Xe=Ve.childrenPropName,ut=Ve.fieldNames,Oe=arguments.length>2?arguments[2]:void 0,Pt=ht||Oe,qe={},zt={},Dt={posEntities:qe,keyEntities:zt};return Se&&(Dt=Se(Dt)||Dt),gt(nt,function(Bt){var St=Bt.node,It=Bt.index,Qe=Bt.pos,be=Bt.key,Ct=Bt.parentPos,Yt=Bt.level,Zt=Bt.nodes,at={node:St,nodes:Zt,index:It,key:be,pos:Qe,level:Yt},ot=Ie(be,Qe);qe[Qe]=at,zt[ot]=at,at.parent=qe[Ct],at.parent&&(at.parent.children=at.parent.children||[],at.parent.children.push(at)),$e&&$e(at,Dt)},{externalGetKey:Pt,childrenPropName:Xe,fieldNames:ut}),Ye&&Ye(Dt),Dt}function At(nt,Ve){var Se=Ve.expandedKeys,$e=Ve.selectedKeys,Ye=Ve.loadedKeys,ht=Ve.loadingKeys,Xe=Ve.checkedKeys,ut=Ve.halfCheckedKeys,Oe=Ve.dragOverNodeKey,Pt=Ve.dropPosition,qe=Ve.keyEntities,zt=(0,we.Z)(qe,nt),Dt={eventKey:nt,expanded:Se.indexOf(nt)!==-1,selected:$e.indexOf(nt)!==-1,loaded:Ye.indexOf(nt)!==-1,loading:ht.indexOf(nt)!==-1,checked:Xe.indexOf(nt)!==-1,halfChecked:ut.indexOf(nt)!==-1,pos:String(zt?zt.pos:""),dragOver:Oe===nt&&Pt===0,dragOverGapTop:Oe===nt&&Pt===-1,dragOverGapBottom:Oe===nt&&Pt===1};return Dt}function dt(nt){var Ve=nt.data,Se=nt.expanded,$e=nt.selected,Ye=nt.checked,ht=nt.loaded,Xe=nt.loading,ut=nt.halfChecked,Oe=nt.dragOver,Pt=nt.dragOverGapTop,qe=nt.dragOverGapBottom,zt=nt.pos,Dt=nt.active,Bt=nt.eventKey,St=(0,Pe.Z)((0,Pe.Z)({},Ve),{},{expanded:Se,selected:$e,checked:Ye,loaded:ht,loading:Xe,halfChecked:ut,dragOver:Oe,dragOverGapTop:Pt,dragOverGapBottom:qe,pos:zt,active:Dt,key:Bt});return"props"in St||Object.defineProperty(St,"props",{get:function(){return(0,he.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),nt}}),St}},8224:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return Me}});var me=oe(4676);function Me(Pe,pt,ge,ke){var he=me.unstable_batchedUpdates?function(Ee){me.unstable_batchedUpdates(ge,Ee)}:ge;return Pe!=null&&Pe.addEventListener&&Pe.addEventListener(pt,he,ke),{remove:function(){Pe!=null&&Pe.removeEventListener&&Pe.removeEventListener(pt,he,ke)}}}},55468:function(An,Ut,oe){"use strict";oe.d(Ut,{g1:function(){return vt},os:function(){return He}});var me=/margin|padding|width|height|max|min|offset/,Me={left:!0,top:!0},Pe={cssFloat:1,styleFloat:1,float:1};function pt(st){return st.nodeType===1?st.ownerDocument.defaultView.getComputedStyle(st,null):{}}function ge(st,Je,Ue){if(Je=Je.toLowerCase(),Ue==="auto"){if(Je==="height")return st.offsetHeight;if(Je==="width")return st.offsetWidth}return Je in Me||(Me[Je]=me.test(Je)),Me[Je]?parseFloat(Ue)||0:Ue}function ke(st,Je){var Ue=arguments.length,gt=pt(st);return Je=Pe[Je]?"cssFloat"in st.style?"cssFloat":"styleFloat":Je,Ue===1?gt:ge(st,Je,gt[Je]||st.style[Je])}function he(st,Je,Ue){var gt=arguments.length;if(Je=Pe[Je]?"cssFloat"in st.style?"cssFloat":"styleFloat":Je,gt===3)return typeof Ue=="number"&&me.test(Je)&&(Ue="".concat(Ue,"px")),st.style[Je]=Ue,Ue;for(var Et in Je)Je.hasOwnProperty(Et)&&he(st,Et,Je[Et]);return pt(st)}function we(st){return st===document.body?document.documentElement.clientWidth:st.offsetWidth}function Ee(st){return st===document.body?window.innerHeight||document.documentElement.clientHeight:st.offsetHeight}function ze(){var st=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Je=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:st,height:Je}}function vt(){var st=document.documentElement.clientWidth,Je=window.innerHeight||document.documentElement.clientHeight;return{width:st,height:Je}}function Ie(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function He(st){var Je=st.getBoundingClientRect(),Ue=document.documentElement;return{left:Je.left+(window.pageXOffset||Ue.scrollLeft)-(Ue.clientLeft||document.body.clientLeft||0),top:Je.top+(window.pageYOffset||Ue.scrollTop)-(Ue.clientTop||document.body.clientTop||0)}}},24514:function(An,Ut,oe){"use strict";oe.d(Ut,{G:function(){return pt}});var me=oe(47273),Me=function(ke){if((0,me.Z)()&&window.document.documentElement){var he=Array.isArray(ke)?ke:[ke],we=window.document.documentElement;return he.some(function(Ee){return Ee in we.style})}return!1},Pe=function(ke,he){if(!Me(ke))return!1;var we=document.createElement("div"),Ee=we.style[ke];return we.style[ke]=he,we.style[ke]!==Ee};function pt(ge,ke){return!Array.isArray(ge)&&ke!==void 0?Pe(ge,ke):Me(ge)}},48911:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return en}});var me=oe(60499),Me=oe(43749),Pe=oe(85899),pt=oe(18642),ge=oe(72190),ke=oe(42244),he=oe(92310),we=oe.n(he),Ee=oe(29301),ze=oe(70425),vt=oe(34280),Ie=oe(59301),He=oe(4676),st=Ie.forwardRef(function(ye,ue){var se=ye.height,ce=ye.offsetY,de=ye.offsetX,ae=ye.children,Be=ye.prefixCls,ft=ye.onInnerResize,Fe=ye.innerProps,De=ye.rtl,mt=ye.extra,rt={},Ge={display:"flex",flexDirection:"column"};return ce!==void 0&&(rt={height:se,position:"relative",overflow:"hidden"},Ge=(0,Pe.Z)((0,Pe.Z)({},Ge),{},(0,pt.Z)((0,pt.Z)((0,pt.Z)((0,pt.Z)((0,pt.Z)({transform:"translateY(".concat(ce,"px)")},De?"marginRight":"marginLeft",-de),"position","absolute"),"left",0),"right",0),"top",0))),Ie.createElement("div",{style:rt},Ie.createElement(Ee.Z,{onResize:function(Xt){var ct=Xt.offsetHeight;ct&&ft&&ft()}},Ie.createElement("div",(0,me.Z)({style:Ge,className:we()((0,pt.Z)({},"".concat(Be,"-holder-inner"),Be)),ref:ue},Fe),ae,mt)))});st.displayName="Filler";var Je=st;function Ue(ye){var ue=ye.children,se=ye.setRef,ce=Ie.useCallback(function(de){se(de)},[]);return Ie.cloneElement(ue,{ref:ce})}function gt(ye,ue,se,ce,de,ae,Be,ft){var Fe=ft.getKey;return ye.slice(ue,se+1).map(function(De,mt){var rt=ue+mt,Ge=Be(De,rt,{style:{width:ce},offsetX:de}),xt=Fe(De);return Ie.createElement(Ue,{key:xt,setRef:function(ct){return ae(De,ct)}},Ge)})}function Et(ye,ue,se,ce){var de=se-ye,ae=ue-se,Be=Math.min(de,ae)*2;if(ce<=Be){var ft=Math.floor(ce/2);return ce%2?se+ft+1:se-ft}return de>ae?se-(ce-ae):se+(ce-de)}function At(ye,ue,se){var ce=ye.length,de=ue.length,ae,Be;if(ce===0&&de===0)return null;ce<de?(ae=ye,Be=ue):(ae=ue,Be=ye);var ft={__EMPTY_ITEM__:!0};function Fe(Xt){return Xt!==void 0?se(Xt):ft}for(var De=null,mt=Math.abs(ce-de)!==1,rt=0;rt<Be.length;rt+=1){var Ge=Fe(ae[rt]),xt=Fe(Be[rt]);if(Ge!==xt){De=rt,mt=mt||Ge!==Fe(Be[rt+1]);break}}return De===null?null:{index:De,multiple:mt}}function dt(ye,ue,se){var ce=Ie.useState(ye),de=(0,ge.Z)(ce,2),ae=de[0],Be=de[1],ft=Ie.useState(null),Fe=(0,ge.Z)(ft,2),De=Fe[0],mt=Fe[1];return Ie.useEffect(function(){var rt=At(ae||[],ye||[],ue);(rt==null?void 0:rt.index)!==void 0&&(se==null||se(rt.index),mt(ye[rt.index])),Be(ye)},[ye]),[De]}var nt=oe(16089),Ve=(typeof navigator=="undefined"?"undefined":(0,Me.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Se=Ve,$e=function(ye,ue,se,ce){var de=(0,Ie.useRef)(!1),ae=(0,Ie.useRef)(null);function Be(){clearTimeout(ae.current),de.current=!0,ae.current=setTimeout(function(){de.current=!1},50)}var ft=(0,Ie.useRef)({top:ye,bottom:ue,left:se,right:ce});return ft.current.top=ye,ft.current.bottom=ue,ft.current.left=se,ft.current.right=ce,function(Fe,De){var mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,rt=Fe?De<0&&ft.current.left||De>0&&ft.current.right:De<0&&ft.current.top||De>0&&ft.current.bottom;return mt&&rt?(clearTimeout(ae.current),de.current=!1):(!rt||de.current)&&Be(),!de.current&&rt}};function Ye(ye,ue,se,ce,de,ae,Be){var ft=(0,Ie.useRef)(0),Fe=(0,Ie.useRef)(null),De=(0,Ie.useRef)(null),mt=(0,Ie.useRef)(!1),rt=$e(ue,se,ce,de);function Ge(lt,Le){if(nt.Z.cancel(Fe.current),!rt(!1,Le)){var it=lt;if(!it._virtualHandled)it._virtualHandled=!0;else return;ft.current+=Le,De.current=Le,Se||it.preventDefault(),Fe.current=(0,nt.Z)(function(){var Ot=mt.current?10:1;Be(ft.current*Ot,!1),ft.current=0})}}function xt(lt,Le){Be(Le,!0),Se||lt.preventDefault()}var Xt=(0,Ie.useRef)(null),ct=(0,Ie.useRef)(null);function Rt(lt){if(ye){nt.Z.cancel(ct.current),ct.current=(0,nt.Z)(function(){Xt.current=null},2);var Le=lt.deltaX,it=lt.deltaY,Ot=lt.shiftKey,Ft=Le,Qt=it;(Xt.current==="sx"||!Xt.current&&Ot&&it&&!Le)&&(Ft=it,Qt=0,Xt.current="sx");var bn=Math.abs(Ft),Bn=Math.abs(Qt);Xt.current===null&&(Xt.current=ae&&bn>Bn?"x":"y"),Xt.current==="y"?Ge(lt,Qt):xt(lt,Ft)}}function rn(lt){ye&&(mt.current=lt.detail===De.current)}return[Rt,rn]}function ht(ye,ue,se,ce){var de=Ie.useMemo(function(){return[new Map,[]]},[ye,se.id,ce]),ae=(0,ge.Z)(de,2),Be=ae[0],ft=ae[1],Fe=function(mt){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mt,Ge=Be.get(mt),xt=Be.get(rt);if(Ge===void 0||xt===void 0)for(var Xt=ye.length,ct=ft.length;ct<Xt;ct+=1){var Rt,rn=ye[ct],lt=ue(rn);Be.set(lt,ct);var Le=(Rt=se.get(lt))!==null&&Rt!==void 0?Rt:ce;if(ft[ct]=(ft[ct-1]||0)+Le,lt===mt&&(Ge=ct),lt===rt&&(xt=ct),Ge!==void 0&&xt!==void 0)break}return{top:ft[Ge-1]||0,bottom:ft[xt]}};return Fe}var Xe=oe(38705),ut=oe(17212),Oe=function(){function ye(){(0,Xe.Z)(this,ye),(0,pt.Z)(this,"maps",void 0),(0,pt.Z)(this,"id",0),(0,pt.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,ut.Z)(ye,[{key:"set",value:function(se,ce){this.diffRecords.set(se,this.maps[se]),this.maps[se]=ce,this.id+=1}},{key:"get",value:function(se){return this.maps[se]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ye}(),Pt=Oe;function qe(ye){var ue=parseFloat(ye);return isNaN(ue)?0:ue}function zt(ye,ue,se){var ce=Ie.useState(0),de=(0,ge.Z)(ce,2),ae=de[0],Be=de[1],ft=(0,Ie.useRef)(new Map),Fe=(0,Ie.useRef)(new Pt),De=(0,Ie.useRef)(0);function mt(){De.current+=1}function rt(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;mt();var Xt=function(){var rn=!1;ft.current.forEach(function(lt,Le){if(lt&&lt.offsetParent){var it=lt.offsetHeight,Ot=getComputedStyle(lt),Ft=Ot.marginTop,Qt=Ot.marginBottom,bn=qe(Ft),Bn=qe(Qt),Ln=it+bn+Bn;Fe.current.get(Le)!==Ln&&(Fe.current.set(Le,Ln),rn=!0)}}),rn&&Be(function(lt){return lt+1})};if(xt)Xt();else{De.current+=1;var ct=De.current;Promise.resolve().then(function(){ct===De.current&&Xt()})}}function Ge(xt,Xt){var ct=ye(xt),Rt=ft.current.get(ct);Xt?(ft.current.set(ct,Xt),rt()):ft.current.delete(ct),!Rt!=!Xt&&(Xt?ue==null||ue(xt):se==null||se(xt))}return(0,Ie.useEffect)(function(){return mt},[]),[Ge,rt,Fe.current,ae]}var Dt=14/15;function Bt(ye,ue,se){var ce=(0,Ie.useRef)(!1),de=(0,Ie.useRef)(0),ae=(0,Ie.useRef)(0),Be=(0,Ie.useRef)(null),ft=(0,Ie.useRef)(null),Fe,De=function(xt){if(ce.current){var Xt=Math.ceil(xt.touches[0].pageX),ct=Math.ceil(xt.touches[0].pageY),Rt=de.current-Xt,rn=ae.current-ct,lt=Math.abs(Rt)>Math.abs(rn);lt?de.current=Xt:ae.current=ct;var Le=se(lt,lt?Rt:rn,!1,xt);Le&&xt.preventDefault(),clearInterval(ft.current),Le&&(ft.current=setInterval(function(){lt?Rt*=Dt:rn*=Dt;var it=Math.floor(lt?Rt:rn);(!se(lt,it,!0)||Math.abs(it)<=.1)&&clearInterval(ft.current)},16))}},mt=function(){ce.current=!1,Fe()},rt=function(xt){Fe(),xt.touches.length===1&&!ce.current&&(ce.current=!0,de.current=Math.ceil(xt.touches[0].pageX),ae.current=Math.ceil(xt.touches[0].pageY),Be.current=xt.target,Be.current.addEventListener("touchmove",De,{passive:!1}),Be.current.addEventListener("touchend",mt,{passive:!0}))};Fe=function(){Be.current&&(Be.current.removeEventListener("touchmove",De),Be.current.removeEventListener("touchend",mt))},(0,vt.Z)(function(){return ye&&ue.current.addEventListener("touchstart",rt,{passive:!0}),function(){var Ge;(Ge=ue.current)===null||Ge===void 0||Ge.removeEventListener("touchstart",rt),Fe(),clearInterval(ft.current)}},[ye])}function St(ye){return Math.floor(Math.pow(ye,.5))}function It(ye,ue){var se="touches"in ye?ye.touches[0]:ye;return se[ue?"pageX":"pageY"]-window[ue?"scrollX":"scrollY"]}function Qe(ye,ue,se){Ie.useEffect(function(){var ce=ue.current;if(ye&&ce){var de=!1,ae,Be,ft=function(){nt.Z.cancel(ae)},Fe=function Ge(){ft(),ae=(0,nt.Z)(function(){se(Be),Ge()})},De=function(){de=!1,ft()},mt=function(xt){if(!(xt.target.draggable||xt.button!==0)){var Xt=xt;Xt._virtualHandled||(Xt._virtualHandled=!0,de=!0)}},rt=function(xt){if(de){var Xt=It(xt,!1),ct=ce.getBoundingClientRect(),Rt=ct.top,rn=ct.bottom;if(Xt<=Rt){var lt=Rt-Xt;Be=-St(lt),Fe()}else if(Xt>=rn){var Le=Xt-rn;Be=St(Le),Fe()}else ft()}};return ce.addEventListener("mousedown",mt),ce.ownerDocument.addEventListener("mouseup",De),ce.ownerDocument.addEventListener("mousemove",rt),ce.ownerDocument.addEventListener("dragend",De),function(){ce.removeEventListener("mousedown",mt),ce.ownerDocument.removeEventListener("mouseup",De),ce.ownerDocument.removeEventListener("mousemove",rt),ce.ownerDocument.removeEventListener("dragend",De),ft()}}},[ye])}var be=10;function Ct(ye,ue,se,ce,de,ae,Be,ft){var Fe=Ie.useRef(),De=Ie.useState(null),mt=(0,ge.Z)(De,2),rt=mt[0],Ge=mt[1];return(0,vt.Z)(function(){if(rt&&rt.times<be){if(!ye.current){Ge(function(kr){return(0,Pe.Z)({},kr)});return}ae();var xt=rt.targetAlign,Xt=rt.originAlign,ct=rt.index,Rt=rt.offset,rn=ye.current.clientHeight,lt=!1,Le=xt,it=null;if(rn){for(var Ot=xt||Xt,Ft=0,Qt=0,bn=0,Bn=Math.min(ue.length-1,ct),Ln=0;Ln<=Bn;Ln+=1){var Gn=de(ue[Ln]);Qt=Ft;var Yn=se.get(Gn);bn=Qt+(Yn===void 0?ce:Yn),Ft=bn}for(var _n=Ot==="top"?Rt:rn-Rt,ir=Bn;ir>=0;ir-=1){var br=de(ue[ir]),wr=se.get(br);if(wr===void 0){lt=!0;break}if(_n-=wr,_n<=0)break}switch(Ot){case"top":it=Qt-Rt;break;case"bottom":it=bn-rn+Rt;break;default:{var qn=ye.current.scrollTop,fr=qn+rn;Qt<qn?Le="top":bn>fr&&(Le="bottom")}}it!==null&&Be(it),it!==rt.lastTop&&(lt=!0)}lt&&Ge((0,Pe.Z)((0,Pe.Z)({},rt),{},{times:rt.times+1,targetAlign:Le,lastTop:it}))}},[rt,ye.current]),function(xt){if(xt==null){ft();return}if(nt.Z.cancel(Fe.current),typeof xt=="number")Be(xt);else if(xt&&(0,Me.Z)(xt)==="object"){var Xt,ct=xt.align;"index"in xt?Xt=xt.index:Xt=ue.findIndex(function(lt){return de(lt)===xt.key});var Rt=xt.offset,rn=Rt===void 0?0:Rt;Ge({times:0,index:Xt,offset:rn,originAlign:ct})}}}var Yt=Ie.forwardRef(function(ye,ue){var se=ye.prefixCls,ce=ye.rtl,de=ye.scrollOffset,ae=ye.scrollRange,Be=ye.onStartMove,ft=ye.onStopMove,Fe=ye.onScroll,De=ye.horizontal,mt=ye.spinSize,rt=ye.containerSize,Ge=ye.style,xt=ye.thumbStyle,Xt=ye.showScrollBar,ct=Ie.useState(!1),Rt=(0,ge.Z)(ct,2),rn=Rt[0],lt=Rt[1],Le=Ie.useState(null),it=(0,ge.Z)(Le,2),Ot=it[0],Ft=it[1],Qt=Ie.useState(null),bn=(0,ge.Z)(Qt,2),Bn=bn[0],Ln=bn[1],Gn=!ce,Yn=Ie.useRef(),_n=Ie.useRef(),ir=Ie.useState(Xt),br=(0,ge.Z)(ir,2),wr=br[0],qn=br[1],fr=Ie.useRef(),kr=function(){Xt===!0||Xt===!1||(clearTimeout(fr.current),qn(!0),fr.current=setTimeout(function(){qn(!1)},3e3))},Qn=ae-rt||0,Nr=rt-mt||0,ei=Ie.useMemo(function(){if(de===0||Qn===0)return 0;var bt=de/Qn;return bt*Nr},[de,Qn,Nr]),Vt=function(Ae){Ae.stopPropagation(),Ae.preventDefault()},Rn=Ie.useRef({top:ei,dragging:rn,pageY:Ot,startTop:Bn});Rn.current={top:ei,dragging:rn,pageY:Ot,startTop:Bn};var Nn=function(Ae){lt(!0),Ft(It(Ae,De)),Ln(Rn.current.top),Be(),Ae.stopPropagation(),Ae.preventDefault()};Ie.useEffect(function(){var bt=function(We){We.preventDefault()},Ae=Yn.current,je=_n.current;return Ae.addEventListener("touchstart",bt,{passive:!1}),je.addEventListener("touchstart",Nn,{passive:!1}),function(){Ae.removeEventListener("touchstart",bt),je.removeEventListener("touchstart",Nn)}},[]);var wn=Ie.useRef();wn.current=Qn;var In=Ie.useRef();In.current=Nr,Ie.useEffect(function(){if(rn){var bt,Ae=function(We){var yt=Rn.current,Lt=yt.dragging,Jt=yt.pageY,Ht=yt.startTop;nt.Z.cancel(bt);var ln=Yn.current.getBoundingClientRect(),yn=rt/(De?ln.width:ln.height);if(Lt){var En=(It(We,De)-Jt)*yn,Mn=Ht;!Gn&&De?Mn-=En:Mn+=En;var Kt=wn.current,hn=In.current,Hn=hn?Mn/hn:0,Zn=Math.ceil(Hn*Kt);Zn=Math.max(Zn,0),Zn=Math.min(Zn,Kt),bt=(0,nt.Z)(function(){Fe(Zn,De)})}},je=function(){lt(!1),ft()};return window.addEventListener("mousemove",Ae,{passive:!0}),window.addEventListener("touchmove",Ae,{passive:!0}),window.addEventListener("mouseup",je,{passive:!0}),window.addEventListener("touchend",je,{passive:!0}),function(){window.removeEventListener("mousemove",Ae),window.removeEventListener("touchmove",Ae),window.removeEventListener("mouseup",je),window.removeEventListener("touchend",je),nt.Z.cancel(bt)}}},[rn]),Ie.useEffect(function(){return kr(),function(){clearTimeout(fr.current)}},[de]),Ie.useImperativeHandle(ue,function(){return{delayHidden:kr}});var xn="".concat(se,"-scrollbar"),kn={position:"absolute",visibility:wr?null:"hidden"},gn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return De?(Object.assign(kn,{height:8,left:0,right:0,bottom:0}),Object.assign(gn,(0,pt.Z)({height:"100%",width:mt},Gn?"left":"right",ei))):(Object.assign(kn,(0,pt.Z)({width:8,top:0,bottom:0},Gn?"right":"left",0)),Object.assign(gn,{width:"100%",height:mt,top:ei})),Ie.createElement("div",{ref:Yn,className:we()(xn,(0,pt.Z)((0,pt.Z)((0,pt.Z)({},"".concat(xn,"-horizontal"),De),"".concat(xn,"-vertical"),!De),"".concat(xn,"-visible"),wr)),style:(0,Pe.Z)((0,Pe.Z)({},kn),Ge),onMouseDown:Vt,onMouseMove:kr},Ie.createElement("div",{ref:_n,className:we()("".concat(xn,"-thumb"),(0,pt.Z)({},"".concat(xn,"-thumb-moving"),rn)),style:(0,Pe.Z)((0,Pe.Z)({},gn),xt),onMouseDown:Nn}))}),Zt=Yt,at=20;function ot(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,se=ye/ue*ye;return isNaN(se)&&(se=0),se=Math.max(se,at),Math.floor(se)}var Nt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Sn=[],$t={overflowY:"auto",overflowAnchor:"none"};function mn(ye,ue){var se=ye.prefixCls,ce=se===void 0?"rc-virtual-list":se,de=ye.className,ae=ye.height,Be=ye.itemHeight,ft=ye.fullHeight,Fe=ft===void 0?!0:ft,De=ye.style,mt=ye.data,rt=ye.children,Ge=ye.itemKey,xt=ye.virtual,Xt=ye.direction,ct=ye.scrollWidth,Rt=ye.component,rn=Rt===void 0?"div":Rt,lt=ye.onScroll,Le=ye.onVirtualScroll,it=ye.onVisibleChange,Ot=ye.innerProps,Ft=ye.extraRender,Qt=ye.styles,bn=ye.showScrollBar,Bn=bn===void 0?"optional":bn,Ln=(0,ke.Z)(ye,Nt),Gn=Ie.useCallback(function(Or){return typeof Ge=="function"?Ge(Or):Or==null?void 0:Or[Ge]},[Ge]),Yn=zt(Gn,null,null),_n=(0,ge.Z)(Yn,4),ir=_n[0],br=_n[1],wr=_n[2],qn=_n[3],fr=!!(xt!==!1&&ae&&Be),kr=Ie.useMemo(function(){return Object.values(wr.maps).reduce(function(Or,_r){return Or+_r},0)},[wr.id,wr.maps]),Qn=fr&&mt&&(Math.max(Be*mt.length,kr)>ae||!!ct),Nr=Xt==="rtl",ei=we()(ce,(0,pt.Z)({},"".concat(ce,"-rtl"),Nr),de),Vt=mt||Sn,Rn=(0,Ie.useRef)(),Nn=(0,Ie.useRef)(),wn=(0,Ie.useRef)(),In=(0,Ie.useState)(0),xn=(0,ge.Z)(In,2),kn=xn[0],gn=xn[1],bt=(0,Ie.useState)(0),Ae=(0,ge.Z)(bt,2),je=Ae[0],Ze=Ae[1],We=(0,Ie.useState)(!1),yt=(0,ge.Z)(We,2),Lt=yt[0],Jt=yt[1],Ht=function(){Jt(!0)},ln=function(){Jt(!1)},yn={getKey:Gn};function En(Or){gn(function(_r){var si;typeof Or=="function"?si=Or(_r):si=Or;var di=mr(si);return Rn.current.scrollTop=di,di})}var Mn=(0,Ie.useRef)({start:0,end:Vt.length}),Kt=(0,Ie.useRef)(),hn=dt(Vt,Gn),Hn=(0,ge.Z)(hn,1),Zn=Hn[0];Kt.current=Zn;var Kn=Ie.useMemo(function(){if(!fr)return{scrollHeight:void 0,start:0,end:Vt.length-1,offset:void 0};if(!Qn){var Or;return{scrollHeight:((Or=Nn.current)===null||Or===void 0?void 0:Or.offsetHeight)||0,start:0,end:Vt.length-1,offset:void 0}}for(var _r=0,si,di,ea,Va=Vt.length,Da=0;Da<Va;Da+=1){var _i=Vt[Da],da=Gn(_i),sa=wr.get(da),Sr=_r+(sa===void 0?Be:sa);Sr>=kn&&si===void 0&&(si=Da,di=_r),Sr>kn+ae&&ea===void 0&&(ea=Da),_r=Sr}return si===void 0&&(si=0,di=0,ea=Math.ceil(ae/Be)),ea===void 0&&(ea=Vt.length-1),ea=Math.min(ea+1,Vt.length-1),{scrollHeight:_r,start:si,end:ea,offset:di}},[Qn,fr,kn,Vt,qn,ae]),jn=Kn.scrollHeight,nr=Kn.start,On=Kn.end,cr=Kn.offset;Mn.current.start=nr,Mn.current.end=On,Ie.useLayoutEffect(function(){var Or=wr.getRecord();if(Or.size===1){var _r=Array.from(Or.keys())[0],si=Or.get(_r),di=Vt[nr];if(di&&si===void 0){var ea=Gn(di);if(ea===_r){var Va=wr.get(_r),Da=Va-Be;En(function(_i){return _i+Da})}}}wr.resetRecord()},[jn]);var Mt=Ie.useState({width:0,height:ae}),an=(0,ge.Z)(Mt,2),cn=an[0],Cn=an[1],un=function(_r){Cn({width:_r.offsetWidth,height:_r.offsetHeight})},vn=(0,Ie.useRef)(),pn=(0,Ie.useRef)(),Pn=Ie.useMemo(function(){return ot(cn.width,ct)},[cn.width,ct]),Vn=Ie.useMemo(function(){return ot(cn.height,jn)},[cn.height,jn]),er=jn-ae,pr=(0,Ie.useRef)(er);pr.current=er;function mr(Or){var _r=Or;return Number.isNaN(pr.current)||(_r=Math.min(_r,pr.current)),_r=Math.max(_r,0),_r}var Pr=kn<=0,Ir=kn>=er,Lr=je<=0,$r=je>=ct,Hr=$e(Pr,Ir,Lr,$r),Zr=function(){return{x:Nr?-je:je,y:kn}},gr=(0,Ie.useRef)(Zr()),zr=(0,ze.useEvent)(function(Or){if(Le){var _r=(0,Pe.Z)((0,Pe.Z)({},Zr()),Or);(gr.current.x!==_r.x||gr.current.y!==_r.y)&&(Le(_r),gr.current=_r)}});function Cr(Or,_r){var si=Or;_r?((0,He.flushSync)(function(){Ze(si)}),zr()):En(si)}function lr(Or){var _r=Or.currentTarget.scrollTop;_r!==kn&&En(_r),lt==null||lt(Or),zr()}var jr=function(_r){var si=_r,di=ct?ct-cn.width:0;return si=Math.max(si,0),si=Math.min(si,di),si},li=(0,ze.useEvent)(function(Or,_r){_r?((0,He.flushSync)(function(){Ze(function(si){var di=si+(Nr?-Or:Or);return jr(di)})}),zr()):En(function(si){var di=si+Or;return di})}),Dr=Ye(fr,Pr,Ir,Lr,$r,!!ct,li),Jn=(0,ge.Z)(Dr,2),Xn=Jn[0],Wr=Jn[1];Bt(fr,Rn,function(Or,_r,si,di){var ea=di;return Hr(Or,_r,si)?!1:!ea||!ea._virtualHandled?(ea&&(ea._virtualHandled=!0),Xn({preventDefault:function(){},deltaX:Or?_r:0,deltaY:Or?0:_r}),!0):!1}),Qe(Qn,Rn,function(Or){En(function(_r){return _r+Or})}),(0,vt.Z)(function(){function Or(si){var di=Pr&&si.detail<0,ea=Ir&&si.detail>0;fr&&!di&&!ea&&si.preventDefault()}var _r=Rn.current;return _r.addEventListener("wheel",Xn,{passive:!1}),_r.addEventListener("DOMMouseScroll",Wr,{passive:!0}),_r.addEventListener("MozMousePixelScroll",Or,{passive:!1}),function(){_r.removeEventListener("wheel",Xn),_r.removeEventListener("DOMMouseScroll",Wr),_r.removeEventListener("MozMousePixelScroll",Or)}},[fr,Pr,Ir]),(0,vt.Z)(function(){if(ct){var Or=jr(je);Ze(Or),zr({x:Or})}},[cn.width,ct]);var Er=function(){var _r,si;(_r=vn.current)===null||_r===void 0||_r.delayHidden(),(si=pn.current)===null||si===void 0||si.delayHidden()},Jr=Ct(Rn,Vt,wr,Be,Gn,function(){return br(!0)},En,Er);Ie.useImperativeHandle(ue,function(){return{nativeElement:wn.current,getScrollInfo:Zr,scrollTo:function(_r){function si(di){return di&&(0,Me.Z)(di)==="object"&&("left"in di||"top"in di)}si(_r)?(_r.left!==void 0&&Ze(jr(_r.left)),Jr(_r.top)):Jr(_r)}}}),(0,vt.Z)(function(){if(it){var Or=Vt.slice(nr,On+1);it(Or,Vt)}},[nr,On,Vt]);var ci=ht(Vt,Gn,wr,Be),ti=Ft==null?void 0:Ft({start:nr,end:On,virtual:Qn,offsetX:je,offsetY:cr,rtl:Nr,getSize:ci}),Bi=gt(Vt,nr,On,ct,je,ir,rt,yn),vi=null;ae&&(vi=(0,Pe.Z)((0,pt.Z)({},Fe?"height":"maxHeight",ae),$t),fr&&(vi.overflowY="hidden",ct&&(vi.overflowX="hidden"),Lt&&(vi.pointerEvents="none")));var Ui={};return Nr&&(Ui.dir="rtl"),Ie.createElement("div",(0,me.Z)({ref:wn,style:(0,Pe.Z)((0,Pe.Z)({},De),{},{position:"relative"}),className:ei},Ui,Ln),Ie.createElement(Ee.Z,{onResize:un},Ie.createElement(rn,{className:"".concat(ce,"-holder"),style:vi,ref:Rn,onScroll:lr,onMouseEnter:Er},Ie.createElement(Je,{prefixCls:ce,height:jn,offsetX:je,offsetY:cr,scrollWidth:ct,onInnerResize:br,ref:Nn,innerProps:Ot,rtl:Nr,extra:ti},Bi))),Qn&&jn>ae&&Ie.createElement(Zt,{ref:vn,prefixCls:ce,scrollOffset:kn,scrollRange:jn,rtl:Nr,onScroll:Cr,onStartMove:Ht,onStopMove:ln,spinSize:Vn,containerSize:cn.height,style:Qt==null?void 0:Qt.verticalScrollBar,thumbStyle:Qt==null?void 0:Qt.verticalScrollBarThumb,showScrollBar:Bn}),Qn&&ct>cn.width&&Ie.createElement(Zt,{ref:pn,prefixCls:ce,scrollOffset:je,scrollRange:ct,rtl:Nr,onScroll:Cr,onStartMove:Ht,onStopMove:ln,spinSize:Pn,containerSize:cn.width,horizontal:!0,style:Qt==null?void 0:Qt.horizontalScrollBar,thumbStyle:Qt==null?void 0:Qt.horizontalScrollBarThumb,showScrollBar:Bn}))}var on=Ie.forwardRef(mn);on.displayName="List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/ANq70XkD+acvGQ2Qk5PB+Lme+FR89jzYqURhhEZMJ0mE42v+lM5BBcOFPzRaePag5L4/9WVr8YUxRY7/AMKQH7I/1QJoNREf/wAA1uAyCrQfJJPzQgcCIU/zSoU+SgYn41QiPxoeKS0fn/dYP91JJ/ko0ftUDL7NXkoLov8AdViuZJvZKfcTWgeQNIjFyFhzv8chScx5/wBWosYw/wCnZkynIS/m+4C3eHlqSzUEIgI//gj7DyhZLC+0NkhTIKUCXKe0/pV//wAFBIgR1f8AEKN6qX/qKK0Acv8ANBwqHhrAqgVAOQV/CbB8YoDiACdJM/8A2J//2Q=="},48136:function(An,Ut,oe){"use strict";var me=Object.defineProperty,Me=Object.defineProperties,Pe=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,he=(a,y,b)=>y in a?me(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,we=(a,y)=>{for(var b in y||(y={}))ge.call(y,b)&&he(a,b,y[b]);if(pt)for(var b of pt(y))ke.call(y,b)&&he(a,b,y[b]);return a},Ee=(a,y)=>Me(a,Pe(y)),ze=a=>typeof a=="symbol"?a:a+"",vt=(a,y)=>{var b={};for(var E in a)ge.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&pt)for(var E of pt(a))y.indexOf(E)<0&&ke.call(a,E)&&(b[E]=a[E]);return b};function Ie(a){return Array.isArray(a)}var He={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 st(){return"window"in globalThis&&"document"in globalThis}function Je(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function Ue(){return typeof navigator.vibrate=="function"}function gt(){var a,y;if(!st())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 Et(){if(!st())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 At(){return HTMLElement.prototype.hasOwnProperty("popover")}var dt={strings:He,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return dt._locale||(dt._locale=st()?navigator.language.slice(0,5):"en-US"),dt._locale},set locale(a){dt._locale=a,dt._numberFormatter=void 0,dt.dirty=!0},get numberFormatter(){return dt._numberFormatter||(dt._numberFormatter=new Intl.NumberFormat(dt.locale)),dt._numberFormatter},merge(a,y){if(typeof a=="string"&&y)dt.strings[a]=we(we({},dt.strings[a]),y),dt.dirty=!0;else for(const b of Object.keys(a))dt.merge(b,a[b])},get dirty(){return dt._dirty},set dirty(a){dt._dirty||dt._dirty===a||(dt._dirty=!0,setTimeout(()=>{dt._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return dt._subscribers.push(a),dt._subscribers.length-1},unsubscribe(a){a<0||a>=dt._subscribers.length||(dt._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=nt(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=nt(E);ee&&b.setAttribute("aria-label",ee)}}}};function nt(a,...y){if(a===void 0)return;let b="";const E=dt.locale;dt.strings[E]&&(b=dt.strings[E][a]);const ee=E.slice(0,2);if(!b&&dt.strings[ee]&&(b=dt.strings[ee][a]),b||(b=dt.strings.en[a]),!b)return;const re=/(%@|%([0-9]+)\$@)/g;let le=re.exec(b),pe=0;for(;le;){if(y[pe++]){const Ce=le[2]?parseInt(le[2],10)-1:pe-1;let Te=y[Ce];typeof Te=="number"&&(Te=dt.numberFormatter.format(Te)),b=b.replace(le[1],Te)}le=re.exec(b)}return b=b.replace(/%%/g,"%"),b}var Ve={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},Se={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},$e={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"},Ye={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"},ht={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"},Xe={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,re,le;const pe=a.split("!");let ve,Ce,Te,tt=255,kt=255,jt=255,qt=-1;const $n=pe.length>0&&pe[0].startsWith("-");$n&&(pe[0]=pe[0].slice(1));for(let Kr=0;Kr<pe.length;Kr++){ve=tt,Ce=kt,Te=jt;const Wn=(y=pe[Kr].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],dr=Wn==null?void 0:Wn.toLowerCase(),Ur=Wn&&(le=(re=(ee=(E=(b=Ye[dr])!=null?b:Ye[ht[Wn]])!=null?E:Se[Wn])!=null?ee:Xe[Wn])!=null?re:Ve[Wn])!=null?le:pe[Kr].trim();let vr=Ur.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(vr!=null&&vr[1]&&vr[2]&&vr[3])tt=Math.max(0,Math.min(255,Number.parseInt(vr[1],16))),kt=Math.max(0,Math.min(255,Number.parseInt(vr[2],16))),jt=Math.max(0,Math.min(255,Number.parseInt(vr[3],16)));else if(vr=Ur.match(/^#([\da-f]{3})$/i),vr!=null&&vr[1]){const bi=Number.parseInt(vr[1][0],16),Pi=Number.parseInt(vr[1][1],16),Di=Number.parseInt(vr[1][2],16);tt=Math.max(0,Math.min(255,bi*16+bi)),kt=Math.max(0,Math.min(255,Pi*16+Pi)),jt=Math.max(0,Math.min(255,Di*16+Di))}else if(vr=Ur.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),vr!=null&&vr[1]&&vr[2]&&vr[3])tt=Math.max(0,Math.min(255,Number.parseInt(vr[1]))),kt=Math.max(0,Math.min(255,Number.parseInt(vr[2]))),jt=Math.max(0,Math.min(255,Number.parseInt(vr[3])));else return;qt>=0&&(tt=(1-qt)*tt+qt*ve,kt=(1-qt)*kt+qt*Ce,jt=(1-qt)*jt+qt*Te,qt=-1),Kr+1<pe.length&&(qt=Math.max(0,Math.min(100,Number.parseInt(pe[++Kr])))/100)}return qt>=0&&(tt=qt*tt+(1-qt)*ve,kt=qt*kt+(1-qt)*Ce,jt=qt*jt+(1-qt)*Te),$n&&(tt=255-tt,kt=255-kt,jt=255-jt),"#"+("00"+Math.round(tt).toString(16)).slice(-2)+("00"+Math.round(kt).toString(16)).slice(-2)+("00"+Math.round(jt).toString(16)).slice(-2)}function Oe(a){var y,b;return a=a.trim(),(b=(y=$e[a.toLowerCase()])!=null?y:$e[ht[a]])!=null?b:ut(a)}function Pt(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 qe(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 zt(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,re=E*2-ee;return{r:Math.round(255*qe(re,ee,y+2)),g:Math.round(255*qe(re,ee,y)),b:Math.round(255*qe(re,ee,y-2))}}function Dt(a){return a<0?0:a>255?255:Math.round(a)}function Bt(a){const{r:y,g:b,b:E}=a;let ee=((1<<24)+(Dt(y)<<16)+(Dt(b)<<8)+Dt(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 St(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),re=Math.max(y,b,E),le=re-ee;let pe,ve;re===ee?pe=0:y===re?pe=(b-E)/le:b===re?pe=2+(E-y)/le:E===re&&(pe=4+(y-b)/le),pe=Math.min(pe*60,360),pe<0&&(pe+=360);const Ce=(ee+re)/2;return re===ee?ve=0:Ce<=.5?ve=le/(re+ee):ve=le/(2-re-ee),{h:pe,s:ve,l:Ce}}function It(a){let y=Pt(a);if(!y)return a;let{h:b,s:E,l:ee}=St(y);return E+=.1,ee-=.1,Bt(zt({h:b,s:E,l:ee}))}var Qe={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},be={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},Ct=[{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 Yt(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 Ct)if((!y||ee.variant===y)&&(!b||ee.style===b)&&E>=ee.offset&&E<ee.offset+ee.len){const re=ee.start+E-ee.offset;return String.fromCodePoint(be[re]||re)}return a}function Zt(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in be)if(be[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of Ct)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 at(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 re=Qe[ee];if(re)re.startsWith("\\")?b+=re+" ":b+=re;else{const{char:le,variant:pe,style:ve}=Zt(ee);switch(re=le,pe){case"double-struck":re=`\\mathbb{${re}}`;break;case"fraktur":re=`\\mathfrak{${re}}`;break;case"script":re=`\\mathscr{${re}}`;break;case"sans-serif":re=`\\mathsf{${re}}`;break;case"monospace":re=`\\mathtt{${re}}`;break;case"calligraphic":re=`\\mathcal{${re}}`;break}switch(ve){case"bold":re=`\\mathbf{${re}}`;break;case"italic":re=`\\mathit{${re}}`;break;case"bolditalic":re=`\\mathbfit{${re}}`;break}b+=re}}return b}function ot(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var Nt={},Sn=we({},Qe),$t={},mn={},on={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}"},nn={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}},en={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}},ye={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:en},"amsmath.sty":{package:nn,primitive:!0},"texvc.sty":{package:on,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},se=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,ce,de;Et()?(ce=new RegExp("\\p{Letter}","u"),de=new RegExp("[0-9\\p{Letter}]","u")):(ce=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,de=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function ae(a,y,b="mord",E){y!==void 0&&(Nt[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},Sn[y]||(Sn[y]=a))}function Be(a,y,b){if(typeof a=="string"){for(let E=0;E<a.length;E++){const ee=a.charAt(E);ae(ee,ee.codePointAt(0))}return}for(const[E,ee,re,le]of a)ae(E,ee,re!=null?re:y,le!=null?le:b)}function ft(a,y){for(let b=a;b<=y;b++)ae(String.fromCodePoint(b),b)}function Fe(a){var y;return(y=mn[a])!=null?y:null}function De(a,y){var b,E;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ee=[];for(const le in $t)le.startsWith(y)&&!$t[le].infix&&ee.push({match:le,frequency:(b=$t[le].frequency)!=null?b:0});for(const le in Nt)le.startsWith(y)&&ee.push({match:le,frequency:(E=Nt[le].frequency)!=null?E:0});const re=y.substring(1);for(const le of Object.keys(a.options.macros))le.startsWith(re)&&ee.push({match:"\\"+le,frequency:0});return ee.sort((le,pe)=>{var ve,Ce;return le.frequency===pe.frequency?le.match.length===pe.match.length?le.match<pe.match?-1:1:le.match.length-pe.match.length:((ve=pe.frequency)!=null?ve:0)-((Ce=le.frequency)!=null?Ce:0)}),ee.map(le=>le.match)}function mt(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function rt(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:mt(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...rt(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:mt(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...rt(b[E]))}return y}function Ge(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 xt(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)mn[E]=b}function Xt(a,y,b){typeof a=="string"&&(a=[a]);const ee={tabular:!0,params:rt(y),createAtom:b};for(const re of a)mn[re]=ee}function ct(a,y,b){var E,ee;b||(b={});const re={definitionType:"function",params:rt(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")$t["\\"+a]=re;else for(const le of a)$t["\\"+le]=re}var Rt;function rn(a){return Rt||(Rt=Le(ye)),a?Le(we(we({},Rt),a)):Rt}function lt(a,y){var b,E,ee,re;if(typeof a=="string"){let le=0;const pe=a;return/(^|[^\\])#1/.test(pe)&&(le=1),/(^|[^\\])#2/.test(pe)&&(le=2),/(^|[^\\])#3/.test(pe)&&(le=3),/(^|[^\\])#4/.test(pe)&&(le=4),/(^|[^\\])#5/.test(pe)&&(le=5),/(^|[^\\])#6/.test(pe)&&(le=6),/(^|[^\\])#7/.test(pe)&&(le=7),/(^|[^\\])#8/.test(pe)&&(le=8),/(^|[^\\])#9/.test(pe)&&(le=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(E=y==null?void 0:y.captureSelection)!=null?E:!0,args:le,def:pe}}return we({expand:(ee=y==null?void 0:y.expand)!=null?ee:!0,captureSelection:(re=y==null?void 0:y.captureSelection)!=null?re:!0,args:0},a)}function Le(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]=lt(E.package[ee],{expand:!E.primitive,captureSelection:E.captureSelection});else y[b]=lt(E)}return y}function it(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=$t[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=Nt[a]:ue[a]&&(b={definitionType:"symbol",type:"mord",codepoint:ue[a]})}else if(y==="math"){if(b=Nt[a],!b&&a.length===1){const E=Ft("math",a.codePointAt(0));return E.startsWith("\\")?Ee(we({},it(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 Ot(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function Ft(a,y){if(y===void 0)return"";if(a==="math"&&Sn[y])return Sn[y];if(a==="text"){const b=Object.keys(ue).find(E=>ue[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var Qt=[0,.68889,0,0,.72222],bn=[0,.68889,0,0,.66667],Bn=[0,.68889,0,0,.77778],Ln=[0,.68889,0,0,.61111],Gn=[.16667,.68889,0,0,.77778],Yn=[0,.68889,0,0,.55556],_n=[0,0,0,0,.25],ir=[0,.825,0,0,2.33334],br=[0,.9,0,0,2.33334],wr=[0,.68889,0,0,.54028],qn=[-.03598,.46402,0,0,.5],fr=[-.13313,.36687,0,0,1],kr=[.01354,.52239,0,0,1],Qn=[.01354,.52239,0,0,1.11111],Nr=[0,.54986,0,0,1],ei=[0,.69224,0,0,.5],Vt=[0,.43056,0,0,1],Rn=[.08198,.58198,0,0,.77778],Nn=[.19444,.69224,0,0,.41667],wn=[.1808,.675,0,0,1],In=[.19444,.69224,0,0,.83334],xn=[.13667,.63667,0,0,1],kn=[-.064,.437,0,0,1.334],gn=[.08167,.58167,0,0,.77778],bt=[0,.69224,0,0,.72222],Ae=[0,.69224,0,0,.66667],je=[-.13313,.36687,0,0,.77778],Ze=[.06062,.54986,0,0,.77778],We=[0,.69224,0,0,.77778],yt=[.25583,.75583,0,0,.77778],Lt=[.25142,.75726,0,0,.77778],Jt=[.20576,.70576,0,0,.77778],Ht=[.30274,.79383,0,0,.77778],ln=[.22958,.72958,0,0,.77778],yn=[.1808,.675,0,0,.77778],En=[.13667,.63667,0,0,.77778],Mn=[.13597,.63597,0,0,.77778],Kt=[.03517,.54986,0,0,.77778],hn=[0,.675,0,0,.77778],Hn=[.19444,.69224,0,0,.61111],Zn=[0,.54986,0,0,.76042],Kn=[0,.54986,0,0,.66667],jn=[.0391,.5391,0,0,.77778],nr=[.03517,.54986,0,0,1.33334],On=[.38569,.88569,0,0,.77778],cr=[.23222,.74111,0,0,.77778],Mt=[.19444,.69224,0,0,.77778],an=[0,.37788,0,0,.5],cn=[0,.54986,0,0,.72222],Cn=[0,.69224,0,0,.83334],un=[.11111,.69224,0,0,.66667],vn=[.26167,.75726,0,0,.77778],pn=[.48256,.98256,0,0,.77778],Pn=[.28481,.79383,0,0,.77778],Vn=[.08167,.58167,0,0,.22222],er=[.08167,.58167,0,0,.38889],pr=[0,.43056,.04028,0,.66667],mr=[.41951,.91951,0,0,.77778],Pr=[.24982,.74947,0,0,.38865],Ir=[.08319,.58283,0,0,.75623],Lr=[0,.10803,0,0,.27764],$r=[0,.47534,0,0,.50181],Hr=[.18906,.47534,0,0,.50181],Zr=[0,.69141,0,0,.50181],gr=[.24982,.74947,0,0,.27764],zr=[0,.69141,0,0,.21471],Cr=[.25,.75,0,0,.44722],lr=[0,.64444,0,0,.575],jr=[.08556,.58556,0,0,.89444],li=[0,.69444,0,0,.89444],Dr=[0,.68611,0,0,.9],Jn=[0,.68611,0,0,.86944],Xn=[.25,.75,0,0,.575],Wr=[.25,.75,0,0,.31944],Er=[0,.69444,0,0,.63889],Jr=[0,.69444,0,0,.31944],ci=[0,.44444,0,0,.63889],ti=[0,.44444,0,0,.51111],Bi=[0,.69444,0,0,.575],vi=[.13333,.63333,0,0,.89444],Ui=[0,.44444,0,0,.31944],Or=[0,.69444,0,0,.86944],_r=[0,.68611,0,0,.69166],si=[0,.68611,0,0,.83055],di=[0,.68611,0,0,.89444],ea=[0,.69444,0,0,.60278],Va=[.19444,.69444,0,0,.51111],Da=[0,.69444,0,0,.83055],_i=[-.10889,.39111,0,0,1.14999],da=[.19444,.69444,0,0,.575],sa=[.19444,.69444,0,0,1.14999],Sr=[.19444,.69444,0,0,.70277],xr=[.05556,.75,0,0,.575],sr=[0,.68611,0,0,.95833],hr=[.08556,.58556,0,0,.76666],xi=[-.02639,.47361,0,0,.575],Fi=[0,.44444,0,0,.89444],Zi=[0,.55556,0,0,.76666],Yi=[-.10889,.39111,0,0,.89444],Wi=[.00222,.50222,0,0,.89444],ra=[.19667,.69667,0,0,.89444],Ba=[.08556,.58556,0,0,1.14999],Aa=[0,.69444,0,0,.70277],ho=[-.02778,.47222,0,0,.575],no=[.25,.75,0,0,.51111],Fa=[-.13889,.36111,0,0,1.14999],al=[.19444,.69444,0,0,1.02222],po=[.12963,.69444,0,0,.89444],wo=[.19444,.69444,0,0,.44722],Xa=[0,.64444,.13167,0,.59111],ya=[.19444,.64444,.13167,0,.59111],hi=[0,.68611,.17208,0,.8961],Ni=[.19444,.44444,.105,0,.53222],Ei=[0,.44444,.085,0,.82666],fi=[0,.69444,.06709,0,.59111],Xi=[0,.69444,.12945,0,.35555],ji=[0,.69444,0,0,.94888],Na=[0,.69444,.11472,0,.59111],$a=[0,.68611,.10778,0,.88555],Ra=[0,.69444,.07939,0,.62055],ro=[0,.69444,.12417,0,.30667],ia=[0,.64444,.13556,0,.51111],aa=[.19444,.64444,.13556,0,.51111],Ya=[0,.68333,.16389,0,.74333],Qa=[.19444,.43056,.08847,0,.46],go=[0,.43056,.07514,0,.71555],Ja=[0,.69444,.06646,0,.51111],hs=[0,.69444,0,0,.83129],Dl=[0,.69444,.1225,0,.51111],Al=[0,.68333,.09403,0,.76666],ol=[0,.68333,.11111,0,.76666],Ds=[0,.69444,.06961,0,.51444],Ll=[0,.69444,0,0,.27778],Oo=[.25,.75,0,0,.38889],xo=[0,.64444,0,0,.5],Hl=[0,.69444,0,0,.77778],Ul=[0,.68333,0,0,.75],Xl=[0,.68333,0,0,.77778],As=[0,.68333,0,0,.68056],as=[0,.68333,0,0,.72222],ll=[.25,.75,0,0,.5],qo=[.25,.75,0,0,.27778],Pa=[0,.69444,0,0,.5],Yl=[0,.69444,0,0,.55556],Ls=[0,.43056,0,0,.44445],Zl=[0,.43056,0,0,.5],ua=[.19444,.43056,0,0,.55556],ta=[0,.43056,0,0,.55556],za=[.08333,.58333,0,0,.77778],lo=[0,.43056,0,0,.27778],ja=[0,.66786,0,0,.27778],Fo=[0,.69444,0,0,.75],Zo=[0,.66786,0,0,.5],fl=[0,.68333,0,0,.625],Wo=[.19444,.69444,0,0,.44445],Fl=[0,.69444,0,0,.72222],Bl=[.19444,.69444,0,0,.5],$o=[.19444,.69444,0,0,1],vu=[.011,.511,0,0,1.126],ps=[.19444,.69444,0,0,.61111],ms=[.05556,.75,0,0,.5],nu=[0,.68333,0,0,.83334],js=[.0391,.5391,0,0,.66667],Bs=[-.05555,.44445,0,0,.5],Yu=[0,.43056,0,0,.77778],os=[0,.55556,0,0,.66667],ru=[-.03625,.46375,0,0,.77778],ls=[-.01688,.48312,0,0,.77778],vs=[.0391,.5391,0,0,1],Sa=[0,.69444,0,0,.61111],La=[-.03472,.46528,0,0,.5],_a=[.25,.75,0,0,.44445],hl=[-.14236,.35764,0,0,1],jo=[.244,.744,0,0,.412],Wl=[.19444,.69444,0,0,.88889],sl=[.12963,.69444,0,0,.77778],No=[.19444,.69444,0,0,.38889],Ql=[.011,.511,0,0,1.638],Jl=[.19444,.69444,0,0,0],ql=[0,.44444,0,0,.575],Ps=[.19444,.44444,0,0,.575],Qu=[0,.68611,0,0,.75555],gu=[0,.69444,0,0,.66759],Gc=[0,.68611,0,0,.80555],bc=[0,.68611,.08229,0,.98229],_u=[0,.68611,0,0,.76666],Ad=[0,.44444,0,0,.58472],Ju=[.19444,.44444,0,0,.6118],Ku=[.19444,.43056,0,0,.5],xc=[0,.68333,.02778,.08334,.76278],Cc=[0,.68333,.08125,.05556,.83125],iu=[0,.43056,0,.05556,.48472],qu=[.19444,.43056,0,.08334,.51702],Sc=[.25,.75,0,0,.42778],el=[0,.69444,0,0,.55],Is=[0,.69444,0,0,.73334],au=[0,.69444,0,0,.79445],Uc=[0,.69444,0,0,.51945],ec=[0,.69444,0,0,.70278],tc=[0,.69444,0,0,.76389],yu=[.25,.75,0,0,.34306],ou=[0,.69444,0,0,.56111],Ld=[0,.69444,0,0,.25556],Hu=[.19444,.45833,0,0,.56111],Xc=[0,.45833,0,0,.56111],Vs=[0,.69444,0,0,.30556],Yc=[0,.69444,0,0,.58056],Ts=[0,.69444,0,0,.67223],bu=[0,.69444,0,0,.85556],Os=[0,.69444,0,0,.55834],Nl=[0,.65556,.11156,0,.5],Gs=[0,.69444,.08094,0,.70834],nc=[.17014,0,0,0,.44445],wc=[0,.69444,.0799,0,.5],Ec=[0,.69444,0,0,.73752],Qc=[0,.69444,.09205,0,.5],bl=[0,.69444,.09031,0,.77778],Fs=[0,.69444,.07816,0,.27778],Jc=[0,.69444,.00316,0,.5],Re=[.19444,.69444,0,0,.83334],Ke=[.05556,.75,0,0,.83334],wt=[0,.75,0,0,.5],Tt=[.125,.08333,0,0,.27778],Gt=[0,.08333,0,0,.27778],_t=[0,.65556,0,0,.5],fn=[0,.69444,0,0,.47222],dn=[0,.69444,0,0,.66667],sn=[0,.69444,0,0,.59722],Tn=[0,.69444,0,0,.54167],Un=[0,.69444,0,0,.70834],zn=[.25,.75,0,0,.28889],ur=[0,.69444,0,0,.51667],ar=[0,.44444,0,0,.44445],or=[.19444,.44444,0,0,.51667],Vr=[0,.44444,0,0,.38333],Tr=[0,.44444,0,0,.51667],Gr=[0,.69444,0,0,.83334],Fr=[.35001,.85,0,0,.45834],qr=[.35001,.85,0,0,.57778],Ci=[.35001,.85,0,0,.41667],wi=[.35001,.85,0,0,.58334],ui=[0,.72222,0,0,.55556],Ti=[1e-5,.6,0,0,.66667],Vi=[1e-5,.6,0,0,.77778],ri=[.25001,.75,0,0,.94445],mi=[.306,.805,.19445,0,.47222],ii=[.30612,.805,.19445,0,.47222],Ar=[.25001,.75,0,0,.83334],ai=[.35001,.85,0,0,.47222],Ii=[.25001,.75,0,0,1.11111],Ji=[.65002,1.15,0,0,.59722],Ai=[.65002,1.15,0,0,.81111],Xr=[.65002,1.15,0,0,.47222],Ki=[.65002,1.15,0,0,.66667],Gi=[0,.75,0,0,1],ba=[.55001,1.05,0,0,1.27778],ha=[.862,1.36,.44445,0,.55556],qa=[.86225,1.36,.44445,0,.55556],Ka=[.55001,1.05,0,0,1.11111],$i=[.65002,1.15,0,0,.52778],mo=[.65002,1.15,0,0,.61111],oa=[.55001,1.05,0,0,1.51112],Ga=[.95003,1.45,0,0,.73611],Ha=[.95003,1.45,0,0,1.04445],Eo=[.95003,1.45,0,0,.52778],Li=[.95003,1.45,0,0,.75],Mi=[0,.75,0,0,1.44445],ki=[.95003,1.45,0,0,.58334],yi=[1.25003,1.75,0,0,.79167],pa=[1.25003,1.75,0,0,1.27778],Si=[1.25003,1.75,0,0,.58334],Hi=[1.25003,1.75,0,0,.80556],la=[0,.825,0,0,1.8889],na=[1.25003,1.75,0,0,.63889],Vo=[.64502,1.155,0,0,.875],Mo=[1e-5,.6,0,0,.875],Rl=[-99e-5,.601,0,0,.66667],vo=[.64502,1.155,0,0,.66667],$l=[1e-5,.9,0,0,.88889],yo=[.65002,1.15,0,0,.88889],Ro=[.90001,0,0,0,.88889],gs=[-.00499,.605,0,0,1.05556],fa=[0,.12,0,0,.45],Mr=[0,.61111,0,0,.525],xa=[.08333,.69444,0,0,.525],Co=[-.08056,.53055,0,0,.525],ko=[-.05556,.55556,0,0,.525],Ri=[0,.43056,0,0,.525],ka=[.22222,.43056,0,0,.525],zo=[0,0,0,0,.525],Pl={"AMS-Regular":{32:_n,65:Qt,66:bn,67:Qt,68:Qt,69:bn,70:Ln,71:Bn,72:Bn,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:Bn,76:bn,77:[0,.68889,0,0,.94445],78:Qt,79:Gn,80:Ln,81:Gn,82:Qt,83:Yn,84:bn,85:Qt,86:Qt,87:[0,.68889,0,0,1],88:Qt,89:Qt,90:bn,107:Yn,160:_n,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Yn,295:wr,710:ir,732:br,770:ir,771:br,989:gn,1008:pr,8245:[0,.54986,0,0,.275],8463:wr,8487:Qt,8498:Yn,8502:bn,8503:[0,.68889,0,0,.44445],8504:bn,8513:[0,.68889,0,0,.63889],8592:qn,8594:qn,8602:fr,8603:fr,8606:kr,8608:kr,8610:Qn,8611:Qn,8619:Nr,8620:Nr,8621:[-.13313,.37788,0,0,1.38889],8622:fr,8624:ei,8625:ei,8630:Vt,8631:Vt,8634:Rn,8635:Rn,8638:Nn,8639:Nn,8642:Nn,8643:Nn,8644:wn,8646:wn,8647:wn,8648:In,8649:wn,8650:In,8651:kr,8652:kr,8653:fr,8654:fr,8655:fr,8666:xn,8667:xn,8669:[-.13313,.37788,0,0,1],8672:kn,8674:kn,8705:[0,.825,0,0,.5],8708:Yn,8709:gn,8717:[0,.43056,0,0,.42917],8722:qn,8724:[.08198,.69224,0,0,.77778],8726:gn,8733:We,8736:bt,8737:bt,8738:[.03517,.52239,0,0,.72222],8739:Vn,8740:[.25142,.74111,0,0,.27778],8741:er,8742:[.25142,.74111,0,0,.5],8756:Ae,8757:Ae,8764:je,8765:[-.13313,.37788,0,0,.77778],8769:je,8770:ru,8774:Ht,8776:ls,8778:gn,8782:Ze,8783:Ze,8785:Rn,8786:Rn,8787:Rn,8790:We,8791:ln,8796:[.08198,.91667,0,0,.77778],8806:yt,8807:yt,8808:Lt,8809:Lt,8812:[.25583,.75583,0,0,.5],8814:Jt,8815:Jt,8816:Ht,8817:Ht,8818:ln,8819:ln,8822:yn,8823:yn,8828:En,8829:En,8830:ln,8831:ln,8832:Jt,8833:Jt,8840:Ht,8841:Ht,8842:Mn,8843:Mn,8847:Kt,8848:Kt,8858:Rn,8859:Rn,8861:Rn,8862:hn,8863:hn,8864:hn,8865:hn,8872:[0,.69224,0,0,.61111],8873:bt,8874:[0,.69224,0,0,.88889],8876:Ln,8877:Ln,8878:Qt,8879:Qt,8882:Kt,8883:Kt,8884:En,8885:En,8888:[0,.54986,0,0,1.11111],8890:ua,8891:Hn,8892:Hn,8901:[0,.54986,0,0,.27778],8903:gn,8905:gn,8906:gn,8907:We,8908:We,8909:[-.03598,.46402,0,0,.77778],8910:Zn,8911:Zn,8912:Kt,8913:Kt,8914:Kn,8915:Kn,8916:Ae,8918:jn,8919:jn,8920:nr,8921:nr,8922:On,8923:On,8926:En,8927:En,8928:Ht,8929:Ht,8934:cr,8935:cr,8936:cr,8937:cr,8938:Jt,8939:Jt,8940:Ht,8941:Ht,8994:Mt,8995:Mt,9416:[.15559,.69224,0,0,.90222],9484:ei,9488:ei,9492:an,9496:an,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:hn,9633:hn,9650:cn,9651:cn,9654:Kt,9660:cn,9661:cn,9664:Kt,9674:un,9733:[.19444,.69224,0,0,.94445],10003:Cn,10016:Cn,10731:un,10846:[.19444,.75583,0,0,.61111],10877:En,10878:En,10885:yt,10886:yt,10887:Mn,10888:Mn,10889:vn,10890:vn,10891:pn,10892:pn,10901:En,10902:En,10933:Lt,10934:Lt,10935:vn,10936:vn,10937:vn,10938:vn,10949:yt,10950:yt,10955:Pn,10956:Pn,57350:Vn,57351:er,57352:gn,57353:pr,57356:Lt,57357:Lt,57358:mr,57359:Ht,57360:Ht,57361:mr,57366:Lt,57367:Lt,57368:Lt,57369:Lt,57370:Mn,57371:Mn},"Caligraphic-Regular":{32:_n,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:_n},"Fraktur-Regular":{32:_n,33:[0,.69141,0,0,.29574],34:zr,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Pr,41:Pr,42:[0,.62119,0,0,.27764],43:Ir,44:Lr,45:Ir,46:Lr,47:[.24982,.74947,0,0,.50181],48:$r,49:$r,50:$r,51:Hr,52:Hr,53:Hr,54:Zr,55:Hr,56:Zr,57:Hr,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:gr,93:gr,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:_n,8216:zr,8217:zr,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:_n,33:[0,.69444,0,0,.35],34:ea,35:[.19444,.69444,0,0,.95833],36:xr,37:[.05556,.75,0,0,.95833],38:li,39:Jr,40:Cr,41:Cr,42:[0,.75,0,0,.575],43:vi,44:[.19444,.15556,0,0,.31944],45:Vr,46:[0,.15556,0,0,.31944],47:Xn,48:lr,49:lr,50:lr,51:lr,52:lr,53:lr,54:lr,55:lr,56:lr,57:lr,58:Ui,59:[.19444,.44444,0,0,.31944],60:jr,61:Yi,62:jr,63:[0,.69444,0,0,.54305],64:li,65:Jn,66:[0,.68611,0,0,.81805],67:si,68:[0,.68611,0,0,.88194],69:Qu,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:Dr,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:_r,77:[0,.68611,0,0,1.09166],78:Dr,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:Jn,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Wr,92:Xn,93:Wr,94:Bi,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Er,99:ti,100:Er,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Er,105:Jr,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:Jr,109:[0,.44444,0,0,.95833],110:ci,111:ql,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:ci,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:ti,123:Xn,124:Wr,125:Xn,126:[.35,.34444,0,0,.575],160:_n,163:[0,.69444,0,0,.86853],168:Bi,172:[0,.44444,0,0,.76666],176:Or,177:vi,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:vi,216:[.04861,.73472,0,0,.89444],223:sn,230:[0,.44444,0,0,.83055],247:vi,248:[.09722,.54167,0,0,.575],305:Ui,338:[0,.68611,0,0,1.16944],339:Fi,567:[.19444,.44444,0,0,.35139],710:Bi,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Bi,715:Bi,728:Bi,729:Jr,730:Or,732:Bi,733:Bi,915:_r,916:sr,920:di,923:Gc,926:_u,928:Dr,931:si,933:di,934:si,936:di,937:si,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:Jr,8217:Jr,8220:ea,8221:ea,8224:Va,8225:Va,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:gu,8465:Da,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:Da,8501:Aa,8592:_i,8593:da,8594:_i,8595:da,8596:_i,8597:Xn,8598:sa,8599:sa,8600:sa,8601:sa,8636:_i,8637:_i,8640:_i,8641:_i,8656:_i,8657:Sr,8658:_i,8659:Sr,8660:_i,8661:[.25,.75,0,0,.70277],8704:Er,8706:[0,.69444,.06389,0,.62847],8707:Er,8709:xr,8711:sr,8712:hr,8715:hr,8722:vi,8723:vi,8725:Xn,8726:Xn,8727:ho,8728:xi,8729:xi,8730:[.18,.82,0,0,.95833],8733:Fi,8734:[0,.44444,0,0,1.14999],8736:bt,8739:Wr,8741:Xn,8743:Zi,8744:Zi,8745:Zi,8746:Zi,8747:[.19444,.69444,.12778,0,.56875],8764:Yi,8768:[.19444,.69444,0,0,.31944],8771:Wi,8776:[.02444,.52444,0,0,.89444],8781:Wi,8801:Wi,8804:ra,8805:ra,8810:Ba,8811:Ba,8826:jr,8827:jr,8834:jr,8835:jr,8838:ra,8839:ra,8846:Zi,8849:ra,8850:ra,8851:Zi,8852:Zi,8853:vi,8854:vi,8855:vi,8856:vi,8857:vi,8866:Aa,8867:Aa,8868:li,8869:li,8900:xi,8901:[-.02639,.47361,0,0,.31944],8902:ho,8968:no,8969:no,8970:no,8971:no,8994:Fa,8995:Fa,9651:al,9657:ho,9661:al,9667:ho,9711:sa,9824:po,9825:po,9826:po,9827:po,9837:[0,.75,0,0,.44722],9838:wo,9839:wo,10216:Cr,10217:Cr,10815:Dr,10927:ra,10928:ra,57376:Jl},"Main-BoldItalic":{32:_n,33:[0,.69444,.11417,0,.38611],34:Ra,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:Xi,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:Xa,49:Xa,50:Xa,51:Xa,52:ya,53:Xa,54:Xa,55:ya,56:Xa,57:Xa,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Na,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:hi,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:hi,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:fi,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:Ni,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:Ni,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:_n,168:[0,.69444,.11473,0,.59111],176:ji,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:Ei,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Ei,567:[.19444,.44444,.04611,0,.385],710:fi,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:Xi,730:ji,732:Na,733:Na,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:hi,931:[0,.68611,.11431,0,.82666],933:$a,934:[0,.68611,.05632,0,.82666],936:$a,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:Xi,8217:Xi,8220:[0,.69444,.16772,0,.62055],8221:Ra},"Main-Italic":{32:_n,33:ro,34:Ds,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:ro,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:ia,49:ia,50:ia,51:ia,52:aa,53:ia,54:ia,55:aa,56:ia,57:ia,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:Dl,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:Ya,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:Ya,79:Al,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:Ya,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:Ja,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:Qa,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:Qa,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:_n,168:[0,.66786,.10474,0,.51111],176:hs,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:go,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:go,710:Ja,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:hs,732:[0,.66786,.11585,0,.51111],733:Dl,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:Al,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:Ya,931:[0,.68333,.12028,0,.71555],933:ol,934:[0,.68333,.05986,0,.71555],936:ol,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:ro,8217:ro,8220:[0,.69444,.1685,0,.51444],8221:Ds,8463:wr},"Main-Regular":{32:_n,33:Ll,34:Pa,35:Re,36:ms,37:Ke,38:Hl,39:Ll,40:Oo,41:Oo,42:wt,43:za,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:ll,48:xo,49:xo,50:xo,51:xo,52:xo,53:xo,54:xo,55:xo,56:xo,57:xo,58:lo,59:[.19444,.43056,0,0,.27778],60:jn,61:je,62:jn,63:fn,64:Hl,65:Ul,66:[0,.68333,0,0,.70834],67:as,68:[0,.68333,0,0,.76389],69:As,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Ul,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Xl,76:fl,77:[0,.68333,0,0,.91667],78:Ul,79:Xl,80:As,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:as,85:Ul,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Ul,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:qo,92:ll,93:qo,94:Pa,95:[.31,.12056,.02778,0,.5],97:Zl,98:Yl,99:Ls,100:Yl,101:Ls,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:Yl,105:ja,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:Ll,109:[0,.43056,0,0,.83334],110:ta,111:Zl,112:ua,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:ta,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:Ls,123:ll,124:qo,125:ll,126:[.35,.31786,0,0,.5],160:_n,163:[0,.69444,0,0,.76909],167:Wo,168:Zo,172:[0,.43056,0,0,.66667],176:Fo,177:za,182:ps,184:nc,198:[0,.68333,0,0,.90278],215:za,216:[.04861,.73194,0,0,.77778],223:Pa,230:[0,.43056,0,0,.72222],247:za,248:[.09722,.52778,0,0,.5],305:lo,338:[0,.68333,0,0,1.01389],339:Yu,567:[.19444,.43056,0,0,.30556],710:Pa,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Pa,715:Pa,728:Pa,729:ja,730:Fo,732:Zo,733:Pa,915:fl,916:nu,920:Xl,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Ul,931:as,933:Xl,934:as,936:Xl,937:as,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:Ll,8217:Ll,8220:Pa,8221:Pa,8224:Wo,8225:Wo,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:wr,8465:Fl,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Fl,8501:Sa,8592:fr,8593:Bl,8594:fr,8595:Bl,8596:fr,8597:ll,8598:$o,8599:$o,8600:$o,8601:$o,8614:[.011,.511,0,0,1],8617:vu,8618:vu,8636:fr,8637:fr,8640:fr,8641:fr,8652:[.011,.671,0,0,1],8656:fr,8657:ps,8658:fr,8659:ps,8660:fr,8661:[.25,.75,0,0,.61111],8704:Yl,8706:[0,.69444,.05556,.08334,.5309],8707:Yl,8709:ms,8711:nu,8712:js,8715:js,8722:za,8723:za,8725:ll,8726:ll,8727:La,8728:Bs,8729:Bs,8730:[.2,.8,0,0,.83334],8733:Yu,8734:Vt,8736:bt,8739:qo,8741:ll,8743:os,8744:os,8745:os,8746:os,8747:[.19444,.69444,.11111,0,.41667],8764:je,8768:[.19444,.69444,0,0,.27778],8771:ru,8773:[-.022,.589,0,0,1],8776:ls,8781:ru,8784:[-.133,.67,0,0,.778],8801:ru,8804:Mn,8805:Mn,8810:vs,8811:vs,8826:jn,8827:jn,8834:jn,8835:jn,8838:Mn,8839:Mn,8846:os,8849:Mn,8850:Mn,8851:os,8852:os,8853:za,8854:za,8855:za,8856:za,8857:za,8866:Sa,8867:Sa,8868:Hl,8869:Hl,8872:[.249,.75,0,0,.867],8900:Bs,8901:[-.05555,.44445,0,0,.27778],8902:La,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:_a,8969:_a,8970:_a,8971:_a,8994:hl,8995:hl,9136:jo,9137:jo,9651:Wl,9657:La,9661:Wl,9667:La,9711:$o,9824:sl,9825:sl,9826:sl,9827:sl,9837:[0,.75,0,0,.38889],9838:No,9839:No,10216:Oo,10217:Oo,10222:jo,10223:jo,10229:[.011,.511,0,0,1.609],10230:Ql,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:Ql,10815:Ul,10927:Mn,10928:Mn,57376:Jl},"Math-BoldItalic":{32:_n,48:ql,49:ql,50:ql,51:Ps,52:Ps,53:Ps,54:lr,55:Ps,56:lr,57:Ps,65:Jn,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:bc,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Qu,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:gu,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:Ad,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:_n,915:[0,.68611,.15972,0,.65694],916:sr,920:[0,.68611,.03194,0,.86722],923:Gc,926:[0,.68611,.07458,0,.84125],928:bc,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:_u,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:Ad,960:[0,.44444,.03704,0,.68241],961:Ju,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:Ju,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:_n,48:Zl,49:Zl,50:Zl,51:Ku,52:Ku,53:Ku,54:xo,55:Ku,56:xo,57:Ku,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:Cc,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:xc,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:iu,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:_n,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:xc,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Cc,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:iu,960:[0,.43056,.03588,0,.57003],961:qu,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:qu,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:_n,33:[0,.69444,0,0,.36667],34:Os,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:Vs,40:Sc,41:Sc,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:el,49:el,50:el,51:el,52:el,53:el,54:el,55:el,56:el,57:el,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Uc,64:Is,65:Is,66:Is,67:ec,68:au,69:[0,.69444,0,0,.64167],70:Sa,71:Is,72:au,73:[0,.69444,0,0,.33056],74:Uc,75:tc,76:Yc,77:[0,.69444,0,0,.97778],78:au,79:au,80:ec,81:[.10556,.69444,0,0,.79445],82:ec,83:Sa,84:Is,85:tc,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Is,89:[0,.69444,.0275,0,.73334],90:Ts,91:yu,93:yu,94:el,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:ou,99:[0,.45833,0,0,.48889],100:ou,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:ou,105:Ld,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Ld,109:[0,.45833,0,0,.86667],110:Xc,111:[0,.45833,0,0,.55],112:Hu,113:Hu,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:Xc,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:_n,168:el,176:Is,180:el,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:el,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:el,729:Vs,730:Is,732:el,733:el,915:Yc,916:[0,.69444,0,0,.91667],920:bu,923:Ts,926:Is,928:au,931:au,933:bu,934:au,936:bu,937:au,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Vs,8217:Vs,8220:Os,8221:Os},"SansSerif-Italic":{32:_n,33:[0,.69444,.05733,0,.31945],34:Jc,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:Fs,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:Tt,45:[0,.44444,.01946,0,.33333],46:Gt,47:[.25,.75,.13164,0,.5],48:Nl,49:Nl,50:Nl,51:Nl,52:Nl,53:Nl,54:Nl,55:Nl,56:Nl,57:Nl,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:dn,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:Gs,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:Tn,77:[0,.69444,.08094,0,.875],78:Gs,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:wc,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:_n,168:[0,.67937,.06385,0,.5],176:Ec,184:nc,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:wc,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Qc,715:Pa,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Ec,732:[0,.67659,.08826,0,.5],733:Qc,915:[0,.69444,.13372,0,.54167],916:Gr,920:[0,.69444,.07555,0,.77778],923:Sa,926:[0,.69444,.12816,0,.66667],928:Gs,931:[0,.69444,.11983,0,.72222],933:bl,934:[0,.69444,.04603,0,.72222],936:bl,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:Fs,8217:Fs,8220:[0,.69444,.14205,0,.5],8221:Jc},"SansSerif-Regular":{32:_n,33:[0,.69444,0,0,.31945],34:Pa,35:Re,36:ms,37:Ke,38:[0,.69444,0,0,.75834],39:Ll,40:Oo,41:Oo,42:wt,43:za,44:Tt,45:[0,.44444,0,0,.33333],46:Gt,47:ll,48:_t,49:_t,50:_t,51:_t,52:_t,53:_t,54:_t,55:_t,56:_t,57:_t,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:fn,64:dn,65:dn,66:dn,67:Er,68:[0,.69444,0,0,.72223],69:sn,70:[0,.69444,0,0,.56945],71:dn,72:Un,73:Ll,74:fn,75:[0,.69444,0,0,.69445],76:Tn,77:[0,.69444,0,0,.875],78:Un,79:[0,.69444,0,0,.73611],80:Er,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:Yl,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:dn,89:[0,.69444,.025,0,.66667],90:Sa,91:zn,93:zn,94:Pa,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:ur,99:ar,100:ur,101:ar,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:ur,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:Tr,111:[0,.44444,0,0,.5],112:or,113:or,114:[0,.44444,.01389,0,.34167],115:Vr,116:[0,.57143,0,0,.36111],117:Tr,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:_n,168:[0,.67937,0,0,.5],176:dn,184:nc,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Pa,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Pa,715:Pa,728:Pa,729:[0,.67937,0,0,.27778],730:dn,732:[0,.67659,0,0,.5],733:Pa,915:Tn,916:Gr,920:Hl,923:Sa,926:dn,928:Un,931:Fl,933:Hl,934:Fl,936:Hl,937:Fl,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:Ll,8217:Ll,8220:Pa,8221:Pa},"Script-Regular":{32:_n,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:_n},"Size1-Regular":{32:_n,40:Fr,41:Fr,47:qr,91:Ci,92:qr,93:Ci,123:wi,125:wi,160:_n,710:ui,732:ui,770:ui,771:ui,8214:[-99e-5,.601,0,0,.77778],8593:Ti,8595:Ti,8657:Vi,8659:Vi,8719:ri,8720:ri,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:ii,8748:mi,8749:mi,8750:ii,8896:Ar,8897:Ar,8898:Ar,8899:Ar,8968:ai,8969:ai,8970:ai,8971:ai,9168:Rl,10216:ai,10217:ai,10752:Ii,10753:Ii,10754:Ii,10756:Ar,10758:Ar},"Size2-Regular":{32:_n,40:Ji,41:Ji,47:Ai,91:Xr,92:Ai,93:Xr,123:Ki,125:Ki,160:_n,710:Gi,732:Gi,770:Gi,771:Gi,8719:ba,8720:ba,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:qa,8748:ha,8749:ha,8750:qa,8896:Ka,8897:Ka,8898:Ka,8899:Ka,8968:$i,8969:$i,8970:$i,8971:$i,10216:mo,10217:mo,10752:oa,10753:oa,10754:oa,10756:Ka,10758:Ka},"Size3-Regular":{32:_n,40:Ga,41:Ga,47:Ha,91:Eo,92:Ha,93:Eo,123:Li,125:Li,160:_n,710:Mi,732:Mi,770:Mi,771:Mi,8730:[.95003,1.45,0,0,1],8968:ki,8969:ki,8970:ki,8971:ki,10216:Li,10217:Li},"Size4-Regular":{32:_n,40:yi,41:yi,47:pa,91:Si,92:pa,93:Si,123:Hi,125:Hi,160:_n,710:la,732:la,770:la,771:la,8730:[1.25003,1.75,0,0,1],8968:na,8969:na,8970:na,8971:na,9115:Vo,9116:Mo,9117:Vo,9118:Vo,9119:Mo,9120:Vo,9121:vo,9122:Rl,9123:vo,9124:vo,9125:Rl,9126:vo,9127:$l,9128:yo,9129:Ro,9130:[0,.3,0,0,.88889],9131:$l,9132:yo,9133:Ro,9143:[.88502,.915,0,0,1.05556],10216:Hi,10217:Hi,57344:gs,57345:gs,57680:fa,57681:fa,57682:fa,57683:fa},"Typewriter-Regular":{32:zo,33:Mr,34:Mr,35:Mr,36:xa,37:xa,38:Mr,39:Mr,40:xa,41:xa,42:[0,.52083,0,0,.525],43:Co,44:[.13889,.125,0,0,.525],45:Co,46:[0,.125,0,0,.525],47:xa,48:Mr,49:Mr,50:Mr,51:Mr,52:Mr,53:Mr,54:Mr,55:Mr,56:Mr,57:Mr,58:Ri,59:[.13889,.43056,0,0,.525],60:ko,61:[-.19549,.41562,0,0,.525],62:ko,63:Mr,64:Mr,65:Mr,66:Mr,67:Mr,68:Mr,69:Mr,70:Mr,71:Mr,72:Mr,73:Mr,74:Mr,75:Mr,76:Mr,77:Mr,78:Mr,79:Mr,80:Mr,81:[.13889,.61111,0,0,.525],82:Mr,83:Mr,84:Mr,85:Mr,86:Mr,87:Mr,88:Mr,89:Mr,90:Mr,91:xa,92:xa,93:xa,94:Mr,95:[.09514,0,0,0,.525],96:Mr,97:Ri,98:Mr,99:Ri,100:Mr,101:Ri,102:Mr,103:ka,104:Mr,105:Mr,106:[.22222,.61111,0,0,.525],107:Mr,108:Mr,109:Ri,110:Ri,111:Ri,112:ka,113:ka,114:Ri,115:Ri,116:[0,.55358,0,0,.525],117:Ri,118:Ri,119:Ri,120:Ri,121:ka,122:Ri,123:xa,124:xa,125:xa,126:Mr,127:Mr,160:zo,176:Mr,184:[.19445,0,0,0,.525],305:Ri,567:ka,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:Mr,715:Mr,728:Mr,730:Mr,770:Mr,771:Mr,776:Mr,915:Mr,916:Mr,920:Mr,923:Mr,926:Mr,928:Mr,931:Mr,933:Mr,934:Mr,936:Mr,937:Mr,8216:Mr,8217:Mr,8242:Mr,9251:[.11111,.21944,0,0,.525]}},ss=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,pl=10,Go=.25,es=1.2,Uo=.431,ml={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[Uo,Uo,Uo],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:[Go,Go,Go],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]},tl=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],eo=5,to={"\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 ul(a,y){a===void 0&&(a=77);const b=Pl[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 to)a=to[E].codePointAt(0);else if(ss.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 ys={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]},zl={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]},us={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 Ns(a){if(zl[a]){const[Ce,Te,tt]=zl[a],kt=`<span class="stretchy" style="height:${tt}em"><svg width="100%" height="${tt}em" viewBox="0 0 ${Ce} ${Te}" preserveAspectRatio="none" ><path fill="currentcolor" d="${us[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*tt/2)/100}em;min-width:0">${kt}</span>`}const[y,b,E,ee]=ys[a];let re,le;const pe=E/1e3;y.length===3?(re=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],le=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(re=["slice-1-of-2","slice-2-of-2"],le=["xMinYMin","xMaxYMin"]):(re=["slice-1-of-1"],le=[ee]);const ve=y.map((Ce,Te)=>`<span class="${re[Te]}" style=height:${pe}em><svg width=400em height=${pe}em viewBox="0 0 400000 ${E}" preserveAspectRatio="${le[Te]} slice"><path fill="currentcolor" d="${us[Ce]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${pe}em;min-width:${b}em;">${ve}</span>`}function rc(a){return ys[a]?ys[a][2]/1e3:zl[a][2]}function ma(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 re=E-55296,le=ee-56320;E=zu(2,16)+re*zu(2,10)+le,b++}}y.push(E)}return y}var Ia=8205,Bo=[[Ia,1],[65038,2],[127995,5],[129456,4],[917536,96]],Ta,Po=[127462,127487];function Xo(a){var y;if(Ta===void 0){Ta={};for(const b of Bo)for(let E=b[0];E<=b[0]+b[1]-1;E++)Ta[E]=!0}return(y=Ta[a])!=null?y:!1}function xl(a){return a>=Po[0]&&a<=Po[1]}function bs(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=ma(a);let E=0;for(;E<b.length;){const ee=b[E++],re=b[E];if(re===Ia){const le=E-1;for(E+=2;b[E]===Ia;)E+=2;y.push(String.fromCodePoint(...b.slice(le,E-le+1)))}else if(Xo(re)){const le=E-1;for(;Xo(b[E]);)E+=b[E]===Ia?2:1;y.push(String.fromCodePoint(...b.slice(le,2*E-le-1)))}else xl(ee)?(E+=1,y.push(String.fromCodePoint(...b.slice(E-2,2)))):y.push(String.fromCodePoint(ee))}return y}var Mc=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=bs(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 Us(a,y){var b,E,ee,re;const le=[];let pe=a.next();if(pe&&pe!=="\\relax"){if(pe==="\\noexpand")pe=a.next(),pe&&le.push(pe);else if(pe==="\\obeyspaces")a.obeyspaces=!0;else if(pe==="\\bgroup")le.push("<{>");else if(pe==="\\egroup")le.push("<}>");else if(pe==="\\string"){if(pe=a.next(),pe)if(pe.startsWith("\\"))for(const ve of pe)le.push(ve==="\\"?"\\backslash":ve);else pe==="<{>"?le.push("\\{"):pe==="<space>"?le.push("~"):pe==="<}>"&&le.push("\\}")}else if(pe==="\\csname"){for(;a.peek()==="<space>";)a.next();let ve="",Ce=!1,Te=[];do{if(Te.length===0)if(/^#[\d?@]$/.test(a.peek())){const tt=a.get().slice(1);Te=xs((E=(b=y==null?void 0:y(tt))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),pe=Te[0]}else pe=a.next(),Te=pe?[pe]:[];Ce=Te.length===0,!Ce&&pe==="\\endcsname"&&(Ce=!0,Te.shift()),Ce||(Ce=pe==="<$>"||pe==="<$$>"||pe==="<{>"||pe==="<}>"||typeof pe=="string"&&pe.length>1&&pe.startsWith("\\")),Ce||(ve+=Te.shift())}while(!Ce);ve&&le.push("\\"+ve),le.push(...Te)}else if(pe!=="\\endcsname")if(pe.length>1&&pe.startsWith("#")){const ve=pe.slice(1);le.push(...xs((re=(ee=y==null?void 0:y(ve))!=null?ee:y==null?void 0:y("?"))!=null?re:"\\placeholder{}",y))}else le.push(pe)}return le}function xs(a,y=null){const b=[];let E="";for(const le of a.toString().split(/\r?\n/)){E&&b.push(E),E=" ";const pe=le.match(/((?:\\%)|[^%])*/);pe!==null&&b.push(pe[0])}const ee=new Mc(at(b.join(""))),re=[];do re.push(...Us(ee,y));while(!ee.end());return re}function ca(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 io(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:ca([a,...y.map(b=>`{${b}}`)])}function cs(a){return ca(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var lu=class ff{constructor(y){ff._registry[y]=this}static createAtom(y,b,E){return ff._registry[y].createAtom(b,it(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 re of qc(y)){const le=ff._registry[re[0].mode];ee.push(...le.serialize(re,b))}return ca(ee)}return ca(ic(y,b))}static getFont(y,b,E){return ff._registry[y].getFont(b,E)}};lu._registry={};var _l=lu;function qc(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 Do(a,y){const b=[];let E=[],ee;for(const re of a)if(re.type!=="first"&&re.style){let le;y==="variant"?(le=re.style.variant,re.style.variantStyle&&re.style.variantStyle!=="up"&&(le+="-"+re.style.variantStyle)):le=re.style[y],le===ee?E.push(re):(E.length>0&&b.push(E),E=[re],ee=le)}return E.length>0&&b.push(E),b}function kc(a,y){var b;const{parent:E}=a[0],ee=E==null?void 0:E.computedStyle.color,re=[];for(const le of qc(a)){const pe=y.defaultMode;for(const ve of Do(le,"color")){const Ce=ve[0].computedStyle,Te=_l._registry[ve[0].mode].serialize(ve,Ee(we({},y),{defaultMode:pe==="text"?"text":"math"}));!y.skipStyles&&Ce.color&&Ce.color!=="none"&&(!E||ee!==Ce.color)?re.push(io("\\textcolor",(b=Ce.verbatimColor)!=null?b:Ce.color,ca(Te))):re.push(ca(Te))}}return re}function ed(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return Do(a,"backgroundColor").map(ee=>{var re;if(ee.length>0||ee[0].type!=="box"){const le=ee[0].computedStyle;if(le.backgroundColor&&le.backgroundColor!=="none"&&(!b||E!==le.backgroundColor))return io("\\colorbox",(re=le.verbatimBackgroundColor)!=null?re:le.backgroundColor,ca(kc(ee,Ee(we({},y),{defaultMode:"text"}))))}return ca(kc(ee,y))})}function ic(a,y){if(a.length===0)return[];const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.fontSize,ee=[];for(const re of Do(a,"fontSize")){const le=re[0].computedStyle.fontSize,pe=ed(re,y);pe&&(le&&le!=="auto"&&(!b||E!==le)?ee.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][le],...pe):ee.push(...pe))}return ee}function ac(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 xu(a){if(a.length===0)return"ord";const y=ac(a[0].type),b=ac(a[a.length-1].type);return y&&y===b?y:"ord"}function su(a,y){if(typeof a=="string")return a;if(typeof a=="number"){console.assert(Number.isFinite(a));const b=Math.ceil(100*a)/100;return b===0?"0":b.toString()+(y!=null?y:"")}return""}var Rr=class Ep{constructor(y,b){var E,ee,re,le,pe;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:Ie(y)?this.children=y.filter(Ce=>Ce!==null):y&&y instanceof Ep&&(this.children=[y]),this.children)for(const Ce of this.children)Ce.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=(re=b==null?void 0:b.isTight)!=null?re:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let ve=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(ve=(pe=_l.getFont((le=b.mode)!=null?le:"math",this,Ee(we({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?pe:void 0),ve||(ve="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),Xs(this,ve)}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=su(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=su(y,"em"),this.height-=y,this.depth+=y)}get left(){var y;return(y=this.cssProperties)!=null&&y["margin-left"]?Number.parseFloat(this.cssProperties["margin-left"]):0}set left(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-left"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-left"]=su(y,"em")))}set right(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-right"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-right"]=su(y,"em")))}set bottom(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-bottom"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-bottom"]=su(y,"em")))}get width(){return this._width*this.scale}set width(y){this._width=y,this.hasExplicitWidth=!0}set softWidth(y){}get height(){return this._height*this.scale}set height(y){this._height=y}get depth(){return this._depth*this.scale}set depth(y){this._depth=y}wrap(y){const b=y.parent;if(!b)return this;y.isPhantom&&this.setStyle("opacity",0);const E=y.color;E&&E!==b.color&&this.setStyle("color",E);let ee=y.backgroundColor;this.isSelected&&(ee=It(ee)),ee&&ee!==b.backgroundColor&&(this.setStyle("background-color",ee),this.setStyle("display","inline-block"));const re=y.scalingFactor;return this.scale=re,this.skew*=re,this.italic*=re,this}toMarkup(){var y,b,E,ee;let re=(y=this.value)!=null?y:"";if(this.children)for(const jt of this.children)re+=jt.toMarkup();let le="";if(this.svgBody)le=Ns(this.svgBody);else if(this.svgOverlay){le='<span style="',le+="display: inline-block;",le+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,le+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,le+='">',le+=re,le+="</span>",le+='<svg style="position:absolute;overflow:visible;',le+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const jt=(b=this.cssProperties)==null?void 0:b.padding;jt?(le+=`top:${jt};`,le+=`left:${jt};`,le+=`width:calc(100% - 2 * ${jt} );`):le+="top:0;left:0;width:100%;",le+="z-index:2;",le+='"',this.svgStyle&&(le+=this.svgStyle),le+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,le+=`>${this.svgOverlay}</svg>`}let pe="";const ve=this.classes.split(" ");ve.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&ve.push("ML__latex-caret"),this.isSelected&&ve.push("ML__selected");const Ce=ve.length===1?ve[0]:ve.filter((jt,qt,$n)=>jt.length>0&&$n.indexOf(jt)===qt).join(" ");if(Ce.length>0&&(pe+=` class="${Ce}"`),this.id&&(pe+=` data-atom-id=${this.id}`),this.cssId&&(pe+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(pe+=" "+Object.keys(this.attributes).map(jt=>`${jt}="${this.attributes[jt]}"`).join(" ")),this.htmlData){const jt=this.htmlData.split(",");for(const qt of jt){const $n=qt.match(/([^=]+)=(.+$)/);if($n){const Kr=$n[1].trim().replace(/ /g,"-");Kr&&(pe+=` data-${Kr}="${$n[2]}" `)}else{const Kr=qt.trim().replace(/ /g,"-");Kr&&(pe+=` data-${Kr} `)}}}const Te=(ee=this.cssProperties)!=null?ee:{};this.hasExplicitWidth&&Te.width===void 0&&(Te.width=`${Math.ceil(this._width*100)/100}em`);const tt=Object.keys(Te).map(jt=>`${jt}:${Te[jt]}`);if(this.scale!==void 0&&this.scale!==1&&(re.length>0||le.length>0)&&tt.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const jt=this.htmlStyle.split(";");let qt="";for(const $n of jt){const Kr=$n.match(/([^=]+):(.+$)/);if(Kr){const Wn=Kr[1].trim().replace(/ /g,"-");Wn&&(qt+=`${Wn}:${Kr[2]};`)}}qt&&(pe+=` style="${qt}"`)}tt.length>0&&(pe+=` style="${tt.join(";")}"`);let kt="";return pe.length>0||le.length>0?kt=`<span${pe}>${re}${le}</span>`:kt=re,this.caret==="text"?kt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(kt+='<span class="ML__caret"></span>'),kt}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 ve of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&ve in y.cssProperties||this.cssProperties&&ve in this.cssProperties)return!1}const ee=this.cssProperties?Object.keys(this.cssProperties).length:0,re=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ee!==re)return!1;if(ee>0){for(const ve of Object.keys(this.cssProperties))if(this.cssProperties[ve]!==y.cssProperties[ve])return!1}const le=this.classes.trim().replace(/\s+/g," ").split(" "),pe=y.classes.trim().replace(/\s+/g," ").split(" ");if(le.length!==pe.length)return!1;le.sort(),pe.sort();for(const[ve,Ce]of le.entries())if(Ce==="vertical-separator"||Ce!==pe[ve])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 Dc(a){if(!a||a.length===0)return[];a[0].children=Dc(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=Dc(a[b].children),y.push(a[b]));return y}function oc(a){return a.children&&(a.children=Dc(a.children)),a}function lc(a,y){if(!a)return new Rr(null,y);const b=new Rr(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 Rr(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 Rr(E,Ee(we({},y),{type:"lift"}))}function ts(a){const y=rc(a)/2,b=new Rr(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function Xs(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=ul(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,re=0;for(const le of a.children)le.height>E&&(E=le.height),le.depth>ee&&(ee=le.depth),re=Math.max(re,(b=le.maxFontSize)!=null?b:0);a.height=E,a.depth=ee,a._width=a.children.reduce((le,pe)=>le+pe.width,0),a.maxFontSize=re}}function Cu(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const E=[b],ee=-b.shift-b.box.depth;let re=ee;for(let le=1;le<y.length;le++){const pe=y[le],ve=-pe.shift-re-pe.box.depth,Ce=ve-(b.box.height+b.box.depth);re=re+ve,E.push(Ce),E.push(pe),b=pe}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 uu(a){var y;const[b,E]=Cu(a);if(!b)return[[],0,0];const ee=new Rr(null,{classes:"pstrut"});let re=0;for(const qt of b)if(typeof qt!="number"){const $n=qt.box;re=Math.max(re,$n.maxFontSize,$n.height)}re+=2,ee.height=re,ee.setStyle("height",re,"em");const le=[];let pe=E,ve=E,Ce=E,Te=0;for(const qt of b){if(typeof qt=="number")Ce+=qt;else{const $n=qt.box,Kr=(y=qt.classes)!=null?y:[],Wn=new Rr([ee,$n],{classes:Kr.join(" "),style:qt.style});$n.setStyle("height",$n.height+$n.depth,"em"),$n.setStyle("display","inline-block"),Wn.setStyle("top",-re-Ce-$n.depth,"em"),qt.marginLeft&&Wn.setStyle("margin-left",qt.marginLeft,"em"),qt.marginRight&&Wn.setStyle("margin-right",qt.marginRight,"em"),le.push(Wn),Ce+=$n.height+$n.depth,Te=Math.max(Te,Wn.width)}pe=Math.min(pe,Ce),ve=Math.max(ve,Ce)}le.forEach(qt=>{qt.softWidth=Te});const tt=new Rr(le,{classes:"vlist"});if(tt.softWidth=Te,tt.height=ve,tt.setStyle("height",ve,"em"),pe>=0)return[[new Rr(tt,{classes:"vlist-r"})],ve,-pe];const kt=new Rr(new Rr(null),{classes:"vlist"});kt.height=-pe,kt.setStyle("height",-pe,"em");const jt=new Rr(8203,{classes:"vlist-s",maxFontSize:0});return jt.softWidth=0,jt.height=0,jt.depth=0,[[new Rr([tt,jt],{classes:"vlist-r"}),new Rr(kt,{classes:"vlist-r"})],ve,-pe]}var Ua=class extends Rr{constructor(a,y){var b;const[E,ee,re]=uu(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=re,this.softWidth=E.reduce((le,pe)=>Math.max(le,pe.width),0)}};function td(a,y){var b,E,ee,re,le;const pe=a.metrics,ve=new Rr(y.base),Ce=(b=y.baseShift)!=null?b:0,Te=(E=y.slant)!=null?E:0;let tt=0,kt=0;y.above&&(tt=(ee=y.aboveShift)!=null?ee:Math.max(pe.bigOpSpacing1,pe.bigOpSpacing3-y.above.depth)),y.below&&(kt=(re=y.belowShift)!=null?re:Math.max(pe.bigOpSpacing2,pe.bigOpSpacing4-y.below.height));let jt=null;if(y.below&&y.above){const qt=pe.bigOpSpacing5+y.below.height+y.below.depth+kt+ve.depth+Ce;jt=new Ua({bottom:qt,children:[pe.bigOpSpacing5,{box:y.below,marginLeft:-Te,classes:["ML__center"]},kt,{box:ve,classes:["ML__center"]},tt,{box:y.above,marginLeft:Te,classes:["ML__center"]},pe.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)jt=new Ua({top:ve.height-Ce,children:[pe.bigOpSpacing5,{box:y.below,marginLeft:-Te,classes:["ML__center"]},kt,{box:ve,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const qt=ve.depth+Ce;jt=new Ua({bottom:qt,children:[{box:ve,classes:["ML__center"]},tt,{box:y.above,marginLeft:Te,classes:["ML__center"]},pe.bigOpSpacing5]}).wrap(a)}else{const qt=ve.depth+Ce;jt=new Ua({bottom:qt,children:[{box:ve},pe.bigOpSpacing5]}).wrap(a)}return new Rr(jt,{type:(le=y.type)!=null?le:"op"})}var sc=7,Cs=6,Zu=5,Rs=4,zs=3,vl=2,Kl=1,nl=0,Ss=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(ml).reduce((ee,re)=>Ee(we({},ee),{[re]:ml[re][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return Ea[[nl,Kl,nl,Kl,vl,zs,vl,zs][this.id]]}get sub(){return Ea[[nl,nl,nl,nl,vl,vl,vl,vl][this.id]]}get fracNum(){return Ea[[nl,Kl,nl,Kl,vl,zs,Rs,Zu][this.id]]}get fracDen(){return Ea[[nl,nl,nl,nl,vl,vl,Rs,Rs][this.id]]}get cramp(){return Ea[[nl,nl,vl,vl,Rs,Rs,Cs,Cs][this.id]]}get isTight(){return this.sizeDelta<0}},va={7:new Ss(sc,0,!1),6:new Ss(Cs,0,!0),5:new Ss(Zu,0,!1),4:new Ss(Rs,0,!0),3:new Ss(zs,-3,!1),2:new Ss(vl,-3,!0),1:new Ss(Kl,-4,!1),0:new Ss(nl,-4,!0)},Ea=Ee(we({},va),{displaystyle:va[sc],textstyle:va[Zu],scriptstyle:va[zs],scriptscriptstyle:va[Kl]});function gl(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:pl,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=zu(10,y);return Math.round(a.dimension/pl*E*ee)/ee}return a.dimension*E}function ws(a,y){if(a===null)return 0;const b=gl(a)/pl;if(Number.isFinite(y)){const E=zu(10,y);return Math.round(b*E)/E}return b}function Es(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function Ac(a){let y=Es(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${Es(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${Es(a.shrink)}`),y}function Ao(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=Ac(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 ns(a,y){return a==null?null:"number"in a?Ee(we({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?Ee(we({},a),{factor:a.factor*y}):Ee(we({},a),{factor:y}):"dimension"in a?Ee(we({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:ns(a.glue,y),shrink:ns(a.shrink,y),grow:ns(a.grow,y)}:a.shrink?{glue:ns(a.glue,y),shrink:ns(a.shrink,y)}:a.grow?{glue:ns(a.glue,y),grow:ns(a.grow,y)}:{glue:ns(a.glue,y)}:null}var Lc={"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 Ys(){return we({},Lc)}function nd(){return{registers:Ys(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:dt.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:ut,backgroundColorMap:Oe,getMacro:a=>Ot(a,rn())}}var wa=class Mp{constructor(y,b){var E,ee,re,le,pe,ve,Ce,Te,tt,kt,jt,qt,$n,Kr,Wn;let dr;y!=null&&y.parent?(this.parent=y.parent,dr=y.parent,this.registers={}):(dr=we(we({},nd()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=dr.registers),dr.atomIdsSettings&&(this.atomIdsSettings=we({},dr.atomIdsSettings)),this.renderPlaceholder=dr.renderPlaceholder,this.isPhantom=(le=(re=y==null?void 0:y.isPhantom)!=null?re:(ee=this.parent)==null?void 0:ee.isPhantom)!=null?le:!1,this.letterShapeStyle=dr.letterShapeStyle,this.minFontScale=dr.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(ve=(pe=this.parent)==null?void 0:pe.color)!=null?ve:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(Te=(Ce=this.parent)==null?void 0:Ce.backgroundColor)!=null?Te:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((tt=this.parent)==null?void 0:tt.size)?this.size=b.fontSize:this.size=(jt=(kt=this.parent)==null?void 0:kt.size)!=null?jt:eo;let Ur=($n=(qt=this.parent)==null?void 0:qt.mathstyle)!=null?$n:Ea.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(dr instanceof Mp)switch(y.mathstyle){case"cramp":Ur=Ur.cramp;break;case"superscript":Ur=Ur.sup;break;case"subscript":Ur=Ur.sub;break;case"numerator":Ur=Ur.fracNum;break;case"denominator":Ur=Ur.fracDen;break}switch(y.mathstyle){case"textstyle":Ur=Ea.textstyle;break;case"displaystyle":Ur=Ea.displaystyle;break;case"scriptstyle":Ur=Ea.scriptstyle;break;case"scriptscriptstyle":Ur=Ea.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Ur,this.smartFence=dr.smartFence,this.placeholderSymbol=dr.placeholderSymbol,this.colorMap=(Kr=dr.colorMap)!=null?Kr:vr=>vr,this.backgroundColorMap=(Wn=dr.backgroundColorMap)!=null?Wn:vr=>vr,this.getMacro=dr.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===sc||this.mathstyle.id===Cs}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(tl[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 ws(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 re=b.evaluate(ee);if(re!==void 0)return"string"in re?{string:Number(ee).toString()+re.string}:"number"in re?{number:E*re.number}:"dimension"in re?Ee(we({},re),{dimension:E*re.dimension}):"glue"in re?Ee(we({},re),{glue:Ee(we({},re.glue),{dimension:E*re.glue.dimension}),shrink:re.shrink?Ee(we({},re.shrink),{dimension:E*re.shrink.dimension}):void 0,grow:re.grow?Ee(we({},re.grow),{dimension:E*re.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:gl(E,b)/pl}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}},uc=["body","above","below","superscript","subscript"];function cu(a){return typeof a=="string"&&uc.includes(a)}function Bc(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var tr=class Uu{constructor(y){var b,E,ee,re,le,pe;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=(re=y.displayContainsHighlight)!=null?re:!1,this.captureSelection=(le=y.captureSelection)!=null?le:!1,this.skipBoundary=(pe=y.skipBoundary)!=null?pe:!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 re=hf(b),le=[];for(const ve of re){const Ce=ve[0].style,Te=pf(y,ve,{style:{color:Ce.color,backgroundColor:Ce.backgroundColor,fontSize:Ce.fontSize}});Te&&le.push(Te)}if(le.length===0)return null;const pe=((ee=E==null?void 0:E.classes)!=null?ee:"").trim();return le.length===1&&!pe&&!(E!=null&&E.type)?le[0].wrap(y):new Rr(le,{classes:pe,type:E==null?void 0:E.type}).wrap(y)}static serialize(y,b){return _l.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 Uu({type:"mord",value:y,mode:"math"}):new Uu(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=Pd(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=it(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?ca([io(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?ca([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return _l.serialize(this.body,Ee(we({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return _l.serialize(this.above,y)}belowToLatex(y){return _l.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=Ee(we({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const E=_l.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=_l.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(cu(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of uc)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(cu(y)),cu(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 Bc(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Bc(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",re=we(we({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete re.variant,delete re.variantStyle,ee||delete re.verbatimBackgroundColor,E||delete re.verbatimColor,re}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(cu(b)),!cu(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 re of y)re.parent=this,re.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new Uu({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(cu(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 uc)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=it(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new wa({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,re=this.superscript,le=this.subscript;if(!re&&!le)return ee;let pe=null,ve=null;const Ce=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let Te=0;if(re){const $n=new wa({parent:y,mathstyle:"superscript"});pe=Uu.createBox($n,re),Ce||(Te=ee.height-y.metrics.supDrop*$n.scalingFactor)}let tt=0;if(le){const $n=new wa({parent:y,mathstyle:"subscript"});ve=Uu.createBox($n,le),Ce||(tt=ee.depth+y.metrics.subDrop*$n.scalingFactor)}let kt;y.isDisplayStyle?kt=y.metrics.sup1:y.isCramped?kt=y.metrics.sup3:kt=y.metrics.sup2;const jt=.5/pl/y.scalingFactor;let qt=null;if(ve&&pe){Te=Math.max(Te,kt,pe.depth+.25*y.metrics.xHeight),tt=Math.max(tt,y.metrics.sub2);const $n=y.metrics.defaultRuleThickness;if(Te-pe.depth-(ve.height-tt)<4*$n){tt=4*$n-(Te-pe.depth)+ve.height;const Wn=.8*y.metrics.xHeight-(Te-pe.depth);Wn>0&&(Te+=Wn,tt-=Wn)}const Kr=this.isExtensibleSymbol&&ee.italic?-ee.italic:0;qt=new Ua({individualShift:[{box:ve,shift:tt,marginLeft:Kr},{box:pe,shift:-Te}]}).wrap(y)}else ve&&!pe?(tt=Math.max(tt,y.metrics.sub1,ve.height-.8*Uo),qt=new Ua({shift:tt,children:[{box:ve,marginRight:jt,marginLeft:this.isCharacterBox()?-ee.italic:0}]})):!ve&&pe&&(Te=Math.max(Te,kt,pe.depth+.25*Uo),qt=new Ua({shift:-Te,children:[{box:pe,marginRight:jt}]}));return new Rr([ee,new Rr(qt,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?Uu.createBox(new wa({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ee=this.subscript?Uu.createBox(new wa({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ee?b.base.wrap(y):td(y,Ee(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,re,le;const pe=(E=this.value)!=null?E:this.body,ve=(ee=b==null?void 0:b.boxType)!=null?ee:ac(this.type);let Ce=(re=b==null?void 0:b.classes)!=null?re:"";this.mode==="text"&&(Ce+=" ML__text");const Te=typeof pe=="string"||pe===void 0?new Rr(pe!=null?pe:null,{type:ve,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:Ee(we({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:Ce}):(le=Uu.createBox(y,pe,{type:ve,classes:Ce}))!=null?le:new Rr(null);return y.isTight&&(Te.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(Te.italic=0),Te.right=Te.italic,this.bind(y,Te),this.caret&&!this.superscript&&!this.subscript&&(Te.caret=this.caret),Te}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 hf(a){let y;const b=[];let E=[];for(const ee of a)if(!y&&!ee.style)E.push(ee);else{const re=ee.computedStyle;y&&re.color===y.color&&re.backgroundColor===y.backgroundColor&&re.fontSize===y.fontSize?E.push(ee):(E.length>0&&b.push(E),E=[ee],y=re)}return E.length>0&&b.push(E),b}function pf(a,y,b){var E,ee,re,le,pe;if(!y||y.length===0)return null;const ve=new wa({parent:a},b.style),Ce=!((E=ve.atomIdsSettings)!=null&&E.groupNumbers);let Te=[];if(y.length===1){const kt=y[0],jt=kt.render(ve);jt&&(Ce&&kt.isSelected&&jt.selected(!0),Te=[jt])}else{let kt="",jt=!0;for(const qt of y){(ee=ve.atomIdsSettings)!=null&&ee.groupNumbers&&kt&&(jt&&qt.isDigit()||!jt&&Bd(qt))&&(ve.atomIdsSettings.overrideID=kt);const $n=qt.render(ve);ve.atomIdsSettings&&(ve.atomIdsSettings.overrideID=void 0),$n&&((re=ve.atomIdsSettings)!=null&&re.groupNumbers&&((qt.isDigit()||Bd(qt))&&(!kt||jt!==qt.isDigit())&&(jt=qt.isDigit(),kt=(le=qt.id)!=null?le:""),kt&&(!(qt.isDigit()||Bd(qt))||!qt.hasEmptyBranch("superscript")||!qt.hasEmptyBranch("subscript"))&&(kt="")),Ce&&qt.isSelected&&$n.selected(!0),Te.push($n))}}if(Te.length===0)return null;const tt=new Rr(Te,Ee(we({isTight:ve.isTight},b),{type:(pe=b.type)!=null?pe:"lift"}));return tt.isSelected=Te.every(kt=>kt.isSelected),tt.wrap(ve)}function Bd(a){return a.mode==="text"}function Pd(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof tr?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var du=class kp extends tr{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 kp(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:Ft("text",this.value.codePointAt(0))}};function Pc(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E<b&&ih(a.ranges[E],y.ranges[E])==="equal";)E++;return E===b?"equal":"different"}}return"different"}function ih(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function Cl(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 Su(a){return typeof a=="number"&&!Number.isNaN(a)}function rd(a){return Array.isArray(a)&&a.length===2}function id(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function ah(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 mf(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,re=!1,le=!1,pe=!1,ve=!1,Ce=!1,Te=!1,tt=!1,kt=!1,jt=!1,qt=!1,$n=!1,Kr=!1,Wn=a[0],dr=0;for(;Wn!=null&&Wn.type&&/^(subsup|placeholder)$/.test(Wn.type);)dr+=1,Wn=a[dr];return b=!Wn||Wn.type==="first",Wn&&($n=Wn.mode==="text",E=!$n&&Wn.type==="mord"&&ce.test(Wn.value),ee=!$n&&Wn.type==="mord"&&/\d+$/.test(Wn.value),re=!$n&&Wn.isFunction,le=Wn.type==="genfrac",pe=Wn.type==="surd",ve=Wn.type==="mbin",Ce=Wn.type==="mrel",Te=Wn.type==="mop"||Wn.type==="operator"||Wn.type==="extensible-symbol",tt=Wn.type==="mpunct"||Wn.type==="minner",kt=Wn.type==="array",jt=Wn.type==="mopen",qt=Wn.type==="mclose"||Wn.type==="leftright",Kr=Wn.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&E||y.after.includes("digit")&&ee||y.after.includes("function")&&re||y.after.includes("frac")&&le||y.after.includes("surd")&&pe||y.after.includes("binop")&&ve||y.after.includes("relop")&&Ce||y.after.includes("operator")&&Te||y.after.includes("punct")&&tt||y.after.includes("array")&&kt||y.after.includes("openfence")&&jt||y.after.includes("closefence")&&qt||y.after.includes("text")&&$n||y.after.includes("space")&&Kr?y.value:""}function Id(a,y,b){return b?mf(a,b[y]):""}var vf={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 Ic(a,y){var b;let E=(b=y==null?void 0:y.format)!=null?b:"auto";return E==="auto"&&([E,a]=yf(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",Il(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function Il(a,y){var b,E,ee;if(!a)return"";let re=!1,le;const pe=(b=y.inlineShortcuts)!=null?b:vf;if(!re&&(a.startsWith("^")||a.startsWith("_"))&&(le=wu(a.slice(1),{inlineShortcuts:pe,noWrap:!0}),a=a[0]+"{"+le.match+"}",a+=Il(le.rest,y),re=!0),re||(le=a.match(/^(sqrt|\u221A)(.*)/),le&&(le=wu(le[2],{inlineShortcuts:pe,noWrap:!0}),a="\\sqrt{"+((E=le.match)!=null?E:"\\placeholder{}")+"}",a+=Il(le.rest,y),re=!0)),re||(le=a.match(/^(\\cbrt|\u221B)(.*)/),le&&(le=wu(le[2],{inlineShortcuts:pe,noWrap:!0}),a="\\sqrt[3]{"+((ee=le.match)!=null?ee:"\\placeholder{}")+"}",a+=Il(le.rest,y),re=!0)),re||(le=a.match(/^abs(.*)/),le&&(le=wu(le[1],{inlineShortcuts:pe,noWrap:!0}),a="\\left|"+le.match+"\\right|",a+=Il(le.rest,y),re=!0)),re||(le=a.match(/^["”“](.*?)["”“](.*)/),le&&(a="\\text{"+le[1]+"}",a+=Il(le[2],y),re=!0)),re||(le=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),le&&(a=gf(le[1],pe),a+=Il(le[2],y),re=!0)),!re&&/^([fgh])[^a-zA-Z]/.test(a)&&(le=wu(a.slice(1),{inlineShortcuts:pe,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+le.match+"\\right)":a[0]+le.match,a+=Il(le.rest,y),re=!0),re||(le=a.match(/^([a-zA-Z]+)(.*)/),le&&(a=gf(le[1],pe),a+=Il(le[2],y),re=!0)),!re)if(le=wu(a,{inlineShortcuts:pe,noWrap:!0}),le.match&&le.rest[0]==="/"){const ve=wu(le.rest.slice(1),{inlineShortcuts:pe,noWrap:!0});ve.match&&(a="\\frac{"+le.match+"}{"+ve.match+"}"+Il(ve.rest,y)),re=!0}else le.match&&(a=a.startsWith("(")?"\\left("+le.match+"\\right)"+Il(le.rest,y):le.match+Il(le.rest,y),re=!0);return re||(le=a.match(/^(\s+)(.*)$/),le&&(a=" "+Il(le[2],y),re=!0)),a}function wu(a,y){let b="";a=a.trim();let E=a,ee=a.charAt(0),re={"(":")","{":"}","[":"]"}[ee];if(re){let le=1,pe=1;for(;pe<a.length&&le>0;)a[pe]===ee&&le++,a[pe]===re&&le--,pe++;le===0?(y.noWrap&&ee==="("?b=Il(a.substring(1,pe-1),y):(ee==="{"&&re==="}"&&(ee="\\{",re="\\}"),b="\\left"+ee+Il(a.substring(1,pe-1),y)+"\\right"+re),E=a.slice(Math.max(0,pe))):(b=a.substring(1,pe),E="")}else{let le=a.match(/^([a-zA-Z]+)/);if(le){let pe=Id(null,a,y.inlineShortcuts);if(pe)return pe=pe.replace("_{#?}",""),pe=pe.replace("^{#?}",""),{match:pe,rest:a.slice(pe.length)}}if(le=a.match(/^([a-zA-Z])/),le)return{match:le[1],rest:a.slice(1)};if(le=a.match(/^(-)?\d+(\.\d*)?/),le)return{match:le[0],rest:a.slice(le[0].length)};/^\\(left|right)/.test(a)||(le=a.match(/^(\\[a-zA-Z]+)/),le&&(E=a.slice(le[1].length),b=le[1]))}return{match:b,rest:E}}function gf(a,y){let b=Id(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var Td=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Eu(a){const y=a.trim();for(const b of Td)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 yf(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=Eu(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 ad="$$",oh="$$",lh=(a,y,b)=>(Td.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${ad} ${y} ${oh}`),y),bf=class rh{constructor(y){rh._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 le=new DataTransfer;le.setData("text/plain",E),E=le}const re=new ClipboardEvent("paste",{clipboardData:E,cancelable:!0});return(ee=b.host)!=null&&ee.dispatchEvent(re)?rh._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]:Cl(E.selection),re=E.getValue(ee,b);navigator.clipboard.writeText(re).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,re=ee.selectionIsCollapsed?[0,ee.lastOffset]:Cl(ee.selection);let le=ee.getAtoms(re);if(le.every(pe=>pe.mode==="text"||!pe.mode))b.clipboardData.setData("text/plain",le.filter(pe=>pe instanceof du).map(pe=>pe.value).join(""));else if(le.every(pe=>pe.mode==="latex"))b.clipboardData.setData("text/plain",ee.getAtoms(re,{includeChildren:!0}).map(pe=>{var ve;return(ve=pe.value)!=null?ve:""}).join(""));else{let pe;le.length===1&&le[0].verbatimLatex!==void 0?pe=le[0].verbatimLatex:pe=ee.getValue(re,"latex-expanded"),b.clipboardData.setData("application/x-latex",pe);try{b.clipboardData.setData("text/plain",y.options.onExport(y,pe,re))}catch(ve){}if(le.length===1){const ve=le[0];(ve.type==="root"||ve.type==="group")&&(le=ve.body.filter(Ce=>Ce.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(le.map(ve=>ve.toJson())))}catch(ve){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const ve=window.MathfieldElement.computeEngine;if(ve)try{const Ce=ve.jsonSerializationOptions;ve.jsonSerializationOptions={metadata:["latex"]};const Te=ve.parse(ee.getValue(re,"latex-unstyled"));ve.jsonSerializationOptions=Ce;const tt=JSON.stringify(Te.json);tt&&b.clipboardData.setData("application/json",tt)}catch(Ce){}}}b.preventDefault()}static insert(y,b,E={}){var ee;const re=E.mode==="auto"?y.mode:(ee=E.mode)!=null?ee:y.mode;return rh._modes[re].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};bf._modes={};var Qi=bf,sh=[{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","^"]}],Od={"\\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 _s(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function Ks(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=Ks(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function Fd(a){var y;if(!a.parent)return"root";let b=(y=a.parent.id)!=null?y:"";return b+=typeof a.parentBranch=="string"?"-"+a.parentBranch:`-${a.parentBranch[0]}/${a.parentBranch[0]}`,b}function Nd(a,y,b){if(!y)return null;const E=a.field.getBoundingClientRect(),ee=y.right-y.left,re=y.bottom-y.top,le=Math.ceil(y.left-E.left+a.field.scrollLeft*b),pe=Math.ceil(y.top-E.top);return{left:le,right:le+ee,top:pe,bottom:pe+re}}function Rd(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 re=Rd(ee);E.left=Math.min(E.left,re.left),E.right=Math.max(E.right,re.right),E.top=Math.min(E.top,re.top),E.bottom=Math.max(E.bottom,re.bottom)}return E}function cc(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 re=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ee=re?Rd(re):null,a.atomBoundsCache&&(ee?a.atomBoundsCache.set(y.id,ee):a.atomBoundsCache.delete(y.id)),ee!=null?ee:null}function xf(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 re=a.field,le=re.offsetWidth;let ve=Math.floor(re.getBoundingClientRect().width)/le;ve=isNaN(ve)?1:ve;const Ce=Nd(a,cc(a,ee),ve);if(Ce){const Te=Fd(ee);if(E.has(Te)){const tt=E.get(Te);E.set(Te,{left:Math.min(tt.left,Ce.left),right:Math.max(tt.right,Ce.right),top:Math.min(tt.top,Ce.top),bottom:Math.max(tt.bottom,Ce.bottom)})}else E.set(Te,Ce)}}return[...E.values()]}function zd(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...xf(a,E,y)),[])}function _d(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function od(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 Cf=`@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;
}
`,ao=`.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);
}
`,Sf=`#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);
}
`,uh=`/* 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;
}
`,dc=`/* 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);*/
}
`,ch=`.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));
}
`,ld=`: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;
}
`,so;function Wu(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=ao;break;case"mathfield":y=Cf;break;case"environment-popover":y=Sf;break;case"suggestion-popover":y=uh;break;case"keystroke-caption":y=dc;break;case"virtual-keyboard":y=ch;break;case"ui":y=ld;break;case"menu":y=dh;break;default:debugger}return y}function fc(a){return so||(so={}),so[a]||(so[a]=new CSSStyleSheet,so[a].replaceSync(Wu(a))),so[a]}var fu;function Ms(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(Wu(a))),window.document.head.appendChild(b);return}if(fu||(fu={}),((y=fu[a])!=null?y:0)!==0)fu[a]+=1;else{const b=fc(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],fu[a]=1}}function x(a){if("adoptedStyleSheets"in document&&fu!=null&&fu[a]&&(fu[a]-=1,fu[a]<=0)){const y=so[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class Dp extends tr{constructor(y){var b;super(Ee(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 Dp(y)}toJson(){return Ee(we({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new wa({parent:y,mathstyle:"cramp"},this.style),ee=(b=tr.createBox(E,this.body))!=null?b:new Rr("\u25A2",{style:this.style});let re=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(re=ee.skew);let le=Math.min(ee.height,Uo),pe;if(this.svgAccent)pe=ts(this.svgAccent),le=E.metrics.bigOpSpacing1-le;else if(this.accent){const Ce=new Rr(this.accent,{fontFamily:"Main-Regular"});Ce.italic=0;const Te=this.accent===8407?" ML__accent-vec":"";pe=new Rr(new Rr(Ce),{classes:"ML__accent-body"+Te})}pe=new Ua({shift:0,children:[{box:new Rr(ee)},-le,{box:pe,marginLeft:ee.left+2*re,classes:["ML__center"]}]});const ve=new Rr(pe,{type:"lift"});return this.caret&&(ve.caret=this.caret),this.bind(E,ve.wrap(E)),this.attachSupsub(E,{base:ve})}},ne={"(":")","{":"}","[":"]","|":"|","\\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(ne).map(([a,y])=>[y,a]));function ie(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 fe(a,y,b,E){var ee;const le=new Rr(ie(a),{fontFamily:"Main-Regular",isSelected:E.isSelected,classes:"ML__small-delim "+((ee=E.classes)!=null?ee:"")}).wrap(y);return b&&le.setTop((1-y.scalingFactor)*Go),le}function xe(a,y,b,E,ee){var re,le;const pe=new wa({parent:E,mathstyle:"textstyle"},ee==null?void 0:ee.style),ve=new Rr(ie(a),{fontFamily:`Size${y}-Regular`,isSelected:ee.isSelected,classes:((re=ee.classes)!=null?re:"")+` ML__delim-size${y}`,type:(le=ee.type)!=null?le:"ignore"}).wrap(pe);return b&&ve.setTop((1-pe.scalingFactor)*Go),ve}function Ne(a,y,b,E,ee){var re;let le,pe,ve,Ce;le=ve=Ce=ie(a),pe=null;let Te="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?ve=le=Ce=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?ve=le=Ce=8741:a==="\\uparrow"?ve=Ce=9168:a==="\\Uparrow"?ve=Ce=8214:a==="\\downarrow"?le=ve=9168:a==="\\Downarrow"?le=ve=8214:a==="\\updownarrow"?(le=8593,ve=9168,Ce=8595):a==="\\Updownarrow"?(le=8657,ve=8214,Ce=8659):a==="["||a==="\\lbrack"?(le=9121,ve=9122,Ce=9123,Te="Size4-Regular"):a==="]"||a==="\\rbrack"?(le=9124,ve=9125,Ce=9126,Te="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(ve=le=9122,Ce=9123,Te="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(le=9121,ve=Ce=9122,Te="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(ve=le=9125,Ce=9126,Te="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(le=9124,ve=Ce=9125,Te="Size4-Regular"):a==="("||a==="\\lparen"?(le=9115,ve=9116,Ce=9117,Te="Size4-Regular"):a===")"||a==="\\rparen"?(le=9118,ve=9119,Ce=9120,Te="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(le=9127,pe=9128,Ce=9129,ve=9130,Te="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(le=9131,pe=9132,Ce=9133,ve=9130,Te="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(le=9127,Ce=9129,ve=9130,Te="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(le=9131,Ce=9133,ve=9130,Te="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(le=9127,Ce=9133,ve=9130,Te="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(le=9131,Ce=9129,ve=9130,Te="Size4-Regular"):a==="\\surd"?(le=57345,Ce=9143,ve=57344,Te="Size4-Regular"):a==="\\ulcorner"?(le=9484,ve=Ce=32):a==="\\urcorner"?(le=9488,ve=Ce=32):a==="\\llcorner"?(Ce=9492,ve=le=32):a==="\\lrcorner"&&(le=9496,ve=le=32);const tt=ul(le,Te),kt=tt.height+tt.depth,jt=ul(ve,Te),qt=jt.height+jt.depth,$n=ul(Ce,Te),Kr=$n.height+$n.depth;let Wn=0,dr=1;if(pe!==null){const Ml=ul(pe,Te);Wn=Ml.height+Ml.depth,dr=2}const Ur=kt+Kr+Wn,vr=Math.max(0,Math.ceil((y-Ur)/(dr*qt))),bi=Ur+vr*dr*qt;let Pi=Go;b&&(Pi=Pi*E.scalingFactor);const Di=bi/2-Pi,Ma=.008,oo=[];oo.push({box:new Rr(Ce,{fontFamily:Te})}),oo.push(-Ma);const Qr=new Rr(ve,{fontFamily:Te});if(pe===null)for(let Ml=0;Ml<vr;Ml++)oo.push({box:Qr});else{for(let Ml=0;Ml<vr;Ml++)oo.push({box:Qr});oo.push(-Ma),oo.push({box:new Rr(pe,{fontFamily:Te})}),oo.push(-Ma);for(let Ml=0;Ml<vr;Ml++)oo.push({box:Qr})}oo.push(-Ma),oo.push({box:new Rr(le,{fontFamily:Te})});let Ws="";Te==="Size1-Regular"?Ws=" delim-size1":Te==="Size4-Regular"&&(Ws=" delim-size4");const Tu=new Ua({bottom:Di,children:oo},{classes:Ws});return new Rr(Tu,Ee(we({},ee!=null?ee:{}),{classes:((re=ee==null?void 0:ee.classes)!=null?re:"")+" ML__delim-mult"}))}var _e=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),et=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Wt=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),tn=[0,1.2,1.8,2.4,3];function Fn(a,y,b,E){return a===void 0||a==="."?gi(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),_e.has(a)||Wt.has(a)?xe(a,y,!1,b,E):et.has(a)?Ne(a,tn[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var Dn=[{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}],rr=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],yr=[{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 Yr(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function oi(a,y,b,E){const ee={"-4":0,"-3":1,0:2}[E.mathstyle.sizeDelta];for(let re=ee;re<b.length&&b[re].type!=="stack";re++){const le=ul(a,Yr(b[re]));if(le.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let pe=le.height+le.depth;if(b[re].type==="small"&&(b[re].mathstyle==="scriptscriptstyle"?pe*=Math.max(tl[Math.max(1,E.size-2)],E.minFontScale):b[re].mathstyle==="scriptstyle"&&(pe*=Math.max(tl[Math.max(1,E.size-1)],E.minFontScale))),pe>y)return b[re]}return b[b.length-1]}function pi(a,y,b,E,ee,re){if(!y||y.length===0||y===".")return gi(ee);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let le;Wt.has(y)?le=Dn:_e.has(y)?le=yr:le=rr;const pe=oi(ie(y),b,le,ee),ve=new wa({parent:ee,mathstyle:pe.mathstyle},re==null?void 0:re.style);return pe.type==="small"?fe(y,ve,E,Ee(we({},re),{type:a})):pe.type==="large"?xe(y,pe.size,E,ve,Ee(we({},re),{type:a})):(console.assert(pe.type==="stack"),Ne(y,b,E,ve,Ee(we({},re),{type:a})))}function ni(a,y,b,E,ee,re){if(y===".")return gi(ee,re==null?void 0:re.classes);const le=Go*ee.scalingFactor,pe=901,ve=5/pl,Ce=Math.max(b-le,E+le),Te=Math.max(Ce/500*pe,2*Ce-ve);return pi(a,y,Te,!0,ee,re)}function gi(a,y){const b=new Rr(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new wa({parent:a,mathstyle:"textstyle"}))}var Oi=class Ap extends tr{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 Ap(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{}"}},zi=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],ga=["cases","dcases","rcases"],uo=["align","align*","aligned","gather","gathered","split"],yl=["array","subequations","eqnarray"];function Io(a){return yl.concat(uo).concat(ga).concat(zi).includes(a)}function jl(a){return zi.includes(a)}function Vl(a){return ga.includes(a)}function rl(a){return uo.includes(a)}function Gl(a,y,b){let E=0;for(const Ce of b)"align"in Ce&&(E+=1);let ee=0;const re=[];for(const Ce of y){let Te=0;for(ee=Math.max(ee,Math.min(Ce.length,E));Te<Ce.length;){const tt=[],kt=Math.min(Ce.length,Te+E);for(;Te<kt;){const jt=Ce[Te];jt.length===0?tt.push([new tr({type:"first",mode:a.mode})]):jt[0].type!=="first"?tt.push([new tr({type:"first",mode:a.mode}),...jt]):(console.assert(!jt.slice(1).some(qt=>qt.type==="first")),tt.push(jt)),Te+=1}re.push(tt)}}re.length>0&&re[re.length-1].length===1&&re[re.length-1][0].length===1&&re[re.length-1][0][0].type==="first"&&re.pop();const le=[];for(const Ce of re){if(Ce.length!==ee)for(let Te=Ce.length;Te<ee;Te++)Ce.push([new tr({type:"first",mode:a.mode}),new Oi]);le.push(Ce)}let pe=0,ve=0;for(const Ce of le){ve=0;for(const Te of Ce){for(const tt of Te)tt.parent=a,tt.parentBranch=[pe,ve];ve+=1}pe+=1}return a.isDirty=!0,le}var qi=class Lp extends tr{constructor(y,b,E,ee={}){var re;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=Gl(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=(re=ee.minColumns)!=null?re:1}static fromJson(y){return new Lp(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=Ee(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(Bc(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return Bc(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(cu(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,re,le,pe;const ve=new wa({parent:y,mathstyle:this.mathstyleName},this.style),Ce=ve.getRegisterAsEm("arrayrulewidth"),Te=ve.getRegisterAsEm("arraycolsep"),tt=ve.getRegisterAsEm("doublerulesep"),kt=(E=(b=this.arraystretch)!=null?b:ve.getRegisterAsNumber("arraystretch"))!=null?E:1;let jt=typeof this.arraycolsep=="number"?this.arraycolsep:Te;this.colSeparationType==="small"&&(jt=.2778*(new wa({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const qt=kt*es,$n=.7*qt,Kr=.3*qt;let Wn=0;const dr=[];let Ur=0;const vr=this.array.length;for(let fo=0;fo<vr;++fo){const Jo=this.array[fo];Ur=Math.max(Ur,Jo.length);const kl=new wa({parent:ve,mathstyle:this.mathstyleName},this.style);let Ou=$n/kl.scalingFactor,Fu=Kr/kl.scalingFactor;const Nu={cells:[],height:0,depth:0,pos:0};for(const mu of Jo){const e0=(ee=tr.createBox(kl,mu,{type:"ignore"}))!=null?ee:new Rr(null,{type:"ignore"});Fu=Math.max(Fu,e0.depth),Ou=Math.max(Ou,e0.height),Nu.cells.push(e0)}let Ru=(re=ws(this.rowGaps[fo]))!=null?re:0;Ru>0&&(Ru+=Kr,Fu=Math.max(Fu,Ru),Ru=0),fo<vr-1&&!jl(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Fu+=ve.getRegisterAsEm("jot")),Nu.height=Ou,Nu.depth=Fu,Wn+=Ou,Nu.pos=Wn,Wn+=Fu+Ru,dr.push(Nu)}const bi=Wn/2+Go,Pi=[];for(let fo=0;fo<Ur;fo++){const Jo=[];for(const kl of dr){const Ou=kl.cells[fo];Ou.depth=kl.depth,Ou.height=kl.height,Jo.push({box:Ou,shift:kl.pos-bi})}Jo.length>0&&Pi.push(new Ua({individualShift:Jo}))}const Di=[];let Ma=!1,oo=!1,Qr=0,Ws=!this.leftDelim;const{colFormat:Tu}=this;for(const fo of Tu){if("align"in fo&&Qr>=Pi.length)break;if("align"in fo)Ma?Di.push(To(2*jt)):(oo||Ws)&&Di.push(To(jt)),Di.push(new Rr(Pi[Qr],{classes:"col-align-"+fo.align})),Qr++,Ma=!0,oo=!1,Ws=!1;else if("gap"in fo){if(typeof fo.gap=="number")Di.push(To(fo.gap));else{const Jo=Ko(y,dr,bi,fo.gap);Jo&&Di.push(Jo)}Ma=!1,oo=!1,Ws=!1}else if("separator"in fo){const Jo=new Rr(null,{classes:"vertical-separator"});Jo.height=Wn,Jo.setStyle("height",Wn,"em"),Jo.setStyle("border-right",`${Ce}em ${fo.separator} currentColor`),Jo.setStyle("vertical-align",-(Wn-bi),"em");let kl=0;oo?kl=tt-Ce:Ma&&(kl=jt-Ce),Jo.left=kl,Di.push(Jo),Ma=!1,oo=!0,Ws=!1}}Ma&&!this.rightDelim&&Di.push(To(jt));const eu=new Rr(Di,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(eu.caret=this.caret),this.bind(y,eu);const Ml=eu.height,$s=eu.depth,fs=this.bind(y,new Rr([this.bind(y,ni("open",(le=this.leftDelim)!=null?le:".",Ml,$s,ve,{isSelected:this.isSelected})),eu,this.bind(y,ni("close",(pe=this.rightDelim)!=null?pe:".",Ml,$s,ve,{isSelected:this.isSelected}))],{type:"ord"}));return fs?(fs.setStyle("display","inline-block"),this.caret&&(fs.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:fs}))):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 re=0;re<this.array[ee].length;re++)re>0&&E.push(" & "),E.push(tr.serialize(this.array[ee][re],y));if(ee<this.array.length-1){const re=this.rowGaps[ee];re!=null&&re.dimension?E.push(`\\\\[${re.dimension} ${(b=re.unit)!=null?b:"pt"}] `):E.push("\\\\ ")}}return this.environmentName==="lines"?E.push("}"):E.push(`\\end{${this.environmentName}}`),ca(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 re of this.array[y][b])re.parent=void 0,re.parentBranch=void 0;let ee=E;(E.length===0||E[0].type!=="first")&&(ee=[new tr({type:"first",mode:this.mode}),...E]),this.array[y][b]=ee;for(const re of ee)re.parent=this,re.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(_o(this));this.array.splice(y,0,b);for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const le of re)le.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(_o(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 re=this.array[E][ee];if(re)for(const le of re)le.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 re of ee)re.parent=void 0,re.parentBranch=void 0;for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const le of re)le.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,_o(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 re of ee)re.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,_o(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 re of ee)re.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 re of ee)re.parent=void 0,re.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 re of ee)re.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 _o(a){const y=new tr({type:"first",mode:a.mode});y.parent=a;const b=new Oi;return b.parent=a,[y,b]}function To(a){const y=new Rr(null,{classes:"arraycolsep"});return y.width=a,y}function Ko(a,y,b,E){if(!E)return null;const ee=[];for(const re of y){const le=tr.createBox(a,E,{type:"ignore"});le&&(le.depth=re.depth,le.height=re.height,ee.push({box:le,shift:re.pos-b}))}return new Ua({individualShift:ee}).wrap(a)}var Yo=class Bp extends tr{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 Bp(y)}toJson(){return Ee(we({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,E,ee,re;const le=tr.createBox(y,this.body,{type:"lift"});if(!le)return null;const pe=y.toEm((b=this.offset)!=null?b:{dimension:0});le.depth+=pe,le.setStyle("display","inline-block"),le.setStyle("position","relative"),le.setStyle("height",Math.floor(100*le.height+le.depth)/100,"em"),le.setStyle("vertical-align",-Math.floor(100*le.height)/100,"em");const ve=new wa({parent:y},this.style),Ce=ve.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),Te=new Rr(null,{classes:"ML__box"});Te.height=le.height+Ce,Te.depth=le.depth+Ce,Te.setStyle("box-sizing","border-box"),Te.setStyle("position","absolute"),Te.setStyle("top",-Ce+.3,"em"),Te.setStyle("left",0),Te.setStyle("height",Te.height+Te.depth,"em"),Te.setStyle("width","100%"),this.backgroundcolor&&Te.setStyle("background-color",(ee=ve.toColor(this.backgroundcolor))!=null?ee:"transparent"),this.framecolor&&Te.setStyle("border",`${ve.getRegisterAsEm("fboxrule",2)}em solid ${(re=ve.toColor(this.framecolor))!=null?re:"black"}`),this.border&&Te.setStyle("border",this.border);const tt=new Rr([Te,le],{type:"lift"});return tt.setStyle("display","inline-block"),tt.setStyle("position","relative"),tt.setStyle("line-height",0),tt.height=le.height+Ce+(pe>0?pe:0),tt.depth=le.depth+Ce+(pe<0?-pe:0),tt.setStyle("padding-left",Ce,"em"),tt.setStyle("padding-right",Ce,"em"),tt.setStyle("height",Math.floor(100*(le.height+le.depth+2*Ce+Math.abs(pe)))/100,"em"),tt.setStyle("margin-top",-Ce,"em"),tt.setStyle("top",Math.floor(100*(le.depth-le.height+2*Ce-pe))/100,"em"),tt.setStyle("vertical-align",Math.floor(100*(le.depth+2*Ce))/100,"em"),this.caret&&(tt.caret=this.caret),this.attachSupsub(y,{base:tt})}_serialize(y){return y.skipStyles?ca([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},$u=class Pp extends tr{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 Pp(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new Rr(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},rs=class Ip extends tr{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Ip(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},Sl=class Tp extends tr{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 Tp(y.body,y.mode,y.style)}render(y){const b=tr.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=it(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},Za=class Op extends tr{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 Op((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"?ca(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ee]):this.variant==="mleft...mright"?ca(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ee]):ca([!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=ne[E])!=null?b:E}render(y){var b,E;const ee=new wa({parent:y},this.style);console.assert(this.body!==void 0);const re=new wa({parent:y,mathstyle:"textstyle"},this.style),le=(b=tr.createBox(ee,this.body,{type:"inner"}))!=null?b:new Rr(null,{type:"inner"}),pe=le.height/re.scalingFactor,ve=le.depth/re.scalingFactor,Ce=[];if(this.leftDelim&&Ce.push(this.bind(re,ni("open",this.leftDelim,pe,ve,re,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),le&&(cl(le.children,this,ee,pe,ve),Ce.push(le)),this.rightDelim){let jt=this.containsCaret?" ML__contains-caret":"",qt=this.rightDelim;qt==="?"&&(ee.smartFence?(qt=this.matchingRightDelim(),jt+=" ML__smart-fence__close"):qt="."),Ce.push(this.bind(re,ni("close",qt,pe,ve,re,{isSelected:this.isSelected,classes:jt+" ML__close",mode:this.mode,style:this.style})))}let Te=this.variant==="mleft...mright";const tt=this.leftSibling;tt&&(!Te&&tt.isFunction&&(Te=!0),!Te&&tt.type==="subsup"&&((E=tt.leftSibling)!=null&&E.isFunction)&&(Te=!0));const kt=new Rr(Ce,{type:Te?"close":"inner",classes:"left-right"});return kt.setStyle("margin-top",`${-le.depth}em`),kt.setStyle("height",`${le.height+le.depth}em`),this.caret&&(kt.caret=this.caret),this.bind(ee,kt.wrap(ee))}};function cl(a,y,b,E,ee){if(a)for(let re=0;re<a.length;re++){const le=a[re];le.type==="middle"?(a[re]=y.bind(b,ni("inner",le.value,E,ee,b,{isSelected:y.isSelected})),a[re].caret=le.caret,a[re].isSelected=le.isSelected,a[re].cssId=le.cssId,a[re].htmlData=le.htmlData,a[re].htmlStyle=le.htmlStyle,a[re].attributes=le.attributes,a[re].cssProperties=le.cssProperties):le.children&&cl(le.children,y,b,E,ee)}}var sd=class Fp extends tr{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 Fp(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=tr.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},hu=class Np extends tr{constructor(){super({type:"macro-argument"})}static fromJson(y){return new Np}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},ku=class Rp extends tr{constructor(y,b,E=!1,ee,re){var le;super({type:"prompt",mode:(le=re==null?void 0:re.mode)!=null?le:"math",style:re==null?void 0:re.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 wa({parent:y}),E=b.getRegisterAsEm("fboxsep"),ee=E,re=E,le=tr.createBox(y,this.body);if(!le)return null;le.height||(le.height=b.metrics.xHeight),le.setStyle("vertical-align",-le.height,"em"),this.correctness==="correct"?le.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&le.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const pe=new Rr(le,{type:"ord"});pe.setStyle("display","inline-block"),pe.setStyle("height",le.height+le.depth,"em"),pe.setStyle("vertical-align",-re,"em");let ve="ML__prompt ";this.locked?ve+=" ML__lockedPromptBox ":ve+=" ML__editablePromptBox ",this.correctness==="correct"?ve+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(ve+=" ML__incorrectPromptBox "),this.containsCaret&&(ve+=" ML__focusedPromptBox ");const Ce=new Rr(null,{classes:ve,attributes:{part:"prompt"}});Ce.height=pe.height+re,Ce.depth=pe.depth+re,Ce.width=pe.width+2*ee,Ce.setStyle("box-sizing","border-box"),Ce.setStyle("position","absolute"),Ce.setStyle("height",pe.height+pe.depth+2*re,"em"),ee===0&&Ce.setStyle("width","100%"),ee!==0&&(Ce.setStyle("width",`calc(100% + ${2*ee}em)`),Ce.setStyle("top",E,"em"),Ce.setStyle("left",-ee,"em")),(!this.body||this.body.length===1)&&(Ce.width=3*ee,Ce.setStyle("width",`calc(100% + ${3*ee}em)`),Ce.setStyle("left",-1.5*ee,"em"));let Te="";this.correctness==="incorrect"&&(Te+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),Te&&(Ce.svgOverlay=Te);const tt=new Rr([Ce,pe],{classes:"ML__prompt-atom"});return tt.setStyle("position","relative"),tt.setStyle("display","inline-block"),tt.setStyle("line-height",0),tt.height=pe.height+re+.2,tt.depth=pe.depth+re,tt.left=ee,tt.right=ee,tt.setStyle("height",pe.height+re,"em"),tt.setStyle("top",pe.depth-pe.height,"em"),tt.setStyle("vertical-align",pe.depth+re,"em"),tt.setStyle("margin-left",.5,"em"),tt.setStyle("margin-right",.5,"em"),this.caret&&(tt.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:tt}))}_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]"),io(ee,E)}},Qs=class zp extends tr{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new zp(y);for(const E of uc)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new wa({parent:y,isPhantom:!0}),ee=this.leftSibling,re=(b=ee.render(E))!=null?b:new Rr(null),le=new Rr(null);return le.height=re.height,le.depth=re.depth,this.attachSupsub(y,{base:le,isCharacterBox:ee.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function il(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var ju=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var E,ee,re,le;b!=null||(b={}),this.tokens=a,this.context=y instanceof wa&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new wa({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:(re=b.parseMode)!=null?re:"math",mathstyle:(le=b.mathstyle)!=null?le:"displaystyle",tabular:!1}}beginContext(a){var y,b,E;const ee=this.parsingContext,re={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=re}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(we({before:cs(this.tokens.slice(this.index,this.index+10)),after:cs(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 Qs({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=it(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?wl(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new Oi({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 re=this.get();il(re)?(E+=re,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(il(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 re=10,le=/\d/;if(this.match("'"))re=8,le=/[0-7]/,a=!0;else if(this.match('"'))re=16,le=/[\dA-F]/,a=!0;else if(this.match("x"))re=16,le=/[\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 pe="";for(;this.hasPattern(le);)pe+=this.get();if(!a&&(this.match(".")||this.match(",")))for(pe+=".";this.hasPattern(le);)pe+=this.get();const ve=a?Number.parseInt(pe,re):Number.parseFloat(pe);return Number.isNaN(ve)?null:{number:E?-ve:ve,base:re===16?"hexadecimal":re===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 re=this.peek();if(re==="-")E=!E;else if(re!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const re=this.get();return re.startsWith("\\")?b?{register:re,global:!0,factor:(E?-1:1)*b.number}:E?{register:re,global:!0,factor:-1}:{register:re,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()||!il(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=Fe(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const pe of y.params)if(pe.isOptional)b.push(this.scanOptionalArgument(pe.type));else{const ve=this.scanArgument(pe.type);ve||this.onError({code:"missing-argument",arg:a}),b.push(ve)}this.beginContext({tabular:y.tabular});const E=[],ee=[];let re=[],le=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),le=!0),!le&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),le=!0),!le)if(this.matchColumnSeparator())re.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){re.push(this.mathlist),this.mathlist=[];let pe=null;this.skipWhitespace(),this.match("[")&&(pe=this.scanDimen(),this.skipWhitespace(),this.match("]")),ee.push(pe!=null?pe:{dimension:0}),E.push(re),re=[]}else this.mathlist.push(...this.scan(pe=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(pe)));while(!le);return re.push(this.mathlist),re.length>0&&E.push(re),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=le=>le==="<}>");let y="",b=null,E=[],ee=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=it(y,"math"),b&&(E=this.scanArguments(b)[1]),ee=this.mathlist,this.mathlist=[]):this.parseExpression();let re;return y?(console.assert(!!b),E.unshift(this.mathlist),ee&&E.unshift(ee),re=[b.createAtom({command:y,args:E,style:this.style,mode:this.parseMode})]):re=this.mathlist,this.endContext(),re}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 Sl(y,this.parseMode,this.style);return b.verbatimLatex=cs(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 Za("",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(!il(a)&&!a.startsWith("\\"))return null;this.next();const y=it(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 rs("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new rs("\\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 rs(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 Za(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 tr({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new tr({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(ot(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(re=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(re))):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(il(a)){const b=_l.createAtom(this.parseMode,a,we({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=it(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new rs(a)];if(b.definitionType==="symbol"){const E=we({},this.style);b.variant&&(E.variant=b.variant),y=new tr({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 rs(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 re=ee.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(re)b.padding={dimension:parseInt(re[1]),unit:re[2]};else{const le=ee.match(/^\s*border\s*:\s*(.*)/);le?b.border=le[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 pe=this.scanOptionalArgument("string"),ve=this.scanOptionalArgument("math"),Ce=tr.serialize(ve,{defaultMode:"math"});let Te=[],tt;!tt&&Ce==="correct"?tt="correct":!tt&&Ce==="incorrect"?tt="incorrect":Ce!==""&&(Te=ve);const kt=this.scanOptionalArgument("string")==="locked",jt=this.scanArgument("auto");let qt;return jt&&Array.isArray(jt)&&jt.length>0?qt=jt:jt&&typeof jt=="object"&&"group"in jt?qt=jt.group:qt=Te,pe?[new ku(pe,tt,kt,qt!=null?qt:Te,{mode:this.parseMode,style:this.style})]:[new Oi({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const pe=this.index,ve=this.scanLiteralGroup()||this.next();if(!ve)return null;if(this.context.registers[ve.substring(1)]){const Ce=this.scanArgument("string");Ce!==null&&(this.context.registers[ve.substring(1)]=Ce);const Te=ca([a,cs(this.tokens.slice(pe,this.index))]);return[new tr({type:"text",value:"",verbatimLatex:Te})]}}let ee=this.scanMacro(a);if(ee)return[ee];const re=it(a,this.parseMode);if(!re)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(pe=>new tr({type:"text",value:pe,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new rs(a)]);const le=this.index;if(re.definitionType==="symbol"){const pe=we({},this.style);re.variant&&(pe.variant=re.variant),ee=new tr({type:re.type,command:a,style:pe,value:String.fromCodePoint(re.codepoint),mode:this.parseMode})}else{if(re.ifMode&&!re.ifMode.includes(this.parseMode))return[];const pe=this.parseMode;re.applyMode&&(this.parseMode=re.applyMode);let ve,Ce=[];if(re.parse?Ce=re.parse(this):[ve,Ce]=this.scanArguments(re),this.parseMode=pe,re.applyMode&&!re.applyStyle&&!re.createAtom)return ot(Ce[0]);if(re.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof re.createAtom=="function")ee=re.createAtom({command:a,args:Ce,style:this.style,mode:this.parseMode}),ve&&(ee.body=ot(this.scanArgument(ve)));else if(typeof re.applyStyle=="function"){const Te=we(we({},this.style),re.applyStyle(a,Ce,this.context)),tt=this.parseMode;if(re.applyMode&&(this.parseMode=re.applyMode),ve){const kt=this.style;this.style=Te;const jt=this.scanArgument(ve);return this.style=kt,this.parseMode=tt,ot(jt)}this.style=Te}else ee=new tr({type:"mord",command:(b=re.command)!=null?b:a,style:we({},this.style),value:a,mode:(E=re.applyMode)!=null?E:this.parseMode})}if(!ee)return null;if(ee instanceof tr&&ee.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const pe=ca([a,cs(this.tokens.slice(le,this.index))]);pe&&(ee.verbatimLatex=pe)}if(ee.verbatimLatex===null&&(ee.verbatimLatex=void 0),ee.isFunction&&this.smartFence){const pe=this.scanSmartFence();if(pe)return[ee,pe]}return[ee]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(il(a)){const y=_l.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 du(" "," ",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,re={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let le=1;le<=ee;le++){let pe=this.scanLiteralGroup();if(!pe){const ve=this.index;this.scanExpression(),pe=cs(this.tokens.slice(ve,this.index))}re[le]=pe}return new sd(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:cs(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:wl(b.def,{context:this.context,parseMode:this.parseMode,args:le=>re[le],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 wl(a,y){var b,E,ee,re;const le=(b=y==null?void 0:y.args)!=null?b:void 0,pe=new ju(xs(a,le),y==null?void 0:y.context,{args:le,mathstyle:(E=y==null?void 0:y.mathstyle)!=null?E:"displaystyle",parseMode:(ee=y==null?void 0:y.parseMode)!=null?ee:"math",style:(re=y==null?void 0:y.style)!=null?re:{}}),ve=[];for(;!pe.end();)ve.push(...pe.scan(()=>!1));return ve}function t0(a,y){var b;const E=new ju(xs(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 _p extends tr{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=Lo.go(Br.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=wl(E),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new _p(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return Ee(we({},super.toJson()),{arg:this.arg})}render(y){const b=tr.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}};ct(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new n0(a.command,(y=a.args[0])!=null?y:"")}});var Br={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,re=10,le=[];;){ee!==a?(re=10,ee=a):re--;var pe=Br.stateMachines[y],ve=pe.transitions[b]||pe.transitions["*"];e:for(var Ce=0;Ce<ve.length;Ce++){var Te=Br.patterns.match_(ve[Ce].pattern,a);if(Te){for(var tt=ve[Ce].task,kt=0;kt<tt.action_.length;kt++){var jt;if(pe.actions[tt.action_[kt].type_])jt=pe.actions[tt.action_[kt].type_](E,Te.match_,tt.action_[kt].option);else if(Br.actions[tt.action_[kt].type_])jt=Br.actions[tt.action_[kt].type_](E,Te.match_,tt.action_[kt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+tt.action_[kt].type_+")"];Br.concatArray(le,jt)}if(b=tt.nextState||b,a.length>0){if(tt.revisit||(a=Te.remainder),!tt.toContinue)break e}else return le}}if(re<=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=Br.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 Br.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return Br.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return Br.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return Br.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return Br.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return Br.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return Br.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return Br.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return Br.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return Br.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return Br.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return Br.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return Br.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 Br.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return Br.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return Br.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return Br.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 Br.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return Br.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return Br.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return Br.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return Br.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return Br.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return Br.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return Br.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=Br.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,re,le,pe,ve,Ce){var Te=function(Wn,dr){if(typeof dr=="string")return Wn.indexOf(dr)!==0?null:dr;var Ur=Wn.match(dr);return Ur?Ur[0]:null},tt=function(Wn,dr,Ur){for(var vr=0;dr<Wn.length;){var bi=Wn.charAt(dr),Pi=Te(Wn.substr(dr),Ur);if(Pi!==null&&vr===0)return{endMatchBegin:dr,endMatchEnd:dr+Pi.length};if(bi==="{")vr++;else if(bi==="}"){if(vr===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];vr--}dr++}return vr>0,null},kt=Te(a,y);if(kt===null||(a=a.substr(kt.length),kt=Te(a,b),kt===null))return null;var jt=tt(a,kt.length,E||ee);if(jt===null)return null;var qt=a.substring(0,E?jt.endMatchEnd:jt.endMatchBegin);if(re||le){var $n=this.findObserveGroups(a.substr(jt.endMatchEnd),re,le,pe,ve);if($n===null)return null;var Kr=[qt,$n.match_];return{match_:Ce?Kr.join(""):Kr,remainder:$n.remainder}}else return{match_:qt,remainder:a.substr(jt.endMatchEnd)}},match_:function(a,y){var b=Br.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return Br.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 Br.go(y,"text")},"{text}":function(a,y){var b=["{"];return Br.concatArray(b,Br.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return Br.go(y,"tex-math")},"tex-math tight":function(a,y){return Br.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 Br.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 Br.go(y,"9,9")}},createTransitions:function(a){var y,b,E,ee,re={};for(y in a)for(b in a[y])for(E=b.split("|"),a[y][b].stateArray=E,ee=0;ee<E.length;ee++)re[E[ee]]=[];for(y in a)for(b in a[y])for(E=a[y][b].stateArray||[],ee=0;ee<E.length;ee++){var le=a[y][b];if(le.action_){le.action_=[].concat(le.action_);for(var pe=0;pe<le.action_.length;pe++)typeof le.action_[pe]=="string"&&(le.action_[pe]={type_:le.action_[pe]})}else le.action_=[];for(var ve=y.split("|"),Ce=0;Ce<ve.length;Ce++)if(E[ee]==="*")for(var Te in re)re[Te].push({pattern:ve[Ce],task:le});else re[E[ee]].push({pattern:ve[Ce],task:le})}return re},stateMachines:{}};Br.stateMachines={ce:{transitions:Br.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 Br.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 Br.concatArray(b,this.output(a)),Br.concatArray(b,Br.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var E=Br.patterns.match_("orbital",a.o||""),ee=Br.patterns.match_("one lowercase greek letter $",a.o||""),re=Br.patterns.match_("one lowercase latin letter $",a.o||""),le=Br.patterns.match_("$one lowercase latin letter$ $",a.o||""),pe=y==="-"&&(E&&E.remainder===""||ee||re||le);pe&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!E&&re&&(a.o="$"+a.o+"$");var ve=[];return pe?(Br.concatArray(ve,this.output(a)),ve.push({type_:"hyphen"})):(E=Br.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(Br.concatArray(ve,Br.actions["d="](a,y)),Br.concatArray(ve,this.output(a))):(Br.concatArray(ve,this.output(a)),Br.concatArray(ve,Br.actions.bond(a,y,"-")))),ve},"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:Br.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"&&Br.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:Br.go(a.a,"a"),b:Br.go(a.b,"bd"),p:Br.go(a.p,"pq"),o:Br.go(a.o,"o"),q:Br.go(a.q,"pq"),d:Br.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ee;a.rdt==="M"?ee=Br.go(a.rd,"tex-math"):a.rdt==="T"?ee=[{type_:"text",p1:a.rd||""}]:ee=Br.go(a.rd);var re;a.rqt==="M"?re=Br.go(a.rq,"tex-math"):a.rqt==="T"?re=[{type_:"text",p1:a.rq||""}]:re=Br.go(a.rq),E={type_:"arrow",r:a.r,rd:ee,rq:re}}for(var le in a)le!=="parenthesisLevel"&&le!=="beginsWithBond"&&delete a[le];return E},"oxidation-output":function(a,y){var b=["{"];return Br.concatArray(b,Br.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:Br.go(y[0]),p2:Br.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:Br.go(y[0]),p2:Br.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:Br.go(y[0]),p2:Br.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:Br.go(y[0]),p2:Br.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Br.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:Br.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:Br.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:Br.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:Br.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:Br.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:Br.go(y[1],"pq")}}}},bd:{transitions:Br.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:Br.go(y[1],"bd")}}}},oxidation:{transitions:Br.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:Br.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:Br.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:Br.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:Br.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]&&(Br.concatArray(b,Br.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?Br.concatArray(b,Br.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]),Br.concatArray(b,Br.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=Br.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var E=Br.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:Br.go(a.d,"pu"),q:Br.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_:"/"}),Br.concatArray(y,ee.q))}else y=Br.go(a.d,"pu-2");for(var re in a)delete a[re];return y}}},"pu-2":{transitions:Br.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=Br.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=Br.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var E in a)delete a[E];return y}}},"pu-9,9":{transitions:Br.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 Lo={go:function(a,y){if(!a)return"";for(var b="",E=!1,ee=0;ee<a.length;ee++){var re=a[ee];typeof re=="string"?b+=re:(b+=Lo._go2(re),re.type_==="1st-level escape"&&(E=!0))}return!y&&!E&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&Lo.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:Lo._goInner(a.a),b:Lo._goInner(a.b),p:Lo._goInner(a.p),o:Lo._goInner(a.o),q:Lo._goInner(a.q),d:Lo._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 "+Lo._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+Lo._goInner(a.p1);break;case"bond":if(y=Lo._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{"+Lo._goInner(a.p1)+"}{"+Lo._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+Lo._goInner(a.p1)+"}{"+Lo._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+Lo._goInner(a.p1)+"}{"+Lo._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+Lo._goInner(a.p1)+"}{"+Lo._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+Lo._goInner(a.p1)+"}_{"+Lo._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+Lo._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var re={rd:Lo._goInner(a.rd),rq:Lo._goInner(a.rq)},le=Lo._getArrow(a.r);re.rd||re.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(le="\\long"+le,re.rd&&(le="\\overset{"+re.rd+"}{"+le+"}"),re.rq&&(a.r==="<-->"?le="\\underset{\\lower2mu{"+re.rq+"}}{"+le+"}":le="\\underset{\\lower6mu{"+re.rq+"}}{"+le+"}"),le=" {}\\mathrel{"+le+"}{} "):(re.rq&&(le+="[{"+re.rq+"}]"),le+="{"+re.rd+"}",le=" {}\\mathrel{\\x"+le+"}{} "):le=" {}\\mathrel{\\long"+le+"}{} ",y=le;break;case"operator":y=Lo._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 M1(a){}function k1(a){}var r0=class Kp extends tr{constructor(y){super(Ee(we({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new Kp(y)}toJson(){return Ee(we({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new Rr(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=it(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):io(this.command,this.value)}},i0=class Hp extends tr{constructor(y){super(Ee(we({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new Hp(y)}toJson(){return Ee(we({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=Fn(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=it(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):io(this.command,this.value)}},Kd=class Zp extends tr{constructor(y,b,E,ee){var re,le;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=(re=ee.shadow)!=null?re:"none",this.strokeWidth=(le=ee.strokeWidth)!=null?le:"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 Zp(y.command,y.body,y.notation,y)}toJson(){return Ee(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=it(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 re="",le="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(re+=le+'mathbackground="'+this.backgroundcolor+'"',le=","),this.shadow&&this.shadow!=="auto"&&(re+=le+'shadow="'+this.shadow+'"',le=","),this.strokeWidth||this.strokeStyle!=="solid"?(re+=le+this.borderStyle,le=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(re+=le+'mathcolor="'+this.strokeColor+'"',le=","),re&&(ee+=`[${re}]`)}return io(ee,this.bodyToLatex(y))}render(y){const b=new wa({parent:y},this.style),E=tr.createBox(b,this.body);if(!E)return null;const ee=im(this.borderStyle),re=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});E.setStyle("position","relative"),E.setStyle("display","inline-block"),E.setStyle("top",re,"em"),E.setStyle("height",E.height+E.depth,"em"),E.setStyle("width",E.width,"em");const le=new Rr(null,{classes:"ML__notation"});let pe=E.height+E.depth+2*re;const ve=E.width+2*re;let Ce="";if(this.notation.horizontalstrike&&(Ce+=this.line(3,50,97,50)),this.notation.verticalstrike&&(Ce+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(Ce+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(Ce+=this.line(3,3,97,97)),this.notation.updiagonalarrow){Ce+=this.line(re.toString(),(re+E.depth+E.height).toString(),(re+E.width).toString(),re.toString());const qt=.03*Math.sqrt(ve*ve+pe*pe)*1,$n=E.width*qt,Kr=(E.depth+E.height)*qt,Wn=re+E.width;let dr=re;dr+Kr-.4*$n<0&&(dr=.4*$n-Kr),Ce+='<polygon points="',Ce+=`${Wn},${dr} ${Wn-$n-.4*Kr},${dr+Kr-.4*$n} `,Ce+=`${Wn-.7*$n},${dr+.7*Kr} ${Wn-$n+.4*Kr},${dr+Kr+.4*$n} `,Ce+=`${Wn},${dr}`,Ce+=`" stroke='none' fill="${this.strokeColor}"`,Ce+="/>"}let Te=0;if(this.notation.phasorangle){const kt=a0(b),jt=(E.height+E.depth+2*kt+re).toString(),qt=(E.height+E.depth)/2;Ce+=this.line(re.toString(),jt,(re+qt+E.width).toString(),jt),Ce+=this.line(re.toString(),jt,(re+qt).toString(),(re-kt).toString()),pe+=kt,Te=qt,E.left+=pe/2-re}if(this.notation.longdiv){const kt=a0(b);pe+=kt,Ce+=this.line(re.toString(),re.toString(),(re+E.width).toString(),re.toString());const jt=.3;Te=jt+kt,E.left+=jt+kt,E.setTop(re+kt),Ce+='<path d="',Ce+=`M ${re} ${re} a${jt} ${(E.depth+E.height+2*kt)/2}, 0, 1, 1, 0 ${E.depth+E.height+2*kt} "`,Ce+=` stroke-width="${am(b)}" stroke="${this.strokeColor}" fill="none"`,Ce+="/>"}if(le.width=E.width+2*re+Te,le.height=E.height+re,le.depth=E.depth+re,le.setStyle("box-sizing","border-box"),le.setStyle("left",`calc(-${ee} / 2 )`),le.setStyle("height",`${Math.floor(100*pe)/100}em`),le.setStyle("top",`calc(${ee} / 2 )`),this.backgroundcolor&&le.setStyle("background-color",this.backgroundcolor),this.notation.box&&le.setStyle("border","1px solid red"),this.notation.actuarial&&(le.setStyle("border-top",this.borderStyle),le.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(le.setStyle("border-bottom",this.borderStyle),le.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(le.setStyle("border-radius","8px"),le.setStyle("border",this.borderStyle)),this.notation.circle&&(le.setStyle("border-radius","50%"),le.setStyle("border",this.borderStyle)),this.notation.top&&le.setStyle("border-top",this.borderStyle),this.notation.left&&le.setStyle("border-left",this.borderStyle),this.notation.right&&le.setStyle("border-right",this.borderStyle),this.notation.bottom&&le.setStyle("border-bottom",this.borderStyle),Ce){let kt="";this.shadow==="auto"&&(kt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(kt+=`filter: drop-shadow(${this.shadow})`),kt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,kt+=' stroke-linecap="round"',this.svgStrokeStyle&&(kt+=` stroke-dasharray="${this.svgStrokeStyle}"`),le.svgStyle=kt,le.svgOverlay=Ce}const tt=new Rr([le,E]);return tt.setStyle("position","relative"),tt.setStyle("vertical-align",re,"em"),tt.setStyle("height",`${Math.floor(100*(E.height+E.depth+2*re))/100}em`),tt.setStyle("display","inline-block"),tt.height=le.height,tt.depth=le.depth,tt.width=le.width-2*re,tt.left=re,tt.right=re,this.caret&&(tt.caret=this.caret),tt.wrap(b)}line(y,b,E,ee){return`<line x1="${wf(y)}" y1="${wf(b)}" x2="${wf(E)}" y2="${wf(ee)}" vector-effect="non-scaling-stroke"></line>`}};function wf(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?Uo:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var ud=class Wp extends tr{constructor(y,b,E){var ee,re;super(Ee(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=(re=E==null?void 0:E.continuousFraction)!=null?re:!1,this.numerPrefix=E==null?void 0:E.numerPrefix,this.denomPrefix=E==null?void 0:E.denomPrefix,this.mathstyleName=E==null?void 0:E.mathstyleName,this.leftDelim=E==null?void 0:E.leftDelim,this.rightDelim=E==null?void 0:E.rightDelim,this.fractionNavigationOrder=E==null?void 0:E.fractionNavigationOrder}static fromJson(y){return new Wp(y.above,y.below,y)}toJson(){const y={};return this.continuousFraction&&(y.continuousFraction=!0),this.numerPrefix&&(y.numerPrefix=this.numerPrefix),this.denomPrefix&&(y.denomPrefix=this.denomPrefix),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),this.hasBarLine||(y.hasBarLine=!1),this.mathstyleName&&(y.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(y.fractionNavigationOrder=this.fractionNavigationOrder),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 wa({parent:y,mathstyle:this.mathstyleName},this.style),re=ee.metrics,le=new wa({parent:ee,mathstyle:this.continuousFraction?"":"numerator"},this.style),pe=this.numerPrefix?new Rr([new Rr(this.numerPrefix),tr.createBox(le,this.above)],{isTight:le.isTight,type:"ignore"}):(b=tr.createBox(le,this.above,{type:"ignore"}))!=null?b:new Rr(null,{type:"ignore"}),ve=new wa({parent:ee,mathstyle:this.continuousFraction?"":"denominator"},this.style),Ce=this.denomPrefix?new Rr([new Rr(this.denomPrefix),tr.createBox(ve,this.below,{type:"ignore"})]):(E=tr.createBox(ve,this.below,{type:"ignore"}))!=null?E:new Rr(null,{type:"ignore"}),Te=this.hasBarLine?re.defaultRuleThickness:0;let tt,kt=0,jt;ee.isDisplayStyle?(tt=le.metrics.num1,kt=Te>0?3*Te:7*Te,jt=ve.metrics.denom1):(Te>0?(tt=le.metrics.num2,kt=Te):(tt=le.metrics.num3,kt=3*re.defaultRuleThickness),jt=ve.metrics.denom2);const qt=[];this.isSelected&&qt.push("ML__selected");const $n=pe.depth,Kr=Ce.height;let Wn;if(Te<=0){const Di=tt-$n-(Kr-jt);Di<kt&&(tt+=(kt-Di)/2,jt+=(kt-Di)/2),Wn=new Ua({individualShift:[{box:pe,shift:-tt,classes:[...qt,"ML__center"]},{box:Ce,shift:jt,classes:[...qt,"ML__center"]}]}).wrap(ee)}else{const Di=new Rr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Di.softWidth=Math.max(pe.width,Ce.width),Di.height=Te/2,Di.depth=Te/2;const Ma=Go+Te/2;tt<kt+$n+Ma&&(tt=kt+$n+Ma);const oo=Go-Te/2;jt<kt+Kr-oo&&(jt=kt+Kr-oo),Wn=new Ua({individualShift:[{box:Ce,shift:jt,classes:[...qt,"ML__center"]},{box:Di,shift:-oo,classes:qt},{box:pe,shift:-tt,classes:[...qt,"ML__center"]}]}).wrap(ee)}const dr=ee.isDisplayStyle?re.delim1:re.delim2,Ur=this.leftDelim?this.bind(y,pi("open",this.leftDelim,dr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):gi(ee,"open");let vr=null;this.continuousFraction?vr=new Rr(null,{type:"close"}):this.rightDelim?vr=this.bind(y,pi("close",this.rightDelim,dr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):vr=gi(ee,"close");const bi=new Rr([Ur,Wn,vr],{isTight:ee.isTight,type:"inner",classes:"mfrac"}),Pi=this.bind(y,bi);return this.caret&&(Pi.caret=this.caret),this.attachSupsub(y,{base:Pi})}},Tl=class $p extends tr{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 $p(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 Rr(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}},Hd=class jp extends tr{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new Tl(b)),this.skipBoundary=!1}static fromJson(y){return new jp("")}toJson(){return super.toJson()}render(y){const b=tr.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 tr{constructor(y,b){super(Ee(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 Rr(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 re=(ee.height-ee.depth)/2-Go*y.scalingFactor,le=ee.italic;ee.setTop(re);let pe=ee;if(this.superscript||this.subscript){const ve=(b=this.subsupPlacement)!=null?b:"auto";pe=ve==="over-under"||ve==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee,baseShift:re,slant:le}):this.attachSupsub(y,{base:ee})}return new Rr(this.bind(y,pe),{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=it(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)),ca(E)}},Tc=class Gp extends tr{constructor(y){const b=y.body;super(Ee(we({},y),{type:"overlap",body:typeof b=="string"?[new tr({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=tr.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new Rr([b,new Rr(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},Js=class Up extends tr{constructor(y){var b,E,ee,re;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=(re=y.paddedLabels)!=null?re:!1}static fromJson(y){return new Up(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?ts(this.svgBody):tr.createBox(y,this.body,{type:"ignore"});const E=new wa({parent:y,mathstyle:"scriptstyle"},this.style);let ee=null;this.svgAbove?ee=ts(this.svgAbove):this.above&&(ee=tr.createBox(E,this.above,{type:"ignore"}));let re=null;this.svgBelow?re=ts(this.svgBelow):this.below&&(re=tr.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new Rr([gi(y,"open"),b,gi(y,"close")],{type:"ignore"}));let le=om(y,{base:b,above:ee,below:re,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return le?(this.subsupPlacement==="over-under"?le=this.attachLimits(y,{base:le,type:le.type}):le=this.attachSupsub(y,{base:le}),this.caret&&(le.caret=this.caret),this.bind(y,le)):null}};function om(a,y){if(!y.base)return null;if(!y.above&&!y.below){const pe=new Rr(y.base,{type:y.type});return pe.setStyle("position","relative"),pe}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let E=null;const ee=y.base,re=0,le=["ML__center"];if(y.paddedAboveBelow&&le.push("ML__label_padding"),y.below&&y.above){const pe=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ee.depth+re;E=new Ua({bottom:pe,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:le},{box:ee,classes:["ML__center"]},b,{box:y.above,classes:le},a.metrics.bigOpSpacing5]})}else y.below?E=new Ua({top:ee.height-re,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:le},{box:ee,classes:["ML__center"]}]}):y.above&&(E=new Ua({bottom:ee.depth+re,children:[{box:ee,classes:["ML__center"]},b,{box:y.above,classes:le},a.metrics.bigOpSpacing5]}));return new Rr(E,{type:y.type})}var Zd=class Xp extends tr{constructor(y){var b,E,ee,re;super(Ee(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=(re=y.smashWidth)!=null?re:!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 wa({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),tr.createBox(b,this.body,{classes:"inner"});const E=tr.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ee=new Rr(null,{classes:"fix"});return new Rr([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 Ua({firstBaseline:[{box:E}]},{type:E.type}).wrap(y)}},Wd=class Yp extends tr{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 Yp(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 Rr(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new Rr(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 Rr(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=it(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}{${Ao(this.width)}}`:`${ee}${Ao(this.width)}`}},o0=class Qp extends tr{constructor(y){var b;super(Ee(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 Qp(Ee(we({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=it(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")?io(`${E}[${this.aboveToLatex(y)}]`,ee):/^[0-9]$/.test(ee)?`${E}${ee}`:io(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 wa({parent:y,mathstyle:"cramp"},this.style),ee=(b=tr.createBox(E,this.body,{type:"inner"}))!=null?b:new Rr(null),re=E.scalingFactor,le=E.metrics.defaultRuleThickness/re,pe=y.isDisplayStyle?Uo:le,ve=new Rr(null,{classes:"ML__sqrt-line",style:this.style});ve.height=le,ve.softWidth=ee.width;let Ce=re*(le+pe/4);const tt=Math.max(re*2*pe,ee.height+ee.depth)+Ce+le,kt=new wa({parent:y},this.style),jt=this.bind(kt,new Rr(pi("inner","\\surd",tt,!1,kt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!jt)return null;const qt=jt.height+jt.depth-le;qt>ee.height+ee.depth+Ce&&(Ce=(Ce+qt-(ee.height+ee.depth))/2),jt.setTop(jt.height-ee.height-Ce);const $n=this.bind(y,new Ua({firstBaseline:[{box:new Rr(ee)},Ce-2*le,{box:ve},le]})),Kr=tr.createBox(new wa({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!Kr){const Ur=new Rr([jt,$n],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Ur.setStyle("display","inline-block"),Ur.setStyle("height",Ur.height+Ur.depth,"em"),this.caret&&(Ur.caret=this.caret),this.bind(y,Ur)}const Wn=new Ua({shift:-.6*(Math.max(jt.height,$n.height)-Math.max(jt.depth,$n.depth)),children:[{box:Kr}]}),dr=new Rr([new Rr(Wn,{classes:"ML__sqrt-index",type:"ignore"}),jt,$n],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return dr.height=jt.height,dr.depth=jt.depth,this.caret&&(dr.caret=this.caret),this.bind(y,dr)}},lm=class extends Rr{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 Ef(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"){Ef(a.parent,y);return}E>0&&b[E-1].type==="skip"?b[E-1].width+=y:b.splice(E,0,new lm(y))}var sm={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},um={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function cm(a){jd(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 $d(a,y){if(!a.children)return a;const b=a.children;cm(b);const E=y.getRegisterAsEm("thinmuskip"),ee=y.getRegisterAsEm("medmuskip"),re=y.getRegisterAsEm("thickmuskip");return jd(b,(le,pe)=>{var ve,Ce,Te;if(!le)return;const tt=le.type,kt=pe.isTight?(ve=um[tt])!=null?ve:null:(Ce=sm[tt])!=null?Ce:null,jt=(Te=kt==null?void 0:kt[pe.type])!=null?Te:null;jt===3&&Ef(pe,E),jt===4&&Ef(pe,ee),jt===5&&Ef(pe,re)}),a}function jd(a,y,b=void 0){if(!a)return b;a=[...a];for(const E of a)E.type==="lift"?b=jd(E.children,y,b):E.type==="ignore"?jd(E.children,y):(y(b,E),jd(E.children,y),b=E);return b}var hh=class Jp extends tr{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new tr({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new Jp(Ee(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 Ee(we({},super.toJson()),{tooltip:b})}render(y){const b=tr.createBox(new wa,this.body);if(!b)return null;const E=new wa({parent:y,mathstyle:"displaystyle"},{fontSize:eo}),ee=oc($d(new Rr(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),re=new Rr([ee,b],{classes:"ML__tooltip-container"});return this.caret&&(re.caret=this.caret),this.bind(y,re)}},Oc=class qp extends tr{constructor(y,b){super(Ee(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 Rr(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 re=(b=this.subsupPlacement)!=null?b:"auto";ee=re==="over-under"||re==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:E}):this.attachSupsub(y,{base:E})}return new Rr(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=it(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)),ca(E)}};function hc(a){if(Ie(a))return a.map(E=>hc(E));if(typeof a=="string")return tr.fromJson(a);a=we({},a);for(const E of uc)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=qi.fromJson(a)),y==="box"&&(b=Yo.fromJson(a)),y==="chem"&&(b=n0.fromJson(a)),y==="composition"&&(b=$u.fromJson(a)),y==="delim"&&(b=r0.fromJson(a)),y==="enclose"&&(b=Kd.fromJson(a)),y==="error"&&(b=rs.fromJson(a)),y==="extensible-symbol"&&(b=fh.fromJson(a)),y==="genfrac"&&(b=ud.fromJson(a)),y==="group"&&(b=Sl.fromJson(a)),y==="latex"&&(b=Tl.fromJson(a)),y==="latexgroup"&&(b=Hd.fromJson(a)),y==="leftright"&&(b=Za.fromJson(a)),y==="macro"&&(b=sd.fromJson(a)),y==="macro-argument"&&(b=hu.fromJson(a)),y==="operator"&&(b=Oc.fromJson(a)),y==="overlap"&&(b=Tc.fromJson(a)),y==="overunder"&&(b=Js.fromJson(a)),y==="placeholder"&&(b=Oi.fromJson(a)),y==="prompt"&&(b=ku.fromJson(a)),y==="phantom"&&(b=Zd.fromJson(a)),y==="sizeddelim"&&(b=i0.fromJson(a)),y==="spacing"&&(b=Wd.fromJson(a)),y==="subsup"&&(b=Qs.fromJson(a)),y==="surd"&&(b=o0.fromJson(a)),y==="text"&&(b=du.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=tr.fromJson(a));for(const E of uc)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 l0={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},ph={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},s0=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,fm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,hm=[/^[a-z]$/,/^[A-Z]$/,s0,fm],pm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},mm=class extends _l{constructor(){super("math")}createAtom(a,y,b){var E,ee,re,le;if(y===null)return new tr({type:"mord",mode:"math",command:a,value:a,style:b});const pe=window.MathfieldElement.isFunction((E=y.command)!=null?E:a);if(y.definitionType==="symbol"){const Ce=new tr({type:(ee=y.type)!=null?ee:"mord",mode:"math",command:(re=y.command)!=null?re:a,value:String.fromCodePoint(y.codepoint),style:b});return pe&&(Ce.isFunction=!0),a.startsWith("\\")&&(Ce.verbatimLatex=a),Ce}const ve=new tr({type:"mord",mode:"math",command:(le=y.command)!=null?le:a,value:a,style:b});return pe&&(ve.isFunction=!0),a.startsWith("\\")&&(ve.verbatimLatex=a),ve}serialize(a,y){const b=vm(a,Ee(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((pe,ve)=>{var Ce;pe.test(a.value)&&pm[(Ce=y.letterShapeStyle)!=null?Ce:"tex"][ve]==="it"&&(E="italic")}),E==="up"&&(E=void 0);const ee=E?b+"-"+E:b;console.assert(l0[ee]!==void 0);const[re,le]=l0[ee];return ph[b]&&!ph[b].test(a.value)?(a.value=Yt(a.value,b,E),null):(s0.test(a.value)&&(a.classes+=" lcGreek"),le&&(a.classes+=" "+le),re)}};function vm(a,y){const{parent:b}=a[0],E=u0(b);return Do(a,"variant").map(ee=>{const re=u0(ee[0]);let le="";re&&re!==E&&(le={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"}[re],console.assert(le!==void 0));const pe=ca(ee.map(ve=>ve._serialize(y)));return le?io(le,pe):pe})}function u0(a){if(!a)return"";const{style:y}=a;if(y.variant===void 0)return"";let b=y.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(y.variant)&&y.variantStyle&&y.variantStyle!=="up"&&(b+="-"+y.variantStyle),b}new mm;function gm(a,y){return a.map(b=>b._serialize(y))}function ym(a,y){return Do(a,"fontShape").map(b=>{const E=gm(b,y),{fontShape:ee}=b[0].style;let re="";return ee==="it"&&(re="\\textit"),ee==="sl"&&(re="\\textsl"),ee==="sc"&&(re="\\textsc"),ee==="n"&&(re="\\textup"),!re&&ee?`{${io("\\fontshape",ee)}${ca(E)}}`:re?io(re,ca(E)):ca(E)})}function bm(a,y){return Do(a,"fontSeries").map(b=>{const E=ym(b,y),{fontSeries:ee}=b[0].style;let re="";return ee==="b"&&(re="\\textbf"),ee==="l"&&(re="\\textlf"),ee==="m"&&(re="\\textmd"),ee&&!re?`{${io("\\fontseries",ee)}${ca(E)}}`:re?io(re,ca(E)):ca(E)})}function xm(a,y){return Do(a,"fontSize").map(b=>{var E,ee;const re=bm(b,y),le=(ee=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(E=b[0].style.fontSize)!=null?E:""])!=null?ee:"";return le?`${le} ${ca(re)}`:ca(re)})}function Cm(a,y,b){return Do(a,"fontFamily").map(E=>{var ee,re;const le=xm(E,y),pe=(re={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ee=E[0].style.fontFamily)!=null?ee:""])!=null?re:"";return pe?`\\${pe}{${ca(le)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${ca(le)}}`:b?`\\text{${ca(le)}}`:ca(le)})}var c0={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Sm=class extends _l{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new du(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return Cm(a,Ee(we({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,E,ee,re,le;const{fontFamily:pe}=y;if(c0[pe]?a.classes+=" "+c0[pe]:pe&&a.setStyle("font-family",pe),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 ve=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);ve&&(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=ve[1])!=null?E:""])!=null?ee:"",a.classes+=" ",a.classes+=(le={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"}[(re=ve[2])!=null?re:""])!=null?le:"")}return"Main-Regular"}};new Sm;var wm=class extends _l{constructor(){super("latex")}createAtom(a){return new Tl(a)}serialize(a,y){return a.filter(b=>b instanceof Tl&&!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:["=","=","=","="]}},km={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:["<",">","",""]}},Dm={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"]}},Am={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:["=","=","=","="]}},Lm={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:["<",">","|",""]}},Bm={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:[".",".",".","."]}},Pm={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"]}},Im={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:["<",">","",""]}},Tm={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 cd(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 Om={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]"},Vd=[],Gd;function vh(){switch(gt()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function Hs(a){(!a.platform||a.platform===vh())&&Vd.push(a)}function Fm(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,re]of Object.entries(y.mapping)){if(re[0]===a)return E.key=`[${ee}]`,E;if(re[1]===a)return E.shift=!0,E.key=`[${ee}]`,E;if(re[2]===a)return E.alt=!0,E.key=`[${ee}]`,E;if(re[3]===a)return E.shift=!0,E.alt=!0,E.key=`[${ee}]`,E}return E.key=(b=Om[a])!=null?b:"",E}function Nm(a){if(a.code)return a;const y=Object.entries(Ud().mapping);let b=!1,E=!1,ee="";for(let re=0;re<4;re++){for(const[le,pe]of y)if(pe[re]===a.key){ee=le,re===3?(b=!0,E=!0):re===2?b=!0:re===1&&(E=!0);break}if(ee)break}return new KeyboardEvent(a.type,Ee(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 Vd)((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);Vd.sort((ee,re)=>re.score-ee.score)}function zm(a){Gd=Vd.find(y=>a.startsWith(y.locale))}function Ud(){return Gd!=null?Gd:Vd[0]}function _m(){switch(vh()){case"apple":return mh;case"windows":return d0;case"linux":return f0}return mh}switch(vh()){case"apple":Hs(mh),Hs(Mm),Hs(Pm),Hs(Am);break;case"windows":Hs(d0),Hs(km),Hs(Im),Hs(Lm);break;case"linux":Hs(f0),Hs(Dm),Hs(Tm),Hs(Bm);break}Hs(Em);function gh(a){var y;const b=/macos|ios/.test(gt()),E=a.split("+");let ee="";for(const re of E)ee&&(ee+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),re.startsWith("[Key")?ee+=re.slice(4,5):re.startsWith("Key")?ee+=re.slice(3,4):re.startsWith("[Digit")?ee+=re.slice(6,7):re.startsWith("Digit")?ee+=re.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"}[re.toLowerCase()])!=null?y:re.toUpperCase();return ee}function Mf(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 Fc(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 kf(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:Hm.has(a.code)}function Df(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var Du=class Xu{static get scrim(){return Xu._scrim||(Xu._scrim=new Xu),Xu._scrim}static open(y){Xu.scrim.open(y)}static close(){Xu.scrim.close()}static get state(){return Xu.scrim.state}static get element(){return Xu.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=Df();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 re=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${re+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:re}=this;re.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),re.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",Df()!==this.savedActiveElement&&((ee=(E=this.savedActiveElement)==null?void 0:E.focus)==null||ee.call(E)),re.innerHTML="",this.state="closed"}handleEvent(y){this.lightDismiss&&(y.target===this._element&&y.type==="click"?(this.close(),y.preventDefault(),y.stopPropagation()):y.target===document&&(y.type==="touchmove"||y.type==="scroll")&&(this.close(),y.preventDefault(),y.stopPropagation()))}};function Zm(a,y,b){let E=null,ee=null,re=!1,le=!1,pe=!1;const ve=new AbortController,Ce=ve.signal;return a.addEventListener("keydown",Te=>{if(re||Te.key==="Process"||Te.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(Te.code)){E=null;return}E=Te,ee=null,b.onKeystroke(Te)?a.textContent="":E=null},{capture:!0,signal:Ce}),a.addEventListener("keypress",Te=>{re||(E&&ee&&b.onKeystroke(E),ee=Te)},{capture:!0,signal:Ce}),a.addEventListener("compositionstart",Te=>{a.textContent="",re=!0,b.onCompositionStart(Te.data)},{capture:!0,signal:Ce}),a.addEventListener("compositionupdate",Te=>{re&&b.onCompositionUpdate(Te.data)},{capture:!0,signal:Ce}),a.addEventListener("compositionend",Te=>{a.textContent="",re&&(re=!1,b.onCompositionEnd(Te.data))},{capture:!0,signal:Ce}),a.addEventListener("beforeinput",Te=>Te.stopImmediatePropagation(),{signal:Ce}),a.addEventListener("input",Te=>{var tt;if(!re&&(a.textContent="",Te.inputType!=="insertCompositionText")){if(Te.inputType==="insertFromPaste"){Te.preventDefault(),Te.stopPropagation();return}b.onInput((tt=Te.data)!=null?tt:""),Te.preventDefault(),Te.stopPropagation()}},{signal:Ce}),a.addEventListener("paste",Te=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(Te)||Te.preventDefault(),Te.stopImmediatePropagation()},{signal:Ce}),a.addEventListener("cut",Te=>b.onCut(Te),{capture:!0,signal:Ce}),a.addEventListener("copy",Te=>b.onCopy(Te),{capture:!0,signal:Ce}),a.addEventListener("blur",Te=>{var tt,kt;if(((kt=(tt=Te.relatedTarget)==null?void 0:tt._mathfield)==null?void 0:kt.element)===y){a.focus({preventScroll:!0}),Te.preventDefault(),Te.stopPropagation();return}const jt=Du.state;if(jt==="open"||jt==="opening"){Te.preventDefault(),Te.stopPropagation();return}if(Te.relatedTarget===Te.target.getRootNode().host){Te.preventDefault(),Te.stopPropagation();return}pe||le||(pe=!0,E=null,ee=null,b.onBlur(),pe=!1)},{capture:!0,signal:Ce}),a.addEventListener("focus",Te=>{pe||le||(le=!0,b.onFocus(),le=!1)},{capture:!0,signal:Ce}),{dispose:()=>ve.abort(),cancelComposition:()=>{re&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!le&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Df()===a,setAriaLabel:Te=>a.setAttribute("aria-label",Te),setValue:Te=>{var tt;a.textContent=Te,a.style.left="-1000px",(tt=window.getSelection())==null||tt.selectAllChildren(a)},moveTo:(Te,tt)=>{a.style.top=`${tt}px`,a.style.left=`${Te}px`}}}function dd(a){var y;if(!a||!kf(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=Nm(a);const y=[];return a.ctrlKey&&y.push("ctrl"),a.metaKey&&y.push("meta"),a.altKey&&y.push("alt"),a.shiftKey&&y.push("shift"),y.length===0?`[${a.code}]`:(y.push(`[${a.code}]`),y.join("+"))}function Wm(a){if(st()){const y=gt(),b=a.startsWith("!"),E=a.endsWith(y);if(b&&!E||!b&&E)return!0}return a==="!other"?!1:a==="other"}function $m(a,y,b){if(a.length===0)return"";const E=cd(h0(p0(b))),ee=cd({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(gt()),cmd:!1,win:!1});for(let re=a.length-1;re>=0;re--)if((a[re].key===E||a[re].key===ee)&&(!a[re].ifMode||a[re].ifMode===y))return a[re].command;return""}function m0(a){let y=a;return Ie(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function jm(a,y){let b=[];if(typeof y=="string"){const re=Od[y];Ie(re)?b=re.slice():re&&b.push(re)}const E=m0(y),ee=new RegExp("^"+E.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const re of a)ee.test(m0(re.command))&&b.push(re.key);return b.map(gh)}function Vm(a,y){if(a.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(a.ifPlatform))throw new Error(`Unexpected platform "${a.ifPlatform}" for keybinding ${a.key}`);if(a.ifLayout!==void 0&&(y.score===0||!a.ifLayout.includes(y.id)))return;const b=h0(a.key);let E=a.ifPlatform;if(b.cmd){if(E&&E!=="macos"&&E!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+E+`"
"cmd" modifier can only be used with macOS or iOS platform.`);E||(E=gt()==="ios"?"ios":"macos"),b.win=!1,b.cmd=!1,b.meta=!0}if(b.win){if(E&&E!=="windows")throw new Error('Unexpected "win" modifier with platform "'+E+`"
"win" modifier can only be used with Windows platform.`);E="windows",b.win=!1,b.cmd=!1,b.meta=!0}if(E&&!Wm(E))return;if(/^\[.+\]$/.test(b.key))return Ee(we({},a),{key:cd(b)});const ee=Fm(b.key,y);if(!ee)return Ee(we({},a),{key:cd(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 ${cd(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,Ee(we({},a),{key:cd(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 re=Vm(ee,y);if(!re)continue;const le=E.find(pe=>pe.key===re.key&&pe.ifMode===re.ifMode);if(le)throw new Error(`Ambiguous key binding ${ee.key} (${yh(ee.command)}) matches ${le.key} (${yh(le.command)}) with the ${y.displayName} keyboard layout`);E.push(re)}catch(re){re instanceof Error&&b.push(re.message)}return[E,b]}var Um=class extends Qi{constructor(){super("latex")}createAtom(a){return new Tl(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"}),Ho(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(Cl(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 re=[];for(const ve of y)se.test(ve)&&re.push(new Tl(ve));let le=a.at(a.position);if(le instanceof Hd&&(le=le.lastChild),!(le.parent instanceof Hd)){const ve=new Hd("");le.parent.addChildAfter(ve,le),le=ve.firstChild}const pe=le.parent.addChildrenAfter(re,le);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(pe)):pe&&(a.position=a.offsetOf(pe))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function Xm(a){return a.atoms.find(y=>y.type==="latexgroup")}function Xd(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 v0(a,y){var b;let E=0,ee=!1;const re=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;E<=re&&!ee;){const ve=a.at(E);ee=ve instanceof Tl&&ve.isSuggestion,ee||E++}if(!ee)return[void 0,void 0];let le=E,pe=!1;for(;le<=re&&!pe;){const ve=a.at(le);pe=!(ve instanceof Tl&&ve.isSuggestion),pe||le++}return[E-1,le-1]}new Um;function Af(a){const y=Xd(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 Yd(a,y){var b;const{model:E}=a;Af(a);for(const Te of Xd(E))Te.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){hd(a);return}const ee=[];let re=E.at(E.position);for(;re&&re instanceof Tl&&/^[a-zA-Z\*]$/.test(re.value);)re=re.leftSibling;if(re&&re instanceof Tl&&re.value==="\\")for(ee.push(re),re=re.rightSibling;re&&re instanceof Tl&&/^[a-zA-Z\*]$/.test(re.value);)ee.push(re),re=re.rightSibling;const le=ee.map(Te=>Te.value).join(""),pe=De(a,le);if(pe.length===0){if(/^\\[a-zA-Z\*]+$/.test(le))for(const Te of ee)Te.isError=!0;hd(a);return}const ve=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=ve<0?pe.length-1:ve%pe.length;const Ce=pe[a.suggestionIndex];if(Ce!==le){const Te=ee[ee.length-1];Te.parent.addChildrenAfter([...Ce.slice(le.length-Ce.length)].map(tt=>new Tl(tt,{isSuggestion:!0})),Te),Nc(a,{interactive:!0})}Qm(a,pe)}function g0(a){const[y,b]=v0(a,{before:a.position});if(y===void 0||b===void 0)return!1;let E=!1;return a.getAtoms([y,b]).forEach(ee=>{ee.isSuggestion&&(ee.isSuggestion=!1,E=!0)}),E}function fd(a,y="accept",b){var E,ee;hd(a);const re=Xm(a.model);if(!re)return!1;if(y==="accept-suggestion"||y==="accept-all"){const Ce=Xd(a.model).filter(Te=>Te.isSuggestion);if(Ce.length!==0){for(const Te of Ce)Te.isSuggestion=!1;a.model.position=a.model.offsetOf(Ce[Ce.length-1])}if(y==="accept-suggestion")return Ce.length!==0}const pe=Xd(a.model).filter(Ce=>!Ce.isSuggestion).map(Ce=>Ce.value).join(""),ve=re.leftSibling;return re.parent.removeChild(re),a.model.position=a.model.offsetOf(ve),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(Qi.insert(a.model,pe,{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 Lf(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 Ym(a,y){const b=new wa({from:a.context}),E=new tr({mode:"math",type:"root",body:wl(y,{context:b})}),ee=oc($d(new Rr(E.render(b),{classes:"ML__base"}),b));return lc(ee,{classes:"ML__latex"}).toMarkup()}function Qm(a,y){var b;if(y.length===0){hd(a);return}let E="";for(const[re,le]of y.entries()){const pe=le,ve=Ym(a,le),Ce=jm(a.keybindings,pe).join("<br>");E+=`<li role="button" data-command="${pe}" ${re===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${pe}</span><span class="ML__popover__command">${ve}</span>`,Ce&&(E+=`<span class="ML__popover__keybinding">${Ce}</span>`),E+="</li>"}const ee=Jm(a,`<ul>${E}</ul>`);xh()&&((b=ee.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var re;ee&&!xh()&&(ee.classList.add("is-visible"),Bf(a),(re=ee.querySelector(".ML__popover__current"))==null||re.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function xh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function Bf(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"){hd(a);return}if(y!=null&&y.deferred){setTimeout(()=>Bf(a),32);return}const E=Mu(a.field);if(!E)return;const ee=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,re=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,le=window.innerWidth-document.documentElement.clientWidth,pe=window.innerHeight-document.documentElement.clientHeight,ve=window.mathVirtualKeyboard.boundingRect.height,Ce=document.getElementById("mathlive-suggestion-popover");E.x+Ce.offsetWidth/2>re-le?Ce.style.left=`${re-Ce.offsetWidth-le}px`:E.x-Ce.offsetWidth/2<0?Ce.style.left="0":Ce.style.left=`${E.x-Ce.offsetWidth/2}px`;const Te=E.y-E.height;ee-pe-ve-E.y<Te?(Ce.classList.add("ML__popover--reverse-direction"),Ce.classList.remove("top-tip"),Ce.classList.add("bottom-tip"),Ce.style.top=`${E.y-E.height-Ce.offsetHeight-15}px`):(Ce.classList.remove("ML__popover--reverse-direction"),Ce.classList.add("top-tip"),Ce.classList.remove("bottom-tip"),Ce.style.top=`${E.y+15}px`)}function hd(a){a.suggestionIndex=0;const y=document.getElementById("mathlive-suggestion-popover");y&&(y.classList.remove("is-visible"),y.innerHTML="")}function Jm(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=Lf("mathlive-suggestion-popover"),Ms("suggestion-popover"),Ms("core"),b.addEventListener("pointerdown",E=>E.preventDefault()),b.addEventListener("click",E=>{let ee=E.target;for(;ee&&!ee.dataset.command;)ee=ee.parentElement;ee&&(fd(a,"reject"),Qi.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 ev(){const a=String(new Error().stack).replace(/^Error.*\n/,"").split(`
`);if(a.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let y=a[1],b=y.match(/http.*\.ts[\?:]/);return b&&(y=a[2]),b=y.match(/(https?:.*):[0-9]+:[0-9]+/),b||(b=y.match(/at (.*(\.ts))[\?:]/),b||(b=y.match(/at (.*(\.mjs|\.js))[\?:]/))),b?b[1]:(console.error(a),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${y}").`),"")}var Pf=null,y0,b0,Ch=((b0=(y0=globalThis==null?void 0:globalThis.document)==null?void 0:y0.currentScript)==null?void 0:b0.src)||ev();function x0(a){return yc(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(Pf===null)try{const y=yield fetch(Ch,{method:"HEAD"});y.status===200&&(Pf=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${Ch}")`)}return new URL(a,Pf!=null?Pf:Ch).href})}function tv(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var Zs="not-loaded";function nv(){return yc(this,null,function*(){return Zs="not-loaded",If()})}function If(){return yc(this,null,function*(){var a;if(Zs!=="not-loaded")return;if(Zs="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){Zs="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(le=>le.family);if(b.every(le=>E.includes(le))){Zs="ready";return}if(!window.MathfieldElement.fontsDirectory){Zs="not-loaded";return}const ee=yield x0(window.MathfieldElement.fontsDirectory);if(!ee){document.body.classList.add("ML__fonts-did-not-load"),Zs="error";return}const re=[["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(le=>tv(le[0].replace(/-[a-zA-Z]+$/,""),`${ee}/${le[0]}`,le[1]));try{(yield Promise.all(re.map(pe=>{try{return pe.load()}catch(ve){}}))).forEach(pe=>document.fonts.add(pe)),Zs="ready";return}catch(le){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ee}"`,{cause:le}),document.body.classList.add("ML__fonts-did-not-load")}Zs="error"}})}function rv(a){let y=0;for(let b=0;b<a.length;b++)y=y*31+a.charCodeAt(b),y=y|0;return Math.abs(y)}function Ho(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{_s(a)&&a.dirty&&(a.atomBoundsCache=new Map,Nc(a,y),a.atomBoundsCache=void 0)})))}function iv(a,y){var b;y=y!=null?y:{};const E=new wa({from:Ee(we({},a.context),{atomIdsSettings:{seed:y.forHighlighting?rv(tr.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 lc($d(ee,E),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function C0(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 re=ee.parent;for(;re;)re.containsCaret=!0,re=re.parent}else{const ee=b.getAtoms(b.selection,{includeChildren:!0});for(const re of ee)re.isSelected=!0}return iv(a,y).toMarkup()}function Nc(a,y){if(!_s(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(),re=E.classList.contains("ML__focused");re&&!ee?E.classList.remove("ML__focused"):!re&&ee&&E.classList.add("ML__focused");let le=C0(a,y);const pe=a.element.querySelector("[part=menu-toggle]");if(pe&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?pe.style.display="none":pe.style.display=""),a.model.atoms.length<=1){const ve=a.options.contentPlaceholder;ve&&(le+=`<span part=placeholder class="ML__content-placeholder">${El(ve)}</span>`)}E.innerHTML=window.MathfieldElement.createHTML(le),Tf(a,y.interactive),a.dirty=!1}function Tf(a,y){const b=a.field;if(!b)return;for(const pe of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))pe.remove();!(y!=null&&y)&&Zs!=="error"&&Zs!=="ready"&&setTimeout(()=>{Zs==="ready"?Tf(a):setTimeout(()=>Tf(a),128)},32);const E=a.model,ee=b.offsetWidth,re=b.getBoundingClientRect().width;let le=Math.floor(re)/ee;if(le=isNaN(le)?1:le,E.selectionIsCollapsed){Bf(a,{deferred:!0});let pe=E.at(E.position);for(;pe&&pe.type!=="prompt"&&!(pe.containsCaret&&pe.displayContainsHighlight);)pe=pe.parent;if(pe!=null&&pe.containsCaret&&pe.displayContainsHighlight){const ve=Nd(a,cc(a,pe),le);if(ve){ve.left/=le,ve.right/=le,ve.top/=le,ve.bottom/=le;const Ce=document.createElement("div");Ce.classList.add("ML__contains-highlight"),Ce.style.position="absolute",Ce.style.left=`${ve.left+1}px`,Ce.style.top=`${Math.ceil(ve.top)}px`,Ce.style.width=`${Math.ceil(ve.right-ve.left)}px`,Ce.style.height=`${Math.ceil(ve.bottom-ve.top)}px`,b.insertBefore(Ce,b.childNodes[0])}}return}for(const pe of av(zd(a,{excludeAtomsWithBackground:!0}))){pe.left/=le,pe.right/=le,pe.top/=le,pe.bottom/=le;const ve=document.createElement("div");ve.classList.add("ML__selection"),ve.style.position="absolute",ve.style.left=`${pe.left}px`,ve.style.top=`${pe.top}px`,ve.style.width=`${Math.ceil(pe.right-pe.left)}px`,ve.style.height=`${Math.ceil(pe.bottom-pe.top-1)}px`,b.insertBefore(ve,b.childNodes[0])}}function av(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 S0=3,Au;function ks(a,y){y=we({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Au||(Au={});for(const b of Object.keys(a))console.assert(!Au[b],"Selector already defined: ",b),Au[b]=Ee(we({},y),{fn:a[b]})}function Sh(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return Sh(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Au[y]}function pd(a){var y;return(y=Sh(a))==null?void 0:y.target}function ov(a,y){var b;if(!y)return!1;let E,ee=[],re=!1,le=!1;Ie(y)?(E=y[0],ee=y.slice(1)):E=y,E=E.replace(/-\w/g,Ce=>Ce[1].toUpperCase());const pe=Au[E],ve=pe==null?void 0:pe.target;if(ve==="model"){if(!a.isSelectionEditable&&(pe!=null&&pe.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(E)&&(E!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(E)),/^complete/.test(E)||Af(a),Au[E].fn(a.model,...ee),Yd(a),le=!0,re=!0}else if(ve==="virtual-keyboard")le=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,re=!0;else if(Au[E]){if(!a.isSelectionEditable&&(pe!=null&&pe.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),le=Au[E].fn(a,...ee),re=!0}else throw new Error(`Unknown command "${E}"`);return ve!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||pe!=null&&pe.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),pe!=null&&pe.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),le&&Ho(a),re}function lv(a,y){var b;if(!a)return!1;a.focus(),gp.keypressVibration&&Ue()&&navigator.vibrate(S0);const E=Sh(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ee=a.executeCommand(y);return a.scrollIntoView(),ee}ks({performWithFeedback:(a,y)=>lv(a,y)});function sv(a){return Yd(a,{atIndex:a.suggestionIndex+1}),!1}function uv(a){return Yd(a,{atIndex:a.suggestionIndex-1}),!1}ks({complete:fd},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),ks({nextSuggestion:sv,previousSuggestion:uv},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Of="mathlive#virtual-keyboard-message";function wh(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Of}var cv=class em{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new em),this._singleton}set alphabeticLayout(y){this.sendMessage("update-setting",{alphabeticLayout:y})}set layouts(y){this.sendMessage("update-setting",{layouts:y})}get normalizedLayouts(){return[]}set editToolbar(y){this.sendMessage("update-setting",{editToolbar:y})}set actionKeycap(y){this.sendMessage("update-setting",{actionKeycap:y})}set shiftKeycap(y){this.sendMessage("update-setting",{shiftKeycap:y})}set backspaceKeycap(y){this.sendMessage("update-setting",{backspaceKeycap:y})}set tabKeycap(y){this.sendMessage("update-setting",{tabKeycap:y})}set container(y){throw new Error("Container inside an iframe cannot be changed")}show(y){this.sendMessage("show",y)}hide(y){this.sendMessage("hide",y)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(y){y?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(y){return this.sendMessage("execute-command",{command:y}),!0}updateToolbar(y){this.sendMessage("update-toolbar",y)}update(y){this.sendMessage("update-setting",y)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(y,b,E){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,E){this.listeners[y]&&this.listeners[y].delete(b)}handleEvent(y){if(wh(y)){if(!_d(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;pd(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:Of,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]"]]}},Ff={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"}]},Qd;function E0(a,y){var b,E,ee;const re=pc.singleton;if(!re)return;const le=md(a),pe=(E=(b=re.getKeycap(le==null?void 0:le.id))==null?void 0:b.variants)!=null?E:"";if(typeof pe=="string"&&!M0(pe)||Array.isArray(pe)&&pe.length===0){y==null||y();return}const ve={};let Ce="";for(const $n of fv(pe)){const Kr=D0($n),Wn=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);ve[Wn]=Kr;const[dr,Ur]=Nf(Kr);Ce+=`<div id=${Wn} class="item ${Ur}">${dr}</div>`}const Te=document.createElement("div");Te.setAttribute("aria-hidden","true"),Te.className="MLK__variant-panel",Te.style.height="auto";const tt=Object.keys(ve).length;let kt=5;tt===1?kt=1:tt===2||tt===4?kt=2:tt===3||tt===5||tt===6?kt=3:tt>=7&&tt<14&&(kt=4),Te.style.width=`calc(var(--variant-keycap-length) * ${kt} + 12px)`,Te.innerHTML=gp.createHTML(Ce),Du.open({root:(ee=re==null?void 0:re.container)==null?void 0:ee.querySelector(".ML__keyboard"),child:Te}),Qd=new AbortController;const{signal:jt}=Qd,qt=a==null?void 0:a.getBoundingClientRect();if(qt){qt.top-Te.clientHeight<0&&(Te.style.width="auto",tt<=6?Te.style.height="56px":tt<=12?Te.style.height="108px":tt<=18?Te.style.height="205px":Te.classList.add("compact"));const $n=Math.max(0,Math.min(window.innerWidth-Te.offsetWidth,(qt.left+qt.right-Te.offsetWidth)/2)),Kr=qt.top-Te.clientHeight+5;Te.style.transform=`translate(${$n}px, ${Kr}px)`,Te.classList.add("is-visible"),requestAnimationFrame(()=>{Te.addEventListener("pointerup",Wn=>{const dr=md(Wn.target);!(dr!=null&&dr.id)||!ve[dr.id]||(Eh(ve[dr.id]),Jd(),y==null||y(),Wn.preventDefault())},{capture:!0,passive:!1,signal:jt}),Te.addEventListener("pointerenter",Wn=>{const dr=md(Wn.target);!(dr!=null&&dr.id)||!ve[dr.id]||dr.classList.add("is-active")},{capture:!0,signal:jt}),Te.addEventListener("pointerleave",Wn=>{const dr=md(Wn.target);!(dr!=null&&dr.id)||!ve[dr.id]||dr.classList.remove("is-active")},{capture:!0,signal:jt}),window.addEventListener("pointercancel",()=>{Jd(),y==null||y()},{signal:jt}),window.addEventListener("pointerup",()=>{Jd(),y==null||y()},{signal:jt})})}}function Jd(){Qd==null||Qd.abort(),Qd=null,Du.state==="open"&&Du.close()}function dv(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(Ye))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+Ye[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys($e))y.push({class:"swatch-button",label:'<span style="background:'+$e[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function M0(a){return Ff[a]!==void 0}function fv(a){var y;return typeof a!="string"?a:(Ff[a]||(Ff[a]=(y=dv(a))!=null?y:[]),Ff[a])}function hv(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function pv(a){return Object.keys(a).map(y=>`${y} {${hv(a[y])}}`).join("")}function qd(a){if(!a)return"";const y=new wa,b=new tr({mode:"math",type:"root",body:wl(a,{context:y,args:ee=>ee==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=oc($d(new Rr(b.render(y),{classes:"ML__base"}),y));return lc(E,{classes:"ML__latex"}).toMarkup()}function ef(a){var y;if(Array.isArray(a))return a.map(E=>ef(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=>D0(ee)))),(y=b.id)!=null||(b.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[b]}function mv(){var a,y;let E=window.mathVirtualKeyboard.alphabeticLayout;if(E==="auto"){const pe=Ud();pe&&(E=pe.virtualLayout),(!E||E==="auto")&&(E=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[dt.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~"]},re=(y=ee[E])!=null?y:ee.qwerty,le=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 pe of re){const ve=[];for(const Ce of pe)/[a-z]/.test(Ce)?ve.push({label:Ce,class:"hide-shift",shift:{label:Ce.toUpperCase()},variants:M0(Ce)?Ce:void 0}):Ce==="~"?E!=="dvorak"?ve.push("[backspace]"):ve.push({label:"[backspace]",width:1}):Ce==="^"?ve.push("[shift]"):Ce===" "&&ve.push("[separator-5]");le.push(ve)}return le.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:ef({rows:le})}}function k0(a){if(a==="alphabetic")return mv();if(typeof a=="string")return console.assert(w0[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),k0(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:re}=ee,le=vt(ee,["rows"]);y=Ee(we({},le),{layers:ef({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ee=a,{markup:re}=ee,le=vt(ee,["markup"]);y=Ee(we({},le),{layers:ef(a.markup)})}else y=we({},a),"layers"in a?y.layers=ef(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 re of ee.rows.flat()){vd(re)&&(b=!0);const le=re.command;typeof le=="string"&&["undo","redo","cut","copy","paste"].includes(le)&&(E=!0)}return(!("displayShiftedKeycaps"in a)||a.displayShiftedKeycaps===void 0)&&(y.displayShiftedKeycaps=b),(!("displayEditToolbar"in a)||a.displayEditToolbar===void 0)&&(y.displayEditToolbar=!E),y}function vv(a,y){var b,E;let ee='<div class="left">';if(a.normalizedLayouts.length>1)for(const[re,le]of a.normalizedLayouts.entries()){const pe=le,ve=[re===y?"selected":"layer-switch"];pe.tooltip&&ve.push("MLK__tooltip"),pe.labelClass&&ve.push(...pe.labelClass.split(" ")),ee+=`<div class="${ve.join(" ")}"`,pe.tooltip&&(ee+=" data-tooltip='"+((b=nt(pe.tooltip))!=null?b:pe.tooltip)+"' "),re!==y&&(ee+=`data-layer="${pe.layers[0].id}"`),ee+=`>${(E=pe.label)!=null?E:"untitled"}</div>`}return ee+="</div>",ee}function gv(a,y){let b="";if(a.editToolbar==="none")return"";const ee=[];y.selectionIsCollapsed?ee.push("undo","redo","pasteFromClipboard"):ee.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const re={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
data-command='"undo"'
data-tooltip='${nt("tooltip.undo")}'>
<svg><use xlink:href='#svg-undo' /></svg>
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
data-command='"redo"'
data-tooltip='${nt("tooltip.redo")}'>
<svg><use xlink:href='#svg-redo' /></svg>
</div>`,cutToClipboard:`
<div class='action'
data-command='"cutToClipboard"'
data-tooltip='${nt("tooltip.cut to clipboard")}'>
<svg><use xlink:href='#svg-cut' /></svg>
</div>
`,copyToClipboard:`
<div class='action'
data-command='"copyToClipboard"'
data-tooltip='${nt("tooltip.copy to clipboard")}'>
<svg><use xlink:href='#svg-copy' /></svg>
</div>
`,pasteFromClipboard:`
<div class='action'
data-command='"pasteFromClipboard"'
data-tooltip='${nt("tooltip.paste from clipboard")}'>
<svg><use xlink:href='#svg-paste' /></svg>
</div>
`};return b+=ee.map(le=>re[le]).join(""),b}function yv(a){for(const y of a)bv(y)}function bv(a){const y=pc.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]=Nf(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function xv(){Ms("virtual-keyboard"),Ms("core"),If()}function Cv(){x("core"),x("virtual-keyboard")}var Sv=`<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 wv(a){a.resetKeycapRegistry(),xv();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(Sv+a.normalizedLayouts.map((le,pe)=>Ev(a,le,pe)).join(""));const E=document.createElement("div");E.className="MLK__backdrop",E.appendChild(b),y.appendChild(E),y.addEventListener("pointerdown",kv,{passive:!1});const ee=y.querySelectorAll(".ML__edit-toolbar");if(ee)for(const le of ee)le.addEventListener("click",pe=>{var ve,Ce;let Te=pe.target,tt="";for(;Te&&!tt;)tt=(ve=Te==null?void 0:Te.getAttribute("data-command"))!=null?ve:"",Te=(Ce=Te==null?void 0:Te.parentElement)!=null?Ce:null;tt&&a.executeCommand(JSON.parse(tt))});yv(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const re=y.querySelectorAll(".MLK__layer");console.assert(re.length>0,"No virtual keyboards available");for(const le of re)le.addEventListener("pointerdown",pe=>pe.preventDefault());return a.currentLayer=a.latentLayer,y}function Ev(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(vv(a,b)),y.displayEditToolbar&&E.push('<div class="ML__edit-toolbar right"></div>'),E.push("</div>")),E.push(Mv(a,ee)),E.push("</div>");return E.join("")}function Mv(a,y){if(typeof y=="string")return y;let b="";if(typeof y.style=="string"?b+=`<style>${y.style}</style>`:typeof y.style=="object"&&(b+=`<style>${pv(y.style)}</style>`),y.backdrop&&(b+=`<div class='${y.backdrop}'>`),y.container&&(b+=`<div class='${y.container}'>`),y.rows){b+="<div class=MLK__rows>";for(const E of y.rows){b+="<div dir='ltr' class=MLK__row>";for(const ee of E)if(ee){const re=a.registerKeycap(ee),[le,pe]=Nf(ee);/(^|\s)separator/.test(pe)?b+=`<div class="${pe}"`:b+=`<div tabindex="-1" id="${re}" class="${pe}"`,ee.tooltip&&(b+=` data-tooltip="${ee.tooltip}"`),b+=`>${le}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function Nf(a,y={shifted:!1}){var b,E,ee,re,le,pe,ve;let Ce="",Te=(b=a.class)!=null?b:"";if(y.shifted&&vd(a)&&(Te+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?Ce=qd(a.shift):typeof a.shift=="object"&&(Ce=a.shift.label?a.shift.label:(E=qd(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?E:""),typeof a.shift=="object"&&(Te=(re=(ee=a.shift.class)!=null?ee:a.class)!=null?re:"");else{if(Ce=a.label?a.label:(le=qd(a.latex||a.insert||"")||a.key)!=null?le:"",a.shift){let tt;typeof a.shift=="string"?tt=qd(a.shift):a.shift.label?tt=a.shift.label:tt=(pe=qd(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?pe:"",Ce+=`<span class="MLK__shift">${tt}</span>`}a.aside&&(Ce+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(Te)&&(Te+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(Te)||(Te+=" MLK__keycap"),!/\bw[0-9]+\b/.test(Te)&&a.width&&(Te+=(ve={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?ve:""),[Ce,Te||"MLK__keycap"]}var Rc={"[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 D0(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!Rc[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&Rc[a.label]&&(b=Ee(we(we({},Rc[a.label]),a),{label:Rc[a.label].label})),"key"in a&&a.key&&Rc[a.key]&&(b=Ee(we(we({},Rc[a.key]),a),{key:Rc[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 tf;function kv(a){var y;if(a.button!==0)return;const b=pc.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=md(a.target);if(!(ee!=null&&ee.id))return;const re=b.getKeycap(ee.id);if(!re)return;console.assert(a.type==="pointerdown");const le=new AbortController,pe=le.signal;ee.classList.add("is-pressed"),ee.addEventListener("pointerenter",Rf(le),{capture:!0,signal:pe}),ee.addEventListener("pointerleave",Rf(le),{capture:!0,signal:pe}),ee.addEventListener("pointercancel",Rf(le),{signal:pe}),ee.addEventListener("pointerup",Rf(le),{signal:pe}),vd(re)&&(ee.classList.add("is-active"),b.shiftPressCount++),re.variants&&(tf&&clearTimeout(tf),tf=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,()=>{le.abort(),ee==null||ee.classList.remove("is-active")}))},300)),a.preventDefault()}function Rf(a){return y=>{const b=md(y.target);if(!(b!=null&&b.id))return;const E=pc.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"),vd(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"),vd(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){tf&&clearTimeout(tf),vd(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=pc.singleton)==null||y.executeCommand(b)}function Dv(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 md(a){if(!a)return;let y=a;for(;y&&!Dv(y);)y=y.parentElement;return y!=null?y:void 0}function vd(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var pc=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 re=ee.target;re!=null&&re.isConnected&&setTimeout(()=>{const le=A0();le&&!le.readOnly&&le.mathVirtualKeyboardPolicy==="auto"&&Je()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ee=>{ee.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{A0()||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=>k0(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[re,le]=Nf(ee,{shifted:this.isShifted});E.innerHTML=window.MathfieldElement.createHTML(re),E.className=le}}}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 re=E.style.paddingBottom;this.originalContainerBottomPadding=re;const le=ee.offsetHeight-1;E.style.paddingBottom=re?`calc(${re} + ${le}px)`:`${le}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}),Jd(),Cv(),(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=wv(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(!_d(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,re=pd(ee);if(window.top!==void 0&&re!=="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:Of,action:y},b)}));return}if(E)E.postMessage(we({type:Of,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 re of ee)this.dispatchEvent(new KeyboardEvent("keydown",{key:re,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:re,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=gv(this,y)}update(y){this._style=y.style,this.updateToolbar(y)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(y){let b,E=[],ee=pd(y);return Ie(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ee=pd(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,re=>re[1].toUpperCase()),ee==="virtual-keyboard"?Au[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 A0(){var a,y;let b=Df(),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(st()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=pc.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>cv.singleton,configurable:!0});function zf(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const E=a.scriptDepth;if(Ie(E))y.scriptDepth=[E[0],E[1]];else if(typeof E=="number")y.scriptDepth=[E,E];else if(typeof E=="string"){const[re,le]=E.split(",").map(pe=>parseInt(pe.trim()));y.scriptDepth=[re,le]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ee=a.mathVirtualKeyboardPolicy.toLowerCase();if(ee==="sandboxed"){if(window!==window.top){const re=pc.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>re})}ee="manual"}y.mathVirtualKeyboardPolicy=ee;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?dt.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=Le(a.macros);break;default:Ie(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 zc(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:Ie(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 _f(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:ut,backgroundColorMap:Oe,letterShapeStyle:dt.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:sh,inlineShortcuts:vf,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:lh,value:""}}function L0(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function mc(a,y){!a||!y||(Ie(a)?a.forEach(b=>mc(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),mc(a.body,y),mc(a.above,y),mc(a.below,y),mc(a.subscript,y),mc(a.superscript,y)))}function Mh(a,y,b,E){function ee(le,pe){for(const ve of re)if(ve.style[le]!==pe)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const re=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=eo),b.variant&&ee("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ee("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const le of re)le.applyStyle(b);return!0}function Av(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 $u(y,{mode:b.mode});ee.caret=E,b.parent.addChildAfter(ee,b),a.position+=1}}function Lv(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}xt(["math","displaymath"],qs),xt("center",qs),ct("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 qi("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),Xt("array","{columns:colspec}",(a,y,b,E)=>new qi(a,kh(y),b,{columns:E[0],mathstyleName:"textstyle"})),Xt(["equation","equation*","subequations"],"",(a,y,b)=>new qi(a,kh(y),b,{columns:[{align:"c"}]})),Xt(["multline","multline*"],"",qs),Xt(["align","align*","aligned","eqnarray"],"",qs),Xt("split","",qs),Xt(["gather","gathered"],"",qs),Xt(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",qs),Xt(["smallmatrix","smallmatrix*"],"[columns:colspec]",qs),Xt(["cases","dcases","rcases"],"",qs);function Bv(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function kh(a,y=1){return Bv(a)?Array(y).fill([[new tr({type:"first"}),new Oi]]):a.map(b=>b.length===0?[[new tr({type:"first"})]]:b.map(E=>E.length===0?[new tr({type:"first"})]:(E[0].type!=="first"&&E.unshift(new tr({type:"first"})),E)))}function qs(a,y=[[[]]],b=[],E=[]){switch(y=kh(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new qi(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new qi(a,y,b,{mathstyleName:"textstyle"});case"center":return new qi(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new qi(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new qi(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new qi(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new qi(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:_c(E[0])});case"bmatrix":case"bmatrix*":return new qi(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:_c(E[0])});case"Bmatrix":case"Bmatrix*":return new qi(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:_c(E[0])});case"vmatrix":case"vmatrix*":return new qi(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:_c(E[0])});case"Vmatrix":case"Vmatrix*":return new qi(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:_c(E[0])});case"matrix":case"matrix*":return new qi(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:_c(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new qi(a,y,b,{mathstyleName:"scriptstyle",columns:_c(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new qi(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 qi(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new qi(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ee=0;for(const pe of y)ee=Math.max(ee,pe.length);const re=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let le=2;for(;le<ee;)re.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),le+=2;return re.push({gap:0}),new qi(a,y,b,{arraycolsep:0,columns:re,minColumns:2})}}return new qi(a,y,b,{mathstyleName:"textstyle"})}function _c(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 Pv(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof qi);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof qi)){const E=a.at(a.position);if(b=E,!b.parent.parent){let ee=a.extractAtoms([a.position,a.lastOffset]),re=a.extractAtoms([0,a.position]);re.length===0&&(re=Zf()),ee.length===0&&(ee=Zf());let le;return y.endsWith("column")?(le=qs("split",[[re,ee]]),a.root=le,Kc(le,0,0)?Hc(a,le,0,0):Kc(le,0,1)?Hc(a,le,0,1):a.position=a.offsetOf(E)):(le=qs("lines",[[re],[ee]]),a.root=le,Kc(le,0,0)?Hc(a,le,0,0):Kc(le,1,0)?Hc(a,le,1,0):a.position=a.offsetOf(E)),[void 0,[0,0]]}if(b.parent instanceof Za){const ee=b.parent;let re=a.extractAtoms([a.position,a.offsetOf(ee.lastChild)]),le=a.extractAtoms([a.offsetOf(ee.firstChild),a.position]);le.length===0&&(le=Zf()),re.length===0&&(re=Zf());let pe="pmatrix";const ve=ee.leftDelim,Ce=ee.rightDelim;ve==="("&&(Ce===")"||Ce==="?")?pe="pmatrix":(ve==="["||ve==="\\lbrack")&&(Ce==="]"||Ce==="\\rbrack"||Ce==="?")?pe="bmatrix":ve==="\\vert"&&Ce==="\\vert"?pe="vmatrix":ve==="\\Vert"&&Ce==="\\Vert"?pe="Vmatrix":(ve==="{"||ve==="\\lbrace")&&(Ce==="."||Ce==="?")&&(pe="cases");const Te=qs(pe,y.endsWith("column")?[[le,re]]:[[le],[re]]);return ee.parent.addChildBefore(Te,ee),ee.parent.removeChild(ee),Kc(Te,0,0)?Hc(a,Te,0,0):y.endsWith("column")?Kc(Te,0,1)?Hc(a,Te,0,1):a.position=a.offsetOf(b):Kc(Te,1,0)?Hc(a,Te,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof qi?[b.parent,b.parentBranch]:[void 0,[0,0]]}function Kc(a,y,b){const E=a.getCell(y,b);return!E||E.length!==2?!1:E[1].type==="placeholder"}function Iv(a,y,b,E){const ee=y.getCell(b,E);return ee?[a.offsetOf(ee[0]),a.offsetOf(ee[ee.length-1])]:-1}function Hc(a,y,b,E){const ee=Iv(a,y,b,E);typeof ee!="number"&&a.setSelection(ee)}function Kf(a,y,b,E,ee){const re=y.getCell(b,E);re&&a.setPositionHandlingPlaceholder(a.offsetOf(re[ee==="start"?0:re.length-1]))}function Hf(a,y){const[b,[E,ee]]=Pv(a,y);if(b)switch(y){case"after row":b.addRowAfter(E),Kf(a,b,E+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ee),Kf(a,b,E,ee+1,"end");break;case"before row":b.addRowBefore(E),Kf(a,b,E,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ee),Kf(a,b,E,ee,"start");break}}function B0(a){return a.contentWillChange({inputType:"insertText"})?(Hf(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Tv(a){return a.contentWillChange({inputType:"insertText"})?(Hf(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function P0(a){return a.contentWillChange({inputType:"insertText"})?(Hf(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Ov(a){return a.contentWillChange({inputType:"insertText"})?(Hf(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function I0(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),re=ee.type==="array"?ee:a.parentEnvironment;return re.environmentName=y,re.leftDelim=b,re.rightDelim=E,a.contentDidChange({}),!0}function T0(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof qi);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof qi){const E=b.parent,ee=b.parentBranch;let re;switch(y){case"row":if(E.rowCount>1){E.removeRow(ee[0]);const le=E.getCell(Math.max(0,ee[0]-1),ee[1]);re=a.offsetOf(le[le.length-1])}break;case"column":if(E.colCount>E.minColumns){E.removeColumn(ee[1]);const le=E.getCell(ee[0],Math.max(0,ee[1]-1));re=a.offsetOf(le[le.length-1])}break}re&&a.setPositionHandlingPlaceholder(re)}}function Fv(a){return a.contentWillChange({inputType:"deleteContent"})?(T0(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Nv(a){return a.contentWillChange({inputType:"deleteContent"})?(T0(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}ks({addRowAfter:B0,addColumnAfter:P0,addRowBefore:Tv,addColumnBefore:Ov,removeRow:Fv,removeColumn:Nv,setEnvironment:I0},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Zf(){return[new Oi]}var O0=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}};O0.maximumDepth=1e3;var Rv=O0;function Dh(a,y,b){if(a.at(y).mode!=="text")return y;const E=b==="backward"?-1:1;let ee;if(de.test(a.at(y).value)){let re=y,le;do le=a.at(re).mode==="text"&&de.test(a.at(re).value),re+=E;while(a.at(re)&&le);ee=a.at(re)?re-2*E:re-E}else if(/\s/.test(a.at(y).value)){let re=y;for(;a.at(re)&&a.at(re).mode==="text"&&/\s/.test(a.at(re).value);)re+=E;if(!a.at(re))ee=re-E;else{let le=!0;do le=a.at(re).mode==="text"&&!/\s/.test(a.at(re).value),re+=E;while(a.at(re)&&le);ee=a.at(re)?re-2*E:re-E}}else{let re=y;for(;a.at(re)&&a.at(re).mode==="text"&&!/\s/.test(a.at(re).value);)re+=E;ee=a.at(re)?re:re-E;let le=!0;for(;a.at(re)&&le;)le=a.at(re).mode==="text"&&/\s/.test(a.at(re).value),le&&(ee=re),re+=E;ee=a.at(re)?re-2*E:re-E}return ee-(E>0?0:1)}function gd(a,y,b){var E,ee,re,le,pe,ve,Ce;const Te=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let tt=a.at(a.position);if(y==="forward"&&(tt.type==="subsup"?(tt=tt.rightSibling,tt||(tt=a.at(a.position+1))):tt=a.at(a.position+1)),!tt)return a.announce("plonk"),!1;let kt=a.offsetOf(tt);if(tt instanceof du)kt=Dh(a,kt,y);else if(tt instanceof Tl)if(tt.isSuggestion)for(console.assert(y==="forward");tt&&tt instanceof Tl;)tt.isSuggestion=!1,kt=a.offsetOf(tt),tt=tt.rightSibling;else if(y==="forward"){if(tt=tt.rightSibling,!tt||!(tt instanceof Tl))return a.announce("plonk"),!1;for(;tt&&tt instanceof Tl&&/[a-zA-Z\*]/.test(tt.value);)kt=a.offsetOf(tt),tt=tt.rightSibling}else{if(tt=tt.leftSibling,!tt||!(tt instanceof Tl))return a.announce("plonk"),!1;for(;tt&&tt instanceof Tl&&/[a-zA-Z\*]/.test(tt.value);)kt=a.offsetOf(tt),tt=tt.leftSibling}else if(y==="forward"&&tt.type==="mopen"){let jt=0;do tt.type==="mopen"?jt+=1:tt.type==="mclose"&&(jt-=1),tt=tt.rightSibling;while(!tt.isLastSibling&&jt!==0);kt=a.offsetOf(tt.leftSibling)}else if(y==="backward"&&tt.type==="mclose"){let jt=0;do tt.type==="mopen"?jt+=1:tt.type==="mclose"&&(jt-=1),tt=tt.leftSibling;while(!tt.isFirstSibling&&jt!==0);kt=a.offsetOf(tt)}else if(y==="backward")if(tt.type==="first")for(;kt>0&&tt.type==="first";)kt-=1,tt=a.at(kt);else{const jt=tt.type;tt.type==="subsup"&&(kt=a.offsetOf(a.at(kt).leftSibling)),kt-=1;let qt=(ee=a.at(kt))==null?void 0:ee.type;for(;kt>=0&&qt===jt;)((re=a.at(kt))==null?void 0:re.type)==="subsup"?kt=a.offsetOf(a.at(kt).leftSibling):kt-=1,qt=a.at(kt).type}else{const{type:jt}=tt;let qt=(le=a.at(kt))==null?void 0:le.type;const{lastOffset:$n}=a;for(;kt<=$n&&(qt===jt||qt==="subsup");){for(;((pe=a.at(kt).rightSibling)==null?void 0:pe.type)==="subsup";)kt=a.offsetOf(a.at(kt).rightSibling);kt+=1,qt=(ve=a.at(kt))==null?void 0:ve.type}kt-=1}if((Ce=b==null?void 0:b.extend)!=null&&Ce){if(!a.setSelection(a.anchor,kt))return a.announce("plonk"),!1}else{if(kt===a.position)return a.announce("plonk"),!1;a.position=kt}return a.announce("move",Te),a.mathfield.stopCoalescingUndo(),!0}function Lu(a,y,b){var E,ee;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[pe,ve]=v0(a);pe!==void 0&&ve!==void 0&&a.deleteAtoms([pe,ve])}if(y==="upward")return _v(a,b);if(y==="downward")return Kv(a,b);if(b.extend){let pe=Wf(a,a.position,y);pe<0&&(pe=0),pe>a.lastOffset&&(pe=a.lastOffset);const ve=a.setSelection(a.anchor,pe);return a.mathfield.stopCoalescingUndo(),ve}if(a.selectionIsPlaceholder){a.collapseSelection(y);const pe=Lu(a,y);return a.mathfield.stopCoalescingUndo(),pe}let re=a.position;const le=re;if(a.collapseSelection(y)?(re=a.position,F0(a,re)||(re=Wf(a,re,y))):re=Wf(a,re,y),re<0||re>a.lastOffset){let pe=!0;return a.silenceNotifications||(pe=(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),pe&&a.announce("plonk"),pe}return a.setPositionHandlingPlaceholder(re),a.mathfield.stopCoalescingUndo(),a.announce("move",le),!0}function Wf(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||F0(a,y)?y:Wf(a,y,b)}function F0(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 zv(a,y,b){let E=1/0,ee=0;for(;ee<y.length;ee++){const re=od(a.getHTMLElement(y[ee])).right,le=Math.abs(b-re);if(le<=E)E=le;else break}return y[ee-1]}function $f(a,y,b,E,ee){const re=a.mathfield.hasEditablePrompts,le=re?b.filter(Ce=>Ce.type==="prompt"&&!Ce.captureSelection):b,pe=od(a.mathfield.getHTMLElement(y)).right,ve=a.offsetOf(zv(a.mathfield,le,pe))-(re?1:0);if(E){const[Ce,Te]=a.selection.ranges[0];let tt;ve<(ee==="up"?Ce:Te)?tt={ranges:[[ve,Te]],direction:"backward"}:tt={ranges:[[Ce,ve]],direction:"forward"},a.setSelection(tt)}else a.setPositionHandlingPlaceholder(ve);a.announce(`move ${ee}`)}function _v(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("backward");const re=()=>{var ve,Ce;let Te=!0;return a.silenceNotifications||(Te=(Ce=(ve=a.mathfield.host)==null?void 0:ve.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Ce:!0),a.announce(Te?"plonk":"line"),Te},le=a.at(a.position);let pe=le;for(;pe&&pe.parentBranch!=="below"&&!(Array.isArray(pe.parentBranch)&&pe.parent instanceof qi);)pe=pe.parent;if(Array.isArray(pe==null?void 0:pe.parentBranch)&&pe.parent instanceof qi){const ve=pe.parent;if(pe.parentBranch[0]<1)return re();const Ce=pe.parentBranch[0]-1,Te=ve.array[Ce][pe.parentBranch[1]];if(!Te.some(kt=>kt.type==="prompt"&&!kt.captureSelection)&&a.mathfield.hasEditablePrompts)return re();$f(a,le,Te,ee,"up")}else if(pe){const ve=(E=pe.parent.branch("above"))!=null?E:pe.parent.createBranch("above");if(!ve.some(Te=>Te.type==="prompt"&&Te.placeholderId)&&a.mathfield.hasEditablePrompts)return re();$f(a,le,ve,ee,"up")}else return re();return a.mathfield.stopCoalescingUndo(),!0}function Kv(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("forward");const re=()=>{var ve,Ce;let Te=!0;return a.silenceNotifications||(Te=(Ce=(ve=a.mathfield.host)==null?void 0:ve.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Ce:!0),a.announce(Te?"plonk":"line"),Te},le=a.at(a.position);let pe=le;for(;pe&&pe.parentBranch!=="above"&&!(Array.isArray(pe.parentBranch)&&pe.parent instanceof qi);)pe=pe.parent;if(Array.isArray(pe==null?void 0:pe.parentBranch)&&pe.parent instanceof qi){const ve=pe.parent;if(pe.parentBranch[0]+1>ve.array.length-1)return re();const Ce=pe.parentBranch[0]+1,Te=ve.array[Ce][pe.parentBranch[1]];if(!Te.some(kt=>kt.type==="prompt"&&!kt.captureSelection)&&a.mathfield.hasEditablePrompts)return re();$f(a,le,Te,ee,"down")}else if(pe){const ve=(E=pe.parent.branch("below"))!=null?E:pe.parent.createBranch("below");if(!ve.some(Te=>Te.type==="prompt")&&a.mathfield.hasEditablePrompts)return re();$f(a,le,ve,ee,"down")}else return re();return!0}function N0(a){const y=a.position,b=a.at(y).parent;return b!=null&&b.parent?(a.position=a.offsetOf(b),a.mathfield.stopCoalescingUndo(),a.announce("move",y),!0):(a.announce("plonk"),!1)}function Hv(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!1):E=!0,b=b.parent;return E?y:0}function Zv(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!0):E=!1,b=b.parent;return E?y:0}function R0(a){var y;if(a.collapseSelection(),Hv(a)>=a.mathfield.options.scriptDepth[1])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=b.rightSibling)==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new Qs({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function z0(a){var y;if(a.collapseSelection(),Zv(a)>=a.mathfield.options.scriptDepth[0])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=a.at(a.position+1))==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new Qs({style:a.at(a.position).computedStyle}),b),b=a.at(a.position+1)),b.createBranch("subscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.subscript[0]))),!0}function Wv(){function a(ve){const Ce=[],Te=[];return[...ve.querySelectorAll(`input, select, textarea, a[href], button,
[tabindex], audio[controls], video[controls],
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((kt,jt)=>{const qt=E(kt);qt===0?Ce.push(kt):Te.push({documentOrder:jt,tabIndex:qt,node:kt})}),Te.sort((kt,jt)=>kt.tabIndex===jt.tabIndex?kt.documentOrder-jt.documentOrder:kt.tabIndex-jt.tabIndex).map(kt=>kt.node).concat(Ce)}function y(ve){return!(!b(ve)||ee(ve)||E(ve)<0)}function b(ve){return!(ve.disabled||ve.type==="hidden"&&ve.tagName.toUpperCase()==="INPUT"||pe(ve))}function E(ve){var Ce;const Te=Number.parseInt((Ce=ve.getAttribute("tabindex"))!=null?Ce:"NaN",10);return Number.isNaN(Te)?ve.contentEditable==="true"||(ve.nodeName==="AUDIO"||ve.nodeName==="VIDEO")&&ve.getAttribute("tabindex")===null?0:ve.tabIndex:Te}function ee(ve){return ve.tagName.toUpperCase()==="INPUT"&&ve.type==="radio"&&!le(ve)}function re(ve,Ce){for(const Te of ve)if(Te.checked&&Te.form===Ce)return Te;return null}function le(ve){var Ce;if(!ve.name)return!0;const tt=((Ce=ve.form)!=null?Ce:ve.ownerDocument).querySelectorAll('input[type="radio"][name="'+ve.name+'"]'),kt=re(tt,ve.form);return!kt||kt===ve}function pe(ve){if(!st()||ve===document.activeElement||ve.contains(document.activeElement))return!1;if(getComputedStyle(ve).visibility==="hidden")return!0;const Ce=ve.getBoundingClientRect();if(Ce.width===0||Ce.height===0)return!0;for(;ve;){if(getComputedStyle(ve).display==="none")return!0;ve=ve.parentElement}return!1}return st()?a(document.body):[]}function is(a,y,b="forward"){const E=a.position;if(Array.isArray(y)){const ee=a.offsetOf(y[0]),re=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ee,re):a.setSelection(re,ee),a.announce("move",E),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?is(a,[y.leftSibling,y]):is(a,[y,y.leftSibling])}function pu(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 jf(a,y,b=!0){var E,ee;const re=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Lu(a,y);let le;const pe=a.at(a.anchor).parentPrompt;pe?y==="forward"?le=a.offsetOf(pe)+1:le=a.offsetOf(pe.leftSibling):le=Math.max(a.position+re,0);const ve=Ah(a,le,y);if(!ve||y==="forward"&&a.offsetOf(ve)<le||y==="backward"&&a.offsetOf(ve)>le){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 Te=Wv();if(!document.activeElement||Te.length<=1)return a.announce("plonk"),!1;let tt=Te.indexOf(document.activeElement)+re;return tt<0&&(tt=Te.length-1),tt>=Te.length&&(tt=0),Te[tt].focus(),a.mathfield.stopCoalescingUndo(),!0}return pu(a,ve),!0}function Ah(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)}ks({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 re;if(typeof ee=="string"&&(re=y[ee]),!re){const pe=b.subsupPlacement?z0(a):R0(a);return a.mathfield.stopCoalescingUndo(),pe}E.branch(re)||E.createBranch(re);const le=a.setSelection(a.getBranchRange(a.offsetOf(E),re));return a.mathfield.stopCoalescingUndo(),le},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=>N0(a),moveToNextChar:a=>Lu(a,"forward"),moveToPreviousChar:a=>Lu(a,"backward"),moveUp:a=>Lu(a,"upward"),moveDown:a=>Lu(a,"downward"),moveToNextWord:a=>gd(a,"forward"),moveToPreviousWord:a=>gd(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 jf(a,"forward");const re=a.at(a.position);if(re.mode==="text"){if(a.selectionIsCollapsed){let kt=re;for(;kt&&kt.mode==="text";)kt=kt.leftSibling;let jt=re;for(;((y=jt.rightSibling)==null?void 0:y.mode)==="text";)jt=jt.rightSibling;if(kt&&jt)return is(a,[kt,jt])}if(re.rightSibling.mode==="text"){let kt=re;for(;kt&&kt.mode==="text";)kt=kt.rightSibling;return kt?(pu(a,(b=kt.leftSibling)!=null?b:kt),a.mathfield.switchMode("math"),!0):pu(a,a.lastOffset)}}const pe=a.at(a.anchor).parentPrompt,ve=pe?a.offsetOf(pe)+1:Math.max(a.position+1,0),Ce=Ah(a,ve,"forward");if(Ce)return pu(a,Ce);const Te=_0(a,re,kt=>kt.type==="leftright"||kt.type==="text","forward");if(Te){if(Te.mode==="text"){let kt=Te;for(;kt&&kt.mode==="text";)kt=kt.rightSibling;return is(a,[(E=Te.leftSibling)!=null?E:Te,(ee=kt.leftSibling)!=null?ee:kt])}return is(a,Te)}const tt=re.parent;if(tt){if(tt.type==="leftright"||tt.type==="surd")return is(a,tt);if(re.parentBranch==="superscript"&&tt.subscript)return is(a,tt.subscript);if(re.parentBranch==="above"&&tt.below)return is(a,tt.below);if(re.parentBranch==="superscript"||re.parentBranch==="subscript")return pu(a,tt);if(re.parentBranch==="above"||re.parentBranch==="below")return is(a,tt)}return pu(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return jf(a,"backward");let b=a.at(a.position);const E=b.mode;if(E==="text"){if(a.selectionIsCollapsed){let pe=b;for(;pe&&pe.mode==="text";)pe=pe.leftSibling;let ve=b;for(;((y=ve.rightSibling)==null?void 0:y.mode)==="text";)ve=ve.rightSibling;if(pe&&ve)return is(a,[pe,ve])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?pu(a,b):pu(a,0)}const ee=a.at(a.anchor).parentPrompt,re=ee?a.offsetOf(ee.leftSibling):Math.max(a.position-1,0),le=Ah(a,re,"backward");if(le)return pu(a,le);if(E==="math"){const pe=_0(a,b,Ce=>Ce.type==="leftright"||Ce.type==="text","backward");if(pe){if(pe.mode==="text"){let Ce=pe;for(;Ce&&Ce.mode==="text";)Ce=Ce.leftSibling;return is(a,[pe,Ce])}return is(a,pe)}const ve=b.parent;if(ve){if(ve.type==="leftright"||ve.type==="surd")return is(a,ve);if(b.parentBranch==="subscript"&&ve.superscript)return is(a,ve.superscript);if(b.parentBranch==="below"&&ve.above)return is(a,ve.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return pu(a,ve);if(b.parentBranch==="above"||b.parentBranch==="below")return is(a,ve)}return pu(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:z0},{target:"model",changeSelection:!0}),ks({moveToNextPlaceholder:a=>jf(a,"forward"),moveToPreviousPlaceholder:a=>jf(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function _0(a,y,b,E){if(E==="forward"){let re=y.rightSibling;for(;re&&!b(re);)re=re.rightSibling;return re}let ee=y.leftSibling;for(;ee&&!b(ee);)ee=ee.leftSibling;return ee}function Vf(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1,re="";for(;!ee;){const le=a.at(E);ee=y===0||le===void 0||le.type==="first"||le.mode!=="math"||!(le.type&&/mord|mpunct|operator/.test(le.type)||le.type==="mop"&&/[a-zA-Z ]+/.test(le.value))||!le.hasEmptyBranch("superscript")||!le.hasEmptyBranch("subscript")||typeof b=="function"&&!b(le),ee||(le.mode="text",le.command=le.value,le.verbatimLatex=void 0,re+=le.value),E-=1,y-=1}a.contentDidChange({data:re,inputType:"insertText"})}function Zc(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1;const re=[];for(;!ee;){const le=a.at(E);ee=y===0||!le||le.type==="first"||le.isFirstSibling||le.mode!=="text"||le.value===" "||typeof b=="function"&&!b(le),ee||(re.push(tr.serialize([le],{defaultMode:"math"})),le.mode="math"),E-=1,y-=1}Lh(a),a.contentDidChange({data:ca(re),inputType:"insertText"})}function Lh(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 $v(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 jv(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!kf(b))return!1;const ee=dd(b);if(!E.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ee));const re=$v(E)+ee;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ee))return!0;if(/[\^_]/.test(ee))return/(^|\s)[a-zA-Z][^_]$/.test(re)&&Zc(E,1),!0;const le={")":"(","}":"{","]":"["}[ee],{parent:pe}=E.at(E.position);if(le&&pe instanceof Za&&pe.leftDelim===le)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(re))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ee))return!0;if(/(^|[^a-zA-Z'])[a-zA-Z] $/.test(re))return Zc(E,1),!1;if(/\D\.[^\d\s]$/.test(re)){Zc(E,1);const ve=E.at(E.position);return ve.value="\u22C5",ve.style.variant="normal",ve.command="\\cdot",ve.verbatimLatex=void 0,E.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(re)||/\.\d$/.test(re)||/\([\d+\-.]$/.test(re))return Zc(E,1),!0;if(/\([a-z][,;]$/.test(re))return Zc(E,2),!0;if(/[\d+\-=><*|]$/.test(ee))return Lh(E),!0}else{if(y==="[Space]")return Vf(E,void 0,le=>/[a-z][:,;.]$/.test(le.value)),!0;if(/[a-zA-Z]{3,}$/.test(re)&&!/(dxd|abc|xyz|uvw)$/.test(re))return Vf(E,void 0,le=>/[a-zA-Z]/.test(le.value)),!0;if(/(^|\W)(if)$/i.test(re))return Vf(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(re)&&!/(αβγ)$/.test(re))return Vf(E,void 0,le=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(le.value)),!0;if(ee==="?"||ee==="."&&!/[\d-+]\.$/.test(re))return!0}return!1}function Vv(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=K0(),E=a.element.getBoundingClientRect();b.style.left=`${E.left}px`,b.style.top=`${E.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(gh(y)||y)+"</span>"+b.innerHTML),b.style.visibility="visible",setTimeout(()=>{b.childNodes.length>0&&b.childNodes[b.childNodes.length-1].remove(),b.childNodes.length===0&&(b.style.visibility="hidden")},3e3)}function Gv(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=K0();y.innerHTML=""}else{const y=Lf("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function K0(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(Ms("keystroke-caption"),Ms("core"),Lf("mathlive-keystroke-caption-panel"))}function Uv(){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:re}=a,le=p0(y);if(y.isTrusted){Rm(y);const jt=Ud();a.keyboardLayout!==jt.id&&(a.keyboardLayout=jt.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Vv(a,le),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let pe,ve="",Ce;const Te=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(re.mode==="math")if(le==="[Backspace]")Te.pop();else if(!kf(y))a.flushInlineShortcutBuffer();else{const jt=dd(y),qt=[...(E=(b=Te[Te.length-1])==null?void 0:b.keystrokes)!=null?E:[],jt];Te.push({state:re.getState(),keystrokes:qt,leftSiblings:Xv(a)});let $n=0,Kr="";for(;!pe&&$n<qt.length;)Ce=Te.length-(qt.length-$n),Kr=qt.slice($n).join(""),pe=Id(Te[Ce].leftSiblings,Kr,a.options.inlineShortcuts),!pe&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(Kr)&&(pe=a.options.onInlineShortcut(a,Kr)),$n+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(pe?a.switchMode("math"):jv(a,le,y)&&(a.switchMode({math:"text",text:"math"}[re.mode]),ve=""))}if(!pe){if(ve||(ve=$m(a.keybindings,re.mode,y)),!ve&&(le==="[Enter]"||le==="[Return]")){let jt=!1;return re.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(jt=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),jt||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),re.contentDidChange({inputType:"insertLineBreak"})),jt}if((!ve||le==="[Space]")&&re.mode==="math"){if(le==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return Qi.insert(re,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),ve="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const jt=re.at(re.position+1),qt=re.at(re.position-1);if((jt==null?void 0:jt.mode)==="text"||(qt==null?void 0:qt.mode)==="text")return Qi.insert(re," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ee=re.at(re.position))!=null&&ee.isDigit()&&window.MathfieldElement.decimalSeparator===","&&dd(y)===","&&(ve="insertDecimalSeparator")}}if(!pe&&!ve){if(re.mathfield.smartFence){if(Ph(re,dd(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:jt}=re.at(re.position);if(jt instanceof Za&&jt.rightDelim==="?"&&re.at(re.position).isLastSibling&&/^[)}\]|]$/.test(le))return a.snapshot(),jt.isDirty=!0,jt.rightDelim=le,re.position+=1,re.selectionDidChange(),re.contentDidChange({data:dd(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!re.selectionIsCollapsed){const qt=dd(y);if(qt==="("||qt==="{"||qt==="["){const $n={"(":"(","{":"\\lbrace","[":"\\lbrack"}[qt],Kr={"(":")","{":"\\rbrace","[":"\\rbrack"}[qt],[Wn,dr]=Cl(re.selection);return a.snapshot(),re.position=dr,Qi.insert(re,Kr,{format:"latex"}),re.position=Wn,Qi.insert(re,$n,{format:"latex"}),re.setSelection(Wn+1,dr+1),re.contentDidChange({data:qt,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const tt=re.at(Math.max(re.position,re.anchor)),{parent:kt}=tt;if(ve==="moveAfterParent"&&(kt==null?void 0:kt.type)==="leftright"&&tt.isLastSibling&&a.options.smartFence&&Ph(re,".",a.defaultStyle)&&(ve="",Ho(a)),a.keyboardDelegate.cancelComposition(),ve)a.executeCommand(ve);else if(pe){const jt=a.effectiveStyle;re.setState(Te[Ce].state);const qt=Te[Te.length-1].keystrokes;for(const $n of qt)Qi.insert(re,$n,{silenceNotifications:!0,style:jt});a.snapshot("insert-shortcut"),re.setState(Te[Ce].state),re.deferNotifications({content:!0,selection:!0,data:pe,type:"insertText"},()=>(Qi.insert(re,pe,{format:"latex",style:jt}),Lh(a.model),pe.endsWith(" ")&&(a.switchMode("text"),Qi.insert(re," ",{style:jt,mode:"text"})),a.snapshot(),re.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,re.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function Bh(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=bs(y);const re=window.mathVirtualKeyboard;if(re!=null&&re.isShifted&&(ee=typeof ee=="string"?ee.toUpperCase():ee.map(ve=>ve.toUpperCase())),b.simulateKeystroke){let ve=!0;for(const Ce of ee)H0(a,new KeyboardEvent("keypress",{key:Ce}))&&(ve=!1);if(ve)return}const le=E.at(E.position),pe=we(we({},le.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(Cl(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Af(a);for(const ve of ee)Qi.insert(E,ve);a.snapshot("insert-latex"),Yd(a)});else if(E.mode==="text"){for(const ve of ee)Qi.insert(E,ve,{style:pe});a.snapshot("insert-text")}else if(E.mode==="math")for(const ve of ee)Yv(a,ve,pe,le);a.dirty=!0,a.scrollIntoView()}function Xv(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 Yv(a,y,b,E){const ee=a.model;let re={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(re=["insert",a.options.mathModeSpace]),re){a.executeCommand(re);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){Qv(ee),Qi.insert(ee,y,{style:b}),a.snapshot(),N0(ee),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const le=a.adoptStyle==="left"?E:E.parent?E.rightSibling:null;(le==null?void 0:le.type)==="mord"&&/[a-zA-Z0-9]/.test(le.value)&&(b=we({},b),le.style.variant&&(b.variant=le.style.variant),le.style.variantStyle&&(b.variantStyle=le.style.variantStyle))}Qi.insert(ee,y,{style:b}),a.snapshot(`insert-${ee.at(ee.position).type}`)}function Qv(a){a.selectionIsCollapsed||(a.deleteAtoms(Cl(a.selection)),a.mathfield.snapshot("delete"))}function Ph(a,y,b){if(!y||a.mode!=="math")return!1;const E=a.at(a.position),{parent:ee}=E,re={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!re)return!1;const le=te[re],pe=ne[re];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[ve,Ce]=Cl(a.selection),Te=a.extractAtoms([ve,Ce]),tt=ee.addChildrenAfter([new Za("left...right",Te,{leftDelim:re,rightDelim:pe})],a.at(ve));return a.setSelection(a.offsetOf(tt.firstChild),a.offsetOf(tt.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(re==="|"){const ve=ee instanceof Za?ee.leftDelim+ee.rightDelim:"";if(ve==="\\lbrace\\rbrace"||ve==="\\{\\}"||ve==="\\lbrace?")return a.mathfield.snapshot(),Qi.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(pe){if(ee instanceof Za&&ee.firstChild===E&&(ee.leftDelim==="?"||ee.leftDelim==="."))return ee.leftDelim=re,ee.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ee instanceof Za)){let tt=E;for(;tt&&!(tt.type==="mclose"&&tt.value===pe);)tt=tt.rightSibling;if(tt){a.mathfield.snapshot();const kt=a.extractAtoms([a.offsetOf(E),a.offsetOf(tt)]);return kt.pop(),ee.addChildrenAfter([new Za("left...right",kt,{leftDelim:re,rightDelim:pe})],E),a.position=a.offsetOf(ee.firstChild)+1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const ve=a.offsetOf(E.lastSibling);let Ce;for(Ce=a.position;Ce<=ve;Ce++){const tt=a.at(Ce);if(tt instanceof Za&&(tt.leftDelim==="?"||tt.leftDelim===".")&&Z0(re,tt.rightDelim))break}const Te=a.at(Ce);if(Ce<=ve&&Te instanceof Za){Te.leftDelim=re,a.mathfield.snapshot();let tt=a.extractAtoms([a.position,Ce-1]);return tt=tt.filter(kt=>kt.type!=="first"),Te.addChildren(tt,Te.parentBranch),a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ee instanceof Za&&(ee.leftDelim==="?"||ee.leftDelim===".")&&Z0(re,ee.rightDelim)){ee.isDirty=!0,ee.leftDelim=re,a.mathfield.snapshot();const tt=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const kt of tt)ee.parent.addChildBefore(kt,ee);return a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ee instanceof Za&&ee.leftDelim==="|")){if(a.mathfield.snapshot(),Qi.insert(a,`\\left${re}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const tt=a.offsetOf(E.lastSibling),kt=a.extractAtoms([a.position,tt]);a.at(a.position).body=kt,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(le){let ve=E;for(;ve;){if(ve.type==="mopen"&&ve.value===le){a.mathfield.snapshot();const jt=ve.leftSibling,qt=a.extractAtoms([a.offsetOf(ve.leftSibling),a.offsetOf(E)]);qt.shift();const $n=new Za("left...right",qt,{leftDelim:le,rightDelim:re});return ee.addChildrenAfter([$n],jt),a.position=a.offsetOf($n),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}ve=ve.leftSibling}if(ee instanceof Za&&E.isLastSibling&&Ih(ee.leftDelim,re))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=re,a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const Ce=a.offsetOf(E.firstSibling);let Te;for(Te=a.position;Te>=Ce;Te--){const jt=a.at(Te);if(jt instanceof Za&&(jt.rightDelim==="?"||jt.rightDelim===".")&&Ih(jt.leftDelim,re))break}const tt=a.at(Te);if(Te>=Ce&&tt instanceof Za)return a.mathfield.snapshot(),tt.rightDelim=re,tt.addChildren(a.extractAtoms([Te,a.position]),tt.parentBranch),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ee instanceof Za&&(ee.rightDelim==="?"||ee.rightDelim===".")&&Ih(ee.leftDelim,re))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=re,ee.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(E.lastSibling)]),ee.parentBranch),a.position=a.offsetOf(ee),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const kt=ee.parent;return kt instanceof Za&&(kt.rightDelim==="?"||kt.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(kt),Ph(a,re,b)):!1}return!1}function Ih(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):ne[a]===y:!0}function Z0(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):te[y]===a:!0}ks({undo:a=>(a.undo(),!0),redo:a=>(a.redo(),!0),scrollIntoView:a=>(a.scrollIntoView(),!0),scrollToStart:a=>(a.field.scroll(0,0),!0),scrollToEnd:a=>{const y=a.field.getBoundingClientRect();return a.field.scroll(y.left-window.scrollX,0),!0},toggleKeystrokeCaption:Gv,toggleContextMenu:a=>{const y=a.toggleContextMenu();return y||a.model.announce("plonk"),y},plonk:a=>(a.model.announce("plonk"),!0),switchMode:(a,y,b,E)=>(a.switchMode(y,b,E),!0),insert:(a,y,b)=>a.insert(y,b),typedText:(a,y,b)=>(Bh(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),re=0;for(;E.includes(ee)&&re<100;){if(re===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),re++}return a.insert(`\\placeholder[${y!=null?y:ee}]{}`,b),!0}}),ks({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"}),ks({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})&&(Yd(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Ho(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function Jv(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=Th(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}ks({applyStyle:Jv},{target:"mathfield",canUndo:!0,changeContent:!0});function Th(a,y){var b,E,ee,re,le,pe,ve,Ce,Te,tt;const kt={};if(typeof y.color=="string"){const qt=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";qt!==y.color&&(kt.verbatimColor=(ee=y.verbatimColor)!=null?ee:y.color),kt.color=qt}if(typeof y.backgroundColor=="string"){const qt=(le=a.backgroundColorMap((re=y.backgroundColor)!=null?re:y.verbatimBackgroundColor))!=null?le:"none";qt!==y.backgroundColor&&(kt.verbatimBackgroundColor=(pe=y.verbatimBackgroundColor)!=null?pe:y.backgroundColor),kt.backgroundColor=qt}typeof y.fontFamily=="string"&&(kt.fontFamily=y.fontFamily),typeof y.series=="string"&&(kt.fontSeries=y.series),typeof y.fontSeries=="string"&&(kt.fontSeries=y.fontSeries.toLowerCase()),kt.fontSeries&&(kt.fontSeries=(ve={bold:"b",medium:"m",normal:"m"}[kt.fontSeries])!=null?ve:kt.fontSeries),typeof y.shape=="string"&&(kt.fontShape=y.shape),typeof y.fontShape=="string"&&(kt.fontShape=y.fontShape.toLowerCase()),kt.fontShape&&(kt.fontShape=(Ce={italic:"it",up:"n",upright:"n",normal:"n"}[kt.fontShape])!=null?Ce:kt.fontShape),y.variant&&(kt.variant=y.variant.toLowerCase()),y.variantStyle&&(kt.variantStyle=y.variantStyle.toLowerCase());const jt=(Te=y.size)!=null?Te:y.fontSize;return typeof jt=="number"?kt.fontSize=Math.max(1,Math.min(10,jt)):typeof jt=="string"&&(kt.fontSize=(tt={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[jt.toLowerCase()])!=null?tt:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[jt]),kt}function Oh(a){let[y,b]=Cl(a.selection);if(y=W0(a,y,"backward"),b=W0(a,b,"forward"),y===b){const E=a.at(y);if(E.type==="leftright")return a.setSelection(a.offsetOf(E.firstChild)-1,b);if(E.type==="first"&&(E.parent.type==="leftright"||E.parent.type==="surd"))return a.setSelection(y-1,a.offsetOf(E.parent.lastChild)+1);a.setSelection(y-1,b)}else a.setSelection(y,b);return!0}function W0(a,y,b){var E,ee,re;let le=a.at(y);if(!le)return y;const pe=b==="forward"?1:-1;if(le.mode==="text"){for(;le&&!(le.mode!=="text"||!de.test(le.value));)y+=pe,le=a.at(y);return b==="backward"?y-1:y}if(le.mode==="latex"){if(/[a-zA-Z\*]/.test(le.value))if(b==="backward")for(;le&&le.mode==="latex"&&le.value!=="\\"&&/[a-zA-Z]/.test(le.value);)y+=pe,le=a.at(y);else for(;le&&le.mode==="latex"&&/[a-zA-Z\*]/.test(le.value);)y+=pe,le=a.at(y);else if(le.value==="{"){if(b==="forward"){for(;le&&le.mode==="latex"&&le.value!=="}";)y+=pe,le=a.at(y);return y}return y-1}else if(le.value==="}"){if(b==="backward"){for(;le&&le.mode==="latex"&&le.value!=="{";)y+=pe,le=a.at(y);return y-1}return y}return y-1}if(le.mode==="math"){if(le.isDigit()){for(;(E=a.at(y+pe))!=null&&E.isDigit();)y+=pe;return b==="backward"?y-1:y}if(le.style.variant||le.style.variantStyle){let ve=(ee=a.at(y))==null?void 0:ee.style;for(;ve&&ve.variant===le.style.variant&&ve.variantStyle===le.style.variantStyle;)ve=(re=a.at(y+pe))==null?void 0:re.style,y+=pe;return b==="backward"?y-1:y}return y}return y}ks({selectGroup:a=>{const y=Oh(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Lu(a,"forward",{extend:!0}),extendSelectionBackward:a=>Lu(a,"backward",{extend:!0}),extendToNextWord:a=>gd(a,"forward",{extend:!0}),extendToPreviousWord:a=>gd(a,"backward",{extend:!0}),extendSelectionUpward:a=>Lu(a,"upward",{extend:!0}),extendSelectionDownward:a=>Lu(a,"downward",{extend:!0}),extendToNextBoundary:a=>gd(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>gd(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 Wc=null,nf=0,Gf=class tu{static start(y,b,E,ee){var re;tu.element=y,(re=tu.controller)==null||re.abort(),tu.controller=new AbortController;const le={signal:tu.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,le),y.addEventListener("pointerup",ee,le),y.addEventListener("pointercancel",ee,le),Fh(b)&&(tu.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",E,le),window.addEventListener("blur",ee,le),window.addEventListener("mouseup",ee,le))}static stop(){var y;(y=tu.controller)==null||y.abort(),tu.controller=void 0,typeof tu.pointerId=="number"&&(tu.element.releasePointerCapture(tu.pointerId),tu.pointerId=void 0)}};function Fh(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function $0(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const E=a;let ee,re=!1,le=!1,pe="none",ve=!1,Ce=!1;const Te=y.clientX,tt=y.clientY,kt=Date.now(),jt=E.field,qt=setInterval(()=>{ve?jt.scroll({top:0,left:jt.scrollLeft-16}):Ce&&jt.scroll({top:0,left:jt.scrollLeft+16})},32);function $n(){Gf.stop(),re=!1,clearInterval(qt),a.element.classList.remove("tracking"),y&&y.preventDefault()}function Kr(dr){if(!E.hasFocus()){$n();return}const Ur=dr.clientX,vr=dr.clientY,bi=Fh(dr)&&dr.pointerType==="touch"?20:5;if(Date.now()<kt+500&&Math.abs(Te-Ur)<bi&&Math.abs(tt-vr)<bi){dr.preventDefault(),dr.stopPropagation();return}const Pi=jt.getBoundingClientRect();Ce=Ur>Pi.right,ve=Ur<Pi.left;let Di=ee;Fh(dr)&&(dr.isPrimary||(Di=rf(E,dr.clientX,dr.clientY,{bias:0})));const Ma=rf(E,Ur,vr,{bias:Ur<=Te?Ur===Te?0:-1:1});Di>=0&&Ma>=0&&(E.model.extendSelectionTo(Di,Ma),Ho(a)),le&&Oh(E.model)}Wc&&Math.abs(Wc.x-Te)<5&&Math.abs(Wc.y-tt)<5&&Date.now()<Wc.time+500?(nf+=1,Wc.time=kt):(Wc={x:Te,y:tt,time:kt},nf=1);const Wn=jt.getBoundingClientRect();if(Te>=Wn.left&&Te<=Wn.right&&tt>=Wn.top&&tt<=Wn.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ee=rf(a,Te,tt,{bias:0}),ee>=0){if(a.element.classList.add("tracking"),y.shiftKey){const dr=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ee),g0(a.model)||dr?pe="all":pe="selection"}else a.model.at(ee).type==="placeholder"?(a.model.setSelection(ee-1,ee),pe="selection"):((b=a.model.at(ee).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ee,ee+1),pe="selection"):(a.model.position=ee,g0(a.model)?pe="all":pe="selection");a.defaultStyle={},y.detail===3||nf>2?($n(),(y.detail===3||nf===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},pe="all")):re||(re=!0,Gf.start(jt,y,Kr,$n),(y.detail===2||nf===2)&&(le=!0,Oh(a.model),pe="all"))}a.hasFocus()||(pe="none",a.focus({preventScroll:!0}))}else Wc=null;a.stopCoalescingUndo(),pe!=="none"&&(a.model.selectionIsCollapsed&&(pe="all"),Ho(a)),y.preventDefault()}function qv(a,y,b){if(a>=b.left&&a<=b.right&&y>=b.top&&y<=b.bottom)return 0;const E=a-(b.left+b.right)/2,ee=y-(b.top+b.bottom)/2;return E*E+ee*ee}function j0(a,y,b,E,ee){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const re=cc(a,b);if(!re)return[1/0,null];let le=[1/0,null];if(b.hasChildren&&!b.captureSelection&&E>=re.left&&E<=re.right)for(const pe of b.children){const ve=j0(a,y,pe,E,ee);ve[0]<=le[0]&&(le=ve)}return le[1]||(le=[qv(E,ee,re),b]),y.set(b.id,le),le}function eg(a,y,b){const[,E]=j0(a,new Map,a.model.root,y,b);return E}function rf(a,y,b,E){var ee;const re=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!re)return 0;if(y>re.right||b>re.bottom+8)return a.model.lastOffset;if(y<re.left||b<re.top-8)return 0;E=E!=null?E:{},E.bias=(ee=E.bias)!=null?ee:0;let le=eg(a,y,b);const pe=[];let ve=le;for(;ve;)pe.unshift(ve),ve=ve.parent;for(const Te of pe)if(Te.captureSelection){le=Te;break}let Ce=a.model.offsetOf(le);if(Ce<0)return-1;if(le.leftSibling)if(E.bias===0&&le.type!=="placeholder"){const Te=cc(a,le);Te&&y<(Te.left+Te.right)/2&&(Ce=a.model.offsetOf(le.leftSibling))}else E.bias<0&&(Ce=a.model.offsetOf(le.leftSibling));return Ce}var tg=class extends Qi{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 re=JSON.parse(ee);if(re&&Array.isArray(re)){a.snapshot();const le=hc(re),{model:pe}=a;pe.selectionIsCollapsed||pe.deleteAtoms(Cl(pe.selection));const ve=pe.at(pe.position);if(ve.parent instanceof qi){console.assert(ve.parentBranch!==void 0);const Ce=[];let Te=[];le[0].type==="first"&&le.shift(),le[le.length-1].type==="first"&&le.pop();for(const qt of le)qt.type==="first"&&Te.length>0?(Ce.push(Te),Te=[qt]):Te.push(qt);Te.length>0&&Ce.push(Te);let tt=Number(ve.parentBranch[0]),kt=Number(ve.parentBranch[1]);const jt=ve.parent.maxColumns;for(;ve.parent.colCount-kt<Ce.length&&ve.parent.colCount<jt;)ve.parent.addColumn();ve.parent.addChildrenAfter(Ce[0],ve);for(let qt=1;qt<Ce.length;qt++)kt++,kt>=jt&&(kt=0,ve.parent.addRowAfter(tt),tt++),ve.parent.setCell(tt,kt,Ce[qt])}else ve.parent.addChildrenAfter(le.filter(Ce=>Ce.type!=="first"),ve);return pe.position=pe.offsetOf(le[le.length-1]),pe.contentDidChange({inputType:"insertFromPaste"}),Ho(a),!0}}catch(re){}if(ee=typeof y!="string"?y.getData("application/json"):"",ee&&window.MathfieldElement.computeEngine)try{const re=JSON.parse(ee);if(typeof re=="object"&&"latex"in re&&re.latex&&(b=re.latex),!b){const le=window.MathfieldElement.computeEngine.box(re);le&&!le.has("Error")&&(b=le.latex)}b||(E="latex")}catch(re){}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 re;return[re,b]=Eu(b),E==="auto"&&re&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),Ho(a)),a.startRecording(),!0}return!1}insert(a,y,b){var E,ee;const re=typeof y=="string"?y:(ee=(E=window.MathfieldElement.computeEngine)==null?void 0:E.box(y).latex)!=null?ee:"";if(!b.silenceNotifications&&!a.contentWillChange({data:re,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:le}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const pe=a.silenceNotifications;a.silenceNotifications=!0;const ve={"?":"\\placeholder{}","@":"\\placeholder{}"};ve[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Cl(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 Ce=-1;ve[0]?ve["@"]=ve[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(Ce=rg(a),Ce>=0&&(ve["@"]=a.getValue(Ce,a.position,"latex"))),ve[0]||(ve[0]=ve["?"]);let Te=!1;const tt=Ur=>(Te=!0,ve[Ur]);let[kt,jt]=V0(a,y,tt,b);if(!jt)return!1;const qt=jt.length===1&&jt[0].type==="genfrac";qt&&Ce>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(ve["@"]=ve["?"],Te=!1,[kt,jt]=V0(a,y,tt,b)):Ce>=0&&a.deleteAtoms([Ce,a.position]);const{parent:$n}=a.at(a.position),Kr=$n.hasEmptyBranch("body");if(qt&&kt!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&$n instanceof Za&&$n.leftDelim==="("&&Kr){const Ur=$n.parent,vr=$n.parentBranch;Ur.removeChild($n),Ur.setChildren(jt,vr)}const Wn=a.at(a.position);Wn.parent.addChildrenAfter(jt,Wn),kt==="latex"&&typeof y=="string"&&($n==null?void 0:$n.type)==="root"&&Kr&&!Te&&($n.verbatimLatex=y),a.silenceNotifications=pe;const dr=jt[jt.length-1];if(b.selectionMode==="placeholder"){const Ur=jt.flatMap(vr=>[vr,...vr.children]).find(vr=>vr.type==="placeholder");if(Ur){const vr=a.offsetOf(Ur);a.setSelection(vr-1,vr),a.announce("move")}else dr&&(a.position=a.offsetOf(dr))}else b.selectionMode==="before"||(b.selectionMode==="after"?dr&&(a.position=a.offsetOf(dr)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(dr)));return a.contentDidChange({data:re,inputType:"insertText"}),a.silenceNotifications=le,!0}};function V0(a,y,b,E){var ee;let re,le=[];if(typeof y!="string"||E.format==="math-json"){const pe=window.MathfieldElement.computeEngine;if(!pe)return["math-json",[]];[re,y]=["latex",pe.box(y).latex],le=wl(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([re,y]=Ic(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),le=wl(y,{context:a.mathfield.context}),re!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Uf(le)):(E.format==="auto"||(ee=E.format)!=null&&ee.startsWith("latex"))&&(E.format==="auto"&&([re,y]=Ic(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=Eu(y)),le=wl(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Uf(le));return mc(le,E.style),[re!=null?re:"latex",le]}function ng(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof Za&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function Uf(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof Za&&b.leftDelim==="("){let E=0,ee=0,re=0;for(let le=0;b.body[le];le++)b.body[le].type==="genfrac"&&(E++,ee=le),re++;re===0&&E===1&&(a[y]=b.body[ee])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){Uf(y.branch(b));const E=ng(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof qi)for(const b of y.cells)Uf(b)}}}function rg(a){let y=a.at(a.position);if(y.mode==="text"){for(;!y.isFirstSibling&&y.mode==="text";)y=y.leftSibling;return a.offsetOf(y)}const b=y;let E=!1;if(y.type==="mclose"){const 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 tg;var ig=class extends Qi{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"),Ho(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(Cl(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 re=ag(y,a.mathfield.context);if(mc(re,b.style),!re)return!1;const le=a.at(a.position),pe=le.parent.addChildrenAfter(re,le);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(pe)):pe&&(a.position=a.offsetOf(pe))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function ag(a,y){return a=a.replace(/\\/g,"\\textbackslash "),a=a.replace(/#/g,"\\#"),a=a.replace(/\$/g,"\\$"),a=a.replace(/%/g,"\\%"),a=a.replace(/&/g,"\\&"),a=a.replace(/_/g,"\\_"),a=a.replace(/{/g,"\\textbraceleft "),a=a.replace(/}/g,"\\textbraceright "),a=a.replace(/lbrace/g,"\\textbraceleft "),a=a.replace(/rbrace/g,"\\textbraceright "),a=a.replace(/\^/g,"\\textasciicircum "),a=a.replace(/~/g,"\\textasciitilde "),a=a.replace(/£/g,"\\textsterling "),wl(a,{context:y,parseMode:"text"})}new ig;function Bu(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var bo=4,ds=20,dl=2*(ds+bo),Xf=(a,y)=>`
<line x1="${a+ds}" y1="${y+ds}"
x2="${a>y?a+ds:7*ds+10*bo}"
y2="${a<y?y+ds:7*ds+10*bo}"/>
<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>`,U0=(a,y)=>`
<line x1="${a+ds}" y1="${y+ds}"
x2="${a>y?a+ds:7*ds+10*bo}"
y2="${a<y?y+ds:7*ds+10*bo}"/>
<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>`,Yf=(a,y,b)=>`
<svg id="arrow" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<g transform="rotate(${b})" transform-origin="20 20">
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
</g>
</svg>`,og=`
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox=
"-2 -2 ${8*ds+10*bo+5} ${8*ds+10*bo+5}">
<rect
class="MLEP__array-insert-background rows"
x="0"
y="${dl+bo}"
height="${3*dl}"
width="${dl}"
rx="${dl/2}"/>
<rect
class="MLEP__array-insert-background columns"
x="${dl+bo}"
y="0"
height="${dl}"
width="${3*dl}"
rx="${dl/2}"/>
<g data-command='"moveDown"'>
${Yf(2*(bo+dl),2*bo+3*dl,0)}
</g>
<g data-command='"moveUp"'>
${Yf(2*(bo+dl),2*bo+dl,180)}
</g>
<g data-command='"moveToNextWord"'>
${Yf(2*bo+3*dl,2*(bo+dl),-90)}
</g>
<g data-command='"moveToPreviousWord"'>
${Yf(2*bo+dl,2*(bo+dl),90)}
</g>
<g>
<g data-command='"addColumnBefore"'>
${Xf(2*bo+dl,bo)}
</g>
<g data-command='"removeColumn"'>
${U0(2*bo+2*dl,bo)}
</g>
<g data-command='"addColumnAfter"'>
${Xf(2*bo+3*dl,bo)}
</g>
<g data-command='"addRowBefore"'>
${Xf(bo,2*bo+dl)}
</g>
<g data-command='"removeRow"'>
${U0(bo,2*bo+2*dl)}
</g>
<g data-command='"addRowAfter"'>
${Xf(bo,2*bo+3*dl)}
</g>
</svg>`,lg=a=>`
<svg id="matrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","matrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/></svg>`,sg=a=>`
<svg id="pmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","pmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/></svg>`,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>`,ug=a=>`
<svg id="bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","bmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4h-3v16h3"/>
<path class="cls-2" d="m22,4h3v16h-3"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
</svg>`,cg=a=>`
<svg id="vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","vmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
</svg>`,dg=a=>`
<svg id="Vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
data-command='["setEnvironment","Vmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
</svg>`,fg=a=>`
<svg id="cases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","cases"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
<circle cx="13" cy="8" r="1"/>
<circle cx="13" cy="16" r="1"/>
<circle cx="21" cy="8" r="1"/>
<circle cx="21" cy="16" r="1"/>
</svg>`,hg=a=>`
<svg id="rcases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","rcases"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
<circle cx="15" cy="8" r="1"/>
<circle cx="15" cy="16" r="1"/>
<circle cx="7" cy="8" r="1"/>
<circle cx="7" cy="16" r="1"/>
</svg>`,Nh={matrix:lg,pmatrix:sg,bmatrix:ug,Bmatrix:X0,vmatrix:cg,Vmatrix:dg},Rh={cases:fg,rcases:hg,Bmatrix:X0};function pg(a){var y,b;const E=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!E)return;let ee=0;E.forEach(qt=>{(!ee||qt.length>ee)&&(ee=qt.length)});let re=document.getElementById("mathlive-environment-popover");re||(re=Lf("mathlive-environment-popover"),Ms("environment-popover"),Ms("core"),re.setAttribute("aria-hidden","true"));let le;const pe=re.querySelector(".MLEP__environment-controls");pe?le=pe:(le=document.createElement("div"),re.innerHTML="",re.appendChild(le)),le.className="MLEP__environment-controls",le.style.display="flex",le.style.width="100%",le.style.height="100%",le.style.boxSizing="border-box",le.innerHTML=og;let ve=[],Ce="";const Te=a.model.parentEnvironment.environmentName;if(jl(Te)){const qt=vg(Te);Ce=Nh[qt]("active");const $n=Nh,{[qt]:Kr}=$n,Wn=vt($n,[ze(qt)]);ve=Object.values(Wn).map(dr=>dr("inactive"))}else if(Vl(Te)){const qt=gg(Te);Ce=Rh[qt]("active");const $n=Rh,{[qt]:Kr}=$n,Wn=vt($n,[ze(qt)]);ve=Object.values(Wn).map(dr=>dr("inactive"))}else rl(Te)&&(Ce=Nh.matrix("active"),ve=Object.values(Rh).map(qt=>qt("inactive")));const tt=document.createElement("div");tt.className="MLEP__environment-delimiter-controls",tt.style.display="flex",tt.style.flexDirection="column",tt.innerHTML=`
<div class='MLEP__array-delimiter-options'>
${Ce}
${ve.join("")}
</div>`,Ce&&le.appendChild(tt),le.querySelectorAll("[data-command]").forEach(qt=>{const $n=qt.dataset.command;let Kr=$n;try{Kr=JSON.parse($n)}catch(Wn){}qt.addEventListener("mousedown",Wn=>Wn.preventDefault()),Kr&&qt.addEventListener("click",()=>a.executeCommand(Kr))});const jt=(b=a.field)==null?void 0:b.getBoundingClientRect();jt&&(re.style.top=`${window.scrollY+(jt.top-re.clientHeight-15)}px`,re.style.left=`${jt.left+20}px`,re.classList.add("is-visible"))}function zh(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function mg(){document.getElementById("mathlive-environment-popover")&&(bh("mathlive-environment-popover"),x("environment-popover"),x("core"))}function Qf(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&Io(b.environmentName)){const E=a.options.environmentPopoverPolicy;y=E==="auto"||E==="on"}}y?pg(a):zh()}function vg(a){return a.replace("*","")}function gg(a){return a==="dcases"?"cases":a}function Y0(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function Q0(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function _h(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="rtl"||b==="end"&&E==="ltr"||b==="top"||b==="right"?Math.max(0,a-y):a}function yg(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="ltr"||b==="end"&&E==="rtl"||b==="top"||b==="right"?a:a-y}function bg(a,y){var b,E,ee;const re=(b=Y0(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 le=a.getBoundingClientRect(),pe=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let ve=Math.min(pe,(E=y.height)!=null?E:le.height),Ce=_h(y.location.y,ve,y.verticalPos,re);Ce+ve>window.innerHeight-8&&(y.alternateLocation?(Ce=_h(y.alternateLocation.y,ve,y.verticalPos,re),Ce+ve>window.innerHeight-8&&(Ce=void 0)):Ce=void 0),Number.isFinite(Ce)||(Ce=Math.max(8,window.innerHeight-8-ve),8+ve>window.innerHeight-8&&(a.style.bottom="8px")),ve=Math.min(Ce+ve,window.innerHeight-8)-Ce;const Te=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let tt=Math.min(Te,(ee=y.width)!=null?ee:le.width),kt=_h(y.location.x,tt,y.horizontalPos,re);kt+tt>window.innerWidth-8&&(y.alternateLocation?(kt=yg(y.alternateLocation.x,tt,y.verticalPos,re),kt+tt>window.innerWidth-8&&(kt=void 0)):kt=void 0),Number.isFinite(kt)||(kt=Math.max(8,window.innerWidth-8-tt),8+tt>window.innerWidth-8&&(a.style.right="8px")),tt=Math.min(kt+tt,window.innerWidth-8)-kt,re==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-kt-tt).toString()}px`:a.style.left=`${Math.ceil(kt).toString()}px`,a.style.top=`${Math.ceil(Ce).toString()}px`,ve!==le.height&&(a.style.height=`${Math.ceil(ve).toString()}px`),tt!==le.width&&(a.style.width=`${Math.ceil(tt).toString()}px`)}function xg(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function yd(a){return"submenu"in a}function Pu(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 J0={};function Zh(a){let y=J0[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,J0[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,yd(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=Pu(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),Pu(ee)&&(this.checked=Pu(ee)&&((y=bd(ee.checked,a))!=null?y:!1)),(Pu(ee)||yd(ee))&&(this.enabled=(b=bd(ee.enabled,a))!=null?b:!0,this.visible=(E=bd(ee.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Pu(ee)||Hh(ee)||yd(ee))&&(this.label=bd(ee.label,a),this.tooltip=bd(ee.tooltip,a),this.ariaLabel=bd(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(Zh("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Zh("mixedmark"))):a.removeAttribute("aria-checked"),this.ariaLabel&&a.setAttribute("aria-label",this.ariaLabel);const y=document.createElement("span");if(y.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&y.classList.add("heading"),y.innerHTML=this.label,a.append(y),this._tooltip&&a.setAttribute("data-tooltip",this._tooltip),Pu(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=gh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Zh("trailing-chevron"))}get element(){if(this._element)return this._element;if(Kh(this._declaration)){const b=document.createElement("li");return b.setAttribute("part","menu-divider"),b.setAttribute("role","divider"),this._element=b,b}const a=document.createElement("li");this._element=a,(Pu(this._declaration)||Hh(this._declaration)||yd(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(!Pu(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=Y0(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:Q0(b,"trailing",E),y:b.top-4},alternateLocation:{x:Q0(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(Cg(E,y.clientY-a.clientY,b)<=.2)return!1;let re="right";if(this.submenu.element){const le=this.submenu.element.getBoundingClientRect(),pe=this.element.getBoundingClientRect();le.left<pe.left+pe.width/2&&(re="left")}return re==="right"?E>0:E<0}};function Cg(a,y,b){return Math.hypot(a,y)/b}function bd(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 Dd{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(Ce=>Ce.updateState(y));const re=this.hasCheck;this.hasCheck=this._menuItems.some(Ce=>Ce.visible&&Ce.hasCheck),this.hasCheck!==re&&this._menuItems.forEach(Ce=>Ce.updateState(y));let le,pe=0;for(const Ce of this._menuItems)Ce.type==="heading"?(le&&pe===0&&(le.visible=!1),le=Ce,pe=0):Ce.type==="divider"&&le?(le.visible=pe>0,le=void 0,pe=0):le&&Ce.visible&&(pe+=1);le&&(le.visible=pe>0);let ve=!0;for(const Ce of this._menuItems)Ce.type==="divider"?(Ce.visible=!ve,ve=!0):Ce.visible&&(ve=!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,re;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const le=this.activeMenuItem;le.active=!1,(b=le.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}):(re=this._element)==null||re.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),re=1;for(;ee>=b&&ee<=E;){ee+=y>0?1:-1;const le=this._menuItems[ee];if(!le)break;if(le.visible&&le.enabled){if(re===Math.abs(y))return this._menuItems[ee];re+=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 Dd._collator||(Dd._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Dd._collator}findMenuItem(y){var b;this.updateIfDirty();const E=this._menuItems.filter(pe=>pe.type!=="divider"&&pe.visible&&pe.enabled);if(E.length===0)return null;const ee=Math.max(...E.map(pe=>pe.label.length))-y.length;if(ee<0)return null;let re=null,le=0;for(;le<ee&&!re;)re=(b=E.find(pe=>Dd.collator.compare(y,pe.label.substring(le,y.length))===0))!=null?b:null,le++;return re}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),At()&&(this.element.popover="manual",this.element.showPopover()),y.location&&bg(this.element,{location:y.location,alternateLocation:y.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var y,b,E,ee,re;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),At()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(E=(b=this.parentMenu)==null?void 0:b.element)==null||E.focus(),(re=(ee=this._element)==null?void 0:ee.parentNode)==null||re.removeChild(this._element)}set openSubmenu(y){var b,E,ee,re;const le=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((E=this.activeMenuItem.element)==null||E.setAttribute("aria-expanded",le.toString())),(re=(ee=this.activeMenuItem)==null?void 0:ee.element)==null||re.classList.toggle("is-submenu-open",le),this.isSubmenuOpen=le}},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=Fc(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,E,ee;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Fc(y));let re=!0;const le=this.activeSubmenu,pe=le.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":pe==null||pe.select(Fc(y));break;case"ArrowRight":if((pe==null?void 0:pe.type)==="submenu")pe.select(Fc(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!pe)le.activeMenuItem=le.firstMenuItem;else{const ve=(b=le.getMenuItemColumn(pe))!=null?b:-1;if(ve>=0&&ve<((E=le.columnCount)!=null?E:1)-1){const Ce=le.nextMenuItem(1);Ce&&(le.activeMenuItem=Ce)}}break;case"ArrowLeft":if(le===this.rootMenu)pe||(le.activeMenuItem=le.firstMenuItem);else if((pe&&(ee=le.getMenuItemColumn(pe))!=null?ee:-1)<=0||!pe){le.hide();const Ce=le.parentMenu.activeMenuItem;if(Ce){const{element:Te}=Ce;Te==null||Te.focus(),Te==null||Te.classList.remove("is-submenu-open")}}else{const Ce=le.nextMenuItem(-1);Ce&&(le.activeMenuItem=Ce)}break;case"ArrowDown":le.activeMenuItem=le.nextMenuItem(le.columnCount);break;case"ArrowUp":le.activeMenuItem=le.nextMenuItem(-le.columnCount);break;case"Home":case"PageUp":le.activeMenuItem=le.firstMenuItem;break;case"End":case"PageDown":le.activeMenuItem=le.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const ve=le.findMenuItem(this.typingBuffer);ve&&(le.activeMenuItem=ve),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(kf(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const ve=le.findMenuItem(this.typingBuffer);ve&&(le.activeMenuItem=ve),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else re=!1}re&&(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 Du.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),Du.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),Du.state==="open"&&Du.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(Ee(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,Du.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 Sg=np;function rp(a){return Kh(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Pu(a)||yd(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Pu(a)&&typeof a.checked=="function"?!0:yd(a)?a.submenu.some(rp):!1}var Jf=class{};Jf.DELAY=300,Jf.MAX_DISTANCE=10;function wg(a){return new Promise((y,b)=>{const E=Mf(a);E||y(!1);let ee=E;const re=setTimeout(()=>{le.abort(),y(xg(ee,E)<Jf.MAX_DISTANCE)},Jf.DELAY),le=new AbortController,pe=le.signal;for(const ve of["pointermove","pointerup","pointercancel"])window.addEventListener(ve,Ce=>{if(Ce.type==="pointerup"||Ce.type==="pointercancel")clearTimeout(re),le.abort(),y(!1);else if(Ce.type==="pointermove"){const Te=Mf(Ce);Te&&(ee=Te)}},{passive:!0,signal:pe})})}function ip(a,y,b){return yc(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:Mf(E),modifiers:Fc(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:Fc(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=Mf(a);if(yield wg(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};ct(Object.keys(ap),"{body:auto}",{createAtom:a=>new z(Ee(we({},a),{body:ot(a.args[0]),accentChar:ap[a.command.slice(1)]}))}),ct(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=Ge(ot(a.args[0]));return new z(Ee(we({},a),{body:ot(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),ct(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(Ee(we({},a),{body:ot(a.args[0]),svgAccent:"overarc"}))}),ct(["underarc","underparen"],"{body:auto}",{createAtom:a=>new Js(Ee(we({},a),{body:ot(a.args[0]),svgBelow:"underarc"}))}),ct("utilde","{body:auto}",{createAtom:a=>{const y=ot(a.args[0]),b=Ge(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new Js(Ee(we({},a),{body:y,svgBelow:E,boxType:xu(y)}))}}),ct("^","{:string}",{createAtom:a=>{var y;return new tr(Ee(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:"^"}))}}),ct("`","{:string}",{createAtom:a=>{var y;return new tr(Ee(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:"`"}))}}),ct("'","{:string}",{createAtom:a=>{var y;return new tr(Ee(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:"'"}))}}),ct('"',"{:string}",{createAtom:a=>{var y,b;return new tr(Ee(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]:'"'}))}}),ct(".","{:string}",{createAtom:a=>{var y,b;return new tr(Ee(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]:"."}))}}),ct("=","{:string}",{createAtom:a=>{var y,b;return new tr(Ee(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]:"="}))}}),ct("~","{:string}",{createAtom:a=>{var y;return new tr(Ee(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"}))}}),ct("c","{:string}",{createAtom:a=>{var y;return new tr(Ee(we({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),ct("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 le=E[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const pe of le){const ve=pe.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(ve)ee.strokeWidth=ve[1],ee.strokeStyle=ve[2],ee.strokeColor=ve[3];else{const Ce=pe.match(/\s*([a-z]*)\s*=\s*"(.*)"/);Ce&&(Ce[1]==="mathbackground"?ee.backgroundcolor=Ce[2]:Ce[1]==="mathcolor"?ee.strokeColor=Ce[2]:Ce[1]==="padding"?ee.padding=Ce[2]:Ce[1]==="shadow"&&(ee.shadow=Ce[2]))}}ee.strokeStyle==="dashed"?ee.svgStrokeStyle="5,5":ee.strokeStyle==="dotted"&&(ee.svgStrokeStyle="1,5")}ee.borderStyle=`${ee.strokeWidth} ${ee.strokeStyle} ${ee.strokeColor}`;const re={};return((b=E[0])!=null?b:"").split(/[, ]/).filter(le=>le.length>0).forEach(le=>{re[le.toLowerCase()]=!0}),new Kd(a.command,ot(E[2]),re,ee)}}),ct("cancel","{body:auto}",{createAtom:a=>{var y;return new Kd(a.command,ot(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:{}})}}),ct("bcancel","{body:auto}",{createAtom:a=>{var y;return new Kd(a.command,ot(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:{}})}}),ct("xcancel","{body:auto}",{createAtom:a=>{var y;return new Kd(a.command,ot(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:{}})}}),ct(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new Js(Ee(we({},a),{body:ot((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),ct("overbrace","{:auto}",{createAtom:a=>new Js(Ee(we({},a),{body:ot(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),ct(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new Js(Ee(we({},a),{body:ot(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),ct(["underbrace"],"{:auto}",{createAtom:a=>new Js(Ee(we({},a),{body:ot(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),ct(["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,re;return new Js(Ee(we({},a),{svgBody:a.command.slice(1),above:((b=ot((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:ot((E=a.args)==null?void 0:E[1]),below:(re=ot((ee=a.args)==null?void 0:ee[0]))!=null?re: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)}`}),ct(["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 Oc(a.command.slice(1),Ee(we({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),ct(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new Oc({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],Ee(we({},a),{limits:"over-under",variant:"main"}))}),ct(["lim","mod"],"",{ifMode:"math",createAtom:a=>new Oc(a.command.slice(1),Ee(we({},a),{limits:"over-under",variant:"main"}))}),ct(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new Oc(a.command.slice(1),Ee(we({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),ct(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new tr(Ee(we({},a),{body:ot(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 Rr("\xB0",{style:Ee(we({},a.style),{variant:"normal",variantStyle:"up"})});return new Rr([b,ee],{type:"inner",isSelected:a.isSelected,caret:E})}}),ct("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new o0(Ee(we({},a),{body:ot(a.args[1]),index:a.args[0]?ot(a.args[0]):void 0}))}),ct(["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 ud(E[0]?ot(E[0]):[new Oi],E[1]?ot(E[1]):[new Oi],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}`:io(a.command,b,E)}}),ct(["brace","brack"],"",{infix:!0,createAtom:a=>new ud(ot(a.args[0]),ot(a.args[1]),Ee(we({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>ca([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),ct(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new ud(ot(E[0]),ot(E[1]),Ee(we({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>ca([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),ct(["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 ud(ot(E[0]),ot(E[1]),Ee(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)}`}),ct("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new ud(ot(a.args[0]),ot(a.args[1]),Ee(we({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),ct(["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)],Ee(we({},a),{limits:"auto",variant:"main"}))}),ct("smallint","",{ifMode:"math",createAtom:a=>new Oc("\u222B",Ee(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"};ct(Object.keys(op),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=op[y.slice(1)];return new fh(b,Ee(we({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),ct(["Re","Im"],"",{ifMode:"math",createAtom:a=>new Oc({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],Ee(we({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),ct("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new r0(Ee(we({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),ct("the","{:value}",{createAtom:a=>new tr(Ee(we({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new wa({parent:y},a.style);let ee="";a.isSelected&&(ee+=" ML__selected");const re=E.evaluate(a.args[0]);return new Rr(((b=Ao(re))!=null?b:"").split("").map(le=>new Rr(le,{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=Ao(a.args[0]))!=null?y:"\\relax"}`}}),ct("mathtip","{:auto}{:math}",{createAtom:a=>new hh(Ee(we({},a),{body:ot(a.args[0]),tooltip:ot(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${tr.serialize([a.tooltip],Ee(we({},y),{defaultMode:"math"}))}}`}),ct("texttip","{:auto}{:text}",{createAtom:a=>new hh(Ee(we({},a),{body:ot(a.args[0]),tooltip:ot(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${tr.serialize([a.tooltip],Ee(we({},y),{defaultMode:"text"}))}}`}),ct("error","{:math}",{createAtom:a=>new tr(Ee(we({},a),{body:ot(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),ct("ensuremath","{:math}",{createAtom:a=>new tr(Ee(we({},a),{body:ot(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(Ee(we({},y),{defaultMode:"math"}))}}`}),ct("color","{:value}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Ao(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),ct("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Ao(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),ct("boxed","{content:math}",{createAtom:a=>new Yo(Ee(we({},a),{body:ot(a.args[0]),framecolor:{string:"black"}}))}),ct("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimBackgroundColor:(E=Ao(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ee=y[0])!=null?ee:{string:"yellow"})}}}),ct("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new Yo(Ee(we({},a),{body:ot(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(Ee(we({},y),{defaultMode:"text"})):io(a.command,(b=Ao(a.framecolor))!=null?b:"",(E=Ao(a.backgroundcolor))!=null?E:"",a.bodyToLatex(Ee(we({},y),{defaultMode:"text"})))}}),ct("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=ot(a.args[1]);return b?new Yo(Ee(we({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new Yo(Ee(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 re=[];a.padding&&re.push((b=Ao(a.padding))!=null?b:""),a.border&&re.push(`border: ${a.border}`),a.backgroundcolor&&re.push((E=Ao(a.backgroundcolor))!=null?E:""),ee+=`[${re.join(",")}]`}return io(ee,a.bodyToLatex(y))}}),ct(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new tr(Ee(we({},a),{body:ot(a.args[0])})),render:(a,y)=>{const b=new wa({parent:y,mathstyle:a.command.slice(1)},a.style),E=tr.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):`{${ca([a.command,a.bodyToLatex(y)])}}`}),ct(["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]})}),ct("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),ct("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),ct("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),ct("selectfont","",{ifMode:"text",applyStyle:()=>({})}),ct("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),ct(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new tr(Ee(we({},a),{body:ot(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),ct("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),ct("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),ct("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),ct("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),ct("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),ct("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),ct("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),ct("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),ct("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),ct("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),ct("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),ct("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),ct("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),ct("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),ct("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),ct("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),ct("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),ct("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),ct("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),ct("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),ct("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),ct("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),ct("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),ct("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),ct("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),ct("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),ct("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),ct(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),ct(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),ct("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),ct("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),ct("mbox","{:text}",{ifMode:"math",createAtom:a=>new tr(Ee(we({},a),{type:"mord",body:ot(a.args[0]),mode:"math"})),serialize:(a,y)=>io("\\mbox",a.bodyToLatex(Ee(we({},y),{defaultMode:"text"})))}),ct("text","{:text}",{ifMode:"math",applyMode:"text"}),ct(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new tr(Ee(we({},a),{body:ot(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:""})}}),ct(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new tr(Ee(we({},a),{body:ot(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}}),ct("htmlData","{data:string}{content:auto}",{createAtom:a=>new tr(Ee(we({},a),{body:ot(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}}),ct(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new tr(Ee(we({},a),{body:ot(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}}),ct("em","{:rest}",{createAtom:a=>new tr(Ee(we({},a),{body:ot(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"})}),ct("emph","{:auto}",{createAtom:a=>new tr(Ee(we({},a),{body:ot(a.args[1])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\emph{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})});var lp={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};ct(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new i0(Ee(we({},a),{delim:(y=a.args[0])!=null?y:".",size:lp[a.command].size,delimType:lp[a.command].mclass}))}}),ct(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new Wd(Ee(we({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),ct(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new Wd(Ee(we({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),ct("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new tr(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===Zu||E===Rs)&&(b=1),(E===zs||E===vl)&&(b=2),(E===Kl||E===nl)&&(b=3);const ee=ot(a.args[b]);return tr.createBox(y,ee)},serialize:(a,y)=>`\\mathchoice{${tr.serialize(a.args[0],y)}}{${tr.serialize(a.args[1],y)}}{${tr.serialize(a.args[2],y)}}{${tr.serialize(a.args[3],y)}}`}),ct("mathop","{:auto}",{createAtom:a=>new tr(Ee(we({},a),{type:"mop",body:ot(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=tr.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 Rr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[io(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)),ca(b)}}),ct(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new tr(Ee(we({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:ot(a.args[0])}))}),ct(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=ot(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 tr(Ee(we({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=tr.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 Rr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[io(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)),ca(b)}}),ct(["char","unicode"],"{charcode:value}",{createAtom:a=>new tr(Ee(we({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${Ao((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)}}),ct("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new tr(a),render:(a,y)=>{var b,E,ee;const re=new wa({parent:y,mathstyle:"textstyle"},a.style),le=re.toEm((b=a.args[0])!=null?b:{dimension:0}),pe=re.toEm((E=a.args[1])!=null?E:{dimension:10}),ve=re.toEm((ee=a.args[2])!=null?ee:{dimension:10}),Ce=new Rr(null,{classes:"rule",type:"ord"});return Ce.width=pe,Ce.height=ve+le,Ce.depth=-le,Ce.setStyle("border-right-width",pe,"em"),Ce.setStyle("border-top-width",ve,"em"),Ce.setStyle("border-color",a.style.color),Ce.setStyle("vertical-align",le,"em"),a.isSelected&&Ce.setStyle("opacity","50%"),a.bind(re,Ce),a.caret&&(Ce.caret=a.caret),Ce.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${Ao(a.args[0])}]`:""}{${Ao(a.args[1])}}{${Ao(a.args[2])}}`}),ct(["overline","underline"],"{:auto}",{createAtom:a=>new tr(Ee(we({},a),{body:ot(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new wa({parent:y,mathstyle:"cramp"},a.style),ee=tr.createBox(E,a.body);if(!ee)return null;const re=E.metrics.defaultRuleThickness/E.scalingFactor,le=new Rr(null,{classes:b+"-line"});le.height=re,le.maxFontSize=re*1.125*E.scalingFactor;let pe;return b==="overline"?pe=new Ua({shift:0,children:[{box:ee},3*re,{box:le},re]}):pe=new Ua({top:ee.height,children:[re,{box:le},3*re,{box:ee}]}),a.caret&&(pe.caret=a.caret),new Rr(pe,{classes:b,type:"ignore"})}}),ct("overset","{:auto}{base:auto}",{createAtom:a=>{const y=ot(a.args[1]);return new Js(Ee(we({},a),{above:ot(a.args[0]),body:y,skipBoundary:!1,boxType:xu(y)}))},serialize:(a,y)=>io(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),ct("underset","{:auto}{base:auto}",{createAtom:a=>{const y=ot(a.args[1]);return new Js(Ee(we({},a),{below:ot(a.args[0]),body:y,skipBoundary:!1,boxType:xu(y)}))},serialize:(a,y)=>io(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),ct("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=ot(a.args[2]);return new Js(Ee(we({},a),{above:ot(a.args[0]),below:ot(a.args[1]),body:y,skipBoundary:!1,boxType:xu(y)}))},serialize:(a,y)=>io(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),ct(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new Js(Ee(we({},a),{body:ot(a.args[2]),above:ot(a.args[1]),below:ot(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>io(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),ct("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ee;return new Zd(Ee(we({},a),{body:ot(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}))}}),ct(["vphantom"],"{:auto}",{createAtom:a=>new Zd(Ee(we({},a),{body:ot(a.args[0]),isInvisible:!0,smashWidth:!0}))}),ct(["hphantom"],"{:auto}",{createAtom:a=>new Zd(Ee(we({},a),{body:ot(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),ct(["phantom"],"{:auto}",{createAtom:a=>new Zd(Ee(we({},a),{body:ot(a.args[0]),isInvisible:!0}))}),ct("not","{:math}",{createAtom:a=>{const y=ot(a.args[0]);return y.length===0?new tr(Ee(we({},a),{type:"mrel",value:"\uE020"})):new tr(Ee(we({},a),{body:[new Tc(Ee(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{${tr.serialize(b.group,y)}}`:`\\not${tr.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":xu(ot(a.args[0])),ee=tr.createBox(y,a.body,{type:E});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)}}),ct(["ne","neq"],"",{createAtom:a=>new tr(Ee(we({},a),{type:"mrel",body:[new Tc(Ee(we({},a),{body:"\uE020",align:"right",boxType:"rel"})),new tr(Ee(we({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),ct("rlap","{:auto}",{createAtom:a=>new Tc(Ee(we({},a),{body:ot(a.args[0]),align:"right"}))}),ct("llap","{:auto}",{createAtom:a=>new Tc(Ee(we({},a),{body:ot(a.args[0]),align:"left"}))}),ct("mathrlap","{:math}",{createAtom:a=>new Tc(Ee(we({},a),{body:ot(a.args[0]),align:"left"}))}),ct("mathllap","{:math}",{createAtom:a=>new Tc(Ee(we({},a),{body:ot(a.args[0]),align:"left"}))}),ct("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new Yo(Ee(we({},a),{body:ot(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return io("\\raisebox",(b=Ao(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),ct("raise","{:value}{:auto}",{createAtom:a=>{var y;return new Yo(Ee(we({},a),{body:ot(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return io("\\raise",(b=Ao(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),ct("lower","{:value}{:auto}",{createAtom:a=>{var y;return new Yo(Ee(we({},a),{body:ot(a.args[1]),padding:{dimension:0},offset:(y=ns(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return io("\\lower",(E=Ao(ns((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),Be("0123456789/@.?!"),ft(65,90),ft(97,122),Be([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Be([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Be([["\\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]]),Be([["\\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"),Be([["\\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"]]),Be([["\\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"]]),Be([["\\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"),Be([["+",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"),Be([["\\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"),Be([["\\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]]),Be([["=",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"),Be([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Be([["\\wp",8472],["\\aleph",8501]]),Be([["\\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"),Be([["\\ ",160],["~",160]],"space"),ct(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new Wd(a)}),ct("space","",{createAtom:a=>new Wd(a)}),Be([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Be([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Be([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var sp="<mo>&#x2061;</mo>",qf="<mo>&#8290;</mo>";function eh(a){return a.replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function co(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Eg(a,y,b){var E,ee,re,le,pe,ve,Ce,Te,tt,kt,jt;let qt=!1;y=y!=null?y:a.atoms.length;let $n="",Kr="",Wn=a.atoms[a.index];const dr=(ee=(E=Wn.style)==null?void 0:E.variant)!=null?ee:"",Ur=(le=(re=Wn.style)==null?void 0:re.variantStyle)!=null?le:"";let vr="";if(dr||Ur){const Pi=Yt(Wn.value,(pe=Wn.style)==null?void 0:pe.variant,(ve=Wn.style)==null?void 0:ve.variantStyle);if(Pi!==Wn.value)return a.index+=1,$n=`<mi${co(Wn.id,b)}>${Pi}</mi>`,Vu($n,a,b)||(a.mathML+=$n,a.lastType="mi"),!0;vr=(Ce={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"}[Ur+dr])!=null?Ce:"",vr=` mathvariant="${vr}"`}const bi={"\\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(Wn.command==="!")return a.index+=1,$n="<mo>!</mo>",Vu($n,a,b)||(a.mathML+=$n,a.lastType="mo"),!0;if(bi[Wn.command]){a.index+=1;let Pi=`<mi${co(Wn.id,b)}${vr}>${bi[Wn.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(Pi=qf+Pi),Vu(Pi,a,b)||(a.mathML+=Pi,a.lastType="mi"),!0}if(Wn.command==="\\operatorname")Kr=xd(Wn.body),a.index+=1;else if(dr||Ur)for(;a.index<y&&(Wn.type==="mord"||Wn.type==="macro")&&!Wn.isDigit()&&dr===((tt=(Te=Wn.style)==null?void 0:Te.variant)!=null?tt:"")&&Ur===((jt=(kt=Wn.style)==null?void 0:kt.variantStyle)!=null?jt:"");)Kr+=xd([Wn]),a.index+=1,Wn=a.atoms[a.index];else(Wn.type==="mord"||Wn.type==="macro")&&!Wn.isDigit()&&(Kr+=xd([Wn]),a.index+=1);if(Kr.length>0){qt=!0,$n=`<mi${vr}>${Kr}</mi>`;const Pi=a.lastType;$n.endsWith(">f</mi>")||$n.endsWith(">g</mi>")?($n+=sp,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test($n)?"mo":"mi",Vu($n,a,b)||((Pi==="mi"||Pi==="mn"||Pi==="mtext"||Pi==="fence")&&($n=qf+$n),a.mathML+=$n)}return qt}function Mg(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function kg(a){let y=-1,b=a.index,E=!1,ee=!1;for(;b<a.atoms.length&&!E&&!ee;){const re=a.atoms[b];E=!re.isDigit(),ee=!E&&re.superscript!==void 0,b++}return ee&&(y=b-1),y}function Vu(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 re=y.lastType;y.lastType="";const le=Wa(ee.superscript,b);y.lastType="";const pe=Wa(ee.subscript,b);if(y.lastType=re,!le&&!pe)return!1;let ve="";return le&&pe?ve=`<msubsup>${a}${pe}${le}</msubsup>`:le?ve=`<msup>${a}${le}</msup>`:pe&&(ve=`<msub>${a}${pe}</msub>`),y.mathML+=ve,y.lastType="",!0}function Dg(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 ${co(a.atoms[E].id,b)}>${ee}</mtext>`,a.lastType="mtext",!0):!1}function Ag(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="",re=kg(a);for(re>=0&&re<y&&(y=re);a.index<y&&a.atoms[a.index].isDigit();)ee+=a.atoms[a.index].asDigit(),a.index+=1;return ee.length<=0?!1:(ee="<mn"+co(a.atoms[E].id,b)+">"+ee+"</mn>",re<0&&Mg(a)&&(re=a.index,a.index+=1),Vu(ee,a,b)||(a.mathML+=ee,a.lastType="mn"),!0)}function Lg(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",re="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let le=!1,pe=0;const ve=a.index;let Ce=-1,Te=ve+1;for(;Te<y&&!le;)a.atoms[Te].type==="mopen"?pe+=1:a.atoms[Te].type==="mclose"&&(pe-=1),pe===-1&&(le=!0,Ce=Te),Te+=1;le&&(ee="<mrow>",ee+=$c(a.atoms[ve],b),ee+=Wa(a.atoms,b,ve+1,Ce),ee+=$c(a.atoms[Ce],b),ee+="</mrow>",a.index=Ce+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=qf),Vu(ee,a,b)&&(E=!0,a.lastType="",ee=""),re="fence")}return ee.length>0&&(E=!0,a.mathML+=ee,a.lastType=re),E}function Bg(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",re="";const le=a.atoms[a.index];if(!le)return!1;const pe={"\\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(pe[le.command]){a.index+=1;const ve=`<mo${co(le.id,b)}>${pe[le.command]}</mo>`;return Vu(ve,a,b)||(a.mathML+=ve,a.lastType="mo"),!0}if(a.index<y&&(le.type==="mbin"||le.type==="mrel"))ee+=Wh(a.atoms[a.index],b),a.index+=1,re="mo";else if(a.index<y&&(le.type==="mop"||le.type==="operator"||le.type==="extensible-symbol")){if(le.subsupPlacement==="over-under"&&(le.superscript||le.subscript)){const ve=$c(le,b);return le.superscript&&le.subscript?(ee+="<munderover>"+ve,ee+=Wa(le.subscript,b),ee+=Wa(le.superscript,b),ee+="</munderover>"):le.superscript?(ee+="<mover>"+ve,ee+=Wa(le.superscript,b),ee+="</mover>"):le.subscript&&(ee+="<munder>"+ve,ee+=Wa(le.subscript,b),ee+="</munder>"),a.mathML+=ee,a.lastType="mo",a.index+=1,!0}{const ve=a.atoms[a.index],Ce=ve.value==="\\operatorname",Te=Ce?'<mi class="MathML-Unit"'+co(ve.id,b)+">"+xd(ve.value)+"</mi>":$c(ve,b);ee+=Te,!Ce&&!/^<mo>(.*)<\/mo>$/.test(Te)?(ee+=sp,re="applyfunction"):re=Ce?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ee)&&(ee=qf+ee),a.index+=1}return ee.length>0&&(E=!0,Vu(ee,a,b)||(a.mathML+=ee,a.lastType=re)),E}function Wa(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 tr)ee.mathML=Wh(a,y);else if(Array.isArray(a)){ee.atoms=a;let re=0;for(E=E||(a?a.length:0);ee.index<E;)if(Dg(ee,E,y)||Ag(ee,E,y)||Eg(ee,E,y)||Bg(ee,E,y)||Lg(ee,E,y))re+=1;else if(ee.index<E){let le=Wh(ee.atoms[ee.index],y);ee.lastType==="mn"&&le.length>0&&ee.atoms[ee.index].type==="genfrac"&&(le="<mo>&#x2064;</mo>"+le),ee.atoms[ee.index].type==="genfrac"?ee.lastType="mfrac":ee.lastType="",ee.index+=1,Vu(le,ee,y)?re+=1:le.length>0&&(ee.mathML+=le,re+=1)}re>1&&(ee.mathML="<mrow>"+ee.mathML+"</mrow>")}return ee.mathML}function $c(a,y){let b="";const E=xd(a.value);return E&&(b="<mo"+co(a.id,y)+">"+E+"</mo>"),b}function xd(a){if(!a)return"";if(typeof a=="string")return eh(a);if(!Array.isArray(a)&&typeof a.body=="string")return eh(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return eh(y)}function Wh(a,y){var b,E,ee,re,le,pe,ve,Ce,Te,tt,kt,jt,qt,$n,Kr,Wn,dr,Ur,vr,bi,Pi,Di;if(a.mode==="text")return`<mi${co(a.id,y)}>${a.value}</mi>`;const Ma={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"},oo={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Qr="",Ws="",Tu,eu,Ml,$s,fs,fo;const{command:Jo}=a;if(a.command==="\\error")return`<merror${co(a.id,y)}>${Wa(a.body,y)}</merror>`;const kl={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Ou={"\\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":Qr=Wa(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(Qr+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(Qr+="<mo>"+(kl[a.leftDelim]||a.leftDelim)+"</mo>")),Qr+="<mtable",a.colFormat){for(Qr+=' columnalign="',Ml=0;Ml<a.colFormat.length;Ml++)a.colFormat[Ml].align&&(Qr+={l:"left",c:"center",r:"right"}[a.colFormat[Ml].align]+" ");Qr+='"'}for(Qr+=">",eu=0;eu<a.array.length;eu++){for(Qr+="<mtr>",Tu=0;Tu<a.array[eu].length;Tu++)Qr+="<mtd>"+Wa(a.array[eu][Tu],y)+"</mtd>";Qr+="</mtr>"}Qr+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(Qr+="<mo>"+(kl[a.leftDelim]||a.rightDelim)+"</mo>"),Qr+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(Qr+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(Qr+="<mo"+co(a.id,y)+">"+(kl[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(Qr+="<mfrac>",Qr+=Wa(a.above,y)||"<mi>&nbsp;</mi>",Qr+=Wa(a.below,y)||"<mi>&nbsp;</mi>",Qr+="</mfrac>"):(Qr+="<mtable"+co(a.id,y)+">",Qr+="<mtr>"+Wa(a.above,y)+"</mtr>",Qr+="<mtr>"+Wa(a.below,y)+"</mtr>",Qr+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(Qr+="<mo"+co(a.id,y)+">"+(kl[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(Qr+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(Qr+="<msqrt"+co(a.id,y)+">",Qr+=Wa(a.body,y),Qr+="</msqrt>"):(Qr+="<mroot"+co(a.id,y)+">",Qr+=Wa(a.body,y),Qr+=Wa(a.above,y),Qr+="</mroot>");break;case"leftright":const Fu=a,Nu=Fu.leftDelim;Qr="<mrow>",Nu&&Nu!=="."&&(Qr+=`<mo${co(a.id,y)}>${(b=kl[Nu])!=null?b:Nu}</mo>`),a.body&&(Qr+=Wa(a.body,y));const Ru=Fu.matchingRightDelim();Ru&&Ru!=="."&&(Qr+=`<mo${co(a.id,y)}>${(E=kl[Ru])!=null?E:Ru}</mo>`),Qr+="</mrow>";break;case"sizeddelim":case"delim":Qr+=`<mo${co(a.id,y)}>${kl[a.value]||a.value}</mo>`;break;case"accent":Qr+='<mover accent="true"'+co(a.id,y)+">",Qr+=Wa(a.body,y),Qr+="<mo>"+(Ou[Jo]||a.accent)+"</mo>",Qr+="</mover>";break;case"line":case"overlap":break;case"overunder":fs=a.above,$s=a.below,(a.svgAbove||fs)&&(a.svgBelow||$s)?fo=a.body:fs&&fs.length>0?(fo=a.body,(re=(ee=a.body)==null?void 0:ee[0])!=null&&re.below?($s=a.body[0].below,fo=a.body[0].body):((pe=(le=a.body)==null?void 0:le[0])==null?void 0:pe.type)==="first"&&((Ce=(ve=a.body)==null?void 0:ve[1])!=null&&Ce.below)&&($s=a.body[1].below,fo=a.body[1].body)):$s&&$s.length>0&&(fo=a.body,(tt=(Te=a.body)==null?void 0:Te[0])!=null&&tt.above?(fs=a.body[0].above,fo=a.body[0].body):((jt=(kt=a.body)==null?void 0:kt[0])==null?void 0:jt.type)==="first"&&(($n=(qt=a.body)==null?void 0:qt[1])!=null&&$n.above)&&(fs=a.body[1].overscript,fo=a.body[1].body)),(a.svgAbove||fs)&&(a.svgBelow||$s)?(Qr+=`<munderover ${co(a.id,y)}>`,Qr+=(Kr=Ma[a.svgBody])!=null?Kr:Wa(fo,y),Qr+=(Wn=Ma[a.svgBelow])!=null?Wn:Wa($s,y),Qr+=(dr=Ma[a.svgAbove])!=null?dr:Wa(fs,y),Qr+="</munderover>"):a.svgAbove||fs?(Qr+=`<mover ${co(a.id,y)}>`+((Ur=Ma[a.svgBody])!=null?Ur:Wa(fo,y)),Qr+=(vr=Ma[a.svgAbove])!=null?vr:Wa(fs,y),Qr+="</mover>"):(a.svgBelow||$s)&&(Qr+=`<munder ${co(a.id,y)}>`+((bi=Ma[a.svgBody])!=null?bi:Wa(fo,y)),Qr+=(Pi=Ma[a.svgBelow])!=null?Pi:Wa($s,y),Qr+="</munder>");break;case"placeholder":Qr+="?";break;case"mord":{Qr=typeof a.value=="string"?a.value:Jo,Jo==="\\char"?Qr="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":Qr.length>0&&Qr.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?Qr="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?Qr=a.value.charAt(0):(console.error("Did not expect this"),Qr=""));const mu=/\d/.test(Qr)?"mn":"mi";Qr=`<${mu}${co(a.id,y)}>${eh(Qr)}</${mu}>`;break}case"mbin":case"mrel":case"minner":Qr=$c(a,y);break;case"mpunct":Qr='<mo separator="true"'+co(a.id,y)+">"+Jo+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(Qr="<mo"+co(a.id,y)+">",Qr+=Jo==="\\operatorname"?a.body:Jo||a.body,Qr+="</mo>");break;case"box":Qr='<menclose notation="box"',a.backgroundcolor&&(Qr+=' mathbackground="'+a.backgroundcolor+'"'),Qr+=co(a.id,y)+">"+Wa(a.body,y)+"</menclose>";break;case"spacing":Qr+='<mspace width="'+((Di=oo[Jo])!=null?Di:0)+'em"/>';break;case"enclose":Qr='<menclose notation="';for(const mu in a.notation)Object.prototype.hasOwnProperty.call(a.notation,mu)&&a.notation[mu]&&(Qr+=Ws+mu,Ws=" ");Qr+=co(a.id,y)+'">'+Wa(a.body,y)+"</menclose>";break;case"prompt":Qr='<menclose notation="roundexbox""">'+Wa(a.body,y)+"</menclose>";break;case"space":Qr+="&nbsp;";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Qr+=$c(a,y);break;case"mclose":Qr+=$c(a,y);break;case"macro":{const mu=a.command+xd(a.macroArgs);mu&&(Qr+=`<mo ${co(a.id,y)}>${mu}</mo>`)}break;case"latexgroup":Qr+=Wa(a.body,y);break;case"latex":Qr+="<mtext"+co(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":Qr+=Wa(a.body,y);break;case"text":Qr+=`<mtext ${co(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${co(a.id,y)} displaystyle="true">${Wa(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${co(a.id,y)} displaystyle="false">${Wa(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return Qr}var Cd={"\\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"},$h={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 Pg(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function af(a){let y=0;if(Ie(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Ig(a){if(Ie(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function up(a){let y="";if(Ie(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Tg(a){return a?a.map(y=>y.value).join(""):""}function Ca(a,y){var b,E,ee,re,le;function pe(Te){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(Te)?` <say-as interpret-as="character">${Te}</say-as>`:/[A-Z]/.test(Te)?`capital <say-as interpret-as="character">${Te.toLowerCase()}</say-as>`:Te:/[a-z]/.test(Te)?" '"+Te.toUpperCase()+"'":/[A-Z]/.test(Te)?" 'capital "+Te.toUpperCase()+"'":Te}function ve(Te){return"<emphasis>"+Te+"</emphasis>"}if(!y)return"";let Ce="";if(Ie(y)){let Te=!1,tt=!1;for(let kt=0;kt<y.length;kt++)y[kt].type!=="first"&&(y[kt].mode!=="text"&&(tt=!1),kt<y.length-2&&y[kt].type==="mopen"&&y[kt+2].type==="mclose"&&y[kt+1].type==="mord"?(Ce+=" of ",Ce+=ve(Ca(a,y[kt+1])),kt+=2):y[kt].mode==="text"?tt?Ce+=(b=y[kt].value)!=null?b:" ":(tt=!0,Ce+=Ca("text",y[kt])):y[kt].isDigit()?Te?Ce+=y[kt].asDigit():(Te=!0,Ce+=Ca(a,y[kt])):(Te=!1,Ce+=Ca(a,y[kt])))}else if(y.mode==="text")y.id&&a==="math"&&(Ce+='<mark name="'+y.id.toString()+'"/>'),Ce+=y.value;else{y.id&&a==="math"&&(Ce+='<mark name="'+y.id.toString()+'"/>');let Te="",tt="",kt="",jt=!1;const{command:qt}=y;switch(qt){case"\\vec":return"vector "+Ca(a,y.body);case"\\acute":return Ca(a,y.body)+" acute";case"\\grave":return Ca(a,y.body)+" grave";case"\\dot":return"dot over"+Ca(a,y.body);case"\\ddot":return"double dot over"+Ca(a,y.body);case"\\mathring":return"ring over"+Ca(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+Ca(a,y.body);case"\\bar":return Ca(a,y.body)+" bar";case"\\breve":return Ca(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Ca(a,y.body);case"\\hat":case"\\widehat":return"hat over"+Ca(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Ca(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+Ca(a,y.body)}switch(y.type){case"prompt":const $n=y.body.length>1?'start input . <break time="500ms"/> '+Ca(a,y.body)+'. <break time="500ms"/> end input':"blank";Ce+=' <break time="300ms"/> '+$n+'. <break time="700ms"/>'+((E=y.correctness)!=null?E:"")+' . <break time="700ms"/> ';break;case"array":const Kr=y.array,Wn=y.environmentName;if(Object.keys($h).includes(Wn)){Ce+=` begin ${$h[Wn]} `;for(let vr=0;vr<Kr.length;vr++){vr>0&&(Ce+=","),Ce+=` row ${vr+1} `;for(let bi=0;bi<Kr[vr].length;bi++)bi>0&&(Ce+=","),Ce+=` column ${bi+1}: `,Ce+=Ca("math",Kr[vr][bi])}Ce+=` end ${$h[Wn]} `}break;case"group":qt==="\\ne"?Ce+=" not equal ":(qt==="\\not"&&(Ce+=" not "),Ce+=Ca("math",y.body));break;case"root":Ce+=Ca("math",y.body);break;case"genfrac":if(Te=Ca("math",y.above),tt=Ca("math",y.below),af(y.above)&&af(y.below)){const bi={"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)];bi?Ce=bi:Ce+=Te+" over "+tt}else Ce+=' the fraction <break time="150ms"/>'+Te+' over <break time="150ms"/>'+tt+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(kt=Ca("math",y.body),y.hasEmptyBranch("above"))Ce+=af(y.body)?" the square root of "+kt+" , ":' the square root of <break time="200ms"/>'+kt+'. <break time="200ms"/> End square root';else{let vr=Ca("math",y.above);vr=vr.trim();const bi=vr.replace(/<mark([^/]*)\/>/g,"");bi==="3"?Ce+=' the cube root of <break time="200ms"/>'+kt+'. <break time="200ms"/> End cube root':bi==="n"?Ce+=' the nth root of <break time="200ms"/>'+kt+'. <break time="200ms"/> End root':Ce+=' the root with index: <break time="200ms"/>'+vr+', of <break time="200ms"/>'+kt+'. <break time="200ms"/> End root'}break;case"leftright":{const vr=y;Ce+=(ee=vr.leftDelim?Cd[vr.leftDelim]:void 0)!=null?ee:vr.leftDelim,Ce+=Ca("math",y.body),Ce+=(re=vr.rightDelim?Cd[vr.rightDelim]:void 0)!=null?re:vr.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const dr=qt.replace(/^\\/g,""),Ur=rn()[dr];Ur&&(Ur!=null&&Ur.expand?Ce+=Ca("math",y.body):Ce+=`${dr} `);break;case"placeholder":Ce+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(qt==="\\mathbin"||qt==="\\mathrel"||qt==="\\mathopen"||qt==="\\mathclose"||qt==="\\mathpunct"||qt==="\\mathord"||qt==="\\mathinner"){Ce=Ca(a,y.body);break}let vr=y.isDigit()?y.asDigit():y.value,bi=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(bi=y.value,vr=bi),a==="text")Ce+=vr;else{if(y.type==="mbin"&&(Ce+='<break time="150ms"/>'),vr){const Pi=Cd[vr]||(bi?Cd[bi.trim()]:"");if(Pi)Ce+=" "+Pi;else{const Di=bi?Pg(bi.trim()):"";Ce+=Di||pe(vr)}}else Ce+=Ca("math",y.body);y.type==="mbin"&&(Ce+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const vr=y.command;if(vr==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let bi=Ca("math",y.superscript);bi=bi.trim();let Pi=Ca("math",y.subscript);Pi=Pi.trim(),Ce+=' the summation from <break time="200ms"/>'+Pi+'<break time="200ms"/> to <break time="200ms"/>'+bi+'<break time="200ms"/> of <break time="150ms"/>',jt=!0}else if(y.hasEmptyBranch("subscript"))Ce+=" the summation of";else{let bi=Ca("math",y.subscript);bi=bi.trim(),Ce+=' the summation from <break time="200ms"/>'+bi+'<break time="200ms"/> of <break time="150ms"/>',jt=!0}else if(vr==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let bi=Ca("math",y.superscript);bi=bi.trim();let Pi=Ca("math",y.subscript);Pi=Pi.trim(),Ce+=' the product from <break time="200ms"/>'+Pi+'<break time="200ms"/> to <break time="200ms"/>'+bi+'<break time="200ms"/> of <break time="150ms"/>',jt=!0}else if(y.hasEmptyBranch("subscript"))Ce+=" the product of ";else{let bi=Ca("math",y.subscript);bi=bi.trim(),Ce+=' the product from <break time="200ms"/>'+bi+'<break time="200ms"/> of <break time="150ms"/>',jt=!0}else if(vr==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let bi=Ca("math",y.superscript);bi=bi.trim();let Pi=Ca("math",y.subscript);Pi=Pi.trim(),Ce+=' the integral from <break time="200ms"/>'+ve(Pi)+'<break time="200ms"/> to <break time="200ms"/>'+ve(bi)+' <break time="200ms"/> of ',jt=!0}else Ce+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const bi=(le=Cd[y.value])!=null?le:y.command?Cd[y.command]:void 0;Ce+=bi||" "+y.value}else y.command&&(y.command==="\\mathop"?Ce+=Ca("math",y.body):y.command==="\\operatorname"?Ce+=Tg(y.body):Ce+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":kt=Ca("math",y.body),Ce+=" crossed out "+kt+". End crossed out.";break;case"space":case"spacing":break}if(!jt&&!y.hasEmptyBranch("superscript")){let $n=Ca(a,y.superscript);$n=$n.trim();const Kr=$n.replace(/<[^>]*>/g,"");if(af(y.superscript)){if(a==="math"){const Wn=Ig(y.superscript);Wn&&(Ce+='<mark name="'+Wn+'"/>')}Kr==="\u2032"?Ce+=" prime ":Kr==="2"?Ce+=" squared ":Kr==="3"?Ce+=" cubed ":Number.isNaN(Number.parseInt(Kr))?Ce+=" to the "+$n+"; ":Ce+=' to the <say-as interpret-as="ordinal">'+Kr+"</say-as> power; "}else Number.isNaN(Number.parseInt(Kr))?Ce+=" raised to the "+$n+"; ":Ce+=' raised to the <say-as interpret-as="ordinal">'+Kr+"</say-as> power; "}if(!jt&&!y.hasEmptyBranch("subscript")){let $n=Ca("math",y.subscript);$n=$n.trim(),Ce+=af(y.subscript)?" sub "+$n:" subscript "+$n+". End subscript. "}}return Ce}function Sd(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ee=Wa(a);if(ee){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=Ee(we({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=Ee(we({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=Ee(we({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const re=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&re.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let le="";try{le=re.toSpeech(ee)}catch(pe){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",pe)}return le}return""}let E=Ca("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"&&gt()==="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 of={"\\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"},lf={"\\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 Og(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 Qo(a){var y,b,E,ee,re,le,pe,ve,Ce,Te,tt,kt,jt;if(!a)return"";if(Ie(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(Qo).join("");if(a[0].mode==="text"){let Ur=0,vr="";for(;((y=a[Ur])==null?void 0:y.mode)==="text";)vr+=a[Ur].body?Qo(a[Ur].body):a[Ur].value,Ur++;return`"${vr}" ${Qo(a.slice(Ur))}`}let Wn=0;const dr=[];for(;a[Wn]&&a[Wn].mode==="math";){let Ur="";for(;a[Wn]&&a[Wn].type==="mord"&&/\d/.test(a[Wn].value);)Ur+=a[Wn++].value;Ur?dr.push(Ur):dr.push(Qo(a[Wn++]))}return dr.push(Qo(a.slice(Wn))),Og(dr)}if(a.mode==="text")return`"${a.value}"`;let qt="";const{command:$n}=a;let Kr;if($n==="\\placeholder")return`(${Qo(a.body)})`;switch(a.type){case"accent":const Wn={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[$n];qt=`${Wn!=null?Wn:""} ${Qo(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(Di=>Di.value).join("");case"group":case"root":qt=(b=of[$n])!=null?b:Qo(a.body);break;case"genfrac":{const Di=a;(Di.leftDelim||Di.rightDelim)&&(qt=Di.leftDelim==="."||!Di.leftDelim?"{:":Di.leftDelim),Di.hasBarLine?(qt+="(",qt+=Qo(Di.above),qt+=")/(",qt+=Qo(Di.below),qt+=")"):(qt+="("+Qo(Di.above)+"),",qt+="("+Qo(Di.below)+")"),(Di.leftDelim||Di.rightDelim)&&(qt+=Di.rightDelim==="."||!Di.rightDelim?"{:":Di.rightDelim)}break;case"surd":qt+=a.hasEmptyBranch("above")?"sqrt("+Qo(a.body)+")":"root("+Qo(a.above)+")("+Qo(a.body)+")";break;case"latex":qt=a.value;break;case"leftright":{const Di=a,Ma=Di.leftDelim;qt+=Ma==="."||!Ma?"{:":Ma,qt+=Qo(Di.body);const oo=Di.matchingRightDelim();qt+=oo==="."||!oo?":}":oo}break;case"sizeddelim":case"delim":qt=a.value;break;case"overlap":break;case"overunder":break;case"mord":qt=(ee=(E=of[$n])!=null?E:$n)!=null?ee:typeof a.value=="string"?a.value:"",qt.startsWith("\\")&&(qt+=" "),Kr=$n?$n.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,Kr?qt=String.fromCodePoint(Number.parseInt("0x"+Kr[1])):qt.length>0&&qt.startsWith("\\")&&(qt=typeof a.value=="string"?a.value.charAt(0):a.command),qt=Fg(qt,a.style);break;case"mbin":case"mrel":case"minner":qt=(le=(re=of[$n])!=null?re:lf[$n])!=null?le:a.value;break;case"mopen":case"mclose":qt=a.value;break;case"mpunct":qt=(pe=lf[$n])!=null?pe:$n;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(lf[$n]?qt=lf[$n]:qt=$n==="\\operatorname"?Qo(a.body):(ve=a.value)!=null?ve:$n,qt+=" ");break;case"array":const dr=a.array,Ur=a.environmentName,vr=(Ce={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Ur])!=null?Ce:["(",")"],bi=[];for(const Di of dr){const Ma=[];for(const oo of Di)Ma.push(vr[0]+Qo(oo)+vr[1]);bi.push(Ma.join(","))}const Pi=(Te={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Ur])!=null?Te:["(",")"];qt=Pi[0]+bi.join(",")+Pi[1];break;case"box":break;case"spacing":qt=(tt=of[$n])!=null?tt:" ";break;case"enclose":qt="("+Qo(a.body)+")";break;case"space":qt=" ";break;case"subsup":qt="";break;case"macro":qt=(jt=(kt=of[$n])!=null?kt:lf[$n])!=null?jt:Qo(a.body);break}if(!a.hasEmptyBranch("subscript")){qt+="_";const Wn=Qo(a.subscript);qt+=Wn.length!==1?`(${Wn})`:Wn}if(!a.hasEmptyBranch("superscript")){qt+="^";const Wn=Qo(a.superscript);qt+=Wn.length!==1?`(${Wn})`:Wn}return qt}function Fg(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 El(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ee=new wa({from:Ee(we({},nd()),{renderPlaceholder:()=>new Rr(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),le=new tr({mode:"math",type:"root",body:wl(a,{context:ee,parseMode:"math",mathstyle:y.mathstyle})}).render(ee);return le?(oc($d(le,ee)),lc(le,{classes:"ML__latex"}).toMarkup()):""}function D1(a){return t0(a,{context:nd()})}function Ng(a,y={}){return Wa(wl(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Rg(a){const y=wl(a,{parseMode:"math",mathstyle:"displaystyle"});return Sd(y)}var th;function zg(a){var y,b;if(!th){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?th=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=th==null?void 0:th.box(a).latex)!=null?b:""}function A1(a,y="math"){return Qo(new tr({type:"root",body:wl(a,{parseMode:y})}))}function L1(a){return Ic(a,{format:"ascii-math"})[1]}function jh(a){if(typeof a=="string"){const y=_g(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Hg(a):"a"in a?cp(a):a}function wd(a){return a<0?0:a>255?255:Math.round(a)}function _g(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,re={L:y,a:b*Math.cos(ee),b:b*Math.sin(ee)};return a.alpha!==void 0&&(re.alpha=a.alpha),re}function Kg(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.sqrt(b*b+E*E),le=Math.atan2(E,b)*180/Math.PI,pe={L:y,C:ee,H:le};return a.alpha!==void 0&&(pe.alpha=a.alpha),pe}function Gh(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*E,3),re=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*E,3),le=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*E,3),pe=4.076741661347994*ee-3.307711590408193*re+.230969928729428*le,ve=-1.2684380040921763*ee+2.6097574006633715*re-.3413193963102197*le,Ce=-.004196086541837188*ee-.7034186144594493*re+1.7076147009309444*le,Te=tt=>{const kt=Math.abs(tt);return kt<=.0031308?tt*12.92:(Math.sign(tt)||1)*(1.055*Math.pow(kt,1/2.4)-.055)};return[Te(pe),Te(ve),Te(Ce)]}function Uh(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=wd(b*255),E=wd(E*255),ee=wd(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(Uh([y,b,E]))return Xh([y,b,E],a.alpha);const ee=Kg(a);if(ee.C=0,[y,b,E]=Gh(Vh(ee)),!Uh([y,b,E]))return Xh([y,b,E],a.alpha);let re=0,le=a.L,pe=(re+le)/2;ee.C=pe;const ve=.36/Math.pow(2,12);for(;le-re>ve;)pe=(re+le)/2,ee.C=pe,[y,b,E]=Gh(Vh(ee)),Uh([y,b,E])?re=pe:le=pe;return Xh([y,b,E],a.alpha)}function Hg(a){return cp(Vh(a))}function dp(a,y){const b=jh(a),E=jh(y),ee=.56,re=.57,le=.62,pe=.65,ve=.022,Ce=1.414,Te=.1,tt=5e-4,kt=1.14,jt=.027,qt=1.14,$n=.027;function Kr(Di){return Di>=ve?Di:Di+zu(ve-Di,Ce)}function Wn(Di){return(Di<0?-1:1)*Math.pow(Math.abs(Di),2.4)}const dr=Kr(Wn(E.r/255)*.2126729+Wn(E.g/255)*.7151522+Wn(E.b/255)*.072175),Ur=Kr(Wn(b.r/255)*.2126729+Wn(b.g/255)*.7151522+Wn(b.b/255)*.072175);let vr,bi,Pi;return Math.abs(Ur-dr)<tt?bi=0:Ur>dr?(vr=zu(Ur,ee)-zu(dr,re),bi=vr*kt):(vr=zu(Ur,pe)-zu(dr,le),bi=vr*qt),Math.abs(bi)<Te?Pi=0:bi>0?Pi=bi-$n:Pi=bi+jt,Pi*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 Zg(a){const y=jh(a);let b=((1<<24)+(wd(y.r)<<16)+(wd(y.g)<<8)+wd(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 So(a){const y=hp(a);let b="";for(const E of y){if(typeof E.value!="string")return"";b+=E.value}return b}function hp(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function Wg(a,y){const b=hp(a);if(b.length!==1)return!1;const E=ph[y];return E?!!E.test(b[0].value):!1}function $g(a,y){return So(a).length>0}function jg(a){return[Yh(a,"double-struck","mathbb","tooltip.blackboard"),Yh(a,"fraktur","mathfrak","tooltip.fraktur"),Yh(a,"calligraphic","mathcal","tooltip.caligraphic"),Qh(a,"up","mathrm","tooltip.roman-upright"),Qh(a,"bold","mathbf","tooltip.bold"),Qh(a,"italic","mathit","tooltip.italic")]}function Vg(a){return[{label:()=>El(`\\vec{${So(a)}}`),visible:()=>So(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>El(`\\overrightarrow{${So(a)}}`),visible:()=>So(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>El(`\\overleftarrow{${So(a)}}`),visible:()=>So(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>El(`\\dot{${So(a)}}`),visible:()=>So(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>El(`\\ddot{${So(a)}}`),visible:()=>So(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>El(`\\bar{${So(a)}}`),visible:()=>So(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>El(`\\overline{${So(a)}}`),visible:()=>So(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>El(`\\overgroup{${So(a)}}`),visible:()=>So(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>El(`\\overbrace{${So(a)}}`),visible:()=>So(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>El(`\\underline{${So(a)}}`),visible:()=>So(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>El(`\\undergroup{${So(a)}}`),visible:()=>So(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>El(`\\underbrace{${So(a)}}`),visible:()=>So(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Gg(a){return[{label:()=>El(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>El(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>El(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Ug(a){const y=[];for(const b of Object.keys($e))y.push({class:(Zg(fp($e[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${$e[b]} "></span>`,ariaLabel:()=>{var E;return(E=nt(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 Xg(a){const y=[];for(const b of Object.keys(Ye))y.push({class:(fp(Ye[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ye[b]} "></span>`,ariaLabel:()=>{var E;return(E=nt(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 Yg=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 Qg(a){const y=[];for(let b=1;b<=5;b++)for(let E=1;E<=5;E++)y.push({onCreate:(ee,re)=>new Yg(ee,re,b,E),label:"\u2610",tooltip:()=>nt("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 Jg(a){return[{label:()=>nt("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>jc(a)},{label:()=>nt("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>jc(a)},{label:()=>nt("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>jc(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=e1(a);return b<y.maxColumns}},{label:()=>nt("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>jc(a)},{type:"divider"},{label:()=>nt("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>jc(a)},{label:()=>nt("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>jc(a)},{type:"divider"},{label:()=>nt("menu.borders"),visible:()=>(qg(a)||jc(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>sf(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>sf(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>sf(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>sf(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>sf(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>nt("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:Qg(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>nt("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>nt("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{fd(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>nt("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{fd(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>nt("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>nt("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:jg(a),submenuClass:"variant-submenu"},{label:()=>nt("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Xg(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>nt("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Ug(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>nt("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Vg(a),submenuClass:"variant-submenu"},{label:()=>nt("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&So(a).length>0,submenu:Gg(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>nt("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=t1(a);if(!y){a.model.announce("plonk");return}a.model.selectionIsCollapsed?(a.model.position=a.model.lastOffset,a.insert(`=${y}`,{insertionMode:"insertAfter",selectionMode:"item"})):a.insert(y,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>nt("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?nt("menu.solve-for",El(b)):nt("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(re=>{var le;return(le=re.simplify().latex)!=null?le:""});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:()=>nt("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>nt("menu.copy"),id:"copy",submenu:[{label:()=>nt("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Qi.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>nt("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Qi.copyToClipboard(a,"ascii-math")},{label:()=>nt("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Qi.copyToClipboard(a,"math-ml")}]},{label:()=>nt("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>nt("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function jc(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function qg(a){return a.model.at(a.model.position).type==="array"}function e1(a){var y;const b=(y=a.model.parentEnvironment)==null?void 0:y.array;return b?[b.length,b.reduce((E,ee)=>Math.max(E,ee.length),0)]:[0,0]}function sf(a,y){Af(a),a.flushInlineShortcutBuffer(),I0(a.model,y),Ho(a)}function t1(a){var y,b;let E;if(a.model.selectionIsCollapsed?E=(y=window.MathfieldElement.computeEngine)==null?void 0:y.parse(a.getValue(),{canonical:!1}):E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection),{canonical:!1}),!E)return"";let ee=E.evaluate();return ee.isSame(E)&&(ee=E.N()),ee.latex}function Yh(a,y,b,E){return{label:()=>El(`\\${b}{${So(a)}}`),tooltip:()=>{var ee;return(ee=nt(E))!=null?ee:E},visible:()=>Wg(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 Qh(a,y,b,E){return{label:()=>El(`\\${b}{${So(a)}}`),tooltip:()=>{var ee;return(ee=nt(E))!=null?ee:E},visible:()=>$g(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 Ed(a,y){return a+Sd(y)}ks({speak:(a,y,b)=>n1(a,y,b)},{target:"mathfield"});function n1(a,y,b){var E,ee;b=b!=null?b:{withHighlighting:!1};const{model:re}=a;function le(Te){let tt=null;switch(Te){case"all":tt=re.root;break;case"selection":tt=re.getAtoms(re.selection);break;case"left":{tt=re.getAtoms(re.offsetOf(re.at(re.position).leftSibling),re.position);break}case"right":{tt=re.getAtoms(re.position,re.offsetOf(re.at(re.position).rightSibling));break}case"group":tt=re.getAtoms(re.getSiblingsRange(re.position));break;case"parent":{const{parent:kt}=re.at(re.position);kt!=null&&kt.parent?tt=kt:tt=re.root;break}default:tt=re.root}return tt}function pe(Te){let tt="";switch(Te){case"all":console.log("Internal failure: speak all failed");break;case"selection":tt="no selection";break;case"left":tt="at start";break;case"right":tt="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":tt="no parent";break;default:console.log('unknown speak_ param value: "'+Te+'"');break}return tt}const ve=le(y);if(ve===null)return(ee=(E=window.MathfieldElement).speakHook)==null||ee.call(E,pe(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const Ce=Sd(ve);return st()&&b.withHighlighting?(gc().readAloudMathfield=a,Nc(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,Ce)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(Ce),!1}function r1(a){var y,b;if(!st()){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,(re,le)=>{if(re)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);else if(le!=null&&le.AudioStream){const pe=new Uint8Array(le.AudioStream),ve=new Blob([pe.buffer],{type:"audio/mpeg"}),Ce=URL.createObjectURL(ve);new Audio(Ce).play().catch(tt=>console.log(tt))}else console.log("polly.synthesizeSpeech():",le)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function pp(a){var y;let b;if(a.parent.type==="prompt")a.parentBranch==="body"&&(b="prompt");else if(a.parentBranch==="body")b=a.type&&(y={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[a.type])!=null?y:"parent";else if(a.parent.type==="genfrac"){if(a.parentBranch==="above")return"numerator";if(a.parentBranch==="below")return"denominator"}else a.parent.type==="surd"?a.parentBranch==="above"&&(b="index"):a.parentBranch==="superscript"?b="superscript":a.parentBranch==="subscript"&&(b="subscript");return b||console.log("unknown relationship"),b!=null?b:"parent"}function i1(a,y,b,E){let ee="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ee=Ed("deleted: ",E);else if(y==="focus"||y.includes("move"))ee=a1(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+o1(a.model);else if(y==="replacement")ee=Ed("",a.model.at(a.model.position));else if(y==="line"){const re=Ed("",a.model.root);a.keyboardDelegate.setAriaLabel(re)}else ee=E?Ed(y+" ",E):y;if(ee){const re=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ee+re}}function a1(a,y){if(Number.isNaN(y))return"";const b=a.at(y);if(!b||b.treeDepth<=a.at(a.position).treeDepth)return"";let E="",ee=b.parent;const re=a.at(a.position).parent;for(;ee!==a.root&&ee!==re;)E+=`out of ${pp(ee)};`,ee=ee.parent;return E}function o1(a){if(!a.selectionIsCollapsed)return Ed("",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+=Ed("",b),y}var l1=class{constructor(a,y,b){this.mathfield=a,this.mode=y,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=b}dispose(){this.mathfield=void 0}getState(){const a={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(a.direction=this.selection.direction),{content:this.root.toJson(),selection:a,mode:this.mode}}setState(a,y){var b;const E=this.silenceNotifications;this.silenceNotifications=(b=y==null?void 0:y.silenceNotifications)!=null?b:!0;let 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 re=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=hc(a.content),this.selection=a.selection,this.silenceNotifications=re,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 re=this.normalizeSelection(a,y);if(re===void 0)throw new TypeError("Invalid selection");if(re.ranges.length===1&&re.ranges[0][0]===re.ranges[0][1]){const Te=re.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(Te))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((E=this.at(Te-1))!=null&&E.parentPrompt){this._anchor=this.normalizeOffset(Te-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ee=this.at(Te+1))!=null&&ee.parentPrompt){this._anchor=this.normalizeOffset(Te+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=Te,this._position=Te,this._selection=re;return}const le=Cl(re);re.direction==="backward"?[this._position,this._anchor]=le:[this._anchor,this._position]=le;const pe=this.at(le[0]+1),ve=this.at(le[1]),Ce=tr.commonAncestor(pe,ve);(Ce==null?void 0:Ce.type)==="array"&&pe.parent===Ce&&ve.parent===Ce?this._selection={ranges:[le],direction:re.direction}:this._selection={ranges:[le],direction:re.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 Tl&&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(id(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((Ce,Te)=>[...Ce,...this.getAtoms(Te,E)],[]);a=a.ranges[0]}let ee,re;if(Su(a)){if(ee=a,!Su(y))return[];re=y}else[ee,re]=a,E=y!=null?y:{};if(!Number.isFinite(ee))return[];E.includeChildren===void 0&&(E.includeChildren=!1),ee<0&&(ee=this.lastOffset-ee+1),re<0&&(re=this.lastOffset-re+1);const le=Math.min(ee,re)+1,pe=Math.max(ee,re);if(!E.includeChildren&&le===1&&pe===this.lastOffset)return[this.root];let ve=[];for(let Ce=le;Ce<=pe;Ce++){const Te=this.atoms[Ce];mp(this,Te,le,pe)&&ve.push(Te)}return E.includeChildren||(ve=ve.filter(Ce=>{let Te=!1,{parent:tt}=Ce;for(;tt&&!Te;)Te=mp(this,tt,le,pe),tt=tt.parent;return!Te})),ve}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 re=y;re<=ee;re++)if(E=this.atoms[re],a(E))return E;for(let re=0;re<y;re++)if(E=this.atoms[re],a(E))return E;return}for(let re=y;re>=0;re--)if(E=this.atoms[re],a(E))return E;for(let re=ee;re>y;re--)if(E=this.atoms[re],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 tr({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 tr.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 Wa(a);if(b==="spoken")return Sd(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ee=Sd(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=Sd(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}return b==="ascii-math"?Qo(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(Su(a)&&Su(y)?(E=[this.normalizeRange([a,y])],ee=b):rd(a)?(E=[this.normalizeRange(a)],ee=y):id(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 re=this.getValue({ranges:E},"latex-unstyled");try{const le=window.MathfieldElement.computeEngine.parse(re);return JSON.stringify(le.json)}catch(le){return JSON.stringify(["Error",`'${le.toString()}'`])}}if(ee.startsWith("latex")){const re={expandMacro:ee==="latex-expanded",skipStyles:ee==="latex-unstyled",skipPlaceholders:ee==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return ca(E.map(le=>tr.serialize(this.getAtoms(le),re)))}return E.map(re=>this.getAtoms(re).map(le=>this.atomToString(le,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:re}=this.at(ee);if(re&&(re.type==="genfrac"||re.type==="subsup"))for(;re!==this.root&&Jh(this,re,[E,ee]);)ee=this.offsetOf(re),re=re.parent;for(re=this.at(E).parent;re!==this.root&&Jh(this,re,[E,ee]);)E=this.offsetOf(re.leftSibling),re=re.parent;if(re=this.at(ee).parent,(re==null?void 0:re.type)==="genfrac")for(;re!==this.root&&Jh(this,re,[E,ee]);)ee=this.offsetOf(re),console.assert(ee>=0),re=re.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)&&i1(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,E=this._anchor,ee=this._position,re=this.silenceNotifications;this.silenceNotifications=!0;const le=this.root.changeCounter;y();const pe=this.root.changeCounter!==le,ve=E!==this._anchor||ee!==this._position||Pc(this._selection,b)==="different";return this.silenceNotifications=re,a.content&&pe&&this.contentDidChange({inputType:a.type}),a.selection&&ve&&this.selectionDidChange(),pe||ve}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(Su(a)){const ee=this.normalizeOffset(a);if(Su(y)){const re=this.normalizeOffset(y);E=ee<=re?{ranges:[[ee,re]],direction:"none"}:{ranges:[[re,ee]],direction:"backward"}}else E={ranges:[[ee,ee]],direction:"none"}}else if(rd(a)){const ee=this.normalizeOffset(a[0]),re=this.normalizeOffset(a[1]);E=ee<=re?{ranges:[[ee,re]],direction:"none"}:{ranges:[[re,ee]],direction:"backward"}}else id(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(Bu(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",Ee(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(Bu(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 re=a.offsetOf(y.firstChild);if(re>=b&&re<=E){const le=a.offsetOf(y.lastChild);if(le>=b&&le<=E)return!0}return!1}function Jh(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[E,ee]=b,re=a.offsetOf(y.firstChild),le=a.offsetOf(y.lastChild);return re>=E&&re<=ee&&le>=re&&le<=ee}function uf(a,y,b,E){var ee,re,le,pe,ve,Ce;const Te=b.parent;if(Te&&b instanceof Za){const tt=!E&&y==="forward"||E==="body"&&y==="backward";let kt=tt?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return tt?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(Te.addChildrenAfter(b.removeBranch("body"),b),Te.removeChild(b),kt--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(Te.addChildrenAfter(b.removeBranch("body"),b),Te.removeChild(b),kt--),a.position=kt,!0}if(Te&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const tt=b.leftSibling;b.hasChildren&&Te.addChildrenAfter(b.removeBranch("body"),b),Te.removeChild(b),a.position=a.offsetOf(tt)}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),Te.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(Te&&(b.type==="box"||b.type==="enclose")){const tt=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return Te.addChildrenAfter(b.removeBranch("body"),b),Te.removeChild(b),a.position=a.offsetOf(tt),!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 tt=cf.fractionNavigationOrder==="numerator-denominator"?"above":"below",kt=tt==="above"?"below":"above";if(Te&&(y==="forward"&&E===tt||y==="backward"&&E===kt)){const jt=b.removeBranch(tt),qt=b.removeBranch(kt);return Te.addChildrenAfter([...jt,...qt],b),Te.removeChild(b),a.position=a.offsetOf(jt.length>0?jt[jt.length-1]:qt[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 tt=y==="forward"?(le=(ee=b.superscript)==null?void 0:ee[0])!=null?le:(re=b.subscript)==null?void 0:re[0]:(Ce=(pe=b.subscript)==null?void 0:pe[0].lastSibling)!=null?Ce:(ve=b.superscript)==null?void 0:ve[0].lastSibling;return tt&&(a.position=a.offsetOf(tt)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const tt=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=tt,!0}if(E==="superscript")if(y==="backward"){const tt=a.offsetOf(b.firstChild)-1;console.assert(tt>=0),a.position=tt}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 tt=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=tt}return!0}if((Te==null?void 0:Te.type)==="genfrac"&&!E&&b.type!=="first"){let tt=a.offsetOf(b.leftSibling);return Te.removeChild(b),Te.hasEmptyBranch("above")&&Te.hasEmptyBranch("below")?(tt=a.offsetOf(Te.leftSibling),Te.parent.removeChild(Te),a.announce("delete",void 0,[Te]),a.position=tt,!0):(a.announce("delete",void 0,[b]),a.position=tt,!0)}if(y==="backward"&&((Te==null?void 0:Te.command)==="\\ln"||(Te==null?void 0:Te.command)==="\\log")&&b.parentBranch!=="body"){const tt=a.offsetOf(Te.leftSibling);return Te.parent.removeChild(Te),a.announce("delete",void 0,[Te]),a.position=tt,!0}return!1}function s1(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentBackward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},()=>{let y=a.at(a.position);if(!(y&&uf(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(uf(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])}}):Iu(a,Cl(a.selection),"deleteContentBackward")}function u1(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentForward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var y,b;let E=a.at(a.position).rightSibling;if(E&&uf(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&uf(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&uf(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])}):Iu(a,Cl(a.selection),"deleteContentForward")}function Iu(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 re=E[E.length-1].parent.lastChild;let le=E[0];le.type==="first"&&(le=le.rightSibling);const pe=E[E.length-1];if(le===ee&&pe===re){const ve=E[0].parent;ve.parent&&ve.type!=="prompt"&&(y=[a.offsetOf(ve.leftSibling),a.offsetOf(ve)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const ve=E[0].parent,Ce=E[0].parentBranch==="below"?"above":"below",Te=a.offsetOf(ve.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var tt,kt;const jt=ve.removeBranch(Ce);if(jt.length===1&&jt[0].type==="placeholder")(kt=ve.parent)==null||kt.removeChild(ve),a.position=Math.max(0,Te);else{const qt=ve.parent.addChildrenAfter(jt,ve);(tt=ve.parent)==null||tt.removeChild(ve),a.position=a.offsetOf(qt)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}ks({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Iu(a,[0,-1],"deleteContent"),deleteForward:a=>u1(a),deleteBackward:a=>s1(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Iu(a,[a.anchor,Dh(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Iu(a,[a.anchor,Dh(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Iu(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Iu(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Iu(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Iu(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var c1=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${nt("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,d1=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${nt("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,f1=class{constructor(a,y){this.focusBlurInProgress=!1;var b,E,ee;this.options=we(Ee(we({},_f()),{macros:rn(),registers:Ys()}),zf(y)),this.eventController=new AbortController;const re=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 le=(E=(b=y.value)!=null?b:this.element.textContent)!=null?E:"";le=le.trim();const pe=L0(this.options),ve=new tr({type:"root",mode:pe,body:wl(le,{context:this.context})});this.model=new l1(this,pe,ve),this.undoManager=new Rv(this.model);const Ce=[];if(Ce.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>"),Ce.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),Ce.push("<span part=content class=ML__content>"),Ce.push(C0(this)),Ce.push("</span>"),window.mathVirtualKeyboard&&(Ce.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">`),Ce.push(c1),Ce.push("</div>")),Ce.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),Ce.push(d1),Ce.push("</div>"),Ce.push("</span>"),Ce.push("<span class=ML__sr-only>"),Ce.push("<span role=status aria-live=assertive aria-atomic=true></span>"),Ce.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(Ce.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=dt.subscribe(()=>dt.update(this.element)),dt.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",tt=>tt.stopImmediatePropagation(),{capture:!1,signal:re}),this.field.addEventListener("wheel",this,{passive:!1,signal:re}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:re}):this.field.addEventListener("mousedown",this,{signal:re}),(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(Bu(this)))},{signal:re}),this._menu=new Sg(Jg(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:re});const Te=this.element.querySelector("[part=menu-toggle]");Te==null||Te.addEventListener("pointerdown",tt=>{if(tt.currentTarget!==Te||this._menu.state!=="closed")return;this.element.classList.add("tracking");const kt=Te.getBoundingClientRect();this._menu.modifiers=Fc(tt),this._menu.show({target:Te,location:{x:kt.left,y:kt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),tt.preventDefault(),tt.stopPropagation()},{signal:re}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(Te.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=Zm(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:re}),document.addEventListener("scroll",this,{signal:re}),this.resizeObserver=new ResizeObserver(()=>Ho(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:re}),Gd&&!dt.locale.startsWith(Gd.locale)&&zm(dt.locale),Zs!=="ready"&&document.fonts.ready.then(()=>Tf(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(Bu(this)),Qf(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,zh())}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,re=this.element.querySelector("[part=container]");return this._menu.show({target:re,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,re,le;return(le=(re=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?re:(ee=(E=this.options).colorMap)==null?void 0:ee.call(E,a))!=null?le:Oe(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=tr.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=Th(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 ve of Object.keys(y)){const Ce=this.queryStyle({[ve]:y[ve]});if(Ce==="none")return"none";if(Ce==="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 re=this.model.getAtoms(this.model.selection,{includeChildren:!0});let le=re.length;if(le===0)return"none";let pe=0;for(const ve of re){if(ve.type==="first"){le-=1;continue}ve.style[E]===ee&&(pe+=1)}return pe===0?"none":pe===le?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,E]=Gm(this.options.keybindings,(a=Ud())!=null?a:_m());return((y=Ud())==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),zf(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=tr.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&Qi.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)&&Ho(this)}getOptions(a){return zc(this.options,a)}getOption(a){return zc(this.options,a)}handleEvent(a){return yc(this,null,function*(){var y;if(_s(this)){if(wh(a)){if(!_d(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(pd(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"&&$0(this,a);break;case"pointerdown":this.userSelect!=="none"&&($0(this,a),a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&Gf.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&Gf.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&Qf(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>_s(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>_s(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!_s(this))return;dt.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,Uv(),qm(),mg()}flushInlineShortcutBuffer(a){if(a!=null||(a={defer:!1}),!a.defer){this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=0;return}this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout(()=>this.flushInlineShortcutBuffer(),this.options.inlineShortcutTimeout))}executeCommand(a){return pd(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(Bu(this))),!1):ov(this,a)}get errors(){return t0(this.model.getValue(),{context:this.context})}getValue(a,y,b){return this.model.getValue(a,y,b)}setValue(a,y){var b;y=y!=null?y:{mode:"math"},y.insertionMode===void 0&&(y.insertionMode="replaceAll"),(y.format===void 0||y.format==="auto")&&(y.format="latex"),(y.mode===void 0||y.mode==="auto")&&(y.mode=(b=ah(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();Qi.insert(this.model,a,y)&&(Ho(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&&Nc(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=Mu(this.field);else{const E=zd(this);if(E.length>0){let ee=-1/0,re=-1/0;for(const le of E)le.right>ee&&(ee=le.right),le.top<re&&(re=le.top);b={x:ee+y.left-this.field.scrollLeft,y:re+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const E=this.host.getBoundingClientRect(),ee=b.y;let re=this.host.scrollTop;ee<E.top?re=ee-E.top+this.host.scrollTop:ee>E.bottom&&(re=ee-E.bottom+this.host.scrollTop+b.height),this.host.scroll({top:re,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&&Ue()&&navigator.vibrate(S0),window.MathfieldElement.playSound("keypress")),a==="\\\\"?B0(this.model):a==="&"?P0(this.model):this.model.selectionIsCollapsed?Qi.insert(this.model,a,we({style:this.model.at(this.model.position).computedStyle},y)):Qi.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Ho(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 re=this.model.mode,{model:le}=this;le.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let pe=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const ve=wl(y,{context:this.context,parseMode:a});le.collapseSelection("forward");const Ce=le.at(le.position);le.position=le.offsetOf(Ce.parent.addChildrenAfter(ve,Ce)),pe=!0}if(this.model.mode=a,a==="latex"){let ve=le.selectionIsCollapsed;fd(this,"accept");let Ce,Te=le.at(le.position);if(ve)Ce="\\";else{const kt=Cl(le.selection);Ce=this.model.getValue(kt,"latex");const jt=this.model.extractAtoms(kt);jt.length===1&&jt[0].type==="placeholder"&&(Ce=y,ve=!0),Te=le.at(kt[0])}const tt=new Hd(Ce);Te.parent.addChildAfter(tt,Te),ve?le.position=le.offsetOf(tt.lastChild):le.setSelection(le.offsetOf(tt.firstChild),le.offsetOf(tt.lastChild))}else Xd(le).forEach(ve=>{ve.isError=!1});if(b){const ve=wl(b,{context:this.context,parseMode:re});le.collapseSelection("forward");const Ce=le.at(le.position);le.position=le.offsetOf(Ce.parent.addChildrenAfter(ve,Ce)),pe=!0}return Ho(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),pe}),this.model.mode=a,window.mathVirtualKeyboard.update(Bu(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};rd(y)?ee.range=y:(y.operation==="toggle"&&(ee.operation="toggle"),ee.range=y.range,ee.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const re=Th(this,a),le=(E=ee.operation)!=null?E:"set";if(ee.range===void 0&&this.model.selectionIsCollapsed){if(le==="set"){this.defaultStyle=we(we({},this.defaultStyle),re);return}const pe=we({},this.defaultStyle);for(const ve of Object.keys(re))pe[ve]===re[ve]?(ve==="color"&&delete pe.verbatimColor,ve==="backgroundColor"&&delete pe.verbatimBackgroundColor,delete pe[ve]):pe[ve]=re[ve];this.defaultStyle=pe;return}this.model.deferNotifications({content:!ee.silenceNotifications,type:"insertText"},()=>{if(ee.range===void 0)for(const pe of this.model.selection.ranges)Mh(this.model,pe,re,{operation:le});else Mh(this.model,ee.range,re,{operation:le})}),Ho(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=rf(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),Ho(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,Ee(we({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),Ho(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),Ho(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(Bu(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(Bu(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(Bu(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:L0(this.options);this.model.mode!==ee&&(this.model.mode==="latex"?(fd(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(Bu(this)),Qf(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",Ee(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(),Nc(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="",hd(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})),Ho(this),this.focusBlurInProgress=!1,zh();const E=new AbortController,ee=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{_s(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ee})},{once:!0,signal:ee}),setTimeout(()=>E.abort(),100)}onInput(a){Bh(this,a)}onKeystroke(a){return H0(this,a)}onCompositionStart(a){this.model.deleteAtoms(Cl(this.model.selection));const y=Mu(this.field);y&&requestAnimationFrame(()=>{Nc(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Av(this.model,a),Ho(this)}onCompositionEnd(a){Lv(this.model),Bh(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Qi.onCopy(this,a),Iu(this.model,Cl(this.model.selection),"deleteByCut"),this.snapshot("cut"),Ho(this))}onCopy(a){Qi.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=Qi.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(),Bf(this),Qf(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=>Ot(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function vp(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)vp(y)}function qh(a,y){var b;a&&(!y||((b=a.dataset)==null?void 0:b.atomId)===y?(a.classList.add("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&qh(E)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&qh(E,y)})))}function h1(a,y){var b;if(!st())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"]};gc().readAloudElement=a,E.synthesizeSpeech(ee,(re,le)=>{if(re){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);return}if(!(le!=null&&le.AudioStream)){console.log("polly.synthesizeSpeech():",le);return}const pe=new TextDecoder("utf-8").decode(new Uint8Array(le.AudioStream));gc().readAloudMarks=pe.split(`
`).map(ve=>ve?JSON.parse(ve):{}),gc().readAloudTokens=[];for(const ve of gc().readAloudMarks)ve.value&&gc().readAloudTokens.push(ve.value);gc().readAloudCurrentMark="",ee.OutputFormat="mp3",ee.SpeechMarkTypes=[],E.synthesizeSpeech(ee,(ve,Ce)=>{if(ve){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${ve}`);return}if(!(Ce!=null&&Ce.AudioStream))return;const Te=new Uint8Array(Ce.AudioStream),tt=new Blob([Te.buffer],{type:"audio/mpeg"}),kt=URL.createObjectURL(tt),jt=gc();jt.readAloudAudio?jt.readAloudAudio.pause():(jt.readAloudAudio=new Audio,jt.readAloudAudio.addEventListener("ended",()=>{const qt=jt.readAloudMathfield;jt.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),qt?(Nc(qt),jt.readAloudElement=null,jt.readAloudMathfield=null,jt.readAloudTokens=[],jt.readAloudMarks=[],jt.readAloudCurrentMark=""):vp(jt.readAloudElement)}),jt.readAloudAudio.addEventListener("timeupdate",()=>{let qt="";const $n=jt.readAloudAudio.currentTime*1e3+100;for(const Kr of jt.readAloudMarks)Kr.time<$n&&(qt=Kr.value);jt.readAloudCurrentMark!==qt&&(jt.readAloudCurrentToken=qt,qt&&qt===jt.readAloudFinalToken?jt.readAloudAudio.pause():(jt.readAloudCurrentMark=qt,qh(jt.readAloudElement,jt.readAloudCurrentMark)))})),jt.readAloudAudio.src=kt,jt.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),jt.readAloudAudio.play()})})}st()||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 Oa=new WeakMap,p1=.5,vc={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 Vc extends HTMLElement{static get formAssociated(){return Md()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(y){y!==this._fontsDirectory&&(this._fontsDirectory=y,nv())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(y){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(y){this._soundsDirectory=y,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(y){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(y){var b,E,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 dt.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),dt.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 dt.strings}static set strings(y){dt.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 yc(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 re=yield(yield fetch(yield x0(`${E}/${b}`))).arrayBuffer(),le=yield this.audioContext.decodeAudioData(re);this.audioBuffers[y]=le}catch(ee){}})}static playSound(y){return yc(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[y]||(yield this.loadSound(y)),!this.audioBuffers[y])return;const b=this.audioContext.createBufferSource();b.buffer=this.audioBuffers[y];const E=this.audioContext.createGain();E.gain.value=p1,b.connect(E).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const E of Object.keys(y))if(vc[E])if(vc[E].startsWith("mf."))if(vc[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${vc[E]}`);else{const ee=vc[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 ${vc[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(Md()&&(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=[fc("core"),fc("mathfield"),fc("mathfield-element"),fc("ui"),fc("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>"+Wu("core")+Wu("mathfield")+Wu("mathfield-element")+Wu("ui")+Wu("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=Vc.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?zc(this._mathfield.options,y):Oa.has(this)?we({},zc(we(we({},_f()),zf(Oa.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?zc(this._mathfield.options,y):Oa.has(this)?zc(we(we({},_f()),zf(Oa.get(this).options)),y):null}reflectAttributes(){const y=_f(),b=this._getOptions();Object.keys(Vc.optionsAttributes).forEach(E=>{const ee=Gu(E);Vc.optionsAttributes[E]==="on/off"?y[ee]!==b[ee]?this.setAttribute(E,b[ee]?"on":"off"):this.removeAttribute(E):y[ee]!==b[ee]&&(Vc.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(Oa.has(this)){const b=we(we({},Oa.get(this).options),y);Oa.set(this,Ee(we({},Oa.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else Oa.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))vc[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${vc[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,re;if(this._mathfield)return this._mathfield.model.getValue(y,b,E);if(Oa.has(this)){let le,pe,ve;if(id(y)?([le,pe]=y.ranges[0],ve=b):rd(y)?([le,pe]=y,ve=b):Su(y)&&Su(b)?(le=y,pe=b,ve=E):(le=0,pe=-1,ve=y),(ve===void 0||ve==="latex")&&le===0&&pe===-1)return(re=(ee=Oa.get(this).value)!=null?ee:this.textContent)!=null?re:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(Oa.has(this)){const ee=Oa.get(this).options;Oa.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0});return}const E=df(this);Oa.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?rf(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=cc(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,re;Du.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"&&((re=this._mathfield)==null||re.blur()))}connectedCallback(){var y,b,E,ee;const re=window.getComputedStyle(this),le=this.shadowRoot,pe=re.userSelect!=="none";if(pe)le.host.addEventListener("pointerdown",this,!0);else{const Te=le.querySelector("span");Te.style.pointerEvents="none"}le.host.addEventListener("focus",this,!0),le.host.addEventListener("blur",this,!0),Md()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),pe&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const ve=le.querySelector("slot:not([name])");if(ve)try{this._style=ve.assignedElements().filter(Te=>Te.tagName.toLowerCase()==="style").map(Te=>Te.textContent).join("")}catch(Te){console.error(Te)}if(this._style){const Te=document.createElement("style");Te.textContent=this._style,le.appendChild(Te)}let Ce="";if(this.hasAttribute("value")?Ce=this.getAttribute("value"):Ce=(y=ve==null?void 0:ve.assignedNodes().map(Te=>Te.nodeType===3?Te.textContent:"").join("").trim())!=null?y:"",this._mathfield=new f1(le.querySelector(":host > span"),Ee(we({},(E=(b=Oa.get(this))==null?void 0:b.options)!=null?E:df(this)),{eventSink:this,value:Ce})),!Oa.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const Te of Object.keys(Vc.optionsAttributes))this.upgradeProperty(Gu(Te))}if(!((ee=this._mathfield)!=null&&ee.model)){this._mathfield=null;return}if(Oa.has(this)){const Te=this._mathfield,tt=Oa.get(this),kt=tt.menuItems;Te.model.deferNotifications({content:!1,selection:!1},()=>{const jt=tt.value;jt!==void 0&&Te.setValue(jt),Te.model.selection=tt.selection,Oa.delete(this)}),kt&&(this.menuItems=kt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),If()}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=zc(this._mathfield.options,Object.keys(Vc.optionsAttributes).map(ee=>Gu(ee)));Oa.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":Ho(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",""),Md()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(Md()?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"),Md()?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:Ee(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=Oa.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}Oa.has(this)?Oa.set(this,Ee(we({},Oa.get(this)),{menuItems:y})):Oa.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:Oa.has(this)?Oa.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,Ho(this._mathfield);return}if(Oa.has(this)){Oa.set(this,Ee(we({},Oa.get(this)),{selection:y}));return}Oa.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:Oa.has(this)?Oa.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,Ho(this._mathfield)),Oa.has(this)){Oa.set(this,Ee(we({},Oa.get(this)),{selection:{ranges:[[y,y]]}}));return}Oa.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=r1,Ol.readAloudHook=h1,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 cf=Ol;function Gu(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function df(a){const y={readOnly:!1},b=cf.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[Gu(E)]=!0:b[E]==="on/off"?ee==="on"?y[Gu(E)]=!0:ee==="off"?y[Gu(E)]=!1:y[Gu(E)]=void 0:b[E]==="number"?y[Gu(E)]=Number.parseFloat(ee!=null?ee:"0"):y[Gu(E)]=ee}}),y}function Md(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var gp=cf,yp,bp,xp,Cp;if(st()&&!((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=cf,(Cp=window.customElements)==null||Cp.define("math-field",cf)}function m1(a,y,b){let E=b,ee=0;const re=a.length;for(;E<y.length;){const le=y[E];if(ee<=0&&y.slice(E,E+re)===a)return E;le==="\\"?E++:le==="{"?ee++:le==="}"&&ee--,E++}return-1}function nh(a,y,b,E,ee="latex"){const re=[];for(const le of a)if(le.type==="text"){const pe=le.data;let ve=!0,Ce=0,Te;Te=pe.indexOf(y),Te!==-1&&(Ce=Te,Ce>0&&re.push({type:"text",data:pe.slice(0,Ce)}),ve=!1);let tt=!1;for(;!tt;){if(ve){if(Te=pe.indexOf(y,Ce),Te===-1){tt=!0;break}Ce!==Te&&re.push({type:"text",data:pe.slice(Ce,Te)}),Ce=Te}else{if(Te=m1(b,pe,Ce+y.length),Te===-1){tt=!0;break}let kt=pe.slice(Ce+y.length,Te);ee==="ascii-math"&&([,kt]=Ic(kt,{format:"ascii-math"})),re.push({type:"math",data:kt,rawData:pe.slice(Ce,Te+b.length),mathstyle:E}),Ce=Te+b.length}ve=!ve}Ce<pe.length&&re.push({type:"text",data:pe.slice(Ce)})}else re.push(le);return re}function Sp(a,y,b){let E=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ee,re])=>{E=nh(E,ee,re,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ee,re])=>{E=nh(E,ee,re,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ee,re])=>{E=nh(E,ee,re,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ee,re])=>{E=nh(E,ee,re,"displaystyle","ascii-math")}),E}function v1(a,y){const b=document.createElement("span");b.setAttribute("translate","no");try{const E="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+y.renderToMathML(a)+"</math>";b.innerHTML=window.MathfieldElement.createHTML(E)}catch(E){console.error(`MathLive 0.98.5: Could not convert "${a}"' to MathML with ${E}`),b.textContent=a}return b.className="ML__sr-only",b}function g1(a,y,b,E){try{const ee=y.renderToMarkup(a,{mathstyle:b,format:"html"}),re=document.createElement("span");return re.dataset.latex=a,re.style.display=b==="displaystyle"?"flex":"inline-flex",re.setAttribute("aria-hidden","true"),re.setAttribute("translate","no"),re.innerHTML=window.MathfieldElement.createHTML(ee),re}catch(ee){if(console.error("Could not parse'"+a+"' with ",ee),E)return document.createTextNode(a)}return null}function kd(a,y,b,E){var ee;const re=g1(a,b,y||"textstyle",E),le=(ee=b.renderAccessibleContent)!=null?ee:"";if(re&&/\b(mathml|speakable-text)\b/i.test(le)){const pe=document.createElement("span");if(/\bmathml\b/i.test(le)&&b.renderToMathML&&pe.append(v1(a,b)),/\bspeakable-text\b/i.test(le)&&b.renderToSpeakableText){const ve=document.createElement("span");ve.setAttribute("translate","no");const Ce=b.renderToSpeakableText(a);ve.innerHTML=window.MathfieldElement.createHTML(Ce),ve.className="ML__sr-only",pe.append(ve)}return pe.append(re),pe}return re}function y1(a,y){var b,E,ee;let re=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){re=document.createDocumentFragment();const le=kd(a,"",y,!0);le&&re.appendChild(le)}else{if(!a.trim())return null;const le=Sp(a,(E=y.TeX)==null?void 0:E.delimiters,(ee=y.asciiMath)==null?void 0:ee.delimiters);if(le.length===1&&le[0].type==="text")return null;re=document.createDocumentFragment();for(const pe of le)if(pe.type==="text")re.appendChild(document.createTextNode(pe.data));else{const ve=kd(pe.data,pe.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);ve&&re.appendChild(ve)}}return re}function wp(a,y){var b,E,ee,re,le,pe,ve,Ce,Te,tt,kt,jt,qt,$n,Kr,Wn;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const dr=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test(dr)){a.textContent="";const vr=kd(dr,"",y,!0);vr&&a.append(vr);return}const Ur=Sp(dr,(ee=y.TeX)==null?void 0:ee.delimiters,(re=y.asciiMath)==null?void 0:re.delimiters);if(Ur.length===1&&Ur[0].type==="math"){a.textContent="";const vr=kd(Ur[0].data,Ur[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);vr&&a.append(vr);return}if(Ur.length===1&&Ur[0].type==="text")return}for(let dr=a.childNodes.length-1;dr>=0;dr--){const Ur=a.childNodes[dr];if(Ur.nodeType===3){const vr=y1((le=Ur.textContent)!=null?le:"",y);vr&&(dr+=vr.childNodes.length-1,Ur.replaceWith(vr))}else if(Ur.nodeType===1){const vr=Ur,bi=Ur.nodeName.toLowerCase();if(bi==="script"){const Pi=Ur;let Di;if((pe=y.processScriptTypePattern)!=null&&pe.test(Pi.type))Di=(ve=Pi.textContent)!=null?ve:"";else if((Ce=y.processMathJSONScriptTypePattern)!=null&&Ce.test(Pi.type))try{Di=(tt=y.serializeToLatex)==null?void 0:tt.call(y,JSON.parse((Te=Pi.textContent)!=null?Te:""))}catch(Ma){console.error(Ma)}if(Di){let Ma="textstyle";for(const Qr of Pi.type.split(";")){const[Ws,Tu]=Qr.toLowerCase().split("=");Ws.trim()==="mode"&&(Ma=Tu.trim()==="display"?"displaystyle":"textstyle")}const oo=kd(Di,Ma,y,!0);oo&&Pi.parentNode.replaceChild(oo,Pi)}}else if(((jt=(kt=y.processClassPattern)==null?void 0:kt.test(vr.className))!=null?jt:!1)||!(($n=(qt=y.skipTags)==null?void 0:qt.includes(bi))!=null&&$n||(Wn=(Kr=y.ignoreClassPattern)==null?void 0:Kr.test(vr.className))!=null&&Wn))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Di=a.textContent;a.textContent="";const Ma=kd(Di!=null?Di:"","displaystyle",y,!0);Ma&&a.append(Ma)}else wp(vr,y)}}}var b1={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function x1(a,y){var b,E,ee,re;try{const le=we(we({},b1),y);le.ignoreClassPattern=new RegExp((b=le.ignoreClass)!=null?b:""),le.processClassPattern=new RegExp((E=le.processClass)!=null?E:""),le.processScriptTypePattern=new RegExp((ee=le.processScriptType)!=null?ee:""),le.processMathJSONScriptTypePattern=new RegExp((re=le.processMathJSONScriptType)!=null?re:""),If(),Ms("core"),wp(a,le)}catch(le){le instanceof Error?console.error("renderMathInElement(): "+le.message):console.error("renderMathInElement(): Could not render math for element",a)}}function C1(a,y){const b=pc.singleton;return b?(b.show(),Jd(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function S1(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}ks({switchKeyboardLayer:C1,toggleVirtualKeyboard:S1,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function gc(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function B1(){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 P1(a){E1(document.body,a)}function w1(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 E1(a,y){var b,E,ee,re;const le=w1(a);if(!le)return;const pe=y!=null?y:{};(b=pe.renderToMarkup)!=null||(pe.renderToMarkup=El),(E=pe.renderToMathML)!=null||(pe.renderToMathML=Ng),(ee=pe.renderToSpeakableText)!=null||(pe.renderToSpeakableText=Rg),(re=pe.serializeToLatex)!=null||(pe.serializeToLatex=zg),x1(le,pe)}var I1={mathlive:"0.98.5"}},16722:function(An,Ut,oe){"use strict";oe.d(Ut,{Z:function(){return we}});const me=Ee=>typeof Ee=="object"&&Ee!=null&&Ee.nodeType===1,Me=(Ee,ze)=>(!ze||Ee!=="hidden")&&Ee!=="visible"&&Ee!=="clip",Pe=(Ee,ze)=>{if(Ee.clientHeight<Ee.scrollHeight||Ee.clientWidth<Ee.scrollWidth){const vt=getComputedStyle(Ee,null);return Me(vt.overflowY,ze)||Me(vt.overflowX,ze)||(Ie=>{const He=(st=>{if(!st.ownerDocument||!st.ownerDocument.defaultView)return null;try{return st.ownerDocument.defaultView.frameElement}catch(Je){return null}})(Ie);return!!He&&(He.clientHeight<Ie.scrollHeight||He.clientWidth<Ie.scrollWidth)})(Ee)}return!1},pt=(Ee,ze,vt,Ie,He,st,Je,Ue)=>st<Ee&&Je>ze||st>Ee&&Je<ze?0:st<=Ee&&Ue<=vt||Je>=ze&&Ue>=vt?st-Ee-Ie:Je>ze&&Ue<vt||st<Ee&&Ue>vt?Je-ze+He:0,ge=Ee=>{const ze=Ee.parentElement;return ze==null?Ee.getRootNode().host||null:ze},ke=(Ee,ze)=>{var vt,Ie,He,st;if(typeof document=="undefined")return[];const{scrollMode:Je,block:Ue,inline:gt,boundary:Et,skipOverflowHiddenElements:At}=ze,dt=typeof Et=="function"?Et:Zt=>Zt!==Et;if(!me(Ee))throw new TypeError("Invalid target");const nt=document.scrollingElement||document.documentElement,Ve=[];let Se=Ee;for(;me(Se)&&dt(Se);){if(Se=ge(Se),Se===nt){Ve.push(Se);break}Se!=null&&Se===document.body&&Pe(Se)&&!Pe(document.documentElement)||Se!=null&&Pe(Se,At)&&Ve.push(Se)}const $e=(Ie=(vt=window.visualViewport)==null?void 0:vt.width)!=null?Ie:innerWidth,Ye=(st=(He=window.visualViewport)==null?void 0:He.height)!=null?st:innerHeight,{scrollX:ht,scrollY:Xe}=window,{height:ut,width:Oe,top:Pt,right:qe,bottom:zt,left:Dt}=Ee.getBoundingClientRect(),{top:Bt,right:St,bottom:It,left:Qe}=(Zt=>{const at=window.getComputedStyle(Zt);return{top:parseFloat(at.scrollMarginTop)||0,right:parseFloat(at.scrollMarginRight)||0,bottom:parseFloat(at.scrollMarginBottom)||0,left:parseFloat(at.scrollMarginLeft)||0}})(Ee);let be=Ue==="start"||Ue==="nearest"?Pt-Bt:Ue==="end"?zt+It:Pt+ut/2-Bt+It,Ct=gt==="center"?Dt+Oe/2-Qe+St:gt==="end"?qe+St:Dt-Qe;const Yt=[];for(let Zt=0;Zt<Ve.length;Zt++){const at=Ve[Zt],{height:ot,width:Nt,top:Sn,right:$t,bottom:mn,left:on}=at.getBoundingClientRect();if(Je==="if-needed"&&Pt>=0&&Dt>=0&&zt<=Ye&&qe<=$e&&(at===nt&&!Pe(at)||Pt>=Sn&&zt<=mn&&Dt>=on&&qe<=$t))return Yt;const nn=getComputedStyle(at),en=parseInt(nn.borderLeftWidth,10),ye=parseInt(nn.borderTopWidth,10),ue=parseInt(nn.borderRightWidth,10),se=parseInt(nn.borderBottomWidth,10);let ce=0,de=0;const ae="offsetWidth"in at?at.offsetWidth-at.clientWidth-en-ue:0,Be="offsetHeight"in at?at.offsetHeight-at.clientHeight-ye-se:0,ft="offsetWidth"in at?at.offsetWidth===0?0:Nt/at.offsetWidth:0,Fe="offsetHeight"in at?at.offsetHeight===0?0:ot/at.offsetHeight:0;if(nt===at)ce=Ue==="start"?be:Ue==="end"?be-Ye:Ue==="nearest"?pt(Xe,Xe+Ye,Ye,ye,se,Xe+be,Xe+be+ut,ut):be-Ye/2,de=gt==="start"?Ct:gt==="center"?Ct-$e/2:gt==="end"?Ct-$e:pt(ht,ht+$e,$e,en,ue,ht+Ct,ht+Ct+Oe,Oe),ce=Math.max(0,ce+Xe),de=Math.max(0,de+ht);else{ce=Ue==="start"?be-Sn-ye:Ue==="end"?be-mn+se+Be:Ue==="nearest"?pt(Sn,mn,ot,ye,se+Be,be,be+ut,ut):be-(Sn+ot/2)+Be/2,de=gt==="start"?Ct-on-en:gt==="center"?Ct-(on+Nt/2)+ae/2:gt==="end"?Ct-$t+ue+ae:pt(on,$t,Nt,en,ue+ae,Ct,Ct+Oe,Oe);const{scrollLeft:De,scrollTop:mt}=at;ce=Fe===0?0:Math.max(0,Math.min(mt+ce/Fe,at.scrollHeight-ot/Fe+Be)),de=ft===0?0:Math.max(0,Math.min(De+de/ft,at.scrollWidth-Nt/ft+ae)),be+=mt-ce,Ct+=De-de}Yt.push({el:at,top:ce,left:de})}return Yt},he=Ee=>Ee===!1?{block:"end",inline:"nearest"}:(ze=>ze===Object(ze)&&Object.keys(ze).length!==0)(Ee)?Ee:{block:"start",inline:"nearest"};function we(Ee,ze){if(!Ee.isConnected||!(He=>{let st=He;for(;st&&st.parentNode;){if(st.parentNode===document)return!0;st=st.parentNode instanceof ShadowRoot?st.parentNode.host:st.parentNode}return!1})(Ee))return;const vt=(He=>{const st=window.getComputedStyle(He);return{top:parseFloat(st.scrollMarginTop)||0,right:parseFloat(st.scrollMarginRight)||0,bottom:parseFloat(st.scrollMarginBottom)||0,left:parseFloat(st.scrollMarginLeft)||0}})(Ee);if((He=>typeof He=="object"&&typeof He.behavior=="function")(ze))return ze.behavior(ke(Ee,ze));const Ie=typeof ze=="boolean"||ze==null?void 0:ze.behavior;for(const{el:He,top:st,left:Je}of ke(Ee,he(ze))){const Ue=st-vt.top+vt.bottom,gt=Je-vt.left+vt.right;He.scroll({top:Ue,left:gt,behavior:Ie})}}}}]);
}());