|
|
!(function(){var su=Math.pow;var Vu=(bn,Ut,re)=>new Promise((ie,Le)=>{var Oe=Me=>{try{be(re.next(Me))}catch(ue){Le(ue)}},Ue=Me=>{try{be(re.throw(Me))}catch(ue){Le(ue)}},be=Me=>Me.done?ie(Me.value):Promise.resolve(Me.value).then(Oe,Ue);be((re=re.apply(bn,Ut)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[51461],{33463:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},28575:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},18299:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},84249:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},81893:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},42922:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},90674:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},25877:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},63237:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},99569:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},73148:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},56747:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},50881:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},22751:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},34182:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},38308:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},74664:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},17663:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},91034:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},72395:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},53978:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ue}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(me,Ie){return Le.createElement(be.Z,(0,ie.Z)({},me,{ref:Ie,icon:Ue}))},ue=Le.forwardRef(Me)},71749:function(){"use strict"},30483:function(){"use strict"},71736:function(bn,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"}},52654:function(bn,Ut){"use strict";Ut.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var bn={},Ut="5.0",re={},ie=null,Le=!1,Oe=!1,Ue=null,be=!1,Me=null,ue=null,we=0;we<arguments.length;we++){var me=arguments[we];if(me!==null)switch(typeof me){case"number":Ut=me.toFixed(1);break;case"string":me.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ut=me:Ue=me;break;case"object":typeof me.is3D!="undefined"?ie=me:re=me;break;case"boolean":Le=me,Oe=!0;break}}ie===null&&(ie={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},re.material_id!==void 0&&!Oe&&(Le=!0)),Ue!==null&&re.id===void 0&&(re.id=Ue);var Ie="",ct="",Ke=!1,st=null,dt=null,Xe=null,We=!1,ye=null,it=null,Lt=null,qe=null,rt=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var xe=function(ht){return parseFloat(ht)>4?parseFloat(ht):5};bn.setHTML5Codebase=function(ht,Et){ue=ht,St(ht,Et)},bn.setJavaCodebase=bn.setJavaCodebaseVersion=bn.isCompiledInstalled=bn.setPreCompiledScriptPath=bn.setPreCompiledResourcePath=function(){},bn.setHTML5CodebaseVersion=function(ht,Et){var Qt=parseFloat(ht);if(Qt!==NaN&&Qt<5){console.log("The GeoGebra HTML5 codebase version "+Qt+" is deprecated. Using version latest instead.");return}Me=ht,Ae(ht,Et)},bn.getHTML5CodebaseVersion=function(){return dt},bn.getParameters=function(){return re},bn.setFontsCSSURL=function(ht){qe=ht},bn.setGiacJSURL=function(ht){},bn.setJNLPFile=function(ht){Ie=ht},bn.setJNLPBaseDir=function(ht){},bn.inject=function(){function ht(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Et="auto",Qt=re.id,ir,On=!1,$t=0;$t<arguments.length;$t++){var yn=arguments[$t];typeof yn=="string"?(yn=yn.toLowerCase(),yn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Et=yn:Qt=arguments[$t]):typeof yn=="boolean"?On=yn:yn instanceof HTMLElement&&(ir=yn)}Qn();function Qn(){if(!be){setTimeout(Qn,200);return}Et=Tn(Et);var Cn=ir||document.getElementById(Qt);if(!Cn){console.log("possibly bug on ajax loading? ");return}if(bn.removeExistingApplet(Cn,!1),re.width===void 0&&Cn.clientWidth&&(re.width=Cn.clientWidth),re.height===void 0&&Cn.clientHeight&&(re.height=Cn.clientHeight),!(re.width&&re.height)&&Et==="html5"&&(delete re.width,delete re.height),st=Et,Et==="screenshot")bt(Cn,re);else{var Pe=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?Pe=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(Pe=(!Se()||ht())&&Ze()),Pe?(st="screenshot",Mt(Cn,re,On,Et)):jt(Cn,re,On)}}};function Se(){try{return window.self!==window.top}catch(ht){return!0}}function Ze(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}bn.getViews=function(){return ie},bn.isJavaInstalled=function(){return!1};var Ge=function(ht){var Et=function($t){var yn=JSON.parse($t),Qn=function(fe){return fe.type=="G"||fe.type=="E"},Cn=yn.elements?yn.elements.filter(Qn)[0]:yn;if(!Cn||!Cn.url){Qt();return}re.fileName=Cn.url,yt(Cn.settings||{}),ie.is3D=!0;var Pe="https://www.geogebra.org/images/";bn.setPreviewImage(ye||Cn.previewUrl,Pe+"GeoGebra_loading.png",Pe+"applet_play.png"),ht()},Qt=function(){re.onError&&re.onError(),cn("Error: Fetching material (id "+re.material_id+") failed.",re)},ir=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",On="/materials/"+re.material_id+"?scope=basic";pt("https://"+ir+"/api/proxy.php?path="+encodeURIComponent(On),Et,Qt)};function yt(ht){var Et=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Qt){ht[Qt]=!!ht[Qt]}),Et.forEach(function(Qt){re[Qt]===void 0&&ht[Qt]!==void 0&&(re[Qt]=ht[Qt])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function pt(ht,Et,Qt){var ir=new XMLHttpRequest;ir.open("GET",ht),ir.onload=function(){Et(ir.responseText)},ir.onerror=Qt,ir.send()}bn.isHTML5Installed=function(){return!0},bn.getLoadedAppletType=function(){return st},bn.setPreviewImage=function(ht,Et,Qt){ye=ht,it=Et,Lt=Qt},bn.removeExistingApplet=function(ht,Et){var Qt;typeof ht=="string"&&(ht=document.getElementById(ht)),st=null;var ir=null;for(Qt=0;Qt<ht.childNodes.length;Qt++){var On=ht.childNodes[Qt],$t=On.className;$t==="applet_screenshot"?Et?(On.style.display="block",st="screenshot"):On.style.display="none":$t!=="applet_scaler prerender"&&(ht.removeChild(On),ir=$t&&$t.indexOf("appletParameters")!=-1?On.id:null,Qt--)}var yn=re.id!==void 0?re.id:ir,Qn=window[yn];Qn&&typeof Qn.getBase64=="function"&&(Qn.remove(),window[yn]=null)},bn.refreshHitPoints=function(){if(xe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ht=bn.getAppletObject();return ht&&typeof ht.recalculateEnvironments=="function"?(ht.recalculateEnvironments(),!0):!1},bn.startAnimation=function(){var ht=bn.getAppletObject();return ht&&typeof ht.startAnimation=="function"?(ht.startAnimation(),!0):!1},bn.stopAnimation=function(){var ht=bn.getAppletObject();return ht&&typeof ht.stopAnimation=="function"?(ht.stopAnimation(),!0):!1},bn.getAppletObject=function(){var ht=re.id!==void 0?re.id:"ggbApplet";return window[ht]},bn.resize=function(){};var ft=function(ht,Et,Qt){var ir=document.createElement("param");ir.setAttribute("name",Et),ir.setAttribute("value",Qt),ht.appendChild(ir)},Ne=function(ht){return ht&&ht!=="false"},jt=function(ht,Et,Qt){xe(dt)<=4.2&&(Qt=!0);var ir=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==dt||ggbHTML5LoadedCodebaseIsWebSimple&&!We)&&(ir=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var On=document.createElement("div");On.classList.add("appletParameters","notranslate");var $t=Et.width,yn=Et.height;if(Et.disableAutoScale=Et.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Et.disableAutoScale,Et.width!==void 0)if(xe(dt)<=4.4)Ne(Et.showToolBar)&&(Et.height-=7),Ne(Et.showAlgebraInput)&&(Et.height-=37),Et.width<605&&Ne(Et.showToolBar)&&(Et.width=605,$t=605);else{var Qn=100;(Ne(Et.showToolBar)||Ne(Et.showMenuBar))&&(Et.hasOwnProperty("customToolBar")&&(Et.customToolbar=Et.customToolBar),Qn=Ne(Et.showMenuBar)?245:155),$t<Qn&&(Et.width=Qn,$t=Qn)}On.style.border="none",On.style.display="inline-block";for(var Cn in Et)Et.hasOwnProperty(Cn)&&Cn!=="appletOnLoad"&&On.setAttribute("data-param-"+Cn,Et[Cn]);qe&&On.setAttribute("data-param-fontscssurl",qe),bn.resize=function(){GGBAppletUtils.responsiveResize(ht,Et)},window.addEventListener("resize",function(un){bn.resize()});var Pe=typeof Et.appletOnLoad=="function"?Et.appletOnLoad:function(){};if(!Qt&&Et.width!==void 0){Et.hasOwnProperty("showSplash")||On.setAttribute("data-param-showSplash","false");var fe=ht.querySelector(".applet_scaler.prerender"),ce=fe!==null;if(ce)var pe=fe.querySelector(".ggb_preview");else{var pe=Bn($t,yn,Et.borderColor,!1);fe=document.createElement("div"),fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.style.width=$t+"px",fe.style.height=yn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(fe,"66%"),xe(dt)>=5?(Et.appletOnLoad=function(un){var gt=ht.querySelector(".ggb_preview");gt&>.parentNode.removeChild(gt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(fe),window.GGBT_wsf_view&&$(window).trigger("resize"),Pe(un)},ce||fe.appendChild(pe)):On.appendChild(pe),fe.appendChild(On),ce||ht.appendChild(fe),setTimeout(function(){bn.resize()},1)}else{var de=document.createElement("div");de.className="applet_scaler",de.style.position="relative",de.style.display="block",de.appendChild(On),ht.appendChild(de),Et.appletOnLoad=function(un){bn.resize(),Pe(un)}}function le(un,gt){gt&&typeof gt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(un,gt.appletOnLoad):renderGGBElement(un),cn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",gt)}function Te(un,gt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:un,params:gt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(zt){le(zt.article,zt.params)}),html5AppletsToProcess=null)},xe(dt)<5&&(un.className+=" geogebraweb")):le(un,gt)}if(ir){scriptLoadStarted=!0;for(var ot=0;ot<On.childNodes.length;ot++){var Bt=On.childNodes[ot].tagName;Bt==="TABLE"&&(On.removeChild(On.childNodes[ot]),ot--)}if(ggbHTML5LoadedScript!==null){var en=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');en!=null&&en.parentNode.removeChild(en)}var rn=document.createElement("script"),sn=function(){Te(On,Et)};rn.src=ct+Xe,ggbHTML5LoadedCodebaseIsWebSimple=We,ggbHTML5LoadedCodebaseVersion=dt,ggbHTML5LoadedScript=rn.src,cn("GeoGebra HTML5 codebase loaded: '"+ct+"'.",Et),!ue&&(!Me||Me=="5.0")?(We?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),sn()):ct.requirejs?__webpack_require__.e(12).then(function(){var un=[__webpack_require__(12)];sn.apply(null,un)}.bind(this)).catch(__webpack_require__.oe):(rn.onload=sn,ht.appendChild(rn))}else Te(On,Et);Et.height=yn,Et.width=$t},bt=function(ht,Et,Qt){var ir=Bn(Et.width,Et.height,Et.borderColor,Qt),On=document.createElement("div");On.style.position="relative",On.style.display="block",On.style.width=Et.width+"px",On.style.height=Et.height+"px",On.className="applet_screenshot applet_scaler"+(Qt?" applet_screenshot_play":""),On.appendChild(ir);var $t=GGBAppletUtils.getScale(Et,ht,Qt);Qt?(ht.appendChild(Gt()),window.GGBT_wsf_view||(ht.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(On,"66%"),ht.appendChild(On),$t!==1&&!isNaN($t)&&(GGBAppletUtils.scaleElement(On,$t),On.style.width=Et.width+"px",On.style.height=Et.height+"px",On.parentNode.style.width=Et.width*$t+"px",On.parentNode.style.height=Et.height*$t+"px"),bn.resize=function(){xn(ht,ir,On,Qt)},window.addEventListener("resize",function(yn){bn.resize()}),bn.resize()};function xn(ht,Et,Qt,ir){if(ht.contains(Et)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ht.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ht)}var On=GGBAppletUtils.getScale(re,ht,ir);Qt.parentNode!==null&&(!isNaN(On)&&On!==1?(GGBAppletUtils.scaleElement(Qt,On),Qt.parentNode.style.width=re.width*On+"px",Qt.parentNode.style.height=re.height*On+"px"):(GGBAppletUtils.scaleElement(Qt,1),Qt.parentNode.style.width=re.width+"px",Qt.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ht),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}bn.onExitFullscreen=function(ht,Et){Et.appendChild(ht)};var Mt=function(ht,Et,Qt,ir){bt(ht,Et,!0);for(var On=function(){var Qn=[];for(yn=0;yn<ht.childNodes.length;yn++)Qn.push(ht.childNodes[yn]);if(window.GGBT_wsf_view){var Cn=window.GGBT_wsf_view.renderFullScreen(ht,Et.id),Pe=document.getElementById("fullscreencontainer"),fe=jQuery(ht).find(".fullscreencontent");fe.length>0?(Cn.remove(),fe.attr("id","fullscreencontent").show(),jQuery(Pe).append(fe),window.dispatchEvent(new Event("resize"))):jt(Cn,Et,!1),window.GGBT_wsf_view.launchFullScreen(Pe)}else st=ir,jt(ht,Et,!1);if(!window.GGBT_wsf_view)for(yn=0;yn<Qn.length;yn++)ht.removeChild(Qn[yn])},$t=ht.getElementsByClassName("ggb_preview_play"),yn=0;yn<$t.length;yn++)$t[yn].addEventListener("click",On,!1),$t[yn].addEventListener("ontouchstart",On,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ht),Ze()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Gt=function(){var ht=document.createElement("div");if(ht.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Et='.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");}',Qt=document.createElement("style");Qt.styleSheet?Qt.styleSheet.cssText=Et:Qt.appendChild(document.createTextNode(Et)),document.getElementsByTagName("head")[0].appendChild(Qt)}return ht},Bn=function(ht,Et,Qt,ir){var On=document.createElement("div");On.className="ggb_preview",On.style.position="absolute",On.style.zIndex="90",On.style.width=ht-2+"px",On.style.height=Et-2+"px",On.style.top="0px",On.style.left="0px",On.style.overflow="hidden",On.style.backgroundColor="white";var $t="lightgrey";Qt!==void 0&&(Qt==="none"?$t="transparent":$t=Qt),On.style.border="1px solid "+$t;var yn=document.createElement("img");if(yn.style.position="relative",yn.style.zIndex="1000",yn.style.top="-1px",yn.style.left="-1px",ye!==null&&yn.setAttribute("src",ye),yn.style.opacity=.7,it!==null){var Qn,Cn,Pe;if(!ir){Qn=document.createElement("img"),Qn.style.position="absolute",Qn.style.zIndex="1001",Qn.style.opacity=1,yn.style.opacity=.3,Cn=360,Cn>ht/4*3&&(Cn=ht/4*3),Pe=Cn/5.8,Qn.setAttribute("src",it),Qn.setAttribute("width",Cn),Qn.setAttribute("height",Pe);var fe=(ht-Cn)/2,ce=(Et-Pe)/2;Qn.style.left=fe+"px",Qn.style.top=ce+"px",On.appendChild(Qn)}}return On.appendChild(yn),On},Tn=function(ht){return ht=ht.toLowerCase(),ht==="html5"||ht==="screenshot"?ht:"html5"},at=["web","webSimple","web3d","tablet","tablet3d","phone"],Ae=function(ht,Et){if(dt=ht,Et){St(dt,!0);return}var Qt=!Le;if(Qt){var ir=xe(dt);!isNaN(ir)&&ir<4.4&&(Qt=!1)}var On,$t;window.location.protocol.substr(0,4)==="http"?On=window.location.protocol:On="http:";var yn=dt.indexOf("//");yn>0?$t=dt:yn===0?$t=On+dt:$t="https://www.geogebra.org/apps/5.2.814.0/";for(var Qn in at)if(dt.slice(at[Qn].length*-1)===at[Qn]||dt.slice((at[Qn].length+1)*-1)===at[Qn]+"/"){St($t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Qt&&!ie.is3D&&!ie.AV&&!ie.SV&&!ie.CV&&!ie.EV2&&!ie.CP&&!ie.PC&&!ie.DA&&!ie.FI&&!ie.PV&&!Ne(re.showToolBar)&&!Ne(re.showMenuBar)&&!Ne(re.showAlgebraInput)&&!Ne(re.enableRightClick)&&(!re.appName||re.appName=="classic")?$t+="webSimple/":$t+="web3d/",St($t,!1)},St=function(ht,Et){if(ht.requirejs){ct=ht;return}ht.slice(-1)!=="/"&&(ht+="/"),ct=ht,Et===null&&(Et=ht.indexOf("http")===-1),Ke=Et,Xe="web.nocache.js",We=!1;var Qt=ct.split("/");Qt.length>1&&(!Et&&Qt[Qt.length-2]==="webSimple"?(Xe="webSimple.nocache.js",We=!0):at.indexOf(Qt[Qt.length-2])>=0&&(Xe=Qt[Qt.length-2]+".nocache.js")),Qt=ht.split("/"),dt=Qt[Qt.length-3],dt.substr(0,4)==="test"?dt=dt.substr(4,1)+"."+dt.substr(5,1):(dt.substr(0,3)==="war"||dt.substr(0,4)==="beta")&&(dt="5.0");var ir=parseFloat(dt);ir!==NaN&&ir<5&&ht.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ir+" is deprecated. Using version latest instead."),Ae("5.0",Et))},cn=function(ht,Et){window.console&&window.console.log&&(!Et||typeof Et.showLogging=="undefined"||Et.showLogging&&Et.showLogging!=="false")&&console.log(ht)};re.material_id!==void 0?Ge(Pt):Pt();function Pt(){var ht=Ut;Me!==null?ht=Me:parseFloat(ht)<5&&(ht="5.0"),Ae(ht,!1),ue!==null&&St(ue,Ke),be=!0}return bn},GGBAppletUtils=function(){"use strict";function bn(){return window.GGBT_wsf_edit!==void 0}function Ut(be,Me){Me!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+Me+","+Me+")",be.style.webkitTransform="scale("+Me+","+Me+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function re(be,Me,ue,we,me,Ie){var ct=null;if(Ie!=null&&Ie!="")for(var Ke=be.parentNode;Ke!=null;)if((" "+Ke.className+" ").indexOf(" "+Ie+" ")>-1){ct=Ke;break}else Ke=Ke.parentNode;var st=0,dt=0,Xe=0,We=0,ye=0,it=0,Lt=0;if(ct)st=ct.offsetWidth,dt=Math.max(we?ct.offsetWidth:0,ct.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(st=Math.min(window.innerWidth,document.documentElement.clientWidth),dt=Math.min(window.innerHeight,document.documentElement.clientHeight),Xe=st):(st=window.innerWidth,dt=window.innerHeight,Xe=window.innerWidth),be){var qe=be.getBoundingClientRect();qe.left>0&&qe.left<=st&&(me===void 0||!me)&&(document.dir==="rtl"?(ye=st-qe.width-qe.left,it=Xe<=480?10:30):(it=qe.left,ye=Xe<=480?10:30),We=it+ye)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var rt=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(We=40,Lt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(We=0,Lt=40)}}return be&&((ue===void 0||!ue)&&Me>0&&Me+We<st?st=Me:st-=We,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(dt-=Lt)),{width:st,height:dt}}function ie(be,Me,ue,we,me){if(be.isScreenshoGenerator)return 1;var Ie=we!==void 0&&we,ct=be.noScaleMargin!=null&&be.noScaleMargin,Ke=function(rt){return rt&&rt!=="false"},st=Ke(be.autoHeight),dt=re(Me,be.width,ue,st,Ie&&window.GGBT_wsf_view||ct,me),Xe=parseInt(dt.width),We=be.width,ye=be.height;if(We===void 0){var it=Me.querySelector(".appletParameters");it&&(We=it.offsetWidth,ye=it.offsetHeight)}var Lt=Xe/We,qe=Ie?1:dt.height/ye;return ue!==void 0&&!ue&&(Lt=Math.min(1,Lt),qe=Math.min(1,qe)),Math.min(Lt,qe)}function Le(be,Me,ue){var we=1,me,Ie=!1;if(be.hasOwnProperty("allowUpscale")&&(Ie=be.allowUpscale),be.hasOwnProperty("scale")&&(we=parseFloat(be.scale),(isNaN(we)||we===null||we===0)&&(we=1),we>1&&(Ie=!0)),Me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))me=ie(be,Me,Ie,ue,be.scaleContainerClass);else return we;return Ie&&(!be.hasOwnProperty("scale")||we===1)?me:Math.min(we,me)}function Oe(be){var Me=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),we=be.getBoundingClientRect(),me=(Me-we.width)/2,Ie=(ue-we.height)/2;Ie<0&&(Ie=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(me<40?be.style.left="40px":be.style.left=me+"px",be.style.top=Ie+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ie<40?be.style.top="40px":be.style.top=Ie+"px",be.style.left=me+"px")}function Ue(be,Me){var ue=be.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Me.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var we=Le(Me,be);bn()&&ue.setAttribute("data-param-scale",we);for(var me=null,Ie=0;Ie<be.childNodes.length;Ie++)if(be.childNodes[Ie].className!==void 0&&be.childNodes[Ie].className.match(/^applet_scaler/)){me=be.childNodes[Ie];break}if(me!==null&&me.querySelector(".noscale")!==null)return;var ct=Me.id!==void 0?Me.id:"ggbApplet",Ke=window[ct];(Ke==null||!Ke.recalculateEnvironments)&&me!==null&&!me.className.match(/fullscreen/)&&(me.parentNode.style.transform="",!isNaN(we)&&we!==1?(me.parentNode.style.width=Me.width*we+"px",me.parentNode.style.height=Me.height*we+"px",Ut(me,we)):(Ut(me,1),me.parentNode.style.width=Me.width+"px",me.parentNode.style.height=Me.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Oe(be),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:Ue,isFlexibleWorksheetEditor:bn,positionCenter:Oe,getScale:Le,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 bn=n.location.search;return bn.indexOf(J)!=-1||bn.indexOf(K)!=-1}function q(bn,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(bn){var Ut=s[L].bindings;s[L].bindings=function(){for(var re=Ut?Ut():{},ie=bn[webModule.__softPermutationId],Le=O;Le<ie.length;Le++){var Oe=ie[Le];re[Oe[O]]=Oe[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var bn=o.createElement(Q);if(bn.id=L,bn.style.cssText=R+S,bn.tabIndex=-1,o.body.appendChild(bn),t=bn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ut=document.compatMode==U?V:W;t.write(Ut+X),t.close()}}}function w(bn){function Ut(ie){function Le(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Oe=Le();if(Oe){ie();return}function Ue(){if(!Oe){if(!Le())return;Oe=!0,ie(),o.removeEventListener&&o.removeEventListener(Z,Ue,!1),be&&clearInterval(be)}}o.addEventListener&&o.addEventListener(Z,Ue,!1);var be=setInterval(function(){Ue()},$)}function re(ie){var Le=u(),Oe=Le.body,Ue=Le.createElement(_);Ue.language=ab,Ue.crossOrigin=W,Ue.src=ie,webModule.__errFn&&(Ue.onerror=function(){webModule.__errFn(L,new Error(bb+ie))}),Oe.appendChild(Ue)}Ut(function(){re(bn)})}webModule.__startLoadingFragment=function(bn){return C(bn)},webModule.__installRunAsyncCode=function(bn){var Ut=u(),re=Ut.body,ie=Ut.createElement(_);ie.language=ab,ie.text=bn,re.appendChild(ie),re.removeChild(ie)};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(bn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(bn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(bn){var Ut=c[bn];return Ut==null?null:Ut},r=d,webModule.__errFn=e}function B(){function bn(be){var Me=be.lastIndexOf(rb);Me==-1&&(Me=be.length);var ue=be.indexOf(sb);ue==-1&&(ue=be.length);var we=be.lastIndexOf(tb,Math.min(ue,Me));return we>=O?be.substring(O,we+P):W}function Ut(be){if(!be.match(/^\w+:\/\//)){var Me=o.createElement(ub);Me.src=be+vb,be=bn(Me.src)}return be}function re(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function ie(){for(var be=o.getElementsByTagName(_),Me=O;Me<be.length;++Me)if(be[Me].src.indexOf(xb)!=-1)return bn(be[Me].src);return W}function Le(){var be=o.getElementsByTagName(yb);return be.length>O?be[be.length-P].href:W}function Oe(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var Ue=re();return Ue==W&&(Ue=ie()),Ue==W&&(Ue=Le()),Ue==W&&Oe()&&(Ue=bn(o.location.href)),Ue=Ut(Ue),Ue}function C(bn){return bn.match(/^\//)||bn.match(/^[a-zA-Z]+:\/\//)?bn:webModule.__moduleBase+bn}function D(){var bn=[],Ut=O,re=[],ie=[];function Le(be){var Me=ie[be](),ue=re[be];if(Me in ue)return Me;var we=[];for(var me in ue)we[ue[me]]=me;throw r&&r(be,we,Me),null}if(__gwt_isKnownPropertyValue=function(be,Me){return Me in re[be]},webModule.__getPropMap=function(){var be={};for(var Me in re)re.hasOwnProperty(Me)&&(be[Me]=Le(Me));return be},webModule.__computePropValue=Le,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Oe;try{Oe=Cb;var Ue=Oe.indexOf(Db);Ue!=-1&&(Ut=parseInt(Oe.substring(Ue+P),$),Oe=Oe.substring(O,Ue))}catch(be){}return webModule.__softPermutationId=Ut,C(Oe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(bn,Ut,re){"use strict";re.d(Ut,{Ax:function(){return Ue},Ds:function(){return be},KI:function(){return ue},SI:function(){return Oe},f1:function(){return Le}});var ie=re(11320);function Le(we){let me=!0;if(we.length>0){for(let Ie=0;Ie<we.length;Ie++)if(we[Ie].compile_success==0||!we[Ie].compile_success){me=!1;break}}else me=!1;return me}function Oe(we,me=""){let Ie=[];for(let ct=0;ct<we.length;ct++){let Ke=we[ct],st=me?`${me}/${Ke.name}`:`${Ke.name}`;Ie.push({title:Ke.name,type:Ke.type,isLeaf:Ke.type!=="tree",key:st})}return Ie}function Ue(we,me,Ie){for(let ct=0;ct<we.length;ct++){let Ke=we[ct];if(Ke.key===me){Ke.children=Ie;break}Ke.children&&Ue(Ke.children,me,Ie)}return we}function be(we,me,Ie){let ct;return function(){let Ke=this,st=arguments,dt=function(){ct=null,Ie||we.apply(Ke,st)},Xe=Ie&&!ct;clearTimeout(ct),ct=setTimeout(dt,me),Xe&&we.apply(Ke,st)}}const Me=!0,ue=ie.Z.API_SERVER},60580:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return dt}});var ie=re(71577),Le=re(67294),Oe=Object.defineProperty,Ue=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,me=(Xe,We,ye)=>We in Xe?Oe(Xe,We,{enumerable:!0,configurable:!0,writable:!0,value:ye}):Xe[We]=ye,Ie=(Xe,We)=>{for(var ye in We||(We={}))ue.call(We,ye)&&me(Xe,ye,We[ye]);if(Me)for(var ye of Me(We))we.call(We,ye)&&me(Xe,ye,We[ye]);return Xe},ct=(Xe,We)=>Ue(Xe,be(We)),Ke=(Xe,We)=>{var ye={};for(var it in Xe)ue.call(Xe,it)&&We.indexOf(it)<0&&(ye[it]=Xe[it]);if(Xe!=null&&Me)for(var it of Me(Xe))We.indexOf(it)<0&&we.call(Xe,it)&&(ye[it]=Xe[it]);return ye},st=(Xe,We,ye)=>new Promise((it,Lt)=>{var qe=Se=>{try{xe(ye.next(Se))}catch(Ze){Lt(Ze)}},rt=Se=>{try{xe(ye.throw(Se))}catch(Ze){Lt(Ze)}},xe=Se=>Se.done?it(Se.value):Promise.resolve(Se.value).then(qe,rt);xe((ye=ye.apply(Xe,We)).next())});const dt=Xe=>{var We=Xe,{children:ye}=We,it=Ke(We,["children"]);const[Lt,qe]=(0,Le.useState)(!1);return Le.createElement(ie.ZP,ct(Ie({},it),{loading:Lt,onClick:rt=>st(void 0,null,function*(){try{qe(!0),yield it.onClick(rt),qe(!1)}catch(xe){console.error(xe),qe(!1)}})}),ye)}},63037:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return st}});var ie=re(67294),Le=re(2453),Oe=re(69677),Ue={codeBox:"codeBox___WpkVl"},be=re(94184),Me=re.n(be),ue=Object.defineProperty,we=(dt,Xe,We)=>Xe in dt?ue(dt,Xe,{enumerable:!0,configurable:!0,writable:!0,value:We}):dt[Xe]=We,me=(dt,Xe,We)=>we(dt,typeof Xe!="symbol"?Xe+"":Xe,We),Ie=(dt,Xe,We)=>new Promise((ye,it)=>{var Lt=xe=>{try{rt(We.next(xe))}catch(Se){it(Se)}},qe=xe=>{try{rt(We.throw(xe))}catch(Se){it(Se)}},rt=xe=>xe.done?ye(xe.value):Promise.resolve(xe.value).then(Lt,qe);rt((We=We.apply(dt,Xe)).next())});class ct extends ie.Component{constructor(Xe){super(Xe),me(this,"canvas"),me(this,"randomNum",(We,ye)=>Math.floor(Math.random()*(ye-We)+We)),me(this,"drawPic",()=>{this.randomCode()}),me(this,"reloadPic",()=>{this.drawPic()}),me(this,"changeCode",We=>{console.log(We.target.value,222),this.setState({value:We.target.value,showError:!1})}),me(this,"onVerify",()=>{let We;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(We=!0,Le.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(We=!0,Le.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(We=!1),this.setState({showError:We}),We}),this.canvas=ie.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(Xe,We){const ye=this.randomNum(Xe,We),it=this.randomNum(Xe,We),Lt=this.randomNum(Xe,We);return`rgb(${ye}, ${it}, ${Lt})`}drawText(Xe,We,ye){Xe.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const it=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);Xe.font=it+"px SimHei";const Lt=10,qe=(this.state.contentWidth-40)/(this.state.code.length-1);let rt=Lt;ye>0&&(rt=Lt+ye*qe);let xe=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);it>40&&(xe=40);const Se=this.randomNum(-10,10);Xe.translate(rt,xe),Xe.rotate(Se*Math.PI/180),Xe.fillText(We,0,0),Xe.rotate(-Se*Math.PI/180),Xe.translate(-rt,-xe)}drawLine(Xe){for(let We=0;We<1;We++)Xe.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),Xe.beginPath(),Xe.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Xe.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Xe.stroke()}drawDot(Xe){for(let We=0;We<100;We++)Xe.fillStyle=this.randomColor(0,255),Xe.beginPath(),Xe.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),Xe.fill()}randomCode(){let Xe="";const We="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let ye=0;ye<this.state.codeLength;ye++){const it=Math.floor(Math.random()*57);Xe+=We[it]}this.setState({code:Xe},()=>{const it=this.canvas.current.getContext("2d");it.textBaseline="bottom",it.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),it.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let Lt=0;Lt<this.state.code.length;Lt++)this.drawText(it,this.state.code[Lt],Lt);this.drawLine(it),this.drawDot(it)})}render(){const{className:Xe,width:We=300}=this.props;return ie.createElement("div",{className:Me()(Ue.codeBox,Xe),style:{width:We}},ie.createElement("aside",null,ie.createElement(Oe.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),ie.createElement("div",null,ie.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),ie.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const Ke=(dt,Xe)=>{let We;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,Xe),React.createElement(ct,{ref:ye=>We=ye})),onOk:()=>Ie(void 0,null,function*(){if(We.onVerify())return Promise.reject();dt()})})};var st=ct},63205:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ct}});var ie=re(67294),Le={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Oe=re(94184),Ue=re.n(Oe),be=re(57953),Me=re(15979),ue=re(33170),we=re(28706),me=(Ke,st,dt)=>new Promise((Xe,We)=>{var ye=qe=>{try{Lt(dt.next(qe))}catch(rt){We(rt)}},it=qe=>{try{Lt(dt.throw(qe))}catch(rt){We(rt)}},Lt=qe=>qe.done?Xe(qe.value):Promise.resolve(qe.value).then(ye,it);Lt((dt=dt.apply(Ke,st)).next())}),ct=({data:Ke,className:st,fullWidth:dt,style:Xe={},onClose:We,onOk:ye,showFullTools:it,noAssociationId:Lt})=>{const qe=(0,ie.useRef)(null),rt=(0,ie.useRef)(null),xe=(0,ie.useRef)(null),Se=(0,ie.useRef)(null),[Ze,Ge]=(0,ie.useState)(!1),[yt,pt]=(0,ie.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ie.useEffect)(()=>{xe.current||(xe.current=document.createElement("style"),document.head.appendChild(xe.current)),Ke!=null&&Ke.visible?(document.body.setAttribute("data-custom","y-hidden"),xe.current.innerHTML=" html { overflow-y: hidden; }",Ke!=null&&Ke.src&&ft()):(document.body.removeAttribute("data-custom"),xe.current&&(document.head.removeChild(xe.current),xe.current=null))},[Ke==null?void 0:Ke.visible]);const ft=()=>me(void 0,null,function*(){Ge(!0),pt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Mt=yield(0,we.ZJ)(Ke==null?void 0:Ke.src);qe.current.src="",qe.current.src=Mt,qe.current.onload=function(){xn()},Ge(!1),pt("")}),Ne=()=>{document.body.removeAttribute("data-custom"),xe.current.innerHTML=" ",We()},jt=Mt=>me(void 0,null,function*(){Ge(!0),pt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Gt=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ke.title,file:Mt.dataUrl}});Gt!=null&&Gt.id&&!Lt?(yield(0,ue.ZP)(`/api/attachments/${Ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:Gt==null?void 0:Gt.id,settings:JSON.stringify(Mt.state)}})).status===0&&ye():Gt!=null&&Gt.id&&ye(Gt),document.body.removeAttribute("data-custom"),xe.current.innerHTML=" ",Ge(!1),pt("")}),bt=()=>{const Mt=document.querySelector('a[href="https://markerjs.com/"]');Mt&&Mt.parentNode&&(Mt.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(Bn=>{const Tn=document.querySelector(Bn.name);Tn&&Tn.setAttribute("title",Bn.title)})},xn=()=>{rt.current=new Me.hP(qe.current),rt.current.targetRoot=Se.current,rt.current.addEventListener("render",jt),rt.current.addEventListener("beforeclose",Ne),it&&(rt.current.availableMarkerTypes=rt.current.ALL_MARKER_TYPES,rt.current.uiStyleSettings.redoButtonVisible=!0,rt.current.uiStyleSettings.notesButtonVisible=!0,rt.current.uiStyleSettings.zoomButtonVisible=!0,rt.current.uiStyleSettings.zoomOutButtonVisible=!0,rt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=rt.current.uiStyleSettings,rt.current.show(),Ke!=null&&Ke.snapshotData&&rt.current.restoreState(Ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),bt()},300)};return ie.createElement(ie.Fragment,null,(Ke==null?void 0:Ke.visible)&&ie.createElement(be.Z,{spinning:Ze,tip:yt,style:{position:"absolute"}},ie.createElement("div",{ref:Se,className:Ue()(Le.imageDimensions,st,dt?Le.fullWidth:""),style:Xe},ie.createElement("img",{className:Le.img,ref:qe}))))}},36527:function(bn,Ut,re){"use strict";var ie=re(67294),Le=re(71230),Oe=re(15746),Ue=re(66368),be=re(71577),Me=re(35598),ue=re(71736),we=re(84279),me=re(67294);const Ie=(0,ie.forwardRef)(({callback:ct,showSaveButton:Ke,value:st=""},dt)=>{const Xe=(0,ie.useRef)(),We=[{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 "}]}]}],ye=[{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}`}]}]}],it=rt=>{Xe.current.setValue(Xe.current.getValue()+" "+rt.value+" ")},Lt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:me.createElement(Le.Z,{className:ue.Z.lists,gutter:[10,10]},We.map((rt,xe)=>me.createElement(Oe.Z,{flex:"110px",className:ue.Z.item},me.createElement("div",null,me.createElement(Me.Z,{value:`$$${rt.value}$$`}),rt.name),me.createElement("div",{className:ue.Z.children},rt.children.map((Se,Ze)=>me.createElement("div",{key:Ze},me.createElement("h1",null,Se.name),me.createElement(Le.Z,{gutter:[10,10]},Se.data.map((Ge,yt)=>me.createElement(Oe.Z,{key:yt,onClick:()=>it(Ge),className:ue.Z.diamond},me.createElement(Me.Z,{value:"`$$"+Ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:me.createElement(Le.Z,{className:ue.Z.lists,gutter:[10,10]},ye.map((rt,xe)=>me.createElement(Oe.Z,{flex:"110px",className:ue.Z.item},me.createElement("div",null,me.createElement(Me.Z,{value:"`$$"+rt.value+"$$`"}),rt.name),me.createElement("div",{className:ue.Z.children},rt.children.map((Se,Ze)=>me.createElement("div",{key:Ze},Se.name&&me.createElement("h1",null,Se.name),me.createElement(Le.Z,{gutter:[10,10]},Se.data.map((Ge,yt)=>me.createElement(Oe.Z,{key:yt,onClick:()=>it(Ge),className:ue.Z.diamond},me.createElement(Me.Z,{value:"`$$"+Ge.value+"$$`"}))))))))))}],qe=()=>{var rt=document.createElement("div");rt.innerHTML=Xe.current.getValue();var xe=rt.innerText;return ct&&ct(xe),xe};return(0,ie.useImperativeHandle)(dt,()=>({getData:qe})),me.createElement("div",{className:ue.Z.mathWrap},me.createElement(Ue.default,{defaultActiveKey:"1",items:Lt}),me.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Xe,style:{width:800,marginTop:30,fontSize:18}},st||""),Ke&&me.createElement("div",{className:ue.Z.button},me.createElement(be.ZP,{size:"large",onClick:qe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ut.Z=Ie},41307:function(bn,Ut,re){"use strict";re.d(Ut,{h:function(){return Xe},x:function(){return We}});var ie=re(91304),Le=re(52654),Oe=re(35598),Ue=re(67294),be=Object.defineProperty,Me=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,ct=(ye,it,Lt)=>it in ye?be(ye,it,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):ye[it]=Lt,Ke=(ye,it)=>{for(var Lt in it||(it={}))me.call(it,Lt)&&ct(ye,Lt,it[Lt]);if(we)for(var Lt of we(it))Ie.call(it,Lt)&&ct(ye,Lt,it[Lt]);return ye},st=(ye,it)=>Me(ye,ue(it)),dt=(ye,it)=>{var Lt={};for(var qe in ye)me.call(ye,qe)&&it.indexOf(qe)<0&&(Lt[qe]=ye[qe]);if(ye!=null&&we)for(var qe of we(ye))it.indexOf(qe)<0&&Ie.call(ye,qe)&&(Lt[qe]=ye[qe]);return Lt};const Xe=ye=>{var it=ye,{value:Lt,onChange:qe,scrollId:rt}=it,xe=dt(it,["value","onChange","scrollId"]);return Ue.createElement("div",{id:rt||""},Ue.createElement(ie.Z,st(Ke({},xe),{defaultValue:Lt,onChange:(Se,Ze)=>{Ze!=null&&Ze.length?qe(Se,Ze):qe(Se)}})))},We=({value:ye,onChange:it,placeholder:Lt,height:qe=140,isEdit:rt,miniToolbar:xe,watch:Se=!0})=>rt?Ue.createElement(ie.Z,{watch:Se,isFocus:!0,height:qe||void 0,placeholder:Lt,defaultValue:ye,onChange:it,miniToolbar:xe}):Ue.createElement("div",{style:{cursor:"pointer"}},ye?Ue.createElement(Oe.Z,{className:Le.Z.inputBorder,value:ye}):Ue.createElement("div",{className:`${Le.Z.inputBorder} ${Le.Z.placeholder} inputBorderError`},Lt))},57444:function(bn,Ut,re){"use strict";re.d(Ut,{h:function(){return rt}});var ie=re(67294),Le=re(11713),Oe=re(22150),Ue=re(71577),be=re(4631),Me=re.n(be),ue=re(71749),we=re(30483),me=Object.defineProperty,Ie=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Xe=(xe,Se,Ze)=>Se in xe?me(xe,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):xe[Se]=Ze,We=(xe,Se)=>{for(var Ze in Se||(Se={}))st.call(Se,Ze)&&Xe(xe,Ze,Se[Ze]);if(Ke)for(var Ze of Ke(Se))dt.call(Se,Ze)&&Xe(xe,Ze,Se[Ze]);return xe},ye=(xe,Se)=>Ie(xe,ct(Se));const it=Le.default.Option,Lt={labelCol:{span:4},wrapperCol:{span:20}},qe={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:xe,onCancel:Se})=>{const[Ze,Ge]=(0,ie.useState)("python");function yt(ft){Ge(qe[ft][1])}function pt(ft){xe(ft)}return ie.createElement(Oe.default,ye(We({},Lt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:pt,style:{width:500}}),ie.createElement(Oe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ie.createElement(Le.default,{getPopupContainer:ft=>ft.parentNode,onChange:yt},Object.keys(qe).map(ft=>ie.createElement(it,{key:ft,value:ft},qe[ft][0])))),ie.createElement(Oe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ie.createElement(rt,{mode:Ze})),ie.createElement("div",{className:"flex-container flex-end"},ie.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ie.createElement(Ue.ZP,{type:"ghost",onClick:Se},"\u53D6\u6D88")))};function rt({value:xe,onChange:Se,mode:Ze,options:Ge={}}){const yt=(0,ie.useRef)(),[pt,ft]=(0,ie.useState)();return(0,ie.useEffect)(()=>{if(pt){let Ne=function(jt){const bt=jt.getValue();Se&&Se(bt)};return pt.on("change",Ne),()=>{pt.off("change",Ne)}}},[pt,Se]),(0,ie.useEffect)(()=>{pt&&pt.setOption("mode",Ze)},[pt,Ze]),(0,ie.useEffect)(()=>{pt&&(xe!==pt.getValue()||xe==="")&&setTimeout(()=>{pt.setValue(xe||"")},300)},[pt,xe]),(0,ie.useEffect)(()=>{if(yt.current&&!pt){const Ne=Me().fromTextArea(yt.current,We({mode:Ze,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ge));ft(Ne)}},[yt.current,pt]),ie.createElement("div",{className:"my-codemirror-container"},ie.createElement("textarea",{ref:yt}))}},91304:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Rr}});var ie=re(67294),Le=re(4631),Oe=re.n(Le),Ue=re(91033),be=re(71749),Me=re(57341),ue=re(82801),we=re(88386),me=re(49047),Ie=re(80785),ct=re(35598),Ke=({value:gr="",className:mt,showTextOnly:Ot,showLines:Xt,style:kn={}})=>{const lt=(0,ie.useMemo)(()=>"",[gr]);return ie.createElement(ie.Fragment,null,ie.createElement("div",{dangerouslySetInnerHTML:{__html:lt}}))},st=re(67294),dt=Object.defineProperty,Xe=Object.defineProperties,We=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,qe=(gr,mt,Ot)=>mt in gr?dt(gr,mt,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):gr[mt]=Ot,rt=(gr,mt)=>{for(var Ot in mt||(mt={}))it.call(mt,Ot)&&qe(gr,Ot,mt[Ot]);if(ye)for(var Ot of ye(mt))Lt.call(mt,Ot)&&qe(gr,Ot,mt[Ot]);return gr},xe=(gr,mt)=>Xe(gr,We(mt));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 Ze({onActionCallback:gr,title:mt,icon:Ot,actionName:Xt,className:kn="",children:lt}){function Kt(){gr(Xt)}return st.createElement("a",{title:mt,className:kn,onClick:Kt},st.createElement("i",{className:`${Ot}`}),lt)}var Ge=({watch:gr,showNullButton:mt,showNullProgramButton:Ot,onActionCallback:Xt,fullScreen:kn,insertTemp:lt,hidetoolBar:Kt,extraUse:mn})=>{const nn=[...Se,{title:`${gr?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${gr?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return st.createElement("ul",{className:"markdown-toolbar-container"},!Kt&&nn.map((In,Pn)=>st.createElement("li",{key:Pn},In.actionName?st.createElement(Ze,xe(rt({},In),{onActionCallback:Xt})):st.createElement("span",{className:"v-line"}))),mt?st.createElement("li",null,st.createElement(Ze,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Xt},st.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Ot?st.createElement(st.Fragment,null,st.createElement("li",null,st.createElement(Ze,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Xt},st.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),st.createElement("li",null,st.createElement(Ze,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Xt},st.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,lt&&st.createElement("li",null,st.createElement(Ze,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${lt}`,onActionCallback:Xt},st.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),mn&&st.createElement("li",null,mn),st.createElement("li",{className:"btn-full-screen"},st.createElement(Ze,{icon:`${kn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:kn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Xt})))},yt=re(76621),pt=re(22150),ft=re(69677),Ne=re(71577),jt=Object.defineProperty,bt=Object.defineProperties,xn=Object.getOwnPropertyDescriptors,Mt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,Tn=(gr,mt,Ot)=>mt in gr?jt(gr,mt,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):gr[mt]=Ot,at=(gr,mt)=>{for(var Ot in mt||(mt={}))Gt.call(mt,Ot)&&Tn(gr,Ot,mt[Ot]);if(Mt)for(var Ot of Mt(mt))Bn.call(mt,Ot)&&Tn(gr,Ot,mt[Ot]);return gr},Ae=(gr,mt)=>bt(gr,xn(mt));const St={labelCol:{span:4},wrapperCol:{span:20}};var cn=({callback:gr,onCancel:mt})=>{function Ot(Xt){gr(Xt)}return ie.createElement(pt.default,Ae(at({},St),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ot,style:{width:500}}),ie.createElement(pt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ie.createElement(ft.default,null)),ie.createElement(pt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ie.createElement(ft.default,null)),ie.createElement("div",{className:"flex-container flex-end"},ie.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ie.createElement(Ne.ZP,{type:"ghost",onClick:mt},"\u53D6\u6D88")))},Pt=re(57444),ht=re(70859),Et=re(14446),Qt=re(71230),ir=re(63205),On=re(67294),$t=({callback:gr,onCancel:mt})=>{const Ot=document.createElement("canvas"),Xt=Ot.getContext("2d");Ot.width=1e3,Ot.height=800,Xt.fillStyle="#ffffff",Xt.fillRect(0,0,Ot.width,Ot.height);const kn=Ot.toDataURL("image/png");return On.createElement(Et.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},On.createElement(Qt.Z,{style:{height:"100vh"}},On.createElement(ir.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:kn,visible:!0,title:String(Date.now())},onOk:lt=>{gr({src:lt.url})},onClose:mt})))},yn=re(72565),Qn=re(15746),Cn=re(2453),Pe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},fe=re(67294),pe=(0,ie.forwardRef)(({onCancel:gr,editImgId:mt,callback:Ot},Xt)=>{let kn=(0,ie.useRef)(),lt=(0,ie.useRef)(),Kt=(0,ie.useRef)(),mn=(0,ie.useRef)(!1);const nn=(0,ie.useRef)(!1);console.log("ref:",Xt);const[In,Pn]=(0,ie.useState)(0),[vr,ni]=(0,ie.useState)("100vh");return(0,ie.useEffect)(()=>{Pn(1);try{indexedDB.databases().then(zr=>{zr.forEach(Pr=>indexedDB.deleteDatabase(Pr.name))})}catch(zr){}},[]),(0,ie.useImperativeHandle)(Xt,()=>({setHeight:ni})),fe.createElement("div",{ref:nn,className:"body-overflow-initial"},fe.createElement(yn.Z,{width:"100vw",height:vr,footer:null,closable:!0,placement:"bottom",open:!!In,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Pe.drawerWrap}`,onClose:()=>{window.saveDrawData(zr=>{Ot({src:`/api/attachments/${zr}`,id:zr})})},title:fe.createElement(Qt.Z,{align:"middle"},fe.createElement(Qn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),fe.createElement(Qn.Z,{onClick:()=>{ni(vr==="60px"?"100vh":"60px")}},fe.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),fe.createElement(Qn.Z,{onClick:()=>{window.saveDrawData(zr=>{if(zr===null){Cn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Cn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Ot({src:`/api/attachments/${zr}`,id:zr,disabledClose:!0})})}},fe.createElement(Ne.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},fe.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${mt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:lt})))}),de=re(11320),le=re(78045),Te=re(31795);const ot=le.ZP.Group,Bt={margin:"0 8px"};var en=({callback:gr,onCancel:mt})=>{function Ot(Xt){gr(Xt)}return ie.createElement(pt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ot},ie.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ie.createElement("span",{style:Bt},"\u5355\u5143\u683C\u6570\uFF1A"),ie.createElement("span",{style:Bt},"\u884C\u6570"),ie.createElement(pt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ie.createElement(Te.Z,null)),ie.createElement("span",{style:Bt},"\u5217\u6570"),ie.createElement(pt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ie.createElement(Te.Z,null))),ie.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ie.createElement("span",{style:Bt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ie.createElement(pt.default.Item,{name:"align"},ie.createElement(ot,null,ie.createElement(le.ZP,{value:"default"},ie.createElement("i",{className:"fa fa-align-justify"})),ie.createElement(le.ZP,{value:"left"},ie.createElement("i",{className:"fa fa-align-left"})),ie.createElement(le.ZP,{value:"center"},ie.createElement("i",{className:"fa fa-align-center"})),ie.createElement(le.ZP,{value:"right"},ie.createElement("i",{className:"fa fa-align-right"}))))),ie.createElement("div",{className:"flex-container flex-end"},ie.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ie.createElement(Ne.ZP,{type:"ghost",onClick:mt},"\u53D6\u6D88")))},rn=re(47897),sn=re(61016),un=re.n(sn),zt=(0,ie.forwardRef)(({use3d:gr,width:mt,height:Ot,callback:Xt,showSaveButton:kn},lt)=>{const Kt=(0,ie.useRef)(),mn=(0,ie.useRef)(),[nn,In]=(0,ie.useState)(!1),Pn=(0,ie.useRef)({id:Kt,appName:"graphing",width:mt||1e3,height:Ot||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ie.useEffect)(()=>{mn.current=new(un())(Pn.current,!0),window.onload=function(){mn.current.inject("applet_container")}},[]);const vr=()=>{var ni=window.ggbApplet.getPNGBase64(1,!0,72);return Xt&&Xt(ni),ni};return(0,ie.useEffect)(()=>{Pn.current.appName=nn?"3D":"graphing",mn.current.inject("applet_container")},[nn]),(0,ie.useEffect)(()=>{In(gr)},[gr]),(0,ie.useImperativeHandle)(lt,()=>({getImgData:vr})),ie.createElement(ie.Fragment,null,ie.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Kt}),ie.createElement(Qt.Z,{align:"middle"},ie.createElement(Qn.Z,{flex:1},ie.createElement(rn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:nn,onChange:ni=>In(ni)})),ie.createElement(Qn.Z,null,ie.createElement(Ne.ZP,{size:"large",onClick:vr,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),It=re(36527),ln=re(25934);const _t="link",lr="upload-image",xt="add-flowchart",Yt="draw-image",Un="add-flowchart",Hn="code-block",$n="add-table",yr="------------",Fn={default:yr,left:`:${yr}`,center:`:${yr}:`,right:`${yr}:`};var or=re(99914),Dr=(gr,mt,Ot)=>new Promise((Xt,kn)=>{var lt=nn=>{try{mn(Ot.next(nn))}catch(In){kn(In)}},Kt=nn=>{try{mn(Ot.throw(nn))}catch(In){kn(In)}},mn=nn=>nn.done?Xt(nn.value):Promise.resolve(nn.value).then(lt,Kt);mn((Ot=Ot.apply(gr,mt)).next())});function Fr(){}let hr=0;const _r=1e4,Mi="\u2581",zi="@\u2581\u2581@",Gi="@\u2581@",pi=`
|
|
|
**\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`,Zt=["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 Kn(gr){return/^\d+$/.test(gr)?`${gr}px`:gr}const qn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Br={[qn+"-B"]:"bold",[qn+"-I"]:"italic"},Kr={[_t]:"\u6DFB\u52A0\u94FE\u63A5",[Hn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[lr]:"\u6DFB\u52A0\u56FE\u7247",[Yt]:"\u6DFB\u52A0\u753B\u56FE",[xt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[$n]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Rr=({defaultValue:gr="",onChange:mt,width:Ot="100%",height:Xt=400,miniToolbar:kn=!1,isFocus:lt=!1,watch:Kt,insertTemp:mn,mode:nn="markdown",id:In="markdown-editor-id",showResizeBar:Pn=!1,noStorage:vr=!1,showNullButton:ni=!1,showNullProgramButton:zr=!1,hidetoolBar:Pr=!1,fullScreen:Yr=!1,onBlur:Qr,onCMBeforeChange:Ht,onFullScreen:Tt,className:Jt="",disablePaste:er=!1,disabled:kr=!1,disabledFill:Rn=!1,placeholder:Jn="",values:sr="",extraUse:Ir,onAddBlank:Xr})=>{const[Wn,Ai]=(0,ie.useState)(null),[xi,Sa]=(0,ie.useState)(gr),[fa,na]=(0,ie.useState)(Kt),[Ni,la]=(0,ie.useState)(Yr),[Qi,ga]=(0,ie.useState)(""),[Ba,Oi]=(0,ie.useState)(0),[ca,Ca]=(0,ie.useState)(Xt),[Qa,za]=(0,ie.useState)(!1),Pi=(0,ie.useRef)((0,ln.Z)()),an=(0,ie.useRef)(!1),Vt=(0,ie.useRef)(),[zn,cr]=(0,ie.useState)(0),[Er,qr]=(0,ie.useState)(0),di=(0,ie.useRef)(),bi=(0,ie.useRef)(),ki=(0,ie.useRef)(),Si=(0,ie.useRef)(),Ri=(0,ie.useRef)(),ra=(0,ie.useRef)(),oi=()=>Dr(void 0,null,function*(){var Mn;const En=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Pi.current}});(Mn=En==null?void 0:En.attachments)!=null&&Mn.length&&(console.log("cm:",Wn,di),En.attachments.map(dn=>{dn.content_type.indexOf("image")>-1?Wn.replaceSelection(``):dn.content_type.indexOf("video")>-1?Wn.replaceSelection(`<video width="100%" controls src="${de.Z.API_SERVER}/api/attachments/${data.id}"></video>`):dn.content_type.indexOf("pdf")>-1?Wn.replaceSelection(`<a href="${de.Z.API_SERVER}/api/attachments/${dn.id}?type=${dn.content_type}&disposition=inline" target="_blank">${dn.name}</a>`):Wn.replaceSelection(`[${dn.name}](${de.Z.API_SERVER}/api/attachments/${dn.id}?type=${dn.content_type})`)}))});(0,ie.useEffect)(()=>{const Mn=window.scrollY||window.pageYOffset;Sa(sr),Wn==null||Wn.setValue(sr),window.scrollTo(0,Mn)},[sr]),(0,ie.useEffect)(()=>{Tt==null||Tt(Ni)},[Ni]),(0,ie.useEffect)(()=>{if(di.current){let Mn=function(dn,Gn){var xr;if(er){Gn.preventDefault();return}const ar=Gn.clipboardData;if(ar){const ur=ar.types.toString(),mr=ar.items;if(ur==="Files"||ar.types.indexOf("Files")>-1){if(Gn.preventDefault(),nn=="stex")return;try{let Sr=mr[1];((xr=mr[0])==null?void 0:xr.kind)==="file"&&(Sr=mr[0]);const Tr=Sr.getAsFile(),je=Tr.name.split(".").pop();(0,ht.I)(Tr,Qe=>{var Rt,kt,vn;Qe.id?((Rt=Tr==null?void 0:Tr.type)==null?void 0:Rt.indexOf("image"))>-1?En.replaceSelection(`<img width="100%" src="/api/attachments/${Qe.id}?type=${Qe.content_type})" alt="" />`):((kt=Tr==null?void 0:Tr.type)==null?void 0:kt.indexOf("video"))>-1?En.replaceSelection(`<video width="100%" controls src="/api/attachments/${Qe.id}"></video>`):((vn=Tr==null?void 0:Tr.type)==null?void 0:vn.indexOf("pdf"))>-1?En.replaceSelection(`<a href="/api/attachments/${Qe.id}?type=${Tr.type}&disposition=inline" target="_blank">${Tr.name}</a>`):Zt.includes(je)?En.replaceSelection(`<a href="/api/attachments/${Qe.id}?type=office&disposition=inline" target="_blank">${Tr.name}</a>`):En.replaceSelection(`[${Tr.name}](/api/attachments/${Qe.id}?type=${Qe.content_type})`):(Qe==null?void 0:Qe.status)===401&&(Cn.ZP.warning((Qe==null?void 0:Qe.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Sr){Cn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const En=Oe().fromTextArea(di.current,{mode:nn,lineNumbers:!kn,lineWrapping:!0,value:gr,autoCloseTags:!zr,autoCloseBrackets:!0});return En.on("keyup",function(dn,Gn){Gn.keyCode===8&&(dn.getValue()==""?En.setOption("placeholder",Jn):En.setOption("placeholder",null))}),En.on("keydown",function(dn,Gn){if(Gn.keyCode===8){var xr=Dn(dn);xr&&Gn.preventDefault()}}),lt&&En.focus(),En.on("paste",Mn),En.on("dragleave",function(dn,Gn){bi.current.classList.remove("mouse-hover-md")}),kr&&En.on("beforeChange",function(dn,Gn){(Gn.origin==="paste"||Gn.origin==="+input")&&Gn.cancel()}),Ai(En),()=>{En.off("paste",Mn)}}},[]);const hn=(0,ie.useCallback)(()=>{if(bi.current)try{}catch(Mn){console.log(Mn,"---- to set md editor body height")}},[ca,bi,Ni]);(0,ie.useEffect)(()=>{function Mn(){let En=new Ue.Z(dn=>{for(let Gn of dn)(Gn.target.offsetHeight>0||Gn.target.offsetWidth>0)&&(hn(),Wn.setSize("100%","100%"),Wn.refresh())});return En.observe(di.current.parentElement),En}if(Wn){const En=Mn();return()=>{var dn,Gn;(dn=di.current)!=null&&dn.parentElement&&En.unobserve((Gn=di.current)==null?void 0:Gn.parentElement)}}},[Wn,hn]),(0,ie.useEffect)(()=>{if(Wn){let Mn=[];for(const[En,dn]of Object.entries(Br)){let Gn={[En]:()=>{Xn(dn)}};Mn.push(Gn),Wn.addKeyMap(Gn)}return Vt.current=setInterval(()=>{an.current&&oi()},4e3),()=>{clearInterval(Vt.current);for(let En of Mn)Wn.removeKeyMap(En)}}},[Wn]),(0,ie.useEffect)(()=>{Yr!==Ni&&la(Yr)},[Yr]),(0,or.Z)(()=>{if(!vr&&Ba>0){let Mn=new Date().getTime(),En=window.sessionStorage.getItem(In);Mn>=Ba+_r&&(!En||En!==xi)&&(window.sessionStorage.setItem(In,xi),za(!0))}},_r),(0,ie.useEffect)(()=>{na(Kt)},[Wn,Kt]),(0,ie.useEffect)(()=>{Wn&<&&Wn.focus()},[Wn,lt]),(0,ie.useEffect)(()=>{if(fa&&Wn){let Mn=function(dn){let Gn=dn.target;if(Si.current){let xr=Gn.scrollTop/Gn.scrollHeight;Si.current.scrollTop=Si.current.scrollHeight*xr}};const En=Wn.getScrollerElement();return En.addEventListener("scroll",Mn),()=>{En.removeEventListener("scroll",Mn)}}},[Wn,fa]),(0,ie.useEffect)(()=>{if(Wn&&Ht){let Mn=function(En,dn){Ht(En,dn)};return Wn.on("beforeChange",Mn),()=>{Wn.off("beforeChange",Mn)}}},[Wn,Ht]),(0,ie.useEffect)(()=>{if(Wn&&Qr){let Mn=function(){Qr(Wn.getValue())};return Wn.on("blur",Mn),()=>{Wn.off("blur",Mn)}}},[Wn,Qr]);function Dn(Mn,En){var dn=Mn.getDoc(),Gn=dn.getCursor(),xr=dn.getLine(Gn.line),ar=xr.charAt(Gn.ch-1),ur=xr.lastIndexOf("@\u2581@",Gn.ch),mr=xr.lastIndexOf("@\u2581\u2581@",Gn.ch),Sr=ur>mr?ur:mr,Tr=ur>mr?3:4;if(zi.indexOf(ar)===-1)return null;if(console.log("change1:",En,Mn,xr,Gn,Sr,ur,mr,ar),Sr>=0&&Gn.ch-Sr<5){var je=Sr+Tr;return dn.replaceRange("",{line:Gn.line,ch:Sr},{line:Gn.line,ch:je}),{line:Gn.line,ch:je}}return null}(0,ie.useEffect)(()=>{if(Wn){let Mn=function(En,dn){const Gn=En.getValue();Sa(Gn),Oi(new Date().getTime()),En.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),mt&&(zr?mt(Gn,Wt(Gn)):mt(Gn))};return Wn.on("change",Mn),()=>{Wn.off("change",Mn)}}},[Wn,mt]),(0,ie.useEffect)(()=>{if(Wn)if(gr==null)Wn.setValue(""),Sa("");else{const Mn=window.scrollY||window.pageYOffset;gr!==Wn.getValue()&&(Wn.setValue(gr),Sa(gr),Wn.setCursor(kr?1:Wn.lineCount(),0),window.scrollTo(0,Mn))}},[Wn,gr]);const Xn=(0,ie.useCallback)(Mn=>{const En=Wn.getCursor(),dn=Wn.getSelection();let Gn=dn.split(`
|
|
|
`);switch(Mn){case"bold":return Wn.replaceSelection("**"+dn+"**"),dn===""&&Wn.setCursor(En.line,En.ch+2),Wn.focus();case"italic":return Wn.replaceSelection("*"+dn+"*"),dn===""&&Wn.setCursor(En.line,En.ch+1),Wn.focus();case"code":return Wn.replaceSelection("`"+dn+"`"),dn===""&&Wn.setCursor(En.line,En.ch+1),Wn.focus();case"inline-latex":return ga("inline-latex"),Wn.focus();case"latex":return Wn.replaceSelection("```latex\n"+dn+"\n```"),Wn.setCursor(En.line+1,dn.length+1),Wn.focus();case"line-break":return Wn.replaceSelection(`<br/>
|
|
|
`),Wn.focus();case"list-ul":return dn===""?Wn.replaceSelection("- "+dn):Wn.replaceSelection(Gn.map(xr=>xr===""?"":`- ${xr}`).join(`
|
|
|
`)),Wn.focus();case"list-ol":return dn===""?Wn.replaceSelection("1. "+dn):Wn.replaceSelection(Gn.map((xr,ar)=>xr===""?"":`${ar+1}. ${xr}`).join(`
|
|
|
`)),Wn.focus();case"add-null-ch":Xr==null||Xr();return;case"add-signal":return dn===""&&Wn.setCursor(En.line,En.ch),Wn.replaceSelection(Gi),Wn.focus();case"add-multiple":return dn===""&&Wn.setCursor(En.line,En.ch),Wn.replaceSelection(zi),Wn.focus();case"inster-template-1":return dn===""&&Wn.setCursor(En.line,En.ch),Wn.replaceSelection(pi),Wn.focus();case"eraser":return Wn.setValue(""),Wn.focus();case"trigger-watch":return na(!fa),Wn.focus();case"trigger-full-screen":return la(!Ni),Wn.focus();case _t:ga(_t);return;case Hn:ga(Hn);return;case lr:ga(lr);return;case Yt:ga(Yt);return;case"maths-latex":ga("maths-latex");return;case xt:Ri.current="",sessionStorage.removeItem("file_id"),ga(xt);return;case $n:ga($n);return;default:throw new Error}},[Wn,fa,Ni]),ge=(0,ie.useCallback)((Mn,En)=>{var dn,Gn,xr,ar,ur,mr;ga("");const{src:Sr,alt:Tr,id:je}=Mn||{};switch(Qi){case _t:const{title:jn,link:vt}=Mn;return Wn.replaceSelection(`[${jn}](${vt})`),Wn.focus();case Hn:const{language:wt,content:Ct}=Mn;return Wn.replaceSelection(["```"+wt,Ct,"```"].join(`
|
|
|
`)),Wn.focus();case"maths-latex":for(var Qe=atob(Mn),Rt=new Uint8Array(Qe.length),kt=0;kt<Qe.length;kt++)Rt[kt]=Qe.charCodeAt(kt);var vn=new Blob([Rt],{type:"image/png"});(0,ht.I)(vn,Wr=>{Wr.id?Wn.replaceSelection(``):(Wr==null?void 0:Wr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Wn.replaceSelection("`$$"+Mn+"$$`");break;case Un:if(!je)return;Wn.focus(),Wn.getValue().indexOf(Sr)===-1?Wn.replaceSelection(`<center><img id="${je}" width="80%" src="${Sr}" class="draw-flowchart" alt="${Tr||""}" /></center>`):document.getElementById(je).src=de.Z.API_SERVER+Sr+"?t="+Date.now();try{setTimeout(()=>{Qr(Wn.getValue())},100)}catch(Wr){}break;case lr:case Yt:const Ft=En,Ln=(xr=(Gn=(dn=Ft==null?void 0:Ft.name)==null?void 0:dn.split("."))==null?void 0:Gn.pop)==null?void 0:xr.call(Gn);return((ar=Ft==null?void 0:Ft.type)==null?void 0:ar.indexOf("image"))>-1||!(Ft!=null&&Ft.type)?Ft!=null&&Ft.align||Ft!=null&&Ft.width?Wn.replaceSelection(`<p style="text-align:${Ft.align||"initial"}"><img width="${Ft.width?Ft.width+"%":"initial"}" src="${Sr}" alt="${Tr||""}" /></p>`):Wn.replaceSelection(`<img width="100%" src="${Sr}" alt="${Tr||""}" />`):((ur=Ft==null?void 0:Ft.type)==null?void 0:ur.indexOf("video"))>-1?Wn.replaceSelection(`<video width="100%" controls src="${Sr}"></video>`):((mr=Ft==null?void 0:Ft.type)==null?void 0:mr.indexOf("pdf"))>-1?Wn.replaceSelection(`<a href="${Sr}?type=${Ft.type}&disposition=inline" target="_blank">${Ft.name}</a>`):Zt.includes(Ln)?Wn.replaceSelection(`<a href="${Sr}?type=office&disposition=inline" target="_blank">${Ft.name}</a>`):Wn.replaceSelection(`[${Ft.name}](${Sr})`),Wn.focus();case $n:const{row:Yn,col:wn,align:_n}=Mn;let wr=`
|
|
|
`;for(let Wr=0;Wr<Yn;Wr++){let Lr=[],dr=[];for(let Or=0;Or<wn;Or++)Wr===1&&dr.push(Fn[_n]),Lr.push(" ");Wr===1&&(wr+=`| ${dr.join(" | ")} |
|
|
|
`),wr+=`| ${Lr.join(wn===1?"":" | ")} |
|
|
|
`}return Wn.replaceSelection(wr+`
|
|
|
`),Wn.focus();default:throw new Error}},[Wn,Qi]),Re=(0,ie.useMemo)(()=>{switch(Qi){case _t:return ie.createElement(cn,{callback:ge,onCancel:He});case Hn:return ie.createElement(Pt.Z,{callback:ge,onCancel:He});case lr:return ie.createElement(ht.Z,{callback:ge,onCancel:He});case xt:return ie.createElement(pe,{editImgId:Ri.current,callback:ge,onCancel:He});case $n:return ie.createElement(en,{callback:ge,onCancel:He});case"maths-latex":return ie.createElement(zt,{showSaveButton:!0,callback:ge});case"inline-latex":return ie.createElement(It.Z,{showSaveButton:!0,callback:ge});default:return null}},[Qi]);function He(){ga("")}(0,ie.useEffect)(()=>{if(ki.current){let Mn=function(ur){xr=!0,ar=ur.pageY},En=function(){xr=!1},dn=function(ur){if(xr){let mr=ur.pageY-ar;mr<0&&(mr=0),mr>300&&(mr=300);let Sr=Xt+mr+"px";Ca(Sr)}},Gn=ki.current,xr=!1,ar=0;return Gn.addEventListener("mousedown",Mn),document.addEventListener("mousemove",dn),document.addEventListener("mouseup",En),()=>{Gn.removeEventListener("mousedown",Mn),document.removeEventListener("mousemove",dn),document.removeEventListener("mouseup",En)}}},[Wn,ki]),(0,ie.useEffect)(()=>{Ca(Xt)},[Xt]);const Ye=Kn(Ot),Ve=Kn(ca),$e={width:Ye,height:Ve},tt=(0,ie.useMemo)(()=>{if(Ba){let Mn=new Date(Ba),En=Mn.getHours(),dn=Mn.getMinutes(),Gn=Mn.getSeconds();return En=En<10?"0"+En:En,dn=dn<10?"0"+dn:dn,Gn=Gn<10?"0"+Gn:Gn,`${En}:${dn}:${Gn}`}return 0},[Ba]),Wt=Mn=>{const En=[];if(zr){let dn=-1;Mn=Mn.replace(/(@▁▁@|@▁@)/g,function(Gn,xr,ar){En.push({multiLine:Gn!==Gi})})}return En};function on(){window.sessionStorage.removeItem(In),za(!1),Oi(0)}function Zn(){za(!1),Oi(0),Wn.setValue(window.sessionStorage.getItem(In))}(0,ie.useEffect)(()=>{Kr[Qi]&&Qi!==Yt&&Qi!==xt&&setTimeout(()=>{const Mn=document.getElementsByClassName("markdown-popup-form")[0],En=window.innerWidth/2-Mn.offsetWidth/2,dn=window.innerHeight/2-Mn.offsetHeight/2;cr(En),qr(dn)},0)},[Qi]);const tr=Mn=>{Mn.preventDefault();const En=Mn.clientX-zn,dn=Mn.clientY-Er;document.body.onmousemove=Gn=>{let xr=Gn.clientX-En,ar=Gn.clientY-dn;const ur=document.getElementsByClassName("markdown-popup-form")[0],mr=window.innerWidth-ur.offsetWidth,Sr=window.innerHeight-ur.offsetHeight;xr=Math.max(0,Math.min(xr,mr)),ar=Math.max(0,Math.min(ar,Sr)),Vn(Gn.clientX,Gn.clientY,En,dn)&&(cr(xr),qr(ar))},document.body.onmouseup=function(){document.body.onmousemove=null}},Vn=(Mn,En,dn,Gn)=>{const xr=document.body.clientHeight,ar=document.body.clientWidth;return Mn<20&&dn>Mn||Mn>ar-20&&dn<Mn||En<20&&Gn>En||En>xr-20&&Gn<En?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ie.createElement(ie.Fragment,null,ie.createElement("div",{className:"markdown-editor-wrapper",ref:bi},ie.createElement("div",{className:`markdown-editor-container ${Jt} ${fa?"on-preview":""} ${kn?"mini":""} ${Ni?"full-screen":""}`,style:$e},ie.createElement(Ge,{insertTemp:mn,watch:fa,fullScreen:Ni,showNullButton:ni,showNullProgramButton:zr,onActionCallback:Xn,hidetoolBar:Pr,extraUse:Ir}),ie.createElement("div",{className:"markdown-editor-body"},ie.createElement("div",{className:"codemirror-container"},ie.createElement("textarea",{ref:di,placeholder:Jn})),fa?ie.createElement("div",{ref:Si,className:"preview-container"},nn==="stex"&&ie.createElement(Ke,{value:xi}),nn!=="stex"&&ie.createElement(ct.Z,{edit:!0,disabledFill:Rn,showProgramFill:zr,value:xi,openEditor:Mn=>{var En;Ri.current=Mn,(En=ra.current)==null||En.setHeight("100vh"),setTimeout(()=>{ga("add-flowchart")},150)}})):null))),Pn?ie.createElement("a",{ref:ki,className:"editor-resize"}):null,Qi===Yt&&ie.createElement($t,{callback:ge,onCancel:He}),Qi===xt&&ie.createElement(pe,{ref:ra,editImgId:Ri.current,callback:ge,onCancel:He}),ie.createElement(yt.Z,null,Kr[Qi]&&Qi!==Yt&&Qi!==xt?ie.createElement(Et.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:zn,top:Er},title:ie.createElement("div",{style:{cursor:"move"},onMouseDown:tr},Kr[Qi]),open:!0,onCancel:He,footer:null,destroyOnClose:!0,width:Qi===xt?"1200px":null,height:Qi===xt?"80vh":null,className:"markdown-popup-form"},Re):null))}},70859:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Ze},I:function(){return yt}});var ie=re(22150),Le=re(2453),Oe=re(69677),Ue=re(93421),be=re(31795),Me=re(78045),ue=re(71577),we=re(15476),me=re(67294),Ie=re(52262),ct=re(67294),Ke=Object.defineProperty,st=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,it=(pt,ft,Ne)=>ft in pt?Ke(pt,ft,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):pt[ft]=Ne,Lt=(pt,ft)=>{for(var Ne in ft||(ft={}))We.call(ft,Ne)&&it(pt,Ne,ft[Ne]);if(Xe)for(var Ne of Xe(ft))ye.call(ft,Ne)&&it(pt,Ne,ft[Ne]);return pt},qe=(pt,ft)=>st(pt,dt(ft));const{useForm:rt}=ie.default,xe={width:280,marginRight:10},Se={labelCol:{span:5},wrapperCol:{span:19}};var Ze=({callback:pt,onCancel:ft})=>{const[Ne]=rt();let jt=(0,me.useRef)();function bt(Gt){jt.current.width=Ne.getFieldValue("width"),jt.current.align=Ne.getFieldValue("align"),pt(Gt,jt.current)}function xn(Gt,Bn){if(Gt.status===-1){Le.ZP.error(Gt.message);return}Ne.setFieldsValue({src:`/api/attachments/${Gt.id}`,type:Bn.type})}function Mt(Gt){let Bn=Gt.target.files[0];jt.current=Bn,yt(Bn,xn)}return ct.createElement(ie.default,qe(Lt({form:Ne},Se),{className:"upload-image-panel",onFinish:bt,style:{width:470,overflow:"hidden"}}),ct.createElement(ie.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ct.createElement("div",{className:"flex-container"},ct.createElement(ie.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ct.createElement(Oe.default,{style:xe})),ct.createElement(Ge,{onFileChange:Mt}))),ct.createElement(ie.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ct.createElement(Oe.default,{style:{width:264}})),ct.createElement(ie.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ct.createElement(Ue.Z,null,ct.createElement(ie.default.Item,{name:"width",style:{margin:0}},ct.createElement(be.Z,{style:{width:264}})),ct.createElement("span",{className:"ml8"},"%"))),ct.createElement(ie.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ct.createElement(Me.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ct.createElement("aside",null,ct.createElement(ie.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ct.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ct.createElement(ue.ZP,{type:"default",onClick:ft},"\u53D6\u6D88"))))};function Ge({onFileChange:pt}){return ct.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ct.createElement("input",{type:"file",onChange:pt}))}function yt(pt,ft){if(!pt)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ie.bg)())throw Le.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ne=new FormData;Ne.append("editormd-image-file",pt),Ne.append("file_param_name","editormd-image-file"),Ne.append("byxhr","true");var jt=new window.XMLHttpRequest;jt.withCredentials=!0,jt.addEventListener("load",function(bt){ft(JSON.parse(bt.target.responseText),pt)},!1),jt.addEventListener("error",function(bt){console.error(bt)},!1),jt.open("POST",`${we.KI}/api/attachments.json`),jt.send(Ne)}},76621:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Oe}});var ie=re(67294),Le=re(73935);class Oe extends ie.Component{constructor(be){super(be);const Me=window.document;this.node=Me.createElement("div"),Me.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,Le.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},5476:function(bn,Ut,re){"use strict";re.d(Ut,{i:function(){return Se},Z:function(){return Ge}});var ie={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},Le=re(57953),Oe=re(83062),Ue=re(38703),be=re(94184),Me=re.n(be),ue=re(28706),we=re(26194),me=re(52262),Ie=re(79005),ct=re(20345),Ke=re(77882),st=re(31081),dt=re(75309),Xe=re(71979),We=re(47558),ye=re(60345),it=re(66832),Lt=re(96593),qe=re(19664),rt=re(91833),xe=re(67294);const Se=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ie,swimg:ct},{name:"101\u8BA1\u5212",ptimg:Ke,swimg:st},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:dt,swimg:Xe},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:We,swimg:ye},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:it,swimg:Lt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:qe,swimg:rt}];var Ge=({className:yt,dataSource:pt=[],col:ft=4,right:Ne,bottom:jt=23,precision:bt=0,wrapWidth:xn=1200,trackEventItems:Mt,loading:Gt,onRemove:Bn=()=>{},isCurrent:Tn=!0,showAlias:at=!1,showProgress:Ae=!1})=>{const St=Math.floor((xn-(ft-1)*Ne)/ft),cn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Pt=>(window.ENV==="build"&&(Pt.ptimg=`/react/build${Pt.ptimg}`,Pt.swimg=`/react/build${Pt.swimg}`),Pt));return xe.createElement(Le.Z,{spinning:Gt},xe.createElement("div",{className:Me()(ie.list,yt)},!!(pt!=null&&pt.length)&&(pt==null?void 0:pt.map((Pt,ht)=>{var Et,Qt,ir,On,$t,yn;const{name:Qn,id:Cn,identifier:Pe,featured:fe,school_name:ce,image_url:pe,excellent:de,is_plan:le}=Pt;return xe.createElement("div",{key:Cn,className:Tn&&Ae?ie.wrapisCurrent:ie.wrap,style:{width:St,marginRight:(1+ht)%ft===0?0:Ne+bt,marginBottom:jt}},xe.createElement("a",{className:ie.li,onClick:Te=>{Te.preventDefault(),Te.stopPropagation(),Mt&&(0,ue.L9)([Mt]),(0,ue.xg)(`/paths/${Pe}`)}},xe.createElement("div",{className:ie.img},xe.createElement("img",{className:ie.cover,src:`${pe}`}),Tn&&(0,me.bg)()&&(Pt==null?void 0:Pt.studying)&&xe.createElement("div",{className:`${ie.movebq} user-path-items`,onClick:Te=>{Te.stopPropagation(),Bn(Pt)}},xe.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),xe.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Et=Pt==null?void 0:Pt.subject_tags)==null?void 0:Et.map((Te,ot)=>{var Bt,en;if(ot===0){const sn=(Bt=cn.find(un=>un.name==Te))==null?void 0:Bt.swimg;return xe.createElement("img",{className:ie.sign,src:sn,style:{left:"-4px"}})}const rn=(en=cn.find(sn=>sn.name==Te))==null?void 0:en.ptimg;return xe.createElement("img",{className:ie.sign,src:rn,style:{left:`${48+52*(ot-1)+2*ot}px`}})}),xe.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Pt==null?void 0:Pt.excellent)&&xe.createElement("div",{className:ie.bq},"\u5F00\u653E\u8BFE\u7A0B"))),xe.createElement("div",{className:ie.name},xe.createElement(Oe.Z,{title:at&&(Pt!=null&&Pt.excellent_alias_name)?xe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Qn}`,xe.createElement("br",null),xe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Pt==null?void 0:Pt.excellent_alias_name}`)):Qn},xe.createElement("span",{className:ie.e},at&&(Pt==null?void 0:Pt.excellent_alias_name)||Qn))),Tn&&Ae&&((Qt=Pt==null?void 0:Pt.progress)==null?void 0:Qt.all_score)!=0&&xe.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},xe.createElement(Ue.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((ir=Pt==null?void 0:Pt.progress)==null?void 0:ir.my_score)/((On=Pt==null?void 0:Pt.progress)==null?void 0:On.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",($t=Pt==null?void 0:Pt.progress)==null?void 0:$t.my_score,"/",(yn=Pt==null?void 0:Pt.progress)==null?void 0:yn.all_score),(!Tn||!Ae)&&xe.createElement("div",{className:ie.tags},xe.createElement("div",null,xe.createElement(Oe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},xe.createElement("span",null,xe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),xe.createElement("span",null,Pt.stages_count))),xe.createElement(Oe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},xe.createElement("span",null,xe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),xe.createElement("span",null,Pt.members_count)))))))})),!pt.length&&xe.createElement(we.Z,null)))}},78311:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Me}});var ie=re(67294),Le={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Oe=re(94184),Ue=re.n(Oe),Me=({dataSource:ue=[],value:we,onChange:me,className:Ie,style:ct={}})=>ie.createElement("div",{style:ct,className:Ue()(Le.tabs,Ie)},ue.map(Ke=>ie.createElement("span",{onClick:()=>me(Ke.id),className:we===Ke.id?Le.active:"",key:Ke.id},Ke.name)))},64743:function(bn,Ut,re){"use strict";re.d(Ut,{jL:function(){return be},w9:function(){return qn},vv:function(){return kn},dN:function(){return gr},QD:function(){return Vt},cQ:function(){return le.Z},vg:function(){return Gi},Oz:function(){return Dr},op:function(){return ca},O5:function(){return $e},_b:function(){return bi},t7:function(){return ft},tT:function(){return bt},Gi:function(){return Qr},YG:function(){return nn},Ed:function(){return Pr},kT:function(){return vr},qp:function(){return ye},Um:function(){return Se},K3:function(){return qe},vr:function(){return Er},qE:function(){return za},Je:function(){return Gt},wb:function(){return On},rC:function(){return de},lB:function(){return Qn},cq:function(){return Rn},kO:function(){return Xr},tp:function(){return Ze.Z},Si:function(){return on},k8:function(){return jn},Du:function(){return xr}});var ie=re(67294),Le={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA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72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",be=({dataSource:vt=[],img:wt,imgWidth:Ct=346,title:Ft,sunTitle:Ln,bannerExtraContent:Yn})=>ie.createElement("div",{className:Le.banner},ie.createElement("div",{className:Le.content},ie.createElement("aside",null,ie.createElement("p",null,ie.createElement("b",null,Ft),ie.createElement("span",null,Ln)),vt.length>0&&ie.createElement("div",{className:Le.btns},vt.map((wn,_n)=>ie.createElement("div",{key:_n,onClick:wn.click},wn.name,wn.sign?ie.createElement("img",{src:Oe,width:39}):null))),Yn),wt&&ie.createElement("img",{style:{marginTop:33,marginRight:38},src:wt,width:Ct}))),Me={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ue=re(94184),we=re.n(ue),me=re(96486),Ie=Object.defineProperty,ct=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,dt=(vt,wt,Ct)=>wt in vt?Ie(vt,wt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):vt[wt]=Ct,Xe=(vt,wt)=>{for(var Ct in wt||(wt={}))Ke.call(wt,Ct)&&dt(vt,Ct,wt[Ct]);if(ct)for(var Ct of ct(wt))st.call(wt,Ct)&&dt(vt,Ct,wt[Ct]);return vt},ye=({dataSource:vt=[],value:wt,onChange:Ct,onTitleChange:Ft,className:Ln,title:Yn,titleWidth:wn=41,style:_n={},fontColor:wr="#6A7283",showCount:Wr,classNameActive:Lr,styleItem:dr={}})=>{const[Or,jr]=(0,ie.useState)(0),[ti,Zr]=(0,ie.useState)(!1),Mr=(0,ie.useRef)(null),li=(0,ie.useRef)(null);return(0,ie.useEffect)(()=>{var si;vt.length!==0&&(((si=Mr==null?void 0:Mr.current)==null?void 0:si.clientHeight)>97?jr(1):jr(0)),vt.length===0&&jr(0),Zr(!1)},[vt]),ie.createElement("div",{className:we()(Me.row,Ln),style:_n},ie.createElement("div",{onClick:(0,me.throttle)(()=>Ft==null?void 0:Ft(),2e3),style:{width:wn,marginTop:ti?12:4},className:`${Me.title} ${Ft?"current":""}`},Yn),ie.createElement("div",{className:ti?`${Me.tagsWrap} ${Me.tagsBorderWrap}`:Me.tagsWrap},ie.createElement("div",{className:Me.bar,ref:li,style:Or>0?{height:Or===1?97:"auto",overflow:Or===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ie.createElement("div",{className:Me.tag,ref:Mr},vt==null?void 0:vt.map(si=>ie.createElement("span",{onClick:()=>Ct(si.id),key:si.id,style:Xe(Xe({color:wr},dr),(si==null?void 0:si.style)||{}),className:wt===si.id?we()(Lr||Me.active,si.classNameActive):""},ie.createElement("span",{title:si.name,className:Me.name},si.name),!!Wr&&ie.createElement("span",{className:Me.num},si.count))))),!!Or&&ie.createElement(ie.Fragment,null,Or===1?ie.createElement("div",{onClick:()=>{var si;jr(2),((si=Mr==null?void 0:Mr.current)==null?void 0:si.clientHeight)>245?Zr(!0):Zr(!1)},className:Me.action},"\u5C55\u5F00",ie.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ie.createElement("div",{onClick:()=>{li.current.scrollTop=0,jr(1),Zr(!1)},className:Me.action},"\u6536\u8D77",ie.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},it={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},qe=({dataSource:vt=[],value:wt,onChange:Ct,onTitleChange:Ft,className:Ln,title:Yn,titleWidth:wn=41,style:_n={},fontColor:wr="#6A7283",showCount:Wr,expand:Lr=!0})=>{const[dr,Or]=(0,ie.useState)(0),[jr,ti]=(0,ie.useState)(!1),Zr=(0,ie.useRef)(null),Mr=(0,ie.useRef)(null),[li,si]=(0,ie.useState)(Lr);return ie.createElement("div",{className:we()(it.row,Ln),style:_n},ie.createElement("div",{className:"flex item-center justify-between"},ie.createElement("div",{onClick:(0,me.throttle)(()=>Ft==null?void 0:Ft(),2e3),style:{width:wn,marginTop:jr?12:4},className:`${it.title} ${Ft?"current":""}`},Yn),ie.createElement("i",{className:`iconfont ${li?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:li?8:10},onClick:()=>si(!li)})),li&&ie.createElement("div",{className:jr?`${it.tagsWrap} ${it.tagsBorderWrap}`:it.tagsWrap},ie.createElement("div",{className:it.fenge}),ie.createElement("div",{className:it.bar,ref:Mr},ie.createElement("div",{className:it.tag,ref:Zr},vt==null?void 0:vt.map(Yi=>ie.createElement("span",{onClick:()=>Ct(Yi.id),key:Yi.id,style:{color:wr},className:wt===Yi.id?it.active:""},ie.createElement("span",{title:Yi.name,className:it.name},Yi.name),!!Wr&&ie.createElement("span",{className:it.num},Yi.count)))))))},rt={flex_box_center:"flex_box_center___kXy2O",flex_space_between:"flex_space_between___EKVqf",flex_box_vertical_center:"flex_box_vertical_center___KJzcw",flex_box_center_end:"flex_box_center_end___V4Nm9",flex_box_column:"flex_box_column___g6Cee",row:"row___pqtGl",title:"title___eewYd",tagsWrap:"tagsWrap___AWV66",action:"action___Toj3O",bar:"bar___NZVtB",tag:"tag___z872k",name:"name___m2dAl",num:"num___EhDNX",active:"active___GSjsu",tagsBorderWrap:"tagsBorderWrap___VoQL3"},Se=({dataSource:vt=[],value:wt,onChange:Ct,onTitleChange:Ft,className:Ln,title:Yn,titleWidth:wn=41,style:_n={},fontColor:wr="#fff",showCount:Wr,expand:Lr=!0})=>{const[dr,Or]=(0,ie.useState)(0),[jr,ti]=(0,ie.useState)(!1),Zr=(0,ie.useRef)(null),Mr=(0,ie.useRef)(null),[li,si]=(0,ie.useState)(Lr);return ie.createElement("div",{className:we()(rt.row,Ln),style:_n},ie.createElement("div",{className:"flex item-center justify-between"},ie.createElement("div",{onClick:(0,me.throttle)(()=>Ft==null?void 0:Ft(),2e3),style:{width:wn},className:`${rt.title} ${Ft?"current":""}`},Yn),ie.createElement("i",{className:`iconfont ${li?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:li?"#00DDC7":"#037F74",fontSize:li?10:12},onClick:()=>si(!li)})),li&&ie.createElement("div",{className:jr?`${rt.tagsWrap} ${rt.tagsBorderWrap}`:rt.tagsWrap},ie.createElement("div",{className:rt.bar,ref:Mr},ie.createElement("div",{className:rt.tag,ref:Zr},vt==null?void 0:vt.map(Yi=>ie.createElement("span",{onClick:()=>Ct(Yi.id),key:Yi.id,style:{color:wr},className:wt===Yi.id?rt.active:""},ie.createElement("span",{title:Yi.name,className:rt.name},Yi.name),!!Wr&&ie.createElement("span",{className:rt.num},Yi.count)))))))},Ze=re(78311),Ge={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},yt=re(69677),ft=({dataSource:vt=[],value:wt="",onChange:Ct,onInputChange:Ft=()=>{},className:Ln,style:Yn={},placeholder:wn,allowClear:_n=!1})=>{var wr;const[Wr,Lr]=(0,ie.useState)(""),[dr,Or]=(0,ie.useState)("");(0,ie.useEffect)(()=>{var Zr;let Mr=wt;(Zr=JSON.stringify(wt))!=null&&Zr.includes("{")&&(Lr(wt.id),Mr=wt.value||"");try{Or(decodeURIComponent(Mr||""))}catch(li){Or(decodeURIComponent(Mr||""))}},[wt]);const jr=()=>{Ct(encodeURIComponent(dr),Wr||null)},ti=Zr=>{Zr!==Wr&&(Lr(Zr),Ct(encodeURIComponent(dr),Zr))};return ie.createElement("div",{className:we()(Ge.input,Ln),style:Yn},!!vt.length&&ie.createElement("div",{className:Ge.dropdown},ie.createElement("div",{className:Ge.text},(wr=vt.find(Zr=>Zr.id===Wr))==null?void 0:wr.name,ie.createElement("i",{className:"iconfont icon-zhankai4"}),ie.createElement("b",{className:Ge.b1}),ie.createElement("b",{className:Ge.b2})),ie.createElement("div",{className:Ge.menu},vt.map((Zr,Mr)=>ie.createElement("div",{key:Mr,onClick:()=>ti(Zr.id)},Zr.name)))),ie.createElement(yt.default,{onPressEnter:jr,value:dr,onChange:Zr=>{Or(Zr.target.value),Ft(encodeURIComponent(Zr.target.value),Wr||null)},bordered:!1,placeholder:wn}),ie.createElement("i",{onClick:jr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Ne={flex_box_center:"flex_box_center___pVsOk",flex_space_between:"flex_space_between___bQwBe",flex_box_vertical_center:"flex_box_vertical_center___gdKht",flex_box_center_end:"flex_box_center_end___wJuEm",flex_box_column:"flex_box_column___F50s0",input:"input___f7GZE",dropdown:"dropdown___oJkxW",menu:"menu___RplGU",text:"text___EgRKl"},bt=({dataSource:vt=[],value:wt="",onChange:Ct,onInputChange:Ft=()=>{},className:Ln,style:Yn={},placeholder:wn,allowClear:_n=!1})=>{var wr;const[Wr,Lr]=(0,ie.useState)(""),[dr,Or]=(0,ie.useState)("");(0,ie.useEffect)(()=>{var Zr;let Mr=wt;(Zr=JSON.stringify(wt))!=null&&Zr.includes("{")&&(Lr(wt.id),Mr=wt.value||"");try{Or(decodeURIComponent(Mr||""))}catch(li){Or(decodeURIComponent(Mr||""))}},[wt]);const jr=()=>{Ct(encodeURIComponent(dr),Wr||null)},ti=Zr=>{Zr!==Wr&&(Lr(Zr),Ct(encodeURIComponent(dr),Zr))};return ie.createElement("div",{className:we()(Ne.input,Ln),style:Yn},!!vt.length&&ie.createElement("div",{className:Ne.dropdown},ie.createElement("div",{className:Ne.text},(wr=vt.find(Zr=>Zr.id===Wr))==null?void 0:wr.name,ie.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),ie.createElement("div",{className:Ne.menu},vt.map((Zr,Mr)=>ie.createElement("div",{key:Mr,onClick:()=>ti(Zr.id)},Zr.name)))),ie.createElement(yt.default,{onPressEnter:jr,value:dr,onChange:Zr=>{Or(Zr.target.value),Ft(encodeURIComponent(Zr.target.value),Wr||null)},bordered:!1,placeholder:wn}),ie.createElement("i",{onClick:jr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},xn={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Gt=({value:vt,onChange:wt,className:Ct,total:Ft,pageSize:Ln,style:Yn={}})=>{const wn=vt<2,_n=vt>=Math.ceil(Ft/Ln);return Ft<=Ln?ie.createElement(ie.Fragment,null):ie.createElement("div",{className:we()(xn.quickPager,Ct),style:Yn},ie.createElement("div",{onClick:()=>{wn||wt(vt-1,"prev")},className:wn?xn.disabled:""},"\u4E0A\u4E00\u9875"),ie.createElement("div",{onClick:()=>{_n||wt(vt+1,"next")},className:_n?xn.disabled:""},"\u4E0B\u4E00\u9875"))},Bn={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Tn=re(57953),at=re(83062),Ae=re(12604),St=re(11320),cn=re(28706),Pt=re(96908),ht=re(57177),Et=re(81378),Qt=re(26194),On=({className:vt,dataSource:wt=[],col:Ct=4,right:Ft,bottom:Ln=23,precision:Yn=0,wrapWidth:wn=1200,trackEventItems:_n,loading:wr})=>{const Wr=Math.floor((wn-(Ct-1)*Ft)/Ct);return ie.createElement(Tn.Z,{spinning:wr},ie.createElement("div",{className:we()(Bn.list,vt)},!!wt.length&&wt.map((Lr,dr)=>{const{name:Or,id:jr,identifier:ti,power:Zr,cover_image_id:Mr,pic:li}=Lr;return ie.createElement("div",{className:Bn.wrap,key:jr,style:{width:Wr,marginRight:(1+dr)%Ct===0?0:Ft+Yn,marginBottom:Ln}},ie.createElement("a",{target:"_blank",href:`/shixuns/${ti}/challenges`,className:Bn.li,onClick:si=>{si.preventDefault(),_n&&(0,cn.L9)([_n]),Zr&&(0,cn.xg)(`/shixuns/${ti}/challenges`)}},ie.createElement("div",{className:Bn.img},ie.createElement("img",{className:Bn.cover,src:`${li}`}),Lr.is_jupyter&&ie.createElement("img",{className:Bn.sign,src:Pt}),Lr.is_jupyter_lab&&ie.createElement("img",{className:Bn.sign,src:ht}),Lr.is_unity_3d&&ie.createElement("img",{className:Bn.sign,src:Et})),ie.createElement("div",{className:Bn.name},ie.createElement(at.Z,{title:Or||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ie.createElement("span",{className:Bn.e},Or||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ie.createElement("div",{className:Bn.tags},ie.createElement(at.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ie.createElement("span",null,Lr.challenges_count))),!!Lr.myshixuns_count&&ie.createElement(at.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ie.createElement("span",null,Lr.myshixuns_count))),ie.createElement(at.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ie.createElement("span",null,ie.createElement("span",null,Lr.level))),ie.createElement("div",{className:Bn.rate},ie.createElement(Ae.Z,{allowHalf:!0,disabled:!0,defaultValue:Lr.score_info}),ie.createElement("span",null,"\xA0",Lr.score_info?`${Lr.score_info}\u5206`:"5\u5206")))),!Zr&&ie.createElement("div",{className:Bn.lockWrap},ie.createElement("img",{src:`${St.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ie.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!wt.length&&ie.createElement(Qt.Z,null)))},$t={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},Qn=({className:vt,dataSource:wt=[],col:Ct=4,right:Ft,bottom:Ln=23,precision:Yn=0,wrapWidth:wn=1200,wrapClassName:_n,trackEventItems:wr,loading:Wr})=>{const Lr=Math.floor((wn-(Ct-1)*Ft)/Ct);return ie.createElement(Tn.Z,{spinning:Wr},ie.createElement("div",{className:we()($t.list,vt)},!!wt.length&&wt.map((dr,Or)=>{const{name:jr,id:ti,identifier:Zr,power:Mr,cover_image_id:li,pic:si}=dr;return ie.createElement("div",{className:we()($t.wrap,_n),key:ti,style:{width:Lr,marginRight:(1+Or)%Ct===0?0:Ft+Yn,marginBottom:Ln}},ie.createElement("a",{target:"_blank",href:`/shixuns/${Zr}/challenges`,className:$t.li,onClick:Yi=>{Yi.preventDefault(),wr&&(0,cn.L9)([wr]),Mr&&(0,cn.xg)(`/shixuns/${Zr}/challenges`)}},ie.createElement("img",{src:re(79633),className:$t.titleBg}),ie.createElement("div",{className:$t.name},ie.createElement(at.Z,{title:jr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ie.createElement("span",{className:$t.e},jr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ie.createElement("div",{style:{padding:"14px",paddingBottom:0}},ie.createElement("div",{className:$t.img},ie.createElement("img",{className:$t.cover,src:li?`${St.Z.API_SERVER}/api/attachments/${li}`:`${St.Z.IMG_SERVER+si}`}),dr.is_jupyter&&ie.createElement("div",{className:$t.bq},"Jupyter"),dr.is_jupyter_lab&&ie.createElement("div",{className:$t.bq},"JupyterLab"),dr.is_unity_3d&&ie.createElement("div",{className:$t.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),ie.createElement("div",{className:"mt20 flex item-center justify-between"},ie.createElement("div",null,ie.createElement("span",{className:$t.text},"\u5B66\u4E60\u4EBA\u6570"),ie.createElement("span",{className:$t.value},dr.myshixuns_count)),ie.createElement("div",null,ie.createElement("span",{className:$t.text},"\u56F0\u96BE\u7B49\u7EA7"),ie.createElement("span",{className:$t.value},dr.level))),ie.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ie.createElement("div",null,ie.createElement("span",{className:$t.text},"\u5173\u5361\u6570"),ie.createElement("span",{className:$t.value},dr.challenges_count)),ie.createElement("div",{className:$t.rate},ie.createElement(Ae.Z,{allowHalf:!0,disabled:!0,defaultValue:dr.score_info}),ie.createElement("span",{className:$t.value,style:{color:"#FF9C00"}},"\xA0",dr.score_info?`${dr.score_info}\u5206`:"5\u5206"))))),!Mr&&ie.createElement("div",{className:$t.lockWrap},ie.createElement("img",{src:`${St.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ie.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!wt.length&&ie.createElement(Qt.Z,null)))},Cn={flex_box_center:"flex_box_center___MoMqv",flex_space_between:"flex_space_between___G_1Pa",flex_box_vertical_center:"flex_box_vertical_center___vHNpc",flex_box_center_end:"flex_box_center_end___dt_Dx",flex_box_column:"flex_box_column___gK3h_",list:"list___GYKT6",wrap:"wrap___uLNQf",lockWrap:"lockWrap___lZQo7",li:"li___X7Rkc",img:"img___bih4x",cover:"cover___UiMEf",sign:"sign___WPSew",name:"name___ZLjiX",e:"e___tB29O",tags:"tags___a3FKn",rate:"rate___dh30H"},Pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E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PgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",de=({className:vt,dataSource:wt=[],col:Ct=4,right:Ft,bottom:Ln=23,precision:Yn=0,wrapWidth:wn=1200,trackEventItems:_n,loading:wr,wrapClassName:Wr,imgClassName:Lr})=>{const dr=Math.floor((wn-(Ct-1)*Ft)/Ct);return ie.createElement(Tn.Z,{spinning:wr},ie.createElement("div",{className:we()(Cn.list,vt)},!!wt.length&&wt.map((Or,jr)=>{const{name:ti,id:Zr,identifier:Mr,power:li,cover_image_id:si,pic:Yi}=Or;return ie.createElement("div",{className:we()(Cn.wrap,Wr),key:Zr,style:{width:dr,marginRight:(1+jr)%Ct===0?0:Ft+Yn,marginBottom:Ln}},ie.createElement("a",{target:"_blank",href:`/shixuns/${Mr}/challenges`,className:Cn.li,onClick:qi=>{qi.preventDefault(),_n&&(0,cn.L9)([_n]),li&&(0,cn.xg)(`/shixuns/${Mr}/challenges`)}},ie.createElement("div",{className:we()(Cn.img,Lr)},ie.createElement("img",{className:Cn.cover,src:si?`${St.Z.API_SERVER}/api/attachments/${si}`:`${St.Z.IMG_SERVER+Yi}`}),Or.is_jupyter&&ie.createElement("img",{className:Cn.sign,src:Pe}),Or.is_jupyter_lab&&ie.createElement("img",{className:Cn.sign,src:fe}),Or.is_unity_3d&&ie.createElement("img",{className:Cn.sign,src:ce})),ie.createElement("div",{className:Cn.name},ie.createElement(at.Z,{title:ti||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ie.createElement("span",{className:Cn.e},ti||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ie.createElement("div",{className:Cn.tags},ie.createElement(at.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ie.createElement("span",null,Or.challenges_count))),!!Or.myshixuns_count&&ie.createElement(at.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ie.createElement("span",null,Or.myshixuns_count))),ie.createElement(at.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ie.createElement("span",null,ie.createElement("span",null,Or.level))),ie.createElement("div",{className:Cn.rate},ie.createElement(Ae.Z,{allowHalf:!0,disabled:!0,defaultValue:Or.score_info}),ie.createElement("span",null,"\xA0",Or.score_info?`${Or.score_info}\u5206`:"5\u5206")))),!li&&ie.createElement("div",{className:Cn.lockWrap},ie.createElement("img",{src:`${St.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ie.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!wt.length&&ie.createElement(Qt.Z,null)))},le=re(5476),Te={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},ot=re(79005),Bt=re(20345),en=re(77882),rn=re(31081),sn=re(75309),un=re(71979),gt=re(47558),zt=re(60345),It=re(66832),ln=re(96593),_t=re(19664),lr=re(91833),xt=Object.defineProperty,Yt=Object.getOwnPropertySymbols,Un=Object.prototype.hasOwnProperty,Hn=Object.prototype.propertyIsEnumerable,$n=(vt,wt,Ct)=>wt in vt?xt(vt,wt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):vt[wt]=Ct,yr=(vt,wt)=>{for(var Ct in wt||(wt={}))Un.call(wt,Ct)&&$n(vt,Ct,wt[Ct]);if(Yt)for(var Ct of Yt(wt))Hn.call(wt,Ct)&&$n(vt,Ct,wt[Ct]);return vt};const Fn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:ot,swimg:Bt},{name:"101\u8BA1\u5212",ptimg:en,swimg:rn},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:sn,swimg:un},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:gt,swimg:zt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:It,swimg:ln},{name:"\u519B\u961F\u4E00\u6D41",ptimg:_t,swimg:lr}];var Dr=({className:vt,dataSource:wt=[],col:Ct=4,right:Ft,bottom:Ln=23,precision:Yn=0,wrapWidth:wn=1200,trackEventItems:_n,loading:wr,wrapClassName:Wr,imgClassName:Lr,isArrow:dr=!1,imgStyle:Or={}})=>{const jr=Math.floor((wn-(Ct-1)*Ft)/Ct),[ti,Zr]=(0,ie.useState)(),[Mr,li]=(0,ie.useState)(),si=qi=>Zr(qi),Yi=()=>Zr(-1);return ie.createElement(Tn.Z,{spinning:wr},ie.createElement("div",{className:we()(Te.list,vt)},!!(wt!=null&&wt.length)&&(wt==null?void 0:wt.map((qi,ia)=>{var _i;const{name:Wi,id:Li,identifier:da,featured:Bi,school_name:fi,image_url:Ji,excellent:va,is_plan:oo}=qi;return ie.createElement("div",{key:Li,className:we()(Te.wrap,Wr),style:{width:jr,marginRight:(1+ia)%Ct===0?0:Ft+Yn,marginBottom:Ln}},ie.createElement("a",{target:"_blank",href:`/paths/${da}`,className:Te.li,onClick:Ja=>{Ja.preventDefault(),_n&&(0,cn.L9)([_n]),(0,cn.xg)(`/paths/${da}`)}},ie.createElement("img",{src:re(39057),className:Te.titleBg}),ie.createElement("div",{className:Te.name},ie.createElement(at.Z,{title:Wi},ie.createElement("span",{className:Te.e,style:{color:dr&&ti===ia?"#145DFF":"#000000"},onMouseEnter:()=>{si(ia)},onMouseLeave:Yi},Wi))),ie.createElement("div",{style:{padding:"14px",paddingBottom:0}},ie.createElement("div",{className:we()(Te.img,Lr)},ie.createElement("img",{className:Te.cover,style:yr({},Or),src:`${St.Z.IMG_SERVER+Ji}`}),(_i=qi==null?void 0:qi.subject_tags)==null?void 0:_i.map((Ja,Za)=>{var Ha,Ia;if(Za===0){const mo=(Ha=Fn.find(ba=>ba.name==Ja))==null?void 0:Ha.swimg;return ie.createElement("img",{className:Te.sign,src:mo,style:{left:"-4px"}})}const aa=(Ia=Fn.find(mo=>mo.name==Ja))==null?void 0:Ia.ptimg;return ie.createElement("img",{className:Te.sign,src:aa,style:{left:`${48+52*(Za-1)+2*Za}px`}})}),ie.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(qi==null?void 0:qi.excellent)&&ie.createElement("div",{className:Te.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ie.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ie.createElement("div",null,ie.createElement("span",{className:Te.text},"\u7AE0\u8282\u6570"),ie.createElement("span",{className:Te.value},qi.stages_count)),ie.createElement("div",null,ie.createElement("span",{className:Te.text},"\u5B66\u4E60\u4EBA\u6570"),ie.createElement("span",{className:Te.value},qi.members_count))))))})),!wt.length&&ie.createElement(Qt.Z,null)))},Fr={flex_box_center:"flex_box_center___o6B0Z",flex_space_between:"flex_space_between___Uz22Q",flex_box_vertical_center:"flex_box_vertical_center___nWLOj",flex_box_center_end:"flex_box_center_end___eqMdD",flex_box_column:"flex_box_column___ypdJv",list:"list___qA19p",wrap:"wrap___YaRtD",lockWrap:"lockWrap___Cle7R",li:"li___Hpfsl",img:"img___li1Ky",cover:"cover___iuyl5",bq:"bq___BpHtR",sign:"sign___ajRAC",titleBg:"titleBg___h8Qq7",name:"name___mAV5m",e:"e___YPSD7",text:"text___nDpTk",value:"value___guywy",unit:"unit___aTzYz",tags:"tags___X1lul",tag1:"tag1___AHRAc",tag2:"tag2___Pska6"},hr=re(52262),_r=re(67294);const Mi=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:ot,swimg:Bt},{name:"101\u8BA1\u5212",ptimg:en,swimg:rn},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:sn,swimg:un},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:gt,swimg:zt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:It,swimg:ln},{name:"\u519B\u961F\u4E00\u6D41",ptimg:_t,swimg:lr}];var Gi=({className:vt,dataSource:wt=[],col:Ct=4,right:Ft,bottom:Ln=23,precision:Yn=0,wrapWidth:wn=1200,trackEventItems:_n,loading:wr,onRemove:Wr=()=>{},isCurrent:Lr=!0,showAlias:dr=!1,wrapClassName:Or,imgClassName:jr})=>{const ti=Math.floor((wn-(Ct-1)*Ft)/Ct),Zr=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Mr=>(window.ENV==="build"&&(Mr.ptimg=`/react/build${Mr.ptimg}`,Mr.swimg=`/react/build${Mr.swimg}`),Mr));return _r.createElement(Tn.Z,{spinning:wr},_r.createElement("div",{className:we()(Fr.list,vt)},!!(wt!=null&&wt.length)&&(wt==null?void 0:wt.map((Mr,li)=>{var si;const{name:Yi,id:qi,identifier:ia,featured:_i,school_name:Wi,image_url:Li,excellent:da,is_plan:Bi}=Mr;return _r.createElement("div",{key:qi,className:we()(Fr.wrap,Or),style:{width:ti,marginRight:(1+li)%Ct===0?0:Ft+Yn,marginBottom:Ln}},_r.createElement("a",{className:Fr.li,onClick:fi=>{fi.preventDefault(),fi.stopPropagation(),_n&&(0,cn.L9)([_n]),(0,cn.xg)(`/paths/${ia}`)}},_r.createElement("div",{className:we()(Fr.img,jr)},_r.createElement("img",{className:Fr.cover,src:`${St.Z.IMG_SERVER+Li}`}),Lr&&(0,hr.bg)()&&(Mr==null?void 0:Mr.studying)&&_r.createElement("div",{className:`${Fr.movebq} user-path-items`,onClick:fi=>{fi.stopPropagation(),Wr(Mr)}},_r.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),_r.createElement("span",{className:"c-red"},"\u79FB\u9664")),(si=Mr==null?void 0:Mr.subject_tags)==null?void 0:si.map((fi,Ji)=>{var va,oo;if(Ji===0){const Za=(va=Zr.find(Ha=>Ha.name==fi))==null?void 0:va.swimg;return _r.createElement("img",{className:Fr.sign,src:Za,style:{left:"-4px"}})}const Ja=(oo=Zr.find(Za=>Za.name==fi))==null?void 0:oo.ptimg;return _r.createElement("img",{className:Fr.sign,src:Ja,style:{left:`${48+52*(Ji-1)+2*Ji}px`}})}),_r.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(Mr==null?void 0:Mr.excellent)&&_r.createElement("div",{className:Fr.bq},"\u5F00\u653E\u8BFE\u7A0B"))),_r.createElement("div",{className:Fr.name},_r.createElement(at.Z,{title:dr&&(Mr!=null&&Mr.excellent_alias_name)?_r.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Yi}`,_r.createElement("br",null),_r.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Mr==null?void 0:Mr.excellent_alias_name}`)):Yi},_r.createElement("span",{className:Fr.e},dr&&(Mr==null?void 0:Mr.excellent_alias_name)||Yi))),_r.createElement("div",{className:Fr.tags},_r.createElement("div",null,_r.createElement(at.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},_r.createElement("span",null,_r.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),_r.createElement("span",null,Mr.stages_count))),_r.createElement(at.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},_r.createElement("span",null,_r.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),_r.createElement("span",null,Mr.members_count)))))))})),!wt.length&&_r.createElement(Qt.Z,null)))},pi={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Zt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHs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Sudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Kn=re(67294),qn=({className:vt,dataSource:wt=[],col:Ct=4,right:Ft,bottom:Ln=23,precision:Yn=0,wrapWidth:wn=1200,trackEventItems:_n,loading:wr})=>{const Wr=Math.floor((wn-(Ct-1)*Ft)/Ct);return Kn.createElement(Tn.Z,{spinning:wr},Kn.createElement("div",{className:we()(pi.list,vt)},!!wt.length&&wt.map((Lr,dr)=>{const{subject_identifier:Or,id:jr,identifier:ti,power:Zr}=Lr,Mr=Lr.is_public!=0&&Lr.is_public;return Kn.createElement("div",{className:pi.wrap,key:jr,style:{width:Wr,marginRight:(1+dr)%Ct===0?0:Ft+Yn,marginBottom:Ln}},Kn.createElement("a",{className:pi.li,onClick:li=>{li.preventDefault(),_n&&(0,cn.L9)([_n]),(0,cn.xg)(Lr.first_category_url)}},Kn.createElement("div",{className:pi.top},Kn.createElement(at.Z,{title:Lr.name},Kn.createElement("div",{className:pi.name},Lr.name)),Kn.createElement("img",{className:pi.img,src:St.Z.IMG_SERVER+"/images/"+Lr.avatar_url}),Kn.createElement("div",{className:pi.text,title:Lr.creator},Lr.creator),Or&&Kn.createElement("div",{className:pi.btns},Kn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Kn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Mr&&Kn.createElement("div",{className:pi.sign},"\u516C\u5F00")),Kn.createElement("div",{className:pi.bottom},Lr.visits>0&&Kn.createElement(at.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Kn.createElement("span",null,Kn.createElement("i",{className:"iconfont icon-liulanyan"}),Kn.createElement("span",null,Lr.visits))),Lr.course_members_count>0&&Kn.createElement(at.Z,{title:"\u6210\u5458",placement:"bottom"},Kn.createElement("span",null,Kn.createElement("i",{className:"iconfont icon-chengyuan"}),Lr.course_members_count)),Lr.tasks_count>0&&Kn.createElement(at.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Kn.createElement("span",null,Kn.createElement("i",{className:"iconfont icon-zuoye"}),Lr.tasks_count)),Lr.is_end?Kn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Kn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Lr.is_accessible&&Kn.createElement("div",{className:pi.lockWrap},Kn.createElement("img",{src:`${St.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Kn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!wt.length&&Kn.createElement(Qt.Z,null)))},Br={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},Kr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9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vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",gr=({className:vt,dataSource:wt=[],col:Ct=4,right:Ft,bottom:Ln=23,precision:Yn=0,wrapWidth:wn=1200,wrapClassName:_n,trackEventItems:wr,loading:Wr})=>{const Lr=Math.floor((wn-(Ct-1)*Ft)/Ct);return ie.createElement(Tn.Z,{spinning:Wr},ie.createElement("div",{className:we()(Br.list,vt)},!!wt.length&&wt.map((dr,Or)=>{const{subject_identifier:jr,id:ti,identifier:Zr,power:Mr}=dr,li=dr.is_public!=0&&dr.is_public;return ie.createElement("div",{className:we()(`${Br.wrap} ${dr.is_accessible?"":Br.warpStyle}`,_n),key:ti,style:{width:Lr,marginRight:(1+Or)%Ct===0?0:Ft+Yn,marginBottom:Ln}},ie.createElement("a",{className:Br.li,onClick:si=>{si.preventDefault(),wr&&(0,cn.L9)([wr]),(0,cn.xg)(dr.first_category_url)}},ie.createElement("div",{className:Br.creator},ie.createElement("img",{className:Br.img,src:St.Z.IMG_SERVER+"/images/"+dr.avatar_url}),ie.createElement("div",{className:Br.text,title:dr.creator},dr.creator)),ie.createElement("div",{className:Br.top},ie.createElement(at.Z,{title:dr.name},ie.createElement("div",{className:Br.name},dr.name)),li&&ie.createElement("div",{className:Br.sign},"\u516C\u5F00")),ie.createElement("div",{className:Br.middle},ie.createElement("div",{className:Br.row,style:{marginBottom:6}},ie.createElement("div",null,ie.createElement("span",{className:Br.text},"\u8BBF\u95EE\u91CF"),ie.createElement("span",{className:Br.value},(dr==null?void 0:dr.visits)||0)),ie.createElement("div",null,ie.createElement("span",{className:Br.text},"\u6210\u5458"),ie.createElement("span",{className:Br.value},(dr==null?void 0:dr.course_members_count)||0))),ie.createElement("div",{className:Br.row},ie.createElement("div",null,ie.createElement("span",{className:Br.text,style:{width:42}},"\u4F5C",ie.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ie.createElement("span",{className:Br.value},(dr==null?void 0:dr.tasks_count)||0)),ie.createElement("div",null,ie.createElement("span",{className:Br.text},"\u72B6\u6001"),dr.is_end?ie.createElement("span",{className:Br.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ie.createElement("span",{className:Br.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),jr&&ie.createElement("div",{className:Br.btns},ie.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ie.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!dr.is_accessible&&ie.createElement("div",{className:Br.lockWrap},ie.createElement("img",{src:`${St.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ie.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!wt.length&&ie.createElement(Qt.Z,null)))},mt={flex_box_center:"flex_box_center___eJQtn",flex_space_between:"flex_space_between___lzV1x",flex_box_vertical_center:"flex_box_vertical_center___IYfoZ",flex_box_center_end:"flex_box_center_end___lcJOu",flex_box_column:"flex_box_column____ShCG",list:"list___YXSRr",wrap:"wrap___ZGdF6",lockWrap:"lockWrap___VKZgR",creator:"creator___tLnuI",img:"img___P8alm",text:"text___ijpmj",top:"top___md6mc",sign:"sign___ydolt",name:"name___OEush",middle:"middle___WFQ2R",row:"row___MFUrm",value:"value___rEYMy",btns:"btns___Y5S2B",bottom:"bottom___RsfJC",warpStyle:"warpStyle___R8xtx"},Ot="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0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0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",kn=({className:vt,dataSource:wt=[],col:Ct=4,right:Ft,bottom:Ln=23,precision:Yn=0,wrapWidth:wn=1200,wrapClassName:_n,trackEventItems:wr,loading:Wr})=>{const Lr=Math.floor((wn-(Ct-1)*Ft)/Ct);return ie.createElement(Tn.Z,{spinning:Wr},ie.createElement("div",{className:we()(mt.list,vt)},!!wt.length&&wt.map((dr,Or)=>{const{subject_identifier:jr,id:ti,identifier:Zr,power:Mr}=dr,li=dr.is_public!=0&&dr.is_public;return ie.createElement("div",{className:we()(`${mt.wrap} ${dr.is_accessible?"":mt.warpStyle}`,_n),key:ti,style:{width:Lr,marginRight:(1+Or)%Ct===0?0:Ft+Yn,marginBottom:Ln}},ie.createElement("a",{className:mt.li,onClick:si=>{si.preventDefault(),wr&&(0,cn.L9)([wr]),(0,cn.xg)(dr.first_category_url)}},ie.createElement("div",{className:mt.creator},ie.createElement("img",{className:mt.img,src:St.Z.IMG_SERVER+"/images/"+dr.avatar_url}),ie.createElement("div",{className:mt.text,title:dr.creator},dr.creator)),ie.createElement("div",{className:mt.top},ie.createElement(at.Z,{title:dr.name},ie.createElement("div",{className:mt.name},dr.name)),li&&ie.createElement("div",{className:mt.sign})),ie.createElement("div",{className:mt.middle},ie.createElement("div",{className:mt.row,style:{marginBottom:6}},ie.createElement("div",null,ie.createElement("span",{className:mt.text},"\u8BBF\u95EE\u91CF"),ie.createElement("span",{className:mt.value},(dr==null?void 0:dr.visits)||0)),ie.createElement("div",null,ie.createElement("span",{className:mt.text},"\u6210\u5458"),ie.createElement("span",{className:mt.value},(dr==null?void 0:dr.course_members_count)||0))),ie.createElement("div",{className:mt.row},ie.createElement("div",null,ie.createElement("span",{className:mt.text,style:{width:42}},"\u4F5C",ie.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ie.createElement("span",{className:mt.value},(dr==null?void 0:dr.tasks_count)||0)),ie.createElement("div",null,ie.createElement("span",{className:mt.text},"\u72B6\u6001"),dr.is_end?ie.createElement("span",{className:mt.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ie.createElement("span",{className:mt.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),jr&&ie.createElement("div",{className:mt.btns},ie.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ie.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!dr.is_accessible&&ie.createElement("div",{className:mt.lockWrap},ie.createElement("img",{src:`${St.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ie.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!wt.length&&ie.createElement(Qt.Z,null)))},lt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Kt=re(35973),nn=({dataSource:vt=[],value:wt,onChange:Ct,className:Ft,style:Ln={},tabBarExtraContent:Yn})=>ie.createElement("div",{className:we()(lt.tabs,Ft),style:Ln},ie.createElement("div",{className:lt.tabsWrap},vt.map((wn,_n)=>ie.createElement("aside",{className:lt.tab,onClick:()=>{Ct(wn.id),wn.link&&Kt.history.push(wn.link)},key:_n},ie.createElement("div",{className:wt===wn.id?lt.active:""},wn.name),(wn==null?void 0:wn.resetCount)==null&&(wn==null?void 0:wn.total)!==void 0&&ie.createElement("span",null,"\uFF08",wn==null?void 0:wn.total,"\uFF09"),(wn==null?void 0:wn.resetCount)!==void 0&&(wn==null?void 0:wn.total)!==void 0&&ie.createElement(at.Z,{title:(wn==null?void 0:wn.tip)!=null?wn==null?void 0:wn.tip:""},ie.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ie.createElement("span",{style:{color:"#000"}},wn==null?void 0:wn.resetCount),"/",ie.createElement("span",null,wn==null?void 0:wn.total),"\uFF09"))))),ie.createElement("div",{className:lt.tabBar},Yn)),In={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},vr=({dataSource:vt=[],value:wt,onChange:Ct,className:Ft,style:Ln={},tabBarExtraContent:Yn})=>ie.createElement("div",{className:we()(In.tabs,Ft),style:Ln},ie.createElement("div",{className:In.tabsWrap},vt.map((wn,_n)=>ie.createElement("aside",{className:In.tab,onClick:()=>{Ct(wn.id),wn.link&&Kt.history.push(wn.link)},key:_n},ie.createElement("div",{className:wt===wn.id?In.active:""},wn.name),(wn==null?void 0:wn.resetCount)==null&&(wn==null?void 0:wn.total)!==void 0&&ie.createElement("span",null,"\uFF08",wn==null?void 0:wn.total,"\uFF09"),(wn==null?void 0:wn.resetCount)!==void 0&&(wn==null?void 0:wn.total)!==void 0&&ie.createElement(at.Z,{title:(wn==null?void 0:wn.tip)!=null?wn==null?void 0:wn.tip:""},ie.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ie.createElement("span",{style:{color:"#000"}},wn==null?void 0:wn.resetCount),"/",ie.createElement("span",null,wn==null?void 0:wn.total),"\uFF09"))))),ie.createElement("div",{className:In.tabBar},Yn)),ni={flex_box_center:"flex_box_center___uWCU1",flex_space_between:"flex_space_between___pKZJo",flex_box_vertical_center:"flex_box_vertical_center___NKr7Z",flex_box_center_end:"flex_box_center_end___ycaEu",flex_box_column:"flex_box_column___dDKjA",tabs:"tabs___cNVh5",tabsWrap:"tabsWrap___IJpOg",tab:"tab___fitSZ",active:"active___LBYdH"},Pr=({dataSource:vt=[],value:wt,onChange:Ct,className:Ft,style:Ln={},tabBarExtraContent:Yn})=>ie.createElement("div",{className:we()(ni.tabs,Ft),style:Ln},ie.createElement("div",{className:ni.tabsWrap},vt.map((wn,_n)=>ie.createElement("aside",{className:`${ni.tab} ${wt===wn.id?ni.active:""}`,onClick:()=>{Ct(wn.id),wn.link&&Kt.history.push(wn.link)},key:_n},ie.createElement("div",null,wn.name),(wn==null?void 0:wn.resetCount)==null&&(wn==null?void 0:wn.total)!==void 0&&ie.createElement("span",null,"\uFF08",wn==null?void 0:wn.total,"\uFF09"),(wn==null?void 0:wn.resetCount)!==void 0&&(wn==null?void 0:wn.total)!==void 0&&ie.createElement(at.Z,{title:(wn==null?void 0:wn.tip)!=null?wn==null?void 0:wn.tip:""},ie.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ie.createElement("span",{style:{color:"#000"}},wn==null?void 0:wn.resetCount),"/",ie.createElement("span",null,wn==null?void 0:wn.total),"\uFF09"))))),ie.createElement("div",{className:ni.tabBar},Yn)),Qr=({className:vt,style:wt={},children:Ct})=>ie.createElement("div",{className:we()(vt),style:wt},Ct),Ht={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Tt=re(85418),Jt=re(68508);const er=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Rn=({sortValue:vt,dropValue:wt,className:Ct,onSort:Ft,onDrop:Ln,dataSource:Yn=er})=>{var wn;return ie.createElement("div",{className:we()(Ht.orderWrap,Ct)},ie.createElement(Tt.Z,{dropdownRender:()=>ie.createElement(Jt.default,null,Yn.map((_n,wr)=>ie.createElement(Jt.default.Item,{key:wr,onClick:()=>Ln(_n.id)},_n.name)))},ie.createElement("span",{className:Ht.orderTextWrap},(wn=Yn.find(_n=>wt===_n.id))==null?void 0:wn.name)),ie.createElement("span",{className:Ht.orderIconWrap},ie.createElement("span",{className:Ht.orderAsc},ie.createElement("i",{className:vt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ht.cursorPointer} ${Ht.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ht.cursorPointer}`,onClick:()=>Ft(vt==="asc"?"desc":"asc")})),ie.createElement("span",{className:Ht.orderDesc},ie.createElement("i",{className:vt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ht.cursorPointer} ${Ht.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ht.cursorPointer}`,onClick:()=>Ft(vt==="asc"?"desc":"asc")}))))},Jn={flex_box_center:"flex_box_center___JJ9sS",flex_space_between:"flex_space_between___t8Vfh",flex_box_vertical_center:"flex_box_vertical_center___NXwpW",flex_box_center_end:"flex_box_center_end___d7nF9",flex_box_column:"flex_box_column___RWkXa",orderWrap:"orderWrap___Z6UhI",orderIconWrap:"orderIconWrap___vT5et",orderAsc:"orderAsc___Xrpfj",orderDesc:"orderDesc___FgOA0",active:"active___ryj8i",cursorPointer:"cursorPointer___Gg3bB",orderTextWrap:"orderTextWrap___BAYWJ"};const sr=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Xr=({sortValue:vt,dropValue:wt,className:Ct,onSort:Ft,onDrop:Ln,dataSource:Yn=sr})=>{var wn;return ie.createElement("div",{className:we()(Jn.orderWrap,Ct)},ie.createElement(Tt.Z,{dropdownRender:()=>ie.createElement(Jt.default,null,Yn.map((_n,wr)=>ie.createElement(Jt.default.Item,{key:wr,onClick:()=>Ln(_n.id)},_n.name)))},ie.createElement("span",{className:Jn.orderTextWrap},(wn=Yn.find(_n=>wt===_n.id))==null?void 0:wn.name)),ie.createElement("span",{className:Jn.orderIconWrap},ie.createElement("span",{className:Jn.orderAsc},ie.createElement("i",{className:vt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Jn.cursorPointer} ${Jn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Jn.cursorPointer}`,onClick:()=>Ft(vt==="asc"?"desc":"asc")})),ie.createElement("span",{className:Jn.orderDesc},ie.createElement("i",{className:vt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Jn.cursorPointer} ${Jn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Jn.cursorPointer}`,onClick:()=>Ft(vt==="asc"?"desc":"asc")}))))},Wn={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v",ThemeOne:"ThemeOne___iCQio"},Ai=re(71577),xi=re(52810),Sa=Object.defineProperty,fa=Object.getOwnPropertySymbols,na=Object.prototype.hasOwnProperty,Ni=Object.prototype.propertyIsEnumerable,la=(vt,wt,Ct)=>wt in vt?Sa(vt,wt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):vt[wt]=Ct,Qi=(vt,wt)=>{for(var Ct in wt||(wt={}))na.call(wt,Ct)&&la(vt,Ct,wt[Ct]);if(fa)for(var Ct of fa(wt))Ni.call(wt,Ct)&&la(vt,Ct,wt[Ct]);return vt},ga=(vt,wt)=>{var Ct={};for(var Ft in vt)na.call(vt,Ft)&&wt.indexOf(Ft)<0&&(Ct[Ft]=vt[Ft]);if(vt!=null&&fa)for(var Ft of fa(vt))wt.indexOf(Ft)<0&&Ni.call(vt,Ft)&&(Ct[Ft]=vt[Ft]);return Ct},Ba=(vt,wt,Ct)=>new Promise((Ft,Ln)=>{var Yn=wr=>{try{_n(Ct.next(wr))}catch(Wr){Ln(Wr)}},wn=wr=>{try{_n(Ct.throw(wr))}catch(Wr){Ln(Wr)}},_n=wr=>wr.done?Ft(wr.value):Promise.resolve(wr.value).then(Yn,wn);_n((Ct=Ct.apply(vt,wt)).next())}),ca=vt=>{var wt=vt,{className:Ct,style:Ft,children:Ln,loading:Yn=!1,openLoading:wn,onClick:_n=()=>{},size:wr="middle",shape:Wr="round",theme:Lr}=wt,dr=ga(wt,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Or,jr]=(0,ie.useState)(!1),ti=(0,ie.useMemo)(()=>{switch(Lr){case xi.Fy.THEMEONE:return Wn.ThemeOne;case xi.Fy.DEFAULT:default:return Wn.btn}},[Lr]);return ie.createElement(Ai.ZP,Qi({onClick:(0,me.throttle)(Zr=>Ba(void 0,null,function*(){wn&&jr(!0);try{yield _n(Zr)}catch(Mr){console.log("error",Mr)}wn&&jr(!1)}),2e3,{leading:!0,trailing:!1}),className:we()(ti,Wn[`${wr}-${Wr}`],Ct),style:Ft,size:wr,shape:Wr,loading:Or||Yn},dr),Ln)},Ca={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},za=({className:vt,style:wt,children:Ct=null,onClick:Ft,title:Ln})=>ie.createElement("div",{className:we()(Ca.head,vt),style:wt},ie.createElement("span",{className:"primary-hover",onClick:Ft},ie.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ie.createElement("b",{title:Ln},Ln),ie.createElement("div",{className:Ca.node},Ct)),Pi={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Vt=({confirmShow:vt=!0,confirmTitle:wt,confirmClick:Ct,cancelShow:Ft=!0,cancelTitle:Ln,cancelClick:Yn,className:wn,style:_n,confirmLoading:wr=!1})=>ie.createElement("div",{className:we()(Pi.btns,wn),style:_n},vt&&ie.createElement(Ai.ZP,{loading:wr,onClick:Ct,type:"primary",className:Pi.confirm},wt),Ft&&ie.createElement(Ai.ZP,{onClick:Yn,className:Pi.cancel},Ln)),zn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Er=({className:vt,style:wt={},LeftContent:Ct,children:Ft,RightContent:Ln})=>ie.createElement("div",{className:we()(zn.fixedBottom,vt),style:wt},ie.createElement("div",{className:zn.wrap},ie.createElement("div",{className:zn.left},Ct),ie.createElement("div",{className:zn.center},Ft),ie.createElement("div",{className:zn.right},Ln))),qr={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},bi=({className:vt,style:wt={},dataSource:Ct=[]})=>ie.createElement("div",{className:we()(qr.crumbs,vt),style:wt},Ct.map((Ft,Ln)=>Ln<Ct.length-1?ie.createElement(ie.Fragment,{key:Ln},Ft.path||Ft.onClick?ie.createElement("span",{className:qr.hover,onClick:Ft!=null&&Ft.onClick?Ft.onClick:()=>Kt.history.push(Ft.path)},Ft.name):ie.createElement("span",null,Ft.name),ie.createElement("span",null,"\xA0",">","\xA0")):ie.createElement("span",{key:Ln,style:{color:"#5F6368"}},Ft.name))),ki=re(55054),Si=Object.defineProperty,Ri=Object.defineProperties,ra=Object.getOwnPropertyDescriptors,oi=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,Dn=Object.prototype.propertyIsEnumerable,Xn=(vt,wt,Ct)=>wt in vt?Si(vt,wt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):vt[wt]=Ct,ge=(vt,wt)=>{for(var Ct in wt||(wt={}))hn.call(wt,Ct)&&Xn(vt,Ct,wt[Ct]);if(oi)for(var Ct of oi(wt))Dn.call(wt,Ct)&&Xn(vt,Ct,wt[Ct]);return vt},Re=(vt,wt)=>Ri(vt,ra(wt)),He=(vt,wt)=>{var Ct={};for(var Ft in vt)hn.call(vt,Ft)&&wt.indexOf(Ft)<0&&(Ct[Ft]=vt[Ft]);if(vt!=null&&oi)for(var Ft of oi(vt))wt.indexOf(Ft)<0&&Dn.call(vt,Ft)&&(Ct[Ft]=vt[Ft]);return Ct};const{Countdown:Ye}=ki.default;var $e=vt=>{var wt=vt,{onChange:Ct}=wt,Ft=He(wt,["onChange"]);const[Ln,Yn]=(0,ie.useState)(null);(0,ie.useEffect)(()=>{typeof Ln=="number"&&Ln>=0&&Ct(Ln)},[Ln]);const wn=_n=>{const wr=Math.floor(_n/1e3);Yn(wr)};return ie.createElement(Ye,Re(ge({},Ft),{onChange:wn}))},tt={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},on=({DataProps:vt,className:wt,style:Ct={}})=>{var Ft;return ie.createElement("div",{className:we()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",tt.ClassRoomItem,wt),style:Ct,onClick:()=>{(0,cn.xg)(vt==null?void 0:vt.first_category_url)}},ie.createElement("div",{className:"flex flex-col item-center"},ie.createElement("img",{src:`${(Ft=St.Z)==null?void 0:Ft.IMG_SERVER}/images/${vt==null?void 0:vt.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(vt==null?void 0:vt.subject_identifier)&&ie.createElement("div",{className:"mt-40px"},ie.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),ie.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),ie.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},ie.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(vt!=null&&vt.is_public)&&ie.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),ie.createElement("span",{className:we()("text-16px font-medium",tt.TitleDom)},vt==null?void 0:vt.name)),ie.createElement("div",{className:"c-grey-333 font-medium"},vt==null?void 0:vt.creator),ie.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",vt==null?void 0:vt.course_members_count),ie.createElement("div",{className:"c-grey-333 flex item-center justify-between"},ie.createElement("div",null,"\u4F5C\u4E1A\uFF1A",vt==null?void 0:vt.tasks_count),vt!=null&&vt.is_end?ie.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):ie.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},Zn=Object.defineProperty,tr=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,En=(vt,wt,Ct)=>wt in vt?Zn(vt,wt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):vt[wt]=Ct,dn=(vt,wt)=>{for(var Ct in wt||(wt={}))Vn.call(wt,Ct)&&En(vt,Ct,wt[Ct]);if(tr)for(var Ct of tr(wt))Mn.call(wt,Ct)&&En(vt,Ct,wt[Ct]);return vt},xr=({DataProps:vt=[],selectValue:wt,onChange:Ct,className:Ft,style:Ln={},extra:Yn,classNameItem:wn,styleItem:_n={},barHidden:wr})=>{const[Wr,Lr]=(0,ie.useState)();return(0,ie.useEffect)(()=>{Lr(Array.isArray(wt)?wt:[wt])},[wt]),ie.createElement("div",{className:we()("flex px-20px py-10px gap-40px",Ft),style:dn({borderBottom:"1px solid #D3F0FF"},Ln)},vt==null?void 0:vt.map(dr=>ie.createElement("div",{key:dr==null?void 0:dr.id,className:we()("flex item-center justify-center current c-grey-333 text-16 relative",wn,dr==null?void 0:dr.className),style:dn(dn({color:Wr!=null&&Wr.includes(dr==null?void 0:dr.id)?"#1890FF":"",minWidth:88},_n),(dr==null?void 0:dr.style)||{}),onClick:Or=>{Ct==null||Ct({domEvent:Or,item:dr}),dr!=null&&dr.link&&Kt.history.push(dr==null?void 0:dr.link)}},dr==null?void 0:dr.name,!wr&&(Wr==null?void 0:Wr.includes(dr==null?void 0:dr.id))&&ie.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),ie.createElement("div",{className:"ml-auto"},Yn))},ar=Object.defineProperty,ur=Object.defineProperties,mr=Object.getOwnPropertyDescriptors,Sr=Object.getOwnPropertySymbols,Tr=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Qe=(vt,wt,Ct)=>wt in vt?ar(vt,wt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):vt[wt]=Ct,Rt=(vt,wt)=>{for(var Ct in wt||(wt={}))Tr.call(wt,Ct)&&Qe(vt,Ct,wt[Ct]);if(Sr)for(var Ct of Sr(wt))je.call(wt,Ct)&&Qe(vt,Ct,wt[Ct]);return vt},kt=(vt,wt)=>ur(vt,mr(wt)),jn=({value:vt,onChange:wt,onInputChange:Ct,className:Ft,style:Ln={},InputProps:Yn})=>{const[wn,_n]=(0,ie.useState)(vt);return ie.createElement("div",{className:we()("flex item-center rounded-full px-10px py-2px",Ft),style:Rt({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},Ln)},ie.createElement(yt.default,kt(Rt({bordered:!1},Yn),{onChange:wr=>{_n(wr.target.value),Ct==null||Ct(encodeURIComponent(wr.target.value))},onPressEnter:wr=>{wt==null||wt({domEvent:wr,item:{value:wn}})}})),ie.createElement("img",{className:"h-22px current",src:re(25365),height:22,onClick:wr=>{wt==null||wt({domEvent:wr,item:{value:wn}})}}))}},99914:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Le}});var ie=re(67294);function Le(Oe,Ue){const be=(0,ie.useRef)();(0,ie.useEffect)(()=>{be.current=Oe}),(0,ie.useEffect)(()=>{function Me(){be.current()}if(Ue!==null){let ue=setInterval(Me,Ue);return()=>clearInterval(ue)}},[Ue])}},75590:function(bn,Ut,re){"use strict";re.r(Ut),re.d(Ut,{default:function(){return Ae}});var ie=re(67294),Le={flex_box_center:"flex_box_center___fl5m6",flex_space_between:"flex_space_between___bly3M",flex_box_vertical_center:"flex_box_vertical_center___xKfVY",flex_box_center_end:"flex_box_center_end___uQRsy",flex_box_column:"flex_box_column___V96Tv",ActvieE3:"ActvieE3___B5egy",Onerow:"Onerow___t6jyJ",body:"body___RTqwS",AddBut:"AddBut___iKjQP",FormDiv:"FormDiv___I9YYs"},Oe=re(35973),Ue=re(22150),be=re(83062),Me=re(2453),ue=re(14446),we=re(71230),me=re(15746),Ie=re(9430),ct=re(28452),Ke=re(71577),st=re(84567),dt=re(69677),Xe=re(11713),We=re(59810),ye=re(47897),it=re(64743),Lt=re(74855),qe=re(26194),rt=re(11320),xe=re(28706),Se=re(63037),Ze=re(41307),Ge=re(73983),yt=re(60580),pt=Object.defineProperty,ft=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,bt=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,Mt=(St,cn,Pt)=>cn in St?pt(St,cn,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):St[cn]=Pt,Gt=(St,cn)=>{for(var Pt in cn||(cn={}))bt.call(cn,Pt)&&Mt(St,Pt,cn[Pt]);if(jt)for(var Pt of jt(cn))xn.call(cn,Pt)&&Mt(St,Pt,cn[Pt]);return St},Bn=(St,cn)=>ft(St,Ne(cn)),Tn=(St,cn,Pt)=>new Promise((ht,Et)=>{var Qt=$t=>{try{On(Pt.next($t))}catch(yn){Et(yn)}},ir=$t=>{try{On(Pt.throw($t))}catch(yn){Et(yn)}},On=$t=>$t.done?ht($t.value):Promise.resolve($t.value).then(Qt,ir);On((Pt=Pt.apply(St,cn)).next())});const at=({graduations:{Tasks:St,teachers:cn,students:Pt,forTask:ht},loading:Et,dispatch:Qt})=>{var ir,On;const $t=(0,Oe.useParams)(),[yn,Qn]=(0,ie.useState)([]),[Cn,Pe]=(0,ie.useState)([]),[fe,ce]=(0,ie.useState)(!1),[pe,de]=(0,ie.useState)(!1),[le]=Ue.default.useForm(),[Te,ot]=(0,ie.useState)({}),[Bt,en]=(0,ie.useState)({}),[rn,sn]=(0,ie.useState)([]),[un,gt]=(0,ie.useState)(!1),zt=(0,ie.useRef)(null),[It,ln]=(0,ie.useState)({keyword:"",page:1,per_page:20,status:null,is_teacher:!0}),_t=[{id:null,name:"\u5168\u90E8"},{id:1,name:"\u8FBE\u6210\u53CC\u9009"},{id:0,name:"\u672A\u8FBE\u6210\u53CC\u9009"}],lr=[{title:"\u8BFE\u9898\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:Fn=>ie.createElement(be.Z,{placement:"topLeft",title:Fn},ie.createElement("span",{className:"c-grey-333"},Fn))},{title:"\u6307\u5BFC\u8001\u5E08",width:120,ellipsis:!0,dataIndex:"teacher_names",render:Fn=>ie.createElement(be.Z,{placement:"topLeft",title:Fn},ie.createElement("span",{className:"c-grey-333"},Fn))},{title:"\u9009\u9898\u72B6\u6001",width:120,dataIndex:"status",render:Fn=>ie.createElement(ie.Fragment,null,Fn==0&&ie.createElement("span",{style:{color:"#E30000"}},"\u672A\u8FBE\u6210\u53CC\u9009"),Fn==1&&ie.createElement("span",null,"\u8FBE\u6210\u53CC\u9009"))},{title:"\u9080\u8BF7\u7801",width:132,dataIndex:"invite_code",render:Fn=>ie.createElement("span",{className:"c-grey-333"},Fn,ie.createElement(Lt.CopyToClipboard,{text:Fn,onCopy:()=>Me.ZP.success("\u590D\u5236\u6210\u529F")},ie.createElement("i",{className:"iconfont icon-fuzhi8 font14",style:{color:"#165DFF",marginLeft:"8px",cursor:"pointer"}})))},{title:ie.createElement("span",null,"\u64CD\u4F5C"),align:"right",width:120,render:(Fn,or)=>ie.createElement(ie.Fragment,null,ie.createElement(yt.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0},onClick:()=>Tn(void 0,null,function*(){var Dr,Fr;gt(!1),yield Un(),or.teacher_ids=(Dr=or.teacher)==null?void 0:Dr.map(hr=>hr.id),or.student_id=or.student_id?Number(or.student_id):"",sn((Fr=or==null?void 0:or.attachments)==null?void 0:Fr.map(hr=>({uid:hr==null?void 0:hr.id,name:(hr==null?void 0:hr.title)+" "+(hr==null?void 0:hr.filesize),status:"done",url:(hr==null?void 0:hr.url)||""}))),ot(or),en(or),le.setFieldsValue(or)})},"\u7F16\u8F91"),ie.createElement("a",{className:Le.ActvieE3,type:"link",style:{padding:"0 0 0 10px",whiteSpace:"nowrap"},onClick:()=>{if(or.status==1)Me.ZP.warning("\u8BE5\u8BFE\u9898\u5DF2\u88AB\u5B66\u751F\u9009\u9898\u4E0D\u80FD\u5220\u9664");else{const Dr=ue.default.confirm({title:"\u5220\u9664\u63D0\u793A",icon:null,maskClosable:!0,content:ie.createElement("span",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BFE\u9898\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Tn(void 0,null,function*(){(yield Qt({type:"graduations/getDelGraduationsTasks",payload:{id:$t.id,ids:[or.id]}})).status==0&&(Me.ZP.success("\u5220\u9664\u6210\u529F"),It.page=1,ln(Gt({},It))),Dr.destroy()}),onCancel:()=>{Dr.destroy()}})}}},"\u5220\u9664"))}],xt={multiple:!0,withCredentials:!0,defaultFileList:rn,onRemove:Fn=>{sn(rn.filter(or=>(Fn.uid||Fn.response.id)!=or.uid))},beforeUpload:Fn=>{const or=Fn.size/1024/1024;return or>150||or==0?(Me.ZP.error(`${Fn.name} \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002${or==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(150MB)"}`),Promise.reject()):!0},action:`${rt.Z.API_SERVER}/api/attachments.json`,onChange:Fn=>{var or,Dr,Fr,hr,_r,Mi,zi,Gi;Fn.file.status==="done"&&sn([...rn,{uid:(Dr=(or=Fn==null?void 0:Fn.file)==null?void 0:or.response)==null?void 0:Dr.id,name:((hr=(Fr=Fn==null?void 0:Fn.file)==null?void 0:Fr.response)==null?void 0:hr.filename)+" "+(0,xe.RD)((Mi=(_r=Fn==null?void 0:Fn.file)==null?void 0:_r.response)==null?void 0:Mi.filesize),status:"done",url:((Gi=(zi=Fn==null?void 0:Fn.file)==null?void 0:zi.response)==null?void 0:Gi.url)||""}])}},Yt={selectedRowKeys:[...yn.map(Fn=>Fn.id),...Cn.map(Fn=>Fn.id)],onChange:(Fn,or)=>{const Dr=[],Fr=[];or.map(hr=>{hr.status==0?Fr.push(hr):Dr.push(hr)}),Pe(Dr),Qn(Fr)}},Un=(Fn=!1)=>Tn(void 0,null,function*(){var or,Dr;const Fr=yield Qt({type:"graduations/getGraduationsTeachers",payload:{id:$t.id,page:1,per_page:2e3}});if(Qt({type:"graduations/getGraduationsStudents",payload:{id:$t.id,page:1,per_page:2e3}}),Qt({type:"graduations/getGraduationsDetails",payload:{id:$t.id}}),Fn){const hr=(Dr=(or=Fr==null?void 0:Fr.data)==null?void 0:or.filter(_r=>_r==null?void 0:_r.is_creator))==null?void 0:Dr.map(_r=>_r.id);le.setFieldsValue({teacher_ids:hr}),ot(Bn(Gt({},Te),{teacher_ids:hr}))}ce(!0)}),Hn=()=>Tn(void 0,null,function*(){yield Qt({type:"graduations/getGraduationsTasks",payload:Gt({id:$t.id},It)})}),$n=Fn=>Tn(void 0,null,function*(){Fn.attachment_ids=rn.map(Dr=>Dr.uid);let or;un?or=yield(0,Ge.jW)(Gt({graduation_id:$t.id},Fn)):or=yield(0,Ge.YS)(Gt({graduation_id:$t.id,id:Te.id},Fn)),or.status==0&&(Me.ZP.success(un?"\u521B\u5EFA\u6210\u529F":"\u66F4\u65B0\u6210\u529F"),ot({}),sn([]),ce(!1),le.resetFields(),yield Hn())});(0,ie.useEffect)(()=>{Qn([]),Pe([]),Hn()},[It]),(0,ie.useEffect)(()=>{Te.base_project&&yr()},[Te==null?void 0:Te.base_project]);const yr=(Fn=1e5)=>{const or=document.querySelector(".ant-form-modal-body").querySelector(".ant-modal-body");or.scrollTop=Fn};return ie.createElement("section",{className:Le.body},ie.createElement(it.YG,{value:"manage",tabBarExtraContent:ie.createElement(it.op,{openLoading:!0,onClick:()=>Tn(void 0,null,function*(){gt(!0),yield Un(!0)})},"\u5F55\u5165\u8BFE\u9898"),dataSource:[{id:"manage",name:"\u8BFE\u9898\u7BA1\u7406"}],onChange:Fn=>{console.log(Fn)}}),ie.createElement(we.Z,{wrap:!1,align:"middle",justify:"space-between"},ie.createElement(me.Z,null,ie.createElement(it.qp,{title:"\u72B6\u6001",className:"mt20",dataSource:_t,titleWidth:28,value:It.status,onChange:Fn=>{It.status=Fn,It.page=1,ln(Gt({},It))}})),ie.createElement(me.Z,null,ie.createElement(it.t7,{style:{width:329,height:"38px"},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u9898\u540D\u79F0/\u6307\u5BFC\u8001\u5E08\u8FDB\u884C\u641C\u7D22",value:It.keyword,onChange:Fn=>{It.keyword=Fn,It.page=1,ln(Gt({},It))}}))),yn.length+Cn.length>0&&ie.createElement(we.Z,{wrap:!1,align:"middle",justify:"space-between",style:{padding:"11px 12px",background:"#F4F7FC",marginBottom:"1px"}},ie.createElement(me.Z,null,"\u5DF2\u9009\u62E9\xA0",ie.createElement("span",{style:{color:"#165DFF"}},yn.length+Cn.length||0),"\xA0\u9879"),ie.createElement(me.Z,{style:{color:"#E30000",cursor:"pointer"},onClick:()=>{const Fn=ue.default.confirm({title:"\u5220\u9664\u63D0\u793A",icon:null,maskClosable:!0,content:ie.createElement("span",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BFE\u9898\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Tn(void 0,null,function*(){yn.length>0&&(yield Qt({type:"graduations/getDelGraduationsTasks",payload:{id:$t.id,ids:yn.map(Dr=>Dr.id)}})).status==0&&Me.ZP.success("\u6279\u91CF\u5220\u9664\u6210\u529F"),Cn.length>0&&(yn.length==0&&Me.ZP.error("\u65E0\u6CD5\u5220\u9664"),de(!0)),Qn([]),Hn(),Fn.destroy()}),onCancel:()=>{Fn.destroy()}})}},ie.createElement("i",{className:"iconfont icon-piliangshanchu3 mr5"}),"\u6279\u91CF\u5220\u9664")),ie.createElement(Ie.default,{rowKey:"id",loading:Et.effects["graduations/getGraduationsTasks"],style:{minHeight:500},locale:{emptyText:ie.createElement(qe.Z,{customText:It.status==null&&It.keyword==""&&It.page==1?"\u60A8\u5F53\u524D\u8FD8\u6CA1\u6709\u5F55\u5165\u8BFE\u9898\uFF0C\u70B9\u51FB\u5B8C\u6210\u8BFE\u9898\u5F55\u5165":"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!",ButtonTwo:It.status==null&&It.keyword==""&&It.page==1?ie.createElement(it.op,{openLoading:!0,onClick:()=>Tn(void 0,null,function*(){gt(!0),yield Un(!0)})},"\u5F55\u5165\u8BFE\u9898"):ie.createElement(ie.Fragment,null)})},rowSelection:Yt,columns:lr,dataSource:St.data,pagination:!1}),St.count!=0&&ie.createElement(we.Z,{className:"mt20 mb20",wrap:!1,align:"middle",justify:"space-between"},ie.createElement(me.Z,null,"\u5171\xA0",ie.createElement("span",{style:{color:"#165DFF"}},St.count||0),"\xA0\u6761\u6570\u636E"),ie.createElement(me.Z,null,ie.createElement(ct.Z,{showSizeChanger:!0,showQuickJumper:!0,current:It.page,pageSize:It.per_page,onShowSizeChange:(Fn,or)=>{It.per_page=or,It.page=1,ln(Gt({},It))},onChange:Fn=>{It.page=Fn,ln(Gt({},It))},total:St.count}))),ie.createElement(ue.default,{open:pe,title:"\u63D0\u793A",destroyOnClose:!0,width:1200,footer:ie.createElement(Ke.ZP,{type:"primary",onClick:()=>{de(!1),Pe([])}},"\u77E5\u9053\u4E86"),onCancel:()=>{de(!1),Pe([])}},ie.createElement("span",null,"\u4E0B\u9762",ie.createElement("span",{style:{color:"#FA6400"}},Cn.length),"\u4E2A\u8BFE\u9898\u5DF2\u88AB\u5B66\u751F\u9009\u9898\uFF0C\u4E0D\u80FD\u5220\u9664"),ie.createElement("div",{className:"mt10",style:{background:"#F6F7F9",padding:"20px 12px"}},Cn.map((Fn,or)=>ie.createElement(we.Z,{wrap:!1,align:"middle",key:or,style:{color:"#999"}},ie.createElement("i",{className:"iconfont icon-guansuo font14"}),ie.createElement("div",{className:Le.Onerow,style:{marginLeft:"8px"}},ie.createElement(be.Z,{placement:"topLeft",title:Fn.name},Fn.name)))))),ie.createElement(ue.default,{open:fe,title:`${un?"\u5F55\u5165\u8BFE\u9898":"\u7F16\u8F91\u8BFE\u9898"}`,width:1200,destroyOnClose:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,className:"ant-form-modal-body",afterOpenChange:Fn=>{Fn&&document.querySelector(".ant-form-modal-body").querySelector(".ant-modal-body").scrollTo(0,0)},onCancel:()=>{ot({}),sn([]),le.resetFields(),ce(!1)},onOk:()=>{le.submit()}},ie.createElement(Ue.default,{onFinishFailed:Fn=>{var or;if(!(Te!=null&&Te.name)||!((or=Te==null?void 0:Te.teacher_ids)!=null&&or.length)){yr(0);return}(!(Te!=null&&Te.description)||Te!=null&&Te.base_project&&!(Te!=null&&Te.graduation_stage_id))&&yr()},form:le,initialValues:{},layout:"vertical",className:`${Le.FormDiv}`,onValuesChange:(Fn,or)=>{ot(Gt(Gt({},Te),Fn))},onFinish:Fn=>Tn(void 0,null,function*(){!un&&Bt.status==1&&Fn.student_id!=Bt.student_id?ue.default.confirm({centered:!0,okText:"\u786E\u5B9A",icon:null,cancelText:"\u53D6\u6D88",title:"\u53D8\u66F4\u6307\u5B9A\u5B66\u751F",content:ie.createElement("div",null,ie.createElement("p",null,"\u8BE5\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u786E\u8BA4\u53D8\u66F4\u6307\u5B9A\u5B66\u751F\uFF1F\u53D8\u66F4\u540E\u539F\u5B66\u751F\u5728\u8BE5\u8BFE\u9898\u63D0\u4EA4\u7684\u6587\u6863\u5C06\u6E05\u7A7A\u4E14\u65E0\u6CD5\u6062\u590D"),ie.createElement("div",null,"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\u786E\u8BA4\u5220\u9664"),ie.createElement(Se.Z,{ref:or=>zt.current=or})),onOk:()=>Tn(void 0,null,function*(){if(zt.current.onVerify())return Promise.reject();$n(Fn)})}):$n(Fn)})},ie.createElement(Ue.default.Item,{htmlFor:null,name:"source_is_repeat",valuePropName:"checked"},ie.createElement(st.default,null,ie.createElement("span",{style:{color:"#000"}},"\u8FD1\u4E09\u5E74\u662F\u5426\u91CD\u590D"))),ie.createElement(Ue.default.Item,{htmlFor:null,label:ie.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u540D\u79F0"),name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u9898\u540D\u79F0"},{type:"string",max:100,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{type:"string",whitespace:!0,message:"\u5185\u5BB9\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C"}]},ie.createElement(dt.default,{showCount:!0,maxLength:100,size:"large"})),ie.createElement(Ue.default.Item,{htmlFor:null,label:ie.createElement("span",{style:{color:"#5F6368"}},"\u6307\u5BFC\u8001\u5E08(\u53EF\u591A\u9009)"),name:"teacher_ids",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"}]},ie.createElement(Xe.default,{size:"large",mode:"multiple",optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"},(ir=cn==null?void 0:cn.data)==null?void 0:ir.map((Fn,or)=>ie.createElement(Xe.default.Option,{key:or,value:Fn.id},Fn.name)))),ie.createElement(Ue.default.Item,{htmlFor:null,label:ie.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u9002\u5408\u4E13\u4E1A"),name:"major",rules:[{type:"string",max:100,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"}]},ie.createElement(dt.default,{size:"large",showCount:!0,maxLength:100})),ie.createElement(Ue.default.Item,{htmlFor:null,label:ie.createElement("span",{style:{color:"#5F6368"}},"\u6307\u5B9A\u5B66\u751F"),name:"student_id"},ie.createElement(Xe.default,{size:"large",showSearch:!0,allowClear:!0,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u6307\u5B9A\u5B66\u751F"},(On=Pt==null?void 0:Pt.data)==null?void 0:On.map((Fn,or)=>ie.createElement(Xe.default.Option,{key:or,value:Fn.id},Fn.name)))),ie.createElement(Ue.default.Item,{htmlFor:null,label:ie.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u6765\u6E90"),name:"source",rules:[{type:"string",max:60,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"}]},ie.createElement(dt.default,{size:"large",showCount:!0,maxLength:60})),ie.createElement(Ue.default.Item,{htmlFor:null,label:ie.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u5B66\u79D1\u65B9\u5411"),name:"direction",rules:[{type:"string",max:60,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"}]},ie.createElement(dt.default,{size:"large",showCount:!0,maxLength:60})),ie.createElement(Ue.default.Item,{htmlFor:null,label:ie.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u4ECB\u7ECD"),name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u9898\u4ECB\u7ECD"},{type:"string",max:5e3,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{type:"string",whitespace:!0,message:"\u5185\u5BB9\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C"}]},ie.createElement(Ze.h,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26",scrollId:"",watch:!0,height:140})),ie.createElement(Ue.default.Item,{htmlFor:null,name:"attachment_ids",style:{display:"flex",alignItems:"center"},valuePropName:"fileList",getValueFromEvent:Fn=>Array.isArray(Fn)?Fn:Fn==null?void 0:Fn.fileList,normalize:Fn=>{const or="\u3000\u3000";return Fn.filter(Fr=>{if(Fr.url)return!0;const hr=Fr.size/1024/1024;return Fr.name.indexOf(or)===-1&&(Fr.name=`${Fr.name}${or}${(0,xe.RD)(Fr.size)}`),!(hr>150||hr==0)})}},ie.createElement(We.default,Gt({},xt),ie.createElement(we.Z,{style:{width:"100%"},wrap:!1,align:"middle"},ie.createElement(me.Z,null,ie.createElement(it.op,{style:{borderRadius:"2px"}},ie.createElement("i",{className:"iconfont icon-shangchuan3 mr5"}),"\u6587\u4EF6\u4E0A\u4F20")),ie.createElement(me.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:Fn=>{Fn.preventDefault(),Fn.stopPropagation()}},"\u4E0A\u4F20\u8BFE\u9898\u76F8\u5173\u6587\u6863\uFF0C\u5355\u4E2A\u6587\u6863\u5927\u5C0F\u4E0D\u8D85\u8FC7150M")))),ie.createElement(we.Z,{wrap:!1,align:"middle",className:"mb20"},ie.createElement(me.Z,null,ie.createElement(Ue.default.Item,{htmlFor:null,name:"base_project",valuePropName:"checked",style:{marginBottom:0}},ie.createElement(ye.Z,null))),ie.createElement(we.Z,{align:"middle",className:"ml10",style:{color:"#000"}},ie.createElement(me.Z,null,"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD"),ie.createElement(be.Z,{placement:"right",style:{width:"500px"},overlayStyle:{maxWidth:600},title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u5173\u8054\u540E\u5C06\u5E94\u7528\u4E8E\u6BD5\u8BBE\u6240\u6709\u9636\u6BB5"},ie.createElement("i",{className:"iconfont icon-tishixiaowenhao ml5",style:{cursor:"pointer",color:"#3061D0"}})))),ie.createElement("div",{id:"graduationstageid"},Te.base_project&&ie.createElement("div",{style:{background:"#F6F7F9",padding:"12px 12px 4px 12px",width:"100%",height:104}},ie.createElement("span",{style:{color:"#5F6367"}},"\u5B66\u751F\u9700\u8981\u5B8C\u6210\u5173\u8054\u9879\u76EE\u7684\u9636\u6BB5"),ie.createElement(we.Z,{wrap:!1,align:"middle",className:"mt15"},ie.createElement(me.Z,{style:{width:"632px"}},ie.createElement(Ue.default.Item,{name:"graduation_stage_id",htmlFor:null,style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5173\u8054\u9879\u76EE\u7684\u9636\u6BB5"}]},ie.createElement(Xe.default,null,ht==null?void 0:ht.map((Fn,or)=>ie.createElement(Xe.default.Option,{key:or,value:Fn.id},Fn.name))))),ie.createElement(me.Z,{className:"ml20",style:{color:"#999",fontSize:"12px"}},"\u9009\u62E9\u9636\u6BB5\u540E\uFF0C\u5B66\u751F\u5FC5\u987B\u5728\u5BF9\u5E94\u9636\u6BB5\u5B8C\u6210\u9879\u76EE\u5173\u8054")))))))};var Ae=(0,Oe.connect)(({graduations:St,loading:cn})=>({graduations:St,loading:cn}))(at)},38780:function(bn,Ut){"use strict";function re(){const ie=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Le=1;Le<arguments.length;Le++){const Oe=Le<0||arguments.length<=Le?void 0:arguments[Le];Oe&&Object.keys(Oe).forEach(Ue=>{const be=Oe[Ue];be!==void 0&&(ie[Ue]=be)})}return ie}Ut.Z=re},66367:function(bn,Ut,re){"use strict";re.d(Ut,{F:function(){return ie},Z:function(){return Le}});function ie(Oe){return Oe!=null&&Oe===Oe.window}function Le(Oe,Ue){var be,Me;if(typeof window=="undefined")return 0;const ue=Ue?"scrollTop":"scrollLeft";let we=0;return ie(Oe)?we=Oe[Ue?"pageYOffset":"pageXOffset"]:Oe instanceof Document?we=Oe.documentElement[ue]:(Oe instanceof HTMLElement||Oe)&&(we=Oe[ue]),Oe&&!ie(Oe)&&typeof we!="number"&&(we=(Me=((be=Oe.ownerDocument)!==null&&be!==void 0?be:Oe).documentElement)===null||Me===void 0?void 0:Me[ue]),we}},57838:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Le}});var ie=re(67294);function Le(){const[,Oe]=ie.useReducer(Ue=>Ue+1,0);return Oe}},58375:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Ue}});var ie=re(96523);function Le(be,Me,ue,we){const me=ue-Me;return be/=we/2,be<1?me/2*be*be*be+Me:me/2*((be-=2)*be*be+2)+Me}var Oe=re(66367);function Ue(be){let Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ue=()=>window,callback:we,duration:me=450}=Me,Ie=ue(),ct=(0,Oe.Z)(Ie,!0),Ke=Date.now(),st=()=>{const Xe=Date.now()-Ke,We=Le(Xe>me?me:Xe,ct,be,me);(0,Oe.F)(Ie)?Ie.scrollTo(window.pageXOffset,We):Ie instanceof Document||Ie.constructor.name==="HTMLDocument"?Ie.documentElement.scrollTop=We:Ie.scrollTop=We,Xe<me?(0,ie.Z)(st):typeof we=="function"&&we()};(0,ie.Z)(st)}},9708:function(bn,Ut,re){"use strict";re.d(Ut,{F:function(){return be},Z:function(){return Ue}});var ie=re(94184),Le=re.n(ie);const Oe=null;function Ue(Me,ue,we){return Le()({[`${Me}-status-success`]:ue==="success",[`${Me}-status-warning`]:ue==="warning",[`${Me}-status-error`]:ue==="error",[`${Me}-status-validating`]:ue==="validating",[`${Me}-has-feedback`]:we})}const be=(Me,ue)=>ue||Me},84567:function(bn,Ut,re){"use strict";re.d(Ut,{default:function(){return Ze}});var ie=re(94184),Le=re.n(ie),Oe=re(95860),Ue=re(67294),be=re(53124),Me=re(98866),ue=re(65223),me=Ue.createContext(null),Ie=re(63185),ct=re(45353),Ke=re(92429),st=function(Ge,yt){var pt={};for(var ft in Ge)Object.prototype.hasOwnProperty.call(Ge,ft)&&yt.indexOf(ft)<0&&(pt[ft]=Ge[ft]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,ft=Object.getOwnPropertySymbols(Ge);Ne<ft.length;Ne++)yt.indexOf(ft[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Ge,ft[Ne])&&(pt[ft[Ne]]=Ge[ft[Ne]]);return pt};const dt=(Ge,yt)=>{var pt;const{prefixCls:ft,className:Ne,rootClassName:jt,children:bt,indeterminate:xn=!1,style:Mt,onMouseEnter:Gt,onMouseLeave:Bn,skipGroup:Tn=!1,disabled:at}=Ge,Ae=st(Ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:St,direction:cn,checkbox:Pt}=Ue.useContext(be.E_),ht=Ue.useContext(me),{isFormItemInput:Et}=Ue.useContext(ue.aM),Qt=Ue.useContext(Me.Z),ir=(pt=(ht==null?void 0:ht.disabled)||at)!==null&&pt!==void 0?pt:Qt,On=Ue.useRef(Ae.value);Ue.useEffect(()=>{ht==null||ht.registerValue(Ae.value)},[]),Ue.useEffect(()=>{if(!Tn)return Ae.value!==On.current&&(ht==null||ht.cancelValue(On.current),ht==null||ht.registerValue(Ae.value),On.current=Ae.value),()=>ht==null?void 0:ht.cancelValue(Ae.value)},[Ae.value]);const $t=St("checkbox",ft),[yn,Qn]=(0,Ie.ZP)($t),Cn=Object.assign({},Ae);ht&&!Tn&&(Cn.onChange=function(){Ae.onChange&&Ae.onChange.apply(Ae,arguments),ht.toggleOption&&ht.toggleOption({label:bt,value:Ae.value})},Cn.name=ht.name,Cn.checked=ht.value.includes(Ae.value));const Pe=Le()(`${$t}-wrapper`,{[`${$t}-rtl`]:cn==="rtl",[`${$t}-wrapper-checked`]:Cn.checked,[`${$t}-wrapper-disabled`]:ir,[`${$t}-wrapper-in-form-item`]:Et},Pt==null?void 0:Pt.className,Ne,jt,Qn),fe=Le()({[`${$t}-indeterminate`]:xn},Ke.A,Qn),ce=xn?"mixed":void 0;return yn(Ue.createElement(ct.Z,{component:"Checkbox",disabled:ir},Ue.createElement("label",{className:Pe,style:Object.assign(Object.assign({},Pt==null?void 0:Pt.style),Mt),onMouseEnter:Gt,onMouseLeave:Bn},Ue.createElement(Oe.Z,Object.assign({"aria-checked":ce},Cn,{prefixCls:$t,className:fe,disabled:ir,ref:yt})),bt!==void 0&&Ue.createElement("span",null,bt))))};var We=Ue.forwardRef(dt),ye=re(74902),it=re(10366),Lt=function(Ge,yt){var pt={};for(var ft in Ge)Object.prototype.hasOwnProperty.call(Ge,ft)&&yt.indexOf(ft)<0&&(pt[ft]=Ge[ft]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,ft=Object.getOwnPropertySymbols(Ge);Ne<ft.length;Ne++)yt.indexOf(ft[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Ge,ft[Ne])&&(pt[ft[Ne]]=Ge[ft[Ne]]);return pt};const qe=(Ge,yt)=>{const{defaultValue:pt,children:ft,options:Ne=[],prefixCls:jt,className:bt,rootClassName:xn,style:Mt,onChange:Gt}=Ge,Bn=Lt(Ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Tn,direction:at}=Ue.useContext(be.E_),[Ae,St]=Ue.useState(Bn.value||pt||[]),[cn,Pt]=Ue.useState([]);Ue.useEffect(()=>{"value"in Bn&&St(Bn.value||[])},[Bn.value]);const ht=Ue.useMemo(()=>Ne.map(pe=>typeof pe=="string"||typeof pe=="number"?{label:pe,value:pe}:pe),[Ne]),Et=pe=>{Pt(de=>de.filter(le=>le!==pe))},Qt=pe=>{Pt(de=>[].concat((0,ye.Z)(de),[pe]))},ir=pe=>{const de=Ae.indexOf(pe.value),le=(0,ye.Z)(Ae);de===-1?le.push(pe.value):le.splice(de,1),"value"in Bn||St(le),Gt==null||Gt(le.filter(Te=>cn.includes(Te)).sort((Te,ot)=>{const Bt=ht.findIndex(rn=>rn.value===Te),en=ht.findIndex(rn=>rn.value===ot);return Bt-en}))},On=Tn("checkbox",jt),$t=`${On}-group`,[yn,Qn]=(0,Ie.ZP)(On),Cn=(0,it.Z)(Bn,["value","disabled"]),Pe=Ne.length?ht.map(pe=>Ue.createElement(We,{prefixCls:On,key:pe.value.toString(),disabled:"disabled"in pe?pe.disabled:Bn.disabled,value:pe.value,checked:Ae.includes(pe.value),onChange:pe.onChange,className:`${$t}-item`,style:pe.style,title:pe.title},pe.label)):ft,fe={toggleOption:ir,value:Ae,disabled:Bn.disabled,name:Bn.name,registerValue:Qt,cancelValue:Et},ce=Le()($t,{[`${$t}-rtl`]:at==="rtl"},bt,xn,Qn);return yn(Ue.createElement("div",Object.assign({className:ce,style:Mt},Cn,{ref:yt}),Ue.createElement(me.Provider,{value:fe},Pe)))},rt=Ue.forwardRef(qe);var xe=Ue.memo(rt);const Se=We;Se.Group=xe,Se.__ANT_CHECKBOX=!0;var Ze=Se},63185:function(bn,Ut,re){"use strict";re.d(Ut,{C2:function(){return be}});var ie=re(14747),Le=re(45503),Oe=re(67968);const Ue=Me=>{const{checkboxCls:ue}=Me,we=`${ue}-wrapper`;return[{[`${ue}-group`]:Object.assign(Object.assign({},(0,ie.Wf)(Me)),{display:"inline-flex",flexWrap:"wrap",columnGap:Me.marginXS,[`> ${Me.antCls}-row`]:{flex:1}}),[we]:Object.assign(Object.assign({},(0,ie.Wf)(Me)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${we}`]:{marginInlineStart:0},[`&${we}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ue]:Object.assign(Object.assign({},(0,ie.Wf)(Me)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Me.borderRadiusSM,alignSelf:"center",[`${ue}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ue}-inner`]:Object.assign({},(0,ie.oN)(Me))},[`${ue}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Me.checkboxSize,height:Me.checkboxSize,direction:"ltr",backgroundColor:Me.colorBgContainer,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,borderRadius:Me.borderRadiusSM,borderCollapse:"separate",transition:`all ${Me.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Me.checkboxSize/14*5,height:Me.checkboxSize/14*8,border:`${Me.lineWidthBold}px solid ${Me.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Me.motionDurationFast} ${Me.motionEaseInBack}, opacity ${Me.motionDurationFast}`}},"& + span":{paddingInlineStart:Me.paddingXS,paddingInlineEnd:Me.paddingXS}})},{[`
|
|
|
${we}:not(${we}-disabled),
|
|
|
${ue}:not(${ue}-disabled)
|
|
|
`]:{[`&:hover ${ue}-inner`]:{borderColor:Me.colorPrimary}},[`${we}:not(${we}-disabled)`]:{[`&:hover ${ue}-checked:not(${ue}-disabled) ${ue}-inner`]:{backgroundColor:Me.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ue}-checked:not(${ue}-disabled):after`]:{borderColor:Me.colorPrimaryHover}}},{[`${ue}-checked`]:{[`${ue}-inner`]:{backgroundColor:Me.colorPrimary,borderColor:Me.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Me.motionDurationMid} ${Me.motionEaseOutBack} ${Me.motionDurationFast}`}}},[`
|
|
|
${we}-checked:not(${we}-disabled),
|
|
|
${ue}-checked:not(${ue}-disabled)
|
|
|
`]:{[`&:hover ${ue}-inner`]:{backgroundColor:Me.colorPrimaryHover,borderColor:"transparent"}}},{[ue]:{"&-indeterminate":{[`${ue}-inner`]:{backgroundColor:Me.colorBgContainer,borderColor:Me.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Me.fontSizeLG/2,height:Me.fontSizeLG/2,backgroundColor:Me.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${we}-disabled`]:{cursor:"not-allowed"},[`${ue}-disabled`]:{[`&, ${ue}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ue}-inner`]:{background:Me.colorBgContainerDisabled,borderColor:Me.colorBorder,"&:after":{borderColor:Me.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Me.colorTextDisabled},[`&${ue}-indeterminate ${ue}-inner::after`]:{background:Me.colorTextDisabled}}}]};function be(Me,ue){const we=(0,Le.TS)(ue,{checkboxCls:`.${Me}`,checkboxSize:ue.controlInteractiveSize});return[Ue(we)]}Ut.ZP=(0,Oe.Z)("Checkbox",(Me,ue)=>{let{prefixCls:we}=ue;return[be(we,Me)]})},88258:function(bn,Ut,re){"use strict";var ie=re(67294),Le=re(53124),Oe=re(32983);const Ue=be=>{const{componentName:Me}=be,{getPrefixCls:ue}=(0,ie.useContext)(Le.E_),we=ue("empty");switch(Me){case"Table":case"List":return ie.createElement(Oe.Z,{image:Oe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ie.createElement(Oe.Z,{image:Oe.Z.PRESENTED_IMAGE_SIMPLE,className:`${we}-small`});default:return ie.createElement(Oe.Z,null)}};Ut.Z=Ue},72565:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Pi}});var ie=re(94184),Le=re.n(ie),Oe=re(1413),Ue=re(97685),be=re(67294),Me=re(73935);function ue(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var we={};function me(an,Vt){}function Ie(an,Vt){}function ct(){we={}}function Ke(an,Vt,zn){!Vt&&!we[zn]&&(an(!1,zn),we[zn]=!0)}function st(an,Vt){Ke(me,an,Vt)}function dt(an,Vt){Ke(Ie,an,Vt)}var Xe=null,We=re(71002),ye=re(18459);function it(an,Vt,zn){var cr=be.useRef({});return(!("value"in cr.current)||zn(cr.current.condition,Vt))&&(cr.current.value=an(),cr.current.condition=Vt),cr.current.value}function Lt(an,Vt){typeof an=="function"?an(Vt):(0,We.Z)(an)==="object"&&an&&"current"in an&&(an.current=Vt)}function qe(){for(var an=arguments.length,Vt=new Array(an),zn=0;zn<an;zn++)Vt[zn]=arguments[zn];var cr=Vt.filter(function(Er){return Er});return cr.length<=1?cr[0]:function(Er){Vt.forEach(function(qr){Lt(qr,Er)})}}function rt(){for(var an=arguments.length,Vt=new Array(an),zn=0;zn<an;zn++)Vt[zn]=arguments[zn];return it(function(){return qe.apply(void 0,Vt)},Vt,function(cr,Er){return cr.length===Er.length&&cr.every(function(qr,di){return qr===Er[di]})})}function xe(an){var Vt,zn,cr=(0,ye.isMemo)(an)?an.type.type:an.type;return!(typeof cr=="function"&&!((Vt=cr.prototype)!==null&&Vt!==void 0&&Vt.render)||typeof an=="function"&&!((zn=an.prototype)!==null&&zn!==void 0&&zn.render))}var Se=be.createContext(null),Ze=Se,Ge=re(74902),yt=ue()?be.useLayoutEffect:be.useEffect,pt=yt,ft=function(Vt,zn){var cr=React.useRef(!0);yt(function(){if(!cr.current)return Vt()},zn),yt(function(){return cr.current=!1,function(){cr.current=!0}},[])},Ne=[];function jt(an,Vt){var zn=be.useState(function(){if(!ue())return null;var Dn=document.createElement("div");return Dn}),cr=(0,Ue.Z)(zn,1),Er=cr[0],qr=be.useRef(!1),di=be.useContext(Ze),bi=be.useState(Ne),ki=(0,Ue.Z)(bi,2),Si=ki[0],Ri=ki[1],ra=di||(qr.current?void 0:function(Dn){Ri(function(Xn){var ge=[Dn].concat((0,Ge.Z)(Xn));return ge})});function oi(){Er.parentElement||document.body.appendChild(Er),qr.current=!0}function hn(){var Dn;(Dn=Er.parentElement)===null||Dn===void 0||Dn.removeChild(Er),qr.current=!1}return pt(function(){return an?di?di(oi):oi():hn(),hn},[an]),pt(function(){Si.length&&(Si.forEach(function(Dn){return Dn()}),Ri(Ne))},[Si]),[Er,ra]}function bt(an,Vt){if(!an)return!1;if(an.contains)return an.contains(Vt);for(var zn=Vt;zn;){if(zn===an)return!0;zn=zn.parentNode}return!1}var xn="data-rc-order",Mt="rc-util-key",Gt=new Map;function Bn(){var an=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Vt=an.mark;return Vt?Vt.startsWith("data-")?Vt:"data-".concat(Vt):Mt}function Tn(an){if(an.attachTo)return an.attachTo;var Vt=document.querySelector("head");return Vt||document.body}function at(an){return an==="queue"?"prependQueue":an?"prepend":"append"}function Ae(an){return Array.from((Gt.get(an)||an).children).filter(function(Vt){return Vt.tagName==="STYLE"})}function St(an){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ue())return null;var zn=Vt.csp,cr=Vt.prepend,Er=document.createElement("style");Er.setAttribute(xn,at(cr)),zn!=null&&zn.nonce&&(Er.nonce=zn==null?void 0:zn.nonce),Er.innerHTML=an;var qr=Tn(Vt),di=qr.firstChild;if(cr){if(cr==="queue"){var bi=Ae(qr).filter(function(ki){return["prepend","prependQueue"].includes(ki.getAttribute(xn))});if(bi.length)return qr.insertBefore(Er,bi[bi.length-1].nextSibling),Er}qr.insertBefore(Er,di)}else qr.appendChild(Er);return Er}function cn(an){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zn=Tn(Vt);return Ae(zn).find(function(cr){return cr.getAttribute(Bn(Vt))===an})}function Pt(an){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},zn=cn(an,Vt);if(zn){var cr=Tn(Vt);cr.removeChild(zn)}}function ht(an,Vt){var zn=Gt.get(an);if(!zn||!bt(document,zn)){var cr=St("",Vt),Er=cr.parentNode;Gt.set(an,Er),an.removeChild(cr)}}function Et(){Gt.clear()}function Qt(an,Vt){var zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},cr=Tn(zn);ht(cr,zn);var Er=cn(Vt,zn);if(Er){var qr,di;if((qr=zn.csp)!==null&&qr!==void 0&&qr.nonce&&Er.nonce!==((di=zn.csp)===null||di===void 0?void 0:di.nonce)){var bi;Er.nonce=(bi=zn.csp)===null||bi===void 0?void 0:bi.nonce}return Er.innerHTML!==an&&(Er.innerHTML=an),Er}var ki=St(an,zn);return ki.setAttribute(Bn(zn),Vt),ki}var ir;function On(an){if(typeof document=="undefined")return 0;if(an||ir===void 0){var Vt=document.createElement("div");Vt.style.width="100%",Vt.style.height="200px";var zn=document.createElement("div"),cr=zn.style;cr.position="absolute",cr.top="0",cr.left="0",cr.pointerEvents="none",cr.visibility="hidden",cr.width="200px",cr.height="150px",cr.overflow="hidden",zn.appendChild(Vt),document.body.appendChild(zn);var Er=Vt.offsetWidth;zn.style.overflow="scroll";var qr=Vt.offsetWidth;Er===qr&&(qr=zn.clientWidth),document.body.removeChild(zn),ir=Er-qr}return ir}function $t(an){var Vt=an.match(/^(.*)px$/),zn=Number(Vt==null?void 0:Vt[1]);return Number.isNaN(zn)?On():zn}function yn(an){if(typeof document=="undefined"||!an||!(an instanceof Element))return{width:0,height:0};var Vt=getComputedStyle(an,"::-webkit-scrollbar"),zn=Vt.width,cr=Vt.height;return{width:$t(zn),height:$t(cr)}}function Qn(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Cn="rc-util-locker-".concat(Date.now()),Pe=0;function fe(an){var Vt=!!an,zn=be.useState(function(){return Pe+=1,"".concat(Cn,"_").concat(Pe)}),cr=(0,Ue.Z)(zn,1),Er=cr[0];pt(function(){if(Vt){var qr=yn(document.body).width,di=Qn();Qt(`
|
|
|
html body {
|
|
|
overflow-y: hidden;
|
|
|
`.concat(di?"width: calc(100% - ".concat(qr,"px);"):"",`
|
|
|
}`),Er)}else Pt(Er);return function(){Pt(Er)}},[Vt,Er])}var ce=!1;function pe(an){return typeof an=="boolean"&&(ce=an),ce}var de=function(Vt){return Vt===!1?!1:!ue()||!Vt?null:typeof Vt=="string"?document.querySelector(Vt):typeof Vt=="function"?Vt():Vt},le=be.forwardRef(function(an,Vt){var zn=an.open,cr=an.autoLock,Er=an.getContainer,qr=an.debug,di=an.autoDestroy,bi=di===void 0?!0:di,ki=an.children,Si=be.useState(zn),Ri=(0,Ue.Z)(Si,2),ra=Ri[0],oi=Ri[1],hn=ra||zn;be.useEffect(function(){(bi||zn)&&oi(zn)},[zn,bi]);var Dn=be.useState(function(){return de(Er)}),Xn=(0,Ue.Z)(Dn,2),ge=Xn[0],Re=Xn[1];be.useEffect(function(){var Mn=de(Er);Re(Mn!=null?Mn:null)});var He=jt(hn&&!ge,qr),Ye=(0,Ue.Z)(He,2),Ve=Ye[0],$e=Ye[1],tt=ge!=null?ge:Ve;fe(cr&&zn&&ue()&&(tt===Ve||tt===document.body));var Wt=null;if(ki&&xe(ki)&&Vt){var on=ki;Wt=on.ref}var Zn=rt(Wt,Vt);if(!hn||!ue()||ge===void 0)return null;var tr=tt===!1||pe(),Vn=ki;return Vt&&(Vn=be.cloneElement(ki,{ref:Zn})),be.createElement(Ze.Provider,{value:$e},tr?Vn:(0,Me.createPortal)(Vn,tt))}),Te=le,ot=Te;function Bt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var en=Bt()?be.useLayoutEffect:be.useEffect,rn=function(Vt,zn){var cr=be.useRef(!0);en(function(){return Vt(cr.current)},zn),en(function(){return cr.current=!1,function(){cr.current=!0}},[])},sn=function(Vt,zn){rn(function(cr){if(!cr)return Vt()},zn)},un=rn,gt=be.createContext(null),zt=be.createContext({}),It=gt,ln=re(4942),_t=re(87462),lr=re(62874),xt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Vt){var zn=Vt.keyCode;if(Vt.altKey&&!Vt.ctrlKey||Vt.metaKey||zn>=xt.F1&&zn<=xt.F12)return!1;switch(zn){case xt.ALT:case xt.CAPS_LOCK:case xt.CONTEXT_MENU:case xt.CTRL:case xt.DOWN:case xt.END:case xt.ESC:case xt.HOME:case xt.INSERT:case xt.LEFT:case xt.MAC_FF_META:case xt.META:case xt.NUMLOCK:case xt.NUM_CENTER:case xt.PAGE_DOWN:case xt.PAGE_UP:case xt.PAUSE:case xt.PRINT_SCREEN:case xt.RIGHT:case xt.SHIFT:case xt.UP:case xt.WIN_KEY:case xt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Vt){if(Vt>=xt.ZERO&&Vt<=xt.NINE||Vt>=xt.NUM_ZERO&&Vt<=xt.NUM_MULTIPLY||Vt>=xt.A&&Vt<=xt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Vt===0)return!0;switch(Vt){case xt.SPACE:case xt.QUESTION_MARK:case xt.NUM_PLUS:case xt.NUM_MINUS:case xt.NUM_PERIOD:case xt.NUM_DIVISION:case xt.SEMICOLON:case xt.DASH:case xt.EQUALS:case xt.COMMA:case xt.PERIOD:case xt.SLASH:case xt.APOSTROPHE:case xt.SINGLE_QUOTE:case xt.OPEN_SQUARE_BRACKET:case xt.BACKSLASH:case xt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Yt=xt,Un=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,Hn=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,$n="".concat(Un," ").concat(Hn).split(/[\s\n]+/),yr="aria-",Fn="data-";function or(an,Vt){return an.indexOf(Vt)===0}function Dr(an){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zn;Vt===!1?zn={aria:!0,data:!0,attr:!0}:Vt===!0?zn={aria:!0}:zn=(0,Oe.Z)({},Vt);var cr={};return Object.keys(an).forEach(function(Er){(zn.aria&&(Er==="role"||or(Er,yr))||zn.data&&or(Er,Fn)||zn.attr&&$n.includes(Er))&&(cr[Er]=an[Er])}),cr}function Fr(an){var Vt=React.useRef();Vt.current=an;var zn=React.useCallback(function(){for(var cr,Er=arguments.length,qr=new Array(Er),di=0;di<Er;di++)qr[di]=arguments[di];return(cr=Vt.current)===null||cr===void 0?void 0:cr.call.apply(cr,[Vt].concat(qr))},[]);return zn}function hr(an){var Vt=React.useRef(!1),zn=React.useState(an),cr=_slicedToArray(zn,2),Er=cr[0],qr=cr[1];React.useEffect(function(){return Vt.current=!1,function(){Vt.current=!0}},[]);function di(bi,ki){ki&&Vt.current||qr(bi)}return[Er,di]}function _r(an){return an!==void 0}function Mi(an,Vt){var zn=Vt||{},cr=zn.defaultValue,Er=zn.value,qr=zn.onChange,di=zn.postState,bi=useState(function(){return _r(Er)?Er:_r(cr)?typeof cr=="function"?cr():cr:typeof an=="function"?an():an}),ki=_slicedToArray(bi,2),Si=ki[0],Ri=ki[1],ra=Er!==void 0?Er:Si,oi=di?di(ra):ra,hn=useEvent(qr),Dn=useState([ra]),Xn=_slicedToArray(Dn,2),ge=Xn[0],Re=Xn[1];useLayoutUpdateEffect(function(){var Ye=ge[0];Si!==Ye&&hn(Si,Ye)},[ge]),useLayoutUpdateEffect(function(){_r(Er)||Ri(Er)},[Er]);var He=useEvent(function(Ye,Ve){Ri(Ye,Ve),Re([ra],Ve)});return[oi,He]}var zi=re(33993);function Gi(an,Vt,zn){var cr=be.useRef({});return(!("value"in cr.current)||zn(cr.current.condition,Vt))&&(cr.current.value=an(),cr.current.condition=Vt),cr.current.value}function pi(an,Vt){typeof an=="function"?an(Vt):(0,We.Z)(an)==="object"&&an&&"current"in an&&(an.current=Vt)}function Zt(){for(var an=arguments.length,Vt=new Array(an),zn=0;zn<an;zn++)Vt[zn]=arguments[zn];var cr=Vt.filter(function(Er){return Er});return cr.length<=1?cr[0]:function(Er){Vt.forEach(function(qr){pi(qr,Er)})}}function Kn(){for(var an=arguments.length,Vt=new Array(an),zn=0;zn<an;zn++)Vt[zn]=arguments[zn];return Gi(function(){return Zt.apply(void 0,Vt)},Vt,function(cr,Er){return cr.length!==Er.length||cr.every(function(qr,di){return qr!==Er[di]})})}function fr(an){var Vt,zn,cr=isMemo(an)?an.type.type:an.type;return!(typeof cr=="function"&&!((Vt=cr.prototype)!==null&&Vt!==void 0&&Vt.render)||typeof an=="function"&&!((zn=an.prototype)!==null&&zn!==void 0&&zn.render))}function qn(an){return!isValidElement(an)||isFragment(an)?!1:fr(an)}function Br(an,Vt,zn,cr){if(!Vt.length)return zn;var Er=_toArray(Vt),qr=Er[0],di=Er.slice(1),bi;return!an&&typeof qr=="number"?bi=[]:Array.isArray(an)?bi=_toConsumableArray(an):bi=_objectSpread({},an),cr&&zn===void 0&&di.length===1?delete bi[qr][di[0]]:bi[qr]=Br(bi[qr],di,zn,cr),bi}function Kr(an,Vt,zn){var cr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Vt.length&&cr&&zn===void 0&&!get(an,Vt.slice(0,-1))?an:Br(an,Vt,zn,cr)}function Rr(an){return _typeof(an)==="object"&&an!==null&&Object.getPrototypeOf(an)===Object.prototype}function gr(an){return Array.isArray(an)?[]:{}}var mt=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Ot(){for(var an=arguments.length,Vt=new Array(an),zn=0;zn<an;zn++)Vt[zn]=arguments[zn];var cr=gr(Vt[0]);return Vt.forEach(function(Er){function qr(di,bi){var ki=new Set(bi),Si=get(Er,di),Ri=Array.isArray(Si);if(Ri||Rr(Si)){if(!ki.has(Si)){ki.add(Si);var ra=get(cr,di);Ri?cr=Kr(cr,di,[]):(!ra||_typeof(ra)!=="object")&&(cr=Kr(cr,di,gr(Si))),mt(Si).forEach(function(oi){qr([].concat(_toConsumableArray(di),[oi]),ki)})}}else cr=Kr(cr,di,Si)}qr([])}),cr}var Xt={},kn=[],lt=function(Vt){kn.push(Vt)};function Kt(an,Vt){if(0)var zn}function mn(an,Vt){if(0)var zn}function nn(){Xt={}}function In(an,Vt,zn){!Vt&&!Xt[zn]&&(an(!1,zn),Xt[zn]=!0)}function Pn(an,Vt){In(Kt,an,Vt)}function vr(an,Vt){In(mn,an,Vt)}Pn.preMessage=lt,Pn.resetWarned=nn,Pn.noteOnce=vr;var ni=Pn,zr=function(Vt){var zn=Vt.prefixCls,cr=Vt.className,Er=Vt.style,qr=Vt.children,di=Vt.containerRef,bi=Vt.id,ki=Vt.onMouseEnter,Si=Vt.onMouseOver,Ri=Vt.onMouseLeave,ra=Vt.onClick,oi=Vt.onKeyDown,hn=Vt.onKeyUp,Dn={onMouseEnter:ki,onMouseOver:Si,onMouseLeave:Ri,onClick:ra,onKeyDown:oi,onKeyUp:hn},Xn=be.useContext(zt),ge=Xn.panel,Re=Kn(ge,di);return be.createElement(be.Fragment,null,be.createElement("div",(0,_t.Z)({id:bi,className:Le()("".concat(zn,"-content"),cr),style:(0,Oe.Z)({},Er),"aria-modal":"true",role:"dialog",ref:Re},Dn),qr))},Pr=zr;function Yr(an){return typeof an=="string"&&String(Number(an))===an?(ni(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(an)):an}function Qr(an){warning(!("wrapperClassName"in an),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!an.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ht={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Tt(an,Vt){var zn,cr,Er,qr,di=an.prefixCls,bi=an.open,ki=an.placement,Si=an.inline,Ri=an.push,ra=an.forceRender,oi=an.autoFocus,hn=an.keyboard,Dn=an.rootClassName,Xn=an.rootStyle,ge=an.zIndex,Re=an.className,He=an.id,Ye=an.style,Ve=an.motion,$e=an.width,tt=an.height,Wt=an.children,on=an.contentWrapperStyle,Zn=an.mask,tr=an.maskClosable,Vn=an.maskMotion,Mn=an.maskClassName,En=an.maskStyle,dn=an.afterOpenChange,Gn=an.onClose,xr=an.onMouseEnter,ar=an.onMouseOver,ur=an.onMouseLeave,mr=an.onClick,Sr=an.onKeyDown,Tr=an.onKeyUp,je=be.useRef(),Qe=be.useRef(),Rt=be.useRef();be.useImperativeHandle(Vt,function(){return je.current});var kt=function(jr){var ti=jr.keyCode,Zr=jr.shiftKey;switch(ti){case Yt.TAB:{if(ti===Yt.TAB){if(!Zr&&document.activeElement===Rt.current){var Mr;(Mr=Qe.current)===null||Mr===void 0||Mr.focus({preventScroll:!0})}else if(Zr&&document.activeElement===Qe.current){var li;(li=Rt.current)===null||li===void 0||li.focus({preventScroll:!0})}}break}case Yt.ESC:{Gn&&hn&&(jr.stopPropagation(),Gn(jr));break}}};be.useEffect(function(){if(bi&&oi){var Or;(Or=je.current)===null||Or===void 0||Or.focus({preventScroll:!0})}},[bi]);var vn=be.useState(!1),jn=(0,Ue.Z)(vn,2),vt=jn[0],wt=jn[1],Ct=be.useContext(It),Ft;Ri===!1?Ft={distance:0}:Ri===!0?Ft={}:Ft=Ri||{};var Ln=(zn=(cr=(Er=Ft)===null||Er===void 0?void 0:Er.distance)!==null&&cr!==void 0?cr:Ct==null?void 0:Ct.pushDistance)!==null&&zn!==void 0?zn:180,Yn=be.useMemo(function(){return{pushDistance:Ln,push:function(){wt(!0)},pull:function(){wt(!1)}}},[Ln]);be.useEffect(function(){if(bi){var Or;Ct==null||(Or=Ct.push)===null||Or===void 0||Or.call(Ct)}else{var jr;Ct==null||(jr=Ct.pull)===null||jr===void 0||jr.call(Ct)}},[bi]),be.useEffect(function(){return function(){var Or;Ct==null||(Or=Ct.pull)===null||Or===void 0||Or.call(Ct)}},[]);var wn=Zn&&be.createElement(lr.Z,(0,_t.Z)({key:"mask"},Vn,{visible:bi}),function(Or,jr){var ti=Or.className,Zr=Or.style;return be.createElement("div",{className:Le()("".concat(di,"-mask"),ti,Mn),style:(0,Oe.Z)((0,Oe.Z)({},Zr),En),onClick:tr&&bi?Gn:void 0,ref:jr})}),_n=typeof Ve=="function"?Ve(ki):Ve,wr={};if(vt&&Ln)switch(ki){case"top":wr.transform="translateY(".concat(Ln,"px)");break;case"bottom":wr.transform="translateY(".concat(-Ln,"px)");break;case"left":wr.transform="translateX(".concat(Ln,"px)");break;default:wr.transform="translateX(".concat(-Ln,"px)");break}ki==="left"||ki==="right"?wr.width=Yr($e):wr.height=Yr(tt);var Wr={onMouseEnter:xr,onMouseOver:ar,onMouseLeave:ur,onClick:mr,onKeyDown:Sr,onKeyUp:Tr},Lr=be.createElement(lr.Z,(0,_t.Z)({key:"panel"},_n,{visible:bi,forceRender:ra,onVisibleChanged:function(jr){dn==null||dn(jr)},removeOnLeave:!1,leavedClassName:"".concat(di,"-content-wrapper-hidden")}),function(Or,jr){var ti=Or.className,Zr=Or.style;return be.createElement("div",(0,_t.Z)({className:Le()("".concat(di,"-content-wrapper"),ti),style:(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},wr),Zr),on)},Dr(an,{data:!0})),be.createElement(Pr,(0,_t.Z)({id:He,containerRef:jr,prefixCls:di,className:Re,style:Ye},Wr),Wt))}),dr=(0,Oe.Z)({},Xn);return ge&&(dr.zIndex=ge),be.createElement(It.Provider,{value:Yn},be.createElement("div",{className:Le()(di,"".concat(di,"-").concat(ki),Dn,(qr={},(0,ln.Z)(qr,"".concat(di,"-open"),bi),(0,ln.Z)(qr,"".concat(di,"-inline"),Si),qr)),style:dr,tabIndex:-1,ref:je,onKeyDown:kt},wn,be.createElement("div",{tabIndex:0,ref:Qe,style:Ht,"aria-hidden":"true","data-sentinel":"start"}),Lr,be.createElement("div",{tabIndex:0,ref:Rt,style:Ht,"aria-hidden":"true","data-sentinel":"end"})))}var Jt=be.forwardRef(Tt),er=Jt,kr=function(Vt){var zn=Vt.open,cr=zn===void 0?!1:zn,Er=Vt.prefixCls,qr=Er===void 0?"rc-drawer":Er,di=Vt.placement,bi=di===void 0?"right":di,ki=Vt.autoFocus,Si=ki===void 0?!0:ki,Ri=Vt.keyboard,ra=Ri===void 0?!0:Ri,oi=Vt.width,hn=oi===void 0?378:oi,Dn=Vt.mask,Xn=Dn===void 0?!0:Dn,ge=Vt.maskClosable,Re=ge===void 0?!0:ge,He=Vt.getContainer,Ye=Vt.forceRender,Ve=Vt.afterOpenChange,$e=Vt.destroyOnClose,tt=Vt.onMouseEnter,Wt=Vt.onMouseOver,on=Vt.onMouseLeave,Zn=Vt.onClick,tr=Vt.onKeyDown,Vn=Vt.onKeyUp,Mn=Vt.panelRef,En=be.useState(!1),dn=(0,Ue.Z)(En,2),Gn=dn[0],xr=dn[1],ar=be.useState(!1),ur=(0,Ue.Z)(ar,2),mr=ur[0],Sr=ur[1];un(function(){Sr(!0)},[]);var Tr=mr?cr:!1,je=be.useRef(),Qe=be.useRef();un(function(){Tr&&(Qe.current=document.activeElement)},[Tr]);var Rt=function(wt){var Ct;if(xr(wt),Ve==null||Ve(wt),!wt&&Qe.current&&!((Ct=je.current)!==null&&Ct!==void 0&&Ct.contains(Qe.current))){var Ft;(Ft=Qe.current)===null||Ft===void 0||Ft.focus({preventScroll:!0})}},kt=be.useMemo(function(){return{panel:Mn}},[Mn]);if(!Ye&&!Gn&&!Tr&&$e)return null;var vn={onMouseEnter:tt,onMouseOver:Wt,onMouseLeave:on,onClick:Zn,onKeyDown:tr,onKeyUp:Vn},jn=(0,Oe.Z)((0,Oe.Z)({},Vt),{},{open:Tr,prefixCls:qr,placement:bi,autoFocus:Si,keyboard:ra,width:hn,mask:Xn,maskClosable:Re,inline:He===!1,afterOpenChange:Rt,ref:je},vn);return be.createElement(zt.Provider,{value:kt},be.createElement(ot,{open:Tr||Ye||Gn,autoDestroy:!1,getContainer:He,autoLock:Xn&&(Tr||Gn)},be.createElement(er,jn)))},Rn=kr,Jn=Rn,sr=re(33603),Ir=re(53124),Xr=re(65223),Wn=re(69760),xi=an=>{const{prefixCls:Vt,title:zn,footer:cr,extra:Er,closeIcon:qr,closable:di,onClose:bi,headerStyle:ki,drawerStyle:Si,bodyStyle:Ri,footerStyle:ra,children:oi}=an,hn=be.useCallback(He=>be.createElement("button",{type:"button",onClick:bi,"aria-label":"Close",className:`${Vt}-close`},He),[bi]),[Dn,Xn]=(0,Wn.Z)(di,qr,hn,void 0,!0),ge=be.useMemo(()=>!zn&&!Dn?null:be.createElement("div",{style:ki,className:Le()(`${Vt}-header`,{[`${Vt}-header-close-only`]:Dn&&!zn&&!Er})},be.createElement("div",{className:`${Vt}-header-title`},Xn,zn&&be.createElement("div",{className:`${Vt}-title`},zn)),Er&&be.createElement("div",{className:`${Vt}-extra`},Er)),[Dn,Xn,Er,ki,Vt,zn]),Re=be.useMemo(()=>{if(!cr)return null;const He=`${Vt}-footer`;return be.createElement("div",{className:He,style:ra},cr)},[cr,ra,Vt]);return be.createElement("div",{className:`${Vt}-wrapper-body`,style:Si},ge,be.createElement("div",{className:`${Vt}-body`,style:Ri},oi),Re)},Sa=re(4173),fa=re(67968),na=re(45503),la=an=>{const{componentCls:Vt,motionDurationSlow:zn}=an,cr={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${zn}`}}};return{[Vt]:{[`${Vt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${zn}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Vt}-panel-motion`]:{"&-left":[cr,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[cr,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[cr,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[cr,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Qi=an=>{const{componentCls:Vt,zIndexPopup:zn,colorBgMask:cr,colorBgElevated:Er,motionDurationSlow:qr,motionDurationMid:di,padding:bi,paddingLG:ki,fontSizeLG:Si,lineHeightLG:Ri,lineWidth:ra,lineType:oi,colorSplit:hn,marginSM:Dn,colorIcon:Xn,colorIconHover:ge,colorText:Re,fontWeightStrong:He,footerPaddingBlock:Ye,footerPaddingInline:Ve}=an,$e=`${Vt}-content-wrapper`;return{[Vt]:{position:"fixed",inset:0,zIndex:zn,pointerEvents:"none","&-pure":{position:"relative",background:Er,[`&${Vt}-left`]:{boxShadow:an.boxShadowDrawerLeft},[`&${Vt}-right`]:{boxShadow:an.boxShadowDrawerRight},[`&${Vt}-top`]:{boxShadow:an.boxShadowDrawerUp},[`&${Vt}-bottom`]:{boxShadow:an.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Vt}-mask`]:{position:"absolute",inset:0,zIndex:zn,background:cr,pointerEvents:"auto"},[$e]:{position:"absolute",zIndex:zn,maxWidth:"100vw",transition:`all ${qr}`,"&-hidden":{display:"none"}},[`&-left > ${$e}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:an.boxShadowDrawerLeft},[`&-right > ${$e}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:an.boxShadowDrawerRight},[`&-top > ${$e}`]:{top:0,insetInline:0,boxShadow:an.boxShadowDrawerUp},[`&-bottom > ${$e}`]:{bottom:0,insetInline:0,boxShadow:an.boxShadowDrawerDown},[`${Vt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Er,pointerEvents:"auto"},[`${Vt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Vt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${bi}px ${ki}px`,fontSize:Si,lineHeight:Ri,borderBottom:`${ra}px ${oi} ${hn}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Vt}-extra`]:{flex:"none"},[`${Vt}-close`]:{display:"inline-block",marginInlineEnd:Dn,color:Xn,fontWeight:He,fontSize:Si,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${di}`,textRendering:"auto","&:focus, &:hover":{color:ge,textDecoration:"none"}},[`${Vt}-title`]:{flex:1,margin:0,color:Re,fontWeight:an.fontWeightStrong,fontSize:Si,lineHeight:Ri},[`${Vt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:ki,overflow:"auto"},[`${Vt}-footer`]:{flexShrink:0,padding:`${Ye}px ${Ve}px`,borderTop:`${ra}px ${oi} ${hn}`},"&-rtl":{direction:"rtl"}}}};var ga=(0,fa.Z)("Drawer",an=>{const Vt=(0,na.TS)(an,{});return[Qi(Vt),la(Vt)]},an=>({zIndexPopup:an.zIndexPopupBase,footerPaddingBlock:an.paddingXS,footerPaddingInline:an.padding})),Ba=re(16569),Oi=function(an,Vt){var zn={};for(var cr in an)Object.prototype.hasOwnProperty.call(an,cr)&&Vt.indexOf(cr)<0&&(zn[cr]=an[cr]);if(an!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Er=0,cr=Object.getOwnPropertySymbols(an);Er<cr.length;Er++)Vt.indexOf(cr[Er])<0&&Object.prototype.propertyIsEnumerable.call(an,cr[Er])&&(zn[cr[Er]]=an[cr[Er]]);return zn};const ca=null,Ca={distance:180},Qa=an=>{var Vt;const{rootClassName:zn,width:cr,height:Er,size:qr="default",mask:di=!0,push:bi=Ca,open:ki,afterOpenChange:Si,onClose:Ri,prefixCls:ra,getContainer:oi,style:hn,className:Dn,visible:Xn,afterVisibleChange:ge}=an,Re=Oi(an,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:He,getPrefixCls:Ye,direction:Ve,drawer:$e}=be.useContext(Ir.E_),tt=Ye("drawer",ra),[Wt,on]=ga(tt),Zn=oi===void 0&&He?()=>He(document.body):oi,tr=Le()({"no-mask":!di,[`${tt}-rtl`]:Ve==="rtl"},zn,on),Vn=be.useMemo(()=>cr!=null?cr:qr==="large"?736:378,[cr,qr]),Mn=be.useMemo(()=>Er!=null?Er:qr==="large"?736:378,[Er,qr]),En={motionName:(0,sr.m)(tt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},dn=xr=>({motionName:(0,sr.m)(tt,`panel-motion-${xr}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Gn=(0,Ba.H)();return Wt(be.createElement(Sa.BR,null,be.createElement(Xr.Ux,{status:!0,override:!0},be.createElement(Jn,Object.assign({prefixCls:tt,onClose:Ri,maskMotion:En,motion:dn},Re,{open:ki!=null?ki:Xn,mask:di,push:bi,width:Vn,height:Mn,style:Object.assign(Object.assign({},$e==null?void 0:$e.style),hn),className:Le()($e==null?void 0:$e.className,Dn),rootClassName:tr,getContainer:Zn,afterOpenChange:Si!=null?Si:ge,panelRef:Gn}),be.createElement(xi,Object.assign({prefixCls:tt},Re,{onClose:Ri}))))))},za=an=>{const{prefixCls:Vt,style:zn,className:cr,placement:Er="right"}=an,qr=Oi(an,["prefixCls","style","className","placement"]),{getPrefixCls:di}=be.useContext(Ir.E_),bi=di("drawer",Vt),[ki,Si]=ga(bi),Ri=Le()(bi,`${bi}-pure`,`${bi}-${Er}`,Si,cr);return ki(be.createElement("div",{className:Ri,style:zn},be.createElement(xi,Object.assign({prefixCls:bi},qr))))};Qa._InternalPanelDoNotUseOrYouWillBeFired=za;var Pi=Qa},35874:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return de}});var ie=re(67294),Le=re(91034),Oe=re(94184),Ue=re.n(Oe),be=re(87462),Me=re(4942),ue=re(97685),we=re(45987),me=re(62709),Ie=re(71002),ct=re(12060);function Ke(le,Te,ot){var Bt=React.useRef({});return(!("value"in Bt.current)||ot(Bt.current.condition,Te))&&(Bt.current.value=le(),Bt.current.condition=Te),Bt.current.value}function st(le,Te){typeof le=="function"?le(Te):(0,Ie.Z)(le)==="object"&&le&&"current"in le&&(le.current=Te)}function dt(){for(var le=arguments.length,Te=new Array(le),ot=0;ot<le;ot++)Te[ot]=arguments[ot];var Bt=Te.filter(function(en){return en});return Bt.length<=1?Bt[0]:function(en){Te.forEach(function(rn){st(rn,en)})}}function Xe(){for(var le=arguments.length,Te=new Array(le),ot=0;ot<le;ot++)Te[ot]=arguments[ot];return useMemo(function(){return dt.apply(void 0,Te)},Te,function(Bt,en){return Bt.length===en.length&&Bt.every(function(rn,sn){return rn===en[sn]})})}function We(le){var Te,ot,Bt=(0,ct.isMemo)(le)?le.type.type:le.type;return!(typeof Bt=="function"&&!((Te=Bt.prototype)!==null&&Te!==void 0&&Te.render)||typeof le=="function"&&!((ot=le.prototype)!==null&&ot!==void 0&&ot.render))}var ye={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Te){var ot=Te.keyCode;if(Te.altKey&&!Te.ctrlKey||Te.metaKey||ot>=ye.F1&&ot<=ye.F12)return!1;switch(ot){case ye.ALT:case ye.CAPS_LOCK:case ye.CONTEXT_MENU:case ye.CTRL:case ye.DOWN:case ye.END:case ye.ESC:case ye.HOME:case ye.INSERT:case ye.LEFT:case ye.MAC_FF_META:case ye.META:case ye.NUMLOCK:case ye.NUM_CENTER:case ye.PAGE_DOWN:case ye.PAGE_UP:case ye.PAUSE:case ye.PRINT_SCREEN:case ye.RIGHT:case ye.SHIFT:case ye.UP:case ye.WIN_KEY:case ye.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Te){if(Te>=ye.ZERO&&Te<=ye.NINE||Te>=ye.NUM_ZERO&&Te<=ye.NUM_MULTIPLY||Te>=ye.A&&Te<=ye.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Te===0)return!0;switch(Te){case ye.SPACE:case ye.QUESTION_MARK:case ye.NUM_PLUS:case ye.NUM_MINUS:case ye.NUM_PERIOD:case ye.NUM_DIVISION:case ye.SEMICOLON:case ye.DASH:case ye.EQUALS:case ye.COMMA:case ye.PERIOD:case ye.SLASH:case ye.APOSTROPHE:case ye.SINGLE_QUOTE:case ye.OPEN_SQUARE_BRACKET:case ye.BACKSLASH:case ye.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},it=ye,Lt=function(Te){return+setTimeout(Te,16)},qe=function(Te){return clearTimeout(Te)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Lt=function(Te){return window.requestAnimationFrame(Te)},qe=function(Te){return window.cancelAnimationFrame(Te)});var rt=0,xe=new Map;function Se(le){xe.delete(le)}var Ze=function(Te){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rt+=1;var Bt=rt;function en(rn){if(rn===0)Se(Bt),Te();else{var sn=Lt(function(){en(rn-1)});xe.set(Bt,sn)}}return en(ot),Bt};Ze.cancel=function(le){var Te=xe.get(le);return Se(Te),qe(Te)};var Ge=Ze,yt=it.ESC,pt=it.TAB;function ft(le){var Te=le.visible,ot=le.triggerRef,Bt=le.onVisibleChange,en=le.autoFocus,rn=le.overlayRef,sn=ie.useRef(!1),un=function(){if(Te){var ln,_t;(ln=ot.current)===null||ln===void 0||(_t=ln.focus)===null||_t===void 0||_t.call(ln),Bt==null||Bt(!1)}},gt=function(){var ln;return(ln=rn.current)!==null&&ln!==void 0&&ln.focus?(rn.current.focus(),sn.current=!0,!0):!1},zt=function(ln){switch(ln.keyCode){case yt:un();break;case pt:{var _t=!1;sn.current||(_t=gt()),_t?ln.preventDefault():un();break}}};ie.useEffect(function(){return Te?(window.addEventListener("keydown",zt),en&&Ge(gt,3),function(){window.removeEventListener("keydown",zt),sn.current=!1}):function(){sn.current=!1}},[Te])}var Ne=(0,ie.forwardRef)(function(le,Te){var ot=le.overlay,Bt=le.arrow,en=le.prefixCls,rn=(0,ie.useMemo)(function(){var un;return typeof ot=="function"?un=ot():un=ot,un},[ot]),sn=dt(Te,rn==null?void 0:rn.ref);return ie.createElement(ie.Fragment,null,Bt&&ie.createElement("div",{className:"".concat(en,"-arrow")}),ie.cloneElement(rn,{ref:We(rn)?sn:void 0}))}),jt=Ne,bt={adjustX:1,adjustY:1},xn=[0,0],Mt={topLeft:{points:["bl","tl"],overflow:bt,offset:[0,-4],targetOffset:xn},top:{points:["bc","tc"],overflow:bt,offset:[0,-4],targetOffset:xn},topRight:{points:["br","tr"],overflow:bt,offset:[0,-4],targetOffset:xn},bottomLeft:{points:["tl","bl"],overflow:bt,offset:[0,4],targetOffset:xn},bottom:{points:["tc","bc"],overflow:bt,offset:[0,4],targetOffset:xn},bottomRight:{points:["tr","br"],overflow:bt,offset:[0,4],targetOffset:xn}},Gt=Mt,Bn=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Tn(le,Te){var ot,Bt=le.arrow,en=Bt===void 0?!1:Bt,rn=le.prefixCls,sn=rn===void 0?"rc-dropdown":rn,un=le.transitionName,gt=le.animation,zt=le.align,It=le.placement,ln=It===void 0?"bottomLeft":It,_t=le.placements,lr=_t===void 0?Gt:_t,xt=le.getPopupContainer,Yt=le.showAction,Un=le.hideAction,Hn=le.overlayClassName,$n=le.overlayStyle,yr=le.visible,Fn=le.trigger,or=Fn===void 0?["hover"]:Fn,Dr=le.autoFocus,Fr=le.overlay,hr=le.children,_r=le.onVisibleChange,Mi=(0,we.Z)(le,Bn),zi=ie.useState(),Gi=(0,ue.Z)(zi,2),pi=Gi[0],Zt=Gi[1],Kn="visible"in le?yr:pi,fr=ie.useRef(null),qn=ie.useRef(null),Br=ie.useRef(null);ie.useImperativeHandle(Te,function(){return fr.current});var Kr=function(mn){Zt(mn),_r==null||_r(mn)};ft({visible:Kn,triggerRef:Br,onVisibleChange:Kr,autoFocus:Dr,overlayRef:qn});var Rr=function(mn){var nn=le.onOverlayClick;Zt(!1),nn&&nn(mn)},gr=function(){return ie.createElement(jt,{ref:qn,overlay:Fr,prefixCls:sn,arrow:en})},mt=function(){return typeof Fr=="function"?gr:gr()},Ot=function(){var mn=le.minOverlayWidthMatchTrigger,nn=le.alignPoint;return"minOverlayWidthMatchTrigger"in le?mn:!nn},Xt=function(){var mn=le.openClassName;return mn!==void 0?mn:"".concat(sn,"-open")},kn=ie.cloneElement(hr,{className:Ue()((ot=hr.props)===null||ot===void 0?void 0:ot.className,Kn&&Xt()),ref:We(hr)?dt(Br,hr.ref):void 0}),lt=Un;return!lt&&or.indexOf("contextMenu")!==-1&&(lt=["click"]),ie.createElement(me.Z,(0,be.Z)({builtinPlacements:lr},Mi,{prefixCls:sn,ref:fr,popupClassName:Ue()(Hn,(0,Me.Z)({},"".concat(sn,"-show-arrow"),en)),popupStyle:$n,action:or,showAction:Yt,hideAction:lt,popupPlacement:ln,popupAlign:zt,popupTransitionName:un,popupAnimation:gt,popupVisible:Kn,stretch:Ot()?"minWidth":"",popup:mt(),onPopupVisibleChange:Kr,onPopupClick:Rr,getPopupContainer:xt}),kn)}var at=ie.forwardRef(Tn),Ae=at,St=re(60276),cn=re(5663),Pt=re(10366),ht=re(80636),Et=re(8745),Qt=re(96159),ir=re(53124),On=re(68508),$t=re(76529),yn=re(29691),Qn=re(66748);const Cn=null,Pe=le=>{const{menu:Te,arrow:ot,prefixCls:Bt,children:en,trigger:rn,disabled:sn,dropdownRender:un,getPopupContainer:gt,overlayClassName:zt,rootClassName:It,open:ln,onOpenChange:_t,visible:lr,onVisibleChange:xt,mouseEnterDelay:Yt=.15,mouseLeaveDelay:Un=.1,autoAdjustOverflow:Hn=!0,placement:$n="",overlay:yr,transitionName:Fn}=le,{getPopupContainer:or,getPrefixCls:Dr,direction:Fr}=ie.useContext(ir.E_),hr=ie.useMemo(()=>{const kn=Dr();return Fn!==void 0?Fn:$n.includes("top")?`${kn}-slide-down`:`${kn}-slide-up`},[Dr,$n,Fn]),_r=ie.useMemo(()=>$n?$n.includes("Center")?$n.slice(0,$n.indexOf("Center")):$n:Fr==="rtl"?"bottomRight":"bottomLeft",[$n,Fr]),Mi=Dr("dropdown",Bt),[zi,Gi]=(0,Qn.Z)(Mi),[,pi]=(0,yn.Z)(),Zt=ie.Children.only(en),Kn=(0,Qt.Tm)(Zt,{className:Ue()(`${Mi}-trigger`,{[`${Mi}-rtl`]:Fr==="rtl"},Zt.props.className),disabled:sn}),fr=sn?[]:rn;let qn;fr&&fr.includes("contextMenu")&&(qn=!0);const[Br,Kr]=(0,cn.Z)(!1,{value:ln!=null?ln:lr}),Rr=(0,St.useEvent)(kn=>{_t==null||_t(kn),xt==null||xt(kn),Kr(kn)}),gr=Ue()(zt,It,Gi,{[`${Mi}-rtl`]:Fr==="rtl"}),mt=(0,ht.Z)({arrowPointAtCenter:typeof ot=="object"&&ot.pointAtCenter,autoAdjustOverflow:Hn,offset:pi.marginXXS,arrowWidth:ot?pi.sizePopupArrow:0,borderRadius:pi.borderRadius}),Ot=ie.useCallback(()=>{Kr(!1)},[]),Xt=()=>{let kn;return Te!=null&&Te.items?kn=ie.createElement(On.default,Object.assign({},Te)):typeof yr=="function"?kn=yr():kn=yr,un&&(kn=un(kn)),kn=ie.Children.only(typeof kn=="string"?ie.createElement("span",null,kn):kn),ie.createElement($t.J,{prefixCls:`${Mi}-menu`,expandIcon:ie.createElement("span",{className:`${Mi}-menu-submenu-arrow`},ie.createElement(Le.Z,{className:`${Mi}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ot,validator:lt=>{let{mode:Kt}=lt}},kn)};return zi(ie.createElement(Ae,Object.assign({alignPoint:qn},(0,Pt.Z)(le,["rootClassName"]),{mouseEnterDelay:Yt,mouseLeaveDelay:Un,visible:Br,builtinPlacements:mt,arrow:!!ot,overlayClassName:gr,prefixCls:Mi,getPopupContainer:gt||or,transitionName:hr,trigger:fr,overlay:Xt,placement:_r,onVisibleChange:Rr}),Kn))};function fe(le){return Object.assign(Object.assign({},le),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ce=(0,Et.Z)(Pe,"dropdown",le=>le,fe),pe=le=>ie.createElement(ce,Object.assign({},le),ie.createElement("span",null));Pe._InternalPanelDoNotUseOrYouWillBeFired=pe;var de=Pe},85418:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Xe}});var ie=re(35874),Le=re(94184),Oe=re.n(Le),Ue=re(67294),be=re(25877),Me=re(71577),ue=re(53124),we=re(93421),me=re(4173),Ie=re(66748),ct=function(We,ye){var it={};for(var Lt in We)Object.prototype.hasOwnProperty.call(We,Lt)&&ye.indexOf(Lt)<0&&(it[Lt]=We[Lt]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Lt=Object.getOwnPropertySymbols(We);qe<Lt.length;qe++)ye.indexOf(Lt[qe])<0&&Object.prototype.propertyIsEnumerable.call(We,Lt[qe])&&(it[Lt[qe]]=We[Lt[qe]]);return it};const Ke=We=>{const{getPopupContainer:ye,getPrefixCls:it,direction:Lt}=Ue.useContext(ue.E_),{prefixCls:qe,type:rt="default",danger:xe,disabled:Se,loading:Ze,onClick:Ge,htmlType:yt,children:pt,className:ft,menu:Ne,arrow:jt,autoFocus:bt,overlay:xn,trigger:Mt,align:Gt,open:Bn,onOpenChange:Tn,placement:at,getPopupContainer:Ae,href:St,icon:cn=Ue.createElement(be.Z,null),title:Pt,buttonsRender:ht=sn=>sn,mouseEnterDelay:Et,mouseLeaveDelay:Qt,overlayClassName:ir,overlayStyle:On,destroyPopupOnHide:$t,dropdownRender:yn}=We,Qn=ct(We,["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"]),Cn=it("dropdown",qe),Pe=`${Cn}-button`,[fe,ce]=(0,Ie.Z)(Cn),pe={menu:Ne,arrow:jt,autoFocus:bt,align:Gt,disabled:Se,trigger:Se?[]:Mt,onOpenChange:Tn,getPopupContainer:Ae||ye,mouseEnterDelay:Et,mouseLeaveDelay:Qt,overlayClassName:ir,overlayStyle:On,destroyPopupOnHide:$t,dropdownRender:yn},{compactSize:de,compactItemClassnames:le}=(0,me.ri)(Cn,Lt),Te=Oe()(Pe,le,ft,ce);"overlay"in We&&(pe.overlay=xn),"open"in We&&(pe.open=Bn),"placement"in We?pe.placement=at:pe.placement=Lt==="rtl"?"bottomLeft":"bottomRight";const ot=Ue.createElement(Me.ZP,{type:rt,danger:xe,disabled:Se,loading:Ze,onClick:Ge,htmlType:yt,href:St,title:Pt},pt),Bt=Ue.createElement(Me.ZP,{type:rt,danger:xe,icon:cn}),[en,rn]=ht([ot,Bt]);return fe(Ue.createElement(we.Z.Compact,Object.assign({className:Te,size:de,block:!0},Qn),en,Ue.createElement(ie.Z,Object.assign({},pe),rn)))};Ke.__ANT_BUTTON=!0;var st=Ke;const dt=ie.Z;dt.Button=st;var Xe=dt},66748:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ct}});var ie=re(14747),Le=re(67771),Oe=re(33297),Ue=re(50438),be=re(97414),Me=re(67968),ue=re(45503),me=Ke=>{const{componentCls:st,menuCls:dt,colorError:Xe,colorTextLightSolid:We}=Ke,ye=`${dt}-item`;return{[`${st}, ${st}-menu-submenu`]:{[`${dt} ${ye}`]:{[`&${ye}-danger:not(${ye}-disabled)`]:{color:Xe,"&:hover":{color:We,backgroundColor:Xe}}}}}};const Ie=Ke=>{const{componentCls:st,menuCls:dt,zIndexPopup:Xe,dropdownArrowDistance:We,sizePopupArrow:ye,antCls:it,iconCls:Lt,motionDurationMid:qe,dropdownPaddingVertical:rt,fontSize:xe,dropdownEdgeChildPadding:Se,colorTextDisabled:Ze,fontSizeIcon:Ge,controlPaddingHorizontal:yt,colorBgElevated:pt}=Ke;return[{[st]:Object.assign(Object.assign({},(0,ie.Wf)(Ke)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Xe,display:"block","&::before":{position:"absolute",insetBlock:-We+ye/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${it}-btn`]:{[`& > ${Lt}-down, & > ${it}-btn-icon > ${Lt}-down`]:{fontSize:Ge}},[`${st}-wrap`]:{position:"relative",[`${it}-btn > ${Lt}-down`]:{fontSize:Ge},[`${Lt}-down::before`]:{transition:`transform ${qe}`}},[`${st}-wrap-open`]:{[`${Lt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${it}-slide-down-enter${it}-slide-down-enter-active${st}-placement-bottomLeft,
|
|
|
&${it}-slide-down-appear${it}-slide-down-appear-active${st}-placement-bottomLeft,
|
|
|
&${it}-slide-down-enter${it}-slide-down-enter-active${st}-placement-bottom,
|
|
|
&${it}-slide-down-appear${it}-slide-down-appear-active${st}-placement-bottom,
|
|
|
&${it}-slide-down-enter${it}-slide-down-enter-active${st}-placement-bottomRight,
|
|
|
&${it}-slide-down-appear${it}-slide-down-appear-active${st}-placement-bottomRight`]:{animationName:Le.fJ},[`&${it}-slide-up-enter${it}-slide-up-enter-active${st}-placement-topLeft,
|
|
|
&${it}-slide-up-appear${it}-slide-up-appear-active${st}-placement-topLeft,
|
|
|
&${it}-slide-up-enter${it}-slide-up-enter-active${st}-placement-top,
|
|
|
&${it}-slide-up-appear${it}-slide-up-appear-active${st}-placement-top,
|
|
|
&${it}-slide-up-enter${it}-slide-up-enter-active${st}-placement-topRight,
|
|
|
&${it}-slide-up-appear${it}-slide-up-appear-active${st}-placement-topRight`]:{animationName:Le.Qt},[`&${it}-slide-down-leave${it}-slide-down-leave-active${st}-placement-bottomLeft,
|
|
|
&${it}-slide-down-leave${it}-slide-down-leave-active${st}-placement-bottom,
|
|
|
&${it}-slide-down-leave${it}-slide-down-leave-active${st}-placement-bottomRight`]:{animationName:Le.Uw},[`&${it}-slide-up-leave${it}-slide-up-leave-active${st}-placement-topLeft,
|
|
|
&${it}-slide-up-leave${it}-slide-up-leave-active${st}-placement-top,
|
|
|
&${it}-slide-up-leave${it}-slide-up-leave-active${st}-placement-topRight`]:{animationName:Le.ly}})},(0,be.ZP)(Ke,{colorBg:pt,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${st} ${dt}`]:{position:"relative",margin:0},[`${dt}-submenu-popup`]:{position:"absolute",zIndex:Xe,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${st}, ${st}-menu-submenu`]:{[dt]:Object.assign(Object.assign({padding:Se,listStyleType:"none",backgroundColor:pt,backgroundClip:"padding-box",borderRadius:Ke.borderRadiusLG,outline:"none",boxShadow:Ke.boxShadowSecondary},(0,ie.Qy)(Ke)),{[`${dt}-item-group-title`]:{padding:`${rt}px ${yt}px`,color:Ke.colorTextDescription,transition:`all ${qe}`},[`${dt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${dt}-item-icon`]:{minWidth:xe,marginInlineEnd:Ke.marginXS,fontSize:Ke.fontSizeSM},[`${dt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${qe}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${dt}-item, ${dt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${rt}px ${yt}px`,color:Ke.colorText,fontWeight:"normal",fontSize:xe,lineHeight:Ke.lineHeight,cursor:"pointer",transition:`all ${qe}`,borderRadius:Ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ke.controlItemBgHover}},(0,ie.Qy)(Ke)),{"&-selected":{color:Ke.colorPrimary,backgroundColor:Ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ke.controlItemBgActiveHover}},"&-disabled":{color:Ze,cursor:"not-allowed","&:hover":{color:Ze,backgroundColor:pt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ke.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ke.colorSplit},[`${st}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ke.paddingXS,[`${st}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ke.colorTextDescription,fontSize:Ge,fontStyle:"normal"}}}),[`${dt}-item-group-list`]:{margin:`0 ${Ke.marginXS}px`,padding:0,listStyle:"none"},[`${dt}-submenu-title`]:{paddingInlineEnd:yt+Ke.fontSizeSM},[`${dt}-submenu-vertical`]:{position:"relative"},[`${dt}-submenu${dt}-submenu-disabled ${st}-menu-submenu-title`]:{[`&, ${st}-menu-submenu-arrow-icon`]:{color:Ze,backgroundColor:pt,cursor:"not-allowed"}},[`${dt}-submenu-selected ${st}-menu-submenu-title`]:{color:Ke.colorPrimary}})}},[(0,Le.oN)(Ke,"slide-up"),(0,Le.oN)(Ke,"slide-down"),(0,Oe.Fm)(Ke,"move-up"),(0,Oe.Fm)(Ke,"move-down"),(0,Ue._y)(Ke,"zoom-big")]]};var ct=(0,Me.Z)("Dropdown",(Ke,st)=>{let{rootPrefixCls:dt}=st;const{marginXXS:Xe,sizePopupArrow:We,controlHeight:ye,fontSize:it,lineHeight:Lt,paddingXXS:qe,componentCls:rt,borderRadiusLG:xe}=Ke,Se=(ye-it*Lt)/2,{dropdownArrowOffset:Ze}=(0,be.fS)({contentRadius:xe}),Ge=(0,ue.TS)(Ke,{menuCls:`${rt}-menu`,rootPrefixCls:dt,dropdownArrowDistance:We/2+Xe,dropdownArrowOffset:Ze,dropdownPaddingVertical:Se,dropdownEdgeChildPadding:qe});return[Ie(Ge),me(Ge)]},Ke=>({zIndexPopup:Ke.zIndexPopupBase+50}))},32983:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return qe}});var ie=re(94184),Le=re.n(ie),Oe=re(67294),Ue=re(53124),be=re(10110),Me=re(84780),ue=re(29691),me=()=>{const[,rt]=(0,ue.Z)(),Se=new Me.C(rt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Oe.createElement("svg",{style:Se,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Oe.createElement("g",{fill:"none",fillRule:"evenodd"},Oe.createElement("g",{transform:"translate(24 31.67)"},Oe.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Oe.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"}),Oe.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)"}),Oe.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"}),Oe.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"})),Oe.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"}),Oe.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Oe.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Oe.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ct=()=>{const[,rt]=(0,ue.Z)(),{colorFill:xe,colorFillTertiary:Se,colorFillQuaternary:Ze,colorBgContainer:Ge}=rt,{borderColor:yt,shadowColor:pt,contentColor:ft}=(0,Oe.useMemo)(()=>({borderColor:new Me.C(xe).onBackground(Ge).toHexShortString(),shadowColor:new Me.C(Se).onBackground(Ge).toHexShortString(),contentColor:new Me.C(Ze).onBackground(Ge).toHexShortString()}),[xe,Se,Ze,Ge]);return Oe.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Oe.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Oe.createElement("ellipse",{fill:pt,cx:"32",cy:"33",rx:"32",ry:"7"}),Oe.createElement("g",{fillRule:"nonzero",stroke:yt},Oe.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"}),Oe.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:ft}))))},Ke=re(67968),st=re(45503);const dt=rt=>{const{componentCls:xe,margin:Se,marginXS:Ze,marginXL:Ge,fontSize:yt,lineHeight:pt}=rt;return{[xe]:{marginInline:Ze,fontSize:yt,lineHeight:pt,textAlign:"center",[`${xe}-image`]:{height:rt.emptyImgHeight,marginBottom:Ze,opacity:rt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${xe}-description`]:{color:rt.colorText},[`${xe}-footer`]:{marginTop:Se},"&-normal":{marginBlock:Ge,color:rt.colorTextDisabled,[`${xe}-description`]:{color:rt.colorTextDisabled},[`${xe}-image`]:{height:rt.emptyImgHeightMD}},"&-small":{marginBlock:Ze,color:rt.colorTextDisabled,[`${xe}-image`]:{height:rt.emptyImgHeightSM}}}}};var Xe=(0,Ke.Z)("Empty",rt=>{const{componentCls:xe,controlHeightLG:Se}=rt,Ze=(0,st.TS)(rt,{emptyImgCls:`${xe}-img`,emptyImgHeight:Se*2.5,emptyImgHeightMD:Se,emptyImgHeightSM:Se*.875});return[dt(Ze)]}),We=function(rt,xe){var Se={};for(var Ze in rt)Object.prototype.hasOwnProperty.call(rt,Ze)&&xe.indexOf(Ze)<0&&(Se[Ze]=rt[Ze]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ze=Object.getOwnPropertySymbols(rt);Ge<Ze.length;Ge++)xe.indexOf(Ze[Ge])<0&&Object.prototype.propertyIsEnumerable.call(rt,Ze[Ge])&&(Se[Ze[Ge]]=rt[Ze[Ge]]);return Se};const ye=Oe.createElement(me,null),it=Oe.createElement(ct,null),Lt=rt=>{var{className:xe,rootClassName:Se,prefixCls:Ze,image:Ge=ye,description:yt,children:pt,imageStyle:ft,style:Ne}=rt,jt=We(rt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:bt,direction:xn,empty:Mt}=Oe.useContext(Ue.E_),Gt=bt("empty",Ze),[Bn,Tn]=Xe(Gt),[at]=(0,be.Z)("Empty"),Ae=typeof yt!="undefined"?yt:at==null?void 0:at.description,St=typeof Ae=="string"?Ae:"empty";let cn=null;return typeof Ge=="string"?cn=Oe.createElement("img",{alt:St,src:Ge}):cn=Ge,Bn(Oe.createElement("div",Object.assign({className:Le()(Tn,Gt,Mt==null?void 0:Mt.className,{[`${Gt}-normal`]:Ge===it,[`${Gt}-rtl`]:xn==="rtl"},xe,Se),style:Object.assign(Object.assign({},Mt==null?void 0:Mt.style),Ne)},jt),Oe.createElement("div",{className:`${Gt}-image`,style:ft},cn),Ae&&Oe.createElement("div",{className:`${Gt}-description`},Ae),pt&&Oe.createElement("div",{className:`${Gt}-footer`},pt)))};Lt.PRESENTED_IMAGE_DEFAULT=ye,Lt.PRESENTED_IMAGE_SIMPLE=it;var qe=Lt},22150:function(bn,Ut,re){"use strict";re.d(Ut,{default:function(){return kn}});var ie=re(74902),Le=re(94184),Oe=re.n(Le),Ue=re(38379),be=re(67294),Me=re(33603),ue=re(65223);function we(lt){const[Kt,mn]=be.useState(lt);return be.useEffect(()=>{const nn=setTimeout(()=>{mn(lt)},lt.length?0:10);return()=>{clearTimeout(nn)}},[lt]),Kt}var me=re(14747),Ie=re(50438),ct=re(33507),Ke=re(45503),st=re(67968),Xe=lt=>{const{componentCls:Kt}=lt,mn=`${Kt}-show-help`,nn=`${Kt}-show-help-item`;return{[mn]:{transition:`opacity ${lt.motionDurationSlow} ${lt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[nn]:{overflow:"hidden",transition:`height ${lt.motionDurationSlow} ${lt.motionEaseInOut},
|
|
|
opacity ${lt.motionDurationSlow} ${lt.motionEaseInOut},
|
|
|
transform ${lt.motionDurationSlow} ${lt.motionEaseInOut} !important`,[`&${nn}-appear, &${nn}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${nn}-leave-active`]:{transform:"translateY(-5px)"}}}}};const We=lt=>({legend:{display:"block",width:"100%",marginBottom:lt.marginLG,padding:0,color:lt.colorTextDescription,fontSize:lt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${lt.lineWidth}px ${lt.lineType} ${lt.colorBorder}`},label:{fontSize:lt.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${lt.controlOutlineWidth}px ${lt.controlOutline}`},output:{display:"block",paddingTop:15,color:lt.colorText,fontSize:lt.fontSize,lineHeight:lt.lineHeight}}),ye=(lt,Kt)=>{const{formItemCls:mn}=lt;return{[mn]:{[`${mn}-label > label`]:{height:Kt},[`${mn}-control-input`]:{minHeight:Kt}}}},it=lt=>{const{componentCls:Kt}=lt;return{[lt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,me.Wf)(lt)),We(lt)),{[`${Kt}-text`]:{display:"inline-block",paddingInlineEnd:lt.paddingSM},"&-small":Object.assign({},ye(lt,lt.controlHeightSM)),"&-large":Object.assign({},ye(lt,lt.controlHeightLG))})}},Lt=lt=>{const{formItemCls:Kt,iconCls:mn,componentCls:nn,rootPrefixCls:In,labelRequiredMarkColor:Pn,labelColor:vr,labelFontSize:ni,labelHeight:zr,labelColonMarginInlineStart:Pr,labelColonMarginInlineEnd:Yr,itemMarginBottom:Qr}=lt;return{[Kt]:Object.assign(Object.assign({},(0,me.Wf)(lt)),{marginBottom:Qr,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${In}-row`]:{display:"none"},"&-has-warning":{[`${Kt}-split`]:{color:lt.colorError}},"&-has-error":{[`${Kt}-split`]:{color:lt.colorWarning}},[`${Kt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${lt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:zr,color:vr,fontSize:ni,[`> ${mn}`]:{fontSize:lt.fontSize,verticalAlign:"top"},[`&${Kt}-required:not(${Kt}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:lt.marginXXS,color:Pn,fontSize:lt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${nn}-hide-required-mark &`]:{display:"none"}},[`${Kt}-optional`]:{display:"inline-block",marginInlineStart:lt.marginXXS,color:lt.colorTextDescription,[`${nn}-hide-required-mark &`]:{display:"none"}},[`${Kt}-tooltip`]:{color:lt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:lt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Pr,marginInlineEnd:Yr},[`&${Kt}-no-colon::after`]:{content:'"\\a0"'}}},[`${Kt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${In}-col-'"]):not([class*="' ${In}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:lt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Kt]:{"&-explain, &-extra":{clear:"both",color:lt.colorTextDescription,fontSize:lt.fontSize,lineHeight:lt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:lt.controlHeightSM,transition:`color ${lt.motionDurationMid} ${lt.motionEaseOut}`},"&-explain":{"&-error":{color:lt.colorError},"&-warning":{color:lt.colorWarning}}},[`&-with-help ${Kt}-explain`]:{height:"auto",opacity:1},[`${Kt}-feedback-icon`]:{fontSize:lt.fontSize,textAlign:"center",visibility:"visible",animationName:Ie.kr,animationDuration:lt.motionDurationMid,animationTimingFunction:lt.motionEaseOutBack,pointerEvents:"none","&-success":{color:lt.colorSuccess},"&-error":{color:lt.colorError},"&-warning":{color:lt.colorWarning},"&-validating":{color:lt.colorPrimary}}})}},qe=lt=>{const{componentCls:Kt,formItemCls:mn}=lt;return{[`${Kt}-horizontal`]:{[`${mn}-label`]:{flexGrow:0},[`${mn}-control`]:{flex:"1 1 0",minWidth:0},[`${mn}-label[class$='-24'], ${mn}-label[class*='-24 ']`]:{[`& + ${mn}-control`]:{minWidth:"unset"}}}}},rt=lt=>{const{componentCls:Kt,formItemCls:mn}=lt;return{[`${Kt}-inline`]:{display:"flex",flexWrap:"wrap",[mn]:{flex:"none",marginInlineEnd:lt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${mn}-label,
|
|
|
> ${mn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${mn}-label`]:{flex:"none"},[`${Kt}-text`]:{display:"inline-block"},[`${mn}-has-feedback`]:{display:"inline-block"}}}}},xe=lt=>({padding:lt.verticalLabelPadding,margin:lt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Se=lt=>{const{componentCls:Kt,formItemCls:mn,rootPrefixCls:nn}=lt;return{[`${mn} ${mn}-label`]:xe(lt),[Kt]:{[mn]:{flexWrap:"wrap",[`${mn}-label, ${mn}-control`]:{[`&:not([class*=" ${nn}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ze=lt=>{const{componentCls:Kt,formItemCls:mn,rootPrefixCls:nn}=lt;return{[`${Kt}-vertical`]:{[mn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Kt}-item-control`]:{width:"100%"}}},[`${Kt}-vertical ${mn}-label,
|
|
|
.${nn}-col-24${mn}-label,
|
|
|
.${nn}-col-xl-24${mn}-label`]:xe(lt),[`@media (max-width: ${lt.screenXSMax}px)`]:[Se(lt),{[Kt]:{[`.${nn}-col-xs-24${mn}-label`]:xe(lt)}}],[`@media (max-width: ${lt.screenSMMax}px)`]:{[Kt]:{[`.${nn}-col-sm-24${mn}-label`]:xe(lt)}},[`@media (max-width: ${lt.screenMDMax}px)`]:{[Kt]:{[`.${nn}-col-md-24${mn}-label`]:xe(lt)}},[`@media (max-width: ${lt.screenLGMax}px)`]:{[Kt]:{[`.${nn}-col-lg-24${mn}-label`]:xe(lt)}}}},Ge=(lt,Kt)=>(0,Ke.TS)(lt,{formItemCls:`${lt.componentCls}-item`,rootPrefixCls:Kt});var yt=(0,st.Z)("Form",(lt,Kt)=>{let{rootPrefixCls:mn}=Kt;const nn=Ge(lt,mn);return[it(nn),Lt(nn),Xe(nn),qe(nn),rt(nn),Ze(nn),(0,ct.Z)(nn),Ie.kr]},lt=>({labelRequiredMarkColor:lt.colorError,labelColor:lt.colorTextHeading,labelFontSize:lt.fontSize,labelHeight:lt.controlHeight,labelColonMarginInlineStart:lt.marginXXS/2,labelColonMarginInlineEnd:lt.marginXS,itemMarginBottom:lt.marginLG,verticalLabelPadding:`0 0 ${lt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const pt=[];function ft(lt,Kt,mn){let nn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof lt=="string"?lt:`${Kt}-${nn}`,error:lt,errorStatus:mn}}var jt=lt=>{let{help:Kt,helpStatus:mn,errors:nn=pt,warnings:In=pt,className:Pn,fieldId:vr,onVisibleChanged:ni}=lt;const{prefixCls:zr}=be.useContext(ue.Rk),Pr=`${zr}-item-explain`,[,Yr]=yt(zr),Qr=(0,be.useMemo)(()=>(0,Me.Z)(zr),[zr]),Ht=we(nn),Tt=we(In),Jt=be.useMemo(()=>Kt!=null?[ft(Kt,"help",mn)]:[].concat((0,ie.Z)(Ht.map((kr,Rn)=>ft(kr,"error","error",Rn))),(0,ie.Z)(Tt.map((kr,Rn)=>ft(kr,"warning","warning",Rn)))),[Kt,mn,Ht,Tt]),er={};return vr&&(er.id=`${vr}_help`),be.createElement(Ue.default,{motionDeadline:Qr.motionDeadline,motionName:`${zr}-show-help`,visible:!!Jt.length,onVisibleChanged:ni},kr=>{const{className:Rn,style:Jn}=kr;return be.createElement("div",Object.assign({},er,{className:Oe()(Pr,Rn,Pn,Yr),style:Jn,role:"alert"}),be.createElement(Ue.CSSMotionList,Object.assign({keys:Jt},(0,Me.Z)(zr),{motionName:`${zr}-show-help-item`,component:!1}),sr=>{const{key:Ir,error:Xr,errorStatus:Wn,className:Ai,style:xi}=sr;return be.createElement("div",{key:Ir,className:Oe()(Ai,{[`${Pr}-${Wn}`]:Wn}),style:xi},Xr)}))})},bt=re(46660),xn=re(53124),Mt=re(98866),Gt=re(97647),Bn=re(98675),Tn=re(17423);const at=["parentNode"],Ae="form_item";function St(lt){return lt===void 0||lt===!1?[]:Array.isArray(lt)?lt:[lt]}function cn(lt,Kt){if(!lt.length)return;const mn=lt.join("_");return Kt?`${Kt}_${mn}`:at.includes(mn)?`${Ae}_${mn}`:mn}function Pt(lt,Kt,mn,nn,In,Pn){let vr=nn;return Pn!==void 0?vr=Pn:mn.validating?vr="validating":lt.length?vr="error":Kt.length?vr="warning":(mn.touched||In&&mn.validated)&&(vr="success"),vr}function ht(lt){return St(lt).join("_")}function Et(lt){const[Kt]=(0,bt.useForm)(),mn=be.useRef({}),nn=be.useMemo(()=>lt!=null?lt:Object.assign(Object.assign({},Kt),{__INTERNAL__:{itemRef:In=>Pn=>{const vr=ht(In);Pn?mn.current[vr]=Pn:delete mn.current[vr]}},scrollToField:function(In){let Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const vr=St(In),ni=cn(vr,nn.__INTERNAL__.name),zr=ni?document.getElementById(ni):null;zr&&(0,Tn.Z)(zr,Object.assign({scrollMode:"if-needed",block:"nearest"},Pn))},getFieldInstance:In=>{const Pn=ht(In);return mn.current[Pn]}}),[lt,Kt]);return[nn]}var Qt=re(37920),ir=function(lt,Kt){var mn={};for(var nn in lt)Object.prototype.hasOwnProperty.call(lt,nn)&&Kt.indexOf(nn)<0&&(mn[nn]=lt[nn]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var In=0,nn=Object.getOwnPropertySymbols(lt);In<nn.length;In++)Kt.indexOf(nn[In])<0&&Object.prototype.propertyIsEnumerable.call(lt,nn[In])&&(mn[nn[In]]=lt[nn[In]]);return mn};const On=(lt,Kt)=>{const mn=be.useContext(Mt.Z),{getPrefixCls:nn,direction:In,form:Pn}=be.useContext(xn.E_),{prefixCls:vr,className:ni,rootClassName:zr,size:Pr,disabled:Yr=mn,form:Qr,colon:Ht,labelAlign:Tt,labelWrap:Jt,labelCol:er,wrapperCol:kr,hideRequiredMark:Rn,layout:Jn="horizontal",scrollToFirstError:sr,requiredMark:Ir,onFinishFailed:Xr,name:Wn,style:Ai,feedbackIcons:xi}=lt,Sa=ir(lt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),fa=(0,Bn.Z)(Pr),na=be.useContext(Qt.Z),Ni=(0,be.useMemo)(()=>Ir!==void 0?Ir:Pn&&Pn.requiredMark!==void 0?Pn.requiredMark:!Rn,[Rn,Ir,Pn]),la=Ht!=null?Ht:Pn==null?void 0:Pn.colon,Qi=nn("form",vr),[ga,Ba]=yt(Qi),Oi=Oe()(Qi,`${Qi}-${Jn}`,{[`${Qi}-hide-required-mark`]:Ni===!1,[`${Qi}-rtl`]:In==="rtl",[`${Qi}-${fa}`]:fa},Ba,Pn==null?void 0:Pn.className,ni,zr),[ca]=Et(Qr),{__INTERNAL__:Ca}=ca;Ca.name=Wn;const Qa=(0,be.useMemo)(()=>({name:Wn,labelAlign:Tt,labelCol:er,labelWrap:Jt,wrapperCol:kr,vertical:Jn==="vertical",colon:la,requiredMark:Ni,itemRef:Ca.itemRef,form:ca,feedbackIcons:xi}),[Wn,Tt,er,kr,Jn,la,Ni,ca,xi]);be.useImperativeHandle(Kt,()=>ca);const za=(an,Vt)=>{if(an){let zn={block:"nearest"};typeof an=="object"&&(zn=an),ca.scrollToField(Vt,zn)}},Pi=an=>{if(Xr==null||Xr(an),an.errorFields.length){const Vt=an.errorFields[0].name;if(sr!==void 0){za(sr,Vt);return}Pn&&Pn.scrollToFirstError!==void 0&&za(Pn.scrollToFirstError,Vt)}};return ga(be.createElement(Mt.n,{disabled:Yr},be.createElement(Gt.q,{size:fa},be.createElement(ue.RV,Object.assign({},{validateMessages:na}),be.createElement(ue.q3.Provider,{value:Qa},be.createElement(bt.default,Object.assign({id:Wn},Sa,{name:Wn,onFinishFailed:Pi,form:ca,style:Object.assign(Object.assign({},Pn==null?void 0:Pn.style),Ai),className:Oi})))))))};var yn=be.forwardRef(On),Qn=re(9475),Cn=re(17799),Pe=re(96159),fe=re(37419);function ce(lt){if(typeof lt=="function")return lt;const Kt=(0,fe.Z)(lt);return Kt.length<=1?Kt[0]:Kt}const pe=()=>{const{status:lt,errors:Kt=[],warnings:mn=[]}=(0,be.useContext)(ue.aM);return{status:lt,errors:Kt,warnings:mn}};pe.Context=ue.aM;var de=pe,le=re(96523);function Te(lt){const[Kt,mn]=be.useState(lt),nn=(0,be.useRef)(null),In=(0,be.useRef)([]),Pn=(0,be.useRef)(!1);be.useEffect(()=>(Pn.current=!1,()=>{Pn.current=!0,le.Z.cancel(nn.current),nn.current=null}),[]);function vr(ni){Pn.current||(nn.current===null&&(In.current=[],nn.current=(0,le.Z)(()=>{nn.current=null,mn(zr=>{let Pr=zr;return In.current.forEach(Yr=>{Pr=Yr(Pr)}),Pr})})),In.current.push(ni))}return[Kt,vr]}function ot(){const{itemRef:lt}=be.useContext(ue.q3),Kt=be.useRef({});function mn(nn,In){const Pn=In&&typeof In=="object"&&In.ref,vr=nn.join("_");return(Kt.current.name!==vr||Kt.current.originRef!==Pn)&&(Kt.current.name=vr,Kt.current.originRef=Pn,Kt.current.ref=(0,Cn.sQ)(lt(nn),Pn)),Kt.current.ref}return mn}var Bt=re(48130),en=re(14075),rn=re(10366),sn=re(92820),un=re(21584);const gt=lt=>{const{formItemCls:Kt}=lt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Kt}-control`]:{display:"flex"}}}};var zt=(0,st.b)(["Form","item-item"],(lt,Kt)=>{let{rootPrefixCls:mn}=Kt;const nn=Ge(lt,mn);return[gt(nn)]}),ln=lt=>{const{prefixCls:Kt,status:mn,wrapperCol:nn,children:In,errors:Pn,warnings:vr,_internalItemRender:ni,extra:zr,help:Pr,fieldId:Yr,marginBottom:Qr,onErrorVisibleChanged:Ht}=lt,Tt=`${Kt}-item`,Jt=be.useContext(ue.q3),er=nn||Jt.wrapperCol||{},kr=Oe()(`${Tt}-control`,er.className),Rn=be.useMemo(()=>Object.assign({},Jt),[Jt]);delete Rn.labelCol,delete Rn.wrapperCol;const Jn=be.createElement("div",{className:`${Tt}-control-input`},be.createElement("div",{className:`${Tt}-control-input-content`},In)),sr=be.useMemo(()=>({prefixCls:Kt,status:mn}),[Kt,mn]),Ir=Qr!==null||Pn.length||vr.length?be.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},be.createElement(ue.Rk.Provider,{value:sr},be.createElement(jt,{fieldId:Yr,errors:Pn,warnings:vr,help:Pr,helpStatus:mn,className:`${Tt}-explain-connected`,onVisibleChanged:Ht})),!!Qr&&be.createElement("div",{style:{width:0,height:Qr}})):null,Xr={};Yr&&(Xr.id=`${Yr}_extra`);const Wn=zr?be.createElement("div",Object.assign({},Xr,{className:`${Tt}-extra`}),zr):null,Ai=ni&&ni.mark==="pro_table_render"&&ni.render?ni.render(lt,{input:Jn,errorList:Ir,extra:Wn}):be.createElement(be.Fragment,null,Jn,Ir,Wn);return be.createElement(ue.q3.Provider,{value:Rn},be.createElement(un.Z,Object.assign({},er,{className:kr}),Ai),be.createElement(zt,{prefixCls:Kt}))},_t=re(17663),lr=re(24457),xt=re(10110),Yt=re(83062),Un=function(lt,Kt){var mn={};for(var nn in lt)Object.prototype.hasOwnProperty.call(lt,nn)&&Kt.indexOf(nn)<0&&(mn[nn]=lt[nn]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var In=0,nn=Object.getOwnPropertySymbols(lt);In<nn.length;In++)Kt.indexOf(nn[In])<0&&Object.prototype.propertyIsEnumerable.call(lt,nn[In])&&(mn[nn[In]]=lt[nn[In]]);return mn};function Hn(lt){return lt?typeof lt=="object"&&!be.isValidElement(lt)?lt:{title:lt}:null}var yr=lt=>{let{prefixCls:Kt,label:mn,htmlFor:nn,labelCol:In,labelAlign:Pn,colon:vr,required:ni,requiredMark:zr,tooltip:Pr}=lt;var Yr;const[Qr]=(0,xt.Z)("Form"),{vertical:Ht,labelAlign:Tt,labelCol:Jt,labelWrap:er,colon:kr}=be.useContext(ue.q3);if(!mn)return null;const Rn=In||Jt||{},Jn=Pn||Tt,sr=`${Kt}-item-label`,Ir=Oe()(sr,Jn==="left"&&`${sr}-left`,Rn.className,{[`${sr}-wrap`]:!!er});let Xr=mn;const Wn=vr===!0||kr!==!1&&vr!==!1;Wn&&!Ht&&typeof mn=="string"&&mn.trim()!==""&&(Xr=mn.replace(/[:|:]\s*$/,""));const xi=Hn(Pr);if(xi){const{icon:Ni=be.createElement(_t.Z,null)}=xi,la=Un(xi,["icon"]),Qi=be.createElement(Yt.Z,Object.assign({},la),be.cloneElement(Ni,{className:`${Kt}-item-tooltip`,title:""}));Xr=be.createElement(be.Fragment,null,Xr,Qi)}const Sa=zr==="optional",fa=typeof zr=="function";fa?Xr=zr(Xr,{required:!!ni}):Sa&&!ni&&(Xr=be.createElement(be.Fragment,null,Xr,be.createElement("span",{className:`${Kt}-item-optional`,title:""},(Qr==null?void 0:Qr.optional)||((Yr=lr.Z.Form)===null||Yr===void 0?void 0:Yr.optional))));const na=Oe()({[`${Kt}-item-required`]:ni,[`${Kt}-item-required-mark-optional`]:Sa||fa,[`${Kt}-item-no-colon`]:!Wn});return be.createElement(un.Z,Object.assign({},Rn,{className:Ir}),be.createElement("label",{htmlFor:nn,className:na,title:typeof mn=="string"?mn:""},Xr))},Fn=re(87725),or=re(16646),Dr=re(87995),Fr=re(3407);const hr={success:Fn.Z,warning:Dr.Z,error:or.Z,validating:Fr.Z};function _r(lt){let{children:Kt,errors:mn,warnings:nn,hasFeedback:In,validateStatus:Pn,prefixCls:vr,meta:ni,noStyle:zr}=lt;const Pr=`${vr}-item`,{feedbackIcons:Yr}=be.useContext(ue.q3),Qr=Pt(mn,nn,ni,null,!!In,Pn),{isFormItemInput:Ht,status:Tt}=be.useContext(ue.aM),Jt=be.useMemo(()=>{var er;let kr;if(In){const sr=In!==!0&&In.icons||Yr,Ir=Qr&&((er=sr==null?void 0:sr({status:Qr,errors:mn,warnings:nn}))===null||er===void 0?void 0:er[Qr]),Xr=Qr&&hr[Qr];kr=Ir!==!1&&Xr?be.createElement("span",{className:Oe()(`${Pr}-feedback-icon`,`${Pr}-feedback-icon-${Qr}`)},Ir||be.createElement(Xr,null)):null}let Rn=!0,Jn=Qr||"";return zr&&(Rn=Ht,Jn=(Qr!=null?Qr:Tt)||""),{status:Jn,errors:mn,warnings:nn,hasFeedback:!!In,feedbackIcon:kr,isFormItemInput:Rn}},[Qr,In,zr,Ht,Tt]);return be.createElement(ue.aM.Provider,{value:Jt},Kt)}var Mi=function(lt,Kt){var mn={};for(var nn in lt)Object.prototype.hasOwnProperty.call(lt,nn)&&Kt.indexOf(nn)<0&&(mn[nn]=lt[nn]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var In=0,nn=Object.getOwnPropertySymbols(lt);In<nn.length;In++)Kt.indexOf(nn[In])<0&&Object.prototype.propertyIsEnumerable.call(lt,nn[In])&&(mn[nn[In]]=lt[nn[In]]);return mn};function zi(lt){const{prefixCls:Kt,className:mn,rootClassName:nn,style:In,help:Pn,errors:vr,warnings:ni,validateStatus:zr,meta:Pr,hasFeedback:Yr,hidden:Qr,children:Ht,fieldId:Tt,required:Jt,isRequired:er,onSubItemMetaChange:kr}=lt,Rn=Mi(lt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Jn=`${Kt}-item`,{requiredMark:sr}=be.useContext(ue.q3),Ir=be.useRef(null),Xr=we(vr),Wn=we(ni),Ai=Pn!=null,xi=!!(Ai||vr.length||ni.length),Sa=!!Ir.current&&(0,Bt.Z)(Ir.current),[fa,na]=be.useState(null);(0,en.Z)(()=>{if(xi&&Ir.current){const Ba=getComputedStyle(Ir.current);na(parseInt(Ba.marginBottom,10))}},[xi,Sa]);const Ni=Ba=>{Ba||na(null)},Qi=function(){let Ba=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Oi=Ba?Xr:Pr.errors,ca=Ba?Wn:Pr.warnings;return Pt(Oi,ca,Pr,"",!!Yr,zr)}(),ga=Oe()(Jn,mn,nn,{[`${Jn}-with-help`]:Ai||Xr.length||Wn.length,[`${Jn}-has-feedback`]:Qi&&Yr,[`${Jn}-has-success`]:Qi==="success",[`${Jn}-has-warning`]:Qi==="warning",[`${Jn}-has-error`]:Qi==="error",[`${Jn}-is-validating`]:Qi==="validating",[`${Jn}-hidden`]:Qr});return be.createElement("div",{className:ga,style:In,ref:Ir},be.createElement(sn.Z,Object.assign({className:`${Jn}-row`},(0,rn.Z)(Rn,["_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"])),be.createElement(yr,Object.assign({htmlFor:Tt},lt,{requiredMark:sr,required:Jt!=null?Jt:er,prefixCls:Kt})),be.createElement(ln,Object.assign({},lt,Pr,{errors:Xr,warnings:Wn,prefixCls:Kt,status:Qi,help:Pn,marginBottom:fa,onErrorVisibleChanged:Ni}),be.createElement(ue.qI.Provider,{value:kr},be.createElement(_r,{prefixCls:Kt,meta:Pr,errors:Pr.errors,warnings:Pr.warnings,hasFeedback:Yr,validateStatus:Qi},Ht)))),!!fa&&be.createElement("div",{className:`${Jn}-margin-offset`,style:{marginBottom:-fa}}))}const Gi="__SPLIT__",pi=null,Zt=be.memo(lt=>{let{children:Kt}=lt;return Kt},(lt,Kt)=>lt.value===Kt.value&<.update===Kt.update&<.childProps.length===Kt.childProps.length&<.childProps.every((mn,nn)=>mn===Kt.childProps[nn]));function Kn(lt){return lt!=null}function fr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function qn(lt){const{name:Kt,noStyle:mn,className:nn,dependencies:In,prefixCls:Pn,shouldUpdate:vr,rules:ni,children:zr,required:Pr,label:Yr,messageVariables:Qr,trigger:Ht="onChange",validateTrigger:Tt,hidden:Jt,help:er}=lt,{getPrefixCls:kr}=be.useContext(xn.E_),{name:Rn}=be.useContext(ue.q3),Jn=ce(zr),sr=typeof Jn=="function",Ir=be.useContext(ue.qI),{validateTrigger:Xr}=be.useContext(bt.FieldContext),Wn=Tt!==void 0?Tt:Xr,Ai=Kn(Kt),xi=kr("form",Pn),[Sa,fa]=yt(xi),na=be.useContext(bt.ListContext),Ni=be.useRef(),[la,Qi]=Te({}),[ga,Ba]=(0,Qn.Z)(()=>fr()),Oi=Vt=>{const zn=na==null?void 0:na.getKey(Vt.name);if(Ba(Vt.destroy?fr():Vt,!0),mn&&er!==!1&&Ir){let cr=Vt.name;if(Vt.destroy)cr=Ni.current||cr;else if(zn!==void 0){const[Er,qr]=zn;cr=[Er].concat((0,ie.Z)(qr)),Ni.current=cr}Ir(Vt,cr)}},ca=(Vt,zn)=>{Qi(cr=>{const Er=Object.assign({},cr),di=[].concat((0,ie.Z)(Vt.name.slice(0,-1)),(0,ie.Z)(zn)).join(Gi);return Vt.destroy?delete Er[di]:Er[di]=Vt,Er})},[Ca,Qa]=be.useMemo(()=>{const Vt=(0,ie.Z)(ga.errors),zn=(0,ie.Z)(ga.warnings);return Object.values(la).forEach(cr=>{Vt.push.apply(Vt,(0,ie.Z)(cr.errors||[])),zn.push.apply(zn,(0,ie.Z)(cr.warnings||[]))}),[Vt,zn]},[la,ga.errors,ga.warnings]),za=ot();function Pi(Vt,zn,cr){return mn&&!Jt?be.createElement(_r,{prefixCls:xi,hasFeedback:lt.hasFeedback,validateStatus:lt.validateStatus,meta:ga,errors:Ca,warnings:Qa,noStyle:!0},Vt):be.createElement(zi,Object.assign({key:"row"},lt,{className:Oe()(nn,fa),prefixCls:xi,fieldId:zn,isRequired:cr,errors:Ca,warnings:Qa,meta:ga,onSubItemMetaChange:ca}),Vt)}if(!Ai&&!sr&&!In)return Sa(Pi(Jn));let an={};return typeof Yr=="string"?an.label=Yr:Kt&&(an.label=String(Kt)),Qr&&(an=Object.assign(Object.assign({},an),Qr)),Sa(be.createElement(bt.Field,Object.assign({},lt,{messageVariables:an,trigger:Ht,validateTrigger:Wn,onMetaChange:Oi}),(Vt,zn,cr)=>{const Er=St(Kt).length&&zn?zn.name:[],qr=cn(Er,Rn),di=Pr!==void 0?Pr:!!(ni&&ni.some(Si=>{if(Si&&typeof Si=="object"&&Si.required&&!Si.warningOnly)return!0;if(typeof Si=="function"){const Ri=Si(cr);return Ri&&Ri.required&&!Ri.warningOnly}return!1})),bi=Object.assign({},Vt);let ki=null;if(Array.isArray(Jn)&&Ai)ki=Jn;else if(!(sr&&(!(vr||In)||Ai))){if(!(In&&!sr&&!Ai))if((0,Pe.l$)(Jn)){const Si=Object.assign(Object.assign({},Jn.props),bi);if(Si.id||(Si.id=qr),er||Ca.length>0||Qa.length>0||lt.extra){const oi=[];(er||Ca.length>0)&&oi.push(`${qr}_help`),lt.extra&&oi.push(`${qr}_extra`),Si["aria-describedby"]=oi.join(" ")}Ca.length>0&&(Si["aria-invalid"]="true"),di&&(Si["aria-required"]="true"),(0,Cn.Yr)(Jn)&&(Si.ref=za(Er,Jn)),new Set([].concat((0,ie.Z)(St(Ht)),(0,ie.Z)(St(Wn)))).forEach(oi=>{Si[oi]=function(){for(var hn,Dn,Xn,ge,Re,He=arguments.length,Ye=new Array(He),Ve=0;Ve<He;Ve++)Ye[Ve]=arguments[Ve];(Xn=bi[oi])===null||Xn===void 0||(hn=Xn).call.apply(hn,[bi].concat(Ye)),(Re=(ge=Jn.props)[oi])===null||Re===void 0||(Dn=Re).call.apply(Dn,[ge].concat(Ye))}});const ra=[Si["aria-required"],Si["aria-invalid"],Si["aria-describedby"]];ki=be.createElement(Zt,{value:bi[lt.valuePropName||"value"],update:Jn,childProps:ra},(0,Pe.Tm)(Jn,Si))}else sr&&(vr||In)&&!Ai?ki=Jn(cr):ki=Jn}return Pi(ki,qr,di)}))}const Br=qn;Br.useStatus=de;var Kr=Br,Rr=function(lt,Kt){var mn={};for(var nn in lt)Object.prototype.hasOwnProperty.call(lt,nn)&&Kt.indexOf(nn)<0&&(mn[nn]=lt[nn]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var In=0,nn=Object.getOwnPropertySymbols(lt);In<nn.length;In++)Kt.indexOf(nn[In])<0&&Object.prototype.propertyIsEnumerable.call(lt,nn[In])&&(mn[nn[In]]=lt[nn[In]]);return mn},mt=lt=>{var{prefixCls:Kt,children:mn}=lt,nn=Rr(lt,["prefixCls","children"]);const{getPrefixCls:In}=be.useContext(xn.E_),Pn=In("form",Kt),vr=be.useMemo(()=>({prefixCls:Pn,status:"error"}),[Pn]);return be.createElement(bt.List,Object.assign({},nn),(ni,zr,Pr)=>be.createElement(ue.Rk.Provider,{value:vr},mn(ni.map(Yr=>Object.assign(Object.assign({},Yr),{fieldKey:Yr.key})),zr,{errors:Pr.errors,warnings:Pr.warnings})))};function Ot(){const{form:lt}=(0,be.useContext)(ue.q3);return lt}const Xt=yn;Xt.Item=Kr,Xt.List=mt,Xt.ErrorList=jt,Xt.useForm=Et,Xt.useFormInstance=Ot,Xt.useWatch=bt.useWatch,Xt.Provider=ue.RV,Xt.create=()=>{};var kn=Xt},25378:function(bn,Ut,re){"use strict";var ie=re(67294),Le=re(14075),Oe=re(57838),Ue=re(74443);function be(){let Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ue=(0,ie.useRef)({}),we=(0,Oe.Z)(),me=(0,Ue.ZP)();return(0,Le.Z)(()=>{const Ie=me.subscribe(ct=>{ue.current=ct,Me&&we()});return()=>me.unsubscribe(Ie)},[]),ue.current}Ut.Z=be},31795:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return gr}});var ie=re(42922),Le=re(53978),Oe=re(94184),Ue=re.n(Oe),be=re(87462),Me=re(4942),ue=re(71002),we=re(97685),me=re(45987),Ie=re(15671),ct=re(43144);function Ke(){return typeof BigInt=="function"}function st(mt){return!mt&&mt!==0&&!Number.isNaN(mt)||!String(mt).trim()}function dt(mt){var Ot=mt.trim(),Xt=Ot.startsWith("-");Xt&&(Ot=Ot.slice(1)),Ot=Ot.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Ot.startsWith(".")&&(Ot="0".concat(Ot));var kn=Ot||"0",lt=kn.split("."),Kt=lt[0]||"0",mn=lt[1]||"0";Kt==="0"&&mn==="0"&&(Xt=!1);var nn=Xt?"-":"";return{negative:Xt,negativeStr:nn,trimStr:kn,integerStr:Kt,decimalStr:mn,fullStr:"".concat(nn).concat(kn)}}function Xe(mt){var Ot=String(mt);return!Number.isNaN(Number(Ot))&&Ot.includes("e")}function We(mt){var Ot=String(mt);if(Xe(mt)){var Xt=Number(Ot.slice(Ot.indexOf("e-")+2)),kn=Ot.match(/\.(\d+)/);return kn!=null&&kn[1]&&(Xt+=kn[1].length),Xt}return Ot.includes(".")&&it(Ot)?Ot.length-Ot.indexOf(".")-1:0}function ye(mt){var Ot=String(mt);if(Xe(mt)){if(mt>Number.MAX_SAFE_INTEGER)return String(Ke()?BigInt(mt).toString():Number.MAX_SAFE_INTEGER);if(mt<Number.MIN_SAFE_INTEGER)return String(Ke()?BigInt(mt).toString():Number.MIN_SAFE_INTEGER);Ot=mt.toFixed(We(Ot))}return dt(Ot).fullStr}function it(mt){return typeof mt=="number"?!Number.isNaN(mt):mt?/^\s*-?\d+(\.\d+)?\s*$/.test(mt)||/^\s*-?\d+\.\s*$/.test(mt)||/^\s*-?\.\d+\s*$/.test(mt):!1}var Lt=function(){function mt(Ot){if((0,Ie.Z)(this,mt),(0,Me.Z)(this,"origin",""),(0,Me.Z)(this,"negative",void 0),(0,Me.Z)(this,"integer",void 0),(0,Me.Z)(this,"decimal",void 0),(0,Me.Z)(this,"decimalLen",void 0),(0,Me.Z)(this,"empty",void 0),(0,Me.Z)(this,"nan",void 0),st(Ot)){this.empty=!0;return}if(this.origin=String(Ot),Ot==="-"||Number.isNaN(Ot)){this.nan=!0;return}var Xt=Ot;if(Xe(Xt)&&(Xt=Number(Xt)),Xt=typeof Xt=="string"?Xt:ye(Xt),it(Xt)){var kn=dt(Xt);this.negative=kn.negative;var lt=kn.trimStr.split(".");this.integer=BigInt(lt[0]);var Kt=lt[1]||"0";this.decimal=BigInt(Kt),this.decimalLen=Kt.length}else this.nan=!0}return(0,ct.Z)(mt,[{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(Xt){var kn="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Xt,"0"));return BigInt(kn)}},{key:"negate",value:function(){var Xt=new mt(this.toString());return Xt.negative=!Xt.negative,Xt}},{key:"cal",value:function(Xt,kn,lt){var Kt=Math.max(this.getDecimalStr().length,Xt.getDecimalStr().length),mn=this.alignDecimal(Kt),nn=Xt.alignDecimal(Kt),In=kn(mn,nn).toString(),Pn=lt(Kt),vr=dt(In),ni=vr.negativeStr,zr=vr.trimStr,Pr="".concat(ni).concat(zr.padStart(Pn+1,"0"));return new mt("".concat(Pr.slice(0,-Pn),".").concat(Pr.slice(-Pn)))}},{key:"add",value:function(Xt){if(this.isInvalidate())return new mt(Xt);var kn=new mt(Xt);return kn.isInvalidate()?this:this.cal(kn,function(lt,Kt){return lt+Kt},function(lt){return lt})}},{key:"multi",value:function(Xt){var kn=new mt(Xt);return this.isInvalidate()||kn.isInvalidate()?new mt(NaN):this.cal(kn,function(lt,Kt){return lt*Kt},function(lt){return lt*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Xt){return this.toString()===(Xt==null?void 0:Xt.toString())}},{key:"lessEquals",value:function(Xt){return this.add(Xt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Xt?this.isInvalidate()?"":dt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),mt}(),qe=function(){function mt(Ot){if((0,Ie.Z)(this,mt),(0,Me.Z)(this,"origin",""),(0,Me.Z)(this,"number",void 0),(0,Me.Z)(this,"empty",void 0),st(Ot)){this.empty=!0;return}this.origin=String(Ot),this.number=Number(Ot)}return(0,ct.Z)(mt,[{key:"negate",value:function(){return new mt(-this.toNumber())}},{key:"add",value:function(Xt){if(this.isInvalidate())return new mt(Xt);var kn=Number(Xt);if(Number.isNaN(kn))return this;var lt=this.number+kn;if(lt>Number.MAX_SAFE_INTEGER)return new mt(Number.MAX_SAFE_INTEGER);if(lt<Number.MIN_SAFE_INTEGER)return new mt(Number.MIN_SAFE_INTEGER);var Kt=Math.max(We(this.number),We(kn));return new mt(lt.toFixed(Kt))}},{key:"multi",value:function(Xt){var kn=Number(Xt);if(this.isInvalidate()||Number.isNaN(kn))return new mt(NaN);var lt=this.number*kn;if(lt>Number.MAX_SAFE_INTEGER)return new mt(Number.MAX_SAFE_INTEGER);if(lt<Number.MIN_SAFE_INTEGER)return new mt(Number.MIN_SAFE_INTEGER);var Kt=Math.max(We(this.number),We(kn));return new mt(lt.toFixed(Kt))}},{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(Xt){return this.toNumber()===(Xt==null?void 0:Xt.toNumber())}},{key:"lessEquals",value:function(Xt){return this.add(Xt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Xt?this.isInvalidate()?"":ye(this.number):this.origin}}]),mt}();function rt(mt){return Ke()?new Lt(mt):new qe(mt)}function xe(mt,Ot,Xt){var kn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(mt==="")return"";var lt=dt(mt),Kt=lt.negativeStr,mn=lt.integerStr,nn=lt.decimalStr,In="".concat(Ot).concat(nn),Pn="".concat(Kt).concat(mn);if(Xt>=0){var vr=Number(nn[Xt]);if(vr>=5&&!kn){var ni=rt(mt).add("".concat(Kt,"0.").concat("0".repeat(Xt)).concat(10-vr));return xe(ni.toString(),Ot,Xt,kn)}return Xt===0?Pn:"".concat(Pn).concat(Ot).concat(nn.padEnd(Xt,"0").slice(0,Xt))}return In===".0"?Pn:"".concat(Pn).concat(In)}var Se=rt,Ze=re(67656),Ge=re(67294);function yt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var pt=yt()?Ge.useLayoutEffect:Ge.useEffect,ft=function(Ot,Xt){var kn=Ge.useRef(!0);pt(function(){return Ot(kn.current)},Xt),pt(function(){return kn.current=!1,function(){kn.current=!0}},[])},Ne=function(Ot,Xt){ft(function(kn){if(!kn)return Ot()},Xt)},jt=ft,bt=re(27183);function xn(mt,Ot,Xt){var kn=React.useRef({});return(!("value"in kn.current)||Xt(kn.current.condition,Ot))&&(kn.current.value=mt(),kn.current.condition=Ot),kn.current.value}function Mt(mt,Ot){typeof mt=="function"?mt(Ot):(0,ue.Z)(mt)==="object"&&mt&&"current"in mt&&(mt.current=Ot)}function Gt(){for(var mt=arguments.length,Ot=new Array(mt),Xt=0;Xt<mt;Xt++)Ot[Xt]=arguments[Xt];var kn=Ot.filter(function(lt){return lt});return kn.length<=1?kn[0]:function(lt){Ot.forEach(function(Kt){Mt(Kt,lt)})}}function Bn(){for(var mt=arguments.length,Ot=new Array(mt),Xt=0;Xt<mt;Xt++)Ot[Xt]=arguments[Xt];return useMemo(function(){return Gt.apply(void 0,Ot)},Ot,function(kn,lt){return kn.length!==lt.length||kn.every(function(Kt,mn){return Kt!==lt[mn]})})}function Tn(mt){var Ot,Xt,kn=isMemo(mt)?mt.type.type:mt.type;return!(typeof kn=="function"&&!((Ot=kn.prototype)!==null&&Ot!==void 0&&Ot.render)||typeof mt=="function"&&!((Xt=mt.prototype)!==null&&Xt!==void 0&&Xt.render))}function at(mt){return!isValidElement(mt)||isFragment(mt)?!1:Tn(mt)}var Ae={},St=[],cn=function(Ot){St.push(Ot)};function Pt(mt,Ot){if(0)var Xt}function ht(mt,Ot){if(0)var Xt}function Et(){Ae={}}function Qt(mt,Ot,Xt){!Ot&&!Ae[Xt]&&(mt(!1,Xt),Ae[Xt]=!0)}function ir(mt,Ot){Qt(Pt,mt,Ot)}function On(mt,Ot){Qt(ht,mt,Ot)}ir.preMessage=cn,ir.resetWarned=Et,ir.noteOnce=On;var $t=ir;function yn(mt,Ot){var Xt=(0,Ge.useRef)(null);function kn(){try{var Kt=mt.selectionStart,mn=mt.selectionEnd,nn=mt.value,In=nn.substring(0,Kt),Pn=nn.substring(mn);Xt.current={start:Kt,end:mn,value:nn,beforeTxt:In,afterTxt:Pn}}catch(vr){}}function lt(){if(mt&&Xt.current&&Ot)try{var Kt=mt.value,mn=Xt.current,nn=mn.beforeTxt,In=mn.afterTxt,Pn=mn.start,vr=Kt.length;if(Kt.endsWith(In))vr=Kt.length-Xt.current.afterTxt.length;else if(Kt.startsWith(nn))vr=nn.length;else{var ni=nn[Pn-1],zr=Kt.indexOf(ni,Pn-1);zr!==-1&&(vr=zr+1)}mt.setSelectionRange(vr,vr)}catch(Pr){$t(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Pr.message))}}return[kn,lt]}var Qn=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var mt=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(mt)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(mt==null?void 0:mt.substr(0,4))},Cn=function(){var Ot=(0,Ge.useState)(!1),Xt=(0,we.Z)(Ot,2),kn=Xt[0],lt=Xt[1];return jt(function(){lt(Qn())},[]),kn},Pe=Cn,fe=function(Ot){return+setTimeout(Ot,16)},ce=function(Ot){return clearTimeout(Ot)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(fe=function(Ot){return window.requestAnimationFrame(Ot)},ce=function(Ot){return window.cancelAnimationFrame(Ot)});var pe=0,de=new Map;function le(mt){de.delete(mt)}var Te=function(Ot){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;pe+=1;var kn=pe;function lt(Kt){if(Kt===0)le(kn),Ot();else{var mn=fe(function(){lt(Kt-1)});de.set(kn,mn)}}return lt(Xt),kn};Te.cancel=function(mt){var Ot=de.get(mt);return le(Ot),ce(Ot)};var ot=Te,Bt=200,en=600;function rn(mt){var Ot=mt.prefixCls,Xt=mt.upNode,kn=mt.downNode,lt=mt.upDisabled,Kt=mt.downDisabled,mn=mt.onStep,nn=Ge.useRef(),In=Ge.useRef([]),Pn=Ge.useRef();Pn.current=mn;var vr=function(){clearTimeout(nn.current)},ni=function(er,kr){er.preventDefault(),vr(),Pn.current(kr);function Rn(){Pn.current(kr),nn.current=setTimeout(Rn,Bt)}nn.current=setTimeout(Rn,en)};Ge.useEffect(function(){return function(){vr(),In.current.forEach(function(Jt){return ot.cancel(Jt)})}},[]);var zr=Pe();if(zr)return null;var Pr="".concat(Ot,"-handler"),Yr=Ue()(Pr,"".concat(Pr,"-up"),(0,Me.Z)({},"".concat(Pr,"-up-disabled"),lt)),Qr=Ue()(Pr,"".concat(Pr,"-down"),(0,Me.Z)({},"".concat(Pr,"-down-disabled"),Kt)),Ht=function(){return In.current.push(ot(vr))},Tt={unselectable:"on",role:"button",onMouseUp:Ht,onMouseLeave:Ht};return Ge.createElement("div",{className:"".concat(Pr,"-wrap")},Ge.createElement("span",(0,be.Z)({},Tt,{onMouseDown:function(er){ni(er,!0)},"aria-label":"Increase Value","aria-disabled":lt,className:Yr}),Xt||Ge.createElement("span",{unselectable:"on",className:"".concat(Ot,"-handler-up-inner")})),Ge.createElement("span",(0,be.Z)({},Tt,{onMouseDown:function(er){ni(er,!1)},"aria-label":"Decrease Value","aria-disabled":Kt,className:Qr}),kn||Ge.createElement("span",{unselectable:"on",className:"".concat(Ot,"-handler-down-inner")})))}function sn(mt){var Ot=typeof mt=="number"?ye(mt):dt(mt).fullStr,Xt=Ot.includes(".");return Xt?dt(Ot.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:mt+"0"}var un=re(87887),gt=function(){var mt=(0,Ge.useRef)(0),Ot=function(){ot.cancel(mt.current)};return(0,Ge.useEffect)(function(){return Ot},[]),function(Xt){Ot(),mt.current=ot(function(){Xt()})}},zt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],It=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],ln=function(Ot,Xt){return Ot||Xt.isEmpty()?Xt.toString():Xt.toNumber()},_t=function(Ot){var Xt=Se(Ot);return Xt.isInvalidate()?null:Xt},lr=Ge.forwardRef(function(mt,Ot){var Xt,kn=mt.prefixCls,lt=kn===void 0?"rc-input-number":kn,Kt=mt.className,mn=mt.style,nn=mt.min,In=mt.max,Pn=mt.step,vr=Pn===void 0?1:Pn,ni=mt.defaultValue,zr=mt.value,Pr=mt.disabled,Yr=mt.readOnly,Qr=mt.upHandler,Ht=mt.downHandler,Tt=mt.keyboard,Jt=mt.controls,er=Jt===void 0?!0:Jt,kr=mt.classNames,Rn=mt.stringMode,Jn=mt.parser,sr=mt.formatter,Ir=mt.precision,Xr=mt.decimalSeparator,Wn=mt.onChange,Ai=mt.onInput,xi=mt.onPressEnter,Sa=mt.onStep,fa=(0,me.Z)(mt,zt),na="".concat(lt,"-input"),Ni=Ge.useRef(null),la=Ge.useState(!1),Qi=(0,we.Z)(la,2),ga=Qi[0],Ba=Qi[1],Oi=Ge.useRef(!1),ca=Ge.useRef(!1),Ca=Ge.useRef(!1),Qa=Ge.useState(function(){return Se(zr!=null?zr:ni)}),za=(0,we.Z)(Qa,2),Pi=za[0],an=za[1];function Vt(ar){zr===void 0&&an(ar)}var zn=Ge.useCallback(function(ar,ur){if(!ur)return Ir>=0?Ir:Math.max(We(ar),We(vr))},[Ir,vr]),cr=Ge.useCallback(function(ar){var ur=String(ar);if(Jn)return Jn(ur);var mr=ur;return Xr&&(mr=mr.replace(Xr,".")),mr.replace(/[^\w.-]+/g,"")},[Jn,Xr]),Er=Ge.useRef(""),qr=Ge.useCallback(function(ar,ur){if(sr)return sr(ar,{userTyping:ur,input:String(Er.current)});var mr=typeof ar=="number"?ye(ar):ar;if(!ur){var Sr=zn(mr,ur);if(it(mr)&&(Xr||Sr>=0)){var Tr=Xr||".";mr=xe(mr,Tr,Sr)}}return mr},[sr,zn,Xr]),di=Ge.useState(function(){var ar=ni!=null?ni:zr;return Pi.isInvalidate()&&["string","number"].includes((0,ue.Z)(ar))?Number.isNaN(ar)?"":ar:qr(Pi.toString(),!1)}),bi=(0,we.Z)(di,2),ki=bi[0],Si=bi[1];Er.current=ki;function Ri(ar,ur){Si(qr(ar.isInvalidate()?ar.toString(!1):ar.toString(!ur),ur))}var ra=Ge.useMemo(function(){return _t(In)},[In,Ir]),oi=Ge.useMemo(function(){return _t(nn)},[nn,Ir]),hn=Ge.useMemo(function(){return!ra||!Pi||Pi.isInvalidate()?!1:ra.lessEquals(Pi)},[ra,Pi]),Dn=Ge.useMemo(function(){return!oi||!Pi||Pi.isInvalidate()?!1:Pi.lessEquals(oi)},[oi,Pi]),Xn=yn(Ni.current,ga),ge=(0,we.Z)(Xn,2),Re=ge[0],He=ge[1],Ye=function(ur){return ra&&!ur.lessEquals(ra)?ra:oi&&!oi.lessEquals(ur)?oi:null},Ve=function(ur){return!Ye(ur)},$e=function(ur,mr){var Sr=ur,Tr=Ve(Sr)||Sr.isEmpty();if(!Sr.isEmpty()&&!mr&&(Sr=Ye(Sr)||Sr,Tr=!0),!Yr&&!Pr&&Tr){var je=Sr.toString(),Qe=zn(je,mr);return Qe>=0&&(Sr=Se(xe(je,".",Qe)),Ve(Sr)||(Sr=Se(xe(je,".",Qe,!0)))),Sr.equals(Pi)||(Vt(Sr),Wn==null||Wn(Sr.isEmpty()?null:ln(Rn,Sr)),zr===void 0&&Ri(Sr,mr)),Sr}return Pi},tt=gt(),Wt=function ar(ur){if(Re(),Er.current=ur,Si(ur),!ca.current){var mr=cr(ur),Sr=Se(mr);Sr.isNaN()||$e(Sr,!0)}Ai==null||Ai(ur),tt(function(){var Tr=ur;Jn||(Tr=ur.replace(/。/g,".")),Tr!==ur&&ar(Tr)})},on=function(){ca.current=!0},Zn=function(){ca.current=!1,Wt(Ni.current.value)},tr=function(ur){Wt(ur.target.value)},Vn=function(ur){var mr;if(!(ur&&hn||!ur&&Dn)){Oi.current=!1;var Sr=Se(Ca.current?sn(vr):vr);ur||(Sr=Sr.negate());var Tr=(Pi||Se(0)).add(Sr.toString()),je=$e(Tr,!1);Sa==null||Sa(ln(Rn,je),{offset:Ca.current?sn(vr):vr,type:ur?"up":"down"}),(mr=Ni.current)===null||mr===void 0||mr.focus()}},Mn=function(ur){var mr=Se(cr(ki)),Sr=mr;mr.isNaN()?Sr=$e(Pi,ur):Sr=$e(mr,ur),zr!==void 0?Ri(Pi,!1):Sr.isNaN()||Ri(Sr,!1)},En=function(){Oi.current=!0},dn=function(ur){var mr=ur.key,Sr=ur.shiftKey;Oi.current=!0,Ca.current=Sr,mr==="Enter"&&(ca.current||(Oi.current=!1),Mn(!1),xi==null||xi(ur)),Tt!==!1&&!ca.current&&["Up","ArrowUp","Down","ArrowDown"].includes(mr)&&(Vn(mr==="Up"||mr==="ArrowUp"),ur.preventDefault())},Gn=function(){Oi.current=!1,Ca.current=!1},xr=function(){Mn(!1),Ba(!1),Oi.current=!1};return Ne(function(){Pi.isInvalidate()||Ri(Pi,!1)},[Ir]),Ne(function(){var ar=Se(zr);an(ar);var ur=Se(cr(ki));(!ar.equals(ur)||!Oi.current||sr)&&Ri(ar,Oi.current)},[zr]),Ne(function(){sr&&He()},[ki]),Ge.createElement("div",{className:Ue()(lt,kr==null?void 0:kr.input,Kt,(Xt={},(0,Me.Z)(Xt,"".concat(lt,"-focused"),ga),(0,Me.Z)(Xt,"".concat(lt,"-disabled"),Pr),(0,Me.Z)(Xt,"".concat(lt,"-readonly"),Yr),(0,Me.Z)(Xt,"".concat(lt,"-not-a-number"),Pi.isNaN()),(0,Me.Z)(Xt,"".concat(lt,"-out-of-range"),!Pi.isInvalidate()&&!Ve(Pi)),Xt)),style:mn,onFocus:function(){Ba(!0)},onBlur:xr,onKeyDown:dn,onKeyUp:Gn,onCompositionStart:on,onCompositionEnd:Zn,onBeforeInput:En},er&&Ge.createElement(rn,{prefixCls:lt,upNode:Qr,downNode:Ht,upDisabled:hn,downDisabled:Dn,onStep:Vn}),Ge.createElement("div",{className:"".concat(na,"-wrap")},Ge.createElement("input",(0,be.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":nn,"aria-valuemax":In,"aria-valuenow":Pi.isInvalidate()?null:Pi.toString(),step:vr},fa,{ref:Gt(Ni,Ot),className:na,value:ki,onChange:tr,disabled:Pr,readOnly:Yr}))))}),xt=Ge.forwardRef(function(mt,Ot){var Xt=mt.disabled,kn=mt.style,lt=mt.prefixCls,Kt=mt.value,mn=mt.prefix,nn=mt.suffix,In=mt.addonBefore,Pn=mt.addonAfter,vr=mt.classes,ni=mt.className,zr=mt.classNames,Pr=(0,me.Z)(mt,It),Yr=Ge.useRef(null),Qr=function(Tt){Yr.current&&(0,un.nH)(Yr.current,Tt)};return Ge.createElement(Ze.BaseInput,{inputElement:Ge.createElement(lr,(0,be.Z)({prefixCls:lt,disabled:Xt,classNames:zr,ref:Gt(Yr,Ot)},Pr)),className:ni,triggerFocus:Qr,prefixCls:lt,value:Kt,disabled:Xt,style:kn,prefix:mn,suffix:nn,addonAfter:Pn,addonBefore:In,classes:vr,classNames:zr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});xt.displayName="InputNumber";var Yt=xt,Un=Yt,Hn=re(9708),$n=re(53124),yr=re(46735),Fn=re(98866),or=re(98675),Dr=re(65223),Fr=re(4173),hr=re(47673),_r=re(14747),Mi=re(80110),zi=re(67968),Gi=re(45503);const pi=(mt,Ot)=>{let{componentCls:Xt,borderRadiusSM:kn,borderRadiusLG:lt}=mt;const Kt=Ot==="lg"?lt:kn;return{[`&-${Ot}`]:{[`${Xt}-handler-wrap`]:{borderStartEndRadius:Kt,borderEndEndRadius:Kt},[`${Xt}-handler-up`]:{borderStartEndRadius:Kt},[`${Xt}-handler-down`]:{borderEndEndRadius:Kt}}}},Zt=mt=>{const{componentCls:Ot,lineWidth:Xt,lineType:kn,colorBorder:lt,borderRadius:Kt,fontSizeLG:mn,controlHeightLG:nn,controlHeightSM:In,colorError:Pn,paddingInlineSM:vr,colorTextDescription:ni,motionDurationMid:zr,handleHoverColor:Pr,paddingInline:Yr,paddingBlock:Qr,handleBg:Ht,handleActiveBg:Tt,colorTextDisabled:Jt,borderRadiusSM:er,borderRadiusLG:kr,controlWidth:Rn,handleVisible:Jn,handleBorderColor:sr}=mt;return[{[Ot]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,_r.Wf)(mt)),(0,hr.ik)(mt)),(0,hr.bi)(mt,Ot)),{display:"inline-block",width:Rn,margin:0,padding:0,border:`${Xt}px ${kn} ${lt}`,borderRadius:Kt,"&-rtl":{direction:"rtl",[`${Ot}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:mn,borderRadius:kr,[`input${Ot}-input`]:{height:nn-2*Xt}},"&-sm":{padding:0,borderRadius:er,[`input${Ot}-input`]:{height:In-2*Xt,padding:`0 ${vr}px`}},"&:hover":Object.assign({},(0,hr.pU)(mt)),"&-focused":Object.assign({},(0,hr.M1)(mt)),"&-out-of-range":{[`${Ot}-input-wrap`]:{input:{color:Pn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,_r.Wf)(mt)),(0,hr.s7)(mt)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Ot}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Ot}-group-addon`]:{borderRadius:kr,fontSize:mt.fontSizeLG}},"&-sm":{[`${Ot}-group-addon`]:{borderRadius:er}},[`${Ot}-wrapper-disabled > ${Ot}-group-addon`]:Object.assign({},(0,hr.Xy)(mt))}}),[`&-disabled ${Ot}-input`]:{cursor:"not-allowed"},[Ot]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,_r.Wf)(mt)),{width:"100%",padding:`${Qr}px ${Yr}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Kt,outline:0,transition:`all ${zr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,hr.nz)(mt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Ot]:Object.assign(Object.assign(Object.assign({[`&:hover ${Ot}-handler-wrap, &-focused ${Ot}-handler-wrap`]:{opacity:1},[`${Ot}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:mt.handleWidth,height:"100%",background:Ht,borderStartStartRadius:0,borderStartEndRadius:Kt,borderEndEndRadius:Kt,borderEndStartRadius:0,opacity:Jn===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${zr} linear ${zr}`,[`${Ot}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Ot}-handler-up-inner,
|
|
|
${Ot}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:mt.handleFontSize}}},[`${Ot}-handler`]:{height:"50%",overflow:"hidden",color:ni,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Xt}px ${kn} ${sr}`,transition:`all ${zr} linear`,"&:active":{background:Tt},"&:hover":{height:"60%",[`
|
|
|
${Ot}-handler-up-inner,
|
|
|
${Ot}-handler-down-inner
|
|
|
`]:{color:Pr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,_r.Ro)()),{color:ni,transition:`all ${zr} linear`,userSelect:"none"})},[`${Ot}-handler-up`]:{borderStartEndRadius:Kt},[`${Ot}-handler-down`]:{borderBlockStart:`${Xt}px ${kn} ${sr}`,borderEndEndRadius:Kt}},pi(mt,"lg")),pi(mt,"sm")),{"&-disabled, &-readonly":{[`${Ot}-handler-wrap`]:{display:"none"},[`${Ot}-input`]:{color:"inherit"}},[`
|
|
|
${Ot}-handler-up-disabled,
|
|
|
${Ot}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Ot}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Ot}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:Jt}})},{[`${Ot}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Ot}-handler-down`]:{borderBlockStartWidth:0}}}]},Kn=mt=>{const{componentCls:Ot,paddingBlock:Xt,paddingInline:kn,inputAffixPadding:lt,controlWidth:Kt,borderRadiusLG:mn,borderRadiusSM:nn}=mt;return{[`${Ot}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,hr.ik)(mt)),(0,hr.bi)(mt,`${Ot}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Kt,padding:0,paddingInlineStart:kn,"&-lg":{borderRadius:mn},"&-sm":{borderRadius:nn},[`&:not(${Ot}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,hr.pU)(mt)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Ot}-disabled`]:{background:"transparent"},[`> div${Ot}`]:{width:"100%",border:"none",outline:"none",[`&${Ot}-focused`]:{boxShadow:"none !important"}},[`input${Ot}-input`]:{padding:`${Xt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Ot}-handler-wrap`]:{zIndex:2},[Ot]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:lt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:kn,marginInlineStart:lt}}})}};var fr=(0,zi.Z)("InputNumber",mt=>{const Ot=(0,Gi.TS)(mt,(0,hr.e5)(mt));return[Zt(Ot),Kn(Ot),(0,Mi.c)(Ot)]},mt=>Object.assign(Object.assign({},(0,hr.TM)(mt)),{controlWidth:90,handleWidth:mt.controlHeightSM-mt.lineWidth*2,handleFontSize:mt.fontSize/2,handleVisible:"auto",handleActiveBg:mt.colorFillAlter,handleBg:mt.colorBgContainer,handleHoverColor:mt.colorPrimary,handleBorderColor:mt.colorBorder})),qn=function(mt,Ot){var Xt={};for(var kn in mt)Object.prototype.hasOwnProperty.call(mt,kn)&&Ot.indexOf(kn)<0&&(Xt[kn]=mt[kn]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,kn=Object.getOwnPropertySymbols(mt);lt<kn.length;lt++)Ot.indexOf(kn[lt])<0&&Object.prototype.propertyIsEnumerable.call(mt,kn[lt])&&(Xt[kn[lt]]=mt[kn[lt]]);return Xt};const Br=Ge.forwardRef((mt,Ot)=>{const{getPrefixCls:Xt,direction:kn}=Ge.useContext($n.E_),lt=Ge.useRef(null);Ge.useImperativeHandle(Ot,()=>lt.current);const{className:Kt,rootClassName:mn,size:nn,disabled:In,prefixCls:Pn,addonBefore:vr,addonAfter:ni,prefix:zr,bordered:Pr=!0,readOnly:Yr,status:Qr,controls:Ht}=mt,Tt=qn(mt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Jt=Xt("input-number",Pn),[er,kr]=fr(Jt),{compactSize:Rn,compactItemClassnames:Jn}=(0,Fr.ri)(Jt,kn);let sr=Ge.createElement(Le.Z,{className:`${Jt}-handler-up-inner`}),Ir=Ge.createElement(ie.Z,{className:`${Jt}-handler-down-inner`});const Xr=typeof Ht=="boolean"?Ht:void 0;typeof Ht=="object"&&(sr=typeof Ht.upIcon=="undefined"?sr:Ge.createElement("span",{className:`${Jt}-handler-up-inner`},Ht.upIcon),Ir=typeof Ht.downIcon=="undefined"?Ir:Ge.createElement("span",{className:`${Jt}-handler-down-inner`},Ht.downIcon));const{hasFeedback:Wn,status:Ai,isFormItemInput:xi,feedbackIcon:Sa}=Ge.useContext(Dr.aM),fa=(0,Hn.F)(Ai,Qr),na=(0,or.Z)(Oi=>{var ca;return(ca=nn!=null?nn:Rn)!==null&&ca!==void 0?ca:Oi}),Ni=Ge.useContext(Fn.Z),la=In!=null?In:Ni,Qi=Ue()({[`${Jt}-lg`]:na==="large",[`${Jt}-sm`]:na==="small",[`${Jt}-rtl`]:kn==="rtl",[`${Jt}-borderless`]:!Pr,[`${Jt}-in-form-item`]:xi},(0,Hn.Z)(Jt,fa),Jn,kr),ga=`${Jt}-group`,Ba=Ge.createElement(Un,Object.assign({ref:lt,disabled:la,className:Ue()(Kt,mn),upHandler:sr,downHandler:Ir,prefixCls:Jt,readOnly:Yr,controls:Xr,prefix:zr,suffix:Wn&&Sa,addonAfter:ni&&Ge.createElement(Fr.BR,null,Ge.createElement(Dr.Ux,{override:!0,status:!0},ni)),addonBefore:vr&&Ge.createElement(Fr.BR,null,Ge.createElement(Dr.Ux,{override:!0,status:!0},vr)),classNames:{input:Qi},classes:{affixWrapper:Ue()((0,Hn.Z)(`${Jt}-affix-wrapper`,fa,Wn),{[`${Jt}-affix-wrapper-sm`]:na==="small",[`${Jt}-affix-wrapper-lg`]:na==="large",[`${Jt}-affix-wrapper-rtl`]:kn==="rtl",[`${Jt}-affix-wrapper-borderless`]:!Pr},kr),wrapper:Ue()({[`${ga}-rtl`]:kn==="rtl",[`${Jt}-wrapper-disabled`]:la},kr),group:Ue()({[`${Jt}-group-wrapper-sm`]:na==="small",[`${Jt}-group-wrapper-lg`]:na==="large",[`${Jt}-group-wrapper-rtl`]:kn==="rtl"},(0,Hn.Z)(`${Jt}-group-wrapper`,fa,Wn),kr)}},Tt));return er(Ba)}),Kr=Br,Rr=mt=>Ge.createElement(yr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Ge.createElement(Br,Object.assign({},mt)));Kr._InternalPanelDoNotUseOrYouWillBeFired=Rr;var gr=Kr},82586:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Lt},n:function(){return ye}});var ie=re(16646),Le=re(94184),Oe=re.n(Le),Ue=re(67656),be=re(17799),Me=re(67294),ue=re(9708),we=re(53124),me=re(98866),Ie=re(98675),ct=re(65223),Ke=re(4173),st=re(72922),dt=re(47673);function Xe(qe){return!!(qe.prefix||qe.suffix||qe.allowClear)}var We=function(qe,rt){var xe={};for(var Se in qe)Object.prototype.hasOwnProperty.call(qe,Se)&&rt.indexOf(Se)<0&&(xe[Se]=qe[Se]);if(qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Se=Object.getOwnPropertySymbols(qe);Ze<Se.length;Ze++)rt.indexOf(Se[Ze])<0&&Object.prototype.propertyIsEnumerable.call(qe,Se[Ze])&&(xe[Se[Ze]]=qe[Se[Ze]]);return xe};function ye(qe,rt){if(!qe)return;qe.focus(rt);const{cursor:xe}=rt||{};if(xe){const Se=qe.value.length;switch(xe){case"start":qe.setSelectionRange(0,0);break;case"end":qe.setSelectionRange(Se,Se);break;default:qe.setSelectionRange(0,Se);break}}}var Lt=(0,Me.forwardRef)((qe,rt)=>{var xe;const{prefixCls:Se,bordered:Ze=!0,status:Ge,size:yt,disabled:pt,onBlur:ft,onFocus:Ne,suffix:jt,allowClear:bt,addonAfter:xn,addonBefore:Mt,className:Gt,style:Bn,styles:Tn,rootClassName:at,onChange:Ae,classNames:St}=qe,cn=We(qe,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Pt,direction:ht,input:Et}=Me.useContext(we.E_),Qt=Pt("input",Se),ir=(0,Me.useRef)(null),[On,$t]=(0,dt.ZP)(Qt),{compactSize:yn,compactItemClassnames:Qn}=(0,Ke.ri)(Qt,ht),Cn=(0,Ie.Z)(zt=>{var It;return(It=yt!=null?yt:yn)!==null&&It!==void 0?It:zt}),Pe=Me.useContext(me.Z),fe=pt!=null?pt:Pe,{status:ce,hasFeedback:pe,feedbackIcon:de}=(0,Me.useContext)(ct.aM),le=(0,ue.F)(ce,Ge),Te=Xe(qe)||!!pe,ot=(0,Me.useRef)(Te);(0,Me.useEffect)(()=>{var zt;Te&&ot.current,ot.current=Te},[Te]);const Bt=(0,st.Z)(ir,!0),en=zt=>{Bt(),ft==null||ft(zt)},rn=zt=>{Bt(),Ne==null||Ne(zt)},sn=zt=>{Bt(),Ae==null||Ae(zt)},un=(pe||jt)&&Me.createElement(Me.Fragment,null,jt,pe&&de);let gt;return typeof bt=="object"&&(bt!=null&&bt.clearIcon)?gt=bt:bt&&(gt={clearIcon:Me.createElement(ie.Z,null)}),On(Me.createElement(Ue.default,Object.assign({ref:(0,be.sQ)(rt,ir),prefixCls:Qt,autoComplete:Et==null?void 0:Et.autoComplete},cn,{disabled:fe,onBlur:en,onFocus:rn,style:Object.assign(Object.assign({},Et==null?void 0:Et.style),Bn),styles:Object.assign(Object.assign({},Et==null?void 0:Et.styles),Tn),suffix:un,allowClear:gt,className:Oe()(Gt,at,Qn,Et==null?void 0:Et.className),onChange:sn,addonAfter:xn&&Me.createElement(Ke.BR,null,Me.createElement(ct.Ux,{override:!0,status:!0},xn)),addonBefore:Mt&&Me.createElement(Ke.BR,null,Me.createElement(ct.Ux,{override:!0,status:!0},Mt)),classNames:Object.assign(Object.assign(Object.assign({},St),Et==null?void 0:Et.classNames),{input:Oe()({[`${Qt}-sm`]:Cn==="small",[`${Qt}-lg`]:Cn==="large",[`${Qt}-rtl`]:ht==="rtl",[`${Qt}-borderless`]:!Ze},!Te&&(0,ue.Z)(Qt,le),St==null?void 0:St.input,(xe=Et==null?void 0:Et.classNames)===null||xe===void 0?void 0:xe.input,$t)}),classes:{affixWrapper:Oe()({[`${Qt}-affix-wrapper-sm`]:Cn==="small",[`${Qt}-affix-wrapper-lg`]:Cn==="large",[`${Qt}-affix-wrapper-rtl`]:ht==="rtl",[`${Qt}-affix-wrapper-borderless`]:!Ze},(0,ue.Z)(`${Qt}-affix-wrapper`,le,pe),$t),wrapper:Oe()({[`${Qt}-group-rtl`]:ht==="rtl"},$t),group:Oe()({[`${Qt}-group-wrapper-sm`]:Cn==="small",[`${Qt}-group-wrapper-lg`]:Cn==="large",[`${Qt}-group-wrapper-rtl`]:ht==="rtl",[`${Qt}-group-wrapper-disabled`]:fe},(0,ue.Z)(`${Qt}-group-wrapper`,le,pe),$t)}})))})},96330:function(bn,Ut,re){"use strict";var ie=re(16646),Le=re(94184),Oe=re.n(Le),Ue=re(64701),be=re(67294),Me=re(9708),ue=re(53124),we=re(98866),me=re(98675),Ie=re(65223),ct=re(82586),Ke=re(47673),st=function(Xe,We){var ye={};for(var it in Xe)Object.prototype.hasOwnProperty.call(Xe,it)&&We.indexOf(it)<0&&(ye[it]=Xe[it]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,it=Object.getOwnPropertySymbols(Xe);Lt<it.length;Lt++)We.indexOf(it[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,it[Lt])&&(ye[it[Lt]]=Xe[it[Lt]]);return ye};const dt=(0,be.forwardRef)((Xe,We)=>{const{prefixCls:ye,bordered:it=!0,size:Lt,disabled:qe,status:rt,allowClear:xe,showCount:Se,classNames:Ze,rootClassName:Ge,className:yt}=Xe,pt=st(Xe,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:ft,direction:Ne}=be.useContext(ue.E_),jt=(0,me.Z)(Lt),bt=be.useContext(we.Z),xn=qe!=null?qe:bt,{status:Mt,hasFeedback:Gt,feedbackIcon:Bn}=be.useContext(Ie.aM),Tn=(0,Me.F)(Mt,rt),at=be.useRef(null);be.useImperativeHandle(We,()=>{var ht;return{resizableTextArea:(ht=at.current)===null||ht===void 0?void 0:ht.resizableTextArea,focus:Et=>{var Qt,ir;(0,ct.n)((ir=(Qt=at.current)===null||Qt===void 0?void 0:Qt.resizableTextArea)===null||ir===void 0?void 0:ir.textArea,Et)},blur:()=>{var Et;return(Et=at.current)===null||Et===void 0?void 0:Et.blur()}}});const Ae=ft("input",ye);let St;typeof xe=="object"&&(xe!=null&&xe.clearIcon)?St=xe:xe&&(St={clearIcon:be.createElement(ie.Z,null)});const[cn,Pt]=(0,Ke.ZP)(Ae);return cn(be.createElement(Ue.default,Object.assign({},pt,{disabled:xn,allowClear:St,className:Oe()(yt,Ge),classes:{affixWrapper:Oe()(`${Ae}-textarea-affix-wrapper`,{[`${Ae}-affix-wrapper-rtl`]:Ne==="rtl",[`${Ae}-affix-wrapper-borderless`]:!it,[`${Ae}-affix-wrapper-sm`]:jt==="small",[`${Ae}-affix-wrapper-lg`]:jt==="large",[`${Ae}-textarea-show-count`]:Se},(0,Me.Z)(`${Ae}-affix-wrapper`,Tn),Pt)},classNames:Object.assign(Object.assign({},Ze),{textarea:Oe()({[`${Ae}-borderless`]:!it,[`${Ae}-sm`]:jt==="small",[`${Ae}-lg`]:jt==="large"},(0,Me.Z)(Ae,Tn),Pt,Ze==null?void 0:Ze.textarea)}),prefixCls:Ae,suffix:Gt&&be.createElement("span",{className:`${Ae}-textarea-suffix`},Bn),showCount:Se,ref:at})))});Ut.Z=dt},72922:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Le}});var ie=re(67294);function Le(Oe,Ue){const be=(0,ie.useRef)([]),Me=()=>{be.current.push(setTimeout(()=>{var ue,we,me,Ie;!((ue=Oe.current)===null||ue===void 0)&&ue.input&&((we=Oe.current)===null||we===void 0?void 0:we.input.getAttribute("type"))==="password"&&(!((me=Oe.current)===null||me===void 0)&&me.input.hasAttribute("value"))&&((Ie=Oe.current)===null||Ie===void 0||Ie.input.removeAttribute("value"))}))};return(0,ie.useEffect)(()=>(Ue&&Me(),()=>be.current.forEach(ue=>{ue&&clearTimeout(ue)})),[]),Me}},69677:function(bn,Ut,re){"use strict";re.d(Ut,{default:function(){return jt}});var ie=re(94184),Le=re.n(ie),Oe=re(67294),Ue=re(53124),be=re(65223),Me=re(47673),we=bt=>{const{getPrefixCls:xn,direction:Mt}=(0,Oe.useContext)(Ue.E_),{prefixCls:Gt,className:Bn}=bt,Tn=xn("input-group",Gt),at=xn("input"),[Ae,St]=(0,Me.ZP)(at),cn=Le()(Tn,{[`${Tn}-lg`]:bt.size==="large",[`${Tn}-sm`]:bt.size==="small",[`${Tn}-compact`]:bt.compact,[`${Tn}-rtl`]:Mt==="rtl"},St,Bn),Pt=(0,Oe.useContext)(be.aM),ht=(0,Oe.useMemo)(()=>Object.assign(Object.assign({},Pt),{isFormItemInput:!1}),[Pt]);return Ae(Oe.createElement("span",{className:cn,style:bt.style,onMouseEnter:bt.onMouseEnter,onMouseLeave:bt.onMouseLeave,onFocus:bt.onFocus,onBlur:bt.onBlur},Oe.createElement(be.aM.Provider,{value:ht},bt.children)))},me=re(82586),Ie=re(63237),ct=re(99569),Ke=re(10366),st=re(17799),dt=re(72922),Xe=function(bt,xn){var Mt={};for(var Gt in bt)Object.prototype.hasOwnProperty.call(bt,Gt)&&xn.indexOf(Gt)<0&&(Mt[Gt]=bt[Gt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,Gt=Object.getOwnPropertySymbols(bt);Bn<Gt.length;Bn++)xn.indexOf(Gt[Bn])<0&&Object.prototype.propertyIsEnumerable.call(bt,Gt[Bn])&&(Mt[Gt[Bn]]=bt[Gt[Bn]]);return Mt};const We=bt=>bt?Oe.createElement(ct.Z,null):Oe.createElement(Ie.Z,null),ye={click:"onClick",hover:"onMouseOver"};var Lt=Oe.forwardRef((bt,xn)=>{const{visibilityToggle:Mt=!0}=bt,Gt=typeof Mt=="object"&&Mt.visible!==void 0,[Bn,Tn]=(0,Oe.useState)(()=>Gt?Mt.visible:!1),at=(0,Oe.useRef)(null);Oe.useEffect(()=>{Gt&&Tn(Mt.visible)},[Gt,Mt]);const Ae=(0,dt.Z)(at),St=()=>{const{disabled:fe}=bt;fe||(Bn&&Ae(),Tn(ce=>{var pe;const de=!ce;return typeof Mt=="object"&&((pe=Mt.onVisibleChange)===null||pe===void 0||pe.call(Mt,de)),de}))},cn=fe=>{const{action:ce="click",iconRender:pe=We}=bt,de=ye[ce]||"",le=pe(Bn),Te={[de]:St,className:`${fe}-icon`,key:"passwordIcon",onMouseDown:ot=>{ot.preventDefault()},onMouseUp:ot=>{ot.preventDefault()}};return Oe.cloneElement(Oe.isValidElement(le)?le:Oe.createElement("span",null,le),Te)},{className:Pt,prefixCls:ht,inputPrefixCls:Et,size:Qt}=bt,ir=Xe(bt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:On}=Oe.useContext(Ue.E_),$t=On("input",Et),yn=On("input-password",ht),Qn=Mt&&cn(yn),Cn=Le()(yn,Pt,{[`${yn}-${Qt}`]:!!Qt}),Pe=Object.assign(Object.assign({},(0,Ke.Z)(ir,["suffix","iconRender","visibilityToggle"])),{type:Bn?"text":"password",className:Cn,prefixCls:$t,suffix:Qn});return Qt&&(Pe.size=Qt),Oe.createElement(me.Z,Object.assign({ref:(0,st.sQ)(xn,at)},Pe))}),qe=re(72395),rt=re(96159),xe=re(71577),Se=re(98675),Ze=re(4173),Ge=function(bt,xn){var Mt={};for(var Gt in bt)Object.prototype.hasOwnProperty.call(bt,Gt)&&xn.indexOf(Gt)<0&&(Mt[Gt]=bt[Gt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bn=0,Gt=Object.getOwnPropertySymbols(bt);Bn<Gt.length;Bn++)xn.indexOf(Gt[Bn])<0&&Object.prototype.propertyIsEnumerable.call(bt,Gt[Bn])&&(Mt[Gt[Bn]]=bt[Gt[Bn]]);return Mt},pt=Oe.forwardRef((bt,xn)=>{const{prefixCls:Mt,inputPrefixCls:Gt,className:Bn,size:Tn,suffix:at,enterButton:Ae=!1,addonAfter:St,loading:cn,disabled:Pt,onSearch:ht,onChange:Et,onCompositionStart:Qt,onCompositionEnd:ir}=bt,On=Ge(bt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:$t,direction:yn}=Oe.useContext(Ue.E_),Qn=Oe.useRef(!1),Cn=$t("input-search",Mt),Pe=$t("input",Gt),{compactSize:fe}=(0,Ze.ri)(Cn,yn),ce=(0,Se.Z)(ln=>{var _t;return(_t=Tn!=null?Tn:fe)!==null&&_t!==void 0?_t:ln}),pe=Oe.useRef(null),de=ln=>{ln&&ln.target&&ln.type==="click"&&ht&&ht(ln.target.value,ln,{source:"clear"}),Et&&Et(ln)},le=ln=>{var _t;document.activeElement===((_t=pe.current)===null||_t===void 0?void 0:_t.input)&&ln.preventDefault()},Te=ln=>{var _t,lr;ht&&ht((lr=(_t=pe.current)===null||_t===void 0?void 0:_t.input)===null||lr===void 0?void 0:lr.value,ln,{source:"input"})},ot=ln=>{Qn.current||cn||Te(ln)},Bt=typeof Ae=="boolean"?Oe.createElement(qe.Z,null):null,en=`${Cn}-button`;let rn;const sn=Ae||{},un=sn.type&&sn.type.__ANT_BUTTON===!0;un||sn.type==="button"?rn=(0,rt.Tm)(sn,Object.assign({onMouseDown:le,onClick:ln=>{var _t,lr;(lr=(_t=sn==null?void 0:sn.props)===null||_t===void 0?void 0:_t.onClick)===null||lr===void 0||lr.call(_t,ln),Te(ln)},key:"enterButton"},un?{className:en,size:ce}:{})):rn=Oe.createElement(xe.ZP,{className:en,type:Ae?"primary":void 0,size:ce,disabled:Pt,key:"enterButton",onMouseDown:le,onClick:Te,loading:cn,icon:Bt},Ae),St&&(rn=[rn,(0,rt.Tm)(St,{key:"addonAfter"})]);const gt=Le()(Cn,{[`${Cn}-rtl`]:yn==="rtl",[`${Cn}-${ce}`]:!!ce,[`${Cn}-with-button`]:!!Ae},Bn),zt=ln=>{Qn.current=!0,Qt==null||Qt(ln)},It=ln=>{Qn.current=!1,ir==null||ir(ln)};return Oe.createElement(me.Z,Object.assign({ref:(0,st.sQ)(pe,xn),onPressEnter:ot},On,{size:ce,onCompositionStart:zt,onCompositionEnd:It,prefixCls:Pe,addonAfter:rn,suffix:at,onChange:de,className:gt,disabled:Pt}))}),ft=re(96330);const Ne=me.Z;Ne.Group=we,Ne.Search=pt,Ne.TextArea=ft.Z,Ne.Password=Lt;var jt=Ne},47673:function(bn,Ut,re){"use strict";re.d(Ut,{M1:function(){return ue},TM:function(){return rt},Xy:function(){return we},bi:function(){return ct},e5:function(){return qe},ik:function(){return Ke},nz:function(){return be},pU:function(){return Me},s7:function(){return st},x0:function(){return Ie}});var ie=re(14747),Le=re(80110),Oe=re(45503),Ue=re(67968);const be=xe=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:xe,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Me=xe=>({borderColor:xe.hoverBorderColor}),ue=xe=>({borderColor:xe.activeBorderColor,boxShadow:xe.activeShadow,outline:0}),we=xe=>({color:xe.colorTextDisabled,backgroundColor:xe.colorBgContainerDisabled,borderColor:xe.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Me((0,Oe.TS)(xe,{hoverBorderColor:xe.colorBorder})))}),me=xe=>{const{paddingBlockLG:Se,fontSizeLG:Ze,lineHeightLG:Ge,borderRadiusLG:yt,paddingInlineLG:pt}=xe;return{padding:`${Se}px ${pt}px`,fontSize:Ze,lineHeight:Ge,borderRadius:yt}},Ie=xe=>({padding:`${xe.paddingBlockSM}px ${xe.paddingInlineSM}px`,borderRadius:xe.borderRadiusSM}),ct=(xe,Se)=>{const{componentCls:Ze,colorError:Ge,colorWarning:yt,errorActiveShadow:pt,warningActiveShadow:ft,colorErrorBorderHover:Ne,colorWarningBorderHover:jt}=xe;return{[`&-status-error:not(${Se}-disabled):not(${Se}-borderless)${Se}`]:{borderColor:Ge,"&:hover":{borderColor:Ne},"&:focus, &-focused":Object.assign({},ue((0,Oe.TS)(xe,{activeBorderColor:Ge,activeShadow:pt}))),[`${Ze}-prefix, ${Ze}-suffix`]:{color:Ge}},[`&-status-warning:not(${Se}-disabled):not(${Se}-borderless)${Se}`]:{borderColor:yt,"&:hover":{borderColor:jt},"&:focus, &-focused":Object.assign({},ue((0,Oe.TS)(xe,{activeBorderColor:yt,activeShadow:ft}))),[`${Ze}-prefix, ${Ze}-suffix`]:{color:yt}}}},Ke=xe=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${xe.paddingBlock}px ${xe.paddingInline}px`,color:xe.colorText,fontSize:xe.fontSize,lineHeight:xe.lineHeight,backgroundColor:xe.colorBgContainer,backgroundImage:"none",borderWidth:xe.lineWidth,borderStyle:xe.lineType,borderColor:xe.colorBorder,borderRadius:xe.borderRadius,transition:`all ${xe.motionDurationMid}`},be(xe.colorTextPlaceholder)),{"&:hover":Object.assign({},Me(xe)),"&:focus, &-focused":Object.assign({},ue(xe)),"&-disabled, &[disabled]":Object.assign({},we(xe)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:xe.controlHeight,lineHeight:xe.lineHeight,verticalAlign:"bottom",transition:`all ${xe.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},me(xe)),"&-sm":Object.assign({},Ie(xe)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),st=xe=>{const{componentCls:Se,antCls:Ze}=xe;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:xe.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Se}, &-lg > ${Se}-group-addon`]:Object.assign({},me(xe)),[`&-sm ${Se}, &-sm > ${Se}-group-addon`]:Object.assign({},Ie(xe)),[`&-lg ${Ze}-select-single ${Ze}-select-selector`]:{height:xe.controlHeightLG},[`&-sm ${Ze}-select-single ${Ze}-select-selector`]:{height:xe.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 ${xe.paddingInline}px`,color:xe.colorText,fontWeight:"normal",fontSize:xe.fontSize,textAlign:"center",backgroundColor:xe.colorFillAlter,border:`${xe.lineWidth}px ${xe.lineType} ${xe.colorBorder}`,borderRadius:xe.borderRadius,transition:`all ${xe.motionDurationSlow}`,lineHeight:1,[`${Ze}-select`]:{margin:`-${xe.paddingBlock+1}px -${xe.paddingInline}px`,[`&${Ze}-select-single:not(${Ze}-select-customize-input)`]:{[`${Ze}-select-selector`]:{backgroundColor:"inherit",border:`${xe.lineWidth}px ${xe.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Ze}-select-selector`]:{color:xe.colorPrimary}}},[`${Ze}-cascader-picker`]:{margin:`-9px -${xe.paddingInline}px`,backgroundColor:"transparent",[`${Ze}-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,[`${Ze}-select ${Ze}-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,[`${Ze}-select ${Ze}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Se}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Se}-search &`]:{borderStartStartRadius:xe.borderRadius,borderEndStartRadius:xe.borderRadius}},[`&:not(:first-child), ${Se}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Se}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ie.dF)()),{[`${Se}-group-addon, ${Se}-group-wrap, > ${Se}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:xe.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${Se}-affix-wrapper,
|
|
|
& > ${Se}-number-affix-wrapper,
|
|
|
& > ${Ze}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-xe.lineWidth,borderInlineEndWidth:xe.lineWidth},[`${Se}`]:{float:"none"},[`& > ${Ze}-select > ${Ze}-select-selector,
|
|
|
& > ${Ze}-select-auto-complete ${Se},
|
|
|
& > ${Ze}-cascader-picker ${Se},
|
|
|
& > ${Se}-group-wrapper ${Se}`]:{borderInlineEndWidth:xe.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Ze}-select-focused`]:{zIndex:1},[`& > ${Ze}-select > ${Ze}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${Ze}-select:first-child > ${Ze}-select-selector,
|
|
|
& > ${Ze}-select-auto-complete:first-child ${Se},
|
|
|
& > ${Ze}-cascader-picker:first-child ${Se}`]:{borderStartStartRadius:xe.borderRadius,borderEndStartRadius:xe.borderRadius},[`& > *:last-child,
|
|
|
& > ${Ze}-select:last-child > ${Ze}-select-selector,
|
|
|
& > ${Ze}-cascader-picker:last-child ${Se},
|
|
|
& > ${Ze}-cascader-picker-focused:last-child ${Se}`]:{borderInlineEndWidth:xe.lineWidth,borderStartEndRadius:xe.borderRadius,borderEndEndRadius:xe.borderRadius},[`& > ${Ze}-select-auto-complete ${Se}`]:{verticalAlign:"top"},[`${Se}-group-wrapper + ${Se}-group-wrapper`]:{marginInlineStart:-xe.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:xe.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:xe.borderRadius}}}})}},dt=xe=>{const{componentCls:Se,controlHeightSM:Ze,lineWidth:Ge}=xe,pt=(Ze-Ge*2-16)/2;return{[Se]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ie.Wf)(xe)),Ke(xe)),ct(xe,Se)),{'&[type="color"]':{height:xe.controlHeight,[`&${Se}-lg`]:{height:xe.controlHeightLG},[`&${Se}-sm`]:{height:Ze,paddingTop:pt,paddingBottom:pt}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Xe=xe=>{const{componentCls:Se}=xe;return{[`${Se}-clear-icon`]:{margin:0,color:xe.colorTextQuaternary,fontSize:xe.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${xe.motionDurationSlow}`,"&:hover":{color:xe.colorTextTertiary},"&:active":{color:xe.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${xe.inputAffixPadding}px`}}}},We=xe=>{const{componentCls:Se,inputAffixPadding:Ze,colorTextDescription:Ge,motionDurationSlow:yt,colorIcon:pt,colorIconHover:ft,iconCls:Ne}=xe;return{[`${Se}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ke(xe)),{display:"inline-flex",[`&:not(${Se}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Me(xe)),{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:xe.paddingXS}},"&-show-count-suffix":{color:Ge},"&-show-count-has-suffix":{marginInlineEnd:xe.paddingXXS},"&-prefix":{marginInlineEnd:Ze},"&-suffix":{marginInlineStart:Ze}}}),Xe(xe)),{[`${Ne}${Se}-password-icon`]:{color:pt,cursor:"pointer",transition:`all ${yt}`,"&:hover":{color:ft}}}),ct(xe,`${Se}-affix-wrapper`))}},ye=xe=>{const{componentCls:Se,colorError:Ze,colorWarning:Ge,borderRadiusLG:yt,borderRadiusSM:pt}=xe;return{[`${Se}-group`]:Object.assign(Object.assign(Object.assign({},(0,ie.Wf)(xe)),st(xe)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Se}-group-addon`]:{borderRadius:yt,fontSize:xe.fontSizeLG}},"&-sm":{[`${Se}-group-addon`]:{borderRadius:pt}},"&-status-error":{[`${Se}-group-addon`]:{color:Ze,borderColor:Ze}},"&-status-warning":{[`${Se}-group-addon`]:{color:Ge,borderColor:Ge}},"&-disabled":{[`${Se}-group-addon`]:Object.assign({},we(xe))},[`&: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}}}})}},it=xe=>{const{componentCls:Se,antCls:Ze}=xe,Ge=`${Se}-search`;return{[Ge]:{[`${Se}`]:{"&:hover, &:focus":{borderColor:xe.colorPrimaryHover,[`+ ${Se}-group-addon ${Ge}-button:not(${Ze}-btn-primary)`]:{borderInlineStartColor:xe.colorPrimaryHover}}},[`${Se}-affix-wrapper`]:{borderRadius:0},[`${Se}-lg`]:{lineHeight:xe.lineHeightLG-2e-4},[`> ${Se}-group`]:{[`> ${Se}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Ge}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:xe.borderRadius,borderEndEndRadius:xe.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Ge}-button:not(${Ze}-btn-primary)`]:{color:xe.colorTextDescription,"&:hover":{color:xe.colorPrimaryHover},"&:active":{color:xe.colorPrimaryActive},[`&${Ze}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Ge}-button`]:{height:xe.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Ge}-button`]:{height:xe.controlHeightLG},[`&-small ${Ge}-button`]:{height:xe.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Se}-compact-item`]:{[`&:not(${Se}-compact-last-item)`]:{[`${Se}-group-addon`]:{[`${Se}-search-button`]:{marginInlineEnd:-xe.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}}}}},Lt=xe=>{const{componentCls:Se,paddingLG:Ze}=xe,Ge=`${Se}-textarea`;return{[Ge]:{position:"relative","&-show-count":{[`> ${Se}`]:{height:"100%"},[`${Se}-data-count`]:{position:"absolute",bottom:-xe.fontSize*xe.lineHeight,insetInlineEnd:0,color:xe.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Se}`]:{paddingInlineEnd:Ze}},[`&-affix-wrapper${Ge}-has-feedback`]:{[`${Se}`]:{paddingInlineEnd:Ze}},[`&-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:xe.paddingXS,insetBlockStart:xe.paddingXS},[`${Ge}-suffix`]:{position:"absolute",top:0,insetInlineEnd:xe.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function qe(xe){return(0,Oe.TS)(xe,{inputAffixPadding:xe.paddingXXS})}const rt=xe=>{const{controlHeight:Se,fontSize:Ze,lineHeight:Ge,lineWidth:yt,controlHeightSM:pt,controlHeightLG:ft,fontSizeLG:Ne,lineHeightLG:jt,paddingSM:bt,controlPaddingHorizontalSM:xn,controlPaddingHorizontal:Mt,colorFillAlter:Gt,colorPrimaryHover:Bn,controlOutlineWidth:Tn,controlOutline:at,colorErrorOutline:Ae,colorWarningOutline:St}=xe;return{paddingBlock:Math.max(Math.round((Se-Ze*Ge)/2*10)/10-yt,3),paddingBlockSM:Math.max(Math.round((pt-Ze*Ge)/2*10)/10-yt,0),paddingBlockLG:Math.ceil((ft-Ne*jt)/2*10)/10-yt,paddingInline:bt-yt,paddingInlineSM:xn-yt,paddingInlineLG:Mt-yt,addonBg:Gt,activeBorderColor:Bn,hoverBorderColor:Bn,activeShadow:`0 0 0 ${Tn}px ${at}`,errorActiveShadow:`0 0 0 ${Tn}px ${Ae}`,warningActiveShadow:`0 0 0 ${Tn}px ${St}`}};Ut.ZP=(0,Ue.Z)("Input",xe=>{const Se=(0,Oe.TS)(xe,qe(xe));return[dt(Se),Lt(Se),We(Se),ye(Se),it(Se),(0,Le.c)(Se)]},rt)},71322:function(bn,Ut,re){"use strict";re.d(Ut,{D:function(){return Lt},Z:function(){return xe}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(Ze,Ge){return Le.createElement(be.Z,(0,ie.Z)({},Ze,{ref:Ge,icon:Ue}))},ue=Le.forwardRef(Me),we=re(22751),me=re(91034),Ie=re(94184),ct=re.n(Ie),Ke=re(10366),dt=Se=>!isNaN(parseFloat(Se))&&isFinite(Se),Xe=re(53124),We=re(84321),ye=function(Se,Ze){var Ge={};for(var yt in Se)Object.prototype.hasOwnProperty.call(Se,yt)&&Ze.indexOf(yt)<0&&(Ge[yt]=Se[yt]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,yt=Object.getOwnPropertySymbols(Se);pt<yt.length;pt++)Ze.indexOf(yt[pt])<0&&Object.prototype.propertyIsEnumerable.call(Se,yt[pt])&&(Ge[yt[pt]]=Se[yt[pt]]);return Ge};const it={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Lt=Le.createContext({}),qe=(()=>{let Se=0;return function(){let Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Se+=1,`${Ze}${Se}`}})();var xe=Le.forwardRef((Se,Ze)=>{const{prefixCls:Ge,className:yt,trigger:pt,children:ft,defaultCollapsed:Ne=!1,theme:jt="dark",style:bt={},collapsible:xn=!1,reverseArrow:Mt=!1,width:Gt=200,collapsedWidth:Bn=80,zeroWidthTriggerStyle:Tn,breakpoint:at,onCollapse:Ae,onBreakpoint:St}=Se,cn=ye(Se,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Pt}=(0,Le.useContext)(We.Gs),[ht,Et]=(0,Le.useState)("collapsed"in Se?Se.collapsed:Ne),[Qt,ir]=(0,Le.useState)(!1);(0,Le.useEffect)(()=>{"collapsed"in Se&&Et(Se.collapsed)},[Se.collapsed]);const On=(fe,ce)=>{"collapsed"in Se||Et(fe),Ae==null||Ae(fe,ce)},$t=(0,Le.useRef)();$t.current=fe=>{ir(fe.matches),St==null||St(fe.matches),ht!==fe.matches&&On(fe.matches,"responsive")},(0,Le.useEffect)(()=>{function fe(pe){return $t.current(pe)}let ce;if(typeof window!="undefined"){const{matchMedia:pe}=window;if(pe&&at&&at in it){ce=pe(`(max-width: ${it[at]})`);try{ce.addEventListener("change",fe)}catch(de){ce.addListener(fe)}fe(ce)}}return()=>{try{ce==null||ce.removeEventListener("change",fe)}catch(pe){ce==null||ce.removeListener(fe)}}},[at]),(0,Le.useEffect)(()=>{const fe=qe("ant-sider-");return Pt.addSider(fe),()=>Pt.removeSider(fe)},[]);const yn=()=>{On(!ht,"clickTrigger")},{getPrefixCls:Qn}=(0,Le.useContext)(Xe.E_),Cn=()=>{const fe=Qn("layout-sider",Ge),ce=(0,Ke.Z)(cn,["collapsed"]),pe=ht?Bn:Gt,de=dt(pe)?`${pe}px`:String(pe),le=parseFloat(String(Bn||0))===0?Le.createElement("span",{onClick:yn,className:ct()(`${fe}-zero-width-trigger`,`${fe}-zero-width-trigger-${Mt?"right":"left"}`),style:Tn},pt||Le.createElement(ue,null)):null,Bt={expanded:Mt?Le.createElement(me.Z,null):Le.createElement(we.Z,null),collapsed:Mt?Le.createElement(we.Z,null):Le.createElement(me.Z,null)}[ht?"collapsed":"expanded"],en=pt!==null?le||Le.createElement("div",{className:`${fe}-trigger`,onClick:yn,style:{width:de}},pt||Bt):null,rn=Object.assign(Object.assign({},bt),{flex:`0 0 ${de}`,maxWidth:de,minWidth:de,width:de}),sn=ct()(fe,`${fe}-${jt}`,{[`${fe}-collapsed`]:!!ht,[`${fe}-has-trigger`]:xn&&pt!==null&&!le,[`${fe}-below`]:!!Qt,[`${fe}-zero-width`]:parseFloat(de)===0},yt);return Le.createElement("aside",Object.assign({className:sn},ce,{style:rn,ref:Ze}),Le.createElement("div",{className:`${fe}-children`},ft),xn||Qt&&le?en:null)},Pe=Le.useMemo(()=>({siderCollapsed:ht}),[ht]);return Le.createElement(Lt.Provider,{value:Pe},Cn())})},84321:function(bn,Ut,re){"use strict";re.d(Ut,{VY:function(){return qe},$_:function(){return Lt},h4:function(){return it},Gs:function(){return st},ZP:function(){return rt}});var ie=re(74902),Le=re(94184),Oe=re.n(Le),Ue=re(10366),be=re(67294),Me=re(53124),ue=re(67968),me=xe=>{const{componentCls:Se,bodyBg:Ze,lightSiderBg:Ge,lightTriggerBg:yt,lightTriggerColor:pt}=xe;return{[`${Se}-sider-light`]:{background:Ge,[`${Se}-sider-trigger`]:{color:pt,background:yt},[`${Se}-sider-zero-width-trigger`]:{color:pt,background:yt,border:`1px solid ${Ze}`,borderInlineStart:0}}}};const Ie=xe=>{const{antCls:Se,componentCls:Ze,colorText:Ge,triggerColor:yt,footerBg:pt,triggerBg:ft,headerHeight:Ne,headerPadding:jt,headerColor:bt,footerPadding:xn,triggerHeight:Mt,zeroTriggerHeight:Gt,zeroTriggerWidth:Bn,motionDurationMid:Tn,motionDurationSlow:at,fontSize:Ae,borderRadius:St,bodyBg:cn,headerBg:Pt,siderBg:ht}=xe;return{[Ze]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:cn,"&, *":{boxSizing:"border-box"},[`&${Ze}-has-sider`]:{flexDirection:"row",[`> ${Ze}, > ${Ze}-content`]:{width:0}},[`${Ze}-header, &${Ze}-footer`]:{flex:"0 0 auto"},[`${Ze}-sider`]:{position:"relative",minWidth:0,background:ht,transition:`all ${Tn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Se}-menu${Se}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Mt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Mt,color:yt,lineHeight:`${Mt}px`,textAlign:"center",background:ft,cursor:"pointer",transition:`all ${Tn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ne,insetInlineEnd:-Bn,zIndex:1,width:Bn,height:Gt,color:yt,fontSize:xe.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ht,borderStartStartRadius:0,borderStartEndRadius:St,borderEndEndRadius:St,borderEndStartRadius:0,cursor:"pointer",transition:`background ${at} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${at}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Bn,borderStartStartRadius:St,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:St}}}}},me(xe)),{"&-rtl":{direction:"rtl"}}),[`${Ze}-header`]:{height:Ne,padding:jt,color:bt,lineHeight:`${Ne}px`,background:Pt,[`${Se}-menu`]:{lineHeight:"inherit"}},[`${Ze}-footer`]:{padding:xn,color:Ge,fontSize:Ae,background:pt},[`${Ze}-content`]:{flex:"auto",minHeight:0}}};var ct=(0,ue.Z)("Layout",xe=>[Ie(xe)],xe=>{const{colorBgLayout:Se,controlHeight:Ze,controlHeightLG:Ge,colorText:yt,controlHeightSM:pt,marginXXS:ft,colorTextLightSolid:Ne,colorBgContainer:jt}=xe,bt=Ge*1.25;return{colorBgHeader:"#001529",colorBgBody:Se,colorBgTrigger:"#002140",bodyBg:Se,headerBg:"#001529",headerHeight:Ze*2,headerPadding:`0 ${bt}px`,headerColor:yt,footerPadding:`${pt}px ${bt}px`,footerBg:Se,siderBg:"#001529",triggerHeight:Ge+ft*2,triggerBg:"#002140",triggerColor:Ne,zeroTriggerWidth:Ge,zeroTriggerHeight:Ge,lightSiderBg:jt,lightTriggerBg:jt,lightTriggerColor:yt}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ke=function(xe,Se){var Ze={};for(var Ge in xe)Object.prototype.hasOwnProperty.call(xe,Ge)&&Se.indexOf(Ge)<0&&(Ze[Ge]=xe[Ge]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,Ge=Object.getOwnPropertySymbols(xe);yt<Ge.length;yt++)Se.indexOf(Ge[yt])<0&&Object.prototype.propertyIsEnumerable.call(xe,Ge[yt])&&(Ze[Ge[yt]]=xe[Ge[yt]]);return Ze};const st=be.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function dt(xe){let{suffixCls:Se,tagName:Ze,displayName:Ge}=xe;return yt=>be.forwardRef((ft,Ne)=>be.createElement(yt,Object.assign({ref:Ne,suffixCls:Se,tagName:Ze},ft)))}const Xe=be.forwardRef((xe,Se)=>{const{prefixCls:Ze,suffixCls:Ge,className:yt,tagName:pt}=xe,ft=Ke(xe,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ne}=be.useContext(Me.E_),jt=Ne("layout",Ze),[bt,xn]=ct(jt),Mt=Ge?`${jt}-${Ge}`:jt;return bt(be.createElement(pt,Object.assign({className:Oe()(Ze||Mt,yt,xn),ref:Se},ft)))}),We=be.forwardRef((xe,Se)=>{const{direction:Ze}=be.useContext(Me.E_),[Ge,yt]=be.useState([]),{prefixCls:pt,className:ft,rootClassName:Ne,children:jt,hasSider:bt,tagName:xn,style:Mt}=xe,Gt=Ke(xe,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Bn=(0,Ue.Z)(Gt,["suffixCls"]),{getPrefixCls:Tn,layout:at}=be.useContext(Me.E_),Ae=Tn("layout",pt),[St,cn]=ct(Ae),Pt=Oe()(Ae,{[`${Ae}-has-sider`]:typeof bt=="boolean"?bt:Ge.length>0,[`${Ae}-rtl`]:Ze==="rtl"},at==null?void 0:at.className,ft,Ne,cn),ht=be.useMemo(()=>({siderHook:{addSider:Et=>{yt(Qt=>[].concat((0,ie.Z)(Qt),[Et]))},removeSider:Et=>{yt(Qt=>Qt.filter(ir=>ir!==Et))}}}),[]);return St(be.createElement(st.Provider,{value:ht},be.createElement(xn,Object.assign({ref:Se,className:Pt,style:Object.assign(Object.assign({},at==null?void 0:at.style),Mt)},Bn),jt)))}),ye=dt({tagName:"div",displayName:"Layout"})(We),it=dt({suffixCls:"header",tagName:"header",displayName:"Header"})(Xe),Lt=dt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Xe),qe=dt({suffixCls:"content",tagName:"main",displayName:"Content"})(Xe);var rt=ye},76529:function(bn,Ut,re){"use strict";re.d(Ut,{J:function(){return Me}});var ie=re(67294),Le=re(4173),Oe=re(60276),Ue=function(ue,we){var me={};for(var Ie in ue)Object.prototype.hasOwnProperty.call(ue,Ie)&&we.indexOf(Ie)<0&&(me[Ie]=ue[Ie]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Ie=Object.getOwnPropertySymbols(ue);ct<Ie.length;ct++)we.indexOf(Ie[ct])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ie[ct])&&(me[Ie[ct]]=ue[Ie[ct]]);return me};const be=ie.createContext(null),Me=ie.forwardRef((ue,we)=>{const{children:me}=ue,Ie=Ue(ue,["children"]),ct=ie.useContext(be),Ke=ie.useMemo(()=>Object.assign(Object.assign({},ct),Ie),[ct,Ie.prefixCls,Ie.mode,Ie.selectable]);return ie.createElement(be.Provider,{value:Ke},ie.createElement(Le.BR,null,(0,Oe.supportNodeRef)(me)?ie.cloneElement(me,{ref:we}):me))});Ut.Z=be},68508:function(bn,Ut,re){"use strict";re.d(Ut,{default:function(){return fe}});var ie=re(78595),Le=re(67294),Oe=re(71322),Ue=re(94184),be=re.n(Ue),Me=re(53124),ue=function(ce,pe){var de={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&pe.indexOf(le)<0&&(de[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,le=Object.getOwnPropertySymbols(ce);Te<le.length;Te++)pe.indexOf(le[Te])<0&&Object.prototype.propertyIsEnumerable.call(ce,le[Te])&&(de[le[Te]]=ce[le[Te]]);return de},me=ce=>{const{prefixCls:pe,className:de,dashed:le}=ce,Te=ue(ce,["prefixCls","className","dashed"]),{getPrefixCls:ot}=Le.useContext(Me.E_),Bt=ot("menu",pe),en=be()({[`${Bt}-item-divider-dashed`]:!!le},de);return Le.createElement(ie.iz,Object.assign({className:en},Te))},Ie=re(37419),ct=re(10366),Ke=re(83062),st=re(96159),Xe=(0,Le.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ye=ce=>{var pe;const{className:de,children:le,icon:Te,title:ot,danger:Bt}=ce,{prefixCls:en,firstLevel:rn,direction:sn,disableMenuItemTitleTooltip:un,inlineCollapsed:gt}=Le.useContext(Xe),zt=Yt=>{const Un=Le.createElement("span",{className:`${en}-title-content`},le);return(!Te||(0,st.l$)(le)&&le.type==="span")&&le&&Yt&&rn&&typeof le=="string"?Le.createElement("div",{className:`${en}-inline-collapsed-noicon`},le.charAt(0)):Un},{siderCollapsed:It}=Le.useContext(Oe.D);let ln=ot;typeof ot=="undefined"?ln=rn?le:"":ot===!1&&(ln="");const _t={title:ln};!It&&!gt&&(_t.title=null,_t.open=!1);const lr=(0,Ie.Z)(le).length;let xt=Le.createElement(ie.ck,Object.assign({},(0,ct.Z)(ce,["title","icon","danger"]),{className:be()({[`${en}-item-danger`]:Bt,[`${en}-item-only-child`]:(Te?lr+1:lr)===1},de),title:typeof ot=="string"?ot:void 0}),(0,st.Tm)(Te,{className:be()((0,st.l$)(Te)?(pe=Te.props)===null||pe===void 0?void 0:pe.className:"",`${en}-item-icon`)}),zt(gt));return un||(xt=Le.createElement(Ke.Z,Object.assign({},_t,{placement:sn==="rtl"?"left":"right",overlayClassName:`${en}-inline-collapsed-tooltip`}),xt)),xt},Lt=ce=>{var pe;const{popupClassName:de,icon:le,title:Te,theme:ot}=ce,Bt=Le.useContext(Xe),{prefixCls:en,inlineCollapsed:rn,theme:sn}=Bt,un=(0,ie.Xl)();let gt;if(!le)gt=rn&&!un.length&&Te&&typeof Te=="string"?Le.createElement("div",{className:`${en}-inline-collapsed-noicon`},Te.charAt(0)):Le.createElement("span",{className:`${en}-title-content`},Te);else{const It=(0,st.l$)(Te)&&Te.type==="span";gt=Le.createElement(Le.Fragment,null,(0,st.Tm)(le,{className:be()((0,st.l$)(le)?(pe=le.props)===null||pe===void 0?void 0:pe.className:"",`${en}-item-icon`)}),It?Te:Le.createElement("span",{className:`${en}-title-content`},Te))}const zt=Le.useMemo(()=>Object.assign(Object.assign({},Bt),{firstLevel:!1}),[Bt]);return Le.createElement(Xe.Provider,{value:zt},Le.createElement(ie.Wd,Object.assign({},(0,ct.Z)(ce,["icon"]),{title:gt,popupClassName:be()(en,de,`${en}-${ot||sn}`)})))},qe=re(25877),rt=re(60276),xe=re(33603),Se=re(76529),Ze=function(ce,pe){var de={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&pe.indexOf(le)<0&&(de[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,le=Object.getOwnPropertySymbols(ce);Te<le.length;Te++)pe.indexOf(le[Te])<0&&Object.prototype.propertyIsEnumerable.call(ce,le[Te])&&(de[le[Te]]=ce[le[Te]]);return de};function Ge(ce){return(ce||[]).map((pe,de)=>{if(pe&&typeof pe=="object"){const le=pe,{label:Te,children:ot,key:Bt,type:en}=le,rn=Ze(le,["label","children","key","type"]),sn=Bt!=null?Bt:`tmp-${de}`;return ot||en==="group"?en==="group"?Le.createElement(ie.BW,Object.assign({key:sn},rn,{title:Te}),Ge(ot)):Le.createElement(Lt,Object.assign({key:sn},rn,{title:Te}),Ge(ot)):en==="divider"?Le.createElement(me,Object.assign({key:sn},rn)):Le.createElement(ye,Object.assign({key:sn},rn),Te)}return null}).filter(pe=>pe)}function yt(ce){return Le.useMemo(()=>ce&&Ge(ce),[ce])}var pt=re(84780),ft=re(14747),Ne=re(33507),jt=re(67771),bt=re(50438),xn=re(67968),Mt=re(45503),Bn=ce=>{const{componentCls:pe,motionDurationSlow:de,horizontalLineHeight:le,colorSplit:Te,lineWidth:ot,lineType:Bt,itemPaddingInline:en}=ce;return{[`${pe}-horizontal`]:{lineHeight:le,border:0,borderBottom:`${ot}px ${Bt} ${Te}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:en},[`> ${pe}-item:hover,
|
|
|
> ${pe}-item-active,
|
|
|
> ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${de}`,`background ${de}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},at=ce=>{let{componentCls:pe,menuArrowOffset:de}=ce;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical,
|
|
|
${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${de})`},"&::after":{transform:`rotate(45deg) translateY(${de})`}}}}};const Ae=ce=>Object.assign({},(0,ft.oN)(ce));var cn=(ce,pe)=>{const{componentCls:de,itemColor:le,itemSelectedColor:Te,groupTitleColor:ot,itemBg:Bt,subMenuItemBg:en,itemSelectedBg:rn,activeBarHeight:sn,activeBarWidth:un,activeBarBorderWidth:gt,motionDurationSlow:zt,motionEaseInOut:It,motionEaseOut:ln,itemPaddingInline:_t,motionDurationMid:lr,itemHoverColor:xt,lineType:Yt,colorSplit:Un,itemDisabledColor:Hn,dangerItemColor:$n,dangerItemHoverColor:yr,dangerItemSelectedColor:Fn,dangerItemActiveBg:or,dangerItemSelectedBg:Dr,itemHoverBg:Fr,itemActiveBg:hr,menuSubMenuBg:_r,horizontalItemSelectedColor:Mi,horizontalItemSelectedBg:zi,horizontalItemBorderRadius:Gi,horizontalItemHoverBg:pi,popupBg:Zt}=ce;return{[`${de}-${pe}, ${de}-${pe} > ${de}`]:{color:le,background:Bt,[`&${de}-root:focus-visible`]:Object.assign({},Ae(ce)),[`${de}-item-group-title`]:{color:ot},[`${de}-submenu-selected`]:{[`> ${de}-submenu-title`]:{color:Te}},[`${de}-item-disabled, ${de}-submenu-disabled`]:{color:`${Hn} !important`},[`${de}-item:not(${de}-item-selected):not(${de}-submenu-selected)`]:{[`&:hover, > ${de}-submenu-title:hover`]:{color:xt}},[`&:not(${de}-horizontal)`]:{[`${de}-item:not(${de}-item-selected)`]:{"&:hover":{backgroundColor:Fr},"&:active":{backgroundColor:hr}},[`${de}-submenu-title`]:{"&:hover":{backgroundColor:Fr},"&:active":{backgroundColor:hr}}},[`${de}-item-danger`]:{color:$n,[`&${de}-item:hover`]:{[`&:not(${de}-item-selected):not(${de}-submenu-selected)`]:{color:yr}},[`&${de}-item:active`]:{background:or}},[`${de}-item a`]:{"&, &:hover":{color:"inherit"}},[`${de}-item-selected`]:{color:Te,[`&${de}-item-danger`]:{color:Fn},"a, a:hover":{color:"inherit"}},[`& ${de}-item-selected`]:{backgroundColor:rn,[`&${de}-item-danger`]:{backgroundColor:Dr}},[`${de}-item, ${de}-submenu-title`]:{[`&:not(${de}-item-disabled):focus-visible`]:Object.assign({},Ae(ce))},[`&${de}-submenu > ${de}`]:{backgroundColor:_r},[`&${de}-popup > ${de}`]:{backgroundColor:Zt},[`&${de}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${de}-item, > ${de}-submenu`]:{top:gt,marginTop:-gt,marginBottom:0,borderRadius:Gi,"&::after":{position:"absolute",insetInline:_t,bottom:0,borderBottom:`${sn}px solid transparent`,transition:`border-color ${zt} ${It}`,content:'""'},"&:hover, &-active, &-open":{background:pi,"&::after":{borderBottomWidth:sn,borderBottomColor:Mi}},"&-selected":{color:Mi,backgroundColor:zi,"&:hover":{backgroundColor:zi},"&::after":{borderBottomWidth:sn,borderBottomColor:Mi}}}}),[`&${de}-root`]:{[`&${de}-inline, &${de}-vertical`]:{borderInlineEnd:`${gt}px ${Yt} ${Un}`}},[`&${de}-inline`]:{[`${de}-sub${de}-inline`]:{background:en},[`${de}-item, ${de}-submenu-title`]:gt&&un?{width:`calc(100% + ${gt}px)`}:{},[`${de}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${un}px solid ${Te}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${lr} ${ln}`,`opacity ${lr} ${ln}`].join(","),content:'""'},[`&${de}-item-danger`]:{"&::after":{borderInlineEndColor:Fn}}},[`${de}-selected, ${de}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${lr} ${It}`,`opacity ${lr} ${It}`].join(",")}}}}}};const Pt=ce=>{const{componentCls:pe,itemHeight:de,itemMarginInline:le,padding:Te,menuArrowSize:ot,marginXS:Bt,itemMarginBlock:en}=ce,rn=Te+ot+Bt;return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:de,lineHeight:`${de}px`,paddingInline:Te,overflow:"hidden",textOverflow:"ellipsis",marginInline:le,marginBlock:en,width:`calc(100% - ${le*2}px)`},[`> ${pe}-item,
|
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{height:de,lineHeight:`${de}px`},[`${pe}-item-group-list ${pe}-submenu-title,
|
|
|
${pe}-submenu-title`]:{paddingInlineEnd:rn}}};var Et=ce=>{const{componentCls:pe,iconCls:de,itemHeight:le,colorTextLightSolid:Te,dropdownWidth:ot,controlHeightLG:Bt,motionDurationMid:en,motionEaseOut:rn,paddingXL:sn,itemMarginInline:un,fontSizeLG:gt,motionDurationSlow:zt,paddingXS:It,boxShadowSecondary:ln,collapsedWidth:_t,collapsedIconSize:lr}=ce,xt={height:le,lineHeight:`${le}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},Pt(ce))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},Pt(ce)),{boxShadow:ln})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:ot,maxHeight:`calc(100vh - ${Bt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${zt}`,`background ${zt}`,`padding ${en} ${rn}`].join(","),[`> ${pe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${pe}-sub${pe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${pe}-submenu > ${pe}-submenu-title`]:xt,[`& ${pe}-item-group-title`]:{paddingInlineStart:sn}},[`${pe}-item`]:xt}},{[`${pe}-inline-collapsed`]:{width:_t,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:gt,textAlign:"center"}}},[`> ${pe}-item,
|
|
|
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-item,
|
|
|
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-submenu > ${pe}-submenu-title,
|
|
|
> ${pe}-submenu > ${pe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${gt/2}px - ${un}px)`,textOverflow:"clip",[`
|
|
|
${pe}-submenu-arrow,
|
|
|
${pe}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${pe}-item-icon, ${de}`]:{margin:0,fontSize:lr,lineHeight:`${le}px`,"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${de}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${de}`]:{display:"none"},"a, a:hover":{color:Te}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},ft.vS),{paddingInline:It})}}]};const Qt=ce=>{const{componentCls:pe,motionDurationSlow:de,motionDurationMid:le,motionEaseInOut:Te,motionEaseOut:ot,iconCls:Bt,iconSize:en,iconMarginInlineEnd:rn}=ce;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${de}`,`background ${de}`,`padding ${de} ${Te}`].join(","),[`${pe}-item-icon, ${Bt}`]:{minWidth:en,fontSize:en,transition:[`font-size ${le} ${ot}`,`margin ${de} ${Te}`,`color ${de}`].join(","),"+ span":{marginInlineStart:rn,opacity:1,transition:[`opacity ${de} ${Te}`,`margin ${de}`,`color ${de}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,ft.Ro)()),[`&${pe}-item-only-child`]:{[`> ${Bt}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ir=ce=>{const{componentCls:pe,motionDurationSlow:de,motionEaseInOut:le,borderRadius:Te,menuArrowSize:ot,menuArrowOffset:Bt}=ce;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ce.margin,width:ot,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${de} ${le}, opacity ${de}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ot*.6,height:ot*.15,backgroundColor:"currentcolor",borderRadius:Te,transition:[`background ${de} ${le}`,`transform ${de} ${le}`,`top ${de} ${le}`,`color ${de} ${le}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Bt})`},"&::after":{transform:`rotate(-45deg) translateY(${Bt})`}}}}},On=ce=>{const{antCls:pe,componentCls:de,fontSize:le,motionDurationSlow:Te,motionDurationMid:ot,motionEaseInOut:Bt,paddingXS:en,padding:rn,colorSplit:sn,lineWidth:un,zIndexPopup:gt,borderRadiusLG:zt,subMenuItemBorderRadius:It,menuArrowSize:ln,menuArrowOffset:_t,lineType:lr,menuPanelMaskInset:xt,groupTitleLineHeight:Yt,groupTitleFontSize:Un}=ce;return[{"":{[`${de}`]:Object.assign(Object.assign({},(0,ft.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,ft.Wf)(ce)),(0,ft.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:le,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Te} 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:ce.itemBorderRadius},[`${de}-item-group-title`]:{padding:`${en}px ${rn}px`,fontSize:Un,lineHeight:Yt,transition:`all ${Te}`},[`&-horizontal ${de}-submenu`]:{transition:[`border-color ${Te} ${Bt}`,`background ${Te} ${Bt}`].join(",")},[`${de}-submenu, ${de}-submenu-inline`]:{transition:[`border-color ${Te} ${Bt}`,`background ${Te} ${Bt}`,`padding ${ot} ${Bt}`].join(",")},[`${de}-submenu ${de}-sub`]:{cursor:"initial",transition:[`background ${Te} ${Bt}`,`padding ${Te} ${Bt}`].join(",")},[`${de}-title-content`]:{transition:`color ${Te}`},[`${de}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${de}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:sn,borderStyle:lr,borderWidth:0,borderTopWidth:un,marginBlock:un,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Qt(ce)),{[`${de}-item-group`]:{[`${de}-item-group-list`]:{margin:0,padding:0,[`${de}-item, ${de}-submenu-title`]:{paddingInline:`${le*2}px ${rn}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:gt,borderRadius:zt,boxShadow:"none",transformOrigin:"0 0",[`&${de}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${xt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:xt},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ce.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ce.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ce.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ce.paddingXS},[`> ${de}`]:Object.assign(Object.assign(Object.assign({borderRadius:zt},Qt(ce)),ir(ce)),{[`${de}-item, ${de}-submenu > ${de}-submenu-title`]:{borderRadius:It},[`${de}-submenu-title::after`]:{transition:`transform ${Te} ${Bt}`}})}}),ir(ce)),{[`&-inline-collapsed ${de}-submenu-arrow,
|
|
|
&-inline ${de}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${_t})`},"&::after":{transform:`rotate(45deg) translateX(-${_t})`}},[`${de}-submenu-open${de}-submenu-inline > ${de}-submenu-title > ${de}-submenu-arrow`]:{transform:`translateY(-${ln*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${_t})`},"&::before":{transform:`rotate(45deg) translateX(${_t})`}}})},{[`${pe}-layout-header`]:{[de]:{lineHeight:"inherit"}}}]};var $t=(ce,pe)=>(0,xn.Z)("Menu",le=>{if(pe===!1)return[];const{colorBgElevated:Te,colorPrimary:ot,colorTextLightSolid:Bt,controlHeightLG:en,fontSize:rn,darkItemColor:sn,darkDangerItemColor:un,darkItemBg:gt,darkSubMenuItemBg:zt,darkItemSelectedColor:It,darkItemSelectedBg:ln,darkDangerItemSelectedBg:_t,darkItemHoverBg:lr,darkGroupTitleColor:xt,darkItemHoverColor:Yt,darkItemDisabledColor:Un,darkDangerItemHoverColor:Hn,darkDangerItemSelectedColor:$n,darkDangerItemActiveBg:yr}=le,Fn=rn/7*5,or=(0,Mt.TS)(le,{menuArrowSize:Fn,menuHorizontalHeight:en*1.15,menuArrowOffset:`${Fn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Te}),Dr=(0,Mt.TS)(or,{itemColor:sn,itemHoverColor:Yt,groupTitleColor:xt,itemSelectedColor:It,itemBg:gt,popupBg:gt,subMenuItemBg:zt,itemActiveBg:"transparent",itemSelectedBg:ln,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:lr,itemDisabledColor:Un,dangerItemColor:un,dangerItemHoverColor:Hn,dangerItemSelectedColor:$n,dangerItemActiveBg:yr,dangerItemSelectedBg:_t,menuSubMenuBg:zt,horizontalItemSelectedColor:Bt,horizontalItemSelectedBg:ot});return[On(or),Bn(or),Et(or),cn(or,"light"),cn(Dr,"dark"),at(or),(0,Ne.Z)(or),(0,jt.oN)(or,"slide-up"),(0,jt.oN)(or,"slide-down"),(0,bt._y)(or,"zoom-big")]},le=>{const{colorPrimary:Te,colorError:ot,colorTextDisabled:Bt,colorErrorBg:en,colorText:rn,colorTextDescription:sn,colorBgContainer:un,colorFillAlter:gt,colorFillContent:zt,lineWidth:It,lineWidthBold:ln,controlItemBgActive:_t,colorBgTextHover:lr,controlHeightLG:xt,lineHeight:Yt,colorBgElevated:Un,marginXXS:Hn,padding:$n,fontSize:yr,controlHeightSM:Fn,fontSizeLG:or,colorTextLightSolid:Dr,colorErrorHover:Fr}=le,hr=new pt.C(Dr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:le.zIndexPopupBase+50,radiusItem:le.borderRadiusLG,itemBorderRadius:le.borderRadiusLG,radiusSubMenuItem:le.borderRadiusSM,subMenuItemBorderRadius:le.borderRadiusSM,colorItemText:rn,itemColor:rn,colorItemTextHover:rn,itemHoverColor:rn,colorItemTextHoverHorizontal:Te,horizontalItemHoverColor:Te,colorGroupTitle:sn,groupTitleColor:sn,colorItemTextSelected:Te,itemSelectedColor:Te,colorItemTextSelectedHorizontal:Te,horizontalItemSelectedColor:Te,colorItemBg:un,itemBg:un,colorItemBgHover:lr,itemHoverBg:lr,colorItemBgActive:zt,itemActiveBg:_t,colorSubItemBg:gt,subMenuItemBg:gt,colorItemBgSelected:_t,itemSelectedBg:_t,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ln,activeBarHeight:ln,colorActiveBarBorderSize:It,activeBarBorderWidth:It,colorItemTextDisabled:Bt,itemDisabledColor:Bt,colorDangerItemText:ot,dangerItemColor:ot,colorDangerItemTextHover:ot,dangerItemHoverColor:ot,colorDangerItemTextSelected:ot,dangerItemSelectedColor:ot,colorDangerItemBgActive:en,dangerItemActiveBg:en,colorDangerItemBgSelected:en,dangerItemSelectedBg:en,itemMarginInline:le.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:xt,groupTitleLineHeight:Yt,collapsedWidth:xt*2,popupBg:Un,itemMarginBlock:Hn,itemPaddingInline:$n,horizontalLineHeight:`${xt*1.15}px`,iconSize:yr,iconMarginInlineEnd:Fn-yr,collapsedIconSize:or,groupTitleFontSize:yr,darkItemDisabledColor:new pt.C(Dr).setAlpha(.25).toRgbString(),darkItemColor:hr,darkDangerItemColor:ot,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Dr,darkItemSelectedBg:Te,darkDangerItemSelectedBg:ot,darkItemHoverBg:"transparent",darkGroupTitleColor:hr,darkItemHoverColor:Dr,darkDangerItemHoverColor:Fr,darkDangerItemSelectedColor:Dr,darkDangerItemActiveBg:ot}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(ce),yn=function(ce,pe){var de={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&pe.indexOf(le)<0&&(de[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,le=Object.getOwnPropertySymbols(ce);Te<le.length;Te++)pe.indexOf(le[Te])<0&&Object.prototype.propertyIsEnumerable.call(ce,le[Te])&&(de[le[Te]]=ce[le[Te]]);return de},Cn=(0,Le.forwardRef)((ce,pe)=>{var de,le;const Te=Le.useContext(Se.Z),ot=Te||{},{getPrefixCls:Bt,getPopupContainer:en,direction:rn,menu:sn}=Le.useContext(Me.E_),un=Bt(),{prefixCls:gt,className:zt,style:It,theme:ln="light",expandIcon:_t,_internalDisableMenuItemTitleTooltip:lr,inlineCollapsed:xt,siderCollapsed:Yt,items:Un,children:Hn,rootClassName:$n,mode:yr,selectable:Fn,onClick:or,overflowedIndicatorPopupClassName:Dr}=ce,Fr=yn(ce,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),hr=(0,ct.Z)(Fr,["collapsedWidth"]),_r=yt(Un)||Hn;(de=ot.validator)===null||de===void 0||de.call(ot,{mode:yr});const Mi=(0,rt.useEvent)(function(){var gr;or==null||or.apply(void 0,arguments),(gr=ot.onClick)===null||gr===void 0||gr.call(ot)}),zi=ot.mode||yr,Gi=Fn!=null?Fn:ot.selectable,pi=Le.useMemo(()=>Yt!==void 0?Yt:xt,[xt,Yt]),Zt={horizontal:{motionName:`${un}-slide-up`},inline:(0,xe.Z)(un),other:{motionName:`${un}-zoom-big`}},Kn=Bt("menu",gt||ot.prefixCls),[fr,qn]=$t(Kn,!Te),Br=be()(`${Kn}-${ln}`,sn==null?void 0:sn.className,zt);let Kr;if(typeof _t=="function")Kr=_t;else if(_t===null||_t===!1)Kr=null;else if(ot.expandIcon===null||ot.expandIcon===!1)Kr=null;else{const gr=_t!=null?_t:ot.expandIcon;Kr=(0,st.Tm)(gr,{className:be()(`${Kn}-submenu-expand-icon`,(0,st.l$)(gr)?(le=gr.props)===null||le===void 0?void 0:le.className:"")})}const Rr=Le.useMemo(()=>({prefixCls:Kn,inlineCollapsed:pi||!1,direction:rn,firstLevel:!0,theme:ln,mode:zi,disableMenuItemTitleTooltip:lr}),[Kn,pi,rn,lr,ln]);return fr(Le.createElement(Se.Z.Provider,{value:null},Le.createElement(Xe.Provider,{value:Rr},Le.createElement(ie.ZP,Object.assign({getPopupContainer:en,overflowedIndicator:Le.createElement(qe.Z,null),overflowedIndicatorPopupClassName:be()(Kn,`${Kn}-${ln}`,Dr),mode:zi,selectable:Gi,onClick:Mi},hr,{inlineCollapsed:pi,style:Object.assign(Object.assign({},sn==null?void 0:sn.style),It),className:Br,prefixCls:Kn,direction:rn,defaultMotions:Zt,expandIcon:Kr,ref:pe,rootClassName:be()($n,qn)}),_r))))});const Pe=(0,Le.forwardRef)((ce,pe)=>{const de=(0,Le.useRef)(null),le=Le.useContext(Oe.D);return(0,Le.useImperativeHandle)(pe,()=>({menu:de.current,focus:Te=>{var ot;(ot=de.current)===null||ot===void 0||ot.focus(Te)}})),Le.createElement(Cn,Object.assign({ref:de},ce,le))});Pe.Item=ye,Pe.SubMenu=Lt,Pe.Divider=me,Pe.ItemGroup=ie.BW;var fe=Pe},28452:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return un}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(zt,It){return Le.createElement(be.Z,(0,ie.Z)({},zt,{ref:It,icon:Ue}))},ue=Le.forwardRef(Me),we=re(81893),me=re(22751),Ie=re(91034),ct=re(94184),Ke=re.n(ct),st=re(4942),dt=re(1413),Xe=re(15671),We=re(43144),ye=re(60136),it=re(51630),Lt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,qe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,rt="".concat(Lt," ").concat(qe).split(/[\s\n]+/),xe="aria-",Se="data-";function Ze(gt,zt){return gt.indexOf(zt)===0}function Ge(gt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,It;zt===!1?It={aria:!0,data:!0,attr:!0}:zt===!0?It={aria:!0}:It=(0,dt.Z)({},zt);var ln={};return Object.keys(gt).forEach(function(_t){(It.aria&&(_t==="role"||Ze(_t,xe))||It.data&&Ze(_t,Se)||It.attr&&rt.includes(_t))&&(ln[_t]=gt[_t])}),ln}var yt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},pt=yt,ft=re(81626),Ne=function(gt){(0,ye.Z)(It,gt);var zt=(0,it.Z)(It);function It(){var ln;(0,Xe.Z)(this,It);for(var _t=arguments.length,lr=new Array(_t),xt=0;xt<_t;xt++)lr[xt]=arguments[xt];return ln=zt.call.apply(zt,[this].concat(lr)),ln.state={goInputText:""},ln.getValidValue=function(){var Yt=ln.state.goInputText;return!Yt||Number.isNaN(Yt)?void 0:Number(Yt)},ln.buildOptionText=function(Yt){return"".concat(Yt," ").concat(ln.props.locale.items_per_page)},ln.changeSize=function(Yt){ln.props.changeSize(Number(Yt))},ln.handleChange=function(Yt){ln.setState({goInputText:Yt.target.value})},ln.handleBlur=function(Yt){var Un=ln.props,Hn=Un.goButton,$n=Un.quickGo,yr=Un.rootPrefixCls,Fn=ln.state.goInputText;Hn||Fn===""||(ln.setState({goInputText:""}),!(Yt.relatedTarget&&(Yt.relatedTarget.className.indexOf("".concat(yr,"-item-link"))>=0||Yt.relatedTarget.className.indexOf("".concat(yr,"-item"))>=0))&&$n(ln.getValidValue()))},ln.go=function(Yt){var Un=ln.state.goInputText;Un!==""&&(Yt.keyCode===pt.ENTER||Yt.type==="click")&&(ln.setState({goInputText:""}),ln.props.quickGo(ln.getValidValue()))},ln}return(0,We.Z)(It,[{key:"getPageSizeOptions",value:function(){var _t=this.props,lr=_t.pageSize,xt=_t.pageSizeOptions;return xt.some(function(Yt){return Yt.toString()===lr.toString()})?xt:xt.concat([lr.toString()]).sort(function(Yt,Un){var Hn=Number.isNaN(Number(Yt))?0:Number(Yt),$n=Number.isNaN(Number(Un))?0:Number(Un);return Hn-$n})}},{key:"render",value:function(){var _t=this,lr=this.props,xt=lr.pageSize,Yt=lr.locale,Un=lr.rootPrefixCls,Hn=lr.changeSize,$n=lr.quickGo,yr=lr.goButton,Fn=lr.selectComponentClass,or=lr.buildOptionText,Dr=lr.selectPrefixCls,Fr=lr.disabled,hr=this.state.goInputText,_r="".concat(Un,"-options"),Mi=Fn,zi=null,Gi=null,pi=null;if(!Hn&&!$n)return null;var Zt=this.getPageSizeOptions();if(Hn&&Mi){var Kn=Zt.map(function(fr,qn){return Le.createElement(Mi.Option,{key:qn,value:fr.toString()},(or||_t.buildOptionText)(fr))});zi=Le.createElement(Mi,{disabled:Fr,prefixCls:Dr,showSearch:!1,className:"".concat(_r,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(xt||Zt[0]).toString(),onChange:this.changeSize,getPopupContainer:function(qn){return qn.parentNode},"aria-label":Yt.page_size,defaultOpen:!1},Kn)}return $n&&(yr&&(pi=typeof yr=="boolean"?Le.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Fr,className:"".concat(_r,"-quick-jumper-button")},Yt.jump_to_confirm):Le.createElement("span",{onClick:this.go,onKeyUp:this.go},yr)),Gi=Le.createElement("div",{className:"".concat(_r,"-quick-jumper")},Yt.jump_to,Le.createElement("input",{disabled:Fr,type:"text",value:hr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Yt.page}),Yt.page,pi)),Le.createElement("li",{className:"".concat(_r)},zi,Gi)}}]),It}(Le.Component);Ne.defaultProps={pageSizeOptions:["10","20","50","100"]};var jt=Ne,bt=function(zt){var It,ln=zt.rootPrefixCls,_t=zt.page,lr=zt.active,xt=zt.className,Yt=zt.showTitle,Un=zt.onClick,Hn=zt.onKeyPress,$n=zt.itemRender,yr="".concat(ln,"-item"),Fn=Ke()(yr,"".concat(yr,"-").concat(_t),(It={},(0,st.Z)(It,"".concat(yr,"-active"),lr),(0,st.Z)(It,"".concat(yr,"-disabled"),!_t),(0,st.Z)(It,zt.className,xt),It)),or=function(){Un(_t)},Dr=function(_r){Hn(_r,Un,_t)},Fr=$n(_t,"page",Le.createElement("a",{rel:"nofollow"},_t));return Fr?Le.createElement("li",{title:Yt?_t.toString():null,className:Fn,onClick:or,onKeyPress:Dr,tabIndex:0},Fr):null},xn=bt;function Mt(){}function Gt(gt){var zt=Number(gt);return typeof zt=="number"&&!Number.isNaN(zt)&&isFinite(zt)&&Math.floor(zt)===zt}var Bn=function(zt,It,ln){return ln};function Tn(gt,zt,It){var ln=typeof gt=="undefined"?zt.pageSize:gt;return Math.floor((It.total-1)/ln)+1}var at=function(gt){(0,ye.Z)(It,gt);var zt=(0,it.Z)(It);function It(ln){var _t;(0,Xe.Z)(this,It),_t=zt.call(this,ln),_t.paginationNode=Le.createRef(),_t.getJumpPrevPage=function(){return Math.max(1,_t.state.current-(_t.props.showLessItems?3:5))},_t.getJumpNextPage=function(){return Math.min(Tn(void 0,_t.state,_t.props),_t.state.current+(_t.props.showLessItems?3:5))},_t.getItemIcon=function(Hn,$n){var yr=_t.props.prefixCls,Fn=Hn||Le.createElement("button",{type:"button","aria-label":$n,className:"".concat(yr,"-item-link")});return typeof Hn=="function"&&(Fn=Le.createElement(Hn,(0,dt.Z)({},_t.props))),Fn},_t.isValid=function(Hn){var $n=_t.props.total;return Gt(Hn)&&Hn!==_t.state.current&&Gt($n)&&$n>0},_t.shouldDisplayQuickJumper=function(){var Hn=_t.props,$n=Hn.showQuickJumper,yr=Hn.total,Fn=_t.state.pageSize;return yr<=Fn?!1:$n},_t.handleKeyDown=function(Hn){(Hn.keyCode===pt.ARROW_UP||Hn.keyCode===pt.ARROW_DOWN)&&Hn.preventDefault()},_t.handleKeyUp=function(Hn){var $n=_t.getValidValue(Hn),yr=_t.state.currentInputValue;$n!==yr&&_t.setState({currentInputValue:$n}),Hn.keyCode===pt.ENTER?_t.handleChange($n):Hn.keyCode===pt.ARROW_UP?_t.handleChange($n-1):Hn.keyCode===pt.ARROW_DOWN&&_t.handleChange($n+1)},_t.handleBlur=function(Hn){var $n=_t.getValidValue(Hn);_t.handleChange($n)},_t.changePageSize=function(Hn){var $n=_t.state.current,yr=Tn(Hn,_t.state,_t.props);$n=$n>yr?yr:$n,yr===0&&($n=_t.state.current),typeof Hn=="number"&&("pageSize"in _t.props||_t.setState({pageSize:Hn}),"current"in _t.props||_t.setState({current:$n,currentInputValue:$n})),_t.props.onShowSizeChange($n,Hn),"onChange"in _t.props&&_t.props.onChange&&_t.props.onChange($n,Hn)},_t.handleChange=function(Hn){var $n=_t.props,yr=$n.disabled,Fn=$n.onChange,or=_t.state,Dr=or.pageSize,Fr=or.current,hr=or.currentInputValue;if(_t.isValid(Hn)&&!yr){var _r=Tn(void 0,_t.state,_t.props),Mi=Hn;return Hn>_r?Mi=_r:Hn<1&&(Mi=1),"current"in _t.props||_t.setState({current:Mi}),Mi!==hr&&_t.setState({currentInputValue:Mi}),Fn(Mi,Dr),Mi}return Fr},_t.prev=function(){_t.hasPrev()&&_t.handleChange(_t.state.current-1)},_t.next=function(){_t.hasNext()&&_t.handleChange(_t.state.current+1)},_t.jumpPrev=function(){_t.handleChange(_t.getJumpPrevPage())},_t.jumpNext=function(){_t.handleChange(_t.getJumpNextPage())},_t.hasPrev=function(){return _t.state.current>1},_t.hasNext=function(){return _t.state.current<Tn(void 0,_t.state,_t.props)},_t.runIfEnter=function(Hn,$n){if(Hn.key==="Enter"||Hn.charCode===13){for(var yr=arguments.length,Fn=new Array(yr>2?yr-2:0),or=2;or<yr;or++)Fn[or-2]=arguments[or];$n.apply(void 0,Fn)}},_t.runIfEnterPrev=function(Hn){_t.runIfEnter(Hn,_t.prev)},_t.runIfEnterNext=function(Hn){_t.runIfEnter(Hn,_t.next)},_t.runIfEnterJumpPrev=function(Hn){_t.runIfEnter(Hn,_t.jumpPrev)},_t.runIfEnterJumpNext=function(Hn){_t.runIfEnter(Hn,_t.jumpNext)},_t.handleGoTO=function(Hn){(Hn.keyCode===pt.ENTER||Hn.type==="click")&&_t.handleChange(_t.state.currentInputValue)},_t.renderPrev=function(Hn){var $n=_t.props,yr=$n.prevIcon,Fn=$n.itemRender,or=Fn(Hn,"prev",_t.getItemIcon(yr,"prev page")),Dr=!_t.hasPrev();return(0,Le.isValidElement)(or)?(0,Le.cloneElement)(or,{disabled:Dr}):or},_t.renderNext=function(Hn){var $n=_t.props,yr=$n.nextIcon,Fn=$n.itemRender,or=Fn(Hn,"next",_t.getItemIcon(yr,"next page")),Dr=!_t.hasNext();return(0,Le.isValidElement)(or)?(0,Le.cloneElement)(or,{disabled:Dr}):or};var lr=ln.onChange!==Mt,xt="current"in ln;xt&&!lr&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Yt=ln.defaultCurrent;"current"in ln&&(Yt=ln.current);var Un=ln.defaultPageSize;return"pageSize"in ln&&(Un=ln.pageSize),Yt=Math.min(Yt,Tn(Un,void 0,ln)),_t.state={current:Yt,currentInputValue:Yt,pageSize:Un},_t}return(0,We.Z)(It,[{key:"componentDidUpdate",value:function(_t,lr){var xt=this.props.prefixCls;if(lr.current!==this.state.current&&this.paginationNode.current){var Yt=this.paginationNode.current.querySelector(".".concat(xt,"-item-").concat(lr.current));if(Yt&&document.activeElement===Yt){var Un;Yt==null||(Un=Yt.blur)===null||Un===void 0||Un.call(Yt)}}}},{key:"getValidValue",value:function(_t){var lr=_t.target.value,xt=Tn(void 0,this.state,this.props),Yt=this.state.currentInputValue,Un;return lr===""?Un=lr:Number.isNaN(Number(lr))?Un=Yt:lr>=xt?Un=xt:Un=Number(lr),Un}},{key:"getShowSizeChanger",value:function(){var _t=this.props,lr=_t.showSizeChanger,xt=_t.total,Yt=_t.totalBoundaryShowSizeChanger;return typeof lr!="undefined"?lr:xt>Yt}},{key:"render",value:function(){var _t=this.props,lr=_t.prefixCls,xt=_t.className,Yt=_t.style,Un=_t.disabled,Hn=_t.hideOnSinglePage,$n=_t.total,yr=_t.locale,Fn=_t.showQuickJumper,or=_t.showLessItems,Dr=_t.showTitle,Fr=_t.showTotal,hr=_t.simple,_r=_t.itemRender,Mi=_t.showPrevNextJumpers,zi=_t.jumpPrevIcon,Gi=_t.jumpNextIcon,pi=_t.selectComponentClass,Zt=_t.selectPrefixCls,Kn=_t.pageSizeOptions,fr=this.state,qn=fr.current,Br=fr.pageSize,Kr=fr.currentInputValue;if(Hn===!0&&$n<=Br)return null;var Rr=Tn(void 0,this.state,this.props),gr=[],mt=null,Ot=null,Xt=null,kn=null,lt=null,Kt=Fn&&Fn.goButton,mn=or?1:2,nn=qn-1>0?qn-1:0,In=qn+1<Rr?qn+1:Rr,Pn=Ge(this.props,{aria:!0,data:!0}),vr=Fr&&Le.createElement("li",{className:"".concat(lr,"-total-text")},Fr($n,[$n===0?0:(qn-1)*Br+1,qn*Br>$n?$n:qn*Br]));if(hr){Kt&&(typeof Kt=="boolean"?lt=Le.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},yr.jump_to_confirm):lt=Le.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Kt),lt=Le.createElement("li",{title:Dr?"".concat(yr.jump_to).concat(qn,"/").concat(Rr):null,className:"".concat(lr,"-simple-pager")},lt));var ni=this.renderPrev(nn);return Le.createElement("ul",(0,ie.Z)({className:Ke()(lr,"".concat(lr,"-simple"),(0,st.Z)({},"".concat(lr,"-disabled"),Un),xt),style:Yt,ref:this.paginationNode},Pn),vr,ni?Le.createElement("li",{title:Dr?yr.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:Ke()("".concat(lr,"-prev"),(0,st.Z)({},"".concat(lr,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},ni):null,Le.createElement("li",{title:Dr?"".concat(qn,"/").concat(Rr):null,className:"".concat(lr,"-simple-pager")},Le.createElement("input",{type:"text",value:Kr,disabled:Un,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Le.createElement("span",{className:"".concat(lr,"-slash")},"/"),Rr),Le.createElement("li",{title:Dr?yr.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:Ke()("".concat(lr,"-next"),(0,st.Z)({},"".concat(lr,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(In)),lt)}if(Rr<=3+mn*2){var zr={locale:yr,rootPrefixCls:lr,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Dr,itemRender:_r};Rr||gr.push(Le.createElement(xn,(0,ie.Z)({},zr,{key:"noPager",page:1,className:"".concat(lr,"-item-disabled")})));for(var Pr=1;Pr<=Rr;Pr+=1){var Yr=qn===Pr;gr.push(Le.createElement(xn,(0,ie.Z)({},zr,{key:Pr,page:Pr,active:Yr})))}}else{var Qr=or?yr.prev_3:yr.prev_5,Ht=or?yr.next_3:yr.next_5,Tt=_r(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(zi,"prev page")),Jt=_r(this.getJumpNextPage(),"jump-next",this.getItemIcon(Gi,"next page"));Mi&&(mt=Tt?Le.createElement("li",{title:Dr?Qr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:Ke()("".concat(lr,"-jump-prev"),(0,st.Z)({},"".concat(lr,"-jump-prev-custom-icon"),!!zi))},Tt):null,Ot=Jt?Le.createElement("li",{title:Dr?Ht:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:Ke()("".concat(lr,"-jump-next"),(0,st.Z)({},"".concat(lr,"-jump-next-custom-icon"),!!Gi))},Jt):null),kn=Le.createElement(xn,{locale:yr,last:!0,rootPrefixCls:lr,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Rr,page:Rr,active:!1,showTitle:Dr,itemRender:_r}),Xt=Le.createElement(xn,{locale:yr,rootPrefixCls:lr,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Dr,itemRender:_r});var er=Math.max(1,qn-mn),kr=Math.min(qn+mn,Rr);qn-1<=mn&&(kr=1+mn*2),Rr-qn<=mn&&(er=Rr-mn*2);for(var Rn=er;Rn<=kr;Rn+=1){var Jn=qn===Rn;gr.push(Le.createElement(xn,{locale:yr,rootPrefixCls:lr,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Rn,page:Rn,active:Jn,showTitle:Dr,itemRender:_r}))}qn-1>=mn*2&&qn!==3&&(gr[0]=(0,Le.cloneElement)(gr[0],{className:"".concat(lr,"-item-after-jump-prev")}),gr.unshift(mt)),Rr-qn>=mn*2&&qn!==Rr-2&&(gr[gr.length-1]=(0,Le.cloneElement)(gr[gr.length-1],{className:"".concat(lr,"-item-before-jump-next")}),gr.push(Ot)),er!==1&&gr.unshift(Xt),kr!==Rr&&gr.push(kn)}var sr=!this.hasPrev()||!Rr,Ir=!this.hasNext()||!Rr,Xr=this.renderPrev(nn),Wn=this.renderNext(In);return Le.createElement("ul",(0,ie.Z)({className:Ke()(lr,xt,(0,st.Z)({},"".concat(lr,"-disabled"),Un)),style:Yt,ref:this.paginationNode},Pn),vr,Xr?Le.createElement("li",{title:Dr?yr.prev_page:null,onClick:this.prev,tabIndex:sr?null:0,onKeyPress:this.runIfEnterPrev,className:Ke()("".concat(lr,"-prev"),(0,st.Z)({},"".concat(lr,"-disabled"),sr)),"aria-disabled":sr},Xr):null,gr,Wn?Le.createElement("li",{title:Dr?yr.next_page:null,onClick:this.next,tabIndex:Ir?null:0,onKeyPress:this.runIfEnterNext,className:Ke()("".concat(lr,"-next"),(0,st.Z)({},"".concat(lr,"-disabled"),Ir)),"aria-disabled":Ir},Wn):null,Le.createElement(jt,{disabled:Un,locale:yr,rootPrefixCls:lr,selectComponentClass:pi,selectPrefixCls:Zt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:qn,pageSize:Br,pageSizeOptions:Kn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Kt}))}}],[{key:"getDerivedStateFromProps",value:function(_t,lr){var xt={};if("current"in _t&&(xt.current=_t.current,_t.current!==lr.current&&(xt.currentInputValue=xt.current)),"pageSize"in _t&&_t.pageSize!==lr.pageSize){var Yt=lr.current,Un=Tn(_t.pageSize,lr,_t);Yt=Yt>Un?Un:Yt,"current"in _t||(xt.current=Yt,xt.currentInputValue=Yt),xt.pageSize=_t.pageSize}return xt}}]),It}(Le.Component);at.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Mt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Mt,locale:ft.Z,style:{},itemRender:Bn,totalBoundaryShowSizeChanger:50};var Ae=at,St=re(62906),cn=re(53124),Pt=re(98675),ht=re(25378),Et=re(10110),Qt=re(11713);const ir=gt=>Le.createElement(Qt.default,Object.assign({},gt,{showSearch:!0,size:"small"})),On=gt=>Le.createElement(Qt.default,Object.assign({},gt,{showSearch:!0,size:"middle"}));ir.Option=Qt.default.Option,On.Option=Qt.default.Option;var $t=re(47673),yn=re(14747),Qn=re(67968),Cn=re(45503);const Pe=gt=>{const{componentCls:zt}=gt;return{[`${zt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${zt}-item-link`]:{color:gt.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${zt}-item-link`]:{color:gt.colorTextDisabled,cursor:"not-allowed"}}},[`&${zt}-disabled`]:{cursor:"not-allowed",[`${zt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:gt.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:gt.colorBorder,backgroundColor:gt.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:gt.itemActiveBgDisabled},a:{color:gt.itemActiveColorDisabled}}},[`${zt}-item-link`]:{color:gt.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${zt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${zt}-simple-pager`]:{color:gt.colorTextDisabled},[`${zt}-jump-prev, ${zt}-jump-next`]:{[`${zt}-item-link-icon`]:{opacity:0},[`${zt}-item-ellipsis`]:{opacity:1}}},[`&${zt}-simple`]:{[`${zt}-prev, ${zt}-next`]:{[`&${zt}-disabled ${zt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},fe=gt=>{const{componentCls:zt}=gt;return{[`&${zt}-mini ${zt}-total-text, &${zt}-mini ${zt}-simple-pager`]:{height:gt.itemSizeSM,lineHeight:`${gt.itemSizeSM}px`},[`&${zt}-mini ${zt}-item`]:{minWidth:gt.itemSizeSM,height:gt.itemSizeSM,margin:0,lineHeight:`${gt.itemSizeSM-2}px`},[`&${zt}-mini:not(${zt}-disabled) ${zt}-item:not(${zt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:gt.colorBgTextHover},"&:active":{backgroundColor:gt.colorBgTextActive}},[`&${zt}-mini ${zt}-prev, &${zt}-mini ${zt}-next`]:{minWidth:gt.itemSizeSM,height:gt.itemSizeSM,margin:0,lineHeight:`${gt.itemSizeSM}px`},[`&${zt}-mini:not(${zt}-disabled)`]:{[`${zt}-prev, ${zt}-next`]:{[`&:hover ${zt}-item-link`]:{backgroundColor:gt.colorBgTextHover},[`&:active ${zt}-item-link`]:{backgroundColor:gt.colorBgTextActive},[`&${zt}-disabled:hover ${zt}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${zt}-mini ${zt}-prev ${zt}-item-link,
|
|
|
&${zt}-mini ${zt}-next ${zt}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:gt.itemSizeSM,lineHeight:`${gt.itemSizeSM}px`}},[`&${zt}-mini ${zt}-jump-prev, &${zt}-mini ${zt}-jump-next`]:{height:gt.itemSizeSM,marginInlineEnd:0,lineHeight:`${gt.itemSizeSM}px`},[`&${zt}-mini ${zt}-options`]:{marginInlineStart:gt.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:gt.miniOptionsSizeChangerTop},"&-quick-jumper":{height:gt.itemSizeSM,lineHeight:`${gt.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,$t.x0)(gt)),{width:gt.paginationMiniQuickJumperInputWidth,height:gt.controlHeightSM})}}}},ce=gt=>{const{componentCls:zt}=gt;return{[`
|
|
|
&${zt}-simple ${zt}-prev,
|
|
|
&${zt}-simple ${zt}-next
|
|
|
`]:{height:gt.itemSizeSM,lineHeight:`${gt.itemSizeSM}px`,verticalAlign:"top",[`${zt}-item-link`]:{height:gt.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:gt.colorBgTextHover},"&:active":{backgroundColor:gt.colorBgTextActive},"&::after":{height:gt.itemSizeSM,lineHeight:`${gt.itemSizeSM}px`}}},[`&${zt}-simple ${zt}-simple-pager`]:{display:"inline-block",height:gt.itemSizeSM,marginInlineEnd:gt.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:gt.marginXS,padding:`0 ${gt.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:gt.itemInputBg,border:`${gt.lineWidth}px ${gt.lineType} ${gt.colorBorder}`,borderRadius:gt.borderRadius,outline:"none",transition:`border-color ${gt.motionDurationMid}`,color:"inherit","&:hover":{borderColor:gt.colorPrimary},"&:focus":{borderColor:gt.colorPrimaryHover,boxShadow:`${gt.inputOutlineOffset}px 0 ${gt.controlOutlineWidth}px ${gt.controlOutline}`},"&[disabled]":{color:gt.colorTextDisabled,backgroundColor:gt.colorBgContainerDisabled,borderColor:gt.colorBorder,cursor:"not-allowed"}}}}},pe=gt=>{const{componentCls:zt}=gt;return{[`${zt}-jump-prev, ${zt}-jump-next`]:{outline:0,[`${zt}-item-container`]:{position:"relative",[`${zt}-item-link-icon`]:{color:gt.colorPrimary,fontSize:gt.fontSizeSM,opacity:0,transition:`all ${gt.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${zt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:gt.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:gt.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:gt.paginationEllipsisTextIndent,opacity:1,transition:`all ${gt.motionDurationMid}`}},"&:hover":{[`${zt}-item-link-icon`]:{opacity:1},[`${zt}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${zt}-prev,
|
|
|
${zt}-jump-prev,
|
|
|
${zt}-jump-next
|
|
|
`]:{marginInlineEnd:gt.marginXS},[`
|
|
|
${zt}-prev,
|
|
|
${zt}-next,
|
|
|
${zt}-jump-prev,
|
|
|
${zt}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:gt.itemSize,height:gt.itemSize,color:gt.colorText,fontFamily:gt.fontFamily,lineHeight:`${gt.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:gt.borderRadius,cursor:"pointer",transition:`all ${gt.motionDurationMid}`},[`${zt}-prev, ${zt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:gt.colorText,cursor:"pointer",userSelect:"none"},[`${zt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:gt.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${gt.lineWidth}px ${gt.lineType} transparent`,borderRadius:gt.borderRadius,outline:"none",transition:`all ${gt.motionDurationMid}`},[`&:hover ${zt}-item-link`]:{backgroundColor:gt.colorBgTextHover},[`&:active ${zt}-item-link`]:{backgroundColor:gt.colorBgTextActive},[`&${zt}-disabled:hover`]:{[`${zt}-item-link`]:{backgroundColor:"transparent"}}},[`${zt}-slash`]:{marginInlineEnd:gt.paginationSlashMarginInlineEnd,marginInlineStart:gt.paginationSlashMarginInlineStart},[`${zt}-options`]:{display:"inline-block",marginInlineStart:gt.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:gt.controlHeight,marginInlineStart:gt.marginXS,lineHeight:`${gt.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,$t.ik)(gt)),{width:gt.controlHeightLG*1.25,height:gt.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:gt.marginXS,marginInlineEnd:gt.marginXS})}}}},de=gt=>{const{componentCls:zt}=gt;return{[`${zt}-item`]:{display:"inline-block",minWidth:gt.itemSize,height:gt.itemSize,marginInlineEnd:gt.marginXS,fontFamily:gt.fontFamily,lineHeight:`${gt.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${gt.lineWidth}px ${gt.lineType} transparent`,borderRadius:gt.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${gt.paginationItemPaddingInline}px`,color:gt.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${zt}-item-active)`]:{"&:hover":{transition:`all ${gt.motionDurationMid}`,backgroundColor:gt.colorBgTextHover},"&:active":{backgroundColor:gt.colorBgTextActive}},"&-active":{fontWeight:gt.fontWeightStrong,backgroundColor:gt.itemActiveBg,borderColor:gt.colorPrimary,a:{color:gt.colorPrimary},"&:hover":{borderColor:gt.colorPrimaryHover},"&:hover a":{color:gt.colorPrimaryHover}}}}},le=gt=>{const{componentCls:zt}=gt;return{[zt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,yn.Wf)(gt)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${zt}-total-text`]:{display:"inline-block",height:gt.itemSize,marginInlineEnd:gt.marginXS,lineHeight:`${gt.itemSize-2}px`,verticalAlign:"middle"}}),de(gt)),pe(gt)),ce(gt)),fe(gt)),Pe(gt)),{[`@media only screen and (max-width: ${gt.screenLG}px)`]:{[`${zt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${gt.screenSM}px)`]:{[`${zt}-options`]:{display:"none"}}}),[`&${gt.componentCls}-rtl`]:{direction:"rtl"}}},Te=gt=>{const{componentCls:zt}=gt;return{[`${zt}${zt}-disabled:not(${zt}-mini)`]:{"&, &:hover":{[`${zt}-item-link`]:{borderColor:gt.colorBorder}},"&:focus-visible":{[`${zt}-item-link`]:{borderColor:gt.colorBorder}},[`${zt}-item, ${zt}-item-link`]:{backgroundColor:gt.colorBgContainerDisabled,borderColor:gt.colorBorder,[`&:hover:not(${zt}-item-active)`]:{backgroundColor:gt.colorBgContainerDisabled,borderColor:gt.colorBorder,a:{color:gt.colorTextDisabled}},[`&${zt}-item-active`]:{backgroundColor:gt.itemActiveBgDisabled}},[`${zt}-prev, ${zt}-next`]:{"&:hover button":{backgroundColor:gt.colorBgContainerDisabled,borderColor:gt.colorBorder,color:gt.colorTextDisabled},[`${zt}-item-link`]:{backgroundColor:gt.colorBgContainerDisabled,borderColor:gt.colorBorder}}},[`${zt}:not(${zt}-mini)`]:{[`${zt}-prev, ${zt}-next`]:{"&:hover button":{borderColor:gt.colorPrimaryHover,backgroundColor:gt.itemBg},[`${zt}-item-link`]:{backgroundColor:gt.itemLinkBg,borderColor:gt.colorBorder},[`&:hover ${zt}-item-link`]:{borderColor:gt.colorPrimary,backgroundColor:gt.itemBg,color:gt.colorPrimary},[`&${zt}-disabled`]:{[`${zt}-item-link`]:{borderColor:gt.colorBorder,color:gt.colorTextDisabled}}},[`${zt}-item`]:{backgroundColor:gt.itemBg,border:`${gt.lineWidth}px ${gt.lineType} ${gt.colorBorder}`,[`&:hover:not(${zt}-item-active)`]:{borderColor:gt.colorPrimary,backgroundColor:gt.itemBg,a:{color:gt.colorPrimary}},"&-active":{borderColor:gt.colorPrimary}}}}},ot=gt=>{const{componentCls:zt}=gt;return{[`${zt}:not(${zt}-disabled)`]:{[`${zt}-item`]:Object.assign({},(0,yn.Qy)(gt)),[`${zt}-jump-prev, ${zt}-jump-next`]:{"&:focus-visible":Object.assign({[`${zt}-item-link-icon`]:{opacity:1},[`${zt}-item-ellipsis`]:{opacity:0}},(0,yn.oN)(gt))},[`${zt}-prev, ${zt}-next`]:{[`&:focus-visible ${zt}-item-link`]:Object.assign({},(0,yn.oN)(gt))}}}};var Bt=(0,Qn.Z)("Pagination",gt=>{const zt=(0,Cn.TS)(gt,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:gt.marginXXS/2,paginationMiniQuickJumperInputWidth:gt.controlHeightLG*1.1,paginationItemPaddingInline:gt.marginXXS*1.5,paginationEllipsisLetterSpacing:gt.marginXXS/2,paginationSlashMarginInlineStart:gt.marginXXS,paginationSlashMarginInlineEnd:gt.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,$t.e5)(gt),(0,$t.TM)(gt));return[le(zt),ot(zt),gt.wireframe&&Te(zt)]},gt=>({itemBg:gt.colorBgContainer,itemSize:gt.controlHeight,itemSizeSM:gt.controlHeightSM,itemActiveBg:gt.colorBgContainer,itemLinkBg:gt.colorBgContainer,itemActiveColorDisabled:gt.colorTextDisabled,itemActiveBgDisabled:gt.controlItemBgActiveDisabled,itemInputBg:gt.colorBgContainer,miniOptionsSizeChangerTop:0})),en=function(gt,zt){var It={};for(var ln in gt)Object.prototype.hasOwnProperty.call(gt,ln)&&zt.indexOf(ln)<0&&(It[ln]=gt[ln]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,ln=Object.getOwnPropertySymbols(gt);_t<ln.length;_t++)zt.indexOf(ln[_t])<0&&Object.prototype.propertyIsEnumerable.call(gt,ln[_t])&&(It[ln[_t]]=gt[ln[_t]]);return It},sn=gt=>{const{prefixCls:zt,selectPrefixCls:It,className:ln,rootClassName:_t,style:lr,size:xt,locale:Yt,selectComponentClass:Un,responsive:Hn,showSizeChanger:$n}=gt,yr=en(gt,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Fn}=(0,ht.Z)(Hn),{getPrefixCls:or,direction:Dr,pagination:Fr={}}=Le.useContext(cn.E_),hr=or("pagination",zt),[_r,Mi]=Bt(hr),zi=$n!=null?$n:Fr.showSizeChanger,Gi=Le.useMemo(()=>{const Rr=Le.createElement("span",{className:`${hr}-item-ellipsis`},"\u2022\u2022\u2022"),gr=Le.createElement("button",{className:`${hr}-item-link`,type:"button",tabIndex:-1},Dr==="rtl"?Le.createElement(Ie.Z,null):Le.createElement(me.Z,null)),mt=Le.createElement("button",{className:`${hr}-item-link`,type:"button",tabIndex:-1},Dr==="rtl"?Le.createElement(me.Z,null):Le.createElement(Ie.Z,null)),Ot=Le.createElement("a",{className:`${hr}-item-link`},Le.createElement("div",{className:`${hr}-item-container`},Dr==="rtl"?Le.createElement(we.Z,{className:`${hr}-item-link-icon`}):Le.createElement(ue,{className:`${hr}-item-link-icon`}),Rr)),Xt=Le.createElement("a",{className:`${hr}-item-link`},Le.createElement("div",{className:`${hr}-item-container`},Dr==="rtl"?Le.createElement(ue,{className:`${hr}-item-link-icon`}):Le.createElement(we.Z,{className:`${hr}-item-link-icon`}),Rr));return{prevIcon:gr,nextIcon:mt,jumpPrevIcon:Ot,jumpNextIcon:Xt}},[Dr,hr]),[pi]=(0,Et.Z)("Pagination",St.Z),Zt=Object.assign(Object.assign({},pi),Yt),Kn=(0,Pt.Z)(xt),fr=Kn==="small"||!!(Fn&&!Kn&&Hn),qn=or("select",It),Br=Ke()({[`${hr}-mini`]:fr,[`${hr}-rtl`]:Dr==="rtl"},Fr==null?void 0:Fr.className,ln,_t,Mi),Kr=Object.assign(Object.assign({},Fr==null?void 0:Fr.style),lr);return _r(Le.createElement(Ae,Object.assign({},Gi,yr,{style:Kr,prefixCls:hr,selectPrefixCls:qn,className:Br,selectComponentClass:Un||(fr?ir:On),locale:Zt,showSizeChanger:zi})))},un=sn},38703:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return lr}});var ie=re(67294),Le=re(87725),Oe=re(18299),Ue=re(16646),be=re(73475),Me=re(94184),ue=re.n(Me),we=re(10366),me=re(53124),Ie=re(87462),ct=re(1413),Ke=re(45987),st={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},dt=function(){var Yt=(0,ie.useRef)([]),Un=(0,ie.useRef)(null);return(0,ie.useEffect)(function(){var Hn=Date.now(),$n=!1;Yt.current.forEach(function(yr){if(yr){$n=!0;var Fn=yr.style;Fn.transitionDuration=".3s, .3s, .3s, .06s",Un.current&&Hn-Un.current<100&&(Fn.transitionDuration="0s, 0s")}}),$n&&(Un.current=Date.now())}),Yt.current},Xe=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],We=function(Yt){var Un=(0,ct.Z)((0,ct.Z)({},st),Yt),Hn=Un.className,$n=Un.percent,yr=Un.prefixCls,Fn=Un.strokeColor,or=Un.strokeLinecap,Dr=Un.strokeWidth,Fr=Un.style,hr=Un.trailColor,_r=Un.trailWidth,Mi=Un.transition,zi=(0,Ke.Z)(Un,Xe);delete zi.gapPosition;var Gi=Array.isArray($n)?$n:[$n],pi=Array.isArray(Fn)?Fn:[Fn],Zt=dt(),Kn=Dr/2,fr=100-Dr/2,qn="M ".concat(or==="round"?Kn:0,",").concat(Kn,`
|
|
|
L `).concat(or==="round"?fr:100,",").concat(Kn),Br="0 0 100 ".concat(Dr),Kr=0;return ie.createElement("svg",(0,Ie.Z)({className:ue()("".concat(yr,"-line"),Hn),viewBox:Br,preserveAspectRatio:"none",style:Fr},zi),ie.createElement("path",{className:"".concat(yr,"-line-trail"),d:qn,strokeLinecap:or,stroke:hr,strokeWidth:_r||Dr,fillOpacity:"0"}),Gi.map(function(Rr,gr){var mt=1;switch(or){case"round":mt=1-Dr/100;break;case"square":mt=1-Dr/2/100;break;default:mt=1;break}var Ot={strokeDasharray:"".concat(Rr*mt,"px, 100px"),strokeDashoffset:"-".concat(Kr,"px"),transition:Mi||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Xt=pi[gr]||pi[pi.length-1];return Kr+=Rr,ie.createElement("path",{key:gr,className:"".concat(yr,"-line-path"),d:qn,strokeLinecap:or,stroke:Xt,strokeWidth:Dr,fillOpacity:"0",ref:function(lt){Zt[gr]=lt},style:Ot})}))},ye=We,it=re(71002),Lt=re(97685),qe=re(98924),rt=0,xe=(0,qe.Z)();function Se(){var xt;return xe?(xt=rt,rt+=1):xt="TEST_OR_SSR",xt}var Ze=function(xt){var Yt=ie.useState(),Un=(0,Lt.Z)(Yt,2),Hn=Un[0],$n=Un[1];return ie.useEffect(function(){$n("rc_progress_".concat(Se()))},[]),xt||Hn},Ge=function(Yt){var Un=Yt.bg,Hn=Yt.children;return ie.createElement("div",{style:{width:"100%",height:"100%",background:Un}},Hn)};function yt(xt,Yt){return Object.keys(xt).map(function(Un){var Hn=parseFloat(Un),$n="".concat(Math.floor(Hn*Yt),"%");return"".concat(xt[Un]," ").concat($n)})}var pt=ie.forwardRef(function(xt,Yt){var Un=xt.prefixCls,Hn=xt.color,$n=xt.gradientId,yr=xt.radius,Fn=xt.style,or=xt.ptg,Dr=xt.strokeLinecap,Fr=xt.strokeWidth,hr=xt.size,_r=xt.gapDegree,Mi=Hn&&(0,it.Z)(Hn)==="object",zi=Mi?"#FFF":void 0,Gi=hr/2,pi=ie.createElement("circle",{className:"".concat(Un,"-circle-path"),r:yr,cx:Gi,cy:Gi,stroke:zi,strokeLinecap:Dr,strokeWidth:Fr,opacity:or===0?0:1,style:Fn,ref:Yt});if(!Mi)return pi;var Zt="".concat($n,"-conic"),Kn=_r?"".concat(180+_r/2,"deg"):"0deg",fr=yt(Hn,(360-_r)/360),qn=yt(Hn,1),Br="conic-gradient(from ".concat(Kn,", ").concat(fr.join(", "),")"),Kr="linear-gradient(to ".concat(_r?"bottom":"top",", ").concat(qn.join(", "),")");return ie.createElement(ie.Fragment,null,ie.createElement("mask",{id:Zt},pi),ie.createElement("foreignObject",{x:0,y:0,width:hr,height:hr,mask:"url(#".concat(Zt,")")},ie.createElement(Ge,{bg:Kr},ie.createElement(Ge,{bg:Br}))))}),ft=pt,Ne=100,jt=function(Yt,Un,Hn,$n,yr,Fn,or,Dr,Fr,hr){var _r=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Mi=Hn/100*360*((360-Fn)/360),zi=Fn===0?0:{bottom:0,top:180,left:90,right:-90}[or],Gi=(100-$n)/100*Un;Fr==="round"&&$n!==100&&(Gi+=hr/2,Gi>=Un&&(Gi=Un-.01));var pi=Ne/2;return{stroke:typeof Dr=="string"?Dr:void 0,strokeDasharray:"".concat(Un,"px ").concat(Yt),strokeDashoffset:Gi+_r,transform:"rotate(".concat(yr+Mi+zi,"deg)"),transformOrigin:"".concat(pi,"px ").concat(pi,"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}},bt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function xn(xt){var Yt=xt!=null?xt:[];return Array.isArray(Yt)?Yt:[Yt]}var Mt=function(Yt){var Un=(0,ct.Z)((0,ct.Z)({},st),Yt),Hn=Un.id,$n=Un.prefixCls,yr=Un.steps,Fn=Un.strokeWidth,or=Un.trailWidth,Dr=Un.gapDegree,Fr=Dr===void 0?0:Dr,hr=Un.gapPosition,_r=Un.trailColor,Mi=Un.strokeLinecap,zi=Un.style,Gi=Un.className,pi=Un.strokeColor,Zt=Un.percent,Kn=(0,Ke.Z)(Un,bt),fr=Ne/2,qn=Ze(Hn),Br="".concat(qn,"-gradient"),Kr=fr-Fn/2,Rr=Math.PI*2*Kr,gr=Fr>0?90+Fr/2:-90,mt=Rr*((360-Fr)/360),Ot=(0,it.Z)(yr)==="object"?yr:{count:yr,space:2},Xt=Ot.count,kn=Ot.space,lt=xn(Zt),Kt=xn(pi),mn=Kt.find(function(Pr){return Pr&&(0,it.Z)(Pr)==="object"}),nn=mn&&(0,it.Z)(mn)==="object",In=nn?"butt":Mi,Pn=jt(Rr,mt,0,100,gr,Fr,hr,_r,In,Fn),vr=dt(),ni=function(){var Yr=0;return lt.map(function(Qr,Ht){var Tt=Kt[Ht]||Kt[Kt.length-1],Jt=jt(Rr,mt,Yr,Qr,gr,Fr,hr,Tt,In,Fn);return Yr+=Qr,ie.createElement(ft,{key:Ht,color:Tt,ptg:Qr,radius:Kr,prefixCls:$n,gradientId:Br,style:Jt,strokeLinecap:In,strokeWidth:Fn,gapDegree:Fr,ref:function(kr){vr[Ht]=kr},size:Ne})}).reverse()},zr=function(){var Yr=Math.round(Xt*(lt[0]/100)),Qr=100/Xt,Ht=0;return new Array(Xt).fill(null).map(function(Tt,Jt){var er=Jt<=Yr-1?Kt[0]:_r,kr=er&&(0,it.Z)(er)==="object"?"url(#".concat(Br,")"):void 0,Rn=jt(Rr,mt,Ht,Qr,gr,Fr,hr,er,"butt",Fn,kn);return Ht+=(mt-Rn.strokeDashoffset+kn)*100/mt,ie.createElement("circle",{key:Jt,className:"".concat($n,"-circle-path"),r:Kr,cx:fr,cy:fr,stroke:kr,strokeWidth:Fn,opacity:1,style:Rn,ref:function(sr){vr[Jt]=sr}})})};return ie.createElement("svg",(0,Ie.Z)({className:ue()("".concat($n,"-circle"),Gi),viewBox:"0 0 ".concat(Ne," ").concat(Ne),style:zi,id:Hn,role:"presentation"},Kn),!Xt&&ie.createElement("circle",{className:"".concat($n,"-circle-trail"),r:Kr,cx:fr,cy:fr,stroke:_r,strokeLinecap:In,strokeWidth:or||Fn,style:Pn}),Xt?zr():ni())},Gt=Mt,Bn={Line:ye,Circle:Gt},Tn=re(83062),at=re(16397);function Ae(xt){return!xt||xt<0?0:xt>100?100:xt}function St(xt){let{success:Yt,successPercent:Un}=xt,Hn=Un;return Yt&&"progress"in Yt&&(Hn=Yt.progress),Yt&&"percent"in Yt&&(Hn=Yt.percent),Hn}const cn=xt=>{let{percent:Yt,success:Un,successPercent:Hn}=xt;const $n=Ae(St({success:Un,successPercent:Hn}));return[$n,Ae(Ae(Yt)-$n)]},Pt=xt=>{let{success:Yt={},strokeColor:Un}=xt;const{strokeColor:Hn}=Yt;return[Hn||at.presetPrimaryColors.green,Un||null]},ht=(xt,Yt,Un)=>{var Hn,$n,yr,Fn;let or=-1,Dr=-1;if(Yt==="step"){const Fr=Un.steps,hr=Un.strokeWidth;typeof xt=="string"||typeof xt=="undefined"?(or=xt==="small"?2:14,Dr=hr!=null?hr:8):typeof xt=="number"?[or,Dr]=[xt,xt]:[or=14,Dr=8]=xt,or*=Fr}else if(Yt==="line"){const Fr=Un==null?void 0:Un.strokeWidth;typeof xt=="string"||typeof xt=="undefined"?Dr=Fr||(xt==="small"?6:8):typeof xt=="number"?[or,Dr]=[xt,xt]:[or=-1,Dr=8]=xt}else(Yt==="circle"||Yt==="dashboard")&&(typeof xt=="string"||typeof xt=="undefined"?[or,Dr]=xt==="small"?[60,60]:[120,120]:typeof xt=="number"?[or,Dr]=[xt,xt]:(or=($n=(Hn=xt[0])!==null&&Hn!==void 0?Hn:xt[1])!==null&&$n!==void 0?$n:120,Dr=(Fn=(yr=xt[0])!==null&&yr!==void 0?yr:xt[1])!==null&&Fn!==void 0?Fn:120));return[or,Dr]},Et=3,Qt=xt=>Et/xt*100;var On=xt=>{const{prefixCls:Yt,trailColor:Un=null,strokeLinecap:Hn="round",gapPosition:$n,gapDegree:yr,width:Fn=120,type:or,children:Dr,success:Fr,size:hr=Fn}=xt,[_r,Mi]=ht(hr,"circle");let{strokeWidth:zi}=xt;zi===void 0&&(zi=Math.max(Qt(_r),6));const Gi={width:_r,height:Mi,fontSize:_r*.15+6},pi=ie.useMemo(()=>{if(yr||yr===0)return yr;if(or==="dashboard")return 75},[yr,or]),Zt=$n||or==="dashboard"&&"bottom"||void 0,Kn=Object.prototype.toString.call(xt.strokeColor)==="[object Object]",fr=Pt({success:Fr,strokeColor:xt.strokeColor}),qn=ue()(`${Yt}-inner`,{[`${Yt}-circle-gradient`]:Kn}),Br=ie.createElement(Gt,{percent:cn(xt),strokeWidth:zi,trailWidth:zi,strokeColor:fr,strokeLinecap:Hn,trailColor:Un,prefixCls:Yt,gapDegree:pi,gapPosition:Zt});return ie.createElement("div",{className:qn,style:Gi},_r<=20?ie.createElement(Tn.Z,{title:Dr},ie.createElement("span",null,Br)):ie.createElement(ie.Fragment,null,Br,Dr))},$t=function(xt,Yt){var Un={};for(var Hn in xt)Object.prototype.hasOwnProperty.call(xt,Hn)&&Yt.indexOf(Hn)<0&&(Un[Hn]=xt[Hn]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $n=0,Hn=Object.getOwnPropertySymbols(xt);$n<Hn.length;$n++)Yt.indexOf(Hn[$n])<0&&Object.prototype.propertyIsEnumerable.call(xt,Hn[$n])&&(Un[Hn[$n]]=xt[Hn[$n]]);return Un};const yn=xt=>{let Yt=[];return Object.keys(xt).forEach(Un=>{const Hn=parseFloat(Un.replace(/%/g,""));isNaN(Hn)||Yt.push({key:Hn,value:xt[Un]})}),Yt=Yt.sort((Un,Hn)=>Un.key-Hn.key),Yt.map(Un=>{let{key:Hn,value:$n}=Un;return`${$n} ${Hn}%`}).join(", ")},Qn=(xt,Yt)=>{const{from:Un=at.presetPrimaryColors.blue,to:Hn=at.presetPrimaryColors.blue,direction:$n=Yt==="rtl"?"to left":"to right"}=xt,yr=$t(xt,["from","to","direction"]);if(Object.keys(yr).length!==0){const Fn=yn(yr);return{backgroundImage:`linear-gradient(${$n}, ${Fn})`}}return{backgroundImage:`linear-gradient(${$n}, ${Un}, ${Hn})`}};var Pe=xt=>{const{prefixCls:Yt,direction:Un,percent:Hn,size:$n,strokeWidth:yr,strokeColor:Fn,strokeLinecap:or="round",children:Dr,trailColor:Fr=null,success:hr}=xt,_r=Fn&&typeof Fn!="string"?Qn(Fn,Un):{backgroundColor:Fn},Mi=or==="square"||or==="butt"?0:void 0,zi={backgroundColor:Fr||void 0,borderRadius:Mi},Gi=$n!=null?$n:[-1,yr||($n==="small"?6:8)],[pi,Zt]=ht(Gi,"line",{strokeWidth:yr}),Kn=Object.assign({width:`${Ae(Hn)}%`,height:Zt,borderRadius:Mi},_r),fr=St(xt),qn={width:`${Ae(fr)}%`,height:Zt,borderRadius:Mi,backgroundColor:hr==null?void 0:hr.strokeColor},Br={width:pi<0?"100%":pi,height:Zt};return ie.createElement(ie.Fragment,null,ie.createElement("div",{className:`${Yt}-outer`,style:Br},ie.createElement("div",{className:`${Yt}-inner`,style:zi},ie.createElement("div",{className:`${Yt}-bg`,style:Kn}),fr!==void 0?ie.createElement("div",{className:`${Yt}-success-bg`,style:qn}):null)),Dr)},ce=xt=>{const{size:Yt,steps:Un,percent:Hn=0,strokeWidth:$n=8,strokeColor:yr,trailColor:Fn=null,prefixCls:or,children:Dr}=xt,Fr=Math.round(Un*(Hn/100)),hr=Yt==="small"?2:14,_r=Yt!=null?Yt:[hr,$n],[Mi,zi]=ht(_r,"step",{steps:Un,strokeWidth:$n}),Gi=Mi/Un,pi=new Array(Un);for(let Zt=0;Zt<Un;Zt++){const Kn=Array.isArray(yr)?yr[Zt]:yr;pi[Zt]=ie.createElement("div",{key:Zt,className:ue()(`${or}-steps-item`,{[`${or}-steps-item-active`]:Zt<=Fr-1}),style:{backgroundColor:Zt<=Fr-1?Kn:Fn,width:Gi,height:zi}})}return ie.createElement("div",{className:`${or}-steps-outer`},pi,Dr)},pe=re(34367),de=re(14747),le=re(67968),Te=re(45503);const ot=xt=>{const Yt=xt?"100%":"-100%";return new pe.Keyframes(`antProgress${xt?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Yt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Yt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Bt=xt=>{const{componentCls:Yt,iconCls:Un}=xt;return{[Yt]:Object.assign(Object.assign({},(0,de.Wf)(xt)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:xt.fontSize,marginInlineEnd:xt.marginXS,marginBottom:xt.marginXS},[`${Yt}-outer`]:{display:"inline-block",width:"100%"},[`&${Yt}-show-info`]:{[`${Yt}-outer`]:{marginInlineEnd:`calc(-2em - ${xt.marginXS}px)`,paddingInlineEnd:`calc(2em + ${xt.paddingXS}px)`}},[`${Yt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:xt.remainingColor,borderRadius:xt.lineBorderRadius},[`${Yt}-inner:not(${Yt}-circle-gradient)`]:{[`${Yt}-circle-path`]:{stroke:xt.defaultColor}},[`${Yt}-success-bg, ${Yt}-bg`]:{position:"relative",backgroundColor:xt.defaultColor,borderRadius:xt.lineBorderRadius,transition:`all ${xt.motionDurationSlow} ${xt.motionEaseInOutCirc}`},[`${Yt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:xt.colorSuccess},[`${Yt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:xt.marginXS,color:xt.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Un]:{fontSize:xt.fontSize}},[`&${Yt}-status-active`]:{[`${Yt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:xt.colorBgContainer,borderRadius:xt.lineBorderRadius,opacity:0,animationName:ot(),animationDuration:xt.progressActiveMotionDuration,animationTimingFunction:xt.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Yt}-rtl${Yt}-status-active`]:{[`${Yt}-bg::before`]:{animationName:ot(!0)}},[`&${Yt}-status-exception`]:{[`${Yt}-bg`]:{backgroundColor:xt.colorError},[`${Yt}-text`]:{color:xt.colorError}},[`&${Yt}-status-exception ${Yt}-inner:not(${Yt}-circle-gradient)`]:{[`${Yt}-circle-path`]:{stroke:xt.colorError}},[`&${Yt}-status-success`]:{[`${Yt}-bg`]:{backgroundColor:xt.colorSuccess},[`${Yt}-text`]:{color:xt.colorSuccess}},[`&${Yt}-status-success ${Yt}-inner:not(${Yt}-circle-gradient)`]:{[`${Yt}-circle-path`]:{stroke:xt.colorSuccess}}})}},en=xt=>{const{componentCls:Yt,iconCls:Un}=xt;return{[Yt]:{[`${Yt}-circle-trail`]:{stroke:xt.remainingColor},[`&${Yt}-circle ${Yt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Yt}-circle ${Yt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:xt.circleTextColor,fontSize:xt.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Un]:{fontSize:`${xt.fontSize/xt.fontSizeSM}em`}},[`${Yt}-circle&-status-exception`]:{[`${Yt}-text`]:{color:xt.colorError}},[`${Yt}-circle&-status-success`]:{[`${Yt}-text`]:{color:xt.colorSuccess}}},[`${Yt}-inline-circle`]:{lineHeight:1,[`${Yt}-inner`]:{verticalAlign:"bottom"}}}},rn=xt=>{const{componentCls:Yt}=xt;return{[Yt]:{[`${Yt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:xt.progressStepMinWidth,marginInlineEnd:xt.progressStepMarginInlineEnd,backgroundColor:xt.remainingColor,transition:`all ${xt.motionDurationSlow}`,"&-active":{backgroundColor:xt.defaultColor}}}}}},sn=xt=>{const{componentCls:Yt,iconCls:Un}=xt;return{[Yt]:{[`${Yt}-small&-line, ${Yt}-small&-line ${Yt}-text ${Un}`]:{fontSize:xt.fontSizeSM}}}};var un=(0,le.Z)("Progress",xt=>{const Yt=xt.marginXXS/2,Un=(0,Te.TS)(xt,{progressStepMarginInlineEnd:Yt,progressStepMinWidth:Yt,progressActiveMotionDuration:"2.4s"});return[Bt(Un),en(Un),rn(Un),sn(Un)]},xt=>({circleTextColor:xt.colorText,defaultColor:xt.colorInfo,remainingColor:xt.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),gt=function(xt,Yt){var Un={};for(var Hn in xt)Object.prototype.hasOwnProperty.call(xt,Hn)&&Yt.indexOf(Hn)<0&&(Un[Hn]=xt[Hn]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $n=0,Hn=Object.getOwnPropertySymbols(xt);$n<Hn.length;$n++)Yt.indexOf(Hn[$n])<0&&Object.prototype.propertyIsEnumerable.call(xt,Hn[$n])&&(Un[Hn[$n]]=xt[Hn[$n]]);return Un};const zt=null,It=["normal","exception","active","success"];var _t=ie.forwardRef((xt,Yt)=>{const{prefixCls:Un,className:Hn,rootClassName:$n,steps:yr,strokeColor:Fn,percent:or=0,size:Dr="default",showInfo:Fr=!0,type:hr="line",status:_r,format:Mi,style:zi}=xt,Gi=gt(xt,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),pi=ie.useMemo(()=>{var lt,Kt;const mn=St(xt);return parseInt(mn!==void 0?(lt=mn!=null?mn:0)===null||lt===void 0?void 0:lt.toString():(Kt=or!=null?or:0)===null||Kt===void 0?void 0:Kt.toString(),10)},[or,xt.success,xt.successPercent]),Zt=ie.useMemo(()=>!It.includes(_r)&&pi>=100?"success":_r||"normal",[_r,pi]),{getPrefixCls:Kn,direction:fr,progress:qn}=ie.useContext(me.E_),Br=Kn("progress",Un),[Kr,Rr]=un(Br),gr=ie.useMemo(()=>{if(!Fr)return null;const lt=St(xt);let Kt;const mn=Mi||(In=>`${In}%`),nn=hr==="line";return Mi||Zt!=="exception"&&Zt!=="success"?Kt=mn(Ae(or),Ae(lt)):Zt==="exception"?Kt=nn?ie.createElement(Ue.Z,null):ie.createElement(be.Z,null):Zt==="success"&&(Kt=nn?ie.createElement(Le.Z,null):ie.createElement(Oe.Z,null)),ie.createElement("span",{className:`${Br}-text`,title:typeof Kt=="string"?Kt:void 0},Kt)},[Fr,or,pi,Zt,hr,Br,Mi]),mt=Array.isArray(Fn)?Fn[0]:Fn,Ot=typeof Fn=="string"||Array.isArray(Fn)?Fn:void 0;let Xt;hr==="line"?Xt=yr?ie.createElement(ce,Object.assign({},xt,{strokeColor:Ot,prefixCls:Br,steps:yr}),gr):ie.createElement(Pe,Object.assign({},xt,{strokeColor:mt,prefixCls:Br,direction:fr}),gr):(hr==="circle"||hr==="dashboard")&&(Xt=ie.createElement(On,Object.assign({},xt,{strokeColor:mt,prefixCls:Br,progressStatus:Zt}),gr));const kn=ue()(Br,`${Br}-status-${Zt}`,`${Br}-${hr==="dashboard"&&"circle"||yr&&"steps"||hr}`,{[`${Br}-inline-circle`]:hr==="circle"&&ht(Dr,"circle")[0]<=20,[`${Br}-show-info`]:Fr,[`${Br}-${Dr}`]:typeof Dr=="string",[`${Br}-rtl`]:fr==="rtl"},qn==null?void 0:qn.className,Hn,$n,Rr);return Kr(ie.createElement("div",Object.assign({ref:Yt,style:Object.assign(Object.assign({},qn==null?void 0:qn.style),zi),className:kn,role:"progressbar","aria-valuenow":pi},(0,we.Z)(Gi,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Xt))}),lr=_t},78045:function(bn,Ut,re){"use strict";re.d(Ut,{ZP:function(){return at}});var ie=re(94184),Le=re.n(ie),Oe=re(5663),Ue=re(1337),be=re(67294),Me=re(53124),ue=re(98675);const we=be.createContext(null),me=we.Provider;var Ie=we;const ct=be.createContext(null),Ke=ct.Provider;var st=re(95860),dt=re(17799),Xe=re(98866),We=re(65223),ye=re(14747),it=re(67968),Lt=re(45503);const qe=Ae=>{const{componentCls:St,antCls:cn}=Ae,Pt=`${St}-group`;return{[Pt]:Object.assign(Object.assign({},(0,ye.Wf)(Ae)),{display:"inline-block",fontSize:0,[`&${Pt}-rtl`]:{direction:"rtl"},[`${cn}-badge ${cn}-badge-count`]:{zIndex:1},[`> ${cn}-badge:not(:first-child) > ${cn}-button-wrapper`]:{borderInlineStart:"none"}})}},rt=Ae=>{const{componentCls:St,wrapperMarginInlineEnd:cn,colorPrimary:Pt,radioSize:ht,motionDurationSlow:Et,motionDurationMid:Qt,motionEaseInOutCirc:ir,colorBgContainer:On,colorBorder:$t,lineWidth:yn,dotSize:Qn,colorBgContainerDisabled:Cn,colorTextDisabled:Pe,paddingXS:fe,dotColorDisabled:ce,lineType:pe,radioDotDisabledSize:de,wireframe:le,colorWhite:Te}=Ae,ot=`${St}-inner`;return{[`${St}-wrapper`]:Object.assign(Object.assign({},(0,ye.Wf)(Ae)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:cn,cursor:"pointer",[`&${St}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:Ae.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${St}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${yn}px ${pe} ${Pt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[St]:Object.assign(Object.assign({},(0,ye.Wf)(Ae)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${St}-wrapper:hover &,
|
|
|
&:hover ${ot}`]:{borderColor:Pt},[`${St}-input:focus-visible + ${ot}`]:Object.assign({},(0,ye.oN)(Ae)),[`${St}:hover::after, ${St}-wrapper:hover &::after`]:{visibility:"visible"},[`${St}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:ht,height:ht,marginBlockStart:ht/-2,marginInlineStart:ht/-2,backgroundColor:le?Pt:Te,borderBlockStart:0,borderInlineStart:0,borderRadius:ht,transform:"scale(0)",opacity:0,transition:`all ${Et} ${ir}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:ht,height:ht,backgroundColor:On,borderColor:$t,borderStyle:"solid",borderWidth:yn,borderRadius:"50%",transition:`all ${Qt}`},[`${St}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${St}-checked`]:{[ot]:{borderColor:Pt,backgroundColor:le?On:Pt,"&::after":{transform:`scale(${Qn/ht})`,opacity:1,transition:`all ${Et} ${ir}`}}},[`${St}-disabled`]:{cursor:"not-allowed",[ot]:{backgroundColor:Cn,borderColor:$t,cursor:"not-allowed","&::after":{backgroundColor:ce}},[`${St}-input`]:{cursor:"not-allowed"},[`${St}-disabled + span`]:{color:Pe,cursor:"not-allowed"},[`&${St}-checked`]:{[ot]:{"&::after":{transform:`scale(${de/ht})`}}}},[`span${St} + *`]:{paddingInlineStart:fe,paddingInlineEnd:fe}})}},xe=Ae=>{const{buttonColor:St,controlHeight:cn,componentCls:Pt,lineWidth:ht,lineType:Et,colorBorder:Qt,motionDurationSlow:ir,motionDurationMid:On,buttonPaddingInline:$t,fontSize:yn,buttonBg:Qn,fontSizeLG:Cn,controlHeightLG:Pe,controlHeightSM:fe,paddingXS:ce,borderRadius:pe,borderRadiusSM:de,borderRadiusLG:le,buttonCheckedBg:Te,buttonSolidCheckedColor:ot,colorTextDisabled:Bt,colorBgContainerDisabled:en,buttonCheckedBgDisabled:rn,buttonCheckedColorDisabled:sn,colorPrimary:un,colorPrimaryHover:gt,colorPrimaryActive:zt,buttonSolidCheckedBg:It,buttonSolidCheckedHoverBg:ln,buttonSolidCheckedActiveBg:_t}=Ae;return{[`${Pt}-button-wrapper`]:{position:"relative",display:"inline-block",height:cn,margin:0,paddingInline:$t,paddingBlock:0,color:St,fontSize:yn,lineHeight:`${cn-ht*2}px`,background:Qn,border:`${ht}px ${Et} ${Qt}`,borderBlockStartWidth:ht+.02,borderInlineStartWidth:0,borderInlineEndWidth:ht,cursor:"pointer",transition:[`color ${On}`,`background ${On}`,`box-shadow ${On}`].join(","),a:{color:St},[`> ${Pt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-ht,insetInlineStart:-ht,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ht,paddingInline:0,backgroundColor:Qt,transition:`background-color ${ir}`,content:'""'}},"&:first-child":{borderInlineStart:`${ht}px ${Et} ${Qt}`,borderStartStartRadius:pe,borderEndStartRadius:pe},"&:last-child":{borderStartEndRadius:pe,borderEndEndRadius:pe},"&:first-child:last-child":{borderRadius:pe},[`${Pt}-group-large &`]:{height:Pe,fontSize:Cn,lineHeight:`${Pe-ht*2}px`,"&:first-child":{borderStartStartRadius:le,borderEndStartRadius:le},"&:last-child":{borderStartEndRadius:le,borderEndEndRadius:le}},[`${Pt}-group-small &`]:{height:fe,paddingInline:ce-ht,paddingBlock:0,lineHeight:`${fe-ht*2}px`,"&:first-child":{borderStartStartRadius:de,borderEndStartRadius:de},"&:last-child":{borderStartEndRadius:de,borderEndEndRadius:de}},"&:hover":{position:"relative",color:un},"&:has(:focus-visible)":Object.assign({},(0,ye.oN)(Ae)),[`${Pt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${Pt}-button-wrapper-disabled)`]:{zIndex:1,color:un,background:Te,borderColor:un,"&::before":{backgroundColor:un},"&:first-child":{borderColor:un},"&:hover":{color:gt,borderColor:gt,"&::before":{backgroundColor:gt}},"&:active":{color:zt,borderColor:zt,"&::before":{backgroundColor:zt}}},[`${Pt}-group-solid &-checked:not(${Pt}-button-wrapper-disabled)`]:{color:ot,background:It,borderColor:It,"&:hover":{color:ot,background:ln,borderColor:ln},"&:active":{color:ot,background:_t,borderColor:_t}},"&-disabled":{color:Bt,backgroundColor:en,borderColor:Qt,cursor:"not-allowed","&:first-child, &:hover":{color:Bt,backgroundColor:en,borderColor:Qt}},[`&-disabled${Pt}-button-wrapper-checked`]:{color:sn,backgroundColor:rn,borderColor:Qt,boxShadow:"none"}}}},Se=Ae=>Ae-4*2;var Ze=(0,it.Z)("Radio",Ae=>{const{controlOutline:St,controlOutlineWidth:cn,radioSize:Pt}=Ae,ht=`0 0 0 ${cn}px ${St}`,Et=ht,Qt=Se(Pt),ir=(0,Lt.TS)(Ae,{radioDotDisabledSize:Qt,radioFocusShadow:ht,radioButtonFocusShadow:Et});return[qe(ir),rt(ir),xe(ir)]},Ae=>{const{wireframe:St,padding:cn,marginXS:Pt,lineWidth:ht,fontSizeLG:Et,colorText:Qt,colorBgContainer:ir,colorTextDisabled:On,controlItemBgActiveDisabled:$t,colorTextLightSolid:yn,colorPrimary:Qn,colorPrimaryHover:Cn,colorPrimaryActive:Pe}=Ae,fe=4,ce=Et,pe=St?Se(ce):ce-(fe+ht)*2;return{radioSize:ce,dotSize:pe,dotColorDisabled:On,buttonSolidCheckedColor:yn,buttonSolidCheckedBg:Qn,buttonSolidCheckedHoverBg:Cn,buttonSolidCheckedActiveBg:Pe,buttonBg:ir,buttonCheckedBg:ir,buttonColor:Qt,buttonCheckedBgDisabled:$t,buttonCheckedColorDisabled:On,buttonPaddingInline:cn-ht,wrapperMarginInlineEnd:Pt}}),Ge=re(45353),yt=re(92429),pt=function(Ae,St){var cn={};for(var Pt in Ae)Object.prototype.hasOwnProperty.call(Ae,Pt)&&St.indexOf(Pt)<0&&(cn[Pt]=Ae[Pt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Pt=Object.getOwnPropertySymbols(Ae);ht<Pt.length;ht++)St.indexOf(Pt[ht])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Pt[ht])&&(cn[Pt[ht]]=Ae[Pt[ht]]);return cn};const ft=(Ae,St)=>{var cn,Pt;const ht=be.useContext(Ie),Et=be.useContext(ct),{getPrefixCls:Qt,direction:ir,radio:On}=be.useContext(Me.E_),$t=be.useRef(null),yn=(0,dt.sQ)(St,$t),{isFormItemInput:Qn}=be.useContext(We.aM),Cn=zt=>{var It,ln;(It=Ae.onChange)===null||It===void 0||It.call(Ae,zt),(ln=ht==null?void 0:ht.onChange)===null||ln===void 0||ln.call(ht,zt)},{prefixCls:Pe,className:fe,rootClassName:ce,children:pe,style:de}=Ae,le=pt(Ae,["prefixCls","className","rootClassName","children","style"]),Te=Qt("radio",Pe),ot=((ht==null?void 0:ht.optionType)||Et)==="button",Bt=ot?`${Te}-button`:Te,[en,rn]=Ze(Te),sn=Object.assign({},le),un=be.useContext(Xe.Z);ht&&(sn.name=ht.name,sn.onChange=Cn,sn.checked=Ae.value===ht.value,sn.disabled=(cn=sn.disabled)!==null&&cn!==void 0?cn:ht.disabled),sn.disabled=(Pt=sn.disabled)!==null&&Pt!==void 0?Pt:un;const gt=Le()(`${Bt}-wrapper`,{[`${Bt}-wrapper-checked`]:sn.checked,[`${Bt}-wrapper-disabled`]:sn.disabled,[`${Bt}-wrapper-rtl`]:ir==="rtl",[`${Bt}-wrapper-in-form-item`]:Qn},On==null?void 0:On.className,fe,ce,rn);return en(be.createElement(Ge.Z,{component:"Radio",disabled:sn.disabled},be.createElement("label",{className:gt,style:Object.assign(Object.assign({},On==null?void 0:On.style),de),onMouseEnter:Ae.onMouseEnter,onMouseLeave:Ae.onMouseLeave},be.createElement(st.Z,Object.assign({},sn,{className:Le()(sn.className,!ot&&yt.A),type:"radio",prefixCls:Bt,ref:yn})),pe!==void 0?be.createElement("span",null,pe):null)))};var jt=be.forwardRef(ft);const bt=be.forwardRef((Ae,St)=>{const{getPrefixCls:cn,direction:Pt}=be.useContext(Me.E_),[ht,Et]=(0,Oe.Z)(Ae.defaultValue,{value:Ae.value}),Qt=It=>{const ln=ht,_t=It.target.value;"value"in Ae||Et(_t);const{onChange:lr}=Ae;lr&&_t!==ln&&lr(It)},{prefixCls:ir,className:On,rootClassName:$t,options:yn,buttonStyle:Qn="outline",disabled:Cn,children:Pe,size:fe,style:ce,id:pe,onMouseEnter:de,onMouseLeave:le,onFocus:Te,onBlur:ot}=Ae,Bt=cn("radio",ir),en=`${Bt}-group`,[rn,sn]=Ze(Bt);let un=Pe;yn&&yn.length>0&&(un=yn.map(It=>typeof It=="string"||typeof It=="number"?be.createElement(jt,{key:It.toString(),prefixCls:Bt,disabled:Cn,value:It,checked:ht===It},It):be.createElement(jt,{key:`radio-group-value-options-${It.value}`,prefixCls:Bt,disabled:It.disabled||Cn,value:It.value,checked:ht===It.value,title:It.title,style:It.style},It.label)));const gt=(0,ue.Z)(fe),zt=Le()(en,`${en}-${Qn}`,{[`${en}-${gt}`]:gt,[`${en}-rtl`]:Pt==="rtl"},On,$t,sn);return rn(be.createElement("div",Object.assign({},(0,Ue.Z)(Ae,{aria:!0,data:!0}),{className:zt,style:ce,onMouseEnter:de,onMouseLeave:le,onFocus:Te,onBlur:ot,id:pe,ref:St}),be.createElement(me,{value:{onChange:Qt,value:ht,disabled:Ae.disabled,name:Ae.name,optionType:Ae.optionType}},un)))});var xn=be.memo(bt),Mt=function(Ae,St){var cn={};for(var Pt in Ae)Object.prototype.hasOwnProperty.call(Ae,Pt)&&St.indexOf(Pt)<0&&(cn[Pt]=Ae[Pt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Pt=Object.getOwnPropertySymbols(Ae);ht<Pt.length;ht++)St.indexOf(Pt[ht])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Pt[ht])&&(cn[Pt[ht]]=Ae[Pt[ht]]);return cn};const Gt=(Ae,St)=>{const{getPrefixCls:cn}=be.useContext(Me.E_),{prefixCls:Pt}=Ae,ht=Mt(Ae,["prefixCls"]),Et=cn("radio",Pt);return be.createElement(Ke,{value:"button"},be.createElement(jt,Object.assign({prefixCls:Et},ht,{type:"radio",ref:St})))};var Bn=be.forwardRef(Gt);const Tn=jt;Tn.Button=Bn,Tn.Group=xn,Tn.__ANT_RADIO=!0;var at=Tn},12604:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return at}});var ie=re(87462),Le=re(67294),Oe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Ue=Oe,be=re(84089),Me=function(St,cn){return Le.createElement(be.Z,(0,ie.Z)({},St,{ref:cn,icon:Ue}))},ue=Le.forwardRef(Me),we=re(94184),me=re.n(we),Ie=re(4942),ct=re(97685),Ke=re(45987),st=re(21770),dt=re(15105),Xe=re(64217);function We(Ae,St){var cn=Ae.disabled,Pt=Ae.prefixCls,ht=Ae.character,Et=Ae.characterRender,Qt=Ae.index,ir=Ae.count,On=Ae.value,$t=Ae.allowHalf,yn=Ae.focused,Qn=Ae.onHover,Cn=Ae.onClick,Pe=function(Bt){Qn(Bt,Qt)},fe=function(Bt){Cn(Bt,Qt)},ce=function(Bt){Bt.keyCode===dt.Z.ENTER&&Cn(Bt,Qt)},pe=Qt+1,de=new Set([Pt]);On===0&&Qt===0&&yn?de.add("".concat(Pt,"-focused")):$t&&On+.5>=pe&&On<pe?(de.add("".concat(Pt,"-half")),de.add("".concat(Pt,"-active")),yn&&de.add("".concat(Pt,"-focused"))):(pe<=On?de.add("".concat(Pt,"-full")):de.add("".concat(Pt,"-zero")),pe===On&&yn&&de.add("".concat(Pt,"-focused")));var le=typeof ht=="function"?ht(Ae):ht,Te=Le.createElement("li",{className:me()(Array.from(de)),ref:St},Le.createElement("div",{onClick:cn?null:fe,onKeyDown:cn?null:ce,onMouseMove:cn?null:Pe,role:"radio","aria-checked":On>Qt?"true":"false","aria-posinset":Qt+1,"aria-setsize":ir,tabIndex:cn?-1:0},Le.createElement("div",{className:"".concat(Pt,"-first")},le),Le.createElement("div",{className:"".concat(Pt,"-second")},le)));return Et&&(Te=Et(Te,Ae)),Te}var ye=Le.forwardRef(We);function it(){var Ae=Le.useRef({});function St(Pt){return Ae.current[Pt]}function cn(Pt){return function(ht){Ae.current[Pt]=ht}}return[St,cn]}function Lt(Ae){var St=Ae.pageXOffset,cn="scrollLeft";if(typeof St!="number"){var Pt=Ae.document;St=Pt.documentElement[cn],typeof St!="number"&&(St=Pt.body[cn])}return St}function qe(Ae){var St,cn,Pt=Ae.ownerDocument,ht=Pt.body,Et=Pt&&Pt.documentElement,Qt=Ae.getBoundingClientRect();return St=Qt.left,cn=Qt.top,St-=Et.clientLeft||ht.clientLeft||0,cn-=Et.clientTop||ht.clientTop||0,{left:St,top:cn}}function rt(Ae){var St=qe(Ae),cn=Ae.ownerDocument,Pt=cn.defaultView||cn.parentWindow;return St.left+=Lt(Pt),St.left}var xe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Se(Ae,St){var cn,Pt=Ae.prefixCls,ht=Pt===void 0?"rc-rate":Pt,Et=Ae.className,Qt=Ae.defaultValue,ir=Ae.value,On=Ae.count,$t=On===void 0?5:On,yn=Ae.allowHalf,Qn=yn===void 0?!1:yn,Cn=Ae.allowClear,Pe=Cn===void 0?!0:Cn,fe=Ae.character,ce=fe===void 0?"\u2605":fe,pe=Ae.characterRender,de=Ae.disabled,le=Ae.direction,Te=le===void 0?"ltr":le,ot=Ae.tabIndex,Bt=ot===void 0?0:ot,en=Ae.autoFocus,rn=Ae.onHoverChange,sn=Ae.onChange,un=Ae.onFocus,gt=Ae.onBlur,zt=Ae.onKeyDown,It=Ae.onMouseLeave,ln=(0,Ke.Z)(Ae,xe),_t=it(),lr=(0,ct.Z)(_t,2),xt=lr[0],Yt=lr[1],Un=Le.useRef(null),Hn=function(){if(!de){var nn;(nn=Un.current)===null||nn===void 0||nn.focus()}};Le.useImperativeHandle(St,function(){return{focus:Hn,blur:function(){if(!de){var nn;(nn=Un.current)===null||nn===void 0||nn.blur()}}}});var $n=(0,st.Z)(Qt||0,{value:ir}),yr=(0,ct.Z)($n,2),Fn=yr[0],or=yr[1],Dr=(0,st.Z)(null),Fr=(0,ct.Z)(Dr,2),hr=Fr[0],_r=Fr[1],Mi=function(nn,In){var Pn=Te==="rtl",vr=nn+1;if(Qn){var ni=xt(nn),zr=rt(ni),Pr=ni.clientWidth;(Pn&&In-zr>Pr/2||!Pn&&In-zr<Pr/2)&&(vr-=.5)}return vr},zi=function(nn){or(nn),sn==null||sn(nn)},Gi=Le.useState(!1),pi=(0,ct.Z)(Gi,2),Zt=pi[0],Kn=pi[1],fr=function(){Kn(!0),un==null||un()},qn=function(){Kn(!1),gt==null||gt()},Br=Le.useState(null),Kr=(0,ct.Z)(Br,2),Rr=Kr[0],gr=Kr[1],mt=function(nn,In){var Pn=Mi(In,nn.pageX);Pn!==hr&&(gr(Pn),_r(null)),rn==null||rn(Pn)},Ot=function(nn){de||(gr(null),_r(null),rn==null||rn(void 0)),nn&&(It==null||It(nn))},Xt=function(nn,In){var Pn=Mi(In,nn.pageX),vr=!1;Pe&&(vr=Pn===Fn),Ot(),zi(vr?0:Pn),_r(vr?Pn:null)},kn=function(nn){var In=nn.keyCode,Pn=Te==="rtl",vr=Fn;In===dt.Z.RIGHT&&vr<$t&&!Pn?(Qn?vr+=.5:vr+=1,zi(vr),nn.preventDefault()):In===dt.Z.LEFT&&vr>0&&!Pn||In===dt.Z.RIGHT&&vr>0&&Pn?(Qn?vr-=.5:vr-=1,zi(vr),nn.preventDefault()):In===dt.Z.LEFT&&vr<$t&&Pn&&(Qn?vr+=.5:vr+=1,zi(vr),nn.preventDefault()),zt==null||zt(nn)};Le.useEffect(function(){en&&!de&&Hn()},[]);var lt=new Array($t).fill(0).map(function(mn,nn){return Le.createElement(ye,{ref:Yt(nn),index:nn,count:$t,disabled:de,prefixCls:"".concat(ht,"-star"),allowHalf:Qn,value:Rr===null?Fn:Rr,onClick:Xt,onHover:mt,key:mn||nn,character:ce,characterRender:pe,focused:Zt})}),Kt=me()(ht,Et,(cn={},(0,Ie.Z)(cn,"".concat(ht,"-disabled"),de),(0,Ie.Z)(cn,"".concat(ht,"-rtl"),Te==="rtl"),cn));return Le.createElement("ul",(0,ie.Z)({className:Kt,onMouseLeave:Ot,tabIndex:de?-1:Bt,onFocus:de?null:fr,onBlur:de?null:qn,onKeyDown:de?null:kn,ref:Un,role:"radiogroup"},(0,Xe.Z)(ln,{aria:!0,data:!0,attr:!0})),lt)}var Ze=Le.forwardRef(Se),Ge=Ze,yt=re(53124),pt=re(83062),ft=re(14747),Ne=re(67968),jt=re(45503);const bt=Ae=>{const{componentCls:St}=Ae;return{[`${St}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ae.marginXS},"> div":{transition:`all ${Ae.motionDurationMid}, outline 0s`,"&:hover":{transform:Ae.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Ae.lineWidth}px dashed ${Ae.starColor}`,transform:Ae.starHoverScale}},"&-first, &-second":{color:Ae.starBg,transition:`all ${Ae.motionDurationMid}`,userSelect:"none",[Ae.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${St}-star-first, &-half ${St}-star-second`]:{opacity:1},[`&-half ${St}-star-first, &-full ${St}-star-second`]:{color:"inherit"}}}},xn=Ae=>({[`&-rtl${Ae.componentCls}`]:{direction:"rtl"}}),Mt=Ae=>{const{componentCls:St}=Ae;return{[St]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ft.Wf)(Ae)),{display:"inline-block",margin:0,padding:0,color:Ae.starColor,fontSize:Ae.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${St} ${St}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),bt(Ae)),{[`+ ${St}-text`]:{display:"inline-block",marginInlineStart:Ae.marginXS,fontSize:Ae.fontSize}}),xn(Ae))}};var Gt=(0,Ne.Z)("Rate",Ae=>{const St=(0,jt.TS)(Ae,{});return[Mt(St)]},Ae=>({starColor:Ae.yellow6,starSize:Ae.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ae.colorFillContent})),Bn=function(Ae,St){var cn={};for(var Pt in Ae)Object.prototype.hasOwnProperty.call(Ae,Pt)&&St.indexOf(Pt)<0&&(cn[Pt]=Ae[Pt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Pt=Object.getOwnPropertySymbols(Ae);ht<Pt.length;ht++)St.indexOf(Pt[ht])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Pt[ht])&&(cn[Pt[ht]]=Ae[Pt[ht]]);return cn},at=Le.forwardRef((Ae,St)=>{const{prefixCls:cn,className:Pt,rootClassName:ht,style:Et,tooltips:Qt,character:ir=Le.createElement(ue,null)}=Ae,On=Bn(Ae,["prefixCls","className","rootClassName","style","tooltips","character"]),$t=(de,le)=>{let{index:Te}=le;return Qt?Le.createElement(pt.Z,{title:Qt[Te]},de):de},{getPrefixCls:yn,direction:Qn,rate:Cn}=Le.useContext(yt.E_),Pe=yn("rate",cn),[fe,ce]=Gt(Pe),pe=Object.assign(Object.assign({},Cn==null?void 0:Cn.style),Et);return fe(Le.createElement(Ge,Object.assign({ref:St,character:ir,characterRender:$t},On,{className:me()(Pt,ht,ce,Cn==null?void 0:Cn.className),style:pe,prefixCls:Pe,direction:Qn})))})},11713:function(bn,Ut,re){"use strict";re.d(Ut,{default:function(){return Tr}});var ie=re(94184),Le=re.n(ie),Oe=re(87462),Ue=re(74902),be=re(4942),Me=re(1413),ue=re(97685),we=re(45987),me=re(71002),Ie=re(67294);function ct(je){var Qe=Ie.useRef();Qe.current=je;var Rt=Ie.useCallback(function(){for(var kt,vn=arguments.length,jn=new Array(vn),vt=0;vt<vn;vt++)jn[vt]=arguments[vt];return(kt=Qe.current)===null||kt===void 0?void 0:kt.call.apply(kt,[Qe].concat(jn))},[]);return Rt}function Ke(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var st=Ke()?Ie.useLayoutEffect:Ie.useEffect,dt=st,Xe=function(Qe,Rt){var kt=Ie.useRef(!0);st(function(){if(!kt.current)return Qe()},Rt),st(function(){return kt.current=!1,function(){kt.current=!0}},[])};function We(je){var Qe=Ie.useRef(!1),Rt=Ie.useState(je),kt=(0,ue.Z)(Rt,2),vn=kt[0],jn=kt[1];Ie.useEffect(function(){return Qe.current=!1,function(){Qe.current=!0}},[]);function vt(wt,Ct){Ct&&Qe.current||jn(wt)}return[vn,vt]}function ye(je){return je!==void 0}function it(je,Qe){var Rt=Qe||{},kt=Rt.defaultValue,vn=Rt.value,jn=Rt.onChange,vt=Rt.postState,wt=We(function(){return ye(vn)?vn:ye(kt)?typeof kt=="function"?kt():kt:typeof je=="function"?je():je}),Ct=(0,ue.Z)(wt,2),Ft=Ct[0],Ln=Ct[1],Yn=vn!==void 0?vn:Ft,wn=vt?vt(Yn):Yn,_n=ct(jn),wr=We([Yn]),Wr=(0,ue.Z)(wr,2),Lr=Wr[0],dr=Wr[1];Xe(function(){var jr=Lr[0];Ft!==jr&&_n(Ft,jr)},[Lr]),Xe(function(){ye(vn)||Ln(vn)},[vn]);var Or=ct(function(jr,ti){Ln(jr,ti),dr([Yn],ti)});return[wn,Or]}var Lt={};function qe(je,Qe){}function rt(je,Qe){}function xe(){Lt={}}function Se(je,Qe,Rt){!Qe&&!Lt[Rt]&&(je(!1,Rt),Lt[Rt]=!0)}function Ze(je,Qe){Se(qe,je,Qe)}function Ge(je,Qe){Se(rt,je,Qe)}var yt=Ze,pt=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var je=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(je)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(je==null?void 0:je.substr(0,4))},ft={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Qe){var Rt=Qe.keyCode;if(Qe.altKey&&!Qe.ctrlKey||Qe.metaKey||Rt>=ft.F1&&Rt<=ft.F12)return!1;switch(Rt){case ft.ALT:case ft.CAPS_LOCK:case ft.CONTEXT_MENU:case ft.CTRL:case ft.DOWN:case ft.END:case ft.ESC:case ft.HOME:case ft.INSERT:case ft.LEFT:case ft.MAC_FF_META:case ft.META:case ft.NUMLOCK:case ft.NUM_CENTER:case ft.PAGE_DOWN:case ft.PAGE_UP:case ft.PAUSE:case ft.PRINT_SCREEN:case ft.RIGHT:case ft.SHIFT:case ft.UP:case ft.WIN_KEY:case ft.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Qe){if(Qe>=ft.ZERO&&Qe<=ft.NINE||Qe>=ft.NUM_ZERO&&Qe<=ft.NUM_MULTIPLY||Qe>=ft.A&&Qe<=ft.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Qe===0)return!0;switch(Qe){case ft.SPACE:case ft.QUESTION_MARK:case ft.NUM_PLUS:case ft.NUM_MINUS:case ft.NUM_PERIOD:case ft.NUM_DIVISION:case ft.SEMICOLON:case ft.DASH:case ft.EQUALS:case ft.COMMA:case ft.PERIOD:case ft.SLASH:case ft.APOSTROPHE:case ft.SINGLE_QUOTE:case ft.OPEN_SQUARE_BRACKET:case ft.BACKSLASH:case ft.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ne=ft,jt=re(47655);function bt(je,Qe,Rt){var kt=Ie.useRef({});return(!("value"in kt.current)||Rt(kt.current.condition,Qe))&&(kt.current.value=je(),kt.current.condition=Qe),kt.current.value}function xn(je,Qe){typeof je=="function"?je(Qe):(0,me.Z)(je)==="object"&&je&&"current"in je&&(je.current=Qe)}function Mt(){for(var je=arguments.length,Qe=new Array(je),Rt=0;Rt<je;Rt++)Qe[Rt]=arguments[Rt];var kt=Qe.filter(function(vn){return vn});return kt.length<=1?kt[0]:function(vn){Qe.forEach(function(jn){xn(jn,vn)})}}function Gt(){for(var je=arguments.length,Qe=new Array(je),Rt=0;Rt<je;Rt++)Qe[Rt]=arguments[Rt];return bt(function(){return Mt.apply(void 0,Qe)},Qe,function(kt,vn){return kt.length===vn.length&&kt.every(function(jn,vt){return jn===vn[vt]})})}function Bn(je){var Qe,Rt,kt=isMemo(je)?je.type.type:je.type;return!(typeof kt=="function"&&!((Qe=kt.prototype)!==null&&Qe!==void 0&&Qe.render)||typeof je=="function"&&!((Rt=je.prototype)!==null&&Rt!==void 0&&Rt.render))}var Tn=function(Qe){var Rt=Qe.className,kt=Qe.customizeIcon,vn=Qe.customizeIconProps,jn=Qe.onMouseDown,vt=Qe.onClick,wt=Qe.children,Ct;return typeof kt=="function"?Ct=kt(vn):Ct=kt,Ie.createElement("span",{className:Rt,onMouseDown:function(Ln){Ln.preventDefault(),jn&&jn(Ln)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:vt,"aria-hidden":!0},Ct!==void 0?Ct:Ie.createElement("span",{className:Le()(Rt.split(/\s+/).map(function(Ft){return"".concat(Ft,"-icon")}))},wt))},at=Tn;function Ae(je,Qe,Rt,kt,vn){var jn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,vt=arguments.length>6?arguments[6]:void 0,wt=arguments.length>7?arguments[7]:void 0,Ct=Ie.useMemo(function(){if((0,me.Z)(kt)==="object")return kt.clearIcon;if(vn)return vn},[kt,vn]),Ft=Ie.useMemo(function(){return!!(!jn&&kt&&(Rt.length||vt)&&!(wt==="combobox"&&vt===""))},[kt,jn,Rt.length,vt,wt]);return{allowClear:Ft,clearIcon:Ie.createElement(at,{className:"".concat(je,"-clear"),onMouseDown:Qe,customizeIcon:Ct},"\xD7")}}var St=Ie.createContext(null);function cn(){return Ie.useContext(St)}function Pt(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Qe=Ie.useState(!1),Rt=(0,ue.Z)(Qe,2),kt=Rt[0],vn=Rt[1],jn=Ie.useRef(null),vt=function(){window.clearTimeout(jn.current)};Ie.useEffect(function(){return vt},[]);var wt=function(Ft,Ln){vt(),jn.current=window.setTimeout(function(){vn(Ft),Ln&&Ln()},je)};return[kt,wt,vt]}function ht(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Qe=Ie.useRef(null),Rt=Ie.useRef(null);Ie.useEffect(function(){return function(){window.clearTimeout(Rt.current)}},[]);function kt(vn){(vn||Qe.current===null)&&(Qe.current=vn),window.clearTimeout(Rt.current),Rt.current=window.setTimeout(function(){Qe.current=null},je)}return[function(){return Qe.current},kt]}function Et(je,Qe,Rt,kt){var vn=Ie.useRef(null);vn.current={open:Qe,triggerOpen:Rt,customizedTrigger:kt},Ie.useEffect(function(){function jn(vt){var wt;if(!((wt=vn.current)!==null&&wt!==void 0&&wt.customizedTrigger)){var Ct=vt.target;Ct.shadowRoot&&vt.composed&&(Ct=vt.composedPath()[0]||Ct),vn.current.open&&je().filter(function(Ft){return Ft}).every(function(Ft){return!Ft.contains(Ct)&&Ft!==Ct})&&vn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",jn),function(){return window.removeEventListener("mousedown",jn)}},[])}var Qt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,ir=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,On="".concat(Qt," ").concat(ir).split(/[\s\n]+/),$t="aria-",yn="data-";function Qn(je,Qe){return je.indexOf(Qe)===0}function Cn(je){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Rt;Qe===!1?Rt={aria:!0,data:!0,attr:!0}:Qe===!0?Rt={aria:!0}:Rt=(0,Me.Z)({},Qe);var kt={};return Object.keys(je).forEach(function(vn){(Rt.aria&&(vn==="role"||Qn(vn,$t))||Rt.data&&Qn(vn,yn)||Rt.attr&&On.includes(vn))&&(kt[vn]=je[vn])}),kt}var Pe=re(48555),fe=re(14075),ce=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],pe=void 0;function de(je,Qe){var Rt=je.prefixCls,kt=je.invalidate,vn=je.item,jn=je.renderItem,vt=je.responsive,wt=je.responsiveDisabled,Ct=je.registerSize,Ft=je.itemKey,Ln=je.className,Yn=je.style,wn=je.children,_n=je.display,wr=je.order,Wr=je.component,Lr=Wr===void 0?"div":Wr,dr=(0,we.Z)(je,ce),Or=vt&&!_n;function jr(si){Ct(Ft,si)}Ie.useEffect(function(){return function(){jr(null)}},[]);var ti=jn&&vn!==pe?jn(vn):wn,Zr;kt||(Zr={opacity:Or?0:1,height:Or?0:pe,overflowY:Or?"hidden":pe,order:vt?wr:pe,pointerEvents:Or?"none":pe,position:Or?"absolute":pe});var Mr={};Or&&(Mr["aria-hidden"]=!0);var li=Ie.createElement(Lr,(0,Oe.Z)({className:Le()(!kt&&Rt,Ln),style:(0,Me.Z)((0,Me.Z)({},Zr),Yn)},Mr,dr,{ref:Qe}),ti);return vt&&(li=Ie.createElement(Pe.Z,{onResize:function(Yi){var qi=Yi.offsetWidth;jr(qi)},disabled:wt},li)),li}var le=Ie.forwardRef(de);le.displayName="Item";var Te=le,ot=re(77527),Bt=re(73935),en=re(96523);function rn(je){if(typeof MessageChannel=="undefined")(0,en.Z)(je);else{var Qe=new MessageChannel;Qe.port1.onmessage=function(){return je()},Qe.port2.postMessage(void 0)}}function sn(){var je=Ie.useRef(null),Qe=function(kt){je.current||(je.current=[],rn(function(){(0,Bt.unstable_batchedUpdates)(function(){je.current.forEach(function(vn){vn()}),je.current=null})})),je.current.push(kt)};return Qe}function un(je,Qe){var Rt=Ie.useState(Qe),kt=(0,ue.Z)(Rt,2),vn=kt[0],jn=kt[1],vt=(0,ot.Z)(function(wt){je(function(){jn(wt)})});return[vn,vt]}var gt=Ie.createContext(null),zt=["component"],It=["className"],ln=["className"],_t=function(Qe,Rt){var kt=Ie.useContext(gt);if(!kt){var vn=Qe.component,jn=vn===void 0?"div":vn,vt=(0,we.Z)(Qe,zt);return Ie.createElement(jn,(0,Oe.Z)({},vt,{ref:Rt}))}var wt=kt.className,Ct=(0,we.Z)(kt,It),Ft=Qe.className,Ln=(0,we.Z)(Qe,ln);return Ie.createElement(gt.Provider,{value:null},Ie.createElement(Te,(0,Oe.Z)({ref:Rt,className:Le()(wt,Ft)},Ct,Ln)))},lr=Ie.forwardRef(_t);lr.displayName="RawItem";var xt=lr,Yt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Un="responsive",Hn="invalidate";function $n(je){return"+ ".concat(je.length," ...")}function yr(je,Qe){var Rt=je.prefixCls,kt=Rt===void 0?"rc-overflow":Rt,vn=je.data,jn=vn===void 0?[]:vn,vt=je.renderItem,wt=je.renderRawItem,Ct=je.itemKey,Ft=je.itemWidth,Ln=Ft===void 0?10:Ft,Yn=je.ssr,wn=je.style,_n=je.className,wr=je.maxCount,Wr=je.renderRest,Lr=je.renderRawRest,dr=je.suffix,Or=je.component,jr=Or===void 0?"div":Or,ti=je.itemComponent,Zr=je.onVisibleChange,Mr=(0,we.Z)(je,Yt),li=Yn==="full",si=sn(),Yi=un(si,null),qi=(0,ue.Z)(Yi,2),ia=qi[0],_i=qi[1],Wi=ia||0,Li=un(si,new Map),da=(0,ue.Z)(Li,2),Bi=da[0],fi=da[1],Ji=un(si,0),va=(0,ue.Z)(Ji,2),oo=va[0],Ja=va[1],Za=un(si,0),Ha=(0,ue.Z)(Za,2),Ia=Ha[0],aa=Ha[1],mo=un(si,0),ba=(0,ue.Z)(mo,2),Zi=ba[0],Oa=ba[1],no=(0,Ie.useState)(null),Ra=(0,ue.Z)(no,2),_a=Ra[0],oa=Ra[1],ro=(0,Ie.useState)(null),bo=(0,ue.Z)(ro,2),co=bo[0],xo=bo[1],Ao=Ie.useMemo(function(){return co===null&&li?Number.MAX_SAFE_INTEGER:co||0},[co,ia]),Xo=(0,Ie.useState)(!1),uo=(0,ue.Z)(Xo,2),Co=uo[0],os=uo[1],rs="".concat(kt,"-item"),cs=Math.max(oo,Ia),No=wr===Un,So=jn.length&&No,wa=wr===Hn,Na=So||typeof wr=="number"&&jn.length>wr,io=(0,Ie.useMemo)(function(){var Xa=jn;return So?ia===null&&li?Xa=jn:Xa=jn.slice(0,Math.min(jn.length,Wi/Ln)):typeof wr=="number"&&(Xa=jn.slice(0,wr)),Xa},[jn,Ln,ia,wr,So]),go=(0,Ie.useMemo)(function(){return So?jn.slice(Ao+1):jn.slice(io.length)},[jn,io,So,Ao]),Uo=(0,Ie.useCallback)(function(Xa,vi){var pa;return typeof Ct=="function"?Ct(Xa):(pa=Ct&&(Xa==null?void 0:Xa[Ct]))!==null&&pa!==void 0?pa:vi},[Ct]),us=(0,Ie.useCallback)(vt||function(Xa){return Xa},[vt]);function xs(Xa,vi,pa){co===Xa&&(vi===void 0||vi===_a)||(xo(Xa),pa||(os(Xa<jn.length-1),Zr==null||Zr(Xa)),vi!==void 0&&oa(vi))}function Js(Xa,vi){_i(vi.clientWidth)}function Ks(Xa,vi){fi(function(pa){var ma=new Map(pa);return vi===null?ma.delete(Xa):ma.set(Xa,vi),ma})}function ds(Xa,vi){aa(vi),Ja(Ia)}function Hs(Xa,vi){Oa(vi)}function Ya(Xa){return Bi.get(Uo(io[Xa],Xa))}(0,fe.Z)(function(){if(Wi&&typeof cs=="number"&&io){var Xa=Zi,vi=io.length,pa=vi-1;if(!vi){xs(0,null);return}for(var ma=0;ma<vi;ma+=1){var La=Ya(ma);if(li&&(La=La||0),La===void 0){xs(ma-1,void 0,!0);break}if(Xa+=La,pa===0&&Xa<=Wi||ma===pa-1&&Xa+Ya(pa)<=Wi){xs(pa,null);break}else if(Xa+cs>Wi){xs(ma-1,Xa-La-Zi+Ia);break}}dr&&Ya(0)+Zi>Wi&&oa(null)}},[Wi,Bi,Ia,Zi,Uo,io]);var Da=Co&&!!go.length,po={};_a!==null&&So&&(po={position:"absolute",left:_a,top:0});var ko={prefixCls:rs,responsive:So,component:ti,invalidate:wa},fs=wt?function(Xa,vi){var pa=Uo(Xa,vi);return Ie.createElement(gt.Provider,{key:pa,value:(0,Me.Z)((0,Me.Z)({},ko),{},{order:vi,item:Xa,itemKey:pa,registerSize:Ks,display:vi<=Ao})},wt(Xa,vi))}:function(Xa,vi){var pa=Uo(Xa,vi);return Ie.createElement(Te,(0,Oe.Z)({},ko,{order:vi,key:pa,item:Xa,renderItem:us,itemKey:pa,registerSize:Ks,display:vi<=Ao}))},ss,Fl={order:Da?Ao:Number.MAX_SAFE_INTEGER,className:"".concat(rs,"-rest"),registerSize:ds,display:Da};if(Lr)Lr&&(ss=Ie.createElement(gt.Provider,{value:(0,Me.Z)((0,Me.Z)({},ko),Fl)},Lr(go)));else{var ml=Wr||$n;ss=Ie.createElement(Te,(0,Oe.Z)({},ko,Fl),typeof ml=="function"?ml(go):ml)}var Sl=Ie.createElement(jr,(0,Oe.Z)({className:Le()(!wa&&kt,_n),style:wn,ref:Qe},Mr),io.map(fs),Na?ss:null,dr&&Ie.createElement(Te,(0,Oe.Z)({},ko,{responsive:No,responsiveDisabled:!So,order:Ao,className:"".concat(rs,"-suffix"),registerSize:Hs,display:!0,style:po}),dr));return No&&(Sl=Ie.createElement(Pe.Z,{onResize:Js,disabled:!So},Sl)),Sl}var Fn=Ie.forwardRef(yr);Fn.displayName="Overflow",Fn.Item=xt,Fn.RESPONSIVE=Un,Fn.INVALIDATE=Hn;var or=Fn,Dr=or,Fr=function(Qe,Rt){var kt,vn,jn=Qe.prefixCls,vt=Qe.id,wt=Qe.inputElement,Ct=Qe.disabled,Ft=Qe.tabIndex,Ln=Qe.autoFocus,Yn=Qe.autoComplete,wn=Qe.editable,_n=Qe.activeDescendantId,wr=Qe.value,Wr=Qe.maxLength,Lr=Qe.onKeyDown,dr=Qe.onMouseDown,Or=Qe.onChange,jr=Qe.onPaste,ti=Qe.onCompositionStart,Zr=Qe.onCompositionEnd,Mr=Qe.open,li=Qe.attrs,si=wt||Ie.createElement("input",null),Yi=si,qi=Yi.ref,ia=Yi.props,_i=ia.onKeyDown,Wi=ia.onChange,Li=ia.onMouseDown,da=ia.onCompositionStart,Bi=ia.onCompositionEnd,fi=ia.style;return"maxLength"in si.props,si=Ie.cloneElement(si,(0,Me.Z)((0,Me.Z)((0,Me.Z)({type:"search"},ia),{},{id:vt,ref:Mt(Rt,qi),disabled:Ct,tabIndex:Ft,autoComplete:Yn||"off",autoFocus:Ln,className:Le()("".concat(jn,"-selection-search-input"),(kt=si)===null||kt===void 0||(vn=kt.props)===null||vn===void 0?void 0:vn.className),role:"combobox","aria-label":"Search","aria-expanded":Mr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(vt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(vt,"_list"),"aria-activedescendant":Mr?_n:void 0},li),{},{value:wn?wr:"",maxLength:Wr,readOnly:!wn,unselectable:wn?null:"on",style:(0,Me.Z)((0,Me.Z)({},fi),{},{opacity:wn?null:0}),onKeyDown:function(va){Lr(va),_i&&_i(va)},onMouseDown:function(va){dr(va),Li&&Li(va)},onChange:function(va){Or(va),Wi&&Wi(va)},onCompositionStart:function(va){ti(va),da&&da(va)},onCompositionEnd:function(va){Zr(va),Bi&&Bi(va)},onPaste:jr})),si},hr=Ie.forwardRef(Fr);hr.displayName="Input";var _r=hr;function Mi(je){return Array.isArray(je)?je:je!==void 0?[je]:[]}var zi=typeof window!="undefined"&&window.document&&window.document.documentElement,Gi=zi;function pi(je){return je!=null}function Zt(je){return!je&&je!==0}function Kn(je){return["string","number"].includes((0,me.Z)(je))}function fr(je){var Qe=void 0;return je&&(Kn(je.title)?Qe=je.title.toString():Kn(je.label)&&(Qe=je.label.toString())),Qe}function qn(je,Qe){Gi?Ie.useLayoutEffect(je,Qe):Ie.useEffect(je,Qe)}function Br(je){var Qe;return(Qe=je.key)!==null&&Qe!==void 0?Qe:je.value}var Kr=function(Qe){Qe.preventDefault(),Qe.stopPropagation()},Rr=function(Qe){var Rt=Qe.id,kt=Qe.prefixCls,vn=Qe.values,jn=Qe.open,vt=Qe.searchValue,wt=Qe.autoClearSearchValue,Ct=Qe.inputRef,Ft=Qe.placeholder,Ln=Qe.disabled,Yn=Qe.mode,wn=Qe.showSearch,_n=Qe.autoFocus,wr=Qe.autoComplete,Wr=Qe.activeDescendantId,Lr=Qe.tabIndex,dr=Qe.removeIcon,Or=Qe.maxTagCount,jr=Qe.maxTagTextLength,ti=Qe.maxTagPlaceholder,Zr=ti===void 0?function(oa){return"+ ".concat(oa.length," ...")}:ti,Mr=Qe.tagRender,li=Qe.onToggleOpen,si=Qe.onRemove,Yi=Qe.onInputChange,qi=Qe.onInputPaste,ia=Qe.onInputKeyDown,_i=Qe.onInputMouseDown,Wi=Qe.onInputCompositionStart,Li=Qe.onInputCompositionEnd,da=Ie.useRef(null),Bi=(0,Ie.useState)(0),fi=(0,ue.Z)(Bi,2),Ji=fi[0],va=fi[1],oo=(0,Ie.useState)(!1),Ja=(0,ue.Z)(oo,2),Za=Ja[0],Ha=Ja[1],Ia="".concat(kt,"-selection"),aa=jn||Yn==="multiple"&&wt===!1||Yn==="tags"?vt:"",mo=Yn==="tags"||Yn==="multiple"&&wt===!1||wn&&(jn||Za);qn(function(){va(da.current.scrollWidth)},[aa]);function ba(oa,ro,bo,co,xo){return Ie.createElement("span",{className:Le()("".concat(Ia,"-item"),(0,be.Z)({},"".concat(Ia,"-item-disabled"),bo)),title:fr(oa)},Ie.createElement("span",{className:"".concat(Ia,"-item-content")},ro),co&&Ie.createElement(at,{className:"".concat(Ia,"-item-remove"),onMouseDown:Kr,onClick:xo,customizeIcon:dr},"\xD7"))}function Zi(oa,ro,bo,co,xo){var Ao=function(uo){Kr(uo),li(!jn)};return Ie.createElement("span",{onMouseDown:Ao},Mr({label:ro,value:oa,disabled:bo,closable:co,onClose:xo}))}function Oa(oa){var ro=oa.disabled,bo=oa.label,co=oa.value,xo=!Ln&&!ro,Ao=bo;if(typeof jr=="number"&&(typeof bo=="string"||typeof bo=="number")){var Xo=String(Ao);Xo.length>jr&&(Ao="".concat(Xo.slice(0,jr),"..."))}var uo=function(os){os&&os.stopPropagation(),si(oa)};return typeof Mr=="function"?Zi(co,Ao,ro,xo,uo):ba(oa,Ao,ro,xo,uo)}function no(oa){var ro=typeof Zr=="function"?Zr(oa):Zr;return ba({title:ro},ro,!1)}var Ra=Ie.createElement("div",{className:"".concat(Ia,"-search"),style:{width:Ji},onFocus:function(){Ha(!0)},onBlur:function(){Ha(!1)}},Ie.createElement(_r,{ref:Ct,open:jn,prefixCls:kt,id:Rt,inputElement:null,disabled:Ln,autoFocus:_n,autoComplete:wr,editable:mo,activeDescendantId:Wr,value:aa,onKeyDown:ia,onMouseDown:_i,onChange:Yi,onPaste:qi,onCompositionStart:Wi,onCompositionEnd:Li,tabIndex:Lr,attrs:Cn(Qe,!0)}),Ie.createElement("span",{ref:da,className:"".concat(Ia,"-search-mirror"),"aria-hidden":!0},aa,"\xA0")),_a=Ie.createElement(Dr,{prefixCls:"".concat(Ia,"-overflow"),data:vn,renderItem:Oa,renderRest:no,suffix:Ra,itemKey:Br,maxCount:Or});return Ie.createElement(Ie.Fragment,null,_a,!vn.length&&!aa&&Ie.createElement("span",{className:"".concat(Ia,"-placeholder")},Ft))},gr=Rr,mt=function(Qe){var Rt=Qe.inputElement,kt=Qe.prefixCls,vn=Qe.id,jn=Qe.inputRef,vt=Qe.disabled,wt=Qe.autoFocus,Ct=Qe.autoComplete,Ft=Qe.activeDescendantId,Ln=Qe.mode,Yn=Qe.open,wn=Qe.values,_n=Qe.placeholder,wr=Qe.tabIndex,Wr=Qe.showSearch,Lr=Qe.searchValue,dr=Qe.activeValue,Or=Qe.maxLength,jr=Qe.onInputKeyDown,ti=Qe.onInputMouseDown,Zr=Qe.onInputChange,Mr=Qe.onInputPaste,li=Qe.onInputCompositionStart,si=Qe.onInputCompositionEnd,Yi=Qe.title,qi=Ie.useState(!1),ia=(0,ue.Z)(qi,2),_i=ia[0],Wi=ia[1],Li=Ln==="combobox",da=Li||Wr,Bi=wn[0],fi=Lr||"";Li&&dr&&!_i&&(fi=dr),Ie.useEffect(function(){Li&&Wi(!1)},[Li,dr]);var Ji=Ln!=="combobox"&&!Yn&&!Wr?!1:!!fi,va=Yi===void 0?fr(Bi):Yi,oo=function(){if(Bi)return null;var Za=Ji?{visibility:"hidden"}:void 0;return Ie.createElement("span",{className:"".concat(kt,"-selection-placeholder"),style:Za},_n)};return Ie.createElement(Ie.Fragment,null,Ie.createElement("span",{className:"".concat(kt,"-selection-search")},Ie.createElement(_r,{ref:jn,prefixCls:kt,id:vn,open:Yn,inputElement:Rt,disabled:vt,autoFocus:wt,autoComplete:Ct,editable:da,activeDescendantId:Ft,value:fi,onKeyDown:jr,onMouseDown:ti,onChange:function(Za){Wi(!0),Zr(Za)},onPaste:Mr,onCompositionStart:li,onCompositionEnd:si,tabIndex:wr,attrs:Cn(Qe,!0),maxLength:Li?Or:void 0})),!Li&&Bi?Ie.createElement("span",{className:"".concat(kt,"-selection-item"),title:va,style:Ji?{visibility:"hidden"}:void 0},Bi.label):null,oo())},Ot=mt;function Xt(je){return![Ne.ESC,Ne.SHIFT,Ne.BACKSPACE,Ne.TAB,Ne.WIN_KEY,Ne.ALT,Ne.META,Ne.WIN_KEY_RIGHT,Ne.CTRL,Ne.SEMICOLON,Ne.EQUALS,Ne.CAPS_LOCK,Ne.CONTEXT_MENU,Ne.F1,Ne.F2,Ne.F3,Ne.F4,Ne.F5,Ne.F6,Ne.F7,Ne.F8,Ne.F9,Ne.F10,Ne.F11,Ne.F12].includes(je)}var kn=function(Qe,Rt){var kt=(0,Ie.useRef)(null),vn=(0,Ie.useRef)(!1),jn=Qe.prefixCls,vt=Qe.open,wt=Qe.mode,Ct=Qe.showSearch,Ft=Qe.tokenWithEnter,Ln=Qe.autoClearSearchValue,Yn=Qe.onSearch,wn=Qe.onSearchSubmit,_n=Qe.onToggleOpen,wr=Qe.onInputKeyDown,Wr=Qe.domRef;Ie.useImperativeHandle(Rt,function(){return{focus:function(){kt.current.focus()},blur:function(){kt.current.blur()}}});var Lr=ht(0),dr=(0,ue.Z)(Lr,2),Or=dr[0],jr=dr[1],ti=function(fi){var Ji=fi.which;(Ji===Ne.UP||Ji===Ne.DOWN)&&fi.preventDefault(),wr&&wr(fi),Ji===Ne.ENTER&&wt==="tags"&&!vn.current&&!vt&&(wn==null||wn(fi.target.value)),Xt(Ji)&&_n(!0)},Zr=function(){jr(!0)},Mr=(0,Ie.useRef)(null),li=function(fi){Yn(fi,!0,vn.current)!==!1&&_n(!0)},si=function(){vn.current=!0},Yi=function(fi){vn.current=!1,wt!=="combobox"&&li(fi.target.value)},qi=function(fi){var Ji=fi.target.value;if(Ft&&Mr.current&&/[\r\n]/.test(Mr.current)){var va=Mr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ji=Ji.replace(va,Mr.current)}Mr.current=null,li(Ji)},ia=function(fi){var Ji=fi.clipboardData,va=Ji.getData("text");Mr.current=va},_i=function(fi){var Ji=fi.target;if(Ji!==kt.current){var va=document.body.style.msTouchAction!==void 0;va?setTimeout(function(){kt.current.focus()}):kt.current.focus()}},Wi=function(fi){var Ji=Or();fi.target!==kt.current&&!Ji&&wt!=="combobox"&&fi.preventDefault(),(wt!=="combobox"&&(!Ct||!Ji)||!vt)&&(vt&&Ln!==!1&&Yn("",!0,!1),_n())},Li={inputRef:kt,onInputKeyDown:ti,onInputMouseDown:Zr,onInputChange:qi,onInputPaste:ia,onInputCompositionStart:si,onInputCompositionEnd:Yi},da=wt==="multiple"||wt==="tags"?Ie.createElement(gr,(0,Oe.Z)({},Qe,Li)):Ie.createElement(Ot,(0,Oe.Z)({},Qe,Li));return Ie.createElement("div",{ref:Wr,className:"".concat(jn,"-selector"),onClick:_i,onMouseDown:Wi},da)},lt=Ie.forwardRef(kn);lt.displayName="Selector";var Kt=lt,mn=re(62709),nn=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],In=function(Qe){var Rt=Qe===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"}}},Pn=function(Qe,Rt){var kt=Qe.prefixCls,vn=Qe.disabled,jn=Qe.visible,vt=Qe.children,wt=Qe.popupElement,Ct=Qe.animation,Ft=Qe.transitionName,Ln=Qe.dropdownStyle,Yn=Qe.dropdownClassName,wn=Qe.direction,_n=wn===void 0?"ltr":wn,wr=Qe.placement,Wr=Qe.builtinPlacements,Lr=Qe.dropdownMatchSelectWidth,dr=Qe.dropdownRender,Or=Qe.dropdownAlign,jr=Qe.getPopupContainer,ti=Qe.empty,Zr=Qe.getTriggerDOMNode,Mr=Qe.onPopupVisibleChange,li=Qe.onPopupMouseEnter,si=(0,we.Z)(Qe,nn),Yi="".concat(kt,"-dropdown"),qi=wt;dr&&(qi=dr(wt));var ia=Ie.useMemo(function(){return Wr||In(Lr)},[Wr,Lr]),_i=Ct?"".concat(Yi,"-").concat(Ct):Ft,Wi=typeof Lr=="number",Li=Ie.useMemo(function(){return Wi?null:Lr===!1?"minWidth":"width"},[Lr,Wi]),da=Ln;Wi&&(da=(0,Me.Z)((0,Me.Z)({},da),{},{width:Lr}));var Bi=Ie.useRef(null);return Ie.useImperativeHandle(Rt,function(){return{getPopupElement:function(){return Bi.current}}}),Ie.createElement(mn.Z,(0,Oe.Z)({},si,{showAction:Mr?["click"]:[],hideAction:Mr?["click"]:[],popupPlacement:wr||(_n==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ia,prefixCls:Yi,popupTransitionName:_i,popup:Ie.createElement("div",{ref:Bi,onMouseEnter:li},qi),stretch:Li,popupAlign:Or,popupVisible:jn,getPopupContainer:jr,popupClassName:Le()(Yn,(0,be.Z)({},"".concat(Yi,"-empty"),ti)),popupStyle:da,getTriggerDOMNode:Zr,onPopupVisibleChange:Mr}),vt)},vr=Ie.forwardRef(Pn);vr.displayName="SelectTrigger";var ni=vr,zr=re(84506);function Pr(je,Qe){var Rt=je.key,kt;return"value"in je&&(kt=je.value),Rt!=null?Rt:kt!==void 0?kt:"rc-index-key-".concat(Qe)}function Yr(je,Qe){var Rt=je||{},kt=Rt.label,vn=Rt.value,jn=Rt.options,vt=Rt.groupLabel,wt=kt||(Qe?"children":"label");return{label:wt,value:vn||"value",options:jn||"options",groupLabel:vt||wt}}function Qr(je){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rt=Qe.fieldNames,kt=Qe.childrenAsData,vn=[],jn=Yr(Rt,!1),vt=jn.label,wt=jn.value,Ct=jn.options,Ft=jn.groupLabel;function Ln(Yn,wn){Yn.forEach(function(_n){if(wn||!(Ct in _n)){var wr=_n[wt];vn.push({key:Pr(_n,vn.length),groupOption:wn,data:_n,label:_n[vt],value:wr})}else{var Wr=_n[Ft];Wr===void 0&&kt&&(Wr=_n.label),vn.push({key:Pr(_n,vn.length),group:!0,data:_n,label:Wr}),Ln(_n[Ct],!0)}})}return Ln(je,!1),vn}function Ht(je){var Qe=(0,Me.Z)({},je);return"props"in Qe||Object.defineProperty(Qe,"props",{get:function(){return yt(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Qe}}),Qe}function Tt(je,Qe){if(!Qe||!Qe.length)return null;var Rt=!1;function kt(jn,vt){var wt=(0,zr.Z)(vt),Ct=wt[0],Ft=wt.slice(1);if(!Ct)return[jn];var Ln=jn.split(Ct);return Rt=Rt||Ln.length>1,Ln.reduce(function(Yn,wn){return[].concat((0,Ue.Z)(Yn),(0,Ue.Z)(kt(wn,Ft)))},[]).filter(function(Yn){return Yn})}var vn=kt(je,Qe);return Rt?vn:null}var Jt=["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"],er=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function kr(je){return je==="tags"||je==="multiple"}var Rn=Ie.forwardRef(function(je,Qe){var Rt,kt,vn=je.id,jn=je.prefixCls,vt=je.className,wt=je.showSearch,Ct=je.tagRender,Ft=je.direction,Ln=je.omitDomProps,Yn=je.displayValues,wn=je.onDisplayValuesChange,_n=je.emptyOptions,wr=je.notFoundContent,Wr=wr===void 0?"Not Found":wr,Lr=je.onClear,dr=je.mode,Or=je.disabled,jr=je.loading,ti=je.getInputElement,Zr=je.getRawInputElement,Mr=je.open,li=je.defaultOpen,si=je.onDropdownVisibleChange,Yi=je.activeValue,qi=je.onActiveValueChange,ia=je.activeDescendantId,_i=je.searchValue,Wi=je.autoClearSearchValue,Li=je.onSearch,da=je.onSearchSplit,Bi=je.tokenSeparators,fi=je.allowClear,Ji=je.suffixIcon,va=je.clearIcon,oo=je.OptionList,Ja=je.animation,Za=je.transitionName,Ha=je.dropdownStyle,Ia=je.dropdownClassName,aa=je.dropdownMatchSelectWidth,mo=je.dropdownRender,ba=je.dropdownAlign,Zi=je.placement,Oa=je.builtinPlacements,no=je.getPopupContainer,Ra=je.showAction,_a=Ra===void 0?[]:Ra,oa=je.onFocus,ro=je.onBlur,bo=je.onKeyUp,co=je.onKeyDown,xo=je.onMouseDown,Ao=(0,we.Z)(je,Jt),Xo=kr(dr),uo=(wt!==void 0?wt:Xo)||dr==="combobox",Co=(0,Me.Z)({},Ao);er.forEach(function(Lo){delete Co[Lo]}),Ln==null||Ln.forEach(function(Lo){delete Co[Lo]});var os=Ie.useState(!1),rs=(0,ue.Z)(os,2),cs=rs[0],No=rs[1];Ie.useEffect(function(){No(pt())},[]);var So=Ie.useRef(null),wa=Ie.useRef(null),Na=Ie.useRef(null),io=Ie.useRef(null),go=Ie.useRef(null),Uo=Pt(),us=(0,ue.Z)(Uo,3),xs=us[0],Js=us[1],Ks=us[2];Ie.useImperativeHandle(Qe,function(){var Lo,fo;return{focus:(Lo=io.current)===null||Lo===void 0?void 0:Lo.focus,blur:(fo=io.current)===null||fo===void 0?void 0:fo.blur,scrollTo:function(gl){var ho;return(ho=go.current)===null||ho===void 0?void 0:ho.scrollTo(gl)}}});var ds=Ie.useMemo(function(){var Lo;if(dr!=="combobox")return _i;var fo=(Lo=Yn[0])===null||Lo===void 0?void 0:Lo.value;return typeof fo=="string"||typeof fo=="number"?String(fo):""},[_i,dr,Yn]),Hs=dr==="combobox"&&typeof ti=="function"&&ti()||null,Ya=typeof Zr=="function"&&Zr(),Da=Gt(wa,Ya==null||(Rt=Ya.props)===null||Rt===void 0?void 0:Rt.ref),po=Ie.useState(!1),ko=(0,ue.Z)(po,2),fs=ko[0],ss=ko[1];dt(function(){ss(!0)},[]);var Fl=it(!1,{defaultValue:li,value:Mr}),ml=(0,ue.Z)(Fl,2),Sl=ml[0],Xa=ml[1],vi=fs?Sl:!1,pa=!Wr&&_n;(Or||pa&&vi&&dr==="combobox")&&(vi=!1);var ma=pa?!1:vi,La=Ie.useCallback(function(Lo){var fo=Lo!==void 0?Lo:!vi;Or||(Xa(fo),vi!==fo&&(si==null||si(fo)))},[Or,vi,Xa,si]),Vo=Ie.useMemo(function(){return(Bi||[]).some(function(Lo){return[`
|
|
|
`,`\r
|
|
|
`].includes(Lo)})},[Bi]),Qo=function(fo,_s,gl){var ho=!0,Wo=fo;qi==null||qi(null);var Ho=gl?null:Tt(fo,Bi);return dr!=="combobox"&&Ho&&(Wo="",da==null||da(Ho),La(!1),ho=!1),Li&&ds!==Wo&&Li(Wo,{source:_s?"typing":"effect"}),ho},rl=function(fo){!fo||!fo.trim()||Li(fo,{source:"submit"})};Ie.useEffect(function(){!vi&&!Xo&&dr!=="combobox"&&Qo("",!1,!1)},[vi]),Ie.useEffect(function(){Sl&&Or&&Xa(!1),Or&&Js(!1)},[Or]);var ul=ht(),wl=(0,ue.Z)(ul,2),vo=wl[0],$s=wl[1],Ol=function(fo){var _s=vo(),gl=fo.which;if(gl===Ne.ENTER&&(dr!=="combobox"&&fo.preventDefault(),vi||La(!0)),$s(!!ds),gl===Ne.BACKSPACE&&!_s&&Xo&&!ds&&Yn.length){for(var ho=(0,Ue.Z)(Yn),Wo=null,Ho=ho.length-1;Ho>=0;Ho-=1){var ws=ho[Ho];if(!ws.disabled){ho.splice(Ho,1),Wo=ws;break}}Wo&&wn(ho,{type:"remove",values:[Wo]})}for(var qs=arguments.length,_l=new Array(qs>1?qs-1:0),zl=1;zl<qs;zl++)_l[zl-1]=arguments[zl];if(vi&&go.current){var jc;(jc=go.current).onKeyDown.apply(jc,[fo].concat(_l))}co==null||co.apply(void 0,[fo].concat(_l))},Sc=function(fo){for(var _s=arguments.length,gl=new Array(_s>1?_s-1:0),ho=1;ho<_s;ho++)gl[ho-1]=arguments[ho];if(vi&&go.current){var Wo;(Wo=go.current).onKeyUp.apply(Wo,[fo].concat(gl))}bo==null||bo.apply(void 0,[fo].concat(gl))},Gl=function(fo){var _s=Yn.filter(function(gl){return gl!==fo});wn(_s,{type:"remove",values:[fo]})},Cl=Ie.useRef(!1),il=function(){Js(!0),Or||(oa&&!Cl.current&&oa.apply(void 0,arguments),_a.includes("focus")&&La(!0)),Cl.current=!0},ql=function(){Js(!1,function(){Cl.current=!1,La(!1)}),!Or&&(ds&&(dr==="tags"?Li(ds,{source:"submit"}):dr==="multiple"&&Li("",{source:"blur"})),ro&&ro.apply(void 0,arguments))},dl=[];Ie.useEffect(function(){return function(){dl.forEach(function(Lo){return clearTimeout(Lo)}),dl.splice(0,dl.length)}},[]);var ec=function(fo){var _s,gl=fo.target,ho=(_s=Na.current)===null||_s===void 0?void 0:_s.getPopupElement();if(ho&&ho.contains(gl)){var Wo=setTimeout(function(){var _l=dl.indexOf(Wo);if(_l!==-1&&dl.splice(_l,1),Ks(),!cs&&!ho.contains(document.activeElement)){var zl;(zl=io.current)===null||zl===void 0||zl.focus()}});dl.push(Wo)}for(var Ho=arguments.length,ws=new Array(Ho>1?Ho-1:0),qs=1;qs<Ho;qs++)ws[qs-1]=arguments[qs];xo==null||xo.apply(void 0,[fo].concat(ws))},is=Ie.useState({}),Eo=(0,ue.Z)(is,2),qo=Eo[1];function Ss(){qo({})}var Ts;Ya&&(Ts=function(fo){La(fo)}),Et(function(){var Lo;return[So.current,(Lo=Na.current)===null||Lo===void 0?void 0:Lo.getPopupElement()]},ma,La,!!Ya);var al=Ie.useMemo(function(){return(0,Me.Z)((0,Me.Z)({},je),{},{notFoundContent:Wr,open:vi,triggerOpen:ma,id:vn,showSearch:uo,multiple:Xo,toggleOpen:La})},[je,Wr,ma,vi,vn,uo,Xo,La]),Os=!!Ji||jr,Hl;Os&&(Hl=Ie.createElement(at,{className:Le()("".concat(jn,"-arrow"),(0,be.Z)({},"".concat(jn,"-arrow-loading"),jr)),customizeIcon:Ji,customizeIconProps:{loading:jr,searchValue:ds,open:vi,focused:xs,showSearch:uo}}));var Zc=function(){var fo;Lr==null||Lr(),(fo=io.current)===null||fo===void 0||fo.focus(),wn([],{type:"clear",values:Yn}),Qo("",!1,!1)},fc=Ae(jn,Zc,Yn,fi,va,Or,ds,dr),Tc=fc.allowClear,Oc=fc.clearIcon,tc=Ie.createElement(oo,{ref:go}),nc=Le()(jn,vt,(kt={},(0,be.Z)(kt,"".concat(jn,"-focused"),xs),(0,be.Z)(kt,"".concat(jn,"-multiple"),Xo),(0,be.Z)(kt,"".concat(jn,"-single"),!Xo),(0,be.Z)(kt,"".concat(jn,"-allow-clear"),fi),(0,be.Z)(kt,"".concat(jn,"-show-arrow"),Os),(0,be.Z)(kt,"".concat(jn,"-disabled"),Or),(0,be.Z)(kt,"".concat(jn,"-loading"),jr),(0,be.Z)(kt,"".concat(jn,"-open"),vi),(0,be.Z)(kt,"".concat(jn,"-customize-input"),Hs),(0,be.Z)(kt,"".concat(jn,"-show-search"),uo),kt)),Nc=Ie.createElement(ni,{ref:Na,disabled:Or,prefixCls:jn,visible:ma,popupElement:tc,animation:Ja,transitionName:Za,dropdownStyle:Ha,dropdownClassName:Ia,direction:Ft,dropdownMatchSelectWidth:aa,dropdownRender:mo,dropdownAlign:ba,placement:Zi,builtinPlacements:Oa,getPopupContainer:no,empty:_n,getTriggerDOMNode:function(){return wa.current},onPopupVisibleChange:Ts,onPopupMouseEnter:Ss},Ya?Ie.cloneElement(Ya,{ref:Da}):Ie.createElement(Kt,(0,Oe.Z)({},je,{domRef:wa,prefixCls:jn,inputElement:Hs,ref:io,id:vn,showSearch:uo,autoClearSearchValue:Wi,mode:dr,activeDescendantId:ia,tagRender:Ct,values:Yn,open:vi,onToggleOpen:La,activeValue:Yi,searchValue:ds,onSearch:Qo,onSearchSubmit:rl,onRemove:Gl,tokenWithEnter:Vo}))),Pc;return Ya?Pc=Nc:Pc=Ie.createElement("div",(0,Oe.Z)({className:nc},Co,{ref:So,onMouseDown:ec,onKeyDown:Ol,onKeyUp:Sc,onFocus:il,onBlur:ql}),xs&&!vi&&Ie.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Yn.map(function(Lo){var fo=Lo.label,_s=Lo.value;return["number","string"].includes((0,me.Z)(fo))?fo:_s}).join(", "))),Nc,Hl,Tc&&Oc),Ie.createElement(St.Provider,{value:al},Pc)}),Jn=Rn,sr=function(je,Qe){var Rt=Ie.useRef({values:new Map,options:new Map}),kt=Ie.useMemo(function(){var jn=Rt.current,vt=jn.values,wt=jn.options,Ct=je.map(function(Yn){if(Yn.label===void 0){var wn;return(0,Me.Z)((0,Me.Z)({},Yn),{},{label:(wn=vt.get(Yn.value))===null||wn===void 0?void 0:wn.label})}return Yn}),Ft=new Map,Ln=new Map;return Ct.forEach(function(Yn){Ft.set(Yn.value,Yn),Ln.set(Yn.value,Qe.get(Yn.value)||wt.get(Yn.value))}),Rt.current.values=Ft,Rt.current.options=Ln,Ct},[je,Qe]),vn=Ie.useCallback(function(jn){return Qe.get(jn)||Rt.current.options.get(jn)},[Qe]);return[kt,vn]};function Ir(je,Qe){return Mi(je).join("").toUpperCase().includes(Qe)}var Xr=function(je,Qe,Rt,kt,vn){return Ie.useMemo(function(){if(!Rt||kt===!1)return je;var jn=Qe.options,vt=Qe.label,wt=Qe.value,Ct=[],Ft=typeof kt=="function",Ln=Rt.toUpperCase(),Yn=Ft?kt:function(_n,wr){return vn?Ir(wr[vn],Ln):wr[jn]?Ir(wr[vt!=="children"?vt:"label"],Ln):Ir(wr[wt],Ln)},wn=Ft?function(_n){return Ht(_n)}:function(_n){return _n};return je.forEach(function(_n){if(_n[jn]){var wr=Yn(Rt,wn(_n));if(wr)Ct.push(_n);else{var Wr=_n[jn].filter(function(Lr){return Yn(Rt,wn(Lr))});Wr.length&&Ct.push((0,Me.Z)((0,Me.Z)({},_n),{},(0,be.Z)({},jn,Wr)))}return}Yn(Rt,wn(_n))&&Ct.push(_n)}),Ct},[je,kt,vn,Rt,Qe])},Wn=0,Ai=Ke();function xi(){var je;return Ai?(je=Wn,Wn+=1):je="TEST_OR_SSR",je}function Sa(je){var Qe=Ie.useState(),Rt=(0,ue.Z)(Qe,2),kt=Rt[0],vn=Rt[1];return Ie.useEffect(function(){vn("rc_select_".concat(xi()))},[]),je||kt}function fa(je){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rt=[];return Ie.Children.forEach(je,function(kt){kt==null&&!Qe.keepEmpty||(Array.isArray(kt)?Rt=Rt.concat(fa(kt)):(0,jt.isFragment)(kt)&&kt.props?Rt=Rt.concat(fa(kt.props.children,Qe)):Rt.push(kt))}),Rt}var na=["children","value"],Ni=["children"];function la(je){var Qe=je,Rt=Qe.key,kt=Qe.props,vn=kt.children,jn=kt.value,vt=(0,we.Z)(kt,na);return(0,Me.Z)({key:Rt,value:jn!==void 0?jn:Rt,children:vn},vt)}function Qi(je){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return fa(je).map(function(Rt,kt){if(!Ie.isValidElement(Rt)||!Rt.type)return null;var vn=Rt,jn=vn.type.isSelectOptGroup,vt=vn.key,wt=vn.props,Ct=wt.children,Ft=(0,we.Z)(wt,Ni);return Qe||!jn?la(Rt):(0,Me.Z)((0,Me.Z)({key:"__RC_SELECT_GRP__".concat(vt===null?kt:vt,"__"),label:vt},Ft),{},{options:Qi(Ct)})}).filter(function(Rt){return Rt})}function ga(je,Qe,Rt,kt,vn){return Ie.useMemo(function(){var jn=je,vt=!je;vt&&(jn=Qi(Qe));var wt=new Map,Ct=new Map,Ft=function(wn,_n,wr){wr&&typeof wr=="string"&&wn.set(_n[wr],_n)};function Ln(Yn){for(var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_n=0;_n<Yn.length;_n+=1){var wr=Yn[_n];!wr[Rt.options]||wn?(wt.set(wr[Rt.value],wr),Ft(Ct,wr,Rt.label),Ft(Ct,wr,kt),Ft(Ct,wr,vn)):Ln(wr[Rt.options],!0)}}return Ln(jn),{options:jn,valueOptions:wt,labelOptions:Ct}},[je,Qe,Rt,kt,vn])}function Ba(je){var Qe=Ie.useRef();Qe.current=je;var Rt=Ie.useCallback(function(){return Qe.current.apply(Qe,arguments)},[]);return Rt}var Oi=function(){return null};Oi.isSelectOptGroup=!0;var ca=Oi,Ca=function(){return null};Ca.isSelectOption=!0;var Qa=Ca;function za(je,Qe){var Rt=(0,Me.Z)({},je);return Array.isArray(Qe)&&Qe.forEach(function(kt){delete Rt[kt]}),Rt}var Pi=re(73299),an=Ie.createContext(null),Vt=an;function zn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var cr=["disabled","title","children","style","className"];function Er(je){return typeof je=="string"||typeof je=="number"}var qr=function(Qe,Rt){var kt=cn(),vn=kt.prefixCls,jn=kt.id,vt=kt.open,wt=kt.multiple,Ct=kt.mode,Ft=kt.searchValue,Ln=kt.toggleOpen,Yn=kt.notFoundContent,wn=kt.onPopupScroll,_n=Ie.useContext(Vt),wr=_n.flattenOptions,Wr=_n.onActiveValue,Lr=_n.defaultActiveFirstOption,dr=_n.onSelect,Or=_n.menuItemSelectedIcon,jr=_n.rawValues,ti=_n.fieldNames,Zr=_n.virtual,Mr=_n.direction,li=_n.listHeight,si=_n.listItemHeight,Yi="".concat(vn,"-item"),qi=bt(function(){return wr},[vt,wr],function(ba,Zi){return Zi[0]&&ba[1]!==Zi[1]}),ia=Ie.useRef(null),_i=function(Zi){Zi.preventDefault()},Wi=function(Zi){ia.current&&ia.current.scrollTo(typeof Zi=="number"?{index:Zi}:Zi)},Li=function(Zi){for(var Oa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,no=qi.length,Ra=0;Ra<no;Ra+=1){var _a=(Zi+Ra*Oa+no)%no,oa=qi[_a],ro=oa.group,bo=oa.data;if(!ro&&!bo.disabled)return _a}return-1},da=Ie.useState(function(){return Li(0)}),Bi=(0,ue.Z)(da,2),fi=Bi[0],Ji=Bi[1],va=function(Zi){var Oa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ji(Zi);var no={source:Oa?"keyboard":"mouse"},Ra=qi[Zi];if(!Ra){Wr(null,-1,no);return}Wr(Ra.value,Zi,no)};(0,Ie.useEffect)(function(){va(Lr!==!1?Li(0):-1)},[qi.length,Ft]);var oo=Ie.useCallback(function(ba){return jr.has(ba)&&Ct!=="combobox"},[Ct,(0,Ue.Z)(jr).toString(),jr.size]);(0,Ie.useEffect)(function(){var ba=setTimeout(function(){if(!wt&&vt&&jr.size===1){var Oa=Array.from(jr)[0],no=qi.findIndex(function(Ra){var _a=Ra.data;return _a.value===Oa});no!==-1&&(va(no),Wi(no))}});if(vt){var Zi;(Zi=ia.current)===null||Zi===void 0||Zi.scrollTo(void 0)}return function(){return clearTimeout(ba)}},[vt,Ft,wr.length]);var Ja=function(Zi){Zi!==void 0&&dr(Zi,{selected:!jr.has(Zi)}),wt||Ln(!1)};if(Ie.useImperativeHandle(Rt,function(){return{onKeyDown:function(Zi){var Oa=Zi.which,no=Zi.ctrlKey;switch(Oa){case Ne.N:case Ne.P:case Ne.UP:case Ne.DOWN:{var Ra=0;if(Oa===Ne.UP?Ra=-1:Oa===Ne.DOWN?Ra=1:zn()&&no&&(Oa===Ne.N?Ra=1:Oa===Ne.P&&(Ra=-1)),Ra!==0){var _a=Li(fi+Ra,Ra);Wi(_a),va(_a,!0)}break}case Ne.ENTER:{var oa=qi[fi];oa&&!oa.data.disabled?Ja(oa.value):Ja(void 0),vt&&Zi.preventDefault();break}case Ne.ESC:Ln(!1),vt&&Zi.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Zi){Wi(Zi)}}}),qi.length===0)return Ie.createElement("div",{role:"listbox",id:"".concat(jn,"_list"),className:"".concat(Yi,"-empty"),onMouseDown:_i},Yn);var Za=Object.keys(ti).map(function(ba){return ti[ba]}),Ha=function(Zi){return Zi.label};function Ia(ba,Zi){var Oa=ba.group;return{role:Oa?"presentation":"option",id:"".concat(jn,"_list_").concat(Zi)}}var aa=function(Zi){var Oa=qi[Zi];if(!Oa)return null;var no=Oa.data||{},Ra=no.value,_a=Oa.group,oa=Cn(no,!0),ro=Ha(Oa);return Oa?Ie.createElement("div",(0,Oe.Z)({"aria-label":typeof ro=="string"&&!_a?ro:null},oa,{key:Zi},Ia(Oa,Zi),{"aria-selected":oo(Ra)}),Ra):null},mo={role:"listbox",id:"".concat(jn,"_list")};return Ie.createElement(Ie.Fragment,null,Zr&&Ie.createElement("div",(0,Oe.Z)({},mo,{style:{height:0,width:0,overflow:"hidden"}}),aa(fi-1),aa(fi),aa(fi+1)),Ie.createElement(Pi.Z,{itemKey:"key",ref:ia,data:qi,height:li,itemHeight:si,fullHeight:!1,onMouseDown:_i,onScroll:wn,virtual:Zr,direction:Mr,innerProps:Zr?null:mo},function(ba,Zi){var Oa,no=ba.group,Ra=ba.groupOption,_a=ba.data,oa=ba.label,ro=ba.value,bo=_a.key;if(no){var co,xo=(co=_a.title)!==null&&co!==void 0?co:Er(oa)?oa.toString():void 0;return Ie.createElement("div",{className:Le()(Yi,"".concat(Yi,"-group")),title:xo},oa!==void 0?oa:bo)}var Ao=_a.disabled,Xo=_a.title,uo=_a.children,Co=_a.style,os=_a.className,rs=(0,we.Z)(_a,cr),cs=za(rs,Za),No=oo(ro),So="".concat(Yi,"-option"),wa=Le()(Yi,So,os,(Oa={},(0,be.Z)(Oa,"".concat(So,"-grouped"),Ra),(0,be.Z)(Oa,"".concat(So,"-active"),fi===Zi&&!Ao),(0,be.Z)(Oa,"".concat(So,"-disabled"),Ao),(0,be.Z)(Oa,"".concat(So,"-selected"),No),Oa)),Na=Ha(ba),io=!Or||typeof Or=="function"||No,go=typeof Na=="number"?Na:Na||ro,Uo=Er(go)?go.toString():void 0;return Xo!==void 0&&(Uo=Xo),Ie.createElement("div",(0,Oe.Z)({},Cn(cs),Zr?{}:Ia(ba,Zi),{"aria-selected":No,className:wa,title:Uo,onMouseMove:function(){fi===Zi||Ao||va(Zi)},onClick:function(){Ao||Ja(ro)},style:Co}),Ie.createElement("div",{className:"".concat(So,"-content")},go),Ie.isValidElement(Or)||No,io&&Ie.createElement(at,{className:"".concat(Yi,"-option-state"),customizeIcon:Or,customizeIconProps:{isSelected:No}},No?"\u2713":null))}))},di=Ie.forwardRef(qr);di.displayName="OptionList";var bi=di;function ki(je){var Qe=je.mode,Rt=je.options,kt=je.children,vn=je.backfill,jn=je.allowClear,vt=je.placeholder,wt=je.getInputElement,Ct=je.showSearch,Ft=je.onSearch,Ln=je.defaultOpen,Yn=je.autoFocus,wn=je.labelInValue,_n=je.value,wr=je.inputValue,Wr=je.optionLabelProp,Lr=isMultiple(Qe),dr=Ct!==void 0?Ct:Lr||Qe==="combobox",Or=Rt||convertChildrenToData(kt);if(warning(Qe!=="tags"||Or.every(function(Mr){return!Mr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Qe==="tags"||Qe==="combobox"){var jr=Or.some(function(Mr){return Mr.options?Mr.options.some(function(li){return typeof("value"in li?li.value:li.key)=="number"}):typeof("value"in Mr?Mr.value:Mr.key)=="number"});warning(!jr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Qe!=="combobox"||!Wr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Qe==="combobox"||!vn,"`backfill` only works with `combobox` mode."),warning(Qe==="combobox"||!wt,"`getInputElement` only work with `combobox` mode."),noteOnce(Qe!=="combobox"||!wt||!jn||!vt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ft&&!dr&&Qe!=="combobox"&&Qe!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ln||Yn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),_n!=null){var ti=toArray(_n);warning(!wn||ti.every(function(Mr){return _typeof(Mr)==="object"&&("key"in Mr||"value"in Mr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Lr||Array.isArray(_n),"`value` should be array when `mode` is `multiple` or `tags`")}if(kt){var Zr=null;toNodeArray(kt).some(function(Mr){if(!React.isValidElement(Mr)||!Mr.type)return!1;var li=Mr,si=li.type;if(si.isSelectOption)return!1;if(si.isSelectOptGroup){var Yi=toNodeArray(Mr.props.children).every(function(qi){return!React.isValidElement(qi)||!Mr.type||qi.type.isSelectOption?!0:(Zr=qi.type,!1)});return!Yi}return Zr=si,!0}),Zr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Zr.displayName||Zr.name||Zr,"`.")),warning(wr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Si(je,Qe){if(je){var Rt=function kt(vn){for(var jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,vt=0;vt<vn.length;vt++){var wt=vn[vt];if(wt[Qe==null?void 0:Qe.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!jn&&Array.isArray(wt[Qe==null?void 0:Qe.options])&&kt(wt[Qe==null?void 0:Qe.options],!0))break}};Rt(je)}}var Ri=null,ra=["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"],oi=["inputValue"];function hn(je){return!je||(0,me.Z)(je)!=="object"}var Dn=Ie.forwardRef(function(je,Qe){var Rt=je.id,kt=je.mode,vn=je.prefixCls,jn=vn===void 0?"rc-select":vn,vt=je.backfill,wt=je.fieldNames,Ct=je.inputValue,Ft=je.searchValue,Ln=je.onSearch,Yn=je.autoClearSearchValue,wn=Yn===void 0?!0:Yn,_n=je.onSelect,wr=je.onDeselect,Wr=je.dropdownMatchSelectWidth,Lr=Wr===void 0?!0:Wr,dr=je.filterOption,Or=je.filterSort,jr=je.optionFilterProp,ti=je.optionLabelProp,Zr=je.options,Mr=je.children,li=je.defaultActiveFirstOption,si=je.menuItemSelectedIcon,Yi=je.virtual,qi=je.direction,ia=je.listHeight,_i=ia===void 0?200:ia,Wi=je.listItemHeight,Li=Wi===void 0?20:Wi,da=je.value,Bi=je.defaultValue,fi=je.labelInValue,Ji=je.onChange,va=(0,we.Z)(je,ra),oo=Sa(Rt),Ja=kr(kt),Za=!!(!Zr&&Mr),Ha=Ie.useMemo(function(){return dr===void 0&&kt==="combobox"?!1:dr},[dr,kt]),Ia=Ie.useMemo(function(){return Yr(wt,Za)},[JSON.stringify(wt),Za]),aa=it("",{value:Ft!==void 0?Ft:Ct,postState:function(pa){return pa||""}}),mo=(0,ue.Z)(aa,2),ba=mo[0],Zi=mo[1],Oa=ga(Zr,Mr,Ia,jr,ti),no=Oa.valueOptions,Ra=Oa.labelOptions,_a=Oa.options,oa=Ie.useCallback(function(vi){var pa=Mi(vi);return pa.map(function(ma){var La,Vo,Qo,rl,ul;if(hn(ma))La=ma;else{var wl;Qo=ma.key,Vo=ma.label,La=(wl=ma.value)!==null&&wl!==void 0?wl:Qo}var vo=no.get(La);if(vo){var $s;if(Vo===void 0&&(Vo=vo==null?void 0:vo[ti||Ia.label]),Qo===void 0&&(Qo=($s=vo==null?void 0:vo.key)!==null&&$s!==void 0?$s:La),rl=vo==null?void 0:vo.disabled,ul=vo==null?void 0:vo.title,0)var Ol}return{label:Vo,value:La,key:Qo,disabled:rl,title:ul}})},[Ia,ti,no]),ro=it(Bi,{value:da}),bo=(0,ue.Z)(ro,2),co=bo[0],xo=bo[1],Ao=Ie.useMemo(function(){var vi,pa=oa(co);return kt==="combobox"&&Zt((vi=pa[0])===null||vi===void 0?void 0:vi.value)?[]:pa},[co,oa,kt]),Xo=sr(Ao,no),uo=(0,ue.Z)(Xo,2),Co=uo[0],os=uo[1],rs=Ie.useMemo(function(){if(!kt&&Co.length===1){var vi=Co[0];if(vi.value===null&&(vi.label===null||vi.label===void 0))return[]}return Co.map(function(pa){var ma;return(0,Me.Z)((0,Me.Z)({},pa),{},{label:(ma=pa.label)!==null&&ma!==void 0?ma:pa.value})})},[kt,Co]),cs=Ie.useMemo(function(){return new Set(Co.map(function(vi){return vi.value}))},[Co]);Ie.useEffect(function(){if(kt==="combobox"){var vi,pa=(vi=Co[0])===null||vi===void 0?void 0:vi.value;Zi(pi(pa)?String(pa):"")}},[Co]);var No=Ba(function(vi,pa){var ma,La=pa!=null?pa:vi;return ma={},(0,be.Z)(ma,Ia.value,vi),(0,be.Z)(ma,Ia.label,La),ma}),So=Ie.useMemo(function(){if(kt!=="tags")return _a;var vi=(0,Ue.Z)(_a),pa=function(La){return no.has(La)};return(0,Ue.Z)(Co).sort(function(ma,La){return ma.value<La.value?-1:1}).forEach(function(ma){var La=ma.value;pa(La)||vi.push(No(La,ma.label))}),vi},[No,_a,no,Co,kt]),wa=Xr(So,Ia,ba,Ha,jr),Na=Ie.useMemo(function(){return kt!=="tags"||!ba||wa.some(function(vi){return vi[jr||"value"]===ba})||wa.some(function(vi){return vi[Ia.value]===ba})?wa:[No(ba)].concat((0,Ue.Z)(wa))},[No,jr,kt,wa,ba,Ia]),io=Ie.useMemo(function(){return Or?(0,Ue.Z)(Na).sort(function(vi,pa){return Or(vi,pa)}):Na},[Na,Or]),go=Ie.useMemo(function(){return Qr(io,{fieldNames:Ia,childrenAsData:Za})},[io,Ia,Za]),Uo=function(pa){var ma=oa(pa);if(xo(ma),Ji&&(ma.length!==Co.length||ma.some(function(Qo,rl){var ul;return((ul=Co[rl])===null||ul===void 0?void 0:ul.value)!==(Qo==null?void 0:Qo.value)}))){var La=fi?ma:ma.map(function(Qo){return Qo.value}),Vo=ma.map(function(Qo){return Ht(os(Qo.value))});Ji(Ja?La:La[0],Ja?Vo:Vo[0])}},us=Ie.useState(null),xs=(0,ue.Z)(us,2),Js=xs[0],Ks=xs[1],ds=Ie.useState(0),Hs=(0,ue.Z)(ds,2),Ya=Hs[0],Da=Hs[1],po=li!==void 0?li:kt!=="combobox",ko=Ie.useCallback(function(vi,pa){var ma=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},La=ma.source,Vo=La===void 0?"keyboard":La;Da(pa),vt&&kt==="combobox"&&vi!==null&&Vo==="keyboard"&&Ks(String(vi))},[vt,kt]),fs=function(pa,ma,La){var Vo=function(){var Cl,il=os(pa);return[fi?{label:il==null?void 0:il[Ia.label],value:pa,key:(Cl=il==null?void 0:il.key)!==null&&Cl!==void 0?Cl:pa}:pa,Ht(il)]};if(ma&&_n){var Qo=Vo(),rl=(0,ue.Z)(Qo,2),ul=rl[0],wl=rl[1];_n(ul,wl)}else if(!ma&&wr&&La!=="clear"){var vo=Vo(),$s=(0,ue.Z)(vo,2),Ol=$s[0],Sc=$s[1];wr(Ol,Sc)}},ss=Ba(function(vi,pa){var ma,La=Ja?pa.selected:!0;La?ma=Ja?[].concat((0,Ue.Z)(Co),[vi]):[vi]:ma=Co.filter(function(Vo){return Vo.value!==vi}),Uo(ma),fs(vi,La),kt==="combobox"?Ks(""):(!kr||wn)&&(Zi(""),Ks(""))}),Fl=function(pa,ma){Uo(pa);var La=ma.type,Vo=ma.values;(La==="remove"||La==="clear")&&Vo.forEach(function(Qo){fs(Qo.value,!1,La)})},ml=function(pa,ma){if(Zi(pa),Ks(null),ma.source==="submit"){var La=(pa||"").trim();if(La){var Vo=Array.from(new Set([].concat((0,Ue.Z)(cs),[La])));Uo(Vo),fs(La,!0),Zi("")}return}ma.source!=="blur"&&(kt==="combobox"&&Uo(pa),Ln==null||Ln(pa))},Sl=function(pa){var ma=pa;kt!=="tags"&&(ma=pa.map(function(Vo){var Qo=Ra.get(Vo);return Qo==null?void 0:Qo.value}).filter(function(Vo){return Vo!==void 0}));var La=Array.from(new Set([].concat((0,Ue.Z)(cs),(0,Ue.Z)(ma))));Uo(La),La.forEach(function(Vo){fs(Vo,!0)})},Xa=Ie.useMemo(function(){var vi=Yi!==!1&&Lr!==!1;return(0,Me.Z)((0,Me.Z)({},Oa),{},{flattenOptions:go,onActiveValue:ko,defaultActiveFirstOption:po,onSelect:ss,menuItemSelectedIcon:si,rawValues:cs,fieldNames:Ia,virtual:vi,direction:qi,listHeight:_i,listItemHeight:Li,childrenAsData:Za})},[Oa,go,ko,po,ss,si,cs,Ia,Yi,Lr,_i,Li,Za]);return Ie.createElement(Vt.Provider,{value:Xa},Ie.createElement(Jn,(0,Oe.Z)({},va,{id:oo,prefixCls:jn,ref:Qe,omitDomProps:oi,mode:kt,displayValues:rs,onDisplayValuesChange:Fl,direction:qi,searchValue:ba,onSearch:ml,autoClearSearchValue:wn,onSearchSplit:Sl,dropdownMatchSelectWidth:Lr,OptionList:bi,emptyOptions:!go.length,activeValue:Js,activeDescendantId:"".concat(oo,"_list_").concat(Ya)})))}),Xn=Dn;Xn.Option=Qa,Xn.OptGroup=ca;var ge=Xn,Re=ge,He=re(10366),Ye=re(8745),Ve=re(33603),$e=re(9708),tt=re(53124),Wt=re(98866),on=re(88258),Zn=re(98675),tr=re(65223),Vn=re(4173),Mn=re(87244),En=re(13458),dn=re(78642),Gn=re(46163),xr=function(je,Qe){var Rt={};for(var kt in je)Object.prototype.hasOwnProperty.call(je,kt)&&Qe.indexOf(kt)<0&&(Rt[kt]=je[kt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vn=0,kt=Object.getOwnPropertySymbols(je);vn<kt.length;vn++)Qe.indexOf(kt[vn])<0&&Object.prototype.propertyIsEnumerable.call(je,kt[vn])&&(Rt[kt[vn]]=je[kt[vn]]);return Rt};const ar="SECRET_COMBOBOX_MODE_DO_NOT_USE",ur=(je,Qe)=>{var Rt,{prefixCls:kt,bordered:vn=!0,className:jn,rootClassName:vt,getPopupContainer:wt,popupClassName:Ct,dropdownClassName:Ft,listHeight:Ln=256,placement:Yn,listItemHeight:wn=24,size:_n,disabled:wr,notFoundContent:Wr,status:Lr,builtinPlacements:dr,dropdownMatchSelectWidth:Or,popupMatchSelectWidth:jr,direction:ti,style:Zr,allowClear:Mr}=je,li=xr(je,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:si,getPrefixCls:Yi,renderEmpty:qi,direction:ia,virtual:_i,popupMatchSelectWidth:Wi,popupOverflow:Li,select:da}=Ie.useContext(tt.E_),Bi=Yi("select",kt),fi=Yi(),Ji=ti!=null?ti:ia,{compactSize:va,compactItemClassnames:oo}=(0,Vn.ri)(Bi,Ji),[Ja,Za]=(0,Mn.Z)(Bi),Ha=Ie.useMemo(()=>{const{mode:So}=li;if(So!=="combobox")return So===ar?"combobox":So},[li.mode]),Ia=Ha==="multiple"||Ha==="tags",aa=(0,dn.Z)(li.suffixIcon,li.showArrow),mo=(Rt=jr!=null?jr:Or)!==null&&Rt!==void 0?Rt:Wi,{status:ba,hasFeedback:Zi,isFormItemInput:Oa,feedbackIcon:no}=Ie.useContext(tr.aM),Ra=(0,$e.F)(ba,Lr);let _a;Wr!==void 0?_a=Wr:Ha==="combobox"?_a=null:_a=(qi==null?void 0:qi("Select"))||Ie.createElement(on.Z,{componentName:"Select"});const{suffixIcon:oa,itemIcon:ro,removeIcon:bo,clearIcon:co}=(0,Gn.Z)(Object.assign(Object.assign({},li),{multiple:Ia,hasFeedback:Zi,feedbackIcon:no,showSuffixIcon:aa,prefixCls:Bi,showArrow:li.showArrow,componentName:"Select"})),xo=Mr===!0?{clearIcon:co}:Mr,Ao=(0,He.Z)(li,["suffixIcon","itemIcon"]),Xo=Le()(Ct||Ft,{[`${Bi}-dropdown-${Ji}`]:Ji==="rtl"},vt,Za),uo=(0,Zn.Z)(So=>{var wa;return(wa=_n!=null?_n:va)!==null&&wa!==void 0?wa:So}),Co=Ie.useContext(Wt.Z),os=wr!=null?wr:Co,rs=Le()({[`${Bi}-lg`]:uo==="large",[`${Bi}-sm`]:uo==="small",[`${Bi}-rtl`]:Ji==="rtl",[`${Bi}-borderless`]:!vn,[`${Bi}-in-form-item`]:Oa},(0,$e.Z)(Bi,Ra,Zi),oo,da==null?void 0:da.className,jn,vt,Za),cs=Ie.useMemo(()=>Yn!==void 0?Yn:Ji==="rtl"?"bottomRight":"bottomLeft",[Yn,Ji]),No=(0,En.Z)(dr,Li);return Ja(Ie.createElement(Re,Object.assign({ref:Qe,virtual:_i,showSearch:da==null?void 0:da.showSearch},Ao,{style:Object.assign(Object.assign({},da==null?void 0:da.style),Zr),dropdownMatchSelectWidth:mo,builtinPlacements:No,transitionName:(0,Ve.m)(fi,"slide-up",li.transitionName),listHeight:Ln,listItemHeight:wn,mode:Ha,prefixCls:Bi,placement:cs,direction:Ji,suffixIcon:oa,menuItemSelectedIcon:ro,removeIcon:bo,allowClear:xo,notFoundContent:_a,className:rs,getPopupContainer:wt||si,dropdownClassName:Xo,disabled:os})))},mr=Ie.forwardRef(ur),Sr=(0,Ye.Z)(mr);mr.SECRET_COMBOBOX_MODE_DO_NOT_USE=ar,mr.Option=Qa,mr.OptGroup=ca,mr._InternalPanelDoNotUseOrYouWillBeFired=Sr;var Tr=mr},87244:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return xe}});var ie=re(14747),Le=re(80110),Oe=re(45503),Ue=re(67968),be=re(67771),Me=re(33297);const ue=Se=>{const{optionHeight:Ze,optionFontSize:Ge,optionLineHeight:yt,optionPadding:pt}=Se;return{position:"relative",display:"block",minHeight:Ze,padding:pt,color:Se.colorText,fontWeight:"normal",fontSize:Ge,lineHeight:yt,boxSizing:"border-box"}};var me=Se=>{const{antCls:Ze,componentCls:Ge}=Se,yt=`${Ge}-item`,pt=`&${Ze}-slide-up-enter${Ze}-slide-up-enter-active`,ft=`&${Ze}-slide-up-appear${Ze}-slide-up-appear-active`,Ne=`&${Ze}-slide-up-leave${Ze}-slide-up-leave-active`,jt=`${Ge}-dropdown-placement-`;return[{[`${Ge}-dropdown`]:Object.assign(Object.assign({},(0,ie.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,[`
|
|
|
${pt}${jt}bottomLeft,
|
|
|
${ft}${jt}bottomLeft
|
|
|
`]:{animationName:be.fJ},[`
|
|
|
${pt}${jt}topLeft,
|
|
|
${ft}${jt}topLeft,
|
|
|
${pt}${jt}topRight,
|
|
|
${ft}${jt}topRight
|
|
|
`]:{animationName:be.Qt},[`${Ne}${jt}bottomLeft`]:{animationName:be.Uw},[`
|
|
|
${Ne}${jt}topLeft,
|
|
|
${Ne}${jt}topRight
|
|
|
`]:{animationName:be.ly},"&-hidden":{display:"none"},[`${yt}`]:Object.assign(Object.assign({},ue(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"},ie.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${yt}-option-disabled)`]:{backgroundColor:Se.optionActiveBg},[`&-selected:not(${yt}-option-disabled)`]:{color:Se.optionSelectedColor,fontWeight:Se.optionSelectedFontWeight,backgroundColor:Se.optionSelectedBg,[`${yt}-option-state`]:{color:Se.colorPrimary}},"&-disabled":{[`&${yt}-option-selected`]:{backgroundColor:Se.colorBgContainerDisabled},color:Se.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Se.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,be.oN)(Se,"slide-up"),(0,be.oN)(Se,"slide-down"),(0,Me.Fm)(Se,"move-up"),(0,Me.Fm)(Se,"move-down")]};const Ie=2,ct=Se=>{let{controlHeightSM:Ze,controlHeight:Ge,lineWidth:yt}=Se;const pt=(Ge-Ze)/2-yt,ft=Math.ceil(pt/2);return[pt,ft]};function Ke(Se,Ze){const{componentCls:Ge,iconCls:yt}=Se,pt=`${Ge}-selection-overflow`,ft=Se.multipleSelectItemHeight,[Ne]=ct(Se),jt=Ze?`${Ge}-${Ze}`:"";return{[`${Ge}-multiple${jt}`]:{fontSize:Se.fontSize,[pt]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ge}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Ne-Ie}px ${Ie*2}px`,borderRadius:Se.borderRadius,[`${Ge}-show-search&`]:{cursor:"text"},[`${Ge}-disabled&`]:{background:Se.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ie}px 0`,lineHeight:`${ft}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Ge}-show-arrow ${Ge}-selector,
|
|
|
&${Ge}-allow-clear ${Ge}-selector
|
|
|
`]:{paddingInlineEnd:Se.fontSizeIcon+Se.controlPaddingHorizontal},[`${Ge}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:ft,marginTop:Ie,marginBottom:Ie,lineHeight:`${ft-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:Ie*2,paddingInlineStart:Se.paddingXS,paddingInlineEnd:Se.paddingXS/2,[`${Ge}-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,ie.Ro)()),{display:"inline-flex",alignItems:"center",color:Se.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${yt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Se.colorIconHover}})},[`${pt}-item + ${pt}-item`]:{[`${Ge}-selection-search`]:{marginInlineStart:0}},[`${Ge}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Se.inputPaddingHorizontalBase-Ne,"\n &-input,\n &-mirror\n ":{height:ft,fontFamily:Se.fontFamily,lineHeight:`${ft}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"}},[`${Ge}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Se.inputPaddingHorizontalBase,insetInlineEnd:Se.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Se.motionDurationSlow}`}}}}var dt=Se=>{const{componentCls:Ze}=Se,Ge=(0,Oe.TS)(Se,{controlHeight:Se.controlHeightSM,multipleSelectItemHeight:Se.controlHeightXS,borderRadius:Se.borderRadiusSM,borderRadiusSM:Se.borderRadiusXS}),yt=(0,Oe.TS)(Se,{fontSize:Se.fontSizeLG,controlHeight:Se.controlHeightLG,multipleSelectItemHeight:Se.multipleItemHeightLG,borderRadius:Se.borderRadiusLG,borderRadiusSM:Se.borderRadius}),[,pt]=ct(Se);return[Ke(Se),Ke(Ge,"sm"),{[`${Ze}-multiple${Ze}-sm`]:{[`${Ze}-selection-placeholder`]:{insetInline:Se.controlPaddingHorizontalSM-Se.lineWidth},[`${Ze}-selection-search`]:{marginInlineStart:pt}}},Ke(yt,"lg")]};function Xe(Se,Ze){const{componentCls:Ge,inputPaddingHorizontalBase:yt,borderRadius:pt}=Se,ft=Se.controlHeight-Se.lineWidth*2,Ne=Math.ceil(Se.fontSize*1.25),jt=Ze?`${Ge}-${Ze}`:"";return{[`${Ge}-single${jt}`]:{fontSize:Se.fontSize,[`${Ge}-selector`]:Object.assign(Object.assign({},(0,ie.Wf)(Se)),{display:"flex",borderRadius:pt,[`${Ge}-selection-search`]:{position:"absolute",top:0,insetInlineStart:yt,insetInlineEnd:yt,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Ge}-selection-item,
|
|
|
${Ge}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${ft}px`,transition:`all ${Se.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${ft}px`}},[`${Ge}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ge}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ge}-selection-item:after`,`${Ge}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Ge}-show-arrow ${Ge}-selection-item,
|
|
|
&${Ge}-show-arrow ${Ge}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ne},[`&${Ge}-open ${Ge}-selection-item`]:{color:Se.colorTextPlaceholder},[`&:not(${Ge}-customize-input)`]:{[`${Ge}-selector`]:{width:"100%",height:Se.controlHeight,padding:`0 ${yt}px`,[`${Ge}-selection-search-input`]:{height:ft},"&:after":{lineHeight:`${ft}px`}}},[`&${Ge}-customize-input`]:{[`${Ge}-selector`]:{"&:after":{display:"none"},[`${Ge}-selection-search`]:{position:"static",width:"100%"},[`${Ge}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${yt}px`,"&:after":{display:"none"}}}}}}}function We(Se){const{componentCls:Ze}=Se,Ge=Se.controlPaddingHorizontalSM-Se.lineWidth;return[Xe(Se),Xe((0,Oe.TS)(Se,{controlHeight:Se.controlHeightSM,borderRadius:Se.borderRadiusSM}),"sm"),{[`${Ze}-single${Ze}-sm`]:{[`&:not(${Ze}-customize-input)`]:{[`${Ze}-selection-search`]:{insetInlineStart:Ge,insetInlineEnd:Ge},[`${Ze}-selector`]:{padding:`0 ${Ge}px`},[`&${Ze}-show-arrow ${Ze}-selection-search`]:{insetInlineEnd:Ge+Se.fontSize*1.5},[`
|
|
|
&${Ze}-show-arrow ${Ze}-selection-item,
|
|
|
&${Ze}-show-arrow ${Ze}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Se.fontSize*1.5}}}},Xe((0,Oe.TS)(Se,{controlHeight:Se.singleItemHeightLG,fontSize:Se.fontSizeLG,borderRadius:Se.borderRadiusLG}),"lg")]}const ye=Se=>{const{componentCls:Ze,selectorBg:Ge}=Se;return{position:"relative",backgroundColor:Ge,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,transition:`all ${Se.motionDurationMid} ${Se.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ze}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ze}-disabled&`]:{color:Se.colorTextDisabled,background:Se.colorBgContainerDisabled,cursor:"not-allowed",[`${Ze}-multiple&`]:{background:Se.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},it=function(Se,Ze){let Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:yt,borderHoverColor:pt,outlineColor:ft,antCls:Ne}=Ze,jt=Ge?{[`${yt}-selector`]:{borderColor:pt}}:{};return{[Se]:{[`&:not(${yt}-disabled):not(${yt}-customize-input):not(${Ne}-pagination-size-changer)`]:Object.assign(Object.assign({},jt),{[`${yt}-focused& ${yt}-selector`]:{borderColor:pt,boxShadow:`0 0 0 ${Ze.controlOutlineWidth}px ${ft}`,outline:0},[`&:hover ${yt}-selector`]:{borderColor:pt}})}}},Lt=Se=>{const{componentCls:Ze}=Se;return{[`${Ze}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},qe=Se=>{const{componentCls:Ze,inputPaddingHorizontalBase:Ge,iconCls:yt}=Se;return{[Ze]:Object.assign(Object.assign({},(0,ie.Wf)(Se)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ze}-customize-input) ${Ze}-selector`]:Object.assign(Object.assign({},ye(Se)),Lt(Se)),[`${Ze}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ie.vS),[`${Ze}-selection-placeholder`]:Object.assign(Object.assign({},ie.vS),{flex:1,color:Se.colorTextPlaceholder,pointerEvents:"none"}),[`${Ze}-arrow`]:Object.assign(Object.assign({},(0,ie.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ge,height:Se.fontSizeIcon,marginTop:-Se.fontSizeIcon/2,color:Se.colorTextQuaternary,fontSize:Se.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[yt]:{verticalAlign:"top",transition:`transform ${Se.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ze}-suffix)`]:{pointerEvents:"auto"}},[`${Ze}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ze}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ge,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":{[`${Ze}-clear`]:{opacity:1}}}),[`${Ze}-has-feedback`]:{[`${Ze}-clear`]:{insetInlineEnd:Ge+Se.fontSize+Se.paddingXS}}}},rt=Se=>{const{componentCls:Ze}=Se;return[{[Ze]:{[`&-borderless ${Ze}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ze}-in-form-item`]:{width:"100%"}}},qe(Se),We(Se),dt(Se),me(Se),{[`${Ze}-rtl`]:{direction:"rtl"}},it(Ze,(0,Oe.TS)(Se,{borderHoverColor:Se.colorPrimaryHover,outlineColor:Se.controlOutline})),it(`${Ze}-status-error`,(0,Oe.TS)(Se,{borderHoverColor:Se.colorErrorHover,outlineColor:Se.colorErrorOutline}),!0),it(`${Ze}-status-warning`,(0,Oe.TS)(Se,{borderHoverColor:Se.colorWarningHover,outlineColor:Se.colorWarningOutline}),!0),(0,Le.c)(Se,{borderElCls:`${Ze}-selector`,focusElCls:`${Ze}-focused`})]};var xe=(0,Ue.Z)("Select",(Se,Ze)=>{let{rootPrefixCls:Ge}=Ze;const yt=(0,Oe.TS)(Se,{rootPrefixCls:Ge,inputPaddingHorizontalBase:Se.paddingSM-1,multipleSelectItemHeight:Se.multipleItemHeight});return[rt(yt)]},Se=>{const{fontSize:Ze,lineHeight:Ge,controlHeight:yt,controlPaddingHorizontal:pt,zIndexPopupBase:ft,colorText:Ne,fontWeightStrong:jt,controlItemBgActive:bt,controlItemBgHover:xn,colorBgContainer:Mt,colorFillSecondary:Gt,controlHeightLG:Bn,controlHeightSM:Tn,colorBgContainerDisabled:at,colorTextDisabled:Ae}=Se;return{zIndexPopup:ft+50,optionSelectedColor:Ne,optionSelectedFontWeight:jt,optionSelectedBg:bt,optionActiveBg:xn,optionPadding:`${(yt-Ze*Ge)/2}px ${pt}px`,optionFontSize:Ze,optionLineHeight:Ge,optionHeight:yt,selectorBg:Mt,clearBg:Mt,singleItemHeightLG:Bn,multipleItemBg:Gt,multipleItemBorderColor:"transparent",multipleItemHeight:Tn,multipleItemHeightLG:yt,multipleSelectorBgDisabled:at,multipleItemColorDisabled:Ae,multipleItemBorderColorDisabled:"transparent"}})},13458:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Le}});const ie=Oe=>{const be={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Oe==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},be),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},be),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},be),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},be),{points:["br","tr"],offset:[0,-4]})}};function Le(Oe,Ue){return Oe||ie(Ue)}},78642:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ie}});function ie(Le,Oe){return Oe!==void 0?Oe:Le!==null}},46163:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return we}});var ie=re(18299),Le=re(16646),Oe=re(73475),Ue=re(42922),be=re(3407),Me=re(72395),ue=re(67294);function we(me){let{suffixIcon:Ie,clearIcon:ct,menuItemSelectedIcon:Ke,removeIcon:st,loading:dt,multiple:Xe,hasFeedback:We,prefixCls:ye,showSuffixIcon:it,feedbackIcon:Lt,showArrow:qe,componentName:rt}=me;const xe=ct!=null?ct:ue.createElement(Le.Z,null),Se=pt=>Ie===null&&!We&&!qe?null:ue.createElement(ue.Fragment,null,it!==!1&&pt,We&&Lt);let Ze=null;if(Ie!==void 0)Ze=Se(Ie);else if(dt)Ze=Se(ue.createElement(be.Z,{spin:!0}));else{const pt=`${ye}-suffix`;Ze=ft=>{let{open:Ne,showSearch:jt}=ft;return Se(Ne&&jt?ue.createElement(Me.Z,{className:pt}):ue.createElement(Ue.Z,{className:pt}))}}let Ge=null;Ke!==void 0?Ge=Ke:Xe?Ge=ue.createElement(ie.Z,null):Ge=null;let yt=null;return st!==void 0?yt=st:yt=ue.createElement(Oe.Z,null),{clearIcon:xe,suffixIcon:Ze,itemIcon:Ge,removeIcon:yt}}},46303:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ce}});var ie=re(94184),Le=re.n(ie),Oe=re(67294),Ue=re(53124),be=re(10366),ue=pe=>{const{prefixCls:de,className:le,style:Te,size:ot,shape:Bt}=pe,en=Le()({[`${de}-lg`]:ot==="large",[`${de}-sm`]:ot==="small"}),rn=Le()({[`${de}-circle`]:Bt==="circle",[`${de}-square`]:Bt==="square",[`${de}-round`]:Bt==="round"}),sn=Oe.useMemo(()=>typeof ot=="number"?{width:ot,height:ot,lineHeight:`${ot}px`}:{},[ot]);return Oe.createElement("span",{className:Le()(de,en,rn,le),style:Object.assign(Object.assign({},sn),Te)})},we=re(34367),me=re(67968),Ie=re(45503);const ct=new we.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Ke=pe=>({height:pe,lineHeight:`${pe}px`}),st=pe=>Object.assign({width:pe},Ke(pe)),dt=pe=>({background:pe.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ct,animationDuration:pe.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Xe=pe=>Object.assign({width:pe*5,minWidth:pe*5},Ke(pe)),We=pe=>{const{skeletonAvatarCls:de,gradientFromColor:le,controlHeight:Te,controlHeightLG:ot,controlHeightSM:Bt}=pe;return{[`${de}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:le},st(Te)),[`${de}${de}-circle`]:{borderRadius:"50%"},[`${de}${de}-lg`]:Object.assign({},st(ot)),[`${de}${de}-sm`]:Object.assign({},st(Bt))}},ye=pe=>{const{controlHeight:de,borderRadiusSM:le,skeletonInputCls:Te,controlHeightLG:ot,controlHeightSM:Bt,gradientFromColor:en}=pe;return{[`${Te}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:en,borderRadius:le},Xe(de)),[`${Te}-lg`]:Object.assign({},Xe(ot)),[`${Te}-sm`]:Object.assign({},Xe(Bt))}},it=pe=>Object.assign({width:pe},Ke(pe)),Lt=pe=>{const{skeletonImageCls:de,imageSizeBase:le,gradientFromColor:Te,borderRadiusSM:ot}=pe;return{[`${de}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Te,borderRadius:ot},it(le*2)),{[`${de}-path`]:{fill:"#bfbfbf"},[`${de}-svg`]:Object.assign(Object.assign({},it(le)),{maxWidth:le*4,maxHeight:le*4}),[`${de}-svg${de}-svg-circle`]:{borderRadius:"50%"}}),[`${de}${de}-circle`]:{borderRadius:"50%"}}},qe=(pe,de,le)=>{const{skeletonButtonCls:Te}=pe;return{[`${le}${Te}-circle`]:{width:de,minWidth:de,borderRadius:"50%"},[`${le}${Te}-round`]:{borderRadius:de}}},rt=pe=>Object.assign({width:pe*2,minWidth:pe*2},Ke(pe)),xe=pe=>{const{borderRadiusSM:de,skeletonButtonCls:le,controlHeight:Te,controlHeightLG:ot,controlHeightSM:Bt,gradientFromColor:en}=pe;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:en,borderRadius:de,width:Te*2,minWidth:Te*2},rt(Te))},qe(pe,Te,le)),{[`${le}-lg`]:Object.assign({},rt(ot))}),qe(pe,ot,`${le}-lg`)),{[`${le}-sm`]:Object.assign({},rt(Bt))}),qe(pe,Bt,`${le}-sm`))},Se=pe=>{const{componentCls:de,skeletonAvatarCls:le,skeletonTitleCls:Te,skeletonParagraphCls:ot,skeletonButtonCls:Bt,skeletonInputCls:en,skeletonImageCls:rn,controlHeight:sn,controlHeightLG:un,controlHeightSM:gt,gradientFromColor:zt,padding:It,marginSM:ln,borderRadius:_t,titleHeight:lr,blockRadius:xt,paragraphLiHeight:Yt,controlHeightXS:Un,paragraphMarginTop:Hn}=pe;return{[`${de}`]:{display:"table",width:"100%",[`${de}-header`]:{display:"table-cell",paddingInlineEnd:It,verticalAlign:"top",[`${le}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:zt},st(sn)),[`${le}-circle`]:{borderRadius:"50%"},[`${le}-lg`]:Object.assign({},st(un)),[`${le}-sm`]:Object.assign({},st(gt))},[`${de}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Te}`]:{width:"100%",height:lr,background:zt,borderRadius:xt,[`+ ${ot}`]:{marginBlockStart:gt}},[`${ot}`]:{padding:0,"> li":{width:"100%",height:Yt,listStyle:"none",background:zt,borderRadius:xt,"+ li":{marginBlockStart:Un}}},[`${ot}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${de}-content`]:{[`${Te}, ${ot} > li`]:{borderRadius:_t}}},[`${de}-with-avatar ${de}-content`]:{[`${Te}`]:{marginBlockStart:ln,[`+ ${ot}`]:{marginBlockStart:Hn}}},[`${de}${de}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},xe(pe)),We(pe)),ye(pe)),Lt(pe)),[`${de}${de}-block`]:{width:"100%",[`${Bt}`]:{width:"100%"},[`${en}`]:{width:"100%"}},[`${de}${de}-active`]:{[`
|
|
|
${Te},
|
|
|
${ot} > li,
|
|
|
${le},
|
|
|
${Bt},
|
|
|
${en},
|
|
|
${rn}
|
|
|
`]:Object.assign({},dt(pe))}}};var Ze=(0,me.Z)("Skeleton",pe=>{const{componentCls:de}=pe,le=(0,Ie.TS)(pe,{skeletonAvatarCls:`${de}-avatar`,skeletonTitleCls:`${de}-title`,skeletonParagraphCls:`${de}-paragraph`,skeletonButtonCls:`${de}-button`,skeletonInputCls:`${de}-input`,skeletonImageCls:`${de}-image`,imageSizeBase:pe.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${pe.gradientFromColor} 25%, ${pe.gradientToColor} 37%, ${pe.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Se(le)]},pe=>{const{colorFillContent:de,colorFill:le}=pe,Te=de,ot=le;return{color:Te,colorGradientEnd:ot,gradientFromColor:Te,gradientToColor:ot,titleHeight:pe.controlHeight/2,blockRadius:pe.borderRadiusSM,paragraphMarginTop:pe.marginLG+pe.marginXXS,paragraphLiHeight:pe.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),yt=pe=>{const{prefixCls:de,className:le,rootClassName:Te,active:ot,shape:Bt="circle",size:en="default"}=pe,{getPrefixCls:rn}=Oe.useContext(Ue.E_),sn=rn("skeleton",de),[un,gt]=Ze(sn),zt=(0,be.Z)(pe,["prefixCls","className"]),It=Le()(sn,`${sn}-element`,{[`${sn}-active`]:ot},le,Te,gt);return un(Oe.createElement("div",{className:It},Oe.createElement(ue,Object.assign({prefixCls:`${sn}-avatar`,shape:Bt,size:en},zt))))},ft=pe=>{const{prefixCls:de,className:le,rootClassName:Te,active:ot,block:Bt=!1,size:en="default"}=pe,{getPrefixCls:rn}=Oe.useContext(Ue.E_),sn=rn("skeleton",de),[un,gt]=Ze(sn),zt=(0,be.Z)(pe,["prefixCls"]),It=Le()(sn,`${sn}-element`,{[`${sn}-active`]:ot,[`${sn}-block`]:Bt},le,Te,gt);return un(Oe.createElement("div",{className:It},Oe.createElement(ue,Object.assign({prefixCls:`${sn}-button`,size:en},zt))))};const Ne="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 bt=pe=>{const{prefixCls:de,className:le,rootClassName:Te,style:ot,active:Bt}=pe,{getPrefixCls:en}=Oe.useContext(Ue.E_),rn=en("skeleton",de),[sn,un]=Ze(rn),gt=Le()(rn,`${rn}-element`,{[`${rn}-active`]:Bt},le,Te,un);return sn(Oe.createElement("div",{className:gt},Oe.createElement("div",{className:Le()(`${rn}-image`,le),style:ot},Oe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${rn}-image-svg`},Oe.createElement("path",{d:Ne,className:`${rn}-image-path`})))))},Mt=pe=>{const{prefixCls:de,className:le,rootClassName:Te,active:ot,block:Bt,size:en="default"}=pe,{getPrefixCls:rn}=Oe.useContext(Ue.E_),sn=rn("skeleton",de),[un,gt]=Ze(sn),zt=(0,be.Z)(pe,["prefixCls"]),It=Le()(sn,`${sn}-element`,{[`${sn}-active`]:ot,[`${sn}-block`]:Bt},le,Te,gt);return un(Oe.createElement("div",{className:It},Oe.createElement(ue,Object.assign({prefixCls:`${sn}-input`,size:en},zt))))},Gt=re(87462),Bn={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"},Tn=Bn,at=re(84089),Ae=function(de,le){return Oe.createElement(at.Z,(0,Gt.Z)({},de,{ref:le,icon:Tn}))},St=Oe.forwardRef(Ae),Pt=pe=>{const{prefixCls:de,className:le,rootClassName:Te,style:ot,active:Bt,children:en}=pe,{getPrefixCls:rn}=Oe.useContext(Ue.E_),sn=rn("skeleton",de),[un,gt]=Ze(sn),zt=Le()(sn,`${sn}-element`,{[`${sn}-active`]:Bt},gt,le,Te),It=en!=null?en:Oe.createElement(St,null);return un(Oe.createElement("div",{className:zt},Oe.createElement("div",{className:Le()(`${sn}-image`,le),style:ot},It)))},ht=re(74902),Qt=pe=>{const de=rn=>{const{width:sn,rows:un=2}=pe;if(Array.isArray(sn))return sn[rn];if(un-1===rn)return sn},{prefixCls:le,className:Te,style:ot,rows:Bt}=pe,en=(0,ht.Z)(Array(Bt)).map((rn,sn)=>Oe.createElement("li",{key:sn,style:{width:de(sn)}}));return Oe.createElement("ul",{className:Le()(le,Te),style:ot},en)},On=pe=>{let{prefixCls:de,className:le,width:Te,style:ot}=pe;return Oe.createElement("h3",{className:Le()(de,le),style:Object.assign({width:Te},ot)})};function $t(pe){return pe&&typeof pe=="object"?pe:{}}function yn(pe,de){return pe&&!de?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Qn(pe,de){return!pe&&de?{width:"38%"}:pe&&de?{width:"50%"}:{}}function Cn(pe,de){const le={};return(!pe||!de)&&(le.width="61%"),!pe&&de?le.rows=3:le.rows=2,le}const Pe=pe=>{const{prefixCls:de,loading:le,className:Te,rootClassName:ot,style:Bt,children:en,avatar:rn=!1,title:sn=!0,paragraph:un=!0,active:gt,round:zt}=pe,{getPrefixCls:It,direction:ln,skeleton:_t}=Oe.useContext(Ue.E_),lr=It("skeleton",de),[xt,Yt]=Ze(lr);if(le||!("loading"in pe)){const Un=!!rn,Hn=!!sn,$n=!!un;let yr;if(Un){const Dr=Object.assign(Object.assign({prefixCls:`${lr}-avatar`},yn(Hn,$n)),$t(rn));yr=Oe.createElement("div",{className:`${lr}-header`},Oe.createElement(ue,Object.assign({},Dr)))}let Fn;if(Hn||$n){let Dr;if(Hn){const hr=Object.assign(Object.assign({prefixCls:`${lr}-title`},Qn(Un,$n)),$t(sn));Dr=Oe.createElement(On,Object.assign({},hr))}let Fr;if($n){const hr=Object.assign(Object.assign({prefixCls:`${lr}-paragraph`},Cn(Un,Hn)),$t(un));Fr=Oe.createElement(Qt,Object.assign({},hr))}Fn=Oe.createElement("div",{className:`${lr}-content`},Dr,Fr)}const or=Le()(lr,{[`${lr}-with-avatar`]:Un,[`${lr}-active`]:gt,[`${lr}-rtl`]:ln==="rtl",[`${lr}-round`]:zt},_t==null?void 0:_t.className,Te,ot,Yt);return xt(Oe.createElement("div",{className:or,style:Object.assign(Object.assign({},_t==null?void 0:_t.style),Bt)},yr,Fn))}return typeof en!="undefined"?en:null};Pe.Button=ft,Pe.Avatar=yt,Pe.Input=Mt,Pe.Image=bt,Pe.Node=Pt;var fe=Pe,ce=fe},55054:function(bn,Ut,re){"use strict";re.d(Ut,{default:function(){return Ze}});var ie=re(67294),Le=re(57838),Oe=re(96159),Ue=re(94184),be=re.n(Ue),Me=re(53124),ue=re(46303),me=Ge=>{const{value:yt,formatter:pt,precision:ft,decimalSeparator:Ne,groupSeparator:jt="",prefixCls:bt}=Ge;let xn;if(typeof pt=="function")xn=pt(yt);else{const Mt=String(yt),Gt=Mt.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Gt||Mt==="-")xn=Mt;else{const Bn=Gt[1];let Tn=Gt[2]||"0",at=Gt[4]||"";Tn=Tn.replace(/\B(?=(\d{3})+(?!\d))/g,jt),typeof ft=="number"&&(at=at.padEnd(ft,"0").slice(0,ft>0?ft:0)),at&&(at=`${Ne}${at}`),xn=[ie.createElement("span",{key:"int",className:`${bt}-content-value-int`},Bn,Tn),at&&ie.createElement("span",{key:"decimal",className:`${bt}-content-value-decimal`},at)]}}return ie.createElement("span",{className:`${bt}-content-value`},xn)},Ie=re(14747),ct=re(67968),Ke=re(45503);const st=Ge=>{const{componentCls:yt,marginXXS:pt,padding:ft,colorTextDescription:Ne,titleFontSize:jt,colorTextHeading:bt,contentFontSize:xn,fontFamily:Mt}=Ge;return{[`${yt}`]:Object.assign(Object.assign({},(0,Ie.Wf)(Ge)),{[`${yt}-title`]:{marginBottom:pt,color:Ne,fontSize:jt},[`${yt}-skeleton`]:{paddingTop:ft},[`${yt}-content`]:{color:bt,fontSize:xn,fontFamily:Mt,[`${yt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${yt}-content-prefix, ${yt}-content-suffix`]:{display:"inline-block"},[`${yt}-content-prefix`]:{marginInlineEnd:pt},[`${yt}-content-suffix`]:{marginInlineStart:pt}}})}};var dt=(0,ct.Z)("Statistic",Ge=>{const yt=(0,Ke.TS)(Ge,{});return[st(yt)]},Ge=>{const{fontSizeHeading3:yt,fontSize:pt}=Ge;return{titleFontSize:pt,contentFontSize:yt}}),We=Ge=>{const{prefixCls:yt,className:pt,rootClassName:ft,style:Ne,valueStyle:jt,value:bt=0,title:xn,valueRender:Mt,prefix:Gt,suffix:Bn,loading:Tn=!1,onMouseEnter:at,onMouseLeave:Ae,decimalSeparator:St=".",groupSeparator:cn=","}=Ge,{getPrefixCls:Pt,direction:ht,statistic:Et}=ie.useContext(Me.E_),Qt=Pt("statistic",yt),[ir,On]=dt(Qt),$t=ie.createElement(me,Object.assign({decimalSeparator:St,groupSeparator:cn,prefixCls:Qt},Ge,{value:bt})),yn=be()(Qt,{[`${Qt}-rtl`]:ht==="rtl"},Et==null?void 0:Et.className,pt,ft,On);return ir(ie.createElement("div",{className:yn,style:Object.assign(Object.assign({},Et==null?void 0:Et.style),Ne),onMouseEnter:at,onMouseLeave:Ae},xn&&ie.createElement("div",{className:`${Qt}-title`},xn),ie.createElement(ue.Z,{paragraph:!1,loading:Tn,className:`${Qt}-skeleton`},ie.createElement("div",{style:jt,className:`${Qt}-content`},Gt&&ie.createElement("span",{className:`${Qt}-content-prefix`},Gt),Mt?Mt($t):$t,Bn&&ie.createElement("span",{className:`${Qt}-content-suffix`},Bn)))))};const ye=[["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 it(Ge,yt){let pt=Ge;const ft=/\[[^\]]*]/g,Ne=(yt.match(ft)||[]).map(Mt=>Mt.slice(1,-1)),jt=yt.replace(ft,"[]"),bt=ye.reduce((Mt,Gt)=>{let[Bn,Tn]=Gt;if(Mt.includes(Bn)){const at=Math.floor(pt/Tn);return pt-=at*Tn,Mt.replace(new RegExp(`${Bn}+`,"g"),Ae=>{const St=Ae.length;return at.toString().padStart(St,"0")})}return Mt},jt);let xn=0;return bt.replace(ft,()=>{const Mt=Ne[xn];return xn+=1,Mt})}function Lt(Ge,yt){const{format:pt=""}=yt,ft=new Date(Ge).getTime(),Ne=Date.now(),jt=Math.max(ft-Ne,0);return it(jt,pt)}const qe=1e3/30;function rt(Ge){return new Date(Ge).getTime()}const xe=Ge=>{const{value:yt,format:pt="HH:mm:ss",onChange:ft,onFinish:Ne}=Ge,jt=(0,Le.Z)(),bt=ie.useRef(null),xn=()=>{Ne==null||Ne(),bt.current&&(clearInterval(bt.current),bt.current=null)},Mt=()=>{const Tn=rt(yt);Tn>=Date.now()&&(bt.current=setInterval(()=>{jt(),ft==null||ft(Tn-Date.now()),Tn<Date.now()&&xn()},qe))};ie.useEffect(()=>(Mt(),()=>{bt.current&&(clearInterval(bt.current),bt.current=null)}),[yt]);const Gt=(Tn,at)=>Lt(Tn,Object.assign(Object.assign({},at),{format:pt})),Bn=Tn=>(0,Oe.Tm)(Tn,{title:void 0});return ie.createElement(We,Object.assign({},Ge,{valueRender:Bn,formatter:Gt}))};var Se=ie.memo(xe);We.Countdown=Se;var Ze=We},33507:function(bn,Ut){"use strict";const re=ie=>({[ie.componentCls]:{[`${ie.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ie.motionDurationMid} ${ie.motionEaseInOut},
|
|
|
opacity ${ie.motionDurationMid} ${ie.motionEaseInOut} !important`}},[`${ie.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ie.motionDurationMid} ${ie.motionEaseInOut},
|
|
|
opacity ${ie.motionDurationMid} ${ie.motionEaseInOut} !important`}}});Ut.Z=re},33297:function(bn,Ut,re){"use strict";re.d(Ut,{Fm:function(){return Ke}});var ie=re(34367),Le=re(93590);const Oe=new ie.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ue=new ie.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),be=new ie.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Me=new ie.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ue=new ie.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 ie.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),me=new ie.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ie=new ie.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ct={"move-up":{inKeyframes:me,outKeyframes:Ie},"move-down":{inKeyframes:Oe,outKeyframes:Ue},"move-left":{inKeyframes:be,outKeyframes:Me},"move-right":{inKeyframes:ue,outKeyframes:we}},Ke=(st,dt)=>{const{antCls:Xe}=st,We=`${Xe}-${dt}`,{inKeyframes:ye,outKeyframes:it}=ct[dt];return[(0,Le.R)(We,ye,it,st.motionDurationMid),{[`
|
|
|
${We}-enter,
|
|
|
${We}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:st.motionEaseOutCirc},[`${We}-leave`]:{animationTimingFunction:st.motionEaseInOutCirc}}]}},67771:function(bn,Ut,re){"use strict";re.d(Ut,{Qt:function(){return be},Uw:function(){return Ue},fJ:function(){return Oe},ly:function(){return Me},oN:function(){return Ke}});var ie=re(34367),Le=re(93590);const Oe=new ie.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ue=new ie.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),be=new ie.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Me=new ie.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ue=new ie.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),we=new ie.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),me=new ie.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ie=new ie.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ct={"slide-up":{inKeyframes:Oe,outKeyframes:Ue},"slide-down":{inKeyframes:be,outKeyframes:Me},"slide-left":{inKeyframes:ue,outKeyframes:we},"slide-right":{inKeyframes:me,outKeyframes:Ie}},Ke=(st,dt)=>{const{antCls:Xe}=st,We=`${Xe}-${dt}`,{inKeyframes:ye,outKeyframes:it}=ct[dt];return[(0,Le.R)(We,ye,it,st.motionDurationMid),{[`
|
|
|
${We}-enter,
|
|
|
${We}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:st.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${We}-leave`]:{animationTimingFunction:st.motionEaseInQuint}}]}},49867:function(bn,Ut,re){"use strict";re.d(Ut,{N:function(){return ie}});const ie=Le=>({color:Le.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Le.motionDurationSlow}`,"&:focus, &:hover":{color:Le.colorLinkHover},"&:active":{color:Le.colorLinkActive}})},47897:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return pe}});var ie=re(3407),Le=re(94184),Oe=re.n(Le);function Ue(){return Ue=Object.assign?Object.assign.bind():function(de){for(var le=1;le<arguments.length;le++){var Te=arguments[le];for(var ot in Te)Object.prototype.hasOwnProperty.call(Te,ot)&&(de[ot]=Te[ot])}return de},Ue.apply(this,arguments)}function be(de){"@babel/helpers - typeof";return be=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(le){return typeof le}:function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},be(de)}function Me(de,le){if(be(de)!=="object"||de===null)return de;var Te=de[Symbol.toPrimitive];if(Te!==void 0){var ot=Te.call(de,le||"default");if(be(ot)!=="object")return ot;throw new TypeError("@@toPrimitive must return a primitive value.")}return(le==="string"?String:Number)(de)}function ue(de){var le=Me(de,"string");return be(le)==="symbol"?le:String(le)}function we(de,le,Te){return le=ue(le),le in de?Object.defineProperty(de,le,{value:Te,enumerable:!0,configurable:!0,writable:!0}):de[le]=Te,de}function me(de){if(Array.isArray(de))return de}function Ie(de,le){var Te=de==null?null:typeof Symbol!="undefined"&&de[Symbol.iterator]||de["@@iterator"];if(Te!=null){var ot,Bt,en,rn,sn=[],un=!0,gt=!1;try{if(en=(Te=Te.call(de)).next,le===0){if(Object(Te)!==Te)return;un=!1}else for(;!(un=(ot=en.call(Te)).done)&&(sn.push(ot.value),sn.length!==le);un=!0);}catch(zt){gt=!0,Bt=zt}finally{try{if(!un&&Te.return!=null&&(rn=Te.return(),Object(rn)!==rn))return}finally{if(gt)throw Bt}}return sn}}function ct(de,le){(le==null||le>de.length)&&(le=de.length);for(var Te=0,ot=new Array(le);Te<le;Te++)ot[Te]=de[Te];return ot}function Ke(de,le){if(de){if(typeof de=="string")return ct(de,le);var Te=Object.prototype.toString.call(de).slice(8,-1);if(Te==="Object"&&de.constructor&&(Te=de.constructor.name),Te==="Map"||Te==="Set")return Array.from(de);if(Te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Te))return ct(de,le)}}function st(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dt(de,le){return me(de)||Ie(de,le)||Ke(de,le)||st()}function Xe(de,le){if(de==null)return{};var Te={},ot=Object.keys(de),Bt,en;for(en=0;en<ot.length;en++)Bt=ot[en],!(le.indexOf(Bt)>=0)&&(Te[Bt]=de[Bt]);return Te}function We(de,le){if(de==null)return{};var Te=Xe(de,le),ot,Bt;if(Object.getOwnPropertySymbols){var en=Object.getOwnPropertySymbols(de);for(Bt=0;Bt<en.length;Bt++)ot=en[Bt],!(le.indexOf(ot)>=0)&&Object.prototype.propertyIsEnumerable.call(de,ot)&&(Te[ot]=de[ot])}return Te}var ye=re(67294);function it(de){if(Array.isArray(de))return de}function Lt(de,le){var Te=de==null?null:typeof Symbol!="undefined"&&de[Symbol.iterator]||de["@@iterator"];if(Te!=null){var ot,Bt,en,rn,sn=[],un=!0,gt=!1;try{if(en=(Te=Te.call(de)).next,le===0){if(Object(Te)!==Te)return;un=!1}else for(;!(un=(ot=en.call(Te)).done)&&(sn.push(ot.value),sn.length!==le);un=!0);}catch(zt){gt=!0,Bt=zt}finally{try{if(!un&&Te.return!=null&&(rn=Te.return(),Object(rn)!==rn))return}finally{if(gt)throw Bt}}return sn}}function qe(de,le){(le==null||le>de.length)&&(le=de.length);for(var Te=0,ot=new Array(le);Te<le;Te++)ot[Te]=de[Te];return ot}function rt(de,le){if(de){if(typeof de=="string")return qe(de,le);var Te=Object.prototype.toString.call(de).slice(8,-1);if(Te==="Object"&&de.constructor&&(Te=de.constructor.name),Te==="Map"||Te==="Set")return Array.from(de);if(Te==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Te))return qe(de,le)}}function xe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Se(de,le){return it(de)||Lt(de,le)||rt(de,le)||xe()}function Ze(de){var le=ye.useRef();le.current=de;var Te=ye.useCallback(function(){for(var ot,Bt=arguments.length,en=new Array(Bt),rn=0;rn<Bt;rn++)en[rn]=arguments[rn];return(ot=le.current)===null||ot===void 0?void 0:ot.call.apply(ot,[le].concat(en))},[]);return Te}function Ge(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var yt=Ge()?ye.useLayoutEffect:ye.useEffect,pt=function(le,Te){var ot=ye.useRef(!0);yt(function(){return le(ot.current)},Te),yt(function(){return ot.current=!1,function(){ot.current=!0}},[])},ft=function(le,Te){pt(function(ot){if(!ot)return le()},Te)},Ne=null;function jt(de){var le=ye.useRef(!1),Te=ye.useState(de),ot=Se(Te,2),Bt=ot[0],en=ot[1];ye.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function rn(sn,un){un&&le.current||en(sn)}return[Bt,rn]}function bt(de){return de!==void 0}function xn(de,le){var Te=le||{},ot=Te.defaultValue,Bt=Te.value,en=Te.onChange,rn=Te.postState,sn=jt(function(){return bt(Bt)?Bt:bt(ot)?typeof ot=="function"?ot():ot:typeof de=="function"?de():de}),un=Se(sn,2),gt=un[0],zt=un[1],It=Bt!==void 0?Bt:gt,ln=rn?rn(It):It,_t=Ze(en),lr=jt([It]),xt=Se(lr,2),Yt=xt[0],Un=xt[1];ft(function(){var $n=Yt[0];gt!==$n&&_t(gt,$n)},[Yt]),ft(function(){bt(Bt)||zt(Bt)},[Bt]);var Hn=Ze(function($n,yr){zt($n,yr),Un([It],yr)});return[ln,Hn]}var Mt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(le){var Te=le.keyCode;if(le.altKey&&!le.ctrlKey||le.metaKey||Te>=Mt.F1&&Te<=Mt.F12)return!1;switch(Te){case Mt.ALT:case Mt.CAPS_LOCK:case Mt.CONTEXT_MENU:case Mt.CTRL:case Mt.DOWN:case Mt.END:case Mt.ESC:case Mt.HOME:case Mt.INSERT:case Mt.LEFT:case Mt.MAC_FF_META:case Mt.META:case Mt.NUMLOCK:case Mt.NUM_CENTER:case Mt.PAGE_DOWN:case Mt.PAGE_UP:case Mt.PAUSE:case Mt.PRINT_SCREEN:case Mt.RIGHT:case Mt.SHIFT:case Mt.UP:case Mt.WIN_KEY:case Mt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=Mt.ZERO&&le<=Mt.NINE||le>=Mt.NUM_ZERO&&le<=Mt.NUM_MULTIPLY||le>=Mt.A&&le<=Mt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case Mt.SPACE:case Mt.QUESTION_MARK:case Mt.NUM_PLUS:case Mt.NUM_MINUS:case Mt.NUM_PERIOD:case Mt.NUM_DIVISION:case Mt.SEMICOLON:case Mt.DASH:case Mt.EQUALS:case Mt.COMMA:case Mt.PERIOD:case Mt.SLASH:case Mt.APOSTROPHE:case Mt.SINGLE_QUOTE:case Mt.OPEN_SQUARE_BRACKET:case Mt.BACKSLASH:case Mt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Gt=Mt,Bn=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Tn=ye.forwardRef(function(de,le){var Te,ot=de.prefixCls,Bt=ot===void 0?"rc-switch":ot,en=de.className,rn=de.checked,sn=de.defaultChecked,un=de.disabled,gt=de.loadingIcon,zt=de.checkedChildren,It=de.unCheckedChildren,ln=de.onClick,_t=de.onChange,lr=de.onKeyDown,xt=We(de,Bn),Yt=xn(!1,{value:rn,defaultValue:sn}),Un=dt(Yt,2),Hn=Un[0],$n=Un[1];function yr(Fr,hr){var _r=Hn;return un||(_r=Fr,$n(_r),_t==null||_t(_r,hr)),_r}function Fn(Fr){Fr.which===Gt.LEFT?yr(!1,Fr):Fr.which===Gt.RIGHT&&yr(!0,Fr),lr==null||lr(Fr)}function or(Fr){var hr=yr(!Hn,Fr);ln==null||ln(hr,Fr)}var Dr=Oe()(Bt,en,(Te={},we(Te,"".concat(Bt,"-checked"),Hn),we(Te,"".concat(Bt,"-disabled"),un),Te));return ye.createElement("button",Ue({},xt,{type:"button",role:"switch","aria-checked":Hn,disabled:un,className:Dr,ref:le,onKeyDown:Fn,onClick:or}),gt,ye.createElement("span",{className:"".concat(Bt,"-inner")},ye.createElement("span",{className:"".concat(Bt,"-inner-checked")},zt),ye.createElement("span",{className:"".concat(Bt,"-inner-unchecked")},It)))});Tn.displayName="Switch";var at=Tn,Ae=re(45353),St=re(53124),cn=re(98866),Pt=re(98675),ht=re(84780),Et=re(14747),Qt=re(67968),ir=re(45503);const On=de=>{const{componentCls:le,trackHeightSM:Te,trackPadding:ot,trackMinWidthSM:Bt,innerMinMarginSM:en,innerMaxMarginSM:rn,handleSizeSM:sn}=de,un=`${le}-inner`;return{[le]:{[`&${le}-small`]:{minWidth:Bt,height:Te,lineHeight:`${Te}px`,[`${le}-inner`]:{paddingInlineStart:rn,paddingInlineEnd:en,[`${un}-checked`]:{marginInlineStart:`calc(-100% + ${sn+ot*2}px - ${rn*2}px)`,marginInlineEnd:`calc(100% - ${sn+ot*2}px + ${rn*2}px)`},[`${un}-unchecked`]:{marginTop:-Te,marginInlineStart:0,marginInlineEnd:0}},[`${le}-handle`]:{width:sn,height:sn},[`${le}-loading-icon`]:{top:(sn-de.switchLoadingIconSize)/2,fontSize:de.switchLoadingIconSize},[`&${le}-checked`]:{[`${le}-inner`]:{paddingInlineStart:en,paddingInlineEnd:rn,[`${un}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${un}-unchecked`]:{marginInlineStart:`calc(100% - ${sn+ot*2}px + ${rn*2}px)`,marginInlineEnd:`calc(-100% + ${sn+ot*2}px - ${rn*2}px)`}},[`${le}-handle`]:{insetInlineStart:`calc(100% - ${sn+ot}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${un}`]:{[`${un}-unchecked`]:{marginInlineStart:de.marginXXS/2,marginInlineEnd:-de.marginXXS/2}},[`&${le}-checked ${un}`]:{[`${un}-checked`]:{marginInlineStart:-de.marginXXS/2,marginInlineEnd:de.marginXXS/2}}}}}}},$t=de=>{const{componentCls:le,handleSize:Te}=de;return{[le]:{[`${le}-loading-icon${de.iconCls}`]:{position:"relative",top:(Te-de.fontSize)/2,color:de.switchLoadingIconColor,verticalAlign:"top"},[`&${le}-checked ${le}-loading-icon`]:{color:de.switchColor}}}},yn=de=>{const{componentCls:le,motion:Te,trackPadding:ot,handleBg:Bt,handleShadow:en,handleSize:rn}=de,sn=`${le}-handle`;return{[le]:{[sn]:{position:"absolute",top:ot,insetInlineStart:ot,width:rn,height:rn,transition:`all ${de.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Bt,borderRadius:rn/2,boxShadow:en,transition:`all ${de.switchDuration} ease-in-out`,content:'""'}},[`&${le}-checked ${sn}`]:{insetInlineStart:`calc(100% - ${rn+ot}px)`},[`&:not(${le}-disabled):active`]:Te?{[`${sn}::before`]:{insetInlineEnd:de.switchHandleActiveInset,insetInlineStart:0},[`&${le}-checked ${sn}::before`]:{insetInlineEnd:0,insetInlineStart:de.switchHandleActiveInset}}:{}}}},Qn=de=>{const{componentCls:le,trackHeight:Te,trackPadding:ot,innerMinMargin:Bt,innerMaxMargin:en,handleSize:rn}=de,sn=`${le}-inner`;return{[le]:{[sn]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:en,paddingInlineEnd:Bt,transition:`padding-inline-start ${de.switchDuration} ease-in-out, padding-inline-end ${de.switchDuration} ease-in-out`,[`${sn}-checked, ${sn}-unchecked`]:{display:"block",color:de.colorTextLightSolid,fontSize:de.fontSizeSM,transition:`margin-inline-start ${de.switchDuration} ease-in-out, margin-inline-end ${de.switchDuration} ease-in-out`,pointerEvents:"none"},[`${sn}-checked`]:{marginInlineStart:`calc(-100% + ${rn+ot*2}px - ${en*2}px)`,marginInlineEnd:`calc(100% - ${rn+ot*2}px + ${en*2}px)`},[`${sn}-unchecked`]:{marginTop:-Te,marginInlineStart:0,marginInlineEnd:0}},[`&${le}-checked ${sn}`]:{paddingInlineStart:Bt,paddingInlineEnd:en,[`${sn}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${sn}-unchecked`]:{marginInlineStart:`calc(100% - ${rn+ot*2}px + ${en*2}px)`,marginInlineEnd:`calc(-100% + ${rn+ot*2}px - ${en*2}px)`}},[`&:not(${le}-disabled):active`]:{[`&:not(${le}-checked) ${sn}`]:{[`${sn}-unchecked`]:{marginInlineStart:ot*2,marginInlineEnd:-ot*2}},[`&${le}-checked ${sn}`]:{[`${sn}-checked`]:{marginInlineStart:-ot*2,marginInlineEnd:ot*2}}}}}},Cn=de=>{const{componentCls:le,trackHeight:Te,trackMinWidth:ot}=de;return{[le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Et.Wf)(de)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ot,height:Te,lineHeight:`${Te}px`,verticalAlign:"middle",background:de.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${de.motionDurationMid}`,userSelect:"none",[`&:hover:not(${le}-disabled)`]:{background:de.colorTextTertiary}}),(0,Et.Qy)(de)),{[`&${le}-checked`]:{background:de.switchColor,[`&:hover:not(${le}-disabled)`]:{background:de.colorPrimaryHover}},[`&${le}-loading, &${le}-disabled`]:{cursor:"not-allowed",opacity:de.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${le}-rtl`]:{direction:"rtl"}})}};var Pe=(0,Qt.Z)("Switch",de=>{const le=(0,ir.TS)(de,{switchDuration:de.motionDurationMid,switchColor:de.colorPrimary,switchDisabledOpacity:de.opacityLoading,switchLoadingIconSize:de.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${de.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Cn(le),Qn(le),yn(le),$t(le),On(le)]},de=>{const{fontSize:le,lineHeight:Te,controlHeight:ot,colorWhite:Bt}=de,en=le*Te,rn=ot/2,sn=2,un=en-sn*2,gt=rn-sn*2;return{trackHeight:en,trackHeightSM:rn,trackMinWidth:un*2+sn*4,trackMinWidthSM:gt*2+sn*2,trackPadding:sn,handleBg:Bt,handleSize:un,handleSizeSM:gt,handleShadow:`0 2px 4px 0 ${new ht.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:un/2,innerMaxMargin:un+sn+sn*2,innerMinMarginSM:gt/2,innerMaxMarginSM:gt+sn+sn*2}}),fe=function(de,le){var Te={};for(var ot in de)Object.prototype.hasOwnProperty.call(de,ot)&&le.indexOf(ot)<0&&(Te[ot]=de[ot]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,ot=Object.getOwnPropertySymbols(de);Bt<ot.length;Bt++)le.indexOf(ot[Bt])<0&&Object.prototype.propertyIsEnumerable.call(de,ot[Bt])&&(Te[ot[Bt]]=de[ot[Bt]]);return Te};const ce=ye.forwardRef((de,le)=>{const{prefixCls:Te,size:ot,disabled:Bt,loading:en,className:rn,rootClassName:sn,style:un}=de,gt=fe(de,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:zt,direction:It,switch:ln}=ye.useContext(St.E_),_t=ye.useContext(cn.Z),lr=(Bt!=null?Bt:_t)||en,xt=zt("switch",Te),Yt=ye.createElement("div",{className:`${xt}-handle`},en&&ye.createElement(ie.Z,{className:`${xt}-loading-icon`})),[Un,Hn]=Pe(xt),$n=(0,Pt.Z)(ot),yr=Oe()(ln==null?void 0:ln.className,{[`${xt}-small`]:$n==="small",[`${xt}-loading`]:en,[`${xt}-rtl`]:It==="rtl"},rn,sn,Hn),Fn=Object.assign(Object.assign({},ln==null?void 0:ln.style),un);return Un(ye.createElement(Ae.Z,{component:"Switch"},ye.createElement(at,Object.assign({},gt,{prefixCls:xt,className:yr,style:Fn,disabled:lr,ref:le,loadingIcon:Yt}))))});ce.__ANT_SWITCH=!0;var pe=ce},9430:function(bn,Ut,re){"use strict";re.d(Ut,{default:function(){return Iu}});var ie={},Le="rc-table-internal-hook",Oe=re(97685),Ue=re(66680),be=re(8410),Me=re(91881),ue=re(67294),we=re(73935);function me(Ee){var Be=ue.createContext(void 0),Je=function(Dt){var Nt=Dt.value,Sn=Dt.children,Nn=ue.useRef(Nt);Nn.current=Nt;var An=ue.useState(function(){return{getValue:function(){return Nn.current},listeners:new Set}}),nr=(0,Oe.Z)(An,1),br=nr[0];return(0,be.Z)(function(){(0,we.unstable_batchedUpdates)(function(){br.listeners.forEach(function(pn){pn(Nt)})})},[Nt]),ue.createElement(Be.Provider,{value:br},Sn)};return{Context:Be,Provider:Je,defaultValue:Ee}}function Ie(Ee,Be){var Je=(0,Ue.Z)(typeof Be=="function"?Be:function(pn){if(Be===void 0)return pn;if(!Array.isArray(Be))return pn[Be];var Hr={};return Be.forEach(function(Ur){Hr[Ur]=pn[Ur]}),Hr}),ut=ue.useContext(Ee==null?void 0:Ee.Context),Dt=ut||{},Nt=Dt.listeners,Sn=Dt.getValue,Nn=ue.useRef();Nn.current=Je(ut?Sn():Ee==null?void 0:Ee.defaultValue);var An=ue.useState({}),nr=(0,Oe.Z)(An,2),br=nr[1];return(0,be.Z)(function(){if(!ut)return;function pn(Hr){var Ur=Je(Hr);(0,Me.Z)(Nn.current,Ur,!0)||br({})}return Nt.add(pn),function(){Nt.delete(pn)}},[ut]),Nn.current}var ct=re(87462),Ke=re(42550);function st(){var Ee=ue.createContext(null);function Be(){return ue.useContext(Ee)}function Je(Dt,Nt){var Sn=(0,Ke.Yr)(Dt),Nn=function(nr,br){var pn=Sn?{ref:br}:{},Hr=ue.useRef(0),Ur=ue.useRef(nr),Gr=Be();return Gr!==null?ue.createElement(Dt,(0,ct.Z)({},nr,pn)):((!Nt||Nt(Ur.current,nr))&&(Hr.current+=1),Ur.current=nr,ue.createElement(Ee.Provider,{value:Hr.current},ue.createElement(Dt,(0,ct.Z)({},nr,pn))))};return Sn?ue.forwardRef(Nn):Nn}function ut(Dt,Nt){var Sn=(0,Ke.Yr)(Dt),Nn=function(nr,br){var pn=Sn?{ref:br}:{};return Be(),ue.createElement(Dt,(0,ct.Z)({},nr,pn))};return Sn?ue.memo(ue.forwardRef(Nn),Nt):ue.memo(Nn,Nt)}return{makeImmutable:Je,responseImmutable:ut,useImmutableMark:Be}}var dt=st(),Xe=dt.makeImmutable,We=dt.responseImmutable,ye=dt.useImmutableMark,it=st(),Lt=it.makeImmutable,qe=it.responseImmutable,rt=it.useImmutableMark,xe=me(),Se=xe;function Ze(Ee,Be){var Je=ue.useRef(0);Je.current+=1;var ut=ue.useRef(Ee),Dt=[];Object.keys(Ee||{}).map(function(Sn){var Nn;(Ee==null?void 0:Ee[Sn])!==((Nn=ut.current)===null||Nn===void 0?void 0:Nn[Sn])&&Dt.push(Sn)}),ut.current=Ee;var Nt=ue.useRef([]);return Dt.length&&(Nt.current=Dt),ue.useDebugValue(Je.current),ue.useDebugValue(Nt.current.join(", ")),Be&&console.log("".concat(Be,":"),Je.current,Nt.current),Je.current}var Ge=null,yt=ue.memo(function(){var Ee=Ze();return ue.createElement("h1",null,"Render Times: ",Ee)});yt.displayName="RenderBlock";var pt=re(71002),ft=re(1413),Ne=re(4942),jt=re(94184),bt=re.n(jt);function xn(Ee,Be,Je){var ut=ue.useRef({});return(!("value"in ut.current)||Je(ut.current.condition,Be))&&(ut.current.value=Ee(),ut.current.condition=Be),ut.current.value}var Mt={},Gt=[],Bn=function(Be){Gt.push(Be)};function Tn(Ee,Be){if(0)var Je}function at(Ee,Be){if(0)var Je}function Ae(){Mt={}}function St(Ee,Be,Je){!Be&&!Mt[Je]&&(Ee(!1,Je),Mt[Je]=!0)}function cn(Ee,Be){St(Tn,Ee,Be)}function Pt(Ee,Be){St(at,Ee,Be)}cn.preMessage=Bn,cn.resetWarned=Ae,cn.noteOnce=Pt;var ht=cn;function Et(Ee,Be){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ut=new Set;function Dt(Nt,Sn){var Nn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,An=ut.has(Nt);if(ht(!An,"Warning: There may be circular references"),An)return!1;if(Nt===Sn)return!0;if(Je&&Nn>1)return!1;ut.add(Nt);var nr=Nn+1;if(Array.isArray(Nt)){if(!Array.isArray(Sn)||Nt.length!==Sn.length)return!1;for(var br=0;br<Nt.length;br++)if(!Dt(Nt[br],Sn[br],nr))return!1;return!0}if(Nt&&Sn&&(0,pt.Z)(Nt)==="object"&&(0,pt.Z)(Sn)==="object"){var pn=Object.keys(Nt);return pn.length!==Object.keys(Sn).length?!1:pn.every(function(Hr){return Dt(Nt[Hr],Sn[Hr],nr)})}return!1}return Dt(Ee,Be)}var Qt=Et;function ir(Ee,Be){for(var Je=Ee,ut=0;ut<Be.length;ut+=1){if(Je==null)return;Je=Je[Be[ut]]}return Je}var On=ue.createContext({renderWithProps:!1}),$t=On,yn="RC_TABLE_KEY";function Qn(Ee){return Ee==null?[]:Array.isArray(Ee)?Ee:[Ee]}function Cn(Ee){var Be=[],Je={};return Ee.forEach(function(ut){for(var Dt=ut||{},Nt=Dt.key,Sn=Dt.dataIndex,Nn=Nt||Qn(Sn).join("-")||yn;Je[Nn];)Nn="".concat(Nn,"_next");Je[Nn]=!0,Be.push(Nn)}),Be}function Pe(Ee){return Ee!=null}function fe(Ee){return Ee&&(0,pt.Z)(Ee)==="object"&&!Array.isArray(Ee)&&!ue.isValidElement(Ee)}function ce(Ee,Be,Je,ut,Dt,Nt){var Sn=ue.useContext($t),Nn=rt(),An=xn(function(){if(Pe(ut))return[ut];var nr=Be==null||Be===""?[]:Array.isArray(Be)?Be:[Be],br=ir(Ee,nr),pn=br,Hr=void 0;if(Dt){var Ur=Dt(br,Ee,Je);fe(Ur)?(pn=Ur.children,Hr=Ur.props,Sn.renderWithProps=!0):pn=Ur}return[pn,Hr]},[Nn,Ee,ut,Be,Dt,Je],function(nr,br){if(Nt){var pn=(0,Oe.Z)(nr,2),Hr=pn[1],Ur=(0,Oe.Z)(br,2),Gr=Ur[1];return Nt(Gr,Hr)}return Sn.renderWithProps?!0:!Qt(nr,br,!0)});return An}function pe(Ee,Be,Je,ut){var Dt=Ee+Be-1;return Ee<=ut&&Dt>=Je}function de(Ee,Be){return Ie(Se,function(Je){var ut=pe(Ee,Be||1,Je.hoverStartRow,Je.hoverEndRow);return[ut,Je.onHover]})}var le=function(Be){var Je=Be.ellipsis,ut=Be.rowType,Dt=Be.children,Nt,Sn=Je===!0?{showTitle:!0}:Je;return Sn&&(Sn.showTitle||ut==="header")&&(typeof Dt=="string"||typeof Dt=="number"?Nt=Dt.toString():ue.isValidElement(Dt)&&typeof Dt.props.children=="string"&&(Nt=Dt.props.children)),Nt};function Te(Ee){var Be,Je,ut,Dt,Nt,Sn,Nn,An,nr=Ee.component,br=Ee.children,pn=Ee.ellipsis,Hr=Ee.scope,Ur=Ee.prefixCls,Gr=Ee.className,ii=Ee.align,Jr=Ee.record,mi=Ee.render,ui=Ee.dataIndex,Ci=Ee.renderIndex,ea=Ee.shouldCellUpdate,ji=Ee.index,$i=Ee.rowType,Ea=Ee.colSpan,Ua=Ee.rowSpan,Fi=Ee.fixLeft,Ui=Ee.fixRight,Ki=Ee.firstFixLeft,gi=Ee.lastFixLeft,Xi=Ee.firstFixRight,Ma=Ee.lastFixRight,qa=Ee.appendNode,Ka=Ee.additionalProps,Aa=Ka===void 0?{}:Ka,ao=Ee.isSticky,eo="".concat(Ur,"-cell"),_o=Ie(Se,["supportSticky","allColumnsFixedLeft"]),so=_o.supportSticky,es=_o.allColumnsFixedLeft,ts=ce(Jr,ui,Ci,br,mi,ea),Va=(0,Oe.Z)(ts,2),Ls=Va[0],Io=Va[1],Zo={},Ro=typeof Fi=="number"&&so,Wa=typeof Ui=="number"&&so;Ro&&(Zo.position="sticky",Zo.left=Fi),Wa&&(Zo.position="sticky",Zo.right=Ui);var Ii=(Be=(Je=(ut=Io==null?void 0:Io.colSpan)!==null&&ut!==void 0?ut:Aa.colSpan)!==null&&Je!==void 0?Je:Ea)!==null&&Be!==void 0?Be:1,ha=(Dt=(Nt=(Sn=Io==null?void 0:Io.rowSpan)!==null&&Sn!==void 0?Sn:Aa.rowSpan)!==null&&Nt!==void 0?Nt:Ua)!==null&&Dt!==void 0?Dt:1,ka=de(ji,ha),Vi=(0,Oe.Z)(ka,2),To=Vi[0],Di=Vi[1],ja=function(Cs){var fl;Jr&&Di(ji,ji+ha-1),Aa==null||(fl=Aa.onMouseEnter)===null||fl===void 0||fl.call(Aa,Cs)},Do=function(Cs){var fl;Jr&&Di(-1,-1),Aa==null||(fl=Aa.onMouseLeave)===null||fl===void 0||fl.call(Aa,Cs)};if(Ii===0||ha===0)return null;var wo=(Nn=Aa.title)!==null&&Nn!==void 0?Nn:le({rowType:$i,ellipsis:pn,children:Ls}),ol=bt()(eo,Gr,(An={},(0,Ne.Z)(An,"".concat(eo,"-fix-left"),Ro&&so),(0,Ne.Z)(An,"".concat(eo,"-fix-left-first"),Ki&&so),(0,Ne.Z)(An,"".concat(eo,"-fix-left-last"),gi&&so),(0,Ne.Z)(An,"".concat(eo,"-fix-left-all"),gi&&es&&so),(0,Ne.Z)(An,"".concat(eo,"-fix-right"),Wa&&so),(0,Ne.Z)(An,"".concat(eo,"-fix-right-first"),Xi&&so),(0,Ne.Z)(An,"".concat(eo,"-fix-right-last"),Ma&&so),(0,Ne.Z)(An,"".concat(eo,"-ellipsis"),pn),(0,Ne.Z)(An,"".concat(eo,"-with-append"),qa),(0,Ne.Z)(An,"".concat(eo,"-fix-sticky"),(Ro||Wa)&&ao&&so),(0,Ne.Z)(An,"".concat(eo,"-row-hover"),!Io&&To),An),Aa.className,Io==null?void 0:Io.className),Ds={};ii&&(Ds.textAlign=ii);var El=(0,ft.Z)((0,ft.Z)((0,ft.Z)((0,ft.Z)({},Zo),Aa.style),Ds),Io==null?void 0:Io.style),ei=Ls;return(0,pt.Z)(ei)==="object"&&!Array.isArray(ei)&&!ue.isValidElement(ei)&&(ei=null),pn&&(gi||Xi)&&(ei=ue.createElement("span",{className:"".concat(eo,"-content")},ei)),ue.createElement(nr,(0,ct.Z)({},Io,Aa,{className:ol,style:El,title:wo,scope:Hr,onMouseEnter:ja,onMouseLeave:Do,colSpan:Ii!==1?Ii:null,rowSpan:ha!==1?ha:null}),qa,ei)}var ot=ue.memo(Te);function Bt(Ee,Be,Je,ut,Dt,Nt){var Sn=Je[Ee]||{},Nn=Je[Be]||{},An,nr;Sn.fixed==="left"?An=ut.left[Dt==="rtl"?Be:Ee]:Nn.fixed==="right"&&(nr=ut.right[Dt==="rtl"?Ee:Be]);var br=!1,pn=!1,Hr=!1,Ur=!1,Gr=Je[Be+1],ii=Je[Ee-1],Jr=!(Nt!=null&&Nt.children);if(Dt==="rtl"){if(An!==void 0){var mi=ii&&ii.fixed==="left";Ur=!mi&&Jr}else if(nr!==void 0){var ui=Gr&&Gr.fixed==="right";Hr=!ui&&Jr}}else if(An!==void 0){var Ci=Gr&&Gr.fixed==="left";br=!Ci&&Jr}else if(nr!==void 0){var ea=ii&&ii.fixed==="right";pn=!ea&&Jr}return{fixLeft:An,fixRight:nr,lastFixLeft:br,firstFixRight:pn,lastFixRight:Hr,firstFixLeft:Ur,isSticky:ut.isSticky}}var en=ue.createContext({}),rn=en;function sn(Ee){var Be=Ee.className,Je=Ee.index,ut=Ee.children,Dt=Ee.colSpan,Nt=Dt===void 0?1:Dt,Sn=Ee.rowSpan,Nn=Ee.align,An=Ie(Se,["prefixCls","direction"]),nr=An.prefixCls,br=An.direction,pn=ue.useContext(rn),Hr=pn.scrollColumnIndex,Ur=pn.stickyOffsets,Gr=pn.flattenColumns,ii=pn.columns,Jr=Je+Nt-1,mi=Jr+1===Hr?Nt+1:Nt,ui=Bt(Je,Je+mi-1,Gr,Ur,br,ii==null?void 0:ii[Je]);return ue.createElement(ot,(0,ct.Z)({className:Be,index:Je,component:"td",prefixCls:nr,record:null,dataIndex:null,align:Nn,colSpan:mi,rowSpan:Sn,render:function(){return ut}},ui))}var un=re(45987),gt=["children"];function zt(Ee){var Be=Ee.children,Je=(0,un.Z)(Ee,gt);return ue.createElement("tr",Je,Be)}function It(Ee){var Be=Ee.children;return Be}It.Row=zt,It.Cell=sn;var ln=It;function _t(Ee){var Be=Ee.children,Je=Ee.stickyOffsets,ut=Ee.flattenColumns,Dt=Ee.columns,Nt=Ie(Se,"prefixCls"),Sn=ut.length-1,Nn=ut[Sn],An=ue.useMemo(function(){return{stickyOffsets:Je,flattenColumns:ut,scrollColumnIndex:Nn!=null&&Nn.scrollbar?Sn:null,columns:Dt}},[Nn,ut,Sn,Je,Dt]);return ue.createElement(rn.Provider,{value:An},ue.createElement("tfoot",{className:"".concat(Nt,"-summary")},Be))}var lr=qe(_t),xt=ln;function Yt(Ee){var Be=ue.useRef();Be.current=Ee;var Je=ue.useCallback(function(){for(var ut,Dt=arguments.length,Nt=new Array(Dt),Sn=0;Sn<Dt;Sn++)Nt[Sn]=arguments[Sn];return(ut=Be.current)===null||ut===void 0?void 0:ut.call.apply(ut,[Be].concat(Nt))},[]);return Je}function Un(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Hn=Un()?ue.useLayoutEffect:ue.useEffect,$n=function(Be,Je){var ut=React.useRef(!0);Hn(function(){return Be(ut.current)},Je),Hn(function(){return ut.current=!1,function(){ut.current=!0}},[])},yr=function(Be,Je){$n(function(ut){if(!ut)return Be()},Je)},Fn=null;function or(Ee){var Be=React.useRef(!1),Je=React.useState(Ee),ut=_slicedToArray(Je,2),Dt=ut[0],Nt=ut[1];React.useEffect(function(){return Be.current=!1,function(){Be.current=!0}},[]);function Sn(Nn,An){An&&Be.current||Nt(Nn)}return[Dt,Sn]}function Dr(Ee){return Ee!==void 0}function Fr(Ee,Be){var Je=Be||{},ut=Je.defaultValue,Dt=Je.value,Nt=Je.onChange,Sn=Je.postState,Nn=useState(function(){return Dr(Dt)?Dt:Dr(ut)?typeof ut=="function"?ut():ut:typeof Ee=="function"?Ee():Ee}),An=_slicedToArray(Nn,2),nr=An[0],br=An[1],pn=Dt!==void 0?Dt:nr,Hr=Sn?Sn(pn):pn,Ur=useEvent(Nt),Gr=useState([pn]),ii=_slicedToArray(Gr,2),Jr=ii[0],mi=ii[1];useLayoutUpdateEffect(function(){var Ci=Jr[0];nr!==Ci&&Ur(nr,Ci)},[Jr]),useLayoutUpdateEffect(function(){Dr(Dt)||br(Dt)},[Dt]);var ui=useEvent(function(Ci,ea){br(Ci,ea),mi([pn],ea)});return[Hr,ui]}var hr=re(35110);function _r(Ee,Be){typeof Ee=="function"?Ee(Be):(0,pt.Z)(Ee)==="object"&&Ee&&"current"in Ee&&(Ee.current=Be)}function Mi(){for(var Ee=arguments.length,Be=new Array(Ee),Je=0;Je<Ee;Je++)Be[Je]=arguments[Je];var ut=Be.filter(function(Dt){return Dt});return ut.length<=1?ut[0]:function(Dt){Be.forEach(function(Nt){_r(Nt,Dt)})}}function zi(){for(var Ee=arguments.length,Be=new Array(Ee),Je=0;Je<Ee;Je++)Be[Je]=arguments[Je];return useMemo(function(){return Mi.apply(void 0,Be)},Be,function(ut,Dt){return ut.length!==Dt.length||ut.every(function(Nt,Sn){return Nt!==Dt[Sn]})})}function Gi(Ee){var Be,Je,ut=isMemo(Ee)?Ee.type.type:Ee.type;return!(typeof ut=="function"&&!((Be=ut.prototype)!==null&&Be!==void 0&&Be.render)||typeof Ee=="function"&&!((Je=Ee.prototype)!==null&&Je!==void 0&&Je.render))}function pi(Ee){return!isValidElement(Ee)||isFragment(Ee)?!1:Gi(Ee)}function Zt(Ee,Be,Je,ut){if(!Be.length)return Je;var Dt=_toArray(Be),Nt=Dt[0],Sn=Dt.slice(1),Nn;return!Ee&&typeof Nt=="number"?Nn=[]:Array.isArray(Ee)?Nn=_toConsumableArray(Ee):Nn=_objectSpread({},Ee),ut&&Je===void 0&&Sn.length===1?delete Nn[Nt][Sn[0]]:Nn[Nt]=Zt(Nn[Nt],Sn,Je,ut),Nn}function Kn(Ee,Be,Je){var ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Be.length&&ut&&Je===void 0&&!get(Ee,Be.slice(0,-1))?Ee:Zt(Ee,Be,Je,ut)}function fr(Ee){return _typeof(Ee)==="object"&&Ee!==null&&Object.getPrototypeOf(Ee)===Object.prototype}function qn(Ee){return Array.isArray(Ee)?[]:{}}var Br=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Kr(){for(var Ee=arguments.length,Be=new Array(Ee),Je=0;Je<Ee;Je++)Be[Je]=arguments[Je];var ut=qn(Be[0]);return Be.forEach(function(Dt){function Nt(Sn,Nn){var An=new Set(Nn),nr=get(Dt,Sn),br=Array.isArray(nr);if(br||fr(nr)){if(!An.has(nr)){An.add(nr);var pn=get(ut,Sn);br?ut=Kn(ut,Sn,[]):(!pn||_typeof(pn)!=="object")&&(ut=Kn(ut,Sn,qn(nr))),Br(nr).forEach(function(Hr){Nt([].concat(_toConsumableArray(Sn),[Hr]),An)})}}else ut=Kn(ut,Sn,nr)}Nt([])}),ut}var Rr=re(48555),gr=function(Ee){if(!Ee)return!1;if(Ee instanceof Element){if(Ee.offsetParent)return!0;if(Ee.getBBox){var Be=Ee.getBBox(),Je=Be.width,ut=Be.height;if(Je||ut)return!0}if(Ee.getBoundingClientRect){var Dt=Ee.getBoundingClientRect(),Nt=Dt.width,Sn=Dt.height;if(Nt||Sn)return!0}}return!1},mt=function(Be){if(Un()&&window.document.documentElement){var Je=Array.isArray(Be)?Be:[Be],ut=window.document.documentElement;return Je.some(function(Dt){return Dt in ut.style})}return!1},Ot=function(Be,Je){if(!mt(Be))return!1;var ut=document.createElement("div"),Dt=ut.style[Be];return ut.style[Be]=Je,ut.style[Be]!==Dt};function Xt(Ee,Be){return!Array.isArray(Ee)&&Be!==void 0?Ot(Ee,Be):mt(Ee)}var kn;function lt(Ee){if(typeof document=="undefined")return 0;if(Ee||kn===void 0){var Be=document.createElement("div");Be.style.width="100%",Be.style.height="200px";var Je=document.createElement("div"),ut=Je.style;ut.position="absolute",ut.top="0",ut.left="0",ut.pointerEvents="none",ut.visibility="hidden",ut.width="200px",ut.height="150px",ut.overflow="hidden",Je.appendChild(Be),document.body.appendChild(Je);var Dt=Be.offsetWidth;Je.style.overflow="scroll";var Nt=Be.offsetWidth;Dt===Nt&&(Nt=Je.clientWidth),document.body.removeChild(Je),kn=Dt-Nt}return kn}function Kt(Ee){var Be=Ee.match(/^(.*)px$/),Je=Number(Be==null?void 0:Be[1]);return Number.isNaN(Je)?lt():Je}function mn(Ee){if(typeof document=="undefined"||!Ee||!(Ee instanceof Element))return{width:0,height:0};var Be=getComputedStyle(Ee,"::-webkit-scrollbar"),Je=Be.width,ut=Be.height;return{width:Kt(Je),height:Kt(ut)}}var nn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,In=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Pn="".concat(nn," ").concat(In).split(/[\s\n]+/),vr="aria-",ni="data-";function zr(Ee,Be){return Ee.indexOf(Be)===0}function Pr(Ee){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Je;Be===!1?Je={aria:!0,data:!0,attr:!0}:Be===!0?Je={aria:!0}:Je=(0,ft.Z)({},Be);var ut={};return Object.keys(Ee).forEach(function(Dt){(Je.aria&&(Dt==="role"||zr(Dt,vr))||Je.data&&zr(Dt,ni)||Je.attr&&Pn.includes(Dt))&&(ut[Dt]=Ee[Dt])}),ut}function Yr(Ee,Be,Je,ut,Dt,Nt,Sn){Ee.push({record:Be,indent:Je,index:Sn});var Nn=Nt(Be),An=Dt==null?void 0:Dt.has(Nn);if(Be&&Array.isArray(Be[ut])&&An)for(var nr=0;nr<Be[ut].length;nr+=1)Yr(Ee,Be[ut][nr],Je+1,ut,Dt,Nt,nr)}function Qr(Ee,Be,Je,ut){var Dt=ue.useMemo(function(){if(Je!=null&&Je.size){for(var Nt=[],Sn=0;Sn<(Ee==null?void 0:Ee.length);Sn+=1){var Nn=Ee[Sn];Yr(Nt,Nn,0,Be,Je,ut,Sn)}return Nt}return Ee==null?void 0:Ee.map(function(An,nr){return{record:An,indent:0,index:nr}})},[Ee,Be,Je,ut]);return Dt}function Ht(Ee){var Be=Ee.prefixCls,Je=Ee.children,ut=Ee.component,Dt=Ee.cellComponent,Nt=Ee.className,Sn=Ee.expanded,Nn=Ee.colSpan,An=Ee.isEmpty,nr=Ie(Se,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),br=nr.scrollbarSize,pn=nr.fixHeader,Hr=nr.fixColumn,Ur=nr.componentWidth,Gr=nr.horizonScroll,ii=Je;return(An?Gr&&Ur:Hr)&&(ii=ue.createElement("div",{style:{width:Ur-(pn?br:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Be,"-expanded-row-fixed")},ii)),ue.createElement(ut,{className:Nt,style:{display:Sn?null:"none"}},ue.createElement(ot,{component:Dt,prefixCls:Be,colSpan:Nn},ii))}var Tt=Ht;function Jt(Ee,Be,Je,ut){var Dt=Ie(Se,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Nt=Dt.flattenColumns,Sn=Dt.expandableType,Nn=Dt.expandedKeys,An=Dt.childrenColumnName,nr=Dt.onTriggerExpand,br=Dt.rowExpandable,pn=Dt.onRow,Hr=Dt.expandRowByClick,Ur=Dt.rowClassName,Gr=Sn==="nest",ii=Sn==="row"&&(!br||br(Ee)),Jr=ii||Gr,mi=Nn&&Nn.has(Be),ui=An&&Ee&&Ee[An],Ci=Yt(nr),ea=pn==null?void 0:pn(Ee,Je),ji=ea==null?void 0:ea.onClick,$i=function(Ui){Hr&&Jr&&nr(Ee,Ui);for(var Ki=arguments.length,gi=new Array(Ki>1?Ki-1:0),Xi=1;Xi<Ki;Xi++)gi[Xi-1]=arguments[Xi];ji==null||ji.apply(void 0,[Ui].concat(gi))},Ea;typeof Ur=="string"?Ea=Ur:typeof Ur=="function"&&(Ea=Ur(Ee,Je,ut));var Ua=Cn(Nt);return(0,ft.Z)((0,ft.Z)({},Dt),{},{columnsKey:Ua,nestExpandable:Gr,expanded:mi,hasNestChildren:ui,record:Ee,onTriggerExpand:Ci,rowSupportExpand:ii,expandable:Jr,rowProps:(0,ft.Z)((0,ft.Z)({},ea),{},{className:bt()(Ea,ea==null?void 0:ea.className),onClick:$i})})}function er(Ee,Be,Je,ut,Dt){var Nt=Ee.record,Sn=Ee.prefixCls,Nn=Ee.columnsKey,An=Ee.fixedInfoList,nr=Ee.expandIconColumnIndex,br=Ee.nestExpandable,pn=Ee.indentSize,Hr=Ee.expandIcon,Ur=Ee.expanded,Gr=Ee.hasNestChildren,ii=Ee.onTriggerExpand,Jr=Nn[Je],mi=An[Je],ui;Je===(nr||0)&&br&&(ui=ue.createElement(ue.Fragment,null,ue.createElement("span",{style:{paddingLeft:"".concat(pn*ut,"px")},className:"".concat(Sn,"-row-indent indent-level-").concat(ut)}),Hr({prefixCls:Sn,expanded:Ur,expandable:Gr,record:Nt,onExpand:ii})));var Ci;return Be.onCell&&(Ci=Be.onCell(Nt,Dt)),{key:Jr,fixedInfo:mi,appendCellNode:ui,additionalCellProps:Ci||{}}}function kr(Ee){var Be=Ee.className,Je=Ee.style,ut=Ee.record,Dt=Ee.index,Nt=Ee.renderIndex,Sn=Ee.rowKey,Nn=Ee.indent,An=Nn===void 0?0:Nn,nr=Ee.rowComponent,br=Ee.cellComponent,pn=Ee.scopeCellComponent,Hr=Jt(ut,Sn,Dt,An),Ur=Hr.prefixCls,Gr=Hr.flattenColumns,ii=Hr.expandedRowClassName,Jr=Hr.expandedRowRender,mi=Hr.rowProps,ui=Hr.expanded,Ci=Hr.rowSupportExpand,ea=ue.useState(!1),ji=(0,Oe.Z)(ea,2),$i=ji[0],Ea=ji[1];ue.useEffect(function(){ui&&Ea(!0)},[ui]);var Ua=ue.createElement(nr,(0,ct.Z)({},mi,{"data-row-key":Sn,className:bt()(Be,"".concat(Ur,"-row"),"".concat(Ur,"-row-level-").concat(An),mi==null?void 0:mi.className),style:(0,ft.Z)((0,ft.Z)({},Je),mi==null?void 0:mi.style)}),Gr.map(function(gi,Xi){var Ma=gi.render,qa=gi.dataIndex,Ka=gi.className,Aa=er(Hr,gi,Xi,An,Dt),ao=Aa.key,eo=Aa.fixedInfo,_o=Aa.appendCellNode,so=Aa.additionalCellProps;return ue.createElement(ot,(0,ct.Z)({className:Ka,ellipsis:gi.ellipsis,align:gi.align,scope:gi.rowScope,component:gi.rowScope?pn:br,prefixCls:Ur,key:ao,record:ut,index:Dt,renderIndex:Nt,dataIndex:qa,render:Ma,shouldCellUpdate:gi.shouldCellUpdate},eo,{appendNode:_o,additionalProps:so}))})),Fi;if(Ci&&($i||ui)){var Ui=Jr(ut,Dt,An+1,ui),Ki=ii&&ii(ut,Dt,An);Fi=ue.createElement(Tt,{expanded:ui,className:bt()("".concat(Ur,"-expanded-row"),"".concat(Ur,"-expanded-row-level-").concat(An+1),Ki),prefixCls:Ur,component:nr,cellComponent:br,colSpan:Gr.length,isEmpty:!1},Ui)}return ue.createElement(ue.Fragment,null,Ua,Fi)}kr.displayName="BodyRow";var Rn=qe(kr);function Jn(Ee){var Be=Ee.columnKey,Je=Ee.onColumnResize,ut=ue.useRef();return ue.useEffect(function(){ut.current&&Je(Be,ut.current.offsetWidth)},[]),ue.createElement(Rr.Z,{data:Be},ue.createElement("td",{ref:ut,style:{padding:0,border:0,height:0}},ue.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function sr(Ee){var Be=Ee.prefixCls,Je=Ee.columnsKey,ut=Ee.onColumnResize;return ue.createElement("tr",{"aria-hidden":"true",className:"".concat(Be,"-measure-row"),style:{height:0,fontSize:0}},ue.createElement(Rr.Z.Collection,{onBatchResize:function(Nt){Nt.forEach(function(Sn){var Nn=Sn.data,An=Sn.size;ut(Nn,An.offsetWidth)})}},Je.map(function(Dt){return ue.createElement(Jn,{key:Dt,columnKey:Dt,onColumnResize:ut})})))}function Ir(Ee){var Be=Ee.data,Je=Ee.measureColumnWidth,ut=Ie(Se,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Dt=ut.prefixCls,Nt=ut.getComponent,Sn=ut.onColumnResize,Nn=ut.flattenColumns,An=ut.getRowKey,nr=ut.expandedKeys,br=ut.childrenColumnName,pn=ut.emptyNode,Hr=Qr(Be,br,nr,An),Ur=ue.useRef({renderWithProps:!1}),Gr=Nt(["body","wrapper"],"tbody"),ii=Nt(["body","row"],"tr"),Jr=Nt(["body","cell"],"td"),mi=Nt(["body","cell"],"th"),ui;Be.length?ui=Hr.map(function(ea,ji){var $i=ea.record,Ea=ea.indent,Ua=ea.index,Fi=An($i,ji);return ue.createElement(Rn,{key:Fi,rowKey:Fi,record:$i,index:ji,renderIndex:Ua,rowComponent:ii,cellComponent:Jr,scopeCellComponent:mi,getRowKey:An,indent:Ea})}):ui=ue.createElement(Tt,{expanded:!0,className:"".concat(Dt,"-placeholder"),prefixCls:Dt,component:ii,cellComponent:Jr,colSpan:Nn.length,isEmpty:!0},pn);var Ci=Cn(Nn);return ue.createElement($t.Provider,{value:Ur.current},ue.createElement(Gr,{className:"".concat(Dt,"-tbody")},Je&&ue.createElement(sr,{prefixCls:Dt,columnsKey:Ci,onColumnResize:Sn}),ui))}Ir.displayName="Body";var Xr=qe(Ir),Wn=["expandable"],Ai="RC_TABLE_INTERNAL_COL_DEFINE";function xi(Ee){var Be=Ee.expandable,Je=(0,un.Z)(Ee,Wn),ut;return"expandable"in Ee?ut=(0,ft.Z)((0,ft.Z)({},Je),Be):ut=Je,ut.showExpandColumn===!1&&(ut.expandIconColumnIndex=-1),ut}var Sa=["columnType"];function fa(Ee){for(var Be=Ee.colWidths,Je=Ee.columns,ut=Ee.columCount,Dt=[],Nt=ut||Je.length,Sn=!1,Nn=Nt-1;Nn>=0;Nn-=1){var An=Be[Nn],nr=Je&&Je[Nn],br=nr&&nr[Ai];if(An||br||Sn){var pn=br||{},Hr=pn.columnType,Ur=(0,un.Z)(pn,Sa);Dt.unshift(ue.createElement("col",(0,ct.Z)({key:Nn,style:{width:An}},Ur))),Sn=!0}}return ue.createElement("colgroup",null,Dt)}var na=fa,Ni=re(74902),la=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Qi(Ee,Be){return(0,ue.useMemo)(function(){for(var Je=[],ut=0;ut<Be;ut+=1){var Dt=Ee[ut];if(Dt!==void 0)Je[ut]=Dt;else return null}return Je},[Ee.join("_"),Be])}var ga=ue.forwardRef(function(Ee,Be){var Je=Ee.className,ut=Ee.noData,Dt=Ee.columns,Nt=Ee.flattenColumns,Sn=Ee.colWidths,Nn=Ee.columCount,An=Ee.stickyOffsets,nr=Ee.direction,br=Ee.fixHeader,pn=Ee.stickyTopOffset,Hr=Ee.stickyBottomOffset,Ur=Ee.stickyClassName,Gr=Ee.onScroll,ii=Ee.maxContentScroll,Jr=Ee.children,mi=(0,un.Z)(Ee,la),ui=Ie(Se,["prefixCls","scrollbarSize","isSticky"]),Ci=ui.prefixCls,ea=ui.scrollbarSize,ji=ui.isSticky,$i=ji&&!br?0:ea,Ea=ue.useRef(null),Ua=ue.useCallback(function(Ka){_r(Be,Ka),_r(Ea,Ka)},[]);ue.useEffect(function(){var Ka;function Aa(ao){var eo=ao,_o=eo.currentTarget,so=eo.deltaX;so&&(Gr({currentTarget:_o,scrollLeft:_o.scrollLeft+so}),ao.preventDefault())}return(Ka=Ea.current)===null||Ka===void 0||Ka.addEventListener("wheel",Aa),function(){var ao;(ao=Ea.current)===null||ao===void 0||ao.removeEventListener("wheel",Aa)}},[]);var Fi=ue.useMemo(function(){return Nt.every(function(Ka){return Ka.width})},[Nt]),Ui=Nt[Nt.length-1],Ki={fixed:Ui?Ui.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Ci,"-cell-scrollbar")}}},gi=(0,ue.useMemo)(function(){return $i?[].concat((0,Ni.Z)(Dt),[Ki]):Dt},[$i,Dt]),Xi=(0,ue.useMemo)(function(){return $i?[].concat((0,Ni.Z)(Nt),[Ki]):Nt},[$i,Nt]),Ma=(0,ue.useMemo)(function(){var Ka=An.right,Aa=An.left;return(0,ft.Z)((0,ft.Z)({},An),{},{left:nr==="rtl"?[].concat((0,Ni.Z)(Aa.map(function(ao){return ao+$i})),[0]):Aa,right:nr==="rtl"?Ka:[].concat((0,Ni.Z)(Ka.map(function(ao){return ao+$i})),[0]),isSticky:ji})},[$i,An,ji]),qa=Qi(Sn,Nn);return ue.createElement("div",{style:(0,ft.Z)({overflow:"hidden"},ji?{top:pn,bottom:Hr}:{}),ref:Ua,className:bt()(Je,(0,Ne.Z)({},Ur,!!Ur))},ue.createElement("table",{style:{tableLayout:"fixed",visibility:ut||qa?null:"hidden"}},(!ut||!ii||Fi)&&ue.createElement(na,{colWidths:qa?[].concat((0,Ni.Z)(qa),[$i]):[],columCount:Nn+1,columns:Xi}),Jr((0,ft.Z)((0,ft.Z)({},mi),{},{stickyOffsets:Ma,columns:gi,flattenColumns:Xi}))))});ga.displayName="FixedHolder";var Ba=ue.memo(ga);function Oi(Ee){var Be=Ee.cells,Je=Ee.stickyOffsets,ut=Ee.flattenColumns,Dt=Ee.rowComponent,Nt=Ee.cellComponent,Sn=Ee.tdCellComponent,Nn=Ee.onHeaderRow,An=Ee.index,nr=Ie(Se,["prefixCls","direction"]),br=nr.prefixCls,pn=nr.direction,Hr;Nn&&(Hr=Nn(Be.map(function(Gr){return Gr.column}),An));var Ur=Cn(Be.map(function(Gr){return Gr.column}));return ue.createElement(Dt,Hr,Be.map(function(Gr,ii){var Jr=Gr.column,mi=Bt(Gr.colStart,Gr.colEnd,ut,Je,pn,Jr),ui;return Jr&&Jr.onHeaderCell&&(ui=Gr.column.onHeaderCell(Jr)),ue.createElement(ot,(0,ct.Z)({},Gr,{scope:Jr.title?Gr.colSpan>1?"colgroup":"col":null,ellipsis:Jr.ellipsis,align:Jr.align,component:Jr.title?Nt:Sn,prefixCls:br,key:Ur[ii]},mi,{additionalProps:ui,rowType:"header"}))}))}Oi.displayName="HeaderRow";var ca=Oi;function Ca(Ee){var Be=[];function Je(Sn,Nn){var An=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Be[An]=Be[An]||[];var nr=Nn,br=Sn.filter(Boolean).map(function(pn){var Hr={key:pn.key,className:pn.className||"",children:pn.title,column:pn,colStart:nr},Ur=1,Gr=pn.children;return Gr&&Gr.length>0&&(Ur=Je(Gr,nr,An+1).reduce(function(ii,Jr){return ii+Jr},0),Hr.hasSubColumns=!0),"colSpan"in pn&&(Ur=pn.colSpan),"rowSpan"in pn&&(Hr.rowSpan=pn.rowSpan),Hr.colSpan=Ur,Hr.colEnd=Hr.colStart+Ur-1,Be[An].push(Hr),nr+=Ur,Ur});return br}Je(Ee,0);for(var ut=Be.length,Dt=function(Nn){Be[Nn].forEach(function(An){!("rowSpan"in An)&&!An.hasSubColumns&&(An.rowSpan=ut-Nn)})},Nt=0;Nt<ut;Nt+=1)Dt(Nt);return Be}function Qa(Ee){var Be=Ee.stickyOffsets,Je=Ee.columns,ut=Ee.flattenColumns,Dt=Ee.onHeaderRow,Nt=Ie(Se,["prefixCls","getComponent"]),Sn=Nt.prefixCls,Nn=Nt.getComponent,An=ue.useMemo(function(){return Ca(Je)},[Je]),nr=Nn(["header","wrapper"],"thead"),br=Nn(["header","row"],"tr"),pn=Nn(["header","cell"],"th"),Hr=Nn(["header","cell"],"td");return ue.createElement(nr,{className:"".concat(Sn,"-thead")},An.map(function(Ur,Gr){var ii=ue.createElement(ca,{key:Gr,flattenColumns:ut,cells:Ur,stickyOffsets:Be,rowComponent:br,cellComponent:pn,tdCellComponent:Hr,onHeaderRow:Dt,index:Gr});return ii}))}var za=qe(Qa);function Pi(Ee){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Je=[];return ue.Children.forEach(Ee,function(ut){ut==null&&!Be.keepEmpty||(Array.isArray(ut)?Je=Je.concat(Pi(ut)):(0,hr.isFragment)(ut)&&ut.props?Je=Je.concat(Pi(ut.props.children,Be)):Je.push(ut))}),Je}function an(Ee){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Be=="number"?Be:Be.endsWith("%")?Ee*parseFloat(Be)/100:null}function Vt(Ee,Be){return ue.useMemo(function(){if(Be&&Be>0){var Je=0,ut=0;Ee.forEach(function(nr){var br=an(Be,nr.width);br?Je+=br:ut+=1});var Dt=Be-Je,Nt=ut,Sn=Dt/ut,Nn=0,An=Ee.map(function(nr){var br=(0,ft.Z)({},nr),pn=an(Be,br.width);if(pn)br.width=pn;else{var Hr=Math.floor(Sn);br.width=Nt===1?Dt:Hr,Dt-=Hr,Nt-=1}return Nn+=br.width,br});return[An,Nn]}return[Ee,Be]},[Ee,Be])}var zn=["children"],cr=["fixed"];function Er(Ee){return Pi(Ee).filter(function(Be){return ue.isValidElement(Be)}).map(function(Be){var Je=Be.key,ut=Be.props,Dt=ut.children,Nt=(0,un.Z)(ut,zn),Sn=(0,ft.Z)({key:Je},Nt);return Dt&&(Sn.children=Er(Dt)),Sn})}function qr(Ee){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ee.filter(function(Je){return Je&&(0,pt.Z)(Je)==="object"}).reduce(function(Je,ut,Dt){var Nt=ut.fixed,Sn=Nt===!0?"left":Nt,Nn="".concat(Be,"-").concat(Dt),An=ut.children;return An&&An.length>0?[].concat((0,Ni.Z)(Je),(0,Ni.Z)(qr(An,Nn).map(function(nr){return(0,ft.Z)({fixed:Sn},nr)}))):[].concat((0,Ni.Z)(Je),[(0,ft.Z)((0,ft.Z)({key:Nn},ut),{},{fixed:Sn})])},[])}function di(Ee){for(var Be=!0,Je=0;Je<Ee.length;Je+=1){var ut=Ee[Je];if(Be&&ut.fixed!=="left")Be=!1;else if(!Be&&ut.fixed==="left"){warning(!1,"Index ".concat(Je-1," of `columns` missing `fixed='left'` prop."));break}}for(var Dt=!0,Nt=Ee.length-1;Nt>=0;Nt-=1){var Sn=Ee[Nt];if(Dt&&Sn.fixed!=="right")Dt=!1;else if(!Dt&&Sn.fixed==="right"){warning(!1,"Index ".concat(Nt+1," of `columns` missing `fixed='right'` prop."));break}}}function bi(Ee){return Ee.map(function(Be){var Je=Be.fixed,ut=(0,un.Z)(Be,cr),Dt=Je;return Je==="left"?Dt="right":Je==="right"&&(Dt="left"),(0,ft.Z)({fixed:Dt},ut)})}function ki(Ee,Be){var Je=Ee.prefixCls,ut=Ee.columns,Dt=Ee.children,Nt=Ee.expandable,Sn=Ee.expandedKeys,Nn=Ee.columnTitle,An=Ee.getRowKey,nr=Ee.onTriggerExpand,br=Ee.expandIcon,pn=Ee.rowExpandable,Hr=Ee.expandIconColumnIndex,Ur=Ee.direction,Gr=Ee.expandRowByClick,ii=Ee.columnWidth,Jr=Ee.fixed,mi=Ee.scrollWidth,ui=ue.useMemo(function(){return ut||Er(Dt)},[ut,Dt]),Ci=ue.useMemo(function(){if(Nt){var Ui,Ki=ui.slice();if(!Ki.includes(ie)){var gi=Hr||0;gi>=0&&Ki.splice(gi,0,ie)}var Xi=Ki.indexOf(ie);Ki=Ki.filter(function(Aa,ao){return Aa!==ie||ao===Xi});var Ma=ui[Xi],qa;(Jr==="left"||Jr)&&!Hr?qa="left":(Jr==="right"||Jr)&&Hr===ui.length?qa="right":qa=Ma?Ma.fixed:null;var Ka=(Ui={},(0,Ne.Z)(Ui,Ai,{className:"".concat(Je,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Ne.Z)(Ui,"title",Nn),(0,Ne.Z)(Ui,"fixed",qa),(0,Ne.Z)(Ui,"className","".concat(Je,"-row-expand-icon-cell")),(0,Ne.Z)(Ui,"width",ii),(0,Ne.Z)(Ui,"render",function(ao,eo,_o){var so=An(eo,_o),es=Sn.has(so),ts=pn?pn(eo):!0,Va=br({prefixCls:Je,expanded:es,expandable:ts,record:eo,onExpand:nr});return Gr?ue.createElement("span",{onClick:function(Io){return Io.stopPropagation()}},Va):Va}),Ui);return Ki.map(function(Aa){return Aa===ie?Ka:Aa})}return ui.filter(function(Aa){return Aa!==ie})},[Nt,ui,An,Sn,br,Ur]),ea=ue.useMemo(function(){var Ui=Ci;return Be&&(Ui=Be(Ui)),Ui.length||(Ui=[{render:function(){return null}}]),Ui},[Be,Ci,Ur]),ji=ue.useMemo(function(){return Ur==="rtl"?bi(qr(ea)):qr(ea)},[ea,Ur,mi]),$i=Vt(ji,mi),Ea=(0,Oe.Z)($i,2),Ua=Ea[0],Fi=Ea[1];return[ea,Ua,Fi]}var Si=ki;function Ri(Ee){var Be,Je=Ee.prefixCls,ut=Ee.record,Dt=Ee.onExpand,Nt=Ee.expanded,Sn=Ee.expandable,Nn="".concat(Je,"-row-expand-icon");if(!Sn)return ue.createElement("span",{className:bt()(Nn,"".concat(Je,"-row-spaced"))});var An=function(br){Dt(ut,br),br.stopPropagation()};return ue.createElement("span",{className:bt()(Nn,(Be={},(0,Ne.Z)(Be,"".concat(Je,"-row-expanded"),Nt),(0,Ne.Z)(Be,"".concat(Je,"-row-collapsed"),!Nt),Be)),onClick:An})}function ra(Ee,Be,Je){var ut=[];function Dt(Nt){(Nt||[]).forEach(function(Sn,Nn){ut.push(Be(Sn,Nn)),Dt(Sn[Je])})}return Dt(Ee),ut}function oi(Ee,Be,Je){var ut=xi(Ee),Dt=ut.expandIcon,Nt=ut.expandedRowKeys,Sn=ut.defaultExpandedRowKeys,Nn=ut.defaultExpandAllRows,An=ut.expandedRowRender,nr=ut.onExpand,br=ut.onExpandedRowsChange,pn=ut.childrenColumnName,Hr=Dt||Ri,Ur=pn||"children",Gr=ue.useMemo(function(){return An?"row":Ee.expandable&&Ee.internalHooks===Le&&Ee.expandable.__PARENT_RENDER_ICON__||Be.some(function(ji){return ji&&(0,pt.Z)(ji)==="object"&&ji[Ur]})?"nest":!1},[!!An,Be]),ii=ue.useState(function(){return Sn||(Nn?ra(Be,Je,Ur):[])}),Jr=(0,Oe.Z)(ii,2),mi=Jr[0],ui=Jr[1],Ci=ue.useMemo(function(){return new Set(Nt||mi||[])},[Nt,mi]),ea=ue.useCallback(function(ji){var $i=Je(ji,Be.indexOf(ji)),Ea,Ua=Ci.has($i);Ua?(Ci.delete($i),Ea=(0,Ni.Z)(Ci)):Ea=[].concat((0,Ni.Z)(Ci),[$i]),ui(Ea),nr&&nr(!Ua,ji),br&&br(Ea)},[Je,Ci,Be,nr,br]);return[ut,Gr,Ci,Hr,Ur,ea]}function hn(Ee,Be,Je,ut){var Dt=Ee.map(function(Nt,Sn){return Bt(Sn,Sn,Ee,Be,Je,ut==null?void 0:ut[Sn])});return xn(function(){return Dt},[Dt],function(Nt,Sn){return!Qt(Nt,Sn)})}function Dn(Ee){var Be=(0,ue.useRef)(Ee),Je=(0,ue.useState)({}),ut=(0,Oe.Z)(Je,2),Dt=ut[1],Nt=(0,ue.useRef)(null),Sn=(0,ue.useRef)([]);function Nn(An){Sn.current.push(An);var nr=Promise.resolve();Nt.current=nr,nr.then(function(){if(Nt.current===nr){var br=Sn.current,pn=Be.current;Sn.current=[],br.forEach(function(Hr){Be.current=Hr(Be.current)}),Nt.current=null,pn!==Be.current&&Dt({})}})}return(0,ue.useEffect)(function(){return function(){Nt.current=null}},[]),[Be.current,Nn]}function Xn(Ee){var Be=(0,ue.useRef)(Ee||null),Je=(0,ue.useRef)();function ut(){window.clearTimeout(Je.current)}function Dt(Sn){Be.current=Sn,ut(),Je.current=window.setTimeout(function(){Be.current=null,Je.current=void 0},100)}function Nt(){return Be.current}return(0,ue.useEffect)(function(){return ut},[]),[Dt,Nt]}function ge(){var Ee=ue.useState(-1),Be=(0,Oe.Z)(Ee,2),Je=Be[0],ut=Be[1],Dt=ue.useState(-1),Nt=(0,Oe.Z)(Dt,2),Sn=Nt[0],Nn=Nt[1],An=ue.useCallback(function(nr,br){ut(nr),Nn(br)},[]);return[Je,Sn,An]}var Re=Un()?window:null;function He(Ee,Be){var Je=(0,pt.Z)(Ee)==="object"?Ee:{},ut=Je.offsetHeader,Dt=ut===void 0?0:ut,Nt=Je.offsetSummary,Sn=Nt===void 0?0:Nt,Nn=Je.offsetScroll,An=Nn===void 0?0:Nn,nr=Je.getContainer,br=nr===void 0?function(){return Re}:nr,pn=br()||Re;return ue.useMemo(function(){var Hr=!!Ee;return{isSticky:Hr,stickyClassName:Hr?"".concat(Be,"-sticky-holder"):"",offsetHeader:Dt,offsetSummary:Sn,offsetScroll:An,container:pn}},[An,Dt,Sn,Be,pn])}function Ye(Ee,Be,Je){var ut=(0,ue.useMemo)(function(){for(var Dt=[],Nt=[],Sn=0,Nn=0,An=0;An<Be;An+=1)if(Je==="rtl"){Nt[An]=Nn,Nn+=Ee[An]||0;var nr=Be-An-1;Dt[nr]=Sn,Sn+=Ee[nr]||0}else{Dt[An]=Sn,Sn+=Ee[An]||0;var br=Be-An-1;Nt[br]=Nn,Nn+=Ee[br]||0}return{left:Dt,right:Nt}},[Ee,Be,Je]);return ut}var Ve=Ye;function $e(Ee){var Be=Ee.className,Je=Ee.children;return ue.createElement("div",{className:Be},Je)}var tt=$e;function Wt(Ee,Be,Je,ut){var Dt=we.unstable_batchedUpdates?function(Sn){we.unstable_batchedUpdates(Je,Sn)}:Je;return Ee!=null&&Ee.addEventListener&&Ee.addEventListener(Be,Dt,ut),{remove:function(){Ee!=null&&Ee.removeEventListener&&Ee.removeEventListener(Be,Dt,ut)}}}var on=/margin|padding|width|height|max|min|offset/,Zn={left:!0,top:!0},tr={cssFloat:1,styleFloat:1,float:1};function Vn(Ee){return Ee.nodeType===1?Ee.ownerDocument.defaultView.getComputedStyle(Ee,null):{}}function Mn(Ee,Be,Je){if(Be=Be.toLowerCase(),Je==="auto"){if(Be==="height")return Ee.offsetHeight;if(Be==="width")return Ee.offsetWidth}return Be in Zn||(Zn[Be]=on.test(Be)),Zn[Be]?parseFloat(Je)||0:Je}function En(Ee,Be){var Je=arguments.length,ut=Vn(Ee);return Be=tr[Be]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":Be,Je===1?ut:Mn(Ee,Be,ut[Be]||Ee.style[Be])}function dn(Ee,Be,Je){var ut=arguments.length;if(Be=tr[Be]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":Be,ut===3)return typeof Je=="number"&&on.test(Be)&&(Je="".concat(Je,"px")),Ee.style[Be]=Je,Je;for(var Dt in Be)Be.hasOwnProperty(Dt)&&dn(Ee,Dt,Be[Dt]);return Vn(Ee)}function Gn(Ee){return Ee===document.body?document.documentElement.clientWidth:Ee.offsetWidth}function xr(Ee){return Ee===document.body?window.innerHeight||document.documentElement.clientHeight:Ee.offsetHeight}function ar(){var Ee=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Be=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ee,height:Be}}function ur(){var Ee=document.documentElement.clientWidth,Be=window.innerHeight||document.documentElement.clientHeight;return{width:Ee,height:Be}}function mr(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function Sr(Ee){var Be=Ee.getBoundingClientRect(),Je=document.documentElement;return{left:Be.left+(window.pageXOffset||Je.scrollLeft)-(Je.clientLeft||document.body.clientLeft||0),top:Be.top+(window.pageYOffset||Je.scrollTop)-(Je.clientTop||document.body.clientTop||0)}}var Tr=function(Be,Je){var ut,Dt,Nt=Be.scrollBodyRef,Sn=Be.onScroll,Nn=Be.offsetScroll,An=Be.container,nr=Ie(Se,"prefixCls"),br=((ut=Nt.current)===null||ut===void 0?void 0:ut.scrollWidth)||0,pn=((Dt=Nt.current)===null||Dt===void 0?void 0:Dt.clientWidth)||0,Hr=br&&pn*(pn/br),Ur=ue.useRef(),Gr=Dn({scrollLeft:0,isHiddenScrollBar:!1}),ii=(0,Oe.Z)(Gr,2),Jr=ii[0],mi=ii[1],ui=ue.useRef({delta:0,x:0}),Ci=ue.useState(!1),ea=(0,Oe.Z)(Ci,2),ji=ea[0],$i=ea[1],Ea=function(){$i(!1)},Ua=function(Xi){Xi.persist(),ui.current.delta=Xi.pageX-Jr.scrollLeft,ui.current.x=0,$i(!0),Xi.preventDefault()},Fi=function(Xi){var Ma,qa=Xi||((Ma=window)===null||Ma===void 0?void 0:Ma.event),Ka=qa.buttons;if(!ji||Ka===0){ji&&$i(!1);return}var Aa=ui.current.x+Xi.pageX-ui.current.x-ui.current.delta;Aa<=0&&(Aa=0),Aa+Hr>=pn&&(Aa=pn-Hr),Sn({scrollLeft:Aa/pn*(br+2)}),ui.current.x=Xi.pageX},Ui=function(){if(Nt.current){var Xi=Sr(Nt.current).top,Ma=Xi+Nt.current.offsetHeight,qa=An===window?document.documentElement.scrollTop+window.innerHeight:Sr(An).top+An.clientHeight;Ma-lt()<=qa||Xi>=qa-Nn?mi(function(Ka){return(0,ft.Z)((0,ft.Z)({},Ka),{},{isHiddenScrollBar:!0})}):mi(function(Ka){return(0,ft.Z)((0,ft.Z)({},Ka),{},{isHiddenScrollBar:!1})})}},Ki=function(Xi){mi(function(Ma){return(0,ft.Z)((0,ft.Z)({},Ma),{},{scrollLeft:Xi/br*pn||0})})};return ue.useImperativeHandle(Je,function(){return{setScrollLeft:Ki}}),ue.useEffect(function(){var gi=Wt(document.body,"mouseup",Ea,!1),Xi=Wt(document.body,"mousemove",Fi,!1);return Ui(),function(){gi.remove(),Xi.remove()}},[Hr,ji]),ue.useEffect(function(){var gi=Wt(An,"scroll",Ui,!1),Xi=Wt(window,"resize",Ui,!1);return function(){gi.remove(),Xi.remove()}},[An]),ue.useEffect(function(){Jr.isHiddenScrollBar||mi(function(gi){var Xi=Nt.current;return Xi?(0,ft.Z)((0,ft.Z)({},gi),{},{scrollLeft:Xi.scrollLeft/Xi.scrollWidth*Xi.clientWidth}):gi})},[Jr.isHiddenScrollBar]),br<=pn||!Hr||Jr.isHiddenScrollBar?null:ue.createElement("div",{style:{height:lt(),width:pn,bottom:Nn},className:"".concat(nr,"-sticky-scroll")},ue.createElement("div",{onMouseDown:Ua,ref:Ur,className:bt()("".concat(nr,"-sticky-scroll-bar"),(0,Ne.Z)({},"".concat(nr,"-sticky-scroll-bar-active"),ji)),style:{width:"".concat(Hr,"px"),transform:"translate3d(".concat(Jr.scrollLeft,"px, 0, 0)")}}))},je=ue.forwardRef(Tr);function Qe(Ee){return null}var Rt=Qe;function kt(Ee){return null}var vn=kt,jn="rc-table",vt=[],wt={};function Ct(){return"No Data"}function Ft(Ee){var Be,Je=(0,ft.Z)({rowKey:"key",prefixCls:jn,emptyText:Ct},Ee),ut=Je.prefixCls,Dt=Je.className,Nt=Je.rowClassName,Sn=Je.style,Nn=Je.data,An=Je.rowKey,nr=Je.scroll,br=Je.tableLayout,pn=Je.direction,Hr=Je.title,Ur=Je.footer,Gr=Je.summary,ii=Je.caption,Jr=Je.id,mi=Je.showHeader,ui=Je.components,Ci=Je.emptyText,ea=Je.onRow,ji=Je.onHeaderRow,$i=Je.internalHooks,Ea=Je.transformColumns,Ua=Je.internalRefs,Fi=Je.tailor,Ui=Je.sticky,Ki=Nn||vt,gi=!!Ki.length,Xi=$i===Le,Ma=ue.useCallback(function(Fo,as){return ir(ui,Fo)||as},[ui]),qa=ue.useMemo(function(){return typeof An=="function"?An:function(Fo){var as=Fo&&Fo[An];return as}},[An]),Ka=Ma(["body"]),Aa=ge(),ao=(0,Oe.Z)(Aa,3),eo=ao[0],_o=ao[1],so=ao[2],es=oi(Je,Ki,qa),ts=(0,Oe.Z)(es,6),Va=ts[0],Ls=ts[1],Io=ts[2],Zo=ts[3],Ro=ts[4],Wa=ts[5],Ii=nr==null?void 0:nr.x,ha=ue.useState(0),ka=(0,Oe.Z)(ha,2),Vi=ka[0],To=ka[1],Di=Si((0,ft.Z)((0,ft.Z)((0,ft.Z)({},Je),Va),{},{expandable:!!Va.expandedRowRender,columnTitle:Va.columnTitle,expandedKeys:Io,getRowKey:qa,onTriggerExpand:Wa,expandIcon:Zo,expandIconColumnIndex:Va.expandIconColumnIndex,direction:pn,scrollWidth:Xi&&Fi&&typeof Ii=="number"?Ii:null}),Xi?Ea:null),ja=(0,Oe.Z)(Di,3),Do=ja[0],wo=ja[1],ol=ja[2],Ds=ol!=null?ol:Ii,El=ue.useMemo(function(){return{columns:Do,flattenColumns:wo}},[Do,wo]),ei=ue.useRef(),Kl=ue.useRef(),Cs=ue.useRef(),fl=ue.useRef(),yl=ue.useRef(),Bo=ue.useState(!1),Po=(0,Oe.Z)(Bo,2),ns=Po[0],$a=Po[1],Rs=ue.useState(!1),lo=(0,Oe.Z)(Rs,2),Bs=lo[0],Ws=lo[1],Zs=Dn(new Map),Ml=(0,Oe.Z)(Zs,2),Es=Ml[0],Al=Ml[1],Ms=Cn(wo),js=Ms.map(function(Fo){return Es.get(Fo)}),Us=ue.useMemo(function(){return js},[js.join("_")]),As=Ve(Us,wo.length,pn),ms=nr&&Pe(nr.y),ls=nr&&Pe(Ds)||!!Va.fixed,Xl=ls&&wo.some(function(Fo){var as=Fo.fixed;return as}),Cc=ue.useRef(),hs=He(Ui,ut),sl=hs.isSticky,Tu=hs.offsetHeader,Ec=hs.offsetSummary,yo=hs.offsetScroll,ya=hs.stickyClassName,Ns=hs.container,jo=ue.useMemo(function(){return Gr==null?void 0:Gr(Ki)},[Gr,Ki]),Vs=(ms||sl)&&ue.isValidElement(jo)&&jo.type===ln&&jo.props.fixed,Nr,kl,lc;ms&&(kl={overflowY:"scroll",maxHeight:nr.y}),ls&&(Nr={overflowX:"auto"},ms||(kl={overflowY:"hidden"}),lc={width:Ds===!0?"auto":Ds,minWidth:"100%"});var Ou=ue.useCallback(function(Fo,as){gr(ei.current)&&Al(function(Nl){if(Nl.get(Fo)!==as){var gc=new Map(Nl);return gc.set(Fo,as),gc}return Nl})},[]),id=Xn(null),cc=(0,Oe.Z)(id,2),hu=cc[0],Dd=cc[1];function Gs(Fo,as){as&&(typeof as=="function"?as(Fo):as.scrollLeft!==Fo&&(as.scrollLeft=Fo,as.scrollLeft!==Fo&&setTimeout(function(){as.scrollLeft=Fo},0)))}var Zl=Yt(function(Fo){var as=Fo.currentTarget,Nl=Fo.scrollLeft,gc=pn==="rtl",zo=typeof Nl=="number"?Nl:as.scrollLeft,ld=as||wt;if(!Dd()||Dd()===ld){var cd;hu(ld),Gs(zo,Kl.current),Gs(zo,Cs.current),Gs(zo,yl.current),Gs(zo,(cd=Cc.current)===null||cd===void 0?void 0:cd.setScrollLeft)}var Ac=as||Kl.current;if(Ac){var ud=Ac.scrollWidth,Yc=Ac.clientWidth;if(ud===Yc){$a(!1),Ws(!1);return}gc?($a(-zo<ud-Yc),Ws(-zo>0)):($a(zo>0),Ws(zo<ud-Yc))}}),pu=function(){ls&&Cs.current?Zl({currentTarget:Cs.current}):($a(!1),Ws(!1))},Nu=function(as){var Nl=as.width;Nl!==Vi&&(pu(),To(ei.current?ei.current.offsetWidth:Nl))},Bd=ue.useRef(!1);ue.useEffect(function(){Bd.current&&pu()},[ls,Nn,Do.length]),ue.useEffect(function(){Bd.current=!0},[]);var Id=ue.useState(0),Pu=(0,Oe.Z)(Id,2),mu=Pu[0],Gc=Pu[1],bl=ue.useState(!0),pc=(0,Oe.Z)(bl,2),ad=pc[0],od=pc[1];ue.useEffect(function(){(!Fi||!Xi)&&(Cs.current instanceof Element?Gc(mn(Cs.current).width):Gc(mn(fl.current).width)),od(Xt("position","sticky"))},[]),ue.useEffect(function(){Xi&&Ua&&(Ua.body.current=Cs.current)});var Mc=ue.useCallback(function(Fo){return ue.createElement(ue.Fragment,null,ue.createElement(za,Fo),Vs==="top"&&ue.createElement(lr,Fo,jo))},[Vs,jo]),Td=ue.useCallback(function(Fo){return ue.createElement(lr,Fo,jo)},[jo]),gu=Ma(["table"],"table"),Ru=ue.useMemo(function(){return br||(Xl?Ds==="max-content"?"auto":"fixed":ms||sl||wo.some(function(Fo){var as=Fo.ellipsis;return as})?"fixed":"auto")},[ms,Xl,wo,br,sl]),sd,Fu={colWidths:Us,columCount:wo.length,stickyOffsets:As,onHeaderRow:ji,fixHeader:ms,scroll:nr},Ga=ue.useMemo(function(){return gi?null:typeof Ci=="function"?Ci():Ci},[gi,Ci]),Od=ue.createElement(Xr,{data:Ki,measureColumnWidth:ms||ls||sl}),zu=ue.createElement(na,{colWidths:wo.map(function(Fo){var as=Fo.width;return as}),columns:wo}),Ql=ii!=null?ue.createElement("caption",{className:"".concat(ut,"-caption")},ii):void 0,ac=Pr(Je,{data:!0}),mc=Pr(Je,{aria:!0});if(ms||sl){var vu;typeof Ka=="function"?(vu=Ka(Ki,{scrollbarSize:mu,ref:Cs,onScroll:Zl}),Fu.colWidths=wo.map(function(Fo,as){var Nl=Fo.width,gc=as===wo.length-1?Nl-mu:Nl;return typeof gc=="number"&&!Number.isNaN(gc)?gc:0})):vu=ue.createElement("div",{style:(0,ft.Z)((0,ft.Z)({},Nr),kl),onScroll:Zl,ref:Cs,className:bt()("".concat(ut,"-body"))},ue.createElement(gu,(0,ct.Z)({style:(0,ft.Z)((0,ft.Z)({},lc),{},{tableLayout:Ru})},mc),Ql,zu,Od,!Vs&&jo&&ue.createElement(lr,{stickyOffsets:As,flattenColumns:wo,columns:Do},jo)));var Ku=(0,ft.Z)((0,ft.Z)((0,ft.Z)({noData:!Ki.length,maxContentScroll:ls&&Ds==="max-content"},Fu),El),{},{direction:pn,stickyClassName:ya,onScroll:Zl});sd=ue.createElement(ue.Fragment,null,mi!==!1&&ue.createElement(Ba,(0,ct.Z)({},Ku,{stickyTopOffset:Tu,className:"".concat(ut,"-header"),ref:Kl}),Mc),vu,Vs&&Vs!=="top"&&ue.createElement(Ba,(0,ct.Z)({},Ku,{stickyBottomOffset:Ec,className:"".concat(ut,"-summary"),ref:yl}),Td),sl&&ue.createElement(je,{ref:Cc,offsetScroll:yo,scrollBodyRef:Cs,onScroll:Zl,container:Ns}))}else sd=ue.createElement("div",{style:(0,ft.Z)((0,ft.Z)({},Nr),kl),className:bt()("".concat(ut,"-content")),onScroll:Zl,ref:Cs},ue.createElement(gu,(0,ct.Z)({style:(0,ft.Z)((0,ft.Z)({},lc),{},{tableLayout:Ru})},mc),Ql,zu,mi!==!1&&ue.createElement(za,(0,ct.Z)({},Fu,El)),Od,jo&&ue.createElement(lr,{stickyOffsets:As,flattenColumns:wo,columns:Do},jo)));var yu=ue.createElement("div",(0,ct.Z)({className:bt()(ut,Dt,(Be={},(0,Ne.Z)(Be,"".concat(ut,"-rtl"),pn==="rtl"),(0,Ne.Z)(Be,"".concat(ut,"-ping-left"),ns),(0,Ne.Z)(Be,"".concat(ut,"-ping-right"),Bs),(0,Ne.Z)(Be,"".concat(ut,"-layout-fixed"),br==="fixed"),(0,Ne.Z)(Be,"".concat(ut,"-fixed-header"),ms),(0,Ne.Z)(Be,"".concat(ut,"-fixed-column"),Xl),(0,Ne.Z)(Be,"".concat(ut,"-scroll-horizontal"),ls),(0,Ne.Z)(Be,"".concat(ut,"-has-fix-left"),wo[0]&&wo[0].fixed),(0,Ne.Z)(Be,"".concat(ut,"-has-fix-right"),wo[wo.length-1]&&wo[wo.length-1].fixed==="right"),Be)),style:Sn,id:Jr,ref:ei},ac),Hr&&ue.createElement(tt,{className:"".concat(ut,"-title")},Hr(Ki)),ue.createElement("div",{ref:fl,className:"".concat(ut,"-container")},sd),Ur&&ue.createElement(tt,{className:"".concat(ut,"-footer")},Ur(Ki)));ls&&(yu=ue.createElement(Rr.Z,{onResize:Nu},yu));var zc=hn(wo,As,pn,Do),Nd=ue.useMemo(function(){return{scrollX:Ds,prefixCls:ut,getComponent:Ma,scrollbarSize:mu,direction:pn,fixedInfoList:zc,isSticky:sl,supportSticky:ad,componentWidth:Vi,fixHeader:ms,fixColumn:Xl,horizonScroll:ls,tableLayout:Ru,rowClassName:Nt,expandedRowClassName:Va.expandedRowClassName,expandIcon:Zo,expandableType:Ls,expandRowByClick:Va.expandRowByClick,expandedRowRender:Va.expandedRowRender,onTriggerExpand:Wa,expandIconColumnIndex:Va.expandIconColumnIndex,indentSize:Va.indentSize,allColumnsFixedLeft:wo.every(function(Fo){return Fo.fixed==="left"}),emptyNode:Ga,columns:Do,flattenColumns:wo,onColumnResize:Ou,hoverStartRow:eo,hoverEndRow:_o,onHover:so,rowExpandable:Va.rowExpandable,onRow:ea,getRowKey:qa,expandedKeys:Io,childrenColumnName:Ro}},[Ds,ut,Ma,mu,pn,zc,sl,ad,Vi,ms,Xl,ls,Ru,Nt,Va.expandedRowClassName,Zo,Ls,Va.expandRowByClick,Va.expandedRowRender,Wa,Va.expandIconColumnIndex,Va.indentSize,Ga,Do,wo,Ou,eo,_o,so,Va.rowExpandable,ea,qa,Io,Ro]);return ue.createElement(Se.Provider,{value:Nd},yu)}function Ln(Ee){return Lt(Ft,Ee)}var Yn=Ln();Yn.EXPAND_COLUMN=ie,Yn.INTERNAL_HOOKS=Le,Yn.Column=Rt,Yn.ColumnGroup=vn,Yn.Summary=xt;var wn=Yn,_n=re(73299),wr=me(null),Wr=me(null);function Lr(Ee,Be,Je){var ut=Be||1;return Je[Ee+ut]-(Je[Ee]||0)}function dr(Ee){var Be=Ee.rowInfo,Je=Ee.column,ut=Ee.colIndex,Dt=Ee.indent,Nt=Ee.index,Sn=Ee.renderIndex,Nn=Ee.record,An=Ee.style,nr=Ee.className,br=Ee.inverse,pn=Ee.getHeight,Hr=Je.render,Ur=Je.dataIndex,Gr=Je.className,ii=Je.width,Jr=Ie(Wr,["columnsOffset"]),mi=Jr.columnsOffset,ui=er(Be,Je,ut,Dt,Nt),Ci=ui.key,ea=ui.fixedInfo,ji=ui.appendCellNode,$i=ui.additionalCellProps,Ea=$i.style,Ua=$i.colSpan,Fi=Ua===void 0?1:Ua,Ui=$i.rowSpan,Ki=Ui===void 0?1:Ui,gi=ut-1,Xi=Lr(gi,Fi,mi),Ma=Fi>1?ii-Xi:0,qa=(0,ft.Z)((0,ft.Z)((0,ft.Z)({},Ea),An),{},{flex:"0 0 ".concat(Xi,"px"),width:"".concat(Xi,"px"),marginRight:Ma,pointerEvents:"auto"}),Ka=ue.useMemo(function(){return br?Ki<=1:Fi===0||Ki===0||Ki>1},[Ki,Fi,br]);Ka?qa.visibility="hidden":br&&(qa.height=pn==null?void 0:pn(Ki));var Aa=Ka?function(){return null}:Hr,ao={};return(Ki===0||Fi===0)&&(ao.rowSpan=1,ao.colSpan=1),ue.createElement(ot,(0,ct.Z)({className:bt()(Gr,nr),ellipsis:Je.ellipsis,align:Je.align,scope:Je.rowScope,component:"div",prefixCls:Be.prefixCls,key:Ci,record:Nn,index:Nt,renderIndex:Sn,dataIndex:Ur,render:Aa,shouldCellUpdate:Je.shouldCellUpdate},ea,{appendNode:ji,additionalProps:(0,ft.Z)((0,ft.Z)({},$i),{},{style:qa},ao)}))}var Or=dr,jr=["data","index","className","rowKey","style","extra","getHeight"],ti=ue.forwardRef(function(Ee,Be){var Je=Ee.data,ut=Ee.index,Dt=Ee.className,Nt=Ee.rowKey,Sn=Ee.style,Nn=Ee.extra,An=Ee.getHeight,nr=(0,un.Z)(Ee,jr),br=Je.record,pn=Je.indent,Hr=Je.index,Ur=Ie(Se,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Gr=Ur.scrollX,ii=Ur.flattenColumns,Jr=Ur.prefixCls,mi=Ur.fixColumn,ui=Ur.componentWidth,Ci=Jt(br,Nt,ut,pn),ea=Ci.rowSupportExpand,ji=Ci.expanded,$i=Ci.rowProps,Ea=Ci.expandedRowRender,Ua=Ci.expandedRowClassName,Fi;if(ea&&ji){var Ui=Ea(br,ut,pn+1,ji),Ki=Ua==null?void 0:Ua(br,ut,pn),gi={};mi&&(gi={style:(0,Ne.Z)({},"--virtual-width","".concat(ui,"px"))});var Xi="".concat(Jr,"-expanded-row-cell");Fi=ue.createElement("div",{className:bt()("".concat(Jr,"-expanded-row"),"".concat(Jr,"-expanded-row-level-").concat(pn+1),Ki)},ue.createElement(ot,{component:"div",prefixCls:Jr,className:bt()(Xi,(0,Ne.Z)({},"".concat(Xi,"-fixed"),mi)),additionalProps:gi},Ui))}var Ma=(0,ft.Z)((0,ft.Z)({},Sn),{},{width:Gr});Nn&&(Ma.position="absolute",Ma.pointerEvents="none");var qa=ue.createElement("div",(0,ct.Z)({},$i,nr,{ref:ea?null:Be,className:bt()(Dt,"".concat(Jr,"-row"),$i==null?void 0:$i.className,(0,Ne.Z)({},"".concat(Jr,"-row-extra"),Nn)),style:(0,ft.Z)((0,ft.Z)({},Ma),$i==null?void 0:$i.style)}),ii.map(function(Ka,Aa){return ue.createElement(Or,{key:Aa,rowInfo:Ci,column:Ka,colIndex:Aa,indent:pn,index:ut,renderIndex:Hr,record:br,inverse:Nn,getHeight:An})}));return ea?ue.createElement("div",{ref:Be},qa,Fi):qa}),Zr=qe(ti),Mr=Zr,li=ue.forwardRef(function(Ee,Be){var Je=Ee.data,ut=Ee.onScroll,Dt=Ie(Se,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Nt=Dt.flattenColumns,Sn=Dt.onColumnResize,Nn=Dt.getRowKey,An=Dt.expandedKeys,nr=Dt.prefixCls,br=Dt.childrenColumnName,pn=Dt.emptyNode,Hr=Dt.scrollX,Ur=Ie(wr),Gr=Ur.scrollY,ii=Ur.listItemHeight,Jr=ue.useRef(),mi=Qr(Je,br,An,Nn),ui=ue.useMemo(function(){var Fi=0;return Nt.map(function(Ui){var Ki=Ui.width,gi=Ui.key;return Fi+=Ki,[gi,Ki,Fi]})},[Nt]),Ci=ue.useMemo(function(){return ui.map(function(Fi){return Fi[2]})},[ui]);ue.useEffect(function(){ui.forEach(function(Fi){var Ui=(0,Oe.Z)(Fi,2),Ki=Ui[0],gi=Ui[1];Sn(Ki,gi)})},[ui]),ue.useImperativeHandle(Be,function(){var Fi={};return Object.defineProperty(Fi,"scrollLeft",{get:function(){var Ki;return((Ki=Jr.current)===null||Ki===void 0?void 0:Ki.getScrollInfo().x)||0},set:function(Ki){var gi;(gi=Jr.current)===null||gi===void 0||gi.scrollTo({left:Ki})}}),Fi});var ea=function(Ui,Ki){var gi,Xi=(gi=mi[Ki])===null||gi===void 0?void 0:gi.record,Ma=Ui.onCell;if(Ma){var qa,Ka=Ma(Xi,Ki);return(qa=Ka==null?void 0:Ka.rowSpan)!==null&&qa!==void 0?qa:1}return 1},ji=function(Ui){var Ki=Ui.start,gi=Ui.end,Xi=Ui.getSize,Ma=Ui.offsetY;if(gi<0)return null;for(var qa=Nt.filter(function(Ii){return ea(Ii,Ki)===0}),Ka=Ki,Aa=function(ha){if(qa=qa.filter(function(ka){return ea(ka,ha)===0}),!qa.length)return Ka=ha,"break"},ao=Ki;ao>=0;ao-=1){var eo=Aa(ao);if(eo==="break")break}for(var _o=Nt.filter(function(Ii){return ea(Ii,gi)!==1}),so=gi,es=function(ha){if(_o=_o.filter(function(ka){return ea(ka,ha)!==1}),!_o.length)return so=Math.max(ha-1,gi),"break"},ts=gi;ts<mi.length;ts+=1){var Va=es(ts);if(Va==="break")break}for(var Ls=[],Io=function(ha){var ka=mi[ha];if(!ka)return"continue";Nt.some(function(Vi){return ea(Vi,ha)>1})&&Ls.push(ha)},Zo=Ka;Zo<=so;Zo+=1)var Ro=Io(Zo);var Wa=Ls.map(function(Ii){var ha=mi[Ii],ka=Nn(ha.record,Ii),Vi=function(ja){var Do=Ii+ja-1,wo=Nn(mi[Do].record,Do),ol=Xi(ka,wo);return ol.bottom-ol.top},To=Xi(ka);return ue.createElement(Mr,{key:Ii,data:ha,rowKey:ka,index:Ii,style:{top:-Ma+To.top},extra:!0,getHeight:Vi})});return Wa},$i=ue.useMemo(function(){return{columnsOffset:Ci}},[Ci]),Ea="".concat(nr,"-tbody"),Ua;return mi.length?Ua=ue.createElement(_n.Z,{fullHeight:!1,ref:Jr,className:bt()(Ea,"".concat(Ea,"-virtual")),height:Gr,itemHeight:ii||24,data:mi,itemKey:function(Ui){return Nn(Ui.record)},scrollWidth:Hr,onVirtualScroll:function(Ui){var Ki=Ui.x;ut({scrollLeft:Ki})},extraRender:ji},function(Fi,Ui,Ki){var gi=Nn(Fi.record,Ui);return ue.createElement(Mr,(0,ct.Z)({data:Fi,rowKey:gi,index:Ui},Ki))}):Ua=ue.createElement("div",{className:bt()("".concat(nr,"-placeholder"))},ue.createElement(ot,{component:"div",prefixCls:nr},pn)),ue.createElement(Wr.Provider,{value:$i},Ua)}),si=qe(li),Yi=si,qi=function(Be,Je){var ut=Je.ref,Dt=Je.onScroll;return ue.createElement(Yi,{ref:ut,data:Be,onScroll:Dt})},ia=100;function _i(Ee){var Be=Ee.columns,Je=Ee.scroll,ut=Ee.prefixCls,Dt=ut===void 0?jn:ut,Nt=Ee.className,Sn=Ee.listItemHeight,Nn=Je||{},An=Nn.x,nr=Nn.y;typeof An!="number"&&(An=((Be||[]).length+1)*ia),typeof nr!="number"&&(nr=500);var br=ue.useMemo(function(){return{scrollY:nr,listItemHeight:Sn}},[nr,Sn]);return ue.createElement(wr.Provider,{value:br},ue.createElement(wn,(0,ct.Z)({},Ee,{className:bt()(Nt,"".concat(Dt,"-virtual")),scroll:(0,ft.Z)((0,ft.Z)({},Je),{},{x:An}),components:{body:qi},columns:Be,internalHooks:Le,tailor:!0})))}function Wi(Ee){return Lt(_i,Ee)}var Li=Wi(),da=null;function Bi(Ee){return null}var fi=Bi;function Ji(Ee){return null}var va=Ji,oo=re(10366),Ja=re(58375),Za=re(53124),Ha=re(88258),Ia=re(98675),aa=re(25378),mo=re(24457),ba=re(28452),Zi=re(57953),Oa=re(29691);function no(Ee){return function(Je){let{prefixCls:ut,onExpand:Dt,record:Nt,expanded:Sn,expandable:Nn}=Je;const An=`${ut}-row-expand-icon`;return ue.createElement("button",{type:"button",onClick:nr=>{Dt(Nt,nr),nr.stopPropagation()},className:bt()(An,{[`${An}-spaced`]:!Nn,[`${An}-expanded`]:Nn&&Sn,[`${An}-collapsed`]:Nn&&!Sn}),"aria-label":Sn?Ee.collapse:Ee.expand,"aria-expanded":Sn})}}var Ra=no;function _a(Ee,Be){return"key"in Ee&&Ee.key!==void 0&&Ee.key!==null?Ee.key:Ee.dataIndex?Array.isArray(Ee.dataIndex)?Ee.dataIndex.join("."):Ee.dataIndex:Be}function oa(Ee,Be){return Be?`${Be}-${Ee}`:`${Ee}`}function ro(Ee,Be){return typeof Ee=="function"?Ee(Be):Ee}function bo(Ee,Be){const Je=ro(Ee,Be);return Object.prototype.toString.call(Je)==="[object Object]"?"":Je}var co={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},xo=co,Ao=re(84089),Xo=function(Be,Je){return ue.createElement(Ao.Z,(0,ct.Z)({},Be,{ref:Je,icon:xo}))},uo=ue.forwardRef(Xo),Co=re(7699),os=re(57838);function rs(Ee){const Be=ue.useRef(Ee),Je=(0,os.Z)();return[()=>Be.current,ut=>{Be.current=ut,Je()}]}var cs=re(71577),No=re(84567),So=re(85418),wa=re(32983),Na=re(68508),io=re(76529),go=re(78045),Uo=re(79870),us=re(72395),xs=re(69677);function Js(Ee){let{value:Be,onChange:Je,filterSearch:ut,tablePrefixCls:Dt,locale:Nt}=Ee;return ut?ue.createElement("div",{className:`${Dt}-filter-dropdown-search`},ue.createElement(xs.default,{prefix:ue.createElement(us.Z,null),placeholder:Nt.filterSearchPlaceholder,onChange:Je,value:Be,htmlSize:1,className:`${Dt}-filter-dropdown-search-input`})):null}var Ks=Js,ds=re(92389);const Hs=Ee=>{const{keyCode:Be}=Ee;Be===ds.Z.ENTER&&Ee.stopPropagation()};var Da=ue.forwardRef((Ee,Be)=>ue.createElement("div",{className:Ee.className,onClick:Je=>Je.stopPropagation(),onKeyDown:Hs,ref:Be},Ee.children));function po(Ee){let Be=[];return(Ee||[]).forEach(Je=>{let{value:ut,children:Dt}=Je;Be.push(ut),Dt&&(Be=[].concat((0,Ni.Z)(Be),(0,Ni.Z)(po(Dt))))}),Be}function ko(Ee){return Ee.some(Be=>{let{children:Je}=Be;return Je})}function fs(Ee,Be){return typeof Be=="string"||typeof Be=="number"?Be==null?void 0:Be.toString().toLowerCase().includes(Ee.trim().toLowerCase()):!1}function ss(Ee){let{filters:Be,prefixCls:Je,filteredKeys:ut,filterMultiple:Dt,searchValue:Nt,filterSearch:Sn}=Ee;return Be.map((Nn,An)=>{const nr=String(Nn.value);if(Nn.children)return{key:nr||An,label:Nn.text,popupClassName:`${Je}-dropdown-submenu`,children:ss({filters:Nn.children,prefixCls:Je,filteredKeys:ut,filterMultiple:Dt,searchValue:Nt,filterSearch:Sn})};const br=Dt?No.default:go.ZP,pn={key:Nn.value!==void 0?nr:An,label:ue.createElement(ue.Fragment,null,ue.createElement(br,{checked:ut.includes(nr)}),ue.createElement("span",null,Nn.text))};return Nt.trim()?typeof Sn=="function"?Sn(Nt,Nn)?pn:null:fs(Nt,Nn.text)?pn:null:pn})}function Fl(Ee){var Be,Je;const{tablePrefixCls:ut,prefixCls:Dt,column:Nt,dropdownPrefixCls:Sn,columnKey:Nn,filterMultiple:An,filterMode:nr="menu",filterSearch:br=!1,filterState:pn,triggerFilter:Hr,locale:Ur,children:Gr,getPopupContainer:ii}=Ee,{filterDropdownOpen:Jr,onFilterDropdownOpenChange:mi,filterResetToDefaultFilteredValue:ui,defaultFilteredValue:Ci,filterDropdownVisible:ea,onFilterDropdownVisibleChange:ji}=Nt,[$i,Ea]=ue.useState(!1),Ua=!!(pn&&(!((Be=pn.filteredKeys)===null||Be===void 0)&&Be.length||pn.forceFiltered)),Fi=Di=>{Ea(Di),mi==null||mi(Di),ji==null||ji(Di)},Ui=(Je=Jr!=null?Jr:ea)!==null&&Je!==void 0?Je:$i,Ki=pn==null?void 0:pn.filteredKeys,[gi,Xi]=rs(Ki||[]),Ma=Di=>{let{selectedKeys:ja}=Di;Xi(ja)},qa=(Di,ja)=>{let{node:Do,checked:wo}=ja;Ma(An?{selectedKeys:Di}:{selectedKeys:wo&&Do.key?[Do.key]:[]})};ue.useEffect(()=>{$i&&Ma({selectedKeys:Ki||[]})},[Ki]);const[Ka,Aa]=ue.useState([]),ao=Di=>{Aa(Di)},[eo,_o]=ue.useState(""),so=Di=>{const{value:ja}=Di.target;_o(ja)};ue.useEffect(()=>{$i||_o("")},[$i]);const es=Di=>{const ja=Di&&Di.length?Di:null;if(ja===null&&(!pn||!pn.filteredKeys)||(0,Co.Z)(ja,pn==null?void 0:pn.filteredKeys,!0))return null;Hr({column:Nt,key:Nn,filteredKeys:ja})},ts=()=>{Fi(!1),es(gi())},Va=function(){let{confirm:Di,closeDropdown:ja}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Di&&es([]),ja&&Fi(!1),_o(""),Xi(ui?(Ci||[]).map(Do=>String(Do)):[])},Ls=function(){let{closeDropdown:Di}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Di&&Fi(!1),es(gi())},Io=Di=>{Di&&Ki!==void 0&&Xi(Ki||[]),Fi(Di),!Di&&!Nt.filterDropdown&&ts()},Zo=bt()({[`${Sn}-menu-without-submenu`]:!ko(Nt.filters||[])}),Ro=Di=>{if(Di.target.checked){const ja=po(Nt==null?void 0:Nt.filters).map(Do=>String(Do));Xi(ja)}else Xi([])},Wa=Di=>{let{filters:ja}=Di;return(ja||[]).map((Do,wo)=>{const ol=String(Do.value),Ds={title:Do.text,key:Do.value!==void 0?ol:wo};return Do.children&&(Ds.children=Wa({filters:Do.children})),Ds})},Ii=Di=>{var ja;return Object.assign(Object.assign({},Di),{text:Di.title,value:Di.key,children:((ja=Di.children)===null||ja===void 0?void 0:ja.map(Do=>Ii(Do)))||[]})};let ha;if(typeof Nt.filterDropdown=="function")ha=Nt.filterDropdown({prefixCls:`${Sn}-custom`,setSelectedKeys:Di=>Ma({selectedKeys:Di}),selectedKeys:gi(),confirm:Ls,clearFilters:Va,filters:Nt.filters,visible:Ui,close:()=>{Fi(!1)}});else if(Nt.filterDropdown)ha=Nt.filterDropdown;else{const Di=gi()||[],ja=()=>(Nt.filters||[]).length===0?ue.createElement(wa.Z,{image:wa.Z.PRESENTED_IMAGE_SIMPLE,description:Ur.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):nr==="tree"?ue.createElement(ue.Fragment,null,ue.createElement(Ks,{filterSearch:br,value:eo,onChange:so,tablePrefixCls:ut,locale:Ur}),ue.createElement("div",{className:`${ut}-filter-dropdown-tree`},An?ue.createElement(No.default,{checked:Di.length===po(Nt.filters).length,indeterminate:Di.length>0&&Di.length<po(Nt.filters).length,className:`${ut}-filter-dropdown-checkall`,onChange:Ro},Ur.filterCheckall):null,ue.createElement(Uo.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:An,checkStrictly:!An,className:`${Sn}-menu`,onCheck:qa,checkedKeys:Di,selectedKeys:Di,showIcon:!1,treeData:Wa({filters:Nt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:eo.trim()?wo=>typeof br=="function"?br(eo,Ii(wo)):fs(eo,wo.title):void 0}))):ue.createElement(ue.Fragment,null,ue.createElement(Ks,{filterSearch:br,value:eo,onChange:so,tablePrefixCls:ut,locale:Ur}),ue.createElement(Na.default,{selectable:!0,multiple:An,prefixCls:`${Sn}-menu`,className:Zo,onSelect:Ma,onDeselect:Ma,selectedKeys:Di,getPopupContainer:ii,openKeys:Ka,onOpenChange:ao,items:ss({filters:Nt.filters||[],filterSearch:br,prefixCls:Dt,filteredKeys:gi(),filterMultiple:An,searchValue:eo})})),Do=()=>ui?(0,Co.Z)((Ci||[]).map(wo=>String(wo)),Di,!0):Di.length===0;ha=ue.createElement(ue.Fragment,null,ja(),ue.createElement("div",{className:`${Dt}-dropdown-btns`},ue.createElement(cs.ZP,{type:"link",size:"small",disabled:Do(),onClick:()=>Va()},Ur.filterReset),ue.createElement(cs.ZP,{type:"primary",size:"small",onClick:ts},Ur.filterConfirm)))}Nt.filterDropdown&&(ha=ue.createElement(io.J,{selectable:void 0},ha));const ka=()=>ue.createElement(Da,{className:`${Dt}-dropdown`},ha);let Vi;typeof Nt.filterIcon=="function"?Vi=Nt.filterIcon(Ua):Nt.filterIcon?Vi=Nt.filterIcon:Vi=ue.createElement(uo,null);const{direction:To}=ue.useContext(Za.E_);return ue.createElement("div",{className:`${Dt}-column`},ue.createElement("span",{className:`${ut}-column-title`},Gr),ue.createElement(So.Z,{dropdownRender:ka,trigger:["click"],open:Ui,onOpenChange:Io,getPopupContainer:ii,placement:To==="rtl"?"bottomLeft":"bottomRight"},ue.createElement("span",{role:"button",tabIndex:-1,className:bt()(`${Dt}-trigger`,{active:Ua}),onClick:Di=>{Di.stopPropagation()}},Vi)))}var ml=Fl;function Sl(Ee,Be,Je){let ut=[];return(Ee||[]).forEach((Dt,Nt)=>{var Sn;const Nn=oa(Nt,Je);if(Dt.filters||"filterDropdown"in Dt||"onFilter"in Dt)if("filteredValue"in Dt){let An=Dt.filteredValue;"filterDropdown"in Dt||(An=(Sn=An==null?void 0:An.map(String))!==null&&Sn!==void 0?Sn:An),ut.push({column:Dt,key:_a(Dt,Nn),filteredKeys:An,forceFiltered:Dt.filtered})}else ut.push({column:Dt,key:_a(Dt,Nn),filteredKeys:Be&&Dt.defaultFilteredValue?Dt.defaultFilteredValue:void 0,forceFiltered:Dt.filtered});"children"in Dt&&(ut=[].concat((0,Ni.Z)(ut),(0,Ni.Z)(Sl(Dt.children,Be,Nn))))}),ut}function Xa(Ee,Be,Je,ut,Dt,Nt,Sn,Nn){return Je.map((An,nr)=>{const br=oa(nr,Nn),{filterMultiple:pn=!0,filterMode:Hr,filterSearch:Ur}=An;let Gr=An;if(Gr.filters||Gr.filterDropdown){const ii=_a(Gr,br),Jr=ut.find(mi=>{let{key:ui}=mi;return ii===ui});Gr=Object.assign(Object.assign({},Gr),{title:mi=>ue.createElement(ml,{tablePrefixCls:Ee,prefixCls:`${Ee}-filter`,dropdownPrefixCls:Be,column:Gr,columnKey:ii,filterState:Jr,filterMultiple:pn,filterMode:Hr,filterSearch:Ur,triggerFilter:Nt,locale:Dt,getPopupContainer:Sn},ro(An.title,mi))})}return"children"in Gr&&(Gr=Object.assign(Object.assign({},Gr),{children:Xa(Ee,Be,Gr.children,ut,Dt,Nt,Sn,br)})),Gr})}function vi(Ee){const Be={};return Ee.forEach(Je=>{let{key:ut,filteredKeys:Dt,column:Nt}=Je;const{filters:Sn,filterDropdown:Nn}=Nt;if(Nn)Be[ut]=Dt||null;else if(Array.isArray(Dt)){const An=po(Sn);Be[ut]=An.filter(nr=>Dt.includes(String(nr)))}else Be[ut]=null}),Be}function pa(Ee,Be){return Be.reduce((Je,ut)=>{const{column:{onFilter:Dt,filters:Nt},filteredKeys:Sn}=ut;return Dt&&Sn&&Sn.length?Je.filter(Nn=>Sn.some(An=>{const nr=po(Nt),br=nr.findIndex(Hr=>String(Hr)===String(An)),pn=br!==-1?nr[br]:An;return Dt(pn,Nn)})):Je},Ee)}const ma=Ee=>Ee.flatMap(Be=>"children"in Be?[Be].concat((0,Ni.Z)(ma(Be.children||[]))):[Be]);function La(Ee){let{prefixCls:Be,dropdownPrefixCls:Je,mergedColumns:ut,onFilterChange:Dt,getPopupContainer:Nt,locale:Sn}=Ee;const Nn=ue.useMemo(()=>ma(ut||[]),[ut]),[An,nr]=ue.useState(()=>Sl(Nn,!0)),br=ue.useMemo(()=>{const Gr=Sl(Nn,!1);if(Gr.length===0)return Gr;let ii=!0,Jr=!0;if(Gr.forEach(mi=>{let{filteredKeys:ui}=mi;ui!==void 0?ii=!1:Jr=!1}),ii){const mi=(Nn||[]).map((ui,Ci)=>_a(ui,oa(Ci)));return An.filter(ui=>{let{key:Ci}=ui;return mi.includes(Ci)}).map(ui=>{const Ci=Nn[mi.findIndex(ea=>ea===ui.key)];return Object.assign(Object.assign({},ui),{column:Object.assign(Object.assign({},ui.column),Ci),forceFiltered:Ci.filtered})})}return Gr},[Nn,An]),pn=ue.useMemo(()=>vi(br),[br]),Hr=Gr=>{const ii=br.filter(Jr=>{let{key:mi}=Jr;return mi!==Gr.key});ii.push(Gr),nr(ii),Dt(vi(ii),ii)};return[Gr=>Xa(Be,Je,Gr,br,Sn,Hr,Nt),br,pn]}var Vo=La;function Qo(Ee,Be,Je){const ut=ue.useRef({});function Dt(Nt){if(!ut.current||ut.current.data!==Ee||ut.current.childrenColumnName!==Be||ut.current.getRowKey!==Je){let Nn=function(An){An.forEach((nr,br)=>{const pn=Je(nr,br);Sn.set(pn,nr),nr&&typeof nr=="object"&&Be in nr&&Nn(nr[Be]||[])})};const Sn=new Map;Nn(Ee),ut.current={data:Ee,childrenColumnName:Be,kvMap:Sn,getRowKey:Je}}return ut.current.kvMap.get(Nt)}return[Dt]}var rl=re(38780),ul=function(Ee,Be){var Je={};for(var ut in Ee)Object.prototype.hasOwnProperty.call(Ee,ut)&&Be.indexOf(ut)<0&&(Je[ut]=Ee[ut]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,ut=Object.getOwnPropertySymbols(Ee);Dt<ut.length;Dt++)Be.indexOf(ut[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,ut[Dt])&&(Je[ut[Dt]]=Ee[ut[Dt]]);return Je};const wl=10;function vo(Ee,Be){const Je={current:Ee.current,pageSize:Ee.pageSize};return Object.keys(Be&&typeof Be=="object"?Be:{}).forEach(Dt=>{const Nt=Ee[Dt];typeof Nt!="function"&&(Je[Dt]=Nt)}),Je}function $s(Ee,Be,Je){const ut=Je&&typeof Je=="object"?Je:{},{total:Dt=0}=ut,Nt=ul(ut,["total"]),[Sn,Nn]=(0,ue.useState)(()=>({current:"defaultCurrent"in Nt?Nt.defaultCurrent:1,pageSize:"defaultPageSize"in Nt?Nt.defaultPageSize:wl})),An=(0,rl.Z)(Sn,Nt,{total:Dt>0?Dt:Ee}),nr=Math.ceil((Dt||Ee)/An.pageSize);An.current>nr&&(An.current=nr||1);const br=(Hr,Ur)=>{Nn({current:Hr!=null?Hr:1,pageSize:Ur||An.pageSize})},pn=(Hr,Ur)=>{var Gr;Je&&((Gr=Je.onChange)===null||Gr===void 0||Gr.call(Je,Hr,Ur)),br(Hr,Ur),Be(Hr,Ur||(An==null?void 0:An.pageSize))};return Je===!1?[{},()=>{}]:[Object.assign(Object.assign({},An),{onChange:pn}),br]}var Ol=$s,Sc=re(42922),Gl=re(29873),Cl=re(97153),il=re(83898),ql=re(5663);const dl={},ec="SELECT_ALL",is="SELECT_INVERT",Eo="SELECT_NONE",qo=[],Ss=(Ee,Be)=>{let Je=[];return(Be||[]).forEach(ut=>{Je.push(ut),ut&&typeof ut=="object"&&Ee in ut&&(Je=[].concat((0,Ni.Z)(Je),(0,Ni.Z)(Ss(Ee,ut[Ee]))))}),Je};var al=(Ee,Be)=>{const{preserveSelectedRowKeys:Je,selectedRowKeys:ut,defaultSelectedRowKeys:Dt,getCheckboxProps:Nt,onChange:Sn,onSelect:Nn,onSelectAll:An,onSelectInvert:nr,onSelectNone:br,onSelectMultiple:pn,columnWidth:Hr,type:Ur,selections:Gr,fixed:ii,renderCell:Jr,hideSelectAll:mi,checkStrictly:ui=!0}=Be||{},{prefixCls:Ci,data:ea,pageData:ji,getRecordByKey:$i,getRowKey:Ea,expandType:Ua,childrenColumnName:Fi,locale:Ui,getPopupContainer:Ki}=Ee,[gi,Xi]=(0,ql.Z)(ut||Dt||qo,{value:ut}),Ma=ue.useRef(new Map),qa=(0,ue.useCallback)(Ii=>{if(Je){const ha=new Map;Ii.forEach(ka=>{let Vi=$i(ka);!Vi&&Ma.current.has(ka)&&(Vi=Ma.current.get(ka)),ha.set(ka,Vi)}),Ma.current=ha}},[$i,Je]);ue.useEffect(()=>{qa(gi)},[gi]);const{keyEntities:Ka}=(0,ue.useMemo)(()=>{if(ui)return{keyEntities:null};let Ii=ea;if(Je){const ha=new Set(ea.map((Vi,To)=>Ea(Vi,To))),ka=Array.from(Ma.current).reduce((Vi,To)=>{let[Di,ja]=To;return ha.has(Di)?Vi:Vi.concat(ja)},[]);Ii=[].concat((0,Ni.Z)(Ii),(0,Ni.Z)(ka))}return(0,il.I8)(Ii,{externalGetKey:Ea,childrenPropName:Fi})},[ea,Ea,ui,Fi,Je]),Aa=(0,ue.useMemo)(()=>Ss(Fi,ji),[Fi,ji]),ao=(0,ue.useMemo)(()=>{const Ii=new Map;return Aa.forEach((ha,ka)=>{const Vi=Ea(ha,ka),To=(Nt?Nt(ha):null)||{};Ii.set(Vi,To)}),Ii},[Aa,Ea,Nt]),eo=(0,ue.useCallback)(Ii=>{var ha;return!!(!((ha=ao.get(Ea(Ii)))===null||ha===void 0)&&ha.disabled)},[ao,Ea]),[_o,so]=(0,ue.useMemo)(()=>{if(ui)return[gi||[],[]];const{checkedKeys:Ii,halfCheckedKeys:ha}=(0,Cl.S)(gi,!0,Ka,eo);return[Ii||[],ha]},[gi,ui,Ka,eo]),es=(0,ue.useMemo)(()=>{const Ii=Ur==="radio"?_o.slice(0,1):_o;return new Set(Ii)},[_o,Ur]),ts=(0,ue.useMemo)(()=>Ur==="radio"?new Set:new Set(so),[so,Ur]),[Va,Ls]=(0,ue.useState)(null);ue.useEffect(()=>{Be||Xi(qo)},[!!Be]);const Io=(0,ue.useCallback)((Ii,ha)=>{let ka,Vi;qa(Ii),Je?(ka=Ii,Vi=Ii.map(To=>Ma.current.get(To))):(ka=[],Vi=[],Ii.forEach(To=>{const Di=$i(To);Di!==void 0&&(ka.push(To),Vi.push(Di))})),Xi(ka),Sn==null||Sn(ka,Vi,{type:ha})},[Xi,$i,Sn,Je]),Zo=(0,ue.useCallback)((Ii,ha,ka,Vi)=>{if(Nn){const To=ka.map(Di=>$i(Di));Nn($i(Ii),ha,To,Vi)}Io(ka,"single")},[Nn,$i,Io]),Ro=(0,ue.useMemo)(()=>!Gr||mi?null:(Gr===!0?[ec,is,Eo]:Gr).map(ha=>ha===ec?{key:"all",text:Ui.selectionAll,onSelect(){Io(ea.map((ka,Vi)=>Ea(ka,Vi)).filter(ka=>{const Vi=ao.get(ka);return!(Vi!=null&&Vi.disabled)||es.has(ka)}),"all")}}:ha===is?{key:"invert",text:Ui.selectInvert,onSelect(){const ka=new Set(es);ji.forEach((To,Di)=>{const ja=Ea(To,Di),Do=ao.get(ja);Do!=null&&Do.disabled||(ka.has(ja)?ka.delete(ja):ka.add(ja))});const Vi=Array.from(ka);nr&&nr(Vi),Io(Vi,"invert")}}:ha===Eo?{key:"none",text:Ui.selectNone,onSelect(){br==null||br(),Io(Array.from(es).filter(ka=>{const Vi=ao.get(ka);return Vi==null?void 0:Vi.disabled}),"none")}}:ha).map(ha=>Object.assign(Object.assign({},ha),{onSelect:function(){for(var ka,Vi,To=arguments.length,Di=new Array(To),ja=0;ja<To;ja++)Di[ja]=arguments[ja];(Vi=ha.onSelect)===null||Vi===void 0||(ka=Vi).call.apply(ka,[ha].concat(Di)),Ls(null)}})),[Gr,es,ji,Ea,nr,Io]);return[(0,ue.useCallback)(Ii=>{var ha;if(!Be)return Ii.filter(Bo=>Bo!==dl);let ka=(0,Ni.Z)(Ii);const Vi=new Set(es),To=Aa.map(Ea).filter(Bo=>!ao.get(Bo).disabled),Di=To.every(Bo=>Vi.has(Bo)),ja=To.some(Bo=>Vi.has(Bo)),Do=()=>{const Bo=[];Di?To.forEach(ns=>{Vi.delete(ns),Bo.push(ns)}):To.forEach(ns=>{Vi.has(ns)||(Vi.add(ns),Bo.push(ns))});const Po=Array.from(Vi);An==null||An(!Di,Po.map(ns=>$i(ns)),Bo.map(ns=>$i(ns))),Io(Po,"all"),Ls(null)};let wo;if(Ur!=="radio"){let Bo;if(Ro){const lo={getPopupContainer:Ki,items:Ro.map((Bs,Ws)=>{const{key:Zs,text:Ml,onSelect:Es}=Bs;return{key:Zs!=null?Zs:Ws,onClick:()=>{Es==null||Es(To)},label:Ml}})};Bo=ue.createElement("div",{className:`${Ci}-selection-extra`},ue.createElement(So.Z,{menu:lo,getPopupContainer:Ki},ue.createElement("span",null,ue.createElement(Sc.Z,null))))}const Po=Aa.map((lo,Bs)=>{const Ws=Ea(lo,Bs),Zs=ao.get(Ws)||{};return Object.assign({checked:Vi.has(Ws)},Zs)}).filter(lo=>{let{disabled:Bs}=lo;return Bs}),ns=!!Po.length&&Po.length===Aa.length,$a=ns&&Po.every(lo=>{let{checked:Bs}=lo;return Bs}),Rs=ns&&Po.some(lo=>{let{checked:Bs}=lo;return Bs});wo=!mi&&ue.createElement("div",{className:`${Ci}-selection`},ue.createElement(No.default,{checked:ns?$a:!!Aa.length&&Di,indeterminate:ns?!$a&&Rs:!Di&&ja,onChange:Do,disabled:Aa.length===0||ns,"aria-label":Bo?"Custom selection":"Select all",skipGroup:!0}),Bo)}let ol;Ur==="radio"?ol=(Bo,Po,ns)=>{const $a=Ea(Po,ns),Rs=Vi.has($a);return{node:ue.createElement(go.ZP,Object.assign({},ao.get($a),{checked:Rs,onClick:lo=>lo.stopPropagation(),onChange:lo=>{Vi.has($a)||Zo($a,!0,[$a],lo.nativeEvent)}})),checked:Rs}}:ol=(Bo,Po,ns)=>{var $a;const Rs=Ea(Po,ns),lo=Vi.has(Rs),Bs=ts.has(Rs),Ws=ao.get(Rs);let Zs;return Ua==="nest"?Zs=Bs:Zs=($a=Ws==null?void 0:Ws.indeterminate)!==null&&$a!==void 0?$a:Bs,{node:ue.createElement(No.default,Object.assign({},Ws,{indeterminate:Zs,checked:lo,skipGroup:!0,onClick:Ml=>Ml.stopPropagation(),onChange:Ml=>{let{nativeEvent:Es}=Ml;const{shiftKey:Al}=Es;let Ms=-1,js=-1;if(Al&&ui){const Us=new Set([Va,Rs]);To.some((As,ms)=>{if(Us.has(As))if(Ms===-1)Ms=ms;else return js=ms,!0;return!1})}if(js!==-1&&Ms!==js&&ui){const Us=To.slice(Ms,js+1),As=[];lo?Us.forEach(ls=>{Vi.has(ls)&&(As.push(ls),Vi.delete(ls))}):Us.forEach(ls=>{Vi.has(ls)||(As.push(ls),Vi.add(ls))});const ms=Array.from(Vi);pn==null||pn(!lo,ms.map(ls=>$i(ls)),As.map(ls=>$i(ls))),Io(ms,"multiple")}else{const Us=_o;if(ui){const As=lo?(0,Gl._5)(Us,Rs):(0,Gl.L0)(Us,Rs);Zo(Rs,!lo,As,Es)}else{const As=(0,Cl.S)([].concat((0,Ni.Z)(Us),[Rs]),!0,Ka,eo),{checkedKeys:ms,halfCheckedKeys:ls}=As;let Xl=ms;if(lo){const Cc=new Set(ms);Cc.delete(Rs),Xl=(0,Cl.S)(Array.from(Cc),{checked:!1,halfCheckedKeys:ls},Ka,eo).checkedKeys}Zo(Rs,!lo,Xl,Es)}}Ls(lo?null:Rs)}})),checked:lo}};const Ds=(Bo,Po,ns)=>{const{node:$a,checked:Rs}=ol(Bo,Po,ns);return Jr?Jr(Rs,Po,ns,$a):$a};if(!ka.includes(dl))if(ka.findIndex(Bo=>{var Po;return((Po=Bo[Ai])===null||Po===void 0?void 0:Po.columnType)==="EXPAND_COLUMN"})===0){const[Bo,...Po]=ka;ka=[Bo,dl].concat((0,Ni.Z)(Po))}else ka=[dl].concat((0,Ni.Z)(ka));const El=ka.indexOf(dl);ka=ka.filter((Bo,Po)=>Bo!==dl||Po===El);const ei=ka[El-1],Kl=ka[El+1];let Cs=ii;Cs===void 0&&((Kl==null?void 0:Kl.fixed)!==void 0?Cs=Kl.fixed:(ei==null?void 0:ei.fixed)!==void 0&&(Cs=ei.fixed)),Cs&&ei&&((ha=ei[Ai])===null||ha===void 0?void 0:ha.columnType)==="EXPAND_COLUMN"&&ei.fixed===void 0&&(ei.fixed=Cs);const fl=bt()(`${Ci}-selection-col`,{[`${Ci}-selection-col-with-dropdown`]:Gr&&Ur==="checkbox"}),yl={fixed:Cs,width:Hr,className:`${Ci}-selection-column`,title:Be.columnTitle||wo,render:Ds,onCell:Be.onCell,[Ai]:{className:fl}};return ka.map(Bo=>Bo===dl?yl:Bo)},[Ea,Aa,Be,_o,es,ts,Hr,Ro,Ua,Va,ao,pn,Zo,eo]),es]},Os=re(33463),Hl=re(28575),Zc=re(83062);const fc="ascend",Tc="descend";function Oc(Ee){return typeof Ee.sorter=="object"&&typeof Ee.sorter.multiple=="number"?Ee.sorter.multiple:!1}function tc(Ee){return typeof Ee=="function"?Ee:Ee&&typeof Ee=="object"&&Ee.compare?Ee.compare:!1}function nc(Ee,Be){return Be?Ee[Ee.indexOf(Be)+1]:Ee[0]}function Nc(Ee,Be,Je){let ut=[];function Dt(Nt,Sn){ut.push({column:Nt,key:_a(Nt,Sn),multiplePriority:Oc(Nt),sortOrder:Nt.sortOrder})}return(Ee||[]).forEach((Nt,Sn)=>{const Nn=oa(Sn,Je);Nt.children?("sortOrder"in Nt&&Dt(Nt,Nn),ut=[].concat((0,Ni.Z)(ut),(0,Ni.Z)(Nc(Nt.children,Be,Nn)))):Nt.sorter&&("sortOrder"in Nt?Dt(Nt,Nn):Be&&Nt.defaultSortOrder&&ut.push({column:Nt,key:_a(Nt,Nn),multiplePriority:Oc(Nt),sortOrder:Nt.defaultSortOrder}))}),ut}function Pc(Ee,Be,Je,ut,Dt,Nt,Sn,Nn){return(Be||[]).map((An,nr)=>{const br=oa(nr,Nn);let pn=An;if(pn.sorter){const Hr=pn.sortDirections||Dt,Ur=pn.showSorterTooltip===void 0?Sn:pn.showSorterTooltip,Gr=_a(pn,br),ii=Je.find(Ua=>{let{key:Fi}=Ua;return Fi===Gr}),Jr=ii?ii.sortOrder:null,mi=nc(Hr,Jr);let ui;if(An.sortIcon)ui=An.sortIcon({sortOrder:Jr});else{const Ua=Hr.includes(fc)&&ue.createElement(Hl.Z,{className:bt()(`${Ee}-column-sorter-up`,{active:Jr===fc})}),Fi=Hr.includes(Tc)&&ue.createElement(Os.Z,{className:bt()(`${Ee}-column-sorter-down`,{active:Jr===Tc})});ui=ue.createElement("span",{className:bt()(`${Ee}-column-sorter`,{[`${Ee}-column-sorter-full`]:!!(Ua&&Fi)})},ue.createElement("span",{className:`${Ee}-column-sorter-inner`,"aria-hidden":"true"},Ua,Fi))}const{cancelSort:Ci,triggerAsc:ea,triggerDesc:ji}=Nt||{};let $i=Ci;mi===Tc?$i=ji:mi===fc&&($i=ea);const Ea=typeof Ur=="object"?Ur:{title:$i};pn=Object.assign(Object.assign({},pn),{className:bt()(pn.className,{[`${Ee}-column-sort`]:Jr}),title:Ua=>{const Fi=ue.createElement("div",{className:`${Ee}-column-sorters`},ue.createElement("span",{className:`${Ee}-column-title`},ro(An.title,Ua)),ui);return Ur?ue.createElement(Zc.Z,Object.assign({},Ea),Fi):Fi},onHeaderCell:Ua=>{const Fi=An.onHeaderCell&&An.onHeaderCell(Ua)||{},Ui=Fi.onClick,Ki=Fi.onKeyDown;Fi.onClick=Ma=>{ut({column:An,key:Gr,sortOrder:mi,multiplePriority:Oc(An)}),Ui==null||Ui(Ma)},Fi.onKeyDown=Ma=>{Ma.keyCode===ds.Z.ENTER&&(ut({column:An,key:Gr,sortOrder:mi,multiplePriority:Oc(An)}),Ki==null||Ki(Ma))};const gi=bo(An.title,{}),Xi=gi==null?void 0:gi.toString();return Jr?Fi["aria-sort"]=Jr==="ascend"?"ascending":"descending":Fi["aria-label"]=Xi||"",Fi.className=bt()(Fi.className,`${Ee}-column-has-sorters`),Fi.tabIndex=0,An.ellipsis&&(Fi.title=(gi!=null?gi:"").toString()),Fi}})}return"children"in pn&&(pn=Object.assign(Object.assign({},pn),{children:Pc(Ee,pn.children,Je,ut,Dt,Nt,Sn,br)})),pn})}function Lo(Ee){const{column:Be,sortOrder:Je}=Ee;return{column:Be,order:Je,field:Be.dataIndex,columnKey:Be.key}}function fo(Ee){const Be=Ee.filter(Je=>{let{sortOrder:ut}=Je;return ut}).map(Lo);return Be.length===0&&Ee.length?Object.assign(Object.assign({},Lo(Ee[Ee.length-1])),{column:void 0}):Be.length<=1?Be[0]||{}:Be}function _s(Ee,Be,Je){const ut=Be.slice().sort((Sn,Nn)=>Nn.multiplePriority-Sn.multiplePriority),Dt=Ee.slice(),Nt=ut.filter(Sn=>{let{column:{sorter:Nn},sortOrder:An}=Sn;return tc(Nn)&&An});return Nt.length?Dt.sort((Sn,Nn)=>{for(let An=0;An<Nt.length;An+=1){const nr=Nt[An],{column:{sorter:br},sortOrder:pn}=nr,Hr=tc(br);if(Hr&&pn){const Ur=Hr(Sn,Nn,pn);if(Ur!==0)return pn===fc?Ur:-Ur}}return 0}).map(Sn=>{const Nn=Sn[Je];return Nn?Object.assign(Object.assign({},Sn),{[Je]:_s(Nn,Be,Je)}):Sn}):Dt}function gl(Ee){let{prefixCls:Be,mergedColumns:Je,onSorterChange:ut,sortDirections:Dt,tableLocale:Nt,showSorterTooltip:Sn}=Ee;const[Nn,An]=ue.useState(Nc(Je,!0)),nr=ue.useMemo(()=>{let Gr=!0;const ii=Nc(Je,!1);if(!ii.length)return Nn;const Jr=[];function mi(Ci){Gr?Jr.push(Ci):Jr.push(Object.assign(Object.assign({},Ci),{sortOrder:null}))}let ui=null;return ii.forEach(Ci=>{ui===null?(mi(Ci),Ci.sortOrder&&(Ci.multiplePriority===!1?Gr=!1:ui=!0)):(ui&&Ci.multiplePriority!==!1||(Gr=!1),mi(Ci))}),Jr},[Je,Nn]),br=ue.useMemo(()=>{const Gr=nr.map(ii=>{let{column:Jr,sortOrder:mi}=ii;return{column:Jr,order:mi}});return{sortColumns:Gr,sortColumn:Gr[0]&&Gr[0].column,sortOrder:Gr[0]&&Gr[0].order}},[nr]);function pn(Gr){let ii;Gr.multiplePriority===!1||!nr.length||nr[0].multiplePriority===!1?ii=[Gr]:ii=[].concat((0,Ni.Z)(nr.filter(Jr=>{let{key:mi}=Jr;return mi!==Gr.key})),[Gr]),An(ii),ut(fo(ii),ii)}return[Gr=>Pc(Be,Gr,nr,pn,Dt,Nt,Sn),nr,br,()=>fo(nr)]}function ho(Ee,Be){return Ee.map(Je=>{const ut=Object.assign({},Je);return ut.title=ro(Je.title,Be),"children"in ut&&(ut.children=ho(ut.children,Be)),ut})}function Wo(Ee){return[ue.useCallback(Je=>ho(Je,Ee),[Ee])]}var Ho=Ln((Ee,Be)=>{const{_renderTimes:Je}=Ee,{_renderTimes:ut}=Be;return Je!==ut}),ws=Wi((Ee,Be)=>{const{_renderTimes:Je}=Ee,{_renderTimes:ut}=Be;return Je!==ut}),qs=re(84780),_l=re(14747),zl=re(67968),jc=re(45503),Md=Ee=>{const{componentCls:Be}=Ee,Je=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`,ut=(Dt,Nt,Sn)=>({[`&${Be}-${Dt}`]:{[`> ${Be}-container`]:{[`> ${Be}-content, > ${Be}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Be}-expanded-row-fixed`]:{margin:`-${Nt}px -${Sn+Ee.lineWidth}px`}}}}}});return{[`${Be}-wrapper`]:{[`${Be}${Be}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Be}-title`]:{border:Je,borderBottom:0},[`> ${Be}-container`]:{borderInlineStart:Je,borderTop:Je,[`
|
|
|
> ${Be}-content,
|
|
|
> ${Be}-header,
|
|
|
> ${Be}-body,
|
|
|
> ${Be}-summary
|
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Je},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Je},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Be}-cell-fix-right-first::after`]:{borderInlineEnd:Je}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Be}-expanded-row-fixed`]:{margin:`-${Ee.tablePaddingVertical}px -${Ee.tablePaddingHorizontal+Ee.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ee.lineWidth,bottom:0,borderInlineEnd:Je,content:'""'}}}}}},[`&${Be}-scroll-horizontal`]:{[`> ${Be}-container > ${Be}-body`]:{"> table > tbody":{[`
|
|
|
> tr${Be}-expanded-row,
|
|
|
> tr${Be}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},ut("middle",Ee.tablePaddingVerticalMiddle,Ee.tablePaddingHorizontalMiddle)),ut("small",Ee.tablePaddingVerticalSmall,Ee.tablePaddingHorizontalSmall)),{[`> ${Be}-footer`]:{border:Je,borderTop:0}}),[`${Be}-cell`]:{[`${Be}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ee.lineWidth}px 0 ${Ee.lineWidth}px ${Ee.tableHeaderBg}`}},[`${Be}-bordered ${Be}-cell-scrollbar`]:{borderInlineEnd:Je}}}},Yu=Ee=>{const{componentCls:Be}=Ee;return{[`${Be}-wrapper`]:{[`${Be}-cell-ellipsis`]:Object.assign(Object.assign({},_l.vS),{wordBreak:"keep-all",[`
|
|
|
&${Be}-cell-fix-left-last,
|
|
|
&${Be}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${Be}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Be}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ad=Ee=>{const{componentCls:Be}=Ee;return{[`${Be}-wrapper`]:{[`${Be}-tbody > tr${Be}-placeholder`]:{textAlign:"center",color:Ee.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Ee.colorBgContainer}}}}},Au=re(49867),Ju=Ee=>{const{componentCls:Be,antCls:Je,controlInteractiveSize:ut,motionDurationSlow:Dt,lineWidth:Nt,paddingXS:Sn,lineType:Nn,tableBorderColor:An,tableExpandIconBg:nr,tableExpandColumnWidth:br,borderRadius:pn,fontSize:Hr,fontSizeSM:Ur,lineHeight:Gr,tablePaddingVertical:ii,tablePaddingHorizontal:Jr,tableExpandedRowBg:mi,paddingXXS:ui}=Ee,Ci=ut/2-Nt,ea=Ci*2+Nt*3,ji=`${Nt}px ${Nn} ${An}`,$i=ui-Nt;return{[`${Be}-wrapper`]:{[`${Be}-expand-icon-col`]:{width:br},[`${Be}-row-expand-icon-cell`]:{textAlign:"center",[`${Be}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Be}-row-indent`]:{height:1,float:"left"},[`${Be}-row-expand-icon`]:Object.assign(Object.assign({},(0,Au.N)(Ee)),{position:"relative",float:"left",boxSizing:"border-box",width:ea,height:ea,padding:0,color:"inherit",lineHeight:`${ea}px`,background:nr,border:ji,borderRadius:pn,transform:`scale(${ut/ea})`,transition:`all ${Dt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Dt} ease-out`,content:'""'},"&::before":{top:Ci,insetInlineEnd:$i,insetInlineStart:$i,height:Nt},"&::after":{top:$i,bottom:$i,insetInlineStart:Ci,width:Nt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${Be}-row-indent + ${Be}-row-expand-icon`]:{marginTop:(Hr*Gr-Nt*3)/2-Math.ceil((Ur*1.4-Nt*3)/2),marginInlineEnd:Sn},[`tr${Be}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:mi}},[`${Je}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Be}-expanded-row-fixed`]:{position:"relative",margin:`-${ii}px -${Jr}px`,padding:`${ii}px ${Jr}px`}}}},Lu=Ee=>{const{componentCls:Be,antCls:Je,iconCls:ut,tableFilterDropdownWidth:Dt,tableFilterDropdownSearchWidth:Nt,paddingXXS:Sn,paddingXS:Nn,colorText:An,lineWidth:nr,lineType:br,tableBorderColor:pn,tableHeaderIconColor:Hr,fontSizeSM:Ur,tablePaddingHorizontal:Gr,borderRadius:ii,motionDurationSlow:Jr,colorTextDescription:mi,colorPrimary:ui,tableHeaderFilterActiveBg:Ci,colorTextDisabled:ea,tableFilterDropdownBg:ji,tableFilterDropdownHeight:$i,controlItemBgHover:Ea,controlItemBgActive:Ua,boxShadowSecondary:Fi,filterDropdownMenuBg:Ui}=Ee,Ki=`${Je}-dropdown`,gi=`${Be}-filter-dropdown`,Xi=`${Je}-tree`,Ma=`${nr}px ${br} ${pn}`;return[{[`${Be}-wrapper`]:{[`${Be}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Be}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Sn,marginInline:`${Sn}px ${-Gr/2}px`,padding:`0 ${Sn}px`,color:Hr,fontSize:Ur,borderRadius:ii,cursor:"pointer",transition:`all ${Jr}`,"&:hover":{color:mi,background:Ci},"&.active":{color:ui}}}},{[`${Je}-dropdown`]:{[gi]:Object.assign(Object.assign({},(0,_l.Wf)(Ee)),{minWidth:Dt,backgroundColor:ji,borderRadius:ii,boxShadow:Fi,overflow:"hidden",[`${Ki}-menu`]:{maxHeight:$i,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Ui,"&:empty::after":{display:"block",padding:`${Nn}px 0`,color:ea,fontSize:Ur,textAlign:"center",content:'"Not Found"'}},[`${gi}-tree`]:{paddingBlock:`${Nn}px 0`,paddingInline:Nn,[Xi]:{padding:0},[`${Xi}-treenode ${Xi}-node-content-wrapper:hover`]:{backgroundColor:Ea},[`${Xi}-treenode-checkbox-checked ${Xi}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Ua}}},[`${gi}-search`]:{padding:Nn,borderBottom:Ma,"&-input":{input:{minWidth:Nt},[ut]:{color:ea}}},[`${gi}-checkall`]:{width:"100%",marginBottom:Sn,marginInlineStart:Sn},[`${gi}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Nn-nr}px ${Nn}px`,overflow:"hidden",borderTop:Ma}})}},{[`${Je}-dropdown ${gi}, ${gi}-submenu`]:{[`${Je}-checkbox-wrapper + span`]:{paddingInlineStart:Nn,color:An},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Uc=Ee=>{const{componentCls:Be,lineWidth:Je,colorSplit:ut,motionDurationSlow:Dt,zIndexTableFixed:Nt,tableBg:Sn,zIndexTableSticky:Nn}=Ee,An=ut;return{[`${Be}-wrapper`]:{[`
|
|
|
${Be}-cell-fix-left,
|
|
|
${Be}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Nt,background:Sn},[`
|
|
|
${Be}-cell-fix-left-first::after,
|
|
|
${Be}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Je,width:30,transform:"translateX(100%)",transition:`box-shadow ${Dt}`,content:'""',pointerEvents:"none"},[`${Be}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${Be}-cell-fix-right-first::after,
|
|
|
${Be}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Je,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Dt}`,content:'""',pointerEvents:"none"},[`${Be}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Nn+1,width:30,transition:`box-shadow ${Dt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Be}-ping-left`]:{[`&:not(${Be}-has-fix-left) ${Be}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${An}`}},[`
|
|
|
${Be}-cell-fix-left-first::after,
|
|
|
${Be}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${An}`},[`${Be}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Be}-ping-right`]:{[`&:not(${Be}-has-fix-right) ${Be}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${An}`}},[`
|
|
|
${Be}-cell-fix-right-first::after,
|
|
|
${Be}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${An}`}}}}},lu=Ee=>{const{componentCls:Be,antCls:Je}=Ee;return{[`${Be}-wrapper`]:{[`${Be}-pagination${Je}-pagination`]:{margin:`${Ee.margin}px 0`},[`${Be}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ee.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Rc=Ee=>{const{componentCls:Be,tableRadius:Je}=Ee;return{[`${Be}-wrapper`]:{[Be]:{[`${Be}-title, ${Be}-header`]:{borderRadius:`${Je}px ${Je}px 0 0`},[`${Be}-title + ${Be}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Be}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Je,borderStartEndRadius:Je,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Je},"> *:last-child":{borderStartEndRadius:Je}}},"&-footer":{borderRadius:`0 0 ${Je}px ${Je}px`}}}}},$u=Ee=>{const{componentCls:Be}=Ee;return{[`${Be}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Be}-pagination-left`]:{justifyContent:"flex-end"},[`${Be}-pagination-right`]:{justifyContent:"flex-start"},[`${Be}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Be}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Be}-row-indent`]:{float:"right"}}}}},Yo=Ee=>{const{componentCls:Be,antCls:Je,iconCls:ut,fontSizeIcon:Dt,padding:Nt,paddingXS:Sn,tableHeaderIconColor:Nn,tableHeaderIconColorHover:An,tableSelectionColumnWidth:nr}=Ee;return{[`${Be}-wrapper`]:{[`${Be}-selection-col`]:{width:nr,[`&${Be}-selection-col-with-dropdown`]:{width:nr+Dt+Nt/4}},[`${Be}-bordered ${Be}-selection-col`]:{width:nr+Sn*2,[`&${Be}-selection-col-with-dropdown`]:{width:nr+Dt+Nt/4+Sn*2}},[`
|
|
|
table tr th${Be}-selection-column,
|
|
|
table tr td${Be}-selection-column
|
|
|
`]:{paddingInlineEnd:Ee.paddingXS,paddingInlineStart:Ee.paddingXS,textAlign:"center",[`${Je}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Be}-selection-column${Be}-cell-fix-left`]:{zIndex:Ee.zIndexTableFixed+1},[`table tr th${Be}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Be}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Be}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ee.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ee.tablePaddingHorizontal/4}px`,[ut]:{color:Nn,fontSize:Dt,verticalAlign:"baseline","&:hover":{color:An}}}}}},ic=Ee=>{const{componentCls:Be}=Ee,Je=(ut,Dt,Nt,Sn)=>({[`${Be}${Be}-${ut}`]:{fontSize:Sn,[`
|
|
|
${Be}-title,
|
|
|
${Be}-footer,
|
|
|
${Be}-cell,
|
|
|
${Be}-thead > tr > th,
|
|
|
${Be}-tbody > tr > th,
|
|
|
${Be}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${Dt}px ${Nt}px`},[`${Be}-filter-trigger`]:{marginInlineEnd:`-${Nt/2}px`},[`${Be}-expanded-row-fixed`]:{margin:`-${Dt}px -${Nt}px`},[`${Be}-tbody`]:{[`${Be}-wrapper:only-child ${Be}`]:{marginBlock:`-${Dt}px`,marginInline:`${Ee.tableExpandColumnWidth-Nt}px -${Nt}px`}},[`${Be}-selection-column`]:{paddingInlineStart:`${Nt/4}px`}}});return{[`${Be}-wrapper`]:Object.assign(Object.assign({},Je("middle",Ee.tablePaddingVerticalMiddle,Ee.tablePaddingHorizontalMiddle,Ee.tableFontSizeMiddle)),Je("small",Ee.tablePaddingVerticalSmall,Ee.tablePaddingHorizontalSmall,Ee.tableFontSizeSmall))}},qu=Ee=>{const{componentCls:Be,marginXXS:Je,fontSizeIcon:ut,tableHeaderIconColor:Dt,tableHeaderIconColorHover:Nt}=Ee;return{[`${Be}-wrapper`]:{[`${Be}-thead th${Be}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ee.motionDurationSlow}`,"&:hover":{background:Ee.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ee.colorPrimary},[`
|
|
|
&${Be}-cell-fix-left:hover,
|
|
|
&${Be}-cell-fix-right:hover
|
|
|
`]:{background:Ee.tableFixedHeaderSortActiveBg}},[`${Be}-thead th${Be}-column-sort`]:{background:Ee.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Be}-column-sort`]:{background:Ee.tableBodySortBg},[`${Be}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Be}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Be}-column-sorter`]:{marginInlineStart:Je,color:Dt,fontSize:0,transition:`color ${Ee.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:ut,"&.active":{color:Ee.colorPrimary}},[`${Be}-column-sorter-up + ${Be}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Be}-column-sorters:hover ${Be}-column-sorter`]:{color:Nt}}}},Fc=Ee=>{const{componentCls:Be,opacityLoading:Je,tableScrollThumbBg:ut,tableScrollThumbBgHover:Dt,tableScrollThumbSize:Nt,tableScrollBg:Sn,zIndexTableSticky:Nn,stickyScrollBarBorderRadius:An}=Ee,nr=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`;return{[`${Be}-wrapper`]:{[`${Be}-sticky`]:{"&-holder":{position:"sticky",zIndex:Nn,background:Ee.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Nt}px !important`,zIndex:Nn,display:"flex",alignItems:"center",background:Sn,borderTop:nr,opacity:Je,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Nt,backgroundColor:ut,borderRadius:An,transition:`all ${Ee.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Dt}}}}}}},cu=Ee=>{const{componentCls:Be,lineWidth:Je,tableBorderColor:ut}=Ee,Dt=`${Je}px ${Ee.lineType} ${ut}`;return{[`${Be}-wrapper`]:{[`${Be}-summary`]:{position:"relative",zIndex:Ee.zIndexTableFixed,background:Ee.tableBg,"> tr":{"> th, > td":{borderBottom:Dt}}},[`div${Be}-summary`]:{boxShadow:`0 -${Je}px 0 ${ut}`}}}},nd=Ee=>{const{componentCls:Be}=Ee,Je=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`,ut=`${Be}-expanded-row-cell`;return{[`${Be}-wrapper`]:{[`${Be}-tbody-virtual`]:{[`${Be}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Be}-cell`]:{borderBottom:Je},[`${Be}-expanded-row`]:{[`${ut}${ut}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ee.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Be}-bordered`]:{[`${Be}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Je,position:"absolute"},[`${Be}-cell`]:{borderInlineEnd:Je,[`&${Be}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ee.lineWidth,borderInlineStart:Je}}}}}}};const Du=Ee=>{const{componentCls:Be,fontWeightStrong:Je,tablePaddingVertical:ut,tablePaddingHorizontal:Dt,lineWidth:Nt,lineType:Sn,tableBorderColor:Nn,tableFontSize:An,tableBg:nr,tableRadius:br,tableHeaderTextColor:pn,motionDurationMid:Hr,tableHeaderBg:Ur,tableHeaderCellSplitColor:Gr,tableRowHoverBg:ii,tableSelectedRowBg:Jr,tableSelectedRowHoverBg:mi,tableFooterTextColor:ui,tableFooterBg:Ci,paddingContentVerticalLG:ea}=Ee,ji=`${Nt}px ${Sn} ${Nn}`;return{[`${Be}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,_l.dF)()),{[Be]:Object.assign(Object.assign({},(0,_l.Wf)(Ee)),{fontSize:An,background:nr,borderRadius:`${br}px ${br}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${br}px ${br}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${Be}-cell,
|
|
|
${Be}-thead > tr > th,
|
|
|
${Be}-tbody > tr > th,
|
|
|
${Be}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${ea}px ${Dt}px`,overflowWrap:"break-word"},[`${Be}-title`]:{padding:`${ut}px ${Dt}px`},[`${Be}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:pn,fontWeight:Je,textAlign:"start",background:Ur,borderBottom:ji,transition:`background ${Hr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Be}-selection-column):not(${Be}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Gr,transform:"translateY(-50%)",transition:`background-color ${Hr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Be}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Hr}, border-color ${Hr}`,borderBottom:ji,[`
|
|
|
> ${Be}-wrapper:only-child,
|
|
|
> ${Be}-expanded-row-fixed > ${Be}-wrapper:only-child
|
|
|
`]:{[Be]:{marginBlock:`-${ut}px`,marginInline:`${Ee.tableExpandColumnWidth-Dt}px -${Dt}px`,[`${Be}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:pn,fontWeight:Je,textAlign:"start",background:Ur,borderBottom:ji,transition:`background ${Hr} ease`},[`
|
|
|
&${Be}-row:hover > th,
|
|
|
&${Be}-row:hover > td,
|
|
|
> th${Be}-cell-row-hover,
|
|
|
> td${Be}-cell-row-hover
|
|
|
`]:{background:ii},[`&${Be}-row-selected`]:{"> th, > td":{background:Jr},"&:hover > th, &:hover > td":{background:mi}}}},[`${Be}-footer`]:{padding:`${ut}px ${Dt}px`,color:ui,background:Ci}})}};var hc=(0,zl.Z)("Table",Ee=>{const{colorTextHeading:Be,colorSplit:Je,colorIcon:ut,colorIconHover:Dt,opacityLoading:Nt,colorBgContainer:Sn,controlInteractiveSize:Nn,headerBg:An,headerColor:nr,headerSortActiveBg:br,headerSortHoverBg:pn,bodySortBg:Hr,rowHoverBg:Ur,rowSelectedBg:Gr,rowSelectedHoverBg:ii,rowExpandedBg:Jr,cellPaddingBlock:mi,cellPaddingInline:ui,cellPaddingBlockMD:Ci,cellPaddingInlineMD:ea,cellPaddingBlockSM:ji,cellPaddingInlineSM:$i,borderColor:Ea,footerBg:Ua,footerColor:Fi,headerBorderRadius:Ui,cellFontSize:Ki,cellFontSizeMD:gi,cellFontSizeSM:Xi,headerSplitColor:Ma,fixedHeaderSortActiveBg:qa,headerFilterHoverBg:Ka,filterDropdownBg:Aa,expandIconBg:ao,selectionColumnWidth:eo,stickyScrollBarBg:_o}=Ee,so=new qs.C(ut),es=new qs.C(Dt),ts=2,Va=(0,jc.TS)(Ee,{tableFontSize:Ki,tableBg:Sn,tableRadius:Ui,tablePaddingVertical:mi,tablePaddingHorizontal:ui,tablePaddingVerticalMiddle:Ci,tablePaddingHorizontalMiddle:ea,tablePaddingVerticalSmall:ji,tablePaddingHorizontalSmall:$i,tableBorderColor:Ea,tableHeaderTextColor:nr,tableHeaderBg:An,tableFooterTextColor:Fi,tableFooterBg:Ua,tableHeaderCellSplitColor:Ma,tableHeaderSortBg:br,tableHeaderSortHoverBg:pn,tableHeaderIconColor:so.clone().setAlpha(so.getAlpha()*Nt).toRgbString(),tableHeaderIconColorHover:es.clone().setAlpha(es.getAlpha()*Nt).toRgbString(),tableBodySortBg:Hr,tableFixedHeaderSortActiveBg:qa,tableHeaderFilterActiveBg:Ka,tableFilterDropdownBg:Aa,tableRowHoverBg:Ur,tableSelectedRowBg:Gr,tableSelectedRowHoverBg:ii,zIndexTableFixed:ts,zIndexTableSticky:ts+1,tableFontSizeMiddle:gi,tableFontSizeSmall:Xi,tableSelectionColumnWidth:eo,tableExpandIconBg:ao,tableExpandColumnWidth:Nn+2*Ee.padding,tableExpandedRowBg:Jr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:_o,tableScrollThumbBgHover:Be,tableScrollBg:Je});return[Du(Va),lu(Va),cu(Va),qu(Va),Lu(Va),Md(Va),Rc(Va),Ju(Va),cu(Va),Ad(Va),Yo(Va),Uc(Va),Fc(Va),Yu(Va),ic(Va),$u(Va),nd(Va)]},Ee=>{const{colorFillAlter:Be,colorBgContainer:Je,colorTextHeading:ut,colorFillSecondary:Dt,colorFillContent:Nt,controlItemBgActive:Sn,controlItemBgActiveHover:Nn,padding:An,paddingSM:nr,paddingXS:br,colorBorderSecondary:pn,borderRadiusLG:Hr,fontSize:Ur,controlHeight:Gr,colorTextPlaceholder:ii}=Ee,Jr=new qs.C(Dt).onBackground(Je).toHexShortString(),mi=new qs.C(Nt).onBackground(Je).toHexShortString(),ui=new qs.C(Be).onBackground(Je).toHexShortString();return{headerBg:ui,headerColor:ut,headerSortActiveBg:Jr,headerSortHoverBg:mi,bodySortBg:ui,rowHoverBg:ui,rowSelectedBg:Sn,rowSelectedHoverBg:Nn,rowExpandedBg:Be,cellPaddingBlock:An,cellPaddingInline:An,cellPaddingBlockMD:nr,cellPaddingInlineMD:br,cellPaddingBlockSM:br,cellPaddingInlineSM:br,borderColor:pn,headerBorderRadius:Hr,footerBg:ui,footerColor:ut,cellFontSize:Ur,cellFontSizeMD:Ur,cellFontSizeSM:Ur,headerSplitColor:pn,fixedHeaderSortActiveBg:Jr,headerFilterHoverBg:Nt,filterDropdownMenuBg:Je,filterDropdownBg:Je,expandIconBg:Je,selectionColumnWidth:Gr,stickyScrollBarBg:ii,stickyScrollBarBorderRadius:100}});const uu=[],du=(Ee,Be)=>{const{prefixCls:Je,className:ut,rootClassName:Dt,style:Nt,size:Sn,bordered:Nn,dropdownPrefixCls:An,dataSource:nr,pagination:br,rowSelection:pn,rowKey:Hr="key",rowClassName:Ur,columns:Gr,children:ii,childrenColumnName:Jr,onChange:mi,getPopupContainer:ui,loading:Ci,expandIcon:ea,expandable:ji,expandedRowRender:$i,expandIconColumnIndex:Ea,indentSize:Ua,scroll:Fi,sortDirections:Ui,locale:Ki,showSorterTooltip:gi=!0,virtual:Xi}=Ee,Ma=ue.useMemo(()=>Gr||Er(ii),[Gr,ii]),qa=ue.useMemo(()=>Ma.some(yo=>yo.responsive),[Ma]),Ka=(0,aa.Z)(qa),Aa=ue.useMemo(()=>{const yo=new Set(Object.keys(Ka).filter(ya=>Ka[ya]));return Ma.filter(ya=>!ya.responsive||ya.responsive.some(Ns=>yo.has(Ns)))},[Ma,Ka]),ao=(0,oo.Z)(Ee,["className","style","columns"]),{locale:eo=mo.Z,direction:_o,table:so,renderEmpty:es,getPrefixCls:ts,getPopupContainer:Va}=ue.useContext(Za.E_),Ls=(0,Ia.Z)(Sn),Io=Object.assign(Object.assign({},eo.Table),Ki),Zo=nr||uu,Ro=ts("table",Je),Wa=ts("dropdown",An),Ii=Object.assign({childrenColumnName:Jr,expandIconColumnIndex:Ea},ji),{childrenColumnName:ha="children"}=Ii,ka=ue.useMemo(()=>Zo.some(yo=>yo==null?void 0:yo[ha])?"nest":$i||ji&&ji.expandedRowRender?"row":null,[Zo]),Vi={body:ue.useRef()},To=ue.useMemo(()=>typeof Hr=="function"?Hr:yo=>yo==null?void 0:yo[Hr],[Hr]),[Di]=Qo(Zo,ha,To),ja={},Do=function(yo,ya){let Ns=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var jo,Vs,Nr;const kl=Object.assign(Object.assign({},ja),yo);Ns&&((jo=ja.resetPagination)===null||jo===void 0||jo.call(ja),!((Vs=kl.pagination)===null||Vs===void 0)&&Vs.current&&(kl.pagination.current=1),br&&br.onChange&&br.onChange(1,(Nr=kl.pagination)===null||Nr===void 0?void 0:Nr.pageSize)),Fi&&Fi.scrollToFirstRowOnChange!==!1&&Vi.body.current&&(0,Ja.Z)(0,{getContainer:()=>Vi.body.current}),mi==null||mi(kl.pagination,kl.filters,kl.sorter,{currentDataSource:pa(_s(Zo,kl.sorterStates,ha),kl.filterStates),action:ya})},wo=(yo,ya)=>{Do({sorter:yo,sorterStates:ya},"sort",!1)},[ol,Ds,El,ei]=gl({prefixCls:Ro,mergedColumns:Aa,onSorterChange:wo,sortDirections:Ui||["ascend","descend"],tableLocale:Io,showSorterTooltip:gi}),Kl=ue.useMemo(()=>_s(Zo,Ds,ha),[Zo,Ds]);ja.sorter=ei(),ja.sorterStates=Ds;const Cs=(yo,ya)=>{Do({filters:yo,filterStates:ya},"filter",!0)},[fl,yl,Bo]=Vo({prefixCls:Ro,locale:Io,dropdownPrefixCls:Wa,mergedColumns:Aa,onFilterChange:Cs,getPopupContainer:ui||Va}),Po=pa(Kl,yl);ja.filters=Bo,ja.filterStates=yl;const ns=ue.useMemo(()=>{const yo={};return Object.keys(Bo).forEach(ya=>{Bo[ya]!==null&&(yo[ya]=Bo[ya])}),Object.assign(Object.assign({},El),{filters:yo})},[El,Bo]),[$a]=Wo(ns),Rs=(yo,ya)=>{Do({pagination:Object.assign(Object.assign({},ja.pagination),{current:yo,pageSize:ya})},"paginate")},[lo,Bs]=Ol(Po.length,Rs,br);ja.pagination=br===!1?{}:vo(lo,br),ja.resetPagination=Bs;const Ws=ue.useMemo(()=>{if(br===!1||!lo.pageSize)return Po;const{current:yo=1,total:ya,pageSize:Ns=wl}=lo;return Po.length<ya?Po.length>Ns?Po.slice((yo-1)*Ns,yo*Ns):Po:Po.slice((yo-1)*Ns,yo*Ns)},[!!br,Po,lo&&lo.current,lo&&lo.pageSize,lo&&lo.total]),[Zs,Ml]=al({prefixCls:Ro,data:Po,pageData:Ws,getRowKey:To,getRecordByKey:Di,expandType:ka,childrenColumnName:ha,locale:Io,getPopupContainer:ui||Va},pn),Es=(yo,ya,Ns)=>{let jo;return typeof Ur=="function"?jo=bt()(Ur(yo,ya,Ns)):jo=bt()(Ur),bt()({[`${Ro}-row-selected`]:Ml.has(To(yo,ya))},jo)};Ii.__PARENT_RENDER_ICON__=Ii.expandIcon,Ii.expandIcon=Ii.expandIcon||ea||Ra(Io),ka==="nest"&&Ii.expandIconColumnIndex===void 0?Ii.expandIconColumnIndex=pn?1:0:Ii.expandIconColumnIndex>0&&pn&&(Ii.expandIconColumnIndex-=1),typeof Ii.indentSize!="number"&&(Ii.indentSize=typeof Ua=="number"?Ua:15);const Al=ue.useCallback(yo=>$a(Zs(fl(ol(yo)))),[ol,fl,Zs]);let Ms,js;if(br!==!1&&(lo!=null&&lo.total)){let yo;lo.size?yo=lo.size:yo=Ls==="small"||Ls==="middle"?"small":void 0;const ya=Vs=>ue.createElement(ba.Z,Object.assign({},lo,{className:bt()(`${Ro}-pagination ${Ro}-pagination-${Vs}`,lo.className),size:yo})),Ns=_o==="rtl"?"left":"right",{position:jo}=lo;if(jo!==null&&Array.isArray(jo)){const Vs=jo.find(lc=>lc.includes("top")),Nr=jo.find(lc=>lc.includes("bottom")),kl=jo.every(lc=>`${lc}`=="none");!Vs&&!Nr&&!kl&&(js=ya(Ns)),Vs&&(Ms=ya(Vs.toLowerCase().replace("top",""))),Nr&&(js=ya(Nr.toLowerCase().replace("bottom","")))}else js=ya(Ns)}let Us;typeof Ci=="boolean"?Us={spinning:Ci}:typeof Ci=="object"&&(Us=Object.assign({spinning:!0},Ci));const[As,ms]=hc(Ro),[,ls]=(0,Oa.Z)(),Xl=bt()(`${Ro}-wrapper`,so==null?void 0:so.className,{[`${Ro}-wrapper-rtl`]:_o==="rtl"},ut,Dt,ms),Cc=Object.assign(Object.assign({},so==null?void 0:so.style),Nt),hs=Ki&&Ki.emptyText||(es==null?void 0:es("Table"))||ue.createElement(Ha.Z,{componentName:"Table"}),sl=Xi?ws:Ho,Tu={},Ec=ue.useMemo(()=>{const{fontSize:yo,lineHeight:ya,padding:Ns,paddingXS:jo,paddingSM:Vs}=ls,Nr=Math.floor(yo*ya);switch(Ls){case"large":return Ns*2+Nr;case"small":return jo*2+Nr;default:return Vs*2+Nr}},[ls,Ls]);return Xi&&(Tu.listItemHeight=Ec),As(ue.createElement("div",{ref:Be,className:Xl,style:Cc},ue.createElement(Zi.Z,Object.assign({spinning:!1},Us),Ms,ue.createElement(sl,Object.assign({},Tu,ao,{columns:Aa,direction:_o,expandable:Ii,prefixCls:Ro,className:bt()({[`${Ro}-middle`]:Ls==="middle",[`${Ro}-small`]:Ls==="small",[`${Ro}-bordered`]:Nn,[`${Ro}-empty`]:Zo.length===0}),data:Ws,rowKey:To,rowClassName:Es,emptyText:hs,internalHooks:Le,internalRefs:Vi,transformColumns:Al})),js)))};var Bu=ue.forwardRef(du);const fu=(Ee,Be)=>{const Je=ue.useRef(0);return Je.current+=1,ue.createElement(Bu,Object.assign({},Ee,{ref:Be,_renderTimes:Je.current}))},Yl=ue.forwardRef(fu);Yl.SELECTION_COLUMN=dl,Yl.EXPAND_COLUMN=ie,Yl.SELECTION_ALL=ec,Yl.SELECTION_INVERT=is,Yl.SELECTION_NONE=Eo,Yl.Column=fi,Yl.ColumnGroup=va,Yl.Summary=xt;var rd=Yl,Iu=rd},66368:function(bn,Ut,re){"use strict";re.d(Ut,{default:function(){return Xn}});var ie=re(73475),Le=re(25877),Oe=re(38308),Ue=re(94184),be=re.n(Ue),Me=re(87462),ue=re(4942),we=re(1413),me=re(97685),Ie=re(71002),ct=re(45987),Ke=re(67294),st=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ge=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ge)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ge==null?void 0:ge.substr(0,4))};function dt(ge){var Re=Ke.useRef();Re.current=ge;var He=Ke.useCallback(function(){for(var Ye,Ve=arguments.length,$e=new Array(Ve),tt=0;tt<Ve;tt++)$e[tt]=arguments[tt];return(Ye=Re.current)===null||Ye===void 0?void 0:Ye.call.apply(Ye,[Re].concat($e))},[]);return He}function Xe(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var We=Xe()?Ke.useLayoutEffect:Ke.useEffect,ye=function(Re,He){var Ye=Ke.useRef(!0);We(function(){return Re(Ye.current)},He),We(function(){return Ye.current=!1,function(){Ye.current=!0}},[])},it=function(Re,He){ye(function(Ye){if(!Ye)return Re()},He)},Lt=null;function qe(ge){var Re=Ke.useRef(!1),He=Ke.useState(ge),Ye=(0,me.Z)(He,2),Ve=Ye[0],$e=Ye[1];Ke.useEffect(function(){return Re.current=!1,function(){Re.current=!0}},[]);function tt(Wt,on){on&&Re.current||$e(Wt)}return[Ve,tt]}function rt(ge){return ge!==void 0}function xe(ge,Re){var He=Re||{},Ye=He.defaultValue,Ve=He.value,$e=He.onChange,tt=He.postState,Wt=qe(function(){return rt(Ve)?Ve:rt(Ye)?typeof Ye=="function"?Ye():Ye:typeof ge=="function"?ge():ge}),on=(0,me.Z)(Wt,2),Zn=on[0],tr=on[1],Vn=Ve!==void 0?Ve:Zn,Mn=tt?tt(Vn):Vn,En=dt($e),dn=qe([Vn]),Gn=(0,me.Z)(dn,2),xr=Gn[0],ar=Gn[1];it(function(){var mr=xr[0];Zn!==mr&&En(Zn,mr)},[xr]),it(function(){rt(Ve)||tr(Ve)},[Ve]);var ur=dt(function(mr,Sr){tr(mr,Sr),ar([Vn],Sr)});return[Mn,ur]}var Se=re(62874),Ze=(0,Ke.createContext)(null),Ge=Ke.forwardRef(function(ge,Re){var He=ge.prefixCls,Ye=ge.className,Ve=ge.style,$e=ge.id,tt=ge.active,Wt=ge.tabKey,on=ge.children;return Ke.createElement("div",{id:$e&&"".concat($e,"-panel-").concat(Wt),role:"tabpanel",tabIndex:tt?0:-1,"aria-labelledby":$e&&"".concat($e,"-tab-").concat(Wt),"aria-hidden":!tt,style:Ve,className:be()(He,tt&&"".concat(He,"-active"),Ye),ref:Re},on)}),yt=Ge,pt=["key","forceRender","style","className"];function ft(ge){var Re=ge.id,He=ge.activeKey,Ye=ge.animated,Ve=ge.tabPosition,$e=ge.destroyInactiveTabPane,tt=Ke.useContext(Ze),Wt=tt.prefixCls,on=tt.tabs,Zn=Ye.tabPane,tr="".concat(Wt,"-tabpane");return Ke.createElement("div",{className:be()("".concat(Wt,"-content-holder"))},Ke.createElement("div",{className:be()("".concat(Wt,"-content"),"".concat(Wt,"-content-").concat(Ve),(0,ue.Z)({},"".concat(Wt,"-content-animated"),Zn))},on.map(function(Vn){var Mn=Vn.key,En=Vn.forceRender,dn=Vn.style,Gn=Vn.className,xr=(0,ct.Z)(Vn,pt),ar=Mn===He;return Ke.createElement(Se.Z,(0,Me.Z)({key:Mn,visible:ar,forceRender:En,removeOnLeave:!!$e,leavedClassName:"".concat(tr,"-hidden")},Ye.tabPaneMotion),function(ur,mr){var Sr=ur.style,Tr=ur.className;return Ke.createElement(yt,(0,Me.Z)({},xr,{prefixCls:tr,id:Re,tabKey:Mn,animated:Zn,active:ar,style:(0,we.Z)((0,we.Z)({},dn),Sr),className:be()(Gn,Tr),ref:mr}))})})))}var Ne=re(74902),jt=re(48555),bt=re(59864);function xn(ge,Re,He){var Ye=Ke.useRef({});return(!("value"in Ye.current)||He(Ye.current.condition,Re))&&(Ye.current.value=ge(),Ye.current.condition=Re),Ye.current.value}function Mt(ge,Re){typeof ge=="function"?ge(Re):(0,Ie.Z)(ge)==="object"&&ge&&"current"in ge&&(ge.current=Re)}function Gt(){for(var ge=arguments.length,Re=new Array(ge),He=0;He<ge;He++)Re[He]=arguments[He];var Ye=Re.filter(function(Ve){return Ve});return Ye.length<=1?Ye[0]:function(Ve){Re.forEach(function($e){Mt($e,Ve)})}}function Bn(){for(var ge=arguments.length,Re=new Array(ge),He=0;He<ge;He++)Re[He]=arguments[He];return xn(function(){return Gt.apply(void 0,Re)},Re,function(Ye,Ve){return Ye.length===Ve.length&&Ye.every(function($e,tt){return $e===Ve[tt]})})}function Tn(ge){var Re,He,Ye=isMemo(ge)?ge.type.type:ge.type;return!(typeof Ye=="function"&&!((Re=Ye.prototype)!==null&&Re!==void 0&&Re.render)||typeof ge=="function"&&!((He=ge.prototype)!==null&&He!==void 0&&He.render))}var at={width:0,height:0,left:0,top:0};function Ae(ge,Re,He){return(0,Ke.useMemo)(function(){for(var Ye,Ve=new Map,$e=Re.get((Ye=ge[0])===null||Ye===void 0?void 0:Ye.key)||at,tt=$e.left+$e.width,Wt=0;Wt<ge.length;Wt+=1){var on=ge[Wt].key,Zn=Re.get(on);if(!Zn){var tr;Zn=Re.get((tr=ge[Wt-1])===null||tr===void 0?void 0:tr.key)||at}var Vn=Ve.get(on)||(0,we.Z)({},Zn);Vn.right=tt-Vn.left-Vn.width,Ve.set(on,Vn)}return Ve},[ge.map(function(Ye){return Ye.key}).join("_"),Re,He])}function St(ge,Re){var He=Ke.useRef(ge),Ye=Ke.useState({}),Ve=(0,me.Z)(Ye,2),$e=Ve[1];function tt(Wt){var on=typeof Wt=="function"?Wt(He.current):Wt;on!==He.current&&Re(on,He.current),He.current=on,$e({})}return[He.current,tt]}var cn=.1,Pt=.01,ht=20,Et=Math.pow(.995,ht);function Qt(ge,Re){var He=(0,Ke.useState)(),Ye=(0,me.Z)(He,2),Ve=Ye[0],$e=Ye[1],tt=(0,Ke.useState)(0),Wt=(0,me.Z)(tt,2),on=Wt[0],Zn=Wt[1],tr=(0,Ke.useState)(0),Vn=(0,me.Z)(tr,2),Mn=Vn[0],En=Vn[1],dn=(0,Ke.useState)(),Gn=(0,me.Z)(dn,2),xr=Gn[0],ar=Gn[1],ur=(0,Ke.useRef)();function mr(kt){var vn=kt.touches[0],jn=vn.screenX,vt=vn.screenY;$e({x:jn,y:vt}),window.clearInterval(ur.current)}function Sr(kt){if(Ve){kt.preventDefault();var vn=kt.touches[0],jn=vn.screenX,vt=vn.screenY;$e({x:jn,y:vt});var wt=jn-Ve.x,Ct=vt-Ve.y;Re(wt,Ct);var Ft=Date.now();Zn(Ft),En(Ft-on),ar({x:wt,y:Ct})}}function Tr(){if(Ve&&($e(null),ar(null),xr)){var kt=xr.x/Mn,vn=xr.y/Mn,jn=Math.abs(kt),vt=Math.abs(vn);if(Math.max(jn,vt)<cn)return;var wt=kt,Ct=vn;ur.current=window.setInterval(function(){if(Math.abs(wt)<Pt&&Math.abs(Ct)<Pt){window.clearInterval(ur.current);return}wt*=Et,Ct*=Et,Re(wt*ht,Ct*ht)},ht)}}var je=(0,Ke.useRef)();function Qe(kt){var vn=kt.deltaX,jn=kt.deltaY,vt=0,wt=Math.abs(vn),Ct=Math.abs(jn);wt===Ct?vt=je.current==="x"?vn:jn:wt>Ct?(vt=vn,je.current="x"):(vt=jn,je.current="y"),Re(-vt,-vt)&&kt.preventDefault()}var Rt=(0,Ke.useRef)(null);Rt.current={onTouchStart:mr,onTouchMove:Sr,onTouchEnd:Tr,onWheel:Qe},Ke.useEffect(function(){function kt(wt){Rt.current.onTouchStart(wt)}function vn(wt){Rt.current.onTouchMove(wt)}function jn(wt){Rt.current.onTouchEnd(wt)}function vt(wt){Rt.current.onWheel(wt)}return document.addEventListener("touchmove",vn,{passive:!1}),document.addEventListener("touchend",jn,{passive:!1}),ge.current.addEventListener("touchstart",kt,{passive:!1}),ge.current.addEventListener("wheel",vt),function(){document.removeEventListener("touchmove",vn),document.removeEventListener("touchend",jn)}},[])}function ir(ge){var Re=(0,Ke.useState)(0),He=(0,me.Z)(Re,2),Ye=He[0],Ve=He[1],$e=(0,Ke.useRef)(0),tt=(0,Ke.useRef)();return tt.current=ge,it(function(){var Wt;(Wt=tt.current)===null||Wt===void 0||Wt.call(tt)},[Ye]),function(){$e.current===Ye&&($e.current+=1,Ve($e.current))}}function On(ge){var Re=(0,Ke.useRef)([]),He=(0,Ke.useState)({}),Ye=(0,me.Z)(He,2),Ve=Ye[1],$e=(0,Ke.useRef)(typeof ge=="function"?ge():ge),tt=ir(function(){var on=$e.current;Re.current.forEach(function(Zn){on=Zn(on)}),Re.current=[],$e.current=on,Ve({})});function Wt(on){Re.current.push(on),tt()}return[$e.current,Wt]}var $t={width:0,height:0,left:0,top:0,right:0};function yn(ge,Re,He,Ye,Ve,$e,tt){var Wt=tt.tabs,on=tt.tabPosition,Zn=tt.rtl,tr,Vn,Mn;return["top","bottom"].includes(on)?(tr="width",Vn=Zn?"right":"left",Mn=Math.abs(He)):(tr="height",Vn="top",Mn=-He),(0,Ke.useMemo)(function(){if(!Wt.length)return[0,0];for(var En=Wt.length,dn=En,Gn=0;Gn<En;Gn+=1){var xr=ge.get(Wt[Gn].key)||$t;if(xr[Vn]+xr[tr]>Mn+Re){dn=Gn-1;break}}for(var ar=0,ur=En-1;ur>=0;ur-=1){var mr=ge.get(Wt[ur].key)||$t;if(mr[Vn]<Mn){ar=ur+1;break}}return ar>=dn?[0,0]:[ar,dn]},[ge,Re,Ye,Ve,$e,Mn,on,Wt.map(function(En){return En.key}).join("_"),Zn])}function Qn(ge){var Re;return ge instanceof Map?(Re={},ge.forEach(function(He,Ye){Re[Ye]=He})):Re=ge,JSON.stringify(Re)}var Cn="TABS_DQ";function Pe(ge){return String(ge).replace(/"/g,Cn)}function fe(ge,Re,He,Ye){return!(!He||Ye||ge===!1||ge===void 0&&(Re===!1||Re===null))}function ce(ge,Re){var He=ge.prefixCls,Ye=ge.editable,Ve=ge.locale,$e=ge.style;return!Ye||Ye.showAdd===!1?null:Ke.createElement("button",{ref:Re,type:"button",className:"".concat(He,"-nav-add"),style:$e,"aria-label":(Ve==null?void 0:Ve.addAriaLabel)||"Add tab",onClick:function(Wt){Ye.onEdit("add",{event:Wt})}},Ye.addIcon||"+")}var pe=Ke.forwardRef(ce),de=Ke.forwardRef(function(ge,Re){var He=ge.position,Ye=ge.prefixCls,Ve=ge.extra;if(!Ve)return null;var $e,tt={};return(0,Ie.Z)(Ve)==="object"&&!Ke.isValidElement(Ve)?tt=Ve:tt.right=Ve,He==="right"&&($e=tt.right),He==="left"&&($e=tt.left),$e?Ke.createElement("div",{className:"".concat(Ye,"-extra-content"),ref:Re},$e):null}),le=de,Te=re(62709);function ot(ge,Re,He){var Ye=React.useRef({});return(!("value"in Ye.current)||He(Ye.current.condition,Re))&&(Ye.current.value=ge(),Ye.current.condition=Re),Ye.current.value}function Bt(ge,Re){typeof ge=="function"?ge(Re):(0,Ie.Z)(ge)==="object"&&ge&&"current"in ge&&(ge.current=Re)}function en(){for(var ge=arguments.length,Re=new Array(ge),He=0;He<ge;He++)Re[He]=arguments[He];var Ye=Re.filter(function(Ve){return Ve});return Ye.length<=1?Ye[0]:function(Ve){Re.forEach(function($e){Bt($e,Ve)})}}function rn(){for(var ge=arguments.length,Re=new Array(ge),He=0;He<ge;He++)Re[He]=arguments[He];return useMemo(function(){return en.apply(void 0,Re)},Re,function(Ye,Ve){return Ye.length===Ve.length&&Ye.every(function($e,tt){return $e===Ve[tt]})})}function sn(ge){var Re,He,Ye=(0,bt.isMemo)(ge)?ge.type.type:ge.type;return!(typeof Ye=="function"&&!((Re=Ye.prototype)!==null&&Re!==void 0&&Re.render)||typeof ge=="function"&&!((He=ge.prototype)!==null&&He!==void 0&&He.render))}var un={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Re){var He=Re.keyCode;if(Re.altKey&&!Re.ctrlKey||Re.metaKey||He>=un.F1&&He<=un.F12)return!1;switch(He){case un.ALT:case un.CAPS_LOCK:case un.CONTEXT_MENU:case un.CTRL:case un.DOWN:case un.END:case un.ESC:case un.HOME:case un.INSERT:case un.LEFT:case un.MAC_FF_META:case un.META:case un.NUMLOCK:case un.NUM_CENTER:case un.PAGE_DOWN:case un.PAGE_UP:case un.PAUSE:case un.PRINT_SCREEN:case un.RIGHT:case un.SHIFT:case un.UP:case un.WIN_KEY:case un.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Re){if(Re>=un.ZERO&&Re<=un.NINE||Re>=un.NUM_ZERO&&Re<=un.NUM_MULTIPLY||Re>=un.A&&Re<=un.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Re===0)return!0;switch(Re){case un.SPACE:case un.QUESTION_MARK:case un.NUM_PLUS:case un.NUM_MINUS:case un.NUM_PERIOD:case un.NUM_DIVISION:case un.SEMICOLON:case un.DASH:case un.EQUALS:case un.COMMA:case un.PERIOD:case un.SLASH:case un.APOSTROPHE:case un.SINGLE_QUOTE:case un.OPEN_SQUARE_BRACKET:case un.BACKSLASH:case un.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},gt=un,zt=function(Re){return+setTimeout(Re,16)},It=function(Re){return clearTimeout(Re)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(zt=function(Re){return window.requestAnimationFrame(Re)},It=function(Re){return window.cancelAnimationFrame(Re)});var ln=0,_t=new Map;function lr(ge){_t.delete(ge)}var xt=function(Re){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ln+=1;var Ye=ln;function Ve($e){if($e===0)lr(Ye),Re();else{var tt=zt(function(){Ve($e-1)});_t.set(Ye,tt)}}return Ve(He),Ye};xt.cancel=function(ge){var Re=_t.get(ge);return lr(Re),It(Re)};var Yt=xt,Un=gt.ESC,Hn=gt.TAB;function $n(ge){var Re=ge.visible,He=ge.triggerRef,Ye=ge.onVisibleChange,Ve=ge.autoFocus,$e=ge.overlayRef,tt=Ke.useRef(!1),Wt=function(){if(Re){var Vn,Mn;(Vn=He.current)===null||Vn===void 0||(Mn=Vn.focus)===null||Mn===void 0||Mn.call(Vn),Ye==null||Ye(!1)}},on=function(){var Vn;return(Vn=$e.current)!==null&&Vn!==void 0&&Vn.focus?($e.current.focus(),tt.current=!0,!0):!1},Zn=function(Vn){switch(Vn.keyCode){case Un:Wt();break;case Hn:{var Mn=!1;tt.current||(Mn=on()),Mn?Vn.preventDefault():Wt();break}}};Ke.useEffect(function(){return Re?(window.addEventListener("keydown",Zn),Ve&&Yt(on,3),function(){window.removeEventListener("keydown",Zn),tt.current=!1}):function(){tt.current=!1}},[Re])}var yr=(0,Ke.forwardRef)(function(ge,Re){var He=ge.overlay,Ye=ge.arrow,Ve=ge.prefixCls,$e=(0,Ke.useMemo)(function(){var Wt;return typeof He=="function"?Wt=He():Wt=He,Wt},[He]),tt=en(Re,$e==null?void 0:$e.ref);return Ke.createElement(Ke.Fragment,null,Ye&&Ke.createElement("div",{className:"".concat(Ve,"-arrow")}),Ke.cloneElement($e,{ref:sn($e)?tt:void 0}))}),Fn=yr,or={adjustX:1,adjustY:1},Dr=[0,0],Fr={topLeft:{points:["bl","tl"],overflow:or,offset:[0,-4],targetOffset:Dr},top:{points:["bc","tc"],overflow:or,offset:[0,-4],targetOffset:Dr},topRight:{points:["br","tr"],overflow:or,offset:[0,-4],targetOffset:Dr},bottomLeft:{points:["tl","bl"],overflow:or,offset:[0,4],targetOffset:Dr},bottom:{points:["tc","bc"],overflow:or,offset:[0,4],targetOffset:Dr},bottomRight:{points:["tr","br"],overflow:or,offset:[0,4],targetOffset:Dr}},hr=Fr,_r=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Mi(ge,Re){var He,Ye=ge.arrow,Ve=Ye===void 0?!1:Ye,$e=ge.prefixCls,tt=$e===void 0?"rc-dropdown":$e,Wt=ge.transitionName,on=ge.animation,Zn=ge.align,tr=ge.placement,Vn=tr===void 0?"bottomLeft":tr,Mn=ge.placements,En=Mn===void 0?hr:Mn,dn=ge.getPopupContainer,Gn=ge.showAction,xr=ge.hideAction,ar=ge.overlayClassName,ur=ge.overlayStyle,mr=ge.visible,Sr=ge.trigger,Tr=Sr===void 0?["hover"]:Sr,je=ge.autoFocus,Qe=ge.overlay,Rt=ge.children,kt=ge.onVisibleChange,vn=(0,ct.Z)(ge,_r),jn=Ke.useState(),vt=(0,me.Z)(jn,2),wt=vt[0],Ct=vt[1],Ft="visible"in ge?mr:wt,Ln=Ke.useRef(null),Yn=Ke.useRef(null),wn=Ke.useRef(null);Ke.useImperativeHandle(Re,function(){return Ln.current});var _n=function(Mr){Ct(Mr),kt==null||kt(Mr)};$n({visible:Ft,triggerRef:wn,onVisibleChange:_n,autoFocus:je,overlayRef:Yn});var wr=function(Mr){var li=ge.onOverlayClick;Ct(!1),li&&li(Mr)},Wr=function(){return Ke.createElement(Fn,{ref:Yn,overlay:Qe,prefixCls:tt,arrow:Ve})},Lr=function(){return typeof Qe=="function"?Wr:Wr()},dr=function(){var Mr=ge.minOverlayWidthMatchTrigger,li=ge.alignPoint;return"minOverlayWidthMatchTrigger"in ge?Mr:!li},Or=function(){var Mr=ge.openClassName;return Mr!==void 0?Mr:"".concat(tt,"-open")},jr=Ke.cloneElement(Rt,{className:be()((He=Rt.props)===null||He===void 0?void 0:He.className,Ft&&Or()),ref:sn(Rt)?en(wn,Rt.ref):void 0}),ti=xr;return!ti&&Tr.indexOf("contextMenu")!==-1&&(ti=["click"]),Ke.createElement(Te.Z,(0,Me.Z)({builtinPlacements:En},vn,{prefixCls:tt,ref:Ln,popupClassName:be()(ar,(0,ue.Z)({},"".concat(tt,"-show-arrow"),Ve)),popupStyle:ur,action:Tr,showAction:Gn,hideAction:ti,popupPlacement:Vn,popupAlign:Zn,popupTransitionName:Wt,popupAnimation:on,popupVisible:Ft,stretch:dr()?"minWidth":"",popup:Lr(),onPopupVisibleChange:_n,onPopupClick:wr,getPopupContainer:dn}),jr)}var zi=Ke.forwardRef(Mi),Gi=zi,pi=re(78595),Zt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Re){var He=Re.keyCode;if(Re.altKey&&!Re.ctrlKey||Re.metaKey||He>=Zt.F1&&He<=Zt.F12)return!1;switch(He){case Zt.ALT:case Zt.CAPS_LOCK:case Zt.CONTEXT_MENU:case Zt.CTRL:case Zt.DOWN:case Zt.END:case Zt.ESC:case Zt.HOME:case Zt.INSERT:case Zt.LEFT:case Zt.MAC_FF_META:case Zt.META:case Zt.NUMLOCK:case Zt.NUM_CENTER:case Zt.PAGE_DOWN:case Zt.PAGE_UP:case Zt.PAUSE:case Zt.PRINT_SCREEN:case Zt.RIGHT:case Zt.SHIFT:case Zt.UP:case Zt.WIN_KEY:case Zt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Re){if(Re>=Zt.ZERO&&Re<=Zt.NINE||Re>=Zt.NUM_ZERO&&Re<=Zt.NUM_MULTIPLY||Re>=Zt.A&&Re<=Zt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Re===0)return!0;switch(Re){case Zt.SPACE:case Zt.QUESTION_MARK:case Zt.NUM_PLUS:case Zt.NUM_MINUS:case Zt.NUM_PERIOD:case Zt.NUM_DIVISION:case Zt.SEMICOLON:case Zt.DASH:case Zt.EQUALS:case Zt.COMMA:case Zt.PERIOD:case Zt.SLASH:case Zt.APOSTROPHE:case Zt.SINGLE_QUOTE:case Zt.OPEN_SQUARE_BRACKET:case Zt.BACKSLASH:case Zt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Kn=Zt;function fr(ge,Re){var He=ge.prefixCls,Ye=ge.id,Ve=ge.tabs,$e=ge.locale,tt=ge.mobile,Wt=ge.moreIcon,on=Wt===void 0?"More":Wt,Zn=ge.moreTransitionName,tr=ge.style,Vn=ge.className,Mn=ge.editable,En=ge.tabBarGutter,dn=ge.rtl,Gn=ge.removeAriaLabel,xr=ge.onTabClick,ar=ge.getPopupContainer,ur=ge.popupClassName,mr=(0,Ke.useState)(!1),Sr=(0,me.Z)(mr,2),Tr=Sr[0],je=Sr[1],Qe=(0,Ke.useState)(null),Rt=(0,me.Z)(Qe,2),kt=Rt[0],vn=Rt[1],jn="".concat(Ye,"-more-popup"),vt="".concat(He,"-dropdown"),wt=kt!==null?"".concat(jn,"-").concat(kt):null,Ct=$e==null?void 0:$e.dropdownAriaLabel;function Ft(Lr,dr){Lr.preventDefault(),Lr.stopPropagation(),Mn.onEdit("remove",{key:dr,event:Lr})}var Ln=Ke.createElement(pi.ZP,{onClick:function(dr){var Or=dr.key,jr=dr.domEvent;xr(Or,jr),je(!1)},prefixCls:"".concat(vt,"-menu"),id:jn,tabIndex:-1,role:"listbox","aria-activedescendant":wt,selectedKeys:[kt],"aria-label":Ct!==void 0?Ct:"expanded dropdown"},Ve.map(function(Lr){var dr=Lr.closable,Or=Lr.disabled,jr=Lr.closeIcon,ti=Lr.key,Zr=Lr.label,Mr=fe(dr,jr,Mn,Or);return Ke.createElement(pi.sN,{key:ti,id:"".concat(jn,"-").concat(ti),role:"option","aria-controls":Ye&&"".concat(Ye,"-panel-").concat(ti),disabled:Or},Ke.createElement("span",null,Zr),Mr&&Ke.createElement("button",{type:"button","aria-label":Gn||"remove",tabIndex:0,className:"".concat(vt,"-menu-item-remove"),onClick:function(si){si.stopPropagation(),Ft(si,ti)}},jr||Mn.removeIcon||"\xD7"))}));function Yn(Lr){for(var dr=Ve.filter(function(Mr){return!Mr.disabled}),Or=dr.findIndex(function(Mr){return Mr.key===kt})||0,jr=dr.length,ti=0;ti<jr;ti+=1){Or=(Or+Lr+jr)%jr;var Zr=dr[Or];if(!Zr.disabled){vn(Zr.key);return}}}function wn(Lr){var dr=Lr.which;if(!Tr){[Kn.DOWN,Kn.SPACE,Kn.ENTER].includes(dr)&&(je(!0),Lr.preventDefault());return}switch(dr){case Kn.UP:Yn(-1),Lr.preventDefault();break;case Kn.DOWN:Yn(1),Lr.preventDefault();break;case Kn.ESC:je(!1);break;case Kn.SPACE:case Kn.ENTER:kt!==null&&xr(kt,Lr);break}}(0,Ke.useEffect)(function(){var Lr=document.getElementById(wt);Lr&&Lr.scrollIntoView&&Lr.scrollIntoView(!1)},[kt]),(0,Ke.useEffect)(function(){Tr||vn(null)},[Tr]);var _n=(0,ue.Z)({},dn?"marginRight":"marginLeft",En);Ve.length||(_n.visibility="hidden",_n.order=1);var wr=be()((0,ue.Z)({},"".concat(vt,"-rtl"),dn)),Wr=tt?null:Ke.createElement(Gi,{prefixCls:vt,overlay:Ln,trigger:["hover"],visible:Ve.length?Tr:!1,transitionName:Zn,onVisibleChange:je,overlayClassName:be()(wr,ur),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:ar},Ke.createElement("button",{type:"button",className:"".concat(He,"-nav-more"),style:_n,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":jn,id:"".concat(Ye,"-more"),"aria-expanded":Tr,onKeyDown:wn},on));return Ke.createElement("div",{className:be()("".concat(He,"-nav-operations"),Vn),style:tr,ref:Re},Wr,Ke.createElement(pe,{prefixCls:He,locale:$e,editable:Mn}))}var qn=Ke.memo(Ke.forwardRef(fr),function(ge,Re){return Re.tabMoving});function Br(ge){var Re,He=ge.prefixCls,Ye=ge.id,Ve=ge.active,$e=ge.tab,tt=$e.key,Wt=$e.label,on=$e.disabled,Zn=$e.closeIcon,tr=ge.closable,Vn=ge.renderWrapper,Mn=ge.removeAriaLabel,En=ge.editable,dn=ge.onClick,Gn=ge.onFocus,xr=ge.style,ar="".concat(He,"-tab"),ur=fe(tr,Zn,En,on);function mr(je){on||dn(je)}function Sr(je){je.preventDefault(),je.stopPropagation(),En.onEdit("remove",{key:tt,event:je})}var Tr=Ke.createElement("div",{key:tt,"data-node-key":Pe(tt),className:be()(ar,(Re={},(0,ue.Z)(Re,"".concat(ar,"-with-remove"),ur),(0,ue.Z)(Re,"".concat(ar,"-active"),Ve),(0,ue.Z)(Re,"".concat(ar,"-disabled"),on),Re)),style:xr,onClick:mr},Ke.createElement("div",{role:"tab","aria-selected":Ve,id:Ye&&"".concat(Ye,"-tab-").concat(tt),className:"".concat(ar,"-btn"),"aria-controls":Ye&&"".concat(Ye,"-panel-").concat(tt),"aria-disabled":on,tabIndex:on?null:0,onClick:function(Qe){Qe.stopPropagation(),mr(Qe)},onKeyDown:function(Qe){[Kn.SPACE,Kn.ENTER].includes(Qe.which)&&(Qe.preventDefault(),mr(Qe))},onFocus:Gn},Wt),ur&&Ke.createElement("button",{type:"button","aria-label":Mn||"remove",tabIndex:0,className:"".concat(ar,"-remove"),onClick:function(Qe){Qe.stopPropagation(),Sr(Qe)}},Zn||En.removeIcon||"\xD7"));return Vn?Vn(Tr):Tr}var Kr=Br,Rr=function(Re){return+setTimeout(Re,16)},gr=function(Re){return clearTimeout(Re)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Rr=function(Re){return window.requestAnimationFrame(Re)},gr=function(Re){return window.cancelAnimationFrame(Re)});var mt=0,Ot=new Map;function Xt(ge){Ot.delete(ge)}var kn=function(Re){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;mt+=1;var Ye=mt;function Ve($e){if($e===0)Xt(Ye),Re();else{var tt=Rr(function(){Ve($e-1)});Ot.set(Ye,tt)}}return Ve(He),Ye};kn.cancel=function(ge){var Re=Ot.get(ge);return Xt(Re),gr(Re)};var lt=kn,Kt=function(Re){var He=Re.activeTabOffset,Ye=Re.horizontal,Ve=Re.rtl,$e=Re.indicatorSize,tt=(0,Ke.useState)(),Wt=(0,me.Z)(tt,2),on=Wt[0],Zn=Wt[1],tr=(0,Ke.useRef)(),Vn=function(dn){return typeof $e=="function"?$e(dn):typeof $e=="number"?$e:dn};function Mn(){lt.cancel(tr.current)}return(0,Ke.useEffect)(function(){var En={};return He&&(Ye?(Ve?(En.right=He.right+He.width/2,En.transform="translateX(50%)"):(En.left=He.left+He.width/2,En.transform="translateX(-50%)"),En.width=Vn(He.width)):(En.top=He.top+He.height/2,En.transform="translateY(-50%)",En.height=Vn(He.height))),Mn(),tr.current=lt(function(){Zn(En)}),Mn},[He,Ye,Ve,$e]),{style:on}},mn=Kt,nn=function(Re){var He=Re.current||{},Ye=He.offsetWidth,Ve=Ye===void 0?0:Ye,$e=He.offsetHeight,tt=$e===void 0?0:$e;return[Ve,tt]},In=function(Re,He){return Re[He?0:1]};function Pn(ge,Re){var He,Ye=Ke.useContext(Ze),Ve=Ye.prefixCls,$e=Ye.tabs,tt=ge.className,Wt=ge.style,on=ge.id,Zn=ge.animated,tr=ge.activeKey,Vn=ge.rtl,Mn=ge.extra,En=ge.editable,dn=ge.locale,Gn=ge.tabPosition,xr=ge.tabBarGutter,ar=ge.children,ur=ge.onTabClick,mr=ge.onTabScroll,Sr=ge.indicatorSize,Tr=(0,Ke.useRef)(),je=(0,Ke.useRef)(),Qe=(0,Ke.useRef)(),Rt=(0,Ke.useRef)(),kt=(0,Ke.useRef)(),vn=(0,Ke.useRef)(),jn=(0,Ke.useRef)(),vt=Gn==="top"||Gn==="bottom",wt=St(0,function(Ya,Da){vt&&mr&&mr({direction:Ya>Da?"left":"right"})}),Ct=(0,me.Z)(wt,2),Ft=Ct[0],Ln=Ct[1],Yn=St(0,function(Ya,Da){!vt&&mr&&mr({direction:Ya>Da?"top":"bottom"})}),wn=(0,me.Z)(Yn,2),_n=wn[0],wr=wn[1],Wr=(0,Ke.useState)([0,0]),Lr=(0,me.Z)(Wr,2),dr=Lr[0],Or=Lr[1],jr=(0,Ke.useState)([0,0]),ti=(0,me.Z)(jr,2),Zr=ti[0],Mr=ti[1],li=(0,Ke.useState)([0,0]),si=(0,me.Z)(li,2),Yi=si[0],qi=si[1],ia=(0,Ke.useState)([0,0]),_i=(0,me.Z)(ia,2),Wi=_i[0],Li=_i[1],da=On(new Map),Bi=(0,me.Z)(da,2),fi=Bi[0],Ji=Bi[1],va=Ae($e,fi,Zr[0]),oo=In(dr,vt),Ja=In(Zr,vt),Za=In(Yi,vt),Ha=In(Wi,vt),Ia=oo<Ja+Za,aa=Ia?oo-Ha:oo-Za,mo="".concat(Ve,"-nav-operations-hidden"),ba=0,Zi=0;vt&&Vn?(ba=0,Zi=Math.max(0,Ja-aa)):(ba=Math.min(0,aa-Ja),Zi=0);function Oa(Ya){return Ya<ba?ba:Ya>Zi?Zi:Ya}var no=(0,Ke.useRef)(),Ra=(0,Ke.useState)(),_a=(0,me.Z)(Ra,2),oa=_a[0],ro=_a[1];function bo(){ro(Date.now())}function co(){window.clearTimeout(no.current)}Qt(Rt,function(Ya,Da){function po(ko,fs){ko(function(ss){var Fl=Oa(ss+fs);return Fl})}return Ia?(vt?po(Ln,Ya):po(wr,Da),co(),bo(),!0):!1}),(0,Ke.useEffect)(function(){return co(),oa&&(no.current=window.setTimeout(function(){ro(0)},100)),co},[oa]);var xo=yn(va,aa,vt?Ft:_n,Ja,Za,Ha,(0,we.Z)((0,we.Z)({},ge),{},{tabs:$e})),Ao=(0,me.Z)(xo,2),Xo=Ao[0],uo=Ao[1],Co=dt(function(){var Ya=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tr,Da=va.get(Ya)||{width:0,height:0,left:0,right:0,top:0};if(vt){var po=Ft;Vn?Da.right<Ft?po=Da.right:Da.right+Da.width>Ft+aa&&(po=Da.right+Da.width-aa):Da.left<-Ft?po=-Da.left:Da.left+Da.width>-Ft+aa&&(po=-(Da.left+Da.width-aa)),wr(0),Ln(Oa(po))}else{var ko=_n;Da.top<-_n?ko=-Da.top:Da.top+Da.height>-_n+aa&&(ko=-(Da.top+Da.height-aa)),Ln(0),wr(Oa(ko))}}),os={};Gn==="top"||Gn==="bottom"?os[Vn?"marginRight":"marginLeft"]=xr:os.marginTop=xr;var rs=$e.map(function(Ya,Da){var po=Ya.key;return Ke.createElement(Kr,{id:on,prefixCls:Ve,key:po,tab:Ya,style:Da===0?void 0:os,closable:Ya.closable,editable:En,active:po===tr,renderWrapper:ar,removeAriaLabel:dn==null?void 0:dn.removeAriaLabel,onClick:function(fs){ur(po,fs)},onFocus:function(){Co(po),bo(),Rt.current&&(Vn||(Rt.current.scrollLeft=0),Rt.current.scrollTop=0)}})}),cs=function(){return Ji(function(){var Da=new Map;return $e.forEach(function(po){var ko,fs=po.key,ss=(ko=kt.current)===null||ko===void 0?void 0:ko.querySelector('[data-node-key="'.concat(Pe(fs),'"]'));ss&&Da.set(fs,{width:ss.offsetWidth,height:ss.offsetHeight,left:ss.offsetLeft,top:ss.offsetTop})}),Da})};(0,Ke.useEffect)(function(){cs()},[$e.map(function(Ya){return Ya.key}).join("_")]);var No=ir(function(){var Ya=nn(Tr),Da=nn(je),po=nn(Qe);Or([Ya[0]-Da[0]-po[0],Ya[1]-Da[1]-po[1]]);var ko=nn(jn);qi(ko);var fs=nn(vn);Li(fs);var ss=nn(kt);Mr([ss[0]-ko[0],ss[1]-ko[1]]),cs()}),So=$e.slice(0,Xo),wa=$e.slice(uo+1),Na=[].concat((0,Ne.Z)(So),(0,Ne.Z)(wa)),io=va.get(tr),go=mn({activeTabOffset:io,horizontal:vt,rtl:Vn,indicatorSize:Sr}),Uo=go.style;(0,Ke.useEffect)(function(){Co()},[tr,ba,Zi,Qn(io),Qn(va),vt]),(0,Ke.useEffect)(function(){No()},[Vn]);var us=!!Na.length,xs="".concat(Ve,"-nav-wrap"),Js,Ks,ds,Hs;return vt?Vn?(Ks=Ft>0,Js=Ft!==Zi):(Js=Ft<0,Ks=Ft!==ba):(ds=_n<0,Hs=_n!==ba),Ke.createElement(jt.Z,{onResize:No},Ke.createElement("div",{ref:Bn(Re,Tr),role:"tablist",className:be()("".concat(Ve,"-nav"),tt),style:Wt,onKeyDown:function(){bo()}},Ke.createElement(le,{ref:je,position:"left",extra:Mn,prefixCls:Ve}),Ke.createElement(jt.Z,{onResize:No},Ke.createElement("div",{className:be()(xs,(He={},(0,ue.Z)(He,"".concat(xs,"-ping-left"),Js),(0,ue.Z)(He,"".concat(xs,"-ping-right"),Ks),(0,ue.Z)(He,"".concat(xs,"-ping-top"),ds),(0,ue.Z)(He,"".concat(xs,"-ping-bottom"),Hs),He)),ref:Rt},Ke.createElement(jt.Z,{onResize:No},Ke.createElement("div",{ref:kt,className:"".concat(Ve,"-nav-list"),style:{transform:"translate(".concat(Ft,"px, ").concat(_n,"px)"),transition:oa?"none":void 0}},rs,Ke.createElement(pe,{ref:jn,prefixCls:Ve,locale:dn,editable:En,style:(0,we.Z)((0,we.Z)({},rs.length===0?void 0:os),{},{visibility:us?"hidden":null})}),Ke.createElement("div",{className:be()("".concat(Ve,"-ink-bar"),(0,ue.Z)({},"".concat(Ve,"-ink-bar-animated"),Zn.inkBar)),style:Uo}))))),Ke.createElement(qn,(0,Me.Z)({},ge,{removeAriaLabel:dn==null?void 0:dn.removeAriaLabel,ref:vn,prefixCls:Ve,tabs:Na,className:!us&&mo,tabMoving:!!oa})),Ke.createElement(le,{ref:Qe,position:"right",extra:Mn,prefixCls:Ve})))}var vr=Ke.forwardRef(Pn),ni=["renderTabBar"],zr=["label","key"];function Pr(ge){var Re=ge.renderTabBar,He=(0,ct.Z)(ge,ni),Ye=Ke.useContext(Ze),Ve=Ye.tabs;if(Re){var $e=(0,we.Z)((0,we.Z)({},He),{},{panes:Ve.map(function(tt){var Wt=tt.label,on=tt.key,Zn=(0,ct.Z)(tt,zr);return Ke.createElement(yt,(0,Me.Z)({tab:Wt,key:on,tabKey:on},Zn))})});return Re($e,vr)}return Ke.createElement(vr,He)}var Yr={},Qr=[],Ht=function(Re){Qr.push(Re)};function Tt(ge,Re){if(0)var He}function Jt(ge,Re){if(0)var He}function er(){Yr={}}function kr(ge,Re,He){!Re&&!Yr[He]&&(ge(!1,He),Yr[He]=!0)}function Rn(ge,Re){kr(Tt,ge,Re)}function Jn(ge,Re){kr(Jt,ge,Re)}Rn.preMessage=Ht,Rn.resetWarned=er,Rn.noteOnce=Jn;var sr=null;function Ir(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Re;return ge===!1?Re={inkBar:!1,tabPane:!1}:ge===!0?Re={inkBar:!0,tabPane:!1}:Re=(0,we.Z)({inkBar:!0},(0,Ie.Z)(ge)==="object"?ge:{}),Re.tabPaneMotion&&Re.tabPane===void 0&&(Re.tabPane=!0),!Re.tabPaneMotion&&Re.tabPane&&(Re.tabPane=!1),Re}var Xr=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],Wn=0;function Ai(ge,Re){var He,Ye=ge.id,Ve=ge.prefixCls,$e=Ve===void 0?"rc-tabs":Ve,tt=ge.className,Wt=ge.items,on=ge.direction,Zn=ge.activeKey,tr=ge.defaultActiveKey,Vn=ge.editable,Mn=ge.animated,En=ge.tabPosition,dn=En===void 0?"top":En,Gn=ge.tabBarGutter,xr=ge.tabBarStyle,ar=ge.tabBarExtraContent,ur=ge.locale,mr=ge.moreIcon,Sr=ge.moreTransitionName,Tr=ge.destroyInactiveTabPane,je=ge.renderTabBar,Qe=ge.onChange,Rt=ge.onTabClick,kt=ge.onTabScroll,vn=ge.getPopupContainer,jn=ge.popupClassName,vt=ge.indicatorSize,wt=(0,ct.Z)(ge,Xr),Ct=Ke.useMemo(function(){return(Wt||[]).filter(function(Li){return Li&&(0,Ie.Z)(Li)==="object"&&"key"in Li})},[Wt]),Ft=on==="rtl",Ln=Ir(Mn),Yn=(0,Ke.useState)(!1),wn=(0,me.Z)(Yn,2),_n=wn[0],wr=wn[1];(0,Ke.useEffect)(function(){wr(st())},[]);var Wr=xe(function(){var Li;return(Li=Ct[0])===null||Li===void 0?void 0:Li.key},{value:Zn,defaultValue:tr}),Lr=(0,me.Z)(Wr,2),dr=Lr[0],Or=Lr[1],jr=(0,Ke.useState)(function(){return Ct.findIndex(function(Li){return Li.key===dr})}),ti=(0,me.Z)(jr,2),Zr=ti[0],Mr=ti[1];(0,Ke.useEffect)(function(){var Li=Ct.findIndex(function(Bi){return Bi.key===dr});if(Li===-1){var da;Li=Math.max(0,Math.min(Zr,Ct.length-1)),Or((da=Ct[Li])===null||da===void 0?void 0:da.key)}Mr(Li)},[Ct.map(function(Li){return Li.key}).join("_"),dr,Zr]);var li=xe(null,{value:Ye}),si=(0,me.Z)(li,2),Yi=si[0],qi=si[1];(0,Ke.useEffect)(function(){Ye||(qi("rc-tabs-".concat(Wn)),Wn+=1)},[]);function ia(Li,da){Rt==null||Rt(Li,da);var Bi=Li!==dr;Or(Li),Bi&&(Qe==null||Qe(Li))}var _i={id:Yi,activeKey:dr,animated:Ln,tabPosition:dn,rtl:Ft,mobile:_n},Wi=(0,we.Z)((0,we.Z)({},_i),{},{editable:Vn,locale:ur,moreIcon:mr,moreTransitionName:Sr,tabBarGutter:Gn,onTabClick:ia,onTabScroll:kt,extra:ar,style:xr,panes:null,getPopupContainer:vn,popupClassName:jn,indicatorSize:vt});return Ke.createElement(Ze.Provider,{value:{tabs:Ct,prefixCls:$e}},Ke.createElement("div",(0,Me.Z)({ref:Re,id:Ye,className:be()($e,"".concat($e,"-").concat(dn),(He={},(0,ue.Z)(He,"".concat($e,"-mobile"),_n),(0,ue.Z)(He,"".concat($e,"-editable"),Vn),(0,ue.Z)(He,"".concat($e,"-rtl"),Ft),He),tt)},wt),Ke.createElement(Pr,(0,Me.Z)({},Wi,{renderTabBar:je})),Ke.createElement(ft,(0,Me.Z)({destroyInactiveTabPane:Tr},_i,{animated:Ln}))))}var xi=Ke.forwardRef(Ai),Sa=xi,fa=Sa,na=re(53124),Ni=re(98675),Qi=()=>null,ga=re(33603);const Ba={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Oi(ge){let Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},He;return Re===!1?He={inkBar:!1,tabPane:!1}:Re===!0?He={inkBar:!0,tabPane:!0}:He=Object.assign({inkBar:!0},typeof Re=="object"?Re:{}),He.tabPane&&(He.tabPaneMotion=Object.assign(Object.assign({},Ba),{motionName:(0,ga.m)(ge,"switch")})),He}var ca=re(37419),Ca=function(ge,Re){var He={};for(var Ye in ge)Object.prototype.hasOwnProperty.call(ge,Ye)&&Re.indexOf(Ye)<0&&(He[Ye]=ge[Ye]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Ye=Object.getOwnPropertySymbols(ge);Ve<Ye.length;Ve++)Re.indexOf(Ye[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ye[Ve])&&(He[Ye[Ve]]=ge[Ye[Ve]]);return He};function Qa(ge){return ge.filter(Re=>Re)}function za(ge,Re){if(ge)return ge;const He=(0,ca.Z)(Re).map(Ye=>{if(Ke.isValidElement(Ye)){const{key:Ve,props:$e}=Ye,tt=$e||{},{tab:Wt}=tt,on=Ca(tt,["tab"]);return Object.assign(Object.assign({key:String(Ve)},on),{label:Wt})}return null});return Qa(He)}var Pi=re(14747),an=re(67968),Vt=re(45503),zn=re(67771),Er=ge=>{const{componentCls:Re,motionDurationSlow:He}=ge;return[{[Re]:{[`${Re}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${He}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${He}`}}}}},[(0,zn.oN)(ge,"slide-up"),(0,zn.oN)(ge,"slide-down")]]};const qr=ge=>{const{componentCls:Re,tabsCardPadding:He,cardBg:Ye,cardGutter:Ve,colorBorderSecondary:$e,itemSelectedColor:tt}=ge;return{[`${Re}-card`]:{[`> ${Re}-nav, > div > ${Re}-nav`]:{[`${Re}-tab`]:{margin:0,padding:He,background:Ye,border:`${ge.lineWidth}px ${ge.lineType} ${$e}`,transition:`all ${ge.motionDurationSlow} ${ge.motionEaseInOut}`},[`${Re}-tab-active`]:{color:tt,background:ge.colorBgContainer},[`${Re}-ink-bar`]:{visibility:"hidden"}},[`&${Re}-top, &${Re}-bottom`]:{[`> ${Re}-nav, > div > ${Re}-nav`]:{[`${Re}-tab + ${Re}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Ve}px`}}}},[`&${Re}-top`]:{[`> ${Re}-nav, > div > ${Re}-nav`]:{[`${Re}-tab`]:{borderRadius:`${ge.borderRadiusLG}px ${ge.borderRadiusLG}px 0 0`},[`${Re}-tab-active`]:{borderBottomColor:ge.colorBgContainer}}},[`&${Re}-bottom`]:{[`> ${Re}-nav, > div > ${Re}-nav`]:{[`${Re}-tab`]:{borderRadius:`0 0 ${ge.borderRadiusLG}px ${ge.borderRadiusLG}px`},[`${Re}-tab-active`]:{borderTopColor:ge.colorBgContainer}}},[`&${Re}-left, &${Re}-right`]:{[`> ${Re}-nav, > div > ${Re}-nav`]:{[`${Re}-tab + ${Re}-tab`]:{marginTop:`${Ve}px`}}},[`&${Re}-left`]:{[`> ${Re}-nav, > div > ${Re}-nav`]:{[`${Re}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ge.borderRadiusLG}px 0 0 ${ge.borderRadiusLG}px`}},[`${Re}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:ge.colorBgContainer}}}},[`&${Re}-right`]:{[`> ${Re}-nav, > div > ${Re}-nav`]:{[`${Re}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ge.borderRadiusLG}px ${ge.borderRadiusLG}px 0`}},[`${Re}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:ge.colorBgContainer}}}}}}},di=ge=>{const{componentCls:Re,itemHoverColor:He,dropdownEdgeChildVerticalPadding:Ye}=ge;return{[`${Re}-dropdown`]:Object.assign(Object.assign({},(0,Pi.Wf)(ge)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ge.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Re}-dropdown-menu`]:{maxHeight:ge.tabsDropdownHeight,margin:0,padding:`${Ye}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:ge.colorBgContainer,backgroundClip:"padding-box",borderRadius:ge.borderRadiusLG,outline:"none",boxShadow:ge.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Pi.vS),{display:"flex",alignItems:"center",minWidth:ge.tabsDropdownWidth,margin:0,padding:`${ge.paddingXXS}px ${ge.paddingSM}px`,color:ge.colorText,fontWeight:"normal",fontSize:ge.fontSize,lineHeight:ge.lineHeight,cursor:"pointer",transition:`all ${ge.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:ge.marginSM},color:ge.colorTextDescription,fontSize:ge.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:He}},"&:hover":{background:ge.controlItemBgHover},"&-disabled":{"&, &:hover":{color:ge.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},bi=ge=>{const{componentCls:Re,margin:He,colorBorderSecondary:Ye,horizontalMargin:Ve,verticalItemPadding:$e,verticalItemMargin:tt}=ge;return{[`${Re}-top, ${Re}-bottom`]:{flexDirection:"column",[`> ${Re}-nav, > div > ${Re}-nav`]:{margin:Ve,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ge.lineWidth}px ${ge.lineType} ${Ye}`,content:"''"},[`${Re}-ink-bar`]:{height:ge.lineWidthBold,"&-animated":{transition:`width ${ge.motionDurationSlow}, left ${ge.motionDurationSlow},
|
|
|
right ${ge.motionDurationSlow}`}},[`${Re}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:ge.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:ge.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:ge.boxShadowTabsOverflowRight},[`&${Re}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Re}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Re}-top`]:{[`> ${Re}-nav,
|
|
|
> div > ${Re}-nav`]:{"&::before":{bottom:0},[`${Re}-ink-bar`]:{bottom:0}}},[`${Re}-bottom`]:{[`> ${Re}-nav, > div > ${Re}-nav`]:{order:1,marginTop:`${He}px`,marginBottom:0,"&::before":{top:0},[`${Re}-ink-bar`]:{top:0}},[`> ${Re}-content-holder, > div > ${Re}-content-holder`]:{order:0}},[`${Re}-left, ${Re}-right`]:{[`> ${Re}-nav, > div > ${Re}-nav`]:{flexDirection:"column",minWidth:ge.controlHeight*1.25,[`${Re}-tab`]:{padding:$e,textAlign:"center"},[`${Re}-tab + ${Re}-tab`]:{margin:tt},[`${Re}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:ge.controlHeight},"&::before":{top:0,boxShadow:ge.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:ge.boxShadowTabsOverflowBottom},[`&${Re}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Re}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Re}-ink-bar`]:{width:ge.lineWidthBold,"&-animated":{transition:`height ${ge.motionDurationSlow}, top ${ge.motionDurationSlow}`}},[`${Re}-nav-list, ${Re}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Re}-left`]:{[`> ${Re}-nav, > div > ${Re}-nav`]:{[`${Re}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Re}-content-holder, > div > ${Re}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${ge.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${ge.lineWidth}px ${ge.lineType} ${ge.colorBorder}`},[`> ${Re}-content > ${Re}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:ge.paddingLG}}}},[`${Re}-right`]:{[`> ${Re}-nav, > div > ${Re}-nav`]:{order:1,[`${Re}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Re}-content-holder, > div > ${Re}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-ge.lineWidth},borderRight:{_skip_check_:!0,value:`${ge.lineWidth}px ${ge.lineType} ${ge.colorBorder}`},[`> ${Re}-content > ${Re}-tabpane`]:{paddingRight:{_skip_check_:!0,value:ge.paddingLG}}}}}},ki=ge=>{const{componentCls:Re,cardPaddingSM:He,cardPaddingLG:Ye,horizontalItemPaddingSM:Ve,horizontalItemPaddingLG:$e}=ge;return{[Re]:{"&-small":{[`> ${Re}-nav`]:{[`${Re}-tab`]:{padding:Ve,fontSize:ge.titleFontSizeSM}}},"&-large":{[`> ${Re}-nav`]:{[`${Re}-tab`]:{padding:$e,fontSize:ge.titleFontSizeLG}}}},[`${Re}-card`]:{[`&${Re}-small`]:{[`> ${Re}-nav`]:{[`${Re}-tab`]:{padding:He}},[`&${Re}-bottom`]:{[`> ${Re}-nav ${Re}-tab`]:{borderRadius:`0 0 ${ge.borderRadius}px ${ge.borderRadius}px`}},[`&${Re}-top`]:{[`> ${Re}-nav ${Re}-tab`]:{borderRadius:`${ge.borderRadius}px ${ge.borderRadius}px 0 0`}},[`&${Re}-right`]:{[`> ${Re}-nav ${Re}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ge.borderRadius}px ${ge.borderRadius}px 0`}}},[`&${Re}-left`]:{[`> ${Re}-nav ${Re}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ge.borderRadius}px 0 0 ${ge.borderRadius}px`}}}},[`&${Re}-large`]:{[`> ${Re}-nav`]:{[`${Re}-tab`]:{padding:Ye}}}}}},Si=ge=>{const{componentCls:Re,itemActiveColor:He,itemHoverColor:Ye,iconCls:Ve,tabsHorizontalItemMargin:$e,horizontalItemPadding:tt,itemSelectedColor:Wt,itemColor:on}=ge,Zn=`${Re}-tab`;return{[Zn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:tt,fontSize:ge.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:on,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:He}},(0,Pi.Qy)(ge)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-ge.marginXXS},marginLeft:{_skip_check_:!0,value:ge.marginXS},color:ge.colorTextDescription,fontSize:ge.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${ge.motionDurationSlow}`,"&:hover":{color:ge.colorTextHeading}},"&:hover":{color:Ye},[`&${Zn}-active ${Zn}-btn`]:{color:Wt,textShadow:ge.tabsActiveTextShadow},[`&${Zn}-disabled`]:{color:ge.colorTextDisabled,cursor:"not-allowed"},[`&${Zn}-disabled ${Zn}-btn, &${Zn}-disabled ${Re}-remove`]:{"&:focus, &:active":{color:ge.colorTextDisabled}},[`& ${Zn}-remove ${Ve}`]:{margin:0},[Ve]:{marginRight:{_skip_check_:!0,value:ge.marginSM}}},[`${Zn} + ${Zn}`]:{margin:{_skip_check_:!0,value:$e}}}},Ri=ge=>{const{componentCls:Re,tabsHorizontalItemMarginRTL:He,iconCls:Ye,cardGutter:Ve}=ge;return{[`${Re}-rtl`]:{direction:"rtl",[`${Re}-nav`]:{[`${Re}-tab`]:{margin:{_skip_check_:!0,value:He},[`${Re}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ye]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${ge.marginSM}px`}},[`${Re}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${ge.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${ge.marginXXS}px`},[Ye]:{margin:0}}}},[`&${Re}-left`]:{[`> ${Re}-nav`]:{order:1},[`> ${Re}-content-holder`]:{order:0}},[`&${Re}-right`]:{[`> ${Re}-nav`]:{order:0},[`> ${Re}-content-holder`]:{order:1}},[`&${Re}-card${Re}-top, &${Re}-card${Re}-bottom`]:{[`> ${Re}-nav, > div > ${Re}-nav`]:{[`${Re}-tab + ${Re}-tab`]:{marginRight:{_skip_check_:!0,value:Ve},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Re}-dropdown-rtl`]:{direction:"rtl"},[`${Re}-menu-item`]:{[`${Re}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},ra=ge=>{const{componentCls:Re,tabsCardPadding:He,cardHeight:Ye,cardGutter:Ve,itemHoverColor:$e,itemActiveColor:tt,colorBorderSecondary:Wt}=ge;return{[Re]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pi.Wf)(ge)),{display:"flex",[`> ${Re}-nav, > div > ${Re}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Re}-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 ${ge.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Re}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${ge.motionDurationSlow}`},[`${Re}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Re}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Re}-nav-more`]:{position:"relative",padding:He,background:"transparent",border:0,color:ge.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:ge.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Re}-nav-add`]:Object.assign({minWidth:Ye,marginLeft:{_skip_check_:!0,value:Ve},padding:`0 ${ge.paddingXS}px`,background:"transparent",border:`${ge.lineWidth}px ${ge.lineType} ${Wt}`,borderRadius:`${ge.borderRadiusLG}px ${ge.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:ge.colorText,transition:`all ${ge.motionDurationSlow} ${ge.motionEaseInOut}`,"&:hover":{color:$e},"&:active, &:focus:not(:focus-visible)":{color:tt}},(0,Pi.Qy)(ge))},[`${Re}-extra-content`]:{flex:"none"},[`${Re}-ink-bar`]:{position:"absolute",background:ge.inkBarColor,pointerEvents:"none"}}),Si(ge)),{[`${Re}-content`]:{position:"relative",width:"100%"},[`${Re}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Re}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Re}-centered`]:{[`> ${Re}-nav, > div > ${Re}-nav`]:{[`${Re}-nav-wrap`]:{[`&:not([class*='${Re}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var oi=(0,an.Z)("Tabs",ge=>{const Re=(0,Vt.TS)(ge,{tabsCardPadding:ge.cardPadding||`${(ge.cardHeight-Math.round(ge.fontSize*ge.lineHeight))/2-ge.lineWidth}px ${ge.padding}px`,dropdownEdgeChildVerticalPadding:ge.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ge.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${ge.horizontalItemGutter}px`});return[ki(Re),Ri(Re),bi(Re),di(Re),qr(Re),ra(Re),Er(Re)]},ge=>{const Re=ge.controlHeightLG;return{zIndexPopup:ge.zIndexPopupBase+50,cardBg:ge.colorFillAlter,cardHeight:Re,cardPadding:"",cardPaddingSM:`${ge.paddingXXS*1.5}px ${ge.padding}px`,cardPaddingLG:`${ge.paddingXS}px ${ge.padding}px ${ge.paddingXXS*1.5}px`,titleFontSize:ge.fontSize,titleFontSizeLG:ge.fontSizeLG,titleFontSizeSM:ge.fontSize,inkBarColor:ge.colorPrimary,horizontalMargin:`0 0 ${ge.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${ge.paddingSM}px 0`,horizontalItemPaddingSM:`${ge.paddingXS}px 0`,horizontalItemPaddingLG:`${ge.padding}px 0`,verticalItemPadding:`${ge.paddingXS}px ${ge.paddingLG}px`,verticalItemMargin:`${ge.margin}px 0 0 0`,itemColor:ge.colorText,itemSelectedColor:ge.colorPrimary,itemHoverColor:ge.colorPrimaryHover,itemActiveColor:ge.colorPrimaryActive,cardGutter:ge.marginXXS/2}}),hn=function(ge,Re){var He={};for(var Ye in ge)Object.prototype.hasOwnProperty.call(ge,Ye)&&Re.indexOf(Ye)<0&&(He[Ye]=ge[Ye]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Ye=Object.getOwnPropertySymbols(ge);Ve<Ye.length;Ve++)Re.indexOf(Ye[Ve])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ye[Ve])&&(He[Ye[Ve]]=ge[Ye[Ve]]);return He};const Dn=ge=>{const{type:Re,className:He,rootClassName:Ye,size:Ve,onEdit:$e,hideAdd:tt,centered:Wt,addIcon:on,popupClassName:Zn,children:tr,items:Vn,animated:Mn,style:En,indicatorSize:dn}=ge,Gn=hn(ge,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:xr,moreIcon:ar=Ke.createElement(Le.Z,null)}=Gn,{direction:ur,tabs:mr,getPrefixCls:Sr,getPopupContainer:Tr}=Ke.useContext(na.E_),je=Sr("tabs",xr),[Qe,Rt]=oi(je);let kt;Re==="editable-card"&&(kt={onEdit:(Ft,Ln)=>{let{key:Yn,event:wn}=Ln;$e==null||$e(Ft==="add"?wn:Yn,Ft)},removeIcon:Ke.createElement(ie.Z,null),addIcon:on||Ke.createElement(Oe.Z,null),showAdd:tt!==!0});const vn=Sr(),jn=za(Vn,tr),vt=Oi(je,Mn),wt=(0,Ni.Z)(Ve),Ct=Object.assign(Object.assign({},mr==null?void 0:mr.style),En);return Qe(Ke.createElement(fa,Object.assign({direction:ur,getPopupContainer:Tr,moreTransitionName:`${vn}-slide-up`},Gn,{items:jn,className:be()({[`${je}-${wt}`]:wt,[`${je}-card`]:["card","editable-card"].includes(Re),[`${je}-editable-card`]:Re==="editable-card",[`${je}-centered`]:Wt},mr==null?void 0:mr.className,He,Ye,Rt),popupClassName:be()(Zn,Rt),style:Ct,editable:kt,moreIcon:ar,prefixCls:je,animated:vt,indicatorSize:dn!=null?dn:mr==null?void 0:mr.indicatorSize})))};Dn.TabPane=Qi;var Xn=Dn},79870:function(bn,Ut,re){"use strict";re.d(Ut,{default:function(){return oi}});var ie=re(87462),Le=re(4942),Oe=re(71002),Ue=re(1413),be=re(74902),Me=re(15671),ue=re(43144),we=re(97326),me=re(60136),Ie=re(51630),ct=re(94184),Ke=re.n(ct),st={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Dn){var Xn=Dn.keyCode;if(Dn.altKey&&!Dn.ctrlKey||Dn.metaKey||Xn>=st.F1&&Xn<=st.F12)return!1;switch(Xn){case st.ALT:case st.CAPS_LOCK:case st.CONTEXT_MENU:case st.CTRL:case st.DOWN:case st.END:case st.ESC:case st.HOME:case st.INSERT:case st.LEFT:case st.MAC_FF_META:case st.META:case st.NUMLOCK:case st.NUM_CENTER:case st.PAGE_DOWN:case st.PAGE_UP:case st.PAUSE:case st.PRINT_SCREEN:case st.RIGHT:case st.SHIFT:case st.UP:case st.WIN_KEY:case st.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Dn){if(Dn>=st.ZERO&&Dn<=st.NINE||Dn>=st.NUM_ZERO&&Dn<=st.NUM_MULTIPLY||Dn>=st.A&&Dn<=st.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Dn===0)return!0;switch(Dn){case st.SPACE:case st.QUESTION_MARK:case st.NUM_PLUS:case st.NUM_MINUS:case st.NUM_PERIOD:case st.NUM_DIVISION:case st.SEMICOLON:case st.DASH:case st.EQUALS:case st.COMMA:case st.PERIOD:case st.SLASH:case st.APOSTROPHE:case st.SINGLE_QUOTE:case st.OPEN_SQUARE_BRACKET:case st.BACKSLASH:case st.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},dt=st,Xe=re(34952),We=re(72978),ye=re(67294),it=re(69610);function Lt(hn){var Dn=hn.dropPosition,Xn=hn.dropLevelOffset,ge=hn.indent,Re={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Dn){case-1:Re.top=0,Re.left=-Xn*ge;break;case 1:Re.bottom=0,Re.left=-Xn*ge;break;case 0:Re.bottom=0,Re.left=ge;break}return ye.createElement("div",{style:Re})}var qe=re(36459),rt=re(97685),xe=re(45987);function Se(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ze=Se()?ye.useLayoutEffect:ye.useEffect,Ge=Ze,yt=function(Dn,Xn){var ge=React.useRef(!0);Ze(function(){if(!ge.current)return Dn()},Xn),Ze(function(){return ge.current=!1,function(){ge.current=!0}},[])},pt=re(73299),ft=re(73935);function Ne(hn){return hn instanceof HTMLElement||hn instanceof SVGElement}function jt(hn){return Ne(hn)?hn:hn instanceof ye.Component?ft.findDOMNode(hn):null}var bt=re(28580);function xn(hn,Dn,Xn){var ge=React.useRef({});return(!("value"in ge.current)||Xn(ge.current.condition,Dn))&&(ge.current.value=hn(),ge.current.condition=Dn),ge.current.value}function Mt(hn,Dn){typeof hn=="function"?hn(Dn):(0,Oe.Z)(hn)==="object"&&hn&&"current"in hn&&(hn.current=Dn)}function Gt(){for(var hn=arguments.length,Dn=new Array(hn),Xn=0;Xn<hn;Xn++)Dn[Xn]=arguments[Xn];var ge=Dn.filter(function(Re){return Re});return ge.length<=1?ge[0]:function(Re){Dn.forEach(function(He){Mt(He,Re)})}}function Bn(){for(var hn=arguments.length,Dn=new Array(hn),Xn=0;Xn<hn;Xn++)Dn[Xn]=arguments[Xn];return useMemo(function(){return Gt.apply(void 0,Dn)},Dn,function(ge,Re){return ge.length===Re.length&&ge.every(function(He,Ye){return He===Re[Ye]})})}function Tn(hn){var Dn,Xn,ge=(0,bt.isMemo)(hn)?hn.type.type:hn.type;return!(typeof ge=="function"&&!((Dn=ge.prototype)!==null&&Dn!==void 0&&Dn.render)||typeof hn=="function"&&!((Xn=hn.prototype)!==null&&Xn!==void 0&&Xn.render))}function at(hn,Dn){var Xn={};return Xn[hn.toLowerCase()]=Dn.toLowerCase(),Xn["Webkit".concat(hn)]="webkit".concat(Dn),Xn["Moz".concat(hn)]="moz".concat(Dn),Xn["ms".concat(hn)]="MS".concat(Dn),Xn["O".concat(hn)]="o".concat(Dn.toLowerCase()),Xn}function Ae(hn,Dn){var Xn={animationend:at("Animation","AnimationEnd"),transitionend:at("Transition","TransitionEnd")};return hn&&("AnimationEvent"in Dn||delete Xn.animationend.animation,"TransitionEvent"in Dn||delete Xn.transitionend.transition),Xn}var St=Ae(Se(),typeof window!="undefined"?window:{}),cn={};if(Se()){var Pt=document.createElement("div");cn=Pt.style}var ht={};function Et(hn){if(ht[hn])return ht[hn];var Dn=St[hn];if(Dn)for(var Xn=Object.keys(Dn),ge=Xn.length,Re=0;Re<ge;Re+=1){var He=Xn[Re];if(Object.prototype.hasOwnProperty.call(Dn,He)&&He in cn)return ht[hn]=Dn[He],ht[hn]}return""}var Qt=Et("animationend"),ir=Et("transitionend"),On=!!(Qt&&ir),$t=Qt||"animationend",yn=ir||"transitionend";function Qn(hn,Dn){if(!hn)return null;if((0,Oe.Z)(hn)==="object"){var Xn=Dn.replace(/-\w/g,function(ge){return ge[1].toUpperCase()});return hn[Xn]}return"".concat(hn,"-").concat(Dn)}var Cn="none",Pe="appear",fe="enter",ce="leave",pe="none",de="prepare",le="start",Te="active",ot="end";function Bt(hn){var Dn=ye.useRef(!1),Xn=ye.useState(hn),ge=(0,rt.Z)(Xn,2),Re=ge[0],He=ge[1];ye.useEffect(function(){return Dn.current=!1,function(){Dn.current=!0}},[]);function Ye(Ve,$e){$e&&Dn.current||He(Ve)}return[Re,Ye]}var en=function(Dn){return+setTimeout(Dn,16)},rn=function(Dn){return clearTimeout(Dn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(en=function(Dn){return window.requestAnimationFrame(Dn)},rn=function(Dn){return window.cancelAnimationFrame(Dn)});var sn=0,un=new Map;function gt(hn){un.delete(hn)}var zt=function(Dn){var Xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;sn+=1;var ge=sn;function Re(He){if(He===0)gt(ge),Dn();else{var Ye=en(function(){Re(He-1)});un.set(ge,Ye)}}return Re(Xn),ge};zt.cancel=function(hn){var Dn=un.get(hn);return gt(Dn),rn(Dn)};var It=zt,ln=function(){var hn=ye.useRef(null);function Dn(){It.cancel(hn.current)}function Xn(ge){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Dn();var He=It(function(){Re<=1?ge({isCanceled:function(){return He!==hn.current}}):Xn(ge,Re-1)});hn.current=He}return ye.useEffect(function(){return function(){Dn()}},[]),[Xn,Dn]},_t=Se()?ye.useLayoutEffect:ye.useEffect,lr=_t,xt=[de,le,Te,ot],Yt=!1,Un=!0;function Hn(hn){return hn===Te||hn===ot}var $n=function(hn,Dn){var Xn=Bt(pe),ge=(0,rt.Z)(Xn,2),Re=ge[0],He=ge[1],Ye=ln(),Ve=(0,rt.Z)(Ye,2),$e=Ve[0],tt=Ve[1];function Wt(){He(de,!0)}return lr(function(){if(Re!==pe&&Re!==ot){var on=xt.indexOf(Re),Zn=xt[on+1],tr=Dn(Re);tr===Yt?He(Zn,!0):$e(function(Vn){function Mn(){Vn.isCanceled()||He(Zn,!0)}tr===!0?Mn():Promise.resolve(tr).then(Mn)})}},[hn,Re]),ye.useEffect(function(){return function(){tt()}},[]),[Wt,Re]},yr=function(hn){var Dn=(0,ye.useRef)(),Xn=(0,ye.useRef)(hn);Xn.current=hn;var ge=ye.useCallback(function(Ye){Xn.current(Ye)},[]);function Re(Ye){Ye&&(Ye.removeEventListener(yn,ge),Ye.removeEventListener($t,ge))}function He(Ye){Dn.current&&Dn.current!==Ye&&Re(Dn.current),Ye&&Ye!==Dn.current&&(Ye.addEventListener(yn,ge),Ye.addEventListener($t,ge),Dn.current=Ye)}return ye.useEffect(function(){return function(){Re(Dn.current)}},[]),[He,Re]};function Fn(hn,Dn,Xn,ge){var Re=ge.motionEnter,He=Re===void 0?!0:Re,Ye=ge.motionAppear,Ve=Ye===void 0?!0:Ye,$e=ge.motionLeave,tt=$e===void 0?!0:$e,Wt=ge.motionDeadline,on=ge.motionLeaveImmediately,Zn=ge.onAppearPrepare,tr=ge.onEnterPrepare,Vn=ge.onLeavePrepare,Mn=ge.onAppearStart,En=ge.onEnterStart,dn=ge.onLeaveStart,Gn=ge.onAppearActive,xr=ge.onEnterActive,ar=ge.onLeaveActive,ur=ge.onAppearEnd,mr=ge.onEnterEnd,Sr=ge.onLeaveEnd,Tr=ge.onVisibleChanged,je=Bt(),Qe=(0,rt.Z)(je,2),Rt=Qe[0],kt=Qe[1],vn=Bt(Cn),jn=(0,rt.Z)(vn,2),vt=jn[0],wt=jn[1],Ct=Bt(null),Ft=(0,rt.Z)(Ct,2),Ln=Ft[0],Yn=Ft[1],wn=(0,ye.useRef)(!1),_n=(0,ye.useRef)(null);function wr(){return Xn()}var Wr=(0,ye.useRef)(!1);function Lr(_i){var Wi=wr();if(!(_i&&!_i.deadline&&_i.target!==Wi)){var Li=Wr.current,da;vt===Pe&&Li?da=ur==null?void 0:ur(Wi,_i):vt===fe&&Li?da=mr==null?void 0:mr(Wi,_i):vt===ce&&Li&&(da=Sr==null?void 0:Sr(Wi,_i)),vt!==Cn&&Li&&da!==!1&&(wt(Cn,!0),Yn(null,!0))}}var dr=yr(Lr),Or=(0,rt.Z)(dr,1),jr=Or[0],ti=ye.useMemo(function(){var _i,Wi,Li;switch(vt){case Pe:return _i={},(0,Le.Z)(_i,de,Zn),(0,Le.Z)(_i,le,Mn),(0,Le.Z)(_i,Te,Gn),_i;case fe:return Wi={},(0,Le.Z)(Wi,de,tr),(0,Le.Z)(Wi,le,En),(0,Le.Z)(Wi,Te,xr),Wi;case ce:return Li={},(0,Le.Z)(Li,de,Vn),(0,Le.Z)(Li,le,dn),(0,Le.Z)(Li,Te,ar),Li;default:return{}}},[vt]),Zr=$n(vt,function(_i){if(_i===de){var Wi=ti[de];return Wi?Wi(wr()):Yt}if(si in ti){var Li;Yn(((Li=ti[si])===null||Li===void 0?void 0:Li.call(ti,wr(),null))||null)}return si===Te&&(jr(wr()),Wt>0&&(clearTimeout(_n.current),_n.current=setTimeout(function(){Lr({deadline:!0})},Wt))),Un}),Mr=(0,rt.Z)(Zr,2),li=Mr[0],si=Mr[1],Yi=Hn(si);Wr.current=Yi,lr(function(){kt(Dn);var _i=wn.current;if(wn.current=!0,!!hn){var Wi;!_i&&Dn&&Ve&&(Wi=Pe),_i&&Dn&&He&&(Wi=fe),(_i&&!Dn&&tt||!_i&&on&&!Dn&&tt)&&(Wi=ce),Wi&&(wt(Wi),li())}},[Dn]),(0,ye.useEffect)(function(){(vt===Pe&&!Ve||vt===fe&&!He||vt===ce&&!tt)&&wt(Cn)},[Ve,He,tt]),(0,ye.useEffect)(function(){return function(){wn.current=!1,clearTimeout(_n.current)}},[]);var qi=ye.useRef(!1);(0,ye.useEffect)(function(){Rt&&(qi.current=!0),Rt!==void 0&&vt===Cn&&((qi.current||Rt)&&(Tr==null||Tr(Rt)),qi.current=!0)},[Rt,vt]);var ia=Ln;return ti[de]&&si===le&&(ia=(0,Ue.Z)({transition:"none"},ia)),[vt,si,ia,Rt!=null?Rt:Dn]}var or=function(hn){(0,me.Z)(Xn,hn);var Dn=(0,Ie.Z)(Xn);function Xn(){return(0,Me.Z)(this,Xn),Dn.apply(this,arguments)}return(0,ue.Z)(Xn,[{key:"render",value:function(){return this.props.children}}]),Xn}(ye.Component),Dr=or;function Fr(hn){var Dn=hn;(0,Oe.Z)(hn)==="object"&&(Dn=hn.transitionSupport);function Xn(Re){return!!(Re.motionName&&Dn)}var ge=ye.forwardRef(function(Re,He){var Ye=Re.visible,Ve=Ye===void 0?!0:Ye,$e=Re.removeOnLeave,tt=$e===void 0?!0:$e,Wt=Re.forceRender,on=Re.children,Zn=Re.motionName,tr=Re.leavedClassName,Vn=Re.eventProps,Mn=Xn(Re),En=(0,ye.useRef)(),dn=(0,ye.useRef)();function Gn(){try{return En.current instanceof HTMLElement?En.current:jt(dn.current)}catch(Ct){return null}}var xr=Fn(Mn,Ve,Gn,Re),ar=(0,rt.Z)(xr,4),ur=ar[0],mr=ar[1],Sr=ar[2],Tr=ar[3],je=ye.useRef(Tr);Tr&&(je.current=!0);var Qe=ye.useCallback(function(Ct){En.current=Ct,Mt(He,Ct)},[He]),Rt,kt=(0,Ue.Z)((0,Ue.Z)({},Vn),{},{visible:Ve});if(!on)Rt=null;else if(ur===Cn||!Xn(Re))Tr?Rt=on((0,Ue.Z)({},kt),Qe):!tt&&je.current&&tr?Rt=on((0,Ue.Z)((0,Ue.Z)({},kt),{},{className:tr}),Qe):Wt||!tt&&!tr?Rt=on((0,Ue.Z)((0,Ue.Z)({},kt),{},{style:{display:"none"}}),Qe):Rt=null;else{var vn,jn;mr===de?jn="prepare":Hn(mr)?jn="active":mr===le&&(jn="start"),Rt=on((0,Ue.Z)((0,Ue.Z)({},kt),{},{className:Ke()(Qn(Zn,ur),(vn={},(0,Le.Z)(vn,Qn(Zn,"".concat(ur,"-").concat(jn)),jn),(0,Le.Z)(vn,Zn,typeof Zn=="string"),vn)),style:Sr}),Qe)}if(ye.isValidElement(Rt)&&Tn(Rt)){var vt=Rt,wt=vt.ref;wt||(Rt=ye.cloneElement(Rt,{ref:Qe}))}return ye.createElement(Dr,{ref:dn},Rt)});return ge.displayName="CSSMotion",ge}var hr=Fr(On),_r="add",Mi="keep",zi="remove",Gi="removed";function pi(hn){var Dn;return hn&&(0,Oe.Z)(hn)==="object"&&"key"in hn?Dn=hn:Dn={key:hn},(0,Ue.Z)((0,Ue.Z)({},Dn),{},{key:String(Dn.key)})}function Zt(){var hn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return hn.map(pi)}function Kn(){var hn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Xn=[],ge=0,Re=Dn.length,He=Zt(hn),Ye=Zt(Dn);He.forEach(function(tt){for(var Wt=!1,on=ge;on<Re;on+=1){var Zn=Ye[on];if(Zn.key===tt.key){ge<on&&(Xn=Xn.concat(Ye.slice(ge,on).map(function(tr){return(0,Ue.Z)((0,Ue.Z)({},tr),{},{status:_r})})),ge=on),Xn.push((0,Ue.Z)((0,Ue.Z)({},Zn),{},{status:Mi})),ge+=1,Wt=!0;break}}Wt||Xn.push((0,Ue.Z)((0,Ue.Z)({},tt),{},{status:zi}))}),ge<Re&&(Xn=Xn.concat(Ye.slice(ge).map(function(tt){return(0,Ue.Z)((0,Ue.Z)({},tt),{},{status:_r})})));var Ve={};Xn.forEach(function(tt){var Wt=tt.key;Ve[Wt]=(Ve[Wt]||0)+1});var $e=Object.keys(Ve).filter(function(tt){return Ve[tt]>1});return $e.forEach(function(tt){Xn=Xn.filter(function(Wt){var on=Wt.key,Zn=Wt.status;return on!==tt||Zn!==zi}),Xn.forEach(function(Wt){Wt.key===tt&&(Wt.status=Mi)})}),Xn}var fr=["component","children","onVisibleChanged","onAllRemoved"],qn=["status"],Br=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Kr(hn){var Dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hr,Xn=function(ge){(0,me.Z)(He,ge);var Re=(0,Ie.Z)(He);function He(){var Ye;(0,Me.Z)(this,He);for(var Ve=arguments.length,$e=new Array(Ve),tt=0;tt<Ve;tt++)$e[tt]=arguments[tt];return Ye=Re.call.apply(Re,[this].concat($e)),(0,Le.Z)((0,we.Z)(Ye),"state",{keyEntities:[]}),(0,Le.Z)((0,we.Z)(Ye),"removeKey",function(Wt){var on=Ye.state.keyEntities,Zn=on.map(function(tr){return tr.key!==Wt?tr:(0,Ue.Z)((0,Ue.Z)({},tr),{},{status:Gi})});return Ye.setState({keyEntities:Zn}),Zn.filter(function(tr){var Vn=tr.status;return Vn!==Gi}).length}),Ye}return(0,ue.Z)(He,[{key:"render",value:function(){var Ve=this,$e=this.state.keyEntities,tt=this.props,Wt=tt.component,on=tt.children,Zn=tt.onVisibleChanged,tr=tt.onAllRemoved,Vn=(0,xe.Z)(tt,fr),Mn=Wt||ye.Fragment,En={};return Br.forEach(function(dn){En[dn]=Vn[dn],delete Vn[dn]}),delete Vn.keys,ye.createElement(Mn,Vn,$e.map(function(dn){var Gn=dn.status,xr=(0,xe.Z)(dn,qn),ar=Gn===_r||Gn===Mi;return ye.createElement(Dn,(0,ie.Z)({},En,{key:xr.key,visible:ar,eventProps:xr,onVisibleChanged:function(mr){if(Zn==null||Zn(mr,{key:xr.key}),!mr){var Sr=Ve.removeKey(xr.key);Sr===0&&tr&&tr()}}}),on)}))}}],[{key:"getDerivedStateFromProps",value:function(Ve,$e){var tt=Ve.keys,Wt=$e.keyEntities,on=Zt(tt),Zn=Kn(Wt,on);return{keyEntities:Zn.filter(function(tr){var Vn=Wt.find(function(Mn){var En=Mn.key;return tr.key===En});return!(Vn&&Vn.status===Gi&&tr.status===zi)})}}}]),He}(ye.Component);return(0,Le.Z)(Xn,"defaultProps",{component:"div"}),Xn}var Rr=Kr(On),gr=hr,mt=re(56261);function Ot(hn,Dn){var Xn=ye.useState(!1),ge=(0,rt.Z)(Xn,2),Re=ge[0],He=ge[1];ye.useLayoutEffect(function(){if(Re)return hn(),function(){Dn()}},[Re]),ye.useLayoutEffect(function(){return He(!0),function(){He(!1)}},[])}var Xt=re(83898),kn=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],lt=function(Dn,Xn){var ge=Dn.className,Re=Dn.style,He=Dn.motion,Ye=Dn.motionNodes,Ve=Dn.motionType,$e=Dn.onMotionStart,tt=Dn.onMotionEnd,Wt=Dn.active,on=Dn.treeNodeRequiredProps,Zn=(0,xe.Z)(Dn,kn),tr=ye.useState(!0),Vn=(0,rt.Z)(tr,2),Mn=Vn[0],En=Vn[1],dn=ye.useContext(it.k),Gn=dn.prefixCls,xr=Ye&&Ve!=="hide";Ge(function(){Ye&&xr!==Mn&&En(xr)},[Ye]);var ar=function(){Ye&&$e()},ur=ye.useRef(!1),mr=function(){Ye&&!ur.current&&(ur.current=!0,tt())};Ot(ar,mr);var Sr=function(je){xr===je&&mr()};return Ye?ye.createElement(gr,(0,ie.Z)({ref:Xn,visible:Mn},He,{motionAppear:Ve==="show",onVisibleChanged:Sr}),function(Tr,je){var Qe=Tr.className,Rt=Tr.style;return ye.createElement("div",{ref:je,className:Ke()("".concat(Gn,"-treenode-motion"),Qe),style:Rt},Ye.map(function(kt){var vn=(0,ie.Z)({},((0,qe.Z)(kt.data),kt.data)),jn=kt.title,vt=kt.key,wt=kt.isStart,Ct=kt.isEnd;delete vn.children;var Ft=(0,Xt.H8)(vt,on);return ye.createElement(mt.Z,(0,ie.Z)({},vn,Ft,{title:jn,active:Wt,data:kt.data,key:vt,isStart:wt,isEnd:Ct}))}))}):ye.createElement(mt.Z,(0,ie.Z)({domRef:Xn,className:ge,style:Re},Zn,{active:Wt}))};lt.displayName="MotionTreeNode";var Kt=ye.forwardRef(lt),mn=Kt;function nn(){var hn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Xn=hn.length,ge=Dn.length;if(Math.abs(Xn-ge)!==1)return{add:!1,key:null};function Re(He,Ye){var Ve=new Map;He.forEach(function(tt){Ve.set(tt,!0)});var $e=Ye.filter(function(tt){return!Ve.has(tt)});return $e.length===1?$e[0]:null}return Xn<ge?{add:!0,key:Re(hn,Dn)}:{add:!1,key:Re(Dn,hn)}}function In(hn,Dn,Xn){var ge=hn.findIndex(function(Ve){return Ve.key===Xn}),Re=hn[ge+1],He=Dn.findIndex(function(Ve){return Ve.key===Xn});if(Re){var Ye=Dn.findIndex(function(Ve){return Ve.key===Re.key});return Dn.slice(He+1,Ye)}return Dn.slice(He+1)}var Pn=["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"],vr={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ni=function(){},zr="RC_TREE_MOTION_".concat(Math.random()),Pr={key:zr},Yr={key:zr,level:0,index:0,pos:"0",node:Pr,nodes:[Pr]},Qr={parent:null,children:[],pos:Yr.pos,data:Pr,title:null,key:zr,isStart:[],isEnd:[]};function Ht(hn,Dn,Xn,ge){return Dn===!1||!Xn?hn:hn.slice(0,Math.ceil(Xn/ge)+1)}function Tt(hn){var Dn=hn.key,Xn=hn.pos;return(0,Xt.km)(Dn,Xn)}function Jt(hn){for(var Dn=String(hn.data.key),Xn=hn;Xn.parent;)Xn=Xn.parent,Dn="".concat(Xn.data.key," > ").concat(Dn);return Dn}var er=ye.forwardRef(function(hn,Dn){var Xn=hn.prefixCls,ge=hn.data,Re=hn.selectable,He=hn.checkable,Ye=hn.expandedKeys,Ve=hn.selectedKeys,$e=hn.checkedKeys,tt=hn.loadedKeys,Wt=hn.loadingKeys,on=hn.halfCheckedKeys,Zn=hn.keyEntities,tr=hn.disabled,Vn=hn.dragging,Mn=hn.dragOverNodeKey,En=hn.dropPosition,dn=hn.motion,Gn=hn.height,xr=hn.itemHeight,ar=hn.virtual,ur=hn.focusable,mr=hn.activeItem,Sr=hn.focused,Tr=hn.tabIndex,je=hn.onKeyDown,Qe=hn.onFocus,Rt=hn.onBlur,kt=hn.onActiveChange,vn=hn.onListChangeStart,jn=hn.onListChangeEnd,vt=(0,xe.Z)(hn,Pn),wt=ye.useRef(null),Ct=ye.useRef(null);ye.useImperativeHandle(Dn,function(){return{scrollTo:function(Ji){wt.current.scrollTo(Ji)},getIndentWidth:function(){return Ct.current.offsetWidth}}});var Ft=ye.useState(Ye),Ln=(0,rt.Z)(Ft,2),Yn=Ln[0],wn=Ln[1],_n=ye.useState(ge),wr=(0,rt.Z)(_n,2),Wr=wr[0],Lr=wr[1],dr=ye.useState(ge),Or=(0,rt.Z)(dr,2),jr=Or[0],ti=Or[1],Zr=ye.useState([]),Mr=(0,rt.Z)(Zr,2),li=Mr[0],si=Mr[1],Yi=ye.useState(null),qi=(0,rt.Z)(Yi,2),ia=qi[0],_i=qi[1],Wi=ye.useRef(ge);Wi.current=ge;function Li(){var fi=Wi.current;Lr(fi),ti(fi),si([]),_i(null),jn()}Ge(function(){wn(Ye);var fi=nn(Yn,Ye);if(fi.key!==null)if(fi.add){var Ji=Wr.findIndex(function(Ia){var aa=Ia.key;return aa===fi.key}),va=Ht(In(Wr,ge,fi.key),ar,Gn,xr),oo=Wr.slice();oo.splice(Ji+1,0,Qr),ti(oo),si(va),_i("show")}else{var Ja=ge.findIndex(function(Ia){var aa=Ia.key;return aa===fi.key}),Za=Ht(In(ge,Wr,fi.key),ar,Gn,xr),Ha=ge.slice();Ha.splice(Ja+1,0,Qr),ti(Ha),si(Za),_i("hide")}else Wr!==ge&&(Lr(ge),ti(ge))},[Ye,ge]),ye.useEffect(function(){Vn||Li()},[Vn]);var da=dn?jr:ge,Bi={expandedKeys:Ye,selectedKeys:Ve,loadedKeys:tt,loadingKeys:Wt,checkedKeys:$e,halfCheckedKeys:on,dragOverNodeKey:Mn,dropPosition:En,keyEntities:Zn};return ye.createElement(ye.Fragment,null,Sr&&mr&&ye.createElement("span",{style:vr,"aria-live":"assertive"},Jt(mr)),ye.createElement("div",null,ye.createElement("input",{style:vr,disabled:ur===!1||tr,tabIndex:ur!==!1?Tr:null,onKeyDown:je,onFocus:Qe,onBlur:Rt,value:"",onChange:ni,"aria-label":"for screen reader"})),ye.createElement("div",{className:"".concat(Xn,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ye.createElement("div",{className:"".concat(Xn,"-indent")},ye.createElement("div",{ref:Ct,className:"".concat(Xn,"-indent-unit")}))),ye.createElement(pt.Z,(0,ie.Z)({},vt,{data:da,itemKey:Tt,height:Gn,fullHeight:!1,virtual:ar,itemHeight:xr,prefixCls:"".concat(Xn,"-list"),ref:wt,onVisibleChange:function(Ji,va){var oo=new Set(Ji),Ja=va.filter(function(Za){return!oo.has(Za)});Ja.some(function(Za){return Tt(Za)===zr})&&Li()}}),function(fi){var Ji=fi.pos,va=(0,ie.Z)({},((0,qe.Z)(fi.data),fi.data)),oo=fi.title,Ja=fi.key,Za=fi.isStart,Ha=fi.isEnd,Ia=(0,Xt.km)(Ja,Ji);delete va.key,delete va.children;var aa=(0,Xt.H8)(Ia,Bi);return ye.createElement(mn,(0,ie.Z)({},va,aa,{title:oo,active:!!mr&&Ja===mr.key,pos:Ji,data:fi.data,isStart:Za,isEnd:Ha,motion:dn,motionNodes:Ja===zr?li:null,motionType:ia,onMotionStart:vn,onMotionEnd:Li,treeNodeRequiredProps:Bi,onMouseMove:function(){kt(null)}}))}))});er.displayName="NodeList";var kr=er,Rn=re(29873),Jn=re(97153),sr=re(3596),Ir=10,Xr=function(hn){(0,me.Z)(Xn,hn);var Dn=(0,Ie.Z)(Xn);function Xn(){var ge;(0,Me.Z)(this,Xn);for(var Re=arguments.length,He=new Array(Re),Ye=0;Ye<Re;Ye++)He[Ye]=arguments[Ye];return ge=Dn.call.apply(Dn,[this].concat(He)),ge.destroyed=!1,ge.delayedDragEnterLogic=void 0,ge.loadingRetryTimes={},ge.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,Xt.w$)()},ge.dragStartMousePosition=null,ge.dragNode=void 0,ge.currentMouseOverDroppableNodeKey=null,ge.listRef=ye.createRef(),ge.onNodeDragStart=function(Ve,$e){var tt=ge.state,Wt=tt.expandedKeys,on=tt.keyEntities,Zn=ge.props.onDragStart,tr=$e.props.eventKey;ge.dragNode=$e,ge.dragStartMousePosition={x:Ve.clientX,y:Ve.clientY};var Vn=(0,Rn._5)(Wt,tr);ge.setState({draggingNodeKey:tr,dragChildrenKeys:(0,Rn.wA)(tr,on),indent:ge.listRef.current.getIndentWidth()}),ge.setExpandedKeys(Vn),window.addEventListener("dragend",ge.onWindowDragEnd),Zn==null||Zn({event:Ve,node:(0,Xt.F)($e.props)})},ge.onNodeDragEnter=function(Ve,$e){var tt=ge.state,Wt=tt.expandedKeys,on=tt.keyEntities,Zn=tt.dragChildrenKeys,tr=tt.flattenNodes,Vn=tt.indent,Mn=ge.props,En=Mn.onDragEnter,dn=Mn.onExpand,Gn=Mn.allowDrop,xr=Mn.direction,ar=$e.props,ur=ar.pos,mr=ar.eventKey,Sr=(0,we.Z)(ge),Tr=Sr.dragNode;if(ge.currentMouseOverDroppableNodeKey!==mr&&(ge.currentMouseOverDroppableNodeKey=mr),!Tr){ge.resetDragState();return}var je=(0,Rn.OM)(Ve,Tr,$e,Vn,ge.dragStartMousePosition,Gn,tr,on,Wt,xr),Qe=je.dropPosition,Rt=je.dropLevelOffset,kt=je.dropTargetKey,vn=je.dropContainerKey,jn=je.dropTargetPos,vt=je.dropAllowed,wt=je.dragOverNodeKey;if(Zn.indexOf(kt)!==-1||!vt){ge.resetDragState();return}if(ge.delayedDragEnterLogic||(ge.delayedDragEnterLogic={}),Object.keys(ge.delayedDragEnterLogic).forEach(function(Ct){clearTimeout(ge.delayedDragEnterLogic[Ct])}),Tr.props.eventKey!==$e.props.eventKey&&(Ve.persist(),ge.delayedDragEnterLogic[ur]=window.setTimeout(function(){if(ge.state.draggingNodeKey!==null){var Ct=(0,be.Z)(Wt),Ft=(0,sr.Z)(on,$e.props.eventKey);Ft&&(Ft.children||[]).length&&(Ct=(0,Rn.L0)(Wt,$e.props.eventKey)),"expandedKeys"in ge.props||ge.setExpandedKeys(Ct),dn==null||dn(Ct,{node:(0,Xt.F)($e.props),expanded:!0,nativeEvent:Ve.nativeEvent})}},800)),Tr.props.eventKey===kt&&Rt===0){ge.resetDragState();return}ge.setState({dragOverNodeKey:wt,dropPosition:Qe,dropLevelOffset:Rt,dropTargetKey:kt,dropContainerKey:vn,dropTargetPos:jn,dropAllowed:vt}),En==null||En({event:Ve,node:(0,Xt.F)($e.props),expandedKeys:Wt})},ge.onNodeDragOver=function(Ve,$e){var tt=ge.state,Wt=tt.dragChildrenKeys,on=tt.flattenNodes,Zn=tt.keyEntities,tr=tt.expandedKeys,Vn=tt.indent,Mn=ge.props,En=Mn.onDragOver,dn=Mn.allowDrop,Gn=Mn.direction,xr=(0,we.Z)(ge),ar=xr.dragNode;if(ar){var ur=(0,Rn.OM)(Ve,ar,$e,Vn,ge.dragStartMousePosition,dn,on,Zn,tr,Gn),mr=ur.dropPosition,Sr=ur.dropLevelOffset,Tr=ur.dropTargetKey,je=ur.dropContainerKey,Qe=ur.dropAllowed,Rt=ur.dropTargetPos,kt=ur.dragOverNodeKey;Wt.indexOf(Tr)!==-1||!Qe||(ar.props.eventKey===Tr&&Sr===0?ge.state.dropPosition===null&&ge.state.dropLevelOffset===null&&ge.state.dropTargetKey===null&&ge.state.dropContainerKey===null&&ge.state.dropTargetPos===null&&ge.state.dropAllowed===!1&&ge.state.dragOverNodeKey===null||ge.resetDragState():mr===ge.state.dropPosition&&Sr===ge.state.dropLevelOffset&&Tr===ge.state.dropTargetKey&&je===ge.state.dropContainerKey&&Rt===ge.state.dropTargetPos&&Qe===ge.state.dropAllowed&&kt===ge.state.dragOverNodeKey||ge.setState({dropPosition:mr,dropLevelOffset:Sr,dropTargetKey:Tr,dropContainerKey:je,dropTargetPos:Rt,dropAllowed:Qe,dragOverNodeKey:kt}),En==null||En({event:Ve,node:(0,Xt.F)($e.props)}))}},ge.onNodeDragLeave=function(Ve,$e){ge.currentMouseOverDroppableNodeKey===$e.props.eventKey&&!Ve.currentTarget.contains(Ve.relatedTarget)&&(ge.resetDragState(),ge.currentMouseOverDroppableNodeKey=null);var tt=ge.props.onDragLeave;tt==null||tt({event:Ve,node:(0,Xt.F)($e.props)})},ge.onWindowDragEnd=function(Ve){ge.onNodeDragEnd(Ve,null,!0),window.removeEventListener("dragend",ge.onWindowDragEnd)},ge.onNodeDragEnd=function(Ve,$e){var tt=ge.props.onDragEnd;ge.setState({dragOverNodeKey:null}),ge.cleanDragState(),tt==null||tt({event:Ve,node:(0,Xt.F)($e.props)}),ge.dragNode=null,window.removeEventListener("dragend",ge.onWindowDragEnd)},ge.onNodeDrop=function(Ve,$e){var tt,Wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,on=ge.state,Zn=on.dragChildrenKeys,tr=on.dropPosition,Vn=on.dropTargetKey,Mn=on.dropTargetPos,En=on.dropAllowed;if(En){var dn=ge.props.onDrop;if(ge.setState({dragOverNodeKey:null}),ge.cleanDragState(),Vn!==null){var Gn=(0,Ue.Z)((0,Ue.Z)({},(0,Xt.H8)(Vn,ge.getTreeNodeRequiredProps())),{},{active:((tt=ge.getActiveItem())===null||tt===void 0?void 0:tt.key)===Vn,data:(0,sr.Z)(ge.state.keyEntities,Vn).node}),xr=Zn.indexOf(Vn)!==-1;(0,We.ZP)(!xr,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ar=(0,Rn.yx)(Mn),ur={event:Ve,node:(0,Xt.F)(Gn),dragNode:ge.dragNode?(0,Xt.F)(ge.dragNode.props):null,dragNodesKeys:[ge.dragNode.props.eventKey].concat(Zn),dropToGap:tr!==0,dropPosition:tr+Number(ar[ar.length-1])};Wt||dn==null||dn(ur),ge.dragNode=null}}},ge.cleanDragState=function(){var Ve=ge.state.draggingNodeKey;Ve!==null&&ge.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ge.dragStartMousePosition=null,ge.currentMouseOverDroppableNodeKey=null},ge.triggerExpandActionExpand=function(Ve,$e){var tt=ge.state,Wt=tt.expandedKeys,on=tt.flattenNodes,Zn=$e.expanded,tr=$e.key,Vn=$e.isLeaf;if(!(Vn||Ve.shiftKey||Ve.metaKey||Ve.ctrlKey)){var Mn=on.filter(function(dn){return dn.key===tr})[0],En=(0,Xt.F)((0,Ue.Z)((0,Ue.Z)({},(0,Xt.H8)(tr,ge.getTreeNodeRequiredProps())),{},{data:Mn.data}));ge.setExpandedKeys(Zn?(0,Rn._5)(Wt,tr):(0,Rn.L0)(Wt,tr)),ge.onNodeExpand(Ve,En)}},ge.onNodeClick=function(Ve,$e){var tt=ge.props,Wt=tt.onClick,on=tt.expandAction;on==="click"&&ge.triggerExpandActionExpand(Ve,$e),Wt==null||Wt(Ve,$e)},ge.onNodeDoubleClick=function(Ve,$e){var tt=ge.props,Wt=tt.onDoubleClick,on=tt.expandAction;on==="doubleClick"&&ge.triggerExpandActionExpand(Ve,$e),Wt==null||Wt(Ve,$e)},ge.onNodeSelect=function(Ve,$e){var tt=ge.state.selectedKeys,Wt=ge.state,on=Wt.keyEntities,Zn=Wt.fieldNames,tr=ge.props,Vn=tr.onSelect,Mn=tr.multiple,En=$e.selected,dn=$e[Zn.key],Gn=!En;Gn?Mn?tt=(0,Rn.L0)(tt,dn):tt=[dn]:tt=(0,Rn._5)(tt,dn);var xr=tt.map(function(ar){var ur=(0,sr.Z)(on,ar);return ur?ur.node:null}).filter(function(ar){return ar});ge.setUncontrolledState({selectedKeys:tt}),Vn==null||Vn(tt,{event:"select",selected:Gn,node:$e,selectedNodes:xr,nativeEvent:Ve.nativeEvent})},ge.onNodeCheck=function(Ve,$e,tt){var Wt=ge.state,on=Wt.keyEntities,Zn=Wt.checkedKeys,tr=Wt.halfCheckedKeys,Vn=ge.props,Mn=Vn.checkStrictly,En=Vn.onCheck,dn=$e.key,Gn,xr={event:"check",node:$e,checked:tt,nativeEvent:Ve.nativeEvent};if(Mn){var ar=tt?(0,Rn.L0)(Zn,dn):(0,Rn._5)(Zn,dn),ur=(0,Rn._5)(tr,dn);Gn={checked:ar,halfChecked:ur},xr.checkedNodes=ar.map(function(Rt){return(0,sr.Z)(on,Rt)}).filter(function(Rt){return Rt}).map(function(Rt){return Rt.node}),ge.setUncontrolledState({checkedKeys:ar})}else{var mr=(0,Jn.S)([].concat((0,be.Z)(Zn),[dn]),!0,on),Sr=mr.checkedKeys,Tr=mr.halfCheckedKeys;if(!tt){var je=new Set(Sr);je.delete(dn);var Qe=(0,Jn.S)(Array.from(je),{checked:!1,halfCheckedKeys:Tr},on);Sr=Qe.checkedKeys,Tr=Qe.halfCheckedKeys}Gn=Sr,xr.checkedNodes=[],xr.checkedNodesPositions=[],xr.halfCheckedKeys=Tr,Sr.forEach(function(Rt){var kt=(0,sr.Z)(on,Rt);if(kt){var vn=kt.node,jn=kt.pos;xr.checkedNodes.push(vn),xr.checkedNodesPositions.push({node:vn,pos:jn})}}),ge.setUncontrolledState({checkedKeys:Sr},!1,{halfCheckedKeys:Tr})}En==null||En(Gn,xr)},ge.onNodeLoad=function(Ve){var $e=Ve.key,tt=new Promise(function(Wt,on){ge.setState(function(Zn){var tr=Zn.loadedKeys,Vn=tr===void 0?[]:tr,Mn=Zn.loadingKeys,En=Mn===void 0?[]:Mn,dn=ge.props,Gn=dn.loadData,xr=dn.onLoad;if(!Gn||Vn.indexOf($e)!==-1||En.indexOf($e)!==-1)return null;var ar=Gn(Ve);return ar.then(function(){var ur=ge.state.loadedKeys,mr=(0,Rn.L0)(ur,$e);xr==null||xr(mr,{event:"load",node:Ve}),ge.setUncontrolledState({loadedKeys:mr}),ge.setState(function(Sr){return{loadingKeys:(0,Rn._5)(Sr.loadingKeys,$e)}}),Wt()}).catch(function(ur){if(ge.setState(function(Sr){return{loadingKeys:(0,Rn._5)(Sr.loadingKeys,$e)}}),ge.loadingRetryTimes[$e]=(ge.loadingRetryTimes[$e]||0)+1,ge.loadingRetryTimes[$e]>=Ir){var mr=ge.state.loadedKeys;(0,We.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ge.setUncontrolledState({loadedKeys:(0,Rn.L0)(mr,$e)}),Wt()}on(ur)}),{loadingKeys:(0,Rn.L0)(En,$e)}})});return tt.catch(function(){}),tt},ge.onNodeMouseEnter=function(Ve,$e){var tt=ge.props.onMouseEnter;tt==null||tt({event:Ve,node:$e})},ge.onNodeMouseLeave=function(Ve,$e){var tt=ge.props.onMouseLeave;tt==null||tt({event:Ve,node:$e})},ge.onNodeContextMenu=function(Ve,$e){var tt=ge.props.onRightClick;tt&&(Ve.preventDefault(),tt({event:Ve,node:$e}))},ge.onFocus=function(){var Ve=ge.props.onFocus;ge.setState({focused:!0});for(var $e=arguments.length,tt=new Array($e),Wt=0;Wt<$e;Wt++)tt[Wt]=arguments[Wt];Ve==null||Ve.apply(void 0,tt)},ge.onBlur=function(){var Ve=ge.props.onBlur;ge.setState({focused:!1}),ge.onActiveChange(null);for(var $e=arguments.length,tt=new Array($e),Wt=0;Wt<$e;Wt++)tt[Wt]=arguments[Wt];Ve==null||Ve.apply(void 0,tt)},ge.getTreeNodeRequiredProps=function(){var Ve=ge.state,$e=Ve.expandedKeys,tt=Ve.selectedKeys,Wt=Ve.loadedKeys,on=Ve.loadingKeys,Zn=Ve.checkedKeys,tr=Ve.halfCheckedKeys,Vn=Ve.dragOverNodeKey,Mn=Ve.dropPosition,En=Ve.keyEntities;return{expandedKeys:$e||[],selectedKeys:tt||[],loadedKeys:Wt||[],loadingKeys:on||[],checkedKeys:Zn||[],halfCheckedKeys:tr||[],dragOverNodeKey:Vn,dropPosition:Mn,keyEntities:En}},ge.setExpandedKeys=function(Ve){var $e=ge.state,tt=$e.treeData,Wt=$e.fieldNames,on=(0,Xt.oH)(tt,Ve,Wt);ge.setUncontrolledState({expandedKeys:Ve,flattenNodes:on},!0)},ge.onNodeExpand=function(Ve,$e){var tt=ge.state.expandedKeys,Wt=ge.state,on=Wt.listChanging,Zn=Wt.fieldNames,tr=ge.props,Vn=tr.onExpand,Mn=tr.loadData,En=$e.expanded,dn=$e[Zn.key];if(!on){var Gn=tt.indexOf(dn),xr=!En;if((0,We.ZP)(En&&Gn!==-1||!En&&Gn===-1,"Expand state not sync with index check"),xr?tt=(0,Rn.L0)(tt,dn):tt=(0,Rn._5)(tt,dn),ge.setExpandedKeys(tt),Vn==null||Vn(tt,{node:$e,expanded:xr,nativeEvent:Ve.nativeEvent}),xr&&Mn){var ar=ge.onNodeLoad($e);ar&&ar.then(function(){var ur=(0,Xt.oH)(ge.state.treeData,tt,Zn);ge.setUncontrolledState({flattenNodes:ur})}).catch(function(){var ur=ge.state.expandedKeys,mr=(0,Rn._5)(ur,dn);ge.setExpandedKeys(mr)})}}},ge.onListChangeStart=function(){ge.setUncontrolledState({listChanging:!0})},ge.onListChangeEnd=function(){setTimeout(function(){ge.setUncontrolledState({listChanging:!1})})},ge.onActiveChange=function(Ve){var $e=ge.state.activeKey,tt=ge.props.onActiveChange;$e!==Ve&&(ge.setState({activeKey:Ve}),Ve!==null&&ge.scrollTo({key:Ve}),tt==null||tt(Ve))},ge.getActiveItem=function(){var Ve=ge.state,$e=Ve.activeKey,tt=Ve.flattenNodes;return $e===null?null:tt.find(function(Wt){var on=Wt.key;return on===$e})||null},ge.offsetActiveKey=function(Ve){var $e=ge.state,tt=$e.flattenNodes,Wt=$e.activeKey,on=tt.findIndex(function(Vn){var Mn=Vn.key;return Mn===Wt});on===-1&&Ve<0&&(on=tt.length),on=(on+Ve+tt.length)%tt.length;var Zn=tt[on];if(Zn){var tr=Zn.key;ge.onActiveChange(tr)}else ge.onActiveChange(null)},ge.onKeyDown=function(Ve){var $e=ge.state,tt=$e.activeKey,Wt=$e.expandedKeys,on=$e.checkedKeys,Zn=$e.fieldNames,tr=ge.props,Vn=tr.onKeyDown,Mn=tr.checkable,En=tr.selectable;switch(Ve.which){case dt.UP:{ge.offsetActiveKey(-1),Ve.preventDefault();break}case dt.DOWN:{ge.offsetActiveKey(1),Ve.preventDefault();break}}var dn=ge.getActiveItem();if(dn&&dn.data){var Gn=ge.getTreeNodeRequiredProps(),xr=dn.data.isLeaf===!1||!!(dn.data[Zn.children]||[]).length,ar=(0,Xt.F)((0,Ue.Z)((0,Ue.Z)({},(0,Xt.H8)(tt,Gn)),{},{data:dn.data,active:!0}));switch(Ve.which){case dt.LEFT:{xr&&Wt.includes(tt)?ge.onNodeExpand({},ar):dn.parent&&ge.onActiveChange(dn.parent.key),Ve.preventDefault();break}case dt.RIGHT:{xr&&!Wt.includes(tt)?ge.onNodeExpand({},ar):dn.children&&dn.children.length&&ge.onActiveChange(dn.children[0].key),Ve.preventDefault();break}case dt.ENTER:case dt.SPACE:{Mn&&!ar.disabled&&ar.checkable!==!1&&!ar.disableCheckbox?ge.onNodeCheck({},ar,!on.includes(tt)):!Mn&&En&&!ar.disabled&&ar.selectable!==!1&&ge.onNodeSelect({},ar);break}}}Vn==null||Vn(Ve)},ge.setUncontrolledState=function(Ve){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ge.destroyed){var Wt=!1,on=!0,Zn={};Object.keys(Ve).forEach(function(tr){if(tr in ge.props){on=!1;return}Wt=!0,Zn[tr]=Ve[tr]}),Wt&&(!$e||on)&&ge.setState((0,Ue.Z)((0,Ue.Z)({},Zn),tt))}},ge.scrollTo=function(Ve){ge.listRef.current.scrollTo(Ve)},ge}return(0,ue.Z)(Xn,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Re=this.props.activeKey;Re!==void 0&&Re!==this.state.activeKey&&(this.setState({activeKey:Re}),Re!==null&&this.scrollTo({key:Re}))}},{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 Re,He=this.state,Ye=He.focused,Ve=He.flattenNodes,$e=He.keyEntities,tt=He.draggingNodeKey,Wt=He.activeKey,on=He.dropLevelOffset,Zn=He.dropContainerKey,tr=He.dropTargetKey,Vn=He.dropPosition,Mn=He.dragOverNodeKey,En=He.indent,dn=this.props,Gn=dn.prefixCls,xr=dn.className,ar=dn.style,ur=dn.showLine,mr=dn.focusable,Sr=dn.tabIndex,Tr=Sr===void 0?0:Sr,je=dn.selectable,Qe=dn.showIcon,Rt=dn.icon,kt=dn.switcherIcon,vn=dn.draggable,jn=dn.checkable,vt=dn.checkStrictly,wt=dn.disabled,Ct=dn.motion,Ft=dn.loadData,Ln=dn.filterTreeNode,Yn=dn.height,wn=dn.itemHeight,_n=dn.virtual,wr=dn.titleRender,Wr=dn.dropIndicatorRender,Lr=dn.onContextMenu,dr=dn.onScroll,Or=dn.direction,jr=dn.rootClassName,ti=dn.rootStyle,Zr=(0,Xe.Z)(this.props,{aria:!0,data:!0}),Mr;return vn&&((0,Oe.Z)(vn)==="object"?Mr=vn:typeof vn=="function"?Mr={nodeDraggable:vn}:Mr={}),ye.createElement(it.k.Provider,{value:{prefixCls:Gn,selectable:je,showIcon:Qe,icon:Rt,switcherIcon:kt,draggable:Mr,draggingNodeKey:tt,checkable:jn,checkStrictly:vt,disabled:wt,keyEntities:$e,dropLevelOffset:on,dropContainerKey:Zn,dropTargetKey:tr,dropPosition:Vn,dragOverNodeKey:Mn,indent:En,direction:Or,dropIndicatorRender:Wr,loadData:Ft,filterTreeNode:Ln,titleRender:wr,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}},ye.createElement("div",{role:"tree",className:Ke()(Gn,xr,jr,(Re={},(0,Le.Z)(Re,"".concat(Gn,"-show-line"),ur),(0,Le.Z)(Re,"".concat(Gn,"-focused"),Ye),(0,Le.Z)(Re,"".concat(Gn,"-active-focused"),Wt!==null),Re)),style:ti},ye.createElement(kr,(0,ie.Z)({ref:this.listRef,prefixCls:Gn,style:ar,data:Ve,disabled:wt,selectable:je,checkable:!!jn,motion:Ct,dragging:tt!==null,height:Yn,itemHeight:wn,virtual:_n,focusable:mr,focused:Ye,tabIndex:Tr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Lr,onScroll:dr},this.getTreeNodeRequiredProps(),Zr))))}}],[{key:"getDerivedStateFromProps",value:function(Re,He){var Ye=He.prevProps,Ve={prevProps:Re};function $e(mr){return!Ye&&mr in Re||Ye&&Ye[mr]!==Re[mr]}var tt,Wt=He.fieldNames;if($e("fieldNames")&&(Wt=(0,Xt.w$)(Re.fieldNames),Ve.fieldNames=Wt),$e("treeData")?tt=Re.treeData:$e("children")&&((0,We.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),tt=(0,Xt.zn)(Re.children)),tt){Ve.treeData=tt;var on=(0,Xt.I8)(tt,{fieldNames:Wt});Ve.keyEntities=(0,Ue.Z)((0,Le.Z)({},zr,Yr),on.keyEntities)}var Zn=Ve.keyEntities||He.keyEntities;if($e("expandedKeys")||Ye&&$e("autoExpandParent"))Ve.expandedKeys=Re.autoExpandParent||!Ye&&Re.defaultExpandParent?(0,Rn.r7)(Re.expandedKeys,Zn):Re.expandedKeys;else if(!Ye&&Re.defaultExpandAll){var tr=(0,Ue.Z)({},Zn);delete tr[zr],Ve.expandedKeys=Object.keys(tr).map(function(mr){return tr[mr].key})}else!Ye&&Re.defaultExpandedKeys&&(Ve.expandedKeys=Re.autoExpandParent||Re.defaultExpandParent?(0,Rn.r7)(Re.defaultExpandedKeys,Zn):Re.defaultExpandedKeys);if(Ve.expandedKeys||delete Ve.expandedKeys,tt||Ve.expandedKeys){var Vn=(0,Xt.oH)(tt||He.treeData,Ve.expandedKeys||He.expandedKeys,Wt);Ve.flattenNodes=Vn}if(Re.selectable&&($e("selectedKeys")?Ve.selectedKeys=(0,Rn.BT)(Re.selectedKeys,Re):!Ye&&Re.defaultSelectedKeys&&(Ve.selectedKeys=(0,Rn.BT)(Re.defaultSelectedKeys,Re))),Re.checkable){var Mn;if($e("checkedKeys")?Mn=(0,Rn.E6)(Re.checkedKeys)||{}:!Ye&&Re.defaultCheckedKeys?Mn=(0,Rn.E6)(Re.defaultCheckedKeys)||{}:tt&&(Mn=(0,Rn.E6)(Re.checkedKeys)||{checkedKeys:He.checkedKeys,halfCheckedKeys:He.halfCheckedKeys}),Mn){var En=Mn,dn=En.checkedKeys,Gn=dn===void 0?[]:dn,xr=En.halfCheckedKeys,ar=xr===void 0?[]:xr;if(!Re.checkStrictly){var ur=(0,Jn.S)(Gn,!0,Zn);Gn=ur.checkedKeys,ar=ur.halfCheckedKeys}Ve.checkedKeys=Gn,Ve.halfCheckedKeys=ar}}return $e("loadedKeys")&&(Ve.loadedKeys=Re.loadedKeys),Ve}}]),Xn}(ye.Component);Xr.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Lt,allowDrop:function(){return!0},expandAction:!1},Xr.TreeNode=mt.Z;var Wn=Xr,Ai=Wn,xi=re(73148),Sa=re(56747),fa={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"},na=fa,Ni=re(84089),la=function(Dn,Xn){return ye.createElement(Ni.Z,(0,ie.Z)({},Dn,{ref:Xn,icon:na}))},Qi=ye.forwardRef(la),ga=re(53124),Ba=re(50881),Oi=re(33603),ca=re(32157);const Ca=4;function Qa(hn){const{dropPosition:Dn,dropLevelOffset:Xn,prefixCls:ge,indent:Re,direction:He="ltr"}=hn,Ye=He==="ltr"?"left":"right",Ve=He==="ltr"?"right":"left",$e={[Ye]:-Xn*Re+Ca,[Ve]:0};switch(Dn){case-1:$e.top=-3;break;case 1:$e.bottom=-3;break;default:$e.bottom=-3,$e[Ye]=Re+Ca;break}return ye.createElement("div",{style:$e,className:`${ge}-drop-indicator`})}var za=re(99184),an=ye.forwardRef((hn,Dn)=>{const{getPrefixCls:Xn,direction:ge,virtual:Re,tree:He}=ye.useContext(ga.E_),{prefixCls:Ye,className:Ve,showIcon:$e=!1,showLine:tt,switcherIcon:Wt,blockNode:on=!1,children:Zn,checkable:tr=!1,selectable:Vn=!0,draggable:Mn,motion:En,style:dn}=hn,Gn=Xn("tree",Ye),xr=Xn(),ar=En!=null?En:Object.assign(Object.assign({},(0,Oi.Z)(xr)),{motionAppear:!1}),ur=Object.assign(Object.assign({},hn),{checkable:tr,selectable:Vn,showIcon:$e,motion:ar,blockNode:on,showLine:!!tt,dropIndicatorRender:Qa}),[mr,Sr]=(0,ca.ZP)(Gn),Tr=ye.useMemo(()=>{if(!Mn)return!1;let Qe={};switch(typeof Mn){case"function":Qe.nodeDraggable=Mn;break;case"object":Qe=Object.assign({},Mn);break;default:break}return Qe.icon!==!1&&(Qe.icon=Qe.icon||ye.createElement(Ba.Z,null)),Qe},[Mn]),je=Qe=>ye.createElement(za.Z,{prefixCls:Gn,switcherIcon:Wt,treeNodeProps:Qe,showLine:tt});return mr(ye.createElement(Ai,Object.assign({itemHeight:20,ref:Dn,virtual:Re},ur,{style:Object.assign(Object.assign({},He==null?void 0:He.style),dn),prefixCls:Gn,className:Ke()({[`${Gn}-icon-hide`]:!$e,[`${Gn}-block-node`]:on,[`${Gn}-unselectable`]:!Vn,[`${Gn}-rtl`]:ge==="rtl"},He==null?void 0:He.className,Ve,Sr),direction:ge,checkable:tr&&ye.createElement("span",{className:`${Gn}-checkbox-inner`}),selectable:Vn,switcherIcon:je,draggable:Tr}),Zn))}),Vt;(function(hn){hn[hn.None=0]="None",hn[hn.Start=1]="Start",hn[hn.End=2]="End"})(Vt||(Vt={}));function zn(hn,Dn){function Xn(ge){const{key:Re,children:He}=ge;Dn(Re,ge)!==!1&&zn(He||[],Dn)}hn.forEach(Xn)}function cr(hn){let{treeData:Dn,expandedKeys:Xn,startKey:ge,endKey:Re}=hn;const He=[];let Ye=Vt.None;if(ge&&ge===Re)return[ge];if(!ge||!Re)return[];function Ve($e){return $e===ge||$e===Re}return zn(Dn,$e=>{if(Ye===Vt.End)return!1;if(Ve($e)){if(He.push($e),Ye===Vt.None)Ye=Vt.Start;else if(Ye===Vt.Start)return Ye=Vt.End,!1}else Ye===Vt.Start&&He.push($e);return Xn.includes($e)}),He}function Er(hn,Dn){const Xn=(0,be.Z)(Dn),ge=[];return zn(hn,(Re,He)=>{const Ye=Xn.indexOf(Re);return Ye!==-1&&(ge.push(He),Xn.splice(Ye,1)),!!Xn.length}),ge}var qr=function(hn,Dn){var Xn={};for(var ge in hn)Object.prototype.hasOwnProperty.call(hn,ge)&&Dn.indexOf(ge)<0&&(Xn[ge]=hn[ge]);if(hn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,ge=Object.getOwnPropertySymbols(hn);Re<ge.length;Re++)Dn.indexOf(ge[Re])<0&&Object.prototype.propertyIsEnumerable.call(hn,ge[Re])&&(Xn[ge[Re]]=hn[ge[Re]]);return Xn};function di(hn){const{isLeaf:Dn,expanded:Xn}=hn;return Dn?ye.createElement(xi.Z,null):Xn?ye.createElement(Sa.Z,null):ye.createElement(Qi,null)}function bi(hn){let{treeData:Dn,children:Xn}=hn;return Dn||(0,Xt.zn)(Xn)}const ki=(hn,Dn)=>{var{defaultExpandAll:Xn,defaultExpandParent:ge,defaultExpandedKeys:Re}=hn,He=qr(hn,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ye=ye.useRef(),Ve=ye.useRef(),$e=()=>{const{keyEntities:Tr}=(0,Xt.I8)(bi(He));let je;return Xn?je=Object.keys(Tr):ge?je=(0,Rn.r7)(He.expandedKeys||Re||[],Tr):je=He.expandedKeys||Re,je},[tt,Wt]=ye.useState(He.selectedKeys||He.defaultSelectedKeys||[]),[on,Zn]=ye.useState(()=>$e());ye.useEffect(()=>{"selectedKeys"in He&&Wt(He.selectedKeys)},[He.selectedKeys]),ye.useEffect(()=>{"expandedKeys"in He&&Zn(He.expandedKeys)},[He.expandedKeys]);const tr=(Tr,je)=>{var Qe;return"expandedKeys"in He||Zn(Tr),(Qe=He.onExpand)===null||Qe===void 0?void 0:Qe.call(He,Tr,je)},Vn=(Tr,je)=>{var Qe;const{multiple:Rt}=He,{node:kt,nativeEvent:vn}=je,{key:jn=""}=kt,vt=bi(He),wt=Object.assign(Object.assign({},je),{selected:!0}),Ct=(vn==null?void 0:vn.ctrlKey)||(vn==null?void 0:vn.metaKey),Ft=vn==null?void 0:vn.shiftKey;let Ln;Rt&&Ct?(Ln=Tr,Ye.current=jn,Ve.current=Ln,wt.selectedNodes=Er(vt,Ln)):Rt&&Ft?(Ln=Array.from(new Set([].concat((0,be.Z)(Ve.current||[]),(0,be.Z)(cr({treeData:vt,expandedKeys:on,startKey:jn,endKey:Ye.current}))))),wt.selectedNodes=Er(vt,Ln)):(Ln=[jn],Ye.current=jn,Ve.current=Ln,wt.selectedNodes=Er(vt,Ln)),(Qe=He.onSelect)===null||Qe===void 0||Qe.call(He,Ln,wt),"selectedKeys"in He||Wt(Ln)},{getPrefixCls:Mn,direction:En}=ye.useContext(ga.E_),{prefixCls:dn,className:Gn,showIcon:xr=!0,expandAction:ar="click"}=He,ur=qr(He,["prefixCls","className","showIcon","expandAction"]),mr=Mn("tree",dn),Sr=Ke()(`${mr}-directory`,{[`${mr}-directory-rtl`]:En==="rtl"},Gn);return ye.createElement(an,Object.assign({icon:di,ref:Dn,blockNode:!0},ur,{showIcon:xr,expandAction:ar,prefixCls:mr,className:Sr,expandedKeys:on,selectedKeys:tt,onSelect:Vn,onExpand:tr}))};var Ri=ye.forwardRef(ki);const ra=an;ra.DirectoryTree=Ri,ra.TreeNode=mt.Z;var oi=ra},32157:function(bn,Ut,re){"use strict";re.d(Ut,{TM:function(){return st},Yk:function(){return Ke}});var ie=re(34367),Le=re(63185),Oe=re(14747),Ue=re(33507),be=re(45503),Me=re(67968);const ue=new ie.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),we=(dt,Xe)=>({[`.${dt}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Xe.motionDurationSlow}`}}}),me=(dt,Xe)=>({[`.${dt}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Xe.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Xe.lineWidthBold}px solid ${Xe.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Ie=(dt,Xe)=>{const{treeCls:We,treeNodeCls:ye,treeNodePadding:it,titleHeight:Lt,nodeSelectedBg:qe,nodeHoverBg:rt}=Xe,xe=Xe.paddingXS;return{[We]:Object.assign(Object.assign({},(0,Oe.Wf)(Xe)),{background:Xe.colorBgContainer,borderRadius:Xe.borderRadius,transition:`background-color ${Xe.motionDurationSlow}`,[`&${We}-rtl`]:{[`${We}-switcher`]:{"&_close":{[`${We}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${We}-active-focused)`]:Object.assign({},(0,Oe.oN)(Xe)),[`${We}-list-holder-inner`]:{alignItems:"flex-start"},[`&${We}-block-node`]:{[`${We}-list-holder-inner`]:{alignItems:"stretch",[`${We}-node-content-wrapper`]:{flex:"auto"},[`${ye}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:it,insetInlineStart:0,border:`1px solid ${Xe.colorPrimary}`,opacity:0,animationName:ue,animationDuration:Xe.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ye}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${it}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${We}-node-content-wrapper`]:{color:Xe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${We}-node-content-wrapper`]:Object.assign({},(0,Oe.oN)(Xe)),[`&:not(${ye}-disabled).filter-node ${We}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${We}-draggable-icon`]:{flexShrink:0,width:Lt,lineHeight:`${Lt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${Xe.motionDurationSlow}`,[`${ye}:hover &`]:{opacity:.45}},[`&${ye}-disabled`]:{[`${We}-draggable-icon`]:{visibility:"hidden"}}}},[`${We}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Lt}},[`${We}-draggable-icon`]:{visibility:"hidden"},[`${We}-switcher`]:Object.assign(Object.assign({},we(dt,Xe)),{position:"relative",flex:"none",alignSelf:"stretch",width:Lt,margin:0,lineHeight:`${Lt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${We}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:Xe.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Lt/2,bottom:-it,marginInlineStart:-1,borderInlineEnd:`1px solid ${Xe.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Lt/2*.8,height:Lt/2,borderBottom:`1px solid ${Xe.colorBorder}`,content:'""'}}}),[`${We}-checkbox`]:{top:"initial",marginInlineEnd:xe},[`${We}-node-content-wrapper, ${We}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:Lt,margin:0,padding:`0 ${Xe.paddingXS/2}px`,color:"inherit",lineHeight:`${Lt}px`,background:"transparent",borderRadius:Xe.borderRadius,cursor:"pointer",transition:`all ${Xe.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:rt},[`&${We}-node-selected`]:{backgroundColor:qe},[`${We}-iconEle`]:{display:"inline-block",width:Lt,height:Lt,lineHeight:`${Lt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${We}-unselectable ${We}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${We}-node-content-wrapper`]:Object.assign({lineHeight:`${Lt}px`,userSelect:"none"},me(dt,Xe)),[`${ye}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${Xe.colorPrimary}`}},"&-show-line":{[`${We}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Lt/2,bottom:-it,borderInlineEnd:`1px solid ${Xe.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${We}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ye}-leaf-last`]:{[`${We}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${Lt/2}px !important`}}}}})}},ct=dt=>{const{treeCls:Xe,treeNodeCls:We,treeNodePadding:ye,directoryNodeSelectedBg:it,directoryNodeSelectedColor:Lt}=dt;return{[`${Xe}${Xe}-directory`]:{[We]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ye,insetInlineStart:0,transition:`background-color ${dt.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:dt.controlItemBgHover}},"> *":{zIndex:1},[`${Xe}-switcher`]:{transition:`color ${dt.motionDurationMid}`},[`${Xe}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${Xe}-node-selected`]:{color:Lt,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:it},[`${Xe}-switcher`]:{color:Lt},[`${Xe}-node-content-wrapper`]:{color:Lt,background:"transparent"}}}}}},Ke=(dt,Xe)=>{const We=`.${dt}`,ye=`${We}-treenode`,it=Xe.paddingXS/2,Lt=(0,be.TS)(Xe,{treeCls:We,treeNodeCls:ye,treeNodePadding:it});return[Ie(dt,Lt),ct(Lt)]},st=dt=>{const{controlHeightSM:Xe}=dt;return{titleHeight:Xe,nodeHoverBg:dt.controlItemBgHover,nodeSelectedBg:dt.controlItemBgActive}};Ut.ZP=(0,Me.Z)("Tree",(dt,Xe)=>{let{prefixCls:We}=Xe;return[{[dt.componentCls]:(0,Le.C2)(`${We}-checkbox`,dt)},Ke(We,dt),(0,Ue.Z)(dt)]},dt=>{const{colorTextLightSolid:Xe,colorPrimary:We}=dt;return Object.assign(Object.assign({},st(dt)),{directoryNodeSelectedColor:Xe,directoryNodeSelectedBg:We})})},99184:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return We}});var ie=re(87462),Le=re(67294),Oe={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"},Ue=Oe,be=re(84089),Me=function(it,Lt){return Le.createElement(be.Z,(0,ie.Z)({},it,{ref:Lt,icon:Ue}))},ue=Le.forwardRef(Me),we=re(73148),me=re(3407),Ie=re(34182),ct=re(74664),Ke=re(94184),st=re.n(Ke),dt=re(96159),We=ye=>{const{prefixCls:it,switcherIcon:Lt,treeNodeProps:qe,showLine:rt}=ye,{isLeaf:xe,expanded:Se,loading:Ze}=qe;if(Ze)return Le.createElement(me.Z,{className:`${it}-switcher-loading-icon`});let Ge;if(rt&&typeof rt=="object"&&(Ge=rt.showLeafIcon),xe){if(!rt)return null;if(typeof Ge!="boolean"&&Ge){const ft=typeof Ge=="function"?Ge(qe):Ge,Ne=`${it}-switcher-line-custom-icon`;return(0,dt.l$)(ft)?(0,dt.Tm)(ft,{className:st()(ft.props.className||"",Ne)}):ft}return Ge?Le.createElement(we.Z,{className:`${it}-switcher-line-icon`}):Le.createElement("span",{className:`${it}-switcher-leaf-line`})}const yt=`${it}-switcher-icon`,pt=typeof Lt=="function"?Lt(qe):Lt;return(0,dt.l$)(pt)?(0,dt.Tm)(pt,{className:st()(pt.props.className||"",yt)}):pt!==void 0?pt:rt?Se?Le.createElement(Ie.Z,{className:`${it}-switcher-line-icon`}):Le.createElement(ct.Z,{className:`${it}-switcher-line-icon`}):Le.createElement(ue,{className:yt})}},59810:function(bn,Ut,re){"use strict";re.d(Ut,{default:function(){return Qr}});var ie=re(67294),Le=re(74902),Oe=re(94184),Ue=re.n(Oe),be=re(87462),Me=re(15671),ue=re(43144),we=re(60136),me=re(51630),Ie=re(4942),ct=re(45987),Ke=re(74165),st=re(71002),dt=re(15861),Xe=re(64217);function We(Ht,Tt){var Jt="cannot ".concat(Ht.method," ").concat(Ht.action," ").concat(Tt.status,"'"),er=new Error(Jt);return er.status=Tt.status,er.method=Ht.method,er.url=Ht.action,er}function ye(Ht){var Tt=Ht.responseText||Ht.response;if(!Tt)return Tt;try{return JSON.parse(Tt)}catch(Jt){return Tt}}function it(Ht){var Tt=new XMLHttpRequest;Ht.onProgress&&Tt.upload&&(Tt.upload.onprogress=function(Rn){Rn.total>0&&(Rn.percent=Rn.loaded/Rn.total*100),Ht.onProgress(Rn)});var Jt=new FormData;Ht.data&&Object.keys(Ht.data).forEach(function(kr){var Rn=Ht.data[kr];if(Array.isArray(Rn)){Rn.forEach(function(Jn){Jt.append("".concat(kr,"[]"),Jn)});return}Jt.append(kr,Rn)}),Ht.file instanceof Blob?Jt.append(Ht.filename,Ht.file,Ht.file.name):Jt.append(Ht.filename,Ht.file),Tt.onerror=function(Rn){Ht.onError(Rn)},Tt.onload=function(){return Tt.status<200||Tt.status>=300?Ht.onError(We(Ht,Tt),ye(Tt)):Ht.onSuccess(ye(Tt),Tt)},Tt.open(Ht.method,Ht.action,!0),Ht.withCredentials&&"withCredentials"in Tt&&(Tt.withCredentials=!0);var er=Ht.headers||{};return er["X-Requested-With"]!==null&&Tt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(er).forEach(function(kr){er[kr]!==null&&Tt.setRequestHeader(kr,er[kr])}),Tt.send(Jt),{abort:function(){Tt.abort()}}}var Lt=+new Date,qe=0;function rt(){return"rc-upload-".concat(Lt,"-").concat(++qe)}var xe=re(80334),Se=function(Ht,Tt){if(Ht&&Tt){var Jt=Array.isArray(Tt)?Tt:Tt.split(","),er=Ht.name||"",kr=Ht.type||"",Rn=kr.replace(/\/.*$/,"");return Jt.some(function(Jn){var sr=Jn.trim();if(/^\*(\/\*)?$/.test(Jn))return!0;if(sr.charAt(0)==="."){var Ir=er.toLowerCase(),Xr=sr.toLowerCase(),Wn=[Xr];return(Xr===".jpg"||Xr===".jpeg")&&(Wn=[".jpg",".jpeg"]),Wn.some(function(Ai){return Ir.endsWith(Ai)})}return/\/\*$/.test(sr)?Rn===sr.replace(/\/.*$/,""):kr===sr?!0:/^\w+$/.test(sr)?((0,xe.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(sr,"'.Skip for check.")),!0):!1})}return!0};function Ze(Ht,Tt){var Jt=Ht.createReader(),er=[];function kr(){Jt.readEntries(function(Rn){var Jn=Array.prototype.slice.apply(Rn);er=er.concat(Jn);var sr=!Jn.length;sr?Tt(er):kr()})}kr()}var Ge=function(Tt,Jt,er){var kr=function Rn(Jn,sr){Jn&&(Jn.path=sr||"",Jn.isFile?Jn.file(function(Ir){er(Ir)&&(Jn.fullPath&&!Ir.webkitRelativePath&&(Object.defineProperties(Ir,{webkitRelativePath:{writable:!0}}),Ir.webkitRelativePath=Jn.fullPath.replace(/^\//,""),Object.defineProperties(Ir,{webkitRelativePath:{writable:!1}})),Jt([Ir]))}):Jn.isDirectory&&Ze(Jn,function(Ir){Ir.forEach(function(Xr){Rn(Xr,"".concat(sr).concat(Jn.name,"/"))})}))};Tt.forEach(function(Rn){kr(Rn.webkitGetAsEntry())})},yt=Ge,pt=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ft=function(Ht){(0,we.Z)(Jt,Ht);var Tt=(0,me.Z)(Jt);function Jt(){var er;(0,Me.Z)(this,Jt);for(var kr=arguments.length,Rn=new Array(kr),Jn=0;Jn<kr;Jn++)Rn[Jn]=arguments[Jn];return er=Tt.call.apply(Tt,[this].concat(Rn)),er.state={uid:rt()},er.reqs={},er.fileInput=void 0,er._isMounted=void 0,er.onChange=function(sr){var Ir=er.props,Xr=Ir.accept,Wn=Ir.directory,Ai=sr.target.files,xi=(0,Le.Z)(Ai).filter(function(Sa){return!Wn||Se(Sa,Xr)});er.uploadFiles(xi),er.reset()},er.onClick=function(sr){var Ir=er.fileInput;if(Ir){var Xr=er.props,Wn=Xr.children,Ai=Xr.onClick;if(Wn&&Wn.type==="button"){var xi=Ir.parentNode;xi.focus(),xi.querySelector("button").blur()}Ir.click(),Ai&&Ai(sr)}},er.onKeyDown=function(sr){sr.key==="Enter"&&er.onClick(sr)},er.onFileDrop=function(sr){var Ir=er.props.multiple;if(sr.preventDefault(),sr.type!=="dragover")if(er.props.directory)yt(Array.prototype.slice.call(sr.dataTransfer.items),er.uploadFiles,function(Wn){return Se(Wn,er.props.accept)});else{var Xr=(0,Le.Z)(sr.dataTransfer.files).filter(function(Wn){return Se(Wn,er.props.accept)});Ir===!1&&(Xr=Xr.slice(0,1)),er.uploadFiles(Xr)}},er.uploadFiles=function(sr){var Ir=(0,Le.Z)(sr),Xr=Ir.map(function(Wn){return Wn.uid=rt(),er.processFile(Wn,Ir)});Promise.all(Xr).then(function(Wn){var Ai=er.props.onBatchStart;Ai==null||Ai(Wn.map(function(xi){var Sa=xi.origin,fa=xi.parsedFile;return{file:Sa,parsedFile:fa}})),Wn.filter(function(xi){return xi.parsedFile!==null}).forEach(function(xi){er.post(xi)})})},er.processFile=function(){var sr=(0,dt.Z)((0,Ke.Z)().mark(function Ir(Xr,Wn){var Ai,xi,Sa,fa,na,Ni,la,Qi,ga;return(0,Ke.Z)().wrap(function(Oi){for(;;)switch(Oi.prev=Oi.next){case 0:if(Ai=er.props.beforeUpload,xi=Xr,!Ai){Oi.next=14;break}return Oi.prev=3,Oi.next=6,Ai(Xr,Wn);case 6:xi=Oi.sent,Oi.next=12;break;case 9:Oi.prev=9,Oi.t0=Oi.catch(3),xi=!1;case 12:if(xi!==!1){Oi.next=14;break}return Oi.abrupt("return",{origin:Xr,parsedFile:null,action:null,data:null});case 14:if(Sa=er.props.action,typeof Sa!="function"){Oi.next=21;break}return Oi.next=18,Sa(Xr);case 18:fa=Oi.sent,Oi.next=22;break;case 21:fa=Sa;case 22:if(na=er.props.data,typeof na!="function"){Oi.next=29;break}return Oi.next=26,na(Xr);case 26:Ni=Oi.sent,Oi.next=30;break;case 29:Ni=na;case 30:return la=((0,st.Z)(xi)==="object"||typeof xi=="string")&&xi?xi:Xr,la instanceof File?Qi=la:Qi=new File([la],Xr.name,{type:Xr.type}),ga=Qi,ga.uid=Xr.uid,Oi.abrupt("return",{origin:Xr,data:Ni,parsedFile:ga,action:fa});case 35:case"end":return Oi.stop()}},Ir,null,[[3,9]])}));return function(Ir,Xr){return sr.apply(this,arguments)}}(),er.saveFileInput=function(sr){er.fileInput=sr},er}return(0,ue.Z)(Jt,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(kr){var Rn=this,Jn=kr.data,sr=kr.origin,Ir=kr.action,Xr=kr.parsedFile;if(this._isMounted){var Wn=this.props,Ai=Wn.onStart,xi=Wn.customRequest,Sa=Wn.name,fa=Wn.headers,na=Wn.withCredentials,Ni=Wn.method,la=sr.uid,Qi=xi||it,ga={action:Ir,filename:Sa,data:Jn,file:Xr,headers:fa,withCredentials:na,method:Ni||"post",onProgress:function(Oi){var ca=Rn.props.onProgress;ca==null||ca(Oi,Xr)},onSuccess:function(Oi,ca){var Ca=Rn.props.onSuccess;Ca==null||Ca(Oi,Xr,ca),delete Rn.reqs[la]},onError:function(Oi,ca){var Ca=Rn.props.onError;Ca==null||Ca(Oi,ca,Xr),delete Rn.reqs[la]}};Ai(sr),this.reqs[la]=Qi(ga)}}},{key:"reset",value:function(){this.setState({uid:rt()})}},{key:"abort",value:function(kr){var Rn=this.reqs;if(kr){var Jn=kr.uid?kr.uid:kr;Rn[Jn]&&Rn[Jn].abort&&Rn[Jn].abort(),delete Rn[Jn]}else Object.keys(Rn).forEach(function(sr){Rn[sr]&&Rn[sr].abort&&Rn[sr].abort(),delete Rn[sr]})}},{key:"render",value:function(){var kr,Rn=this.props,Jn=Rn.component,sr=Rn.prefixCls,Ir=Rn.className,Xr=Rn.disabled,Wn=Rn.id,Ai=Rn.style,xi=Rn.multiple,Sa=Rn.accept,fa=Rn.capture,na=Rn.children,Ni=Rn.directory,la=Rn.openFileDialogOnClick,Qi=Rn.onMouseEnter,ga=Rn.onMouseLeave,Ba=(0,ct.Z)(Rn,pt),Oi=Ue()((kr={},(0,Ie.Z)(kr,sr,!0),(0,Ie.Z)(kr,"".concat(sr,"-disabled"),Xr),(0,Ie.Z)(kr,Ir,Ir),kr)),ca=Ni?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Ca=Xr?{}:{onClick:la?this.onClick:function(){},onKeyDown:la?this.onKeyDown:function(){},onMouseEnter:Qi,onMouseLeave:ga,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ie.createElement(Jn,(0,be.Z)({},Ca,{className:Oi,role:"button",style:Ai}),ie.createElement("input",(0,be.Z)({},(0,Xe.Z)(Ba,{aria:!0,data:!0}),{id:Wn,disabled:Xr,type:"file",ref:this.saveFileInput,onClick:function(za){return za.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Sa},ca,{multiple:xi,onChange:this.onChange},fa!=null?{capture:fa}:{})),na)}}]),Jt}(ie.Component),Ne=ft;function jt(){}var bt=function(Ht){(0,we.Z)(Jt,Ht);var Tt=(0,me.Z)(Jt);function Jt(){var er;(0,Me.Z)(this,Jt);for(var kr=arguments.length,Rn=new Array(kr),Jn=0;Jn<kr;Jn++)Rn[Jn]=arguments[Jn];return er=Tt.call.apply(Tt,[this].concat(Rn)),er.uploader=void 0,er.saveUploader=function(sr){er.uploader=sr},er}return(0,ue.Z)(Jt,[{key:"abort",value:function(kr){this.uploader.abort(kr)}},{key:"render",value:function(){return ie.createElement(Ne,(0,be.Z)({},this.props,{ref:this.saveUploader}))}}]),Jt}(ie.Component);bt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:jt,onError:jt,onSuccess:jt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var xn=bt,Mt=xn,Gt=re(5663),Bn=re(73935),Tn=re(53124),at=re(98866),Ae=re(10110),St=re(24457),cn={icon:function(Tt,Jt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Jt}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Tt}}]}},name:"file",theme:"twotone"},Pt=cn,ht=re(84089),Et=function(Tt,Jt){return ie.createElement(ht.Z,(0,be.Z)({},Tt,{ref:Jt,icon:Pt}))},Qt=ie.forwardRef(Et),ir=re(3407),On={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},$t=On,yn=function(Tt,Jt){return ie.createElement(ht.Z,(0,be.Z)({},Tt,{ref:Jt,icon:$t}))},Qn=ie.forwardRef(yn),Cn={icon:function(Tt,Jt){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Tt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Jt}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Jt}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Jt}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Tt}}]}},name:"picture",theme:"twotone"},Pe=Cn,fe=function(Tt,Jt){return ie.createElement(ht.Z,(0,be.Z)({},Tt,{ref:Jt,icon:Pe}))},ce=ie.forwardRef(fe),pe=re(38379),de=re(57838),le=re(33603),Te=re(96159),ot=re(71577);function Bt(Ht){return Object.assign(Object.assign({},Ht),{lastModified:Ht.lastModified,lastModifiedDate:Ht.lastModifiedDate,name:Ht.name,size:Ht.size,type:Ht.type,uid:Ht.uid,percent:0,originFileObj:Ht})}function en(Ht,Tt){const Jt=(0,Le.Z)(Tt),er=Jt.findIndex(kr=>{let{uid:Rn}=kr;return Rn===Ht.uid});return er===-1?Jt.push(Ht):Jt[er]=Ht,Jt}function rn(Ht,Tt){const Jt=Ht.uid!==void 0?"uid":"name";return Tt.filter(er=>er[Jt]===Ht[Jt])[0]}function sn(Ht,Tt){const Jt=Ht.uid!==void 0?"uid":"name",er=Tt.filter(kr=>kr[Jt]!==Ht[Jt]);return er.length===Tt.length?null:er}const un=function(){const Tt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),er=Tt[Tt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(er)||[""])[0]},gt=Ht=>Ht.indexOf("image/")===0,zt=Ht=>{if(Ht.type&&!Ht.thumbUrl)return gt(Ht.type);const Tt=Ht.thumbUrl||Ht.url||"",Jt=un(Tt);return/^data:image\//.test(Tt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Jt)?!0:!(/^data:/.test(Tt)||Jt)},It=200;function ln(Ht){return new Promise(Tt=>{if(!Ht.type||!gt(Ht.type)){Tt("");return}const Jt=document.createElement("canvas");Jt.width=It,Jt.height=It,Jt.style.cssText=`position: fixed; left: 0; top: 0; width: ${It}px; height: ${It}px; z-index: 9999; display: none;`,document.body.appendChild(Jt);const er=Jt.getContext("2d"),kr=new Image;if(kr.onload=()=>{const{width:Rn,height:Jn}=kr;let sr=It,Ir=It,Xr=0,Wn=0;Rn>Jn?(Ir=Jn*(It/Rn),Wn=-(Ir-sr)/2):(sr=Rn*(It/Jn),Xr=-(sr-Ir)/2),er.drawImage(kr,Xr,Wn,sr,Ir);const Ai=Jt.toDataURL();document.body.removeChild(Jt),window.URL.revokeObjectURL(kr.src),Tt(Ai)},kr.crossOrigin="anonymous",Ht.type.startsWith("image/svg+xml")){const Rn=new FileReader;Rn.onload=()=>{Rn.result&&(kr.src=Rn.result)},Rn.readAsDataURL(Ht)}else if(Ht.type.startsWith("image/gif")){const Rn=new FileReader;Rn.onload=()=>{Rn.result&&Tt(Rn.result)},Rn.readAsDataURL(Ht)}else kr.src=window.URL.createObjectURL(Ht)})}var _t=re(84249),lr=re(90674),xt=re(99569),Yt=re(38703),Un=re(83062),$n=ie.forwardRef((Ht,Tt)=>{let{prefixCls:Jt,className:er,style:kr,locale:Rn,listType:Jn,file:sr,items:Ir,progress:Xr,iconRender:Wn,actionIconRender:Ai,itemRender:xi,isImgUrl:Sa,showPreviewIcon:fa,showRemoveIcon:na,showDownloadIcon:Ni,previewIcon:la,removeIcon:Qi,downloadIcon:ga,onPreview:Ba,onDownload:Oi,onClose:ca}=Ht;var Ca,Qa;const{status:za}=sr,[Pi,an]=ie.useState(za);ie.useEffect(()=>{za!=="removed"&&an(za)},[za]);const[Vt,zn]=ie.useState(!1);ie.useEffect(()=>{const Ve=setTimeout(()=>{zn(!0)},300);return()=>{clearTimeout(Ve)}},[]);const cr=Wn(sr);let Er=ie.createElement("div",{className:`${Jt}-icon`},cr);if(Jn==="picture"||Jn==="picture-card"||Jn==="picture-circle")if(Pi==="uploading"||!sr.thumbUrl&&!sr.url){const Ve=Ue()(`${Jt}-list-item-thumbnail`,{[`${Jt}-list-item-file`]:Pi!=="uploading"});Er=ie.createElement("div",{className:Ve},cr)}else{const Ve=Sa!=null&&Sa(sr)?ie.createElement("img",{src:sr.thumbUrl||sr.url,alt:sr.name,className:`${Jt}-list-item-image`,crossOrigin:sr.crossOrigin}):cr,$e=Ue()(`${Jt}-list-item-thumbnail`,{[`${Jt}-list-item-file`]:Sa&&!Sa(sr)});Er=ie.createElement("a",{className:$e,onClick:tt=>Ba(sr,tt),href:sr.url||sr.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Ve)}const qr=Ue()(`${Jt}-list-item`,`${Jt}-list-item-${Pi}`),di=typeof sr.linkProps=="string"?JSON.parse(sr.linkProps):sr.linkProps,bi=na?Ai((typeof Qi=="function"?Qi(sr):Qi)||ie.createElement(_t.Z,null),()=>ca(sr),Jt,Rn.removeFile):null,ki=Ni&&Pi==="done"?Ai((typeof ga=="function"?ga(sr):ga)||ie.createElement(lr.Z,null),()=>Oi(sr),Jt,Rn.downloadFile):null,Si=Jn!=="picture-card"&&Jn!=="picture-circle"&&ie.createElement("span",{key:"download-delete",className:Ue()(`${Jt}-list-item-actions`,{picture:Jn==="picture"})},ki,bi),Ri=Ue()(`${Jt}-list-item-name`),ra=sr.url?[ie.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ri,title:sr.name},di,{href:sr.url,onClick:Ve=>Ba(sr,Ve)}),sr.name),Si]:[ie.createElement("span",{key:"view",className:Ri,onClick:Ve=>Ba(sr,Ve),title:sr.name},sr.name),Si],oi={pointerEvents:"none",opacity:.5},hn=fa?ie.createElement("a",{href:sr.url||sr.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:sr.url||sr.thumbUrl?void 0:oi,onClick:Ve=>Ba(sr,Ve),title:Rn.previewFile},typeof la=="function"?la(sr):la||ie.createElement(xt.Z,null)):null,Dn=(Jn==="picture-card"||Jn==="picture-circle")&&Pi!=="uploading"&&ie.createElement("span",{className:`${Jt}-list-item-actions`},hn,Pi==="done"&&ki,bi),{getPrefixCls:Xn}=ie.useContext(Tn.E_),ge=Xn(),Re=ie.createElement("div",{className:qr},Er,ra,Dn,Vt&&ie.createElement(pe.default,{motionName:`${ge}-fade`,visible:Pi==="uploading",motionDeadline:2e3},Ve=>{let{className:$e}=Ve;const tt="percent"in sr?ie.createElement(Yt.Z,Object.assign({},Xr,{type:"line",percent:sr.percent,"aria-label":sr["aria-label"],"aria-labelledby":sr["aria-labelledby"]})):null;return ie.createElement("div",{className:Ue()(`${Jt}-list-item-progress`,$e)},tt)})),He=sr.response&&typeof sr.response=="string"?sr.response:((Ca=sr.error)===null||Ca===void 0?void 0:Ca.statusText)||((Qa=sr.error)===null||Qa===void 0?void 0:Qa.message)||Rn.uploadError,Ye=Pi==="error"?ie.createElement(Un.Z,{title:He,getPopupContainer:Ve=>Ve.parentNode},Re):Re;return ie.createElement("div",{className:Ue()(`${Jt}-list-item-container`,er),style:kr,ref:Tt},xi?xi(Ye,sr,Ir,{download:Oi.bind(null,sr),preview:Ba.bind(null,sr),remove:ca.bind(null,sr)}):Ye)});const yr=(Ht,Tt)=>{const{listType:Jt="text",previewFile:er=ln,onPreview:kr,onDownload:Rn,onRemove:Jn,locale:sr,iconRender:Ir,isImageUrl:Xr=zt,prefixCls:Wn,items:Ai=[],showPreviewIcon:xi=!0,showRemoveIcon:Sa=!0,showDownloadIcon:fa=!1,removeIcon:na,previewIcon:Ni,downloadIcon:la,progress:Qi={size:[-1,2],showInfo:!1},appendAction:ga,appendActionVisible:Ba=!0,itemRender:Oi,disabled:ca}=Ht,Ca=(0,de.Z)(),[Qa,za]=ie.useState(!1);ie.useEffect(()=>{Jt!=="picture"&&Jt!=="picture-card"&&Jt!=="picture-circle"||(Ai||[]).forEach(oi=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(oi.originFileObj instanceof File||oi.originFileObj instanceof Blob)||oi.thumbUrl!==void 0||(oi.thumbUrl="",er&&er(oi.originFileObj).then(hn=>{oi.thumbUrl=hn||"",Ca()}))})},[Jt,Ai,er]),ie.useEffect(()=>{za(!0)},[]);const Pi=(oi,hn)=>{if(kr)return hn==null||hn.preventDefault(),kr(oi)},an=oi=>{typeof Rn=="function"?Rn(oi):oi.url&&window.open(oi.url)},Vt=oi=>{Jn==null||Jn(oi)},zn=oi=>{if(Ir)return Ir(oi,Jt);const hn=oi.status==="uploading",Dn=Xr&&Xr(oi)?ie.createElement(ce,null):ie.createElement(Qt,null);let Xn=hn?ie.createElement(ir.Z,null):ie.createElement(Qn,null);return Jt==="picture"?Xn=hn?ie.createElement(ir.Z,null):Dn:(Jt==="picture-card"||Jt==="picture-circle")&&(Xn=hn?sr.uploading:Dn),Xn},cr=(oi,hn,Dn,Xn)=>{const ge={type:"text",size:"small",title:Xn,onClick:Re=>{hn(),(0,Te.l$)(oi)&&oi.props.onClick&&oi.props.onClick(Re)},className:`${Dn}-list-item-action`,disabled:ca};if((0,Te.l$)(oi)){const Re=(0,Te.Tm)(oi,Object.assign(Object.assign({},oi.props),{onClick:()=>{}}));return ie.createElement(ot.ZP,Object.assign({},ge,{icon:Re}))}return ie.createElement(ot.ZP,Object.assign({},ge),ie.createElement("span",null,oi))};ie.useImperativeHandle(Tt,()=>({handlePreview:Pi,handleDownload:an}));const{getPrefixCls:Er}=ie.useContext(Tn.E_),qr=Er("upload",Wn),di=Er(),bi=Ue()(`${qr}-list`,`${qr}-list-${Jt}`),ki=(0,Le.Z)(Ai.map(oi=>({key:oi.uid,file:oi})));let Ri={motionDeadline:2e3,motionName:`${qr}-${Jt==="picture-card"||Jt==="picture-circle"?"animate-inline":"animate"}`,keys:ki,motionAppear:Qa};const ra=ie.useMemo(()=>{const oi=Object.assign({},(0,le.Z)(di));return delete oi.onAppearEnd,delete oi.onEnterEnd,delete oi.onLeaveEnd,oi},[di]);return Jt!=="picture-card"&&Jt!=="picture-circle"&&(Ri=Object.assign(Object.assign({},ra),Ri)),ie.createElement("div",{className:bi},ie.createElement(pe.CSSMotionList,Object.assign({},Ri,{component:!1}),oi=>{let{key:hn,file:Dn,className:Xn,style:ge}=oi;return ie.createElement($n,{key:hn,locale:sr,prefixCls:qr,className:Xn,style:ge,file:Dn,items:Ai,progress:Qi,listType:Jt,isImgUrl:Xr,showPreviewIcon:xi,showRemoveIcon:Sa,showDownloadIcon:fa,removeIcon:na,previewIcon:Ni,downloadIcon:la,iconRender:zn,actionIconRender:cr,itemRender:Oi,onPreview:Pi,onDownload:an,onClose:Vt})}),ga&&ie.createElement(pe.default,Object.assign({},Ri,{visible:Ba,forceRender:!0}),oi=>{let{className:hn,style:Dn}=oi;return(0,Te.Tm)(ga,Xn=>({className:Ue()(Xn.className,hn),style:Object.assign(Object.assign(Object.assign({},Dn),{pointerEvents:hn?"none":void 0}),Xn.style)}))}))};var or=ie.forwardRef(yr),Dr=re(14747),Fr=re(33507),hr=re(67968),_r=re(45503),zi=Ht=>{const{componentCls:Tt,iconCls:Jt}=Ht;return{[`${Tt}-wrapper`]:{[`${Tt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Ht.colorFillAlter,border:`${Ht.lineWidth}px dashed ${Ht.colorBorder}`,borderRadius:Ht.borderRadiusLG,cursor:"pointer",transition:`border-color ${Ht.motionDurationSlow}`,[Tt]:{padding:`${Ht.padding}px 0`},[`${Tt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Tt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Tt}-disabled):hover`]:{borderColor:Ht.colorPrimaryHover},[`p${Tt}-drag-icon`]:{marginBottom:Ht.margin,[Jt]:{color:Ht.colorPrimary,fontSize:Ht.uploadThumbnailSize}},[`p${Tt}-text`]:{margin:`0 0 ${Ht.marginXXS}px`,color:Ht.colorTextHeading,fontSize:Ht.fontSizeLG},[`p${Tt}-hint`]:{color:Ht.colorTextDescription,fontSize:Ht.fontSize},[`&${Tt}-disabled`]:{cursor:"not-allowed",[`p${Tt}-drag-icon ${Jt},
|
|
|
p${Tt}-text,
|
|
|
p${Tt}-hint
|
|
|
`]:{color:Ht.colorTextDisabled}}}}}},pi=Ht=>{const{componentCls:Tt,antCls:Jt,iconCls:er,fontSize:kr,lineHeight:Rn}=Ht,Jn=`${Tt}-list-item`,sr=`${Jn}-actions`,Ir=`${Jn}-action`,Xr=Math.round(kr*Rn);return{[`${Tt}-wrapper`]:{[`${Tt}-list`]:Object.assign(Object.assign({},(0,Dr.dF)()),{lineHeight:Ht.lineHeight,[Jn]:{position:"relative",height:Ht.lineHeight*kr,marginTop:Ht.marginXS,fontSize:kr,display:"flex",alignItems:"center",transition:`background-color ${Ht.motionDurationSlow}`,"&:hover":{backgroundColor:Ht.controlItemBgHover},[`${Jn}-name`]:Object.assign(Object.assign({},Dr.vS),{padding:`0 ${Ht.paddingXS}px`,lineHeight:Rn,flex:"auto",transition:`all ${Ht.motionDurationSlow}`}),[sr]:{[Ir]:{opacity:0},[`${Ir}${Jt}-btn-sm`]:{height:Xr,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${Ir}:focus-visible,
|
|
|
&.picture ${Ir}
|
|
|
`]:{opacity:1},[er]:{color:Ht.actionsColor,transition:`all ${Ht.motionDurationSlow}`},[`&:hover ${er}`]:{color:Ht.colorText}},[`${Tt}-icon ${er}`]:{color:Ht.colorTextDescription,fontSize:kr},[`${Jn}-progress`]:{position:"absolute",bottom:-Ht.uploadProgressOffset,width:"100%",paddingInlineStart:kr+Ht.paddingXS,fontSize:kr,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Jn}:hover ${Ir}`]:{opacity:1,color:Ht.colorText},[`${Jn}-error`]:{color:Ht.colorError,[`${Jn}-name, ${Tt}-icon ${er}`]:{color:Ht.colorError},[sr]:{[`${er}, ${er}:hover`]:{color:Ht.colorError},[Ir]:{opacity:1}}},[`${Tt}-list-item-container`]:{transition:`opacity ${Ht.motionDurationSlow}, height ${Ht.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Zt=re(34367),Kn=re(16932);const fr=new Zt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),qn=new Zt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Kr=Ht=>{const{componentCls:Tt}=Ht,Jt=`${Tt}-animate-inline`;return[{[`${Tt}-wrapper`]:{[`${Jt}-appear, ${Jt}-enter, ${Jt}-leave`]:{animationDuration:Ht.motionDurationSlow,animationTimingFunction:Ht.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Jt}-appear, ${Jt}-enter`]:{animationName:fr},[`${Jt}-leave`]:{animationName:qn}}},{[`${Tt}-wrapper`]:(0,Kn.J$)(Ht)},fr,qn]},Rr=re(16397),gr=re(84780);const mt=Ht=>{const{componentCls:Tt,iconCls:Jt,uploadThumbnailSize:er,uploadProgressOffset:kr}=Ht,Rn=`${Tt}-list`,Jn=`${Rn}-item`;return{[`${Tt}-wrapper`]:{[`
|
|
|
${Rn}${Rn}-picture,
|
|
|
${Rn}${Rn}-picture-card,
|
|
|
${Rn}${Rn}-picture-circle
|
|
|
`]:{[Jn]:{position:"relative",height:er+Ht.lineWidth*2+Ht.paddingXS*2,padding:Ht.paddingXS,border:`${Ht.lineWidth}px ${Ht.lineType} ${Ht.colorBorder}`,borderRadius:Ht.borderRadiusLG,"&:hover":{background:"transparent"},[`${Jn}-thumbnail`]:Object.assign(Object.assign({},Dr.vS),{width:er,height:er,lineHeight:`${er+Ht.paddingSM}px`,textAlign:"center",flex:"none",[Jt]:{fontSize:Ht.fontSizeHeading2,color:Ht.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Jn}-progress`]:{bottom:kr,width:`calc(100% - ${Ht.paddingSM*2}px)`,marginTop:0,paddingInlineStart:er+Ht.paddingXS}},[`${Jn}-error`]:{borderColor:Ht.colorError,[`${Jn}-thumbnail ${Jt}`]:{[`svg path[fill='${Rr.blue[0]}']`]:{fill:Ht.colorErrorBg},[`svg path[fill='${Rr.blue.primary}']`]:{fill:Ht.colorError}}},[`${Jn}-uploading`]:{borderStyle:"dashed",[`${Jn}-name`]:{marginBottom:kr}}},[`${Rn}${Rn}-picture-circle ${Jn}`]:{[`&, &::before, ${Jn}-thumbnail`]:{borderRadius:"50%"}}}}},Ot=Ht=>{const{componentCls:Tt,iconCls:Jt,fontSizeLG:er,colorTextLightSolid:kr}=Ht,Rn=`${Tt}-list`,Jn=`${Rn}-item`,sr=Ht.uploadPicCardSize;return{[`
|
|
|
${Tt}-wrapper${Tt}-picture-card-wrapper,
|
|
|
${Tt}-wrapper${Tt}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Dr.dF)()),{display:"inline-block",width:"100%",[`${Tt}${Tt}-select`]:{width:sr,height:sr,marginInlineEnd:Ht.marginXS,marginBottom:Ht.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Ht.colorFillAlter,border:`${Ht.lineWidth}px dashed ${Ht.colorBorder}`,borderRadius:Ht.borderRadiusLG,cursor:"pointer",transition:`border-color ${Ht.motionDurationSlow}`,[`> ${Tt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Tt}-disabled):hover`]:{borderColor:Ht.colorPrimary}},[`${Rn}${Rn}-picture-card, ${Rn}${Rn}-picture-circle`]:{[`${Rn}-item-container`]:{display:"inline-block",width:sr,height:sr,marginBlock:`0 ${Ht.marginXS}px`,marginInline:`0 ${Ht.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Jn]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Ht.paddingXS*2}px)`,height:`calc(100% - ${Ht.paddingXS*2}px)`,backgroundColor:Ht.colorBgMask,opacity:0,transition:`all ${Ht.motionDurationSlow}`,content:'" "'}},[`${Jn}:hover`]:{[`&::before, ${Jn}-actions`]:{opacity:1}},[`${Jn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Ht.motionDurationSlow}`,[`${Jt}-eye, ${Jt}-download, ${Jt}-delete`]:{zIndex:10,width:er,margin:`0 ${Ht.marginXXS}px`,fontSize:er,cursor:"pointer",transition:`all ${Ht.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Jn}-actions, ${Jn}-actions:hover`]:{[`${Jt}-eye, ${Jt}-download, ${Jt}-delete`]:{color:new gr.C(kr).setAlpha(.65).toRgbString(),"&:hover":{color:kr}}},[`${Jn}-thumbnail, ${Jn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Jn}-name`]:{display:"none",textAlign:"center"},[`${Jn}-file + ${Jn}-name`]:{position:"absolute",bottom:Ht.margin,display:"block",width:`calc(100% - ${Ht.paddingXS*2}px)`},[`${Jn}-uploading`]:{[`&${Jn}`]:{backgroundColor:Ht.colorFillAlter},[`&::before, ${Jt}-eye, ${Jt}-download, ${Jt}-delete`]:{display:"none"}},[`${Jn}-progress`]:{bottom:Ht.marginXL,width:`calc(100% - ${Ht.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Tt}-wrapper${Tt}-picture-circle-wrapper`]:{[`${Tt}${Tt}-select`]:{borderRadius:"50%"}}}};var kn=Ht=>{const{componentCls:Tt}=Ht;return{[`${Tt}-rtl`]:{direction:"rtl"}}};const lt=Ht=>{const{componentCls:Tt,colorTextDisabled:Jt}=Ht;return{[`${Tt}-wrapper`]:Object.assign(Object.assign({},(0,Dr.Wf)(Ht)),{[Tt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Tt}-select`]:{display:"inline-block"},[`${Tt}-disabled`]:{color:Jt,cursor:"not-allowed"}})}};var Kt=(0,hr.Z)("Upload",Ht=>{const{fontSizeHeading3:Tt,fontSize:Jt,lineHeight:er,lineWidth:kr,controlHeightLG:Rn}=Ht,Jn=Math.round(Jt*er),sr=(0,_r.TS)(Ht,{uploadThumbnailSize:Tt*2,uploadProgressOffset:Jn/2+kr,uploadPicCardSize:Rn*2.55});return[lt(sr),zi(sr),mt(sr),Ot(sr),pi(sr),Kr(sr),kn(sr),(0,Fr.Z)(sr)]},Ht=>({actionsColor:Ht.colorTextDescription})),mn=function(Ht,Tt,Jt,er){function kr(Rn){return Rn instanceof Jt?Rn:new Jt(function(Jn){Jn(Rn)})}return new(Jt||(Jt=Promise))(function(Rn,Jn){function sr(Wn){try{Xr(er.next(Wn))}catch(Ai){Jn(Ai)}}function Ir(Wn){try{Xr(er.throw(Wn))}catch(Ai){Jn(Ai)}}function Xr(Wn){Wn.done?Rn(Wn.value):kr(Wn.value).then(sr,Ir)}Xr((er=er.apply(Ht,Tt||[])).next())})};const nn=`__LIST_IGNORE_${Date.now()}__`,In=(Ht,Tt)=>{const{fileList:Jt,defaultFileList:er,onRemove:kr,showUploadList:Rn=!0,listType:Jn="text",onPreview:sr,onDownload:Ir,onChange:Xr,onDrop:Wn,previewFile:Ai,disabled:xi,locale:Sa,iconRender:fa,isImageUrl:na,progress:Ni,prefixCls:la,className:Qi,type:ga="select",children:Ba,style:Oi,itemRender:ca,maxCount:Ca,data:Qa={},multiple:za=!1,action:Pi="",accept:an="",supportServerRender:Vt=!0,rootClassName:zn}=Ht,cr=ie.useContext(at.Z),Er=xi!=null?xi:cr,[qr,di]=(0,Gt.Z)(er||[],{value:Jt,postState:je=>je!=null?je:[]}),[bi,ki]=ie.useState("drop"),Si=ie.useRef(null);ie.useMemo(()=>{const je=Date.now();(Jt||[]).forEach((Qe,Rt)=>{!Qe.uid&&!Object.isFrozen(Qe)&&(Qe.uid=`__AUTO__${je}_${Rt}__`)})},[Jt]);const Ri=(je,Qe,Rt)=>{let kt=(0,Le.Z)(Qe),vn=!1;Ca===1?kt=kt.slice(-1):Ca&&(vn=kt.length>Ca,kt=kt.slice(0,Ca)),(0,Bn.flushSync)(()=>{di(kt)});const jn={file:je,fileList:kt};Rt&&(jn.event=Rt),(!vn||kt.some(vt=>vt.uid===je.uid))&&(0,Bn.flushSync)(()=>{Xr==null||Xr(jn)})},ra=(je,Qe)=>mn(void 0,void 0,void 0,function*(){const{beforeUpload:Rt,transformFile:kt}=Ht;let vn=je;if(Rt){const jn=yield Rt(je,Qe);if(jn===!1)return!1;if(delete je[nn],jn===nn)return Object.defineProperty(je,nn,{value:!0,configurable:!0}),!1;typeof jn=="object"&&jn&&(vn=jn)}return kt&&(vn=yield kt(vn)),vn}),oi=je=>{const Qe=je.filter(vn=>!vn.file[nn]);if(!Qe.length)return;const Rt=Qe.map(vn=>Bt(vn.file));let kt=(0,Le.Z)(qr);Rt.forEach(vn=>{kt=en(vn,kt)}),Rt.forEach((vn,jn)=>{let vt=vn;if(Qe[jn].parsedFile)vn.status="uploading";else{const{originFileObj:wt}=vn;let Ct;try{Ct=new File([wt],wt.name,{type:wt.type})}catch(Ft){Ct=new Blob([wt],{type:wt.type}),Ct.name=wt.name,Ct.lastModifiedDate=new Date,Ct.lastModified=new Date().getTime()}Ct.uid=vn.uid,vt=Ct}Ri(vt,kt)})},hn=(je,Qe,Rt)=>{try{typeof je=="string"&&(je=JSON.parse(je))}catch(jn){}if(!rn(Qe,qr))return;const kt=Bt(Qe);kt.status="done",kt.percent=100,kt.response=je,kt.xhr=Rt;const vn=en(kt,qr);Ri(kt,vn)},Dn=(je,Qe)=>{if(!rn(Qe,qr))return;const Rt=Bt(Qe);Rt.status="uploading",Rt.percent=je.percent;const kt=en(Rt,qr);Ri(Rt,kt,je)},Xn=(je,Qe,Rt)=>{if(!rn(Rt,qr))return;const kt=Bt(Rt);kt.error=je,kt.response=Qe,kt.status="error";const vn=en(kt,qr);Ri(kt,vn)},ge=je=>{let Qe;Promise.resolve(typeof kr=="function"?kr(je):kr).then(Rt=>{var kt;if(Rt===!1)return;const vn=sn(je,qr);vn&&(Qe=Object.assign(Object.assign({},je),{status:"removed"}),qr==null||qr.forEach(jn=>{const vt=Qe.uid!==void 0?"uid":"name";jn[vt]===Qe[vt]&&!Object.isFrozen(jn)&&(jn.status="removed")}),(kt=Si.current)===null||kt===void 0||kt.abort(Qe),Ri(Qe,vn))})},Re=je=>{ki(je.type),je.type==="drop"&&(Wn==null||Wn(je))};ie.useImperativeHandle(Tt,()=>({onBatchStart:oi,onSuccess:hn,onProgress:Dn,onError:Xn,fileList:qr,upload:Si.current}));const{getPrefixCls:He,direction:Ye,upload:Ve}=ie.useContext(Tn.E_),$e=He("upload",la),tt=Object.assign(Object.assign({onBatchStart:oi,onError:Xn,onProgress:Dn,onSuccess:hn},Ht),{data:Qa,multiple:za,action:Pi,accept:an,supportServerRender:Vt,prefixCls:$e,disabled:Er,beforeUpload:ra,onChange:void 0});delete tt.className,delete tt.style,(!Ba||Er)&&delete tt.id;const[Wt,on]=Kt($e),[Zn]=(0,Ae.Z)("Upload",St.Z.Upload),{showRemoveIcon:tr,showPreviewIcon:Vn,showDownloadIcon:Mn,removeIcon:En,previewIcon:dn,downloadIcon:Gn}=typeof Rn=="boolean"?{}:Rn,xr=(je,Qe)=>Rn?ie.createElement(or,{prefixCls:$e,listType:Jn,items:qr,previewFile:Ai,onPreview:sr,onDownload:Ir,onRemove:ge,showRemoveIcon:!Er&&tr,showPreviewIcon:Vn,showDownloadIcon:Mn,removeIcon:En,previewIcon:dn,downloadIcon:Gn,iconRender:fa,locale:Object.assign(Object.assign({},Zn),Sa),isImageUrl:na,progress:Ni,appendAction:je,appendActionVisible:Qe,itemRender:ca,disabled:Er}):je,ar=Ue()(`${$e}-wrapper`,Qi,zn,on,Ve==null?void 0:Ve.className,{[`${$e}-rtl`]:Ye==="rtl",[`${$e}-picture-card-wrapper`]:Jn==="picture-card",[`${$e}-picture-circle-wrapper`]:Jn==="picture-circle"}),ur=Object.assign(Object.assign({},Ve==null?void 0:Ve.style),Oi);if(ga==="drag"){const je=Ue()(on,$e,`${$e}-drag`,{[`${$e}-drag-uploading`]:qr.some(Qe=>Qe.status==="uploading"),[`${$e}-drag-hover`]:bi==="dragover",[`${$e}-disabled`]:Er,[`${$e}-rtl`]:Ye==="rtl"});return Wt(ie.createElement("span",{className:ar},ie.createElement("div",{className:je,style:ur,onDrop:Re,onDragOver:Re,onDragLeave:Re},ie.createElement(Mt,Object.assign({},tt,{ref:Si,className:`${$e}-btn`}),ie.createElement("div",{className:`${$e}-drag-container`},Ba))),xr()))}const mr=Ue()($e,`${$e}-select`,{[`${$e}-disabled`]:Er}),Tr=(je=>ie.createElement("div",{className:mr,style:je},ie.createElement(Mt,Object.assign({},tt,{ref:Si}))))(Ba?void 0:{display:"none"});return Wt(Jn==="picture-card"||Jn==="picture-circle"?ie.createElement("span",{className:ar},xr(Tr,!!Ba)):ie.createElement("span",{className:ar},Tr,xr()))};var vr=ie.forwardRef(In),ni=function(Ht,Tt){var Jt={};for(var er in Ht)Object.prototype.hasOwnProperty.call(Ht,er)&&Tt.indexOf(er)<0&&(Jt[er]=Ht[er]);if(Ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kr=0,er=Object.getOwnPropertySymbols(Ht);kr<er.length;kr++)Tt.indexOf(er[kr])<0&&Object.prototype.propertyIsEnumerable.call(Ht,er[kr])&&(Jt[er[kr]]=Ht[er[kr]]);return Jt},Pr=ie.forwardRef((Ht,Tt)=>{var{style:Jt,height:er}=Ht,kr=ni(Ht,["style","height"]);return ie.createElement(vr,Object.assign({ref:Tt},kr,{type:"drag",style:Object.assign(Object.assign({},Jt),{height:er})}))});const Yr=vr;Yr.Dragger=Pr,Yr.LIST_IGNORE=nn;var Qr=Yr},72665:function(bn,Ut){"use strict";var re;var ie=typeof Symbol=="function"&&Symbol.for,Le=ie?Symbol.for("react.element"):60103,Oe=ie?Symbol.for("react.portal"):60106,Ue=ie?Symbol.for("react.fragment"):60107,be=ie?Symbol.for("react.strict_mode"):60108,Me=ie?Symbol.for("react.profiler"):60114,ue=ie?Symbol.for("react.provider"):60109,we=ie?Symbol.for("react.context"):60110,me=ie?Symbol.for("react.async_mode"):60111,Ie=ie?Symbol.for("react.concurrent_mode"):60111,ct=ie?Symbol.for("react.forward_ref"):60112,Ke=ie?Symbol.for("react.suspense"):60113,st=ie?Symbol.for("react.suspense_list"):60120,dt=ie?Symbol.for("react.memo"):60115,Xe=ie?Symbol.for("react.lazy"):60116,We=ie?Symbol.for("react.block"):60121,ye=ie?Symbol.for("react.fundamental"):60117,it=ie?Symbol.for("react.responder"):60118,Lt=ie?Symbol.for("react.scope"):60119;function qe(xe){if(typeof xe=="object"&&xe!==null){var Se=xe.$$typeof;switch(Se){case Le:switch(xe=xe.type,xe){case me:case Ie:case Ue:case Me:case be:case Ke:return xe;default:switch(xe=xe&&xe.$$typeof,xe){case we:case ct:case Xe:case dt:case ue:return xe;default:return Se}}case Oe:return Se}}}function rt(xe){return qe(xe)===Ie}re=me,re=Ie,re=we,re=ue,re=Le,re=ct,re=Ue,re=Xe,re=dt,re=Oe,re=Me,re=be,re=Ke,re=function(xe){return rt(xe)||qe(xe)===me},re=rt,re=function(xe){return qe(xe)===we},re=function(xe){return qe(xe)===ue},re=function(xe){return typeof xe=="object"&&xe!==null&&xe.$$typeof===Le},re=function(xe){return qe(xe)===ct},re=function(xe){return qe(xe)===Ue},re=function(xe){return qe(xe)===Xe},Ut.isMemo=function(xe){return qe(xe)===dt},re=function(xe){return qe(xe)===Oe},re=function(xe){return qe(xe)===Me},re=function(xe){return qe(xe)===be},re=function(xe){return qe(xe)===Ke},re=function(xe){return typeof xe=="string"||typeof xe=="function"||xe===Ue||xe===Ie||xe===Me||xe===be||xe===Ke||xe===st||typeof xe=="object"&&xe!==null&&(xe.$$typeof===Xe||xe.$$typeof===dt||xe.$$typeof===ue||xe.$$typeof===we||xe.$$typeof===ct||xe.$$typeof===ye||xe.$$typeof===it||xe.$$typeof===Lt||xe.$$typeof===We)},re=qe},12060:function(bn,Ut,re){"use strict";bn.exports=re(72665)},41771:function(bn,Ut){"use strict";var re;var ie=typeof Symbol=="function"&&Symbol.for,Le=ie?Symbol.for("react.element"):60103,Oe=ie?Symbol.for("react.portal"):60106,Ue=ie?Symbol.for("react.fragment"):60107,be=ie?Symbol.for("react.strict_mode"):60108,Me=ie?Symbol.for("react.profiler"):60114,ue=ie?Symbol.for("react.provider"):60109,we=ie?Symbol.for("react.context"):60110,me=ie?Symbol.for("react.async_mode"):60111,Ie=ie?Symbol.for("react.concurrent_mode"):60111,ct=ie?Symbol.for("react.forward_ref"):60112,Ke=ie?Symbol.for("react.suspense"):60113,st=ie?Symbol.for("react.suspense_list"):60120,dt=ie?Symbol.for("react.memo"):60115,Xe=ie?Symbol.for("react.lazy"):60116,We=ie?Symbol.for("react.block"):60121,ye=ie?Symbol.for("react.fundamental"):60117,it=ie?Symbol.for("react.responder"):60118,Lt=ie?Symbol.for("react.scope"):60119;function qe(xe){if(typeof xe=="object"&&xe!==null){var Se=xe.$$typeof;switch(Se){case Le:switch(xe=xe.type,xe){case me:case Ie:case Ue:case Me:case be:case Ke:return xe;default:switch(xe=xe&&xe.$$typeof,xe){case we:case ct:case Xe:case dt:case ue:return xe;default:return Se}}case Oe:return Se}}}function rt(xe){return qe(xe)===Ie}re=me,re=Ie,re=we,re=ue,re=Le,re=ct,re=Ue,re=Xe,re=dt,re=Oe,re=Me,re=be,re=Ke,re=function(xe){return rt(xe)||qe(xe)===me},re=rt,re=function(xe){return qe(xe)===we},re=function(xe){return qe(xe)===ue},re=function(xe){return typeof xe=="object"&&xe!==null&&xe.$$typeof===Le},re=function(xe){return qe(xe)===ct},Ut.isFragment=function(xe){return qe(xe)===Ue},re=function(xe){return qe(xe)===Xe},re=function(xe){return qe(xe)===dt},re=function(xe){return qe(xe)===Oe},re=function(xe){return qe(xe)===Me},re=function(xe){return qe(xe)===be},re=function(xe){return qe(xe)===Ke},re=function(xe){return typeof xe=="string"||typeof xe=="function"||xe===Ue||xe===Ie||xe===Me||xe===be||xe===Ke||xe===st||typeof xe=="object"&&xe!==null&&(xe.$$typeof===Xe||xe.$$typeof===dt||xe.$$typeof===ue||xe.$$typeof===we||xe.$$typeof===ct||xe.$$typeof===ye||xe.$$typeof===it||xe.$$typeof===Lt||xe.$$typeof===We)},re=qe},47655:function(bn,Ut,re){"use strict";bn.exports=re(41771)},64701:function(bn,Ut,re){"use strict";re.r(Ut),re.d(Ut,{ResizableTextArea:function(){return cn},default:function(){return On}});var ie=re(87462),Le=re(1413),Oe=re(4942),Ue=re(71002),be=re(97685),Me=re(45987),ue=re(74902),we=re(94184),me=re.n(we),Ie=re(67656),ct=re(87887),Ke=re(67294);function st($t){var yn=Ke.useRef();yn.current=$t;var Qn=Ke.useCallback(function(){for(var Cn,Pe=arguments.length,fe=new Array(Pe),ce=0;ce<Pe;ce++)fe[ce]=arguments[ce];return(Cn=yn.current)===null||Cn===void 0?void 0:Cn.call.apply(Cn,[yn].concat(fe))},[]);return Qn}function dt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Xe=dt()?Ke.useLayoutEffect:Ke.useEffect,We=Xe,ye=function(yn,Qn){var Cn=Ke.useRef(!0);Xe(function(){if(!Cn.current)return yn()},Qn),Xe(function(){return Cn.current=!1,function(){Cn.current=!0}},[])};function it($t){var yn=Ke.useRef(!1),Qn=Ke.useState($t),Cn=(0,be.Z)(Qn,2),Pe=Cn[0],fe=Cn[1];Ke.useEffect(function(){return yn.current=!1,function(){yn.current=!0}},[]);function ce(pe,de){de&&yn.current||fe(pe)}return[Pe,ce]}function Lt($t){return $t!==void 0}function qe($t,yn){var Qn=yn||{},Cn=Qn.defaultValue,Pe=Qn.value,fe=Qn.onChange,ce=Qn.postState,pe=it(function(){return Lt(Pe)?Pe:Lt(Cn)?typeof Cn=="function"?Cn():Cn:typeof $t=="function"?$t():$t}),de=(0,be.Z)(pe,2),le=de[0],Te=de[1],ot=Pe!==void 0?Pe:le,Bt=ce?ce(ot):ot,en=st(fe),rn=it([ot]),sn=(0,be.Z)(rn,2),un=sn[0],gt=sn[1];ye(function(){var It=un[0];le!==It&&en(le,It)},[un]),ye(function(){Lt(Pe)||Te(Pe)},[Pe]);var zt=st(function(It,ln){Te(It,ln),gt([ot],ln)});return[Bt,zt]}var rt=re(48555),xe=function(yn){return+setTimeout(yn,16)},Se=function(yn){return clearTimeout(yn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(xe=function(yn){return window.requestAnimationFrame(yn)},Se=function(yn){return window.cancelAnimationFrame(yn)});var Ze=0,Ge=new Map;function yt($t){Ge.delete($t)}var pt=function(yn){var Qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ze+=1;var Cn=Ze;function Pe(fe){if(fe===0)yt(Cn),yn();else{var ce=xe(function(){Pe(fe-1)});Ge.set(Cn,ce)}}return Pe(Qn),Cn};pt.cancel=function($t){var yn=Ge.get($t);return yt(yn),Se(yn)};var ft=pt,Ne=`
|
|
|
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;
|
|
|
`,jt=["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"],bt={},xn;function Mt($t){var yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qn=$t.getAttribute("id")||$t.getAttribute("data-reactid")||$t.getAttribute("name");if(yn&&bt[Qn])return bt[Qn];var Cn=window.getComputedStyle($t),Pe=Cn.getPropertyValue("box-sizing")||Cn.getPropertyValue("-moz-box-sizing")||Cn.getPropertyValue("-webkit-box-sizing"),fe=parseFloat(Cn.getPropertyValue("padding-bottom"))+parseFloat(Cn.getPropertyValue("padding-top")),ce=parseFloat(Cn.getPropertyValue("border-bottom-width"))+parseFloat(Cn.getPropertyValue("border-top-width")),pe=jt.map(function(le){return"".concat(le,":").concat(Cn.getPropertyValue(le))}).join(";"),de={sizingStyle:pe,paddingSize:fe,borderSize:ce,boxSizing:Pe};return yn&&Qn&&(bt[Qn]=de),de}function Gt($t){var yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Cn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;xn||(xn=document.createElement("textarea"),xn.setAttribute("tab-index","-1"),xn.setAttribute("aria-hidden","true"),document.body.appendChild(xn)),$t.getAttribute("wrap")?xn.setAttribute("wrap",$t.getAttribute("wrap")):xn.removeAttribute("wrap");var Pe=Mt($t,yn),fe=Pe.paddingSize,ce=Pe.borderSize,pe=Pe.boxSizing,de=Pe.sizingStyle;xn.setAttribute("style","".concat(de,";").concat(Ne)),xn.value=$t.value||$t.placeholder||"";var le=void 0,Te=void 0,ot,Bt=xn.scrollHeight;if(pe==="border-box"?Bt+=ce:pe==="content-box"&&(Bt-=fe),Qn!==null||Cn!==null){xn.value=" ";var en=xn.scrollHeight-fe;Qn!==null&&(le=en*Qn,pe==="border-box"&&(le=le+fe+ce),Bt=Math.max(le,Bt)),Cn!==null&&(Te=en*Cn,pe==="border-box"&&(Te=Te+fe+ce),ot=Bt>Te?"":"hidden",Bt=Math.min(Te,Bt))}var rn={height:Bt,overflowY:ot,resize:"none"};return le&&(rn.minHeight=le),Te&&(rn.maxHeight=Te),rn}var Bn=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Tn=0,at=1,Ae=2,St=Ke.forwardRef(function($t,yn){var Qn=$t,Cn=Qn.prefixCls,Pe=Qn.onPressEnter,fe=Qn.defaultValue,ce=Qn.value,pe=Qn.autoSize,de=Qn.onResize,le=Qn.className,Te=Qn.style,ot=Qn.disabled,Bt=Qn.onChange,en=Qn.onInternalAutoSize,rn=(0,Me.Z)(Qn,Bn),sn=qe(fe,{value:ce,postState:function(qn){return qn!=null?qn:""}}),un=(0,be.Z)(sn,2),gt=un[0],zt=un[1],It=function(qn){zt(qn.target.value),Bt==null||Bt(qn)},ln=Ke.useRef();Ke.useImperativeHandle(yn,function(){return{textArea:ln.current}});var _t=Ke.useMemo(function(){return pe&&(0,Ue.Z)(pe)==="object"?[pe.minRows,pe.maxRows]:[]},[pe]),lr=(0,be.Z)(_t,2),xt=lr[0],Yt=lr[1],Un=!!pe,Hn=function(){try{if(document.activeElement===ln.current){var qn=ln.current,Br=qn.selectionStart,Kr=qn.selectionEnd,Rr=qn.scrollTop;ln.current.setSelectionRange(Br,Kr),ln.current.scrollTop=Rr}}catch(gr){}},$n=Ke.useState(Ae),yr=(0,be.Z)($n,2),Fn=yr[0],or=yr[1],Dr=Ke.useState(),Fr=(0,be.Z)(Dr,2),hr=Fr[0],_r=Fr[1],Mi=function(){or(Tn)};We(function(){Un&&Mi()},[ce,xt,Yt,Un]),We(function(){if(Fn===Tn)or(at);else if(Fn===at){var fr=Gt(ln.current,!1,xt,Yt);or(Ae),_r(fr)}else Hn()},[Fn]);var zi=Ke.useRef(),Gi=function(){ft.cancel(zi.current)},pi=function(qn){Fn===Ae&&(de==null||de(qn),pe&&(Gi(),zi.current=ft(function(){Mi()})))};Ke.useEffect(function(){return Gi},[]);var Zt=Un?hr:null,Kn=(0,Le.Z)((0,Le.Z)({},Te),Zt);return(Fn===Tn||Fn===at)&&(Kn.overflowY="hidden",Kn.overflowX="hidden"),Ke.createElement(rt.Z,{onResize:pi,disabled:!(pe||de)},Ke.createElement("textarea",(0,ie.Z)({},rn,{ref:ln,style:Kn,className:me()(Cn,le,(0,Oe.Z)({},"".concat(Cn,"-disabled"),ot)),disabled:ot,value:gt,onChange:It})))}),cn=St,Pt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ht($t,yn){return(0,ue.Z)($t||"").slice(0,yn).join("")}function Et($t,yn,Qn,Cn){var Pe=Qn;return $t?Pe=ht(Qn,Cn):(0,ue.Z)(yn||"").length<Qn.length&&(0,ue.Z)(Qn||"").length>Cn&&(Pe=yn),Pe}var Qt=Ke.forwardRef(function($t,yn){var Qn,Cn=$t.defaultValue,Pe=$t.value,fe=$t.onFocus,ce=$t.onBlur,pe=$t.onChange,de=$t.allowClear,le=$t.maxLength,Te=$t.onCompositionStart,ot=$t.onCompositionEnd,Bt=$t.suffix,en=$t.prefixCls,rn=en===void 0?"rc-textarea":en,sn=$t.classes,un=$t.showCount,gt=$t.className,zt=$t.style,It=$t.disabled,ln=$t.hidden,_t=$t.classNames,lr=$t.styles,xt=$t.onResize,Yt=(0,Me.Z)($t,Pt),Un=qe(Cn,{value:Pe,defaultValue:Cn}),Hn=(0,be.Z)(Un,2),$n=Hn[0],yr=Hn[1],Fn=(0,Ke.useRef)(null),or=Ke.useState(!1),Dr=(0,be.Z)(or,2),Fr=Dr[0],hr=Dr[1],_r=Ke.useState(!1),Mi=(0,be.Z)(_r,2),zi=Mi[0],Gi=Mi[1],pi=Ke.useRef(),Zt=Ke.useRef(0),Kn=Ke.useState(null),fr=(0,be.Z)(Kn,2),qn=fr[0],Br=fr[1],Kr=function(){var Yr;(Yr=Fn.current)===null||Yr===void 0||Yr.textArea.focus()};(0,Ke.useImperativeHandle)(yn,function(){return{resizableTextArea:Fn.current,focus:Kr,blur:function(){var Yr;(Yr=Fn.current)===null||Yr===void 0||Yr.textArea.blur()}}}),(0,Ke.useEffect)(function(){hr(function(Pr){return!It&&Pr})},[It]);var Rr=Number(le)>0,gr=function(Yr){Gi(!0),pi.current=$n,Zt.current=Yr.currentTarget.selectionStart,Te==null||Te(Yr)},mt=function(Yr){Gi(!1);var Qr=Yr.currentTarget.value;if(Rr){var Ht,Tt=Zt.current>=le+1||Zt.current===((Ht=pi.current)===null||Ht===void 0?void 0:Ht.length);Qr=Et(Tt,pi.current,Qr,le)}Qr!==$n&&(yr(Qr),(0,ct.rJ)(Yr.currentTarget,Yr,pe,Qr)),ot==null||ot(Yr)},Ot=function(Yr){var Qr=Yr.target.value;if(!zi&&Rr){var Ht=Yr.target.selectionStart>=le+1||Yr.target.selectionStart===Qr.length||!Yr.target.selectionStart;Qr=Et(Ht,$n,Qr,le)}yr(Qr),(0,ct.rJ)(Yr.currentTarget,Yr,pe,Qr)},Xt=function(Yr){var Qr=Yt.onPressEnter,Ht=Yt.onKeyDown;Yr.key==="Enter"&&Qr&&Qr(Yr),Ht==null||Ht(Yr)},kn=function(Yr){hr(!0),fe==null||fe(Yr)},lt=function(Yr){hr(!1),ce==null||ce(Yr)},Kt=function(Yr){var Qr;yr(""),Kr(),(0,ct.rJ)((Qr=Fn.current)===null||Qr===void 0?void 0:Qr.textArea,Yr,pe)},mn=(0,ct.D7)($n);!zi&&Rr&&Pe==null&&(mn=ht(mn,le));var nn=Bt,In;if(un){var Pn=(0,ue.Z)(mn).length;(0,Ue.Z)(un)==="object"?In=un.formatter({value:mn,count:Pn,maxLength:le}):In="".concat(Pn).concat(Rr?" / ".concat(le):""),nn=Ke.createElement(Ke.Fragment,null,nn,Ke.createElement("span",{className:me()("".concat(rn,"-data-count"),_t==null?void 0:_t.count),style:lr==null?void 0:lr.count},In))}var vr=function(Yr){var Qr;xt==null||xt(Yr),(Qr=Fn.current)!==null&&Qr!==void 0&&Qr.textArea.style.height&&Br(!0)},ni=!Yt.autoSize&&!un&&!de,zr=Ke.createElement(Ie.BaseInput,{value:mn,allowClear:de,handleReset:Kt,suffix:nn,prefixCls:rn,classes:{affixWrapper:me()(sn==null?void 0:sn.affixWrapper,(Qn={},(0,Oe.Z)(Qn,"".concat(rn,"-show-count"),un),(0,Oe.Z)(Qn,"".concat(rn,"-textarea-allow-clear"),de),Qn))},disabled:It,focused:Fr,className:gt,style:(0,Le.Z)((0,Le.Z)({},zt),qn&&!ni?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof In=="string"?In:void 0}},hidden:ln,inputElement:Ke.createElement(cn,(0,ie.Z)({},Yt,{onKeyDown:Xt,onChange:Ot,onFocus:kn,onBlur:lt,onCompositionStart:gr,onCompositionEnd:mt,className:_t==null?void 0:_t.textarea,style:(0,Le.Z)((0,Le.Z)({},lr==null?void 0:lr.textarea),{},{resize:zt==null?void 0:zt.resize}),disabled:It,prefixCls:rn,onResize:vr,ref:Fn}))});return zr}),ir=Qt,On=ir},56261:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Ge}});var ie=re(87462),Le=re(4942),Oe=re(45987),Ue=re(1413),be=re(15671),Me=re(43144),ue=re(97326),we=re(60136),me=re(51630),Ie=re(94184),ct=re.n(Ie),Ke=re(34952),st=re(67294),dt=re(69610),Xe=function(pt){for(var ft=pt.prefixCls,Ne=pt.level,jt=pt.isStart,bt=pt.isEnd,xn="".concat(ft,"-indent-unit"),Mt=[],Gt=0;Gt<Ne;Gt+=1){var Bn;Mt.push(st.createElement("span",{key:Gt,className:ct()(xn,(Bn={},(0,Le.Z)(Bn,"".concat(xn,"-start"),jt[Gt]),(0,Le.Z)(Bn,"".concat(xn,"-end"),bt[Gt]),Bn))}))}return st.createElement("span",{"aria-hidden":"true",className:"".concat(ft,"-indent")},Mt)},We=st.memo(Xe),ye=re(3596),it=re(83898),Lt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],qe="open",rt="close",xe="---",Se=function(yt){(0,we.Z)(ft,yt);var pt=(0,me.Z)(ft);function ft(){var Ne;(0,be.Z)(this,ft);for(var jt=arguments.length,bt=new Array(jt),xn=0;xn<jt;xn++)bt[xn]=arguments[xn];return Ne=pt.call.apply(pt,[this].concat(bt)),Ne.state={dragNodeHighlight:!1},Ne.selectHandle=void 0,Ne.cacheIndent=void 0,Ne.onSelectorClick=function(Mt){var Gt=Ne.props.context.onNodeClick;Gt(Mt,(0,it.F)(Ne.props)),Ne.isSelectable()?Ne.onSelect(Mt):Ne.onCheck(Mt)},Ne.onSelectorDoubleClick=function(Mt){var Gt=Ne.props.context.onNodeDoubleClick;Gt(Mt,(0,it.F)(Ne.props))},Ne.onSelect=function(Mt){if(!Ne.isDisabled()){var Gt=Ne.props.context.onNodeSelect;Gt(Mt,(0,it.F)(Ne.props))}},Ne.onCheck=function(Mt){if(!Ne.isDisabled()){var Gt=Ne.props,Bn=Gt.disableCheckbox,Tn=Gt.checked,at=Ne.props.context.onNodeCheck;if(!(!Ne.isCheckable()||Bn)){var Ae=!Tn;at(Mt,(0,it.F)(Ne.props),Ae)}}},Ne.onMouseEnter=function(Mt){var Gt=Ne.props.context.onNodeMouseEnter;Gt(Mt,(0,it.F)(Ne.props))},Ne.onMouseLeave=function(Mt){var Gt=Ne.props.context.onNodeMouseLeave;Gt(Mt,(0,it.F)(Ne.props))},Ne.onContextMenu=function(Mt){var Gt=Ne.props.context.onNodeContextMenu;Gt(Mt,(0,it.F)(Ne.props))},Ne.onDragStart=function(Mt){var Gt=Ne.props.context.onNodeDragStart;Mt.stopPropagation(),Ne.setState({dragNodeHighlight:!0}),Gt(Mt,(0,ue.Z)(Ne));try{Mt.dataTransfer.setData("text/plain","")}catch(Bn){}},Ne.onDragEnter=function(Mt){var Gt=Ne.props.context.onNodeDragEnter;Mt.preventDefault(),Mt.stopPropagation(),Gt(Mt,(0,ue.Z)(Ne))},Ne.onDragOver=function(Mt){var Gt=Ne.props.context.onNodeDragOver;Mt.preventDefault(),Mt.stopPropagation(),Gt(Mt,(0,ue.Z)(Ne))},Ne.onDragLeave=function(Mt){var Gt=Ne.props.context.onNodeDragLeave;Mt.stopPropagation(),Gt(Mt,(0,ue.Z)(Ne))},Ne.onDragEnd=function(Mt){var Gt=Ne.props.context.onNodeDragEnd;Mt.stopPropagation(),Ne.setState({dragNodeHighlight:!1}),Gt(Mt,(0,ue.Z)(Ne))},Ne.onDrop=function(Mt){var Gt=Ne.props.context.onNodeDrop;Mt.preventDefault(),Mt.stopPropagation(),Ne.setState({dragNodeHighlight:!1}),Gt(Mt,(0,ue.Z)(Ne))},Ne.onExpand=function(Mt){var Gt=Ne.props,Bn=Gt.loading,Tn=Gt.context.onNodeExpand;Bn||Tn(Mt,(0,it.F)(Ne.props))},Ne.setSelectHandle=function(Mt){Ne.selectHandle=Mt},Ne.getNodeState=function(){var Mt=Ne.props.expanded;return Ne.isLeaf()?null:Mt?qe:rt},Ne.hasChildren=function(){var Mt=Ne.props.eventKey,Gt=Ne.props.context.keyEntities,Bn=(0,ye.Z)(Gt,Mt)||{},Tn=Bn.children;return!!(Tn||[]).length},Ne.isLeaf=function(){var Mt=Ne.props,Gt=Mt.isLeaf,Bn=Mt.loaded,Tn=Ne.props.context.loadData,at=Ne.hasChildren();return Gt===!1?!1:Gt||!Tn&&!at||Tn&&Bn&&!at},Ne.isDisabled=function(){var Mt=Ne.props.disabled,Gt=Ne.props.context.disabled;return!!(Gt||Mt)},Ne.isCheckable=function(){var Mt=Ne.props.checkable,Gt=Ne.props.context.checkable;return!Gt||Mt===!1?!1:Gt},Ne.syncLoadData=function(Mt){var Gt=Mt.expanded,Bn=Mt.loading,Tn=Mt.loaded,at=Ne.props.context,Ae=at.loadData,St=at.onNodeLoad;Bn||Ae&&Gt&&!Ne.isLeaf()&&!Ne.hasChildren()&&!Tn&&St((0,it.F)(Ne.props))},Ne.isDraggable=function(){var Mt=Ne.props,Gt=Mt.data,Bn=Mt.context.draggable;return!!(Bn&&(!Bn.nodeDraggable||Bn.nodeDraggable(Gt)))},Ne.renderDragHandler=function(){var Mt=Ne.props.context,Gt=Mt.draggable,Bn=Mt.prefixCls;return Gt!=null&&Gt.icon?st.createElement("span",{className:"".concat(Bn,"-draggable-icon")},Gt.icon):null},Ne.renderSwitcherIconDom=function(Mt){var Gt=Ne.props.switcherIcon,Bn=Ne.props.context.switcherIcon,Tn=Gt||Bn;return typeof Tn=="function"?Tn((0,Ue.Z)((0,Ue.Z)({},Ne.props),{},{isLeaf:Mt})):Tn},Ne.renderSwitcher=function(){var Mt=Ne.props.expanded,Gt=Ne.props.context.prefixCls;if(Ne.isLeaf()){var Bn=Ne.renderSwitcherIconDom(!0);return Bn!==!1?st.createElement("span",{className:ct()("".concat(Gt,"-switcher"),"".concat(Gt,"-switcher-noop"))},Bn):null}var Tn=ct()("".concat(Gt,"-switcher"),"".concat(Gt,"-switcher_").concat(Mt?qe:rt)),at=Ne.renderSwitcherIconDom(!1);return at!==!1?st.createElement("span",{onClick:Ne.onExpand,className:Tn},at):null},Ne.renderCheckbox=function(){var Mt=Ne.props,Gt=Mt.checked,Bn=Mt.halfChecked,Tn=Mt.disableCheckbox,at=Ne.props.context.prefixCls,Ae=Ne.isDisabled(),St=Ne.isCheckable();if(!St)return null;var cn=typeof St!="boolean"?St:null;return st.createElement("span",{className:ct()("".concat(at,"-checkbox"),Gt&&"".concat(at,"-checkbox-checked"),!Gt&&Bn&&"".concat(at,"-checkbox-indeterminate"),(Ae||Tn)&&"".concat(at,"-checkbox-disabled")),onClick:Ne.onCheck},cn)},Ne.renderIcon=function(){var Mt=Ne.props.loading,Gt=Ne.props.context.prefixCls;return st.createElement("span",{className:ct()("".concat(Gt,"-iconEle"),"".concat(Gt,"-icon__").concat(Ne.getNodeState()||"docu"),Mt&&"".concat(Gt,"-icon_loading"))})},Ne.renderSelector=function(){var Mt=Ne.state.dragNodeHighlight,Gt=Ne.props,Bn=Gt.title,Tn=Bn===void 0?xe:Bn,at=Gt.selected,Ae=Gt.icon,St=Gt.loading,cn=Gt.data,Pt=Ne.props.context,ht=Pt.prefixCls,Et=Pt.showIcon,Qt=Pt.icon,ir=Pt.loadData,On=Pt.titleRender,$t=Ne.isDisabled(),yn="".concat(ht,"-node-content-wrapper"),Qn;if(Et){var Cn=Ae||Qt;Qn=Cn?st.createElement("span",{className:ct()("".concat(ht,"-iconEle"),"".concat(ht,"-icon__customize"))},typeof Cn=="function"?Cn(Ne.props):Cn):Ne.renderIcon()}else ir&&St&&(Qn=Ne.renderIcon());var Pe;typeof Tn=="function"?Pe=Tn(cn):On?Pe=On(cn):Pe=Tn;var fe=st.createElement("span",{className:"".concat(ht,"-title")},Pe);return st.createElement("span",{ref:Ne.setSelectHandle,title:typeof Tn=="string"?Tn:"",className:ct()("".concat(yn),"".concat(yn,"-").concat(Ne.getNodeState()||"normal"),!$t&&(at||Mt)&&"".concat(ht,"-node-selected")),onMouseEnter:Ne.onMouseEnter,onMouseLeave:Ne.onMouseLeave,onContextMenu:Ne.onContextMenu,onClick:Ne.onSelectorClick,onDoubleClick:Ne.onSelectorDoubleClick},Qn,fe,Ne.renderDropIndicator())},Ne.renderDropIndicator=function(){var Mt=Ne.props,Gt=Mt.disabled,Bn=Mt.eventKey,Tn=Ne.props.context,at=Tn.draggable,Ae=Tn.dropLevelOffset,St=Tn.dropPosition,cn=Tn.prefixCls,Pt=Tn.indent,ht=Tn.dropIndicatorRender,Et=Tn.dragOverNodeKey,Qt=Tn.direction,ir=!!at,On=!Gt&&ir&&Et===Bn,$t=Pt!=null?Pt:Ne.cacheIndent;return Ne.cacheIndent=Pt,On?ht({dropPosition:St,dropLevelOffset:Ae,indent:$t,prefixCls:cn,direction:Qt}):null},Ne}return(0,Me.Z)(ft,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var jt=this.props.selectable,bt=this.props.context.selectable;return typeof jt=="boolean"?jt:bt}},{key:"render",value:function(){var jt,bt=this.props,xn=bt.eventKey,Mt=bt.className,Gt=bt.style,Bn=bt.dragOver,Tn=bt.dragOverGapTop,at=bt.dragOverGapBottom,Ae=bt.isLeaf,St=bt.isStart,cn=bt.isEnd,Pt=bt.expanded,ht=bt.selected,Et=bt.checked,Qt=bt.halfChecked,ir=bt.loading,On=bt.domRef,$t=bt.active,yn=bt.data,Qn=bt.onMouseMove,Cn=bt.selectable,Pe=(0,Oe.Z)(bt,Lt),fe=this.props.context,ce=fe.prefixCls,pe=fe.filterTreeNode,de=fe.keyEntities,le=fe.dropContainerKey,Te=fe.dropTargetKey,ot=fe.draggingNodeKey,Bt=this.isDisabled(),en=(0,Ke.Z)(Pe,{aria:!0,data:!0}),rn=(0,ye.Z)(de,xn)||{},sn=rn.level,un=cn[cn.length-1],gt=this.isDraggable(),zt=!Bt&>,It=ot===xn,ln=Cn!==void 0?{"aria-selected":!!Cn}:void 0;return st.createElement("div",(0,ie.Z)({ref:On,className:ct()(Mt,"".concat(ce,"-treenode"),(jt={},(0,Le.Z)(jt,"".concat(ce,"-treenode-disabled"),Bt),(0,Le.Z)(jt,"".concat(ce,"-treenode-switcher-").concat(Pt?"open":"close"),!Ae),(0,Le.Z)(jt,"".concat(ce,"-treenode-checkbox-checked"),Et),(0,Le.Z)(jt,"".concat(ce,"-treenode-checkbox-indeterminate"),Qt),(0,Le.Z)(jt,"".concat(ce,"-treenode-selected"),ht),(0,Le.Z)(jt,"".concat(ce,"-treenode-loading"),ir),(0,Le.Z)(jt,"".concat(ce,"-treenode-active"),$t),(0,Le.Z)(jt,"".concat(ce,"-treenode-leaf-last"),un),(0,Le.Z)(jt,"".concat(ce,"-treenode-draggable"),gt),(0,Le.Z)(jt,"dragging",It),(0,Le.Z)(jt,"drop-target",Te===xn),(0,Le.Z)(jt,"drop-container",le===xn),(0,Le.Z)(jt,"drag-over",!Bt&&Bn),(0,Le.Z)(jt,"drag-over-gap-top",!Bt&&Tn),(0,Le.Z)(jt,"drag-over-gap-bottom",!Bt&&at),(0,Le.Z)(jt,"filter-node",pe&&pe((0,it.F)(this.props))),jt)),style:Gt,draggable:zt,"aria-grabbed":It,onDragStart:zt?this.onDragStart:void 0,onDragEnter:gt?this.onDragEnter:void 0,onDragOver:gt?this.onDragOver:void 0,onDragLeave:gt?this.onDragLeave:void 0,onDrop:gt?this.onDrop:void 0,onDragEnd:gt?this.onDragEnd:void 0,onMouseMove:Qn},ln,en),st.createElement(We,{prefixCls:ce,level:sn,isStart:St,isEnd:cn}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),ft}(st.Component),Ze=function(pt){return st.createElement(dt.k.Consumer,null,function(ft){return st.createElement(Se,(0,ie.Z)({},pt,{context:ft}))})};Ze.displayName="TreeNode",Ze.isTreeNode=1;var Ge=Ze},69610:function(bn,Ut,re){"use strict";re.d(Ut,{k:function(){return Le}});var ie=re(67294),Le=ie.createContext(null)},29873:function(bn,Ut,re){"use strict";re.d(Ut,{BT:function(){return We},E6:function(){return Lt},L0:function(){return Ie},OM:function(){return Xe},_5:function(){return me},r7:function(){return qe},wA:function(){return Ke},yx:function(){return ct}});var ie=re(74902),Le=re(71002),Oe=re(72978),Ue=re(67294),be=re(56261),Me=re(3596),ue=re(83898),we=null;function me(rt,xe){if(!rt)return[];var Se=rt.slice(),Ze=Se.indexOf(xe);return Ze>=0&&Se.splice(Ze,1),Se}function Ie(rt,xe){var Se=(rt||[]).slice();return Se.indexOf(xe)===-1&&Se.push(xe),Se}function ct(rt){return rt.split("-")}function Ke(rt,xe){var Se=[],Ze=(0,Me.Z)(xe,rt);function Ge(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];yt.forEach(function(pt){var ft=pt.key,Ne=pt.children;Se.push(ft),Ge(Ne)})}return Ge(Ze.children),Se}function st(rt){if(rt.parent){var xe=ct(rt.pos);return Number(xe[xe.length-1])===rt.parent.children.length-1}return!1}function dt(rt){var xe=ct(rt.pos);return Number(xe[xe.length-1])===0}function Xe(rt,xe,Se,Ze,Ge,yt,pt,ft,Ne,jt){var bt,xn=rt.clientX,Mt=rt.clientY,Gt=rt.target.getBoundingClientRect(),Bn=Gt.top,Tn=Gt.height,at=(jt==="rtl"?-1:1)*(((Ge==null?void 0:Ge.x)||0)-xn),Ae=(at-12)/Ze,St=(0,Me.Z)(ft,Se.props.eventKey);if(Mt<Bn+Tn/2){var cn=pt.findIndex(function(fe){return fe.key===St.key}),Pt=cn<=0?0:cn-1,ht=pt[Pt].key;St=(0,Me.Z)(ft,ht)}var Et=St.key,Qt=St,ir=St.key,On=0,$t=0;if(!Ne.includes(Et))for(var yn=0;yn<Ae&&st(St);yn+=1)St=St.parent,$t+=1;var Qn=xe.props.data,Cn=St.node,Pe=!0;return dt(St)&&St.level===0&&Mt<Bn+Tn/2&&yt({dragNode:Qn,dropNode:Cn,dropPosition:-1})&&St.key===Se.props.eventKey?On=-1:(Qt.children||[]).length&&Ne.includes(ir)?yt({dragNode:Qn,dropNode:Cn,dropPosition:0})?On=0:Pe=!1:$t===0?Ae>-1.5?yt({dragNode:Qn,dropNode:Cn,dropPosition:1})?On=1:Pe=!1:yt({dragNode:Qn,dropNode:Cn,dropPosition:0})?On=0:yt({dragNode:Qn,dropNode:Cn,dropPosition:1})?On=1:Pe=!1:yt({dragNode:Qn,dropNode:Cn,dropPosition:1})?On=1:Pe=!1,{dropPosition:On,dropLevelOffset:$t,dropTargetKey:St.key,dropTargetPos:St.pos,dragOverNodeKey:ir,dropContainerKey:On===0?null:((bt=St.parent)===null||bt===void 0?void 0:bt.key)||null,dropAllowed:Pe}}function We(rt,xe){if(rt){var Se=xe.multiple;return Se?rt.slice():rt.length?[rt[0]]:rt}}var ye=function(xe){return xe};function it(rt,xe){if(!rt)return[];var Se=xe||{},Ze=Se.processProps,Ge=Ze===void 0?ye:Ze,yt=Array.isArray(rt)?rt:[rt];return yt.map(function(pt){var ft=pt.children,Ne=_objectWithoutProperties(pt,we),jt=it(ft,xe);return React.createElement(TreeNode,_extends({key:Ne.key},Ge(Ne)),jt)})}function Lt(rt){if(!rt)return null;var xe;if(Array.isArray(rt))xe={checkedKeys:rt,halfCheckedKeys:void 0};else if((0,Le.Z)(rt)==="object")xe={checkedKeys:rt.checked||void 0,halfCheckedKeys:rt.halfChecked||void 0};else return(0,Oe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return xe}function qe(rt,xe){var Se=new Set;function Ze(Ge){if(!Se.has(Ge)){var yt=(0,Me.Z)(xe,Ge);if(yt){Se.add(Ge);var pt=yt.parent,ft=yt.node;ft.disabled||pt&&Ze(pt.key)}}}return(rt||[]).forEach(function(Ge){Ze(Ge)}),(0,ie.Z)(Se)}},97153:function(bn,Ut,re){"use strict";re.d(Ut,{S:function(){return ue}});var ie=re(72978),Le=re(3596);function Oe(we,me){var Ie=new Set;return we.forEach(function(ct){me.has(ct)||Ie.add(ct)}),Ie}function Ue(we){var me=we||{},Ie=me.disabled,ct=me.disableCheckbox,Ke=me.checkable;return!!(Ie||ct)||Ke===!1}function be(we,me,Ie,ct){for(var Ke=new Set(we),st=new Set,dt=0;dt<=Ie;dt+=1){var Xe=me.get(dt)||new Set;Xe.forEach(function(Lt){var qe=Lt.key,rt=Lt.node,xe=Lt.children,Se=xe===void 0?[]:xe;Ke.has(qe)&&!ct(rt)&&Se.filter(function(Ze){return!ct(Ze.node)}).forEach(function(Ze){Ke.add(Ze.key)})})}for(var We=new Set,ye=Ie;ye>=0;ye-=1){var it=me.get(ye)||new Set;it.forEach(function(Lt){var qe=Lt.parent,rt=Lt.node;if(!(ct(rt)||!Lt.parent||We.has(Lt.parent.key))){if(ct(Lt.parent.node)){We.add(qe.key);return}var xe=!0,Se=!1;(qe.children||[]).filter(function(Ze){return!ct(Ze.node)}).forEach(function(Ze){var Ge=Ze.key,yt=Ke.has(Ge);xe&&!yt&&(xe=!1),!Se&&(yt||st.has(Ge))&&(Se=!0)}),xe&&Ke.add(qe.key),Se&&st.add(qe.key),We.add(qe.key)}})}return{checkedKeys:Array.from(Ke),halfCheckedKeys:Array.from(Oe(st,Ke))}}function Me(we,me,Ie,ct,Ke){for(var st=new Set(we),dt=new Set(me),Xe=0;Xe<=ct;Xe+=1){var We=Ie.get(Xe)||new Set;We.forEach(function(qe){var rt=qe.key,xe=qe.node,Se=qe.children,Ze=Se===void 0?[]:Se;!st.has(rt)&&!dt.has(rt)&&!Ke(xe)&&Ze.filter(function(Ge){return!Ke(Ge.node)}).forEach(function(Ge){st.delete(Ge.key)})})}dt=new Set;for(var ye=new Set,it=ct;it>=0;it-=1){var Lt=Ie.get(it)||new Set;Lt.forEach(function(qe){var rt=qe.parent,xe=qe.node;if(!(Ke(xe)||!qe.parent||ye.has(qe.parent.key))){if(Ke(qe.parent.node)){ye.add(rt.key);return}var Se=!0,Ze=!1;(rt.children||[]).filter(function(Ge){return!Ke(Ge.node)}).forEach(function(Ge){var yt=Ge.key,pt=st.has(yt);Se&&!pt&&(Se=!1),!Ze&&(pt||dt.has(yt))&&(Ze=!0)}),Se||st.delete(rt.key),Ze&&dt.add(rt.key),ye.add(rt.key)}})}return{checkedKeys:Array.from(st),halfCheckedKeys:Array.from(Oe(dt,st))}}function ue(we,me,Ie,ct){var Ke=[],st;ct?st=ct:st=Ue;var dt=new Set(we.filter(function(it){var Lt=!!(0,Le.Z)(Ie,it);return Lt||Ke.push(it),Lt})),Xe=new Map,We=0;Object.keys(Ie).forEach(function(it){var Lt=Ie[it],qe=Lt.level,rt=Xe.get(qe);rt||(rt=new Set,Xe.set(qe,rt)),rt.add(Lt),We=Math.max(We,qe)}),(0,ie.ZP)(!Ke.length,"Tree missing follow keys: ".concat(Ke.slice(0,100).map(function(it){return"'".concat(it,"'")}).join(", ")));var ye;return me===!0?ye=be(dt,Xe,We,st):ye=Me(dt,me.halfCheckedKeys,Xe,We,st),ye}},3596:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ie}});function ie(Le,Oe){return Le[Oe]}},83898:function(bn,Ut,re){"use strict";re.d(Ut,{I8:function(){return qe},F:function(){return xe},zn:function(){return ye},w$:function(){return Xe},oH:function(){return it},km:function(){return dt},H8:function(){return rt}});var ie=re(71002),Le=re(74902),Oe=re(1413),Ue=re(45987),be=re(67294),Me=re(28580);function ue(Se){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ge=[];return be.Children.forEach(Se,function(yt){yt==null&&!Ze.keepEmpty||(Array.isArray(yt)?Ge=Ge.concat(ue(yt)):(0,Me.isFragment)(yt)&&yt.props?Ge=Ge.concat(ue(yt.props.children,Ze)):Ge.push(yt))}),Ge}function we(Se,Ze){var Ge=(0,Oe.Z)({},Se);return Array.isArray(Ze)&&Ze.forEach(function(yt){delete Ge[yt]}),Ge}var me=re(72978),Ie=re(3596),ct=["children"];function Ke(Se,Ze){return"".concat(Se,"-").concat(Ze)}function st(Se){return Se&&Se.type&&Se.type.isTreeNode}function dt(Se,Ze){return Se!=null?Se:Ze}function Xe(Se){var Ze=Se||{},Ge=Ze.title,yt=Ze._title,pt=Ze.key,ft=Ze.children,Ne=Ge||"title";return{title:Ne,_title:yt||[Ne],key:pt||"key",children:ft||"children"}}function We(Se,Ze){var Ge=new Map;function yt(pt){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(pt||[]).forEach(function(Ne){var jt=Ne[Ze.key],bt=Ne[Ze.children];warning(jt!=null,"Tree node must have a certain key: [".concat(ft).concat(jt,"]"));var xn=String(jt);warning(!Ge.has(xn)||jt===null||jt===void 0,"Same 'key' exist in the Tree: ".concat(xn)),Ge.set(xn,!0),yt(bt,"".concat(ft).concat(xn," > "))})}yt(Se)}function ye(Se){function Ze(Ge){var yt=ue(Ge);return yt.map(function(pt){if(!st(pt))return(0,me.ZP)(!pt,"Tree/TreeNode can only accept TreeNode as children."),null;var ft=pt.key,Ne=pt.props,jt=Ne.children,bt=(0,Ue.Z)(Ne,ct),xn=(0,Oe.Z)({key:ft},bt),Mt=Ze(jt);return Mt.length&&(xn.children=Mt),xn}).filter(function(pt){return pt})}return Ze(Se)}function it(Se,Ze,Ge){var yt=Xe(Ge),pt=yt._title,ft=yt.key,Ne=yt.children,jt=new Set(Ze===!0?[]:Ze),bt=[];function xn(Mt){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Mt.map(function(Bn,Tn){for(var at=Ke(Gt?Gt.pos:"0",Tn),Ae=dt(Bn[ft],at),St,cn=0;cn<pt.length;cn+=1){var Pt=pt[cn];if(Bn[Pt]!==void 0){St=Bn[Pt];break}}var ht=(0,Oe.Z)((0,Oe.Z)({},we(Bn,[].concat((0,Le.Z)(pt),[ft,Ne]))),{},{title:St,key:Ae,parent:Gt,pos:at,children:null,data:Bn,isStart:[].concat((0,Le.Z)(Gt?Gt.isStart:[]),[Tn===0]),isEnd:[].concat((0,Le.Z)(Gt?Gt.isEnd:[]),[Tn===Mt.length-1])});return bt.push(ht),Ze===!0||jt.has(Ae)?ht.children=xn(Bn[Ne]||[],ht):ht.children=[],ht})}return xn(Se),bt}function Lt(Se,Ze,Ge){var yt={};(0,ie.Z)(Ge)==="object"?yt=Ge:yt={externalGetKey:Ge},yt=yt||{};var pt=yt,ft=pt.childrenPropName,Ne=pt.externalGetKey,jt=pt.fieldNames,bt=Xe(jt),xn=bt.key,Mt=bt.children,Gt=ft||Mt,Bn;Ne?typeof Ne=="string"?Bn=function(Ae){return Ae[Ne]}:typeof Ne=="function"&&(Bn=function(Ae){return Ne(Ae)}):Bn=function(Ae,St){return dt(Ae[xn],St)};function Tn(at,Ae,St,cn){var Pt=at?at[Gt]:Se,ht=at?Ke(St.pos,Ae):"0",Et=at?[].concat((0,Le.Z)(cn),[at]):[];if(at){var Qt=Bn(at,ht),ir={node:at,index:Ae,pos:ht,key:Qt,parentPos:St.node?St.pos:null,level:St.level+1,nodes:Et};Ze(ir)}Pt&&Pt.forEach(function(On,$t){Tn(On,$t,{node:at,pos:ht,level:St?St.level+1:-1},Et)})}Tn(null)}function qe(Se){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ge=Ze.initWrapper,yt=Ze.processEntity,pt=Ze.onProcessFinished,ft=Ze.externalGetKey,Ne=Ze.childrenPropName,jt=Ze.fieldNames,bt=arguments.length>2?arguments[2]:void 0,xn=ft||bt,Mt={},Gt={},Bn={posEntities:Mt,keyEntities:Gt};return Ge&&(Bn=Ge(Bn)||Bn),Lt(Se,function(Tn){var at=Tn.node,Ae=Tn.index,St=Tn.pos,cn=Tn.key,Pt=Tn.parentPos,ht=Tn.level,Et=Tn.nodes,Qt={node:at,nodes:Et,index:Ae,key:cn,pos:St,level:ht},ir=dt(cn,St);Mt[St]=Qt,Gt[ir]=Qt,Qt.parent=Mt[Pt],Qt.parent&&(Qt.parent.children=Qt.parent.children||[],Qt.parent.children.push(Qt)),yt&&yt(Qt,Bn)},{externalGetKey:xn,childrenPropName:Ne,fieldNames:jt}),pt&&pt(Bn),Bn}function rt(Se,Ze){var Ge=Ze.expandedKeys,yt=Ze.selectedKeys,pt=Ze.loadedKeys,ft=Ze.loadingKeys,Ne=Ze.checkedKeys,jt=Ze.halfCheckedKeys,bt=Ze.dragOverNodeKey,xn=Ze.dropPosition,Mt=Ze.keyEntities,Gt=(0,Ie.Z)(Mt,Se),Bn={eventKey:Se,expanded:Ge.indexOf(Se)!==-1,selected:yt.indexOf(Se)!==-1,loaded:pt.indexOf(Se)!==-1,loading:ft.indexOf(Se)!==-1,checked:Ne.indexOf(Se)!==-1,halfChecked:jt.indexOf(Se)!==-1,pos:String(Gt?Gt.pos:""),dragOver:bt===Se&&xn===0,dragOverGapTop:bt===Se&&xn===-1,dragOverGapBottom:bt===Se&&xn===1};return Bn}function xe(Se){var Ze=Se.data,Ge=Se.expanded,yt=Se.selected,pt=Se.checked,ft=Se.loaded,Ne=Se.loading,jt=Se.halfChecked,bt=Se.dragOver,xn=Se.dragOverGapTop,Mt=Se.dragOverGapBottom,Gt=Se.pos,Bn=Se.active,Tn=Se.eventKey,at=(0,Oe.Z)((0,Oe.Z)({},Ze),{},{expanded:Ge,selected:yt,checked:pt,loaded:ft,loading:Ne,halfChecked:jt,dragOver:bt,dragOverGapTop:xn,dragOverGapBottom:Mt,pos:Gt,active:Bn,key:Tn});return"props"in at||Object.defineProperty(at,"props",{get:function(){return(0,me.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Se}}),at}},34952:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return we}});var ie=re(1413),Le=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,Oe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ue="".concat(Le," ").concat(Oe).split(/[\s\n]+/),be="aria-",Me="data-";function ue(me,Ie){return me.indexOf(Ie)===0}function we(me){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct;Ie===!1?ct={aria:!0,data:!0,attr:!0}:Ie===!0?ct={aria:!0}:ct=(0,ie.Z)({},Ie);var Ke={};return Object.keys(me).forEach(function(st){(ct.aria&&(st==="role"||ue(st,be))||ct.data&&ue(st,Me)||ct.attr&&Ue.includes(st))&&(Ke[st]=me[st])}),Ke}},72978:function(bn,Ut,re){"use strict";var ie={};function Le(we,me){}function Oe(we,me){}function Ue(){ie={}}function be(we,me,Ie){!me&&!ie[Ie]&&(we(!1,Ie),ie[Ie]=!0)}function Me(we,me){be(Le,we,me)}function ue(we,me){be(Oe,we,me)}Ut.ZP=Me},81533:function(bn,Ut){"use strict";var re;var ie=typeof Symbol=="function"&&Symbol.for,Le=ie?Symbol.for("react.element"):60103,Oe=ie?Symbol.for("react.portal"):60106,Ue=ie?Symbol.for("react.fragment"):60107,be=ie?Symbol.for("react.strict_mode"):60108,Me=ie?Symbol.for("react.profiler"):60114,ue=ie?Symbol.for("react.provider"):60109,we=ie?Symbol.for("react.context"):60110,me=ie?Symbol.for("react.async_mode"):60111,Ie=ie?Symbol.for("react.concurrent_mode"):60111,ct=ie?Symbol.for("react.forward_ref"):60112,Ke=ie?Symbol.for("react.suspense"):60113,st=ie?Symbol.for("react.suspense_list"):60120,dt=ie?Symbol.for("react.memo"):60115,Xe=ie?Symbol.for("react.lazy"):60116,We=ie?Symbol.for("react.block"):60121,ye=ie?Symbol.for("react.fundamental"):60117,it=ie?Symbol.for("react.responder"):60118,Lt=ie?Symbol.for("react.scope"):60119;function qe(xe){if(typeof xe=="object"&&xe!==null){var Se=xe.$$typeof;switch(Se){case Le:switch(xe=xe.type,xe){case me:case Ie:case Ue:case Me:case be:case Ke:return xe;default:switch(xe=xe&&xe.$$typeof,xe){case we:case ct:case Xe:case dt:case ue:return xe;default:return Se}}case Oe:return Se}}}function rt(xe){return qe(xe)===Ie}re=me,re=Ie,re=we,re=ue,re=Le,re=ct,re=Ue,re=Xe,re=dt,re=Oe,re=Me,re=be,re=Ke,re=function(xe){return rt(xe)||qe(xe)===me},re=rt,re=function(xe){return qe(xe)===we},re=function(xe){return qe(xe)===ue},re=function(xe){return typeof xe=="object"&&xe!==null&&xe.$$typeof===Le},re=function(xe){return qe(xe)===ct},Ut.isFragment=function(xe){return qe(xe)===Ue},re=function(xe){return qe(xe)===Xe},Ut.isMemo=function(xe){return qe(xe)===dt},re=function(xe){return qe(xe)===Oe},re=function(xe){return qe(xe)===Me},re=function(xe){return qe(xe)===be},re=function(xe){return qe(xe)===Ke},re=function(xe){return typeof xe=="string"||typeof xe=="function"||xe===Ue||xe===Ie||xe===Me||xe===be||xe===Ke||xe===st||typeof xe=="object"&&xe!==null&&(xe.$$typeof===Xe||xe.$$typeof===dt||xe.$$typeof===ue||xe.$$typeof===we||xe.$$typeof===ct||xe.$$typeof===ye||xe.$$typeof===it||xe.$$typeof===Lt||xe.$$typeof===We)},re=qe},28580:function(bn,Ut,re){"use strict";bn.exports=re(81533)},92389:function(bn,Ut){"use strict";var re={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Le){var Oe=Le.keyCode;if(Le.altKey&&!Le.ctrlKey||Le.metaKey||Oe>=re.F1&&Oe<=re.F12)return!1;switch(Oe){case re.ALT:case re.CAPS_LOCK:case re.CONTEXT_MENU:case re.CTRL:case re.DOWN:case re.END:case re.ESC:case re.HOME:case re.INSERT:case re.LEFT:case re.MAC_FF_META:case re.META:case re.NUMLOCK:case re.NUM_CENTER:case re.PAGE_DOWN:case re.PAGE_UP:case re.PAUSE:case re.PRINT_SCREEN:case re.RIGHT:case re.SHIFT:case re.UP:case re.WIN_KEY:case re.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Le){if(Le>=re.ZERO&&Le<=re.NINE||Le>=re.NUM_ZERO&&Le<=re.NUM_MULTIPLY||Le>=re.A&&Le<=re.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Le===0)return!0;switch(Le){case re.SPACE:case re.QUESTION_MARK:case re.NUM_PLUS:case re.NUM_MINUS:case re.NUM_PERIOD:case re.NUM_DIVISION:case re.SEMICOLON:case re.DASH:case re.EQUALS:case re.COMMA:case re.PERIOD:case re.SLASH:case re.APOSTROPHE:case re.SINGLE_QUOTE:case re.OPEN_SQUARE_BRACKET:case re.BACKSLASH:case re.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};Ut.Z=re},1337:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return we}});var ie=re(1413),Le=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,Oe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ue="".concat(Le," ").concat(Oe).split(/[\s\n]+/),be="aria-",Me="data-";function ue(me,Ie){return me.indexOf(Ie)===0}function we(me){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct;Ie===!1?ct={aria:!0,data:!0,attr:!0}:Ie===!0?ct={aria:!0}:ct=(0,ie.Z)({},Ie);var Ke={};return Object.keys(me).forEach(function(st){(ct.aria&&(st==="role"||ue(st,be))||ct.data&&ue(st,Me)||ct.attr&&Ue.includes(st))&&(Ke[st]=me[st])}),Ke}},88386:function(bn,Ut,re){(function(ie){ie(re(4631))})(function(ie){ie.defineOption("placeholder","",function(we,me,Ie){var ct=Ie&&Ie!=ie.Init;if(me&&!ct)we.on("blur",be),we.on("change",Me),we.on("swapDoc",Me),ie.on(we.getInputField(),"compositionupdate",we.state.placeholderCompose=function(){Ue(we)}),Me(we);else if(!me&&ct){we.off("blur",be),we.off("change",Me),we.off("swapDoc",Me),ie.off(we.getInputField(),"compositionupdate",we.state.placeholderCompose),Le(we);var Ke=we.getWrapperElement();Ke.className=Ke.className.replace(" CodeMirror-empty","")}me&&!we.hasFocus()&&be(we)});function Le(we){we.state.placeholder&&(we.state.placeholder.parentNode.removeChild(we.state.placeholder),we.state.placeholder=null)}function Oe(we){Le(we);var me=we.state.placeholder=document.createElement("pre");me.style.cssText="height: 0; overflow: visible",me.style.direction=we.getOption("direction"),me.className="CodeMirror-placeholder CodeMirror-line-like";var Ie=we.getOption("placeholder");typeof Ie=="string"&&(Ie=document.createTextNode(Ie)),me.appendChild(Ie),we.display.lineSpace.insertBefore(me,we.display.lineSpace.firstChild)}function Ue(we){setTimeout(function(){var me=!1,Ie=we.getInputField();Ie.nodeName=="TEXTAREA"?me=!Ie.value:we.lineCount()==1&&(me=!/[^\u200b]/.test(Ie.querySelector(".CodeMirror-line").textContent)),me?Oe(we):Le(we)},20)}function be(we){ue(we)&&Oe(we)}function Me(we){var me=we.getWrapperElement(),Ie=ue(we);me.className=me.className.replace(" CodeMirror-empty","")+(Ie?" CodeMirror-empty":""),Ie?Oe(we):Le(we)}function ue(we){return we.lineCount()===1&&we.getLine(0)===""}})},82801:function(bn,Ut,re){(function(ie){ie(re(4631))})(function(ie){var Le={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Oe=ie.Pos;ie.defineOption("autoCloseBrackets",!1,function(Xe,We,ye){ye&&ye!=ie.Init&&(Xe.removeKeyMap(be),Xe.state.closeBrackets=null),We&&(Me(Ue(We,"pairs")),Xe.state.closeBrackets=We,Xe.addKeyMap(be))});function Ue(Xe,We){return We=="pairs"&&typeof Xe=="string"?Xe:typeof Xe=="object"&&Xe[We]!=null?Xe[We]:Le[We]}var be={Backspace:me,Enter:Ie};function Me(Xe){for(var We=0;We<Xe.length;We++){var ye=Xe.charAt(We),it="'"+ye+"'";be[it]||(be[it]=ue(ye))}}Me(Le.pairs+"`");function ue(Xe){return function(We){return Ke(We,Xe)}}function we(Xe){var We=Xe.state.closeBrackets;if(!We||We.override)return We;var ye=Xe.getModeAt(Xe.getCursor());return ye.closeBrackets||We}function me(Xe){var We=we(Xe);if(!We||Xe.getOption("disableInput"))return ie.Pass;for(var ye=Ue(We,"pairs"),it=Xe.listSelections(),Lt=0;Lt<it.length;Lt++){if(!it[Lt].empty())return ie.Pass;var qe=st(Xe,it[Lt].head);if(!qe||ye.indexOf(qe)%2!=0)return ie.Pass}for(var Lt=it.length-1;Lt>=0;Lt--){var rt=it[Lt].head;Xe.replaceRange("",Oe(rt.line,rt.ch-1),Oe(rt.line,rt.ch+1),"+delete")}}function Ie(Xe){var We=we(Xe),ye=We&&Ue(We,"explode");if(!ye||Xe.getOption("disableInput"))return ie.Pass;for(var it=Xe.listSelections(),Lt=0;Lt<it.length;Lt++){if(!it[Lt].empty())return ie.Pass;var qe=st(Xe,it[Lt].head);if(!qe||ye.indexOf(qe)%2!=0)return ie.Pass}Xe.operation(function(){var rt=Xe.lineSeparator()||`
|
|
|
`;Xe.replaceSelection(rt+rt,null),Xe.execCommand("goCharLeft"),it=Xe.listSelections();for(var xe=0;xe<it.length;xe++){var Se=it[xe].head.line;Xe.indentLine(Se,null,!0),Xe.indentLine(Se+1,null,!0)}})}function ct(Xe){var We=ie.cmpPos(Xe.anchor,Xe.head)>0;return{anchor:new Oe(Xe.anchor.line,Xe.anchor.ch+(We?-1:1)),head:new Oe(Xe.head.line,Xe.head.ch+(We?1:-1))}}function Ke(Xe,We){var ye=we(Xe);if(!ye||Xe.getOption("disableInput"))return ie.Pass;var it=Ue(ye,"pairs"),Lt=it.indexOf(We);if(Lt==-1)return ie.Pass;for(var qe=Ue(ye,"closeBefore"),rt=Ue(ye,"triples"),xe=it.charAt(Lt+1)==We,Se=Xe.listSelections(),Ze=Lt%2==0,Ge,yt=0;yt<Se.length;yt++){var pt=Se[yt],ft=pt.head,Ne,jt=Xe.getRange(ft,Oe(ft.line,ft.ch+1));if(Ze&&!pt.empty())Ne="surround";else if((xe||!Ze)&&jt==We)xe&&dt(Xe,ft)?Ne="both":rt.indexOf(We)>=0&&Xe.getRange(ft,Oe(ft.line,ft.ch+3))==We+We+We?Ne="skipThree":Ne="skip";else if(xe&&ft.ch>1&&rt.indexOf(We)>=0&&Xe.getRange(Oe(ft.line,ft.ch-2),ft)==We+We){if(ft.ch>2&&/\bstring/.test(Xe.getTokenTypeAt(Oe(ft.line,ft.ch-2))))return ie.Pass;Ne="addFour"}else if(xe){var bt=ft.ch==0?" ":Xe.getRange(Oe(ft.line,ft.ch-1),ft);if(!ie.isWordChar(jt)&&bt!=We&&!ie.isWordChar(bt))Ne="both";else return ie.Pass}else if(Ze&&(jt.length===0||/\s/.test(jt)||qe.indexOf(jt)>-1))Ne="both";else return ie.Pass;if(!Ge)Ge=Ne;else if(Ge!=Ne)return ie.Pass}var xn=Lt%2?it.charAt(Lt-1):We,Mt=Lt%2?We:it.charAt(Lt+1);Xe.operation(function(){if(Ge=="skip")Xe.execCommand("goCharRight");else if(Ge=="skipThree")for(var Gt=0;Gt<3;Gt++)Xe.execCommand("goCharRight");else if(Ge=="surround"){for(var Bn=Xe.getSelections(),Gt=0;Gt<Bn.length;Gt++)Bn[Gt]=xn+Bn[Gt]+Mt;Xe.replaceSelections(Bn,"around"),Bn=Xe.listSelections().slice();for(var Gt=0;Gt<Bn.length;Gt++)Bn[Gt]=ct(Bn[Gt]);Xe.setSelections(Bn)}else Ge=="both"?(Xe.replaceSelection(xn+Mt,null),Xe.triggerElectric(xn+Mt),Xe.execCommand("goCharLeft")):Ge=="addFour"&&(Xe.replaceSelection(xn+xn+xn+xn,"before"),Xe.execCommand("goCharRight"))})}function st(Xe,We){var ye=Xe.getRange(Oe(We.line,We.ch-1),Oe(We.line,We.ch+1));return ye.length==2?ye:null}function dt(Xe,We){var ye=Xe.getTokenAt(Oe(We.line,We.ch+1));return/\bstring/.test(ye.type)&&ye.start==We.ch&&(We.ch==0||!/\bstring/.test(Xe.getTokenTypeAt(We)))}})},57341:function(bn,Ut,re){(function(ie){ie(re(4631),re(4786))})(function(ie){ie.defineOption("autoCloseTags",!1,function(me,Ie,ct){if(ct!=ie.Init&&ct&&me.removeKeyMap("autoCloseTags"),!!Ie){var Ke={name:"autoCloseTags"};(typeof Ie!="object"||Ie.whenClosing!==!1)&&(Ke["'/'"]=function(st){return Me(st)}),(typeof Ie!="object"||Ie.whenOpening!==!1)&&(Ke["'>'"]=function(st){return Ue(st)}),me.addKeyMap(Ke)}});var Le=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Oe=["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 Ue(me){if(me.getOption("disableInput"))return ie.Pass;for(var Ie=me.listSelections(),ct=[],Ke=me.getOption("autoCloseTags"),st=0;st<Ie.length;st++){if(!Ie[st].empty())return ie.Pass;var dt=Ie[st].head,Xe=me.getTokenAt(dt),We=ie.innerMode(me.getMode(),Xe.state),ye=We.state,it=We.mode.xmlCurrentTag&&We.mode.xmlCurrentTag(ye),Lt=it&&it.name;if(!Lt)return ie.Pass;var qe=We.mode.configuration=="html",rt=typeof Ke=="object"&&Ke.dontCloseTags||qe&&Le,xe=typeof Ke=="object"&&Ke.indentTags||qe&&Oe;Xe.end>dt.ch&&(Lt=Lt.slice(0,Lt.length-Xe.end+dt.ch));var Se=Lt.toLowerCase();if(!Lt||Xe.type=="string"&&(Xe.end!=dt.ch||!/[\"\']/.test(Xe.string.charAt(Xe.string.length-1))||Xe.string.length==1)||Xe.type=="tag"&&it.close||Xe.string.indexOf("/")==dt.ch-Xe.start-1||rt&&ue(rt,Se)>-1||we(me,We.mode.xmlCurrentContext&&We.mode.xmlCurrentContext(ye)||[],Lt,dt,!0))return ie.Pass;var Ze=typeof Ke=="object"&&Ke.emptyTags;if(Ze&&ue(Ze,Lt)>-1){ct[st]={text:"/>",newPos:ie.Pos(dt.line,dt.ch+2)};continue}var Ge=xe&&ue(xe,Se)>-1;ct[st]={indent:Ge,text:">"+(Ge?`
|
|
|
|
|
|
`:"")+"</"+Lt+">",newPos:Ge?ie.Pos(dt.line+1,0):ie.Pos(dt.line,dt.ch+1)}}for(var yt=typeof Ke=="object"&&Ke.dontIndentOnAutoClose,st=Ie.length-1;st>=0;st--){var pt=ct[st];me.replaceRange(pt.text,Ie[st].head,Ie[st].anchor,"+insert");var ft=me.listSelections().slice(0);ft[st]={head:pt.newPos,anchor:pt.newPos},me.setSelections(ft),!yt&&pt.indent&&(me.indentLine(pt.newPos.line,null,!0),me.indentLine(pt.newPos.line+1,null,!0))}}function be(me,Ie){for(var ct=me.listSelections(),Ke=[],st=Ie?"/":"</",dt=me.getOption("autoCloseTags"),Xe=typeof dt=="object"&&dt.dontIndentOnSlash,We=0;We<ct.length;We++){if(!ct[We].empty())return ie.Pass;var ye=ct[We].head,it=me.getTokenAt(ye),Lt=ie.innerMode(me.getMode(),it.state),qe=Lt.state;if(Ie&&(it.type=="string"||it.string.charAt(0)!="<"||it.start!=ye.ch-1))return ie.Pass;var rt,xe=Lt.mode.name!="xml"&&me.getMode().name=="htmlmixed";if(xe&&Lt.mode.name=="javascript")rt=st+"script";else if(xe&&Lt.mode.name=="css")rt=st+"style";else{var Se=Lt.mode.xmlCurrentContext&&Lt.mode.xmlCurrentContext(qe);if(!Se||Se.length&&we(me,Se,Se[Se.length-1],ye))return ie.Pass;rt=st+Se[Se.length-1]}me.getLine(ye.line).charAt(it.end)!=">"&&(rt+=">"),Ke[We]=rt}if(me.replaceSelections(Ke),ct=me.listSelections(),!Xe)for(var We=0;We<ct.length;We++)(We==ct.length-1||ct[We].head.line<ct[We+1].head.line)&&me.indentLine(ct[We].head.line)}function Me(me){return me.getOption("disableInput")?ie.Pass:be(me,!0)}ie.commands.closeTag=function(me){return be(me)};function ue(me,Ie){if(me.indexOf)return me.indexOf(Ie);for(var ct=0,Ke=me.length;ct<Ke;++ct)if(me[ct]==Ie)return ct;return-1}function we(me,Ie,ct,Ke,st){if(!ie.scanForClosingTag)return!1;var dt=Math.min(me.lastLine()+1,Ke.line+500),Xe=ie.scanForClosingTag(me,Ke,null,dt);if(!Xe||Xe.tag!=ct)return!1;for(var We=st?1:0,ye=Ie.length-1;ye>=0&&Ie[ye]==ct;ye--)++We;Ke=Xe.to;for(var ye=1;ye<We;ye++){var it=ie.scanForClosingTag(me,Ke,null,dt);if(!it||it.tag!=ct)return!1;Ke=it.to}return!0}})},4786:function(bn,Ut,re){(function(ie){ie(re(4631))})(function(ie){"use strict";var Le=ie.Pos;function Oe(ye,it){return ye.line-it.line||ye.ch-it.ch}var Ue="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",be=Ue+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Me=new RegExp("<(/?)(["+Ue+"]["+be+"]*)","g");function ue(ye,it,Lt,qe){this.line=it,this.ch=Lt,this.cm=ye,this.text=ye.getLine(it),this.min=qe?Math.max(qe.from,ye.firstLine()):ye.firstLine(),this.max=qe?Math.min(qe.to-1,ye.lastLine()):ye.lastLine()}function we(ye,it){var Lt=ye.cm.getTokenTypeAt(Le(ye.line,it));return Lt&&/\btag\b/.test(Lt)}function me(ye){if(!(ye.line>=ye.max))return ye.ch=0,ye.text=ye.cm.getLine(++ye.line),!0}function Ie(ye){if(!(ye.line<=ye.min))return ye.text=ye.cm.getLine(--ye.line),ye.ch=ye.text.length,!0}function ct(ye){for(;;){var it=ye.text.indexOf(">",ye.ch);if(it==-1){if(me(ye))continue;return}if(!we(ye,it+1)){ye.ch=it+1;continue}var Lt=ye.text.lastIndexOf("/",it),qe=Lt>-1&&!/\S/.test(ye.text.slice(Lt+1,it));return ye.ch=it+1,qe?"selfClose":"regular"}}function Ke(ye){for(;;){var it=ye.ch?ye.text.lastIndexOf("<",ye.ch-1):-1;if(it==-1){if(Ie(ye))continue;return}if(!we(ye,it+1)){ye.ch=it;continue}Me.lastIndex=it,ye.ch=it;var Lt=Me.exec(ye.text);if(Lt&&Lt.index==it)return Lt}}function st(ye){for(;;){Me.lastIndex=ye.ch;var it=Me.exec(ye.text);if(!it){if(me(ye))continue;return}if(!we(ye,it.index+1)){ye.ch=it.index+1;continue}return ye.ch=it.index+it[0].length,it}}function dt(ye){for(;;){var it=ye.ch?ye.text.lastIndexOf(">",ye.ch-1):-1;if(it==-1){if(Ie(ye))continue;return}if(!we(ye,it+1)){ye.ch=it;continue}var Lt=ye.text.lastIndexOf("/",it),qe=Lt>-1&&!/\S/.test(ye.text.slice(Lt+1,it));return ye.ch=it+1,qe?"selfClose":"regular"}}function Xe(ye,it){for(var Lt=[];;){var qe=st(ye),rt,xe=ye.line,Se=ye.ch-(qe?qe[0].length:0);if(!qe||!(rt=ct(ye)))return;if(rt!="selfClose")if(qe[1]){for(var Ze=Lt.length-1;Ze>=0;--Ze)if(Lt[Ze]==qe[2]){Lt.length=Ze;break}if(Ze<0&&(!it||it==qe[2]))return{tag:qe[2],from:Le(xe,Se),to:Le(ye.line,ye.ch)}}else Lt.push(qe[2])}}function We(ye,it){for(var Lt=[];;){var qe=dt(ye);if(!qe)return;if(qe=="selfClose"){Ke(ye);continue}var rt=ye.line,xe=ye.ch,Se=Ke(ye);if(!Se)return;if(Se[1])Lt.push(Se[2]);else{for(var Ze=Lt.length-1;Ze>=0;--Ze)if(Lt[Ze]==Se[2]){Lt.length=Ze;break}if(Ze<0&&(!it||it==Se[2]))return{tag:Se[2],from:Le(ye.line,ye.ch),to:Le(rt,xe)}}}}ie.registerHelper("fold","xml",function(ye,it){for(var Lt=new ue(ye,it.line,0);;){var qe=st(Lt);if(!qe||Lt.line!=it.line)return;var rt=ct(Lt);if(!rt)return;if(!qe[1]&&rt!="selfClose"){var xe=Le(Lt.line,Lt.ch),Se=Xe(Lt,qe[2]);return Se&&Oe(Se.from,xe)>0?{from:xe,to:Se.from}:null}}}),ie.findMatchingTag=function(ye,it,Lt){var qe=new ue(ye,it.line,it.ch,Lt);if(!(qe.text.indexOf(">")==-1&&qe.text.indexOf("<")==-1)){var rt=ct(qe),xe=rt&&Le(qe.line,qe.ch),Se=rt&&Ke(qe);if(!(!rt||!Se||Oe(qe,it)>0)){var Ze={from:Le(qe.line,qe.ch),to:xe,tag:Se[2]};return rt=="selfClose"?{open:Ze,close:null,at:"open"}:Se[1]?{open:We(qe,Se[2]),close:Ze,at:"close"}:(qe=new ue(ye,xe.line,xe.ch,Lt),{open:Ze,close:Xe(qe,Se[2]),at:"open"})}}},ie.findEnclosingTag=function(ye,it,Lt,qe){for(var rt=new ue(ye,it.line,it.ch,Lt);;){var xe=We(rt,qe);if(!xe)break;var Se=new ue(ye,it.line,it.ch,Lt),Ze=Xe(Se,xe.tag);if(Ze)return{open:xe,close:Ze}}},ie.scanForClosingTag=function(ye,it,Lt,qe){var rt=new ue(ye,it.line,it.ch,qe?{from:0,to:qe}:null);return Xe(rt,Lt)}})},4631:function(bn){(function(Ut,re){bn.exports=re()})(this,function(){"use strict";var Ut=navigator.userAgent,re=navigator.platform,ie=/gecko\/\d/i.test(Ut),Le=/MSIE \d/.test(Ut),Oe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ut),Ue=/Edge\/(\d+)/.exec(Ut),be=Le||Oe||Ue,Me=be&&(Le?document.documentMode||6:+(Ue||Oe)[1]),ue=!Ue&&/WebKit\//.test(Ut),we=ue&&/Qt\/\d+\.\d+/.test(Ut),me=!Ue&&/Chrome\//.test(Ut),Ie=/Opera\//.test(Ut),ct=/Apple Computer/.test(navigator.vendor),Ke=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ut),st=/PhantomJS/.test(Ut),dt=!Ue&&/AppleWebKit/.test(Ut)&&/Mobile\/\w+/.test(Ut),Xe=/Android/.test(Ut),We=dt||Xe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ut),ye=dt||/Mac/.test(re),it=/\bCrOS\b/.test(Ut),Lt=/win/i.test(re),qe=Ie&&Ut.match(/Version\/(\d*\.\d*)/);qe&&(qe=Number(qe[1])),qe&&qe>=15&&(Ie=!1,ue=!0);var rt=ye&&(we||Ie&&(qe==null||qe<12.11)),xe=ie||be&&Me>=9;function Se(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var Ze=function(x,z){var ne=x.className,te=Se(z).exec(ne);if(te){var oe=ne.slice(te.index+te[0].length);x.className=ne.slice(0,te.index)+(oe?te[1]+oe:"")}};function Ge(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function yt(x,z){return Ge(x).appendChild(z)}function pt(x,z,ne,te){var oe=document.createElement(x);if(ne&&(oe.className=ne),te&&(oe.style.cssText=te),typeof z=="string")oe.appendChild(document.createTextNode(z));else if(z)for(var he=0;he<z.length;++he)oe.appendChild(z[he]);return oe}function ft(x,z,ne,te){var oe=pt(x,z,ne,te);return oe.setAttribute("role","presentation"),oe}var Ne;document.createRange?Ne=function(x,z,ne,te){var oe=document.createRange();return oe.setEnd(te||x,ne),oe.setStart(x,z),oe}:Ne=function(x,z,ne){var te=document.body.createTextRange();try{te.moveToElementText(x.parentNode)}catch(oe){return te}return te.collapse(!0),te.moveEnd("character",ne),te.moveStart("character",z),te};function jt(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 bt(){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 xn(x,z){var ne=x.className;Se(z).test(ne)||(x.className+=(ne?" ":"")+z)}function Mt(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 Gt=function(x){x.select()};dt?Gt=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:be&&(Gt=function(x){try{x.select()}catch(z){}});function Bn(x){var z=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,z)}}function Tn(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 at(x,z,ne,te,oe){z==null&&(z=x.search(/[^\s\u00a0]/),z==-1&&(z=x.length));for(var he=te||0,ke=oe||0;;){var ze=x.indexOf(" ",he);if(ze<0||ze>=z)return ke+(z-he);ke+=ze-he,ke+=ne-ke%ne,he=ze+1}}var Ae=function(){this.id=null,this.f=null,this.time=0,this.handler=Bn(this.onTimeout,this)};Ae.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},Ae.prototype.set=function(x,z){this.f=z;var ne=+new Date+x;(!this.id||ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,x),this.time=ne)};function St(x,z){for(var ne=0;ne<x.length;++ne)if(x[ne]==z)return ne;return-1}var cn=50,Pt={toString:function(){return"CodeMirror.Pass"}},ht={scroll:!1},Et={origin:"*mouse"},Qt={origin:"+move"};function ir(x,z,ne){for(var te=0,oe=0;;){var he=x.indexOf(" ",te);he==-1&&(he=x.length);var ke=he-te;if(he==x.length||oe+ke>=z)return te+Math.min(ke,z-oe);if(oe+=he-te,oe+=ne-oe%ne,te=he+1,oe>=z)return te}}var On=[""];function $t(x){for(;On.length<=x;)On.push(yn(On)+" ");return On[x]}function yn(x){return x[x.length-1]}function Qn(x,z){for(var ne=[],te=0;te<x.length;te++)ne[te]=z(x[te],te);return ne}function Cn(x,z,ne){for(var te=0,oe=ne(z);te<x.length&&ne(x[te])<=oe;)te++;x.splice(te,0,z)}function Pe(){}function fe(x,z){var ne;return Object.create?ne=Object.create(x):(Pe.prototype=x,ne=new Pe),z&&Tn(z,ne),ne}var ce=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pe(x){return/\w/.test(x)||x>"\x80"&&(x.toUpperCase()!=x.toLowerCase()||ce.test(x))}function de(x,z){return z?z.source.indexOf("\\w")>-1&&pe(x)?!0:z.test(x):pe(x)}function le(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var Te=/[\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 ot(x){return x.charCodeAt(0)>=768&&Te.test(x)}function Bt(x,z,ne){for(;(ne<0?z>0:z<x.length)&&ot(x.charAt(z));)z+=ne;return z}function en(x,z,ne){for(var te=z>ne?-1:1;;){if(z==ne)return z;var oe=(z+ne)/2,he=te<0?Math.ceil(oe):Math.floor(oe);if(he==z)return x(he)?z:ne;x(he)?ne=he:z=he+te}}function rn(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var oe=!1,he=0;he<x.length;++he){var ke=x[he];(ke.from<ne&&ke.to>z||z==ne&&ke.to==z)&&(te(Math.max(ke.from,z),Math.min(ke.to,ne),ke.level==1?"rtl":"ltr",he),oe=!0)}oe||te(z,ne,"ltr")}var sn=null;function un(x,z,ne){var te;sn=null;for(var oe=0;oe<x.length;++oe){var he=x[oe];if(he.from<z&&he.to>z)return oe;he.to==z&&(he.from!=he.to&&ne=="before"?te=oe:sn=oe),he.from==z&&(he.from!=he.to&&ne!="before"?te=oe:sn=oe)}return te!=null?te:sn}var gt=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]/,oe=/[stwN]/,he=/[LRr]/,ke=/[Lb1n]/,ze=/[1n]/;function _e(et,qt,gn){this.level=et,this.from=qt,this.to=gn}return function(et,qt){var gn=qt=="ltr"?"L":"R";if(et.length==0||qt=="ltr"&&!te.test(et))return!1;for(var pr=et.length,rr=[],Vr=0;Vr<pr;++Vr)rr.push(ne(et.charCodeAt(Vr)));for(var ai=0,wi=gn;ai<pr;++ai){var Hi=rr[ai];Hi=="m"?rr[ai]=wi:wi=Hi}for(var ta=0,Ti=gn;ta<pr;++ta){var sa=rr[ta];sa=="1"&&Ti=="r"?rr[ta]="n":he.test(sa)&&(Ti=sa,sa=="r"&&(rr[ta]="R"))}for(var Pa=1,Fa=rr[0];Pa<pr-1;++Pa){var Mo=rr[Pa];Mo=="+"&&Fa=="1"&&rr[Pa+1]=="1"?rr[Pa]="1":Mo==","&&Fa==rr[Pa+1]&&(Fa=="1"||Fa=="n")&&(rr[Pa]=Fa),Fa=Mo}for(var vs=0;vs<pr;++vs){var xl=rr[vs];if(xl==",")rr[vs]="N";else if(xl=="%"){var Fs=void 0;for(Fs=vs+1;Fs<pr&&rr[Fs]=="%";++Fs);for(var jl=vs&&rr[vs-1]=="!"||Fs<pr&&rr[Fs]=="1"?"1":"N",Ul=vs;Ul<Fs;++Ul)rr[Ul]=jl;vs=Fs-1}}for(var ll=0,Vl=gn;ll<pr;++ll){var to=rr[ll];Vl=="L"&&to=="1"?rr[ll]="L":he.test(to)&&(Vl=to)}for(var Ys=0;Ys<pr;++Ys)if(oe.test(rr[Ys])){var zs=void 0;for(zs=Ys+1;zs<pr&&oe.test(rr[zs]);++zs);for(var Xs=(Ys?rr[Ys-1]:gn)=="L",el=(zs<pr?rr[zs]:gn)=="L",xu=Xs==el?Xs?"L":"R":gn,Jl=Ys;Jl<zs;++Jl)rr[Jl]=xu;Ys=zs-1}for(var Ll=[],Jo,hl=0;hl<pr;)if(ke.test(rr[hl])){var Pd=hl;for(++hl;hl<pr&&ke.test(rr[hl]);++hl);Ll.push(new _e(0,Pd,hl))}else{var Hc=hl,Xc=Ll.length,kc=qt=="rtl"?1:0;for(++hl;hl<pr&&rr[hl]!="L";++hl);for(var cl=Hc;cl<hl;)if(ze.test(rr[cl])){Hc<cl&&(Ll.splice(Xc,0,new _e(1,Hc,cl)),Xc+=kc);var Su=cl;for(++cl;cl<hl&&ze.test(rr[cl]);++cl);Ll.splice(Xc,0,new _e(2,Su,cl)),Xc+=kc,Hc=cl}else++cl;Hc<hl&&Ll.splice(Xc,0,new _e(1,Hc,hl))}return qt=="ltr"&&(Ll[0].level==1&&(Jo=et.match(/^\s+/))&&(Ll[0].from=Jo[0].length,Ll.unshift(new _e(0,0,Jo[0].length))),yn(Ll).level==1&&(Jo=et.match(/\s+$/))&&(yn(Ll).to-=Jo[0].length,Ll.push(new _e(0,pr-Jo[0].length,pr)))),qt=="rtl"?Ll.reverse():Ll}}();function zt(x,z){var ne=x.order;return ne==null&&(ne=x.order=gt(x.text,z)),ne}var It=[],ln=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]||It).concat(ne)}};function _t(x,z){return x._handlers&&x._handlers[z]||It}function lr(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,oe=te&&te[z];if(oe){var he=St(oe,ne);he>-1&&(te[z]=oe.slice(0,he).concat(oe.slice(he+1)))}}}function xt(x,z){var ne=_t(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),oe=0;oe<ne.length;++oe)ne[oe].apply(null,te)}function Yt(x,z,ne){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),xt(x,ne||z.type,x,z),or(z)||z.codemirrorIgnore}function Un(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)St(ne,z[te])==-1&&ne.push(z[te])}function Hn(x,z){return _t(x,z).length>0}function $n(x){x.prototype.on=function(z,ne){ln(this,z,ne)},x.prototype.off=function(z,ne){lr(this,z,ne)}}function yr(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function Fn(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function or(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function Dr(x){yr(x),Fn(x)}function Fr(x){return x.target||x.srcElement}function hr(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),ye&&x.ctrlKey&&z==1&&(z=3),z}var _r=function(){if(be&&Me<9)return!1;var x=pt("div");return"draggable"in x||"dragDrop"in x}(),Mi;function zi(x){if(Mi==null){var z=pt("span","\u200B");yt(x,pt("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(Mi=z.offsetWidth<=1&&z.offsetHeight>2&&!(be&&Me<8))}var ne=Mi?pt("span","\u200B"):pt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var Gi;function pi(x){if(Gi!=null)return Gi;var z=yt(x,document.createTextNode("A\u062EA")),ne=Ne(z,0,1).getBoundingClientRect(),te=Ne(z,1,2).getBoundingClientRect();return Ge(x),!ne||ne.left==ne.right?!1:Gi=te.right-ne.right<3}var Zt=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(x){for(var z=0,ne=[],te=x.length;z<=te;){var oe=x.indexOf(`
|
|
|
`,z);oe==-1&&(oe=x.length);var he=x.slice(z,x.charAt(oe-1)=="\r"?oe-1:oe),ke=he.indexOf("\r");ke!=-1?(ne.push(he.slice(0,ke)),z+=ke+1):(ne.push(he),z=oe+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},Kn=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},fr=function(){var x=pt("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),qn=null;function Br(x){if(qn!=null)return qn;var z=yt(x,pt("span","x")),ne=z.getBoundingClientRect(),te=Ne(z,0,1).getBoundingClientRect();return qn=Math.abs(ne.left-te.left)>1}var Kr={},Rr={};function gr(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),Kr[x]=z}function mt(x,z){Rr[x]=z}function Ot(x){if(typeof x=="string"&&Rr.hasOwnProperty(x))x=Rr[x];else if(x&&typeof x.name=="string"&&Rr.hasOwnProperty(x.name)){var z=Rr[x.name];typeof z=="string"&&(z={name:z}),x=fe(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return Ot("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return Ot("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function Xt(x,z){z=Ot(z);var ne=Kr[z.name];if(!ne)return Xt(x,"text/plain");var te=ne(x,z);if(kn.hasOwnProperty(z.name)){var oe=kn[z.name];for(var he in oe)oe.hasOwnProperty(he)&&(te.hasOwnProperty(he)&&(te["_"+he]=te[he]),te[he]=oe[he])}if(te.name=z.name,z.helperType&&(te.helperType=z.helperType),z.modeProps)for(var ke in z.modeProps)te[ke]=z.modeProps[ke];return te}var kn={};function lt(x,z){var ne=kn.hasOwnProperty(x)?kn[x]:kn[x]={};Tn(z,ne)}function Kt(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var ne={};for(var te in z){var oe=z[te];oe instanceof Array&&(oe=oe.concat([])),ne[te]=oe}return ne}function mn(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 nn(x,z,ne){return x.startState?x.startState(z,ne):!0}var In=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};In.prototype.eol=function(){return this.pos>=this.string.length},In.prototype.sol=function(){return this.pos==this.lineStart},In.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},In.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},In.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},In.prototype.eatWhile=function(x){for(var z=this.pos;this.eat(x););return this.pos>z},In.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},In.prototype.skipToEnd=function(){this.pos=this.string.length},In.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},In.prototype.backUp=function(x){this.pos-=x},In.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=at(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?at(this.string,this.lineStart,this.tabSize):0)},In.prototype.indentation=function(){return at(this.string,null,this.tabSize)-(this.lineStart?at(this.string,this.lineStart,this.tabSize):0)},In.prototype.match=function(x,z,ne){if(typeof x=="string"){var te=function(ke){return ne?ke.toLowerCase():ke},oe=this.string.substr(this.pos,x.length);if(te(oe)==te(x))return z!==!1&&(this.pos+=x.length),!0}else{var he=this.string.slice(this.pos).match(x);return he&&he.index>0?null:(he&&z!==!1&&(this.pos+=he[0].length),he)}},In.prototype.current=function(){return this.string.slice(this.start,this.pos)},In.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},In.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},In.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function Pn(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 oe=ne.children[te],he=oe.chunkSize();if(z<he){ne=oe;break}z-=he}return ne.lines[z]}function vr(x,z,ne){var te=[],oe=z.line;return x.iter(z.line,ne.line+1,function(he){var ke=he.text;oe==ne.line&&(ke=ke.slice(0,ne.ch)),oe==z.line&&(ke=ke.slice(z.ch)),te.push(ke),++oe}),te}function ni(x,z,ne){var te=[];return x.iter(z,ne,function(oe){te.push(oe.text)}),te}function zr(x,z){var ne=z-x.height;if(ne)for(var te=x;te;te=te.parent)te.height+=ne}function Pr(x){if(x.parent==null)return null;for(var z=x.parent,ne=St(z.lines,x),te=z.parent;te;z=te,te=te.parent)for(var oe=0;te.children[oe]!=z;++oe)ne+=te.children[oe].chunkSize();return ne+z.first}function Yr(x,z){var ne=x.first;e:do{for(var te=0;te<x.children.length;++te){var oe=x.children[te],he=oe.height;if(z<he){x=oe;continue e}z-=he,ne+=oe.chunkSize()}return ne}while(!x.lines);for(var ke=0;ke<x.lines.length;++ke){var ze=x.lines[ke],_e=ze.height;if(z<_e)break;z-=_e}return ne+ke}function Qr(x,z){return z>=x.first&&z<x.first+x.size}function Ht(x,z){return String(x.lineNumberFormatter(z+x.firstLineNumber))}function Tt(x,z,ne){if(ne===void 0&&(ne=null),!(this instanceof Tt))return new Tt(x,z,ne);this.line=x,this.ch=z,this.sticky=ne}function Jt(x,z){return x.line-z.line||x.ch-z.ch}function er(x,z){return x.sticky==z.sticky&&Jt(x,z)==0}function kr(x){return Tt(x.line,x.ch)}function Rn(x,z){return Jt(x,z)<0?z:x}function Jn(x,z){return Jt(x,z)<0?x:z}function sr(x,z){return Math.max(x.first,Math.min(z,x.first+x.size-1))}function Ir(x,z){if(z.line<x.first)return Tt(x.first,0);var ne=x.first+x.size-1;return z.line>ne?Tt(ne,Pn(x,ne).text.length):Xr(z,Pn(x,z.line).text.length)}function Xr(x,z){var ne=x.ch;return ne==null||ne>z?Tt(x.line,z):ne<0?Tt(x.line,0):x}function Wn(x,z){for(var ne=[],te=0;te<z.length;te++)ne[te]=Ir(x,z[te]);return ne}var Ai=function(x,z){this.state=x,this.lookAhead=z},xi=function(x,z,ne,te){this.state=z,this.doc=x,this.line=ne,this.maxLookAhead=te||0,this.baseTokens=null,this.baseTokenPos=1};xi.prototype.lookAhead=function(x){var z=this.doc.getLine(this.line+x);return z!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),z},xi.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}},xi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},xi.fromSaved=function(x,z,ne){return z instanceof Ai?new xi(x,Kt(x.mode,z.state),ne,z.lookAhead):new xi(x,Kt(x.mode,z),ne)},xi.prototype.save=function(x){var z=x!==!1?Kt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ai(z,this.maxLookAhead):z};function Sa(x,z,ne,te){var oe=[x.state.modeGen],he={};ca(x,z.text,x.doc.mode,ne,function(et,qt){return oe.push(et,qt)},he,te);for(var ke=ne.state,ze=function(et){ne.baseTokens=oe;var qt=x.state.overlays[et],gn=1,pr=0;ne.state=!0,ca(x,z.text,qt.mode,ne,function(rr,Vr){for(var ai=gn;pr<rr;){var wi=oe[gn];wi>rr&&oe.splice(gn,1,rr,oe[gn+1],wi),gn+=2,pr=Math.min(rr,wi)}if(Vr)if(qt.opaque)oe.splice(ai,gn-ai,rr,"overlay "+Vr),gn=ai+2;else for(;ai<gn;ai+=2){var Hi=oe[ai+1];oe[ai+1]=(Hi?Hi+" ":"")+"overlay "+Vr}},he),ne.state=ke,ne.baseTokens=null,ne.baseTokenPos=1},_e=0;_e<x.state.overlays.length;++_e)ze(_e);return{styles:oe,classes:he.bgClass||he.textClass?he:null}}function fa(x,z,ne){if(!z.styles||z.styles[0]!=x.state.modeGen){var te=na(x,Pr(z)),oe=z.text.length>x.options.maxHighlightLength&&Kt(x.doc.mode,te.state),he=Sa(x,z,te);oe&&(te.state=oe),z.stateAfter=te.save(!oe),z.styles=he.styles,he.classes?z.styleClasses=he.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 na(x,z,ne){var te=x.doc,oe=x.display;if(!te.mode.startState)return new xi(te,!0,z);var he=Ca(x,z,ne),ke=he>te.first&&Pn(te,he-1).stateAfter,ze=ke?xi.fromSaved(te,ke,he):new xi(te,nn(te.mode),he);return te.iter(he,z,function(_e){Ni(x,_e.text,ze);var et=ze.line;_e.stateAfter=et==z-1||et%5==0||et>=oe.viewFrom&&et<oe.viewTo?ze.save():null,ze.nextLine()}),ne&&(te.modeFrontier=ze.line),ze}function Ni(x,z,ne,te){var oe=x.doc.mode,he=new In(z,x.options.tabSize,ne);for(he.start=he.pos=te||0,z==""&&la(oe,ne.state);!he.eol();)Qi(oe,he,ne.state),he.start=he.pos}function la(x,z){if(x.blankLine)return x.blankLine(z);if(x.innerMode){var ne=mn(x,z);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}}function Qi(x,z,ne,te){for(var oe=0;oe<10;oe++){te&&(te[0]=mn(x,ne).mode);var he=x.token(z,ne);if(z.pos>z.start)return he}throw new Error("Mode "+x.name+" failed to advance stream.")}var ga=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function Ba(x,z,ne,te){var oe=x.doc,he=oe.mode,ke;z=Ir(oe,z);var ze=Pn(oe,z.line),_e=na(x,z.line,ne),et=new In(ze.text,x.options.tabSize,_e),qt;for(te&&(qt=[]);(te||et.pos<z.ch)&&!et.eol();)et.start=et.pos,ke=Qi(he,et,_e.state),te&&qt.push(new ga(et,ke,Kt(oe.mode,_e.state)));return te?qt:new ga(et,ke,_e.state)}function Oi(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 ca(x,z,ne,te,oe,he,ke){var ze=ne.flattenSpans;ze==null&&(ze=x.options.flattenSpans);var _e=0,et=null,qt=new In(z,x.options.tabSize,te),gn,pr=x.options.addModeClass&&[null];for(z==""&&Oi(la(ne,te.state),he);!qt.eol();){if(qt.pos>x.options.maxHighlightLength?(ze=!1,ke&&Ni(x,z,te,qt.pos),qt.pos=z.length,gn=null):gn=Oi(Qi(ne,qt,te.state,pr),he),pr){var rr=pr[0].name;rr&&(gn="m-"+(gn?rr+" "+gn:rr))}if(!ze||et!=gn){for(;_e<qt.start;)_e=Math.min(qt.start,_e+5e3),oe(_e,et);et=gn}qt.start=qt.pos}for(;_e<qt.pos;){var Vr=Math.min(qt.pos,_e+5e3);oe(Vr,et),_e=Vr}}function Ca(x,z,ne){for(var te,oe,he=x.doc,ke=ne?-1:z-(x.doc.mode.innerMode?1e3:100),ze=z;ze>ke;--ze){if(ze<=he.first)return he.first;var _e=Pn(he,ze-1),et=_e.stateAfter;if(et&&(!ne||ze+(et instanceof Ai?et.lookAhead:0)<=he.modeFrontier))return ze;var qt=at(_e.text,null,x.options.tabSize);(oe==null||te>qt)&&(oe=ze-1,te=qt)}return oe}function Qa(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 oe=Pn(x,te).stateAfter;if(oe&&(!(oe instanceof Ai)||te+oe.lookAhead<z)){ne=te+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,ne)}}var za=!1,Pi=!1;function an(){za=!0}function Vt(){Pi=!0}function zn(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 Er(x,z){for(var ne,te=0;te<x.length;++te)x[te]!=z&&(ne||(ne=[])).push(x[te]);return ne}function qr(x,z){x.markedSpans=x.markedSpans?x.markedSpans.concat([z]):[z],z.marker.attachLine(x)}function di(x,z,ne){var te;if(x)for(var oe=0;oe<x.length;++oe){var he=x[oe],ke=he.marker,ze=he.from==null||(ke.inclusiveLeft?he.from<=z:he.from<z);if(ze||he.from==z&&ke.type=="bookmark"&&(!ne||!he.marker.insertLeft)){var _e=he.to==null||(ke.inclusiveRight?he.to>=z:he.to>z);(te||(te=[])).push(new zn(ke,he.from,_e?null:he.to))}}return te}function bi(x,z,ne){var te;if(x)for(var oe=0;oe<x.length;++oe){var he=x[oe],ke=he.marker,ze=he.to==null||(ke.inclusiveRight?he.to>=z:he.to>z);if(ze||he.from==z&&ke.type=="bookmark"&&(!ne||he.marker.insertLeft)){var _e=he.from==null||(ke.inclusiveLeft?he.from<=z:he.from<z);(te||(te=[])).push(new zn(ke,_e?null:he.from-z,he.to==null?null:he.to-z))}}return te}function ki(x,z){if(z.full)return null;var ne=Qr(x,z.from.line)&&Pn(x,z.from.line).markedSpans,te=Qr(x,z.to.line)&&Pn(x,z.to.line).markedSpans;if(!ne&&!te)return null;var oe=z.from.ch,he=z.to.ch,ke=Jt(z.from,z.to)==0,ze=di(ne,oe,ke),_e=bi(te,he,ke),et=z.text.length==1,qt=yn(z.text).length+(et?oe:0);if(ze)for(var gn=0;gn<ze.length;++gn){var pr=ze[gn];if(pr.to==null){var rr=cr(_e,pr.marker);rr?et&&(pr.to=rr.to==null?null:rr.to+qt):pr.to=oe}}if(_e)for(var Vr=0;Vr<_e.length;++Vr){var ai=_e[Vr];if(ai.to!=null&&(ai.to+=qt),ai.from==null){var wi=cr(ze,ai.marker);wi||(ai.from=qt,et&&(ze||(ze=[])).push(ai))}else ai.from+=qt,et&&(ze||(ze=[])).push(ai)}ze&&(ze=Si(ze)),_e&&_e!=ze&&(_e=Si(_e));var Hi=[ze];if(!et){var ta=z.text.length-2,Ti;if(ta>0&&ze)for(var sa=0;sa<ze.length;++sa)ze[sa].to==null&&(Ti||(Ti=[])).push(new zn(ze[sa].marker,null,null));for(var Pa=0;Pa<ta;++Pa)Hi.push(Ti);Hi.push(_e)}return Hi}function Si(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 Ri(x,z,ne){var te=null;if(x.iter(z.line,ne.line+1,function(rr){if(rr.markedSpans)for(var Vr=0;Vr<rr.markedSpans.length;++Vr){var ai=rr.markedSpans[Vr].marker;ai.readOnly&&(!te||St(te,ai)==-1)&&(te||(te=[])).push(ai)}}),!te)return null;for(var oe=[{from:z,to:ne}],he=0;he<te.length;++he)for(var ke=te[he],ze=ke.find(0),_e=0;_e<oe.length;++_e){var et=oe[_e];if(!(Jt(et.to,ze.from)<0||Jt(et.from,ze.to)>0)){var qt=[_e,1],gn=Jt(et.from,ze.from),pr=Jt(et.to,ze.to);(gn<0||!ke.inclusiveLeft&&!gn)&&qt.push({from:et.from,to:ze.from}),(pr>0||!ke.inclusiveRight&&!pr)&&qt.push({from:ze.to,to:et.to}),oe.splice.apply(oe,qt),_e+=qt.length-3}}return oe}function ra(x){var z=x.markedSpans;if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.detachLine(x);x.markedSpans=null}}function oi(x,z){if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.attachLine(x);x.markedSpans=z}}function hn(x){return x.inclusiveLeft?-1:0}function Dn(x){return x.inclusiveRight?1:0}function Xn(x,z){var ne=x.lines.length-z.lines.length;if(ne!=0)return ne;var te=x.find(),oe=z.find(),he=Jt(te.from,oe.from)||hn(x)-hn(z);if(he)return-he;var ke=Jt(te.to,oe.to)||Dn(x)-Dn(z);return ke||z.id-x.id}function ge(x,z){var ne=Pi&&x.markedSpans,te;if(ne)for(var oe=void 0,he=0;he<ne.length;++he)oe=ne[he],oe.marker.collapsed&&(z?oe.from:oe.to)==null&&(!te||Xn(te,oe.marker)<0)&&(te=oe.marker);return te}function Re(x){return ge(x,!0)}function He(x){return ge(x,!1)}function Ye(x,z){var ne=Pi&&x.markedSpans,te;if(ne)for(var oe=0;oe<ne.length;++oe){var he=ne[oe];he.marker.collapsed&&(he.from==null||he.from<z)&&(he.to==null||he.to>z)&&(!te||Xn(te,he.marker)<0)&&(te=he.marker)}return te}function Ve(x,z,ne,te,oe){var he=Pn(x,z),ke=Pi&&he.markedSpans;if(ke)for(var ze=0;ze<ke.length;++ze){var _e=ke[ze];if(_e.marker.collapsed){var et=_e.marker.find(0),qt=Jt(et.from,ne)||hn(_e.marker)-hn(oe),gn=Jt(et.to,te)||Dn(_e.marker)-Dn(oe);if(!(qt>=0&&gn<=0||qt<=0&&gn>=0)&&(qt<=0&&(_e.marker.inclusiveRight&&oe.inclusiveLeft?Jt(et.to,ne)>=0:Jt(et.to,ne)>0)||qt>=0&&(_e.marker.inclusiveRight&&oe.inclusiveLeft?Jt(et.from,te)<=0:Jt(et.from,te)<0)))return!0}}}function $e(x){for(var z;z=Re(x);)x=z.find(-1,!0).line;return x}function tt(x){for(var z;z=He(x);)x=z.find(1,!0).line;return x}function Wt(x){for(var z,ne;z=He(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function on(x,z){var ne=Pn(x,z),te=$e(ne);return ne==te?z:Pr(te)}function Zn(x,z){if(z>x.lastLine())return z;var ne=Pn(x,z),te;if(!tr(x,ne))return z;for(;te=He(ne);)ne=te.find(1,!0).line;return Pr(ne)+1}function tr(x,z){var ne=Pi&&z.markedSpans;if(ne){for(var te=void 0,oe=0;oe<ne.length;++oe)if(te=ne[oe],!!te.marker.collapsed){if(te.from==null)return!0;if(!te.marker.widgetNode&&te.from==0&&te.marker.inclusiveLeft&&Vn(x,z,te))return!0}}}function Vn(x,z,ne){if(ne.to==null){var te=ne.marker.find(1,!0);return Vn(x,te.line,cr(te.line.markedSpans,ne.marker))}if(ne.marker.inclusiveRight&&ne.to==z.text.length)return!0;for(var oe=void 0,he=0;he<z.markedSpans.length;++he)if(oe=z.markedSpans[he],oe.marker.collapsed&&!oe.marker.widgetNode&&oe.from==ne.to&&(oe.to==null||oe.to!=ne.from)&&(oe.marker.inclusiveLeft||ne.marker.inclusiveRight)&&Vn(x,z,oe))return!0}function Mn(x){x=$e(x);for(var z=0,ne=x.parent,te=0;te<ne.lines.length;++te){var oe=ne.lines[te];if(oe==x)break;z+=oe.height}for(var he=ne.parent;he;ne=he,he=ne.parent)for(var ke=0;ke<he.children.length;++ke){var ze=he.children[ke];if(ze==ne)break;z+=ze.height}return z}function En(x){if(x.height==0)return 0;for(var z=x.text.length,ne,te=x;ne=Re(te);){var oe=ne.find(0,!0);te=oe.from.line,z+=oe.from.ch-oe.to.ch}for(te=x;ne=He(te);){var he=ne.find(0,!0);z-=te.text.length-he.from.ch,te=he.to.line,z+=te.text.length-he.to.ch}return z}function dn(x){var z=x.display,ne=x.doc;z.maxLine=Pn(ne,ne.first),z.maxLineLength=En(z.maxLine),z.maxLineChanged=!0,ne.iter(function(te){var oe=En(te);oe>z.maxLineLength&&(z.maxLineLength=oe,z.maxLine=te)})}var Gn=function(x,z,ne){this.text=x,oi(this,z),this.height=ne?ne(this):1};Gn.prototype.lineNo=function(){return Pr(this)},$n(Gn);function xr(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),ra(x),oi(x,ne);var oe=te?te(x):1;oe!=x.height&&zr(x,oe)}function ar(x){x.parent=null,ra(x)}var ur={},mr={};function Sr(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?mr:ur;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function Tr(x,z){var ne=ft("span",null,null,ue?"padding-right: .1px":null),te={pre:ft("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var oe=0;oe<=(z.rest?z.rest.length:0);oe++){var he=oe?z.rest[oe-1]:z.line,ke=void 0;te.pos=0,te.addToken=Qe,pi(x.display.measure)&&(ke=zt(he,x.doc.direction))&&(te.addToken=kt(te.addToken,ke)),te.map=[];var ze=z!=x.display.externalMeasured&&Pr(he);jn(he,te,fa(x,he,ze)),he.styleClasses&&(he.styleClasses.bgClass&&(te.bgClass=Mt(he.styleClasses.bgClass,te.bgClass||"")),he.styleClasses.textClass&&(te.textClass=Mt(he.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(zi(x.display.measure))),oe==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(ue){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 xt(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=Mt(te.pre.className,te.textClass||"")),te}function je(x){var z=pt("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function Qe(x,z,ne,te,oe,he,ke){if(z){var ze=x.splitSpaces?Rt(z,x.trailingSpace):z,_e=x.cm.state.specialChars,et=!1,qt;if(!_e.test(z))x.col+=z.length,qt=document.createTextNode(ze),x.map.push(x.pos,x.pos+z.length,qt),be&&Me<9&&(et=!0),x.pos+=z.length;else{qt=document.createDocumentFragment();for(var gn=0;;){_e.lastIndex=gn;var pr=_e.exec(z),rr=pr?pr.index-gn:z.length-gn;if(rr){var Vr=document.createTextNode(ze.slice(gn,gn+rr));be&&Me<9?qt.appendChild(pt("span",[Vr])):qt.appendChild(Vr),x.map.push(x.pos,x.pos+rr,Vr),x.col+=rr,x.pos+=rr}if(!pr)break;gn+=rr+1;var ai=void 0;if(pr[0]==" "){var wi=x.cm.options.tabSize,Hi=wi-x.col%wi;ai=qt.appendChild(pt("span",$t(Hi),"cm-tab")),ai.setAttribute("role","presentation"),ai.setAttribute("cm-text"," "),x.col+=Hi}else pr[0]=="\r"||pr[0]==`
|
|
|
`?(ai=qt.appendChild(pt("span",pr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ai.setAttribute("cm-text",pr[0]),x.col+=1):(ai=x.cm.options.specialCharPlaceholder(pr[0]),ai.setAttribute("cm-text",pr[0]),be&&Me<9?qt.appendChild(pt("span",[ai])):qt.appendChild(ai),x.col+=1);x.map.push(x.pos,x.pos+1,ai),x.pos++}}if(x.trailingSpace=ze.charCodeAt(z.length-1)==32,ne||te||oe||et||he||ke){var ta=ne||"";te&&(ta+=te),oe&&(ta+=oe);var Ti=pt("span",[qt],ta,he);if(ke)for(var sa in ke)ke.hasOwnProperty(sa)&&sa!="style"&&sa!="class"&&Ti.setAttribute(sa,ke[sa]);return x.content.appendChild(Ti)}x.content.appendChild(qt)}}function Rt(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",oe=0;oe<x.length;oe++){var he=x.charAt(oe);he==" "&&ne&&(oe==x.length-1||x.charCodeAt(oe+1)==32)&&(he="\xA0"),te+=he,ne=he==" "}return te}function kt(x,z){return function(ne,te,oe,he,ke,ze,_e){oe=oe?oe+" cm-force-border":"cm-force-border";for(var et=ne.pos,qt=et+te.length;;){for(var gn=void 0,pr=0;pr<z.length&&(gn=z[pr],!(gn.to>et&&gn.from<=et));pr++);if(gn.to>=qt)return x(ne,te,oe,he,ke,ze,_e);x(ne,te.slice(0,gn.to-et),oe,he,null,ze,_e),he=null,te=te.slice(gn.to-et),et=gn.to}}}function vn(x,z,ne,te){var oe=!te&&ne.widgetNode;oe&&x.map.push(x.pos,x.pos+z,oe),!te&&x.cm.display.input.needsContentAttribute&&(oe||(oe=x.content.appendChild(document.createElement("span"))),oe.setAttribute("cm-marker",ne.id)),oe&&(x.cm.display.input.setUneditable(oe),x.content.appendChild(oe)),x.pos+=z,x.trailingSpace=!1}function jn(x,z,ne){var te=x.markedSpans,oe=x.text,he=0;if(!te){for(var ke=1;ke<ne.length;ke+=2)z.addToken(z,oe.slice(he,he=ne[ke]),Sr(ne[ke+1],z.cm.options));return}for(var ze=oe.length,_e=0,et=1,qt="",gn,pr,rr=0,Vr,ai,wi,Hi,ta;;){if(rr==_e){Vr=ai=wi=pr="",ta=null,Hi=null,rr=1/0;for(var Ti=[],sa=void 0,Pa=0;Pa<te.length;++Pa){var Fa=te[Pa],Mo=Fa.marker;if(Mo.type=="bookmark"&&Fa.from==_e&&Mo.widgetNode)Ti.push(Mo);else if(Fa.from<=_e&&(Fa.to==null||Fa.to>_e||Mo.collapsed&&Fa.to==_e&&Fa.from==_e)){if(Fa.to!=null&&Fa.to!=_e&&rr>Fa.to&&(rr=Fa.to,ai=""),Mo.className&&(Vr+=" "+Mo.className),Mo.css&&(pr=(pr?pr+";":"")+Mo.css),Mo.startStyle&&Fa.from==_e&&(wi+=" "+Mo.startStyle),Mo.endStyle&&Fa.to==rr&&(sa||(sa=[])).push(Mo.endStyle,Fa.to),Mo.title&&((ta||(ta={})).title=Mo.title),Mo.attributes)for(var vs in Mo.attributes)(ta||(ta={}))[vs]=Mo.attributes[vs];Mo.collapsed&&(!Hi||Xn(Hi.marker,Mo)<0)&&(Hi=Fa)}else Fa.from>_e&&rr>Fa.from&&(rr=Fa.from)}if(sa)for(var xl=0;xl<sa.length;xl+=2)sa[xl+1]==rr&&(ai+=" "+sa[xl]);if(!Hi||Hi.from==_e)for(var Fs=0;Fs<Ti.length;++Fs)vn(z,0,Ti[Fs]);if(Hi&&(Hi.from||0)==_e){if(vn(z,(Hi.to==null?ze+1:Hi.to)-_e,Hi.marker,Hi.from==null),Hi.to==null)return;Hi.to==_e&&(Hi=!1)}}if(_e>=ze)break;for(var jl=Math.min(ze,rr);;){if(qt){var Ul=_e+qt.length;if(!Hi){var ll=Ul>jl?qt.slice(0,jl-_e):qt;z.addToken(z,ll,gn?gn+Vr:Vr,wi,_e+ll.length==rr?ai:"",pr,ta)}if(Ul>=jl){qt=qt.slice(jl-_e),_e=jl;break}_e=Ul,wi=""}qt=oe.slice(he,he=ne[et++]),gn=Sr(ne[et++],z.cm.options)}}}function vt(x,z,ne){this.line=z,this.rest=Wt(z),this.size=this.rest?Pr(yn(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=tr(x,z)}function wt(x,z,ne){for(var te=[],oe,he=z;he<ne;he=oe){var ke=new vt(x.doc,Pn(x.doc,he),he);oe=he+ke.size,te.push(ke)}return te}var Ct=null;function Ft(x){Ct?Ct.ops.push(x):x.ownsGroup=Ct={ops:[x],delayedCallbacks:[]}}function Ln(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 oe=x.ops[te];if(oe.cursorActivityHandlers)for(;oe.cursorActivityCalled<oe.cursorActivityHandlers.length;)oe.cursorActivityHandlers[oe.cursorActivityCalled++].call(null,oe.cm)}}while(ne<z.length)}function Yn(x,z){var ne=x.ownsGroup;if(ne)try{Ln(ne)}finally{Ct=null,z(ne)}}var wn=null;function _n(x,z){var ne=_t(x,z);if(ne.length){var te=Array.prototype.slice.call(arguments,2),oe;Ct?oe=Ct.delayedCallbacks:wn?oe=wn:(oe=wn=[],setTimeout(wr,0));for(var he=function(ze){oe.push(function(){return ne[ze].apply(null,te)})},ke=0;ke<ne.length;++ke)he(ke)}}function wr(){var x=wn;wn=null;for(var z=0;z<x.length;++z)x[z]()}function Wr(x,z,ne,te){for(var oe=0;oe<z.changes.length;oe++){var he=z.changes[oe];he=="text"?jr(x,z):he=="gutter"?Zr(x,z,ne,te):he=="class"?ti(x,z):he=="widget"&&Mr(x,z,te)}z.changes=null}function Lr(x){return x.node==x.text&&(x.node=pt("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),be&&Me<8&&(x.node.style.zIndex=2)),x.node}function dr(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=Lr(z);z.background=te.insertBefore(pt("div",null,ne),te.firstChild),x.display.input.setUneditable(z.background)}}function Or(x,z){var ne=x.display.externalMeasured;return ne&&ne.line==z.line?(x.display.externalMeasured=null,z.measure=ne.measure,ne.built):Tr(x,z)}function jr(x,z){var ne=z.text.className,te=Or(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,ti(x,z)):ne&&(z.text.className=ne)}function ti(x,z){dr(x,z),z.line.wrapClass?Lr(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 Zr(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 oe=Lr(z);z.gutterBackground=pt("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),oe.insertBefore(z.gutterBackground,z.text)}var he=z.line.gutterMarkers;if(x.options.lineNumbers||he){var ke=Lr(z),ze=z.gutter=pt("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px");if(x.display.input.setUneditable(ze),ke.insertBefore(ze,z.text),z.line.gutterClass&&(ze.className+=" "+z.line.gutterClass),x.options.lineNumbers&&(!he||!he["CodeMirror-linenumbers"])&&(z.lineNumber=ze.appendChild(pt("div",Ht(x.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),he)for(var _e=0;_e<x.display.gutterSpecs.length;++_e){var et=x.display.gutterSpecs[_e].className,qt=he.hasOwnProperty(et)&&he[et];qt&&ze.appendChild(pt("div",[qt],"CodeMirror-gutter-elt","left: "+te.gutterLeft[et]+"px; width: "+te.gutterWidth[et]+"px"))}}}function Mr(x,z,ne){z.alignable&&(z.alignable=null);for(var te=Se("CodeMirror-linewidget"),oe=z.node.firstChild,he=void 0;oe;oe=he)he=oe.nextSibling,te.test(oe.className)&&z.node.removeChild(oe);si(x,z,ne)}function li(x,z,ne,te){var oe=Or(x,z);return z.text=z.node=oe.pre,oe.bgClass&&(z.bgClass=oe.bgClass),oe.textClass&&(z.textClass=oe.textClass),ti(x,z),Zr(x,z,ne,te),si(x,z,te),z.node}function si(x,z,ne){if(Yi(x,z.line,z,ne,!0),z.rest)for(var te=0;te<z.rest.length;te++)Yi(x,z.rest[te],z,ne,!1)}function Yi(x,z,ne,te,oe){if(z.widgets)for(var he=Lr(ne),ke=0,ze=z.widgets;ke<ze.length;++ke){var _e=ze[ke],et=pt("div",[_e.node],"CodeMirror-linewidget"+(_e.className?" "+_e.className:""));_e.handleMouseEvents||et.setAttribute("cm-ignore-events","true"),qi(_e,et,ne,te),x.display.input.setUneditable(et),oe&&_e.above?he.insertBefore(et,ne.gutter||ne.text):he.appendChild(et),_n(_e,"redraw")}}function qi(x,z,ne,te){if(x.noHScroll){(ne.alignable||(ne.alignable=[])).push(z);var oe=te.wrapperWidth;z.style.left=te.fixedPos+"px",x.coverGutter||(oe-=te.gutterTotalWidth,z.style.paddingLeft=te.gutterTotalWidth+"px"),z.style.width=oe+"px"}x.coverGutter&&(z.style.zIndex=5,z.style.position="relative",x.noHScroll||(z.style.marginLeft=-te.gutterTotalWidth+"px"))}function ia(x){if(x.height!=null)return x.height;var z=x.doc.cm;if(!z)return 0;if(!jt(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;"),yt(z.display.measure,pt("div",[x.node],null,ne))}return x.height=x.node.parentNode.offsetHeight}function _i(x,z){for(var ne=Fr(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 Wi(x){return x.lineSpace.offsetTop}function Li(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function da(x){if(x.cachedPaddingH)return x.cachedPaddingH;var z=yt(x.measure,pt("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 Bi(x){return cn-x.display.nativeBarWidth}function fi(x){return x.display.scroller.clientWidth-Bi(x)-x.display.barWidth}function Ji(x){return x.display.scroller.clientHeight-Bi(x)-x.display.barHeight}function va(x,z,ne){var te=x.options.lineWrapping,oe=te&&fi(x);if(!z.measure.heights||te&&z.measure.width!=oe){var he=z.measure.heights=[];if(te){z.measure.width=oe;for(var ke=z.text.firstChild.getClientRects(),ze=0;ze<ke.length-1;ze++){var _e=ke[ze],et=ke[ze+1];Math.abs(_e.bottom-et.bottom)>2&&he.push((_e.bottom+et.top)/2-ne.top)}}he.push(ne.bottom-ne.top)}}function oo(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 oe=0;oe<x.rest.length;oe++)if(Pr(x.rest[oe])>ne)return{map:x.measure.maps[oe],cache:x.measure.caches[oe],before:!0}}function Ja(x,z){z=$e(z);var ne=Pr(z),te=x.display.externalMeasured=new vt(x.doc,z,ne);te.lineN=ne;var oe=te.built=Tr(x,te);return te.text=oe.pre,yt(x.display.lineMeasure,oe.pre),te}function Za(x,z,ne,te){return aa(x,Ia(x,z),ne,te)}function Ha(x,z){if(z>=x.display.viewFrom&&z<x.display.viewTo)return x.display.view[Ya(x,z)];var ne=x.display.externalMeasured;if(ne&&z>=ne.lineN&&z<ne.lineN+ne.size)return ne}function Ia(x,z){var ne=Pr(z),te=Ha(x,ne);te&&!te.text?te=null:te&&te.changes&&(Wr(x,te,ne,xs(x)),x.curOp.forceUpdate=!0),te||(te=Ja(x,z));var oe=oo(te,z,ne);return{line:z,view:te,rect:null,map:oe.map,cache:oe.cache,before:oe.before,hasHeights:!1}}function aa(x,z,ne,te,oe){z.before&&(ne=-1);var he=ne+(te||""),ke;return z.cache.hasOwnProperty(he)?ke=z.cache[he]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(va(x,z.view,z.rect),z.hasHeights=!0),ke=Oa(x,z,ne,te),ke.bogus||(z.cache[he]=ke)),{left:ke.left,right:ke.right,top:oe?ke.rtop:ke.top,bottom:oe?ke.rbottom:ke.bottom}}var mo={left:0,right:0,top:0,bottom:0};function ba(x,z,ne){for(var te,oe,he,ke,ze,_e,et=0;et<x.length;et+=3)if(ze=x[et],_e=x[et+1],z<ze?(oe=0,he=1,ke="left"):z<_e?(oe=z-ze,he=oe+1):(et==x.length-3||z==_e&&x[et+3]>z)&&(he=_e-ze,oe=he-1,z>=_e&&(ke="right")),oe!=null){if(te=x[et+2],ze==_e&&ne==(te.insertLeft?"left":"right")&&(ke=ne),ne=="left"&&oe==0)for(;et&&x[et-2]==x[et-3]&&x[et-1].insertLeft;)te=x[(et-=3)+2],ke="left";if(ne=="right"&&oe==_e-ze)for(;et<x.length-3&&x[et+3]==x[et+4]&&!x[et+5].insertLeft;)te=x[(et+=3)+2],ke="right";break}return{node:te,start:oe,end:he,collapse:ke,coverStart:ze,coverEnd:_e}}function Zi(x,z){var ne=mo;if(z=="left")for(var te=0;te<x.length&&(ne=x[te]).left==ne.right;te++);else for(var oe=x.length-1;oe>=0&&(ne=x[oe]).left==ne.right;oe--);return ne}function Oa(x,z,ne,te){var oe=ba(z.map,ne,te),he=oe.node,ke=oe.start,ze=oe.end,_e=oe.collapse,et;if(he.nodeType==3){for(var qt=0;qt<4;qt++){for(;ke&&ot(z.line.text.charAt(oe.coverStart+ke));)--ke;for(;oe.coverStart+ze<oe.coverEnd&&ot(z.line.text.charAt(oe.coverStart+ze));)++ze;if(be&&Me<9&&ke==0&&ze==oe.coverEnd-oe.coverStart?et=he.parentNode.getBoundingClientRect():et=Zi(Ne(he,ke,ze).getClientRects(),te),et.left||et.right||ke==0)break;ze=ke,ke=ke-1,_e="right"}be&&Me<11&&(et=no(x.display.measure,et))}else{ke>0&&(_e=te="right");var gn;x.options.lineWrapping&&(gn=he.getClientRects()).length>1?et=gn[te=="right"?gn.length-1:0]:et=he.getBoundingClientRect()}if(be&&Me<9&&!ke&&(!et||!et.left&&!et.right)){var pr=he.parentNode.getClientRects()[0];pr?et={left:pr.left,right:pr.left+us(x.display),top:pr.top,bottom:pr.bottom}:et=mo}for(var rr=et.top-z.rect.top,Vr=et.bottom-z.rect.top,ai=(rr+Vr)/2,wi=z.view.measure.heights,Hi=0;Hi<wi.length-1&&!(ai<wi[Hi]);Hi++);var ta=Hi?wi[Hi-1]:0,Ti=wi[Hi],sa={left:(_e=="right"?et.right:et.left)-z.rect.left,right:(_e=="left"?et.left:et.right)-z.rect.left,top:ta,bottom:Ti};return!et.left&&!et.right&&(sa.bogus=!0),x.options.singleCursorHeightPerLine||(sa.rtop=rr,sa.rbottom=Vr),sa}function no(x,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Br(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 Ra(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 _a(x){x.display.externalMeasure=null,Ge(x.display.lineMeasure);for(var z=0;z<x.display.view.length;z++)Ra(x.display.view[z])}function oa(x){_a(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function ro(){return me&&Xe?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function bo(){return me&&Xe?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function co(x){var z=0;if(x.widgets)for(var ne=0;ne<x.widgets.length;++ne)x.widgets[ne].above&&(z+=ia(x.widgets[ne]));return z}function xo(x,z,ne,te,oe){if(!oe){var he=co(z);ne.top+=he,ne.bottom+=he}if(te=="line")return ne;te||(te="local");var ke=Mn(z);if(te=="local"?ke+=Wi(x.display):ke-=x.display.viewOffset,te=="page"||te=="window"){var ze=x.display.lineSpace.getBoundingClientRect();ke+=ze.top+(te=="window"?0:bo());var _e=ze.left+(te=="window"?0:ro());ne.left+=_e,ne.right+=_e}return ne.top+=ke,ne.bottom+=ke,ne}function Ao(x,z,ne){if(ne=="div")return z;var te=z.left,oe=z.top;if(ne=="page")te-=ro(),oe-=bo();else if(ne=="local"||!ne){var he=x.display.sizer.getBoundingClientRect();te+=he.left,oe+=he.top}var ke=x.display.lineSpace.getBoundingClientRect();return{left:te-ke.left,top:oe-ke.top}}function Xo(x,z,ne,te,oe){return te||(te=Pn(x.doc,z.line)),xo(x,te,Za(x,te,z.ch,oe),ne)}function uo(x,z,ne,te,oe,he){te=te||Pn(x.doc,z.line),oe||(oe=Ia(x,te));function ke(Vr,ai){var wi=aa(x,oe,Vr,ai?"right":"left",he);return ai?wi.left=wi.right:wi.right=wi.left,xo(x,te,wi,ne)}var ze=zt(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"),!ze)return ke(et=="before"?_e-1:_e,et=="before");function qt(Vr,ai,wi){var Hi=ze[ai],ta=Hi.level==1;return ke(wi?Vr-1:Vr,ta!=wi)}var gn=un(ze,_e,et),pr=sn,rr=qt(_e,gn,et=="before");return pr!=null&&(rr.other=qt(_e,pr,et!="before")),rr}function Co(x,z){var ne=0;z=Ir(x.doc,z),x.options.lineWrapping||(ne=us(x.display)*z.ch);var te=Pn(x.doc,z.line),oe=Mn(te)+Wi(x.display);return{left:ne,right:ne,top:oe,bottom:oe+te.height}}function os(x,z,ne,te,oe){var he=Tt(x,z,ne);return he.xRel=oe,te&&(he.outside=te),he}function rs(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return os(te.first,0,null,-1,-1);var oe=Yr(te,ne),he=te.first+te.size-1;if(oe>he)return os(te.first+te.size-1,Pn(te,he).text.length,null,1,1);z<0&&(z=0);for(var ke=Pn(te,oe);;){var ze=wa(x,ke,oe,z,ne),_e=Ye(ke,ze.ch+(ze.xRel>0||ze.outside>0?1:0));if(!_e)return ze;var et=_e.find(1);if(et.line==oe)return et;ke=Pn(te,oe=et.line)}}function cs(x,z,ne,te){te-=co(z);var oe=z.text.length,he=en(function(ke){return aa(x,ne,ke-1).bottom<=te},oe,0);return oe=en(function(ke){return aa(x,ne,ke).top>te},he,oe),{begin:he,end:oe}}function No(x,z,ne,te){ne||(ne=Ia(x,z));var oe=xo(x,z,aa(x,ne,te),"line").top;return cs(x,z,ne,oe)}function So(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function wa(x,z,ne,te,oe){oe-=Mn(z);var he=Ia(x,z),ke=co(z),ze=0,_e=z.text.length,et=!0,qt=zt(z,x.doc.direction);if(qt){var gn=(x.options.lineWrapping?io:Na)(x,z,ne,he,qt,te,oe);et=gn.level!=1,ze=et?gn.from:gn.to-1,_e=et?gn.to:gn.from-1}var pr=null,rr=null,Vr=en(function(Pa){var Fa=aa(x,he,Pa);return Fa.top+=ke,Fa.bottom+=ke,So(Fa,te,oe,!1)?(Fa.top<=oe&&Fa.left<=te&&(pr=Pa,rr=Fa),!0):!1},ze,_e),ai,wi,Hi=!1;if(rr){var ta=te-rr.left<rr.right-te,Ti=ta==et;Vr=pr+(Ti?0:1),wi=Ti?"after":"before",ai=ta?rr.left:rr.right}else{!et&&(Vr==_e||Vr==ze)&&Vr++,wi=Vr==0?"after":Vr==z.text.length?"before":aa(x,he,Vr-(et?1:0)).bottom+ke<=oe==et?"after":"before";var sa=uo(x,Tt(ne,Vr,wi),"line",z,he);ai=sa.left,Hi=oe<sa.top?-1:oe>=sa.bottom?1:0}return Vr=Bt(z.text,Vr,1),os(ne,Vr,wi,Hi,te-ai)}function Na(x,z,ne,te,oe,he,ke){var ze=en(function(gn){var pr=oe[gn],rr=pr.level!=1;return So(uo(x,Tt(ne,rr?pr.to:pr.from,rr?"before":"after"),"line",z,te),he,ke,!0)},0,oe.length-1),_e=oe[ze];if(ze>0){var et=_e.level!=1,qt=uo(x,Tt(ne,et?_e.from:_e.to,et?"after":"before"),"line",z,te);So(qt,he,ke,!0)&&qt.top>ke&&(_e=oe[ze-1])}return _e}function io(x,z,ne,te,oe,he,ke){var ze=cs(x,z,te,ke),_e=ze.begin,et=ze.end;/\s/.test(z.text.charAt(et-1))&&et--;for(var qt=null,gn=null,pr=0;pr<oe.length;pr++){var rr=oe[pr];if(!(rr.from>=et||rr.to<=_e)){var Vr=rr.level!=1,ai=aa(x,te,Vr?Math.min(et,rr.to)-1:Math.max(_e,rr.from)).right,wi=ai<he?he-ai+1e9:ai-he;(!qt||gn>wi)&&(qt=rr,gn=wi)}}return qt||(qt=oe[oe.length-1]),qt.from<_e&&(qt={from:_e,to:qt.to,level:qt.level}),qt.to>et&&(qt={from:qt.from,to:et,level:qt.level}),qt}var go;function Uo(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(go==null){go=pt("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)go.appendChild(document.createTextNode("x")),go.appendChild(pt("br"));go.appendChild(document.createTextNode("x"))}yt(x.measure,go);var ne=go.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),Ge(x.measure),ne||1}function us(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=pt("span","xxxxxxxxxx"),ne=pt("pre",[z],"CodeMirror-line-like");yt(x.measure,ne);var te=z.getBoundingClientRect(),oe=(te.right-te.left)/10;return oe>2&&(x.cachedCharWidth=oe),oe||10}function xs(x){for(var z=x.display,ne={},te={},oe=z.gutters.clientLeft,he=z.gutters.firstChild,ke=0;he;he=he.nextSibling,++ke){var ze=x.display.gutterSpecs[ke].className;ne[ze]=he.offsetLeft+he.clientLeft+oe,te[ze]=he.clientWidth}return{fixedPos:Js(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function Js(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function Ks(x){var z=Uo(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/us(x.display)-3);return function(oe){if(tr(x.doc,oe))return 0;var he=0;if(oe.widgets)for(var ke=0;ke<oe.widgets.length;ke++)oe.widgets[ke].height&&(he+=oe.widgets[ke].height);return ne?he+(Math.ceil(oe.text.length/te)||1)*z:he+z}}function ds(x){var z=x.doc,ne=Ks(x);z.iter(function(te){var oe=ne(te);oe!=te.height&&zr(te,oe)})}function Hs(x,z,ne,te){var oe=x.display;if(!ne&&Fr(z).getAttribute("cm-not-content")=="true")return null;var he,ke,ze=oe.lineSpace.getBoundingClientRect();try{he=z.clientX-ze.left,ke=z.clientY-ze.top}catch(gn){return null}var _e=rs(x,he,ke),et;if(te&&_e.xRel>0&&(et=Pn(x.doc,_e.line).text).length==_e.ch){var qt=at(et,et.length,x.options.tabSize)-et.length;_e=Tt(_e.line,Math.max(0,Math.round((he-da(x.display).left)/us(x.display))-qt))}return _e}function Ya(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 Da(x,z,ne,te){z==null&&(z=x.doc.first),ne==null&&(ne=x.doc.first+x.doc.size),te||(te=0);var oe=x.display;if(te&&ne<oe.viewTo&&(oe.updateLineNumbers==null||oe.updateLineNumbers>z)&&(oe.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=oe.viewTo)Pi&&on(x.doc,z)<oe.viewTo&&ko(x);else if(ne<=oe.viewFrom)Pi&&Zn(x.doc,ne+te)>oe.viewFrom?ko(x):(oe.viewFrom+=te,oe.viewTo+=te);else if(z<=oe.viewFrom&&ne>=oe.viewTo)ko(x);else if(z<=oe.viewFrom){var he=fs(x,ne,ne+te,1);he?(oe.view=oe.view.slice(he.index),oe.viewFrom=he.lineN,oe.viewTo+=te):ko(x)}else if(ne>=oe.viewTo){var ke=fs(x,z,z,-1);ke?(oe.view=oe.view.slice(0,ke.index),oe.viewTo=ke.lineN):ko(x)}else{var ze=fs(x,z,z,-1),_e=fs(x,ne,ne+te,1);ze&&_e?(oe.view=oe.view.slice(0,ze.index).concat(wt(x,ze.lineN,_e.lineN)).concat(oe.view.slice(_e.index)),oe.viewTo+=te):ko(x)}var et=oe.externalMeasured;et&&(ne<et.lineN?et.lineN+=te:z<et.lineN+et.size&&(oe.externalMeasured=null))}function po(x,z,ne){x.curOp.viewChanged=!0;var te=x.display,oe=x.display.externalMeasured;if(oe&&z>=oe.lineN&&z<oe.lineN+oe.size&&(te.externalMeasured=null),!(z<te.viewFrom||z>=te.viewTo)){var he=te.view[Ya(x,z)];if(he.node!=null){var ke=he.changes||(he.changes=[]);St(ke,ne)==-1&&ke.push(ne)}}}function ko(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function fs(x,z,ne,te){var oe=Ya(x,z),he,ke=x.display.view;if(!Pi||ne==x.doc.first+x.doc.size)return{index:oe,lineN:ne};for(var ze=x.display.viewFrom,_e=0;_e<oe;_e++)ze+=ke[_e].size;if(ze!=z){if(te>0){if(oe==ke.length-1)return null;he=ze+ke[oe].size-z,oe++}else he=ze-z;z+=he,ne+=he}for(;on(x.doc,ne)!=ne;){if(oe==(te<0?0:ke.length-1))return null;ne+=te*ke[oe-(te<0?1:0)].size,oe+=te}return{index:oe,lineN:ne}}function ss(x,z,ne){var te=x.display,oe=te.view;oe.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=wt(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=wt(x,z,te.viewFrom).concat(te.view):te.viewFrom<z&&(te.view=te.view.slice(Ya(x,z))),te.viewFrom=z,te.viewTo<ne?te.view=te.view.concat(wt(x,te.viewTo,ne)):te.viewTo>ne&&(te.view=te.view.slice(0,Ya(x,ne)))),te.viewTo=ne}function Fl(x){for(var z=x.display.view,ne=0,te=0;te<z.length;te++){var oe=z[te];!oe.hidden&&(!oe.node||oe.changes)&&++ne}return ne}function ml(x){x.display.input.showSelection(x.display.input.prepareSelection())}function Sl(x,z){z===void 0&&(z=!0);for(var ne=x.doc,te={},oe=te.cursors=document.createDocumentFragment(),he=te.selection=document.createDocumentFragment(),ke=0;ke<ne.sel.ranges.length;ke++)if(!(!z&&ke==ne.sel.primIndex)){var ze=ne.sel.ranges[ke];if(!(ze.from().line>=x.display.viewTo||ze.to().line<x.display.viewFrom)){var _e=ze.empty();(_e||x.options.showCursorWhenSelecting)&&Xa(x,ze.head,oe),_e||pa(x,ze,he)}}return te}function Xa(x,z,ne){var te=uo(x,z,"div",null,null,!x.options.singleCursorHeightPerLine),oe=ne.appendChild(pt("div","\xA0","CodeMirror-cursor"));if(oe.style.left=te.left+"px",oe.style.top=te.top+"px",oe.style.height=Math.max(0,te.bottom-te.top)*x.options.cursorHeight+"px",te.other){var he=ne.appendChild(pt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));he.style.display="",he.style.left=te.other.left+"px",he.style.top=te.other.top+"px",he.style.height=(te.other.bottom-te.other.top)*.85+"px"}}function vi(x,z){return x.top-z.top||x.left-z.left}function pa(x,z,ne){var te=x.display,oe=x.doc,he=document.createDocumentFragment(),ke=da(x.display),ze=ke.left,_e=Math.max(te.sizerWidth,fi(x)-te.sizer.offsetLeft)-ke.right,et=oe.direction=="ltr";function qt(Ti,sa,Pa,Fa){sa<0&&(sa=0),sa=Math.round(sa),Fa=Math.round(Fa),he.appendChild(pt("div",null,"CodeMirror-selected","position: absolute; left: "+Ti+`px;
|
|
|
top: `+sa+"px; width: "+(Pa==null?_e-Ti:Pa)+`px;
|
|
|
height: `+(Fa-sa)+"px"))}function gn(Ti,sa,Pa){var Fa=Pn(oe,Ti),Mo=Fa.text.length,vs,xl;function Fs(ll,Vl){return Xo(x,Tt(Ti,ll),"div",Fa,Vl)}function jl(ll,Vl,to){var Ys=No(x,Fa,null,ll),zs=Vl=="ltr"==(to=="after")?"left":"right",Xs=to=="after"?Ys.begin:Ys.end-(/\s/.test(Fa.text.charAt(Ys.end-1))?2:1);return Fs(Xs,zs)[zs]}var Ul=zt(Fa,oe.direction);return rn(Ul,sa||0,Pa==null?Mo:Pa,function(ll,Vl,to,Ys){var zs=to=="ltr",Xs=Fs(ll,zs?"left":"right"),el=Fs(Vl-1,zs?"right":"left"),xu=sa==null&&ll==0,Jl=Pa==null&&Vl==Mo,Ll=Ys==0,Jo=!Ul||Ys==Ul.length-1;if(el.top-Xs.top<=3){var hl=(et?xu:Jl)&&Ll,Pd=(et?Jl:xu)&&Jo,Hc=hl?ze:(zs?Xs:el).left,Xc=Pd?_e:(zs?el:Xs).right;qt(Hc,Xs.top,Xc-Hc,Xs.bottom)}else{var kc,cl,Su,Dl;zs?(kc=et&&xu&&Ll?ze:Xs.left,cl=et?_e:jl(ll,to,"before"),Su=et?ze:jl(Vl,to,"after"),Dl=et&&Jl&&Jo?_e:el.right):(kc=et?jl(ll,to,"before"):ze,cl=!et&&xu&&Ll?_e:Xs.right,Su=!et&&Jl&&Jo?ze:el.left,Dl=et?jl(Vl,to,"after"):_e),qt(kc,Xs.top,cl-kc,Xs.bottom),Xs.bottom<el.top&&qt(ze,Xs.bottom,null,el.top),qt(Su,el.top,Dl-Su,el.bottom)}(!vs||vi(Xs,vs)<0)&&(vs=Xs),vi(el,vs)<0&&(vs=el),(!xl||vi(Xs,xl)<0)&&(xl=Xs),vi(el,xl)<0&&(xl=el)}),{start:vs,end:xl}}var pr=z.from(),rr=z.to();if(pr.line==rr.line)gn(pr.line,pr.ch,rr.ch);else{var Vr=Pn(oe,pr.line),ai=Pn(oe,rr.line),wi=$e(Vr)==$e(ai),Hi=gn(pr.line,pr.ch,wi?Vr.text.length+1:null).end,ta=gn(rr.line,wi?0:null,rr.ch).start;wi&&(Hi.top<ta.top-2?(qt(Hi.right,Hi.top,null,Hi.bottom),qt(ze,ta.top,ta.left,ta.bottom)):qt(Hi.right,Hi.top,ta.left-Hi.right,Hi.bottom)),Hi.bottom<ta.top&&qt(ze,Hi.bottom,null,ta.top)}ne.appendChild(he)}function ma(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()||rl(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function La(x){x.state.focused||(x.display.input.focus(),Qo(x))}function Vo(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,rl(x))},100)}function Qo(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(xt(x,"focus",x,z),x.state.focused=!0,xn(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),ue&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),ma(x))}function rl(x,z){x.state.delayingBlurEvent||(x.state.focused&&(xt(x,"blur",x,z),x.state.focused=!1,Ze(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function ul(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te<z.view.length;te++){var oe=z.view[te],he=x.options.lineWrapping,ke=void 0,ze=0;if(!oe.hidden){if(be&&Me<8){var _e=oe.node.offsetTop+oe.node.offsetHeight;ke=_e-ne,ne=_e}else{var et=oe.node.getBoundingClientRect();ke=et.bottom-et.top,!he&&oe.text.firstChild&&(ze=oe.text.firstChild.getBoundingClientRect().right-et.left-1)}var qt=oe.line.height-ke;if((qt>.005||qt<-.005)&&(zr(oe.line,ke),wl(oe.line),oe.rest))for(var gn=0;gn<oe.rest.length;gn++)wl(oe.rest[gn]);if(ze>x.display.sizerWidth){var pr=Math.ceil(ze/us(x.display));pr>x.display.maxLineLength&&(x.display.maxLineLength=pr,x.display.maxLine=oe.line,x.display.maxLineChanged=!0)}}}}function wl(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 vo(x,z,ne){var te=ne&&ne.top!=null?Math.max(0,ne.top):x.scroller.scrollTop;te=Math.floor(te-Wi(x));var oe=ne&&ne.bottom!=null?ne.bottom:te+x.wrapper.clientHeight,he=Yr(z,te),ke=Yr(z,oe);if(ne&&ne.ensure){var ze=ne.ensure.from.line,_e=ne.ensure.to.line;ze<he?(he=ze,ke=Yr(z,Mn(Pn(z,ze))+x.wrapper.clientHeight)):Math.min(_e,z.lastLine())>=ke&&(he=Yr(z,Mn(Pn(z,_e))-x.wrapper.clientHeight),ke=_e)}return{from:he,to:Math.max(ke,he+1)}}function $s(x,z){if(!Yt(x,"scrollCursorIntoView")){var ne=x.display,te=ne.sizer.getBoundingClientRect(),oe=null;if(z.top+te.top<0?oe=!0:z.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(oe=!1),oe!=null&&!st){var he=pt("div","\u200B",null,`position: absolute;
|
|
|
top: `+(z.top-ne.viewOffset-Wi(x.display))+`px;
|
|
|
height: `+(z.bottom-z.top+Bi(x)+ne.barHeight)+`px;
|
|
|
left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(he),he.scrollIntoView(oe),x.display.lineSpace.removeChild(he)}}}function Ol(x,z,ne,te){te==null&&(te=0);var oe;!x.options.lineWrapping&&z==ne&&(z=z.ch?Tt(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?Tt(z.line,z.ch+1,"before"):z);for(var he=0;he<5;he++){var ke=!1,ze=uo(x,z),_e=!ne||ne==z?ze:uo(x,ne);oe={left:Math.min(ze.left,_e.left),top:Math.min(ze.top,_e.top)-te,right:Math.max(ze.left,_e.left),bottom:Math.max(ze.bottom,_e.bottom)+te};var et=Gl(x,oe),qt=x.doc.scrollTop,gn=x.doc.scrollLeft;if(et.scrollTop!=null&&(Eo(x,et.scrollTop),Math.abs(x.doc.scrollTop-qt)>1&&(ke=!0)),et.scrollLeft!=null&&(Ss(x,et.scrollLeft),Math.abs(x.doc.scrollLeft-gn)>1&&(ke=!0)),!ke)break}return oe}function Sc(x,z){var ne=Gl(x,z);ne.scrollTop!=null&&Eo(x,ne.scrollTop),ne.scrollLeft!=null&&Ss(x,ne.scrollLeft)}function Gl(x,z){var ne=x.display,te=Uo(x.display);z.top<0&&(z.top=0);var oe=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,he=Ji(x),ke={};z.bottom-z.top>he&&(z.bottom=z.top+he);var ze=x.doc.height+Li(ne),_e=z.top<te,et=z.bottom>ze-te;if(z.top<oe)ke.scrollTop=_e?0:z.top;else if(z.bottom>oe+he){var qt=Math.min(z.top,(et?ze:z.bottom)-he);qt!=oe&&(ke.scrollTop=qt)}var gn=x.options.fixedGutter?0:ne.gutters.offsetWidth,pr=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-gn,rr=fi(x)-ne.gutters.offsetWidth,Vr=z.right-z.left>rr;return Vr&&(z.right=z.left+rr),z.left<10?ke.scrollLeft=0:z.left<pr?ke.scrollLeft=Math.max(0,z.left+gn-(Vr?0:10)):z.right>rr+pr-3&&(ke.scrollLeft=z.right+(Vr?0:10)-rr),ke}function Cl(x,z){z!=null&&(ec(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function il(x){ec(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function ql(x,z,ne){(z!=null||ne!=null)&&ec(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function dl(x,z){ec(x),x.curOp.scrollToPos=z}function ec(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=Co(x,z.from),te=Co(x,z.to);is(x,ne,te,z.margin)}}function is(x,z,ne,te){var oe=Gl(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});ql(x,oe.scrollLeft,oe.scrollTop)}function Eo(x,z){Math.abs(x.doc.scrollTop-z)<2||(ie||Xu(x,{top:z}),qo(x,z,!0),ie&&Xu(x),qs(x,100))}function qo(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 Ss(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,Ju(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function Ts(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+Li(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+Bi(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var al=function(x,z,ne){this.cm=ne;var te=this.vert=pt("div",[pt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),oe=this.horiz=pt("div",[pt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=oe.tabIndex=-1,x(te),x(oe),ln(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),ln(oe,"scroll",function(){oe.clientWidth&&z(oe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,be&&Me<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};al.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 oe=x.viewHeight-(z?te:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+oe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=ne?te+"px":"0",this.horiz.style.left=x.barLeft+"px";var he=x.viewWidth-x.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+he)+"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}},al.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},al.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},al.prototype.zeroWidthHack=function(){var x=ye&&!Ke?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ae,this.disableVert=new Ae},al.prototype.enableZeroWidthBar=function(x,z,ne){x.style.pointerEvents="auto";function te(){var oe=x.getBoundingClientRect(),he=ne=="vert"?document.elementFromPoint(oe.right-1,(oe.top+oe.bottom)/2):document.elementFromPoint((oe.right+oe.left)/2,oe.bottom-1);he!=x?x.style.pointerEvents="none":z.set(1e3,te)}z.set(1e3,te)},al.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var Os=function(){};Os.prototype.update=function(){return{bottom:0,right:0}},Os.prototype.setScrollLeft=function(){},Os.prototype.setScrollTop=function(){},Os.prototype.clear=function(){};function Hl(x,z){z||(z=Ts(x));var ne=x.display.barWidth,te=x.display.barHeight;Zc(x,z);for(var oe=0;oe<4&&ne!=x.display.barWidth||te!=x.display.barHeight;oe++)ne!=x.display.barWidth&&x.options.lineWrapping&&ul(x),Zc(x,Ts(x)),ne=x.display.barWidth,te=x.display.barHeight}function Zc(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 fc={native:al,null:Os};function Tc(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&Ze(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new fc[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),ln(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"?Ss(x,z):Eo(x,z)},x),x.display.scrollbars.addClass&&xn(x.display.wrapper,x.display.scrollbars.addClass)}var Oc=0;function tc(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:++Oc},Ft(x.curOp)}function nc(x){var z=x.curOp;z&&Yn(z,function(ne){for(var te=0;te<ne.ops.length;te++)ne.ops[te].cm.curOp=null;Nc(ne)})}function Nc(x){for(var z=x.ops,ne=0;ne<z.length;ne++)Pc(z[ne]);for(var te=0;te<z.length;te++)Lo(z[te]);for(var oe=0;oe<z.length;oe++)fo(z[oe]);for(var he=0;he<z.length;he++)_s(z[he]);for(var ke=0;ke<z.length;ke++)gl(z[ke])}function Pc(x){var z=x.cm,ne=z.display;jc(z),x.updateMaxLine&&dn(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 zl(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function Lo(x){x.updatedDisplay=x.mustUpdate&&Gu(x.cm,x.update)}function fo(x){var z=x.cm,ne=z.display;x.updatedDisplay&&ul(z),x.barMeasure=Ts(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=Za(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+Bi(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-fi(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function _s(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<z.doc.scrollLeft&&Ss(z,Math.min(z.display.scroller.scrollLeft,x.maxScrollLeft),!0),z.display.maxLineChanged=!1);var ne=x.focus&&x.focus==bt();x.preparedSelection&&z.display.input.showSelection(x.preparedSelection,ne),(x.updatedDisplay||x.startHeight!=z.doc.height)&&Hl(z,x.barMeasure),x.updatedDisplay&&Qu(z,x.barMeasure),x.selectionChanged&&ma(z),z.state.focused&&x.updateInput&&z.display.input.reset(x.typing),ne&&La(x.cm)}function gl(x){var z=x.cm,ne=z.display,te=z.doc;if(x.updatedDisplay&&Yu(z,x.update),ne.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),x.scrollTop!=null&&qo(z,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&Ss(z,x.scrollLeft,!0,!0),x.scrollToPos){var oe=Ol(z,Ir(te,x.scrollToPos.from),Ir(te,x.scrollToPos.to),x.scrollToPos.margin);$s(z,oe)}var he=x.maybeHiddenMarkers,ke=x.maybeUnhiddenMarkers;if(he)for(var ze=0;ze<he.length;++ze)he[ze].lines.length||xt(he[ze],"hide");if(ke)for(var _e=0;_e<ke.length;++_e)ke[_e].lines.length&&xt(ke[_e],"unhide");ne.wrapper.offsetHeight&&(te.scrollTop=z.display.scroller.scrollTop),x.changeObjs&&xt(z,"changes",z,x.changeObjs),x.update&&x.update.finish()}function ho(x,z){if(x.curOp)return z();tc(x);try{return z()}finally{nc(x)}}function Wo(x,z){return function(){if(x.curOp)return z.apply(x,arguments);tc(x);try{return z.apply(x,arguments)}finally{nc(x)}}}function Ho(x){return function(){if(this.curOp)return x.apply(this,arguments);tc(this);try{return x.apply(this,arguments)}finally{nc(this)}}}function ws(x){return function(){var z=this.cm;if(!z||z.curOp)return x.apply(this,arguments);tc(z);try{return x.apply(this,arguments)}finally{nc(z)}}}function qs(x,z){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(z,Bn(_l,x))}function _l(x){var z=x.doc;if(!(z.highlightFrontier>=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=na(x,z.highlightFrontier),oe=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(he){if(te.line>=x.display.viewFrom){var ke=he.styles,ze=he.text.length>x.options.maxHighlightLength?Kt(z.mode,te.state):null,_e=Sa(x,he,te,!0);ze&&(te.state=ze),he.styles=_e.styles;var et=he.styleClasses,qt=_e.classes;qt?he.styleClasses=qt:et&&(he.styleClasses=null);for(var gn=!ke||ke.length!=he.styles.length||et!=qt&&(!et||!qt||et.bgClass!=qt.bgClass||et.textClass!=qt.textClass),pr=0;!gn&&pr<ke.length;++pr)gn=ke[pr]!=he.styles[pr];gn&&oe.push(te.line),he.stateAfter=te.save(),te.nextLine()}else he.text.length<=x.options.maxHighlightLength&&Ni(x,he.text,te),he.stateAfter=te.line%5==0?te.save():null,te.nextLine();if(+new Date>ne)return qs(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),oe.length&&ho(x,function(){for(var he=0;he<oe.length;he++)po(x,oe[he],"text")})}}var zl=function(x,z,ne){var te=x.display;this.viewport=z,this.visible=vo(te,x.doc,z),this.editorIsHidden=!te.wrapper.offsetWidth,this.wrapperHeight=te.wrapper.clientHeight,this.wrapperWidth=te.wrapper.clientWidth,this.oldDisplayWidth=fi(x),this.force=ne,this.dims=xs(x),this.events=[]};zl.prototype.signal=function(x,z){Hn(x,z)&&this.events.push(arguments)},zl.prototype.finish=function(){for(var x=0;x<this.events.length;x++)xt.apply(null,this.events[x])};function jc(x){var z=x.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=Bi(x)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=Bi(x)+"px",z.scrollbarsClipped=!0)}function tf(x){if(x.hasFocus())return null;var z=bt();if(!z||!jt(x.display.lineDiv,z))return null;var ne={activeElt:z};if(window.getSelection){var te=window.getSelection();te.anchorNode&&te.extend&&jt(x.display.lineDiv,te.anchorNode)&&(ne.anchorNode=te.anchorNode,ne.anchorOffset=te.anchorOffset,ne.focusNode=te.focusNode,ne.focusOffset=te.focusOffset)}return ne}function Md(x){if(!(!x||!x.activeElt||x.activeElt==bt())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&jt(document.body,x.anchorNode)&&jt(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 Gu(x,z){var ne=x.display,te=x.doc;if(z.editorIsHidden)return ko(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&&Fl(x)==0)return!1;ku(x)&&(ko(x),z.dims=xs(x));var oe=te.first+te.size,he=Math.max(z.visible.from-x.options.viewportMargin,te.first),ke=Math.min(oe,z.visible.to+x.options.viewportMargin);ne.viewFrom<he&&he-ne.viewFrom<20&&(he=Math.max(te.first,ne.viewFrom)),ne.viewTo>ke&&ne.viewTo-ke<20&&(ke=Math.min(oe,ne.viewTo)),Pi&&(he=on(x.doc,he),ke=Zn(x.doc,ke));var ze=he!=ne.viewFrom||ke!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;ss(x,he,ke),ne.viewOffset=Mn(Pn(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var _e=Fl(x);if(!ze&&_e==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var et=tf(x);return _e>4&&(ne.lineDiv.style.display="none"),Ad(x,ne.updateLineNumbers,z.dims),_e>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,Md(et),Ge(ne.cursorDiv),Ge(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,ze&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,qs(x,400)),ne.updateLineNumbers=null,!0}function Yu(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==fi(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+Li(x.display)-Ji(x),ne.top)}),z.visible=vo(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=vo(x.display,x.doc,ne));if(!Gu(x,z))break;ul(x);var oe=Ts(x);ml(x),Hl(x,oe),Qu(x,oe),z.force=!1}z.signal(x,"update",x),(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)&&(z.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo)}function Xu(x,z){var ne=new zl(x,z);if(Gu(x,ne)){ul(x),Yu(x,ne);var te=Ts(x);ml(x),Hl(x,te),Qu(x,te),ne.finish()}}function Ad(x,z,ne){var te=x.display,oe=x.options.lineNumbers,he=te.lineDiv,ke=he.firstChild;function ze(Vr){var ai=Vr.nextSibling;return ue&&ye&&x.display.currentWheelTarget==Vr?Vr.style.display="none":Vr.parentNode.removeChild(Vr),ai}for(var _e=te.view,et=te.viewFrom,qt=0;qt<_e.length;qt++){var gn=_e[qt];if(!gn.hidden)if(!gn.node||gn.node.parentNode!=he){var pr=li(x,gn,et,ne);he.insertBefore(pr,ke)}else{for(;ke!=gn.node;)ke=ze(ke);var rr=oe&&z!=null&&z<=et&&gn.lineNumber;gn.changes&&(St(gn.changes,"gutter")>-1&&(rr=!1),Wr(x,gn,et,ne)),rr&&(Ge(gn.lineNumber),gn.lineNumber.appendChild(document.createTextNode(Ht(x.options,et)))),ke=gn.node.nextSibling}et+=gn.size}for(;ke;)ke=ze(ke)}function Au(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Qu(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+Bi(x)+"px"}function Ju(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=Js(z)-z.scroller.scrollLeft+x.doc.scrollLeft,oe=z.gutters.offsetWidth,he=te+"px",ke=0;ke<ne.length;ke++)if(!ne[ke].hidden){x.options.fixedGutter&&(ne[ke].gutter&&(ne[ke].gutter.style.left=he),ne[ke].gutterBackground&&(ne[ke].gutterBackground.style.left=he));var ze=ne[ke].alignable;if(ze)for(var _e=0;_e<ze.length;_e++)ze[_e].style.left=he}x.options.fixedGutter&&(z.gutters.style.left=te+oe+"px")}}function ku(x){if(!x.options.lineNumbers)return!1;var z=x.doc,ne=Ht(x.options,z.first+z.size-1),te=x.display;if(ne.length!=te.lineNumChars){var oe=te.measure.appendChild(pt("div",[pt("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),he=oe.firstChild.offsetWidth,ke=oe.offsetWidth-he;return te.lineGutter.style.width="",te.lineNumInnerWidth=Math.max(he,te.lineGutter.offsetWidth-ke)+1,te.lineNumWidth=te.lineNumInnerWidth+ke,te.lineNumChars=te.lineNumInnerWidth?ne.length:-1,te.lineGutter.style.width=te.lineNumWidth+"px",Au(x.display),!0}return!1}function Lu(x,z){for(var ne=[],te=!1,oe=0;oe<x.length;oe++){var he=x[oe],ke=null;if(typeof he!="string"&&(ke=he.style,he=he.className),he=="CodeMirror-linenumbers")if(z)te=!0;else continue;ne.push({className:he,style:ke})}return z&&!te&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function kd(x){var z=x.gutters,ne=x.gutterSpecs;Ge(z),x.lineGutter=null;for(var te=0;te<ne.length;++te){var oe=ne[te],he=oe.className,ke=oe.style,ze=z.appendChild(pt("div",null,"CodeMirror-gutter "+he));ke&&(ze.style.cssText=ke),he=="CodeMirror-linenumbers"&&(x.lineGutter=ze,ze.style.width=(x.lineNumWidth||1)+"px")}z.style.display=ne.length?"":"none",Au(x)}function Uc(x){kd(x.display),Da(x),Ju(x)}function nf(x,z,ne,te){var oe=this;this.input=ne,oe.scrollbarFiller=pt("div",null,"CodeMirror-scrollbar-filler"),oe.scrollbarFiller.setAttribute("cm-not-content","true"),oe.gutterFiller=pt("div",null,"CodeMirror-gutter-filler"),oe.gutterFiller.setAttribute("cm-not-content","true"),oe.lineDiv=ft("div",null,"CodeMirror-code"),oe.selectionDiv=pt("div",null,null,"position: relative; z-index: 1"),oe.cursorDiv=pt("div",null,"CodeMirror-cursors"),oe.measure=pt("div",null,"CodeMirror-measure"),oe.lineMeasure=pt("div",null,"CodeMirror-measure"),oe.lineSpace=ft("div",[oe.measure,oe.lineMeasure,oe.selectionDiv,oe.cursorDiv,oe.lineDiv],null,"position: relative; outline: none");var he=ft("div",[oe.lineSpace],"CodeMirror-lines");oe.mover=pt("div",[he],null,"position: relative"),oe.sizer=pt("div",[oe.mover],"CodeMirror-sizer"),oe.sizerWidth=null,oe.heightForcer=pt("div",null,null,"position: absolute; height: "+cn+"px; width: 1px;"),oe.gutters=pt("div",null,"CodeMirror-gutters"),oe.lineGutter=null,oe.scroller=pt("div",[oe.sizer,oe.heightForcer,oe.gutters],"CodeMirror-scroll"),oe.scroller.setAttribute("tabIndex","-1"),oe.wrapper=pt("div",[oe.scrollbarFiller,oe.gutterFiller,oe.scroller],"CodeMirror"),be&&Me<8&&(oe.gutters.style.zIndex=-1,oe.scroller.style.paddingRight=0),!ue&&!(ie&&We)&&(oe.scroller.draggable=!0),x&&(x.appendChild?x.appendChild(oe.wrapper):x(oe.wrapper)),oe.viewFrom=oe.viewTo=z.first,oe.reportedViewFrom=oe.reportedViewTo=z.first,oe.view=[],oe.renderedView=null,oe.externalMeasured=null,oe.viewOffset=0,oe.lastWrapHeight=oe.lastWrapWidth=0,oe.updateLineNumbers=null,oe.nativeBarWidth=oe.barHeight=oe.barWidth=0,oe.scrollbarsClipped=!1,oe.lineNumWidth=oe.lineNumInnerWidth=oe.lineNumChars=null,oe.alignWidgets=!1,oe.cachedCharWidth=oe.cachedTextHeight=oe.cachedPaddingH=null,oe.maxLine=null,oe.maxLineLength=0,oe.maxLineChanged=!1,oe.wheelDX=oe.wheelDY=oe.wheelStartX=oe.wheelStartY=null,oe.shift=!1,oe.selForContextMenu=null,oe.activeTouch=null,oe.gutterSpecs=Lu(te.gutters,te.lineNumbers),kd(oe),ne.init(oe)}var lu=0,vl=null;be?vl=-.53:ie?vl=15:me?vl=-.7:ct&&(vl=-1/3);function Rc(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 Ld(x){var z=Rc(x);return z.x*=vl,z.y*=vl,z}function $u(x,z){var ne=Rc(z),te=ne.x,oe=ne.y,he=x.display,ke=he.scroller,ze=ke.scrollWidth>ke.clientWidth,_e=ke.scrollHeight>ke.clientHeight;if(te&&ze||oe&&_e){if(oe&&ye&&ue){e:for(var et=z.target,qt=he.view;et!=ke;et=et.parentNode)for(var gn=0;gn<qt.length;gn++)if(qt[gn].node==et){x.display.currentWheelTarget=et;break e}}if(te&&!ie&&!Ie&&vl!=null){oe&&_e&&Eo(x,Math.max(0,ke.scrollTop+oe*vl)),Ss(x,Math.max(0,ke.scrollLeft+te*vl)),(!oe||oe&&_e)&&yr(z),he.wheelStartX=null;return}if(oe&&vl!=null){var pr=oe*vl,rr=x.doc.scrollTop,Vr=rr+he.wrapper.clientHeight;pr<0?rr=Math.max(0,rr+pr-50):Vr=Math.min(x.doc.height,Vr+pr+50),Xu(x,{top:rr,bottom:Vr})}lu<20&&(he.wheelStartX==null?(he.wheelStartX=ke.scrollLeft,he.wheelStartY=ke.scrollTop,he.wheelDX=te,he.wheelDY=oe,setTimeout(function(){if(he.wheelStartX!=null){var ai=ke.scrollLeft-he.wheelStartX,wi=ke.scrollTop-he.wheelStartY,Hi=wi&&he.wheelDY&&wi/he.wheelDY||ai&&he.wheelDX&&ai/he.wheelDX;he.wheelStartX=he.wheelStartY=null,Hi&&(vl=(vl*lu+Hi)/(lu+1),++lu)}},200)):(he.wheelDX+=te,he.wheelDY+=oe))}}var Wl=function(x,z){this.ranges=x,this.primIndex=z};Wl.prototype.primary=function(){return this.ranges[this.primIndex]},Wl.prototype.equals=function(x){if(x==this)return!0;if(x.primIndex!=this.primIndex||x.ranges.length!=this.ranges.length)return!1;for(var z=0;z<this.ranges.length;z++){var ne=this.ranges[z],te=x.ranges[z];if(!er(ne.anchor,te.anchor)||!er(ne.head,te.head))return!1}return!0},Wl.prototype.deepCopy=function(){for(var x=[],z=0;z<this.ranges.length;z++)x[z]=new Yo(kr(this.ranges[z].anchor),kr(this.ranges[z].head));return new Wl(x,this.primIndex)},Wl.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},Wl.prototype.contains=function(x,z){z||(z=x);for(var ne=0;ne<this.ranges.length;ne++){var te=this.ranges[ne];if(Jt(z,te.from())>=0&&Jt(x,te.to())<=0)return ne}return-1};var Yo=function(x,z){this.anchor=x,this.head=z};Yo.prototype.from=function(){return Jn(this.anchor,this.head)},Yo.prototype.to=function(){return Rn(this.anchor,this.head)},Yo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function rc(x,z,ne){var te=x&&x.options.selectionsMayTouch,oe=z[ne];z.sort(function(pr,rr){return Jt(pr.from(),rr.from())}),ne=St(z,oe);for(var he=1;he<z.length;he++){var ke=z[he],ze=z[he-1],_e=Jt(ze.to(),ke.from());if(te&&!ke.empty()?_e>0:_e>=0){var et=Jn(ze.from(),ke.from()),qt=Rn(ze.to(),ke.to()),gn=ze.empty()?ke.from()==ke.head:ze.from()==ze.head;he<=ne&&--ne,z.splice(--he,2,new Yo(gn?qt:et,gn?et:qt))}}return new Wl(z,ne)}function ic(x,z){return new Wl([new Yo(x,z||x)],0)}function wc(x){return x.text?Tt(x.from.line+x.text.length-1,yn(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function qu(x,z){if(Jt(x,z.from)<0)return x;if(Jt(x,z.to)<=0)return wc(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+=wc(z).ch-z.to.ch),Tt(ne,te)}function ed(x,z){for(var ne=[],te=0;te<x.sel.ranges.length;te++){var oe=x.sel.ranges[te];ne.push(new Yo(qu(oe.anchor,z),qu(oe.head,z)))}return rc(x.cm,ne,x.sel.primIndex)}function Fc(x,z,ne){return x.line==z.line?Tt(ne.line,x.ch-z.ch+ne.ch):Tt(ne.line+(x.line-z.line),x.ch)}function td(x,z,ne){for(var te=[],oe=Tt(x.first,0),he=oe,ke=0;ke<z.length;ke++){var ze=z[ke],_e=Fc(ze.from,oe,he),et=Fc(wc(ze),oe,he);if(oe=ze.to,he=et,ne=="around"){var qt=x.sel.ranges[ke],gn=Jt(qt.head,qt.anchor)<0;te[ke]=new Yo(gn?et:_e,gn?_e:et)}else te[ke]=new Yo(_e,_e)}return new Wl(te,x.sel.primIndex)}function cu(x){x.doc.mode=Xt(x.options,x.doc.modeOption),Vc(x)}function Vc(x){x.doc.iter(function(z){z.stateAfter&&(z.stateAfter=null),z.styles&&(z.styles=null)}),x.doc.modeFrontier=x.doc.highlightFrontier=x.doc.first,qs(x,100),x.state.modeGen++,x.curOp&&Da(x)}function nd(x,z){return z.from.ch==0&&z.to.ch==0&&yn(z.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function Du(x,z,ne,te){function oe(ta){return ne?ne[ta]:null}function he(ta,Ti,sa){xr(ta,Ti,sa,te),_n(ta,"change",ta,z)}function ke(ta,Ti){for(var sa=[],Pa=ta;Pa<Ti;++Pa)sa.push(new Gn(et[Pa],oe(Pa),te));return sa}var ze=z.from,_e=z.to,et=z.text,qt=Pn(x,ze.line),gn=Pn(x,_e.line),pr=yn(et),rr=oe(et.length-1),Vr=_e.line-ze.line;if(z.full)x.insert(0,ke(0,et.length)),x.remove(et.length,x.size-et.length);else if(nd(x,z)){var ai=ke(0,et.length-1);he(gn,gn.text,rr),Vr&&x.remove(ze.line,Vr),ai.length&&x.insert(ze.line,ai)}else if(qt==gn)if(et.length==1)he(qt,qt.text.slice(0,ze.ch)+pr+qt.text.slice(_e.ch),rr);else{var wi=ke(1,et.length-1);wi.push(new Gn(pr+qt.text.slice(_e.ch),rr,te)),he(qt,qt.text.slice(0,ze.ch)+et[0],oe(0)),x.insert(ze.line+1,wi)}else if(et.length==1)he(qt,qt.text.slice(0,ze.ch)+et[0]+gn.text.slice(_e.ch),oe(0)),x.remove(ze.line+1,Vr);else{he(qt,qt.text.slice(0,ze.ch)+et[0],oe(0)),he(gn,pr+gn.text.slice(_e.ch),rr);var Hi=ke(1,et.length-1);Vr>1&&x.remove(ze.line+1,Vr-1),x.insert(ze.line+1,Hi)}_n(x,"change",x,z)}function hc(x,z,ne){function te(oe,he,ke){if(oe.linked)for(var ze=0;ze<oe.linked.length;++ze){var _e=oe.linked[ze];if(_e.doc!=he){var et=ke&&_e.sharedHist;ne&&!et||(z(_e.doc,et),te(_e.doc,oe,et))}}}te(x,null,!0)}function uu(x,z){if(z.cm)throw new Error("This document is already in use.");x.doc=z,z.cm=x,ds(x),cu(x),du(x),x.options.lineWrapping||dn(x),x.options.mode=z.modeOption,Da(x)}function du(x){(x.doc.direction=="rtl"?xn:Ze)(x.display.lineDiv,"CodeMirror-rtl")}function Bu(x){ho(x,function(){du(x),Da(x)})}function fu(x){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=x||1}function Yl(x,z){var ne={from:kr(z.from),to:wc(z),text:vr(x,z.from,z.to)};return Dt(x,ne,z.from.line,z.to.line+1),hc(x,function(te){return Dt(te,ne,z.from.line,z.to.line+1)},!0),ne}function rd(x){for(;x.length;){var z=yn(x);if(z.ranges)x.pop();else break}}function Iu(x,z){if(z)return rd(x.done),yn(x.done);if(x.done.length&&!yn(x.done).ranges)return yn(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),yn(x.done)}function Ee(x,z,ne,te){var oe=x.history;oe.undone.length=0;var he=+new Date,ke,ze;if((oe.lastOp==te||oe.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&oe.lastModTime>he-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(ke=Iu(oe,oe.lastOp==te)))ze=yn(ke.changes),Jt(z.from,z.to)==0&&Jt(z.from,ze.to)==0?ze.to=wc(z):ke.changes.push(Yl(x,z));else{var _e=yn(oe.done);for((!_e||!_e.ranges)&&ut(x.sel,oe.done),ke={changes:[Yl(x,z)],generation:oe.generation},oe.done.push(ke);oe.done.length>oe.undoDepth;)oe.done.shift(),oe.done[0].ranges||oe.done.shift()}oe.done.push(ne),oe.generation=++oe.maxGeneration,oe.lastModTime=oe.lastSelTime=he,oe.lastOp=oe.lastSelOp=te,oe.lastOrigin=oe.lastSelOrigin=z.origin,ze||xt(x,"historyAdded")}function Be(x,z,ne,te){var oe=z.charAt(0);return oe=="*"||oe=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function Je(x,z,ne,te){var oe=x.history,he=te&&te.origin;ne==oe.lastSelOp||he&&oe.lastSelOrigin==he&&(oe.lastModTime==oe.lastSelTime&&oe.lastOrigin==he||Be(x,he,yn(oe.done),z))?oe.done[oe.done.length-1]=z:ut(z,oe.done),oe.lastSelTime=+new Date,oe.lastSelOrigin=he,oe.lastSelOp=ne,te&&te.clearRedo!==!1&&rd(oe.undone)}function ut(x,z){var ne=yn(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function Dt(x,z,ne,te){var oe=z["spans_"+x.id],he=0;x.iter(Math.max(x.first,ne),Math.min(x.first+x.size,te),function(ke){ke.markedSpans&&((oe||(oe=z["spans_"+x.id]={}))[he]=ke.markedSpans),++he})}function Nt(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 Sn(x,z){var ne=z["spans_"+x.id];if(!ne)return null;for(var te=[],oe=0;oe<z.text.length;++oe)te.push(Nt(ne[oe]));return te}function Nn(x,z){var ne=Sn(x,z),te=ki(x,z);if(!ne)return te;if(!te)return ne;for(var oe=0;oe<ne.length;++oe){var he=ne[oe],ke=te[oe];if(he&&ke)e:for(var ze=0;ze<ke.length;++ze){for(var _e=ke[ze],et=0;et<he.length;++et)if(he[et].marker==_e.marker)continue e;he.push(_e)}else ke&&(ne[oe]=ke)}return ne}function An(x,z,ne){for(var te=[],oe=0;oe<x.length;++oe){var he=x[oe];if(he.ranges){te.push(ne?Wl.prototype.deepCopy.call(he):he);continue}var ke=he.changes,ze=[];te.push({changes:ze});for(var _e=0;_e<ke.length;++_e){var et=ke[_e],qt=void 0;if(ze.push({from:et.from,to:et.to,text:et.text}),z)for(var gn in et)(qt=gn.match(/^spans_(\d+)$/))&&St(z,Number(qt[1]))>-1&&(yn(ze)[gn]=et[gn],delete et[gn])}}return te}function nr(x,z,ne,te){if(te){var oe=x.anchor;if(ne){var he=Jt(z,oe)<0;he!=Jt(ne,oe)<0?(oe=z,z=ne):he!=Jt(z,ne)<0&&(z=ne)}return new Yo(oe,z)}else return new Yo(ne||z,z)}function br(x,z,ne,te,oe){oe==null&&(oe=x.cm&&(x.cm.display.shift||x.extend)),Jr(x,new Wl([nr(x.sel.primary(),z,ne,oe)],0),te)}function pn(x,z,ne){for(var te=[],oe=x.cm&&(x.cm.display.shift||x.extend),he=0;he<x.sel.ranges.length;he++)te[he]=nr(x.sel.ranges[he],z[he],null,oe);var ke=rc(x.cm,te,x.sel.primIndex);Jr(x,ke,ne)}function Hr(x,z,ne,te){var oe=x.sel.ranges.slice(0);oe[z]=ne,Jr(x,rc(x.cm,oe,x.sel.primIndex),te)}function Ur(x,z,ne,te){Jr(x,ic(z,ne),te)}function Gr(x,z,ne){var te={ranges:z.ranges,update:function(oe){this.ranges=[];for(var he=0;he<oe.length;he++)this.ranges[he]=new Yo(Ir(x,oe[he].anchor),Ir(x,oe[he].head))},origin:ne&&ne.origin};return xt(x,"beforeSelectionChange",x,te),x.cm&&xt(x.cm,"beforeSelectionChange",x.cm,te),te.ranges!=z.ranges?rc(x.cm,te.ranges,te.ranges.length-1):z}function ii(x,z,ne){var te=x.history.done,oe=yn(te);oe&&oe.ranges?(te[te.length-1]=z,mi(x,z,ne)):Jr(x,z,ne)}function Jr(x,z,ne){mi(x,z,ne),Je(x,x.sel,x.cm?x.cm.curOp.id:NaN,ne)}function mi(x,z,ne){(Hn(x,"beforeSelectionChange")||x.cm&&Hn(x.cm,"beforeSelectionChange"))&&(z=Gr(x,z,ne));var te=ne&&ne.bias||(Jt(z.primary().head,x.sel.primary().head)<0?-1:1);ui(x,ea(x,z,te,!0)),!(ne&&ne.scroll===!1)&&x.cm&&il(x.cm)}function ui(x,z){z.equals(x.sel)||(x.sel=z,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,Un(x.cm)),_n(x,"cursorActivity",x))}function Ci(x){ui(x,ea(x,x.sel,null,!1))}function ea(x,z,ne,te){for(var oe,he=0;he<z.ranges.length;he++){var ke=z.ranges[he],ze=z.ranges.length==x.sel.ranges.length&&x.sel.ranges[he],_e=$i(x,ke.anchor,ze&&ze.anchor,ne,te),et=$i(x,ke.head,ze&&ze.head,ne,te);(oe||_e!=ke.anchor||et!=ke.head)&&(oe||(oe=z.ranges.slice(0,he)),oe[he]=new Yo(_e,et))}return oe?rc(x.cm,oe,z.primIndex):z}function ji(x,z,ne,te,oe){var he=Pn(x,z.line);if(he.markedSpans)for(var ke=0;ke<he.markedSpans.length;++ke){var ze=he.markedSpans[ke],_e=ze.marker,et="selectLeft"in _e?!_e.selectLeft:_e.inclusiveLeft,qt="selectRight"in _e?!_e.selectRight:_e.inclusiveRight;if((ze.from==null||(et?ze.from<=z.ch:ze.from<z.ch))&&(ze.to==null||(qt?ze.to>=z.ch:ze.to>z.ch))){if(oe&&(xt(_e,"beforeCursorEnter"),_e.explicitlyCleared))if(he.markedSpans){--ke;continue}else break;if(!_e.atomic)continue;if(ne){var gn=_e.find(te<0?1:-1),pr=void 0;if((te<0?qt:et)&&(gn=Ea(x,gn,-te,gn&&gn.line==z.line?he:null)),gn&&gn.line==z.line&&(pr=Jt(gn,ne))&&(te<0?pr<0:pr>0))return ji(x,gn,z,te,oe)}var rr=_e.find(te<0?-1:1);return(te<0?et:qt)&&(rr=Ea(x,rr,te,rr.line==z.line?he:null)),rr?ji(x,rr,z,te,oe):null}}return z}function $i(x,z,ne,te,oe){var he=te||1,ke=ji(x,z,ne,he,oe)||!oe&&ji(x,z,ne,he,!0)||ji(x,z,ne,-he,oe)||!oe&&ji(x,z,ne,-he,!0);return ke||(x.cantEdit=!0,Tt(x.first,0))}function Ea(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?Ir(x,Tt(z.line-1)):null:ne>0&&z.ch==(te||Pn(x,z.line)).text.length?z.line<x.first+x.size-1?Tt(z.line+1,0):null:new Tt(z.line,z.ch+ne)}function Ua(x){x.setSelection(Tt(x.firstLine(),0),Tt(x.lastLine()),ht)}function Fi(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(oe,he,ke,ze){oe&&(te.from=Ir(x,oe)),he&&(te.to=Ir(x,he)),ke&&(te.text=ke),ze!==void 0&&(te.origin=ze)}),xt(x,"beforeChange",x,te),x.cm&&xt(x.cm,"beforeChange",x.cm,te),te.canceled?(x.cm&&(x.cm.curOp.updateInput=2),null):{from:te.from,to:te.to,text:te.text,origin:te.origin}}function Ui(x,z,ne){if(x.cm){if(!x.cm.curOp)return Wo(x.cm,Ui)(x,z,ne);if(x.cm.state.suppressEdits)return}if(!((Hn(x,"beforeChange")||x.cm&&Hn(x.cm,"beforeChange"))&&(z=Fi(x,z,!0),!z))){var te=za&&!ne&&Ri(x,z.from,z.to);if(te)for(var oe=te.length-1;oe>=0;--oe)Ki(x,{from:te[oe].from,to:te[oe].to,text:oe?[""]:z.text,origin:z.origin});else Ki(x,z)}}function Ki(x,z){if(!(z.text.length==1&&z.text[0]==""&&Jt(z.from,z.to)==0)){var ne=ed(x,z);Ee(x,z,ne,x.cm?x.cm.curOp.id:NaN),Ma(x,z,ne,ki(x,z));var te=[];hc(x,function(oe,he){!he&&St(te,oe.history)==-1&&(eo(oe.history,z),te.push(oe.history)),Ma(oe,z,null,ki(oe,z))})}}function gi(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var oe=x.history,he,ke=x.sel,ze=z=="undo"?oe.done:oe.undone,_e=z=="undo"?oe.undone:oe.done,et=0;et<ze.length&&(he=ze[et],!(ne?he.ranges&&!he.equals(x.sel):!he.ranges));et++);if(et!=ze.length){for(oe.lastOrigin=oe.lastSelOrigin=null;;)if(he=ze.pop(),he.ranges){if(ut(he,_e),ne&&!he.equals(x.sel)){Jr(x,he,{clearRedo:!1});return}ke=he}else if(te){ze.push(he);return}else break;var qt=[];ut(ke,_e),_e.push({changes:qt,generation:oe.generation}),oe.generation=he.generation||++oe.maxGeneration;for(var gn=Hn(x,"beforeChange")||x.cm&&Hn(x.cm,"beforeChange"),pr=function(ai){var wi=he.changes[ai];if(wi.origin=z,gn&&!Fi(x,wi,!1))return ze.length=0,{};qt.push(Yl(x,wi));var Hi=ai?ed(x,wi):yn(ze);Ma(x,wi,Hi,Nn(x,wi)),!ai&&x.cm&&x.cm.scrollIntoView({from:wi.from,to:wc(wi)});var ta=[];hc(x,function(Ti,sa){!sa&&St(ta,Ti.history)==-1&&(eo(Ti.history,wi),ta.push(Ti.history)),Ma(Ti,wi,null,Nn(Ti,wi))})},rr=he.changes.length-1;rr>=0;--rr){var Vr=pr(rr);if(Vr)return Vr.v}}}}function Xi(x,z){if(z!=0&&(x.first+=z,x.sel=new Wl(Qn(x.sel.ranges,function(oe){return new Yo(Tt(oe.anchor.line+z,oe.anchor.ch),Tt(oe.head.line+z,oe.head.ch))}),x.sel.primIndex),x.cm)){Da(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;te<ne.viewTo;te++)po(x.cm,te,"gutter")}}function Ma(x,z,ne,te){if(x.cm&&!x.cm.curOp)return Wo(x.cm,Ma)(x,z,ne,te);if(z.to.line<x.first){Xi(x,z.text.length-1-(z.to.line-z.from.line));return}if(!(z.from.line>x.lastLine())){if(z.from.line<x.first){var oe=z.text.length-1-(x.first-z.from.line);Xi(x,oe),z={from:Tt(x.first,0),to:Tt(z.to.line+oe,z.to.ch),text:[yn(z.text)],origin:z.origin}}var he=x.lastLine();z.to.line>he&&(z={from:z.from,to:Tt(he,Pn(x,he).text.length),text:[z.text[0]],origin:z.origin}),z.removed=vr(x,z.from,z.to),ne||(ne=ed(x,z)),x.cm?qa(x.cm,z,te):Du(x,z,te),mi(x,ne,ht),x.cantEdit&&$i(x,Tt(x.firstLine(),0))&&(x.cantEdit=!1)}}function qa(x,z,ne){var te=x.doc,oe=x.display,he=z.from,ke=z.to,ze=!1,_e=he.line;x.options.lineWrapping||(_e=Pr($e(Pn(te,he.line))),te.iter(_e,ke.line+1,function(rr){if(rr==oe.maxLine)return ze=!0,!0})),te.sel.contains(z.from,z.to)>-1&&Un(x),Du(te,z,ne,Ks(x)),x.options.lineWrapping||(te.iter(_e,he.line+z.text.length,function(rr){var Vr=En(rr);Vr>oe.maxLineLength&&(oe.maxLine=rr,oe.maxLineLength=Vr,oe.maxLineChanged=!0,ze=!1)}),ze&&(x.curOp.updateMaxLine=!0)),Qa(te,he.line),qs(x,400);var et=z.text.length-(ke.line-he.line)-1;z.full?Da(x):he.line==ke.line&&z.text.length==1&&!nd(x.doc,z)?po(x,he.line,"text"):Da(x,he.line,ke.line+1,et);var qt=Hn(x,"changes"),gn=Hn(x,"change");if(gn||qt){var pr={from:he,to:ke,text:z.text,removed:z.removed,origin:z.origin};gn&&_n(x,"change",x,pr),qt&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(pr)}x.display.selForContextMenu=null}function Ka(x,z,ne,te,oe){var he;te||(te=ne),Jt(te,ne)<0&&(he=[te,ne],ne=he[0],te=he[1]),typeof z=="string"&&(z=x.splitLines(z)),Ui(x,{from:ne,to:te,text:z,origin:oe})}function Aa(x,z,ne,te){ne<x.line?x.line+=te:z<x.line&&(x.line=z,x.ch=0)}function ao(x,z,ne,te){for(var oe=0;oe<x.length;++oe){var he=x[oe],ke=!0;if(he.ranges){he.copied||(he=x[oe]=he.deepCopy(),he.copied=!0);for(var ze=0;ze<he.ranges.length;ze++)Aa(he.ranges[ze].anchor,z,ne,te),Aa(he.ranges[ze].head,z,ne,te);continue}for(var _e=0;_e<he.changes.length;++_e){var et=he.changes[_e];if(ne<et.from.line)et.from=Tt(et.from.line+te,et.from.ch),et.to=Tt(et.to.line+te,et.to.ch);else if(z<=et.to.line){ke=!1;break}}ke||(x.splice(0,oe+1),oe=0)}}function eo(x,z){var ne=z.from.line,te=z.to.line,oe=z.text.length-(te-ne)-1;ao(x.done,ne,te,oe),ao(x.undone,ne,te,oe)}function _o(x,z,ne,te){var oe=z,he=z;return typeof z=="number"?he=Pn(x,sr(x,z)):oe=Pr(z),oe==null?null:(te(he,oe)&&x.cm&&po(x.cm,oe,ne),he)}function so(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}so.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,z){for(var ne=x,te=x+z;ne<te;++ne){var oe=this.lines[ne];this.height-=oe.height,ar(oe),_n(oe,"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 es(x){this.children=x;for(var z=0,ne=0,te=0;te<x.length;++te){var oe=x[te];z+=oe.chunkSize(),ne+=oe.height,oe.parent=this}this.size=z,this.height=ne,this.parent=null}es.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],oe=te.chunkSize();if(x<oe){var he=Math.min(z,oe-x),ke=te.height;if(te.removeInner(x,he),this.height-=ke-te.height,oe==he&&(this.children.splice(ne--,1),te.parent=null),(z-=he)==0)break;x=0}else x-=oe}if(this.size-z<25&&(this.children.length>1||!(this.children[0]instanceof so))){var ze=[];this.collapse(ze),this.children=[new so(ze)],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 oe=this.children[te],he=oe.chunkSize();if(x<=he){if(oe.insertInner(x,z,ne),oe.lines&&oe.lines.length>50){for(var ke=oe.lines.length%25+25,ze=ke;ze<oe.lines.length;){var _e=new so(oe.lines.slice(ze,ze+=25));oe.height-=_e.height,this.children.splice(++te,0,_e),_e.parent=this}oe.lines=oe.lines.slice(0,ke),this.maybeSpill()}break}x-=he}},maybeSpill:function(){if(!(this.children.length<=10)){var x=this;do{var z=x.children.splice(x.children.length-5,5),ne=new es(z);if(x.parent){x.size-=ne.size,x.height-=ne.height;var oe=St(x.parent.children,x);x.parent.children.splice(oe+1,0,ne)}else{var te=new es(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 oe=this.children[te],he=oe.chunkSize();if(x<he){var ke=Math.min(z,he-x);if(oe.iterN(x,ke,ne))return!0;if((z-=ke)==0)break;x=0}else x-=he}}};var ts=function(x,z,ne){if(ne)for(var te in ne)ne.hasOwnProperty(te)&&(this[te]=ne[te]);this.doc=x,this.node=z};ts.prototype.clear=function(){var x=this.doc.cm,z=this.line.widgets,ne=this.line,te=Pr(ne);if(!(te==null||!z)){for(var oe=0;oe<z.length;++oe)z[oe]==this&&z.splice(oe--,1);z.length||(ne.widgets=null);var he=ia(this);zr(ne,Math.max(0,ne.height-he)),x&&(ho(x,function(){Va(x,ne,-he),po(x,te,"widget")}),_n(x,"lineWidgetCleared",x,this,te))}},ts.prototype.changed=function(){var x=this,z=this.height,ne=this.doc.cm,te=this.line;this.height=null;var oe=ia(this)-z;oe&&(tr(this.doc,te)||zr(te,te.height+oe),ne&&ho(ne,function(){ne.curOp.forceUpdate=!0,Va(ne,te,oe),_n(ne,"lineWidgetChanged",ne,x,Pr(te))}))},$n(ts);function Va(x,z,ne){Mn(z)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&Cl(x,ne)}function Ls(x,z,ne,te){var oe=new ts(x,ne,te),he=x.cm;return he&&oe.noHScroll&&(he.display.alignWidgets=!0),_o(x,z,"widget",function(ke){var ze=ke.widgets||(ke.widgets=[]);if(oe.insertAt==null?ze.push(oe):ze.splice(Math.min(ze.length-1,Math.max(0,oe.insertAt)),0,oe),oe.line=ke,he&&!tr(x,ke)){var _e=Mn(ke)<x.scrollTop;zr(ke,ke.height+ia(oe)),_e&&Cl(he,oe.height),he.curOp.forceUpdate=!0}return!0}),he&&_n(he,"lineWidgetAdded",he,oe,typeof z=="number"?z:Pr(z)),oe}var Io=0,Zo=function(x,z){this.lines=[],this.type=z,this.doc=x,this.id=++Io};Zo.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,z=x&&!x.curOp;if(z&&tc(x),Hn(this,"clear")){var ne=this.find();ne&&_n(this,"clear",ne.from,ne.to)}for(var te=null,oe=null,he=0;he<this.lines.length;++he){var ke=this.lines[he],ze=cr(ke.markedSpans,this);x&&!this.collapsed?po(x,Pr(ke),"text"):x&&(ze.to!=null&&(oe=Pr(ke)),ze.from!=null&&(te=Pr(ke))),ke.markedSpans=Er(ke.markedSpans,ze),ze.from==null&&this.collapsed&&!tr(this.doc,ke)&&x&&zr(ke,Uo(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var _e=0;_e<this.lines.length;++_e){var et=$e(this.lines[_e]),qt=En(et);qt>x.display.maxLineLength&&(x.display.maxLine=et,x.display.maxLineLength=qt,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&Da(x,te,oe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&Ci(x.doc)),x&&_n(x,"markerCleared",x,this,te,oe),z&&nc(x),this.parent&&this.parent.clear()}},Zo.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ne,te,oe=0;oe<this.lines.length;++oe){var he=this.lines[oe],ke=cr(he.markedSpans,this);if(ke.from!=null&&(ne=Tt(z?he:Pr(he),ke.from),x==-1))return ne;if(ke.to!=null&&(te=Tt(z?he:Pr(he),ke.to),x==1))return te}return ne&&{from:ne,to:te}},Zo.prototype.changed=function(){var x=this,z=this.find(-1,!0),ne=this,te=this.doc.cm;!z||!te||ho(te,function(){var oe=z.line,he=Pr(z.line),ke=Ha(te,he);if(ke&&(Ra(ke),te.curOp.selectionChanged=te.curOp.forceUpdate=!0),te.curOp.updateMaxLine=!0,!tr(ne.doc,oe)&&ne.height!=null){var ze=ne.height;ne.height=null;var _e=ia(ne)-ze;_e&&zr(oe,oe.height+_e)}_n(te,"markerChanged",te,x)})},Zo.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||St(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},Zo.prototype.detachLine=function(x){if(this.lines.splice(St(this.lines,x),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},$n(Zo);function Ro(x,z,ne,te,oe){if(te&&te.shared)return Ii(x,z,ne,te,oe);if(x.cm&&!x.cm.curOp)return Wo(x.cm,Ro)(x,z,ne,te,oe);var he=new Zo(x,oe),ke=Jt(z,ne);if(te&&Tn(te,he,!1),ke>0||ke==0&&he.clearWhenEmpty!==!1)return he;if(he.replacedWith&&(he.collapsed=!0,he.widgetNode=ft("span",[he.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||he.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(he.widgetNode.insertLeft=!0)),he.collapsed){if(Ve(x,z.line,z,ne,he)||z.line!=ne.line&&Ve(x,ne.line,z,ne,he))throw new Error("Inserting collapsed marker partially overlapping an existing one");Vt()}he.addToHistory&&Ee(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var ze=z.line,_e=x.cm,et;if(x.iter(ze,ne.line+1,function(gn){_e&&he.collapsed&&!_e.options.lineWrapping&&$e(gn)==_e.display.maxLine&&(et=!0),he.collapsed&&ze!=z.line&&zr(gn,0),qr(gn,new zn(he,ze==z.line?z.ch:null,ze==ne.line?ne.ch:null)),++ze}),he.collapsed&&x.iter(z.line,ne.line+1,function(gn){tr(x,gn)&&zr(gn,0)}),he.clearOnEnter&&ln(he,"beforeCursorEnter",function(){return he.clear()}),he.readOnly&&(an(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),he.collapsed&&(he.id=++Io,he.atomic=!0),_e){if(et&&(_e.curOp.updateMaxLine=!0),he.collapsed)Da(_e,z.line,ne.line+1);else if(he.className||he.startStyle||he.endStyle||he.css||he.attributes||he.title)for(var qt=z.line;qt<=ne.line;qt++)po(_e,qt,"text");he.atomic&&Ci(_e.doc),_n(_e,"markerAdded",_e,he)}return he}var Wa=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne<x.length;++ne)x[ne].parent=this};Wa.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();_n(this,"clear")}},Wa.prototype.find=function(x,z){return this.primary.find(x,z)},$n(Wa);function Ii(x,z,ne,te,oe){te=Tn(te),te.shared=!1;var he=[Ro(x,z,ne,te,oe)],ke=he[0],ze=te.widgetNode;return hc(x,function(_e){ze&&(te.widgetNode=ze.cloneNode(!0)),he.push(Ro(_e,Ir(_e,z),Ir(_e,ne),te,oe));for(var et=0;et<_e.linked.length;++et)if(_e.linked[et].isParent)return;ke=yn(he)}),new Wa(he,ke)}function ha(x){return x.findMarks(Tt(x.first,0),x.clipPos(Tt(x.lastLine())),function(z){return z.parent})}function ka(x,z){for(var ne=0;ne<z.length;ne++){var te=z[ne],oe=te.find(),he=x.clipPos(oe.from),ke=x.clipPos(oe.to);if(Jt(he,ke)){var ze=Ro(x,he,ke,te.primary,te.primary.type);te.markers.push(ze),ze.parent=te}}}function Vi(x){for(var z=function(te){var oe=x[te],he=[oe.primary.doc];hc(oe.primary.doc,function(_e){return he.push(_e)});for(var ke=0;ke<oe.markers.length;ke++){var ze=oe.markers[ke];St(he,ze.doc)==-1&&(ze.parent=null,oe.markers.splice(ke--,1))}},ne=0;ne<x.length;ne++)z(ne)}var To=0,Di=function(x,z,ne,te,oe){if(!(this instanceof Di))return new Di(x,z,ne,te,oe);ne==null&&(ne=0),es.call(this,[new so([new Gn("",null)])]),this.first=ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ne;var he=Tt(ne,0);this.sel=ic(he),this.history=new fu(null),this.id=++To,this.modeOption=z,this.lineSep=te,this.direction=oe=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),Du(this,{from:he,to:he,text:x}),Jr(this,ic(he),ht)};Di.prototype=fe(es.prototype,{constructor:Di,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=ni(this,this.first,this.first+this.size);return x===!1?z:z.join(x||this.lineSeparator())},setValue:ws(function(x){var z=Tt(this.first,0),ne=this.first+this.size-1;Ui(this,{from:z,to:Tt(ne,Pn(this,ne).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&ql(this.cm,0,0),Jr(this,ic(z),ht)}),replaceRange:function(x,z,ne,te){z=Ir(this,z),ne=ne?Ir(this,ne):z,Ka(this,x,z,ne,te)},getRange:function(x,z,ne){var te=vr(this,Ir(this,x),Ir(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(Qr(this,x))return Pn(this,x)},getLineNumber:function(x){return Pr(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=Pn(this,x)),$e(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return Ir(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:ws(function(x,z,ne){Ur(this,Ir(this,typeof x=="number"?Tt(x,z||0):x),null,ne)}),setSelection:ws(function(x,z,ne){Ur(this,Ir(this,x),Ir(this,z||x),ne)}),extendSelection:ws(function(x,z,ne){br(this,Ir(this,x),z&&Ir(this,z),ne)}),extendSelections:ws(function(x,z){pn(this,Wn(this,x),z)}),extendSelectionsBy:ws(function(x,z){var ne=Qn(this.sel.ranges,x);pn(this,Wn(this,ne),z)}),setSelections:ws(function(x,z,ne){if(x.length){for(var te=[],oe=0;oe<x.length;oe++)te[oe]=new Yo(Ir(this,x[oe].anchor),Ir(this,x[oe].head));z==null&&(z=Math.min(x.length-1,this.sel.primIndex)),Jr(this,rc(this.cm,te,z),ne)}}),addSelection:ws(function(x,z,ne){var te=this.sel.ranges.slice(0);te.push(new Yo(Ir(this,x),Ir(this,z||x))),Jr(this,rc(this.cm,te,te.length-1),ne)}),getSelection:function(x){for(var z=this.sel.ranges,ne,te=0;te<z.length;te++){var oe=vr(this,z[te].from(),z[te].to());ne=ne?ne.concat(oe):oe}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 oe=vr(this,ne[te].from(),ne[te].to());x!==!1&&(oe=oe.join(x||this.lineSeparator())),z[te]=oe}return z},replaceSelection:function(x,z,ne){for(var te=[],oe=0;oe<this.sel.ranges.length;oe++)te[oe]=x;this.replaceSelections(te,z,ne||"+input")},replaceSelections:ws(function(x,z,ne){for(var te=[],oe=this.sel,he=0;he<oe.ranges.length;he++){var ke=oe.ranges[he];te[he]={from:ke.from(),to:ke.to(),text:this.splitLines(x[he]),origin:ne}}for(var ze=z&&z!="end"&&td(this,te,z),_e=te.length-1;_e>=0;_e--)Ui(this,te[_e]);ze?ii(this,ze):this.cm&&il(this.cm)}),undo:ws(function(){gi(this,"undo")}),redo:ws(function(){gi(this,"redo")}),undoSelection:ws(function(){gi(this,"undo",!0)}),redoSelection:ws(function(){gi(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 oe=0;oe<x.undone.length;oe++)x.undone[oe].ranges||++ne;return{undo:z,redo:ne}},clearHistory:function(){var x=this;this.history=new fu(this.history.maxGeneration),hc(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:An(this.history.done),undone:An(this.history.undone)}},setHistory:function(x){var z=this.history=new fu(this.history.maxGeneration);z.done=An(x.done.slice(0),null,!0),z.undone=An(x.undone.slice(0),null,!0)},setGutterMarker:ws(function(x,z,ne){return _o(this,x,"gutter",function(te){var oe=te.gutterMarkers||(te.gutterMarkers={});return oe[z]=ne,!ne&&le(oe)&&(te.gutterMarkers=null),!0})}),clearGutter:ws(function(x){var z=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[x]&&_o(z,ne,"gutter",function(){return ne.gutterMarkers[x]=null,le(ne.gutterMarkers)&&(ne.gutterMarkers=null),!0})})}),lineInfo:function(x){var z;if(typeof x=="number"){if(!Qr(this,x)||(z=x,x=Pn(this,x),!x))return null}else if(z=Pr(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:ws(function(x,z,ne){return _o(this,x,z=="gutter"?"gutter":"class",function(te){var oe=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass";if(!te[oe])te[oe]=ne;else{if(Se(ne).test(te[oe]))return!1;te[oe]+=" "+ne}return!0})}),removeLineClass:ws(function(x,z,ne){return _o(this,x,z=="gutter"?"gutter":"class",function(te){var oe=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass",he=te[oe];if(he)if(ne==null)te[oe]=null;else{var ke=he.match(Se(ne));if(!ke)return!1;var ze=ke.index+ke[0].length;te[oe]=he.slice(0,ke.index)+(!ke.index||ze==he.length?"":" ")+he.slice(ze)||null}else return!1;return!0})}),addLineWidget:ws(function(x,z,ne){return Ls(this,x,z,ne)}),removeLineWidget:function(x){x.clear()},markText:function(x,z,ne){return Ro(this,Ir(this,x),Ir(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=Ir(this,x),Ro(this,x,x,ne,"bookmark")},findMarksAt:function(x){x=Ir(this,x);var z=[],ne=Pn(this,x.line).markedSpans;if(ne)for(var te=0;te<ne.length;++te){var oe=ne[te];(oe.from==null||oe.from<=x.ch)&&(oe.to==null||oe.to>=x.ch)&&z.push(oe.marker.parent||oe.marker)}return z},findMarks:function(x,z,ne){x=Ir(this,x),z=Ir(this,z);var te=[],oe=x.line;return this.iter(x.line,z.line+1,function(he){var ke=he.markedSpans;if(ke)for(var ze=0;ze<ke.length;ze++){var _e=ke[ze];!(_e.to!=null&&oe==x.line&&x.ch>=_e.to||_e.from==null&&oe!=x.line||_e.from!=null&&oe==z.line&&_e.from>=z.ch)&&(!ne||ne(_e.marker))&&te.push(_e.marker.parent||_e.marker)}++oe}),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(oe){var he=oe.text.length+te;if(he>x)return z=x,!0;x-=he,++ne}),Ir(this,Tt(ne,z))},indexFromPos:function(x){x=Ir(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 Di(ni(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 Di(ni(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}],ka(te,ha(this)),te},unlinkDoc:function(x){if(x instanceof Ga&&(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),Vi(ha(this));break}}if(x.history==this.history){var te=[x.id];hc(x,function(oe){return te.push(oe.id)},!0),x.history=new fu(null),x.history.done=An(this.history.done,te),x.history.undone=An(this.history.undone,te)}},iterLinkedDocs:function(x){hc(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):Zt(x)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:ws(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(z){return z.order=null}),this.cm&&Bu(this.cm))})}),Di.prototype.eachLine=Di.prototype.iter;var ja=0;function Do(x){var z=this;if(Ds(z),!(Yt(z,x)||_i(z.display,x))){yr(x),be&&(ja=+new Date);var ne=Hs(z,x,!0),te=x.dataTransfer.files;if(!(!ne||z.isReadOnly()))if(te&&te.length&&window.FileReader&&window.File)for(var oe=te.length,he=Array(oe),ke=0,ze=function(){++ke==oe&&Wo(z,function(){ne=Ir(z.doc,ne);var rr={from:ne,to:ne,text:z.doc.splitLines(he.filter(function(Vr){return Vr!=null}).join(z.doc.lineSeparator())),origin:"paste"};Ui(z.doc,rr),ii(z.doc,ic(Ir(z.doc,ne),Ir(z.doc,wc(rr))))})()},_e=function(rr,Vr){if(z.options.allowDropFileTypes&&St(z.options.allowDropFileTypes,rr.type)==-1){ze();return}var ai=new FileReader;ai.onerror=function(){return ze()},ai.onload=function(){var wi=ai.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(wi)){ze();return}he[Vr]=wi,ze()},ai.readAsText(rr)},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 qt=x.dataTransfer.getData("Text");if(qt){var gn;if(z.state.draggingText&&!z.state.draggingText.copy&&(gn=z.listSelections()),mi(z.doc,ic(ne,ne)),gn)for(var pr=0;pr<gn.length;++pr)Ka(z.doc,"",gn[pr].anchor,gn[pr].head,"drag");z.replaceSelection(qt,"around","paste"),z.display.input.focus()}}catch(rr){}}}}function wo(x,z){if(be&&(!x.state.draggingText||+new Date-ja<100)){Dr(z);return}if(!(Yt(x,z)||_i(x.display,z))&&(z.dataTransfer.setData("Text",x.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!ct)){var ne=pt("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ie&&(ne.width=ne.height=1,x.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),z.dataTransfer.setDragImage(ne,0,0),Ie&&ne.parentNode.removeChild(ne)}}function ol(x,z){var ne=Hs(x,z);if(ne){var te=document.createDocumentFragment();Xa(x,ne,te),x.display.dragCursor||(x.display.dragCursor=pt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),yt(x.display.dragCursor,te)}}function Ds(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function El(x){if(document.getElementsByClassName){for(var z=document.getElementsByClassName("CodeMirror"),ne=[],te=0;te<z.length;te++){var oe=z[te].CodeMirror;oe&&ne.push(oe)}ne.length&&ne[0].operation(function(){for(var he=0;he<ne.length;he++)x(ne[he])})}}var ei=!1;function Kl(){ei||(Cs(),ei=!0)}function Cs(){var x;ln(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,El(fl)},100))}),ln(window,"blur",function(){return El(rl)})}function fl(x){var z=x.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,x.setSize()}for(var yl={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Bo=0;Bo<10;Bo++)yl[Bo+48]=yl[Bo+96]=String(Bo);for(var Po=65;Po<=90;Po++)yl[Po]=String.fromCharCode(Po);for(var ns=1;ns<=12;ns++)yl[ns+111]=yl[ns+63235]="F"+ns;var $a={};$a.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},$a.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},$a.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},$a.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},$a.default=ye?$a.macDefault:$a.pcDefault;function Rs(x){var z=x.split(/-(?!$)/);x=z[z.length-1];for(var ne,te,oe,he,ke=0;ke<z.length-1;ke++){var ze=z[ke];if(/^(cmd|meta|m)$/i.test(ze))he=!0;else if(/^a(lt)?$/i.test(ze))ne=!0;else if(/^(c|ctrl|control)$/i.test(ze))te=!0;else if(/^s(hift)?$/i.test(ze))oe=!0;else throw new Error("Unrecognized modifier name: "+ze)}return ne&&(x="Alt-"+x),te&&(x="Ctrl-"+x),he&&(x="Cmd-"+x),oe&&(x="Shift-"+x),x}function lo(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 oe=Qn(ne.split(" "),Rs),he=0;he<oe.length;he++){var ke=void 0,ze=void 0;he==oe.length-1?(ze=oe.join(" "),ke=te):(ze=oe.slice(0,he+1).join(" "),ke="...");var _e=z[ze];if(!_e)z[ze]=ke;else if(_e!=ke)throw new Error("Inconsistent bindings for "+ze)}delete x[ne]}for(var et in z)x[et]=z[et];return x}function Bs(x,z,ne,te){z=Es(z);var oe=z.call?z.call(x,te):z[x];if(oe===!1)return"nothing";if(oe==="...")return"multi";if(oe!=null&&ne(oe))return"handled";if(z.fallthrough){if(Object.prototype.toString.call(z.fallthrough)!="[object Array]")return Bs(x,z.fallthrough,ne,te);for(var he=0;he<z.fallthrough.length;he++){var ke=Bs(x,z.fallthrough[he],ne,te);if(ke)return ke}}}function Ws(x){var z=typeof x=="string"?x:yl[x.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function Zs(x,z,ne){var te=x;return z.altKey&&te!="Alt"&&(x="Alt-"+x),(rt?z.metaKey:z.ctrlKey)&&te!="Ctrl"&&(x="Ctrl-"+x),(rt?z.ctrlKey:z.metaKey)&&te!="Mod"&&(x="Cmd-"+x),!ne&&z.shiftKey&&te!="Shift"&&(x="Shift-"+x),x}function Ml(x,z){if(Ie&&x.keyCode==34&&x.char)return!1;var ne=yl[x.keyCode];return ne==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(ne=x.code),Zs(ne,x,z))}function Es(x){return typeof x=="string"?$a[x]:x}function Al(x,z){for(var ne=x.doc.sel.ranges,te=[],oe=0;oe<ne.length;oe++){for(var he=z(ne[oe]);te.length&&Jt(he.from,yn(te).to)<=0;){var ke=te.pop();if(Jt(ke.from,he.from)<0){he.from=ke.from;break}}te.push(he)}ho(x,function(){for(var ze=te.length-1;ze>=0;ze--)Ka(x.doc,"",te[ze].from,te[ze].to,"+delete");il(x)})}function Ms(x,z,ne){var te=Bt(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function js(x,z,ne){var te=Ms(x,z.ch,ne);return te==null?null:new Tt(z.line,te,ne<0?"after":"before")}function Us(x,z,ne,te,oe){if(x){z.doc.direction=="rtl"&&(oe=-oe);var he=zt(ne,z.doc.direction);if(he){var ke=oe<0?yn(he):he[0],ze=oe<0==(ke.level==1),_e=ze?"after":"before",et;if(ke.level>0||z.doc.direction=="rtl"){var qt=Ia(z,ne);et=oe<0?ne.text.length-1:0;var gn=aa(z,qt,et).top;et=en(function(pr){return aa(z,qt,pr).top==gn},oe<0==(ke.level==1)?ke.from:ke.to-1,et),_e=="before"&&(et=Ms(ne,et,1))}else et=oe<0?ke.to:ke.from;return new Tt(te,et,_e)}}return new Tt(te,oe<0?ne.text.length:0,oe<0?"before":"after")}function As(x,z,ne,te){var oe=zt(z,x.doc.direction);if(!oe)return js(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 he=un(oe,ne.ch,ne.sticky),ke=oe[he];if(x.doc.direction=="ltr"&&ke.level%2==0&&(te>0?ke.to>ne.ch:ke.from<ne.ch))return js(z,ne,te);var ze=function(Hi,ta){return Ms(z,Hi instanceof Tt?Hi.ch:Hi,ta)},_e,et=function(Hi){return x.options.lineWrapping?(_e=_e||Ia(x,z),No(x,z,_e,Hi)):{begin:0,end:z.text.length}},qt=et(ne.sticky=="before"?ze(ne,-1):ne.ch);if(x.doc.direction=="rtl"||ke.level==1){var gn=ke.level==1==te<0,pr=ze(ne,gn?1:-1);if(pr!=null&&(gn?pr<=ke.to&&pr<=qt.end:pr>=ke.from&&pr>=qt.begin)){var rr=gn?"before":"after";return new Tt(ne.line,pr,rr)}}var Vr=function(Hi,ta,Ti){for(var sa=function(vs,xl){return xl?new Tt(ne.line,ze(vs,1),"before"):new Tt(ne.line,vs,"after")};Hi>=0&&Hi<oe.length;Hi+=ta){var Pa=oe[Hi],Fa=ta>0==(Pa.level!=1),Mo=Fa?Ti.begin:ze(Ti.end,-1);if(Pa.from<=Mo&&Mo<Pa.to||(Mo=Fa?Pa.from:ze(Pa.to,-1),Ti.begin<=Mo&&Mo<Ti.end))return sa(Mo,Fa)}},ai=Vr(he+te,te,qt);if(ai)return ai;var wi=te>0?qt.end:ze(qt.begin,-1);return wi!=null&&!(te>0&&wi==z.text.length)&&(ai=Vr(te>0?0:oe.length-1,te,et(wi)),ai)?ai:null}var ms={selectAll:Ua,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),ht)},killLine:function(x){return Al(x,function(z){if(z.empty()){var ne=Pn(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line<x.lastLine()?{from:z.head,to:Tt(z.head.line+1,0)}:{from:z.head,to:Tt(z.head.line,ne)}}else return{from:z.from(),to:z.to()}})},deleteLine:function(x){return Al(x,function(z){return{from:Tt(z.from().line,0),to:Ir(x.doc,Tt(z.to().line+1,0))}})},delLineLeft:function(x){return Al(x,function(z){return{from:Tt(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(x){return Al(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 Al(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(Tt(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(Tt(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(z){return ls(x,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(z){return Cc(x,z.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(z){return Xl(x,z.head.line)},{origin:"+move",bias:-1})},goLineRight:function(x){return x.extendSelectionsBy(function(z){var ne=x.cursorCoords(z.head,"div").top+5;return x.coordsChar({left:x.display.lineDiv.offsetWidth+100,top:ne},"div")},Qt)},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")},Qt)},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/)?Cc(x,z.head):te},Qt)},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,oe=0;oe<ne.length;oe++){var he=ne[oe].from(),ke=at(x.getLine(he.line),he.ch,te);z.push($t(te-ke%te))}x.replaceSelections(z)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return ho(x,function(){for(var z=x.listSelections(),ne=[],te=0;te<z.length;te++)if(z[te].empty()){var oe=z[te].head,he=Pn(x.doc,oe.line).text;if(he){if(oe.ch==he.length&&(oe=new Tt(oe.line,oe.ch-1)),oe.ch>0)oe=new Tt(oe.line,oe.ch+1),x.replaceRange(he.charAt(oe.ch-1)+he.charAt(oe.ch-2),Tt(oe.line,oe.ch-2),oe,"+transpose");else if(oe.line>x.doc.first){var ke=Pn(x.doc,oe.line-1).text;ke&&(oe=new Tt(oe.line,1),x.replaceRange(he.charAt(0)+x.doc.lineSeparator()+ke.charAt(ke.length-1),Tt(oe.line-1,ke.length-1),oe,"+transpose"))}}ne.push(new Yo(oe,oe))}x.setSelections(ne)})},newlineAndIndent:function(x){return ho(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);il(x)})},openLine:function(x){return x.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function ls(x,z){var ne=Pn(x.doc,z),te=$e(ne);return te!=ne&&(z=Pr(te)),Us(!0,x,te,z,1)}function Xl(x,z){var ne=Pn(x.doc,z),te=tt(ne);return te!=ne&&(z=Pr(te)),Us(!0,x,ne,z,-1)}function Cc(x,z){var ne=ls(x,z.line),te=Pn(x.doc,ne.line),oe=zt(te,x.doc.direction);if(!oe||oe[0].level==0){var he=Math.max(ne.ch,te.text.search(/\S/)),ke=z.line==ne.line&&z.ch<=he&&z.ch;return Tt(ne.line,ke?0:he,ne.sticky)}return ne}function hs(x,z,ne){if(typeof z=="string"&&(z=ms[z],!z))return!1;x.display.input.ensurePolled();var te=x.display.shift,oe=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ne&&(x.display.shift=!1),oe=z(x)!=Pt}finally{x.display.shift=te,x.state.suppressEdits=!1}return oe}function sl(x,z,ne){for(var te=0;te<x.state.keyMaps.length;te++){var oe=Bs(z,x.state.keyMaps[te],ne,x);if(oe)return oe}return x.options.extraKeys&&Bs(z,x.options.extraKeys,ne,x)||Bs(z,x.options.keyMap,ne,x)}var Tu=new Ae;function Ec(x,z,ne,te){var oe=x.state.keySeq;if(oe){if(Ws(z))return"handled";if(/\'$/.test(z)?x.state.keySeq=null:Tu.set(50,function(){x.state.keySeq==oe&&(x.state.keySeq=null,x.display.input.reset())}),yo(x,oe+" "+z,ne,te))return!0}return yo(x,z,ne,te)}function yo(x,z,ne,te){var oe=sl(x,z,te);return oe=="multi"&&(x.state.keySeq=z),oe=="handled"&&_n(x,"keyHandled",x,z,ne),(oe=="handled"||oe=="multi")&&(yr(ne),ma(x)),!!oe}function ya(x,z){var ne=Ml(z,!0);return ne?z.shiftKey&&!x.state.keySeq?Ec(x,"Shift-"+ne,z,function(te){return hs(x,te,!0)})||Ec(x,ne,z,function(te){if(typeof te=="string"?/^go[A-Z]/.test(te):te.motion)return hs(x,te)}):Ec(x,ne,z,function(te){return hs(x,te)}):!1}function Ns(x,z,ne){return Ec(x,"'"+ne+"'",z,function(te){return hs(x,te,!0)})}var jo=null;function Vs(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&(z.curOp.focus=bt(),!Yt(z,x))){be&&Me<11&&x.keyCode==27&&(x.returnValue=!1);var ne=x.keyCode;z.display.shift=ne==16||x.shiftKey;var te=ya(z,x);Ie&&(jo=te?ne:null,!te&&ne==88&&!fr&&(ye?x.metaKey:x.ctrlKey)&&z.replaceSelection("",null,"cut")),ie&&!ye&&!te&&ne==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&Nr(z)}}function Nr(x){var z=x.display.lineDiv;xn(z,"CodeMirror-crosshair");function ne(te){(te.keyCode==18||!te.altKey)&&(Ze(z,"CodeMirror-crosshair"),lr(document,"keyup",ne),lr(document,"mouseover",ne))}ln(document,"keyup",ne),ln(document,"mouseover",ne)}function kl(x){x.keyCode==16&&(this.doc.sel.shift=!1),Yt(this,x)}function lc(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&!(_i(z.display,x)||Yt(z,x)||x.ctrlKey&&!x.altKey||ye&&x.metaKey)){var ne=x.keyCode,te=x.charCode;if(Ie&&ne==jo){jo=null,yr(x);return}if(!(Ie&&(!x.which||x.which<10)&&ya(z,x))){var oe=String.fromCharCode(te==null?ne:te);oe!="\b"&&(Ns(z,x,oe)||z.display.input.onKeyPress(x))}}}var Ou=400,id=function(x,z,ne){this.time=x,this.pos=z,this.button=ne};id.prototype.compare=function(x,z,ne){return this.time+Ou>x&&Jt(z,this.pos)==0&&ne==this.button};var cc,hu;function Dd(x,z){var ne=+new Date;return hu&&hu.compare(ne,x,z)?(cc=hu=null,"triple"):cc&&cc.compare(ne,x,z)?(hu=new id(ne,x,z),cc=null,"double"):(cc=new id(ne,x,z),hu=null,"single")}function Gs(x){var z=this,ne=z.display;if(!(Yt(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,_i(ne,x)){ue||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!bl(z,x)){var te=Hs(z,x),oe=hr(x),he=te?Dd(te,oe):"single";window.focus(),oe==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&Zl(z,oe,te,he,x))&&(oe==1?te?Nu(z,te,he,x):Fr(x)==ne.scroller&&yr(x):oe==2?(te&&br(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):oe==3&&(xe?z.display.input.onContextMenu(x):Vo(z)))}}}function Zl(x,z,ne,te,oe){var he="Click";return te=="double"?he="Double"+he:te=="triple"&&(he="Triple"+he),he=(z==1?"Left":z==2?"Middle":"Right")+he,Ec(x,Zs(he,oe),oe,function(ke){if(typeof ke=="string"&&(ke=ms[ke]),!ke)return!1;var ze=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ze=ke(x,ne)!=Pt}finally{x.state.suppressEdits=!1}return ze})}function pu(x,z,ne){var te=x.getOption("configureMouse"),oe=te?te(x,z,ne):{};if(oe.unit==null){var he=it?ne.shiftKey&&ne.metaKey:ne.altKey;oe.unit=he?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(oe.extend==null||x.doc.extend)&&(oe.extend=x.doc.extend||ne.shiftKey),oe.addNew==null&&(oe.addNew=ye?ne.metaKey:ne.ctrlKey),oe.moveOnDrag==null&&(oe.moveOnDrag=!(ye?ne.altKey:ne.ctrlKey)),oe}function Nu(x,z,ne,te){be?setTimeout(Bn(La,x),0):x.curOp.focus=bt();var oe=pu(x,ne,te),he=x.doc.sel,ke;x.options.dragDrop&&_r&&!x.isReadOnly()&&ne=="single"&&(ke=he.contains(z))>-1&&(Jt((ke=he.ranges[ke]).from(),z)<0||z.xRel>0)&&(Jt(ke.to(),z)>0||z.xRel<0)?Bd(x,te,z,oe):Pu(x,te,z,oe)}function Bd(x,z,ne,te){var oe=x.display,he=!1,ke=Wo(x,function(et){ue&&(oe.scroller.draggable=!1),x.state.draggingText=!1,lr(oe.wrapper.ownerDocument,"mouseup",ke),lr(oe.wrapper.ownerDocument,"mousemove",ze),lr(oe.scroller,"dragstart",_e),lr(oe.scroller,"drop",ke),he||(yr(et),te.addNew||br(x.doc,ne,null,null,te.extend),ue&&!ct||be&&Me==9?setTimeout(function(){oe.wrapper.ownerDocument.body.focus({preventScroll:!0}),oe.input.focus()},20):oe.input.focus())}),ze=function(et){he=he||Math.abs(z.clientX-et.clientX)+Math.abs(z.clientY-et.clientY)>=10},_e=function(){return he=!0};ue&&(oe.scroller.draggable=!0),x.state.draggingText=ke,ke.copy=!te.moveOnDrag,oe.scroller.dragDrop&&oe.scroller.dragDrop(),ln(oe.wrapper.ownerDocument,"mouseup",ke),ln(oe.wrapper.ownerDocument,"mousemove",ze),ln(oe.scroller,"dragstart",_e),ln(oe.scroller,"drop",ke),Vo(x),setTimeout(function(){return oe.input.focus()},20)}function Id(x,z,ne){if(ne=="char")return new Yo(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new Yo(Tt(z.line,0),Ir(x.doc,Tt(z.line+1,0)));var te=ne(x,z);return new Yo(te.from,te.to)}function Pu(x,z,ne,te){var oe=x.display,he=x.doc;yr(z);var ke,ze,_e=he.sel,et=_e.ranges;if(te.addNew&&!te.extend?(ze=he.sel.contains(ne),ze>-1?ke=et[ze]:ke=new Yo(ne,ne)):(ke=he.sel.primary(),ze=he.sel.primIndex),te.unit=="rectangle")te.addNew||(ke=new Yo(ne,ne)),ne=Hs(x,z,!0,!0),ze=-1;else{var qt=Id(x,ne,te.unit);te.extend?ke=nr(ke,qt.anchor,qt.head,te.extend):ke=qt}te.addNew?ze==-1?(ze=et.length,Jr(he,rc(x,et.concat([ke]),ze),{scroll:!1,origin:"*mouse"})):et.length>1&&et[ze].empty()&&te.unit=="char"&&!te.extend?(Jr(he,rc(x,et.slice(0,ze).concat(et.slice(ze+1)),0),{scroll:!1,origin:"*mouse"}),_e=he.sel):Hr(he,ze,ke,Et):(ze=0,Jr(he,new Wl([ke],0),Et),_e=he.sel);var gn=ne;function pr(Ti){if(Jt(gn,Ti)!=0)if(gn=Ti,te.unit=="rectangle"){for(var sa=[],Pa=x.options.tabSize,Fa=at(Pn(he,ne.line).text,ne.ch,Pa),Mo=at(Pn(he,Ti.line).text,Ti.ch,Pa),vs=Math.min(Fa,Mo),xl=Math.max(Fa,Mo),Fs=Math.min(ne.line,Ti.line),jl=Math.min(x.lastLine(),Math.max(ne.line,Ti.line));Fs<=jl;Fs++){var Ul=Pn(he,Fs).text,ll=ir(Ul,vs,Pa);vs==xl?sa.push(new Yo(Tt(Fs,ll),Tt(Fs,ll))):Ul.length>ll&&sa.push(new Yo(Tt(Fs,ll),Tt(Fs,ir(Ul,xl,Pa))))}sa.length||sa.push(new Yo(ne,ne)),Jr(he,rc(x,_e.ranges.slice(0,ze).concat(sa),ze),{origin:"*mouse",scroll:!1}),x.scrollIntoView(Ti)}else{var Vl=ke,to=Id(x,Ti,te.unit),Ys=Vl.anchor,zs;Jt(to.anchor,Ys)>0?(zs=to.head,Ys=Jn(Vl.from(),to.anchor)):(zs=to.anchor,Ys=Rn(Vl.to(),to.head));var Xs=_e.ranges.slice(0);Xs[ze]=mu(x,new Yo(Ir(he,Ys),zs)),Jr(he,rc(x,Xs,ze),Et)}}var rr=oe.wrapper.getBoundingClientRect(),Vr=0;function ai(Ti){var sa=++Vr,Pa=Hs(x,Ti,!0,te.unit=="rectangle");if(Pa)if(Jt(Pa,gn)!=0){x.curOp.focus=bt(),pr(Pa);var Fa=vo(oe,he);(Pa.line>=Fa.to||Pa.line<Fa.from)&&setTimeout(Wo(x,function(){Vr==sa&&ai(Ti)}),150)}else{var Mo=Ti.clientY<rr.top?-20:Ti.clientY>rr.bottom?20:0;Mo&&setTimeout(Wo(x,function(){Vr==sa&&(oe.scroller.scrollTop+=Mo,ai(Ti))}),50)}}function wi(Ti){x.state.selectingText=!1,Vr=1/0,Ti&&(yr(Ti),oe.input.focus()),lr(oe.wrapper.ownerDocument,"mousemove",Hi),lr(oe.wrapper.ownerDocument,"mouseup",ta),he.history.lastSelOrigin=null}var Hi=Wo(x,function(Ti){Ti.buttons===0||!hr(Ti)?wi(Ti):ai(Ti)}),ta=Wo(x,wi);x.state.selectingText=ta,ln(oe.wrapper.ownerDocument,"mousemove",Hi),ln(oe.wrapper.ownerDocument,"mouseup",ta)}function mu(x,z){var ne=z.anchor,te=z.head,oe=Pn(x.doc,ne.line);if(Jt(ne,te)==0&&ne.sticky==te.sticky)return z;var he=zt(oe);if(!he)return z;var ke=un(he,ne.ch,ne.sticky),ze=he[ke];if(ze.from!=ne.ch&&ze.to!=ne.ch)return z;var _e=ke+(ze.from==ne.ch==(ze.level!=1)?0:1);if(_e==0||_e==he.length)return z;var et;if(te.line!=ne.line)et=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var qt=un(he,te.ch,te.sticky),gn=qt-ke||(te.ch-ne.ch)*(ze.level==1?-1:1);qt==_e-1||qt==_e?et=gn<0:et=gn>0}var pr=he[_e+(et?-1:0)],rr=et==(pr.level==1),Vr=rr?pr.from:pr.to,ai=rr?"after":"before";return ne.ch==Vr&&ne.sticky==ai?z:new Yo(new Tt(ne.line,Vr,ai),te)}function Gc(x,z,ne,te){var oe,he;if(z.touches)oe=z.touches[0].clientX,he=z.touches[0].clientY;else try{oe=z.clientX,he=z.clientY}catch(pr){return!1}if(oe>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&yr(z);var ke=x.display,ze=ke.lineDiv.getBoundingClientRect();if(he>ze.bottom||!Hn(x,ne))return or(z);he-=ze.top-ke.viewOffset;for(var _e=0;_e<x.display.gutterSpecs.length;++_e){var et=ke.gutters.childNodes[_e];if(et&&et.getBoundingClientRect().right>=oe){var qt=Yr(x.doc,he),gn=x.display.gutterSpecs[_e];return xt(x,ne,x,qt,gn.className,z),or(z)}}}function bl(x,z){return Gc(x,z,"gutterClick",!0)}function pc(x,z){_i(x.display,z)||ad(x,z)||Yt(x,z,"contextmenu")||xe||x.display.input.onContextMenu(z)}function ad(x,z){return Hn(x,"gutterContextMenu")?Gc(x,z,"gutterContextMenu",!1):!1}function od(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),oa(x)}var Mc={toString:function(){return"CodeMirror.Init"}},Td={},gu={};function Ru(x){var z=x.optionHandlers;function ne(te,oe,he,ke){x.defaults[te]=oe,he&&(z[te]=ke?function(ze,_e,et){et!=Mc&&he(ze,_e,et)}:he)}x.defineOption=ne,x.Init=Mc,ne("value","",function(te,oe){return te.setValue(oe)},!0),ne("mode",null,function(te,oe){te.doc.modeOption=oe,cu(te)},!0),ne("indentUnit",2,cu,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){Vc(te),oa(te),Da(te)},!0),ne("lineSeparator",null,function(te,oe){if(te.doc.lineSep=oe,!!oe){var he=[],ke=te.doc.first;te.doc.iter(function(_e){for(var et=0;;){var qt=_e.text.indexOf(oe,et);if(qt==-1)break;et=qt+oe.length,he.push(Tt(ke,qt))}ke++});for(var ze=he.length-1;ze>=0;ze--)Ka(te.doc,oe,he[ze],Tt(he[ze].line,he[ze].ch+oe.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,oe,he){te.state.specialChars=new RegExp(oe.source+(oe.test(" ")?"":"| "),"g"),he!=Mc&&te.refresh()}),ne("specialCharPlaceholder",je,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",We?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,oe){return te.getInputField().spellcheck=oe},!0),ne("autocorrect",!1,function(te,oe){return te.getInputField().autocorrect=oe},!0),ne("autocapitalize",!1,function(te,oe){return te.getInputField().autocapitalize=oe},!0),ne("rtlMoveVisually",!Lt),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){od(te),Uc(te)},!0),ne("keyMap","default",function(te,oe,he){var ke=Es(oe),ze=he!=Mc&&Es(he);ze&&ze.detach&&ze.detach(te,ke),ke.attach&&ke.attach(te,ze||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,Fu,!0),ne("gutters",[],function(te,oe){te.display.gutterSpecs=Lu(oe,te.options.lineNumbers),Uc(te)},!0),ne("fixedGutter",!0,function(te,oe){te.display.gutters.style.left=oe?Js(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return Hl(te)},!0),ne("scrollbarStyle","native",function(te){Tc(te),Hl(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,oe){te.display.gutterSpecs=Lu(te.options.gutters,oe),Uc(te)},!0),ne("firstLineNumber",1,Uc,!0),ne("lineNumberFormatter",function(te){return te},Uc,!0),ne("showCursorWhenSelecting",!1,ml,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,oe){oe=="nocursor"&&(rl(te),te.display.input.blur()),te.display.input.readOnlyChanged(oe)}),ne("screenReaderLabel",null,function(te,oe){oe=oe===""?null:oe,te.display.input.screenReaderLabelChanged(oe)}),ne("disableInput",!1,function(te,oe){oe||te.display.input.reset()},!0),ne("dragDrop",!0,sd),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,ml,!0),ne("singleCursorHeightPerLine",!0,ml,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,Vc,!0),ne("addModeClass",!1,Vc,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,oe){return te.doc.history.undoDepth=oe}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,Vc,!0),ne("moveInputWithCursor",!0,function(te,oe){oe||te.display.input.resetPosition()}),ne("tabindex",null,function(te,oe){return te.display.input.getField().tabIndex=oe||""}),ne("autofocus",null),ne("direction","ltr",function(te,oe){return te.doc.setDirection(oe)},!0),ne("phrases",null)}function sd(x,z,ne){var te=ne&&ne!=Mc;if(!z!=!te){var oe=x.display.dragFunctions,he=z?ln:lr;he(x.display.scroller,"dragstart",oe.start),he(x.display.scroller,"dragenter",oe.enter),he(x.display.scroller,"dragover",oe.over),he(x.display.scroller,"dragleave",oe.leave),he(x.display.scroller,"drop",oe.drop)}}function Fu(x){x.options.lineWrapping?(xn(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(Ze(x.display.wrapper,"CodeMirror-wrap"),dn(x)),ds(x),Da(x),oa(x),setTimeout(function(){return Hl(x)},100)}function Ga(x,z){var ne=this;if(!(this instanceof Ga))return new Ga(x,z);this.options=z=z?Tn(z):{},Tn(Td,z,!1);var te=z.value;typeof te=="string"?te=new Di(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var oe=new Ga.inputStyles[z.inputStyle](this),he=this.display=new nf(x,te,oe,z);he.wrapper.CodeMirror=this,od(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Tc(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ae,keySeq:null,specialChars:null},z.autofocus&&!We&&he.input.focus(),be&&Me<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),Od(this),Kl(),tc(this),this.curOp.forceUpdate=!0,uu(this,te),z.autofocus&&!We||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&Qo(ne)},20):rl(this);for(var ke in gu)gu.hasOwnProperty(ke)&&gu[ke](this,z[ke],Mc);ku(this),z.finishInit&&z.finishInit(this);for(var ze=0;ze<zu.length;++ze)zu[ze](this);nc(this),ue&&z.lineWrapping&&getComputedStyle(he.lineDiv).textRendering=="optimizelegibility"&&(he.lineDiv.style.textRendering="auto")}Ga.defaults=Td,Ga.optionHandlers=gu;function Od(x){var z=x.display;ln(z.scroller,"mousedown",Wo(x,Gs)),be&&Me<11?ln(z.scroller,"dblclick",Wo(x,function(_e){if(!Yt(x,_e)){var et=Hs(x,_e);if(!(!et||bl(x,_e)||_i(x.display,_e))){yr(_e);var qt=x.findWordAt(et);br(x.doc,qt.anchor,qt.head)}}})):ln(z.scroller,"dblclick",function(_e){return Yt(x,_e)||yr(_e)}),ln(z.scroller,"contextmenu",function(_e){return pc(x,_e)}),ln(z.input.getField(),"contextmenu",function(_e){z.scroller.contains(_e.target)||pc(x,_e)});var ne,te={end:0};function oe(){z.activeTouch&&(ne=setTimeout(function(){return z.activeTouch=null},1e3),te=z.activeTouch,te.end=+new Date)}function he(_e){if(_e.touches.length!=1)return!1;var et=_e.touches[0];return et.radiusX<=1&&et.radiusY<=1}function ke(_e,et){if(et.left==null)return!0;var qt=et.left-_e.left,gn=et.top-_e.top;return qt*qt+gn*gn>20*20}ln(z.scroller,"touchstart",function(_e){if(!Yt(x,_e)&&!he(_e)&&!bl(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)}}),ln(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),ln(z.scroller,"touchend",function(_e){var et=z.activeTouch;if(et&&!_i(z,_e)&&et.left!=null&&!et.moved&&new Date-et.start<300){var qt=x.coordsChar(z.activeTouch,"page"),gn;!et.prev||ke(et,et.prev)?gn=new Yo(qt,qt):!et.prev.prev||ke(et,et.prev.prev)?gn=x.findWordAt(qt):gn=new Yo(Tt(qt.line,0),Ir(x.doc,Tt(qt.line+1,0))),x.setSelection(gn.anchor,gn.head),x.focus(),yr(_e)}oe()}),ln(z.scroller,"touchcancel",oe),ln(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Eo(x,z.scroller.scrollTop),Ss(x,z.scroller.scrollLeft,!0),xt(x,"scroll",x))}),ln(z.scroller,"mousewheel",function(_e){return $u(x,_e)}),ln(z.scroller,"DOMMouseScroll",function(_e){return $u(x,_e)}),ln(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(_e){Yt(x,_e)||Dr(_e)},over:function(_e){Yt(x,_e)||(ol(x,_e),Dr(_e))},start:function(_e){return wo(x,_e)},drop:Wo(x,Do),leave:function(_e){Yt(x,_e)||Ds(x)}};var ze=z.input.getField();ln(ze,"keyup",function(_e){return kl.call(x,_e)}),ln(ze,"keydown",Wo(x,Vs)),ln(ze,"keypress",Wo(x,lc)),ln(ze,"focus",function(_e){return Qo(x,_e)}),ln(ze,"blur",function(_e){return rl(x,_e)})}var zu=[];Ga.defineInitHook=function(x){return zu.push(x)};function Ql(x,z,ne,te){var oe=x.doc,he;ne==null&&(ne="add"),ne=="smart"&&(oe.mode.indent?he=na(x,z).state:ne="prev");var ke=x.options.tabSize,ze=Pn(oe,z),_e=at(ze.text,null,ke);ze.stateAfter&&(ze.stateAfter=null);var et=ze.text.match(/^\s*/)[0],qt;if(!te&&!/\S/.test(ze.text))qt=0,ne="not";else if(ne=="smart"&&(qt=oe.mode.indent(he,ze.text.slice(et.length),ze.text),qt==Pt||qt>150)){if(!te)return;ne="prev"}ne=="prev"?z>oe.first?qt=at(Pn(oe,z-1).text,null,ke):qt=0:ne=="add"?qt=_e+x.options.indentUnit:ne=="subtract"?qt=_e-x.options.indentUnit:typeof ne=="number"&&(qt=_e+ne),qt=Math.max(0,qt);var gn="",pr=0;if(x.options.indentWithTabs)for(var rr=Math.floor(qt/ke);rr;--rr)pr+=ke,gn+=" ";if(pr<qt&&(gn+=$t(qt-pr)),gn!=et)return Ka(oe,gn,Tt(z,0),Tt(z,et.length),"+input"),ze.stateAfter=null,!0;for(var Vr=0;Vr<oe.sel.ranges.length;Vr++){var ai=oe.sel.ranges[Vr];if(ai.head.line==z&&ai.head.ch<et.length){var wi=Tt(z,et.length);Hr(oe,Vr,new Yo(wi,wi));break}}}var ac=null;function mc(x){ac=x}function vu(x,z,ne,te,oe){var he=x.doc;x.display.shift=!1,te||(te=he.sel);var ke=+new Date-200,ze=oe=="paste"||x.state.pasteIncoming>ke,_e=Zt(z),et=null;if(ze&&te.ranges.length>1)if(ac&&ac.text.join(`
|
|
|
`)==z){if(te.ranges.length%ac.text.length==0){et=[];for(var qt=0;qt<ac.text.length;qt++)et.push(he.splitLines(ac.text[qt]))}}else _e.length==te.ranges.length&&x.options.pasteLinesPerSelection&&(et=Qn(_e,function(Hi){return[Hi]}));for(var gn=x.curOp.updateInput,pr=te.ranges.length-1;pr>=0;pr--){var rr=te.ranges[pr],Vr=rr.from(),ai=rr.to();rr.empty()&&(ne&&ne>0?Vr=Tt(Vr.line,Vr.ch-ne):x.state.overwrite&&!ze?ai=Tt(ai.line,Math.min(Pn(he,ai.line).text.length,ai.ch+yn(_e).length)):ze&&ac&&ac.lineWise&&ac.text.join(`
|
|
|
`)==_e.join(`
|
|
|
`)&&(Vr=ai=Tt(Vr.line,0)));var wi={from:Vr,to:ai,text:et?et[pr%et.length]:_e,origin:oe||(ze?"paste":x.state.cutIncoming>ke?"cut":"+input")};Ui(x.doc,wi),_n(x,"inputRead",x,wi)}z&&!ze&&yu(x,z),il(x),x.curOp.updateInput<2&&(x.curOp.updateInput=gn),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function Ku(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&ho(z,function(){return vu(z,ne,0,null,"paste")}),!0}function yu(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ne=x.doc.sel,te=ne.ranges.length-1;te>=0;te--){var oe=ne.ranges[te];if(!(oe.head.ch>100||te&&ne.ranges[te-1].head.line==oe.head.line)){var he=x.getModeAt(oe.head),ke=!1;if(he.electricChars){for(var ze=0;ze<he.electricChars.length;ze++)if(z.indexOf(he.electricChars.charAt(ze))>-1){ke=Ql(x,oe.head.line,"smart");break}}else he.electricInput&&he.electricInput.test(Pn(x.doc,oe.head.line).text.slice(0,oe.head.ch))&&(ke=Ql(x,oe.head.line,"smart"));ke&&_n(x,"electricInput",x,oe.head.line)}}}function zc(x){for(var z=[],ne=[],te=0;te<x.doc.sel.ranges.length;te++){var oe=x.doc.sel.ranges[te].head.line,he={anchor:Tt(oe,0),head:Tt(oe+1,0)};ne.push(he),z.push(x.getRange(he.anchor,he.head))}return{text:z,ranges:ne}}function Nd(x,z,ne,te){x.setAttribute("autocorrect",ne?"":"off"),x.setAttribute("autocapitalize",te?"":"off"),x.setAttribute("spellcheck",!!z)}function Fo(){var x=pt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=pt("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ue?x.style.width="1000px":x.setAttribute("wrap","off"),dt&&(x.style.border="1px solid black"),Nd(x),z}function as(x){var z=x.optionHandlers,ne=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(te,oe){var he=this.options,ke=he[te];he[te]==oe&&te!="mode"||(he[te]=oe,z.hasOwnProperty(te)&&Wo(this,z[te])(this,oe,ke),xt(this,"optionChange",this,te))},getOption:function(te){return this.options[te]},getDoc:function(){return this.doc},addKeyMap:function(te,oe){this.state.keyMaps[oe?"push":"unshift"](Es(te))},removeKeyMap:function(te){for(var oe=this.state.keyMaps,he=0;he<oe.length;++he)if(oe[he]==te||oe[he].name==te)return oe.splice(he,1),!0},addOverlay:Ho(function(te,oe){var he=te.token?te:x.getMode(this.options,te);if(he.startState)throw new Error("Overlays may not be stateful.");Cn(this.state.overlays,{mode:he,modeSpec:te,opaque:oe&&oe.opaque,priority:oe&&oe.priority||0},function(ke){return ke.priority}),this.state.modeGen++,Da(this)}),removeOverlay:Ho(function(te){for(var oe=this.state.overlays,he=0;he<oe.length;++he){var ke=oe[he].modeSpec;if(ke==te||typeof te=="string"&&ke.name==te){oe.splice(he,1),this.state.modeGen++,Da(this);return}}}),indentLine:Ho(function(te,oe,he){typeof oe!="string"&&typeof oe!="number"&&(oe==null?oe=this.options.smartIndent?"smart":"prev":oe=oe?"add":"subtract"),Qr(this.doc,te)&&Ql(this,te,oe,he)}),indentSelection:Ho(function(te){for(var oe=this.doc.sel.ranges,he=-1,ke=0;ke<oe.length;ke++){var ze=oe[ke];if(ze.empty())ze.head.line>he&&(Ql(this,ze.head.line,te,!0),he=ze.head.line,ke==this.doc.sel.primIndex&&il(this));else{var _e=ze.from(),et=ze.to(),qt=Math.max(he,_e.line);he=Math.min(this.lastLine(),et.line-(et.ch?0:1))+1;for(var gn=qt;gn<he;++gn)Ql(this,gn,te);var pr=this.doc.sel.ranges;_e.ch==0&&oe.length==pr.length&&pr[ke].from().ch>0&&Hr(this.doc,ke,new Yo(_e,pr[ke].to()),ht)}}}),getTokenAt:function(te,oe){return Ba(this,te,oe)},getLineTokens:function(te,oe){return Ba(this,Tt(te),oe,!0)},getTokenTypeAt:function(te){te=Ir(this.doc,te);var oe=fa(this,Pn(this.doc,te.line)),he=0,ke=(oe.length-1)/2,ze=te.ch,_e;if(ze==0)_e=oe[2];else for(;;){var et=he+ke>>1;if((et?oe[et*2-1]:0)>=ze)ke=et;else if(oe[et*2+1]<ze)he=et+1;else{_e=oe[et*2+2];break}}var qt=_e?_e.indexOf("overlay "):-1;return qt<0?_e:qt==0?null:_e.slice(0,qt-1)},getModeAt:function(te){var oe=this.doc.mode;return oe.innerMode?x.innerMode(oe,this.getTokenAt(te).state).mode:oe},getHelper:function(te,oe){return this.getHelpers(te,oe)[0]},getHelpers:function(te,oe){var he=[];if(!ne.hasOwnProperty(oe))return he;var ke=ne[oe],ze=this.getModeAt(te);if(typeof ze[oe]=="string")ke[ze[oe]]&&he.push(ke[ze[oe]]);else if(ze[oe])for(var _e=0;_e<ze[oe].length;_e++){var et=ke[ze[oe][_e]];et&&he.push(et)}else ze.helperType&&ke[ze.helperType]?he.push(ke[ze.helperType]):ke[ze.name]&&he.push(ke[ze.name]);for(var qt=0;qt<ke._global.length;qt++){var gn=ke._global[qt];gn.pred(ze,this)&&St(he,gn.val)==-1&&he.push(gn.val)}return he},getStateAfter:function(te,oe){var he=this.doc;return te=sr(he,te==null?he.first+he.size-1:te),na(this,te+1,oe).state},cursorCoords:function(te,oe){var he,ke=this.doc.sel.primary();return te==null?he=ke.head:typeof te=="object"?he=Ir(this.doc,te):he=te?ke.from():ke.to(),uo(this,he,oe||"page")},charCoords:function(te,oe){return Xo(this,Ir(this.doc,te),oe||"page")},coordsChar:function(te,oe){return te=Ao(this,te,oe||"page"),rs(this,te.left,te.top)},lineAtHeight:function(te,oe){return te=Ao(this,{top:te,left:0},oe||"page").top,Yr(this.doc,te+this.display.viewOffset)},heightAtLine:function(te,oe,he){var ke=!1,ze;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,ke=!0),ze=Pn(this.doc,te)}else ze=te;return xo(this,ze,{top:0,left:0},oe||"page",he||ke).top+(ke?this.doc.height-Mn(ze):0)},defaultTextHeight:function(){return Uo(this.display)},defaultCharWidth:function(){return us(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,oe,he,ke,ze){var _e=this.display;te=uo(this,Ir(this.doc,te));var et=te.bottom,qt=te.left;if(oe.style.position="absolute",oe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(oe),_e.sizer.appendChild(oe),ke=="over")et=te.top;else if(ke=="above"||ke=="near"){var gn=Math.max(_e.wrapper.clientHeight,this.doc.height),pr=Math.max(_e.sizer.clientWidth,_e.lineSpace.clientWidth);(ke=="above"||te.bottom+oe.offsetHeight>gn)&&te.top>oe.offsetHeight?et=te.top-oe.offsetHeight:te.bottom+oe.offsetHeight<=gn&&(et=te.bottom),qt+oe.offsetWidth>pr&&(qt=pr-oe.offsetWidth)}oe.style.top=et+"px",oe.style.left=oe.style.right="",ze=="right"?(qt=_e.sizer.clientWidth-oe.offsetWidth,oe.style.right="0px"):(ze=="left"?qt=0:ze=="middle"&&(qt=(_e.sizer.clientWidth-oe.offsetWidth)/2),oe.style.left=qt+"px"),he&&Sc(this,{left:qt,top:et,right:qt+oe.offsetWidth,bottom:et+oe.offsetHeight})},triggerOnKeyDown:Ho(Vs),triggerOnKeyPress:Ho(lc),triggerOnKeyUp:kl,triggerOnMouseDown:Ho(Gs),execCommand:function(te){if(ms.hasOwnProperty(te))return ms[te].call(null,this)},triggerElectric:Ho(function(te){yu(this,te)}),findPosH:function(te,oe,he,ke){var ze=1;oe<0&&(ze=-1,oe=-oe);for(var _e=Ir(this.doc,te),et=0;et<oe&&(_e=Nl(this.doc,_e,ze,he,ke),!_e.hitSide);++et);return _e},moveH:Ho(function(te,oe){var he=this;this.extendSelectionsBy(function(ke){return he.display.shift||he.doc.extend||ke.empty()?Nl(he.doc,ke.head,te,oe,he.options.rtlMoveVisually):te<0?ke.from():ke.to()},Qt)}),deleteH:Ho(function(te,oe){var he=this.doc.sel,ke=this.doc;he.somethingSelected()?ke.replaceSelection("",null,"+delete"):Al(this,function(ze){var _e=Nl(ke,ze.head,te,oe,!1);return te<0?{from:_e,to:ze.head}:{from:ze.head,to:_e}})}),findPosV:function(te,oe,he,ke){var ze=1,_e=ke;oe<0&&(ze=-1,oe=-oe);for(var et=Ir(this.doc,te),qt=0;qt<oe;++qt){var gn=uo(this,et,"div");if(_e==null?_e=gn.left:gn.left=_e,et=gc(this,gn,ze,he),et.hitSide)break}return et},moveV:Ho(function(te,oe){var he=this,ke=this.doc,ze=[],_e=!this.display.shift&&!ke.extend&&ke.sel.somethingSelected();if(ke.extendSelectionsBy(function(qt){if(_e)return te<0?qt.from():qt.to();var gn=uo(he,qt.head,"div");qt.goalColumn!=null&&(gn.left=qt.goalColumn),ze.push(gn.left);var pr=gc(he,gn,te,oe);return oe=="page"&&qt==ke.sel.primary()&&Cl(he,Xo(he,pr,"div").top-gn.top),pr},Qt),ze.length)for(var et=0;et<ke.sel.ranges.length;et++)ke.sel.ranges[et].goalColumn=ze[et]}),findWordAt:function(te){var oe=this.doc,he=Pn(oe,te.line).text,ke=te.ch,ze=te.ch;if(he){var _e=this.getHelper(te,"wordChars");(te.sticky=="before"||ze==he.length)&&ke?--ke:++ze;for(var et=he.charAt(ke),qt=de(et,_e)?function(gn){return de(gn,_e)}:/\s/.test(et)?function(gn){return/\s/.test(gn)}:function(gn){return!/\s/.test(gn)&&!de(gn)};ke>0&&qt(he.charAt(ke-1));)--ke;for(;ze<he.length&&qt(he.charAt(ze));)++ze}return new Yo(Tt(te.line,ke),Tt(te.line,ze))},toggleOverwrite:function(te){te!=null&&te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?xn(this.display.cursorDiv,"CodeMirror-overwrite"):Ze(this.display.cursorDiv,"CodeMirror-overwrite"),xt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==bt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ho(function(te,oe){ql(this,te,oe)}),getScrollInfo:function(){var te=this.display.scroller;return{left:te.scrollLeft,top:te.scrollTop,height:te.scrollHeight-Bi(this)-this.display.barHeight,width:te.scrollWidth-Bi(this)-this.display.barWidth,clientHeight:Ji(this),clientWidth:fi(this)}},scrollIntoView:Ho(function(te,oe){te==null?(te={from:this.doc.sel.primary().head,to:null},oe==null&&(oe=this.options.cursorScrollMargin)):typeof te=="number"?te={from:Tt(te,0),to:null}:te.from==null&&(te={from:te,to:null}),te.to||(te.to=te.from),te.margin=oe||0,te.from.line!=null?dl(this,te):is(this,te.from,te.to,te.margin)}),setSize:Ho(function(te,oe){var he=this,ke=function(_e){return typeof _e=="number"||/^\d+$/.test(String(_e))?_e+"px":_e};te!=null&&(this.display.wrapper.style.width=ke(te)),oe!=null&&(this.display.wrapper.style.height=ke(oe)),this.options.lineWrapping&&_a(this);var ze=this.display.viewFrom;this.doc.iter(ze,this.display.viewTo,function(_e){if(_e.widgets){for(var et=0;et<_e.widgets.length;et++)if(_e.widgets[et].noHScroll){po(he,ze,"widget");break}}++ze}),this.curOp.forceUpdate=!0,xt(this,"refresh",this)}),operation:function(te){return ho(this,te)},startOperation:function(){return tc(this)},endOperation:function(){return nc(this)},refresh:Ho(function(){var te=this.display.cachedTextHeight;Da(this),this.curOp.forceUpdate=!0,oa(this),ql(this,this.doc.scrollLeft,this.doc.scrollTop),Au(this.display),(te==null||Math.abs(te-Uo(this.display))>.5||this.options.lineWrapping)&&ds(this),xt(this,"refresh",this)}),swapDoc:Ho(function(te){var oe=this.doc;return oe.cm=null,this.state.selectingText&&this.state.selectingText(),uu(this,te),oa(this),this.display.input.reset(),ql(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,_n(this,"swapDoc",this,oe),oe}),phrase:function(te){var oe=this.options.phrases;return oe&&Object.prototype.hasOwnProperty.call(oe,te)?oe[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}},$n(x),x.registerHelper=function(te,oe,he){ne.hasOwnProperty(te)||(ne[te]=x[te]={_global:[]}),ne[te][oe]=he},x.registerGlobalHelper=function(te,oe,he,ke){x.registerHelper(te,oe,ke),ne[te]._global.push({pred:he,val:ke})}}function Nl(x,z,ne,te,oe){var he=z,ke=ne,ze=Pn(x,z.line),_e=oe&&x.direction=="rtl"?-ne:ne;function et(){var ta=z.line+_e;return ta<x.first||ta>=x.first+x.size?!1:(z=new Tt(ta,z.ch,z.sticky),ze=Pn(x,ta))}function qt(ta){var Ti;if(te=="codepoint"){var sa=ze.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(sa)?Ti=null:Ti=new Tt(z.line,Math.max(0,Math.min(ze.text.length,z.ch+ne*(sa>=55296&&sa<56320?2:1))),-ne)}else oe?Ti=As(x.cm,ze,z,ne):Ti=js(ze,z,ne);if(Ti==null)if(!ta&&et())z=Us(oe,x.cm,ze,z.line,_e);else return!1;else z=Ti;return!0}if(te=="char"||te=="codepoint")qt();else if(te=="column")qt(!0);else if(te=="word"||te=="group")for(var gn=null,pr=te=="group",rr=x.cm&&x.cm.getHelper(z,"wordChars"),Vr=!0;!(ne<0&&!qt(!Vr));Vr=!1){var ai=ze.text.charAt(z.ch)||`
|
|
|
`,wi=de(ai,rr)?"w":pr&&ai==`
|
|
|
`?"n":!pr||/\s/.test(ai)?null:"p";if(pr&&!Vr&&!wi&&(wi="s"),gn&&gn!=wi){ne<0&&(ne=1,qt(),z.sticky="after");break}if(wi&&(gn=wi),ne>0&&!qt(!Vr))break}var Hi=$i(x,z,he,ke,!0);return er(he,Hi)&&(Hi.hitSide=!0),Hi}function gc(x,z,ne,te){var oe=x.doc,he=z.left,ke;if(te=="page"){var ze=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),_e=Math.max(ze-.5*Uo(x.display),3);ke=(ne>0?z.bottom:z.top)+ne*_e}else te=="line"&&(ke=ne>0?z.bottom+3:z.top-3);for(var et;et=rs(x,he,ke),!!et.outside;){if(ne<0?ke<=0:ke>=oe.height){et.hitSide=!0;break}ke+=ne*5}return et}var zo=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ae,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};zo.prototype.init=function(x){var z=this,ne=this,te=ne.cm,oe=ne.div=x.lineDiv;Nd(oe,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function he(ze){for(var _e=ze.target;_e;_e=_e.parentNode){if(_e==oe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_e.className))break}return!1}ln(oe,"paste",function(ze){!he(ze)||Yt(te,ze)||Ku(ze,te)||Me<=11&&setTimeout(Wo(te,function(){return z.updateFromDOM()}),20)}),ln(oe,"compositionstart",function(ze){z.composing={data:ze.data,done:!1}}),ln(oe,"compositionupdate",function(ze){z.composing||(z.composing={data:ze.data,done:!1})}),ln(oe,"compositionend",function(ze){z.composing&&(ze.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),ln(oe,"touchstart",function(){return ne.forceCompositionEnd()}),ln(oe,"input",function(){z.composing||z.readFromDOMSoon()});function ke(ze){if(!(!he(ze)||Yt(te,ze))){if(te.somethingSelected())mc({lineWise:!1,text:te.getSelections()}),ze.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var _e=zc(te);mc({lineWise:!0,text:_e.text}),ze.type=="cut"&&te.operation(function(){te.setSelections(_e.ranges,0,ht),te.replaceSelection("",null,"cut")})}else return;if(ze.clipboardData){ze.clipboardData.clearData();var et=ac.text.join(`
|
|
|
`);if(ze.clipboardData.setData("Text",et),ze.clipboardData.getData("Text")==et){ze.preventDefault();return}}var qt=Fo(),gn=qt.firstChild;te.display.lineSpace.insertBefore(qt,te.display.lineSpace.firstChild),gn.value=ac.text.join(`
|
|
|
`);var pr=document.activeElement;Gt(gn),setTimeout(function(){te.display.lineSpace.removeChild(qt),pr.focus(),pr==oe&&ne.showPrimarySelection()},50)}}ln(oe,"copy",ke),ln(oe,"cut",ke)},zo.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},zo.prototype.prepareSelection=function(){var x=Sl(this.cm,!1);return x.focus=document.activeElement==this.div,x},zo.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},zo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zo.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,ne=z.doc.sel.primary(),te=ne.from(),oe=ne.to();if(z.display.viewTo==z.display.viewFrom||te.line>=z.display.viewTo||oe.line<z.display.viewFrom){x.removeAllRanges();return}var he=Yc(z,x.anchorNode,x.anchorOffset),ke=Yc(z,x.focusNode,x.focusOffset);if(!(he&&!he.bad&&ke&&!ke.bad&&Jt(Jn(he,ke),te)==0&&Jt(Rn(he,ke),oe)==0)){var ze=z.display.view,_e=te.line>=z.display.viewFrom&&ld(z,te)||{node:ze[0].measure.map[2],offset:0},et=oe.line<z.display.viewTo&&ld(z,oe);if(!et){var qt=ze[ze.length-1].measure,gn=qt.maps?qt.maps[qt.maps.length-1]:qt.map;et={node:gn[gn.length-1],offset:gn[gn.length-2]-gn[gn.length-3]}}if(!_e||!et){x.removeAllRanges();return}var pr=x.rangeCount&&x.getRangeAt(0),rr;try{rr=Ne(_e.node,_e.offset,et.offset,et.node)}catch(Vr){}rr&&(!ie&&z.state.focused?(x.collapse(_e.node,_e.offset),rr.collapsed||(x.removeAllRanges(),x.addRange(rr))):(x.removeAllRanges(),x.addRange(rr)),pr&&x.anchorNode==null?x.addRange(pr):ie&&this.startGracePeriod()),this.rememberSelection()}},zo.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)},zo.prototype.showMultipleSelections=function(x){yt(this.cm.display.cursorDiv,x.cursors),yt(this.cm.display.selectionDiv,x.selection)},zo.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},zo.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var z=x.getRangeAt(0).commonAncestorContainer;return jt(this.div,z)},zo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},zo.prototype.blur=function(){this.div.blur()},zo.prototype.getField=function(){return this.div},zo.prototype.supportsTouch=function(){return!0},zo.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():ho(this.cm,function(){return x.cm.curOp.selectionChanged=!0});function z(){x.cm.state.focused&&(x.pollSelection(),x.polling.set(x.cm.options.pollInterval,z))}this.polling.set(this.cm.options.pollInterval,z)},zo.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},zo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),z=this.cm;if(Xe&&me&&this.cm.display.gutterSpecs.length&&cd(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ne=Yc(z,x.anchorNode,x.anchorOffset),te=Yc(z,x.focusNode,x.focusOffset);ne&&te&&ho(z,function(){Jr(z.doc,ic(ne,te),ht),(ne.bad||te.bad)&&(z.curOp.selectionChanged=!0)})}}},zo.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(),oe=ne.to();if(te.ch==0&&te.line>x.firstLine()&&(te=Tt(te.line-1,Pn(x.doc,te.line-1).length)),oe.ch==Pn(x.doc,oe.line).text.length&&oe.line<x.lastLine()&&(oe=Tt(oe.line+1,0)),te.line<z.viewFrom||oe.line>z.viewTo-1)return!1;var he,ke,ze;te.line==z.viewFrom||(he=Ya(x,te.line))==0?(ke=Pr(z.view[0].line),ze=z.view[0].node):(ke=Pr(z.view[he].line),ze=z.view[he-1].node.nextSibling);var _e=Ya(x,oe.line),et,qt;if(_e==z.view.length-1?(et=z.viewTo-1,qt=z.lineDiv.lastChild):(et=Pr(z.view[_e+1].line)-1,qt=z.view[_e+1].node.previousSibling),!ze)return!1;for(var gn=x.doc.splitLines(ud(x,ze,qt,ke,et)),pr=vr(x.doc,Tt(ke,0),Tt(et,Pn(x.doc,et).text.length));gn.length>1&&pr.length>1;)if(yn(gn)==yn(pr))gn.pop(),pr.pop(),et--;else if(gn[0]==pr[0])gn.shift(),pr.shift(),ke++;else break;for(var rr=0,Vr=0,ai=gn[0],wi=pr[0],Hi=Math.min(ai.length,wi.length);rr<Hi&&ai.charCodeAt(rr)==wi.charCodeAt(rr);)++rr;for(var ta=yn(gn),Ti=yn(pr),sa=Math.min(ta.length-(gn.length==1?rr:0),Ti.length-(pr.length==1?rr:0));Vr<sa&&ta.charCodeAt(ta.length-Vr-1)==Ti.charCodeAt(Ti.length-Vr-1);)++Vr;if(gn.length==1&&pr.length==1&&ke==te.line)for(;rr&&rr>te.ch&&ta.charCodeAt(ta.length-Vr-1)==Ti.charCodeAt(Ti.length-Vr-1);)rr--,Vr++;gn[gn.length-1]=ta.slice(0,ta.length-Vr).replace(/^\u200b+/,""),gn[0]=gn[0].slice(rr).replace(/\u200b+$/,"");var Pa=Tt(ke,rr),Fa=Tt(et,pr.length?yn(pr).length-Vr:0);if(gn.length>1||gn[0]||Jt(Pa,Fa))return Ka(x.doc,gn,Pa,Fa,"+input"),!0},zo.prototype.ensurePolled=function(){this.forceCompositionEnd()},zo.prototype.reset=function(){this.forceCompositionEnd()},zo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},zo.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))},zo.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&ho(this.cm,function(){return Da(x.cm)})},zo.prototype.setUneditable=function(x){x.contentEditable="false"},zo.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||Wo(this.cm,vu)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},zo.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},zo.prototype.onContextMenu=function(){},zo.prototype.resetPosition=function(){},zo.prototype.needsContentAttribute=!0;function ld(x,z){var ne=Ha(x,z.line);if(!ne||ne.hidden)return null;var te=Pn(x.doc,z.line),oe=oo(ne,te,z.line),he=zt(te,x.doc.direction),ke="left";if(he){var ze=un(he,z.ch);ke=ze%2?"right":"left"}var _e=ba(oe.map,z.ch,ke);return _e.offset=_e.collapse=="right"?_e.end:_e.start,_e}function cd(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function Ac(x,z){return z&&(x.bad=!0),x}function ud(x,z,ne,te,oe){var he="",ke=!1,ze=x.doc.lineSeparator(),_e=!1;function et(rr){return function(Vr){return Vr.id==rr}}function qt(){ke&&(he+=ze,_e&&(he+=ze),ke=_e=!1)}function gn(rr){rr&&(qt(),he+=rr)}function pr(rr){if(rr.nodeType==1){var Vr=rr.getAttribute("cm-text");if(Vr){gn(Vr);return}var ai=rr.getAttribute("cm-marker"),wi;if(ai){var Hi=x.findMarks(Tt(te,0),Tt(oe+1,0),et(+ai));Hi.length&&(wi=Hi[0].find(0))&&gn(vr(x.doc,wi.from,wi.to).join(ze));return}if(rr.getAttribute("contenteditable")=="false")return;var ta=/^(pre|div|p|li|table|br)$/i.test(rr.nodeName);if(!/^br$/i.test(rr.nodeName)&&rr.textContent.length==0)return;ta&&qt();for(var Ti=0;Ti<rr.childNodes.length;Ti++)pr(rr.childNodes[Ti]);/^(pre|p)$/i.test(rr.nodeName)&&(_e=!0),ta&&(ke=!0)}else rr.nodeType==3&&gn(rr.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;pr(z),z!=ne;)z=z.nextSibling,_e=!1;return he}function Yc(x,z,ne){var te;if(z==x.display.lineDiv){if(te=x.display.lineDiv.childNodes[ne],!te)return Ac(x.clipPos(Tt(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 oe=0;oe<x.display.view.length;oe++){var he=x.display.view[oe];if(he.node==te)return dh(he,z,ne)}}function dh(x,z,ne){var te=x.text.firstChild,oe=!1;if(!z||!jt(te,z))return Ac(Tt(Pr(x.line),0),!0);if(z==te&&(oe=!0,z=te.childNodes[ne],ne=0,!z)){var he=x.rest?yn(x.rest):x.line;return Ac(Tt(Pr(he),he.text.length),oe)}var ke=z.nodeType==3?z:null,ze=z;for(!ke&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(ke=z.firstChild,ne&&(ne=ke.nodeValue.length));ze.parentNode!=te;)ze=ze.parentNode;var _e=x.measure,et=_e.maps;function qt(wi,Hi,ta){for(var Ti=-1;Ti<(et?et.length:0);Ti++)for(var sa=Ti<0?_e.map:et[Ti],Pa=0;Pa<sa.length;Pa+=3){var Fa=sa[Pa+2];if(Fa==wi||Fa==Hi){var Mo=Pr(Ti<0?x.line:x.rest[Ti]),vs=sa[Pa]+ta;return(ta<0||Fa!=wi)&&(vs=sa[Pa+(ta?1:0)]),Tt(Mo,vs)}}}var gn=qt(ke,ze,ne);if(gn)return Ac(gn,oe);for(var pr=ze.nextSibling,rr=ke?ke.nodeValue.length-ne:0;pr;pr=pr.nextSibling){if(gn=qt(pr,pr.firstChild,0),gn)return Ac(Tt(gn.line,gn.ch-rr),oe);rr+=pr.textContent.length}for(var Vr=ze.previousSibling,ai=ne;Vr;Vr=Vr.previousSibling){if(gn=qt(Vr,Vr.firstChild,-1),gn)return Ac(Tt(gn.line,gn.ch+ai),oe);ai+=Vr.textContent.length}}var gs=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new Ae,this.hasSelection=!1,this.composing=null};gs.prototype.init=function(x){var z=this,ne=this,te=this.cm;this.createField(x);var oe=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),dt&&(oe.style.width="0px"),ln(oe,"input",function(){be&&Me>=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),ln(oe,"paste",function(ke){Yt(te,ke)||Ku(ke,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function he(ke){if(!Yt(te,ke)){if(te.somethingSelected())mc({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var ze=zc(te);mc({lineWise:!0,text:ze.text}),ke.type=="cut"?te.setSelections(ze.ranges,null,ht):(ne.prevInput="",oe.value=ze.text.join(`
|
|
|
`),Gt(oe))}else return;ke.type=="cut"&&(te.state.cutIncoming=+new Date)}}ln(oe,"cut",he),ln(oe,"copy",he),ln(x.scroller,"paste",function(ke){if(!(_i(x,ke)||Yt(te,ke))){if(!oe.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var ze=new Event("paste");ze.clipboardData=ke.clipboardData,oe.dispatchEvent(ze)}}),ln(x.lineSpace,"selectstart",function(ke){_i(x,ke)||yr(ke)}),ln(oe,"compositionstart",function(){var ke=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:ke,range:te.markText(ke,te.getCursor("to"),{className:"CodeMirror-composing"})}}),ln(oe,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},gs.prototype.createField=function(x){this.wrapper=Fo(),this.textarea=this.wrapper.firstChild},gs.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},gs.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ne=x.doc,te=Sl(x);if(x.options.moveInputWithCursor){var oe=uo(x,ne.sel.primary().head,"div"),he=z.wrapper.getBoundingClientRect(),ke=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,oe.top+ke.top-he.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,oe.left+ke.left-he.left))}return te},gs.prototype.showSelection=function(x){var z=this.cm,ne=z.display;yt(ne.cursorDiv,x.cursors),yt(ne.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},gs.prototype.reset=function(x){if(!(this.contextMenuPending||this.composing)){var z=this.cm;if(z.somethingSelected()){this.prevInput="";var ne=z.getSelection();this.textarea.value=ne,z.state.focused&&Gt(this.textarea),be&&Me>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",be&&Me>=9&&(this.hasSelection=null))}},gs.prototype.getField=function(){return this.textarea},gs.prototype.supportsTouch=function(){return!1},gs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!We||bt()!=this.textarea))try{this.textarea.focus()}catch(x){}},gs.prototype.blur=function(){this.textarea.blur()},gs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},gs.prototype.receivedFocus=function(){this.slowPoll()},gs.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},gs.prototype.fastPoll=function(){var x=!1,z=this;z.pollingFast=!0;function ne(){var te=z.poll();!te&&!x?(x=!0,z.polling.set(60,ne)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,ne)},gs.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||Kn(ne)&&!te&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var oe=ne.value;if(oe==te&&!z.somethingSelected())return!1;if(be&&Me>=9&&this.hasSelection===oe||ye&&/[\uf700-\uf7ff]/.test(oe))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var he=oe.charCodeAt(0);if(he==8203&&!te&&(te="\u200B"),he==8666)return this.reset(),this.cm.execCommand("undo")}for(var ke=0,ze=Math.min(te.length,oe.length);ke<ze&&te.charCodeAt(ke)==oe.charCodeAt(ke);)++ke;return ho(z,function(){vu(z,oe.slice(ke),te.length-ke,null,x.composing?"*compose":null),oe.length>1e3||oe.indexOf(`
|
|
|
`)>-1?ne.value=x.prevInput="":x.prevInput=oe,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},gs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},gs.prototype.onKeyPress=function(){be&&Me>=9&&(this.hasSelection=null),this.fastPoll()},gs.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,oe=z.textarea;z.contextMenuPending&&z.contextMenuPending();var he=Hs(ne,x),ke=te.scroller.scrollTop;if(!he||Ie)return;var ze=ne.options.resetSelectionOnContextMenu;ze&&ne.doc.sel.contains(he)==-1&&Wo(ne,Jr)(ne.doc,ic(he),ht);var _e=oe.style.cssText,et=z.wrapper.style.cssText,qt=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",oe.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(x.clientY-qt.top-5)+"px; left: "+(x.clientX-qt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(be?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var gn;ue&&(gn=window.scrollY),te.input.focus(),ue&&window.scrollTo(null,gn),te.input.reset(),ne.somethingSelected()||(oe.value=z.prevInput=" "),z.contextMenuPending=rr,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function pr(){if(oe.selectionStart!=null){var ai=ne.somethingSelected(),wi="\u200B"+(ai?oe.value:"");oe.value="\u21DA",oe.value=wi,z.prevInput=ai?"":"\u200B",oe.selectionStart=1,oe.selectionEnd=wi.length,te.selForContextMenu=ne.doc.sel}}function rr(){if(z.contextMenuPending==rr&&(z.contextMenuPending=!1,z.wrapper.style.cssText=et,oe.style.cssText=_e,be&&Me<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=ke),oe.selectionStart!=null)){(!be||be&&Me<9)&&pr();var ai=0,wi=function(){te.selForContextMenu==ne.doc.sel&&oe.selectionStart==0&&oe.selectionEnd>0&&z.prevInput=="\u200B"?Wo(ne,Ua)(ne):ai++<10?te.detectingSelectAll=setTimeout(wi,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(wi,200)}}if(be&&Me>=9&&pr(),xe){Dr(x);var Vr=function(){lr(window,"mouseup",Vr),setTimeout(rr,20)};ln(window,"mouseup",Vr)}else setTimeout(rr,50)},gs.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},gs.prototype.setUneditable=function(){},gs.prototype.needsContentAttribute=!1;function bu(x,z){if(z=z?Tn(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=bt();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=ze.getValue()}var oe;if(x.form&&(ln(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var he=x.form;oe=he.submit;try{var ke=he.submit=function(){te(),he.submit=oe,he.submit(),he.submit=ke}}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&&(lr(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=oe))}},x.style.display="none";var ze=Ga(function(_e){return x.parentNode.insertBefore(_e,x.nextSibling)},z);return ze}function Hu(x){x.off=lr,x.on=ln,x.wheelEventPixels=Ld,x.Doc=Di,x.splitLines=Zt,x.countColumn=at,x.findColumn=ir,x.isWordChar=pe,x.Pass=Pt,x.signal=xt,x.Line=Gn,x.changeEnd=wc,x.scrollbarModel=fc,x.Pos=Tt,x.cmpPos=Jt,x.modes=Kr,x.mimeModes=Rr,x.resolveMode=Ot,x.getMode=Xt,x.modeExtensions=kn,x.extendMode=lt,x.copyState=Kt,x.startState=nn,x.innerMode=mn,x.commands=ms,x.keyMap=$a,x.keyName=Ml,x.isModifierKey=Ws,x.lookupKey=Bs,x.normalizeKeyMap=lo,x.StringStream=In,x.SharedTextMarker=Wa,x.TextMarker=Zo,x.LineWidget=ts,x.e_preventDefault=yr,x.e_stopPropagation=Fn,x.e_stop=Dr,x.addClass=xn,x.contains=jt,x.rmClass=Ze,x.keyNames=yl}Ru(Ga),as(Ga);var Kc="iter insert remove copy getEditor constructor".split(" ");for(var uc in Di.prototype)Di.prototype.hasOwnProperty(uc)&&St(Kc,uc)<0&&(Ga.prototype[uc]=function(x){return function(){return x.apply(this.doc,arguments)}}(Di.prototype[uc]));return $n(Di),Ga.inputStyles={textarea:gs,contenteditable:zo},Ga.defineMode=function(x){!Ga.defaults.mode&&x!="null"&&(Ga.defaults.mode=x),gr.apply(this,arguments)},Ga.defineMIME=mt,Ga.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),Ga.defineMIME("text/plain","null"),Ga.defineExtension=function(x,z){Ga.prototype[x]=z},Ga.defineDocExtension=function(x,z){Di.prototype[x]=z},Ga.fromTextArea=bu,Hu(Ga),Ga.version="5.58.2",Ga})},49047:function(bn,Ut,re){(function(ie){ie(re(4631),re(29589),re(52539))})(function(ie){"use strict";ie.defineMode("markdown",function(Le,Oe){var Ue=ie.getMode(Le,"text/html"),be=Ue.name=="null";function Me(at){if(ie.findModeByName){var Ae=ie.findModeByName(at);Ae&&(at=Ae.mime||Ae.mimes[0])}var St=ie.getMode(Le,at);return St.name=="null"?null:St}Oe.highlightFormatting===void 0&&(Oe.highlightFormatting=!1),Oe.maxBlockquoteDepth===void 0&&(Oe.maxBlockquoteDepth=0),Oe.taskLists===void 0&&(Oe.taskLists=!1),Oe.strikethrough===void 0&&(Oe.strikethrough=!1),Oe.emoji===void 0&&(Oe.emoji=!1),Oe.fencedCodeBlockHighlighting===void 0&&(Oe.fencedCodeBlockHighlighting=!0),Oe.fencedCodeBlockDefaultMode===void 0&&(Oe.fencedCodeBlockDefaultMode="text/plain"),Oe.xml===void 0&&(Oe.xml=!0),Oe.tokenTypeOverrides===void 0&&(Oe.tokenTypeOverrides={});var ue={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var we in ue)ue.hasOwnProperty(we)&&Oe.tokenTypeOverrides[we]&&(ue[we]=Oe.tokenTypeOverrides[we]);var me=/^([*\-_])(?:\s*\1){2,}\s*$/,Ie=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ct=/^\[(x| )\](?=\s)/i,Ke=Oe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,st=/^ {0,3}(?:\={1,}|-{2,})\s*$/,dt=/^[^#!\[\]*_\\<>` "'(~:]+/,Xe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,We=/^\s*\[[^\]]+?\]:.*$/,ye=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,it=" ";function Lt(at,Ae,St){return Ae.f=Ae.inline=St,St(at,Ae)}function qe(at,Ae,St){return Ae.f=Ae.block=St,St(at,Ae)}function rt(at){return!at||!/\S/.test(at.string)}function xe(at){if(at.linkTitle=!1,at.linkHref=!1,at.linkText=!1,at.em=!1,at.strong=!1,at.strikethrough=!1,at.quote=0,at.indentedCode=!1,at.f==Ze){var Ae=be;if(!Ae){var St=ie.innerMode(Ue,at.htmlState);Ae=St.mode.name=="xml"&&St.state.tagStart===null&&!St.state.context&&St.state.tokenize.isInText}Ae&&(at.f=ft,at.block=Se,at.htmlState=null)}return at.trailingSpace=0,at.trailingSpaceNewLine=!1,at.prevLine=at.thisLine,at.thisLine={stream:null},null}function Se(at,Ae){var St=at.column()===Ae.indentation,cn=rt(Ae.prevLine.stream),Pt=Ae.indentedCode,ht=Ae.prevLine.hr,Et=Ae.list!==!1,Qt=(Ae.listStack[Ae.listStack.length-1]||0)+3;Ae.indentedCode=!1;var ir=Ae.indentation;if(Ae.indentationDiff===null&&(Ae.indentationDiff=Ae.indentation,Et)){for(Ae.list=null;ir<Ae.listStack[Ae.listStack.length-1];)Ae.listStack.pop(),Ae.listStack.length?Ae.indentation=Ae.listStack[Ae.listStack.length-1]:Ae.list=!1;Ae.list!==!1&&(Ae.indentationDiff=ir-Ae.listStack[Ae.listStack.length-1])}var On=!cn&&!ht&&!Ae.prevLine.header&&(!Et||!Pt)&&!Ae.prevLine.fencedCodeEnd,$t=(Ae.list===!1||ht||cn)&&Ae.indentation<=Qt&&at.match(me),yn=null;if(Ae.indentationDiff>=4&&(Pt||Ae.prevLine.fencedCodeEnd||Ae.prevLine.header||cn))return at.skipToEnd(),Ae.indentedCode=!0,ue.code;if(at.eatSpace())return null;if(St&&Ae.indentation<=Qt&&(yn=at.match(Ke))&&yn[1].length<=6)return Ae.quote=0,Ae.header=yn[1].length,Ae.thisLine.header=!0,Oe.highlightFormatting&&(Ae.formatting="header"),Ae.f=Ae.inline,yt(Ae);if(Ae.indentation<=Qt&&at.eat(">"))return Ae.quote=St?1:Ae.quote+1,Oe.highlightFormatting&&(Ae.formatting="quote"),at.eatSpace(),yt(Ae);if(!$t&&!Ae.setext&&St&&Ae.indentation<=Qt&&(yn=at.match(Ie))){var Qn=yn[1]?"ol":"ul";return Ae.indentation=ir+at.current().length,Ae.list=!0,Ae.quote=0,Ae.listStack.push(Ae.indentation),Ae.em=!1,Ae.strong=!1,Ae.code=!1,Ae.strikethrough=!1,Oe.taskLists&&at.match(ct,!1)&&(Ae.taskList=!0),Ae.f=Ae.inline,Oe.highlightFormatting&&(Ae.formatting=["list","list-"+Qn]),yt(Ae)}else{if(St&&Ae.indentation<=Qt&&(yn=at.match(Xe,!0)))return Ae.quote=0,Ae.fencedEndRE=new RegExp(yn[1]+"+ *$"),Ae.localMode=Oe.fencedCodeBlockHighlighting&&Me(yn[2]||Oe.fencedCodeBlockDefaultMode),Ae.localMode&&(Ae.localState=ie.startState(Ae.localMode)),Ae.f=Ae.block=Ge,Oe.highlightFormatting&&(Ae.formatting="code-block"),Ae.code=-1,yt(Ae);if(Ae.setext||(!On||!Et)&&!Ae.quote&&Ae.list===!1&&!Ae.code&&!$t&&!We.test(at.string)&&(yn=at.lookAhead(1))&&(yn=yn.match(st)))return Ae.setext?(Ae.header=Ae.setext,Ae.setext=0,at.skipToEnd(),Oe.highlightFormatting&&(Ae.formatting="header")):(Ae.header=yn[0].charAt(0)=="="?1:2,Ae.setext=Ae.header),Ae.thisLine.header=!0,Ae.f=Ae.inline,yt(Ae);if($t)return at.skipToEnd(),Ae.hr=!0,Ae.thisLine.hr=!0,ue.hr;if(at.peek()==="[")return Lt(at,Ae,Mt)}return Lt(at,Ae,Ae.inline)}function Ze(at,Ae){var St=Ue.token(at,Ae.htmlState);if(!be){var cn=ie.innerMode(Ue,Ae.htmlState);(cn.mode.name=="xml"&&cn.state.tagStart===null&&!cn.state.context&&cn.state.tokenize.isInText||Ae.md_inside&&at.current().indexOf(">")>-1)&&(Ae.f=ft,Ae.block=Se,Ae.htmlState=null)}return St}function Ge(at,Ae){var St=Ae.listStack[Ae.listStack.length-1]||0,cn=Ae.indentation<St,Pt=St+3;if(Ae.fencedEndRE&&Ae.indentation<=Pt&&(cn||at.match(Ae.fencedEndRE))){Oe.highlightFormatting&&(Ae.formatting="code-block");var ht;return cn||(ht=yt(Ae)),Ae.localMode=Ae.localState=null,Ae.block=Se,Ae.f=ft,Ae.fencedEndRE=null,Ae.code=0,Ae.thisLine.fencedCodeEnd=!0,cn?qe(at,Ae,Ae.block):ht}else return Ae.localMode?Ae.localMode.token(at,Ae.localState):(at.skipToEnd(),ue.code)}function yt(at){var Ae=[];if(at.formatting){Ae.push(ue.formatting),typeof at.formatting=="string"&&(at.formatting=[at.formatting]);for(var St=0;St<at.formatting.length;St++)Ae.push(ue.formatting+"-"+at.formatting[St]),at.formatting[St]==="header"&&Ae.push(ue.formatting+"-"+at.formatting[St]+"-"+at.header),at.formatting[St]==="quote"&&(!Oe.maxBlockquoteDepth||Oe.maxBlockquoteDepth>=at.quote?Ae.push(ue.formatting+"-"+at.formatting[St]+"-"+at.quote):Ae.push("error"))}if(at.taskOpen)return Ae.push("meta"),Ae.length?Ae.join(" "):null;if(at.taskClosed)return Ae.push("property"),Ae.length?Ae.join(" "):null;if(at.linkHref?Ae.push(ue.linkHref,"url"):(at.strong&&Ae.push(ue.strong),at.em&&Ae.push(ue.em),at.strikethrough&&Ae.push(ue.strikethrough),at.emoji&&Ae.push(ue.emoji),at.linkText&&Ae.push(ue.linkText),at.code&&Ae.push(ue.code),at.image&&Ae.push(ue.image),at.imageAltText&&Ae.push(ue.imageAltText,"link"),at.imageMarker&&Ae.push(ue.imageMarker)),at.header&&Ae.push(ue.header,ue.header+"-"+at.header),at.quote&&(Ae.push(ue.quote),!Oe.maxBlockquoteDepth||Oe.maxBlockquoteDepth>=at.quote?Ae.push(ue.quote+"-"+at.quote):Ae.push(ue.quote+"-"+Oe.maxBlockquoteDepth)),at.list!==!1){var cn=(at.listStack.length-1)%3;cn?cn===1?Ae.push(ue.list2):Ae.push(ue.list3):Ae.push(ue.list1)}return at.trailingSpaceNewLine?Ae.push("trailing-space-new-line"):at.trailingSpace&&Ae.push("trailing-space-"+(at.trailingSpace%2?"a":"b")),Ae.length?Ae.join(" "):null}function pt(at,Ae){if(at.match(dt,!0))return yt(Ae)}function ft(at,Ae){var St=Ae.text(at,Ae);if(typeof St!="undefined")return St;if(Ae.list)return Ae.list=null,yt(Ae);if(Ae.taskList){var cn=at.match(ct,!0)[1]===" ";return cn?Ae.taskOpen=!0:Ae.taskClosed=!0,Oe.highlightFormatting&&(Ae.formatting="task"),Ae.taskList=!1,yt(Ae)}if(Ae.taskOpen=!1,Ae.taskClosed=!1,Ae.header&&at.match(/^#+$/,!0))return Oe.highlightFormatting&&(Ae.formatting="header"),yt(Ae);var Pt=at.next();if(Ae.linkTitle){Ae.linkTitle=!1;var ht=Pt;Pt==="("&&(ht=")"),ht=(ht+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Et="^\\s*(?:[^"+ht+"\\\\]+|\\\\\\\\|\\\\.)"+ht;if(at.match(new RegExp(Et),!0))return ue.linkHref}if(Pt==="`"){var Qt=Ae.formatting;Oe.highlightFormatting&&(Ae.formatting="code"),at.eatWhile("`");var ir=at.current().length;if(Ae.code==0&&(!Ae.quote||ir==1))return Ae.code=ir,yt(Ae);if(ir==Ae.code){var On=yt(Ae);return Ae.code=0,On}else return Ae.formatting=Qt,yt(Ae)}else if(Ae.code)return yt(Ae);if(Pt==="\\"&&(at.next(),Oe.highlightFormatting)){var $t=yt(Ae),yn=ue.formatting+"-escape";return $t?$t+" "+yn:yn}if(Pt==="!"&&at.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ae.imageMarker=!0,Ae.image=!0,Oe.highlightFormatting&&(Ae.formatting="image"),yt(Ae);if(Pt==="["&&Ae.imageMarker&&at.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ae.imageMarker=!1,Ae.imageAltText=!0,Oe.highlightFormatting&&(Ae.formatting="image"),yt(Ae);if(Pt==="]"&&Ae.imageAltText){Oe.highlightFormatting&&(Ae.formatting="image");var $t=yt(Ae);return Ae.imageAltText=!1,Ae.image=!1,Ae.inline=Ae.f=jt,$t}if(Pt==="["&&!Ae.image)return Ae.linkText&&at.match(/^.*?\]/)||(Ae.linkText=!0,Oe.highlightFormatting&&(Ae.formatting="link")),yt(Ae);if(Pt==="]"&&Ae.linkText){Oe.highlightFormatting&&(Ae.formatting="link");var $t=yt(Ae);return Ae.linkText=!1,Ae.inline=Ae.f=at.match(/\(.*?\)| ?\[.*?\]/,!1)?jt:ft,$t}if(Pt==="<"&&at.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ae.f=Ae.inline=Ne,Oe.highlightFormatting&&(Ae.formatting="link");var $t=yt(Ae);return $t?$t+=" ":$t="",$t+ue.linkInline}if(Pt==="<"&&at.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ae.f=Ae.inline=Ne,Oe.highlightFormatting&&(Ae.formatting="link");var $t=yt(Ae);return $t?$t+=" ":$t="",$t+ue.linkEmail}if(Oe.xml&&Pt==="<"&&at.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Qn=at.string.indexOf(">",at.pos);if(Qn!=-1){var Cn=at.string.substring(at.start,Qn);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Cn)&&(Ae.md_inside=!0)}return at.backUp(1),Ae.htmlState=ie.startState(Ue),qe(at,Ae,Ze)}if(Oe.xml&&Pt==="<"&&at.match(/^\/\w*?>/))return Ae.md_inside=!1,"tag";if(Pt==="*"||Pt==="_"){for(var Pe=1,fe=at.pos==1?" ":at.string.charAt(at.pos-2);Pe<3&&at.eat(Pt);)Pe++;var ce=at.peek()||" ",pe=!/\s/.test(ce)&&(!ye.test(ce)||/\s/.test(fe)||ye.test(fe)),de=!/\s/.test(fe)&&(!ye.test(fe)||/\s/.test(ce)||ye.test(ce)),le=null,Te=null;if(Pe%2&&(!Ae.em&&pe&&(Pt==="*"||!de||ye.test(fe))?le=!0:Ae.em==Pt&&de&&(Pt==="*"||!pe||ye.test(ce))&&(le=!1)),Pe>1&&(!Ae.strong&&pe&&(Pt==="*"||!de||ye.test(fe))?Te=!0:Ae.strong==Pt&&de&&(Pt==="*"||!pe||ye.test(ce))&&(Te=!1)),Te!=null||le!=null){Oe.highlightFormatting&&(Ae.formatting=le==null?"strong":Te==null?"em":"strong em"),le===!0&&(Ae.em=Pt),Te===!0&&(Ae.strong=Pt);var On=yt(Ae);return le===!1&&(Ae.em=!1),Te===!1&&(Ae.strong=!1),On}}else if(Pt===" "&&(at.eat("*")||at.eat("_"))){if(at.peek()===" ")return yt(Ae);at.backUp(1)}if(Oe.strikethrough){if(Pt==="~"&&at.eatWhile(Pt)){if(Ae.strikethrough){Oe.highlightFormatting&&(Ae.formatting="strikethrough");var On=yt(Ae);return Ae.strikethrough=!1,On}else if(at.match(/^[^\s]/,!1))return Ae.strikethrough=!0,Oe.highlightFormatting&&(Ae.formatting="strikethrough"),yt(Ae)}else if(Pt===" "&&at.match(/^~~/,!0)){if(at.peek()===" ")return yt(Ae);at.backUp(2)}}if(Oe.emoji&&Pt===":"&&at.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ae.emoji=!0,Oe.highlightFormatting&&(Ae.formatting="emoji");var ot=yt(Ae);return Ae.emoji=!1,ot}return Pt===" "&&(at.match(/^ +$/,!1)?Ae.trailingSpace++:Ae.trailingSpace&&(Ae.trailingSpaceNewLine=!0)),yt(Ae)}function Ne(at,Ae){var St=at.next();if(St===">"){Ae.f=Ae.inline=ft,Oe.highlightFormatting&&(Ae.formatting="link");var cn=yt(Ae);return cn?cn+=" ":cn="",cn+ue.linkInline}return at.match(/^[^>]+/,!0),ue.linkInline}function jt(at,Ae){if(at.eatSpace())return null;var St=at.next();return St==="("||St==="["?(Ae.f=Ae.inline=xn(St==="("?")":"]"),Oe.highlightFormatting&&(Ae.formatting="link-string"),Ae.linkHref=!0,yt(Ae)):"error"}var bt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function xn(at){return function(Ae,St){var cn=Ae.next();if(cn===at){St.f=St.inline=ft,Oe.highlightFormatting&&(St.formatting="link-string");var Pt=yt(St);return St.linkHref=!1,Pt}return Ae.match(bt[at]),St.linkHref=!0,yt(St)}}function Mt(at,Ae){return at.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ae.f=Gt,at.next(),Oe.highlightFormatting&&(Ae.formatting="link"),Ae.linkText=!0,yt(Ae)):Lt(at,Ae,ft)}function Gt(at,Ae){if(at.match(/^\]:/,!0)){Ae.f=Ae.inline=Bn,Oe.highlightFormatting&&(Ae.formatting="link");var St=yt(Ae);return Ae.linkText=!1,St}return at.match(/^([^\]\\]|\\.)+/,!0),ue.linkText}function Bn(at,Ae){return at.eatSpace()?null:(at.match(/^[^\s]+/,!0),at.peek()===void 0?Ae.linkTitle=!0:at.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ae.f=Ae.inline=ft,ue.linkHref+" url")}var Tn={startState:function(){return{f:Se,prevLine:{stream:null},thisLine:{stream:null},block:Se,htmlState:null,indentation:0,inline:ft,text:pt,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(at){return{f:at.f,prevLine:at.prevLine,thisLine:at.thisLine,block:at.block,htmlState:at.htmlState&&ie.copyState(Ue,at.htmlState),indentation:at.indentation,localMode:at.localMode,localState:at.localMode?ie.copyState(at.localMode,at.localState):null,inline:at.inline,text:at.text,formatting:!1,linkText:at.linkText,linkTitle:at.linkTitle,linkHref:at.linkHref,code:at.code,em:at.em,strong:at.strong,strikethrough:at.strikethrough,emoji:at.emoji,header:at.header,setext:at.setext,hr:at.hr,taskList:at.taskList,list:at.list,listStack:at.listStack.slice(0),quote:at.quote,indentedCode:at.indentedCode,trailingSpace:at.trailingSpace,trailingSpaceNewLine:at.trailingSpaceNewLine,md_inside:at.md_inside,fencedEndRE:at.fencedEndRE}},token:function(at,Ae){if(Ae.formatting=!1,at!=Ae.thisLine.stream){if(Ae.header=0,Ae.hr=!1,at.match(/^\s*$/,!0))return xe(Ae),null;if(Ae.prevLine=Ae.thisLine,Ae.thisLine={stream:at},Ae.taskList=!1,Ae.trailingSpace=0,Ae.trailingSpaceNewLine=!1,!Ae.localState&&(Ae.f=Ae.block,Ae.f!=Ze)){var St=at.match(/^\s*/,!0)[0].replace(/\t/g,it).length;if(Ae.indentation=St,Ae.indentationDiff=null,St>0)return null}}return Ae.f(at,Ae)},innerMode:function(at){return at.block==Ze?{state:at.htmlState,mode:Ue}:at.localState?{state:at.localState,mode:at.localMode}:{state:at,mode:Tn}},indent:function(at,Ae,St){return at.block==Ze&&Ue.indent?Ue.indent(at.htmlState,Ae,St):at.localState&&at.localMode.indent?at.localMode.indent(at.localState,Ae,St):ie.Pass},blankLine:xe,getType:yt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Tn},"xml"),ie.defineMIME("text/markdown","markdown"),ie.defineMIME("text/x-markdown","markdown")})},52539:function(bn,Ut,re){(function(ie){ie(re(4631))})(function(ie){"use strict";ie.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 Le=0;Le<ie.modeInfo.length;Le++){var Oe=ie.modeInfo[Le];Oe.mimes&&(Oe.mime=Oe.mimes[0])}ie.findModeByMIME=function(Ue){Ue=Ue.toLowerCase();for(var be=0;be<ie.modeInfo.length;be++){var Me=ie.modeInfo[be];if(Me.mime==Ue)return Me;if(Me.mimes){for(var ue=0;ue<Me.mimes.length;ue++)if(Me.mimes[ue]==Ue)return Me}}if(/\+xml$/.test(Ue))return ie.findModeByMIME("application/xml");if(/\+json$/.test(Ue))return ie.findModeByMIME("application/json")},ie.findModeByExtension=function(Ue){Ue=Ue.toLowerCase();for(var be=0;be<ie.modeInfo.length;be++){var Me=ie.modeInfo[be];if(Me.ext){for(var ue=0;ue<Me.ext.length;ue++)if(Me.ext[ue]==Ue)return Me}}},ie.findModeByFileName=function(Ue){for(var be=0;be<ie.modeInfo.length;be++){var Me=ie.modeInfo[be];if(Me.file&&Me.file.test(Ue))return Me}var ue=Ue.lastIndexOf("."),we=ue>-1&&Ue.substring(ue+1,Ue.length);if(we)return ie.findModeByExtension(we)},ie.findModeByName=function(Ue){Ue=Ue.toLowerCase();for(var be=0;be<ie.modeInfo.length;be++){var Me=ie.modeInfo[be];if(Me.name.toLowerCase()==Ue)return Me;if(Me.alias){for(var ue=0;ue<Me.alias.length;ue++)if(Me.alias[ue].toLowerCase()==Ue)return Me}}}})},80785:function(bn,Ut,re){(function(ie){ie(re(4631))})(function(ie){"use strict";ie.defineMode("stex",function(Le,Oe){"use strict";function Ue(dt,Xe){dt.cmdState.push(Xe)}function be(dt){return dt.cmdState.length>0?dt.cmdState[dt.cmdState.length-1]:null}function Me(dt){var Xe=dt.cmdState.pop();Xe&&Xe.closeBracket()}function ue(dt){for(var Xe=dt.cmdState,We=Xe.length-1;We>=0;We--){var ye=Xe[We];if(ye.name!="DEFAULT")return ye}return{styleIdentifier:function(){return null}}}function we(dt,Xe,We){return function(){this.name=dt,this.bracketNo=0,this.style=Xe,this.styles=We,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var me={};me.importmodule=we("importmodule","tag",["string","builtin"]),me.documentclass=we("documentclass","tag",["","atom"]),me.usepackage=we("usepackage","tag",["atom"]),me.begin=we("begin","tag",["atom"]),me.end=we("end","tag",["atom"]),me.label=we("label","tag",["atom"]),me.ref=we("ref","tag",["atom"]),me.eqref=we("eqref","tag",["atom"]),me.cite=we("cite","tag",["atom"]),me.bibitem=we("bibitem","tag",["atom"]),me.Bibitem=we("Bibitem","tag",["atom"]),me.RBibitem=we("RBibitem","tag",["atom"]),me.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Ie(dt,Xe){dt.f=Xe}function ct(dt,Xe){var We;if(dt.match(/^\\[a-zA-Z@]+/)){var ye=dt.current().slice(1);return We=me.hasOwnProperty(ye)?me[ye]:me.DEFAULT,We=new We,Ue(Xe,We),Ie(Xe,st),We.style}if(dt.match(/^\\[$&%#{}_]/)||dt.match(/^\\[,;!\/\\]/))return"tag";if(dt.match("\\["))return Ie(Xe,function(Lt,qe){return Ke(Lt,qe,"\\]")}),"keyword";if(dt.match("\\("))return Ie(Xe,function(Lt,qe){return Ke(Lt,qe,"\\)")}),"keyword";if(dt.match("$$"))return Ie(Xe,function(Lt,qe){return Ke(Lt,qe,"$$")}),"keyword";if(dt.match("$"))return Ie(Xe,function(Lt,qe){return Ke(Lt,qe,"$")}),"keyword";var it=dt.next();if(it=="%")return dt.skipToEnd(),"comment";if(it=="}"||it=="]"){if(We=be(Xe),We)We.closeBracket(it),Ie(Xe,st);else return"error";return"bracket"}else return it=="{"||it=="["?(We=me.DEFAULT,We=new We,Ue(Xe,We),"bracket"):/\d/.test(it)?(dt.eatWhile(/[\w.%]/),"atom"):(dt.eatWhile(/[\w\-_]/),We=ue(Xe),We.name=="begin"&&(We.argument=dt.current()),We.styleIdentifier())}function Ke(dt,Xe,We){if(dt.eatSpace())return null;if(We&&dt.match(We))return Ie(Xe,ct),"keyword";if(dt.match(/^\\[a-zA-Z@]+/))return"tag";if(dt.match(/^[a-zA-Z]+/))return"variable-2";if(dt.match(/^\\[$&%#{}_]/)||dt.match(/^\\[,;!\/]/)||dt.match(/^[\^_&]/))return"tag";if(dt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(dt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ye=dt.next();return ye=="{"||ye=="}"||ye=="["||ye=="]"||ye=="("||ye==")"?"bracket":ye=="%"?(dt.skipToEnd(),"comment"):"error"}function st(dt,Xe){var We=dt.peek(),ye;return We=="{"||We=="["?(ye=be(Xe),ye.openBracket(We),dt.eat(We),Ie(Xe,ct),"bracket"):/[ \t\r]/.test(We)?(dt.eat(We),null):(Ie(Xe,ct),Me(Xe),ct(dt,Xe))}return{startState:function(){var dt=Oe.inMathMode?function(Xe,We){return Ke(Xe,We)}:ct;return{cmdState:[],f:dt}},copyState:function(dt){return{cmdState:dt.cmdState.slice(),f:dt.f}},token:function(dt,Xe){return Xe.f(dt,Xe)},blankLine:function(dt){dt.f=ct,dt.cmdState.length=0},lineComment:"%"}}),ie.defineMIME("text/x-stex","stex"),ie.defineMIME("text/x-latex","stex")})},29589:function(bn,Ut,re){(function(ie){ie(re(4631))})(function(ie){"use strict";var Le={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},Oe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ie.defineMode("xml",function(Ue,be){var Me=Ue.indentUnit,ue={},we=be.htmlMode?Le:Oe;for(var me in we)ue[me]=we[me];for(var me in be)ue[me]=be[me];var Ie,ct;function Ke(Ne,jt){function bt(Gt){return jt.tokenize=Gt,Gt(Ne,jt)}var xn=Ne.next();if(xn=="<")return Ne.eat("!")?Ne.eat("[")?Ne.match("CDATA[")?bt(Xe("atom","]]>")):null:Ne.match("--")?bt(Xe("comment","-->")):Ne.match("DOCTYPE",!0,!0)?(Ne.eatWhile(/[\w\._\-]/),bt(We(1))):null:Ne.eat("?")?(Ne.eatWhile(/[\w\._\-]/),jt.tokenize=Xe("meta","?>"),"meta"):(Ie=Ne.eat("/")?"closeTag":"openTag",jt.tokenize=st,"tag bracket");if(xn=="&"){var Mt;return Ne.eat("#")?Ne.eat("x")?Mt=Ne.eatWhile(/[a-fA-F\d]/)&&Ne.eat(";"):Mt=Ne.eatWhile(/[\d]/)&&Ne.eat(";"):Mt=Ne.eatWhile(/[\w\.\-:]/)&&Ne.eat(";"),Mt?"atom":"error"}else return Ne.eatWhile(/[^&<]/),null}Ke.isInText=!0;function st(Ne,jt){var bt=Ne.next();if(bt==">"||bt=="/"&&Ne.eat(">"))return jt.tokenize=Ke,Ie=bt==">"?"endTag":"selfcloseTag","tag bracket";if(bt=="=")return Ie="equals",null;if(bt=="<"){jt.tokenize=Ke,jt.state=qe,jt.tagName=jt.tagStart=null;var xn=jt.tokenize(Ne,jt);return xn?xn+" tag error":"tag error"}else return/[\'\"]/.test(bt)?(jt.tokenize=dt(bt),jt.stringStartCol=Ne.column(),jt.tokenize(Ne,jt)):(Ne.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function dt(Ne){var jt=function(bt,xn){for(;!bt.eol();)if(bt.next()==Ne){xn.tokenize=st;break}return"string"};return jt.isInAttribute=!0,jt}function Xe(Ne,jt){return function(bt,xn){for(;!bt.eol();){if(bt.match(jt)){xn.tokenize=Ke;break}bt.next()}return Ne}}function We(Ne){return function(jt,bt){for(var xn;(xn=jt.next())!=null;){if(xn=="<")return bt.tokenize=We(Ne+1),bt.tokenize(jt,bt);if(xn==">")if(Ne==1){bt.tokenize=Ke;break}else return bt.tokenize=We(Ne-1),bt.tokenize(jt,bt)}return"meta"}}function ye(Ne,jt,bt){this.prev=Ne.context,this.tagName=jt,this.indent=Ne.indented,this.startOfLine=bt,(ue.doNotIndent.hasOwnProperty(jt)||Ne.context&&Ne.context.noIndent)&&(this.noIndent=!0)}function it(Ne){Ne.context&&(Ne.context=Ne.context.prev)}function Lt(Ne,jt){for(var bt;;){if(!Ne.context||(bt=Ne.context.tagName,!ue.contextGrabbers.hasOwnProperty(bt)||!ue.contextGrabbers[bt].hasOwnProperty(jt)))return;it(Ne)}}function qe(Ne,jt,bt){return Ne=="openTag"?(bt.tagStart=jt.column(),rt):Ne=="closeTag"?xe:qe}function rt(Ne,jt,bt){return Ne=="word"?(bt.tagName=jt.current(),ct="tag",Ge):ue.allowMissingTagName&&Ne=="endTag"?(ct="tag bracket",Ge(Ne,jt,bt)):(ct="error",rt)}function xe(Ne,jt,bt){if(Ne=="word"){var xn=jt.current();return bt.context&&bt.context.tagName!=xn&&ue.implicitlyClosed.hasOwnProperty(bt.context.tagName)&&it(bt),bt.context&&bt.context.tagName==xn||ue.matchClosing===!1?(ct="tag",Se):(ct="tag error",Ze)}else return ue.allowMissingTagName&&Ne=="endTag"?(ct="tag bracket",Se(Ne,jt,bt)):(ct="error",Ze)}function Se(Ne,jt,bt){return Ne!="endTag"?(ct="error",Se):(it(bt),qe)}function Ze(Ne,jt,bt){return ct="error",Se(Ne,jt,bt)}function Ge(Ne,jt,bt){if(Ne=="word")return ct="attribute",yt;if(Ne=="endTag"||Ne=="selfcloseTag"){var xn=bt.tagName,Mt=bt.tagStart;return bt.tagName=bt.tagStart=null,Ne=="selfcloseTag"||ue.autoSelfClosers.hasOwnProperty(xn)?Lt(bt,xn):(Lt(bt,xn),bt.context=new ye(bt,xn,Mt==bt.indented)),qe}return ct="error",Ge}function yt(Ne,jt,bt){return Ne=="equals"?pt:(ue.allowMissing||(ct="error"),Ge(Ne,jt,bt))}function pt(Ne,jt,bt){return Ne=="string"?ft:Ne=="word"&&ue.allowUnquoted?(ct="string",Ge):(ct="error",Ge(Ne,jt,bt))}function ft(Ne,jt,bt){return Ne=="string"?ft:Ge(Ne,jt,bt)}return{startState:function(Ne){var jt={tokenize:Ke,state:qe,indented:Ne||0,tagName:null,tagStart:null,context:null};return Ne!=null&&(jt.baseIndent=Ne),jt},token:function(Ne,jt){if(!jt.tagName&&Ne.sol()&&(jt.indented=Ne.indentation()),Ne.eatSpace())return null;Ie=null;var bt=jt.tokenize(Ne,jt);return(bt||Ie)&&bt!="comment"&&(ct=null,jt.state=jt.state(Ie||bt,Ne,jt),ct&&(bt=ct=="error"?bt+" error":ct)),bt},indent:function(Ne,jt,bt){var xn=Ne.context;if(Ne.tokenize.isInAttribute)return Ne.tagStart==Ne.indented?Ne.stringStartCol+1:Ne.indented+Me;if(xn&&xn.noIndent)return ie.Pass;if(Ne.tokenize!=st&&Ne.tokenize!=Ke)return bt?bt.match(/^(\s*)/)[0].length:0;if(Ne.tagName)return ue.multilineTagIndentPastTag!==!1?Ne.tagStart+Ne.tagName.length+2:Ne.tagStart+Me*(ue.multilineTagIndentFactor||1);if(ue.alignCDATA&&/<!\[CDATA\[/.test(jt))return 0;var Mt=jt&&/^<(\/)?([\w_:\.-]*)/.exec(jt);if(Mt&&Mt[1])for(;xn;)if(xn.tagName==Mt[2]){xn=xn.prev;break}else if(ue.implicitlyClosed.hasOwnProperty(xn.tagName))xn=xn.prev;else break;else if(Mt)for(;xn;){var Gt=ue.contextGrabbers[xn.tagName];if(Gt&&Gt.hasOwnProperty(Mt[2]))xn=xn.prev;else break}for(;xn&&xn.prev&&!xn.startOfLine;)xn=xn.prev;return xn?xn.indent+Me:Ne.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ue.htmlMode?"html":"xml",helperType:ue.htmlMode?"html":"xml",skipAttribute:function(Ne){Ne.state==pt&&(Ne.state=Ge)},xmlCurrentTag:function(Ne){return Ne.tagName?{name:Ne.tagName,close:Ne.type=="closeTag"}:null},xmlCurrentContext:function(Ne){for(var jt=[],bt=Ne.context;bt;bt=bt.prev)bt.tagName&&jt.push(bt.tagName);return jt.reverse()}}}),ie.defineMIME("text/xml","xml"),ie.defineMIME("application/xml","xml"),ie.mimeModes.hasOwnProperty("text/html")||ie.defineMIME("text/html",{name:"xml",htmlMode:!0})})},15979:function(bn,Ut,re){"use strict";re.d(Ut,{hP:function(){return Cn}});var ie=function(Pe,fe){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,pe){ce.__proto__=pe}||function(ce,pe){for(var de in pe)Object.prototype.hasOwnProperty.call(pe,de)&&(ce[de]=pe[de])})(Pe,fe)};function Le(Pe,fe){function ce(){this.constructor=Pe}ie(Pe,fe),Pe.prototype=fe===null?Object.create(fe):(ce.prototype=fe.prototype,new ce)}function Oe(Pe,fe,ce,pe){return new(ce||(ce=Promise))(function(de,le){function Te(en){try{Bt(pe.next(en))}catch(rn){le(rn)}}function ot(en){try{Bt(pe.throw(en))}catch(rn){le(rn)}}function Bt(en){var rn;en.done?de(en.value):(rn=en.value,rn instanceof ce?rn:new ce(function(sn){sn(rn)})).then(Te,ot)}Bt((pe=pe.apply(Pe,fe||[])).next())})}function Ue(Pe,fe){var ce,pe,de,le,Te={label:0,sent:function(){if(1&de[0])throw de[1];return de[1]},trys:[],ops:[]};return le={next:ot(0),throw:ot(1),return:ot(2)},typeof Symbol=="function"&&(le[Symbol.iterator]=function(){return this}),le;function ot(Bt){return function(en){return function(rn){if(ce)throw new TypeError("Generator is already executing.");for(;Te;)try{if(ce=1,pe&&(de=2&rn[0]?pe.return:rn[0]?pe.throw||((de=pe.return)&&de.call(pe),0):pe.next)&&!(de=de.call(pe,rn[1])).done)return de;switch(pe=0,de&&(rn=[2&rn[0],de.value]),rn[0]){case 0:case 1:de=rn;break;case 4:return Te.label++,{value:rn[1],done:!1};case 5:Te.label++,pe=rn[1],rn=[0];continue;case 7:rn=Te.ops.pop(),Te.trys.pop();continue;default:if(de=Te.trys,!((de=de.length>0&&de[de.length-1])||rn[0]!==6&&rn[0]!==2)){Te=0;continue}if(rn[0]===3&&(!de||rn[1]>de[0]&&rn[1]<de[3])){Te.label=rn[1];break}if(rn[0]===6&&Te.label<de[1]){Te.label=de[1],de=rn;break}if(de&&Te.label<de[2]){Te.label=de[2],Te.ops.push(rn);break}de[2]&&Te.ops.pop(),Te.trys.pop();continue}rn=fe.call(Pe,Te)}catch(sn){rn=[6,sn],pe=0}finally{ce=de=0}if(5&rn[0])throw rn[1];return{value:rn[0]?rn[1]:void 0,done:!0}}([Bt,en])}}}function be(){for(var Pe=0,fe=0,ce=arguments.length;fe<ce;fe++)Pe+=arguments[fe].length;var pe=Array(Pe),de=0;for(fe=0;fe<ce;fe++)for(var le=arguments[fe],Te=0,ot=le.length;Te<ot;Te++,de++)pe[de]=le[Te];return pe}var Me=function(){function Pe(){}return Pe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Pe.setAttributes=function(fe,ce){for(var pe=0,de=ce;pe<de.length;pe++){var le=de[pe],Te=le[0],ot=le[1];fe.setAttribute(Te,ot)}},Pe.createRect=function(fe,ce,pe){var de=document.createElementNS("http://www.w3.org/2000/svg","rect");return de.setAttribute("width",fe.toString()),de.setAttribute("height",ce.toString()),pe&&Pe.setAttributes(de,pe),de},Pe.createLine=function(fe,ce,pe,de,le){var Te=document.createElementNS("http://www.w3.org/2000/svg","line");return Te.setAttribute("x1",fe.toString()),Te.setAttribute("y1",ce.toString()),Te.setAttribute("x2",pe.toString()),Te.setAttribute("y2",de.toString()),le&&Pe.setAttributes(Te,le),Te},Pe.createPolygon=function(fe,ce){var pe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return pe.setAttribute("points",fe),ce&&Pe.setAttributes(pe,ce),pe},Pe.createCircle=function(fe,ce){var pe=document.createElementNS("http://www.w3.org/2000/svg","circle");return pe.setAttribute("cx",(fe/2).toString()),pe.setAttribute("cy",(fe/2).toString()),pe.setAttribute("r",fe.toString()),ce&&Pe.setAttributes(pe,ce),pe},Pe.createEllipse=function(fe,ce,pe){var de=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return de.setAttribute("cx",(fe/2).toString()),de.setAttribute("cy",(ce/2).toString()),de.setAttribute("rx",(fe/2).toString()),de.setAttribute("ry",(ce/2).toString()),pe&&Pe.setAttributes(de,pe),de},Pe.createGroup=function(fe){var ce=document.createElementNS("http://www.w3.org/2000/svg","g");return fe&&Pe.setAttributes(ce,fe),ce},Pe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Pe.createMarker=function(fe,ce,pe,de,le,Te,ot){var Bt=document.createElementNS("http://www.w3.org/2000/svg","marker");return Pe.setAttributes(Bt,[["id",fe],["orient",ce],["markerWidth",pe.toString()],["markerHeight",de.toString()],["refX",le.toString()],["refY",Te.toString()]]),Bt.appendChild(ot),Bt},Pe.createText=function(fe){var ce=document.createElementNS("http://www.w3.org/2000/svg","text");return ce.setAttribute("x","0"),ce.setAttribute("y","0"),fe&&Pe.setAttributes(ce,fe),ce},Pe.createTSpan=function(fe,ce){var pe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return pe.textContent=fe,ce&&Pe.setAttributes(pe,ce),pe},Pe.createImage=function(fe){var ce=document.createElementNS("http://www.w3.org/2000/svg","image");return fe&&Pe.setAttributes(ce,fe),ce},Pe.createPoint=function(fe,ce){var pe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return pe.x=fe,pe.y=ce,pe},Pe.createPath=function(fe,ce){var pe=document.createElementNS("http://www.w3.org/2000/svg","path");return pe.setAttribute("d",fe),ce&&Pe.setAttributes(pe,ce),pe},Pe}(),ue=function(){function Pe(){}return Pe.addKey=function(fe){Pe.key=fe},Object.defineProperty(Pe,"isLicensed",{get:function(){return!!Pe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Pe.key)},enumerable:!1,configurable:!0}),Pe}(),we=function(){function Pe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Pe.prototype.rasterize=function(fe,ce,pe){var de=this;return new Promise(function(le){var Te=pe!==void 0?pe:document.createElement("canvas");fe===null&&(de.markersOnly=!0,de.naturalSize=!1);var ot=document.createElementNS("http://www.w3.org/2000/svg","svg");ot.setAttribute("xmlns","http://www.w3.org/2000/svg"),ot.setAttribute("width",ce.width.baseVal.valueAsString),ot.setAttribute("height",ce.height.baseVal.valueAsString),ot.setAttribute("viewBox","0 0 "+ce.viewBox.baseVal.width.toString()+" "+ce.viewBox.baseVal.height.toString()),ot.innerHTML=ce.innerHTML,de.naturalSize===!0?(ot.width.baseVal.value=fe.naturalWidth,ot.height.baseVal.value=fe.naturalHeight):de.width!==void 0&&de.height!==void 0&&(ot.width.baseVal.value=de.width,ot.height.baseVal.value=de.height),Te.width=ot.width.baseVal.value,Te.height=ot.height.baseVal.value;var Bt=ot.outerHTML,en=Te.getContext("2d");de.markersOnly!==!0&&en.drawImage(fe,0,0,Te.width,Te.height);var rn=window.URL,sn=new Image(Te.width,Te.height);sn.setAttribute("crossOrigin","anonymous");var un=new Blob([Bt],{type:"image/svg+xml"}),gt=rn.createObjectURL(un);sn.onload=function(){en.drawImage(sn,0,0),rn.revokeObjectURL(gt);var zt=Te.toDataURL(de.imageType,de.imageQuality);le(zt)},sn.src=gt})},Pe}(),me=function(){},Ie=function(){function Pe(fe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+fe+"_"}return Object.defineProperty(Pe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.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(Pe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Pe.prototype.addClass=function(fe){return this.styleSheet===void 0&&this.addStyleSheet(),fe.name=""+this.classNamePrefix+fe.localName,this.classes.push(fe),this.styleSheet.sheet.insertRule("."+fe.name+" {"+fe.style+"}",this.styleSheet.sheet.cssRules.length),fe},Pe.prototype.addRule=function(fe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(fe),this.styleSheet.sheet.insertRule(fe.selector+" {"+fe.style+"}",this.styleSheet.sheet.cssRules.length)},Pe.prototype.addStyleSheet=function(){var fe;this.styleSheet=document.createElement("style"),((fe=this.styleSheetRoot)!==null&&fe!==void 0?fe:document.head).appendChild(this.styleSheet),this.addRule(new ct("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ct("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new ct("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Ke("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Ke("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Pe.prototype.removeStyleSheet=function(){var fe;this.styleSheet&&(((fe=this.styleSheetRoot)!==null&&fe!==void 0?fe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Pe}(),ct=function(Pe,fe){this.selector=Pe,this.style=fe},Ke=function(Pe,fe){this.localName=Pe,this.style=fe},st=function(){function Pe(fe,ce,pe,de,le){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=fe,this.displayMode=ce,this.markerItems=pe,this.uiStyleSettings=de,this.styles=le,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Pe.prototype.show=function(fe){var ce=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=fe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var pe=document.createElement("div");pe.className=this.toolbarBlockStyleClass.name,pe.style.whiteSpace="nowrap",this.uiContainer.appendChild(pe),this.addActionButton(pe,'<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(pe,'<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(pe,'<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(pe,'<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(pe,'<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(pe,'<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(pe,'<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(pe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(le){var Te=document.createElement("div");Te.className=""+ce.toolbarButtonStyleClass.name,Te.setAttribute("data-type-name",le.typeName),Te.innerHTML=le.icon,Te.addEventListener("click",function(){ce.markerToolbarButtonClicked(Te,le)}),ce.buttons.push(Te),ce.markerButtons.push(Te)}),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()},Pe.prototype.addButtonClickListener=function(fe){this.buttonClickListeners.push(fe)},Pe.prototype.removeButtonClickListener=function(fe){this.buttonClickListeners.indexOf(fe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(fe),1)},Pe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Pe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var fe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ce=0;ce<this.markerButtons.length;ce++)ce<fe||ce===fe&&this.markerButtons.length-1===fe?this.markerButtonBlock.appendChild(this.markerButtons[ce]):(ce===fe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ce]))}},Pe.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")},Pe.prototype.resetButtonStyles=function(){var fe=this;this.buttons.forEach(function(ce){ce.className=ce.className.replace(fe.uiStyleSettings.toolbarButtonStyleColorsClassName?fe.uiStyleSettings.toolbarButtonStyleColorsClassName:fe.toolbarButtonStyleColorsClass.name,"").trim(),ce.className=ce.className.replace(fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?fe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:fe.toolbarActiveButtonStyleColorsClass.name,"").trim(),ce.className+=" "+(fe.uiStyleSettings.toolbarButtonStyleColorsClassName?fe.uiStyleSettings.toolbarButtonStyleColorsClassName:fe.toolbarButtonStyleColorsClass.name)})},Pe.prototype.addActionButton=function(fe,ce,pe){var de=this,le=document.createElement("div");switch(le.className=""+this.toolbarButtonStyleClass.name,le.innerHTML=ce,le.setAttribute("data-action",pe),le.addEventListener("click",function(){de.actionToolbarButtonClicked(le,pe)}),pe){case"select":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":le.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":le.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":le.style.fill=this.uiStyleSettings.closeButtonColor}fe.appendChild(le),this.buttons.push(le)},Pe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ke("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 Ke("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ke("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ke("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 Ke("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var fe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ke("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*fe)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*fe)+`px;
|
|
|
padding: `+fe+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Ke("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ke("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ct("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new ct("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Pe.prototype.markerToolbarButtonClicked=function(fe,ce){this.setActiveButton(fe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(pe){return pe("marker",ce)}),this.markerButtonOverflowBlock.style.display="none"},Pe.prototype.actionToolbarButtonClicked=function(fe,ce){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(pe){return pe("action",ce)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Pe.prototype.setActiveButton=function(fe){this.resetButtonStyles(),fe.className=fe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),fe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Pe.prototype.setActiveMarkerButton=function(fe){var ce=this.markerButtons.find(function(pe){return pe.getAttribute("data-type-name")===fe});ce&&this.setActiveButton(ce)},Pe.prototype.setCurrentMarker=function(fe){var ce=this;this.currentMarker=fe,this.buttons.filter(function(pe){return/delete|notes/.test(pe.getAttribute("data-action"))}).forEach(function(pe){ce.currentMarker===void 0?(pe.style.fillOpacity="0.4",pe.style.pointerEvents="none"):(pe.style.fillOpacity="1",pe.style.pointerEvents="all")})},Pe}(),dt=function(){function Pe(fe,ce,pe,de){this.panels=[],this.panelButtons=[],this.markerjsContainer=fe,this.displayMode=ce,this.uiStyleSettings=pe,this.styles=de,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Pe.prototype.addStyles=function(){var fe;this.toolboxStyleClass=this.styles.addClass(new Ke("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 Ke("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ce=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ke("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ke("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ke("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 Ke("toolbox-panel-row_colors",`
|
|
|
background-color: `+((fe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&fe!==void 0?fe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ke("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
|
|
|
padding: `+ce+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ke("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ke("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new ct("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ct("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Pe.prototype.show=function(fe){var ce;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=fe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Pe.prototype.setPanelButtons=function(fe){var ce,pe,de=this;this.panels=fe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((pe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&pe!==void 0?pe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(le){var Te;le.uiStyleSettings=de.uiStyleSettings;var ot=document.createElement("div");ot.className=de.toolboxButtonStyleClass.name+" "+((Te=de.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Te!==void 0?Te:de.toolboxButtonStyleColorsClass.name),ot.innerHTML=le.icon,ot.title=le.title,ot.addEventListener("click",function(){de.panelButtonClick(le)}),de.panelButtons.push(ot),de.buttonRow.appendChild(ot)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Pe.prototype.panelButtonClick=function(fe){var ce=this,pe=-1;if(fe!==this.activePanel){pe=this.panels.indexOf(fe),this.panelRow.innerHTML="";var de=fe.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=fe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ce.displayMode==="inline"?ce.panelRow.style.display="none":ce.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(le,Te){var ot,Bt;le.className=ce.toolboxButtonStyleClass.name+" "+(Te===pe?""+((ot=ce.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&ot!==void 0?ot:ce.toolboxActiveButtonStyleColorsClass.name):""+((Bt=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Bt!==void 0?Bt:ce.toolboxButtonStyleColorsClass.name))})},Pe}(),Xe=function(Pe,fe){this.title=Pe,this.icon=fe},We=function(Pe){function fe(ce,pe,de,le){var Te=Pe.call(this,ce,le||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Te.colors=[],Te.addTransparent=!1,Te.colorBoxes=[],Te.colors=pe,Te.currentColor=de,Te.setCurrentColor=Te.setCurrentColor.bind(Te),Te.getColorBox=Te.getColorBox.bind(Te),Te}return Le(fe,Pe),fe.prototype.getUi=function(){var ce=this,pe=document.createElement("div");return pe.style.overflow="hidden",pe.style.whiteSpace="nowrap",this.colors.forEach(function(de){var le=ce.getColorBox(de);pe.appendChild(le),ce.colorBoxes.push(le)}),pe},fe.prototype.getColorBox=function(ce){var pe=this,de=this.uiStyleSettings.toolbarHeight/4,le=this.uiStyleSettings.toolbarHeight-de,Te=document.createElement("div");Te.style.display="inline-block",Te.style.boxSizing="content-box",Te.style.width=le-2+"px",Te.style.height=le-2+"px",Te.style.padding="1px",Te.style.marginRight="2px",Te.style.marginBottom="2px",Te.style.borderWidth="2px",Te.style.borderStyle="solid",Te.style.borderRadius=(le+2)/2+"px",Te.style.borderColor=ce===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Te.addEventListener("click",function(){pe.setCurrentColor(ce,Te)});var ot=document.createElement("div");return ot.style.display="inline-block",ot.style.width=le-2+"px",ot.style.height=le-2+"px",ot.style.backgroundColor=ce,ot.style.borderRadius=le/2+"px",ce==="transparent"&&(ot.style.fill=this.uiStyleSettings.toolboxAccentColor,ot.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>`),Te.appendChild(ot),Te},fe.prototype.setCurrentColor=function(ce,pe){var de=this;this.currentColor=ce,this.colorBoxes.forEach(function(le){le.style.borderColor=le===pe?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ce)},fe}(Xe),ye=function(){function Pe(fe,ce,pe){this._state="new",this._isSelected=!1,this._container=fe,this._overlayContainer=ce,this.globalSettings=pe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Pe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Pe.prototype.ownsTarget=function(fe){return!1},Object.defineProperty(Pe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Pe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Pe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Pe.prototype.pointerDown=function(fe,ce){},Pe.prototype.dblClick=function(fe,ce){},Pe.prototype.manipulate=function(fe){},Pe.prototype.pointerUp=function(fe){this.stateChanged()},Pe.prototype.dispose=function(){},Pe.prototype.addMarkerVisualToContainer=function(fe){this.container.childNodes.length>0?this.container.insertBefore(fe,this.container.childNodes[0]):this.container.appendChild(fe)},Pe.prototype.getState=function(){return{typeName:Pe.typeName,state:this.state,notes:this.notes}},Pe.prototype.restoreState=function(fe){this._state=fe.state,this.notes=fe.notes},Pe.prototype.scale=function(fe,ce){},Pe.prototype.colorChanged=function(fe){this.onColorChanged&&this.onColorChanged(fe),this.stateChanged()},Pe.prototype.fillColorChanged=function(fe){this.onFillColorChanged&&this.onFillColorChanged(fe),this.stateChanged()},Pe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var fe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),fe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(fe)&&this.onStateChanged(this)}},Pe.typeName="MarkerBase",Pe}(),it=function(){function Pe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Pe.prototype.findGripByVisual=function(fe){return this.topLeft.ownsTarget(fe)?this.topLeft:this.topCenter.ownsTarget(fe)?this.topCenter:this.topRight.ownsTarget(fe)?this.topRight:this.centerLeft.ownsTarget(fe)?this.centerLeft:this.centerRight.ownsTarget(fe)?this.centerRight:this.bottomLeft.ownsTarget(fe)?this.bottomLeft:this.bottomCenter.ownsTarget(fe)?this.bottomCenter:this.bottomRight.ownsTarget(fe)?this.bottomRight:void 0},Pe}(),Lt=function(){function Pe(){this.GRIP_SIZE=10,this.visual=Me.createGroup(),this.visual.appendChild(Me.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Me.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Pe.prototype.ownsTarget=function(fe){return fe===this.visual||fe===this.visual.childNodes[0]||fe===this.visual.childNodes[1]},Pe}(),qe=function(){function Pe(){}return Pe.toITransformMatrix=function(fe){return{a:fe.a,b:fe.b,c:fe.c,d:fe.d,e:fe.e,f:fe.f}},Pe.toSVGMatrix=function(fe,ce){return fe.a=ce.a,fe.b=ce.b,fe.c=ce.c,fe.d=ce.d,fe.e=ce.e,fe.f=ce.f,fe},Pe}(),rt=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,pe,de)||this;return le.left=0,le.top=0,le.width=0,le.height=0,le.defaultSize={x:50,y:20},le.offsetX=0,le.offsetY=0,le.rotationAngle=0,le.CB_DISTANCE=10,le._suppressMarkerCreateEvent=!1,le.container.transform.baseVal.appendItem(Me.createTransform()),le.setupControlBox(),le}return Le(fe,Pe),Object.defineProperty(fe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"visual",{get:function(){return this._visual},set:function(ce){this._visual=ce;var pe=Me.createTransform();this._visual.transform.baseVal.appendItem(pe)},enumerable:!1,configurable:!0}),fe.prototype.ownsTarget=function(ce){return!!Pe.prototype.ownsTarget.call(this,ce)||!!(this.controlGrips.findGripByVisual(ce)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ce))},fe.prototype.pointerDown=function(ce,pe){Pe.prototype.pointerDown.call(this,ce,pe),this.state==="new"&&(this.left=ce.x,this.top=ce.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var de=this.unrotatePoint(ce);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(pe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(pe)){this.activeGrip=this.rotatorGrip;var le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=le.x-this.width/2,this.top=le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Te=this.container.transform.baseVal.getItem(0);Te.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Te,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},fe.prototype.pointerUp=function(ce){var pe=this.state;Pe.prototype.pointerUp.call(this,ce),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ce),this._state="select",pe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},fe.prototype.moveVisual=function(ce){this.visual.style.transform="translate("+ce.x+"px, "+ce.y+"px)"},fe.prototype.manipulate=function(ce){var pe=this.unrotatePoint(ce);this.state==="creating"?this.resize(ce):this.state==="move"?(this.left=this.manipulationStartLeft+(pe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(pe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(pe):this.state==="rotate"&&this.rotate(ce)},fe.prototype.resize=function(ce){var pe=this.manipulationStartLeft,de=this.manipulationStartWidth,le=this.manipulationStartTop,Te=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:pe=this.manipulationStartLeft+ce.x-this.manipulationStartX,de=this.manipulationStartWidth+this.manipulationStartLeft-pe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:de=this.manipulationStartWidth+ce.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:le=this.manipulationStartTop+ce.y-this.manipulationStartY,Te=this.manipulationStartHeight+this.manipulationStartTop-le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Te=this.manipulationStartHeight+ce.y-this.manipulationStartY}de>=0?(this.left=pe,this.width=de):(this.left=pe+de,this.width=-de),Te>=0?(this.top=le,this.height=Te):(this.top=le+Te,this.height=-Te),this.setSize()},fe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},fe.prototype.rotate=function(ce){if(Math.abs(ce.x-this.centerX)>.1){var pe=Math.sign(ce.x-this.centerX);this.rotationAngle=180*Math.atan((ce.y-this.centerY)/(ce.x-this.centerX))/Math.PI+90*pe,this.applyRotation()}},fe.prototype.applyRotation=function(){var ce=this.container.transform.baseVal.getItem(0);ce.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ce,0)},fe.prototype.rotatePoint=function(ce){if(this.rotationAngle===0)return ce;var pe=this.container.getCTM(),de=Me.createPoint(ce.x,ce.y);return{x:(de=de.matrixTransform(pe)).x,y:de.y}},fe.prototype.unrotatePoint=function(ce){if(this.rotationAngle===0)return ce;var pe=this.container.getCTM();pe=pe.inverse();var de=Me.createPoint(ce.x,ce.y);return{x:(de=de.matrixTransform(pe)).x,y:de.y}},fe.prototype.select=function(){Pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},fe.prototype.deselect=function(){Pe.prototype.deselect.call(this),this.controlBox.style.display="none"},fe.prototype.setupControlBox=function(){this.controlBox=Me.createGroup();var ce=Me.createTransform();ce.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ce),this.container.appendChild(this.controlBox),this.controlRect=Me.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=Me.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new it,this.addControlGrips(),this.controlBox.style.display="none"},fe.prototype.adjustControlBox=function(){var ce=this.controlBox.transform.baseVal.getItem(0);ce.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ce,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},fe.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()},fe.prototype.createGrip=function(){var ce=new Lt;return ce.visual.transform.baseVal.appendItem(Me.createTransform()),this.controlBox.appendChild(ce.visual),ce},fe.prototype.positionGrips=function(){var ce=this.controlGrips.topLeft.GRIP_SIZE,pe=-ce/2,de=pe,le=(this.width+this.CB_DISTANCE)/2-ce/2,Te=(this.height+this.CB_DISTANCE)/2-ce/2,ot=this.height+this.CB_DISTANCE-ce/2,Bt=this.width+this.CB_DISTANCE-ce/2;this.positionGrip(this.controlGrips.topLeft.visual,pe,de),this.positionGrip(this.controlGrips.topCenter.visual,le,de),this.positionGrip(this.controlGrips.topRight.visual,Bt,de),this.positionGrip(this.controlGrips.centerLeft.visual,pe,Te),this.positionGrip(this.controlGrips.centerRight.visual,Bt,Te),this.positionGrip(this.controlGrips.bottomLeft.visual,pe,ot),this.positionGrip(this.controlGrips.bottomCenter.visual,le,ot),this.positionGrip(this.controlGrips.bottomRight.visual,Bt,ot),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,le,de-3*this.CB_DISTANCE)},fe.prototype.positionGrip=function(ce,pe,de){var le=ce.transform.baseVal.getItem(0);le.setTranslate(pe,de),ce.transform.baseVal.replaceItem(le,0)},fe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},fe.prototype.showControlBox=function(){this.controlBox.style.display=""},fe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:qe.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:qe.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Pe.prototype.getState.call(this))},fe.prototype.restoreState=function(ce){Pe.prototype.restoreState.call(this,ce);var pe=ce;this.left=pe.left,this.top=pe.top,this.width=pe.width,this.height=pe.height,this.rotationAngle=pe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(qe.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,pe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(qe.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,pe.containerTransformMatrix))},fe.prototype.scale=function(ce,pe){Pe.prototype.scale.call(this,ce,pe);var de=this.rotatePoint({x:this.left,y:this.top}),le=this.unrotatePoint({x:de.x*ce,y:de.y*pe});this.left=le.x,this.top=le.y,this.width=this.width*ce,this.height=this.height*pe,this.adjustControlBox()},fe}(ye),xe=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,pe,de)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},fe.prototype.createVisual=function(){this.visual=Me.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ce,pe){Pe.prototype.pointerDown.call(this,ce,pe),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},fe.prototype.manipulate=function(ce){Pe.prototype.manipulate.call(this,ce)},fe.prototype.resize=function(ce){Pe.prototype.resize.call(this,ce),this.setSize()},fe.prototype.setSize=function(){Pe.prototype.setSize.call(this),Me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},fe.prototype.pointerUp=function(ce){Pe.prototype.pointerUp.call(this,ce),this.setSize()},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&Me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},fe.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&Me.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&Me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&Me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},fe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Pe.prototype.getState.call(this))},fe.prototype.restoreState=function(ce){var pe=ce;this.fillColor=pe.fillColor,this.strokeColor=pe.strokeColor,this.strokeWidth=pe.strokeWidth,this.strokeDasharray=pe.strokeDasharray,this.opacity=pe.opacity,this.createVisual(),Pe.prototype.restoreState.call(this,ce),this.setSize()},fe.prototype.scale=function(ce,pe){Pe.prototype.scale.call(this,ce,pe),this.setSize()},fe.title="Rectangle marker",fe}(rt),Se=function(Pe){function fe(ce,pe,de,le){var Te=Pe.call(this,ce,le||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Te.widths=[],Te.widthBoxes=[],Te.widths=pe,Te.currentWidth=de,Te.setCurrentWidth=Te.setCurrentWidth.bind(Te),Te}return Le(fe,Pe),fe.prototype.getUi=function(){var ce=this,pe=document.createElement("div");return pe.style.display="flex",pe.style.overflow="hidden",pe.style.flexGrow="2",this.widths.forEach(function(de){var le=document.createElement("div");le.style.display="flex",le.style.flexGrow="2",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=de===ce.currentWidth?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentWidth(de,le)}),pe.appendChild(le);var Te=document.createElement("div");Te.innerText=de.toString(),Te.style.marginRight="5px",le.appendChild(Te);var ot=document.createElement("div");ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.display="flex",ot.style.alignItems="center";var Bt=document.createElement("hr");Bt.style.minWidth="20px",Bt.style.border="0px",Bt.style.borderTop=de+"px solid "+ce.uiStyleSettings.toolboxColor,Bt.style.flexGrow="2",ot.appendChild(Bt),le.appendChild(ot),ce.widthBoxes.push(le)}),pe},fe.prototype.setCurrentWidth=function(ce,pe){var de=this;this.currentWidth=ce,this.widthBoxes.forEach(function(le){le.style.borderColor=le===pe?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},fe}(Xe),Ze=function(Pe){function fe(ce,pe,de,le){var Te=Pe.call(this,ce,le||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Te.styles=[],Te.styleBoxes=[],Te.styles=pe,Te.currentStyle=de,Te.setCurrentStyle=Te.setCurrentStyle.bind(Te),Te}return Le(fe,Pe),fe.prototype.getUi=function(){var ce=this,pe=document.createElement("div");return pe.style.display="flex",pe.style.overflow="hidden",pe.style.flexGrow="2",this.styles.forEach(function(de){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ce.styles.length-5+"%",le.style.borderColor=de===ce.currentStyle?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentStyle(de,le)}),pe.appendChild(le);var Te=document.createElement("div");Te.style.minHeight="20px",Te.style.flexGrow="2",Te.style.overflow="hidden";var ot=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ce.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(de!==""?'stroke-dasharray="'+de+'"':"")+` />
|
|
|
</svg>`;Te.innerHTML=ot,le.appendChild(Te),ce.styleBoxes.push(le)}),pe},fe.prototype.setCurrentStyle=function(ce,pe){var de=this;this.currentStyle=ce,this.styleBoxes.forEach(function(le){le.style.borderColor=le===pe?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},fe}(Xe),Ge=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,pe,de)||this;return le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.strokePanel=new We("Line color",de.defaultColorSet,de.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Se("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ze("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Le(fe,Pe),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Pe.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="FrameMarker",fe.title="Frame marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',fe}(xe),yt=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"},pt=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,pe,de)||this;return le.x1=0,le.y1=0,le.x2=0,le.y2=0,le.defaultLength=50,le.manipulationStartX=0,le.manipulationStartY=0,le.manipulationStartX1=0,le.manipulationStartY1=0,le.manipulationStartX2=0,le.manipulationStartY2=0,le.setupControlBox(),le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!!Pe.prototype.ownsTarget.call(this,ce)||!(!this.grip1.ownsTarget(ce)&&!this.grip2.ownsTarget(ce))},fe.prototype.pointerDown=function(ce,pe){Pe.prototype.pointerDown.call(this,ce,pe),this.manipulationStartX=ce.x,this.manipulationStartY=ce.y,this.state==="new"&&(this.x1=ce.x,this.y1=ce.y,this.x2=ce.x,this.y2=ce.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(pe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(pe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},fe.prototype.pointerUp=function(ce){var pe=this.state;Pe.prototype.pointerUp.call(this,ce),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ce),this._state="select",pe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},fe.prototype.adjustVisual=function(){},fe.prototype.manipulate=function(ce){this.state==="creating"?this.resize(ce):this.state==="move"?(this.x1=this.manipulationStartX1+ce.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ce.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ce.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ce.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ce)},fe.prototype.resize=function(ce){switch(this.activeGrip){case this.grip1:this.x1=ce.x,this.y1=ce.y;break;case this.grip2:case void 0:this.x2=ce.x,this.y2=ce.y}this.adjustVisual(),this.adjustControlBox()},fe.prototype.select=function(){Pe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},fe.prototype.deselect=function(){Pe.prototype.deselect.call(this),this.controlBox.style.display="none"},fe.prototype.setupControlBox=function(){this.controlBox=Me.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},fe.prototype.adjustControlBox=function(){this.positionGrips()},fe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},fe.prototype.createGrip=function(){var ce=new Lt;return ce.visual.transform.baseVal.appendItem(Me.createTransform()),this.controlBox.appendChild(ce.visual),ce},fe.prototype.positionGrips=function(){var ce=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ce/2,this.y1-ce/2),this.positionGrip(this.grip2.visual,this.x2-ce/2,this.y2-ce/2)},fe.prototype.positionGrip=function(ce,pe,de){var le=ce.transform.baseVal.getItem(0);le.setTranslate(pe,de),ce.transform.baseVal.replaceItem(le,0)},fe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Pe.prototype.getState.call(this))},fe.prototype.restoreState=function(ce){Pe.prototype.restoreState.call(this,ce);var pe=ce;this.x1=pe.x1,this.y1=pe.y1,this.x2=pe.x2,this.y2=pe.y2},fe.prototype.scale=function(ce,pe){Pe.prototype.scale.call(this,ce,pe),this.x1=this.x1*ce,this.y1=this.y1*pe,this.x2=this.x2*ce,this.y2=this.y2*pe,this.adjustVisual(),this.adjustControlBox()},fe}(ye),ft=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,pe,de)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.strokePanel=new We("Line color",de.defaultColorSet,de.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Se("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ze("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorLine&&ce!==this.visibleLine)},fe.prototype.createVisual=function(){this.visual=Me.createGroup(),this.selectorLine=Me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Me.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ce,pe){Pe.prototype.pointerDown.call(this,ce,pe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},fe.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Me.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Me.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Me.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Pe.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){Pe.prototype.restoreState.call(this,ce);var pe=ce;this.strokeColor=pe.strokeColor,this.strokeWidth=pe.strokeWidth,this.strokeDasharray=pe.strokeDasharray,this.createVisual(),this.adjustVisual()},fe.typeName="LineMarker",fe.title="Line marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',fe}(pt),Ne=function(Pe){function fe(ce,pe,de,le){var Te=Pe.call(this,ce,le||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Te.fonts=[],Te.fontBoxes=[],Te.fonts=pe,Te.currentFont=de,Te.setCurrentFont=Te.setCurrentFont.bind(Te),Te}return Le(fe,Pe),fe.prototype.getUi=function(){var ce=this,pe=document.createElement("div");return pe.style.overflow="hidden",pe.style.flexGrow="2",this.fonts.forEach(function(de){var le=document.createElement("div");le.style.display="inline-block",le.style.alignItems="center",le.style.justifyContent="space-between",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.overflow="hidden",le.style.maxWidth=100/ce.fonts.length-5+"%",le.style.borderColor=de===ce.currentFont?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentFont(de,le)}),pe.appendChild(le);var Te=document.createElement("div");Te.style.display="flex",Te.style.minHeight="20px",Te.style.flexGrow="2",Te.style.fontFamily=de,Te.style.overflow="hidden";var ot=document.createElement("div");ot.style.whiteSpace="nowrap",ot.style.overflow="hidden",ot.style.textOverflow="ellipsis",ot.innerHTML="The quick brown fox jumps over the lazy dog",Te.appendChild(ot),le.appendChild(Te),ce.fontBoxes.push(le)}),pe},fe.prototype.setCurrentFont=function(ce,pe){var de=this;this.currentFont=ce,this.fontBoxes.forEach(function(le){le.style.borderColor=le===pe?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},fe}(Xe),jt=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,pe,de)||this;return le.color="transparent",le.padding=5,le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",le.text=le.DEFAULT_TEXT,le.isMoved=!1,le.color=de.defaultColor,le.fontFamily=de.defaultFontFamily,le.defaultSize={x:100,y:30},le.setColor=le.setColor.bind(le),le.setFont=le.setFont.bind(le),le.renderText=le.renderText.bind(le),le.sizeText=le.sizeText.bind(le),le.textEditDivClicked=le.textEditDivClicked.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.setSize=le.setSize.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.colorPanel=new We("Color",de.defaultColorSet,de.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.fontFamilyPanel=new Ne("Font",de.defaultFontFamilies,de.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){if(Pe.prototype.ownsTarget.call(this,ce)||ce===this.visual||ce===this.textElement||ce===this.bgRectangle)return!0;var pe=!1;return this.textElement.childNodes.forEach(function(de){de===ce&&(pe=!0)}),pe},fe.prototype.createVisual=function(){this.visual=Me.createGroup(),this.bgRectangle=Me.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Me.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Me.createTransform()),this.textElement.transform.baseVal.appendItem(Me.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},fe.prototype.pointerDown=function(ce,pe){Pe.prototype.pointerDown.call(this,ce,pe),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},fe.prototype.renderText=function(){var ce=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(pe){ce.textElement.appendChild(Me.createTSpan(pe.trim()===""?" ":pe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},fe.prototype.getTextScale=function(){var ce=this.textElement.getBBox(),pe=1;if(ce.width>0&&ce.height>0){var de=(1*this.width-this.width*this.padding*2/100)/ce.width,le=(1*this.height-this.height*this.padding*2/100)/ce.height;pe=Math.min(de,le)}return pe},fe.prototype.getTextPosition=function(ce){var pe=this.textElement.getBBox(),de=0,le=0;return pe.width>0&&pe.height>0&&(de=(this.width-pe.width*ce)/2,le=this.height/2-pe.height*ce/2),{x:de,y:le}},fe.prototype.sizeText=function(){var ce=this.textElement.getBBox(),pe=this.getTextScale(),de=this.getTextPosition(pe);de.y-=ce.y*pe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+de.x+"px, "+de.y+"px) scale("+pe+", "+pe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(de.x,de.y),this.textElement.transform.baseVal.getItem(1).setScale(pe,pe))},fe.prototype.manipulate=function(ce){Pe.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},fe.prototype.resize=function(ce){Pe.prototype.resize.call(this,ce),this.isMoved=!0,this.setSize(),this.sizeText()},fe.prototype.setSize=function(){Pe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Me.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},fe.prototype.pointerUp=function(ce){var pe=this.state;pe==="creating"&&(this._suppressMarkerCreateEvent=!0),Pe.prototype.pointerUp.call(this,ce),this.setSize(),(pe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},fe.prototype.showTextEditor=function(){var ce=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(pe){pe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var pe=Number.parseFloat(ce.textEditor.style.fontSize);ce.textEditor.clientWidth>=Number.parseInt(ce.textEditor.style.maxWidth)&&pe>.9;)pe-=.1,ce.textEditor.style.fontSize=Math.max(pe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(pe){pe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(pe){if(pe.clipboardData){var de=pe.clipboardData.getData("text"),le=window.getSelection();if(!le.rangeCount)return!1;le.deleteFromDocument(),le.getRangeAt(0).insertNode(document.createTextNode(de)),pe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ce.textEditDivClicked(ce.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},fe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ce=this.getTextScale(),pe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),de=this.textElement.getBBox(),le={x:de.width*ce,y:de.height*ce};pe.x-=le.x/2,pe.y-=le.y/2,this.textEditor.style.top=pe.y+"px",this.textEditor.style.left=pe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-pe.x+"px",this.textEditor.style.fontSize=Math.max(16*ce,12)+"px",this.textElement.style.display="none"}},fe.prototype.textEditDivClicked=function(ce){this.text=ce.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},fe.prototype.select=function(){Pe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},fe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Pe.prototype.deselect.call(this)},fe.prototype.dblClick=function(ce,pe){Pe.prototype.dblClick.call(this,ce,pe),this.showTextEditor()},fe.prototype.setColor=function(ce){this.textElement&&Me.setAttributes(this.textElement,[["fill",ce]]),this.color=ce,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ce)},fe.prototype.setFont=function(ce){this.textElement&&Me.setAttributes(this.textElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},fe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},fe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Pe.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){var pe=ce;this.color=pe.color,this.fontFamily=pe.fontFamily,this.padding=pe.padding,this.text=pe.text,this.createVisual(),Pe.prototype.restoreState.call(this,ce),this.setSize()},fe.prototype.scale=function(ce,pe){Pe.prototype.scale.call(this,ce,pe),this.setSize(),this.sizeText(),this.positionTextEditor()},fe.typeName="TextMarker",fe.title="Text marker",fe.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>',fe}(rt),bt=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,pe,de)||this;return le.color="transparent",le.lineWidth=3,le.drawing=!1,le.pixelRatio=1,le.color=de.defaultColor,le.lineWidth=de.defaultStrokeWidth,le.pixelRatio=de.freehandPixelRatio,le.setColor=le.setColor.bind(le),le.addCanvas=le.addCanvas.bind(le),le.finishCreation=le.finishCreation.bind(le),le.setLineWidth=le.setLineWidth.bind(le),le.colorPanel=new We("Color",de.defaultColorSet,de.defaultColor),le.colorPanel.onColorChanged=le.setColor,le.lineWidthPanel=new Se("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.lineWidthPanel.onWidthChanged=le.setLineWidth,le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.drawingImage)},fe.prototype.createVisual=function(){this.visual=Me.createGroup(),this.drawingImage=Me.createImage(),this.visual.appendChild(this.drawingImage);var ce=Me.createTransform();this.visual.transform.baseVal.appendItem(ce),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ce,pe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ce.x,ce.y),this.drawing=!0):Pe.prototype.pointerDown.call(this,ce,pe)},fe.prototype.manipulate=function(ce){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ce.x,ce.y),this.canvasContext.stroke()):Pe.prototype.manipulate.call(this,ce)},fe.prototype.resize=function(ce){Pe.prototype.resize.call(this,ce),Me.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},fe.prototype.pointerUp=function(ce){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Pe.prototype.pointerUp.call(this,ce)},fe.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)},fe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Pe.prototype.select.call(this)},fe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Pe.prototype.deselect.call(this)},fe.prototype.finishCreation=function(){for(var ce=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),pe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],de=pe[0],le=pe[1],Te=pe[2],ot=pe[3],Bt=!1,en=0;en<this.canvasElement.height;en++)for(var rn=0;rn<this.canvasElement.width;rn++)ce.data[en*this.canvasElement.width*4+4*rn+3]>0&&(Bt=!0,en<le&&(le=en),rn<de&&(de=rn),en>ot&&(ot=en),rn>Te&&(Te=rn));if(Bt){this.left=de/this.pixelRatio,this.top=le/this.pixelRatio,this.width=(Te-de)/this.pixelRatio,this.height=(ot-le)/this.pixelRatio;var sn=document.createElement("canvas");sn.width=Te-de,sn.height=ot-le,sn.getContext("2d").putImageData(this.canvasContext.getImageData(de,le,Te-de,ot-le),0,0),this.drawingImgUrl=sn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},fe.prototype.setDrawingImage=function(){Me.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Me.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},fe.prototype.setColor=function(ce){this.color=ce,this.colorChanged(ce)},fe.prototype.setLineWidth=function(ce){this.lineWidth=ce},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({drawingImgUrl:this.drawingImgUrl},Pe.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){this.createVisual(),Pe.prototype.restoreState.call(this,ce),this.drawingImgUrl=ce.drawingImgUrl,this.setDrawingImage()},fe.prototype.scale=function(ce,pe){Pe.prototype.scale.call(this,ce,pe),this.setDrawingImage()},fe.typeName="FreehandMarker",fe.title="Freehand marker",fe.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>',fe}(rt),xn=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,de||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return le.typeBoxes=[],le.currentType=pe,le.setCurrentType=le.setCurrentType.bind(le),le}return Le(fe,Pe),fe.prototype.getUi=function(){var ce=this,pe=document.createElement("div");pe.style.display="flex",pe.style.overflow="hidden",pe.style.flexGrow="2";for(var de=function(ot){var Bt="both";switch(ot){case 0:Bt="both";break;case 1:Bt="start";break;case 2:Bt="end";break;case 3:Bt="none"}var en=document.createElement("div");if(en.style.display="flex",en.style.flexGrow="2",en.style.alignItems="center",en.style.justifyContent="space-between",en.style.padding="5px",en.style.borderWidth="2px",en.style.borderStyle="solid",en.style.borderColor=Bt===le.currentType?le.uiStyleSettings.toolboxAccentColor:"transparent",en.addEventListener("click",function(){ce.setCurrentType(Bt,en)}),pe.appendChild(en),Bt==="both"||Bt==="start"){var rn=document.createElement("div");rn.style.display="flex",rn.style.alignItems="center",rn.style.minHeight="20px",rn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,rn.style.marginLeft="5px",en.appendChild(rn)}var sn=document.createElement("div");sn.style.display="flex",sn.style.alignItems="center",sn.style.minHeight="20px",sn.style.flexGrow="2";var un=document.createElement("hr");if(un.style.minWidth="20px",un.style.border="0px",un.style.borderTop="3px solid "+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee"),un.style.flexGrow="2",sn.appendChild(un),en.appendChild(sn),Bt==="both"||Bt==="end"){var gt=document.createElement("div");gt.style.display="flex",gt.style.alignItems="center",gt.style.minHeight="20px",gt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(le.uiStyleSettings!==void 0?le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,gt.style.marginRight="5px",en.appendChild(gt)}le.typeBoxes.push(en)},le=this,Te=0;Te<4;Te++)de(Te);return pe},fe.prototype.setCurrentType=function(ce,pe){var de=this;this.currentType=ce,this.typeBoxes.forEach(function(le){le.style.borderColor=le===pe?de.uiStyleSettings!==void 0?de.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},fe}(Xe),Mt=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,pe,de)||this;return le.arrowType="end",le.arrowBaseHeight=10,le.arrowBaseWidth=10,le.getArrowPoints=le.getArrowPoints.bind(le),le.setArrowType=le.setArrowType.bind(le),le.arrowTypePanel=new xn("Arrow type","end"),le.arrowTypePanel.onArrowTypeChanged=le.setArrowType,le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.arrow1&&ce!==this.arrow2)},fe.prototype.getArrowPoints=function(ce,pe){var de=this.arrowBaseWidth+2*this.strokeWidth,le=this.arrowBaseHeight+2*this.strokeWidth;return ce-de/2+","+(pe+le/2)+" "+ce+","+(pe-le/2)+" "+(ce+de/2)+","+(pe+le/2)},fe.prototype.createTips=function(){this.arrow1=Me.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Me.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Me.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Me.createTransform()),this.visual.appendChild(this.arrow2)},fe.prototype.pointerDown=function(ce,pe){Pe.prototype.pointerDown.call(this,ce,pe),this.state==="creating"&&this.createTips()},fe.prototype.adjustVisual=function(){if(Pe.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Me.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Me.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ce=0;Math.abs(this.x1-this.x2)>.1&&(ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var pe=this.arrow1.transform.baseVal.getItem(0);pe.setRotate(ce,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(pe,0);var de=this.arrow2.transform.baseVal.getItem(0);de.setRotate(ce+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(de,0)}},fe.prototype.setArrowType=function(ce){this.arrowType=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({arrowType:this.arrowType},Pe.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){Pe.prototype.restoreState.call(this,ce);var pe=ce;this.arrowType=pe.arrowType,this.createTips(),this.adjustVisual()},fe.typeName="ArrowMarker",fe.title="Arrow marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',fe}(ft),Gt=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,pe,de)||this;return le.fillColor=de.defaultFillColor,le.strokeWidth=0,le.fillPanel=new We("Color",de.defaultColorSet,de.defaultFillColor),le.fillPanel.onColorChanged=le.setFillColor,le}return Le(fe,Pe),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Pe.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="CoverMarker",fe.title="Cover marker",fe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',fe}(xe),Bn=function(Pe){function fe(ce,pe,de,le){var Te=Pe.call(this,ce,le||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Te.opacities=[],Te.opacityBoxes=[],Te.opacities=pe,Te.currentOpacity=de,Te.setCurrentOpacity=Te.setCurrentOpacity.bind(Te),Te}return Le(fe,Pe),fe.prototype.getUi=function(){var ce=this,pe=document.createElement("div");return pe.style.display="flex",pe.style.overflow="hidden",pe.style.flexGrow="2",pe.style.justifyContent="space-between",this.opacities.forEach(function(de){var le=document.createElement("div");le.style.display="flex",le.style.alignItems="center",le.style.justifyContent="center",le.style.padding="5px",le.style.borderWidth="2px",le.style.borderStyle="solid",le.style.borderColor=de===ce.currentOpacity?ce.uiStyleSettings.toolboxAccentColor:"transparent",le.addEventListener("click",function(){ce.setCurrentOpacity(de,le)}),pe.appendChild(le);var Te=document.createElement("div");Te.innerText=100*de+"%",le.appendChild(Te),ce.opacityBoxes.push(le)}),pe},fe.prototype.setCurrentOpacity=function(ce,pe){var de=this;this.currentOpacity=ce,this.opacityBoxes.forEach(function(le){le.style.borderColor=le===pe?de.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},fe}(Xe),Tn=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,pe,de)||this;return le.setOpacity=le.setOpacity.bind(le),le.fillColor=de.defaultHighlightColor,le.strokeWidth=0,le.opacity=de.defaultHighlightOpacity,le.fillPanel=new We("Color",de.defaultColorSet,le.fillColor),le.fillPanel.onColorChanged=le.setFillColor,le.opacityPanel=new Bn("Opacity",de.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return Le(fe,Pe),fe.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&Me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Pe.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="HighlightMarker",fe.title="Highlight marker",fe.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>',fe}(Gt),at='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',Ae='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',St=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,pe,de)||this;return le.bgColor="transparent",le.tipPosition={x:0,y:0},le.tipBase1Position={x:0,y:0},le.tipBase2Position={x:0,y:0},le.tipMoving=!1,le.color=de.defaultStrokeColor,le.bgColor=de.defaultFillColor,le.fontFamily=de.defaultFontFamily,le.defaultSize={x:100,y:30},le.setBgColor=le.setBgColor.bind(le),le.getTipPoints=le.getTipPoints.bind(le),le.positionTip=le.positionTip.bind(le),le.setTipPoints=le.setTipPoints.bind(le),le.colorPanel=new We("Text color",de.defaultColorSet,le.color,at),le.colorPanel.onColorChanged=le.setColor,le.bgColorPanel=new We("Fill color",de.defaultColorSet,le.bgColor,Ae),le.bgColorPanel.onColorChanged=le.setBgColor,le.fontFamilyPanel=new Ne("Font",de.defaultFontFamilies,de.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.tipGrip=new Lt,le.tipGrip.visual.transform.baseVal.appendItem(Me.createTransform()),le.controlBox.appendChild(le.tipGrip.visual),le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return Pe.prototype.ownsTarget.call(this,ce)||this.tipGrip.ownsTarget(ce)||this.tip===ce},fe.prototype.createTip=function(){Me.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Me.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},fe.prototype.pointerDown=function(ce,pe){this.state==="new"&&Pe.prototype.pointerDown.call(this,ce,pe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(pe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Pe.prototype.pointerDown.call(this,ce,pe)},fe.prototype.pointerUp=function(ce){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Pe.prototype.pointerUp.call(this,ce);else{var pe=this.state==="creating";Pe.prototype.pointerUp.call(this,ce),this.setTipPoints(pe),this.positionTip()}},fe.prototype.manipulate=function(ce){if(this.tipMoving){var pe=this.unrotatePoint(ce);this.tipPosition={x:pe.x-this.manipulationStartLeft,y:pe.y-this.manipulationStartTop},this.positionTip()}else Pe.prototype.manipulate.call(this,ce)},fe.prototype.setBgColor=function(ce){this.bgRectangle&&this.tip&&(Me.setAttributes(this.bgRectangle,[["fill",ce]]),Me.setAttributes(this.tip,[["fill",ce]])),this.bgColor=ce,this.fillColorChanged(ce)},fe.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},fe.prototype.setTipPoints=function(ce){ce===void 0&&(ce=!1);var pe=Math.min(this.height/2,15),de=this.height/5;ce&&(this.tipPosition={x:pe+de/2,y:this.height+20});var le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(de=this.width/5,pe=Math.min(this.width/2,15),this.tipBase1Position={x:pe,y:0},this.tipBase2Position={x:pe+de,y:0}):(this.tipBase1Position={x:0,y:pe},this.tipBase2Position={x:0,y:pe+de}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?le<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(de=this.width/5,pe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-pe-de,y:0},this.tipBase2Position={x:this.width-pe,y:0}):(this.tipBase1Position={x:this.width,y:pe},this.tipBase2Position={x:this.width,y:pe+de}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?le<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(de=this.width/5,pe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-pe-de,y:this.height},this.tipBase2Position={x:this.width-pe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-pe-de},this.tipBase2Position={x:this.width,y:this.height-pe}):le<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(de=this.width/5,pe=Math.min(this.width/2,15),this.tipBase1Position={x:pe,y:this.height},this.tipBase2Position={x:pe+de,y:this.height}):(this.tipBase1Position={x:0,y:this.height-pe},this.tipBase2Position={x:0,y:this.height-pe-de})},fe.prototype.resize=function(ce){Pe.prototype.resize.call(this,ce),this.positionTip()},fe.prototype.positionTip=function(){Me.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ce=this.tipGrip.visual.transform.baseVal.getItem(0);ce.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ce,0)},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),fe.prototype.select=function(){this.positionTip(),Pe.prototype.select.call(this)},fe.prototype.getState=function(){var ce=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Pe.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){var pe=ce;this.bgColor=pe.bgColor,this.tipPosition=pe.tipPosition,Pe.prototype.restoreState.call(this,ce),this.createTip(),this.setTipPoints()},fe.prototype.scale=function(ce,pe){Pe.prototype.scale.call(this,ce,pe),this.tipPosition={x:this.tipPosition.x*ce,y:this.tipPosition.y*pe},this.positionTip()},fe.typeName="CalloutMarker",fe.title="Callout marker",fe.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>',fe}(jt),cn=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,pe,de)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.opacity=1,le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.fillColor=de.defaultFillColor,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.setOpacity=le.setOpacity.bind(le),le.createVisual=le.createVisual.bind(le),le.strokePanel=new We("Line color",be(de.defaultColorSet,["transparent"]),de.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new We("Fill color",be(de.defaultColorSet,["transparent"]),le.fillColor,Ae),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new Se("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ze("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.opacityPanel=new Bn("Opacity",de.defaultOpacitySteps,le.opacity),le.opacityPanel.onOpacityChanged=le.setOpacity,le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},fe.prototype.createVisual=function(){this.visual=Me.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ce,pe){Pe.prototype.pointerDown.call(this,ce,pe),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},fe.prototype.manipulate=function(ce){Pe.prototype.manipulate.call(this,ce)},fe.prototype.resize=function(ce){Pe.prototype.resize.call(this,ce),this.setSize()},fe.prototype.setSize=function(){Pe.prototype.setSize.call(this),Me.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},fe.prototype.pointerUp=function(ce){Pe.prototype.pointerUp.call(this,ce),this.setSize()},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&Me.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},fe.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&Me.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&Me.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&Me.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},fe.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&Me.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Pe.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){var pe=ce;this.fillColor=pe.fillColor,this.strokeColor=pe.strokeColor,this.strokeWidth=pe.strokeWidth,this.strokeDasharray=pe.strokeDasharray,this.opacity=pe.opacity,this.createVisual(),Pe.prototype.restoreState.call(this,ce),this.setSize()},fe.prototype.scale=function(ce,pe){Pe.prototype.scale.call(this,ce,pe),this.setSize()},fe.typeName="EllipseMarker",fe.title="Ellipse marker",fe.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>',fe}(rt),Pt=function(Pe){function fe(ce,pe,de){return Pe.call(this,ce,pe,de)||this}return Le(fe,Pe),Object.defineProperty(fe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.tip1&&ce!==this.tip2)},fe.prototype.createTips=function(){this.tip1=Me.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(Me.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Me.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(Me.createTransform()),this.visual.appendChild(this.tip2)},fe.prototype.pointerDown=function(ce,pe){Pe.prototype.pointerDown.call(this,ce,pe),this.state==="creating"&&this.createTips()},fe.prototype.adjustVisual=function(){if(Pe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Me.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Me.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),pe=this.tip1.transform.baseVal.getItem(0);pe.setRotate(ce,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(pe,0);var de=this.tip2.transform.baseVal.getItem(0);de.setRotate(ce+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(de,0)}},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Pe.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){Pe.prototype.restoreState.call(this,ce),this.createTips(),this.adjustVisual()},fe.typeName="MeasurementMarker",fe.title="Measurement marker",fe.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>',fe}(ft),ht=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,pe,de)||this;return le.strokePanel.colors=de.defaultColorSet,le.fillColor="transparent",le}return Le(fe,Pe),Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Pe.prototype.getState.call(this);return ce.typeName=fe.typeName,ce},fe.typeName="EllipseFrameMarker",fe.title="Ellipse frame marker",fe.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>',fe}(cn),Et=function(){function Pe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Pe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Pe.prototype.addUndoStep=function(fe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(fe)||(this.undoStack.push(fe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(fe)&&this.redoStack.splice(0,this.redoStack.length))},Pe.prototype.replaceLastUndoStep=function(fe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=fe)},Pe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Pe.prototype.undo=function(){if(this.undoStack.length>1){var fe=this.undoStack.pop();return fe!==void 0&&this.redoStack.push(fe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Pe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Pe}(),Qt=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,pe,de)||this;return le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.curveX=0,le.curveY=0,le.manipulationStartCurveX=0,le.manipulationStartCurveY=0,le.setStrokeColor=le.setStrokeColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.positionGrips=le.positionGrips.bind(le),le.addControlGrips=le.addControlGrips.bind(le),le.adjustVisual=le.adjustVisual.bind(le),le.setupControlBox=le.setupControlBox.bind(le),le.resize=le.resize.bind(le),le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.strokePanel=new We("Line color",de.defaultColorSet,de.defaultColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.strokeWidthPanel=new Se("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ze("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorCurve&&ce!==this.visibleCurve&&!this.curveGrip.ownsTarget(ce))},fe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},fe.prototype.createVisual=function(){this.visual=Me.createGroup(),this.selectorCurve=Me.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Me.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},fe.prototype.pointerDown=function(ce,pe){Pe.prototype.pointerDown.call(this,ce,pe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ce.x,this.curveY=ce.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(pe)&&(this.activeGrip=this.curveGrip,this._state="resize")},fe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Me.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Me.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Me.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},fe.prototype.setupControlBox=function(){Pe.prototype.setupControlBox.call(this),this.curveControlLine1=Me.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Me.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},fe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Pe.prototype.addControlGrips.call(this)},fe.prototype.positionGrips=function(){Pe.prototype.positionGrips.call(this);var ce=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ce/2,this.curveY-ce/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},fe.prototype.manipulate=function(ce){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ce.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ce.y-this.manipulationStartY),Pe.prototype.manipulate.call(this,ce)},fe.prototype.resize=function(ce){this.activeGrip===this.curveGrip&&(this.curveX=ce.x,this.curveY=ce.y),Pe.prototype.resize.call(this,ce),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual()},fe.prototype.scale=function(ce,pe){this.curveX=this.curveX*ce,this.curveY=this.curveY*pe,Pe.prototype.scale.call(this,ce,pe)},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Pe.prototype.getState.call(this));return ce.typeName=fe.typeName,ce},fe.prototype.restoreState=function(ce){Pe.prototype.restoreState.call(this,ce);var pe=ce;this.strokeColor=pe.strokeColor,this.strokeWidth=pe.strokeWidth,this.strokeDasharray=pe.strokeDasharray,this.curveX=pe.curveX,this.curveY=pe.curveY,this.createVisual(),this.adjustVisual()},fe.typeName="CurveMarker",fe.title="Curve marker",fe.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>',fe}(pt),ir=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,pe,de)||this;return le.fillColor="transparent",le.strokeColor="transparent",le.strokeWidth=0,le.strokeDasharray="",le.textColor="transparent",le.fontSize="1rem",le.isMoved=!1,le.captionText="Caption",le.PADDING=5,le.captionBoxWidth=0,le.captionBoxHeight=0,le.strokeColor=de.defaultColor,le.strokeWidth=de.defaultStrokeWidth,le.strokeDasharray=de.defaultStrokeDasharray,le.fillColor=de.defaultFillColor,le.textColor=de.defaultStrokeColor,le.fontFamily=de.defaultFontFamily,le.fontSize=de.defaultCaptionFontSize,le.captionText=de.defaultCaptionText,le.setStrokeColor=le.setStrokeColor.bind(le),le.setFillColor=le.setFillColor.bind(le),le.setStrokeWidth=le.setStrokeWidth.bind(le),le.setStrokeDasharray=le.setStrokeDasharray.bind(le),le.createVisual=le.createVisual.bind(le),le.sizeCaption=le.sizeCaption.bind(le),le.setCaptionText=le.setCaptionText.bind(le),le.showTextEditor=le.showTextEditor.bind(le),le.positionTextEditor=le.positionTextEditor.bind(le),le.finishTextEditing=le.finishTextEditing.bind(le),le.setFont=le.setFont.bind(le),le.setTextColor=le.setTextColor.bind(le),le.strokePanel=new We("Line color",be(de.defaultColorSet,["transparent"]),le.strokeColor),le.strokePanel.onColorChanged=le.setStrokeColor,le.fillPanel=new We("Fill color",be(de.defaultColorSet,["transparent"]),le.fillColor,Ae),le.fillPanel.onColorChanged=le.setFillColor,le.strokeWidthPanel=new Se("Line width",de.defaultStrokeWidths,de.defaultStrokeWidth),le.strokeWidthPanel.onWidthChanged=le.setStrokeWidth,le.strokeStylePanel=new Ze("Line style",de.defaultStrokeDasharrays,de.defaultStrokeDasharray),le.strokeStylePanel.onStyleChanged=le.setStrokeDasharray,le.fontFamilyPanel=new Ne("Font",de.defaultFontFamilies,de.defaultFontFamily),le.fontFamilyPanel.onFontChanged=le.setFont,le.textColorPanel=new We("Text color",de.defaultColorSet,le.textColor,at),le.textColorPanel.onColorChanged=le.setTextColor,le}return Le(fe,Pe),fe.prototype.ownsTarget=function(ce){return!(!Pe.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.frame&&ce!==this.captionBg&&ce!==this.captionElement)},fe.prototype.createVisual=function(){this.visual=Me.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Me.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Me.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=Me.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},fe.prototype.setCaptionText=function(ce){this.captionText=ce,this.captionElement.textContent=this.captionText,this.sizeCaption()},fe.prototype.pointerDown=function(ce,pe){Pe.prototype.pointerDown.call(this,ce,pe),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},fe.prototype.manipulate=function(ce){Pe.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},fe.prototype.resize=function(ce){Pe.prototype.resize.call(this,ce),this.setSize()},fe.prototype.sizeCaption=function(){var ce=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ce.width+2*this.PADDING,this.captionBoxHeight=ce.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Me.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),Me.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},fe.prototype.showTextEditor=function(){var ce=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(pe){pe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(pe){pe.key==="Enter"&&ce.finishTextEditing(ce.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(pe){pe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},fe.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"))},fe.prototype.finishTextEditing=function(ce){this.setCaptionText(ce.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},fe.prototype.setFont=function(ce){this.captionElement&&Me.setAttributes(this.captionElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},fe.prototype.setTextColor=function(ce){this.captionElement&&Me.setAttributes(this.captionElement,[["fill",ce]]),this.textColor=ce,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},fe.prototype.setSize=function(){Pe.prototype.setSize.call(this),Me.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},fe.prototype.pointerUp=function(ce){Pe.prototype.pointerUp.call(this,ce),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},fe.prototype.dblClick=function(ce,pe){Pe.prototype.dblClick.call(this,ce,pe),this.showTextEditor()},fe.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.frame&&Me.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},fe.prototype.setFillColor=function(ce){this.fillColor=ce,this.captionBg&&Me.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},fe.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.frame&&Me.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},fe.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.frame&&Me.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(fe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),fe.prototype.getState=function(){var ce=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},Pe.prototype.getState.call(this));return ce.typeName=this.typeName,ce},fe.prototype.restoreState=function(ce){var pe=ce;this.fillColor=pe.fillColor,this.strokeColor=pe.strokeColor,this.strokeWidth=pe.strokeWidth,this.strokeDasharray=pe.strokeDasharray,this.textColor=pe.textColor,this.fontFamily=pe.fontFamily,this.captionText=pe.captionText,this.fontSize=pe.fontSize,this.createVisual(),Pe.prototype.restoreState.call(this,ce),this.setSize()},fe.prototype.scale=function(ce,pe){Pe.prototype.scale.call(this,ce,pe),this.setSize()},fe.typeName="CaptionFrameMarker",fe.title="Caption frame marker",fe.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>',fe}(rt),On=function(){function Pe(fe,ce){ce===void 0&&(ce=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=fe,this.cancelable=ce}return Object.defineProperty(Pe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Pe.prototype.preventDefault=function(){this._defaultPrevented=!0},Pe}(),$t=function(Pe){function fe(ce,pe,de){var le=Pe.call(this,ce,!1)||this;return le.dataUrl=pe,le.state=de,le}return Le(fe,Pe),fe}(On),yn=function(Pe){function fe(ce,pe,de){de===void 0&&(de=!1);var le=Pe.call(this,ce,de)||this;return le.marker=pe,le}return Le(fe,Pe),fe}(On),Qn=function(){function Pe(){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 Pe.prototype.addEventListener=function(fe,ce){this[fe].push(ce)},Pe.prototype.removeEventListener=function(fe,ce){var pe=this[fe].indexOf(ce);pe>-1&&this[fe].splice(pe,1)},Pe}(),Cn=function(){function Pe(fe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new yt,this._isOpen=!1,this.undoRedoManager=new Et,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 Qn,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Pe.instanceCounter++,this.styles=new Ie(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=fe,this.targetRoot=document.body,this.width=fe.clientWidth,this.height=fe.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(Pe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ge,bt,Mt,jt,ht,cn,Tn,St,Pt,Gt,ft,Qt,ir]},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ge,bt,Mt,jt,cn,Tn,St]},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ge,bt,Mt,jt,Tn]},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(fe){var ce=this;this._availableMarkerTypes.splice(0),fe.forEach(function(pe){if(typeof pe=="string"){var de=ce.ALL_MARKER_TYPES.find(function(le){return le.typeName===pe});de!==void 0&&ce._availableMarkerTypes.push(de)}else ce._availableMarkerTypes.push(pe)})},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Pe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(fe){this._zoomLevel=fe,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(Pe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Pe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ue.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Pe.prototype.show=function(){var fe=this;this.styles.styleSheetRoot===void 0&&me.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=me.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ce){return ce(new On(fe))})},Pe.prototype.render=function(){return Oe(this,void 0,void 0,function(){var fe;return Ue(this,function(ce){switch(ce.label){case 0:return this.setCurrentMarker(),(fe=new we).naturalSize=this.renderAtNaturalSize,fe.imageType=this.renderImageType,fe.imageQuality=this.renderImageQuality,fe.markersOnly=this.renderMarkersOnly,fe.width=this.renderWidth,fe.height=this.renderHeight,[4,fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ce.sent(),[4,fe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ce.sent()]}})})},Pe.prototype.close=function(fe){var ce=this;if(fe===void 0&&(fe=!1),this.isOpen){var pe=!1;fe||this.eventListeners.beforeclose.forEach(function(de){var le=new On(ce,!0);de(le),le.defaultPrevented&&(pe=!0)}),pe||(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 On(ce))}),this.detachEvents(),this._isOpen=!1)}},Pe.prototype.addMarkersToToolbar=function(){for(var fe,ce=[],pe=0;pe<arguments.length;pe++)ce[pe]=arguments[pe];(fe=this._availableMarkerTypes).push.apply(fe,ce)},Pe.prototype.addRenderEventListener=function(fe){this.addEventListener("render",function(ce){fe(ce.dataUrl,ce.state)})},Pe.prototype.removeRenderEventListener=function(fe){},Pe.prototype.addCloseEventListener=function(fe){this.addEventListener("close",function(){fe()})},Pe.prototype.removeCloseEventListener=function(fe){},Pe.prototype.setupResizeObserver=function(){var fe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){fe.resize(fe.target.clientWidth,fe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return fe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Pe.prototype.onPopupTargetResize=function(){var fe=1*this.target.clientWidth/this.target.clientHeight,ce=this.editorCanvas.clientWidth/fe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*fe:this.editorCanvas.clientWidth,pe=ce<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/fe;this.resize(ce,pe)},Pe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Pe.prototype.resize=function(fe,ce){this._isResizing=!0;var pe=fe/this.imageWidth,de=ce/this.imageHeight;this.imageWidth=Math.round(fe),this.imageHeight=Math.round(ce),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(pe,de),this._isResizing=!1},Pe.prototype.scaleMarkers=function(fe,ce){var pe,de=this;this._currentMarker&&this._currentMarker instanceof jt?this._currentMarker.scale(fe,ce):(pe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(le){le!==de._currentMarker&&le.scale(fe,ce)}),pe!==void 0&&this.setCurrentMarker(pe)},Pe.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"},Pe.prototype.setTopLeft=function(){var fe=this.editingTarget.getBoundingClientRect(),ce=this.editorCanvas.getBoundingClientRect();this.left=fe.left-ce.left,this.top=fe.top-ce.top},Pe.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)},Pe.prototype.addDefs=function(){for(var fe,ce=[],pe=0;pe<arguments.length;pe++)ce[pe]=arguments[pe];this.defs=Me.createDefs(),this.addDefsToImage(),(fe=this.defs).append.apply(fe,ce)},Pe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Pe.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)},Pe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Pe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Pe.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)},Pe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Pe.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)},Pe.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 fe=document.createElement("a");fe.href="https://markerjs.com/",fe.target="_blank",fe.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>',fe.title="Powered by marker.js",fe.style.display="grid",fe.style.alignItems="center",fe.style.justifyItems="center",fe.style.padding="3px",fe.style.width="20px",fe.style.height="20px",this.logoUI.appendChild(fe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Pe.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")},Pe.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"},Pe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Pe.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 fe=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=fe+"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 st(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 dt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Pe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Pe.prototype.removeMarker=function(fe){this.markerImage.removeChild(fe.container),this.markers.indexOf(fe)>-1&&this.markers.splice(this.markers.indexOf(fe),1),fe.dispose()},Pe.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())},Pe.prototype.toolbarButtonClicked=function(fe,ce){if(fe==="marker"&&ce!==void 0)this.createNewMarker(ce);else if(fe==="action")switch(ce){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},Pe.prototype.deleteSelectedMarker=function(){var fe=this;if(this._currentMarker!==void 0){var ce=!1;if(this.eventListeners.markerbeforedelete.forEach(function(de){var le=new yn(fe,fe._currentMarker,!0);de(le),le.defaultPrevented&&(ce=!0)}),!ce){var pe=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 yn(fe,pe))})}}},Pe.prototype.clear=function(){var fe=this,ce=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Te){var ot=new yn(fe,void 0,!0);Te(ot),ot.defaultPrevented&&(ce=!0)}),!ce)){this.setCurrentMarker();for(var pe=function(Te){var ot=de.markers[Te];de.setCurrentMarker(de.markers[Te]),de._currentMarker.dispose(),de.markerImage.removeChild(de._currentMarker.container),de.markers.splice(de.markers.indexOf(de._currentMarker),1),de.eventListeners.markerdelete.forEach(function(Bt){return Bt(new yn(fe,ot))})},de=this,le=this.markers.length-1;le>=0;le--)pe(le);this.addUndoStep()}},Object.defineProperty(Pe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Pe.prototype.showNotesEditor=function(){var fe;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=(fe=this._currentMarker.notes)!==null&&fe!==void 0?fe:"",this.overlayContainer.appendChild(this.notesArea))},Pe.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)},Pe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Pe.prototype.addUndoStep=function(){var fe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ce=this.getState(),pe=this.undoRedoManager.getLastUndoStep();if(!pe||pe.width===ce.width&&pe.height===ce.height){var de=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ce),de<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(le){return le(new On(fe))})}else this.undoRedoManager.replaceLastUndoStep(ce),this.eventListeners.statechange.forEach(function(le){return le(new On(fe))})}},Pe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Pe.prototype.undoStep=function(){var fe=this,ce=this.undoRedoManager.undo();ce!==void 0&&(this.restoreState(ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(pe){return pe(new On(fe))}))},Pe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Pe.prototype.redoStep=function(){var fe=this,ce=this.undoRedoManager.redo();ce!==void 0&&(this.restoreState(ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(pe){return pe(new On(fe))}))},Pe.prototype.stepZoom=function(){var fe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=fe<this.zoomSteps.length-1?this.zoomSteps[fe+1]:this.zoomSteps[0]},Pe.prototype.panTo=function(fe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-fe.x,top:this.prevPanPoint.y-fe.y}),this.prevPanPoint=fe},Pe.prototype.startRenderAndClose=function(){return Oe(this,void 0,void 0,function(){var fe,ce,pe=this;return Ue(this,function(de){switch(de.label){case 0:return[4,this.render()];case 1:return fe=de.sent(),ce=this.getState(),this.eventListeners.render.forEach(function(le){return le(new $t(pe,fe,ce))}),this.close(!0),[2]}})})},Pe.prototype.getState=function(fe){fe===!0&&this.setCurrentMarker();var ce={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(pe){return ce.markers.push(pe.getState())}),ce},Pe.prototype.restoreState=function(fe){var ce=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);fe.markers.forEach(function(pe){var de=ce._availableMarkerTypes.find(function(Te){return Te.typeName===pe.typeName});if(de!==void 0){var le=ce.addNewMarker(de);le.restoreState(pe),ce.markers.push(le)}}),fe.width&&fe.height&&(fe.width!==this.imageWidth||fe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/fe.width,this.imageHeight/fe.height),this.eventListeners.restorestate.forEach(function(pe){return pe(new On(ce))})},Pe.prototype.addNewMarker=function(fe){var ce=Me.createGroup();return this.markerImage.appendChild(ce),new fe(ce,this.overlayContainer,this.settings)},Pe.prototype.createNewMarker=function(fe){var ce,pe=this;(ce=typeof fe=="string"?this._availableMarkerTypes.find(function(de){return de.typeName===fe}):fe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ce),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(ce.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(de){return de(new yn(pe,pe._currentMarker))}))},Pe.prototype.markerCreated=function(fe){var ce=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(fe),this.setCurrentMarker(fe),fe instanceof bt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(bt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(pe){return pe(new yn(ce,ce._currentMarker))})},Pe.prototype.colorChanged=function(fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=fe,this.settings.defaultStrokeColor=fe)},Pe.prototype.fillColorChanged=function(fe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=fe)},Pe.prototype.markerStateChanged=function(fe){var ce=this;this.eventListeners.markerchange.forEach(function(pe){return pe(new yn(ce,fe))})},Pe.prototype.setCurrentMarker=function(fe){var ce=this;this._currentMarker!==fe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(pe){return pe(new yn(ce,ce._currentMarker))})),this._currentMarker=fe,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(pe){return pe(new yn(ce,ce._currentMarker))}))},Pe.prototype.onPointerDown=function(fe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||fe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ce=this.markers.find(function(pe){return pe.ownsTarget(fe.target)});ce!==void 0?(this.setCurrentMarker(ce),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(fe.clientX,fe.clientY),fe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:fe.clientX,y:fe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(fe.clientX,fe.clientY))},Pe.prototype.onDblClick=function(fe){if(this._isFocused||this.focus(),this.mode==="select"){var ce=this.markers.find(function(pe){return pe.ownsTarget(fe.target)});ce!==void 0&&ce!==this._currentMarker&&this.setCurrentMarker(ce),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(fe.clientX,fe.clientY),fe.target):this.setCurrentMarker()}},Pe.prototype.onPointerMove=function(fe){this.touchPoints!==1&&fe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||fe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(fe.clientX,fe.clientY)):this.zoomLevel>1&&this.panTo({x:fe.clientX,y:fe.clientY}))},Pe.prototype.onPointerUp=function(fe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(fe.clientX,fe.clientY)),this.isDragging=!1,this.addUndoStep()},Pe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Pe.prototype.onKeyUp=function(fe){this._currentMarker===void 0||this.notesArea!==void 0||fe.key!=="Delete"&&fe.key!=="Backspace"||this.deleteSelectedMarker()},Pe.prototype.clientToLocalCoordinates=function(fe,ce){var pe=this.markerImage.getBoundingClientRect();return{x:(fe-pe.left)/this.zoomLevel,y:(ce-pe.top)/this.zoomLevel}},Pe.prototype.onWindowResize=function(){this.positionUI()},Pe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var fe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=fe+"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()},Pe.prototype.addLicenseKey=function(fe){ue.addKey(fe)},Pe.prototype.addEventListener=function(fe,ce){this.eventListeners.addEventListener(fe,ce)},Pe.prototype.removeEventListener=function(fe,ce){this.eventListeners.removeEventListener(fe,ce)},Pe.prototype.renderState=function(fe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(fe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Pe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Pe.prototype.focus=function(){var fe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ce){return ce(new On(fe))}))},Pe.prototype.blur=function(){var fe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ce){return ce(new On(fe))}))},Pe.instanceCounter=0,Pe}()},95860:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return qe}});var ie=re(87462),Le=re(1413),Oe=re(4942),Ue=re(97685),be=re(45987),Me=re(94184),ue=re.n(Me),we=re(67294);function me(rt){var xe=we.useRef();xe.current=rt;var Se=we.useCallback(function(){for(var Ze,Ge=arguments.length,yt=new Array(Ge),pt=0;pt<Ge;pt++)yt[pt]=arguments[pt];return(Ze=xe.current)===null||Ze===void 0?void 0:Ze.call.apply(Ze,[xe].concat(yt))},[]);return Se}function Ie(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ct=Ie()?we.useLayoutEffect:we.useEffect,Ke=function(xe,Se){var Ze=we.useRef(!0);ct(function(){return xe(Ze.current)},Se),ct(function(){return Ze.current=!1,function(){Ze.current=!0}},[])},st=function(xe,Se){Ke(function(Ze){if(!Ze)return xe()},Se)},dt=null;function Xe(rt){var xe=we.useRef(!1),Se=we.useState(rt),Ze=(0,Ue.Z)(Se,2),Ge=Ze[0],yt=Ze[1];we.useEffect(function(){return xe.current=!1,function(){xe.current=!0}},[]);function pt(ft,Ne){Ne&&xe.current||yt(ft)}return[Ge,pt]}function We(rt){return rt!==void 0}function ye(rt,xe){var Se=xe||{},Ze=Se.defaultValue,Ge=Se.value,yt=Se.onChange,pt=Se.postState,ft=Xe(function(){return We(Ge)?Ge:We(Ze)?typeof Ze=="function"?Ze():Ze:typeof rt=="function"?rt():rt}),Ne=(0,Ue.Z)(ft,2),jt=Ne[0],bt=Ne[1],xn=Ge!==void 0?Ge:jt,Mt=pt?pt(xn):xn,Gt=me(yt),Bn=Xe([xn]),Tn=(0,Ue.Z)(Bn,2),at=Tn[0],Ae=Tn[1];st(function(){var cn=at[0];jt!==cn&&Gt(jt,cn)},[at]),st(function(){We(Ge)||bt(Ge)},[Ge]);var St=me(function(cn,Pt){bt(cn,Pt),Ae([xn],Pt)});return[Mt,St]}var it=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Lt=(0,we.forwardRef)(function(rt,xe){var Se,Ze=rt.prefixCls,Ge=Ze===void 0?"rc-checkbox":Ze,yt=rt.className,pt=rt.style,ft=rt.checked,Ne=rt.disabled,jt=rt.defaultChecked,bt=jt===void 0?!1:jt,xn=rt.type,Mt=xn===void 0?"checkbox":xn,Gt=rt.title,Bn=rt.onChange,Tn=(0,be.Z)(rt,it),at=(0,we.useRef)(null),Ae=ye(bt,{value:ft}),St=(0,Ue.Z)(Ae,2),cn=St[0],Pt=St[1];(0,we.useImperativeHandle)(xe,function(){return{focus:function(){var ir;(ir=at.current)===null||ir===void 0||ir.focus()},blur:function(){var ir;(ir=at.current)===null||ir===void 0||ir.blur()},input:at.current}});var ht=ue()(Ge,yt,(Se={},(0,Oe.Z)(Se,"".concat(Ge,"-checked"),cn),(0,Oe.Z)(Se,"".concat(Ge,"-disabled"),Ne),Se)),Et=function(ir){Ne||("checked"in rt||Pt(ir.target.checked),Bn==null||Bn({target:(0,Le.Z)((0,Le.Z)({},rt),{},{type:Mt,checked:ir.target.checked}),stopPropagation:function(){ir.stopPropagation()},preventDefault:function(){ir.preventDefault()},nativeEvent:ir.nativeEvent}))};return we.createElement("span",{className:ht,title:Gt,style:pt},we.createElement("input",(0,ie.Z)({},Tn,{className:"".concat(Ge,"-input"),ref:at,onChange:Et,disabled:Ne,checked:!!cn,type:Mt})),we.createElement("span",{className:"".concat(Ge,"-inner")}))}),qe=Lt},26819:function(bn,Ut){"use strict";var re;var ie=typeof Symbol=="function"&&Symbol.for,Le=ie?Symbol.for("react.element"):60103,Oe=ie?Symbol.for("react.portal"):60106,Ue=ie?Symbol.for("react.fragment"):60107,be=ie?Symbol.for("react.strict_mode"):60108,Me=ie?Symbol.for("react.profiler"):60114,ue=ie?Symbol.for("react.provider"):60109,we=ie?Symbol.for("react.context"):60110,me=ie?Symbol.for("react.async_mode"):60111,Ie=ie?Symbol.for("react.concurrent_mode"):60111,ct=ie?Symbol.for("react.forward_ref"):60112,Ke=ie?Symbol.for("react.suspense"):60113,st=ie?Symbol.for("react.suspense_list"):60120,dt=ie?Symbol.for("react.memo"):60115,Xe=ie?Symbol.for("react.lazy"):60116,We=ie?Symbol.for("react.block"):60121,ye=ie?Symbol.for("react.fundamental"):60117,it=ie?Symbol.for("react.responder"):60118,Lt=ie?Symbol.for("react.scope"):60119;function qe(xe){if(typeof xe=="object"&&xe!==null){var Se=xe.$$typeof;switch(Se){case Le:switch(xe=xe.type,xe){case me:case Ie:case Ue:case Me:case be:case Ke:return xe;default:switch(xe=xe&&xe.$$typeof,xe){case we:case ct:case Xe:case dt:case ue:return xe;default:return Se}}case Oe:return Se}}}function rt(xe){return qe(xe)===Ie}re=me,re=Ie,re=we,re=ue,re=Le,re=ct,re=Ue,re=Xe,re=dt,re=Oe,re=Me,re=be,re=Ke,re=function(xe){return rt(xe)||qe(xe)===me},re=rt,re=function(xe){return qe(xe)===we},re=function(xe){return qe(xe)===ue},re=function(xe){return typeof xe=="object"&&xe!==null&&xe.$$typeof===Le},re=function(xe){return qe(xe)===ct},re=function(xe){return qe(xe)===Ue},re=function(xe){return qe(xe)===Xe},Ut.isMemo=function(xe){return qe(xe)===dt},re=function(xe){return qe(xe)===Oe},re=function(xe){return qe(xe)===Me},re=function(xe){return qe(xe)===be},re=function(xe){return qe(xe)===Ke},re=function(xe){return typeof xe=="string"||typeof xe=="function"||xe===Ue||xe===Ie||xe===Me||xe===be||xe===Ke||xe===st||typeof xe=="object"&&xe!==null&&(xe.$$typeof===Xe||xe.$$typeof===dt||xe.$$typeof===ue||xe.$$typeof===we||xe.$$typeof===ct||xe.$$typeof===ye||xe.$$typeof===it||xe.$$typeof===Lt||xe.$$typeof===We)},re=qe},18459:function(bn,Ut,re){"use strict";bn.exports=re(26819)},16651:function(bn,Ut){"use strict";var re;var ie=Symbol.for("react.element"),Le=Symbol.for("react.portal"),Oe=Symbol.for("react.fragment"),Ue=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),ue=Symbol.for("react.context"),we=Symbol.for("react.server_context"),me=Symbol.for("react.forward_ref"),Ie=Symbol.for("react.suspense"),ct=Symbol.for("react.suspense_list"),Ke=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),dt=Symbol.for("react.offscreen"),Xe;Xe=Symbol.for("react.module.reference");function We(ye){if(typeof ye=="object"&&ye!==null){var it=ye.$$typeof;switch(it){case ie:switch(ye=ye.type,ye){case Oe:case be:case Ue:case Ie:case ct:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case we:case ue:case me:case st:case Ke:case Me:return ye;default:return it}}case Le:return it}}}re=ue,re=Me,re=ie,re=me,re=Oe,re=st,re=Ke,re=Le,re=be,re=Ue,re=Ie,re=ct,re=function(){return!1},re=function(){return!1},re=function(ye){return We(ye)===ue},re=function(ye){return We(ye)===Me},re=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===ie},re=function(ye){return We(ye)===me},re=function(ye){return We(ye)===Oe},re=function(ye){return We(ye)===st},re=function(ye){return We(ye)===Ke},re=function(ye){return We(ye)===Le},re=function(ye){return We(ye)===be},re=function(ye){return We(ye)===Ue},re=function(ye){return We(ye)===Ie},re=function(ye){return We(ye)===ct},re=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Oe||ye===be||ye===Ue||ye===Ie||ye===ct||ye===dt||typeof ye=="object"&&ye!==null&&(ye.$$typeof===st||ye.$$typeof===Ke||ye.$$typeof===Me||ye.$$typeof===ue||ye.$$typeof===me||ye.$$typeof===Xe||ye.getModuleId!==void 0)},re=We},33993:function(bn,Ut,re){"use strict";re(16651)},82523:function(bn,Ut){"use strict";var re;var ie=Symbol.for("react.element"),Le=Symbol.for("react.portal"),Oe=Symbol.for("react.fragment"),Ue=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),ue=Symbol.for("react.context"),we=Symbol.for("react.server_context"),me=Symbol.for("react.forward_ref"),Ie=Symbol.for("react.suspense"),ct=Symbol.for("react.suspense_list"),Ke=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),dt=Symbol.for("react.offscreen"),Xe;Xe=Symbol.for("react.module.reference");function We(ye){if(typeof ye=="object"&&ye!==null){var it=ye.$$typeof;switch(it){case ie:switch(ye=ye.type,ye){case Oe:case be:case Ue:case Ie:case ct:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case we:case ue:case me:case st:case Ke:case Me:return ye;default:return it}}case Le:return it}}}re=ue,re=Me,re=ie,re=me,re=Oe,re=st,re=Ke,re=Le,re=be,re=Ue,re=Ie,re=ct,re=function(){return!1},re=function(){return!1},re=function(ye){return We(ye)===ue},re=function(ye){return We(ye)===Me},re=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===ie},re=function(ye){return We(ye)===me},re=function(ye){return We(ye)===Oe},re=function(ye){return We(ye)===st},re=function(ye){return We(ye)===Ke},re=function(ye){return We(ye)===Le},re=function(ye){return We(ye)===be},re=function(ye){return We(ye)===Ue},re=function(ye){return We(ye)===Ie},re=function(ye){return We(ye)===ct},re=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Oe||ye===be||ye===Ue||ye===Ie||ye===ct||ye===dt||typeof ye=="object"&&ye!==null&&(ye.$$typeof===st||ye.$$typeof===Ke||ye.$$typeof===Me||ye.$$typeof===ue||ye.$$typeof===me||ye.$$typeof===Xe||ye.getModuleId!==void 0)},re=We},27183:function(bn,Ut,re){"use strict";re(82523)},67656:function(bn,Ut,re){"use strict";re.r(Ut),re.d(Ut,{BaseInput:function(){return Ie},default:function(){return Lt}});var ie=re(87462),Le=re(1413),Oe=re(4942),Ue=re(71002),be=re(94184),Me=re.n(be),ue=re(67294),we=re(87887),me=function(rt){var xe,Se,Ze=rt.inputElement,Ge=rt.prefixCls,yt=rt.prefix,pt=rt.suffix,ft=rt.addonBefore,Ne=rt.addonAfter,jt=rt.className,bt=rt.style,xn=rt.disabled,Mt=rt.readOnly,Gt=rt.focused,Bn=rt.triggerFocus,Tn=rt.allowClear,at=rt.value,Ae=rt.handleReset,St=rt.hidden,cn=rt.classes,Pt=rt.classNames,ht=rt.dataAttrs,Et=rt.styles,Qt=rt.components,ir=(Qt==null?void 0:Qt.affixWrapper)||"span",On=(Qt==null?void 0:Qt.groupWrapper)||"span",$t=(Qt==null?void 0:Qt.wrapper)||"span",yn=(Qt==null?void 0:Qt.groupAddon)||"span",Qn=(0,ue.useRef)(null),Cn=function(sn){var un;(un=Qn.current)!==null&&un!==void 0&&un.contains(sn.target)&&(Bn==null||Bn())},Pe=function(){var sn;if(!Tn)return null;var un=!xn&&!Mt&&at,gt="".concat(Ge,"-clear-icon"),zt=(0,Ue.Z)(Tn)==="object"&&Tn!==null&&Tn!==void 0&&Tn.clearIcon?Tn.clearIcon:"\u2716";return ue.createElement("span",{onClick:Ae,onMouseDown:function(ln){return ln.preventDefault()},className:Me()(gt,(sn={},(0,Oe.Z)(sn,"".concat(gt,"-hidden"),!un),(0,Oe.Z)(sn,"".concat(gt,"-has-suffix"),!!pt),sn)),role:"button",tabIndex:-1},zt)},fe=(0,ue.cloneElement)(Ze,{value:at,hidden:St,className:Me()((xe=Ze.props)===null||xe===void 0?void 0:xe.className,!(0,we.X3)(rt)&&!(0,we.He)(rt)&&jt)||null,style:(0,Le.Z)((0,Le.Z)({},(Se=Ze.props)===null||Se===void 0?void 0:Se.style),!(0,we.X3)(rt)&&!(0,we.He)(rt)?bt:{})});if((0,we.X3)(rt)){var ce,pe="".concat(Ge,"-affix-wrapper"),de=Me()(pe,(ce={},(0,Oe.Z)(ce,"".concat(pe,"-disabled"),xn),(0,Oe.Z)(ce,"".concat(pe,"-focused"),Gt),(0,Oe.Z)(ce,"".concat(pe,"-readonly"),Mt),(0,Oe.Z)(ce,"".concat(pe,"-input-with-clear-btn"),pt&&Tn&&at),ce),!(0,we.He)(rt)&&jt,cn==null?void 0:cn.affixWrapper,Pt==null?void 0:Pt.affixWrapper),le=(pt||Tn)&&ue.createElement("span",{className:Me()("".concat(Ge,"-suffix"),Pt==null?void 0:Pt.suffix),style:Et==null?void 0:Et.suffix},Pe(),pt);fe=ue.createElement(ir,(0,ie.Z)({className:de,style:(0,Le.Z)((0,Le.Z)({},(0,we.He)(rt)?void 0:bt),Et==null?void 0:Et.affixWrapper),hidden:!(0,we.He)(rt)&&St,onClick:Cn},ht==null?void 0:ht.affixWrapper,{ref:Qn}),yt&&ue.createElement("span",{className:Me()("".concat(Ge,"-prefix"),Pt==null?void 0:Pt.prefix),style:Et==null?void 0:Et.prefix},yt),(0,ue.cloneElement)(Ze,{value:at,hidden:null}),le)}if((0,we.He)(rt)){var Te="".concat(Ge,"-group"),ot="".concat(Te,"-addon"),Bt=Me()("".concat(Ge,"-wrapper"),Te,cn==null?void 0:cn.wrapper),en=Me()("".concat(Ge,"-group-wrapper"),jt,cn==null?void 0:cn.group);return ue.createElement(On,{className:en,style:bt,hidden:St},ue.createElement($t,{className:Bt},ft&&ue.createElement(yn,{className:ot},ft),(0,ue.cloneElement)(fe,{hidden:null}),Ne&&ue.createElement(yn,{className:ot},Ne)))}return fe},Ie=me,ct=re(74902),Ke=re(97685),st=re(45987),dt=re(21770),Xe=re(98423),We=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],ye=(0,ue.forwardRef)(function(qe,rt){var xe=qe.autoComplete,Se=qe.onChange,Ze=qe.onFocus,Ge=qe.onBlur,yt=qe.onPressEnter,pt=qe.onKeyDown,ft=qe.prefixCls,Ne=ft===void 0?"rc-input":ft,jt=qe.disabled,bt=qe.htmlSize,xn=qe.className,Mt=qe.maxLength,Gt=qe.suffix,Bn=qe.showCount,Tn=qe.type,at=Tn===void 0?"text":Tn,Ae=qe.classes,St=qe.classNames,cn=qe.styles,Pt=(0,st.Z)(qe,We),ht=(0,dt.Z)(qe.defaultValue,{value:qe.value}),Et=(0,Ke.Z)(ht,2),Qt=Et[0],ir=Et[1],On=(0,ue.useState)(!1),$t=(0,Ke.Z)(On,2),yn=$t[0],Qn=$t[1],Cn=(0,ue.useRef)(null),Pe=function(en){Cn.current&&(0,we.nH)(Cn.current,en)};(0,ue.useImperativeHandle)(rt,function(){return{focus:Pe,blur:function(){var en;(en=Cn.current)===null||en===void 0||en.blur()},setSelectionRange:function(en,rn,sn){var un;(un=Cn.current)===null||un===void 0||un.setSelectionRange(en,rn,sn)},select:function(){var en;(en=Cn.current)===null||en===void 0||en.select()},input:Cn.current}}),(0,ue.useEffect)(function(){Qn(function(Bt){return Bt&&jt?!1:Bt})},[jt]);var fe=function(en){qe.value===void 0&&ir(en.target.value),Cn.current&&(0,we.rJ)(Cn.current,en,Se)},ce=function(en){yt&&en.key==="Enter"&&yt(en),pt==null||pt(en)},pe=function(en){Qn(!0),Ze==null||Ze(en)},de=function(en){Qn(!1),Ge==null||Ge(en)},le=function(en){ir(""),Pe(),Cn.current&&(0,we.rJ)(Cn.current,en,Se)},Te=function(){var en=(0,Xe.Z)(qe,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return ue.createElement("input",(0,ie.Z)({autoComplete:xe},en,{onChange:fe,onFocus:pe,onBlur:de,onKeyDown:ce,className:Me()(Ne,(0,Oe.Z)({},"".concat(Ne,"-disabled"),jt),St==null?void 0:St.input),style:cn==null?void 0:cn.input,ref:Cn,size:bt,type:at}))},ot=function(){var en=Number(Mt)>0;if(Gt||Bn){var rn=(0,we.D7)(Qt),sn=(0,ct.Z)(rn).length,un=(0,Ue.Z)(Bn)==="object"?Bn.formatter({value:rn,count:sn,maxLength:Mt}):"".concat(sn).concat(en?" / ".concat(Mt):"");return ue.createElement(ue.Fragment,null,!!Bn&&ue.createElement("span",{className:Me()("".concat(Ne,"-show-count-suffix"),(0,Oe.Z)({},"".concat(Ne,"-show-count-has-suffix"),!!Gt),St==null?void 0:St.count),style:(0,Le.Z)({},cn==null?void 0:cn.count)},un),Gt)}return null};return ue.createElement(Ie,(0,ie.Z)({},Pt,{prefixCls:Ne,className:xn,inputElement:Te(),handleReset:le,value:(0,we.D7)(Qt),focused:yn,triggerFocus:Pe,suffix:ot(),disabled:jt,classes:Ae,classNames:St,styles:cn}))}),it=ye,Lt=it},87887:function(bn,Ut,re){"use strict";re.d(Ut,{D7:function(){return be},He:function(){return ie},X3:function(){return Le},nH:function(){return Ue},rJ:function(){return Oe}});function ie(Me){return!!(Me.addonBefore||Me.addonAfter)}function Le(Me){return!!(Me.prefix||Me.suffix||Me.allowClear)}function Oe(Me,ue,we,me){if(we){var Ie=ue;if(ue.type==="click"){var ct=Me.cloneNode(!0);Ie=Object.create(ue,{target:{value:ct},currentTarget:{value:ct}}),ct.value="",we(Ie);return}if(me!==void 0){Ie=Object.create(ue,{target:{value:Me},currentTarget:{value:Me}}),Me.value=me,we(Ie);return}we(Ie)}}function Ue(Me,ue){if(Me){Me.focus(ue);var we=ue||{},me=we.cursor;if(me){var Ie=Me.value.length;switch(me){case"start":Me.setSelectionRange(0,0);break;case"end":Me.setSelectionRange(Ie,Ie);break;default:Me.setSelectionRange(0,Ie)}}}}function be(Me){return typeof Me=="undefined"||Me===null?"":String(Me)}},78595:function(bn,Ut,re){"use strict";re.d(Ut,{iz:function(){return ki},ck:function(){return Xr},BW:function(){return bi},sN:function(){return Xr},Wd:function(){return zn},ZP:function(){return Re},Xl:function(){return un}});var ie=re(87462),Le=re(4942),Oe=re(1413),Ue=re(74902),be=re(97685),Me=re(45987),ue=re(94184),we=re.n(ue),me=re(67294),Ie=re(48555);function ct(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ke=ct()?me.useLayoutEffect:me.useEffect,st=function(Ye,Ve){var $e=me.useRef(!0);Ke(function(){return Ye($e.current)},Ve),Ke(function(){return $e.current=!1,function(){$e.current=!0}},[])},dt=function(Ye,Ve){st(function($e){if(!$e)return Ye()},Ve)},Xe=st,We=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ye=void 0;function it(He,Ye){var Ve=He.prefixCls,$e=He.invalidate,tt=He.item,Wt=He.renderItem,on=He.responsive,Zn=He.responsiveDisabled,tr=He.registerSize,Vn=He.itemKey,Mn=He.className,En=He.style,dn=He.children,Gn=He.display,xr=He.order,ar=He.component,ur=ar===void 0?"div":ar,mr=(0,Me.Z)(He,We),Sr=on&&!Gn;function Tr(vn){tr(Vn,vn)}me.useEffect(function(){return function(){Tr(null)}},[]);var je=Wt&&tt!==ye?Wt(tt):dn,Qe;$e||(Qe={opacity:Sr?0:1,height:Sr?0:ye,overflowY:Sr?"hidden":ye,order:on?xr:ye,pointerEvents:Sr?"none":ye,position:Sr?"absolute":ye});var Rt={};Sr&&(Rt["aria-hidden"]=!0);var kt=me.createElement(ur,(0,ie.Z)({className:we()(!$e&&Ve,Mn),style:(0,Oe.Z)((0,Oe.Z)({},Qe),En)},Rt,mr,{ref:Ye}),je);return on&&(kt=me.createElement(Ie.Z,{onResize:function(jn){var vt=jn.offsetWidth;Tr(vt)},disabled:Zn},kt)),kt}var Lt=me.forwardRef(it);Lt.displayName="Item";var qe=Lt;function rt(He){var Ye=me.useRef();Ye.current=He;var Ve=me.useCallback(function(){for(var $e,tt=arguments.length,Wt=new Array(tt),on=0;on<tt;on++)Wt[on]=arguments[on];return($e=Ye.current)===null||$e===void 0?void 0:$e.call.apply($e,[Ye].concat(Wt))},[]);return Ve}var xe=re(73935),Se=function(Ye){return+setTimeout(Ye,16)},Ze=function(Ye){return clearTimeout(Ye)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Se=function(Ye){return window.requestAnimationFrame(Ye)},Ze=function(Ye){return window.cancelAnimationFrame(Ye)});var Ge=0,yt=new Map;function pt(He){yt.delete(He)}var ft=function(Ye){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ge+=1;var $e=Ge;function tt(Wt){if(Wt===0)pt($e),Ye();else{var on=Se(function(){tt(Wt-1)});yt.set($e,on)}}return tt(Ve),$e};ft.cancel=function(He){var Ye=yt.get(He);return pt(Ye),Ze(Ye)};var Ne=ft;function jt(He){if(typeof MessageChannel=="undefined")Ne(He);else{var Ye=new MessageChannel;Ye.port1.onmessage=function(){return He()},Ye.port2.postMessage(void 0)}}function bt(){var He=me.useRef(null),Ye=function($e){He.current||(He.current=[],jt(function(){(0,xe.unstable_batchedUpdates)(function(){He.current.forEach(function(tt){tt()}),He.current=null})})),He.current.push($e)};return Ye}function xn(He,Ye){var Ve=me.useState(Ye),$e=(0,be.Z)(Ve,2),tt=$e[0],Wt=$e[1],on=rt(function(Zn){He(function(){Wt(Zn)})});return[tt,on]}var Mt=me.createContext(null),Gt=["component"],Bn=["className"],Tn=["className"],at=function(Ye,Ve){var $e=me.useContext(Mt);if(!$e){var tt=Ye.component,Wt=tt===void 0?"div":tt,on=(0,Me.Z)(Ye,Gt);return me.createElement(Wt,(0,ie.Z)({},on,{ref:Ve}))}var Zn=$e.className,tr=(0,Me.Z)($e,Bn),Vn=Ye.className,Mn=(0,Me.Z)(Ye,Tn);return me.createElement(Mt.Provider,{value:null},me.createElement(qe,(0,ie.Z)({ref:Ve,className:we()(Zn,Vn)},tr,Mn)))},Ae=me.forwardRef(at);Ae.displayName="RawItem";var St=Ae,cn=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Pt="responsive",ht="invalidate";function Et(He){return"+ ".concat(He.length," ...")}function Qt(He,Ye){var Ve=He.prefixCls,$e=Ve===void 0?"rc-overflow":Ve,tt=He.data,Wt=tt===void 0?[]:tt,on=He.renderItem,Zn=He.renderRawItem,tr=He.itemKey,Vn=He.itemWidth,Mn=Vn===void 0?10:Vn,En=He.ssr,dn=He.style,Gn=He.className,xr=He.maxCount,ar=He.renderRest,ur=He.renderRawRest,mr=He.suffix,Sr=He.component,Tr=Sr===void 0?"div":Sr,je=He.itemComponent,Qe=He.onVisibleChange,Rt=(0,Me.Z)(He,cn),kt=En==="full",vn=bt(),jn=xn(vn,null),vt=(0,be.Z)(jn,2),wt=vt[0],Ct=vt[1],Ft=wt||0,Ln=xn(vn,new Map),Yn=(0,be.Z)(Ln,2),wn=Yn[0],_n=Yn[1],wr=xn(vn,0),Wr=(0,be.Z)(wr,2),Lr=Wr[0],dr=Wr[1],Or=xn(vn,0),jr=(0,be.Z)(Or,2),ti=jr[0],Zr=jr[1],Mr=xn(vn,0),li=(0,be.Z)(Mr,2),si=li[0],Yi=li[1],qi=(0,me.useState)(null),ia=(0,be.Z)(qi,2),_i=ia[0],Wi=ia[1],Li=(0,me.useState)(null),da=(0,be.Z)(Li,2),Bi=da[0],fi=da[1],Ji=me.useMemo(function(){return Bi===null&&kt?Number.MAX_SAFE_INTEGER:Bi||0},[Bi,wt]),va=(0,me.useState)(!1),oo=(0,be.Z)(va,2),Ja=oo[0],Za=oo[1],Ha="".concat($e,"-item"),Ia=Math.max(Lr,ti),aa=xr===Pt,mo=Wt.length&&aa,ba=xr===ht,Zi=mo||typeof xr=="number"&&Wt.length>xr,Oa=(0,me.useMemo)(function(){var wa=Wt;return mo?wt===null&&kt?wa=Wt:wa=Wt.slice(0,Math.min(Wt.length,Ft/Mn)):typeof xr=="number"&&(wa=Wt.slice(0,xr)),wa},[Wt,Mn,wt,xr,mo]),no=(0,me.useMemo)(function(){return mo?Wt.slice(Ji+1):Wt.slice(Oa.length)},[Wt,Oa,mo,Ji]),Ra=(0,me.useCallback)(function(wa,Na){var io;return typeof tr=="function"?tr(wa):(io=tr&&(wa==null?void 0:wa[tr]))!==null&&io!==void 0?io:Na},[tr]),_a=(0,me.useCallback)(on||function(wa){return wa},[on]);function oa(wa,Na,io){Bi===wa&&(Na===void 0||Na===_i)||(fi(wa),io||(Za(wa<Wt.length-1),Qe==null||Qe(wa)),Na!==void 0&&Wi(Na))}function ro(wa,Na){Ct(Na.clientWidth)}function bo(wa,Na){_n(function(io){var go=new Map(io);return Na===null?go.delete(wa):go.set(wa,Na),go})}function co(wa,Na){Zr(Na),dr(ti)}function xo(wa,Na){Yi(Na)}function Ao(wa){return wn.get(Ra(Oa[wa],wa))}Xe(function(){if(Ft&&typeof Ia=="number"&&Oa){var wa=si,Na=Oa.length,io=Na-1;if(!Na){oa(0,null);return}for(var go=0;go<Na;go+=1){var Uo=Ao(go);if(kt&&(Uo=Uo||0),Uo===void 0){oa(go-1,void 0,!0);break}if(wa+=Uo,io===0&&wa<=Ft||go===io-1&&wa+Ao(io)<=Ft){oa(io,null);break}else if(wa+Ia>Ft){oa(go-1,wa-Uo-si+ti);break}}mr&&Ao(0)+si>Ft&&Wi(null)}},[Ft,wn,ti,si,Ra,Oa]);var Xo=Ja&&!!no.length,uo={};_i!==null&&mo&&(uo={position:"absolute",left:_i,top:0});var Co={prefixCls:Ha,responsive:mo,component:je,invalidate:ba},os=Zn?function(wa,Na){var io=Ra(wa,Na);return me.createElement(Mt.Provider,{key:io,value:(0,Oe.Z)((0,Oe.Z)({},Co),{},{order:Na,item:wa,itemKey:io,registerSize:bo,display:Na<=Ji})},Zn(wa,Na))}:function(wa,Na){var io=Ra(wa,Na);return me.createElement(qe,(0,ie.Z)({},Co,{order:Na,key:io,item:wa,renderItem:_a,itemKey:io,registerSize:bo,display:Na<=Ji}))},rs,cs={order:Xo?Ji:Number.MAX_SAFE_INTEGER,className:"".concat(Ha,"-rest"),registerSize:co,display:Xo};if(ur)ur&&(rs=me.createElement(Mt.Provider,{value:(0,Oe.Z)((0,Oe.Z)({},Co),cs)},ur(no)));else{var No=ar||Et;rs=me.createElement(qe,(0,ie.Z)({},Co,cs),typeof No=="function"?No(no):No)}var So=me.createElement(Tr,(0,ie.Z)({className:we()(!ba&&$e,Gn),style:dn,ref:Ye},Rt),Oa.map(os),Zi?rs:null,mr&&me.createElement(qe,(0,ie.Z)({},Co,{responsive:aa,responsiveDisabled:!mo,order:Ji,className:"".concat(Ha,"-suffix"),registerSize:xo,display:!0,style:uo}),mr));return aa&&(So=me.createElement(Ie.Z,{onResize:ro,disabled:!mo},So)),So}var ir=me.forwardRef(Qt);ir.displayName="Overflow",ir.Item=St,ir.RESPONSIVE=Pt,ir.INVALIDATE=ht;var On=ir,$t=On,yn=re(21770),Qn=re(80334),Cn=re(91881),Pe=me.createContext(null);function fe(He,Ye){return He===void 0?null:"".concat(He,"-").concat(Ye)}function ce(He){var Ye=me.useContext(Pe);return fe(Ye,He)}var pe=re(56982),de=["children","locked"],le=me.createContext(null);function Te(He,Ye){var Ve=(0,Oe.Z)({},He);return Object.keys(Ye).forEach(function($e){var tt=Ye[$e];tt!==void 0&&(Ve[$e]=tt)}),Ve}function ot(He){var Ye=He.children,Ve=He.locked,$e=(0,Me.Z)(He,de),tt=me.useContext(le),Wt=(0,pe.Z)(function(){return Te(tt,$e)},[tt,$e],function(on,Zn){return!Ve&&(on[0]!==Zn[0]||!(0,Cn.Z)(on[1],Zn[1],!0))});return me.createElement(le.Provider,{value:Wt},Ye)}var Bt=[],en=me.createContext(null);function rn(){return me.useContext(en)}var sn=me.createContext(Bt);function un(He){var Ye=me.useContext(sn);return me.useMemo(function(){return He!==void 0?[].concat((0,Ue.Z)(Ye),[He]):Ye},[Ye,He])}var gt=me.createContext(null),zt=me.createContext({}),It=zt,ln=re(15105),_t=re(75164),lr=function(He){if(!He)return!1;if(He instanceof Element){if(He.offsetParent)return!0;if(He.getBBox){var Ye=He.getBBox(),Ve=Ye.width,$e=Ye.height;if(Ve||$e)return!0}if(He.getBoundingClientRect){var tt=He.getBoundingClientRect(),Wt=tt.width,on=tt.height;if(Wt||on)return!0}}return!1};function xt(He){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(lr(He)){var Ve=He.nodeName.toLowerCase(),$e=["input","select","textarea","button"].includes(Ve)||He.isContentEditable||Ve==="a"&&!!He.getAttribute("href"),tt=He.getAttribute("tabindex"),Wt=Number(tt),on=null;return tt&&!Number.isNaN(Wt)?on=Wt:$e&&on===null&&(on=0),$e&&He.disabled&&(on=null),on!==null&&(on>=0||Ye&&on<0)}return!1}function Yt(He){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ve=(0,Ue.Z)(He.querySelectorAll("*")).filter(function($e){return xt($e,Ye)});return xt(He,Ye)&&Ve.unshift(He),Ve}var Un=null;function Hn(){Un=document.activeElement}function $n(){Un=null}function yr(){if(Un)try{Un.focus()}catch(He){}}function Fn(He,Ye){if(Ye.keyCode===9){var Ve=Yt(He),$e=Ve[Ye.shiftKey?0:Ve.length-1],tt=$e===document.activeElement||He===document.activeElement;if(tt){var Wt=Ve[Ye.shiftKey?Ve.length-1:0];Wt.focus(),Ye.preventDefault()}}}var or=ln.Z.LEFT,Dr=ln.Z.RIGHT,Fr=ln.Z.UP,hr=ln.Z.DOWN,_r=ln.Z.ENTER,Mi=ln.Z.ESC,zi=ln.Z.HOME,Gi=ln.Z.END,pi=[Fr,hr,or,Dr];function Zt(He,Ye,Ve,$e){var tt,Wt,on,Zn,tr="prev",Vn="next",Mn="children",En="parent";if(He==="inline"&&$e===_r)return{inlineTrigger:!0};var dn=(tt={},(0,Le.Z)(tt,Fr,tr),(0,Le.Z)(tt,hr,Vn),tt),Gn=(Wt={},(0,Le.Z)(Wt,or,Ve?Vn:tr),(0,Le.Z)(Wt,Dr,Ve?tr:Vn),(0,Le.Z)(Wt,hr,Mn),(0,Le.Z)(Wt,_r,Mn),Wt),xr=(on={},(0,Le.Z)(on,Fr,tr),(0,Le.Z)(on,hr,Vn),(0,Le.Z)(on,_r,Mn),(0,Le.Z)(on,Mi,En),(0,Le.Z)(on,or,Ve?Mn:En),(0,Le.Z)(on,Dr,Ve?En:Mn),on),ar={inline:dn,horizontal:Gn,vertical:xr,inlineSub:dn,horizontalSub:xr,verticalSub:xr},ur=(Zn=ar["".concat(He).concat(Ye?"":"Sub")])===null||Zn===void 0?void 0:Zn[$e];switch(ur){case tr:return{offset:-1,sibling:!0};case Vn:return{offset:1,sibling:!0};case En:return{offset:-1,sibling:!1};case Mn:return{offset:1,sibling:!1};default:return null}}function Kn(He){for(var Ye=He;Ye;){if(Ye.getAttribute("data-menu-list"))return Ye;Ye=Ye.parentElement}return null}function fr(He,Ye){for(var Ve=He||document.activeElement;Ve;){if(Ye.has(Ve))return Ve;Ve=Ve.parentElement}return null}function qn(He,Ye){var Ve=Yt(He,!0);return Ve.filter(function($e){return Ye.has($e)})}function Br(He,Ye,Ve){var $e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!He)return null;var tt=qn(He,Ye),Wt=tt.length,on=tt.findIndex(function(Zn){return Ve===Zn});return $e<0?on===-1?on=Wt-1:on-=1:$e>0&&(on+=1),on=(on+Wt)%Wt,tt[on]}function Kr(He,Ye,Ve,$e,tt,Wt,on,Zn,tr,Vn){var Mn=me.useRef(),En=me.useRef();En.current=Ye;var dn=function(){_t.Z.cancel(Mn.current)};return me.useEffect(function(){return function(){dn()}},[]),function(Gn){var xr=Gn.which;if([].concat(pi,[_r,Mi,zi,Gi]).includes(xr)){var ar,ur,mr,Sr=function(){ar=new Set,ur=new Map,mr=new Map;var Yn=Wt();return Yn.forEach(function(wn){var _n=document.querySelector("[data-menu-id='".concat(fe($e,wn),"']"));_n&&(ar.add(_n),mr.set(_n,wn),ur.set(wn,_n))}),ar};Sr();var Tr=ur.get(Ye),je=fr(Tr,ar),Qe=mr.get(je),Rt=Zt(He,on(Qe,!0).length===1,Ve,xr);if(!Rt&&xr!==zi&&xr!==Gi)return;(pi.includes(xr)||[zi,Gi].includes(xr))&&Gn.preventDefault();var kt=function(Yn){if(Yn){var wn=Yn,_n=Yn.querySelector("a");_n!=null&&_n.getAttribute("href")&&(wn=_n);var wr=mr.get(Yn);Zn(wr),dn(),Mn.current=(0,_t.Z)(function(){En.current===wr&&wn.focus()})}};if([zi,Gi].includes(xr)||Rt.sibling||!je){var vn;!je||He==="inline"?vn=tt.current:vn=Kn(je);var jn,vt=qn(vn,ar);xr===zi?jn=vt[0]:xr===Gi?jn=vt[vt.length-1]:jn=Br(vn,ar,je,Rt.offset),kt(jn)}else if(Rt.inlineTrigger)tr(Qe);else if(Rt.offset>0)tr(Qe,!0),dn(),Mn.current=(0,_t.Z)(function(){Sr();var Ln=je.getAttribute("aria-controls"),Yn=document.getElementById(Ln),wn=Br(Yn,ar);kt(wn)},5);else if(Rt.offset<0){var wt=on(Qe,!0),Ct=wt[wt.length-2],Ft=ur.get(Ct);tr(Ct,!1),kt(Ft)}}Vn==null||Vn(Gn)}}function Rr(He){Promise.resolve().then(He)}var gr="__RC_UTIL_PATH_SPLIT__",mt=function(Ye){return Ye.join(gr)},Ot=function(Ye){return Ye.split(gr)},Xt="rc-menu-more";function kn(){var He=me.useState({}),Ye=(0,be.Z)(He,2),Ve=Ye[1],$e=(0,me.useRef)(new Map),tt=(0,me.useRef)(new Map),Wt=me.useState([]),on=(0,be.Z)(Wt,2),Zn=on[0],tr=on[1],Vn=(0,me.useRef)(0),Mn=(0,me.useRef)(!1),En=function(){Mn.current||Ve({})},dn=(0,me.useCallback)(function(Tr,je){var Qe=mt(je);tt.current.set(Qe,Tr),$e.current.set(Tr,Qe),Vn.current+=1;var Rt=Vn.current;Rr(function(){Rt===Vn.current&&En()})},[]),Gn=(0,me.useCallback)(function(Tr,je){var Qe=mt(je);tt.current.delete(Qe),$e.current.delete(Tr)},[]),xr=(0,me.useCallback)(function(Tr){tr(Tr)},[]),ar=(0,me.useCallback)(function(Tr,je){var Qe=$e.current.get(Tr)||"",Rt=Ot(Qe);return je&&Zn.includes(Rt[0])&&Rt.unshift(Xt),Rt},[Zn]),ur=(0,me.useCallback)(function(Tr,je){return Tr.some(function(Qe){var Rt=ar(Qe,!0);return Rt.includes(je)})},[ar]),mr=function(){var je=(0,Ue.Z)($e.current.keys());return Zn.length&&je.push(Xt),je},Sr=(0,me.useCallback)(function(Tr){var je="".concat($e.current.get(Tr)).concat(gr),Qe=new Set;return(0,Ue.Z)(tt.current.keys()).forEach(function(Rt){Rt.startsWith(je)&&Qe.add(tt.current.get(Rt))}),Qe},[]);return me.useEffect(function(){return function(){Mn.current=!0}},[]),{registerPath:dn,unregisterPath:Gn,refreshOverflowKeys:xr,isSubPathKey:ur,getKeyPath:ar,getKeys:mr,getSubPathKeys:Sr}}function lt(He){var Ye=me.useRef(He);Ye.current=He;var Ve=me.useCallback(function(){for(var $e,tt=arguments.length,Wt=new Array(tt),on=0;on<tt;on++)Wt[on]=arguments[on];return($e=Ye.current)===null||$e===void 0?void 0:$e.call.apply($e,[Ye].concat(Wt))},[]);return He?Ve:void 0}var Kt=Math.random().toFixed(5).toString().slice(2),mn=0;function nn(He){var Ye=(0,yn.Z)(He,{value:He}),Ve=(0,be.Z)(Ye,2),$e=Ve[0],tt=Ve[1];return me.useEffect(function(){mn+=1;var Wt="".concat(Kt,"-").concat(mn);tt("rc-menu-uuid-".concat(Wt))},[]),$e}var In=re(15671),Pn=re(43144),vr=re(60136),ni=re(51630),zr=re(98423),Pr=re(42550);function Yr(He,Ye,Ve,$e){var tt=me.useContext(le),Wt=tt.activeKey,on=tt.onActive,Zn=tt.onInactive,tr={active:Wt===He};return Ye||(tr.onMouseEnter=function(Vn){Ve==null||Ve({key:He,domEvent:Vn}),on(He)},tr.onMouseLeave=function(Vn){$e==null||$e({key:He,domEvent:Vn}),Zn(He)}),tr}function Qr(He){var Ye=me.useContext(le),Ve=Ye.mode,$e=Ye.rtl,tt=Ye.inlineIndent;if(Ve!=="inline")return null;var Wt=He;return $e?{paddingRight:Wt*tt}:{paddingLeft:Wt*tt}}function Ht(He){var Ye=He.icon,Ve=He.props,$e=He.children,tt;return Ye===null||Ye===!1?null:(typeof Ye=="function"?tt=me.createElement(Ye,(0,Oe.Z)({},Ve)):typeof Ye!="boolean"&&(tt=Ye),tt||$e||null)}var Tt=["item"];function Jt(He){var Ye=He.item,Ve=(0,Me.Z)(He,Tt);return Object.defineProperty(Ve,"item",{get:function(){return(0,Qn.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Ye}}),Ve}var er=["title","attribute","elementRef"],kr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Rn=["active"],Jn=function(He){(0,vr.Z)(Ve,He);var Ye=(0,ni.Z)(Ve);function Ve(){return(0,In.Z)(this,Ve),Ye.apply(this,arguments)}return(0,Pn.Z)(Ve,[{key:"render",value:function(){var tt=this.props,Wt=tt.title,on=tt.attribute,Zn=tt.elementRef,tr=(0,Me.Z)(tt,er),Vn=(0,zr.Z)(tr,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Qn.ZP)(!on,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),me.createElement($t.Item,(0,ie.Z)({},on,{title:typeof Wt=="string"?Wt:void 0},Vn,{ref:Zn}))}}]),Ve}(me.Component),sr=me.forwardRef(function(He,Ye){var Ve,$e=He.style,tt=He.className,Wt=He.eventKey,on=He.warnKey,Zn=He.disabled,tr=He.itemIcon,Vn=He.children,Mn=He.role,En=He.onMouseEnter,dn=He.onMouseLeave,Gn=He.onClick,xr=He.onKeyDown,ar=He.onFocus,ur=(0,Me.Z)(He,kr),mr=ce(Wt),Sr=me.useContext(le),Tr=Sr.prefixCls,je=Sr.onItemClick,Qe=Sr.disabled,Rt=Sr.overflowDisabled,kt=Sr.itemIcon,vn=Sr.selectedKeys,jn=Sr.onActive,vt=me.useContext(It),wt=vt._internalRenderMenuItem,Ct="".concat(Tr,"-item"),Ft=me.useRef(),Ln=me.useRef(),Yn=Qe||Zn,wn=(0,Pr.x1)(Ye,Ln),_n=un(Wt),wr=function(ia){return{key:Wt,keyPath:(0,Ue.Z)(_n).reverse(),item:Ft.current,domEvent:ia}},Wr=tr||kt,Lr=Yr(Wt,Yn,En,dn),dr=Lr.active,Or=(0,Me.Z)(Lr,Rn),jr=vn.includes(Wt),ti=Qr(_n.length),Zr=function(ia){if(!Yn){var _i=wr(ia);Gn==null||Gn(Jt(_i)),je(_i)}},Mr=function(ia){if(xr==null||xr(ia),ia.which===ln.Z.ENTER){var _i=wr(ia);Gn==null||Gn(Jt(_i)),je(_i)}},li=function(ia){jn(Wt),ar==null||ar(ia)},si={};He.role==="option"&&(si["aria-selected"]=jr);var Yi=me.createElement(Jn,(0,ie.Z)({ref:Ft,elementRef:wn,role:Mn===null?"none":Mn||"menuitem",tabIndex:Zn?null:-1,"data-menu-id":Rt&&mr?null:mr},ur,Or,si,{component:"li","aria-disabled":Zn,style:(0,Oe.Z)((0,Oe.Z)({},ti),$e),className:we()(Ct,(Ve={},(0,Le.Z)(Ve,"".concat(Ct,"-active"),dr),(0,Le.Z)(Ve,"".concat(Ct,"-selected"),jr),(0,Le.Z)(Ve,"".concat(Ct,"-disabled"),Yn),Ve),tt),onClick:Zr,onKeyDown:Mr,onFocus:li}),Vn,me.createElement(Ht,{props:(0,Oe.Z)((0,Oe.Z)({},He),{},{isSelected:jr}),icon:Wr}));return wt&&(Yi=wt(Yi,He,{selected:jr})),Yi});function Ir(He,Ye){var Ve=He.eventKey,$e=rn(),tt=un(Ve);return me.useEffect(function(){if($e)return $e.registerPath(Ve,tt),function(){$e.unregisterPath(Ve,tt)}},[tt]),$e?null:me.createElement(sr,(0,ie.Z)({},He,{ref:Ye}))}var Xr=me.forwardRef(Ir),Wn=["className","children"],Ai=function(Ye,Ve){var $e=Ye.className,tt=Ye.children,Wt=(0,Me.Z)(Ye,Wn),on=me.useContext(le),Zn=on.prefixCls,tr=on.mode,Vn=on.rtl;return me.createElement("ul",(0,ie.Z)({className:we()(Zn,Vn&&"".concat(Zn,"-rtl"),"".concat(Zn,"-sub"),"".concat(Zn,"-").concat(tr==="inline"?"inline":"vertical"),$e),role:"menu"},Wt,{"data-menu-list":!0,ref:Ve}),tt)},xi=me.forwardRef(Ai);xi.displayName="SubMenuList";var Sa=xi,fa=re(50344);function na(He,Ye){return(0,fa.Z)(He).map(function(Ve,$e){if(me.isValidElement(Ve)){var tt,Wt,on=Ve.key,Zn=(tt=(Wt=Ve.props)===null||Wt===void 0?void 0:Wt.eventKey)!==null&&tt!==void 0?tt:on,tr=Zn==null;tr&&(Zn="tmp_key-".concat([].concat((0,Ue.Z)(Ye),[$e]).join("-")));var Vn={key:Zn,eventKey:Zn};return me.cloneElement(Ve,Vn)}return Ve})}var Ni=re(62709),la={adjustX:1,adjustY:1},Qi={topLeft:{points:["bl","tl"],overflow:la},topRight:{points:["br","tr"],overflow:la},bottomLeft:{points:["tl","bl"],overflow:la},bottomRight:{points:["tr","br"],overflow:la},leftTop:{points:["tr","tl"],overflow:la},leftBottom:{points:["br","bl"],overflow:la},rightTop:{points:["tl","tr"],overflow:la},rightBottom:{points:["bl","br"],overflow:la}},ga={topLeft:{points:["bl","tl"],overflow:la},topRight:{points:["br","tr"],overflow:la},bottomLeft:{points:["tl","bl"],overflow:la},bottomRight:{points:["tr","br"],overflow:la},rightTop:{points:["tr","tl"],overflow:la},rightBottom:{points:["br","bl"],overflow:la},leftTop:{points:["tl","tr"],overflow:la},leftBottom:{points:["bl","br"],overflow:la}},Ba=null;function Oi(He,Ye,Ve){if(Ye)return Ye;if(Ve)return Ve[He]||Ve.other}var ca={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ca(He){var Ye=He.prefixCls,Ve=He.visible,$e=He.children,tt=He.popup,Wt=He.popupStyle,on=He.popupClassName,Zn=He.popupOffset,tr=He.disabled,Vn=He.mode,Mn=He.onVisibleChange,En=me.useContext(le),dn=En.getPopupContainer,Gn=En.rtl,xr=En.subMenuOpenDelay,ar=En.subMenuCloseDelay,ur=En.builtinPlacements,mr=En.triggerSubMenuAction,Sr=En.forceSubMenuRender,Tr=En.rootClassName,je=En.motion,Qe=En.defaultMotions,Rt=me.useState(!1),kt=(0,be.Z)(Rt,2),vn=kt[0],jn=kt[1],vt=Gn?(0,Oe.Z)((0,Oe.Z)({},ga),ur):(0,Oe.Z)((0,Oe.Z)({},Qi),ur),wt=ca[Vn],Ct=Oi(Vn,je,Qe),Ft=me.useRef(Ct);Vn!=="inline"&&(Ft.current=Ct);var Ln=(0,Oe.Z)((0,Oe.Z)({},Ft.current),{},{leavedClassName:"".concat(Ye,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Yn=me.useRef();return me.useEffect(function(){return Yn.current=(0,_t.Z)(function(){jn(Ve)}),function(){_t.Z.cancel(Yn.current)}},[Ve]),me.createElement(Ni.Z,{prefixCls:Ye,popupClassName:we()("".concat(Ye,"-popup"),(0,Le.Z)({},"".concat(Ye,"-rtl"),Gn),on,Tr),stretch:Vn==="horizontal"?"minWidth":null,getPopupContainer:dn,builtinPlacements:vt,popupPlacement:wt,popupVisible:vn,popup:tt,popupStyle:Wt,popupAlign:Zn&&{offset:Zn},action:tr?[]:[mr],mouseEnterDelay:xr,mouseLeaveDelay:ar,onPopupVisibleChange:Mn,forceRender:Sr,popupMotion:Ln,fresh:!0},$e)}var Qa=re(62874);function za(He){var Ye=He.id,Ve=He.open,$e=He.keyPath,tt=He.children,Wt="inline",on=me.useContext(le),Zn=on.prefixCls,tr=on.forceSubMenuRender,Vn=on.motion,Mn=on.defaultMotions,En=on.mode,dn=me.useRef(!1);dn.current=En===Wt;var Gn=me.useState(!dn.current),xr=(0,be.Z)(Gn,2),ar=xr[0],ur=xr[1],mr=dn.current?Ve:!1;me.useEffect(function(){dn.current&&ur(!1)},[En]);var Sr=(0,Oe.Z)({},Oi(Wt,Vn,Mn));$e.length>1&&(Sr.motionAppear=!1);var Tr=Sr.onVisibleChanged;return Sr.onVisibleChanged=function(je){return!dn.current&&!je&&ur(!0),Tr==null?void 0:Tr(je)},ar?null:me.createElement(ot,{mode:Wt,locked:!dn.current},me.createElement(Qa.Z,(0,ie.Z)({visible:mr},Sr,{forceRender:tr,removeOnLeave:!1,leavedClassName:"".concat(Zn,"-hidden")}),function(je){var Qe=je.className,Rt=je.style;return me.createElement(Sa,{id:Ye,className:Qe,style:Rt},tt)}))}var Pi=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],an=["active"],Vt=function(Ye){var Ve,$e=Ye.style,tt=Ye.className,Wt=Ye.title,on=Ye.eventKey,Zn=Ye.warnKey,tr=Ye.disabled,Vn=Ye.internalPopupClose,Mn=Ye.children,En=Ye.itemIcon,dn=Ye.expandIcon,Gn=Ye.popupClassName,xr=Ye.popupOffset,ar=Ye.popupStyle,ur=Ye.onClick,mr=Ye.onMouseEnter,Sr=Ye.onMouseLeave,Tr=Ye.onTitleClick,je=Ye.onTitleMouseEnter,Qe=Ye.onTitleMouseLeave,Rt=(0,Me.Z)(Ye,Pi),kt=ce(on),vn=me.useContext(le),jn=vn.prefixCls,vt=vn.mode,wt=vn.openKeys,Ct=vn.disabled,Ft=vn.overflowDisabled,Ln=vn.activeKey,Yn=vn.selectedKeys,wn=vn.itemIcon,_n=vn.expandIcon,wr=vn.onItemClick,Wr=vn.onOpenChange,Lr=vn.onActive,dr=me.useContext(It),Or=dr._internalRenderSubMenuItem,jr=me.useContext(gt),ti=jr.isSubPathKey,Zr=un(),Mr="".concat(jn,"-submenu"),li=Ct||tr,si=me.useRef(),Yi=me.useRef(),qi=En!=null?En:wn,ia=dn!=null?dn:_n,_i=wt.includes(on),Wi=!Ft&&_i,Li=ti(Yn,on),da=Yr(on,li,je,Qe),Bi=da.active,fi=(0,Me.Z)(da,an),Ji=me.useState(!1),va=(0,be.Z)(Ji,2),oo=va[0],Ja=va[1],Za=function(xo){li||Ja(xo)},Ha=function(xo){Za(!0),mr==null||mr({key:on,domEvent:xo})},Ia=function(xo){Za(!1),Sr==null||Sr({key:on,domEvent:xo})},aa=me.useMemo(function(){return Bi||(vt!=="inline"?oo||ti([Ln],on):!1)},[vt,Bi,Ln,oo,on,ti]),mo=Qr(Zr.length),ba=function(xo){li||(Tr==null||Tr({key:on,domEvent:xo}),vt==="inline"&&Wr(on,!_i))},Zi=lt(function(co){ur==null||ur(Jt(co)),wr(co)}),Oa=function(xo){vt!=="inline"&&Wr(on,xo)},no=function(){Lr(on)},Ra=kt&&"".concat(kt,"-popup"),_a=me.createElement("div",(0,ie.Z)({role:"menuitem",style:mo,className:"".concat(Mr,"-title"),tabIndex:li?null:-1,ref:si,title:typeof Wt=="string"?Wt:null,"data-menu-id":Ft&&kt?null:kt,"aria-expanded":Wi,"aria-haspopup":!0,"aria-controls":Ra,"aria-disabled":li,onClick:ba,onFocus:no},fi),Wt,me.createElement(Ht,{icon:vt!=="horizontal"?ia:void 0,props:(0,Oe.Z)((0,Oe.Z)({},Ye),{},{isOpen:Wi,isSubMenu:!0})},me.createElement("i",{className:"".concat(Mr,"-arrow")}))),oa=me.useRef(vt);if(vt!=="inline"&&Zr.length>1?oa.current="vertical":oa.current=vt,!Ft){var ro=oa.current;_a=me.createElement(Ca,{mode:ro,prefixCls:Mr,visible:!Vn&&Wi&&vt!=="inline",popupClassName:Gn,popupOffset:xr,popupStyle:ar,popup:me.createElement(ot,{mode:ro==="horizontal"?"vertical":ro},me.createElement(Sa,{id:Ra,ref:Yi},Mn)),disabled:li,onVisibleChange:Oa},_a)}var bo=me.createElement($t.Item,(0,ie.Z)({role:"none"},Rt,{component:"li",style:$e,className:we()(Mr,"".concat(Mr,"-").concat(vt),tt,(Ve={},(0,Le.Z)(Ve,"".concat(Mr,"-open"),Wi),(0,Le.Z)(Ve,"".concat(Mr,"-active"),aa),(0,Le.Z)(Ve,"".concat(Mr,"-selected"),Li),(0,Le.Z)(Ve,"".concat(Mr,"-disabled"),li),Ve)),onMouseEnter:Ha,onMouseLeave:Ia}),_a,!Ft&&me.createElement(za,{id:Ra,open:Wi,keyPath:Zr},Mn));return Or&&(bo=Or(bo,Ye,{selected:Li,active:aa,open:Wi,disabled:li})),me.createElement(ot,{onItemClick:Zi,mode:vt==="horizontal"?"vertical":vt,itemIcon:qi,expandIcon:ia},bo)};function zn(He){var Ye=He.eventKey,Ve=He.children,$e=un(Ye),tt=na(Ve,$e),Wt=rn();me.useEffect(function(){if(Wt)return Wt.registerPath(Ye,$e),function(){Wt.unregisterPath(Ye,$e)}},[$e]);var on;return Wt?on=tt:on=me.createElement(Vt,He,tt),me.createElement(sn.Provider,{value:$e},on)}var cr=re(71002),Er=["className","title","eventKey","children"],qr=["children"],di=function(Ye){var Ve=Ye.className,$e=Ye.title,tt=Ye.eventKey,Wt=Ye.children,on=(0,Me.Z)(Ye,Er),Zn=me.useContext(le),tr=Zn.prefixCls,Vn="".concat(tr,"-item-group");return me.createElement("li",(0,ie.Z)({role:"presentation"},on,{onClick:function(En){return En.stopPropagation()},className:we()(Vn,Ve)}),me.createElement("div",{role:"presentation",className:"".concat(Vn,"-title"),title:typeof $e=="string"?$e:void 0},$e),me.createElement("ul",{role:"group",className:"".concat(Vn,"-list")},Wt))};function bi(He){var Ye=He.children,Ve=(0,Me.Z)(He,qr),$e=un(Ve.eventKey),tt=na(Ye,$e),Wt=rn();return Wt?tt:me.createElement(di,(0,zr.Z)(Ve,["warnKey"]),tt)}function ki(He){var Ye=He.className,Ve=He.style,$e=me.useContext(le),tt=$e.prefixCls,Wt=rn();return Wt?null:me.createElement("li",{role:"separator",className:we()("".concat(tt,"-item-divider"),Ye),style:Ve})}var Si=["label","children","key","type"];function Ri(He){return(He||[]).map(function(Ye,Ve){if(Ye&&(0,cr.Z)(Ye)==="object"){var $e=Ye,tt=$e.label,Wt=$e.children,on=$e.key,Zn=$e.type,tr=(0,Me.Z)($e,Si),Vn=on!=null?on:"tmp-".concat(Ve);return Wt||Zn==="group"?Zn==="group"?me.createElement(bi,(0,ie.Z)({key:Vn},tr,{title:tt}),Ri(Wt)):me.createElement(zn,(0,ie.Z)({key:Vn},tr,{title:tt}),Ri(Wt)):Zn==="divider"?me.createElement(ki,(0,ie.Z)({key:Vn},tr)):me.createElement(Xr,(0,ie.Z)({key:Vn},tr),tt)}return null}).filter(function(Ye){return Ye})}function ra(He,Ye,Ve){var $e=He;return Ye&&($e=Ri(Ye)),na($e,Ve)}var oi=["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"],hn=[],Dn=me.forwardRef(function(He,Ye){var Ve,$e,tt=He,Wt=tt.prefixCls,on=Wt===void 0?"rc-menu":Wt,Zn=tt.rootClassName,tr=tt.style,Vn=tt.className,Mn=tt.tabIndex,En=Mn===void 0?0:Mn,dn=tt.items,Gn=tt.children,xr=tt.direction,ar=tt.id,ur=tt.mode,mr=ur===void 0?"vertical":ur,Sr=tt.inlineCollapsed,Tr=tt.disabled,je=tt.disabledOverflow,Qe=tt.subMenuOpenDelay,Rt=Qe===void 0?.1:Qe,kt=tt.subMenuCloseDelay,vn=kt===void 0?.1:kt,jn=tt.forceSubMenuRender,vt=tt.defaultOpenKeys,wt=tt.openKeys,Ct=tt.activeKey,Ft=tt.defaultActiveFirst,Ln=tt.selectable,Yn=Ln===void 0?!0:Ln,wn=tt.multiple,_n=wn===void 0?!1:wn,wr=tt.defaultSelectedKeys,Wr=tt.selectedKeys,Lr=tt.onSelect,dr=tt.onDeselect,Or=tt.inlineIndent,jr=Or===void 0?24:Or,ti=tt.motion,Zr=tt.defaultMotions,Mr=tt.triggerSubMenuAction,li=Mr===void 0?"hover":Mr,si=tt.builtinPlacements,Yi=tt.itemIcon,qi=tt.expandIcon,ia=tt.overflowedIndicator,_i=ia===void 0?"...":ia,Wi=tt.overflowedIndicatorPopupClassName,Li=tt.getPopupContainer,da=tt.onClick,Bi=tt.onOpenChange,fi=tt.onKeyDown,Ji=tt.openAnimation,va=tt.openTransitionName,oo=tt._internalRenderMenuItem,Ja=tt._internalRenderSubMenuItem,Za=(0,Me.Z)(tt,oi),Ha=me.useMemo(function(){return ra(Gn,dn,hn)},[Gn,dn]),Ia=me.useState(!1),aa=(0,be.Z)(Ia,2),mo=aa[0],ba=aa[1],Zi=me.useRef(),Oa=nn(ar),no=xr==="rtl",Ra=(0,yn.Z)(vt,{value:wt,postState:function(Eo){return Eo||hn}}),_a=(0,be.Z)(Ra,2),oa=_a[0],ro=_a[1],bo=function(Eo){var qo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ss(){ro(Eo),Bi==null||Bi(Eo)}qo?(0,xe.flushSync)(Ss):Ss()},co=me.useState(oa),xo=(0,be.Z)(co,2),Ao=xo[0],Xo=xo[1],uo=me.useRef(!1),Co=me.useMemo(function(){return(mr==="inline"||mr==="vertical")&&Sr?["vertical",Sr]:[mr,!1]},[mr,Sr]),os=(0,be.Z)(Co,2),rs=os[0],cs=os[1],No=rs==="inline",So=me.useState(rs),wa=(0,be.Z)(So,2),Na=wa[0],io=wa[1],go=me.useState(cs),Uo=(0,be.Z)(go,2),us=Uo[0],xs=Uo[1];me.useEffect(function(){io(rs),xs(cs),uo.current&&(No?ro(Ao):bo(hn))},[rs,cs]);var Js=me.useState(0),Ks=(0,be.Z)(Js,2),ds=Ks[0],Hs=Ks[1],Ya=ds>=Ha.length-1||Na!=="horizontal"||je;me.useEffect(function(){No&&Xo(oa)},[oa]),me.useEffect(function(){return uo.current=!0,function(){uo.current=!1}},[]);var Da=kn(),po=Da.registerPath,ko=Da.unregisterPath,fs=Da.refreshOverflowKeys,ss=Da.isSubPathKey,Fl=Da.getKeyPath,ml=Da.getKeys,Sl=Da.getSubPathKeys,Xa=me.useMemo(function(){return{registerPath:po,unregisterPath:ko}},[po,ko]),vi=me.useMemo(function(){return{isSubPathKey:ss}},[ss]);me.useEffect(function(){fs(Ya?hn:Ha.slice(ds+1).map(function(is){return is.key}))},[ds,Ya]);var pa=(0,yn.Z)(Ct||Ft&&((Ve=Ha[0])===null||Ve===void 0?void 0:Ve.key),{value:Ct}),ma=(0,be.Z)(pa,2),La=ma[0],Vo=ma[1],Qo=lt(function(is){Vo(is)}),rl=lt(function(){Vo(void 0)});(0,me.useImperativeHandle)(Ye,function(){return{list:Zi.current,focus:function(Eo){var qo,Ss=La!=null?La:(qo=Ha.find(function(Hl){return!Hl.props.disabled}))===null||qo===void 0?void 0:qo.key;if(Ss){var Ts,al,Os;(Ts=Zi.current)===null||Ts===void 0||(al=Ts.querySelector("li[data-menu-id='".concat(fe(Oa,Ss),"']")))===null||al===void 0||(Os=al.focus)===null||Os===void 0||Os.call(al,Eo)}}}});var ul=(0,yn.Z)(wr||[],{value:Wr,postState:function(Eo){return Array.isArray(Eo)?Eo:Eo==null?hn:[Eo]}}),wl=(0,be.Z)(ul,2),vo=wl[0],$s=wl[1],Ol=function(Eo){if(Yn){var qo=Eo.key,Ss=vo.includes(qo),Ts;_n?Ss?Ts=vo.filter(function(Os){return Os!==qo}):Ts=[].concat((0,Ue.Z)(vo),[qo]):Ts=[qo],$s(Ts);var al=(0,Oe.Z)((0,Oe.Z)({},Eo),{},{selectedKeys:Ts});Ss?dr==null||dr(al):Lr==null||Lr(al)}!_n&&oa.length&&Na!=="inline"&&bo(hn)},Sc=lt(function(is){da==null||da(Jt(is)),Ol(is)}),Gl=lt(function(is,Eo){var qo=oa.filter(function(Ts){return Ts!==is});if(Eo)qo.push(is);else if(Na!=="inline"){var Ss=Sl(is);qo=qo.filter(function(Ts){return!Ss.has(Ts)})}(0,Cn.Z)(oa,qo,!0)||bo(qo,!0)}),Cl=function(Eo,qo){var Ss=qo!=null?qo:!oa.includes(Eo);Gl(Eo,Ss)},il=Kr(Na,La,no,Oa,Zi,ml,Fl,Vo,Cl,fi);me.useEffect(function(){ba(!0)},[]);var ql=me.useMemo(function(){return{_internalRenderMenuItem:oo,_internalRenderSubMenuItem:Ja}},[oo,Ja]),dl=Na!=="horizontal"||je?Ha:Ha.map(function(is,Eo){return me.createElement(ot,{key:is.key,overflowDisabled:Eo>ds},is)}),ec=me.createElement($t,(0,ie.Z)({id:ar,ref:Zi,prefixCls:"".concat(on,"-overflow"),component:"ul",itemComponent:Xr,className:we()(on,"".concat(on,"-root"),"".concat(on,"-").concat(Na),Vn,($e={},(0,Le.Z)($e,"".concat(on,"-inline-collapsed"),us),(0,Le.Z)($e,"".concat(on,"-rtl"),no),$e),Zn),dir:xr,style:tr,role:"menu",tabIndex:En,data:dl,renderRawItem:function(Eo){return Eo},renderRawRest:function(Eo){var qo=Eo.length,Ss=qo?Ha.slice(-qo):null;return me.createElement(zn,{eventKey:Xt,title:_i,disabled:Ya,internalPopupClose:qo===0,popupClassName:Wi},Ss)},maxCount:Na!=="horizontal"||je?$t.INVALIDATE:$t.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Eo){Hs(Eo)},onKeyDown:il},Za));return me.createElement(It.Provider,{value:ql},me.createElement(Pe.Provider,{value:Oa},me.createElement(ot,{prefixCls:on,rootClassName:Zn,mode:Na,openKeys:oa,rtl:no,disabled:Tr,motion:mo?ti:null,defaultMotions:mo?Zr:null,activeKey:La,onActive:Qo,onInactive:rl,selectedKeys:vo,inlineIndent:jr,subMenuOpenDelay:Rt,subMenuCloseDelay:vn,forceSubMenuRender:jn,builtinPlacements:si,triggerSubMenuAction:li,getPopupContainer:Li,itemIcon:Yi,expandIcon:qi,onItemClick:Sc,onOpenChange:Gl},me.createElement(gt.Provider,{value:vi},ec),me.createElement("div",{style:{display:"none"},"aria-hidden":!0},me.createElement(en.Provider,{value:Xa},Ha)))))}),Xn=Dn,ge=Xn;ge.Item=Xr,ge.SubMenu=zn,ge.ItemGroup=bi,ge.Divider=ki;var Re=ge},81626:function(bn,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"}},46762:function(bn,Ut){"use strict";var re;var ie=Symbol.for("react.element"),Le=Symbol.for("react.portal"),Oe=Symbol.for("react.fragment"),Ue=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),ue=Symbol.for("react.context"),we=Symbol.for("react.server_context"),me=Symbol.for("react.forward_ref"),Ie=Symbol.for("react.suspense"),ct=Symbol.for("react.suspense_list"),Ke=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),dt=Symbol.for("react.offscreen"),Xe;Xe=Symbol.for("react.module.reference");function We(ye){if(typeof ye=="object"&&ye!==null){var it=ye.$$typeof;switch(it){case ie:switch(ye=ye.type,ye){case Oe:case be:case Ue:case Ie:case ct:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case we:case ue:case me:case st:case Ke:case Me:return ye;default:return it}}case Le:return it}}}re=ue,re=Me,re=ie,re=me,re=Oe,re=st,re=Ke,re=Le,re=be,re=Ue,re=Ie,re=ct,re=function(){return!1},re=function(){return!1},re=function(ye){return We(ye)===ue},re=function(ye){return We(ye)===Me},re=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===ie},re=function(ye){return We(ye)===me},Ut.isFragment=function(ye){return We(ye)===Oe},re=function(ye){return We(ye)===st},re=function(ye){return We(ye)===Ke},re=function(ye){return We(ye)===Le},re=function(ye){return We(ye)===be},re=function(ye){return We(ye)===Ue},re=function(ye){return We(ye)===Ie},re=function(ye){return We(ye)===ct},re=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Oe||ye===be||ye===Ue||ye===Ie||ye===ct||ye===dt||typeof ye=="object"&&ye!==null&&(ye.$$typeof===st||ye.$$typeof===Ke||ye.$$typeof===Me||ye.$$typeof===ue||ye.$$typeof===me||ye.$$typeof===Xe||ye.getModuleId!==void 0)},re=We},35110:function(bn,Ut,re){"use strict";bn.exports=re(46762)},66680:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Le}});var ie=re(67294);function Le(Oe){var Ue=ie.useRef();Ue.current=Oe;var be=ie.useCallback(function(){for(var Me,ue=arguments.length,we=new Array(ue),me=0;me<ue;me++)we[me]=arguments[me];return(Me=Ue.current)===null||Me===void 0?void 0:Me.call.apply(Me,[Ue].concat(we))},[]);return be}},21770:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Me}});var ie=re(97685),Le=re(66680),Oe=re(8410),Ue=re(63896);function be(ue){return ue!==void 0}function Me(ue,we){var me=we||{},Ie=me.defaultValue,ct=me.value,Ke=me.onChange,st=me.postState,dt=(0,Ue.Z)(function(){return be(ct)?ct:be(Ie)?typeof Ie=="function"?Ie():Ie:typeof ue=="function"?ue():ue}),Xe=(0,ie.Z)(dt,2),We=Xe[0],ye=Xe[1],it=ct!==void 0?ct:We,Lt=st?st(it):it,qe=(0,Le.Z)(Ke),rt=(0,Ue.Z)([it]),xe=(0,ie.Z)(rt,2),Se=xe[0],Ze=xe[1];(0,Oe.o)(function(){var yt=Se[0];We!==yt&&qe(We,yt)},[Se]),(0,Oe.o)(function(){be(ct)||ye(ct)},[ct]);var Ge=(0,Le.Z)(function(yt,pt){ye(yt,pt),Ze([it],pt)});return[Lt,Ge]}},91881:function(bn,Ut,re){"use strict";var ie=re(71002),Le=re(80334);function Oe(Ue,be){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ue=new Set;function we(me,Ie){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Ke=ue.has(me);if((0,Le.ZP)(!Ke,"Warning: There may be circular references"),Ke)return!1;if(me===Ie)return!0;if(Me&&ct>1)return!1;ue.add(me);var st=ct+1;if(Array.isArray(me)){if(!Array.isArray(Ie)||me.length!==Ie.length)return!1;for(var dt=0;dt<me.length;dt++)if(!we(me[dt],Ie[dt],st))return!1;return!0}if(me&&Ie&&(0,ie.Z)(me)==="object"&&(0,ie.Z)(Ie)==="object"){var Xe=Object.keys(me);return Xe.length!==Object.keys(Ie).length?!1:Xe.every(function(We){return we(me[We],Ie[We],st)})}return!1}return we(Ue,be)}Ut.Z=Oe},98423:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return Le}});var ie=re(1413);function Le(Oe,Ue){var be=(0,ie.Z)({},Oe);return Array.isArray(Ue)&&Ue.forEach(function(Me){delete be[Me]}),be}},64217:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return we}});var ie=re(1413),Le=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,Oe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ue="".concat(Le," ").concat(Oe).split(/[\s\n]+/),be="aria-",Me="data-";function ue(me,Ie){return me.indexOf(Ie)===0}function we(me){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct;Ie===!1?ct={aria:!0,data:!0,attr:!0}:Ie===!0?ct={aria:!0}:ct=(0,ie.Z)({},Ie);var Ke={};return Object.keys(me).forEach(function(st){(ct.aria&&(st==="role"||ue(st,be))||ct.data&&ue(st,Me)||ct.attr&&Ue.includes(st))&&(Ke[st]=me[st])}),Ke}},73299:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return pi}});var ie=re(87462),Le=re(1413),Oe=re(71002),Ue=re(97685),be=re(4942),Me=re(45987),ue=re(67294),we=re(73935),me=re(94184),Ie=re.n(me),ct=re(48555),Ke=ue.forwardRef(function(Zt,Kn){var fr=Zt.height,qn=Zt.offsetY,Br=Zt.offsetX,Kr=Zt.children,Rr=Zt.prefixCls,gr=Zt.onInnerResize,mt=Zt.innerProps,Ot=Zt.rtl,Xt=Zt.extra,kn={},lt={display:"flex",flexDirection:"column"};if(qn!==void 0){var Kt;kn={height:fr,position:"relative",overflow:"hidden"},lt=(0,Le.Z)((0,Le.Z)({},lt),{},(Kt={transform:"translateY(".concat(qn,"px)")},(0,be.Z)(Kt,Ot?"marginRight":"marginLeft",-Br),(0,be.Z)(Kt,"position","absolute"),(0,be.Z)(Kt,"left",0),(0,be.Z)(Kt,"right",0),(0,be.Z)(Kt,"top",0),Kt))}return ue.createElement("div",{style:kn},ue.createElement(ct.Z,{onResize:function(nn){var In=nn.offsetHeight;In&&gr&&gr()}},ue.createElement("div",(0,ie.Z)({style:lt,className:Ie()((0,be.Z)({},"".concat(Rr,"-holder-inner"),Rr)),ref:Kn},mt),Kr,Xt)))});Ke.displayName="Filler";var st=Ke,dt=function(Kn){return+setTimeout(Kn,16)},Xe=function(Kn){return clearTimeout(Kn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(dt=function(Kn){return window.requestAnimationFrame(Kn)},Xe=function(Kn){return window.cancelAnimationFrame(Kn)});var We=0,ye=new Map;function it(Zt){ye.delete(Zt)}var Lt=function(Kn){var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;We+=1;var qn=We;function Br(Kr){if(Kr===0)it(qn),Kn();else{var Rr=dt(function(){Br(Kr-1)});ye.set(qn,Rr)}}return Br(fr),qn};Lt.cancel=function(Zt){var Kn=ye.get(Zt);return it(Kn),Xe(Kn)};var qe=Lt;function rt(Zt,Kn){var fr="touches"in Zt?Zt.touches[0]:Zt;return fr[Kn?"pageX":"pageY"]}var xe=ue.forwardRef(function(Zt,Kn){var fr,qn=Zt.prefixCls,Br=Zt.rtl,Kr=Zt.scrollOffset,Rr=Zt.scrollRange,gr=Zt.onStartMove,mt=Zt.onStopMove,Ot=Zt.onScroll,Xt=Zt.horizontal,kn=Zt.spinSize,lt=Zt.containerSize,Kt=Zt.style,mn=Zt.thumbStyle,nn=ue.useState(!1),In=(0,Ue.Z)(nn,2),Pn=In[0],vr=In[1],ni=ue.useState(null),zr=(0,Ue.Z)(ni,2),Pr=zr[0],Yr=zr[1],Qr=ue.useState(null),Ht=(0,Ue.Z)(Qr,2),Tt=Ht[0],Jt=Ht[1],er=!Br,kr=ue.useRef(),Rn=ue.useRef(),Jn=ue.useState(!1),sr=(0,Ue.Z)(Jn,2),Ir=sr[0],Xr=sr[1],Wn=ue.useRef(),Ai=function(){clearTimeout(Wn.current),Xr(!0),Wn.current=setTimeout(function(){Xr(!1)},3e3)},xi=Rr-lt||0,Sa=lt-kn||0,fa=xi>0,na=ue.useMemo(function(){if(Kr===0||xi===0)return 0;var Qa=Kr/xi;return Qa*Sa},[Kr,xi,Sa]),Ni=function(za){za.stopPropagation(),za.preventDefault()},la=ue.useRef({top:na,dragging:Pn,pageY:Pr,startTop:Tt});la.current={top:na,dragging:Pn,pageY:Pr,startTop:Tt};var Qi=function(za){vr(!0),Yr(rt(za,Xt)),Jt(la.current.top),gr(),za.stopPropagation(),za.preventDefault()};ue.useEffect(function(){var Qa=function(Vt){Vt.preventDefault()},za=kr.current,Pi=Rn.current;return za.addEventListener("touchstart",Qa),Pi.addEventListener("touchstart",Qi),function(){za.removeEventListener("touchstart",Qa),Pi.removeEventListener("touchstart",Qi)}},[]);var ga=ue.useRef();ga.current=xi;var Ba=ue.useRef();Ba.current=Sa,ue.useEffect(function(){if(Pn){var Qa,za=function(Vt){var zn=la.current,cr=zn.dragging,Er=zn.pageY,qr=zn.startTop;if(qe.cancel(Qa),cr){var di=rt(Vt,Xt)-Er,bi=qr;!er&&Xt?bi-=di:bi+=di;var ki=ga.current,Si=Ba.current,Ri=Si?bi/Si:0,ra=Math.ceil(Ri*ki);ra=Math.max(ra,0),ra=Math.min(ra,ki),Qa=qe(function(){Ot(ra,Xt)})}},Pi=function(){vr(!1),mt()};return window.addEventListener("mousemove",za),window.addEventListener("touchmove",za),window.addEventListener("mouseup",Pi),window.addEventListener("touchend",Pi),function(){window.removeEventListener("mousemove",za),window.removeEventListener("touchmove",za),window.removeEventListener("mouseup",Pi),window.removeEventListener("touchend",Pi),qe.cancel(Qa)}}},[Pn]),ue.useEffect(function(){Ai()},[Kr]),ue.useImperativeHandle(Kn,function(){return{delayHidden:Ai}});var Oi="".concat(qn,"-scrollbar"),ca={position:"absolute",visibility:Ir&&fa?null:"hidden"},Ca={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Xt?(ca.height=8,ca.left=0,ca.right=0,ca.bottom=0,Ca.height="100%",Ca.width=kn,er?Ca.left=na:Ca.right=na):(ca.width=8,ca.top=0,ca.bottom=0,er?ca.right=0:ca.left=0,Ca.width="100%",Ca.height=kn,Ca.top=na),ue.createElement("div",{ref:kr,className:Ie()(Oi,(fr={},(0,be.Z)(fr,"".concat(Oi,"-horizontal"),Xt),(0,be.Z)(fr,"".concat(Oi,"-vertical"),!Xt),(0,be.Z)(fr,"".concat(Oi,"-visible"),Ir),fr)),style:(0,Le.Z)((0,Le.Z)({},ca),Kt),onMouseDown:Ni,onMouseMove:Ai},ue.createElement("div",{ref:Rn,className:Ie()("".concat(Oi,"-thumb"),(0,be.Z)({},"".concat(Oi,"-thumb-moving"),Pn)),style:(0,Le.Z)((0,Le.Z)({},Ca),mn),onMouseDown:Qi}))}),Se=xe;function Ze(Zt){var Kn=Zt.children,fr=Zt.setRef,qn=ue.useCallback(function(Br){fr(Br)},[]);return ue.cloneElement(Kn,{ref:qn})}function Ge(Zt,Kn,fr,qn,Br,Kr,Rr){var gr=Rr.getKey;return Zt.slice(Kn,fr+1).map(function(mt,Ot){var Xt=Kn+Ot,kn=Kr(mt,Xt,{style:{width:qn}}),lt=gr(mt);return ue.createElement(Ze,{key:lt,setRef:function(mn){return Br(mt,mn)}},kn)})}function yt(Zt){return Zt instanceof HTMLElement||Zt instanceof SVGElement}function pt(Zt){return yt(Zt)?Zt:Zt instanceof ue.Component?we.findDOMNode(Zt):null}var ft=re(15671),Ne=re(43144),jt=function(){function Zt(){(0,ft.Z)(this,Zt),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,Ne.Z)(Zt,[{key:"set",value:function(fr,qn){this.maps[fr]=qn,this.id+=1}},{key:"get",value:function(fr){return this.maps[fr]}}]),Zt}(),bt=jt;function xn(Zt,Kn,fr){var qn=ue.useState(0),Br=(0,Ue.Z)(qn,2),Kr=Br[0],Rr=Br[1],gr=(0,ue.useRef)(new Map),mt=(0,ue.useRef)(new bt),Ot=(0,ue.useRef)();function Xt(){qe.cancel(Ot.current)}function kn(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Xt();var mn=function(){gr.current.forEach(function(In,Pn){if(In&&In.offsetParent){var vr=pt(In),ni=vr.offsetHeight;mt.current.get(Pn)!==ni&&mt.current.set(Pn,vr.offsetHeight)}}),Rr(function(In){return In+1})};Kt?mn():Ot.current=qe(mn)}function lt(Kt,mn){var nn=Zt(Kt),In=gr.current.get(nn);mn?(gr.current.set(nn,mn),kn()):gr.current.delete(nn),!In!=!mn&&(mn?Kn==null||Kn(Kt):fr==null||fr(Kt))}return(0,ue.useEffect)(function(){return Xt},[]),[lt,kn,mt.current,Kr]}function Mt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Gt=Mt()?ue.useLayoutEffect:ue.useEffect,Bn=function(Kn,fr){var qn=ue.useRef(!0);Gt(function(){return Kn(qn.current)},fr),Gt(function(){return qn.current=!1,function(){qn.current=!0}},[])},Tn=function(Kn,fr){Bn(function(qn){if(!qn)return Kn()},fr)},at=Bn;function Ae(Zt){var Kn=ue.useRef();Kn.current=Zt;var fr=ue.useCallback(function(){for(var qn,Br=arguments.length,Kr=new Array(Br),Rr=0;Rr<Br;Rr++)Kr[Rr]=arguments[Rr];return(qn=Kn.current)===null||qn===void 0?void 0:qn.call.apply(qn,[Kn].concat(Kr))},[]);return fr}function St(Zt){var Kn=React.useRef(!1),fr=React.useState(Zt),qn=_slicedToArray(fr,2),Br=qn[0],Kr=qn[1];React.useEffect(function(){return Kn.current=!1,function(){Kn.current=!0}},[]);function Rr(gr,mt){mt&&Kn.current||Kr(gr)}return[Br,Rr]}function cn(Zt){return Zt!==void 0}function Pt(Zt,Kn){var fr=Kn||{},qn=fr.defaultValue,Br=fr.value,Kr=fr.onChange,Rr=fr.postState,gr=useState(function(){return cn(Br)?Br:cn(qn)?typeof qn=="function"?qn():qn:typeof Zt=="function"?Zt():Zt}),mt=_slicedToArray(gr,2),Ot=mt[0],Xt=mt[1],kn=Br!==void 0?Br:Ot,lt=Rr?Rr(kn):kn,Kt=useEvent(Kr),mn=useState([kn]),nn=_slicedToArray(mn,2),In=nn[0],Pn=nn[1];useLayoutUpdateEffect(function(){var ni=In[0];Ot!==ni&&Kt(Ot,ni)},[In]),useLayoutUpdateEffect(function(){cn(Br)||Xt(Br)},[Br]);var vr=useEvent(function(ni,zr){Xt(ni,zr),Pn([kn],zr)});return[lt,vr]}var ht=re(31461);function Et(Zt,Kn,fr){var qn=React.useRef({});return(!("value"in qn.current)||fr(qn.current.condition,Kn))&&(qn.current.value=Zt(),qn.current.condition=Kn),qn.current.value}function Qt(Zt,Kn){typeof Zt=="function"?Zt(Kn):_typeof(Zt)==="object"&&Zt&&"current"in Zt&&(Zt.current=Kn)}function ir(){for(var Zt=arguments.length,Kn=new Array(Zt),fr=0;fr<Zt;fr++)Kn[fr]=arguments[fr];var qn=Kn.filter(function(Br){return Br});return qn.length<=1?qn[0]:function(Br){Kn.forEach(function(Kr){Qt(Kr,Br)})}}function On(){for(var Zt=arguments.length,Kn=new Array(Zt),fr=0;fr<Zt;fr++)Kn[fr]=arguments[fr];return useMemo(function(){return ir.apply(void 0,Kn)},Kn,function(qn,Br){return qn.length!==Br.length||qn.every(function(Kr,Rr){return Kr!==Br[Rr]})})}function $t(Zt){var Kn,fr,qn=isMemo(Zt)?Zt.type.type:Zt.type;return!(typeof qn=="function"&&!((Kn=qn.prototype)!==null&&Kn!==void 0&&Kn.render)||typeof Zt=="function"&&!((fr=Zt.prototype)!==null&&fr!==void 0&&fr.render))}function yn(Zt){return!isValidElement(Zt)||isFragment(Zt)?!1:$t(Zt)}function Qn(Zt,Kn,fr,qn){if(!Kn.length)return fr;var Br=_toArray(Kn),Kr=Br[0],Rr=Br.slice(1),gr;return!Zt&&typeof Kr=="number"?gr=[]:Array.isArray(Zt)?gr=_toConsumableArray(Zt):gr=_objectSpread({},Zt),qn&&fr===void 0&&Rr.length===1?delete gr[Kr][Rr[0]]:gr[Kr]=Qn(gr[Kr],Rr,fr,qn),gr}function Cn(Zt,Kn,fr){var qn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Kn.length&&qn&&fr===void 0&&!get(Zt,Kn.slice(0,-1))?Zt:Qn(Zt,Kn,fr,qn)}function Pe(Zt){return _typeof(Zt)==="object"&&Zt!==null&&Object.getPrototypeOf(Zt)===Object.prototype}function fe(Zt){return Array.isArray(Zt)?[]:{}}var ce=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function pe(){for(var Zt=arguments.length,Kn=new Array(Zt),fr=0;fr<Zt;fr++)Kn[fr]=arguments[fr];var qn=fe(Kn[0]);return Kn.forEach(function(Br){function Kr(Rr,gr){var mt=new Set(gr),Ot=get(Br,Rr),Xt=Array.isArray(Ot);if(Xt||Pe(Ot)){if(!mt.has(Ot)){mt.add(Ot);var kn=get(qn,Rr);Xt?qn=Cn(qn,Rr,[]):(!kn||_typeof(kn)!=="object")&&(qn=Cn(qn,Rr,fe(Ot))),ce(Ot).forEach(function(lt){Kr([].concat(_toConsumableArray(Rr),[lt]),mt)})}}else qn=Cn(qn,Rr,Ot)}Kr([])}),qn}var de={},le=[],Te=function(Kn){le.push(Kn)};function ot(Zt,Kn){if(0)var fr}function Bt(Zt,Kn){if(0)var fr}function en(){de={}}function rn(Zt,Kn,fr){!Kn&&!de[fr]&&(Zt(!1,fr),de[fr]=!0)}function sn(Zt,Kn){rn(ot,Zt,Kn)}function un(Zt,Kn){rn(Bt,Zt,Kn)}sn.preMessage=Te,sn.resetWarned=en,sn.noteOnce=un;var gt=null,zt=10;function It(Zt,Kn,fr,qn,Br,Kr,Rr,gr){var mt=ue.useRef(),Ot=ue.useState(null),Xt=(0,Ue.Z)(Ot,2),kn=Xt[0],lt=Xt[1];return at(function(){if(kn&&kn.times<zt){if(!Zt.current){lt(function(Ai){return(0,Le.Z)({},Ai)});return}Kr();var Kt=kn.targetAlign,mn=kn.originAlign,nn=kn.index,In=kn.offset,Pn=Zt.current.clientHeight,vr=!1,ni=Kt,zr=null;if(Pn){for(var Pr=Kt||mn,Yr=0,Qr=0,Ht=0,Tt=Math.min(Kn.length-1,nn),Jt=0;Jt<=Tt;Jt+=1){var er=Br(Kn[Jt]);Qr=Yr;var kr=fr.get(er);Ht=Qr+(kr===void 0?qn:kr),Yr=Ht}for(var Rn=Pr==="top"?In:Pn-In,Jn=Tt;Jn>=0;Jn-=1){var sr=Br(Kn[Jn]),Ir=fr.get(sr);if(Ir===void 0){vr=!0;break}if(Rn-=Ir,Rn<=0)break}switch(Pr){case"top":zr=Qr-In;break;case"bottom":zr=Ht-Pn+In;break;default:{var Xr=Zt.current.scrollTop,Wn=Xr+Pn;Qr<Xr?ni="top":Ht>Wn&&(ni="bottom")}}zr!==null&&Rr(zr),zr!==kn.lastTop&&(vr=!0)}vr&<(function(Ai){return(0,Le.Z)((0,Le.Z)({},Ai),{},{times:Ai.times+1,targetAlign:ni,lastTop:zr})})}},[kn,Zt.current]),function(Kt){if(Kt==null){gr();return}if(qe.cancel(mt.current),typeof Kt=="number")Rr(Kt);else if(Kt&&(0,Oe.Z)(Kt)==="object"){var mn,nn=Kt.align;"index"in Kt?mn=Kt.index:mn=Kn.findIndex(function(vr){return Br(vr)===Kt.key});var In=Kt.offset,Pn=In===void 0?0:In;lt({times:0,index:mn,offset:Pn,originAlign:nn})}}}function ln(Zt,Kn,fr,qn){var Br=fr-Zt,Kr=Kn-fr,Rr=Math.min(Br,Kr)*2;if(qn<=Rr){var gr=Math.floor(qn/2);return qn%2?fr+gr+1:fr-gr}return Br>Kr?fr-(qn-Kr):fr+(qn-Br)}function _t(Zt,Kn,fr){var qn=Zt.length,Br=Kn.length,Kr,Rr;if(qn===0&&Br===0)return null;qn<Br?(Kr=Zt,Rr=Kn):(Kr=Kn,Rr=Zt);var gr={__EMPTY_ITEM__:!0};function mt(mn){return mn!==void 0?fr(mn):gr}for(var Ot=null,Xt=Math.abs(qn-Br)!==1,kn=0;kn<Rr.length;kn+=1){var lt=mt(Kr[kn]),Kt=mt(Rr[kn]);if(lt!==Kt){Ot=kn,Xt=Xt||lt!==mt(Rr[kn+1]);break}}return Ot===null?null:{index:Ot,multiple:Xt}}function lr(Zt,Kn,fr){var qn=ue.useState(Zt),Br=(0,Ue.Z)(qn,2),Kr=Br[0],Rr=Br[1],gr=ue.useState(null),mt=(0,Ue.Z)(gr,2),Ot=mt[0],Xt=mt[1];return ue.useEffect(function(){var kn=_t(Kr||[],Zt||[],Kn);(kn==null?void 0:kn.index)!==void 0&&(fr==null||fr(kn.index),Xt(Zt[kn.index])),Rr(Zt)},[Zt]),[Ot]}var xt=(typeof navigator=="undefined"?"undefined":(0,Oe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Yt=xt,Un=function(Zt,Kn){var fr=(0,ue.useRef)(!1),qn=(0,ue.useRef)(null);function Br(){clearTimeout(qn.current),fr.current=!0,qn.current=setTimeout(function(){fr.current=!1},50)}var Kr=(0,ue.useRef)({top:Zt,bottom:Kn});return Kr.current.top=Zt,Kr.current.bottom=Kn,function(Rr){var gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,mt=Rr<0&&Kr.current.top||Rr>0&&Kr.current.bottom;return gr&&mt?(clearTimeout(qn.current),fr.current=!1):(!mt||fr.current)&&Br(),!fr.current&&mt}};function Hn(Zt,Kn,fr,qn,Br){var Kr=(0,ue.useRef)(0),Rr=(0,ue.useRef)(null),gr=(0,ue.useRef)(null),mt=(0,ue.useRef)(!1),Ot=Un(Kn,fr);function Xt(In,Pn){qe.cancel(Rr.current),Kr.current+=Pn,gr.current=Pn,!Ot(Pn)&&(Yt||In.preventDefault(),Rr.current=qe(function(){var vr=mt.current?10:1;Br(Kr.current*vr),Kr.current=0}))}function kn(In,Pn){Br(Pn,!0),Yt||In.preventDefault()}var lt=(0,ue.useRef)(null),Kt=(0,ue.useRef)(null);function mn(In){if(Zt){qe.cancel(Kt.current),Kt.current=qe(function(){lt.current=null},2);var Pn=In.deltaX,vr=In.deltaY,ni=In.shiftKey,zr=Pn,Pr=vr;(lt.current==="sx"||!lt.current&&ni&&vr&&!Pn)&&(zr=vr,Pr=0,lt.current="sx");var Yr=Math.abs(zr),Qr=Math.abs(Pr);lt.current===null&&(lt.current=qn&&Yr>Qr?"x":"y"),lt.current==="y"?Xt(In,Pr):kn(In,zr)}}function nn(In){Zt&&(mt.current=In.detail===gr.current)}return[mn,nn]}var $n=14/15;function yr(Zt,Kn,fr){var qn=(0,ue.useRef)(!1),Br=(0,ue.useRef)(0),Kr=(0,ue.useRef)(null),Rr=(0,ue.useRef)(null),gr,mt=function(lt){if(qn.current){var Kt=Math.ceil(lt.touches[0].pageY),mn=Br.current-Kt;Br.current=Kt,fr(mn)&<.preventDefault(),clearInterval(Rr.current),Rr.current=setInterval(function(){mn*=$n,(!fr(mn,!0)||Math.abs(mn)<=.1)&&clearInterval(Rr.current)},16)}},Ot=function(){qn.current=!1,gr()},Xt=function(lt){gr(),lt.touches.length===1&&!qn.current&&(qn.current=!0,Br.current=Math.ceil(lt.touches[0].pageY),Kr.current=lt.target,Kr.current.addEventListener("touchmove",mt),Kr.current.addEventListener("touchend",Ot))};gr=function(){Kr.current&&(Kr.current.removeEventListener("touchmove",mt),Kr.current.removeEventListener("touchend",Ot))},at(function(){return Zt&&Kn.current.addEventListener("touchstart",Xt),function(){var kn;(kn=Kn.current)===null||kn===void 0||kn.removeEventListener("touchstart",Xt),gr(),clearInterval(Rr.current)}},[Zt])}var Fn=20;function or(){var Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,fr=Zt/Kn*100;return isNaN(fr)&&(fr=0),fr=Math.max(fr,Fn),fr=Math.min(fr,Zt/2),Math.floor(fr)}function Dr(Zt,Kn,fr,qn){var Br=ue.useMemo(function(){return[new Map,[]]},[Zt,fr.id,qn]),Kr=(0,Ue.Z)(Br,2),Rr=Kr[0],gr=Kr[1],mt=function(Xt){var kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xt,lt=Rr.get(Xt),Kt=Rr.get(kn);if(lt===void 0||Kt===void 0)for(var mn=Zt.length,nn=gr.length;nn<mn;nn+=1){var In,Pn=Zt[nn],vr=Kn(Pn);Rr.set(vr,nn);var ni=(In=fr.get(vr))!==null&&In!==void 0?In:qn;if(gr[nn]=(gr[nn-1]||0)+ni,vr===Xt&&(lt=nn),vr===kn&&(Kt=nn),lt!==void 0&&Kt!==void 0)break}return{top:gr[lt-1]||0,bottom:gr[Kt]}};return mt}var Fr=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],hr=[],_r={overflowY:"auto",overflowAnchor:"none"};function Mi(Zt,Kn){var fr=Zt.prefixCls,qn=fr===void 0?"rc-virtual-list":fr,Br=Zt.className,Kr=Zt.height,Rr=Zt.itemHeight,gr=Zt.fullHeight,mt=gr===void 0?!0:gr,Ot=Zt.style,Xt=Zt.data,kn=Zt.children,lt=Zt.itemKey,Kt=Zt.virtual,mn=Zt.direction,nn=Zt.scrollWidth,In=Zt.component,Pn=In===void 0?"div":In,vr=Zt.onScroll,ni=Zt.onVirtualScroll,zr=Zt.onVisibleChange,Pr=Zt.innerProps,Yr=Zt.extraRender,Qr=Zt.styles,Ht=(0,Me.Z)(Zt,Fr),Tt=!!(Kt!==!1&&Kr&&Rr),Jt=Tt&&Xt&&(Rr*Xt.length>Kr||!!nn),er=mn==="rtl",kr=Ie()(qn,(0,be.Z)({},"".concat(qn,"-rtl"),er),Br),Rn=Xt||hr,Jn=(0,ue.useRef)(),sr=(0,ue.useRef)(),Ir=(0,ue.useState)(0),Xr=(0,Ue.Z)(Ir,2),Wn=Xr[0],Ai=Xr[1],xi=(0,ue.useState)(0),Sa=(0,Ue.Z)(xi,2),fa=Sa[0],na=Sa[1],Ni=(0,ue.useState)(!1),la=(0,Ue.Z)(Ni,2),Qi=la[0],ga=la[1],Ba=function(){ga(!0)},Oi=function(){ga(!1)},ca=ue.useCallback(function(Ft){return typeof lt=="function"?lt(Ft):Ft==null?void 0:Ft[lt]},[lt]),Ca={getKey:ca};function Qa(Ft){Ai(function(Ln){var Yn;typeof Ft=="function"?Yn=Ft(Ln):Yn=Ft;var wn=Zn(Yn);return Jn.current.scrollTop=wn,wn})}var za=(0,ue.useRef)({start:0,end:Rn.length}),Pi=(0,ue.useRef)(),an=lr(Rn,ca),Vt=(0,Ue.Z)(an,1),zn=Vt[0];Pi.current=zn;var cr=xn(ca,null,null),Er=(0,Ue.Z)(cr,4),qr=Er[0],di=Er[1],bi=Er[2],ki=Er[3],Si=ue.useMemo(function(){if(!Tt)return{scrollHeight:void 0,start:0,end:Rn.length-1,offset:void 0};if(!Jt){var Ft;return{scrollHeight:((Ft=sr.current)===null||Ft===void 0?void 0:Ft.offsetHeight)||0,start:0,end:Rn.length-1,offset:void 0}}for(var Ln=0,Yn,wn,_n,wr=Rn.length,Wr=0;Wr<wr;Wr+=1){var Lr=Rn[Wr],dr=ca(Lr),Or=bi.get(dr),jr=Ln+(Or===void 0?Rr:Or);jr>=Wn&&Yn===void 0&&(Yn=Wr,wn=Ln),jr>Wn+Kr&&_n===void 0&&(_n=Wr),Ln=jr}return Yn===void 0&&(Yn=0,wn=0,_n=Math.ceil(Kr/Rr)),_n===void 0&&(_n=Rn.length-1),_n=Math.min(_n+1,Rn.length-1),{scrollHeight:Ln,start:Yn,end:_n,offset:wn}},[Jt,Tt,Wn,Rn,ki,Kr]),Ri=Si.scrollHeight,ra=Si.start,oi=Si.end,hn=Si.offset;za.current.start=ra,za.current.end=oi;var Dn=ue.useState({width:0,height:Kr}),Xn=(0,Ue.Z)(Dn,2),ge=Xn[0],Re=Xn[1],He=function(Ln){Re({width:Ln.width||Ln.offsetWidth,height:Ln.height||Ln.offsetHeight})},Ye=(0,ue.useRef)(),Ve=(0,ue.useRef)(),$e=ue.useMemo(function(){return or(ge.width,nn)},[ge.width,nn]),tt=ue.useMemo(function(){return or(ge.height,Ri)},[ge.height,Ri]),Wt=Ri-Kr,on=(0,ue.useRef)(Wt);on.current=Wt;function Zn(Ft){var Ln=Ft;return Number.isNaN(on.current)||(Ln=Math.min(Ln,on.current)),Ln=Math.max(Ln,0),Ln}var tr=Wn<=0,Vn=Wn>=Wt,Mn=Un(tr,Vn),En=function(){return{x:er?-fa:fa,y:Wn}},dn=(0,ue.useRef)(En()),Gn=Ae(function(){if(ni){var Ft=En();(dn.current.x!==Ft.x||dn.current.y!==Ft.y)&&(ni(Ft),dn.current=Ft)}});function xr(Ft,Ln){var Yn=Ft;Ln?((0,we.flushSync)(function(){na(Yn)}),Gn()):Qa(Yn)}function ar(Ft){var Ln=Ft.currentTarget.scrollTop;Ln!==Wn&&Qa(Ln),vr==null||vr(Ft),Gn()}var ur=function(Ln){var Yn=Ln,wn=nn-ge.width;return Yn=Math.max(Yn,0),Yn=Math.min(Yn,wn),Yn},mr=Ae(function(Ft,Ln){Ln?((0,we.flushSync)(function(){na(function(Yn){var wn=Yn+(er?-Ft:Ft);return ur(wn)})}),Gn()):Qa(function(Yn){var wn=Yn+Ft;return wn})}),Sr=Hn(Tt,tr,Vn,!!nn,mr),Tr=(0,Ue.Z)(Sr,2),je=Tr[0],Qe=Tr[1];yr(Tt,Jn,function(Ft,Ln){return Mn(Ft,Ln)?!1:(je({preventDefault:function(){},deltaY:Ft}),!0)}),at(function(){function Ft(Yn){Tt&&Yn.preventDefault()}var Ln=Jn.current;return Ln.addEventListener("wheel",je),Ln.addEventListener("DOMMouseScroll",Qe),Ln.addEventListener("MozMousePixelScroll",Ft),function(){Ln.removeEventListener("wheel",je),Ln.removeEventListener("DOMMouseScroll",Qe),Ln.removeEventListener("MozMousePixelScroll",Ft)}},[Tt]),at(function(){nn&&na(function(Ft){return ur(Ft)})},[ge.width,nn]);var Rt=function(){var Ln,Yn;(Ln=Ye.current)===null||Ln===void 0||Ln.delayHidden(),(Yn=Ve.current)===null||Yn===void 0||Yn.delayHidden()},kt=It(Jn,Rn,bi,Rr,ca,function(){return di(!0)},Qa,Rt);ue.useImperativeHandle(Kn,function(){return{getScrollInfo:En,scrollTo:function(Ln){function Yn(wn){return wn&&(0,Oe.Z)(wn)==="object"&&("left"in wn||"top"in wn)}Yn(Ln)?(Ln.left!==void 0&&na(ur(Ln.left)),kt(Ln.top)):kt(Ln)}}}),at(function(){if(zr){var Ft=Rn.slice(ra,oi+1);zr(Ft,Rn)}},[ra,oi,Rn]);var vn=Dr(Rn,ca,bi,Rr),jn=Yr==null?void 0:Yr({start:ra,end:oi,virtual:Jt,offsetX:fa,offsetY:hn,rtl:er,getSize:vn}),vt=Ge(Rn,ra,oi,nn,qr,kn,Ca),wt=null;Kr&&(wt=(0,Le.Z)((0,be.Z)({},mt?"height":"maxHeight",Kr),_r),Tt&&(wt.overflowY="hidden",nn&&(wt.overflowX="hidden"),Qi&&(wt.pointerEvents="none")));var Ct={};return er&&(Ct.dir="rtl"),ue.createElement("div",(0,ie.Z)({style:(0,Le.Z)((0,Le.Z)({},Ot),{},{position:"relative"}),className:kr},Ct,Ht),ue.createElement(ct.Z,{onResize:He},ue.createElement(Pn,{className:"".concat(qn,"-holder"),style:wt,ref:Jn,onScroll:ar,onMouseEnter:Rt},ue.createElement(st,{prefixCls:qn,height:Ri,offsetX:fa,offsetY:hn,scrollWidth:nn,onInnerResize:di,ref:sr,innerProps:Pr,rtl:er,extra:jn},vt))),Jt&&Ri>Kr&&ue.createElement(Se,{ref:Ye,prefixCls:qn,scrollOffset:Wn,scrollRange:Ri,rtl:er,onScroll:xr,onStartMove:Ba,onStopMove:Oi,spinSize:tt,containerSize:ge.height,style:Qr==null?void 0:Qr.verticalScrollBar,thumbStyle:Qr==null?void 0:Qr.verticalScrollBarThumb}),Jt&&nn&&ue.createElement(Se,{ref:Ve,prefixCls:qn,scrollOffset:fa,scrollRange:nn,rtl:er,onScroll:xr,onStartMove:Ba,onStopMove:Oi,spinSize:$e,containerSize:ge.width,horizontal:!0,style:Qr==null?void 0:Qr.horizontalScrollBar,thumbStyle:Qr==null?void 0:Qr.horizontalScrollBarThumb}))}var zi=ue.forwardRef(Mi);zi.displayName="List";var Gi=zi,pi=Gi},66392:function(bn,Ut){"use strict";var re;var ie=Symbol.for("react.element"),Le=Symbol.for("react.portal"),Oe=Symbol.for("react.fragment"),Ue=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),Me=Symbol.for("react.provider"),ue=Symbol.for("react.context"),we=Symbol.for("react.server_context"),me=Symbol.for("react.forward_ref"),Ie=Symbol.for("react.suspense"),ct=Symbol.for("react.suspense_list"),Ke=Symbol.for("react.memo"),st=Symbol.for("react.lazy"),dt=Symbol.for("react.offscreen"),Xe;Xe=Symbol.for("react.module.reference");function We(ye){if(typeof ye=="object"&&ye!==null){var it=ye.$$typeof;switch(it){case ie:switch(ye=ye.type,ye){case Oe:case be:case Ue:case Ie:case ct:return ye;default:switch(ye=ye&&ye.$$typeof,ye){case we:case ue:case me:case st:case Ke:case Me:return ye;default:return it}}case Le:return it}}}re=ue,re=Me,re=ie,re=me,re=Oe,re=st,re=Ke,re=Le,re=be,re=Ue,re=Ie,re=ct,re=function(){return!1},re=function(){return!1},re=function(ye){return We(ye)===ue},re=function(ye){return We(ye)===Me},re=function(ye){return typeof ye=="object"&&ye!==null&&ye.$$typeof===ie},re=function(ye){return We(ye)===me},re=function(ye){return We(ye)===Oe},re=function(ye){return We(ye)===st},re=function(ye){return We(ye)===Ke},re=function(ye){return We(ye)===Le},re=function(ye){return We(ye)===be},re=function(ye){return We(ye)===Ue},re=function(ye){return We(ye)===Ie},re=function(ye){return We(ye)===ct},re=function(ye){return typeof ye=="string"||typeof ye=="function"||ye===Oe||ye===be||ye===Ue||ye===Ie||ye===ct||ye===dt||typeof ye=="object"&&ye!==null&&(ye.$$typeof===st||ye.$$typeof===Ke||ye.$$typeof===Me||ye.$$typeof===ue||ye.$$typeof===me||ye.$$typeof===Xe||ye.getModuleId!==void 0)},re=We},31461:function(bn,Ut,re){"use strict";re(66392)},25365:function(bn){"use strict";bn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAA0VJREFUOE+V03lI01EcAPD3fjucs4nmwrXNOY/VdBoe0Tqggi5NgsLaWriWZFQEEvRHBxmL+iMo/KMg6KJSCy03mbapo1vXzCvJUstjZTM1bUzZZP6uF5M0Zwr1/nsHn/d93+/7QjBn3GhuZkm5scvRJIgODWX7sKCQT0oRGIAQorlnp+cIAAhnJghhhobvWRPjQ/rJ8eEVXIxGwcFsGBYWQUTFLrN6yCB9qpjdthA2BSGEsEd1X08NOlrPSiM4PxWJCSNL+HwfSZBMp/Mbr6+vVyyVyQm+SJYrCWea5sOmoMqm4ezu9rqSrUpFjzxBPgpoCkCEwO+3IJIgWRWVpiR5cirF40crZZGc3rkYdDgQp+advUXC9YZs2rjBQRCTwK/T6E9KaJoGJEVxyw3GtNUbt11KWSYp+AuyfRlf86baVJezc0sLb1HIxGxg9mEIIaiurVXgJOiUq6WbV8KVRMD+s45hbftL082DWk0TQohaKJn+9bb3H6Ntr16hvfvU6TExMe4A6G2Xc4+ttqIkL1fXBAAIuGVORMje3BpvNRrxM8fz0xfHxY0F7Hd/HVSYjKVtGpWqI4THc2ELhIRhTHjzXlHax4Z6++3i4iwIIRkAIYQY9+9cfxHKFyVtz8ho9/l8NIbN4mgaQAYDfHI4hRf152TxAsHhK9ev3for2f6F1sZn6w0VFvMuVY43WZHYi08SOKJIP4AYTBbW7XAKCgsvx0tEQobbg1d1fXj/eN2a9Ad6vZ6eBmd+ttlQpK15/uaaLHEFR7lK6QqPiPC63GMsm80eXmN5wmNiAJKIBRjsYCAQCNFAf98lq3lvAYSqqQLNQFNVaXyuMFue6oZ/utZ5J3Chx+NB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jSBCQboZJdYMkWxgekNxFTckgs9cTNM7IZpxqypkTriKZzoPt3xpREzYp6t7x2f8ARtZc8eay0EoAAAAASUVORK5CYII="},39057:function(bn){"use strict";bn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7svWuXJMdxJWgRmVmP7gYIgEOOtLMjUY/R7v//OfthZ85KsyNRIgg0+lFVmRkx59o1czf38HhkVjXQAFE8TVRlRvjD3Nzsur28k19/fqXArxT4lQK/UuBXCvxKgV8p8EIU6F6onV+b+ZUCv1LgVwr8SoFfKfArBX6lgHT//O15/DHpUCOZH7Xz2Ylei68w+va7+LScG/9qv+FtxDc6GcdRm++ks7bGutH1pbt2amst21AxNv15Rj959hXFjFjPaNpmUbYwppVJozcK87l5npxf75JcsYdnEqca0ZSvnk+dtaV++e+dwktjzzQsFqTjmum3oRm2ZOtZbSc8hue5j/ie/x3n1nXeSv50ygv8RJ9MY7Hn08O+1+t9nfnNG8EW5xJHZs98NmCsEANdJ/tulLP2PEiP/442nw5z6/XzYTTq6HcmObSBXkSfm/uxtrTdtLk50/A3WgSZtHX812iA3imrbDq2kZxfoWVOo8hxGPXf0yDygP+eR8F3vtqdjrGTHsNN/0Pbo4z2Xadi0fcqZaSOeBTpMX/9KvDPZHnCu9V3vc2r7zvZYW6dyL4T2WE83nQgYlpy73MQwZqdz52czyKns8jTUeR06uR0FBkGdkhW04VN7Rr7TRcIE85cl75X/ZC5Pj3R9YPs+t7GDPp22u+uE7k9iLy6E3m176TbkV/OJ5GddHLYgczkPcyhGE/F277YpHLmd10XvDsFFpH1oiB9KQjQYu1aYJcKdnYvLKiA/M5UFDdWbr6LvIyNZ7KgiEufRz9Hs7UxAVSAA8l03MYufDYMtX7kRXUPx05erxquN8AmPdyiUS2QWxNq0za/GWlc83TJHfVfvk2aTxnYK9mC6+Rr5KSZcseUZt04QD8ItjbW3NcbH2LVBwOWvnld/Hv/FMP1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daIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},79633:function(bn){"use strict";bn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7tvXlzJzmSJQaSeWcd3TOzvT270mpN0ppM3/+raDWS6TJp/9jpObq6rqw8SZkDcI+HB3ccwR+zsruZZlUkI3A4HH48OByIq/T475EDjxx45MAjBx458MiBRw5ciANXF2rnsZlHDjxy4JEDjxx45MAjBx45kK7+l/96ezfigyCPq6vyX0p3SX4MK0yZev8Wpl18YQVu73z8djFU5zRUpyvlCYv+yUTS+2N2yksu4s09NuE0me7ch6Xv3B81WmSt/JNX/F6ba9rVNpgYaWTAA26bWaVVc5+VOTKdV3exHiD92J7ydqoBNsBa22MwlhmNrw5+2icNPOs9zIFYCW8uXNHCipX/1057Xl2WryHPPLma6H4jJo4wu6qK5Zy5EBnqmvIGUgX6fvbz0AuHzY3e7JhBT+RGup7fBfyXx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yTrQ5JypT/LI+izkPjTQJ67DEWrh1j/oWACsm/+FryLzaOpzYAg2TFI8kFGoP8Cq+8yTvVE1Chl4PeF1gIizRKgb+rPC5FLHYM72PZRw48cuCRA48ceOTAIwceOTDB2o8MeuTAIwceOfDIgUcOPHLgkQOX4cD/Dy5hqdeaBa56AAAAAElFTkSuQmCC"},36459:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return ie}});function ie(Le){if(Le==null)throw new TypeError("Cannot destructure "+Le)}},84279:function(bn,Ut,re){"use strict";var ie=Object.defineProperty,Le=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,ue=(a,y,b)=>y in a?ie(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,we=(a,y)=>{for(var b in y||(y={}))be.call(y,b)&&ue(a,b,y[b]);if(Ue)for(var b of Ue(y))Me.call(y,b)&&ue(a,b,y[b]);return a},me=(a,y)=>Le(a,Oe(y)),Ie=a=>typeof a=="symbol"?a:a+"",ct=(a,y)=>{var b={};for(var E in a)be.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&Ue)for(var E of Ue(a))y.indexOf(E)<0&&Me.call(a,E)&&(b[E]=a[E]);return b};function Ke(a){return Array.isArray(a)}var st={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 dt(){return"window"in globalThis&&"document"in globalThis}function Xe(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function We(){return typeof navigator.vibrate=="function"}function ye(){var a,y;if(!dt())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 it(){if(!dt())return!0;if(/firefox/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/firefox\/(\d+)/i);return a?parseInt(a[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const a=navigator.userAgent.match(/edg\/(\d+)/i);return a?parseInt(a[1])>=79:!1}return!0}function Lt(){return HTMLElement.prototype.hasOwnProperty("popover")}var qe={strings:st,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return qe._locale||(qe._locale=dt()?navigator.language.slice(0,5):"en-US"),qe._locale},set locale(a){qe._locale=a,qe._numberFormatter=void 0,qe.dirty=!0},get numberFormatter(){return qe._numberFormatter||(qe._numberFormatter=new Intl.NumberFormat(qe.locale)),qe._numberFormatter},merge(a,y){if(typeof a=="string"&&y)qe.strings[a]=we(we({},qe.strings[a]),y),qe.dirty=!0;else for(const b of Object.keys(a))qe.merge(b,a[b])},get dirty(){return qe._dirty},set dirty(a){qe._dirty||qe._dirty===a||(qe._dirty=!0,setTimeout(()=>{qe._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return qe._subscribers.push(a),qe._subscribers.length-1},unsubscribe(a){a<0||a>=qe._subscribers.length||(qe._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=rt(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=rt(E);ee&&b.setAttribute("aria-label",ee)}}}};function rt(a,...y){if(a===void 0)return;let b="";const E=qe.locale;qe.strings[E]&&(b=qe.strings[E][a]);const ee=E.slice(0,2);if(!b&&qe.strings[ee]&&(b=qe.strings[ee][a]),b||(b=qe.strings.en[a]),!b)return;const ae=/(%@|%([0-9]+)\$@)/g;let se=ae.exec(b),ve=0;for(;se;){if(y[ve++]){const De=se[2]?parseInt(se[2],10)-1:ve-1;let Fe=y[De];typeof Fe=="number"&&(Fe=qe.numberFormatter.format(Fe)),b=b.replace(se[1],Fe)}se=ae.exec(b)}return b=b.replace(/%%/g,"%"),b}var xe={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"},Ze={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},Ge={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"},yt={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"},pt={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 ft(a){var y,b,E,ee,ae,se;const ve=a.split("!");let Ce,De,Fe,nt=255,At=255,tn=255,fn=-1;const Ar=ve.length>0&&ve[0].startsWith("-");Ar&&(ve[0]=ve[0].slice(1));for(let hi=0;hi<ve.length;hi++){Ce=nt,De=At,Fe=tn;const Cr=(y=ve[hi].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],$r=Cr==null?void 0:Cr.toLowerCase(),yi=Cr&&(se=(ae=(ee=(E=(b=Ge[$r])!=null?b:Ge[yt[Cr]])!=null?E:Se[Cr])!=null?ee:pt[Cr])!=null?ae:xe[Cr])!=null?se:ve[hi].trim();let ri=yi.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(ri!=null&&ri[1]&&ri[2]&&ri[3])nt=Math.max(0,Math.min(255,Number.parseInt(ri[1],16))),At=Math.max(0,Math.min(255,Number.parseInt(ri[2],16))),tn=Math.max(0,Math.min(255,Number.parseInt(ri[3],16)));else if(ri=yi.match(/^#([\da-f]{3})$/i),ri!=null&&ri[1]){const ua=Number.parseInt(ri[1][0],16),Ta=Number.parseInt(ri[1][1],16),xa=Number.parseInt(ri[1][2],16);nt=Math.max(0,Math.min(255,ua*16+ua)),At=Math.max(0,Math.min(255,Ta*16+Ta)),tn=Math.max(0,Math.min(255,xa*16+xa))}else if(ri=yi.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),ri!=null&&ri[1]&&ri[2]&&ri[3])nt=Math.max(0,Math.min(255,Number.parseInt(ri[1]))),At=Math.max(0,Math.min(255,Number.parseInt(ri[2]))),tn=Math.max(0,Math.min(255,Number.parseInt(ri[3])));else return;fn>=0&&(nt=(1-fn)*nt+fn*Ce,At=(1-fn)*At+fn*De,tn=(1-fn)*tn+fn*Fe,fn=-1),hi+1<ve.length&&(fn=Math.max(0,Math.min(100,Number.parseInt(ve[++hi])))/100)}return fn>=0&&(nt=fn*nt+(1-fn)*Ce,At=fn*At+(1-fn)*De,tn=fn*tn+(1-fn)*Fe),Ar&&(nt=255-nt,At=255-At,tn=255-tn),"#"+("00"+Math.round(nt).toString(16)).slice(-2)+("00"+Math.round(At).toString(16)).slice(-2)+("00"+Math.round(tn).toString(16)).slice(-2)}function Ne(a){var y,b;return a=a.trim(),(b=(y=Ze[a.toLowerCase()])!=null?y:Ze[yt[a]])!=null?b:ft(a)}function jt(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 bt(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 xn(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,ae=E*2-ee;return{r:Math.round(255*bt(ae,ee,y+2)),g:Math.round(255*bt(ae,ee,y)),b:Math.round(255*bt(ae,ee,y-2))}}function Mt(a){return a<0?0:a>255?255:Math.round(a)}function Gt(a){const{r:y,g:b,b:E}=a;let ee=((1<<24)+(Mt(y)<<16)+(Mt(b)<<8)+Mt(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 Bn(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),ae=Math.max(y,b,E),se=ae-ee;let ve,Ce;ae===ee?ve=0:y===ae?ve=(b-E)/se:b===ae?ve=2+(E-y)/se:E===ae&&(ve=4+(y-b)/se),ve=Math.min(ve*60,360),ve<0&&(ve+=360);const De=(ee+ae)/2;return ae===ee?Ce=0:De<=.5?Ce=se/(ae+ee):Ce=se/(2-ae-ee),{h:ve,s:Ce,l:De}}function Tn(a){let y=jt(a);if(!y)return a;let{h:b,s:E,l:ee}=Bn(y);return E+=.1,ee-=.1,Gt(xn({h:b,s:E,l:ee}))}var at={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},Ae={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},St=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function cn(a,y,b){if(!/[A-Za-z\d]/.test(a)||(b==="up"&&(b=void 0),!y&&!b))return a;const E=a.codePointAt(0);if(E===void 0)return a;for(const ee of St)if((!y||ee.variant===y)&&(!b||ee.style===b)&&E>=ee.offset&&E<ee.offset+ee.len){const ae=ee.start+E-ee.offset;return String.fromCodePoint(Ae[ae]||ae)}return a}function Pt(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in Ae)if(Ae[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of St)if(a>=b.start&&a<b.start+b.len)return{char:String.fromCodePoint(a-b.start+b.offset),variant:b.variant,style:b.style};return{char:String.fromCodePoint(a)}}function ht(a){var y;let b="";for(const E of a){if("{}<>[]$&#^_%:'\u02DC".includes(E)){b+=E;continue}const ee=(y=E.codePointAt(0))!=null?y:0;let ae=at[ee];if(ae)ae.startsWith("\\")?b+=ae+" ":b+=ae;else{const{char:se,variant:ve,style:Ce}=Pt(ee);switch(ae=se,ve){case"double-struck":ae=`\\mathbb{${ae}}`;break;case"fraktur":ae=`\\mathfrak{${ae}}`;break;case"script":ae=`\\mathscr{${ae}}`;break;case"sans-serif":ae=`\\mathsf{${ae}}`;break;case"monospace":ae=`\\mathtt{${ae}}`;break;case"calligraphic":ae=`\\mathcal{${ae}}`;break}switch(Ce){case"bold":ae=`\\mathbf{${ae}}`;break;case"italic":ae=`\\mathit{${ae}}`;break;case"bolditalic":ae=`\\mathbfit{${ae}}`;break}b+=ae}}return b}function Et(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var Qt={},ir=we({},at),On={},$t={},yn={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}"},Qn={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}},Cn={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}},Pe={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:Cn},"amsmath.sty":{package:Qn,primitive:!0},"texvc.sty":{package:yn,primitive:!1}},fe={" ":32,"\\!":33,"\\#":35,"\\$":36,"\\%":37,"\\&":38,"-":45,"\\textunderscore":95,"\\euro":8364,"\\maltese":10016,"\\{":123,"\\}":125,"\\textbraceleft":123,"\\textbraceright":125,"\\lbrace":123,"\\rbrace":125,"\\lbrack":91,"\\rbrack":93,"\\nobreakspace":160,"\\ldots":8230,"\\textellipsis":8230,"\\backslash":92,"`":8216,"'":8217,"``":8220,"''":8221,"\\degree":176,"\\textasciicircum":94,"\\textasciitilde":126,"\\textasteriskcentered":42,"\\textbackslash":92,"\\textbullet":8226,"\\textdollar":36,"\\textsterling":163,"\\textdagger":8224,"\\textdaggerdbl":8225,"\u2013":8211,"\u2014":8212,"\u2018":8216,"\u2019":8217,"\u201C":8220,"\u201D":8221,'"':8221,"\\ss":223,"\\ae":230,"\\oe":339,"\\AE":198,"\\OE":338,"\\O":216,"\\i":305,"\\j":567,"\\aa":229,"\\AA":197},ce=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,pe,de;it()?(pe=new RegExp("\\p{Letter}","u"),de=new RegExp("[0-9\\p{Letter}]","u")):(pe=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,de=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function le(a,y,b="mord",E){y!==void 0&&(Qt[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},ir[y]||(ir[y]=a))}function Te(a,y,b){if(typeof a=="string"){for(let E=0;E<a.length;E++){const ee=a.charAt(E);le(ee,ee.codePointAt(0))}return}for(const[E,ee,ae,se]of a)le(E,ee,ae!=null?ae:y,se!=null?se:b)}function ot(a,y){for(let b=a;b<=y;b++)le(String.fromCodePoint(b),b)}function Bt(a){var y;return(y=$t[a])!=null?y:null}function en(a,y){var b,E;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ee=[];for(const se in On)se.startsWith(y)&&!On[se].infix&&ee.push({match:se,frequency:(b=On[se].frequency)!=null?b:0});for(const se in Qt)se.startsWith(y)&&ee.push({match:se,frequency:(E=Qt[se].frequency)!=null?E:0});const ae=y.substring(1);for(const se of Object.keys(a.options.macros))se.startsWith(ae)&&ee.push({match:"\\"+se,frequency:0});return ee.sort((se,ve)=>{var Ce,De;return se.frequency===ve.frequency?se.match.length===ve.match.length?se.match<ve.match?-1:1:se.match.length-ve.match.length:((Ce=ve.frequency)!=null?Ce:0)-((De=se.frequency)!=null?De:0)}),ee.map(se=>se.match)}function rn(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function sn(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:rn(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...sn(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:rn(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...sn(b[E]))}return y}function un(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 gt(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)$t[E]=b}function zt(a,y,b){typeof a=="string"&&(a=[a]);const ee={tabular:!0,params:sn(y),createAtom:b};for(const ae of a)$t[ae]=ee}function It(a,y,b){var E,ee;b||(b={});const ae={definitionType:"function",params:sn(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")On["\\"+a]=ae;else for(const se of a)On["\\"+se]=ae}var ln;function _t(a){return ln||(ln=xt(Pe)),a?xt(we(we({},ln),a)):ln}function lr(a,y){var b,E,ee,ae;if(typeof a=="string"){let se=0;const ve=a;return/(^|[^\\])#1/.test(ve)&&(se=1),/(^|[^\\])#2/.test(ve)&&(se=2),/(^|[^\\])#3/.test(ve)&&(se=3),/(^|[^\\])#4/.test(ve)&&(se=4),/(^|[^\\])#5/.test(ve)&&(se=5),/(^|[^\\])#6/.test(ve)&&(se=6),/(^|[^\\])#7/.test(ve)&&(se=7),/(^|[^\\])#8/.test(ve)&&(se=8),/(^|[^\\])#9/.test(ve)&&(se=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(E=y==null?void 0:y.captureSelection)!=null?E:!0,args:se,def:ve}}return we({expand:(ee=y==null?void 0:y.expand)!=null?ee:!0,captureSelection:(ae=y==null?void 0:y.captureSelection)!=null?ae:!0,args:0},a)}function xt(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]=lr(E.package[ee],{expand:!E.primitive,captureSelection:E.captureSelection});else y[b]=lr(E)}return y}function Yt(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=On[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=Qt[a]:fe[a]&&(b={definitionType:"symbol",type:"mord",codepoint:fe[a]})}else if(y==="math"){if(b=Qt[a],!b&&a.length===1){const E=Hn("math",a.codePointAt(0));return E.startsWith("\\")?me(we({},Yt(E,"math")),{command:E}):null}}else fe[a]?b={definitionType:"symbol",type:"mord",codepoint:fe[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function Un(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function Hn(a,y){if(y===void 0)return"";if(a==="math"&&ir[y])return ir[y];if(a==="text"){const b=Object.keys(fe).find(E=>fe[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var $n=[0,.68889,0,0,.72222],yr=[0,.68889,0,0,.66667],Fn=[0,.68889,0,0,.77778],or=[0,.68889,0,0,.61111],Dr=[.16667,.68889,0,0,.77778],Fr=[0,.68889,0,0,.55556],hr=[0,0,0,0,.25],_r=[0,.825,0,0,2.33334],Mi=[0,.9,0,0,2.33334],zi=[0,.68889,0,0,.54028],Gi=[-.03598,.46402,0,0,.5],pi=[-.13313,.36687,0,0,1],Zt=[.01354,.52239,0,0,1],Kn=[.01354,.52239,0,0,1.11111],fr=[0,.54986,0,0,1],qn=[0,.69224,0,0,.5],Br=[0,.43056,0,0,1],Kr=[.08198,.58198,0,0,.77778],Rr=[.19444,.69224,0,0,.41667],gr=[.1808,.675,0,0,1],mt=[.19444,.69224,0,0,.83334],Ot=[.13667,.63667,0,0,1],Xt=[-.064,.437,0,0,1.334],kn=[.08167,.58167,0,0,.77778],lt=[0,.69224,0,0,.72222],Kt=[0,.69224,0,0,.66667],mn=[-.13313,.36687,0,0,.77778],nn=[.06062,.54986,0,0,.77778],In=[0,.69224,0,0,.77778],Pn=[.25583,.75583,0,0,.77778],vr=[.25142,.75726,0,0,.77778],ni=[.20576,.70576,0,0,.77778],zr=[.30274,.79383,0,0,.77778],Pr=[.22958,.72958,0,0,.77778],Yr=[.1808,.675,0,0,.77778],Qr=[.13667,.63667,0,0,.77778],Ht=[.13597,.63597,0,0,.77778],Tt=[.03517,.54986,0,0,.77778],Jt=[0,.675,0,0,.77778],er=[.19444,.69224,0,0,.61111],kr=[0,.54986,0,0,.76042],Rn=[0,.54986,0,0,.66667],Jn=[.0391,.5391,0,0,.77778],sr=[.03517,.54986,0,0,1.33334],Ir=[.38569,.88569,0,0,.77778],Xr=[.23222,.74111,0,0,.77778],Wn=[.19444,.69224,0,0,.77778],Ai=[0,.37788,0,0,.5],xi=[0,.54986,0,0,.72222],Sa=[0,.69224,0,0,.83334],fa=[.11111,.69224,0,0,.66667],na=[.26167,.75726,0,0,.77778],Ni=[.48256,.98256,0,0,.77778],la=[.28481,.79383,0,0,.77778],Qi=[.08167,.58167,0,0,.22222],ga=[.08167,.58167,0,0,.38889],Ba=[0,.43056,.04028,0,.66667],Oi=[.41951,.91951,0,0,.77778],ca=[.24982,.74947,0,0,.38865],Ca=[.08319,.58283,0,0,.75623],Qa=[0,.10803,0,0,.27764],za=[0,.47534,0,0,.50181],Pi=[.18906,.47534,0,0,.50181],an=[0,.69141,0,0,.50181],Vt=[.24982,.74947,0,0,.27764],zn=[0,.69141,0,0,.21471],cr=[.25,.75,0,0,.44722],Er=[0,.64444,0,0,.575],qr=[.08556,.58556,0,0,.89444],di=[0,.69444,0,0,.89444],bi=[0,.68611,0,0,.9],ki=[0,.68611,0,0,.86944],Si=[.25,.75,0,0,.575],Ri=[.25,.75,0,0,.31944],ra=[0,.69444,0,0,.63889],oi=[0,.69444,0,0,.31944],hn=[0,.44444,0,0,.63889],Dn=[0,.44444,0,0,.51111],Xn=[0,.69444,0,0,.575],ge=[.13333,.63333,0,0,.89444],Re=[0,.44444,0,0,.31944],He=[0,.69444,0,0,.86944],Ye=[0,.68611,0,0,.69166],Ve=[0,.68611,0,0,.83055],$e=[0,.68611,0,0,.89444],tt=[0,.69444,0,0,.60278],Wt=[.19444,.69444,0,0,.51111],on=[0,.69444,0,0,.83055],Zn=[-.10889,.39111,0,0,1.14999],tr=[.19444,.69444,0,0,.575],Vn=[.19444,.69444,0,0,1.14999],Mn=[.19444,.69444,0,0,.70277],En=[.05556,.75,0,0,.575],dn=[0,.68611,0,0,.95833],Gn=[.08556,.58556,0,0,.76666],xr=[-.02639,.47361,0,0,.575],ar=[0,.44444,0,0,.89444],ur=[0,.55556,0,0,.76666],mr=[-.10889,.39111,0,0,.89444],Sr=[.00222,.50222,0,0,.89444],Tr=[.19667,.69667,0,0,.89444],je=[.08556,.58556,0,0,1.14999],Qe=[0,.69444,0,0,.70277],Rt=[-.02778,.47222,0,0,.575],kt=[.25,.75,0,0,.51111],vn=[-.13889,.36111,0,0,1.14999],jn=[.19444,.69444,0,0,1.02222],vt=[.12963,.69444,0,0,.89444],wt=[.19444,.69444,0,0,.44722],Ct=[0,.64444,.13167,0,.59111],Ft=[.19444,.64444,.13167,0,.59111],Ln=[0,.68611,.17208,0,.8961],Yn=[.19444,.44444,.105,0,.53222],wn=[0,.44444,.085,0,.82666],_n=[0,.69444,.06709,0,.59111],wr=[0,.69444,.12945,0,.35555],Wr=[0,.69444,0,0,.94888],Lr=[0,.69444,.11472,0,.59111],dr=[0,.68611,.10778,0,.88555],Or=[0,.69444,.07939,0,.62055],jr=[0,.69444,.12417,0,.30667],ti=[0,.64444,.13556,0,.51111],Zr=[.19444,.64444,.13556,0,.51111],Mr=[0,.68333,.16389,0,.74333],li=[.19444,.43056,.08847,0,.46],si=[0,.43056,.07514,0,.71555],Yi=[0,.69444,.06646,0,.51111],qi=[0,.69444,0,0,.83129],ia=[0,.69444,.1225,0,.51111],_i=[0,.68333,.09403,0,.76666],Wi=[0,.68333,.11111,0,.76666],Li=[0,.69444,.06961,0,.51444],da=[0,.69444,0,0,.27778],Bi=[.25,.75,0,0,.38889],fi=[0,.64444,0,0,.5],Ji=[0,.69444,0,0,.77778],va=[0,.68333,0,0,.75],oo=[0,.68333,0,0,.77778],Ja=[0,.68333,0,0,.68056],Za=[0,.68333,0,0,.72222],Ha=[.25,.75,0,0,.5],Ia=[.25,.75,0,0,.27778],aa=[0,.69444,0,0,.5],mo=[0,.69444,0,0,.55556],ba=[0,.43056,0,0,.44445],Zi=[0,.43056,0,0,.5],Oa=[.19444,.43056,0,0,.55556],no=[0,.43056,0,0,.55556],Ra=[.08333,.58333,0,0,.77778],_a=[0,.43056,0,0,.27778],oa=[0,.66786,0,0,.27778],ro=[0,.69444,0,0,.75],bo=[0,.66786,0,0,.5],co=[0,.68333,0,0,.625],xo=[.19444,.69444,0,0,.44445],Ao=[0,.69444,0,0,.72222],Xo=[.19444,.69444,0,0,.5],uo=[.19444,.69444,0,0,1],Co=[.011,.511,0,0,1.126],os=[.19444,.69444,0,0,.61111],rs=[.05556,.75,0,0,.5],cs=[0,.68333,0,0,.83334],No=[.0391,.5391,0,0,.66667],So=[-.05555,.44445,0,0,.5],wa=[0,.43056,0,0,.77778],Na=[0,.55556,0,0,.66667],io=[-.03625,.46375,0,0,.77778],go=[-.01688,.48312,0,0,.77778],Uo=[.0391,.5391,0,0,1],us=[0,.69444,0,0,.61111],xs=[-.03472,.46528,0,0,.5],Js=[.25,.75,0,0,.44445],Ks=[-.14236,.35764,0,0,1],ds=[.244,.744,0,0,.412],Hs=[.19444,.69444,0,0,.88889],Ya=[.12963,.69444,0,0,.77778],Da=[.19444,.69444,0,0,.38889],po=[.011,.511,0,0,1.638],ko=[.19444,.69444,0,0,0],fs=[0,.44444,0,0,.575],ss=[.19444,.44444,0,0,.575],Fl=[0,.68611,0,0,.75555],ml=[0,.69444,0,0,.66759],Sl=[0,.68611,0,0,.80555],Xa=[0,.68611,.08229,0,.98229],vi=[0,.68611,0,0,.76666],pa=[0,.44444,0,0,.58472],ma=[.19444,.44444,0,0,.6118],La=[.19444,.43056,0,0,.5],Vo=[0,.68333,.02778,.08334,.76278],Qo=[0,.68333,.08125,.05556,.83125],rl=[0,.43056,0,.05556,.48472],ul=[.19444,.43056,0,.08334,.51702],wl=[.25,.75,0,0,.42778],vo=[0,.69444,0,0,.55],$s=[0,.69444,0,0,.73334],Ol=[0,.69444,0,0,.79445],Sc=[0,.69444,0,0,.51945],Gl=[0,.69444,0,0,.70278],Cl=[0,.69444,0,0,.76389],il=[.25,.75,0,0,.34306],ql=[0,.69444,0,0,.56111],dl=[0,.69444,0,0,.25556],ec=[.19444,.45833,0,0,.56111],is=[0,.45833,0,0,.56111],Eo=[0,.69444,0,0,.30556],qo=[0,.69444,0,0,.58056],Ss=[0,.69444,0,0,.67223],Ts=[0,.69444,0,0,.85556],al=[0,.69444,0,0,.55834],Os=[0,.65556,.11156,0,.5],Hl=[0,.69444,.08094,0,.70834],Zc=[.17014,0,0,0,.44445],fc=[0,.69444,.0799,0,.5],Tc=[0,.69444,0,0,.73752],Oc=[0,.69444,.09205,0,.5],tc=[0,.69444,.09031,0,.77778],nc=[0,.69444,.07816,0,.27778],Nc=[0,.69444,.00316,0,.5],Pc=[.19444,.69444,0,0,.83334],Lo=[.05556,.75,0,0,.83334],fo=[0,.75,0,0,.5],_s=[.125,.08333,0,0,.27778],gl=[0,.08333,0,0,.27778],ho=[0,.65556,0,0,.5],Wo=[0,.69444,0,0,.47222],Ho=[0,.69444,0,0,.66667],ws=[0,.69444,0,0,.59722],qs=[0,.69444,0,0,.54167],_l=[0,.69444,0,0,.70834],zl=[.25,.75,0,0,.28889],jc=[0,.69444,0,0,.51667],tf=[0,.44444,0,0,.44445],Md=[.19444,.44444,0,0,.51667],Gu=[0,.44444,0,0,.38333],Yu=[0,.44444,0,0,.51667],Xu=[0,.69444,0,0,.83334],Ad=[.35001,.85,0,0,.45834],Au=[.35001,.85,0,0,.57778],Qu=[.35001,.85,0,0,.41667],Ju=[.35001,.85,0,0,.58334],ku=[0,.72222,0,0,.55556],Lu=[1e-5,.6,0,0,.66667],kd=[1e-5,.6,0,0,.77778],Uc=[.25001,.75,0,0,.94445],nf=[.306,.805,.19445,0,.47222],lu=[.30612,.805,.19445,0,.47222],vl=[.25001,.75,0,0,.83334],Rc=[.35001,.85,0,0,.47222],Ld=[.25001,.75,0,0,1.11111],$u=[.65002,1.15,0,0,.59722],Wl=[.65002,1.15,0,0,.81111],Yo=[.65002,1.15,0,0,.47222],rc=[.65002,1.15,0,0,.66667],ic=[0,.75,0,0,1],wc=[.55001,1.05,0,0,1.27778],qu=[.862,1.36,.44445,0,.55556],ed=[.86225,1.36,.44445,0,.55556],Fc=[.55001,1.05,0,0,1.11111],td=[.65002,1.15,0,0,.52778],cu=[.65002,1.15,0,0,.61111],Vc=[.55001,1.05,0,0,1.51112],nd=[.95003,1.45,0,0,.73611],Du=[.95003,1.45,0,0,1.04445],hc=[.95003,1.45,0,0,.52778],uu=[.95003,1.45,0,0,.75],du=[0,.75,0,0,1.44445],Bu=[.95003,1.45,0,0,.58334],fu=[1.25003,1.75,0,0,.79167],Yl=[1.25003,1.75,0,0,1.27778],rd=[1.25003,1.75,0,0,.58334],Iu=[1.25003,1.75,0,0,.80556],Ee=[0,.825,0,0,1.8889],Be=[1.25003,1.75,0,0,.63889],Je=[.64502,1.155,0,0,.875],ut=[1e-5,.6,0,0,.875],Dt=[-99e-5,.601,0,0,.66667],Nt=[.64502,1.155,0,0,.66667],Sn=[1e-5,.9,0,0,.88889],Nn=[.65002,1.15,0,0,.88889],An=[.90001,0,0,0,.88889],nr=[-.00499,.605,0,0,1.05556],br=[0,.12,0,0,.45],pn=[0,.61111,0,0,.525],Hr=[.08333,.69444,0,0,.525],Ur=[-.08056,.53055,0,0,.525],Gr=[-.05556,.55556,0,0,.525],ii=[0,.43056,0,0,.525],Jr=[.22222,.43056,0,0,.525],mi=[0,0,0,0,.525],ui={"AMS-Regular":{32:hr,65:$n,66:yr,67:$n,68:$n,69:yr,70:or,71:Fn,72:Fn,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:Fn,76:yr,77:[0,.68889,0,0,.94445],78:$n,79:Dr,80:or,81:Dr,82:$n,83:Fr,84:yr,85:$n,86:$n,87:[0,.68889,0,0,1],88:$n,89:$n,90:yr,107:Fr,160:hr,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Fr,295:zi,710:_r,732:Mi,770:_r,771:Mi,989:kn,1008:Ba,8245:[0,.54986,0,0,.275],8463:zi,8487:$n,8498:Fr,8502:yr,8503:[0,.68889,0,0,.44445],8504:yr,8513:[0,.68889,0,0,.63889],8592:Gi,8594:Gi,8602:pi,8603:pi,8606:Zt,8608:Zt,8610:Kn,8611:Kn,8619:fr,8620:fr,8621:[-.13313,.37788,0,0,1.38889],8622:pi,8624:qn,8625:qn,8630:Br,8631:Br,8634:Kr,8635:Kr,8638:Rr,8639:Rr,8642:Rr,8643:Rr,8644:gr,8646:gr,8647:gr,8648:mt,8649:gr,8650:mt,8651:Zt,8652:Zt,8653:pi,8654:pi,8655:pi,8666:Ot,8667:Ot,8669:[-.13313,.37788,0,0,1],8672:Xt,8674:Xt,8705:[0,.825,0,0,.5],8708:Fr,8709:kn,8717:[0,.43056,0,0,.42917],8722:Gi,8724:[.08198,.69224,0,0,.77778],8726:kn,8733:In,8736:lt,8737:lt,8738:[.03517,.52239,0,0,.72222],8739:Qi,8740:[.25142,.74111,0,0,.27778],8741:ga,8742:[.25142,.74111,0,0,.5],8756:Kt,8757:Kt,8764:mn,8765:[-.13313,.37788,0,0,.77778],8769:mn,8770:io,8774:zr,8776:go,8778:kn,8782:nn,8783:nn,8785:Kr,8786:Kr,8787:Kr,8790:In,8791:Pr,8796:[.08198,.91667,0,0,.77778],8806:Pn,8807:Pn,8808:vr,8809:vr,8812:[.25583,.75583,0,0,.5],8814:ni,8815:ni,8816:zr,8817:zr,8818:Pr,8819:Pr,8822:Yr,8823:Yr,8828:Qr,8829:Qr,8830:Pr,8831:Pr,8832:ni,8833:ni,8840:zr,8841:zr,8842:Ht,8843:Ht,8847:Tt,8848:Tt,8858:Kr,8859:Kr,8861:Kr,8862:Jt,8863:Jt,8864:Jt,8865:Jt,8872:[0,.69224,0,0,.61111],8873:lt,8874:[0,.69224,0,0,.88889],8876:or,8877:or,8878:$n,8879:$n,8882:Tt,8883:Tt,8884:Qr,8885:Qr,8888:[0,.54986,0,0,1.11111],8890:Oa,8891:er,8892:er,8901:[0,.54986,0,0,.27778],8903:kn,8905:kn,8906:kn,8907:In,8908:In,8909:[-.03598,.46402,0,0,.77778],8910:kr,8911:kr,8912:Tt,8913:Tt,8914:Rn,8915:Rn,8916:Kt,8918:Jn,8919:Jn,8920:sr,8921:sr,8922:Ir,8923:Ir,8926:Qr,8927:Qr,8928:zr,8929:zr,8934:Xr,8935:Xr,8936:Xr,8937:Xr,8938:ni,8939:ni,8940:zr,8941:zr,8994:Wn,8995:Wn,9416:[.15559,.69224,0,0,.90222],9484:qn,9488:qn,9492:Ai,9496:Ai,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:Jt,9633:Jt,9650:xi,9651:xi,9654:Tt,9660:xi,9661:xi,9664:Tt,9674:fa,9733:[.19444,.69224,0,0,.94445],10003:Sa,10016:Sa,10731:fa,10846:[.19444,.75583,0,0,.61111],10877:Qr,10878:Qr,10885:Pn,10886:Pn,10887:Ht,10888:Ht,10889:na,10890:na,10891:Ni,10892:Ni,10901:Qr,10902:Qr,10933:vr,10934:vr,10935:na,10936:na,10937:na,10938:na,10949:Pn,10950:Pn,10955:la,10956:la,57350:Qi,57351:ga,57352:kn,57353:Ba,57356:vr,57357:vr,57358:Oi,57359:zr,57360:zr,57361:Oi,57366:vr,57367:vr,57368:vr,57369:vr,57370:Ht,57371:Ht},"Caligraphic-Regular":{32:hr,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:hr},"Fraktur-Regular":{32:hr,33:[0,.69141,0,0,.29574],34:zn,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:ca,41:ca,42:[0,.62119,0,0,.27764],43:Ca,44:Qa,45:Ca,46:Qa,47:[.24982,.74947,0,0,.50181],48:za,49:za,50:za,51:Pi,52:Pi,53:Pi,54:an,55:Pi,56:an,57:Pi,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:Vt,93:Vt,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:hr,8216:zn,8217:zn,58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:hr,33:[0,.69444,0,0,.35],34:tt,35:[.19444,.69444,0,0,.95833],36:En,37:[.05556,.75,0,0,.95833],38:di,39:oi,40:cr,41:cr,42:[0,.75,0,0,.575],43:ge,44:[.19444,.15556,0,0,.31944],45:Gu,46:[0,.15556,0,0,.31944],47:Si,48:Er,49:Er,50:Er,51:Er,52:Er,53:Er,54:Er,55:Er,56:Er,57:Er,58:Re,59:[.19444,.44444,0,0,.31944],60:qr,61:mr,62:qr,63:[0,.69444,0,0,.54305],64:di,65:ki,66:[0,.68611,0,0,.81805],67:Ve,68:[0,.68611,0,0,.88194],69:Fl,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:bi,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Ye,77:[0,.68611,0,0,1.09166],78:bi,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:ki,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Ri,92:Si,93:Ri,94:Xn,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:ra,99:Dn,100:ra,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:ra,105:oi,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:oi,109:[0,.44444,0,0,.95833],110:hn,111:fs,112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:hn,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:Dn,123:Si,124:Ri,125:Si,126:[.35,.34444,0,0,.575],160:hr,163:[0,.69444,0,0,.86853],168:Xn,172:[0,.44444,0,0,.76666],176:He,177:ge,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:ge,216:[.04861,.73472,0,0,.89444],223:ws,230:[0,.44444,0,0,.83055],247:ge,248:[.09722,.54167,0,0,.575],305:Re,338:[0,.68611,0,0,1.16944],339:ar,567:[.19444,.44444,0,0,.35139],710:Xn,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Xn,715:Xn,728:Xn,729:oi,730:He,732:Xn,733:Xn,915:Ye,916:dn,920:$e,923:Sl,926:vi,928:bi,931:Ve,933:$e,934:Ve,936:$e,937:Ve,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:oi,8217:oi,8220:tt,8221:tt,8224:Wt,8225:Wt,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:ml,8465:on,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:on,8501:Qe,8592:Zn,8593:tr,8594:Zn,8595:tr,8596:Zn,8597:Si,8598:Vn,8599:Vn,8600:Vn,8601:Vn,8636:Zn,8637:Zn,8640:Zn,8641:Zn,8656:Zn,8657:Mn,8658:Zn,8659:Mn,8660:Zn,8661:[.25,.75,0,0,.70277],8704:ra,8706:[0,.69444,.06389,0,.62847],8707:ra,8709:En,8711:dn,8712:Gn,8715:Gn,8722:ge,8723:ge,8725:Si,8726:Si,8727:Rt,8728:xr,8729:xr,8730:[.18,.82,0,0,.95833],8733:ar,8734:[0,.44444,0,0,1.14999],8736:lt,8739:Ri,8741:Si,8743:ur,8744:ur,8745:ur,8746:ur,8747:[.19444,.69444,.12778,0,.56875],8764:mr,8768:[.19444,.69444,0,0,.31944],8771:Sr,8776:[.02444,.52444,0,0,.89444],8781:Sr,8801:Sr,8804:Tr,8805:Tr,8810:je,8811:je,8826:qr,8827:qr,8834:qr,8835:qr,8838:Tr,8839:Tr,8846:ur,8849:Tr,8850:Tr,8851:ur,8852:ur,8853:ge,8854:ge,8855:ge,8856:ge,8857:ge,8866:Qe,8867:Qe,8868:di,8869:di,8900:xr,8901:[-.02639,.47361,0,0,.31944],8902:Rt,8968:kt,8969:kt,8970:kt,8971:kt,8994:vn,8995:vn,9651:jn,9657:Rt,9661:jn,9667:Rt,9711:Vn,9824:vt,9825:vt,9826:vt,9827:vt,9837:[0,.75,0,0,.44722],9838:wt,9839:wt,10216:cr,10217:cr,10815:bi,10927:Tr,10928:Tr,57376:ko},"Main-BoldItalic":{32:hr,33:[0,.69444,.11417,0,.38611],34:Or,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:wr,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:Ct,49:Ct,50:Ct,51:Ct,52:Ft,53:Ct,54:Ct,55:Ft,56:Ct,57:Ct,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Lr,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:Ln,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:Ln,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:_n,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:Yn,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:Yn,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:hr,168:[0,.69444,.11473,0,.59111],176:Wr,184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:wn,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:wn,567:[.19444,.44444,.04611,0,.385],710:_n,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:wr,730:Wr,732:Lr,733:Lr,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:Ln,931:[0,.68611,.11431,0,.82666],933:dr,934:[0,.68611,.05632,0,.82666],936:dr,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:wr,8217:wr,8220:[0,.69444,.16772,0,.62055],8221:Or},"Main-Italic":{32:hr,33:jr,34:Li,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:jr,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:ti,49:ti,50:ti,51:ti,52:Zr,53:ti,54:ti,55:Zr,56:ti,57:ti,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:ia,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:Mr,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:Mr,79:_i,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:Mr,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:Yi,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:li,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:li,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:hr,168:[0,.66786,.10474,0,.51111],176:qi,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:si,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:si,710:Yi,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:qi,732:[0,.66786,.11585,0,.51111],733:ia,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:_i,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:Mr,931:[0,.68333,.12028,0,.71555],933:Wi,934:[0,.68333,.05986,0,.71555],936:Wi,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:jr,8217:jr,8220:[0,.69444,.1685,0,.51444],8221:Li,8463:zi},"Main-Regular":{32:hr,33:da,34:aa,35:Pc,36:rs,37:Lo,38:Ji,39:da,40:Bi,41:Bi,42:fo,43:Ra,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:Ha,48:fi,49:fi,50:fi,51:fi,52:fi,53:fi,54:fi,55:fi,56:fi,57:fi,58:_a,59:[.19444,.43056,0,0,.27778],60:Jn,61:mn,62:Jn,63:Wo,64:Ji,65:va,66:[0,.68333,0,0,.70834],67:Za,68:[0,.68333,0,0,.76389],69:Ja,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:va,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:oo,76:co,77:[0,.68333,0,0,.91667],78:va,79:oo,80:Ja,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Za,85:va,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:va,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:Ia,92:Ha,93:Ia,94:aa,95:[.31,.12056,.02778,0,.5],97:Zi,98:mo,99:ba,100:mo,101:ba,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:mo,105:oa,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:da,109:[0,.43056,0,0,.83334],110:no,111:Zi,112:Oa,113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:no,118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:ba,123:Ha,124:Ia,125:Ha,126:[.35,.31786,0,0,.5],160:hr,163:[0,.69444,0,0,.76909],167:xo,168:bo,172:[0,.43056,0,0,.66667],176:ro,177:Ra,182:os,184:Zc,198:[0,.68333,0,0,.90278],215:Ra,216:[.04861,.73194,0,0,.77778],223:aa,230:[0,.43056,0,0,.72222],247:Ra,248:[.09722,.52778,0,0,.5],305:_a,338:[0,.68333,0,0,1.01389],339:wa,567:[.19444,.43056,0,0,.30556],710:aa,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:aa,715:aa,728:aa,729:oa,730:ro,732:bo,733:aa,915:co,916:cs,920:oo,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:va,931:Za,933:oo,934:Za,936:oo,937:Za,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:da,8217:da,8220:aa,8221:aa,8224:xo,8225:xo,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:zi,8465:Ao,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Ao,8501:us,8592:pi,8593:Xo,8594:pi,8595:Xo,8596:pi,8597:Ha,8598:uo,8599:uo,8600:uo,8601:uo,8614:[.011,.511,0,0,1],8617:Co,8618:Co,8636:pi,8637:pi,8640:pi,8641:pi,8652:[.011,.671,0,0,1],8656:pi,8657:os,8658:pi,8659:os,8660:pi,8661:[.25,.75,0,0,.61111],8704:mo,8706:[0,.69444,.05556,.08334,.5309],8707:mo,8709:rs,8711:cs,8712:No,8715:No,8722:Ra,8723:Ra,8725:Ha,8726:Ha,8727:xs,8728:So,8729:So,8730:[.2,.8,0,0,.83334],8733:wa,8734:Br,8736:lt,8739:Ia,8741:Ha,8743:Na,8744:Na,8745:Na,8746:Na,8747:[.19444,.69444,.11111,0,.41667],8764:mn,8768:[.19444,.69444,0,0,.27778],8771:io,8773:[-.022,.589,0,0,1],8776:go,8781:io,8784:[-.133,.67,0,0,.778],8801:io,8804:Ht,8805:Ht,8810:Uo,8811:Uo,8826:Jn,8827:Jn,8834:Jn,8835:Jn,8838:Ht,8839:Ht,8846:Na,8849:Ht,8850:Ht,8851:Na,8852:Na,8853:Ra,8854:Ra,8855:Ra,8856:Ra,8857:Ra,8866:us,8867:us,8868:Ji,8869:Ji,8872:[.249,.75,0,0,.867],8900:So,8901:[-.05555,.44445,0,0,.27778],8902:xs,8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:Js,8969:Js,8970:Js,8971:Js,8994:Ks,8995:Ks,9136:ds,9137:ds,9651:Hs,9657:xs,9661:Hs,9667:xs,9711:uo,9824:Ya,9825:Ya,9826:Ya,9827:Ya,9837:[0,.75,0,0,.38889],9838:Da,9839:Da,10216:Bi,10217:Bi,10222:ds,10223:ds,10229:[.011,.511,0,0,1.609],10230:po,10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:po,10815:va,10927:Ht,10928:Ht,57376:ko},"Math-BoldItalic":{32:hr,48:fs,49:fs,50:fs,51:ss,52:ss,53:ss,54:Er,55:ss,56:Er,57:ss,65:ki,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:Xa,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Fl,77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:ml,105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:pa,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:hr,915:[0,.68611,.15972,0,.65694],916:dn,920:[0,.68611,.03194,0,.86722],923:Sl,926:[0,.68611,.07458,0,.84125],928:Xa,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:vi,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:pa,960:[0,.44444,.03704,0,.68241],961:ma,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:ma,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:hr,48:Zi,49:Zi,50:Zi,51:La,52:La,53:La,54:fi,55:La,56:fi,57:La,65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:Qo,73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:Vo,80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:rl,112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:hr,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Vo,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Qo,931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:rl,960:[0,.43056,.03588,0,.57003],961:ul,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:ul,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:hr,33:[0,.69444,0,0,.36667],34:al,35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:Eo,40:wl,41:wl,42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:vo,49:vo,50:vo,51:vo,52:vo,53:vo,54:vo,55:vo,56:vo,57:vo,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Sc,64:$s,65:$s,66:$s,67:Gl,68:Ol,69:[0,.69444,0,0,.64167],70:us,71:$s,72:Ol,73:[0,.69444,0,0,.33056],74:Sc,75:Cl,76:qo,77:[0,.69444,0,0,.97778],78:Ol,79:Ol,80:Gl,81:[.10556,.69444,0,0,.79445],82:Gl,83:us,84:$s,85:Cl,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:$s,89:[0,.69444,.0275,0,.73334],90:Ss,91:il,93:il,94:vo,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:ql,99:[0,.45833,0,0,.48889],100:ql,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:ql,105:dl,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:dl,109:[0,.45833,0,0,.86667],110:is,111:[0,.45833,0,0,.55],112:ec,113:ec,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:is,118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:hr,168:vo,176:$s,180:vo,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:vo,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:vo,729:Eo,730:$s,732:vo,733:vo,915:qo,916:[0,.69444,0,0,.91667],920:Ts,923:Ss,926:$s,928:Ol,931:Ol,933:Ts,934:Ol,936:Ts,937:Ol,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Eo,8217:Eo,8220:al,8221:al},"SansSerif-Italic":{32:hr,33:[0,.69444,.05733,0,.31945],34:Nc,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:nc,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:_s,45:[0,.44444,.01946,0,.33333],46:gl,47:[.25,.75,.13164,0,.5],48:Os,49:Os,50:Os,51:Os,52:Os,53:Os,54:Os,55:Os,56:Os,57:Os,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:Ho,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:Hl,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:qs,77:[0,.69444,.08094,0,.875],78:Hl,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:fc,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:hr,168:[0,.67937,.06385,0,.5],176:Tc,184:Zc,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:fc,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Oc,715:aa,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Tc,732:[0,.67659,.08826,0,.5],733:Oc,915:[0,.69444,.13372,0,.54167],916:Xu,920:[0,.69444,.07555,0,.77778],923:us,926:[0,.69444,.12816,0,.66667],928:Hl,931:[0,.69444,.11983,0,.72222],933:tc,934:[0,.69444,.04603,0,.72222],936:tc,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:nc,8217:nc,8220:[0,.69444,.14205,0,.5],8221:Nc},"SansSerif-Regular":{32:hr,33:[0,.69444,0,0,.31945],34:aa,35:Pc,36:rs,37:Lo,38:[0,.69444,0,0,.75834],39:da,40:Bi,41:Bi,42:fo,43:Ra,44:_s,45:[0,.44444,0,0,.33333],46:gl,47:Ha,48:ho,49:ho,50:ho,51:ho,52:ho,53:ho,54:ho,55:ho,56:ho,57:ho,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:Wo,64:Ho,65:Ho,66:Ho,67:ra,68:[0,.69444,0,0,.72223],69:ws,70:[0,.69444,0,0,.56945],71:Ho,72:_l,73:da,74:Wo,75:[0,.69444,0,0,.69445],76:qs,77:[0,.69444,0,0,.875],78:_l,79:[0,.69444,0,0,.73611],80:ra,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:mo,84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:Ho,89:[0,.69444,.025,0,.66667],90:us,91:zl,93:zl,94:aa,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:jc,99:tf,100:jc,101:tf,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:jc,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:Yu,111:[0,.44444,0,0,.5],112:Md,113:Md,114:[0,.44444,.01389,0,.34167],115:Gu,116:[0,.57143,0,0,.36111],117:Yu,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:hr,168:[0,.67937,0,0,.5],176:Ho,184:Zc,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:aa,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:aa,715:aa,728:aa,729:[0,.67937,0,0,.27778],730:Ho,732:[0,.67659,0,0,.5],733:aa,915:qs,916:Xu,920:Ji,923:us,926:Ho,928:_l,931:Ao,933:Ji,934:Ao,936:Ji,937:Ao,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:da,8217:da,8220:aa,8221:aa},"Script-Regular":{32:hr,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:hr},"Size1-Regular":{32:hr,40:Ad,41:Ad,47:Au,91:Qu,92:Au,93:Qu,123:Ju,125:Ju,160:hr,710:ku,732:ku,770:ku,771:ku,8214:[-99e-5,.601,0,0,.77778],8593:Lu,8595:Lu,8657:kd,8659:kd,8719:Uc,8720:Uc,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:lu,8748:nf,8749:nf,8750:lu,8896:vl,8897:vl,8898:vl,8899:vl,8968:Rc,8969:Rc,8970:Rc,8971:Rc,9168:Dt,10216:Rc,10217:Rc,10752:Ld,10753:Ld,10754:Ld,10756:vl,10758:vl},"Size2-Regular":{32:hr,40:$u,41:$u,47:Wl,91:Yo,92:Wl,93:Yo,123:rc,125:rc,160:hr,710:ic,732:ic,770:ic,771:ic,8719:wc,8720:wc,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:ed,8748:qu,8749:qu,8750:ed,8896:Fc,8897:Fc,8898:Fc,8899:Fc,8968:td,8969:td,8970:td,8971:td,10216:cu,10217:cu,10752:Vc,10753:Vc,10754:Vc,10756:Fc,10758:Fc},"Size3-Regular":{32:hr,40:nd,41:nd,47:Du,91:hc,92:Du,93:hc,123:uu,125:uu,160:hr,710:du,732:du,770:du,771:du,8730:[.95003,1.45,0,0,1],8968:Bu,8969:Bu,8970:Bu,8971:Bu,10216:uu,10217:uu},"Size4-Regular":{32:hr,40:fu,41:fu,47:Yl,91:rd,92:Yl,93:rd,123:Iu,125:Iu,160:hr,710:Ee,732:Ee,770:Ee,771:Ee,8730:[1.25003,1.75,0,0,1],8968:Be,8969:Be,8970:Be,8971:Be,9115:Je,9116:ut,9117:Je,9118:Je,9119:ut,9120:Je,9121:Nt,9122:Dt,9123:Nt,9124:Nt,9125:Dt,9126:Nt,9127:Sn,9128:Nn,9129:An,9130:[0,.3,0,0,.88889],9131:Sn,9132:Nn,9133:An,9143:[.88502,.915,0,0,1.05556],10216:Iu,10217:Iu,57344:nr,57345:nr,57680:br,57681:br,57682:br,57683:br},"Typewriter-Regular":{32:mi,33:pn,34:pn,35:pn,36:Hr,37:Hr,38:pn,39:pn,40:Hr,41:Hr,42:[0,.52083,0,0,.525],43:Ur,44:[.13889,.125,0,0,.525],45:Ur,46:[0,.125,0,0,.525],47:Hr,48:pn,49:pn,50:pn,51:pn,52:pn,53:pn,54:pn,55:pn,56:pn,57:pn,58:ii,59:[.13889,.43056,0,0,.525],60:Gr,61:[-.19549,.41562,0,0,.525],62:Gr,63:pn,64:pn,65:pn,66:pn,67:pn,68:pn,69:pn,70:pn,71:pn,72:pn,73:pn,74:pn,75:pn,76:pn,77:pn,78:pn,79:pn,80:pn,81:[.13889,.61111,0,0,.525],82:pn,83:pn,84:pn,85:pn,86:pn,87:pn,88:pn,89:pn,90:pn,91:Hr,92:Hr,93:Hr,94:pn,95:[.09514,0,0,0,.525],96:pn,97:ii,98:pn,99:ii,100:pn,101:ii,102:pn,103:Jr,104:pn,105:pn,106:[.22222,.61111,0,0,.525],107:pn,108:pn,109:ii,110:ii,111:ii,112:Jr,113:Jr,114:ii,115:ii,116:[0,.55358,0,0,.525],117:ii,118:ii,119:ii,120:ii,121:Jr,122:ii,123:Hr,124:Hr,125:Hr,126:pn,127:pn,160:mi,176:pn,184:[.19445,0,0,0,.525],305:ii,567:Jr,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:pn,715:pn,728:pn,730:pn,770:pn,771:pn,776:pn,915:pn,916:pn,920:pn,923:pn,926:pn,928:pn,931:pn,933:pn,934:pn,936:pn,937:pn,8216:pn,8217:pn,8242:pn,9251:[.11111,.21944,0,0,.525]}},Ci=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,ea=10,ji=.25,$i=1.2,Ea=.431,Ua={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[Ea,Ea,Ea],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.5,.732,.925],num2:[.394,.384,.5],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[ji,ji,ji],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04]},Fi=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ui=5,Ki={"\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 gi(a,y){a===void 0&&(a=77);const b=ui[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 Ki)a=Ki[E].codePointAt(0);else if(Ci.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 Xi={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]},Ma={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34],overarc:[1061,159,.3],underarc:[1061,159,.3]},qa={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,overarc:"M529 0c179 0 524 115 524 115 5 1 9 5 9 10 0 1-1 2-1 3l-4 22c-1 5-5 9-11 9h-2s-338-93-512-92c-174 0-513 92-513 92h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13 0 0 342-115 520-115z",underarc:`m 529 160
|
|
|
c -179 0 -524 -115 -524 -115
|
|
|
c -5 -1 -9 -5 -9 -10
|
|
|
c 0 -1 1 -2 1 -3
|
|
|
l 4 -22
|
|
|
c 1 -5 5 -9 11 -9
|
|
|
h 2
|
|
|
s 338 93 512 92
|
|
|
c 174 0 513 -92 513 -92
|
|
|
h 2
|
|
|
c 5 0 9 4 11 9
|
|
|
l 5 22
|
|
|
c 1 6 -2 12 -8 13
|
|
|
c 0 0 -342 115 -520 115
|
|
|
z
|
|
|
`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,widetilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,widetilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,widetilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,widetilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`};function Ka(a){if(Ma[a]){const[De,Fe,nt]=Ma[a],At=`<span class="stretchy" style="height:${nt}em"><svg width="100%" height="${nt}em" viewBox="0 0 ${De} ${Fe}" preserveAspectRatio="none" ><path fill="currentcolor" d="${qa[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*nt/2)/100}em;min-width:0">${At}</span>`}const[y,b,E,ee]=Xi[a];let ae,se;const ve=E/1e3;y.length===3?(ae=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],se=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(ae=["slice-1-of-2","slice-2-of-2"],se=["xMinYMin","xMaxYMin"]):(ae=["slice-1-of-1"],se=[ee]);const Ce=y.map((De,Fe)=>`<span class="${ae[Fe]}" style=height:${ve}em><svg width=400em height=${ve}em viewBox="0 0 400000 ${E}" preserveAspectRatio="${se[Fe]} slice"><path fill="currentcolor" d="${qa[De]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${ve}em;min-width:${b}em;">${Ce}</span>`}function Aa(a){return Xi[a]?Xi[a][2]/1e3:Ma[a][2]}function ao(a){const y=[];for(let b=0;b<a.length;b++){let E=a.charCodeAt(b);if(E===13&&a.charCodeAt(b+1)===10&&(E=10,b++),(E===13||E===12)&&(E=10),E===0&&(E=65533),E>=55296&&E<=56319){const ee=a.charCodeAt(b+1);if(ee>=56320&&ee<=57343){const ae=E-55296,se=ee-56320;E=su(2,16)+ae*su(2,10)+se,b++}}y.push(E)}return y}var eo=8205,_o=[[eo,1],[65038,2],[127995,5],[129456,4],[917536,96]],so,es=[127462,127487];function ts(a){var y;if(so===void 0){so={};for(const b of _o)for(let E=b[0];E<=b[0]+b[1]-1;E++)so[E]=!0}return(y=so[a])!=null?y:!1}function Va(a){return a>=es[0]&&a<=es[1]}function Ls(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=ao(a);let E=0;for(;E<b.length;){const ee=b[E++],ae=b[E];if(ae===eo){const se=E-1;for(E+=2;b[E]===eo;)E+=2;y.push(String.fromCodePoint(...b.slice(se,E-se+1)))}else if(ts(ae)){const se=E-1;for(;ts(b[E]);)E+=b[E]===eo?2:1;y.push(String.fromCodePoint(...b.slice(se,2*E-se-1)))}else Va(ee)?(E+=1,y.push(String.fromCodePoint(...b.slice(E-2,2)))):y.push(String.fromCodePoint(ee))}return y}var Io=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=Ls(a)}end(){return this.pos>=this.s.length}get(){return this.pos<this.s.length?this.s[this.pos++]:""}peek(){return this.s[this.pos]}match(a){const y=typeof this.s=="string"?a.exec(this.s.slice(this.pos)):a.exec(this.s.slice(this.pos).join(""));return y!=null&&y[0]?(this.pos+=y[0].length,y[0]):""}next(){if(this.end())return null;if(!this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]+/)||this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]/))return"<space>";const a=this.get();if(a==="\\"){if(!this.end()){let y=this.match(/^[a-zA-Z\*]+/);return y?this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]*/):y=this.get(),"\\"+y}}else{if(a==="{")return"<{>";if(a==="}")return"<}>";if(a==="^"){if(this.peek()==="^"){this.get();const y=this.match(/^(\^(\^(\^(\^[\da-f])?[\da-f])?[\da-f])?[\da-f])?[\da-f]{2}/);if(y)return String.fromCodePoint(Number.parseInt(y.slice(y.lastIndexOf("^")+1),16))}return a}else if(a==="#"){if(!this.end()){let y=!1;if(/[\d?@]/.test(this.peek())&&(y=!0,this.pos+1<this.s.length)){const b=this.s[this.pos+1];y=/[^\dA-Za-z]/.test(b)}return y?"#"+this.get():"#"}}else if(a==="$")return this.peek()==="$"?(this.get(),"<$$>"):"<$>"}return a}};function Zo(a,y){var b,E,ee,ae;const se=[];let ve=a.next();if(ve&&ve!=="\\relax"){if(ve==="\\noexpand")ve=a.next(),ve&&se.push(ve);else if(ve==="\\obeyspaces")a.obeyspaces=!0;else if(ve==="\\bgroup")se.push("<{>");else if(ve==="\\egroup")se.push("<}>");else if(ve==="\\string"){if(ve=a.next(),ve)if(ve.startsWith("\\"))for(const Ce of ve)se.push(Ce==="\\"?"\\backslash":Ce);else ve==="<{>"?se.push("\\{"):ve==="<space>"?se.push("~"):ve==="<}>"&&se.push("\\}")}else if(ve==="\\csname"){for(;a.peek()==="<space>";)a.next();let Ce="",De=!1,Fe=[];do{if(Fe.length===0)if(/^#[\d?@]$/.test(a.peek())){const nt=a.get().slice(1);Fe=Ro((E=(b=y==null?void 0:y(nt))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),ve=Fe[0]}else ve=a.next(),Fe=ve?[ve]:[];De=Fe.length===0,!De&&ve==="\\endcsname"&&(De=!0,Fe.shift()),De||(De=ve==="<$>"||ve==="<$$>"||ve==="<{>"||ve==="<}>"||typeof ve=="string"&&ve.length>1&&ve.startsWith("\\")),De||(Ce+=Fe.shift())}while(!De);Ce&&se.push("\\"+Ce),se.push(...Fe)}else if(ve!=="\\endcsname")if(ve.length>1&&ve.startsWith("#")){const Ce=ve.slice(1);se.push(...Ro((ae=(ee=y==null?void 0:y(Ce))!=null?ee:y==null?void 0:y("?"))!=null?ae:"\\placeholder{}",y))}else se.push(ve)}return se}function Ro(a,y=null){const b=[];let E="";for(const se of a.toString().split(/\r?\n/)){E&&b.push(E),E=" ";const ve=se.match(/((?:\\%)|[^%])*/);ve!==null&&b.push(ve[0])}const ee=new Io(ht(b.join(""))),ae=[];do ae.push(...Zo(ee,y));while(!ee.end());return ae}function Wa(a){let y="";const b=[];for(const E of a)E&&(y&&/^[a-zA-Z\*]/.test(E)&&b.push(y),b.push(E),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(E)&&b.push(" "),y=/\\[a-zA-Z]+\*?$/.test(E)?" ":"");return b.join("")}function Ii(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:Wa([a,...y.map(b=>`{${b}}`)])}function ha(a){return Wa(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var ka=class Df{constructor(y){Df._registry[y]=this}static createAtom(y,b,E){return Df._registry[y].createAtom(b,Yt(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 ae of To(y)){const se=Df._registry[ae[0].mode];ee.push(...se.serialize(ae,b))}return Wa(ee)}return Wa(wo(y,b))}static getFont(y,b,E){return Df._registry[y].getFont(b,E)}};ka._registry={};var Vi=ka;function To(a){const y=[];let b=[],E="NONE";for(const ee of a)ee.type!=="first"&&(ee.mode!==E?(b.length>0&&y.push(b),b=[ee],E=ee.mode):b.push(ee));return b.length>0&&y.push(b),y}function Di(a,y){const b=[];let E=[],ee;for(const ae of a)if(ae.type!=="first"&&ae.style){let se;y==="variant"?(se=ae.style.variant,ae.style.variantStyle&&ae.style.variantStyle!=="up"&&(se+="-"+ae.style.variantStyle)):se=ae.style[y],se===ee?E.push(ae):(E.length>0&&b.push(E),E=[ae],ee=se)}return E.length>0&&b.push(E),b}function ja(a,y){var b;const{parent:E}=a[0],ee=E==null?void 0:E.computedStyle.color,ae=[];for(const se of To(a)){const ve=y.defaultMode;for(const Ce of Di(se,"color")){const De=Ce[0].computedStyle,Fe=Vi._registry[Ce[0].mode].serialize(Ce,me(we({},y),{defaultMode:ve==="text"?"text":"math"}));!y.skipStyles&&De.color&&De.color!=="none"&&(!E||ee!==De.color)?ae.push(Ii("\\textcolor",(b=De.verbatimColor)!=null?b:De.color,Wa(Fe))):ae.push(Wa(Fe))}}return ae}function Do(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return Di(a,"backgroundColor").map(ee=>{var ae;if(ee.length>0||ee[0].type!=="box"){const se=ee[0].computedStyle;if(se.backgroundColor&&se.backgroundColor!=="none"&&(!b||E!==se.backgroundColor))return Ii("\\colorbox",(ae=se.verbatimBackgroundColor)!=null?ae:se.backgroundColor,Wa(ja(ee,me(we({},y),{defaultMode:"text"}))))}return Wa(ja(ee,y))})}function wo(a,y){if(a.length===0)return[];const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.fontSize,ee=[];for(const ae of Di(a,"fontSize")){const se=ae[0].computedStyle.fontSize,ve=Do(ae,y);ve&&(se&&se!=="auto"&&(!b||E!==se)?ee.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][se],...ve):ee.push(...ve))}return ee}function ol(a){return a?{mord:"ord",mbin:"bin",mop:"op",mrel:"rel",mopen:"open",mclose:"close",mpunct:"punct",minner:"inner",spacing:"ignore",latex:"latex",composition:"inner",error:"inner",placeholder:"ord",supsub:"ignore"}[a]:void 0}function Ds(a){if(a.length===0)return"ord";const y=ol(a[0].type),b=ol(a[a.length-1].type);return y&&y===b?y:"ord"}function El(a,y){if(typeof a=="string")return a;if(typeof a=="number"){console.assert(Number.isFinite(a));const b=Math.ceil(100*a)/100;return b===0?"0":b.toString()+(y!=null?y:"")}return""}var ei=class E0{constructor(y,b){var E,ee,ae,se,ve;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:Ke(y)?this.children=y.filter(De=>De!==null):y&&y instanceof E0&&(this.children=[y]),this.children)for(const De of this.children)De.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=(ae=b==null?void 0:b.isTight)!=null?ae:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let Ce=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(Ce=(ve=Vi.getFont((se=b.mode)!=null?se:"math",this,me(we({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?ve:void 0),Ce||(Ce="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),Bo(this,Ce)}set atomID(y){y===void 0||y.length===0||(this.id=y)}selected(y){if(this.isSelected!==y&&(this.isSelected=y,this.children))for(const b of this.children)b.selected(y)}setStyle(y,b,E){if(b===void 0)return;const ee=El(b,E);ee.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[y]=ee)}setTop(y){Number.isFinite(y)&&Math.abs(y)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=El(y,"em"),this.height-=y,this.depth+=y)}get left(){var y;return(y=this.cssProperties)!=null&&y["margin-left"]?Number.parseFloat(this.cssProperties["margin-left"]):0}set left(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-left"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-left"]=El(y,"em")))}set right(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-right"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-right"]=El(y,"em")))}set bottom(y){Number.isFinite(y)&&(y===0?this.cssProperties&&delete this.cssProperties["margin-bottom"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-bottom"]=El(y,"em")))}get width(){return this._width*this.scale}set width(y){this._width=y,this.hasExplicitWidth=!0}set softWidth(y){}get height(){return this._height*this.scale}set height(y){this._height=y}get depth(){return this._depth*this.scale}set depth(y){this._depth=y}wrap(y){const b=y.parent;if(!b)return this;y.isPhantom&&this.setStyle("opacity",0);const E=y.color;E&&E!==b.color&&this.setStyle("color",E);let ee=y.backgroundColor;this.isSelected&&(ee=Tn(ee)),ee&&ee!==b.backgroundColor&&(this.setStyle("background-color",ee),this.setStyle("display","inline-block"));const ae=y.scalingFactor;return this.scale=ae,this.skew*=ae,this.italic*=ae,this}toMarkup(){var y,b,E,ee;let ae=(y=this.value)!=null?y:"";if(this.children)for(const tn of this.children)ae+=tn.toMarkup();let se="";if(this.svgBody)se=Ka(this.svgBody);else if(this.svgOverlay){se='<span style="',se+="display: inline-block;",se+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,se+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,se+='">',se+=ae,se+="</span>",se+='<svg style="position:absolute;overflow:visible;',se+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const tn=(b=this.cssProperties)==null?void 0:b.padding;tn?(se+=`top:${tn};`,se+=`left:${tn};`,se+=`width:calc(100% - 2 * ${tn} );`):se+="top:0;left:0;width:100%;",se+="z-index:2;",se+='"',this.svgStyle&&(se+=this.svgStyle),se+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,se+=`>${this.svgOverlay}</svg>`}let ve="";const Ce=this.classes.split(" ");Ce.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&Ce.push("ML__latex-caret"),this.isSelected&&Ce.push("ML__selected");const De=Ce.length===1?Ce[0]:Ce.filter((tn,fn,Ar)=>tn.length>0&&Ar.indexOf(tn)===fn).join(" ");if(De.length>0&&(ve+=` class="${De}"`),this.id&&(ve+=` data-atom-id=${this.id}`),this.cssId&&(ve+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(ve+=" "+Object.keys(this.attributes).map(tn=>`${tn}="${this.attributes[tn]}"`).join(" ")),this.htmlData){const tn=this.htmlData.split(",");for(const fn of tn){const Ar=fn.match(/([^=]+)=(.+$)/);if(Ar){const hi=Ar[1].trim().replace(/ /g,"-");hi&&(ve+=` data-${hi}="${Ar[2]}" `)}else{const hi=fn.trim().replace(/ /g,"-");hi&&(ve+=` data-${hi} `)}}}const Fe=(ee=this.cssProperties)!=null?ee:{};this.hasExplicitWidth&&Fe.width===void 0&&(Fe.width=`${Math.ceil(this._width*100)/100}em`);const nt=Object.keys(Fe).map(tn=>`${tn}:${Fe[tn]}`);if(this.scale!==void 0&&this.scale!==1&&(ae.length>0||se.length>0)&&nt.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const tn=this.htmlStyle.split(";");let fn="";for(const Ar of tn){const hi=Ar.match(/([^=]+):(.+$)/);if(hi){const Cr=hi[1].trim().replace(/ /g,"-");Cr&&(fn+=`${Cr}:${hi[2]};`)}}fn&&(ve+=` style="${fn}"`)}nt.length>0&&(ve+=` style="${nt.join(";")}"`);let At="";return ve.length>0||se.length>0?At=`<span${ve}>${ae}${se}</span>`:At=ae,this.caret==="text"?At+='<span class="ML__text-caret"></span>':this.caret==="math"&&(At+='<span class="ML__caret"></span>'),At}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 Ce of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&Ce in y.cssProperties||this.cssProperties&&Ce in this.cssProperties)return!1}const ee=this.cssProperties?Object.keys(this.cssProperties).length:0,ae=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ee!==ae)return!1;if(ee>0){for(const Ce of Object.keys(this.cssProperties))if(this.cssProperties[Ce]!==y.cssProperties[Ce])return!1}const se=this.classes.trim().replace(/\s+/g," ").split(" "),ve=y.classes.trim().replace(/\s+/g," ").split(" ");if(se.length!==ve.length)return!1;se.sort(),ve.sort();for(const[Ce,De]of se.entries())if(De==="vertical-separator"||De!==ve[Ce])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 Kl(a){if(!a||a.length===0)return[];a[0].children=Kl(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=Kl(a[b].children),y.push(a[b]));return y}function Cs(a){return a.children&&(a.children=Kl(a.children)),a}function fl(a,y){if(!a)return new ei(null,y);const b=new ei(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 ei(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 ei(E,me(we({},y),{type:"lift"}))}function yl(a){const y=Aa(a)/2,b=new ei(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function Bo(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=gi(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,ae=0;for(const se of a.children)se.height>E&&(E=se.height),se.depth>ee&&(ee=se.depth),ae=Math.max(ae,(b=se.maxFontSize)!=null?b:0);a.height=E,a.depth=ee,a._width=a.children.reduce((se,ve)=>se+ve.width,0),a.maxFontSize=ae}}function Po(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const E=[b],ee=-b.shift-b.box.depth;let ae=ee;for(let se=1;se<y.length;se++){const ve=y[se],Ce=-ve.shift-ae-ve.box.depth,De=Ce-(b.box.height+b.box.depth);ae=ae+Ce,E.push(De),E.push(ve),b=ve}return[E,ee]}if("top"in a){let y=a.top;for(const b of a.children)y-=typeof b=="number"?b:b.box.height+b.box.depth;return[a.children,y]}else{if("bottom"in a)return[a.children,-a.bottom];if("firstBaseline"in a){const y=a.firstBaseline[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.firstBaseline,-y.box.depth]}else if("shift"in a){const y=a.children[0];if(typeof y=="number")throw new Error("First child must be an element.");return[a.children,-y.box.depth-a.shift]}}return[null,0]}function ns(a){var y;const[b,E]=Po(a);if(!b)return[[],0,0];const ee=new ei(null,{classes:"pstrut"});let ae=0;for(const fn of b)if(typeof fn!="number"){const Ar=fn.box;ae=Math.max(ae,Ar.maxFontSize,Ar.height)}ae+=2,ee.height=ae,ee.setStyle("height",ae,"em");const se=[];let ve=E,Ce=E,De=E,Fe=0;for(const fn of b){if(typeof fn=="number")De+=fn;else{const Ar=fn.box,hi=(y=fn.classes)!=null?y:[],Cr=new ei([ee,Ar],{classes:hi.join(" "),style:fn.style});Ar.setStyle("height",Ar.height+Ar.depth,"em"),Ar.setStyle("display","inline-block"),Cr.setStyle("top",-ae-De-Ar.depth,"em"),fn.marginLeft&&Cr.setStyle("margin-left",fn.marginLeft,"em"),fn.marginRight&&Cr.setStyle("margin-right",fn.marginRight,"em"),se.push(Cr),De+=Ar.height+Ar.depth,Fe=Math.max(Fe,Cr.width)}ve=Math.min(ve,De),Ce=Math.max(Ce,De)}se.forEach(fn=>{fn.softWidth=Fe});const nt=new ei(se,{classes:"vlist"});if(nt.softWidth=Fe,nt.height=Ce,nt.setStyle("height",Ce,"em"),ve>=0)return[[new ei(nt,{classes:"vlist-r"})],Ce,-ve];const At=new ei(new ei(null),{classes:"vlist"});At.height=-ve,At.setStyle("height",-ve,"em");const tn=new ei(8203,{classes:"vlist-s",maxFontSize:0});return tn.softWidth=0,tn.height=0,tn.depth=0,[[new ei([nt,tn],{classes:"vlist-r"}),new ei(At,{classes:"vlist-r"})],Ce,-ve]}var $a=class extends ei{constructor(a,y){var b;const[E,ee,ae]=ns(a);super(E.length===1?E[0]:E,{type:y==null?void 0:y.type,classes:((b=y==null?void 0:y.classes)!=null?b:"")+" vlist-t"+(E.length===2?" vlist-t2":"")}),this.height=ee,this.depth=ae,this.softWidth=E.reduce((se,ve)=>Math.max(se,ve.width),0)}};function Rs(a,y){var b,E,ee,ae,se;const ve=a.metrics,Ce=new ei(y.base),De=(b=y.baseShift)!=null?b:0,Fe=(E=y.slant)!=null?E:0;let nt=0,At=0;y.above&&(nt=(ee=y.aboveShift)!=null?ee:Math.max(ve.bigOpSpacing1,ve.bigOpSpacing3-y.above.depth)),y.below&&(At=(ae=y.belowShift)!=null?ae:Math.max(ve.bigOpSpacing2,ve.bigOpSpacing4-y.below.height));let tn=null;if(y.below&&y.above){const fn=ve.bigOpSpacing5+y.below.height+y.below.depth+At+Ce.depth+De;tn=new $a({bottom:fn,children:[ve.bigOpSpacing5,{box:y.below,marginLeft:-Fe,classes:["ML__center"]},At,{box:Ce,classes:["ML__center"]},nt,{box:y.above,marginLeft:Fe,classes:["ML__center"]},ve.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)tn=new $a({top:Ce.height-De,children:[ve.bigOpSpacing5,{box:y.below,marginLeft:-Fe,classes:["ML__center"]},At,{box:Ce,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const fn=Ce.depth+De;tn=new $a({bottom:fn,children:[{box:Ce,classes:["ML__center"]},nt,{box:y.above,marginLeft:Fe,classes:["ML__center"]},ve.bigOpSpacing5]}).wrap(a)}else{const fn=Ce.depth+De;tn=new $a({bottom:fn,children:[{box:Ce},ve.bigOpSpacing5]}).wrap(a)}return new ei(tn,{type:(se=y.type)!=null?se:"op"})}var lo=7,Bs=6,Ws=5,Zs=4,Ml=3,Es=2,Al=1,Ms=0,js=class{constructor(a,y,b){this.id=a,this.sizeDelta=y,this.cramped=b;const E={"-4":2,"-3":1,0:0}[y];this.metrics=Object.keys(Ua).reduce((ee,ae)=>me(we({},ee),{[ae]:Ua[ae][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return As[[Ms,Al,Ms,Al,Es,Ml,Es,Ml][this.id]]}get sub(){return As[[Ms,Ms,Ms,Ms,Es,Es,Es,Es][this.id]]}get fracNum(){return As[[Ms,Al,Ms,Al,Es,Ml,Zs,Ws][this.id]]}get fracDen(){return As[[Ms,Ms,Ms,Ms,Es,Es,Zs,Zs][this.id]]}get cramp(){return As[[Ms,Ms,Es,Es,Zs,Zs,Bs,Bs][this.id]]}get isTight(){return this.sizeDelta<0}},Us={7:new js(lo,0,!1),6:new js(Bs,0,!0),5:new js(Ws,0,!1),4:new js(Zs,0,!0),3:new js(Ml,-3,!1),2:new js(Es,-3,!0),1:new js(Al,-4,!1),0:new js(Ms,-4,!0)},As=me(we({},Us),{displaystyle:Us[lo],textstyle:Us[Ws],scriptstyle:Us[Ml],scriptscriptstyle:Us[Al]});function ms(a,y){var b;if(!a)return 0;const E={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:ea,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=su(10,y);return Math.round(a.dimension/ea*E*ee)/ee}return a.dimension*E}function ls(a,y){if(a===null)return 0;const b=ms(a)/ea;if(Number.isFinite(y)){const E=su(10,y);return Math.round(b*E)/E}return b}function Xl(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function Cc(a){let y=Xl(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${Xl(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${Xl(a.shrink)}`),y}function hs(a){var y,b;if(a==null)return null;let E="";if("dimension"in a&&(E=`${a.dimension}${(y=a.unit)!=null?y:"pt"}`),"glue"in a&&(E=Cc(a)),"number"in a)if(!("base"in a)||a.base==="decimal")E=Number(a.number).toString();else if(a.base==="alpha")E=`\`${String.fromCodePoint(a.number)}`;else{const ee=Math.round(a.number)>>>0;a.base==="hexadecimal"?(E=Number(ee).toString(16).toUpperCase(),ee<=255?E=E.padStart(2,"0"):ee<=65535?E=E.padStart(4,"0"):ee<=16777215?E=E.padStart(6,"0"):E=E.padStart(8,"0"),E=`"${E}`):a.base==="octal"&&(E=Number(ee).toString(8),ee<=63?E=E.padStart(2,"0"):ee<=30583?E=E.padStart(4,"0"):E=E.padStart(8,"0"),E=`'${E}`)}return"register"in a&&("factor"in a&&(a.factor===-1?E="-":a.factor!==1&&(E=Number(a.factor).toString())),"global"in a&&a.global&&(E+="\\global"),E+=`\\${a.register}`),"string"in a&&(E=a.string),(b=a.relax)!=null&&b&&(E+="\\relax"),E}function sl(a,y){return a==null?null:"number"in a?me(we({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?me(we({},a),{factor:a.factor*y}):me(we({},a),{factor:y}):"dimension"in a?me(we({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:sl(a.glue,y),shrink:sl(a.shrink,y),grow:sl(a.grow,y)}:a.shrink?{glue:sl(a.glue,y),shrink:sl(a.shrink,y)}:a.grow?{glue:sl(a.glue,y),grow:sl(a.grow,y)}:{glue:sl(a.glue,y)}:null}var Tu={"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 Ec(){return we({},Tu)}function yo(){return{registers:Ec(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:qe.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:ft,backgroundColorMap:Ne,getMacro:a=>Un(a,_t())}}var ya=class M0{constructor(y,b){var E,ee,ae,se,ve,Ce,De,Fe,nt,At,tn,fn,Ar,hi,Cr;let $r;y!=null&&y.parent?(this.parent=y.parent,$r=y.parent,this.registers={}):($r=we(we({},yo()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=$r.registers),$r.atomIdsSettings&&(this.atomIdsSettings=we({},$r.atomIdsSettings)),this.renderPlaceholder=$r.renderPlaceholder,this.isPhantom=(se=(ae=y==null?void 0:y.isPhantom)!=null?ae:(ee=this.parent)==null?void 0:ee.isPhantom)!=null?se:!1,this.letterShapeStyle=$r.letterShapeStyle,this.minFontScale=$r.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(Ce=(ve=this.parent)==null?void 0:ve.color)!=null?Ce:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(Fe=(De=this.parent)==null?void 0:De.backgroundColor)!=null?Fe:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((nt=this.parent)==null?void 0:nt.size)?this.size=b.fontSize:this.size=(tn=(At=this.parent)==null?void 0:At.size)!=null?tn:Ui;let yi=(Ar=(fn=this.parent)==null?void 0:fn.mathstyle)!=null?Ar:As.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if($r instanceof M0)switch(y.mathstyle){case"cramp":yi=yi.cramp;break;case"superscript":yi=yi.sup;break;case"subscript":yi=yi.sub;break;case"numerator":yi=yi.fracNum;break;case"denominator":yi=yi.fracDen;break}switch(y.mathstyle){case"textstyle":yi=As.textstyle;break;case"displaystyle":yi=As.displaystyle;break;case"scriptstyle":yi=As.scriptstyle;break;case"scriptscriptstyle":yi=As.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=yi,this.smartFence=$r.smartFence,this.placeholderSymbol=$r.placeholderSymbol,this.colorMap=(hi=$r.colorMap)!=null?hi:ri=>ri,this.backgroundColorMap=(Cr=$r.backgroundColorMap)!=null?Cr:ri=>ri,this.getMacro=$r.getMacro,console.assert(this.parent!==void 0||this.registers!==void 0)}makeID(){if(!this.atomIdsSettings)return;if(this.atomIdsSettings.overrideID)return this.atomIdsSettings.overrideID;if(typeof this.atomIdsSettings.seed!="number")return`${Date.now().toString(36).slice(-2)}${Math.floor(Math.random()*1e5).toString(36)}`;const y=this.atomIdsSettings.seed.toString(36);return this.atomIdsSettings.seed+=1,y}scale(y){return y*this.effectiveFontSize}get scalingFactor(){return this.parent?this.effectiveFontSize/this.parent.effectiveFontSize:1}get isDisplayStyle(){return this.mathstyle.id===lo||this.mathstyle.id===Bs}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(Fi[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(y){var b;if((b=this.registers)!=null&&b[y])return this.registers[y];if(this.parent)return this.parent.getRegister(y)}getRegisterAsNumber(y){const b=this.getRegister(y);if(typeof b=="number")return b;if(typeof b=="string")return Number(b)}getRegisterAsGlue(y){var b;if((b=this.registers)!=null&&b[y]){const E=this.registers[y];return typeof E=="object"&&"glue"in E?E:typeof E=="object"&&"dimension"in E?{glue:{dimension:E.dimension}}:typeof E=="number"?{glue:{dimension:E}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(y)}getRegisterAsEm(y,b){return ls(this.getRegisterAsDimension(y),b)}getRegisterAsDimension(y){var b;if((b=this.registers)!=null&&b[y]){const E=this.registers[y];return typeof E=="object"&&"glue"in E?E.glue:typeof E=="object"&&"dimension"in E?E:typeof E=="number"?{dimension:E}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(y)}setRegister(y,b){if(b===void 0){delete this.registers[y];return}this.registers[y]=b}evaluate(y){if(!y||!("register"in y))return y;let b=this;if("global"in y&&y.global)for(;b.parent;)b=b.parent;let E=1;"factor"in y&&y.factor!==1&&y.factor!==void 0&&(E=y.factor);const ee=b.getRegister(y.register);if(ee===void 0)return;if(typeof ee=="string")return{string:Number(ee).toString()+ee};if(typeof ee=="number")return{number:E*ee};const ae=b.evaluate(ee);if(ae!==void 0)return"string"in ae?{string:Number(ee).toString()+ae.string}:"number"in ae?{number:E*ae.number}:"dimension"in ae?me(we({},ae),{dimension:E*ae.dimension}):"glue"in ae?me(we({},ae),{glue:me(we({},ae.glue),{dimension:E*ae.glue.dimension}),shrink:ae.shrink?me(we({},ae.shrink),{dimension:E*ae.shrink.dimension}):void 0,grow:ae.grow?me(we({},ae.grow),{dimension:E*ae.grow.dimension}):void 0}):y}toDimension(y){const b=this.evaluate(y);return b===void 0?null:"dimension"in b?b:"glue"in b?b.glue:"number"in b?{dimension:b.number}:null}toEm(y,b){if(y===null)return 0;const E=this.toDimension(y);return E===null?0:ms(E,b)/ea}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}},Ns=["body","above","below","superscript","subscript"];function jo(a){return typeof a=="string"&&Ns.includes(a)}function Vs(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var Nr=class Eu{constructor(y){var b,E,ee,ae,se,ve;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=(ae=y.displayContainsHighlight)!=null?ae:!1,this.captureSelection=(se=y.captureSelection)!=null?se:!1,this.skipBoundary=(ve=y.skipBoundary)!=null?ve:!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 ae=kl(b),se=[];for(const Ce of ae){const De=Ce[0].style,Fe=lc(y,Ce,{style:{color:De.color,backgroundColor:De.backgroundColor,fontSize:De.fontSize}});Fe&&se.push(Fe)}if(se.length===0)return null;const ve=((ee=E==null?void 0:E.classes)!=null?ee:"").trim();return se.length===1&&!ve&&!(E!=null&&E.type)?se[0].wrap(y):new ei(se,{classes:ve,type:E==null?void 0:E.type}).wrap(y)}static serialize(y,b){return Vi.serialize(y,b)}static commonAncestor(y,b){if(y===b||y.parent===b.parent)return y.parent;const E=new WeakSet;let{parent:ee}=y;for(;ee;)E.add(ee),ee=ee.parent;for(ee=b.parent;ee;){if(E.has(ee))return ee;ee=ee.parent}console.assert(!!ee)}static fromJson(y){return typeof y=="string"?new Eu({type:"mord",value:y,mode:"math"}):new Eu(y)}get latexMode(){return this.mode==="math"?"math":"text"}toJson(){const y={};if(this.type&&(y.type=this.type),this.mode!=="math"&&(y.mode=this.mode),this.command&&this.command!==this.value&&(y.command=this.command),this.value!==void 0&&(y.value=this.value),this.style&&Object.keys(this.style).length>0&&(y.style=we({},this.style)),this.verbatimLatex!==void 0&&(y.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(y.explicitSubsupPlacement=!0),this.isFunction&&(y.isFunction=!0),this.displayContainsHighlight&&(y.displayContainsHighlight=!0),this.isExtensibleSymbol&&(y.isExtensibleSymbol=!0),this.skipBoundary&&(y.skipBoundary=!0),this.captureSelection&&(y.captureSelection=!0),this.args&&(y.args=id(this.args)),this._branches)for(const b of Object.keys(this._branches))this._branches[b]&&(y[b]=this._branches[b].filter(E=>E.type!=="first").map(E=>E.toJson()));return y.type==="mord"&&Object.keys(y).length===2&&"value"in y?y.value:y}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(y){if(y){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:b}=this;for(;b;)b.parent||b._changeCounter++,"verbatimLatex"in b&&(b.verbatimLatex=void 0),b._children=void 0,b=b.parent}}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Yt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?Wa([Ii(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?Wa([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Vi.serialize(this.body,me(we({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Vi.serialize(this.above,y)}belowToLatex(y){return Vi.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=me(we({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const E=Vi.serialize(this.subscript,y);E.length===0?b+="_{}":E.length===1?/^[0-9]$/.test(E)?b+=`_${E}`:b+=`_{${E}}`:b+=`_{${E}}`}if(this.branch("superscript")!==void 0){const E=Vi.serialize(this.superscript,y);E.length===0?b+="^{}":E.length===1?E==="\u2032"?b+="^\\prime ":E==="\u2033"?b+="^\\doubleprime ":/^[0-9]$/.test(E)?b+=`^${E}`:b+=`^{${E}}`:b+=`^{${E}}`}return b}get treeDepth(){let y=1,b=this.parent;for(;b;)b=b.parent,y+=1;return y}get inCaptureSelection(){let y=this;for(;y;){if(y.captureSelection)return!0;y=y.parent}return!1}get parentPrompt(){let y=this.parent;for(;y;){if(y.type==="prompt"&&!y.captureSelection)return y;y=y.parent}return null}branch(y){if(jo(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of Ns)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(jo(y)),jo(y)?(this._branches?this._branches[y]||(this._branches[y]=[this.makeFirstAtom(y)]):this._branches={[y]:[this.makeFirstAtom(y)]},this.isDirty=!0,this._branches[y]):[]}get row(){return Vs(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Vs(this.parentBranch)?this.parentBranch[1]:-1}get body(){var y;return(y=this._branches)==null?void 0:y.body}set body(y){this.setChildren(y,"body")}get superscript(){var y;return(y=this._branches)==null?void 0:y.superscript}set superscript(y){this.setChildren(y,"superscript")}get subscript(){var y;return(y=this._branches)==null?void 0:y.subscript}set subscript(y){this.setChildren(y,"subscript")}get above(){var y;return(y=this._branches)==null?void 0:y.above}set above(y){this.setChildren(y,"above")}get below(){var y;return(y=this._branches)==null?void 0:y.below}set below(y){this.setChildren(y,"below")}get computedStyle(){var y,b;const E=typeof this.style.verbatimColor=="string",ee=typeof this.style.verbatimBackgroundColor=="string",ae=we(we({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete ae.variant,delete ae.variantStyle,ee||delete ae.verbatimBackgroundColor,E||delete ae.verbatimColor,ae}applyStyle(y){this.isDirty=!0,this.style=we(we({},this.style),y),this.style.fontFamily==="none"&&delete this.style.fontFamily,this.style.fontShape==="auto"&&delete this.style.fontShape,this.style.fontSeries==="auto"&&delete this.style.fontSeries,this.style.color==="none"&&(delete this.style.color,delete this.style.verbatimColor),this.style.backgroundColor==="none"&&(delete this.style.backgroundColor,delete this.style.verbatimBackgroundColor),this.style.fontSize==="auto"&&delete this.style.fontSize;for(const b of this.children)b.applyStyle(y)}getInitialBaseElement(){var y,b,E;return this.hasEmptyBranch("body")?this:(console.assert(((y=this.body)==null?void 0:y[0].type)==="first"),(E=(b=this.body[1])==null?void 0:b.getInitialBaseElement())!=null?E:this)}getFinalBaseElement(){return this.hasEmptyBranch("body")?this:this.body[this.body.length-1].getFinalBaseElement()}isCharacterBox(){return this.type==="leftright"||this.type==="genfrac"||this.type==="subsup"||this.type==="delim"||this.type==="array"||this.type==="surd"?!1:this.getFinalBaseElement().type==="mord"}hasEmptyBranch(y){const b=this.branch(y);return b?(console.assert(b.length>0),console.assert(b[0].type==="first"),b.length===1):!0}setChildren(y,b){var E;if(!y||(console.assert(jo(b)),!jo(b)))return;console.assert(((E=y[0])==null?void 0:E.type)!=="first");const ee=[this.makeFirstAtom(b),...y];this._branches?this._branches[b]=ee:this._branches={[b]:ee};for(const ae of y)ae.parent=this,ae.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new Eu({type:"first",mode:this.mode});return b.parent=this,b.parentBranch=y,b}addChild(y,b){console.assert(y.type!=="first"),this.createBranch(b).push(y),this.isDirty=!0,y.parent=this,y.parentBranch=b}addChildBefore(y,b){console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b),0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildAfter(y,b){console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b)+1,0,y),this.isDirty=!0,y.parent=this,y.parentBranch=b.parentBranch}addChildren(y,b){const E=this.createBranch(b);for(const ee of y)ee.parent=this,ee.parentBranch=b,E.push(ee);this.isDirty=!0}addChildrenAfter(y,b){console.assert(y.length===0||y[0].type!=="first"),console.assert(b.parentBranch!==void 0);const E=this.createBranch(b.parentBranch);E.splice(E.indexOf(b)+1,0,...y),this.isDirty=!0;for(const ee of y)ee.parent=this,ee.parentBranch=b.parentBranch;return y[y.length-1]}removeBranch(y){const b=this.branch(y);if(jo(y)&&(this._branches[y]=void 0),!b)return[];for(const E of b)E.parent=void 0,E.parentBranch=void 0;return console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}removeChild(y){if(console.assert(y.parent===this),y.type==="first")return;const b=this.branch(y.parentBranch),E=b.indexOf(y);console.assert(E>=0),b.splice(E,1),this.isDirty=!0,y.parent=void 0,y.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:y}=this;return y[y.length-1]}get isFirstSibling(){return this===this.firstSibling}get isLastSibling(){return this===this.lastSibling}get hasNoSiblings(){return this.siblings.length===1}get leftSibling(){console.assert(this.parent!==void 0);const y=this.parent.branch(this.parentBranch);return y[y.indexOf(this)-1]}get rightSibling(){console.assert(this.parent!==void 0);const y=this.parent.branch(this.parentBranch);return y[y.indexOf(this)+1]}get hasChildren(){return!!(this._branches&&this.children.length>0)}get firstChild(){return console.assert(this.hasChildren),this.children[0]}get lastChild(){console.assert(this.hasChildren);const{children:y}=this;return y[y.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const y=[];for(const b of Ns)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=Yt(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new ya({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,ae=this.superscript,se=this.subscript;if(!ae&&!se)return ee;let ve=null,Ce=null;const De=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let Fe=0;if(ae){const Ar=new ya({parent:y,mathstyle:"superscript"});ve=Eu.createBox(Ar,ae),De||(Fe=ee.height-y.metrics.supDrop*Ar.scalingFactor)}let nt=0;if(se){const Ar=new ya({parent:y,mathstyle:"subscript"});Ce=Eu.createBox(Ar,se),De||(nt=ee.depth+y.metrics.subDrop*Ar.scalingFactor)}let At;y.isDisplayStyle?At=y.metrics.sup1:y.isCramped?At=y.metrics.sup3:At=y.metrics.sup2;const tn=.5/ea/y.scalingFactor;let fn=null;if(Ce&&ve){Fe=Math.max(Fe,At,ve.depth+.25*y.metrics.xHeight),nt=Math.max(nt,y.metrics.sub2);const Ar=y.metrics.defaultRuleThickness;if(Fe-ve.depth-(Ce.height-nt)<4*Ar){nt=4*Ar-(Fe-ve.depth)+Ce.height;const Cr=.8*y.metrics.xHeight-(Fe-ve.depth);Cr>0&&(Fe+=Cr,nt-=Cr)}const hi=this.isExtensibleSymbol&&ee.italic?-ee.italic:0;fn=new $a({individualShift:[{box:Ce,shift:nt,marginLeft:hi},{box:ve,shift:-Fe}]}).wrap(y)}else Ce&&!ve?(nt=Math.max(nt,y.metrics.sub1,Ce.height-.8*Ea),fn=new $a({shift:nt,children:[{box:Ce,marginRight:tn,marginLeft:this.isCharacterBox()?-ee.italic:0}]})):!Ce&&ve&&(Fe=Math.max(Fe,At,ve.depth+.25*Ea),fn=new $a({shift:-Fe,children:[{box:ve,marginRight:tn}]}));return new ei([ee,new ei(fn,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?Eu.createBox(new ya({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ee=this.subscript?Eu.createBox(new ya({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ee?b.base.wrap(y):Rs(y,me(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,ae,se;const ve=(E=this.value)!=null?E:this.body,Ce=(ee=b==null?void 0:b.boxType)!=null?ee:ol(this.type);let De=(ae=b==null?void 0:b.classes)!=null?ae:"";this.mode==="text"&&(De+=" ML__text");const Fe=typeof ve=="string"||ve===void 0?new ei(ve!=null?ve:null,{type:Ce,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:me(we({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:De}):(se=Eu.createBox(y,ve,{type:Ce,classes:De}))!=null?se:new ei(null);return y.isTight&&(Fe.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(Fe.italic=0),Fe.right=Fe.italic,this.bind(y,Fe),this.caret&&!this.superscript&&!this.subscript&&(Fe.caret=this.caret),Fe}isDigit(){var y;return this.type==="mord"&&this.value?/^[\d,\.]$/.test(this.value):this.type==="group"&&((y=this.body)==null?void 0:y.length)===2?this.body[0].type==="first"&&this.body[1].value===",":!1}asDigit(){var y;return this.type==="mord"&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:this.type==="group"&&((y=this.body)==null?void 0:y.length)===2&&this.body[0].type==="first"&&this.body[1].value===","?".":""}};function kl(a){let y;const b=[];let E=[];for(const ee of a)if(!y&&!ee.style)E.push(ee);else{const ae=ee.computedStyle;y&&ae.color===y.color&&ae.backgroundColor===y.backgroundColor&&ae.fontSize===y.fontSize?E.push(ee):(E.length>0&&b.push(E),E=[ee],y=ae)}return E.length>0&&b.push(E),b}function lc(a,y,b){var E,ee,ae,se,ve;if(!y||y.length===0)return null;const Ce=new ya({parent:a},b.style),De=!((E=Ce.atomIdsSettings)!=null&&E.groupNumbers);let Fe=[];if(y.length===1){const At=y[0],tn=At.render(Ce);tn&&(De&&At.isSelected&&tn.selected(!0),Fe=[tn])}else{let At="",tn=!0;for(const fn of y){(ee=Ce.atomIdsSettings)!=null&&ee.groupNumbers&&At&&(tn&&fn.isDigit()||!tn&&Ou(fn))&&(Ce.atomIdsSettings.overrideID=At);const Ar=fn.render(Ce);Ce.atomIdsSettings&&(Ce.atomIdsSettings.overrideID=void 0),Ar&&((ae=Ce.atomIdsSettings)!=null&&ae.groupNumbers&&((fn.isDigit()||Ou(fn))&&(!At||tn!==fn.isDigit())&&(tn=fn.isDigit(),At=(se=fn.id)!=null?se:""),At&&(!(fn.isDigit()||Ou(fn))||!fn.hasEmptyBranch("superscript")||!fn.hasEmptyBranch("subscript"))&&(At="")),De&&fn.isSelected&&Ar.selected(!0),Fe.push(Ar))}}if(Fe.length===0)return null;const nt=new ei(Fe,me(we({isTight:Ce.isTight},b),{type:(ve=b.type)!=null?ve:"lift"}));return nt.isSelected=Fe.every(At=>At.isSelected),nt.wrap(Ce)}function Ou(a){return a.mode==="text"}function id(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof Nr?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var cc=class A0 extends Nr{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 A0(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:Hn("text",this.value.codePointAt(0))}};function hu(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E<b&&Dd(a.ranges[E],y.ranges[E])==="equal";)E++;return E===b?"equal":"different"}}return"different"}function Dd(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function Gs(a){let y=1/0,b=-1/0;for(const E of a.ranges)y=Math.min(y,E[0],E[1]),b=Math.max(b,E[0],E[1]);return[y,b]}function Zl(a){return typeof a=="number"&&!Number.isNaN(a)}function pu(a){return Array.isArray(a)&&a.length===2}function Nu(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function Bd(a,y){const b=a.at(y);let E;if(b){E=b.mode;let ee=b.parent;for(;!E&ⅇ)ee&&(E=ee.mode),ee=ee.parent}return E}function Id(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,ae=!1,se=!1,ve=!1,Ce=!1,De=!1,Fe=!1,nt=!1,At=!1,tn=!1,fn=!1,Ar=!1,hi=!1,Cr=a[0],$r=0;for(;Cr!=null&&Cr.type&&/^(subsup|placeholder)$/.test(Cr.type);)$r+=1,Cr=a[$r];return b=!Cr||Cr.type==="first",Cr&&(Ar=Cr.mode==="text",E=!Ar&&Cr.type==="mord"&&pe.test(Cr.value),ee=!Ar&&Cr.type==="mord"&&/\d+$/.test(Cr.value),ae=!Ar&&Cr.isFunction,se=Cr.type==="genfrac",ve=Cr.type==="surd",Ce=Cr.type==="mbin",De=Cr.type==="mrel",Fe=Cr.type==="mop"||Cr.type==="operator"||Cr.type==="extensible-symbol",nt=Cr.type==="mpunct"||Cr.type==="minner",At=Cr.type==="array",tn=Cr.type==="mopen",fn=Cr.type==="mclose"||Cr.type==="leftright",hi=Cr.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&E||y.after.includes("digit")&&ee||y.after.includes("function")&&ae||y.after.includes("frac")&&se||y.after.includes("surd")&&ve||y.after.includes("binop")&&Ce||y.after.includes("relop")&&De||y.after.includes("operator")&&Fe||y.after.includes("punct")&&nt||y.after.includes("array")&&At||y.after.includes("openfence")&&tn||y.after.includes("closefence")&&fn||y.after.includes("text")&&Ar||y.after.includes("space")&&hi?y.value:""}function Pu(a,y,b){return b?Id(a,b[y]):""}var mu={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 Gc(a,y){var b;let E=(b=y==null?void 0:y.format)!=null?b:"auto";return E==="auto"&&([E,a]=Td(a)),E==="ascii-math"?(a=a.replace(/\u2061/gu,""),a=a.replace(/\u3016/gu,"{"),a=a.replace(/\u3017/gu,"}"),a=a.replace(/([^\\])sinx/g,"$1\\sin x"),a=a.replace(/([^\\])cosx/g,"$1\\cos x "),a=a.replace(/\u2013/g,"-"),["ascii-math",bl(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function bl(a,y){var b,E,ee;if(!a)return"";let ae=!1,se;const ve=(b=y.inlineShortcuts)!=null?b:mu;if(!ae&&(a.startsWith("^")||a.startsWith("_"))&&(se=pc(a.slice(1),{inlineShortcuts:ve,noWrap:!0}),a=a[0]+"{"+se.match+"}",a+=bl(se.rest,y),ae=!0),ae||(se=a.match(/^(sqrt|\u221A)(.*)/),se&&(se=pc(se[2],{inlineShortcuts:ve,noWrap:!0}),a="\\sqrt{"+((E=se.match)!=null?E:"\\placeholder{}")+"}",a+=bl(se.rest,y),ae=!0)),ae||(se=a.match(/^(\\cbrt|\u221B)(.*)/),se&&(se=pc(se[2],{inlineShortcuts:ve,noWrap:!0}),a="\\sqrt[3]{"+((ee=se.match)!=null?ee:"\\placeholder{}")+"}",a+=bl(se.rest,y),ae=!0)),ae||(se=a.match(/^abs(.*)/),se&&(se=pc(se[1],{inlineShortcuts:ve,noWrap:!0}),a="\\left|"+se.match+"\\right|",a+=bl(se.rest,y),ae=!0)),ae||(se=a.match(/^["”“](.*?)["”“](.*)/),se&&(a="\\text{"+se[1]+"}",a+=bl(se[2],y),ae=!0)),ae||(se=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),se&&(a=ad(se[1],ve),a+=bl(se[2],y),ae=!0)),!ae&&/^([fgh])[^a-zA-Z]/.test(a)&&(se=pc(a.slice(1),{inlineShortcuts:ve,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+se.match+"\\right)":a[0]+se.match,a+=bl(se.rest,y),ae=!0),ae||(se=a.match(/^([a-zA-Z]+)(.*)/),se&&(a=ad(se[1],ve),a+=bl(se[2],y),ae=!0)),!ae)if(se=pc(a,{inlineShortcuts:ve,noWrap:!0}),se.match&&se.rest[0]==="/"){const Ce=pc(se.rest.slice(1),{inlineShortcuts:ve,noWrap:!0});Ce.match&&(a="\\frac{"+se.match+"}{"+Ce.match+"}"+bl(Ce.rest,y)),ae=!0}else se.match&&(a=a.startsWith("(")?"\\left("+se.match+"\\right)"+bl(se.rest,y):se.match+bl(se.rest,y),ae=!0);return ae||(se=a.match(/^(\s+)(.*)$/),se&&(a=" "+bl(se[2],y),ae=!0)),a}function pc(a,y){let b="";a=a.trim();let E=a,ee=a.charAt(0),ae={"(":")","{":"}","[":"]"}[ee];if(ae){let se=1,ve=1;for(;ve<a.length&&se>0;)a[ve]===ee&&se++,a[ve]===ae&&se--,ve++;se===0?(y.noWrap&&ee==="("?b=bl(a.substring(1,ve-1),y):(ee==="{"&&ae==="}"&&(ee="\\{",ae="\\}"),b="\\left"+ee+bl(a.substring(1,ve-1),y)+"\\right"+ae),E=a.slice(Math.max(0,ve))):(b=a.substring(1,ve),E="")}else{let se=a.match(/^([a-zA-Z]+)/);if(se){let ve=Pu(null,a,y.inlineShortcuts);if(ve)return ve=ve.replace("_{#?}",""),ve=ve.replace("^{#?}",""),{match:ve,rest:a.slice(ve.length)}}if(se=a.match(/^([a-zA-Z])/),se)return{match:se[1],rest:a.slice(1)};if(se=a.match(/^(-)?\d+(\.\d*)?/),se)return{match:se[0],rest:a.slice(se[0].length)};/^\\(left|right)/.test(a)||(se=a.match(/^(\\[a-zA-Z]+)/),se&&(E=a.slice(se[1].length),b=se[1]))}return{match:b,rest:E}}function ad(a,y){let b=Pu(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var od=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Mc(a){const y=a.trim();for(const b of od)if(y.startsWith(b[0])&&y.endsWith(b[1]))return[!0,y.substring(b[0].length,y.length-b[1].length)];return[!1,a]}function Td(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=Mc(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 gu="$$",Ru="$$",sd=(a,y,b)=>(od.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${gu} ${y} ${Ru}`),y),Fu=class uh{constructor(y){uh._modes[y]=this}static onPaste(y,b,E){var ee;if(!b.contentEditable&&b.userSelect==="none")return b.model.announce("plonk"),!1;if(typeof E=="string"){const se=new DataTransfer;se.setData("text/plain",E),E=se}const ae=new ClipboardEvent("paste",{clipboardData:E,cancelable:!0});return(ee=b.host)!=null&&ee.dispatchEvent(ae)?uh._modes[y].onPaste(b,E):!1}static copyToClipboard(y,b){if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const E=y.model,ee=E.selectionIsCollapsed?[0,E.lastOffset]:Gs(E.selection),ae=E.getValue(ee,b);navigator.clipboard.writeText(ae).then(()=>{},()=>y.model.announce("plonk"))}static onCopy(y,b){var E;if(!b.clipboardData)return;if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const ee=y.model,ae=ee.selectionIsCollapsed?[0,ee.lastOffset]:Gs(ee.selection);let se=ee.getAtoms(ae);if(se.every(ve=>ve.mode==="text"||!ve.mode))b.clipboardData.setData("text/plain",se.filter(ve=>ve instanceof cc).map(ve=>ve.value).join(""));else if(se.every(ve=>ve.mode==="latex"))b.clipboardData.setData("text/plain",ee.getAtoms(ae,{includeChildren:!0}).map(ve=>{var Ce;return(Ce=ve.value)!=null?Ce:""}).join(""));else{let ve;se.length===1&&se[0].verbatimLatex!==void 0?ve=se[0].verbatimLatex:ve=ee.getValue(ae,"latex-expanded"),b.clipboardData.setData("application/x-latex",ve);try{b.clipboardData.setData("text/plain",y.options.onExport(y,ve,ae))}catch(Ce){}if(se.length===1){const Ce=se[0];(Ce.type==="root"||Ce.type==="group")&&(se=Ce.body.filter(De=>De.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(se.map(Ce=>Ce.toJson())))}catch(Ce){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const Ce=window.MathfieldElement.computeEngine;if(Ce)try{const De=Ce.jsonSerializationOptions;Ce.jsonSerializationOptions={metadata:["latex"]};const Fe=Ce.parse(ee.getValue(ae,"latex-unstyled"));Ce.jsonSerializationOptions=De;const nt=JSON.stringify(Fe.json);nt&&b.clipboardData.setData("application/json",nt)}catch(De){}}}b.preventDefault()}static insert(y,b,E={}){var ee;const ae=E.mode==="auto"?y.mode:(ee=E.mode)!=null?ee:y.mode;return uh._modes[ae].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};Fu._modes={};var Ga=Fu,Od=[{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","^"]}],zu={"\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\infty":"alt+[Digit5]","\\differentialD":"alt+d","\\partial":"shift+alt+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"shift+alt+o","\\~":"~"};function Ql(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function ac(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 mc(a){const y=ac(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function vu(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 Ku(a,y,b){if(!y)return null;const E=a.field.getBoundingClientRect(),ee=y.right-y.left,ae=y.bottom-y.top,se=Math.ceil(y.left-E.left+a.field.scrollLeft*b),ve=Math.ceil(y.top-E.top);return{left:se,right:se+ee,top:ve,bottom:ve+ae}}function yu(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 ae=yu(ee);E.left=Math.min(E.left,ae.left),E.right=Math.max(E.right,ae.right),E.top=Math.min(E.top,ae.top),E.bottom=Math.max(E.bottom,ae.bottom)}return E}function zc(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 ae=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ee=ae?yu(ae):null,a.atomBoundsCache&&(ee?a.atomBoundsCache.set(y.id,ee):a.atomBoundsCache.delete(y.id)),ee!=null?ee:null}function Nd(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 ae=a.field,se=ae.offsetWidth;let Ce=Math.floor(ae.getBoundingClientRect().width)/se;Ce=isNaN(Ce)?1:Ce;const De=Ku(a,zc(a,ee),Ce);if(De){const Fe=vu(ee);if(E.has(Fe)){const nt=E.get(Fe);E.set(Fe,{left:Math.min(nt.left,De.left),right:Math.max(nt.right,De.right),top:Math.min(nt.top,De.top),bottom:Math.max(nt.bottom,De.bottom)})}else E.set(Fe,De)}}return[...E.values()]}function Fo(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...Nd(a,E,y)),[])}function as(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function Nl(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 gc=`@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;
|
|
|
}
|
|
|
`,zo=`.ML__container {
|
|
|
min-height: auto !important;
|
|
|
--_hue: var(--hue, 212);
|
|
|
--_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_placeholder-opacity: var(--placeholder-opacity, 0.4);
|
|
|
--_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
|
|
|
}
|
|
|
.ML__sr-only {
|
|
|
position: absolute;
|
|
|
width: 1px;
|
|
|
height: 1px;
|
|
|
margin: -1px;
|
|
|
padding: 0;
|
|
|
overflow: hidden;
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
clip-path: inset(50%);
|
|
|
white-space: nowrap;
|
|
|
border: 0;
|
|
|
}
|
|
|
.ML__is-inline {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__base {
|
|
|
visibility: inherit;
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
cursor: text;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
box-sizing: content-box;
|
|
|
border: 0;
|
|
|
outline: 0;
|
|
|
vertical-align: baseline;
|
|
|
font-weight: inherit;
|
|
|
font-family: inherit;
|
|
|
font-style: inherit;
|
|
|
text-decoration: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__strut,
|
|
|
.ML__strut--bottom {
|
|
|
display: inline-block;
|
|
|
min-height: 0.5em;
|
|
|
}
|
|
|
.ML__small-delim {
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
/* Text mode */
|
|
|
.ML__text {
|
|
|
font-family: var(--_text-font-family);
|
|
|
white-space: pre;
|
|
|
}
|
|
|
/* Use cmr for 'math upright' */
|
|
|
.ML__cmr {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-style: normal;
|
|
|
}
|
|
|
.ML__mathit {
|
|
|
font-family: KaTeX_Math;
|
|
|
/* The KaTeX_Math font is italic by default, so the font-style below is only
|
|
|
useful when a fallback font is used
|
|
|
*/
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__mathbf {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
/* Lowercase greek symbols should stick to math font when \\mathbf is applied
|
|
|
to match TeX idiosyncratic behavior */
|
|
|
.lcGreek.ML__mathbf {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: normal;
|
|
|
}
|
|
|
.ML__mathbfit {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: bold;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__ams {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
/* Blackboard */
|
|
|
.ML__bb {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
.ML__cal {
|
|
|
font-family: KaTeX_Caligraphic;
|
|
|
}
|
|
|
.ML__frak {
|
|
|
font-family: KaTeX_Fraktur;
|
|
|
}
|
|
|
.ML__tt {
|
|
|
font-family: KaTeX_Typewriter;
|
|
|
}
|
|
|
.ML__script {
|
|
|
font-family: KaTeX_Script;
|
|
|
}
|
|
|
.ML__sans {
|
|
|
font-family: KaTeX_SansSerif;
|
|
|
}
|
|
|
.ML__series_ul {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_el {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_l {
|
|
|
font-weight: 200;
|
|
|
}
|
|
|
.ML__series_sl {
|
|
|
font-weight: 300;
|
|
|
}
|
|
|
.ML__series_sb {
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
.ML__bold,
|
|
|
.ML__boldsymbol {
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
.ML__series_eb {
|
|
|
font-weight: 800;
|
|
|
}
|
|
|
.ML__series_ub {
|
|
|
font-weight: 900;
|
|
|
}
|
|
|
.ML__series_uc {
|
|
|
font-stretch: ultra-condensed;
|
|
|
}
|
|
|
.ML__series_ec {
|
|
|
font-stretch: extra-condensed;
|
|
|
}
|
|
|
.ML__series_c {
|
|
|
font-stretch: condensed;
|
|
|
}
|
|
|
.ML__series_sc {
|
|
|
font-stretch: semi-condensed;
|
|
|
}
|
|
|
.ML__series_sx {
|
|
|
font-stretch: semi-expanded;
|
|
|
}
|
|
|
.ML__series_x {
|
|
|
font-stretch: expanded;
|
|
|
}
|
|
|
.ML__series_ex {
|
|
|
font-stretch: extra-expanded;
|
|
|
}
|
|
|
.ML__series_ux {
|
|
|
font-stretch: ultra-expanded;
|
|
|
}
|
|
|
.ML__it {
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__shape_ol {
|
|
|
-webkit-text-stroke: 1px black;
|
|
|
text-stroke: 1px black;
|
|
|
color: transparent;
|
|
|
}
|
|
|
.ML__shape_sc {
|
|
|
font-variant: small-caps;
|
|
|
}
|
|
|
.ML__shape_sl {
|
|
|
font-style: oblique;
|
|
|
}
|
|
|
/* First level emphasis */
|
|
|
.ML__emph {
|
|
|
color: #bc2612;
|
|
|
}
|
|
|
/* Second level emphasis */
|
|
|
.ML__emph .ML__emph {
|
|
|
color: #0c7f99;
|
|
|
}
|
|
|
.ML__highlight {
|
|
|
color: #007cb2;
|
|
|
background: #edd1b0;
|
|
|
}
|
|
|
.ML__center {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__label_padding {
|
|
|
padding: 0 0.5em;
|
|
|
}
|
|
|
.ML__frac-line {
|
|
|
width: 100%;
|
|
|
min-height: 1px;
|
|
|
}
|
|
|
.ML__frac-line:after {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: max(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
/* There's a bug since Chrome 62 where
|
|
|
sub-pixel border lines don't draw at some zoom
|
|
|
levels (110%, 90%).
|
|
|
Setting the min-height used to work around it, but that workaround
|
|
|
broke in Chrome 84 or so.
|
|
|
Setting the background (and the min-height) seems to work for now.
|
|
|
*/
|
|
|
background: currentColor;
|
|
|
box-sizing: content-box;
|
|
|
/* Vuetify sets the box-sizing to inherit
|
|
|
causes the fraction line to not draw at all sizes (see #26) */
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__sqrt-sign {
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__sqrt-line {
|
|
|
display: inline-block;
|
|
|
height: max(1px, 0.04em);
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__sqrt-line:before {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: min(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
background: currentColor;
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt-line:after {
|
|
|
border-bottom-width: 1px;
|
|
|
content: ' ';
|
|
|
display: block;
|
|
|
margin-top: -0.1em;
|
|
|
}
|
|
|
.ML__sqrt-index {
|
|
|
margin-left: 0.27777778em;
|
|
|
margin-right: -0.55555556em;
|
|
|
}
|
|
|
.ML__delim-size1 {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-size2 {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__delim-size3 {
|
|
|
font-family: KaTeX_Size3;
|
|
|
}
|
|
|
.ML__delim-size4 {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size1 > span {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size4 > span {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__accent-body > span {
|
|
|
font-family: KaTeX_Main;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__accent-vec {
|
|
|
position: relative;
|
|
|
left: 0.24em;
|
|
|
}
|
|
|
/** The markup for a LaTeX formula, either in an editable mathfield or
|
|
|
in a static display.
|
|
|
*/
|
|
|
.ML__latex {
|
|
|
display: inline-block;
|
|
|
direction: ltr;
|
|
|
text-align: left;
|
|
|
text-indent: 0;
|
|
|
text-rendering: auto;
|
|
|
font-family: KaTeX_Main, 'Times New Roman', serif;
|
|
|
font-style: normal;
|
|
|
font-size-adjust: none;
|
|
|
font-stretch: normal;
|
|
|
font-variant-caps: normal;
|
|
|
letter-spacing: normal;
|
|
|
line-height: 1.2;
|
|
|
word-wrap: normal;
|
|
|
word-spacing: normal;
|
|
|
white-space: nowrap;
|
|
|
text-shadow: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__latex .style-wrap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .mfrac {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .left-right {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist-t {
|
|
|
display: inline-table;
|
|
|
table-layout: fixed;
|
|
|
border-collapse: collapse;
|
|
|
}
|
|
|
.ML__latex .vlist-r {
|
|
|
display: table-row;
|
|
|
}
|
|
|
.ML__latex .vlist {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span {
|
|
|
display: block;
|
|
|
height: 0;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span > span {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist > span > .pstrut {
|
|
|
overflow: hidden;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__latex .vlist-t2 {
|
|
|
margin-right: -2px;
|
|
|
}
|
|
|
.ML__latex .vlist-s {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
font-size: 1px;
|
|
|
width: 2px;
|
|
|
min-width: 2px;
|
|
|
}
|
|
|
.ML__latex .msubsup {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .negativethinspace {
|
|
|
display: inline-block;
|
|
|
margin-left: -0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thinspace {
|
|
|
display: inline-block;
|
|
|
width: 0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .mediumspace {
|
|
|
display: inline-block;
|
|
|
width: 0.22222em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thickspace {
|
|
|
display: inline-block;
|
|
|
width: 0.27778em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .enspace {
|
|
|
display: inline-block;
|
|
|
width: 0.5em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .quad {
|
|
|
display: inline-block;
|
|
|
width: 1em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .qquad {
|
|
|
display: inline-block;
|
|
|
width: 2em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .llap,
|
|
|
.ML__latex .rlap {
|
|
|
width: 0;
|
|
|
position: relative;
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner,
|
|
|
.ML__latex .rlap > .inner {
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__latex .llap > .fix,
|
|
|
.ML__latex .rlap > .fix {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner {
|
|
|
right: 0;
|
|
|
}
|
|
|
.ML__latex .rlap > .inner {
|
|
|
left: 0;
|
|
|
}
|
|
|
.ML__latex .rule {
|
|
|
display: inline-block;
|
|
|
border: solid 0;
|
|
|
position: relative;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line,
|
|
|
.ML__latex .underline .underline-line {
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:before,
|
|
|
.ML__latex .underline .underline-line:before {
|
|
|
content: '';
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:after,
|
|
|
.ML__latex .underline .underline-line:after {
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: -1px;
|
|
|
}
|
|
|
.ML__latex .stretchy {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .stretchy:before,
|
|
|
.ML__latex .stretchy:after {
|
|
|
content: '';
|
|
|
}
|
|
|
.ML__latex .stretchy svg {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: inherit;
|
|
|
fill: currentColor;
|
|
|
stroke: currentColor;
|
|
|
fill-rule: nonzero;
|
|
|
fill-opacity: 1;
|
|
|
stroke-width: 1;
|
|
|
stroke-linecap: butt;
|
|
|
stroke-linejoin: miter;
|
|
|
stroke-miterlimit: 4;
|
|
|
stroke-dasharray: none;
|
|
|
stroke-dashoffset: 0;
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 25%;
|
|
|
width: 50%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-3-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-1 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .nulldelimiter {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-group {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-symbol {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .op-symbol.small-op {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__latex .op-symbol.large-op {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__latex .mtable .vertical-separator {
|
|
|
display: inline-block;
|
|
|
min-width: 1px;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .mtable .arraycolsep {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-m > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-c > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-l > .vlist-t {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-r > .vlist-t {
|
|
|
text-align: right;
|
|
|
}
|
|
|
.ML__error {
|
|
|
display: inline-block;
|
|
|
background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);
|
|
|
background-color: hsla(341, 100%, 40%, 0.1);
|
|
|
background-repeat: repeat-x;
|
|
|
background-size: 3px 3px;
|
|
|
padding-bottom: 3px;
|
|
|
background-position: 0 100%;
|
|
|
}
|
|
|
.ML__error > .ML__error {
|
|
|
background: transparent;
|
|
|
padding: 0;
|
|
|
}
|
|
|
.ML__placeholder {
|
|
|
color: var(--_placeholder-color);
|
|
|
opacity: var(--_placeholder-opacity);
|
|
|
padding-left: 0.4ex;
|
|
|
padding-right: 0.4ex;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
}
|
|
|
.ML__notation {
|
|
|
position: absolute;
|
|
|
box-sizing: border-box;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
/* This class is used to implement the \`\\mathtip\` and \`\\texttip\` commands
|
|
|
For UI elements, see \`[data-ML__tooltip]\`
|
|
|
*/
|
|
|
.ML__tooltip-container {
|
|
|
position: relative;
|
|
|
transform: scale(0);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content {
|
|
|
position: fixed;
|
|
|
display: inline-table;
|
|
|
visibility: hidden;
|
|
|
z-index: 2;
|
|
|
width: max-content;
|
|
|
max-width: 400px;
|
|
|
padding: 12px 12px;
|
|
|
border-radius: 8px;
|
|
|
background: #616161;
|
|
|
--_selection-color: #fff;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
opacity: 0;
|
|
|
transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__text {
|
|
|
white-space: normal;
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__base {
|
|
|
display: contents;
|
|
|
}
|
|
|
.ML__tooltip-container:hover .ML__tooltip-content {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
font-size: 0.75em;
|
|
|
transform: scale(1) translate(0, 3em);
|
|
|
}
|
|
|
`,ld=`#mathlive-environment-popover.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
#mathlive-environment-popover {
|
|
|
--_environment-panel-height: var(--environment-panel-height, 70px);
|
|
|
--_accent-color: var(--accent-color, #aaa);
|
|
|
--_background: var(--environment-panel-background, #fff);
|
|
|
--_button-background: var(--environment-panel-button-background, white);
|
|
|
--_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);
|
|
|
--_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);
|
|
|
--_button-text: var(--environment-panel-button-text, #e3e4e8);
|
|
|
position: absolute;
|
|
|
width: calc(var(--_environment-panel-height) * 2);
|
|
|
height: var(--_environment-panel-height);
|
|
|
border-radius: 4px;
|
|
|
border: 1.5px solid var(--_accent-color);
|
|
|
background-color: var(--_background);
|
|
|
box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));
|
|
|
pointer-events: all;
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons {
|
|
|
height: calc(var(--_environment-panel-height) * 5/4);
|
|
|
width: calc(var(--_environment-panel-height) * 5/4);
|
|
|
margin-left: calc(0px - var(--_environment-panel-height) * 0.16);
|
|
|
margin-top: calc(0px - var(--_environment-panel-height) * 0.19);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .font {
|
|
|
fill: white;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons circle {
|
|
|
fill: #7f7f7f;
|
|
|
transition: fill 300ms;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {
|
|
|
fill-opacity: 1;
|
|
|
fill: var(--_background);
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-width: 3px;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons line {
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-opacity: 0;
|
|
|
stroke-width: 40;
|
|
|
pointer-events: none;
|
|
|
transition: stroke-opacity 300ms;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls {
|
|
|
height: 100%;
|
|
|
width: 50%;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {
|
|
|
width: var(--_environment-panel-height);
|
|
|
height: var(--_environment-panel-height);
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-around;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {
|
|
|
pointer-events: all;
|
|
|
margin-top: 2px;
|
|
|
width: calc(var(--_environment-panel-height) / 3 * 28 / 24);
|
|
|
height: calc(var(--_environment-panel-height) / 3 - 2px);
|
|
|
border-radius: calc(var(--_environment-panel-height) / 25);
|
|
|
background-color: var(--_button-background);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {
|
|
|
background-color: var(--_button-background-hover);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {
|
|
|
stroke: var(--_button-text);
|
|
|
stroke-width: 2;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {
|
|
|
fill-opacity: 0;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {
|
|
|
pointer-events: none;
|
|
|
background-color: var(--_button-background-active);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {
|
|
|
stroke: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
`,cd=`/* 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;
|
|
|
}
|
|
|
`,Ac=`/* 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);*/
|
|
|
}
|
|
|
`,ud=`.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));
|
|
|
}
|
|
|
`,Yc=`:host {
|
|
|
--primary-color: #5898ff;
|
|
|
--primary-color-dimmed: #c0c0f0;
|
|
|
--primary-color-dark: var(--blue-500);
|
|
|
--primary-color-light: var(--blue-100);
|
|
|
--primary-color-reverse: #ffffff;
|
|
|
--secondary-color: #ff8a65;
|
|
|
--secondary-color-dimmed: #f0d5c5;
|
|
|
--secondary-color-dark: var(--orange-500);
|
|
|
--secondary-color-light: var(--orange-100);
|
|
|
--secondary-color-reverse: #ffffff;
|
|
|
--link-color: #5898ff;
|
|
|
--link-color-dimmed: #c5c5c5;
|
|
|
--link-color-dark: #121212;
|
|
|
--link-color-light: #e2e2e2;
|
|
|
--link-color-reverse: #ffffff;
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--neutral-100: #f5f5f5;
|
|
|
--neutral-200: #eeeeee;
|
|
|
--neutral-300: #e0e0e0;
|
|
|
--neutral-400: #bdbdbd;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #757575;
|
|
|
--neutral-700: #616161;
|
|
|
--neutral-800: #424242;
|
|
|
--neutral-900: #212121;
|
|
|
--red-25: #fff8f7;
|
|
|
--red-50: #fff1ef;
|
|
|
--red-100: #ffeae6;
|
|
|
--red-200: #ffcac1;
|
|
|
--red-300: #ffa495;
|
|
|
--red-400: #ff7865;
|
|
|
--red-500: #f21c0d;
|
|
|
--red-600: #e50018;
|
|
|
--red-700: #d30024;
|
|
|
--red-800: #bd002c;
|
|
|
--red-900: #a1002f;
|
|
|
--orange-25: #fffbf8;
|
|
|
--orange-50: #fff7f1;
|
|
|
--orange-100: #fff3ea;
|
|
|
--orange-200: #ffe1c9;
|
|
|
--orange-300: #ffcca2;
|
|
|
--orange-400: #ffb677;
|
|
|
--orange-500: #fe9310;
|
|
|
--orange-600: #f58700;
|
|
|
--orange-700: #ea7c00;
|
|
|
--orange-800: #dc6d00;
|
|
|
--orange-900: #ca5b00;
|
|
|
--brown-25: #fff8ef;
|
|
|
--brown-50: #fff1df;
|
|
|
--brown-100: #ffe9ce;
|
|
|
--brown-200: #ebcca6;
|
|
|
--brown-300: #cdaf8a;
|
|
|
--brown-400: #af936f;
|
|
|
--brown-500: #856a47;
|
|
|
--brown-600: #7f5e34;
|
|
|
--brown-700: #78511f;
|
|
|
--brown-800: #6e4200;
|
|
|
--brown-900: #593200;
|
|
|
--yellow-25: #fffdf9;
|
|
|
--yellow-50: #fffcf2;
|
|
|
--yellow-100: #fffaec;
|
|
|
--yellow-200: #fff2ce;
|
|
|
--yellow-300: #ffe8ab;
|
|
|
--yellow-400: #ffdf85;
|
|
|
--yellow-500: #ffcf33;
|
|
|
--yellow-600: #f1c000;
|
|
|
--yellow-700: #dfb200;
|
|
|
--yellow-800: #c9a000;
|
|
|
--yellow-900: #ad8a00;
|
|
|
--lime-25: #f4ffee;
|
|
|
--lime-50: #e9ffdd;
|
|
|
--lime-100: #ddffca;
|
|
|
--lime-200: #a8fb6f;
|
|
|
--lime-300: #94e659;
|
|
|
--lime-400: #80d142;
|
|
|
--lime-500: #63b215;
|
|
|
--lime-600: #45a000;
|
|
|
--lime-700: #268e00;
|
|
|
--lime-800: #007417;
|
|
|
--lime-900: #005321;
|
|
|
--green-25: #f5fff5;
|
|
|
--green-50: #ebffea;
|
|
|
--green-100: #e0ffdf;
|
|
|
--green-200: #a7ffa7;
|
|
|
--green-300: #5afa65;
|
|
|
--green-400: #45e953;
|
|
|
--green-500: #17cf36;
|
|
|
--green-600: #00b944;
|
|
|
--green-700: #00a34a;
|
|
|
--green-800: #008749;
|
|
|
--green-900: #00653e;
|
|
|
--teal-25: #f3ffff;
|
|
|
--teal-50: #e6fffe;
|
|
|
--teal-100: #d9fffe;
|
|
|
--teal-200: #8dfffe;
|
|
|
--teal-300: #57f4f4;
|
|
|
--teal-400: #43e5e5;
|
|
|
--teal-500: #17cfcf;
|
|
|
--teal-600: #00c2c0;
|
|
|
--teal-700: #00b5b1;
|
|
|
--teal-800: #00a49e;
|
|
|
--teal-900: #009087;
|
|
|
--cyan-25: #f7fcff;
|
|
|
--cyan-50: #eff8ff;
|
|
|
--cyan-100: #e7f5ff;
|
|
|
--cyan-200: #c2e6ff;
|
|
|
--cyan-300: #95d5ff;
|
|
|
--cyan-400: #61c4ff;
|
|
|
--cyan-500: #13a7ec;
|
|
|
--cyan-600: #069eda;
|
|
|
--cyan-700: #0095c9;
|
|
|
--cyan-800: #0088b2;
|
|
|
--cyan-900: #0a7897;
|
|
|
--blue-25: #f7faff;
|
|
|
--blue-50: #eef5ff;
|
|
|
--blue-100: #e5f1ff;
|
|
|
--blue-200: #bfdbff;
|
|
|
--blue-300: #92c2ff;
|
|
|
--blue-400: #63a8ff;
|
|
|
--blue-500: #0d80f2;
|
|
|
--blue-600: #0077db;
|
|
|
--blue-700: #006dc4;
|
|
|
--blue-800: #0060a7;
|
|
|
--blue-900: #005086;
|
|
|
--indigo-25: #f8f7ff;
|
|
|
--indigo-50: #f1efff;
|
|
|
--indigo-100: #eae7ff;
|
|
|
--indigo-200: #ccc3ff;
|
|
|
--indigo-300: #ac99ff;
|
|
|
--indigo-400: #916aff;
|
|
|
--indigo-500: #63c;
|
|
|
--indigo-600: #5a21b2;
|
|
|
--indigo-700: #4e0b99;
|
|
|
--indigo-800: #3b0071;
|
|
|
--indigo-900: #220040;
|
|
|
--purple-25: #fbf7ff;
|
|
|
--purple-50: #f8f0ff;
|
|
|
--purple-100: #f4e8ff;
|
|
|
--purple-200: #e4c4ff;
|
|
|
--purple-300: #d49aff;
|
|
|
--purple-400: #c36aff;
|
|
|
--purple-500: #a219e6;
|
|
|
--purple-600: #9000c4;
|
|
|
--purple-700: #7c009f;
|
|
|
--purple-800: #600073;
|
|
|
--purple-900: #3d0043;
|
|
|
--magenta-25: #fff8fb;
|
|
|
--magenta-50: #fff2f6;
|
|
|
--magenta-100: #ffebf2;
|
|
|
--magenta-200: #ffcddf;
|
|
|
--magenta-300: #ffa8cb;
|
|
|
--magenta-400: #ff7fb7;
|
|
|
--magenta-500: #eb4799;
|
|
|
--magenta-600: #da3689;
|
|
|
--magenta-700: #c82179;
|
|
|
--magenta-800: #b00065;
|
|
|
--magenta-900: #8a004c;
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--semantic-blue: var(--blue-700);
|
|
|
--semantic-red: var(--red-400);
|
|
|
--semantic-orange: var(--orange-400);
|
|
|
--semantic-green: var(--green-700);
|
|
|
--semantic-bg-blue: var(--blue-25);
|
|
|
--semantic-bg-red: var(--red-25);
|
|
|
--semantic-bg-orange: var(--orange-25);
|
|
|
--semantic-bg-green: var(--green-25);
|
|
|
--neutral-100: #121212;
|
|
|
--neutral-200: #424242;
|
|
|
--neutral-300: #616161;
|
|
|
--neutral-400: #757575;
|
|
|
--neutral-500: #9e9e9e;
|
|
|
--neutral-600: #bdbdbd;
|
|
|
--neutral-700: #e0e0e0;
|
|
|
--neutral-800: #eeeeee;
|
|
|
--neutral-900: #f5f5f5;
|
|
|
}
|
|
|
/* @media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--label-color: #fff;
|
|
|
--active-label-color: #000;
|
|
|
--menu-bg: #525252;
|
|
|
--active-bg: #5898ff;
|
|
|
--active-bg-dimmed: #5c5c5c;
|
|
|
}
|
|
|
} */
|
|
|
:host {
|
|
|
--ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
|
|
|
'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
|
|
|
'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
|
--ui-font-size: 14px;
|
|
|
--ui-line-height: 1.5;
|
|
|
--ui-letter-spacing: 0.007em;
|
|
|
--mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',
|
|
|
'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
|
|
|
--ui-layer-1: var(--neutral-100);
|
|
|
--ui-layer-2: var(--neutral-200);
|
|
|
--ui-layer-3: var(--neutral-300);
|
|
|
--ui-layer-4: var(--neutral-400);
|
|
|
--ui-layer-5: var(--neutral-500);
|
|
|
--ui-layer-6: var(--neutral-600);
|
|
|
--ui-border-color: var(--primary-color);
|
|
|
--ui-border-radius: 4px;
|
|
|
--ui-text: var(--neutral-900);
|
|
|
--ui-text-secondary: var(--neutral-700);
|
|
|
--ui-text-placeholder: var(--neutral-500);
|
|
|
--ui-text-muted: var(--neutral-300);
|
|
|
/** A field is a UI element in which a user can type data, for
|
|
|
* example an input or textarea element.
|
|
|
*/
|
|
|
--ui-field-bg: var(--neutral-100);
|
|
|
--ui-field-bg-hover: var(--neutral-100);
|
|
|
--ui-field-bg-disabled: var(--neutral-300);
|
|
|
--ui-field-bg-invalid: var(--red-100);
|
|
|
--ui-field-bg-focus: var(--neutral-100);
|
|
|
--ui-field-border: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-hover: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-disabled: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-invalid: 0.5px solid var(--border-color);
|
|
|
--ui-field-border-focus: 0.5px solid var(--border-color);
|
|
|
--ui-menu-bg: var(--neutral-100);
|
|
|
--ui-menu-text: var(--neutral-900);
|
|
|
--ui-menu-bg-hover: var(--neutral-200);
|
|
|
--ui-menu-text-hover: var(--neutral-900);
|
|
|
/** The \`active\` state is used for the state of menu items
|
|
|
* when they are selected.
|
|
|
*/
|
|
|
--ui-menu-bg-active: var(--primary-color);
|
|
|
--ui-menu-text-active: var(--primary-color-reverse);
|
|
|
/** The \`active-muted\` set is used for the state of
|
|
|
* submenus when they are open.
|
|
|
*/
|
|
|
--ui-menu-bg-active-muted: var(--neutral-300);
|
|
|
--ui-menu-text-active-muted: var(--neutral-900);
|
|
|
/* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),
|
|
|
0 2px 6px 2px rgba(60, 64, 67, 0.149); */
|
|
|
--ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
|
|
|
--ui-menu-divider: 0.5px solid #c7c7c7;
|
|
|
/* var(--neutral-300); */
|
|
|
--ui-menu-z-index: 10000;
|
|
|
--page-bg: var(--neutral-100);
|
|
|
--content-bg: var(--neutral-200);
|
|
|
}
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
:host {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
}
|
|
|
:host([theme='dark']) {
|
|
|
--ui-menu-bg: var(--neutral-200);
|
|
|
}
|
|
|
/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font.
|
|
|
Noto is a Linux/Android font.
|
|
|
*/
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',
|
|
|
'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',
|
|
|
'Microsoft YaHei New', 'Microsoft Yahei', '\u5FAE\u8F6F\u96C5\u9ED1', SimSun, '\u5B8B\u4F53',
|
|
|
STXihei, '\u534E\u6587\u7EC6\u9ED1', sans-serif;
|
|
|
}
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans',
|
|
|
'Microsoft JhengHei UI', 'Microsoft JhengHei', '\u5FAE\u8EDF\u6B63\u9ED1\u9AD4', '\u65B0\u7D30\u660E\u9AD4',
|
|
|
'PMingLiU', '\u7D30\u660E\u9AD4', 'MingLiU', sans-serif;
|
|
|
}
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Hiragino Sans',
|
|
|
'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',
|
|
|
'\u6E38\u30B4\u30B7\u30C3\u30AF', '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo,
|
|
|
'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif;
|
|
|
}
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Malgun Gothic', '\uB9D1\uC740 \uACE0\uB515', 'Apple SD Gothic Neo',
|
|
|
'\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo', 'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
|
|
|
'Noto Sans', 'Apple SD Gothic Neo', '\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo',
|
|
|
'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
|
|
|
}
|
|
|
:lang(zh-cn),
|
|
|
:lang(zh-sg),
|
|
|
:lang(zh-my),
|
|
|
:lang(zh),
|
|
|
:lang(zh-tw),
|
|
|
:lang(zh-hk),
|
|
|
:lang(zh-mo),
|
|
|
:lang(ja),
|
|
|
:lang(ja-jp),
|
|
|
:lang(ja-jp-mac),
|
|
|
:lang(ko),
|
|
|
:lang(ko-kr),
|
|
|
:lang(ko-kr-std),
|
|
|
:lang(ko-kr-apple) {
|
|
|
--ui-font-size: 1rem;
|
|
|
--ui-line-height: 1.7;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
:dir(rtl) {
|
|
|
--ui-line-height: auto;
|
|
|
--ui-letter-spacing: 0;
|
|
|
}
|
|
|
`,dh=`.ui-menu *,
|
|
|
.ui-menu ::before,
|
|
|
.ui-menu ::after {
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ui-menu {
|
|
|
display: none;
|
|
|
color-scheme: light dark;
|
|
|
-webkit-user-select: none;
|
|
|
/* Important: Safari iOS doesn't respect user-select */
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
-webkit-touch-callout: none;
|
|
|
-webkit-tap-highlight-color: rgba(0 0 0 0);
|
|
|
--active-label-color: #fff;
|
|
|
/* ui-menu-text-active */
|
|
|
--label-color: #121212;
|
|
|
/* ui-menu-text */
|
|
|
--menu-bg: #e2e2e2;
|
|
|
/* ui-menu-background */
|
|
|
--active-bg: #5898ff;
|
|
|
/* ui-menu-background-active */
|
|
|
--active-bg-dimmed: #c5c5c5;
|
|
|
/* ui-menu-background-active-muted */
|
|
|
}
|
|
|
/** Use the :where pseudo selector to make the specificity of the
|
|
|
* selector 0, so that it can be overridden by the user.
|
|
|
*/
|
|
|
:where(.ui-menu-container) {
|
|
|
position: absolute;
|
|
|
overflow: visible;
|
|
|
width: auto;
|
|
|
height: auto;
|
|
|
z-index: 10000;
|
|
|
border-radius: 8px;
|
|
|
background: var(--ui-menu-bg);
|
|
|
box-shadow: var(--ui-menu-shadow);
|
|
|
list-style: none;
|
|
|
padding: 6px 0 6px 0;
|
|
|
margin: 0;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
color: var(--ui-menu-text);
|
|
|
font-weight: normal;
|
|
|
font-style: normal;
|
|
|
text-shadow: none;
|
|
|
text-transform: none;
|
|
|
letter-spacing: 0;
|
|
|
outline: none;
|
|
|
opacity: 1;
|
|
|
/* The [popover] elements have a 1px solid black border. Ugh. */
|
|
|
border: none;
|
|
|
width: fit-content;
|
|
|
height: fit-content;
|
|
|
}
|
|
|
:where(.ui-menu-container > li) {
|
|
|
display: flex;
|
|
|
flex-flow: row;
|
|
|
align-items: center;
|
|
|
padding: 1px 7px 1px 7px;
|
|
|
margin-top: 0;
|
|
|
margin-left: 6px;
|
|
|
margin-right: 6px;
|
|
|
border-radius: 4px;
|
|
|
white-space: nowrap;
|
|
|
position: relative;
|
|
|
outline: none;
|
|
|
fill: currentColor;
|
|
|
user-select: none;
|
|
|
cursor: default;
|
|
|
text-align: left;
|
|
|
color: inherit;
|
|
|
font-family: var(--ui-font-family);
|
|
|
font-size: var(--ui-font-size);
|
|
|
line-height: var(--ui-line-height);
|
|
|
letter-spacing: var(--ui-letter-spacing);
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label) {
|
|
|
appearance: none;
|
|
|
background: none;
|
|
|
outline: none;
|
|
|
width: 100%;
|
|
|
margin: 0;
|
|
|
padding: 1px 2px 1px 1px;
|
|
|
overflow: visible;
|
|
|
border: 1px solid transparent;
|
|
|
white-space: nowrap;
|
|
|
text-align: start;
|
|
|
}
|
|
|
:where(.ui-menu-container > li:has(.heading)) {
|
|
|
margin-top: 0.5em;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.heading) {
|
|
|
font-weight: bold;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.indent > .label) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li > .label.indent) {
|
|
|
margin-inline-start: 12px;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[role='divider']) {
|
|
|
border-bottom: 1px solid var(--ui-menu-divider);
|
|
|
border-radius: 0;
|
|
|
padding: 0;
|
|
|
margin-left: 15px;
|
|
|
margin-right: 15px;
|
|
|
padding-top: 5px;
|
|
|
margin-bottom: 5px;
|
|
|
width: calc(100% - 30px);
|
|
|
/** 100% - (margin-left + margin-right) */
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-disabled='true']) {
|
|
|
opacity: 0.5;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active) {
|
|
|
background: var(--ui-menu-bg-active);
|
|
|
background: -apple-system-control-accent;
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active.is-submenu-open) {
|
|
|
background: var(--ui-menu-bg-active-muted);
|
|
|
color: inherit;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {
|
|
|
padding-inline-end: 0;
|
|
|
}
|
|
|
:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {
|
|
|
color: var(--ui-menu-text-active);
|
|
|
}
|
|
|
/** Keyboard shortcut */
|
|
|
:where(.ui-menu-container > li > kbd) {
|
|
|
font-family: var(--ui-font-family);
|
|
|
margin-inline-start: 12px;
|
|
|
opacity: 0.4;
|
|
|
}
|
|
|
:where(.ui-menu-container > li.active > kbd) {
|
|
|
opacity: 0.85;
|
|
|
}
|
|
|
.ui-trailing-chevron {
|
|
|
display: flex;
|
|
|
margin-inline-start: 24px;
|
|
|
width: 10px;
|
|
|
height: 10px;
|
|
|
margin-bottom: 4px;
|
|
|
}
|
|
|
.ui-trailing-chevron:dir(rtl) {
|
|
|
transform: scaleX(-1);
|
|
|
}
|
|
|
.ui-checkmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
.ui-mixedmark {
|
|
|
display: flex;
|
|
|
margin-inline-end: -11px;
|
|
|
margin-inline-start: -4px;
|
|
|
margin-top: 2px;
|
|
|
width: 16px;
|
|
|
height: 16px;
|
|
|
}
|
|
|
`,gs;function bu(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=zo;break;case"mathfield":y=gc;break;case"environment-popover":y=ld;break;case"suggestion-popover":y=cd;break;case"keystroke-caption":y=Ac;break;case"virtual-keyboard":y=ud;break;case"ui":y=Yc;break;case"menu":y=dh;break;default:debugger}return y}function Hu(a){return gs||(gs={}),gs[a]||(gs[a]=new CSSStyleSheet,gs[a].replaceSync(bu(a))),gs[a]}var Kc;function uc(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(bu(a))),window.document.head.appendChild(b);return}if(Kc||(Kc={}),((y=Kc[a])!=null?y:0)!==0)Kc[a]+=1;else{const b=Hu(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],Kc[a]=1}}function x(a){if("adoptedStyleSheets"in document&&Kc!=null&&Kc[a]&&(Kc[a]-=1,Kc[a]<=0)){const y=gs[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class k0 extends Nr{constructor(y){var b;super(me(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 k0(y)}toJson(){return me(we({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new ya({parent:y,mathstyle:"cramp"},this.style),ee=(b=Nr.createBox(E,this.body))!=null?b:new ei("\u25A2",{style:this.style});let ae=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(ae=ee.skew);let se=Math.min(ee.height,Ea),ve;if(this.svgAccent)ve=yl(this.svgAccent),se=E.metrics.bigOpSpacing1-se;else if(this.accent){const De=new ei(this.accent,{fontFamily:"Main-Regular"});De.italic=0;const Fe=this.accent===8407?" ML__accent-vec":"";ve=new ei(new ei(De),{classes:"ML__accent-body"+Fe})}ve=new $a({shift:0,children:[{box:new ei(ee)},-se,{box:ve,marginLeft:ee.left+2*ae,classes:["ML__center"]}]});const Ce=new ei(ve,{type:"lift"});return this.caret&&(Ce.caret=this.caret),this.bind(E,Ce.wrap(E)),this.attachSupsub(E,{base:Ce})}},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 oe(a){var y;return(y={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"\u2223":8739,"\u2225":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[a])!=null?y:a.codePointAt(0)}function he(a,y,b,E){var ee;const se=new ei(oe(a),{fontFamily:"Main-Regular",isSelected:E.isSelected,classes:"ML__small-delim "+((ee=E.classes)!=null?ee:"")}).wrap(y);return b&&se.setTop((1-y.scalingFactor)*ji),se}function ke(a,y,b,E,ee){var ae,se;const ve=new ya({parent:E,mathstyle:"textstyle"},ee==null?void 0:ee.style),Ce=new ei(oe(a),{fontFamily:`Size${y}-Regular`,isSelected:ee.isSelected,classes:((ae=ee.classes)!=null?ae:"")+` ML__delim-size${y}`,type:(se=ee.type)!=null?se:"ignore"}).wrap(ve);return b&&Ce.setTop((1-ve.scalingFactor)*ji),Ce}function ze(a,y,b,E,ee){var ae;let se,ve,Ce,De;se=Ce=De=oe(a),ve=null;let Fe="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?Ce=se=De=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?Ce=se=De=8741:a==="\\uparrow"?Ce=De=9168:a==="\\Uparrow"?Ce=De=8214:a==="\\downarrow"?se=Ce=9168:a==="\\Downarrow"?se=Ce=8214:a==="\\updownarrow"?(se=8593,Ce=9168,De=8595):a==="\\Updownarrow"?(se=8657,Ce=8214,De=8659):a==="["||a==="\\lbrack"?(se=9121,Ce=9122,De=9123,Fe="Size4-Regular"):a==="]"||a==="\\rbrack"?(se=9124,Ce=9125,De=9126,Fe="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(Ce=se=9122,De=9123,Fe="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(se=9121,Ce=De=9122,Fe="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(Ce=se=9125,De=9126,Fe="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(se=9124,Ce=De=9125,Fe="Size4-Regular"):a==="("||a==="\\lparen"?(se=9115,Ce=9116,De=9117,Fe="Size4-Regular"):a===")"||a==="\\rparen"?(se=9118,Ce=9119,De=9120,Fe="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(se=9127,ve=9128,De=9129,Ce=9130,Fe="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(se=9131,ve=9132,De=9133,Ce=9130,Fe="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(se=9127,De=9129,Ce=9130,Fe="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(se=9131,De=9133,Ce=9130,Fe="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(se=9127,De=9133,Ce=9130,Fe="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(se=9131,De=9129,Ce=9130,Fe="Size4-Regular"):a==="\\surd"?(se=57345,De=9143,Ce=57344,Fe="Size4-Regular"):a==="\\ulcorner"?(se=9484,Ce=De=32):a==="\\urcorner"?(se=9488,Ce=De=32):a==="\\llcorner"?(De=9492,Ce=se=32):a==="\\lrcorner"&&(se=9496,Ce=se=32);const nt=gi(se,Fe),At=nt.height+nt.depth,tn=gi(Ce,Fe),fn=tn.height+tn.depth,Ar=gi(De,Fe),hi=Ar.height+Ar.depth;let Cr=0,$r=1;if(ve!==null){const Il=gi(ve,Fe);Cr=Il.height+Il.depth,$r=2}const yi=At+hi+Cr,ri=Math.max(0,Math.ceil((y-yi)/($r*fn))),ua=yi+ri*$r*fn;let Ta=ji;b&&(Ta=Ta*E.scalingFactor);const xa=ua/2-Ta,Ko=.008,ps=[];ps.push({box:new ei(De,{fontFamily:Fe})}),ps.push(-Ko);const Ei=new ei(Ce,{fontFamily:Fe});if(ve===null)for(let Il=0;Il<ri;Il++)ps.push({box:Ei});else{for(let Il=0;Il<ri;Il++)ps.push({box:Ei});ps.push(-Ko),ps.push({box:new ei(ve,{fontFamily:Fe})}),ps.push(-Ko);for(let Il=0;Il<ri;Il++)ps.push({box:Ei})}ps.push(-Ko),ps.push({box:new ei(se,{fontFamily:Fe})});let bc="";Fe==="Size1-Regular"?bc=" delim-size1":Fe==="Size4-Regular"&&(bc=" delim-size4");const nu=new $a({bottom:xa,children:ps},{classes:bc});return new ei(nu,me(we({},ee!=null?ee:{}),{classes:((ae=ee==null?void 0:ee.classes)!=null?ae:"")+" 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"]),qt=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),gn=[0,1.2,1.8,2.4,3];function pr(a,y,b,E){return a===void 0||a==="."?sa(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),_e.has(a)||qt.has(a)?ke(a,y,!1,b,E):et.has(a)?ze(a,gn[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var rr=[{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}],Vr=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],ai=[{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 wi(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function Hi(a,y,b,E){const ee={"-4":0,"-3":1,0:2}[E.mathstyle.sizeDelta];for(let ae=ee;ae<b.length&&b[ae].type!=="stack";ae++){const se=gi(a,wi(b[ae]));if(se.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let ve=se.height+se.depth;if(b[ae].type==="small"&&(b[ae].mathstyle==="scriptscriptstyle"?ve*=Math.max(Fi[Math.max(1,E.size-2)],E.minFontScale):b[ae].mathstyle==="scriptstyle"&&(ve*=Math.max(Fi[Math.max(1,E.size-1)],E.minFontScale))),ve>y)return b[ae]}return b[b.length-1]}function ta(a,y,b,E,ee,ae){if(!y||y.length===0||y===".")return sa(ee);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let se;qt.has(y)?se=rr:_e.has(y)?se=ai:se=Vr;const ve=Hi(oe(y),b,se,ee),Ce=new ya({parent:ee,mathstyle:ve.mathstyle},ae==null?void 0:ae.style);return ve.type==="small"?he(y,Ce,E,me(we({},ae),{type:a})):ve.type==="large"?ke(y,ve.size,E,Ce,me(we({},ae),{type:a})):(console.assert(ve.type==="stack"),ze(y,b,E,Ce,me(we({},ae),{type:a})))}function Ti(a,y,b,E,ee,ae){if(y===".")return sa(ee,ae==null?void 0:ae.classes);const se=ji*ee.scalingFactor,ve=901,Ce=5/ea,De=Math.max(b-se,E+se),Fe=Math.max(De/500*ve,2*De-Ce);return ta(a,y,Fe,!0,ee,ae)}function sa(a,y){const b=new ei(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new ya({parent:a,mathstyle:"textstyle"}))}var Pa=class L0 extends Nr{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 L0(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{}"}},Fa=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],Mo=["cases","dcases","rcases"],vs=["align","align*","aligned","gather","gathered","split"],xl=["array","subequations","eqnarray"];function Fs(a){return xl.concat(vs).concat(Mo).concat(Fa).includes(a)}function jl(a){return Fa.includes(a)}function Ul(a){return Mo.includes(a)}function ll(a){return vs.includes(a)}function Vl(a,y,b){let E=0;for(const De of b)"align"in De&&(E+=1);let ee=0;const ae=[];for(const De of y){let Fe=0;for(ee=Math.max(ee,Math.min(De.length,E));Fe<De.length;){const nt=[],At=Math.min(De.length,Fe+E);for(;Fe<At;){const tn=De[Fe];tn.length===0?nt.push([new Nr({type:"first",mode:a.mode})]):tn[0].type!=="first"?nt.push([new Nr({type:"first",mode:a.mode}),...tn]):(console.assert(!tn.slice(1).some(fn=>fn.type==="first")),nt.push(tn)),Fe+=1}ae.push(nt)}}ae.length>0&&ae[ae.length-1].length===1&&ae[ae.length-1][0].length===1&&ae[ae.length-1][0][0].type==="first"&&ae.pop();const se=[];for(const De of ae){if(De.length!==ee)for(let Fe=De.length;Fe<ee;Fe++)De.push([new Nr({type:"first",mode:a.mode}),new Pa]);se.push(De)}let ve=0,Ce=0;for(const De of se){Ce=0;for(const Fe of De){for(const nt of Fe)nt.parent=a,nt.parentBranch=[ve,Ce];Ce+=1}ve+=1}return a.isDirty=!0,se}var to=class D0 extends Nr{constructor(y,b,E,ee={}){var ae;super({type:"array"}),this.environmentName=y,this.rowGaps=E,ee.mathstyleName&&(this.mathstyleName=ee.mathstyleName),ee.columns&&(ee.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=ee.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=Vl(this,b,this.colFormat),ee.leftDelim&&(this.leftDelim=ee.leftDelim),ee.rightDelim&&(this.rightDelim=ee.rightDelim),ee.arraycolsep!==void 0&&(this.arraycolsep=ee.arraycolsep),this.colSeparationType=ee.colSeparationType,ee.arraystretch!==void 0&&(this.arraystretch=ee.arraystretch),this.minColumns=(ae=ee.minColumns)!=null?ae:1}static fromJson(y){return new D0(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=me(we({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(b=>b.map(E=>E.map(ee=>ee.toJson()))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return this.arraystretch!==void 0&&(y.arraystretch=this.arraystretch),this.arraycolsep!==void 0&&(y.arraycolsep=this.arraycolsep),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}branch(y){var b;if(Vs(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return Vs(y)?(this.isDirty=!0,(b=this.branch(y))!=null?b:[]):[]}get rowCount(){return this.array.length}get colCount(){return this.array[0].length}get maxColumns(){return this.colFormat.filter(y=>!!y.align).length}removeBranch(y){if(jo(y))return super.removeBranch(y);const b=this.branch(y);return this.array[y[0]][y[1]]=void 0,b.forEach(E=>{E.parent=void 0,E.parentBranch=void 0}),console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}get hasChildren(){return this.children.length>0}get children(){const y=[];for(const b of this.array)for(const E of b)if(E)for(const ee of E)y.push(...ee.children),y.push(ee);return[...y,...super.children]}render(y){var b,E,ee,ae,se,ve;const Ce=new ya({parent:y,mathstyle:this.mathstyleName},this.style),De=Ce.getRegisterAsEm("arrayrulewidth"),Fe=Ce.getRegisterAsEm("arraycolsep"),nt=Ce.getRegisterAsEm("doublerulesep"),At=(E=(b=this.arraystretch)!=null?b:Ce.getRegisterAsNumber("arraystretch"))!=null?E:1;let tn=typeof this.arraycolsep=="number"?this.arraycolsep:Fe;this.colSeparationType==="small"&&(tn=.2778*(new ya({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const fn=At*$i,Ar=.7*fn,hi=.3*fn;let Cr=0;const $r=[];let yi=0;const ri=this.array.length;for(let bs=0;bs<ri;++bs){const nl=this.array[bs];yi=Math.max(yi,nl.length);const Tl=new ya({parent:Ce,mathstyle:this.mathstyleName},this.style);let ru=Ar/Tl.scalingFactor,iu=hi/Tl.scalingFactor;const au={cells:[],height:0,depth:0,pos:0};for(const Wc of nl){const ep=(ee=Nr.createBox(Tl,Wc,{type:"ignore"}))!=null?ee:new ei(null,{type:"ignore"});iu=Math.max(iu,ep.depth),ru=Math.max(ru,ep.height),au.cells.push(ep)}let ou=(ae=ls(this.rowGaps[bs]))!=null?ae:0;ou>0&&(ou+=hi,iu=Math.max(iu,ou),ou=0),bs<ri-1&&!jl(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(iu+=Ce.getRegisterAsEm("jot")),au.height=ru,au.depth=iu,Cr+=ru,au.pos=Cr,Cr+=iu+ou,$r.push(au)}const ua=Cr/2+ji,Ta=[];for(let bs=0;bs<yi;bs++){const nl=[];for(const Tl of $r){const ru=Tl.cells[bs];ru.depth=Tl.depth,ru.height=Tl.height,nl.push({box:ru,shift:Tl.pos-ua})}nl.length>0&&Ta.push(new $a({individualShift:nl}))}const xa=[];let Ko=!1,ps=!1,Ei=0,bc=!this.leftDelim;const{colFormat:nu}=this;for(const bs of nu){if("align"in bs&&Ei>=Ta.length)break;if("align"in bs)Ko?xa.push(zs(2*tn)):(ps||bc)&&xa.push(zs(tn)),xa.push(new ei(Ta[Ei],{classes:"col-align-"+bs.align})),Ei++,Ko=!0,ps=!1,bc=!1;else if("gap"in bs){if(typeof bs.gap=="number")xa.push(zs(bs.gap));else{const nl=Xs(y,$r,ua,bs.gap);nl&&xa.push(nl)}Ko=!1,ps=!1,bc=!1}else if("separator"in bs){const nl=new ei(null,{classes:"vertical-separator"});nl.height=Cr,nl.setStyle("height",Cr,"em"),nl.setStyle("border-right",`${De}em ${bs.separator} currentColor`),nl.setStyle("vertical-align",-(Cr-ua),"em");let Tl=0;ps?Tl=nt-De:Ko&&(Tl=tn-De),nl.left=Tl,xa.push(nl),Ko=!1,ps=!0,bc=!1}}Ko&&!this.rightDelim&&xa.push(zs(tn));const Bc=new ei(xa,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Bc.caret=this.caret),this.bind(y,Bc);const Il=Bc.height,xc=Bc.depth,sc=this.bind(y,new ei([this.bind(y,Ti("open",(se=this.leftDelim)!=null?se:".",Il,xc,Ce,{isSelected:this.isSelected})),Bc,this.bind(y,Ti("close",(ve=this.rightDelim)!=null?ve:".",Il,xc,Ce,{isSelected:this.isSelected}))],{type:"ord"}));return sc?(sc.setStyle("display","inline-block"),this.caret&&(sc.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:sc}))):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 ae=0;ae<this.array[ee].length;ae++)ae>0&&E.push(" & "),E.push(Nr.serialize(this.array[ee][ae],y));if(ee<this.array.length-1){const ae=this.rowGaps[ee];ae!=null&&ae.dimension?E.push(`\\\\[${ae.dimension} ${(b=ae.unit)!=null?b:"pt"}] `):E.push("\\\\ ")}}return this.environmentName==="lines"?E.push("}"):E.push(`\\end{${this.environmentName}}`),Wa(E)}getCell(y,b){return this.array[y][b]}setCell(y,b,E){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[y][b]!==void 0);for(const ae of this.array[y][b])ae.parent=void 0,ae.parentBranch=void 0;let ee=E;(E.length===0||E[0].type!=="first")&&(ee=[new Nr({type:"first",mode:this.mode}),...E]),this.array[y][b]=ee;for(const ae of ee)ae.parent=this,ae.parentBranch=[y,b];this.isDirty=!0}addRowBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(Ys(this));this.array.splice(y,0,b);for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const ae=this.array[E][ee];if(ae)for(const se of ae)se.parentBranch=[E,ee]}this.isDirty=!0}addRowAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(Ys(this));this.array.splice(y+1,0,b);for(let E=y+1;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const ae=this.array[E][ee];if(ae)for(const se of ae)se.parentBranch=[E,ee]}this.isDirty=!0}removeRow(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>y);const b=this.array.splice(y,1);for(const E of b)for(const ee of E)if(ee)for(const ae of ee)ae.parent=void 0,ae.parentBranch=void 0;for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const ae=this.array[E][ee];if(ae)for(const se of ae)se.parentBranch=[E,ee]}this.isDirty=!0}addColumnBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y,0,Ys(this));for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const ae of ee)ae.parentBranch=[b,E]}this.isDirty=!0}addColumnAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y+1,0,Ys(this));for(let b=0;b<this.rowCount;b++)for(let E=y+1;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const ae of ee)ae.parentBranch=[b,E]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>y);for(const b of this.array){const E=b.splice(y,1);for(const ee of E)if(ee)for(const ae of ee)ae.parent=void 0,ae.parentBranch=void 0}for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const ae of ee)ae.parentBranch=[b,E]}this.isDirty=!0}get cells(){const y=[];for(const b of this.array)for(const E of b)E&&y.push(E.filter(ee=>ee.type!=="first"));return y}};function Ys(a){const y=new Nr({type:"first",mode:a.mode});y.parent=a;const b=new Pa;return b.parent=a,[y,b]}function zs(a){const y=new ei(null,{classes:"arraycolsep"});return y.width=a,y}function Xs(a,y,b,E){if(!E)return null;const ee=[];for(const ae of y){const se=Nr.createBox(a,E,{type:"ignore"});se&&(se.depth=ae.depth,se.height=ae.height,ee.push({box:se,shift:ae.pos-b}))}return new $a({individualShift:ee}).wrap(a)}var el=class B0 extends Nr{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 B0(y)}toJson(){return me(we({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,E,ee,ae;const se=Nr.createBox(y,this.body,{type:"lift"});if(!se)return null;const ve=y.toEm((b=this.offset)!=null?b:{dimension:0});se.depth+=ve,se.setStyle("display","inline-block"),se.setStyle("position","relative"),se.setStyle("height",Math.floor(100*se.height+se.depth)/100,"em"),se.setStyle("vertical-align",-Math.floor(100*se.height)/100,"em");const Ce=new ya({parent:y},this.style),De=Ce.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),Fe=new ei(null,{classes:"ML__box"});Fe.height=se.height+De,Fe.depth=se.depth+De,Fe.setStyle("box-sizing","border-box"),Fe.setStyle("position","absolute"),Fe.setStyle("top",-De+.3,"em"),Fe.setStyle("left",0),Fe.setStyle("height",Fe.height+Fe.depth,"em"),Fe.setStyle("width","100%"),this.backgroundcolor&&Fe.setStyle("background-color",(ee=Ce.toColor(this.backgroundcolor))!=null?ee:"transparent"),this.framecolor&&Fe.setStyle("border",`${Ce.getRegisterAsEm("fboxrule",2)}em solid ${(ae=Ce.toColor(this.framecolor))!=null?ae:"black"}`),this.border&&Fe.setStyle("border",this.border);const nt=new ei([Fe,se],{type:"lift"});return nt.setStyle("display","inline-block"),nt.setStyle("position","relative"),nt.setStyle("line-height",0),nt.height=se.height+De+(ve>0?ve:0),nt.depth=se.depth+De+(ve<0?-ve:0),nt.setStyle("padding-left",De,"em"),nt.setStyle("padding-right",De,"em"),nt.setStyle("height",Math.floor(100*(se.height+se.depth+2*De+Math.abs(ve)))/100,"em"),nt.setStyle("margin-top",-De,"em"),nt.setStyle("top",Math.floor(100*(se.depth-se.height+2*De-ve))/100,"em"),nt.setStyle("vertical-align",Math.floor(100*(se.depth+2*De))/100,"em"),this.caret&&(nt.caret=this.caret),this.attachSupsub(y,{base:nt})}_serialize(y){return y.skipStyles?Wa([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},xu=class I0 extends Nr{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 I0(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new ei(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},Jl=class T0 extends Nr{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new T0(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},Ll=class O0 extends Nr{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 O0(y.body,y.mode,y.style)}render(y){const b=Nr.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=Yt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},Jo=class N0 extends Nr{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 N0((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"?Wa(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ee]):this.variant==="mleft...mright"?Wa(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ee]):Wa([!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 ya({parent:y},this.style);console.assert(this.body!==void 0);const ae=new ya({parent:y,mathstyle:"textstyle"},this.style),se=(b=Nr.createBox(ee,this.body,{type:"inner"}))!=null?b:new ei(null,{type:"inner"}),ve=se.height/ae.scalingFactor,Ce=se.depth/ae.scalingFactor,De=[];if(this.leftDelim&&De.push(this.bind(ae,Ti("open",this.leftDelim,ve,Ce,ae,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),se&&(hl(se.children,this,ee,ve,Ce),De.push(se)),this.rightDelim){let tn=this.containsCaret?" ML__contains-caret":"",fn=this.rightDelim;fn==="?"&&(ee.smartFence?(fn=this.matchingRightDelim(),tn+=" ML__smart-fence__close"):fn="."),De.push(this.bind(ae,Ti("close",fn,ve,Ce,ae,{isSelected:this.isSelected,classes:tn+" ML__close",mode:this.mode,style:this.style})))}let Fe=this.variant==="mleft...mright";const nt=this.leftSibling;nt&&(!Fe&&nt.isFunction&&(Fe=!0),!Fe&&nt.type==="subsup"&&((E=nt.leftSibling)!=null&&E.isFunction)&&(Fe=!0));const At=new ei(De,{type:Fe?"close":"inner",classes:"left-right"});return At.setStyle("margin-top",`${-se.depth}em`),At.setStyle("height",`${se.height+se.depth}em`),this.caret&&(At.caret=this.caret),this.bind(ee,At.wrap(ee))}};function hl(a,y,b,E,ee){if(a)for(let ae=0;ae<a.length;ae++){const se=a[ae];se.type==="middle"?(a[ae]=y.bind(b,Ti("inner",se.value,E,ee,b,{isSelected:y.isSelected})),a[ae].caret=se.caret,a[ae].isSelected=se.isSelected,a[ae].cssId=se.cssId,a[ae].htmlData=se.htmlData,a[ae].htmlStyle=se.htmlStyle,a[ae].attributes=se.attributes,a[ae].cssProperties=se.cssProperties):se.children&&hl(se.children,y,b,E,ee)}}var Pd=class P0 extends Nr{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 P0(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=Nr.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},Hc=class R0 extends Nr{constructor(){super({type:"macro-argument"})}static fromJson(y){return new R0}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},Xc=class F0 extends Nr{constructor(y,b,E=!1,ee,ae){var se;super({type:"prompt",mode:(se=ae==null?void 0:ae.mode)!=null?se:"math",style:ae==null?void 0:ae.style,command:"\\placeholder"}),this.body=ee,this.correctness=b,this.placeholderId=y,this.locked=E,this.captureSelection=this.locked}static fromJson(y){return new F0(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 ya({parent:y}),E=b.getRegisterAsEm("fboxsep"),ee=E,ae=E,se=Nr.createBox(y,this.body);if(!se)return null;se.height||(se.height=b.metrics.xHeight),se.setStyle("vertical-align",-se.height,"em"),this.correctness==="correct"?se.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&se.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const ve=new ei(se,{type:"ord"});ve.setStyle("display","inline-block"),ve.setStyle("height",se.height+se.depth,"em"),ve.setStyle("vertical-align",-ae,"em");let Ce="ML__prompt ";this.locked?Ce+=" ML__lockedPromptBox ":Ce+=" ML__editablePromptBox ",this.correctness==="correct"?Ce+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(Ce+=" ML__incorrectPromptBox "),this.containsCaret&&(Ce+=" ML__focusedPromptBox ");const De=new ei(null,{classes:Ce,attributes:{part:"prompt"}});De.height=ve.height+ae,De.depth=ve.depth+ae,De.width=ve.width+2*ee,De.setStyle("box-sizing","border-box"),De.setStyle("position","absolute"),De.setStyle("height",ve.height+ve.depth+2*ae,"em"),ee===0&&De.setStyle("width","100%"),ee!==0&&(De.setStyle("width",`calc(100% + ${2*ee}em)`),De.setStyle("top",E,"em"),De.setStyle("left",-ee,"em")),(!this.body||this.body.length===1)&&(De.width=3*ee,De.setStyle("width",`calc(100% + ${3*ee}em)`),De.setStyle("left",-1.5*ee,"em"));let Fe="";this.correctness==="incorrect"&&(Fe+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),Fe&&(De.svgOverlay=Fe);const nt=new ei([De,ve],{classes:"ML__prompt-atom"});return nt.setStyle("position","relative"),nt.setStyle("display","inline-block"),nt.setStyle("line-height",0),nt.height=ve.height+ae+.2,nt.depth=ve.depth+ae,nt.left=ee,nt.right=ee,nt.setStyle("height",ve.height+ae,"em"),nt.setStyle("top",ve.depth-ve.height,"em"),nt.setStyle("vertical-align",ve.depth+ae,"em"),nt.setStyle("margin-left",.5,"em"),nt.setStyle("margin-right",.5,"em"),this.caret&&(nt.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:nt}))}_serialize(y){var b;const E=(b=this.bodyToLatex(y))!=null?b:"";if(y.skipPlaceholders)return E;let ee="\\placeholder";return this.placeholderId&&(ee+=`[${this.placeholderId}]`),this.correctness==="correct"?ee+="[correct]":this.correctness==="incorrect"&&(ee+="[incorrect]"),this.locked&&(ee+="[locked]"),Ii(ee,E)}},kc=class z0 extends Nr{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new z0(y);for(const E of Ns)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new ya({parent:y,isPhantom:!0}),ee=this.leftSibling,ae=(b=ee.render(E))!=null?b:new ei(null),se=new ei(null);return se.height=ae.height,se.depth=ae.depth,this.attachSupsub(y,{base:se,isCharacterBox:ee.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function cl(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var Su=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var E,ee,ae,se;b!=null||(b={}),this.tokens=a,this.context=y instanceof ya&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new ya({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:(ae=b.parseMode)!=null?ae:"math",mathstyle:(se=b.mathstyle)!=null?se:"displaystyle",tabular:!1}}beginContext(a){var y,b,E;const ee=this.parsingContext,ae={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=ae}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(we({before:ha(this.tokens.slice(this.index,this.index+10)),after:ha(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 kc({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=Yt(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?Dl(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new Pa({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(a){let y=this.tokens[this.index];for(;y&&y!==a;)y=this.tokens[++this.index];y===a&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(a){const y=this.index;let b=this.end(),E="";for(;!b;){const ae=this.get();cl(ae)?(E+=ae,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(cl(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 ae=10,se=/\d/;if(this.match("'"))ae=8,se=/[0-7]/,a=!0;else if(this.match('"'))ae=16,se=/[\dA-F]/,a=!0;else if(this.match("x"))ae=16,se=/[\dA-Fa-f]/,a=!0;else if(this.match("`"))return 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 ve="";for(;this.hasPattern(se);)ve+=this.get();if(!a&&(this.match(".")||this.match(",")))for(ve+=".";this.hasPattern(se);)ve+=this.get();const Ce=a?Number.parseInt(ve,ae):Number.parseFloat(ve);return Number.isNaN(Ce)?null:{number:E?-Ce:Ce,base:ae===16?"hexadecimal":ae===8?"octal":"decimal"}}scanRegister(){var a;const y=this.index,b=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return b;let E=!1;if(b===null)for(;;){const ae=this.peek();if(ae==="-")E=!E;else if(ae!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const ae=this.get();return ae.startsWith("\\")?b?{register:ae,global:!0,factor:(E?-1:1)*b.number}:E?{register:ae,global:!0,factor:-1}:{register:ae,global:!0}:(this.index=y,null)}let 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()||!cl(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=Bt(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const ve of y.params)if(ve.isOptional)b.push(this.scanOptionalArgument(ve.type));else{const Ce=this.scanArgument(ve.type);Ce||this.onError({code:"missing-argument",arg:a}),b.push(Ce)}this.beginContext({tabular:y.tabular});const E=[],ee=[];let ae=[],se=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),se=!0),!se&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),se=!0),!se)if(this.matchColumnSeparator())ae.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){ae.push(this.mathlist),this.mathlist=[];let ve=null;this.skipWhitespace(),this.match("[")&&(ve=this.scanDimen(),this.skipWhitespace(),this.match("]")),ee.push(ve!=null?ve:{dimension:0}),E.push(ae),ae=[]}else this.mathlist.push(...this.scan(ve=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(ve)));while(!se);return ae.push(this.mathlist),ae.length>0&&E.push(ae),this.endContext(),y.createAtom(a,E,ee,b)}scanExpression(){const a=this.mathlist;if(this.mathlist=[],this.parseExpression()){const y=this.mathlist;return this.mathlist=a,y}return this.mathlist=a,null}scan(a){this.beginContext(),a||(a=se=>se==="<}>");let y="",b=null,E=[],ee=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=Yt(y,"math"),b&&(E=this.scanArguments(b)[1]),ee=this.mathlist,this.mathlist=[]):this.parseExpression();let ae;return y?(console.assert(!!b),E.unshift(this.mathlist),ee&&E.unshift(ee),ae=[b.createAtom({command:y,args:E,style:this.style,mode:this.parseMode})]):ae=this.mathlist,this.endContext(),ae}scanGroup(){const a=this.index;if(!this.match("<{>"))return null;const y=this.scan(E=>E==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const b=new Ll(y,this.parseMode,this.style);return b.verbatimLatex=ha(this.tokens.slice(a,this.index)),b}scanSmartFence(){if(this.skipWhitespace(),!this.match("("))return null;this.beginContext();let a=1;for(;!this.end()&&a!==0;)this.match("(")&&(a+=1),this.match(")")&&(a-=1),a!==0&&this.parseExpression();const y=new Jo("",this.mathlist,{leftDelim:"(",rightDelim:a===0?")":"?"});return this.endContext(),y}scanDelim(){this.skipWhitespace();const a=this.peek();if(!a)return this.onError({code:"unexpected-end-of-string"}),null;if(!cl(a)&&!a.startsWith("\\"))return null;this.next();const y=Yt(a,"math");return y?y.definitionType==="function"&&y.ifMode&&!y.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:a}),null):y.definitionType==="symbol"&&(y.type==="mopen"||y.type==="mclose")||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(a)?a:(this.onError({code:"unexpected-delimiter",arg:a}),null):(this.onError({code:"unknown-command",arg:a}),null)}scanLeftRight(){var a;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new Jl("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Jl("\\mright");let y="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;y="\\mright"}const b=this.scanDelim();if(!b)return this.onError({code:"unexpected-delimiter"}),new Jl(y==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(y);)this.parseExpression();const E=this.mathlist;this.endContext();const ee=(a=this.scanDelim())!=null?a:".";return new Jo(y==="\\right"?"left...right":"mleft...mright",E,{leftDelim:b,rightDelim:ee,style:this.style})}parseSupSub(){if(this.parseMode!=="math")return!1;let a=this.peek();if(a!=="^"&&a!=="_"&&a!=="'")return!1;const y=this.lastSubsupAtom();for(;a==="^"||a==="_"||a==="'";)this.match("'")?this.match("'")?y.addChild(new Nr({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new Nr({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(Et(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(ae=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(ae))):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(cl(a)){const b=Vi.createAtom(this.parseMode,a,we({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=Yt(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new Jl(a)];if(b.definitionType==="symbol"){const E=we({},this.style);b.variant&&(E.variant=b.variant),y=new Nr({type:b.type,command:a,style:E,value:String.fromCodePoint(b.codepoint),mode:this.parseMode,verbatimLatex:a})}else{if(b.applyMode||b.applyStyle||b.infix)return this.onError({code:"invalid-command",arg:a}),[new Jl(a)];b.createAtom&&(y=b.createAtom({command:a,args:[],style:this.style,mode:this.parseMode}))}}return y?[y]:null}scanArgument(a){var y;this.skipFiller();const b=this.parseMode;if(a==="auto"&&(a=b),!this.match("<{>")){if(a==="string")return this.scanString();if(a==="value")return this.scanValue();if(a==="delim")return(y=this.scanDelim())!=null?y:".";if(a==="expression")return this.scanExpression();if(a==="math"){a!==b&&this.beginContext({mode:"math"});const ee=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ee}if(a==="text"){a!==b&&this.beginContext({mode:"text"});const ee=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ee}return a==="balanced-string"||console.assert(!1),null}if(a==="text"){this.beginContext({mode:"text"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}if(a==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}let E=null;if(a==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}return a==="string"?E=this.scanString():a==="balanced-string"?E=this.scanBalancedString():a==="colspec"?E=this.scanColspec():a==="value"&&(E=this.scanValue()),this.skipUntilToken("<}>"),E}scanOptionalArgument(a){if(a=a==="auto"?this.parseMode:a,this.skipFiller(),!this.match("["))return null;let y=null;for(;!this.end()&&!this.match("]");)if(a==="string")y=this.scanString();else if(a==="value")y=this.scanValue();else if(a==="colspec")y=this.scanColspec();else if(a==="bbox"){const b={},E=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const ee of E){const ae=ee.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(ae)b.padding={dimension:parseInt(ae[1]),unit:ae[2]};else{const se=ee.match(/^\s*border\s*:\s*(.*)/);se?b.border=se[1]:b.backgroundcolor={string:ee}}}y=b}else a==="math"&&(this.beginContext({mode:"math"}),y=this.mathlist.concat(this.scan(b=>b==="]")),this.endContext());return y}scanSymbolOrCommand(a){var y,b,E;if(a==="\\placeholder"){const ve=this.scanOptionalArgument("string"),Ce=this.scanOptionalArgument("math"),De=Nr.serialize(Ce,{defaultMode:"math"});let Fe=[],nt;!nt&&De==="correct"?nt="correct":!nt&&De==="incorrect"?nt="incorrect":De!==""&&(Fe=Ce);const At=this.scanOptionalArgument("string")==="locked",tn=this.scanArgument("auto");let fn;return tn&&Array.isArray(tn)&&tn.length>0?fn=tn:tn&&typeof tn=="object"&&"group"in tn?fn=tn.group:fn=Fe,ve?[new Xc(ve,nt,At,fn!=null?fn:Fe,{mode:this.parseMode,style:this.style})]:[new Pa({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const ve=this.index,Ce=this.scanLiteralGroup()||this.next();if(!Ce)return null;if(this.context.registers[Ce.substring(1)]){const De=this.scanArgument("string");De!==null&&(this.context.registers[Ce.substring(1)]=De);const Fe=Wa([a,ha(this.tokens.slice(ve,this.index))]);return[new Nr({type:"text",value:"",verbatimLatex:Fe})]}}let ee=this.scanMacro(a);if(ee)return[ee];const ae=Yt(a,this.parseMode);if(!ae)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(ve=>new Nr({type:"text",value:ve,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new Jl(a)]);const se=this.index;if(ae.definitionType==="symbol"){const ve=we({},this.style);ae.variant&&(ve.variant=ae.variant),ee=new Nr({type:ae.type,command:a,style:ve,value:String.fromCodePoint(ae.codepoint),mode:this.parseMode})}else{if(ae.ifMode&&!ae.ifMode.includes(this.parseMode))return[];const ve=this.parseMode;ae.applyMode&&(this.parseMode=ae.applyMode);let Ce,De=[];if(ae.parse?De=ae.parse(this):[Ce,De]=this.scanArguments(ae),this.parseMode=ve,ae.applyMode&&!ae.applyStyle&&!ae.createAtom)return Et(De[0]);if(ae.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof ae.createAtom=="function")ee=ae.createAtom({command:a,args:De,style:this.style,mode:this.parseMode}),Ce&&(ee.body=Et(this.scanArgument(Ce)));else if(typeof ae.applyStyle=="function"){const Fe=we(we({},this.style),ae.applyStyle(a,De,this.context)),nt=this.parseMode;if(ae.applyMode&&(this.parseMode=ae.applyMode),Ce){const At=this.style;this.style=Fe;const tn=this.scanArgument(Ce);return this.style=At,this.parseMode=nt,Et(tn)}this.style=Fe}else ee=new Nr({type:"mord",command:(b=ae.command)!=null?b:a,style:we({},this.style),value:a,mode:(E=ae.applyMode)!=null?E:this.parseMode})}if(!ee)return null;if(ee instanceof Nr&&ee.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const ve=Wa([a,ha(this.tokens.slice(se,this.index))]);ve&&(ee.verbatimLatex=ve)}if(ee.verbatimLatex===null&&(ee.verbatimLatex=void 0),ee.isFunction&&this.smartFence){const ve=this.scanSmartFence();if(ve)return[ee,ve]}return[ee]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(cl(a)){const y=Vi.createAtom(this.parseMode,a,we({},this.style));if(!y)return null;if(y.isFunction&&this.smartFence){const b=this.scanSmartFence();if(b)return[y,b]}return[y]}return a.startsWith("\\")?this.scanSymbolOrCommand(a):a==="<space>"?this.parseMode==="text"?[new cc(" "," ",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,ae={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let se=1;se<=ee;se++){let ve=this.scanLiteralGroup();if(!ve){const Ce=this.index;this.scanExpression(),ve=ha(this.tokens.slice(Ce,this.index))}ae[se]=ve}return new Pd(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:ha(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:Dl(b.def,{context:this.context,parseMode:this.parseMode,args:se=>ae[se],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var a,y,b,E;let 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 Dl(a,y){var b,E,ee,ae;const se=(b=y==null?void 0:y.args)!=null?b:void 0,ve=new Su(Ro(a,se),y==null?void 0:y.context,{args:se,mathstyle:(E=y==null?void 0:y.mathstyle)!=null?E:"displaystyle",parseMode:(ee=y==null?void 0:y.parseMode)!=null?ee:"math",style:(ae=y==null?void 0:y.style)!=null?ae:{}}),Ce=[];for(;!ve.end();)Ce.push(...ve.scan(()=>!1));return Ce}function tp(a,y){var b;const E=new Su(Ro(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 np=class K0 extends Nr{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=Ps.go(ci.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=Dl(E),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new K0(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return me(we({},super.toJson()),{arg:this.arg})}render(y){const b=Nr.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}};It(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new np(a.command,(y=a.args[0])!=null?y:"")}});var ci={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,ae=10,se=[];;){ee!==a?(ae=10,ee=a):ae--;var ve=ci.stateMachines[y],Ce=ve.transitions[b]||ve.transitions["*"];e:for(var De=0;De<Ce.length;De++){var Fe=ci.patterns.match_(Ce[De].pattern,a);if(Fe){for(var nt=Ce[De].task,At=0;At<nt.action_.length;At++){var tn;if(ve.actions[nt.action_[At].type_])tn=ve.actions[nt.action_[At].type_](E,Fe.match_,nt.action_[At].option);else if(ci.actions[nt.action_[At].type_])tn=ci.actions[nt.action_[At].type_](E,Fe.match_,nt.action_[At].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+nt.action_[At].type_+")"];ci.concatArray(se,tn)}if(b=nt.nextState||b,a.length>0){if(nt.revisit||(a=Fe.remainder),!nt.toContinue)break e}else return se}}if(ae<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(a,y){if(y)if(Object.prototype.toString.call(y)==="[object Array]")for(var b=0;b<y.length;b++)a.push(y[b]);else a.push(y)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"(-)(9)^(-9)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"state of aggregation $":function(a){var y=ci.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 ci.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return ci.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return ci.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return ci.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return ci.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return ci.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return ci.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return ci.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return ci.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return ci.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return ci.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return ci.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return ci.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 ci.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return ci.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return ci.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return ci.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 ci.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return ci.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return ci.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return ci.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return ci.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return ci.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return ci.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return ci.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=ci.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,ae,se,ve,Ce,De){var Fe=function(Cr,$r){if(typeof $r=="string")return Cr.indexOf($r)!==0?null:$r;var yi=Cr.match($r);return yi?yi[0]:null},nt=function(Cr,$r,yi){for(var ri=0;$r<Cr.length;){var ua=Cr.charAt($r),Ta=Fe(Cr.substr($r),yi);if(Ta!==null&&ri===0)return{endMatchBegin:$r,endMatchEnd:$r+Ta.length};if(ua==="{")ri++;else if(ua==="}"){if(ri===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];ri--}$r++}return ri>0,null},At=Fe(a,y);if(At===null||(a=a.substr(At.length),At=Fe(a,b),At===null))return null;var tn=nt(a,At.length,E||ee);if(tn===null)return null;var fn=a.substring(0,E?tn.endMatchEnd:tn.endMatchBegin);if(ae||se){var Ar=this.findObserveGroups(a.substr(tn.endMatchEnd),ae,se,ve,Ce);if(Ar===null)return null;var hi=[fn,Ar.match_];return{match_:De?hi.join(""):hi,remainder:Ar.remainder}}else return{match_:fn,remainder:a.substr(tn.endMatchEnd)}},match_:function(a,y){var b=ci.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return ci.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 ci.go(y,"text")},"{text}":function(a,y){var b=["{"];return ci.concatArray(b,ci.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return ci.go(y,"tex-math")},"tex-math tight":function(a,y){return ci.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 ci.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 ci.go(y,"9,9")}},createTransitions:function(a){var y,b,E,ee,ae={};for(y in a)for(b in a[y])for(E=b.split("|"),a[y][b].stateArray=E,ee=0;ee<E.length;ee++)ae[E[ee]]=[];for(y in a)for(b in a[y])for(E=a[y][b].stateArray||[],ee=0;ee<E.length;ee++){var se=a[y][b];if(se.action_){se.action_=[].concat(se.action_);for(var ve=0;ve<se.action_.length;ve++)typeof se.action_[ve]=="string"&&(se.action_[ve]={type_:se.action_[ve]})}else se.action_=[];for(var Ce=y.split("|"),De=0;De<Ce.length;De++)if(E[ee]==="*")for(var Fe in ae)ae[Fe].push({pattern:Ce[De],task:se});else ae[E[ee]].push({pattern:Ce[De],task:se})}return ae},stateMachines:{}};ci.stateMachines={ce:{transitions:ci.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 ci.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 ci.concatArray(b,this.output(a)),ci.concatArray(b,ci.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var E=ci.patterns.match_("orbital",a.o||""),ee=ci.patterns.match_("one lowercase greek letter $",a.o||""),ae=ci.patterns.match_("one lowercase latin letter $",a.o||""),se=ci.patterns.match_("$one lowercase latin letter$ $",a.o||""),ve=y==="-"&&(E&&E.remainder===""||ee||ae||se);ve&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!E&&ae&&(a.o="$"+a.o+"$");var Ce=[];return ve?(ci.concatArray(Ce,this.output(a)),Ce.push({type_:"hyphen"})):(E=ci.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(ci.concatArray(Ce,ci.actions["d="](a,y)),ci.concatArray(Ce,this.output(a))):(ci.concatArray(Ce,this.output(a)),ci.concatArray(Ce,ci.actions.bond(a,y,"-")))),Ce},"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:ci.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"&&ci.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:ci.go(a.a,"a"),b:ci.go(a.b,"bd"),p:ci.go(a.p,"pq"),o:ci.go(a.o,"o"),q:ci.go(a.q,"pq"),d:ci.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ee;a.rdt==="M"?ee=ci.go(a.rd,"tex-math"):a.rdt==="T"?ee=[{type_:"text",p1:a.rd||""}]:ee=ci.go(a.rd);var ae;a.rqt==="M"?ae=ci.go(a.rq,"tex-math"):a.rqt==="T"?ae=[{type_:"text",p1:a.rq||""}]:ae=ci.go(a.rq),E={type_:"arrow",r:a.r,rd:ee,rq:ae}}for(var se in a)se!=="parenthesisLevel"&&se!=="beginsWithBond"&&delete a[se];return E},"oxidation-output":function(a,y){var b=["{"];return ci.concatArray(b,ci.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:ci.go(y[0]),p2:ci.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:ci.go(y[0]),p2:ci.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:ci.go(y[0]),p2:ci.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:ci.go(y[0]),p2:ci.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:ci.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:ci.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:ci.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:ci.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:ci.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:ci.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:ci.go(y[1],"pq")}}}},bd:{transitions:ci.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:ci.go(y[1],"bd")}}}},oxidation:{transitions:ci.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:ci.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:ci.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:ci.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:ci.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]&&(ci.concatArray(b,ci.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?ci.concatArray(b,ci.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]),ci.concatArray(b,ci.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=ci.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var E=ci.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:ci.go(a.d,"pu"),q:ci.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_:"/"}),ci.concatArray(y,ee.q))}else y=ci.go(a.d,"pu-2");for(var ae in a)delete a[ae];return y}}},"pu-2":{transitions:ci.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=ci.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=ci.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var E in a)delete a[E];return y}}},"pu-9,9":{transitions:ci.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 Ps={go:function(a,y){if(!a)return"";for(var b="",E=!1,ee=0;ee<a.length;ee++){var ae=a[ee];typeof ae=="string"?b+=ae:(b+=Ps._go2(ae),ae.type_==="1st-level escape"&&(E=!0))}return!y&&!E&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&Ps.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:Ps._goInner(a.a),b:Ps._goInner(a.b),p:Ps._goInner(a.p),o:Ps._goInner(a.o),q:Ps._goInner(a.q),d:Ps._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 "+Ps._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+Ps._goInner(a.p1);break;case"bond":if(y=Ps._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{"+Ps._goInner(a.p1)+"}{"+Ps._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+Ps._goInner(a.p1)+"}{"+Ps._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+Ps._goInner(a.p1)+"}{"+Ps._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+Ps._goInner(a.p1)+"}{"+Ps._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+Ps._goInner(a.p1)+"}_{"+Ps._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+Ps._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var ae={rd:Ps._goInner(a.rd),rq:Ps._goInner(a.rq)},se=Ps._getArrow(a.r);ae.rd||ae.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(se="\\long"+se,ae.rd&&(se="\\overset{"+ae.rd+"}{"+se+"}"),ae.rq&&(a.r==="<-->"?se="\\underset{\\lower2mu{"+ae.rq+"}}{"+se+"}":se="\\underset{\\lower6mu{"+ae.rq+"}}{"+se+"}"),se=" {}\\mathrel{"+se+"}{} "):(ae.rq&&(se+="[{"+ae.rq+"}]"),se+="{"+ae.rd+"}",se=" {}\\mathrel{\\x"+se+"}{} "):se=" {}\\mathrel{\\long"+se+"}{} ",y=se;break;case"operator":y=Ps._getOperator(a.kind_);break;case"1st-level escape":y=a.p1+" ";break;case"space":y=" ";break;case"entitySkip":y="~";break;case"pu-space-1":y="~";break;case"pu-space-2":y="\\mkern3mu ";break;case"1000 separator":y="\\mkern2mu ";break;case"commaDecimal":y="{,}";break;case"comma enumeration L":y="{"+a.p1+"}\\mkern6mu ";break;case"comma enumeration M":y="{"+a.p1+"}\\mkern3mu ";break;case"comma enumeration S":y="{"+a.p1+"}\\mkern1mu ";break;case"hyphen":y="\\text{-}";break;case"addition compound":y="\\,{\\cdot}\\,";break;case"electron dot":y="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":y="{\\times}";break;case"prime":y="\\prime ";break;case"cdot":y="\\cdot ";break;case"tight cdot":y="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":y="\\times ";break;case"circa":y="{\\sim}";break;case"^":y="uparrow";break;case"v":y="downarrow";break;case"ellipsis":y="\\ldots ";break;case"/":y="/";break;case" / ":y="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return y},_getArrow:function(a){switch(a){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(a){switch(a){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(a){switch(a){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function My(a){}function Ay(a){}var rp=class H0 extends Nr{constructor(y){super(me(we({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new H0(y)}toJson(){return me(we({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new ei(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Yt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Ii(this.command,this.value)}},ip=class _0 extends Nr{constructor(y){super(me(we({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new _0(y)}toJson(){return me(we({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=pr(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=Yt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):Ii(this.command,this.value)}},rf=class W0 extends Nr{constructor(y,b,E,ee){var ae,se;super({type:"enclose",command:y,style:ee.style}),this.body=b,this.backgroundcolor=ee.backgroundcolor,E.updiagonalarrow&&(E.updiagonalstrike=!1),E.box&&(E.left=!1,E.right=!1,E.bottom=!1,E.top=!1),this.notation=E,this.shadow=(ae=ee.shadow)!=null?ae:"none",this.strokeWidth=(se=ee.strokeWidth)!=null?se:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=ee.strokeStyle,this.svgStrokeStyle=ee.svgStrokeStyle,this.strokeColor=ee.strokeColor,this.borderStyle=ee.borderStyle,this.padding=ee.padding,this.captureSelection=!1}static fromJson(y){return new W0(y.command,y.body,y.notation,y)}toJson(){return me(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=Yt(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 ae="",se="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(ae+=se+'mathbackground="'+this.backgroundcolor+'"',se=","),this.shadow&&this.shadow!=="auto"&&(ae+=se+'shadow="'+this.shadow+'"',se=","),this.strokeWidth||this.strokeStyle!=="solid"?(ae+=se+this.borderStyle,se=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(ae+=se+'mathcolor="'+this.strokeColor+'"',se=","),ae&&(ee+=`[${ae}]`)}return Ii(ee,this.bodyToLatex(y))}render(y){const b=new ya({parent:y},this.style),E=Nr.createBox(b,this.body);if(!E)return null;const ee=im(this.borderStyle),ae=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});E.setStyle("position","relative"),E.setStyle("display","inline-block"),E.setStyle("top",ae,"em"),E.setStyle("height",E.height+E.depth,"em"),E.setStyle("width",E.width,"em");const se=new ei(null,{classes:"ML__notation"});let ve=E.height+E.depth+2*ae;const Ce=E.width+2*ae;let De="";if(this.notation.horizontalstrike&&(De+=this.line(3,50,97,50)),this.notation.verticalstrike&&(De+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(De+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(De+=this.line(3,3,97,97)),this.notation.updiagonalarrow){De+=this.line(ae.toString(),(ae+E.depth+E.height).toString(),(ae+E.width).toString(),ae.toString());const fn=.03*Math.sqrt(Ce*Ce+ve*ve)*1,Ar=E.width*fn,hi=(E.depth+E.height)*fn,Cr=ae+E.width;let $r=ae;$r+hi-.4*Ar<0&&($r=.4*Ar-hi),De+='<polygon points="',De+=`${Cr},${$r} ${Cr-Ar-.4*hi},${$r+hi-.4*Ar} `,De+=`${Cr-.7*Ar},${$r+.7*hi} ${Cr-Ar+.4*hi},${$r+hi+.4*Ar} `,De+=`${Cr},${$r}`,De+=`" stroke='none' fill="${this.strokeColor}"`,De+="/>"}let Fe=0;if(this.notation.phasorangle){const At=ap(b),tn=(E.height+E.depth+2*At+ae).toString(),fn=(E.height+E.depth)/2;De+=this.line(ae.toString(),tn,(ae+fn+E.width).toString(),tn),De+=this.line(ae.toString(),tn,(ae+fn).toString(),(ae-At).toString()),ve+=At,Fe=fn,E.left+=ve/2-ae}if(this.notation.longdiv){const At=ap(b);ve+=At,De+=this.line(ae.toString(),ae.toString(),(ae+E.width).toString(),ae.toString());const tn=.3;Fe=tn+At,E.left+=tn+At,E.setTop(ae+At),De+='<path d="',De+=`M ${ae} ${ae} a${tn} ${(E.depth+E.height+2*At)/2}, 0, 1, 1, 0 ${E.depth+E.height+2*At} "`,De+=` stroke-width="${am(b)}" stroke="${this.strokeColor}" fill="none"`,De+="/>"}if(se.width=E.width+2*ae+Fe,se.height=E.height+ae,se.depth=E.depth+ae,se.setStyle("box-sizing","border-box"),se.setStyle("left",`calc(-${ee} / 2 )`),se.setStyle("height",`${Math.floor(100*ve)/100}em`),se.setStyle("top",`calc(${ee} / 2 )`),this.backgroundcolor&&se.setStyle("background-color",this.backgroundcolor),this.notation.box&&se.setStyle("border","1px solid red"),this.notation.actuarial&&(se.setStyle("border-top",this.borderStyle),se.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(se.setStyle("border-bottom",this.borderStyle),se.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(se.setStyle("border-radius","8px"),se.setStyle("border",this.borderStyle)),this.notation.circle&&(se.setStyle("border-radius","50%"),se.setStyle("border",this.borderStyle)),this.notation.top&&se.setStyle("border-top",this.borderStyle),this.notation.left&&se.setStyle("border-left",this.borderStyle),this.notation.right&&se.setStyle("border-right",this.borderStyle),this.notation.bottom&&se.setStyle("border-bottom",this.borderStyle),De){let At="";this.shadow==="auto"&&(At+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(At+=`filter: drop-shadow(${this.shadow})`),At+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,At+=' stroke-linecap="round"',this.svgStrokeStyle&&(At+=` stroke-dasharray="${this.svgStrokeStyle}"`),se.svgStyle=At,se.svgOverlay=De}const nt=new ei([se,E]);return nt.setStyle("position","relative"),nt.setStyle("vertical-align",ae,"em"),nt.setStyle("height",`${Math.floor(100*(E.height+E.depth+2*ae))/100}em`),nt.setStyle("display","inline-block"),nt.height=se.height,nt.depth=se.depth,nt.width=se.width-2*ae,nt.left=ae,nt.right=ae,this.caret&&(nt.caret=this.caret),nt.wrap(b)}line(y,b,E,ee){return`<line x1="${Bf(y)}" y1="${Bf(b)}" x2="${Bf(E)}" y2="${Bf(ee)}" vector-effect="non-scaling-stroke"></line>`}};function Bf(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 ap(a){const y=a.isDisplayStyle?Ea:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var Rd=class Z0 extends Nr{constructor(y,b,E){var ee,ae;super(me(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=(ae=E==null?void 0:E.continuousFraction)!=null?ae:!1,this.numerPrefix=E==null?void 0:E.numerPrefix,this.denomPrefix=E==null?void 0:E.denomPrefix,this.mathstyleName=E==null?void 0:E.mathstyleName,this.leftDelim=E==null?void 0:E.leftDelim,this.rightDelim=E==null?void 0:E.rightDelim,this.fractionNavigationOrder=E==null?void 0:E.fractionNavigationOrder}static fromJson(y){return new Z0(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 ya({parent:y,mathstyle:this.mathstyleName},this.style),ae=ee.metrics,se=new ya({parent:ee,mathstyle:this.continuousFraction?"":"numerator"},this.style),ve=this.numerPrefix?new ei([new ei(this.numerPrefix),Nr.createBox(se,this.above)],{isTight:se.isTight,type:"ignore"}):(b=Nr.createBox(se,this.above,{type:"ignore"}))!=null?b:new ei(null,{type:"ignore"}),Ce=new ya({parent:ee,mathstyle:this.continuousFraction?"":"denominator"},this.style),De=this.denomPrefix?new ei([new ei(this.denomPrefix),Nr.createBox(Ce,this.below,{type:"ignore"})]):(E=Nr.createBox(Ce,this.below,{type:"ignore"}))!=null?E:new ei(null,{type:"ignore"}),Fe=this.hasBarLine?ae.defaultRuleThickness:0;let nt,At=0,tn;ee.isDisplayStyle?(nt=se.metrics.num1,At=Fe>0?3*Fe:7*Fe,tn=Ce.metrics.denom1):(Fe>0?(nt=se.metrics.num2,At=Fe):(nt=se.metrics.num3,At=3*ae.defaultRuleThickness),tn=Ce.metrics.denom2);const fn=[];this.isSelected&&fn.push("ML__selected");const Ar=ve.depth,hi=De.height;let Cr;if(Fe<=0){const xa=nt-Ar-(hi-tn);xa<At&&(nt+=(At-xa)/2,tn+=(At-xa)/2),Cr=new $a({individualShift:[{box:ve,shift:-nt,classes:[...fn,"ML__center"]},{box:De,shift:tn,classes:[...fn,"ML__center"]}]}).wrap(ee)}else{const xa=new ei(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});xa.softWidth=Math.max(ve.width,De.width),xa.height=Fe/2,xa.depth=Fe/2;const Ko=ji+Fe/2;nt<At+Ar+Ko&&(nt=At+Ar+Ko);const ps=ji-Fe/2;tn<At+hi-ps&&(tn=At+hi-ps),Cr=new $a({individualShift:[{box:De,shift:tn,classes:[...fn,"ML__center"]},{box:xa,shift:-ps,classes:fn},{box:ve,shift:-nt,classes:[...fn,"ML__center"]}]}).wrap(ee)}const $r=ee.isDisplayStyle?ae.delim1:ae.delim2,yi=this.leftDelim?this.bind(y,ta("open",this.leftDelim,$r,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):sa(ee,"open");let ri=null;this.continuousFraction?ri=new ei(null,{type:"close"}):this.rightDelim?ri=this.bind(y,ta("close",this.rightDelim,$r,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):ri=sa(ee,"close");const ua=new ei([yi,Cr,ri],{isTight:ee.isTight,type:"inner",classes:"mfrac"}),Ta=this.bind(y,ua);return this.caret&&(Ta.caret=this.caret),this.attachSupsub(y,{base:Ta})}},Pl=class j0 extends Nr{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 j0(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 ei(this.value,{classes:this.isSuggestion?"ML__suggestion":this.isError?"ML__error":"",type:"latex",maxFontSize:1});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},af=class U0 extends Nr{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new Pl(b)),this.skipBoundary=!1}static fromJson(y){return new U0("")}toJson(){return super.toJson()}render(y){const b=Nr.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 V0 extends Nr{constructor(y,b){super(me(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 V0(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 ei(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 ae=(ee.height-ee.depth)/2-ji*y.scalingFactor,se=ee.italic;ee.setTop(ae);let ve=ee;if(this.superscript||this.subscript){const Ce=(b=this.subsupPlacement)!=null?b:"auto";ve=Ce==="over-under"||Ce==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee,baseShift:ae,slant:se}):this.attachSupsub(y,{base:ee})}return new ei(this.bind(y,ve),{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=Yt(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)),Wa(E)}},dd=class G0 extends Nr{constructor(y){const b=y.body;super(me(we({},y),{type:"overlap",body:typeof b=="string"?[new Nr({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 G0(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=Nr.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new ei([b,new ei(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},Lc=class Y0 extends Nr{constructor(y){var b,E,ee,ae;super({type:"overunder",command:y.command,style:y.style,mode:y.mode,body:y.body,skipBoundary:(b=y.skipBoundary)!=null?b:!0}),this.subsupPlacement=y.supsubPlacement,this.svgAbove=y.svgAbove,this.svgBelow=y.svgBelow,this.svgBody=y.svgBody,this.above=y.above,this.below=y.below,this.boxType=(E=y.boxType)!=null?E:"ord",this.paddedBody=(ee=y.paddedBody)!=null?ee:!1,this.paddedLabels=(ae=y.paddedLabels)!=null?ae:!1}static fromJson(y){return new Y0(y)}toJson(){const y=super.toJson();return this.skipBoundary||(y.skipBoundary=!1),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.svgAbove&&(y.svgAbove=this.svgAbove),this.svgBelow&&(y.svgBelow=this.svgBelow),this.svgBody&&(y.svgBody=this.svgBody),this.boxType!=="ord"&&(y.boxType=this.boxType),this.paddedBody&&(y.paddedBody=!0),this.paddedLabels&&(y.paddedLabels=!0),y}render(y){let b=this.svgBody?yl(this.svgBody):Nr.createBox(y,this.body,{type:"ignore"});const E=new ya({parent:y,mathstyle:"scriptstyle"},this.style);let ee=null;this.svgAbove?ee=yl(this.svgAbove):this.above&&(ee=Nr.createBox(E,this.above,{type:"ignore"}));let ae=null;this.svgBelow?ae=yl(this.svgBelow):this.below&&(ae=Nr.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new ei([sa(y,"open"),b,sa(y,"close")],{type:"ignore"}));let se=om(y,{base:b,above:ee,below:ae,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return se?(this.subsupPlacement==="over-under"?se=this.attachLimits(y,{base:se,type:se.type}):se=this.attachSupsub(y,{base:se}),this.caret&&(se.caret=this.caret),this.bind(y,se)):null}};function om(a,y){if(!y.base)return null;if(!y.above&&!y.below){const ve=new ei(y.base,{type:y.type});return ve.setStyle("position","relative"),ve}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let E=null;const ee=y.base,ae=0,se=["ML__center"];if(y.paddedAboveBelow&&se.push("ML__label_padding"),y.below&&y.above){const ve=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ee.depth+ae;E=new $a({bottom:ve,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:se},{box:ee,classes:["ML__center"]},b,{box:y.above,classes:se},a.metrics.bigOpSpacing5]})}else y.below?E=new $a({top:ee.height-ae,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:se},{box:ee,classes:["ML__center"]}]}):y.above&&(E=new $a({bottom:ee.depth+ae,children:[{box:ee,classes:["ML__center"]},b,{box:y.above,classes:se},a.metrics.bigOpSpacing5]}));return new ei(E,{type:y.type})}var of=class X0 extends Nr{constructor(y){var b,E,ee,ae;super(me(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=(ae=y.smashWidth)!=null?ae:!1}static fromJson(y){return new X0(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 ya({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Nr.createBox(b,this.body,{classes:"inner"});const E=Nr.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ee=new ei(null,{classes:"fix"});return new ei([E,ee],{classes:"rlap"}).wrap(y)}if(!this.smashHeight&&!this.smashDepth)return E;if(this.smashHeight&&(E.height=0),this.smashDepth&&(E.depth=0),E.children)for(const ee of E.children)this.smashHeight&&(ee.height=0),this.smashDepth&&(ee.depth=0);return new $a({firstBaseline:[{box:E}]},{type:E.type}).wrap(y)}},sf=class Q0 extends Nr{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 Q0(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 ei(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new ei(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 ei(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=Yt(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);const ee=(b=this.command)!=null?b:"";return this.width===void 0?ee:this._braced&&!("register"in this.width)?`${ee}{${hs(this.width)}}`:`${ee}${hs(this.width)}`}},op=class J0 extends Nr{constructor(y){var b;super(me(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 J0(me(we({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=Yt(this.command,this.mode);if(b!=null&&b.serialize)return b.serialize(this,y);const E=this.command,ee=this.bodyToLatex(y);return this.above&&!this.hasEmptyBranch("above")?Ii(`${E}[${this.aboveToLatex(y)}]`,ee):/^[0-9]$/.test(ee)?`${E}${ee}`:Ii(E,ee)}get children(){if(this._children)return this._children;const y=[];if(this.above)for(const b of this.above)y.push(...b.children),y.push(b);if(this.body)for(const b of this.body)y.push(...b.children),y.push(b);return this._children=y,y}render(y){var b;const E=new ya({parent:y,mathstyle:"cramp"},this.style),ee=(b=Nr.createBox(E,this.body,{type:"inner"}))!=null?b:new ei(null),ae=E.scalingFactor,se=E.metrics.defaultRuleThickness/ae,ve=y.isDisplayStyle?Ea:se,Ce=new ei(null,{classes:"ML__sqrt-line",style:this.style});Ce.height=se,Ce.softWidth=ee.width;let De=ae*(se+ve/4);const nt=Math.max(ae*2*ve,ee.height+ee.depth)+De+se,At=new ya({parent:y},this.style),tn=this.bind(At,new ei(ta("inner","\\surd",nt,!1,At,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!tn)return null;const fn=tn.height+tn.depth-se;fn>ee.height+ee.depth+De&&(De=(De+fn-(ee.height+ee.depth))/2),tn.setTop(tn.height-ee.height-De);const Ar=this.bind(y,new $a({firstBaseline:[{box:new ei(ee)},De-2*se,{box:Ce},se]})),hi=Nr.createBox(new ya({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!hi){const yi=new ei([tn,Ar],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return yi.setStyle("display","inline-block"),yi.setStyle("height",yi.height+yi.depth,"em"),this.caret&&(yi.caret=this.caret),this.bind(y,yi)}const Cr=new $a({shift:-.6*(Math.max(tn.height,Ar.height)-Math.max(tn.depth,Ar.depth)),children:[{box:hi}]}),$r=new ei([new ei(Cr,{classes:"ML__sqrt-index",type:"ignore"}),tn,Ar],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return $r.height=tn.height,$r.depth=tn.depth,this.caret&&($r.caret=this.caret),this.bind(y,$r)}},sm=class extends ei{constructor(a){super(null,{type:"skip"}),this._width=a}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function If(a,y){if(!a.parent)return;const b=a.parent.children,E=b.indexOf(a);let ee=E-1;for(;ee>=0&&b[ee].type==="ignore";)ee-=1;if(ee<0&&a.parent.parent&&a.parent.type==="lift"){If(a.parent,y);return}E>0&&b[E-1].type==="skip"?b[E-1].width+=y:b.splice(E,0,new sm(y))}var lm={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},cm={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function um(a){cf(a,(y,b)=>{b.type==="bin"&&(!y||/^(middle|bin|op|rel|open|punct)$/.test(y.type))&&(b.type="ord"),(y==null?void 0:y.type)==="bin"&&/^(rel|close|punct)$/.test(b.type)&&(y.type="ord"),b.type!=="ignore"&&(y=b)})}function lf(a,y){if(!a.children)return a;const b=a.children;um(b);const E=y.getRegisterAsEm("thinmuskip"),ee=y.getRegisterAsEm("medmuskip"),ae=y.getRegisterAsEm("thickmuskip");return cf(b,(se,ve)=>{var Ce,De,Fe;if(!se)return;const nt=se.type,At=ve.isTight?(Ce=cm[nt])!=null?Ce:null:(De=lm[nt])!=null?De:null,tn=(Fe=At==null?void 0:At[ve.type])!=null?Fe:null;tn===3&&If(ve,E),tn===4&&If(ve,ee),tn===5&&If(ve,ae)}),a}function cf(a,y,b=void 0){if(!a)return b;a=[...a];for(const E of a)E.type==="lift"?b=cf(E.children,y,b):E.type==="ignore"?cf(E.children,y):(y(b,E),cf(E.children,y),b=E);return b}var hh=class $0 extends Nr{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new Nr({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new $0(me(we({},y),{tooltip:_u(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 me(we({},super.toJson()),{tooltip:b})}render(y){const b=Nr.createBox(new ya,this.body);if(!b)return null;const E=new ya({parent:y,mathstyle:"displaystyle"},{fontSize:Ui}),ee=Cs(lf(new ei(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),ae=new ei([ee,b],{classes:"ML__tooltip-container"});return this.caret&&(ae.caret=this.caret),this.bind(y,ae)}},fd=class q0 extends Nr{constructor(y,b){super(me(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 q0(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 ei(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 ae=(b=this.subsupPlacement)!=null?b:"auto";ee=ae==="over-under"||ae==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:E}):this.attachSupsub(y,{base:E})}return new ei(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=Yt(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)),Wa(E)}};function _u(a){if(Ke(a))return a.map(E=>_u(E));if(typeof a=="string")return Nr.fromJson(a);a=we({},a);for(const E of Ns)a[E]&&(a[E]=_u(a[E]));a.args&&(a.args=dm(a.args)),a.array&&(a.array=_u(a.array));const y=a.type;let b;y==="accent"&&(b=z.fromJson(a)),y==="array"&&(b=to.fromJson(a)),y==="box"&&(b=el.fromJson(a)),y==="chem"&&(b=np.fromJson(a)),y==="composition"&&(b=xu.fromJson(a)),y==="delim"&&(b=rp.fromJson(a)),y==="enclose"&&(b=rf.fromJson(a)),y==="error"&&(b=Jl.fromJson(a)),y==="extensible-symbol"&&(b=fh.fromJson(a)),y==="genfrac"&&(b=Rd.fromJson(a)),y==="group"&&(b=Ll.fromJson(a)),y==="latex"&&(b=Pl.fromJson(a)),y==="latexgroup"&&(b=af.fromJson(a)),y==="leftright"&&(b=Jo.fromJson(a)),y==="macro"&&(b=Pd.fromJson(a)),y==="macro-argument"&&(b=Hc.fromJson(a)),y==="operator"&&(b=fd.fromJson(a)),y==="overlap"&&(b=dd.fromJson(a)),y==="overunder"&&(b=Lc.fromJson(a)),y==="placeholder"&&(b=Pa.fromJson(a)),y==="prompt"&&(b=Xc.fromJson(a)),y==="phantom"&&(b=of.fromJson(a)),y==="sizeddelim"&&(b=ip.fromJson(a)),y==="spacing"&&(b=sf.fromJson(a)),y==="subsup"&&(b=kc.fromJson(a)),y==="surd"&&(b=op.fromJson(a)),y==="text"&&(b=cc.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=Nr.fromJson(a));for(const E of Ns)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=>_u(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>_u(b)):y)}var sp={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]$/},lp=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,fm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,hm=[/^[a-z]$/,/^[A-Z]$/,lp,fm],pm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},mm=class extends Vi{constructor(){super("math")}createAtom(a,y,b){var E,ee,ae,se;if(y===null)return new Nr({type:"mord",mode:"math",command:a,value:a,style:b});const ve=window.MathfieldElement.isFunction((E=y.command)!=null?E:a);if(y.definitionType==="symbol"){const De=new Nr({type:(ee=y.type)!=null?ee:"mord",mode:"math",command:(ae=y.command)!=null?ae:a,value:String.fromCodePoint(y.codepoint),style:b});return ve&&(De.isFunction=!0),a.startsWith("\\")&&(De.verbatimLatex=a),De}const Ce=new Nr({type:"mord",mode:"math",command:(se=y.command)!=null?se:a,value:a,style:b});return ve&&(Ce.isFunction=!0),a.startsWith("\\")&&(Ce.verbatimLatex=a),Ce}serialize(a,y){const b=gm(a,me(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((ve,Ce)=>{var De;ve.test(a.value)&&pm[(De=y.letterShapeStyle)!=null?De:"tex"][Ce]==="it"&&(E="italic")}),E==="up"&&(E=void 0);const ee=E?b+"-"+E:b;console.assert(sp[ee]!==void 0);const[ae,se]=sp[ee];return ph[b]&&!ph[b].test(a.value)?(a.value=cn(a.value,b,E),null):(lp.test(a.value)&&(a.classes+=" lcGreek"),se&&(a.classes+=" "+se),ae)}};function gm(a,y){const{parent:b}=a[0],E=cp(b);return Di(a,"variant").map(ee=>{const ae=cp(ee[0]);let se="";ae&&ae!==E&&(se={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[ae],console.assert(se!==void 0));const ve=Wa(ee.map(Ce=>Ce._serialize(y)));return se?Ii(se,ve):ve})}function cp(a){if(!a)return"";const{style:y}=a;if(y.variant===void 0)return"";let b=y.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(y.variant)&&y.variantStyle&&y.variantStyle!=="up"&&(b+="-"+y.variantStyle),b}new mm;function vm(a,y){return a.map(b=>b._serialize(y))}function ym(a,y){return Di(a,"fontShape").map(b=>{const E=vm(b,y),{fontShape:ee}=b[0].style;let ae="";return ee==="it"&&(ae="\\textit"),ee==="sl"&&(ae="\\textsl"),ee==="sc"&&(ae="\\textsc"),ee==="n"&&(ae="\\textup"),!ae&&ee?`{${Ii("\\fontshape",ee)}${Wa(E)}}`:ae?Ii(ae,Wa(E)):Wa(E)})}function bm(a,y){return Di(a,"fontSeries").map(b=>{const E=ym(b,y),{fontSeries:ee}=b[0].style;let ae="";return ee==="b"&&(ae="\\textbf"),ee==="l"&&(ae="\\textlf"),ee==="m"&&(ae="\\textmd"),ee&&!ae?`{${Ii("\\fontseries",ee)}${Wa(E)}}`:ae?Ii(ae,Wa(E)):Wa(E)})}function xm(a,y){return Di(a,"fontSize").map(b=>{var E,ee;const ae=bm(b,y),se=(ee=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(E=b[0].style.fontSize)!=null?E:""])!=null?ee:"";return se?`${se} ${Wa(ae)}`:Wa(ae)})}function Sm(a,y,b){return Di(a,"fontFamily").map(E=>{var ee,ae;const se=xm(E,y),ve=(ae={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ee=E[0].style.fontFamily)!=null?ee:""])!=null?ae:"";return ve?`\\${ve}{${Wa(se)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${Wa(se)}}`:b?`\\text{${Wa(se)}}`:Wa(se)})}var up={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},wm=class extends Vi{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new cc(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return Sm(a,me(we({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,E,ee,ae,se;const{fontFamily:ve}=y;if(up[ve]?a.classes+=" "+up[ve]:ve&&a.setStyle("font-family",ve),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 Ce=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);Ce&&(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=Ce[1])!=null?E:""])!=null?ee:"",a.classes+=" ",a.classes+=(se={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(ae=Ce[2])!=null?ae:""])!=null?se:"")}return"Main-Regular"}};new wm;var Cm=class extends Vi{constructor(){super("latex")}createAtom(a){return new Pl(a)}serialize(a,y){return a.filter(b=>b instanceof Pl&&!b.isSuggestion).map(b=>b.value)}getFont(){return null}};new Cm;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:["","=","","="]}},dp={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:["\\","|","",""]}},fp={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},Mm={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},Am={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},km={id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","\u03A9"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:[",","?","\u0301","\u030B"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["z","Z","\xAB","<"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["w","W","\u0142","\u0141"],Digit1:["&","1","\xB9","\xA1"],Digit2:["\xE9","2","~","\u215B"],Digit3:['"',"3","#","\xA3"],Digit4:["'","4","{","$"],Digit5:["(","5","[","\u215C"],Digit6:["-","6","|","\u215D"],Digit7:["\xE8","7","`","\u215E"],Digit8:["_","8","\\","\u2122"],Digit9:["\xE7","9","^","\xB1"],Digit0:["\xE0","0","@","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:[")","\xB0","]","\xBF"],Equal:["=","+","}","\u0328"],BracketLeft:["\u0302","\u0308","\u0308","\u030A"],BracketRight:["$","\xA3","\xA4","\u0304"],Backslash:["*","\xB5","\u0300","\u0306"],Semicolon:["m","M","\xB5","\xBA"],Quote:["\xF9","%","\u0302","\u030C"],Backquote:["\xB2","~","\xAC","\xAC"],Comma:[";",".","\u2500","\xD7"],Period:[":","/","\xB7","\xF7"],Slash:["!","\xA7","\u0323","\u0307"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"]}},Lm={id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u2039"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\u2122"],KeyE:["e","E","\u20AC","\u2030"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\xCC"],KeyH:["h","H","\xAA","\xD3"],KeyI:["i","I","\u2044","\xDB"],KeyJ:["j","J","\xBA","\u0131"],KeyK:["k","K","\u2206","\u02C6"],KeyL:["l","L","@","\uFB02"],KeyM:["m","M","\xB5","\u02D8"],KeyN:["n","N","~","\u203A"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\xAB","\xBB"],KeyR:["r","R","\xAE","\xB8"],KeyS:["s","S","\u201A","\xCD"],KeyT:["t","T","\u2020","\u02DD"],KeyU:["u","U","\xA8","\xC1"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\xD9"],KeyY:["z","Z","\u03A9","\u02C7"],KeyZ:["y","Y","\xA5","\u2021"],Digit1:["1","!","\xA1","\xAC"],Digit2:["2",'"',"\u201C","\u201D"],Digit3:["3","\xA7","\xB6","#"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","[","\uFB01"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","\u02DC"],Digit9:["9",")","}","\xB7"],Digit0:["0","=","\u2260","\xAF"],Space:[" "," "," "," "],Minus:["\xDF","?","\xBF","\u02D9"],Equal:["\xB4","`","'","\u02DA"],BracketLeft:["\xFC","\xDC","\u2022","\xB0"],BracketRight:["+","*","\xB1","\uF8FF"],Backslash:["#","'","\u2018","\u2019"],Semicolon:["\xF6","\xD6","\u0153","\u0152"],Quote:["\xE4","\xC4","\xE6","\xC6"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u221E","\u02DB"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","\xB0","\u201E","\u201C"],NumpadEqual:["=","=","=","="]}},Dm={id:"windows.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","\xB5",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"\xB2",""],Digit3:["3","\xA7","\xB3",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["\xDF","?","\\","\u1E9E"],Equal:["\xB4","`","",""],BracketLeft:["\xFC","\xDC","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["\xF6","\xD6","",""],Quote:["\xE4","\xC4","",""],Backquote:["^","\xB0","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}},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:[".",".",".","."]}},Im={id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\xDF",""],KeyC:["c","C","\xA9"," "],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0192","\uFB01"],KeyG:["g","G","\uF8FF","\uFB02"],KeyH:["h","H","\u2122"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","\xB6","\xAF"],KeyK:["k","K","\xA7","\u02C7"],KeyL:["l","L"," ","\u02D8"],KeyM:["m","M","\xB5","\u02DA"],KeyN:["n","N"," ","\u02D9"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE"," "],KeyS:["s","S","\u222B"," "],KeyT:["t","T","\u2020","\u2021"],KeyU:["u","U"," "," "],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\xE6","\xC6"],KeyX:["x","X","\u2211","\u203A"],KeyY:["y","Y","\xA5"," "],KeyZ:["z","Z","\u03A9","\u2039"],Digit1:["1","!","|","\u0131"],Digit2:["2",'"',"@","\u02DD"],Digit3:["3","\xB7","#","\u2022"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","\u221E","\u2030"],Digit6:["6","&","\xAC"," "],Digit7:["7","/","\xF7","\u2044"],Digit8:["8","(","\u201C","\u2018"],Digit9:["9",")","\u201D","\u2019"],Digit0:["0","=","\u2260","\u2248"],Space:[" "," "," "," "],Minus:["'","?","\xB4","\xB8"],Equal:["\xA1","\xBF","\u201A","\u02DB"],BracketLeft:["`","^","[","\u02C6"],BracketRight:["+","*","]","\xB1"],Backslash:["\xE7","\xC7","}","\xBB"],Semicolon:["\xF1","\xD1","~","\u02DC"],Quote:["\xB4","\xA8","{","\xAB"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u201E",""],Period:[".",":","\u2026","\u2026"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["\xBA","\xAA","\\","\xB0"]}},Tm={id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","\xB7","#",""],Digit4:["4","$","~",""],Digit5:["5","%","\u20AC",""],Digit6:["6","&","\xAC",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["\xA1","\xBF","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["\xE7","\xC7","}",""],Semicolon:["\xF1","\xD1","",""],Quote:["\xB4","\xA8","{",""],Backquote:["\xBA","\xAA","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Om={id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["z","Z","\xAB","<"],Digit1:["1","!","|","\xA1"],Digit2:["2",'"',"@","\u215B"],Digit3:["3","\xB7","#","\xA3"],Digit4:["4","$","~","$"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["'","?","\\","\xBF"],Equal:["\xA1","\xBF","\u0303","~"],BracketLeft:["\u0300","\u0302","[","\u030A"],BracketRight:["+","*","]","\u0304"],Backslash:["\xE7","\xC7","}","\u0306"],Semicolon:["\xF1","\xD1","~","\u030B"],Quote:["\u0301","\u0308","{","{"],Backquote:["\xBA","\xAA","\\","\\"],Comma:[",",";","\u2500","\xD7"],Period:[".",":","\xB7","\xF7"],Slash:["-","_","\u0323","\u0307"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function hp(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 Fd(a){let y="";return a.shift&&(y+="shift+"),a.alt&&(y+="alt+"),a.ctrl&&(y+="ctrl+"),a.cmd&&(y+="cmd+"),a.win&&(y+="win+"),a.meta&&(y+="meta+"),y+a.key}var Nm={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},uf=[],df;function gh(){switch(ye()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function vc(a){(!a.platform||a.platform===gh())&&uf.push(a)}function Pm(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,ae]of Object.entries(y.mapping)){if(ae[0]===a)return E.key=`[${ee}]`,E;if(ae[1]===a)return E.shift=!0,E.key=`[${ee}]`,E;if(ae[2]===a)return E.alt=!0,E.key=`[${ee}]`,E;if(ae[3]===a)return E.shift=!0,E.alt=!0,E.key=`[${ee}]`,E}return E.key=(b=Nm[a])!=null?b:"",E}function Rm(a){if(a.code)return a;const y=Object.entries(ff().mapping);let b=!1,E=!1,ee="";for(let ae=0;ae<4;ae++){for(const[se,ve]of y)if(ve[ae]===a.key){ee=se,ae===3?(b=!0,E=!0):ae===2?b=!0:ae===1&&(E=!0);break}if(ee)break}return new KeyboardEvent(a.type,me(we({},a),{altKey:b,shiftKey:E,code:ee}))}function Fm(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 uf)((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);uf.sort((ee,ae)=>ae.score-ee.score)}function zm(a){df=uf.find(y=>a.startsWith(y.locale))}function ff(){return df!=null?df:uf[0]}function Km(){switch(gh()){case"apple":return mh;case"windows":return dp;case"linux":return fp}return mh}switch(gh()){case"apple":vc(mh),vc(Mm),vc(Im),vc(Lm);break;case"windows":vc(dp),vc(Am),vc(Tm),vc(Dm);break;case"linux":vc(fp),vc(km),vc(Om),vc(Bm);break}vc(Em);function vh(a){var y;const b=/macos|ios/.test(ye()),E=a.split("+");let ee="";for(const ae of E)ee&&(ee+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),ae.startsWith("[Key")?ee+=ae.slice(4,5):ae.startsWith("Key")?ee+=ae.slice(3,4):ae.startsWith("[Digit")?ee+=ae.slice(6,7):ae.startsWith("Digit")?ee+=ae.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:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[ae.toLowerCase()])!=null?y:ae.toUpperCase();return ee}function Tf(a){if(a instanceof MouseEvent||a instanceof PointerEvent)return{x:a.clientX,y:a.clientY};if(a instanceof TouchEvent){const y=[...a.touches].reduce((E,ee)=>({x:E.x+ee.clientX,y:E.y+ee.clientY}),{x:0,y:0}),b=a.touches.length;return{x:y.x/b,y:y.y/b}}}function hd(a){const y={alt:!1,control:!1,shift:!1,meta:!1};return(a instanceof MouseEvent||a instanceof PointerEvent||a instanceof TouchEvent||a instanceof KeyboardEvent)&&(a.altKey&&(y.alt=!0),a.ctrlKey&&(y.control=!0),a.metaKey&&(y.meta=!0),a.shiftKey&&(y.shift=!0)),y}function Hm(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 _m=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function Of(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:_m.has(a.code)}function Nf(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var Qc=class Mu{static get scrim(){return Mu._scrim||(Mu._scrim=new Mu),Mu._scrim}static open(y){Mu.scrim.open(y)}static close(){Mu.scrim.close()}static get state(){return Mu.scrim.state}static get element(){return Mu.scrim.element}constructor(y){var b,E;this.lightDismiss=(b=y==null?void 0:y.lightDismiss)!=null?b:!0,this.translucent=(E=y==null?void 0:y.translucent)!=null?E:!1,this.state="closed"}get element(){if(this._element)return this._element;const y=document.createElement("div");return y.setAttribute("role","presentation"),y.style.position="fixed",y.style.contain="content",y.style.top="0",y.style.left="0",y.style.right="0",y.style.bottom="0",y.style.zIndex="var(--scrim-zindex, 10099)",y.style.outline="none",this.translucent?(y.style.background="rgba(255, 255, 255, .2)",y.style.backdropFilter="contrast(40%)"):y.style.background="transparent",this._element=y,y}open(y){var b;if(this.state!=="closed")return;this.state="opening",this.onDismiss=y==null?void 0:y.onDismiss,this.savedActiveElement=Nf();const{element:E}=this;((b=y==null?void 0:y.root)!=null?b:document.body).appendChild(E),E.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const ee=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const ae=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${ae+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:ae}=this;ae.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),ae.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",Nf()!==this.savedActiveElement&&((ee=(E=this.savedActiveElement)==null?void 0:E.focus)==null||ee.call(E)),ae.innerHTML="",this.state="closed"}handleEvent(y){this.lightDismiss&&(y.target===this._element&&y.type==="click"?(this.close(),y.preventDefault(),y.stopPropagation()):y.target===document&&(y.type==="touchmove"||y.type==="scroll")&&(this.close(),y.preventDefault(),y.stopPropagation()))}};function Wm(a,y,b){let E=null,ee=null,ae=!1,se=!1,ve=!1;const Ce=new AbortController,De=Ce.signal;return a.addEventListener("keydown",Fe=>{if(ae||Fe.key==="Process"||Fe.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(Fe.code)){E=null;return}E=Fe,ee=null,b.onKeystroke(Fe)?a.textContent="":E=null},{capture:!0,signal:De}),a.addEventListener("keypress",Fe=>{ae||(E&&ee&&b.onKeystroke(E),ee=Fe)},{capture:!0,signal:De}),a.addEventListener("compositionstart",Fe=>{a.textContent="",ae=!0,b.onCompositionStart(Fe.data)},{capture:!0,signal:De}),a.addEventListener("compositionupdate",Fe=>{ae&&b.onCompositionUpdate(Fe.data)},{capture:!0,signal:De}),a.addEventListener("compositionend",Fe=>{a.textContent="",ae&&(ae=!1,b.onCompositionEnd(Fe.data))},{capture:!0,signal:De}),a.addEventListener("beforeinput",Fe=>Fe.stopImmediatePropagation(),{signal:De}),a.addEventListener("input",Fe=>{var nt;if(!ae&&(a.textContent="",Fe.inputType!=="insertCompositionText")){if(Fe.inputType==="insertFromPaste"){Fe.preventDefault(),Fe.stopPropagation();return}b.onInput((nt=Fe.data)!=null?nt:""),Fe.preventDefault(),Fe.stopPropagation()}},{signal:De}),a.addEventListener("paste",Fe=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(Fe)||Fe.preventDefault(),Fe.stopImmediatePropagation()},{signal:De}),a.addEventListener("cut",Fe=>b.onCut(Fe),{capture:!0,signal:De}),a.addEventListener("copy",Fe=>b.onCopy(Fe),{capture:!0,signal:De}),a.addEventListener("blur",Fe=>{var nt,At;if(((At=(nt=Fe.relatedTarget)==null?void 0:nt._mathfield)==null?void 0:At.element)===y){a.focus({preventScroll:!0}),Fe.preventDefault(),Fe.stopPropagation();return}const tn=Qc.state;if(tn==="open"||tn==="opening"){Fe.preventDefault(),Fe.stopPropagation();return}if(Fe.relatedTarget===Fe.target.getRootNode().host){Fe.preventDefault(),Fe.stopPropagation();return}ve||se||(ve=!0,E=null,ee=null,b.onBlur(),ve=!1)},{capture:!0,signal:De}),a.addEventListener("focus",Fe=>{ve||se||(se=!0,b.onFocus(),se=!1)},{capture:!0,signal:De}),{dispose:()=>Ce.abort(),cancelComposition:()=>{ae&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!se&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Nf()===a,setAriaLabel:Fe=>a.setAttribute("aria-label",Fe),setValue:Fe=>{var nt;a.textContent=Fe,a.style.left="-1000px",(nt=window.getSelection())==null||nt.selectAllChildren(a)},moveTo:(Fe,nt)=>{a.style.top=`${nt}px`,a.style.left=`${Fe}px`}}}function zd(a){var y;if(!a||!Of(a))return"";let b;return a.key==="Unidentified"&&a.target&&(b=a.target.value),b=(y=b!=null?b:a.key)!=null?y:a.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(b)&&(b=""),b}function pp(a){a=Rm(a);const y=[];return a.ctrlKey&&y.push("ctrl"),a.metaKey&&y.push("meta"),a.altKey&&y.push("alt"),a.shiftKey&&y.push("shift"),y.length===0?`[${a.code}]`:(y.push(`[${a.code}]`),y.join("+"))}function Zm(a){if(dt()){const y=ye(),b=a.startsWith("!"),E=a.endsWith(y);if(b&&!E||!b&&E)return!0}return a==="!other"?!1:a==="other"}function jm(a,y,b){if(a.length===0)return"";const E=Fd(hp(pp(b))),ee=Fd({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(ye()),cmd:!1,win:!1});for(let ae=a.length-1;ae>=0;ae--)if((a[ae].key===E||a[ae].key===ee)&&(!a[ae].ifMode||a[ae].ifMode===y))return a[ae].command;return""}function mp(a){let y=a;return Ke(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function Um(a,y){let b=[];if(typeof y=="string"){const ae=zu[y];Ke(ae)?b=ae.slice():ae&&b.push(ae)}const E=mp(y),ee=new RegExp("^"+E.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const ae of a)ee.test(mp(ae.command))&&b.push(ae.key);return b.map(vh)}function Vm(a,y){if(a.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(a.ifPlatform))throw new Error(`Unexpected platform "${a.ifPlatform}" for keybinding ${a.key}`);if(a.ifLayout!==void 0&&(y.score===0||!a.ifLayout.includes(y.id)))return;const b=hp(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=ye()==="ios"?"ios":"macos"),b.win=!1,b.cmd=!1,b.meta=!0}if(b.win){if(E&&E!=="windows")throw new Error('Unexpected "win" modifier with platform "'+E+`"
|
|
|
"win" modifier can only be used with Windows platform.`);E="windows",b.win=!1,b.cmd=!1,b.meta=!0}if(E&&!Zm(E))return;if(/^\[.+\]$/.test(b.key))return me(we({},a),{key:Fd(b)});const ee=Pm(b.key,y);if(!ee)return me(we({},a),{key:Fd(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 ${Fd(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,me(we({},a),{key:Fd(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 ae=Vm(ee,y);if(!ae)continue;const se=E.find(ve=>ve.key===ae.key&&ve.ifMode===ae.ifMode);if(se)throw new Error(`Ambiguous key binding ${ee.key} (${yh(ee.command)}) matches ${se.key} (${yh(se.command)}) with the ${y.displayName} keyboard layout`);E.push(ae)}catch(ae){ae instanceof Error&&b.push(ae.message)}return[E,b]}var Ym=class extends Ga{constructor(){super("latex")}createAtom(a){return new Pl(a)}onPaste(a,y){if(!y)return!1;const b=typeof y=="string"?y:y.getData("application/x-latex")||y.getData("text/plain");return b&&a.model.contentWillChange({inputType:"insertFromPaste",data:b})?(a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b)&&(a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Qs(a)),a.startRecording(),!0):!1}insert(a,y,b){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b||(b={}),b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder");const{silenceNotifications:E}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ee=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Gs(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const ae=[];for(const Ce of y)ce.test(Ce)&&ae.push(new Pl(Ce));let se=a.at(a.position);if(se instanceof af&&(se=se.lastChild),!(se.parent instanceof af)){const Ce=new af("");se.parent.addChildAfter(Ce,se),se=Ce.firstChild}const ve=se.parent.addChildrenAfter(ae,se);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(ve)):ve&&(a.position=a.offsetOf(ve))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function Xm(a){return a.atoms.find(y=>y.type==="latexgroup")}function hf(a){var y,b;const E=a.atoms.find(ee=>ee.type==="latexgroup");return E?(b=(y=E.body)==null?void 0:y.filter(ee=>ee.type==="latex"))!=null?b:[]:[]}function gp(a,y){var b;let E=0,ee=!1;const ae=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;E<=ae&&!ee;){const Ce=a.at(E);ee=Ce instanceof Pl&&Ce.isSuggestion,ee||E++}if(!ee)return[void 0,void 0];let se=E,ve=!1;for(;se<=ae&&!ve;){const Ce=a.at(se);ve=!(Ce instanceof Pl&&Ce.isSuggestion),ve||se++}return[E-1,se-1]}new Ym;function Pf(a){const y=hf(a.model).filter(b=>b.isSuggestion);if(y.length!==0){a.model.position=a.model.offsetOf(y[0].leftSibling);for(const b of y)b.parent.removeChild(b)}}function pf(a,y){var b;const{model:E}=a;Pf(a);for(const Fe of hf(E))Fe.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){Hd(a);return}const ee=[];let ae=E.at(E.position);for(;ae&&ae instanceof Pl&&/^[a-zA-Z\*]$/.test(ae.value);)ae=ae.leftSibling;if(ae&&ae instanceof Pl&&ae.value==="\\")for(ee.push(ae),ae=ae.rightSibling;ae&&ae instanceof Pl&&/^[a-zA-Z\*]$/.test(ae.value);)ee.push(ae),ae=ae.rightSibling;const se=ee.map(Fe=>Fe.value).join(""),ve=en(a,se);if(ve.length===0){if(/^\\[a-zA-Z\*]+$/.test(se))for(const Fe of ee)Fe.isError=!0;Hd(a);return}const Ce=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=Ce<0?ve.length-1:Ce%ve.length;const De=ve[a.suggestionIndex];if(De!==se){const Fe=ee[ee.length-1];Fe.parent.addChildrenAfter([...De.slice(se.length-De.length)].map(nt=>new Pl(nt,{isSuggestion:!0})),Fe),pd(a,{interactive:!0})}Jm(a,ve)}function vp(a){const[y,b]=gp(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 Kd(a,y="accept",b){var E,ee;Hd(a);const ae=Xm(a.model);if(!ae)return!1;if(y==="accept-suggestion"||y==="accept-all"){const De=hf(a.model).filter(Fe=>Fe.isSuggestion);if(De.length!==0){for(const Fe of De)Fe.isSuggestion=!1;a.model.position=a.model.offsetOf(De[De.length-1])}if(y==="accept-suggestion")return De.length!==0}const ve=hf(a.model).filter(De=>!De.isSuggestion).map(De=>De.value).join(""),Ce=ae.leftSibling;return ae.parent.removeChild(ae),a.model.position=a.model.offsetOf(Ce),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(Ga.insert(a.model,ve,{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 Rf(a){var y;let b=document.getElementById(a);return b?b.dataset.refcount=Number(Number.parseInt((y=b.dataset.refcount)!=null?y:"0")+1).toString():(b=document.createElement("div"),b.setAttribute("aria-hidden","true"),b.dataset.refcount="1",b.id=a,document.body.append(b)),b}function bh(a){var y;const b=document.getElementById(a);if(!b)return;const E=Number.parseInt((y=b.getAttribute("data-refcount"))!=null?y:"0");E<=1?b.remove():b.dataset.refcount=Number(E-1).toString()}function Qm(a,y){const b=new ya({from:a.context}),E=new Nr({mode:"math",type:"root",body:Dl(y,{context:b})}),ee=Cs(lf(new ei(E.render(b),{classes:"ML__base"}),b));return fl(ee,{classes:"ML__latex"}).toMarkup()}function Jm(a,y){var b;if(y.length===0){Hd(a);return}let E="";for(const[ae,se]of y.entries()){const ve=se,Ce=Qm(a,se),De=Um(a.keybindings,ve).join("<br>");E+=`<li role="button" data-command="${ve}" ${ae===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${ve}</span><span class="ML__popover__command">${Ce}</span>`,De&&(E+=`<span class="ML__popover__keybinding">${De}</span>`),E+="</li>"}const ee=$m(a,`<ul>${E}</ul>`);xh()&&((b=ee.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var ae;ee&&!xh()&&(ee.classList.add("is-visible"),Ff(a),(ae=ee.querySelector(".ML__popover__current"))==null||ae.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function xh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function Ff(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(()=>Ff(a),32);return}const E=mc(a.field);if(!E)return;const ee=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,ae=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,se=window.innerWidth-document.documentElement.clientWidth,ve=window.innerHeight-document.documentElement.clientHeight,Ce=window.mathVirtualKeyboard.boundingRect.height,De=document.getElementById("mathlive-suggestion-popover");E.x+De.offsetWidth/2>ae-se?De.style.left=`${ae-De.offsetWidth-se}px`:E.x-De.offsetWidth/2<0?De.style.left="0":De.style.left=`${E.x-De.offsetWidth/2}px`;const Fe=E.y-E.height;ee-ve-Ce-E.y<Fe?(De.classList.add("ML__popover--reverse-direction"),De.classList.remove("top-tip"),De.classList.add("bottom-tip"),De.style.top=`${E.y-E.height-De.offsetHeight-15}px`):(De.classList.remove("ML__popover--reverse-direction"),De.classList.add("top-tip"),De.classList.remove("bottom-tip"),De.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 $m(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=Rf("mathlive-suggestion-popover"),uc("suggestion-popover"),uc("core"),b.addEventListener("pointerdown",E=>E.preventDefault()),b.addEventListener("click",E=>{let ee=E.target;for(;ee&&!ee.dataset.command;)ee=ee.parentElement;ee&&(Kd(a,"reject"),Ga.insert(a.model,ee.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),a.dirty=!0,a.focus())})),b.innerHTML=window.MathfieldElement.createHTML(y),b}function qm(){document.getElementById("mathlive-suggestion-popover")&&(bh("mathlive-suggestion-popover"),x("suggestion-popover"),x("core"))}function eg(){const a=String(new Error().stack).replace(/^Error.*\n/,"").split(`
|
|
|
`);if(a.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let y=a[1],b=y.match(/http.*\.ts[\?:]/);return b&&(y=a[2]),b=y.match(/(https?:.*):[0-9]+:[0-9]+/),b||(b=y.match(/at (.*(\.ts))[\?:]/),b||(b=y.match(/at (.*(\.mjs|\.js))[\?:]/))),b?b[1]:(console.error(a),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${y}").`),"")}var zf=null,yp,bp,Sh=((bp=(yp=globalThis==null?void 0:globalThis.document)==null?void 0:yp.currentScript)==null?void 0:bp.src)||eg();function xp(a){return Vu(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(zf===null)try{const y=yield fetch(Sh,{method:"HEAD"});y.status===200&&(zf=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${Sh}")`)}return new URL(a,zf!=null?zf:Sh).href})}function tg(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var yc="not-loaded";function ng(){return Vu(this,null,function*(){return yc="not-loaded",Kf()})}function Kf(){return Vu(this,null,function*(){var a;if(yc!=="not-loaded")return;if(yc="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){yc="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const b=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],E=Array.from(document.fonts).map(se=>se.family);if(b.every(se=>E.includes(se))){yc="ready";return}if(!window.MathfieldElement.fontsDirectory){yc="not-loaded";return}const ee=yield xp(window.MathfieldElement.fontsDirectory);if(!ee){document.body.classList.add("ML__fonts-did-not-load"),yc="error";return}const ae=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(se=>tg(se[0].replace(/-[a-zA-Z]+$/,""),`${ee}/${se[0]}`,se[1]));try{(yield Promise.all(ae.map(ve=>{try{return ve.load()}catch(Ce){}}))).forEach(ve=>document.fonts.add(ve)),yc="ready";return}catch(se){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ee}"`,{cause:se}),document.body.classList.add("ML__fonts-did-not-load")}yc="error"}})}function rg(a){let y=0;for(let b=0;b<a.length;b++)y=y*31+a.charCodeAt(b),y=y|0;return Math.abs(y)}function Qs(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{Ql(a)&&a.dirty&&(a.atomBoundsCache=new Map,pd(a,y),a.atomBoundsCache=void 0)})))}function ig(a,y){var b;y=y!=null?y:{};const E=new ya({from:me(we({},a.context),{atomIdsSettings:{seed:y.forHighlighting?rg(Nr.serialize([a.model.root],{expandMacro:!1,defaultMode:a.options.defaultMode})):"random",groupNumbers:(b=y.forHighlighting)!=null?b:!1},letterShapeStyle:a.options.letterShapeStyle}),mathstyle:a.options.defaultMode==="inline-math"?"textstyle":"displaystyle"}),ee=a.model.root.render(E);return fl(lf(ee,E),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function Sp(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 ae=ee.parent;for(;ae;)ae.containsCaret=!0,ae=ae.parent}else{const ee=b.getAtoms(b.selection,{includeChildren:!0});for(const ae of ee)ae.isSelected=!0}return ig(a,y).toMarkup()}function pd(a,y){if(!Ql(a))return;y!=null||(y={});const b=a.element.querySelector("[part=virtual-keyboard-toggle]");b&&(b.style.display=a.hasEditableContent?"":"none");const E=a.field;if(!E)return;const ee=a.isSelectionEditable&&a.hasFocus(),ae=E.classList.contains("ML__focused");ae&&!ee?E.classList.remove("ML__focused"):!ae&&ee&&E.classList.add("ML__focused");let se=Sp(a,y);const ve=a.element.querySelector("[part=menu-toggle]");if(ve&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?ve.style.display="none":ve.style.display=""),a.model.atoms.length<=1){const Ce=a.options.contentPlaceholder;Ce&&(se+=`<span part=placeholder class="ML__content-placeholder">${Bl(Ce)}</span>`)}E.innerHTML=window.MathfieldElement.createHTML(se),Hf(a,y.interactive),a.dirty=!1}function Hf(a,y){const b=a.field;if(!b)return;for(const ve of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))ve.remove();!(y!=null&&y)&&yc!=="error"&&yc!=="ready"&&setTimeout(()=>{yc==="ready"?Hf(a):setTimeout(()=>Hf(a),128)},32);const E=a.model,ee=b.offsetWidth,ae=b.getBoundingClientRect().width;let se=Math.floor(ae)/ee;if(se=isNaN(se)?1:se,E.selectionIsCollapsed){Ff(a,{deferred:!0});let ve=E.at(E.position);for(;ve&&ve.type!=="prompt"&&!(ve.containsCaret&&ve.displayContainsHighlight);)ve=ve.parent;if(ve!=null&&ve.containsCaret&&ve.displayContainsHighlight){const Ce=Ku(a,zc(a,ve),se);if(Ce){Ce.left/=se,Ce.right/=se,Ce.top/=se,Ce.bottom/=se;const De=document.createElement("div");De.classList.add("ML__contains-highlight"),De.style.position="absolute",De.style.left=`${Ce.left+1}px`,De.style.top=`${Math.ceil(Ce.top)}px`,De.style.width=`${Math.ceil(Ce.right-Ce.left)}px`,De.style.height=`${Math.ceil(Ce.bottom-Ce.top)}px`,b.insertBefore(De,b.childNodes[0])}}return}for(const ve of ag(Fo(a,{excludeAtomsWithBackground:!0}))){ve.left/=se,ve.right/=se,ve.top/=se,ve.bottom/=se;const Ce=document.createElement("div");Ce.classList.add("ML__selection"),Ce.style.position="absolute",Ce.style.left=`${ve.left}px`,Ce.style.top=`${ve.top}px`,Ce.style.width=`${Math.ceil(ve.right-ve.left)}px`,Ce.style.height=`${Math.ceil(ve.bottom-ve.top-1)}px`,b.insertBefore(Ce,b.childNodes[0])}}function ag(a){let y=[];for(const b of a){let E=!1;for(const ee of y)if(b.left===ee.left&&b.right===ee.right&&b.top===ee.top&&b.bottom===ee.bottom){E=!0;break}E||y.push(b)}a=y,y=[];for(const b of a){let E=0;for(const ee of a)if(b.left>=ee.left&&b.right<=ee.right&&b.top>=ee.top&&b.bottom<=ee.bottom&&(E+=1,E>1))break;E===1&&y.push(b)}return y}var wp=3,Jc;function dc(a,y){y=we({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Jc||(Jc={});for(const b of Object.keys(a))console.assert(!Jc[b],"Selector already defined: ",b),Jc[b]=me(we({},y),{fn:a[b]})}function wh(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return wh(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Jc[y]}function _d(a){var y;return(y=wh(a))==null?void 0:y.target}function og(a,y){var b;if(!y)return!1;let E,ee=[],ae=!1,se=!1;Ke(y)?(E=y[0],ee=y.slice(1)):E=y,E=E.replace(/-\w/g,De=>De[1].toUpperCase());const ve=Jc[E],Ce=ve==null?void 0:ve.target;if(Ce==="model"){if(!a.isSelectionEditable&&(ve!=null&&ve.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(E)&&(E!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(E)),/^complete/.test(E)||Pf(a),Jc[E].fn(a.model,...ee),pf(a),se=!0,ae=!0}else if(Ce==="virtual-keyboard")se=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,ae=!0;else if(Jc[E]){if(!a.isSelectionEditable&&(ve!=null&&ve.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),se=Jc[E].fn(a,...ee),ae=!0}else throw new Error(`Unknown command "${E}"`);return Ce!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||ve!=null&&ve.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),ve!=null&&ve.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),se&&Qs(a),ae}function sg(a,y){var b;if(!a)return!1;a.focus(),v0.keypressVibration&&We()&&navigator.vibrate(wp);const E=wh(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ee=a.executeCommand(y);return a.scrollIntoView(),ee}dc({performWithFeedback:(a,y)=>sg(a,y)});function lg(a){return pf(a,{atIndex:a.suggestionIndex+1}),!1}function cg(a){return pf(a,{atIndex:a.suggestionIndex-1}),!1}dc({complete:Kd},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),dc({nextSuggestion:lg,previousSuggestion:cg},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var _f="mathlive#virtual-keyboard-message";function Ch(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===_f}var ug=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(Ch(y)){if(!as(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");this.handleMessage(y.data)}}handleMessage(y){const{action:b}=y;if(b==="execute-command"){const{command:E}=y;_d(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:_f,action:y},b),this.targetOrigin)}},Cp={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:"αβγ",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>φ</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>ς</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>ϵ</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>ρ</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>τ</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>υ</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>θ</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>ι</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>ο</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>π</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>α</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>σ</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>δ</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>γ</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>η</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>ξ</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>κ</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>λ</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>ζ</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>χ</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>ψ</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>ω</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>β</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>ν</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>μ</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>ε</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>ϑ</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>ϰ</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>ϖ</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>ϱ</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"∞\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
|
|
|
.minimalist-backdrop {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
.minimalist-container {
|
|
|
--keycap-height: 40px;
|
|
|
--keycap-max-width: 53px;
|
|
|
--keycap-small-font-size: 12px;
|
|
|
background: var(--keyboard-background);
|
|
|
padding: 20px;
|
|
|
border-top-left-radius: 8px;
|
|
|
border-top-right-radius: 8px;
|
|
|
border: 1px solid var(--keyboard-border);
|
|
|
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
|
|
|
}
|
|
|
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},Wf={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"\xE0","\xE1","\xE2","\xE4","\xE6"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"\xE7"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn\u2019t"},"\xE8","\xE9","\xEA","\xEB"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"\xEC","\xED","\xEE","\xEF"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"\xF1"],o:["\xF8","\u0153","\xF2","\xF3","\xF4","\xF6","\u0153"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["\xF9","\xFA","\xFB","\xFC"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["\xFD","\xFF"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space<br>\u207B\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space<br>\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space<br>\u2074\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space<br>\u2075\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"\u2153 em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"\xBD em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]},mf;function Ep(a,y){var b,E,ee;const ae=Wu.singleton;if(!ae)return;const se=Wd(a),ve=(E=(b=ae.getKeycap(se==null?void 0:se.id))==null?void 0:b.variants)!=null?E:"";if(typeof ve=="string"&&!Mp(ve)||Array.isArray(ve)&&ve.length===0){y==null||y();return}const Ce={};let De="";for(const Ar of fg(ve)){const hi=kp(Ar),Cr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);Ce[Cr]=hi;const[$r,yi]=Zf(hi);De+=`<div id=${Cr} class="item ${yi}">${$r}</div>`}const Fe=document.createElement("div");Fe.setAttribute("aria-hidden","true"),Fe.className="MLK__variant-panel",Fe.style.height="auto";const nt=Object.keys(Ce).length;let At=5;nt===1?At=1:nt===2||nt===4?At=2:nt===3||nt===5||nt===6?At=3:nt>=7&&nt<14&&(At=4),Fe.style.width=`calc(var(--variant-keycap-length) * ${At} + 12px)`,Fe.innerHTML=v0.createHTML(De),Qc.open({root:(ee=ae==null?void 0:ae.container)==null?void 0:ee.querySelector(".ML__keyboard"),child:Fe}),mf=new AbortController;const{signal:tn}=mf,fn=a==null?void 0:a.getBoundingClientRect();if(fn){fn.top-Fe.clientHeight<0&&(Fe.style.width="auto",nt<=6?Fe.style.height="56px":nt<=12?Fe.style.height="108px":nt<=18?Fe.style.height="205px":Fe.classList.add("compact"));const Ar=Math.max(0,Math.min(window.innerWidth-Fe.offsetWidth,(fn.left+fn.right-Fe.offsetWidth)/2)),hi=fn.top-Fe.clientHeight+5;Fe.style.transform=`translate(${Ar}px, ${hi}px)`,Fe.classList.add("is-visible"),requestAnimationFrame(()=>{Fe.addEventListener("pointerup",Cr=>{const $r=Wd(Cr.target);!($r!=null&&$r.id)||!Ce[$r.id]||(Eh(Ce[$r.id]),gf(),y==null||y(),Cr.preventDefault())},{capture:!0,passive:!1,signal:tn}),Fe.addEventListener("pointerenter",Cr=>{const $r=Wd(Cr.target);!($r!=null&&$r.id)||!Ce[$r.id]||$r.classList.add("is-active")},{capture:!0,signal:tn}),Fe.addEventListener("pointerleave",Cr=>{const $r=Wd(Cr.target);!($r!=null&&$r.id)||!Ce[$r.id]||$r.classList.remove("is-active")},{capture:!0,signal:tn}),window.addEventListener("pointercancel",()=>{gf(),y==null||y()},{signal:tn}),window.addEventListener("pointerup",()=>{gf(),y==null||y()},{signal:tn})})}}function gf(){mf==null||mf.abort(),mf=null,Qc.state==="open"&&Qc.close()}function dg(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(Ge))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+Ge[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(Ze))y.push({class:"swatch-button",label:'<span style="background:'+Ze[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function Mp(a){return Wf[a]!==void 0}function fg(a){var y;return typeof a!="string"?a:(Wf[a]||(Wf[a]=(y=dg(a))!=null?y:[]),Wf[a])}function hg(a){return typeof a=="string"?a:Object.entries(a).map(([y,b])=>`${y}:${b} !important`).join(";")}function pg(a){return Object.keys(a).map(y=>`${y} {${hg(a[y])}}`).join("")}function vf(a){if(!a)return"";const y=new ya,b=new Nr({mode:"math",type:"root",body:Dl(a,{context:y,args:ee=>ee==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=Cs(lf(new ei(b.render(y),{classes:"ML__base"}),y));return fl(E,{classes:"ML__latex"}).toMarkup()}function yf(a){var y;if(Array.isArray(a))return a.map(E=>yf(E)).flat();const b=typeof a=="string"?{markup:a}:a;return"rows"in b&&Array.isArray(b.rows)&&(b.rows=b.rows.map(E=>E.map(ee=>kp(ee)))),(y=b.id)!=null||(b.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[b]}function mg(){var a,y;let E=window.mathVirtualKeyboard.alphabeticLayout;if(E==="auto"){const ve=ff();ve&&(E=ve.virtualLayout),(!E||E==="auto")&&(E=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[qe.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~"]},ae=(y=ee[E])!=null?y:ee.qwerty,se=E==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const ve of ae){const Ce=[];for(const De of ve)/[a-z]/.test(De)?Ce.push({label:De,class:"hide-shift",shift:{label:De.toUpperCase()},variants:Mp(De)?De:void 0}):De==="~"?E!=="dvorak"?Ce.push("[backspace]"):Ce.push({label:"[backspace]",width:1}):De==="^"?Ce.push("[shift]"):De===" "&&Ce.push("[separator-5]");se.push(Ce)}return se.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:yf({rows:se})}}function Ap(a){if(a==="alphabetic")return mg();if(typeof a=="string")return console.assert(Cp[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),Ap(Cp[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:ae}=ee,se=ct(ee,["rows"]);y=me(we({},se),{layers:yf({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ee=a,{markup:ae}=ee,se=ct(ee,["markup"]);y=me(we({},se),{layers:yf(a.markup)})}else y=we({},a),"layers"in a?y.layers=yf(a.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let b=!1,E=!1;for(const ee of y.layers)if(ee.rows)for(const ae of ee.rows.flat()){Zd(ae)&&(b=!0);const se=ae.command;typeof se=="string"&&["undo","redo","cut","copy","paste"].includes(se)&&(E=!0)}return(!("displayShiftedKeycaps"in a)||a.displayShiftedKeycaps===void 0)&&(y.displayShiftedKeycaps=b),(!("displayEditToolbar"in a)||a.displayEditToolbar===void 0)&&(y.displayEditToolbar=!E),y}function gg(a,y){var b,E;let ee='<div class="left">';if(a.normalizedLayouts.length>1)for(const[ae,se]of a.normalizedLayouts.entries()){const ve=se,Ce=[ae===y?"selected":"layer-switch"];ve.tooltip&&Ce.push("MLK__tooltip"),ve.labelClass&&Ce.push(...ve.labelClass.split(" ")),ee+=`<div class="${Ce.join(" ")}"`,ve.tooltip&&(ee+=" data-tooltip='"+((b=rt(ve.tooltip))!=null?b:ve.tooltip)+"' "),ae!==y&&(ee+=`data-layer="${ve.layers[0].id}"`),ee+=`>${(E=ve.label)!=null?E:"untitled"}</div>`}return ee+="</div>",ee}function vg(a,y){let b="";if(a.editToolbar==="none")return"";const ee=[];y.selectionIsCollapsed?ee.push("undo","redo","pasteFromClipboard"):ee.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const ae={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${rt("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${rt("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${rt("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${rt("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${rt("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return b+=ee.map(se=>ae[se]).join(""),b}function yg(a){for(const y of a)bg(y)}function bg(a){const y=Wu.singleton;if(!y)return;const b={};if(!a.id){if(a.hasAttribute("data-label")&&(b.label=a.dataset.label),a.hasAttribute("data-latex")&&(b.latex=a.dataset.latex),a.hasAttribute("data-key")&&(b.key=a.dataset.key),a.hasAttribute("data-insert")&&(b.insert=a.dataset.insert),a.hasAttribute("data-variants")&&(b.variants=a.dataset.variants),a.hasAttribute("data-aside")&&(b.aside=a.dataset.aside),a.className&&(b.class=a.className),!b.label&&!b.latex&&!b.key&&!b.insert&&(b.latex=a.innerText,b.label=a.innerHTML),a.hasAttribute("data-command"))try{b.command=JSON.parse(a.dataset.command)}catch(E){}a.id=y.registerKeycap(b)}if(!a.innerHTML){const[E,ee]=Zf(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function xg(){uc("virtual-keyboard"),uc("core"),Kf()}function Sg(){x("core"),x("virtual-keyboard")}var wg=`<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 Cg(a){a.resetKeycapRegistry(),xg();const y=document.createElement("div");y.className="ML__keyboard";const b=document.createElement("div");b.className="MLK__plate",b.innerHTML=window.MathfieldElement.createHTML(wg+a.normalizedLayouts.map((se,ve)=>Eg(a,se,ve)).join(""));const E=document.createElement("div");E.className="MLK__backdrop",E.appendChild(b),y.appendChild(E),y.addEventListener("pointerdown",Ag,{passive:!1});const ee=y.querySelectorAll(".ML__edit-toolbar");if(ee)for(const se of ee)se.addEventListener("click",ve=>{var Ce,De;let Fe=ve.target,nt="";for(;Fe&&!nt;)nt=(Ce=Fe==null?void 0:Fe.getAttribute("data-command"))!=null?Ce:"",Fe=(De=Fe==null?void 0:Fe.parentElement)!=null?De:null;nt&&a.executeCommand(JSON.parse(nt))});yg(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const ae=y.querySelectorAll(".MLK__layer");console.assert(ae.length>0,"No virtual keyboards available");for(const se of ae)se.addEventListener("pointerdown",ve=>ve.preventDefault());return a.currentLayer=a.latentLayer,y}function Eg(a,y,b){const E=[];if(!("layers"in y))return"";for(const ee of y.layers)E.push(`<div tabindex="-1" class="MLK__layer" id="${ee.id}">`),(a.normalizedLayouts.length>1||y.displayEditToolbar)&&(E.push("<div class='MLK__toolbar' role='toolbar'>"),E.push(gg(a,b)),y.displayEditToolbar&&E.push('<div class="ML__edit-toolbar right"></div>'),E.push("</div>")),E.push(Mg(a,ee)),E.push("</div>");return E.join("")}function Mg(a,y){if(typeof y=="string")return y;let b="";if(typeof y.style=="string"?b+=`<style>${y.style}</style>`:typeof y.style=="object"&&(b+=`<style>${pg(y.style)}</style>`),y.backdrop&&(b+=`<div class='${y.backdrop}'>`),y.container&&(b+=`<div class='${y.container}'>`),y.rows){b+="<div class=MLK__rows>";for(const E of y.rows){b+="<div dir='ltr' class=MLK__row>";for(const ee of E)if(ee){const ae=a.registerKeycap(ee),[se,ve]=Zf(ee);/(^|\s)separator/.test(ve)?b+=`<div class="${ve}"`:b+=`<div tabindex="-1" id="${ae}" class="${ve}"`,ee.tooltip&&(b+=` data-tooltip="${ee.tooltip}"`),b+=`>${se}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function Zf(a,y={shifted:!1}){var b,E,ee,ae,se,ve,Ce;let De="",Fe=(b=a.class)!=null?b:"";if(y.shifted&&Zd(a)&&(Fe+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?De=vf(a.shift):typeof a.shift=="object"&&(De=a.shift.label?a.shift.label:(E=vf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?E:""),typeof a.shift=="object"&&(Fe=(ae=(ee=a.shift.class)!=null?ee:a.class)!=null?ae:"");else{if(De=a.label?a.label:(se=vf(a.latex||a.insert||"")||a.key)!=null?se:"",a.shift){let nt;typeof a.shift=="string"?nt=vf(a.shift):a.shift.label?nt=a.shift.label:nt=(ve=vf(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?ve:"",De+=`<span class="MLK__shift">${nt}</span>`}a.aside&&(De+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(Fe)&&(Fe+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(Fe)||(Fe+=" MLK__keycap"),!/\bw[0-9]+\b/.test(Fe)&&a.width&&(Fe+=(Ce={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?Ce:""),[De,Fe||"MLK__keycap"]}var md={"[left]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-left /></svg>",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-left /></svg>",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-right /></svg>",command:["performWithFeedback","moveToNextChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-right /></svg>",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"\u2191",command:["performWithFeedback","moveUp"],shift:{label:"\u219F",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"\u2193",command:["performWithFeedback","moveDown"],shift:{label:"\u21A1",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"<svg class=svg-glyph><use xlink:href=#circle-plus /></svg>",command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:"<svg class=svg-glyph-lg><use xlink:href=#svg-keyboard-down /></svg>"},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"−",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"÷"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"×",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 kp(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!md[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&md[a.label]&&(b=me(we(we({},md[a.label]),a),{label:md[a.label].label})),"key"in a&&a.key&&md[a.key]&&(b=me(we(we({},md[a.key]),a),{key:md[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=we(we({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=we(we({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=we(we({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=we(we({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var bf;function Ag(a){var y;if(a.button!==0)return;const b=Wu.singleton;if(!b)return;let E=a.target;for(;E&&!E.getAttribute("data-layer");)E=E.parentElement;if(E){b.currentLayer=(y=E.getAttribute("data-layer"))!=null?y:"",a.preventDefault();return}const ee=Wd(a.target);if(!(ee!=null&&ee.id))return;const ae=b.getKeycap(ee.id);if(!ae)return;console.assert(a.type==="pointerdown");const se=new AbortController,ve=se.signal;ee.classList.add("is-pressed"),ee.addEventListener("pointerenter",jf(se),{capture:!0,signal:ve}),ee.addEventListener("pointerleave",jf(se),{capture:!0,signal:ve}),ee.addEventListener("pointercancel",jf(se),{signal:ve}),ee.addEventListener("pointerup",jf(se),{signal:ve}),Zd(ae)&&(ee.classList.add("is-active"),b.shiftPressCount++),ae.variants&&(bf&&clearTimeout(bf),bf=setTimeout(()=>{ee.classList.contains("is-pressed")&&(ee.classList.remove("is-pressed"),ee.classList.add("is-active"),a.target&&"releasePointerCapture"in a.target&&a.target.releasePointerCapture(a.pointerId),Ep(ee,()=>{se.abort(),ee==null||ee.classList.remove("is-active")}))},300)),a.preventDefault()}function jf(a){return y=>{const b=Wd(y.target);if(!(b!=null&&b.id))return;const E=Wu.singleton;if(!E)return;const ee=E.getKeycap(b.id);if(ee){if(y.type==="pointerenter"&&y.target===b&&y.isPrimary&&b.classList.add("is-pressed"),y.type==="pointercancel"){b.classList.remove("is-pressed"),Zd(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted)),a.abort();return}if(y.type==="pointerleave"&&y.target===b){b.classList.remove("is-pressed"),Zd(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){bf&&clearTimeout(bf),Zd(ee)?b.classList.toggle("is-active",E.isShifted):b.classList.contains("is-pressed")&&(b.classList.remove("is-pressed"),E.isShifted&&ee.shift?typeof ee.shift=="string"?E.executeCommand(["insert",ee.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):Eh(ee.shift):Eh(ee),E.shiftPressCount===1&&!y.shiftKey&&(E.shiftPressCount=0)),a.abort(),y.preventDefault();return}}}}function Eh(a){var y;let b=a.command;!b&&a.insert&&(b=["insert",a.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!b&&a.key&&(b=["typedText",a.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!b&&a.latex&&(b=["insert",a.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),b||(b=["typedText",a.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),(y=Wu.singleton)==null||y.executeCommand(b)}function kg(a){if(a.nodeType!==1)return!1;const y=a.classList;return y.contains("MLK__keycap")||y.contains("shift")||y.contains("action")||y.contains("fnbutton")||y.contains("bigfnbutton")}function Wd(a){if(!a)return;let y=a;for(;y&&!kg(y);)y=y.parentElement;return y!=null?y:void 0}function Zd(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var Wu=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 ae=ee.target;ae!=null&&ae.isConnected&&setTimeout(()=>{const se=Lp();se&&!se.readOnly&&se.mathVirtualKeyboardPolicy==="auto"&&Xe()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ee=>{ee.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{Lp()||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=>Ap(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[ae,se]=Zf(ee,{shifted:this.isShifted});E.innerHTML=window.MathfieldElement.createHTML(ae),E.className=se}}}show(y){var b;if(this._visible)return;const E=this.container;if(E&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const ee=this._element.getElementsByClassName("MLK__plate")[0];if(ee&&this.observer.observe(ee),E===window.document.body){const ae=E.style.paddingBottom;this.originalContainerBottomPadding=ae;const se=ee.offsetHeight-1;E.style.paddingBottom=ae?`calc(${ae} + ${se}px)`:`${se}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,y!=null&&y.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var ee;return(ee=this._element)==null?void 0:ee.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(y){var b;const E=this.container;if(E&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const ee=this._element.getElementsByClassName("MLK__plate")[0];ee&&this.observer.unobserve(ee),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),gf(),Sg(),(b=this._element)==null||b.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(E.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var y,b;return(b=(y=this.element)==null?void 0:y.offsetHeight)!=null?b:0}buildAndAttachElement(){var y;console.assert(!this.element),this.element=Cg(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",b=>{b.shiftKey||((b.ctrlKey||b.button===2)&&Ep(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(Ch(y)){if(!as(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");y.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:y.data.action!=="update-setting"&&y.data.action!=="proxy-created"&&y.data.action!=="execute-command"&&(console.assert(y.source!==void 0),this.connectedMathfieldWindow=y.source),this.handleMessage(y.data,y.source)}if(this._element)switch(y.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":y.button!==2&&y.preventDefault();break;case"keydown":{y.key==="Shift"&&!y.repeat&&(this.shiftPressCount=1);break}case"keyup":{(y.key==="Shift"||!y.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(y,b){const{action:E}=y;if(E==="execute-command"){const{command:ee}=y,ae=_d(ee);if(window.top!==void 0&&ae!=="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:_f,action:y},b)}));return}if(E)E.postMessage(we({type:_f,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 ae of ee)this.dispatchEvent(new KeyboardEvent("keydown",{key:ae,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:ae,bubbles:!0}))}}stateWillChange(y){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:y},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(y){const b=this._element;if(!b)return;b.classList.toggle("is-math-mode",y.mode==="math"),b.classList.toggle("is-text-mode",y.mode==="text"),b.classList.toggle("can-undo",y.canUndo),b.classList.toggle("can-redo",y.canRedo),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-paste",!0);const E=b.querySelectorAll(".ML__edit-toolbar");if(E)for(const ee of E)ee.innerHTML=vg(this,y)}update(y){this._style=y.style,this.updateToolbar(y)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(y){let b,E=[],ee=_d(y);return Ke(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ee=_d(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,ae=>ae[1].toUpperCase()),ee==="virtual-keyboard"?Jc[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 Lp(){var a,y;let b=Nf(),E=null;for(;b;){if("host"in b&&((y=(a=b.host)==null?void 0:a.tagName)==null?void 0:y.toLowerCase())==="math-field"){E=b.host;break}b=b.parentNode}return E}if(dt()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=Wu.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>ug.singleton,configurable:!0});function Uf(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const E=a.scriptDepth;if(Ke(E))y.scriptDepth=[E[0],E[1]];else if(typeof E=="number")y.scriptDepth=[E,E];else if(typeof E=="string"){const[ae,se]=E.split(",").map(ve=>parseInt(ve.trim()));y.scriptDepth=[ae,se]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ee=a.mathVirtualKeyboardPolicy.toLowerCase();if(ee==="sandboxed"){if(window!==window.top){const ae=Wu.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>ae})}ee="manual"}y.mathVirtualKeyboardPolicy=ee;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?qe.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=xt(a.macros);break;default:Ke(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=we({},a[b]):y[b]=a[b]}return y}function gd(a,y){let b;typeof y=="string"?b=[y]:y===void 0?b=Object.keys(a):b=y;const E={};for(const ee of b)a[ee]===null?E[ee]=null:Ke(a[ee])?E[ee]=[...a[ee]]:typeof a[ee]=="object"&&!(a[ee]instanceof Element)&&ee!=="computeEngine"?E[ee]=we({},a[ee]):E[ee]=a[ee];return typeof y=="string"?E[y]:E}function Vf(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:ft,backgroundColorMap:Ne,letterShapeStyle:qe.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:Od,inlineShortcuts:mu,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:sd,value:""}}function Dp(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function Zu(a,y){!a||!y||(Ke(a)?a.forEach(b=>Zu(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),Zu(a.body,y),Zu(a.above,y),Zu(a.below,y),Zu(a.subscript,y),Zu(a.superscript,y)))}function Mh(a,y,b,E){function ee(se,ve){for(const Ce of ae)if(Ce.style[se]!==ve)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const ae=a.getAtoms(y,{includeChildren:!0});E.operation==="toggle"&&(b.color&&ee("color",b.color)&&(b.color="none",delete b.verbatimColor),b.backgroundColor&&ee("backgroundColor",b.backgroundColor)&&(b.backgroundColor="none",delete b.verbatimBackgroundColor),b.fontFamily&&ee("fontFamily",b.fontFamily)&&(b.fontFamily="none"),b.fontSeries&&ee("fontSeries",b.fontSeries)&&(b.fontSeries="auto"),b.fontShape&&ee("fontShape",b.fontShape)&&(b.fontShape="auto"),b.fontSize&&ee("fontSize",b.fontSize)&&(b.fontSize=Ui),b.variant&&ee("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ee("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const se of ae)se.applyStyle(b);return!0}function Lg(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 xu(y,{mode:b.mode});ee.caret=E,b.parent.addChildAfter(ee,b),a.position+=1}}function Dg(a){const y=a.at(a.position);y.type==="composition"&&(y.parent.removeChild(y),a.position-=1)}gt(["math","displaymath"],Dc),gt("center",Dc),It("displaylines","",{parse:a=>{const y=[];let b=[];a.beginContext({tabular:!0});do{if(a.end()||a.match("<}>"))break;a.matchColumnSeparator()||a.matchRowSeparator()?(y.push([b]),b=[]):b.push(...a.scan(E=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(E)))}while(!0);return a.endContext(),y.push([b]),y},createAtom:a=>new to("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),zt("array","{columns:colspec}",(a,y,b,E)=>new to(a,Ah(y),b,{columns:E[0],mathstyleName:"textstyle"})),zt(["equation","equation*","subequations"],"",(a,y,b)=>new to(a,Ah(y),b,{columns:[{align:"c"}]})),zt(["multline","multline*"],"",Dc),zt(["align","align*","aligned","eqnarray"],"",Dc),zt("split","",Dc),zt(["gather","gathered"],"",Dc),zt(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",Dc),zt(["smallmatrix","smallmatrix*"],"[columns:colspec]",Dc),zt(["cases","dcases","rcases"],"",Dc);function Bg(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function Ah(a,y=1){return Bg(a)?Array(y).fill([[new Nr({type:"first"}),new Pa]]):a.map(b=>b.length===0?[[new Nr({type:"first"})]]:b.map(E=>E.length===0?[new Nr({type:"first"})]:(E[0].type!=="first"&&E.unshift(new Nr({type:"first"})),E)))}function Dc(a,y=[[[]]],b=[],E=[]){switch(y=Ah(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new to(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new to(a,y,b,{mathstyleName:"textstyle"});case"center":return new to(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new to(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new to(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new to(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new to(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:vd(E[0])});case"bmatrix":case"bmatrix*":return new to(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:vd(E[0])});case"Bmatrix":case"Bmatrix*":return new to(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:vd(E[0])});case"vmatrix":case"vmatrix*":return new to(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:vd(E[0])});case"Vmatrix":case"Vmatrix*":return new to(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:vd(E[0])});case"matrix":case"matrix*":return new to(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:vd(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new to(a,y,b,{mathstyleName:"scriptstyle",columns:vd(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new to(a,y,b,{mathstyleName:a==="dcases"?"displaystyle":"textstyle",arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",columns:[{align:"l"},{gap:1},{align:"l"}]});case"rcases":return new to(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new to(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ee=0;for(const ve of y)ee=Math.max(ee,ve.length);const ae=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let se=2;for(;se<ee;)ae.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),se+=2;return ae.push({gap:0}),new to(a,y,b,{arraycolsep:0,columns:ae,minColumns:2})}}return new to(a,y,b,{mathstyleName:"textstyle"})}function vd(a){return a!=null?a:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function Ig(a,y){let b=a.at(a.position);for(;b&&!(b.parent instanceof to);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof to)){const E=a.at(a.position);if(b=E,!b.parent.parent){let ee=a.extractAtoms([a.position,a.lastOffset]),ae=a.extractAtoms([0,a.position]);ae.length===0&&(ae=Xf()),ee.length===0&&(ee=Xf());let se;return y.endsWith("column")?(se=Dc("split",[[ae,ee]]),a.root=se,yd(se,0,0)?bd(a,se,0,0):yd(se,0,1)?bd(a,se,0,1):a.position=a.offsetOf(E)):(se=Dc("lines",[[ae],[ee]]),a.root=se,yd(se,0,0)?bd(a,se,0,0):yd(se,1,0)?bd(a,se,1,0):a.position=a.offsetOf(E)),[void 0,[0,0]]}if(b.parent instanceof Jo){const ee=b.parent;let ae=a.extractAtoms([a.position,a.offsetOf(ee.lastChild)]),se=a.extractAtoms([a.offsetOf(ee.firstChild),a.position]);se.length===0&&(se=Xf()),ae.length===0&&(ae=Xf());let ve="pmatrix";const Ce=ee.leftDelim,De=ee.rightDelim;Ce==="("&&(De===")"||De==="?")?ve="pmatrix":(Ce==="["||Ce==="\\lbrack")&&(De==="]"||De==="\\rbrack"||De==="?")?ve="bmatrix":Ce==="\\vert"&&De==="\\vert"?ve="vmatrix":Ce==="\\Vert"&&De==="\\Vert"?ve="Vmatrix":(Ce==="{"||Ce==="\\lbrace")&&(De==="."||De==="?")&&(ve="cases");const Fe=Dc(ve,y.endsWith("column")?[[se,ae]]:[[se],[ae]]);return ee.parent.addChildBefore(Fe,ee),ee.parent.removeChild(ee),yd(Fe,0,0)?bd(a,Fe,0,0):y.endsWith("column")?yd(Fe,0,1)?bd(a,Fe,0,1):a.position=a.offsetOf(b):yd(Fe,1,0)?bd(a,Fe,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof to?[b.parent,b.parentBranch]:[void 0,[0,0]]}function yd(a,y,b){const E=a.getCell(y,b);return!E||E.length!==2?!1:E[1].type==="placeholder"}function Tg(a,y,b,E){const ee=y.getCell(b,E);return ee?[a.offsetOf(ee[0]),a.offsetOf(ee[ee.length-1])]:-1}function bd(a,y,b,E){const ee=Tg(a,y,b,E);typeof ee!="number"&&a.setSelection(ee)}function Gf(a,y,b,E,ee){const ae=y.getCell(b,E);ae&&a.setPositionHandlingPlaceholder(a.offsetOf(ae[ee==="start"?0:ae.length-1]))}function Yf(a,y){const[b,[E,ee]]=Ig(a,y);if(b)switch(y){case"after row":b.addRowAfter(E),Gf(a,b,E+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ee),Gf(a,b,E,ee+1,"end");break;case"before row":b.addRowBefore(E),Gf(a,b,E,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ee),Gf(a,b,E,ee,"start");break}}function Bp(a){return a.contentWillChange({inputType:"insertText"})?(Yf(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Og(a){return a.contentWillChange({inputType:"insertText"})?(Yf(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Ip(a){return a.contentWillChange({inputType:"insertText"})?(Yf(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Ng(a){return a.contentWillChange({inputType:"insertText"})?(Yf(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Tp(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),ae=ee.type==="array"?ee:a.parentEnvironment;return ae.environmentName=y,ae.leftDelim=b,ae.rightDelim=E,a.contentDidChange({}),!0}function Op(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof to);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof to){const E=b.parent,ee=b.parentBranch;let ae;switch(y){case"row":if(E.rowCount>1){E.removeRow(ee[0]);const se=E.getCell(Math.max(0,ee[0]-1),ee[1]);ae=a.offsetOf(se[se.length-1])}break;case"column":if(E.colCount>E.minColumns){E.removeColumn(ee[1]);const se=E.getCell(ee[0],Math.max(0,ee[1]-1));ae=a.offsetOf(se[se.length-1])}break}ae&&a.setPositionHandlingPlaceholder(ae)}}function Pg(a){return a.contentWillChange({inputType:"deleteContent"})?(Op(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Rg(a){return a.contentWillChange({inputType:"deleteContent"})?(Op(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}dc({addRowAfter:Bp,addColumnAfter:Ip,addRowBefore:Og,addColumnBefore:Ng,removeRow:Pg,removeColumn:Rg,setEnvironment:Tp},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Xf(){return[new Pa]}var Np=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}};Np.maximumDepth=1e3;var Fg=Np;function kh(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 ae=y,se;do se=a.at(ae).mode==="text"&&de.test(a.at(ae).value),ae+=E;while(a.at(ae)&&se);ee=a.at(ae)?ae-2*E:ae-E}else if(/\s/.test(a.at(y).value)){let ae=y;for(;a.at(ae)&&a.at(ae).mode==="text"&&/\s/.test(a.at(ae).value);)ae+=E;if(!a.at(ae))ee=ae-E;else{let se=!0;do se=a.at(ae).mode==="text"&&!/\s/.test(a.at(ae).value),ae+=E;while(a.at(ae)&&se);ee=a.at(ae)?ae-2*E:ae-E}}else{let ae=y;for(;a.at(ae)&&a.at(ae).mode==="text"&&!/\s/.test(a.at(ae).value);)ae+=E;ee=a.at(ae)?ae:ae-E;let se=!0;for(;a.at(ae)&&se;)se=a.at(ae).mode==="text"&&/\s/.test(a.at(ae).value),se&&(ee=ae),ae+=E;ee=a.at(ae)?ae-2*E:ae-E}return ee-(E>0?0:1)}function jd(a,y,b){var E,ee,ae,se,ve,Ce,De;const Fe=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let nt=a.at(a.position);if(y==="forward"&&(nt.type==="subsup"?(nt=nt.rightSibling,nt||(nt=a.at(a.position+1))):nt=a.at(a.position+1)),!nt)return a.announce("plonk"),!1;let At=a.offsetOf(nt);if(nt instanceof cc)At=kh(a,At,y);else if(nt instanceof Pl)if(nt.isSuggestion)for(console.assert(y==="forward");nt&&nt instanceof Pl;)nt.isSuggestion=!1,At=a.offsetOf(nt),nt=nt.rightSibling;else if(y==="forward"){if(nt=nt.rightSibling,!nt||!(nt instanceof Pl))return a.announce("plonk"),!1;for(;nt&&nt instanceof Pl&&/[a-zA-Z\*]/.test(nt.value);)At=a.offsetOf(nt),nt=nt.rightSibling}else{if(nt=nt.leftSibling,!nt||!(nt instanceof Pl))return a.announce("plonk"),!1;for(;nt&&nt instanceof Pl&&/[a-zA-Z\*]/.test(nt.value);)At=a.offsetOf(nt),nt=nt.leftSibling}else if(y==="forward"&&nt.type==="mopen"){let tn=0;do nt.type==="mopen"?tn+=1:nt.type==="mclose"&&(tn-=1),nt=nt.rightSibling;while(!nt.isLastSibling&&tn!==0);At=a.offsetOf(nt.leftSibling)}else if(y==="backward"&&nt.type==="mclose"){let tn=0;do nt.type==="mopen"?tn+=1:nt.type==="mclose"&&(tn-=1),nt=nt.leftSibling;while(!nt.isFirstSibling&&tn!==0);At=a.offsetOf(nt)}else if(y==="backward")if(nt.type==="first")for(;At>0&&nt.type==="first";)At-=1,nt=a.at(At);else{const tn=nt.type;nt.type==="subsup"&&(At=a.offsetOf(a.at(At).leftSibling)),At-=1;let fn=(ee=a.at(At))==null?void 0:ee.type;for(;At>=0&&fn===tn;)((ae=a.at(At))==null?void 0:ae.type)==="subsup"?At=a.offsetOf(a.at(At).leftSibling):At-=1,fn=a.at(At).type}else{const{type:tn}=nt;let fn=(se=a.at(At))==null?void 0:se.type;const{lastOffset:Ar}=a;for(;At<=Ar&&(fn===tn||fn==="subsup");){for(;((ve=a.at(At).rightSibling)==null?void 0:ve.type)==="subsup";)At=a.offsetOf(a.at(At).rightSibling);At+=1,fn=(Ce=a.at(At))==null?void 0:Ce.type}At-=1}if((De=b==null?void 0:b.extend)!=null&&De){if(!a.setSelection(a.anchor,At))return a.announce("plonk"),!1}else{if(At===a.position)return a.announce("plonk"),!1;a.position=At}return a.announce("move",Fe),a.mathfield.stopCoalescingUndo(),!0}function $c(a,y,b){var E,ee;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[ve,Ce]=gp(a);ve!==void 0&&Ce!==void 0&&a.deleteAtoms([ve,Ce])}if(y==="upward")return Kg(a,b);if(y==="downward")return Hg(a,b);if(b.extend){let ve=Qf(a,a.position,y);ve<0&&(ve=0),ve>a.lastOffset&&(ve=a.lastOffset);const Ce=a.setSelection(a.anchor,ve);return a.mathfield.stopCoalescingUndo(),Ce}if(a.selectionIsPlaceholder){a.collapseSelection(y);const ve=$c(a,y);return a.mathfield.stopCoalescingUndo(),ve}let ae=a.position;const se=ae;if(a.collapseSelection(y)?(ae=a.position,Pp(a,ae)||(ae=Qf(a,ae,y))):ae=Qf(a,ae,y),ae<0||ae>a.lastOffset){let ve=!0;return a.silenceNotifications||(ve=(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),ve&&a.announce("plonk"),ve}return a.setPositionHandlingPlaceholder(ae),a.mathfield.stopCoalescingUndo(),a.announce("move",se),!0}function Qf(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||Pp(a,y)?y:Qf(a,y,b)}function Pp(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 zg(a,y,b){let E=1/0,ee=0;for(;ee<y.length;ee++){const ae=Nl(a.getHTMLElement(y[ee])).right,se=Math.abs(b-ae);if(se<=E)E=se;else break}return y[ee-1]}function Jf(a,y,b,E,ee){const ae=a.mathfield.hasEditablePrompts,se=ae?b.filter(De=>De.type==="prompt"&&!De.captureSelection):b,ve=Nl(a.mathfield.getHTMLElement(y)).right,Ce=a.offsetOf(zg(a.mathfield,se,ve))-(ae?1:0);if(E){const[De,Fe]=a.selection.ranges[0];let nt;Ce<(ee==="up"?De:Fe)?nt={ranges:[[Ce,Fe]],direction:"backward"}:nt={ranges:[[De,Ce]],direction:"forward"},a.setSelection(nt)}else a.setPositionHandlingPlaceholder(Ce);a.announce(`move ${ee}`)}function Kg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("backward");const ae=()=>{var Ce,De;let Fe=!0;return a.silenceNotifications||(Fe=(De=(Ce=a.mathfield.host)==null?void 0:Ce.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?De:!0),a.announce(Fe?"plonk":"line"),Fe},se=a.at(a.position);let ve=se;for(;ve&&ve.parentBranch!=="below"&&!(Array.isArray(ve.parentBranch)&&ve.parent instanceof to);)ve=ve.parent;if(Array.isArray(ve==null?void 0:ve.parentBranch)&&ve.parent instanceof to){const Ce=ve.parent;if(ve.parentBranch[0]<1)return ae();const De=ve.parentBranch[0]-1,Fe=Ce.array[De][ve.parentBranch[1]];if(!Fe.some(At=>At.type==="prompt"&&!At.captureSelection)&&a.mathfield.hasEditablePrompts)return ae();Jf(a,se,Fe,ee,"up")}else if(ve){const Ce=(E=ve.parent.branch("above"))!=null?E:ve.parent.createBranch("above");if(!Ce.some(Fe=>Fe.type==="prompt"&&Fe.placeholderId)&&a.mathfield.hasEditablePrompts)return ae();Jf(a,se,Ce,ee,"up")}else return ae();return a.mathfield.stopCoalescingUndo(),!0}function Hg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("forward");const ae=()=>{var Ce,De;let Fe=!0;return a.silenceNotifications||(Fe=(De=(Ce=a.mathfield.host)==null?void 0:Ce.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?De:!0),a.announce(Fe?"plonk":"line"),Fe},se=a.at(a.position);let ve=se;for(;ve&&ve.parentBranch!=="above"&&!(Array.isArray(ve.parentBranch)&&ve.parent instanceof to);)ve=ve.parent;if(Array.isArray(ve==null?void 0:ve.parentBranch)&&ve.parent instanceof to){const Ce=ve.parent;if(ve.parentBranch[0]+1>Ce.array.length-1)return ae();const De=ve.parentBranch[0]+1,Fe=Ce.array[De][ve.parentBranch[1]];if(!Fe.some(At=>At.type==="prompt"&&!At.captureSelection)&&a.mathfield.hasEditablePrompts)return ae();Jf(a,se,Fe,ee,"down")}else if(ve){const Ce=(E=ve.parent.branch("below"))!=null?E:ve.parent.createBranch("below");if(!Ce.some(Fe=>Fe.type==="prompt")&&a.mathfield.hasEditablePrompts)return ae();Jf(a,se,Ce,ee,"down")}else return ae();return!0}function Rp(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 _g(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!1):E=!0,b=b.parent;return E?y:0}function Wg(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!0):E=!1,b=b.parent;return E?y:0}function Fp(a){var y;if(a.collapseSelection(),_g(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 kc({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function zp(a){var y;if(a.collapseSelection(),Wg(a)>=a.mathfield.options.scriptDepth[0])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=a.at(a.position+1))==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new kc({style:a.at(a.position).computedStyle}),b),b=a.at(a.position+1)),b.createBranch("subscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.subscript[0]))),!0}function Zg(){function a(Ce){const De=[],Fe=[];return[...Ce.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((At,tn)=>{const fn=E(At);fn===0?De.push(At):Fe.push({documentOrder:tn,tabIndex:fn,node:At})}),Fe.sort((At,tn)=>At.tabIndex===tn.tabIndex?At.documentOrder-tn.documentOrder:At.tabIndex-tn.tabIndex).map(At=>At.node).concat(De)}function y(Ce){return!(!b(Ce)||ee(Ce)||E(Ce)<0)}function b(Ce){return!(Ce.disabled||Ce.type==="hidden"&&Ce.tagName.toUpperCase()==="INPUT"||ve(Ce))}function E(Ce){var De;const Fe=Number.parseInt((De=Ce.getAttribute("tabindex"))!=null?De:"NaN",10);return Number.isNaN(Fe)?Ce.contentEditable==="true"||(Ce.nodeName==="AUDIO"||Ce.nodeName==="VIDEO")&&Ce.getAttribute("tabindex")===null?0:Ce.tabIndex:Fe}function ee(Ce){return Ce.tagName.toUpperCase()==="INPUT"&&Ce.type==="radio"&&!se(Ce)}function ae(Ce,De){for(const Fe of Ce)if(Fe.checked&&Fe.form===De)return Fe;return null}function se(Ce){var De;if(!Ce.name)return!0;const nt=((De=Ce.form)!=null?De:Ce.ownerDocument).querySelectorAll('input[type="radio"][name="'+Ce.name+'"]'),At=ae(nt,Ce.form);return!At||At===Ce}function ve(Ce){if(!dt()||Ce===document.activeElement||Ce.contains(document.activeElement))return!1;if(getComputedStyle(Ce).visibility==="hidden")return!0;const De=Ce.getBoundingClientRect();if(De.width===0||De.height===0)return!0;for(;Ce;){if(getComputedStyle(Ce).display==="none")return!0;Ce=Ce.parentElement}return!1}return dt()?a(document.body):[]}function $l(a,y,b="forward"){const E=a.position;if(Array.isArray(y)){const ee=a.offsetOf(y[0]),ae=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ee,ae):a.setSelection(ae,ee),a.announce("move",E),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?$l(a,[y.leftSibling,y]):$l(a,[y,y.leftSibling])}function _c(a,y){const b=a.position;if(typeof y=="number"&&(y=a.at(y)),y.type==="prompt")a.setSelection(a.offsetOf(y.firstChild),a.offsetOf(y.lastChild));else{const E=a.offsetOf(y);y.type==="placeholder"?a.setSelection(E-1,E):a.position=E}return a.announce("move",b),a.mathfield.stopCoalescingUndo(),!0}function $f(a,y,b=!0){var E,ee;const ae=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&$c(a,y);let se;const ve=a.at(a.anchor).parentPrompt;ve?y==="forward"?se=a.offsetOf(ve)+1:se=a.offsetOf(ve.leftSibling):se=Math.max(a.position+ae,0);const Ce=Lh(a,se,y);if(!Ce||y==="forward"&&a.offsetOf(Ce)<se||y==="backward"&&a.offsetOf(Ce)>se){if(!b||!((ee=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||ee))return a.announce("plonk"),!1;const Fe=Zg();if(!document.activeElement||Fe.length<=1)return a.announce("plonk"),!1;let nt=Fe.indexOf(document.activeElement)+ae;return nt<0&&(nt=Fe.length-1),nt>=Fe.length&&(nt=0),Fe[nt].focus(),a.mathfield.stopCoalescingUndo(),!0}return _c(a,Ce),!0}function Lh(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)}dc({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 ae;if(typeof ee=="string"&&(ae=y[ee]),!ae){const ve=b.subsupPlacement?zp(a):Fp(a);return a.mathfield.stopCoalescingUndo(),ve}E.branch(ae)||E.createBranch(ae);const se=a.setSelection(a.getBranchRange(a.offsetOf(E),ae));return a.mathfield.stopCoalescingUndo(),se},moveBeforeParent:a=>{const{parent:y}=a.at(a.position);return y?(a.position=a.offsetOf(y),a.mathfield.stopCoalescingUndo(),!0):(a.announce("plonk"),!1)},moveAfterParent:a=>Rp(a),moveToNextChar:a=>$c(a,"forward"),moveToPreviousChar:a=>$c(a,"backward"),moveUp:a=>$c(a,"upward"),moveDown:a=>$c(a,"downward"),moveToNextWord:a=>jd(a,"forward"),moveToPreviousWord:a=>jd(a,"backward"),moveToGroupStart:a=>{const y=a.offsetOf(a.at(a.position).firstSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:a=>{const y=a.offsetOf(a.at(a.position).lastSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:a=>{var y,b,E,ee;if(a.position===a.lastOffset&&a.anchor===a.lastOffset)return $f(a,"forward");const ae=a.at(a.position);if(ae.mode==="text"){if(a.selectionIsCollapsed){let At=ae;for(;At&&At.mode==="text";)At=At.leftSibling;let tn=ae;for(;((y=tn.rightSibling)==null?void 0:y.mode)==="text";)tn=tn.rightSibling;if(At&&tn)return $l(a,[At,tn])}if(ae.rightSibling.mode==="text"){let At=ae;for(;At&&At.mode==="text";)At=At.rightSibling;return At?(_c(a,(b=At.leftSibling)!=null?b:At),a.mathfield.switchMode("math"),!0):_c(a,a.lastOffset)}}const ve=a.at(a.anchor).parentPrompt,Ce=ve?a.offsetOf(ve)+1:Math.max(a.position+1,0),De=Lh(a,Ce,"forward");if(De)return _c(a,De);const Fe=Kp(a,ae,At=>At.type==="leftright"||At.type==="text","forward");if(Fe){if(Fe.mode==="text"){let At=Fe;for(;At&&At.mode==="text";)At=At.rightSibling;return $l(a,[(E=Fe.leftSibling)!=null?E:Fe,(ee=At.leftSibling)!=null?ee:At])}return $l(a,Fe)}const nt=ae.parent;if(nt){if(nt.type==="leftright"||nt.type==="surd")return $l(a,nt);if(ae.parentBranch==="superscript"&&nt.subscript)return $l(a,nt.subscript);if(ae.parentBranch==="above"&&nt.below)return $l(a,nt.below);if(ae.parentBranch==="superscript"||ae.parentBranch==="subscript")return _c(a,nt);if(ae.parentBranch==="above"||ae.parentBranch==="below")return $l(a,nt)}return _c(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return $f(a,"backward");let b=a.at(a.position);const E=b.mode;if(E==="text"){if(a.selectionIsCollapsed){let ve=b;for(;ve&&ve.mode==="text";)ve=ve.leftSibling;let Ce=b;for(;((y=Ce.rightSibling)==null?void 0:y.mode)==="text";)Ce=Ce.rightSibling;if(ve&&Ce)return $l(a,[ve,Ce])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?_c(a,b):_c(a,0)}const ee=a.at(a.anchor).parentPrompt,ae=ee?a.offsetOf(ee.leftSibling):Math.max(a.position-1,0),se=Lh(a,ae,"backward");if(se)return _c(a,se);if(E==="math"){const ve=Kp(a,b,De=>De.type==="leftright"||De.type==="text","backward");if(ve){if(ve.mode==="text"){let De=ve;for(;De&&De.mode==="text";)De=De.leftSibling;return $l(a,[ve,De])}return $l(a,ve)}const Ce=b.parent;if(Ce){if(Ce.type==="leftright"||Ce.type==="surd")return $l(a,Ce);if(b.parentBranch==="subscript"&&Ce.superscript)return $l(a,Ce.superscript);if(b.parentBranch==="below"&&Ce.above)return $l(a,Ce.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return _c(a,Ce);if(b.parentBranch==="above"||b.parentBranch==="below")return $l(a,Ce)}return _c(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:Fp,moveToSubscript:zp},{target:"model",changeSelection:!0}),dc({moveToNextPlaceholder:a=>$f(a,"forward"),moveToPreviousPlaceholder:a=>$f(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function Kp(a,y,b,E){if(E==="forward"){let ae=y.rightSibling;for(;ae&&!b(ae);)ae=ae.rightSibling;return ae}let ee=y.leftSibling;for(;ee&&!b(ee);)ee=ee.leftSibling;return ee}function qf(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1,ae="";for(;!ee;){const se=a.at(E);ee=y===0||se===void 0||se.type==="first"||se.mode!=="math"||!(se.type&&/mord|mpunct|operator/.test(se.type)||se.type==="mop"&&/[a-zA-Z ]+/.test(se.value))||!se.hasEmptyBranch("superscript")||!se.hasEmptyBranch("subscript")||typeof b=="function"&&!b(se),ee||(se.mode="text",se.command=se.value,se.verbatimLatex=void 0,ae+=se.value),E-=1,y-=1}a.contentDidChange({data:ae,inputType:"insertText"})}function xd(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1;const ae=[];for(;!ee;){const se=a.at(E);ee=y===0||!se||se.type==="first"||se.isFirstSibling||se.mode!=="text"||se.value===" "||typeof b=="function"&&!b(se),ee||(ae.push(Nr.serialize([se],{defaultMode:"math"})),se.mode="math"),E-=1,y-=1}Dh(a),a.contentDidChange({data:Wa(ae),inputType:"insertText"})}function Dh(a){var y;let b=a.position-1;for(;b>=0&&((y=a.at(b))==null?void 0:y.mode)==="math";)b-=1;if(!(b<0)&&a.at(b).mode==="text"&&a.at(b).value===" "&&a.at(b-1).mode==="math"){a.at(b-1).parent.removeChild(a.at(b-1));const E=a.silenceNotifications;a.silenceNotifications=!0,a.position-=1,a.silenceNotifications=E,a.contentDidChange({inputType:"deleteContent"})}}function jg(a){let y="",b=a.position,E=!1;for(;!E;){const ee=a.at(b);E=!(ee&&(ee.mode==="text"||ee.mode==="math"&&ee.type&&/mord|mpunct/.test(ee.type))),E||(y=ee.value+y),b-=1}return y}function Ug(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!Of(b))return!1;const ee=zd(b);if(!E.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ee));const ae=jg(E)+ee;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ee))return!0;if(/[\^_]/.test(ee))return/(^|\s)[a-zA-Z][^_]$/.test(ae)&&xd(E,1),!0;const se={")":"(","}":"{","]":"["}[ee],{parent:ve}=E.at(E.position);if(se&&ve instanceof Jo&&ve.leftDelim===se)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(ae))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ee))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(ae))return xd(E,1),!1;if(/\D\.[^\d\s]$/.test(ae)){xd(E,1);const Ce=E.at(E.position);return Ce.value="\u22C5",Ce.style.variant="normal",Ce.command="\\cdot",Ce.verbatimLatex=void 0,E.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(ae)||/\.\d$/.test(ae)||/\([\d+\-.]$/.test(ae))return xd(E,1),!0;if(/\([a-z][,;]$/.test(ae))return xd(E,2),!0;if(/[\d+\-=><*|]$/.test(ee))return Dh(E),!0}else{if(y==="[Space]")return qf(E,void 0,se=>/[a-z][:,;.]$/.test(se.value)),!0;if(/[a-zA-Z]{3,}$/.test(ae)&&!/(dxd|abc|xyz|uvw)$/.test(ae))return qf(E,void 0,se=>/[a-zA-Z]/.test(se.value)),!0;if(/(^|\W)(if)$/i.test(ae))return qf(E,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(ae)&&!/(αβγ)$/.test(ae))return qf(E,void 0,se=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(se.value)),!0;if(ee==="?"||ee==="."&&!/[\d-+]\.$/.test(ae))return!0}return!1}function Vg(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=Hp(),E=a.element.getBoundingClientRect();b.style.left=`${E.left}px`,b.style.top=`${E.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(vh(y)||y)+"</span>"+b.innerHTML),b.style.visibility="visible",setTimeout(()=>{b.childNodes.length>0&&b.childNodes[b.childNodes.length-1].remove(),b.childNodes.length===0&&(b.style.visibility="hidden")},3e3)}function Gg(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=Hp();y.innerHTML=""}else{const y=Rf("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function Hp(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(uc("keystroke-caption"),uc("core"),Rf("mathlive-keystroke-caption-panel"))}function Yg(){document.getElementById("mathlive-keystroke-caption-panel")&&(bh("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function _p(a,y){var b,E,ee;const{model:ae}=a,se=pp(y);if(y.isTrusted){Fm(y);const tn=ff();a.keyboardLayout!==tn.id&&(a.keyboardLayout=tn.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Vg(a,se),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let ve,Ce="",De;const Fe=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(ae.mode==="math")if(se==="[Backspace]")Fe.pop();else if(!Of(y))a.flushInlineShortcutBuffer();else{const tn=zd(y),fn=[...(E=(b=Fe[Fe.length-1])==null?void 0:b.keystrokes)!=null?E:[],tn];Fe.push({state:ae.getState(),keystrokes:fn,leftSiblings:Xg(a)});let Ar=0,hi="";for(;!ve&&Ar<fn.length;)De=Fe.length-(fn.length-Ar),hi=fn.slice(Ar).join(""),ve=Pu(Fe[De].leftSiblings,hi,a.options.inlineShortcuts),!ve&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(hi)&&(ve=a.options.onInlineShortcut(a,hi)),Ar+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(ve?a.switchMode("math"):Ug(a,se,y)&&(a.switchMode({math:"text",text:"math"}[ae.mode]),Ce=""))}if(!ve){if(Ce||(Ce=jm(a.keybindings,ae.mode,y)),!Ce&&(se==="[Enter]"||se==="[Return]")){let tn=!1;return ae.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(tn=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),tn||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),ae.contentDidChange({inputType:"insertLineBreak"})),tn}if((!Ce||se==="[Space]")&&ae.mode==="math"){if(se==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return Ga.insert(ae,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),Ce="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const tn=ae.at(ae.position+1),fn=ae.at(ae.position-1);if((tn==null?void 0:tn.mode)==="text"||(fn==null?void 0:fn.mode)==="text")return Ga.insert(ae," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ee=ae.at(ae.position))!=null&&ee.isDigit()&&window.MathfieldElement.decimalSeparator===","&&zd(y)===","&&(Ce="insertDecimalSeparator")}}if(!ve&&!Ce){if(ae.mathfield.smartFence){if(Ih(ae,zd(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:tn}=ae.at(ae.position);if(tn instanceof Jo&&tn.rightDelim==="?"&&ae.at(ae.position).isLastSibling&&/^[)}\]|]$/.test(se))return a.snapshot(),tn.isDirty=!0,tn.rightDelim=se,ae.position+=1,ae.selectionDidChange(),ae.contentDidChange({data:zd(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!ae.selectionIsCollapsed){const fn=zd(y);if(fn==="("||fn==="{"||fn==="["){const Ar={"(":"(","{":"\\lbrace","[":"\\lbrack"}[fn],hi={"(":")","{":"\\rbrace","[":"\\rbrack"}[fn],[Cr,$r]=Gs(ae.selection);return a.snapshot(),ae.position=$r,Ga.insert(ae,hi,{format:"latex"}),ae.position=Cr,Ga.insert(ae,Ar,{format:"latex"}),ae.setSelection(Cr+1,$r+1),ae.contentDidChange({data:fn,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const nt=ae.at(Math.max(ae.position,ae.anchor)),{parent:At}=nt;if(Ce==="moveAfterParent"&&(At==null?void 0:At.type)==="leftright"&&nt.isLastSibling&&a.options.smartFence&&Ih(ae,".",a.defaultStyle)&&(Ce="",Qs(a)),a.keyboardDelegate.cancelComposition(),Ce)a.executeCommand(Ce);else if(ve){const tn=a.effectiveStyle;ae.setState(Fe[De].state);const fn=Fe[Fe.length-1].keystrokes;for(const Ar of fn)Ga.insert(ae,Ar,{silenceNotifications:!0,style:tn});a.snapshot("insert-shortcut"),ae.setState(Fe[De].state),ae.deferNotifications({content:!0,selection:!0,data:ve,type:"insertText"},()=>(Ga.insert(ae,ve,{format:"latex",style:tn}),Dh(a.model),ve.endsWith(" ")&&(a.switchMode("text"),Ga.insert(ae," ",{style:tn,mode:"text"})),a.snapshot(),ae.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,ae.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=Ls(y);const ae=window.mathVirtualKeyboard;if(ae!=null&&ae.isShifted&&(ee=typeof ee=="string"?ee.toUpperCase():ee.map(Ce=>Ce.toUpperCase())),b.simulateKeystroke){let Ce=!0;for(const De of ee)_p(a,new KeyboardEvent("keypress",{key:De}))&&(Ce=!1);if(Ce)return}const se=E.at(E.position),ve=we(we({},se.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(Gs(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Pf(a);for(const Ce of ee)Ga.insert(E,Ce);a.snapshot("insert-latex"),pf(a)});else if(E.mode==="text"){for(const Ce of ee)Ga.insert(E,Ce,{style:ve});a.snapshot("insert-text")}else if(E.mode==="math")for(const Ce of ee)Qg(a,Ce,ve,se);a.dirty=!0,a.scrollIntoView()}function Xg(a){const y=a.model,b=[];let E=y.at(Math.min(y.position,y.anchor));for(;E.type!=="first";)b.push(E),E=E.leftSibling;return b}function Qg(a,y,b,E){const ee=a.model;let ae={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(ae=["insert",a.options.mathModeSpace]),ae){a.executeCommand(ae);return}if(/\d/.test(y)&&a.options.smartSuperscript&&E.parentBranch==="superscript"&&E.parent.type!=="mop"&&E.parent.type!=="operator"&&E.parent.type!=="extensible-symbol"&&E.hasNoSiblings){Jg(ee),Ga.insert(ee,y,{style:b}),a.snapshot(),Rp(ee),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const se=a.adoptStyle==="left"?E:E.parent?E.rightSibling:null;(se==null?void 0:se.type)==="mord"&&/[a-zA-Z0-9]/.test(se.value)&&(b=we({},b),se.style.variant&&(b.variant=se.style.variant),se.style.variantStyle&&(b.variantStyle=se.style.variantStyle))}Ga.insert(ee,y,{style:b}),a.snapshot(`insert-${ee.at(ee.position).type}`)}function Jg(a){a.selectionIsCollapsed||(a.deleteAtoms(Gs(a.selection)),a.mathfield.snapshot("delete"))}function Ih(a,y,b){if(!y||a.mode!=="math")return!1;const E=a.at(a.position),{parent:ee}=E,ae={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!ae)return!1;const se=te[ae],ve=ne[ae];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[Ce,De]=Gs(a.selection),Fe=a.extractAtoms([Ce,De]),nt=ee.addChildrenAfter([new Jo("left...right",Fe,{leftDelim:ae,rightDelim:ve})],a.at(Ce));return a.setSelection(a.offsetOf(nt.firstChild),a.offsetOf(nt.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ae,inputType:"insertText"}),!0}if(ae==="|"){const Ce=ee instanceof Jo?ee.leftDelim+ee.rightDelim:"";if(Ce==="\\lbrace\\rbrace"||Ce==="\\{\\}"||Ce==="\\lbrace?")return a.mathfield.snapshot(),Ga.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:ae,inputType:"insertText"}),!0}if(ve){if(ee instanceof Jo&&ee.firstChild===E&&(ee.leftDelim==="?"||ee.leftDelim==="."))return ee.leftDelim=ae,ee.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ee instanceof Jo)){let nt=E;for(;nt&&!(nt.type==="mclose"&&nt.value===ve);)nt=nt.rightSibling;if(nt){a.mathfield.snapshot();const At=a.extractAtoms([a.offsetOf(E),a.offsetOf(nt)]);return At.pop(),ee.addChildrenAfter([new Jo("left...right",At,{leftDelim:ae,rightDelim:ve})],E),a.position=a.offsetOf(ee.firstChild)+1,a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const Ce=a.offsetOf(E.lastSibling);let De;for(De=a.position;De<=Ce;De++){const nt=a.at(De);if(nt instanceof Jo&&(nt.leftDelim==="?"||nt.leftDelim===".")&&Wp(ae,nt.rightDelim))break}const Fe=a.at(De);if(De<=Ce&&Fe instanceof Jo){Fe.leftDelim=ae,a.mathfield.snapshot();let nt=a.extractAtoms([a.position,De-1]);return nt=nt.filter(At=>At.type!=="first"),Fe.addChildren(nt,Fe.parentBranch),a.position+=1,a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ee instanceof Jo&&(ee.leftDelim==="?"||ee.leftDelim===".")&&Wp(ae,ee.rightDelim)){ee.isDirty=!0,ee.leftDelim=ae,a.mathfield.snapshot();const nt=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const At of nt)ee.parent.addChildBefore(At,ee);return a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ee instanceof Jo&&ee.leftDelim==="|")){if(a.mathfield.snapshot(),Ga.insert(a,`\\left${ae}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const nt=a.offsetOf(E.lastSibling),At=a.extractAtoms([a.position,nt]);a.at(a.position).body=At,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(se){let Ce=E;for(;Ce;){if(Ce.type==="mopen"&&Ce.value===se){a.mathfield.snapshot();const tn=Ce.leftSibling,fn=a.extractAtoms([a.offsetOf(Ce.leftSibling),a.offsetOf(E)]);fn.shift();const Ar=new Jo("left...right",fn,{leftDelim:se,rightDelim:ae});return ee.addChildrenAfter([Ar],tn),a.position=a.offsetOf(Ar),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}Ce=Ce.leftSibling}if(ee instanceof Jo&&E.isLastSibling&&Th(ee.leftDelim,ae))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=ae,a.position+=1,a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const De=a.offsetOf(E.firstSibling);let Fe;for(Fe=a.position;Fe>=De;Fe--){const tn=a.at(Fe);if(tn instanceof Jo&&(tn.rightDelim==="?"||tn.rightDelim===".")&&Th(tn.leftDelim,ae))break}const nt=a.at(Fe);if(Fe>=De&&nt instanceof Jo)return a.mathfield.snapshot(),nt.rightDelim=ae,nt.addChildren(a.extractAtoms([Fe,a.position]),nt.parentBranch),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ee instanceof Jo&&(ee.rightDelim==="?"||ee.rightDelim===".")&&Th(ee.leftDelim,ae))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=ae,ee.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(E.lastSibling)]),ee.parentBranch),a.position=a.offsetOf(ee),a.contentDidChange({data:ae,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const At=ee.parent;return At instanceof Jo&&(At.rightDelim==="?"||At.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(At),Ih(a,ae,b)):!1}return!1}function Th(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):ne[a]===y:!0}function Wp(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):te[y]===a:!0}dc({undo:a=>(a.undo(),!0),redo:a=>(a.redo(),!0),scrollIntoView:a=>(a.scrollIntoView(),!0),scrollToStart:a=>(a.field.scroll(0,0),!0),scrollToEnd:a=>{const y=a.field.getBoundingClientRect();return a.field.scroll(y.left-window.scrollX,0),!0},toggleKeystrokeCaption:Gg,toggleContextMenu:a=>{const y=a.toggleContextMenu();return y||a.model.announce("plonk"),y},plonk:a=>(a.model.announce("plonk"),!0),switchMode:(a,y,b,E)=>(a.switchMode(y,b,E),!0),insert:(a,y,b)=>a.insert(y,b),typedText:(a,y,b)=>(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),ae=0;for(;E.includes(ee)&&ae<100;){if(ae===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),ae++}return a.insert(`\\placeholder[${y!=null?y:ee}]{}`,b),!0}}),dc({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"}),dc({cutToClipboard:a=>(a.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("cut")?document.execCommand("cut"):a.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("cut",{bubbles:!0,composed:!0})),!0),pasteFromClipboard:a=>(a.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("paste")?(document.execCommand("paste"),!0):(navigator.clipboard.readText().then(y=>{y&&a.model.contentWillChange({inputType:"insertFromPaste",data:y})?(a.stopCoalescingUndo(),a.stopRecording(),a.insert(y,{mode:a.model.mode})&&(pf(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Qs(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function $g(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=Oh(a,y),{model:E}=a;return E.selectionIsCollapsed?(a.defaultStyle.fontSeries&&b.fontSeries===a.defaultStyle.fontSeries&&(b.fontSeries="auto"),b.fontShape&&b.fontShape===a.defaultStyle.fontShape&&(b.fontShape="auto"),b.color&&b.color===a.defaultStyle.color&&(b.color="none"),b.backgroundColor&&b.backgroundColor===a.defaultStyle.backgroundColor&&(b.backgroundColor="none"),b.fontSize&&b.fontSize===a.defaultStyle.fontSize&&(b.fontSize="auto"),a.defaultStyle=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}dc({applyStyle:$g},{target:"mathfield",canUndo:!0,changeContent:!0});function Oh(a,y){var b,E,ee,ae,se,ve,Ce,De,Fe,nt;const At={};if(typeof y.color=="string"){const fn=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";fn!==y.color&&(At.verbatimColor=(ee=y.verbatimColor)!=null?ee:y.color),At.color=fn}if(typeof y.backgroundColor=="string"){const fn=(se=a.backgroundColorMap((ae=y.backgroundColor)!=null?ae:y.verbatimBackgroundColor))!=null?se:"none";fn!==y.backgroundColor&&(At.verbatimBackgroundColor=(ve=y.verbatimBackgroundColor)!=null?ve:y.backgroundColor),At.backgroundColor=fn}typeof y.fontFamily=="string"&&(At.fontFamily=y.fontFamily),typeof y.series=="string"&&(At.fontSeries=y.series),typeof y.fontSeries=="string"&&(At.fontSeries=y.fontSeries.toLowerCase()),At.fontSeries&&(At.fontSeries=(Ce={bold:"b",medium:"m",normal:"m"}[At.fontSeries])!=null?Ce:At.fontSeries),typeof y.shape=="string"&&(At.fontShape=y.shape),typeof y.fontShape=="string"&&(At.fontShape=y.fontShape.toLowerCase()),At.fontShape&&(At.fontShape=(De={italic:"it",up:"n",upright:"n",normal:"n"}[At.fontShape])!=null?De:At.fontShape),y.variant&&(At.variant=y.variant.toLowerCase()),y.variantStyle&&(At.variantStyle=y.variantStyle.toLowerCase());const tn=(Fe=y.size)!=null?Fe:y.fontSize;return typeof tn=="number"?At.fontSize=Math.max(1,Math.min(10,tn)):typeof tn=="string"&&(At.fontSize=(nt={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[tn.toLowerCase()])!=null?nt:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[tn]),At}function Nh(a){let[y,b]=Gs(a.selection);if(y=Zp(a,y,"backward"),b=Zp(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 Zp(a,y,b){var E,ee,ae;let se=a.at(y);if(!se)return y;const ve=b==="forward"?1:-1;if(se.mode==="text"){for(;se&&!(se.mode!=="text"||!de.test(se.value));)y+=ve,se=a.at(y);return b==="backward"?y-1:y}if(se.mode==="latex"){if(/[a-zA-Z\*]/.test(se.value))if(b==="backward")for(;se&&se.mode==="latex"&&se.value!=="\\"&&/[a-zA-Z]/.test(se.value);)y+=ve,se=a.at(y);else for(;se&&se.mode==="latex"&&/[a-zA-Z\*]/.test(se.value);)y+=ve,se=a.at(y);else if(se.value==="{"){if(b==="forward"){for(;se&&se.mode==="latex"&&se.value!=="}";)y+=ve,se=a.at(y);return y}return y-1}else if(se.value==="}"){if(b==="backward"){for(;se&&se.mode==="latex"&&se.value!=="{";)y+=ve,se=a.at(y);return y-1}return y}return y-1}if(se.mode==="math"){if(se.isDigit()){for(;(E=a.at(y+ve))!=null&&E.isDigit();)y+=ve;return b==="backward"?y-1:y}if(se.style.variant||se.style.variantStyle){let Ce=(ee=a.at(y))==null?void 0:ee.style;for(;Ce&&Ce.variant===se.style.variant&&Ce.variantStyle===se.style.variantStyle;)Ce=(ae=a.at(y+ve))==null?void 0:ae.style,y+=ve;return b==="backward"?y-1:y}return y}return y}dc({selectGroup:a=>{const y=Nh(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>$c(a,"forward",{extend:!0}),extendSelectionBackward:a=>$c(a,"backward",{extend:!0}),extendToNextWord:a=>jd(a,"forward",{extend:!0}),extendToPreviousWord:a=>jd(a,"backward",{extend:!0}),extendSelectionUpward:a=>$c(a,"upward",{extend:!0}),extendSelectionDownward:a=>$c(a,"downward",{extend:!0}),extendToNextBoundary:a=>jd(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>jd(a,"backward",{extend:!0}),extendToGroupStart:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).firstSibling));return y||a.announce("plonk"),y},extendToGroupEnd:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).lastSibling));return y||a.announce("plonk"),y},extendToMathFieldStart:a=>{const y=a.setSelection(a.anchor,0);return y||a.announce("plonk"),y},extendToMathFieldEnd:a=>{const y=a.setSelection(a.anchor,a.lastOffset);return y||a.announce("plonk"),y}},{target:"model",changeSelection:!0});var Sd=null,xf=0,eh=class Ic{static start(y,b,E,ee){var ae;Ic.element=y,(ae=Ic.controller)==null||ae.abort(),Ic.controller=new AbortController;const se={signal:Ic.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,se),y.addEventListener("pointerup",ee,se),y.addEventListener("pointercancel",ee,se),Ph(b)&&(Ic.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",E,se),window.addEventListener("blur",ee,se),window.addEventListener("mouseup",ee,se))}static stop(){var y;(y=Ic.controller)==null||y.abort(),Ic.controller=void 0,typeof Ic.pointerId=="number"&&(Ic.element.releasePointerCapture(Ic.pointerId),Ic.pointerId=void 0)}};function Ph(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function jp(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const E=a;let ee,ae=!1,se=!1,ve="none",Ce=!1,De=!1;const Fe=y.clientX,nt=y.clientY,At=Date.now(),tn=E.field,fn=setInterval(()=>{Ce?tn.scroll({top:0,left:tn.scrollLeft-16}):De&&tn.scroll({top:0,left:tn.scrollLeft+16})},32);function Ar(){eh.stop(),ae=!1,clearInterval(fn),a.element.classList.remove("tracking"),y&&y.preventDefault()}function hi($r){if(!E.hasFocus()){Ar();return}const yi=$r.clientX,ri=$r.clientY,ua=Ph($r)&&$r.pointerType==="touch"?20:5;if(Date.now()<At+500&&Math.abs(Fe-yi)<ua&&Math.abs(nt-ri)<ua){$r.preventDefault(),$r.stopPropagation();return}const Ta=tn.getBoundingClientRect();De=yi>Ta.right,Ce=yi<Ta.left;let xa=ee;Ph($r)&&($r.isPrimary||(xa=Sf(E,$r.clientX,$r.clientY,{bias:0})));const Ko=Sf(E,yi,ri,{bias:yi<=Fe?yi===Fe?0:-1:1});xa>=0&&Ko>=0&&(E.model.extendSelectionTo(xa,Ko),Qs(a)),se&&Nh(E.model)}Sd&&Math.abs(Sd.x-Fe)<5&&Math.abs(Sd.y-nt)<5&&Date.now()<Sd.time+500?(xf+=1,Sd.time=At):(Sd={x:Fe,y:nt,time:At},xf=1);const Cr=tn.getBoundingClientRect();if(Fe>=Cr.left&&Fe<=Cr.right&&nt>=Cr.top&&nt<=Cr.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ee=Sf(a,Fe,nt,{bias:0}),ee>=0){if(a.element.classList.add("tracking"),y.shiftKey){const $r=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ee),vp(a.model)||$r?ve="all":ve="selection"}else a.model.at(ee).type==="placeholder"?(a.model.setSelection(ee-1,ee),ve="selection"):((b=a.model.at(ee).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ee,ee+1),ve="selection"):(a.model.position=ee,vp(a.model)?ve="all":ve="selection");a.defaultStyle={},y.detail===3||xf>2?(Ar(),(y.detail===3||xf===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},ve="all")):ae||(ae=!0,eh.start(tn,y,hi,Ar),(y.detail===2||xf===2)&&(se=!0,Nh(a.model),ve="all"))}a.hasFocus()||(ve="none",a.focus({preventScroll:!0}))}else Sd=null;a.stopCoalescingUndo(),ve!=="none"&&(a.model.selectionIsCollapsed&&(ve="all"),Qs(a)),y.preventDefault()}function qg(a,y,b){if(a>=b.left&&a<=b.right&&y>=b.top&&y<=b.bottom)return 0;const E=a-(b.left+b.right)/2,ee=y-(b.top+b.bottom)/2;return E*E+ee*ee}function Up(a,y,b,E,ee){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const ae=zc(a,b);if(!ae)return[1/0,null];let se=[1/0,null];if(b.hasChildren&&!b.captureSelection&&E>=ae.left&&E<=ae.right)for(const ve of b.children){const Ce=Up(a,y,ve,E,ee);Ce[0]<=se[0]&&(se=Ce)}return se[1]||(se=[qg(E,ee,ae),b]),y.set(b.id,se),se}function ev(a,y,b){const[,E]=Up(a,new Map,a.model.root,y,b);return E}function Sf(a,y,b,E){var ee;const ae=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!ae)return 0;if(y>ae.right||b>ae.bottom+8)return a.model.lastOffset;if(y<ae.left||b<ae.top-8)return 0;E=E!=null?E:{},E.bias=(ee=E.bias)!=null?ee:0;let se=ev(a,y,b);const ve=[];let Ce=se;for(;Ce;)ve.unshift(Ce),Ce=Ce.parent;for(const Fe of ve)if(Fe.captureSelection){se=Fe;break}let De=a.model.offsetOf(se);if(De<0)return-1;if(se.leftSibling)if(E.bias===0&&se.type!=="placeholder"){const Fe=zc(a,se);Fe&&y<(Fe.left+Fe.right)/2&&(De=a.model.offsetOf(se.leftSibling))}else E.bias<0&&(De=a.model.offsetOf(se.leftSibling));return De}var tv=class extends Ga{constructor(){super("math")}onPaste(a,y){if(!y||!a.model.contentWillChange({data:typeof y=="string"?y:null,dataTransfer:typeof y=="string"?null:y,inputType:"insertFromPaste"}))return!1;let b="",E="auto",ee=typeof y!="string"?y.getData("application/json+mathlive"):"";if(ee)try{const ae=JSON.parse(ee);if(ae&&Array.isArray(ae)){a.snapshot();const se=_u(ae),{model:ve}=a;ve.selectionIsCollapsed||ve.deleteAtoms(Gs(ve.selection));const Ce=ve.at(ve.position);if(Ce.parent instanceof to){console.assert(Ce.parentBranch!==void 0);const De=[];let Fe=[];se[0].type==="first"&&se.shift(),se[se.length-1].type==="first"&&se.pop();for(const fn of se)fn.type==="first"&&Fe.length>0?(De.push(Fe),Fe=[fn]):Fe.push(fn);Fe.length>0&&De.push(Fe);let nt=Number(Ce.parentBranch[0]),At=Number(Ce.parentBranch[1]);const tn=Ce.parent.maxColumns;for(;Ce.parent.colCount-At<De.length&&Ce.parent.colCount<tn;)Ce.parent.addColumn();Ce.parent.addChildrenAfter(De[0],Ce);for(let fn=1;fn<De.length;fn++)At++,At>=tn&&(At=0,Ce.parent.addRowAfter(nt),nt++),Ce.parent.setCell(nt,At,De[fn])}else Ce.parent.addChildrenAfter(se.filter(De=>De.type!=="first"),Ce);return ve.position=ve.offsetOf(se[se.length-1]),ve.contentDidChange({inputType:"insertFromPaste"}),Qs(a),!0}}catch(ae){}if(ee=typeof y!="string"?y.getData("application/json"):"",ee&&window.MathfieldElement.computeEngine)try{const ae=JSON.parse(ee);if(typeof ae=="object"&&"latex"in ae&&ae.latex&&(b=ae.latex),!b){const se=window.MathfieldElement.computeEngine.box(ae);se&&!se.has("Error")&&(b=se.latex)}b||(E="latex")}catch(ae){}if(!b&&typeof y!="string"&&(b=y.getData("application/x-latex"),b&&(E="latex")),b||(b=typeof y=="string"?y:y.getData("text/plain")),b){let ae;return[ae,b]=Mc(b),E==="auto"&&ae&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),Qs(a)),a.startRecording(),!0}return!1}insert(a,y,b){var E,ee;const ae=typeof y=="string"?y:(ee=(E=window.MathfieldElement.computeEngine)==null?void 0:E.box(y).latex)!=null?ee:"";if(!b.silenceNotifications&&!a.contentWillChange({data:ae,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:se}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ve=a.silenceNotifications;a.silenceNotifications=!0;const Ce={"?":"\\placeholder{}","@":"\\placeholder{}"};Ce[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Gs(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward"),!a.at(a.position).isLastSibling&&a.at(a.position+1).type==="placeholder"?a.deleteAtoms([a.position,a.position+1]):a.at(a.position).type==="placeholder"&&a.deleteAtoms([a.position-1,a.position]);let De=-1;Ce[0]?Ce["@"]=Ce[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(De=rv(a),De>=0&&(Ce["@"]=a.getValue(De,a.position,"latex"))),Ce[0]||(Ce[0]=Ce["?"]);let Fe=!1;const nt=yi=>(Fe=!0,Ce[yi]);let[At,tn]=Vp(a,y,nt,b);if(!tn)return!1;const fn=tn.length===1&&tn[0].type==="genfrac";fn&&De>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(Ce["@"]=Ce["?"],Fe=!1,[At,tn]=Vp(a,y,nt,b)):De>=0&&a.deleteAtoms([De,a.position]);const{parent:Ar}=a.at(a.position),hi=Ar.hasEmptyBranch("body");if(fn&&At!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Ar instanceof Jo&&Ar.leftDelim==="("&&hi){const yi=Ar.parent,ri=Ar.parentBranch;yi.removeChild(Ar),yi.setChildren(tn,ri)}const Cr=a.at(a.position);Cr.parent.addChildrenAfter(tn,Cr),At==="latex"&&typeof y=="string"&&(Ar==null?void 0:Ar.type)==="root"&&hi&&!Fe&&(Ar.verbatimLatex=y),a.silenceNotifications=ve;const $r=tn[tn.length-1];if(b.selectionMode==="placeholder"){const yi=tn.flatMap(ri=>[ri,...ri.children]).find(ri=>ri.type==="placeholder");if(yi){const ri=a.offsetOf(yi);a.setSelection(ri-1,ri),a.announce("move")}else $r&&(a.position=a.offsetOf($r))}else b.selectionMode==="before"||(b.selectionMode==="after"?$r&&(a.position=a.offsetOf($r)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf($r)));return a.contentDidChange({data:ae,inputType:"insertText"}),a.silenceNotifications=se,!0}};function Vp(a,y,b,E){var ee;let ae,se=[];if(typeof y!="string"||E.format==="math-json"){const ve=window.MathfieldElement.computeEngine;if(!ve)return["math-json",[]];[ae,y]=["latex",ve.box(y).latex],se=Dl(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([ae,y]=Gc(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),se=Dl(y,{context:a.mathfield.context}),ae!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&th(se)):(E.format==="auto"||(ee=E.format)!=null&&ee.startsWith("latex"))&&(E.format==="auto"&&([ae,y]=Gc(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=Mc(y)),se=Dl(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&th(se));return Zu(se,E.style),[ae!=null?ae:"latex",se]}function nv(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof Jo&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function th(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof Jo&&b.leftDelim==="("){let E=0,ee=0,ae=0;for(let se=0;b.body[se];se++)b.body[se].type==="genfrac"&&(E++,ee=se),ae++;ae===0&&E===1&&(a[y]=b.body[ee])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){th(y.branch(b));const E=nv(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof to)for(const b of y.cells)th(b)}}}function rv(a){let y=a.at(a.position);if(y.mode==="text"){for(;!y.isFirstSibling&&y.mode==="text";)y=y.leftSibling;return a.offsetOf(y)}const b=y;let E=!1;if(y.type==="mclose"){const ee=te[y.value];for(;!y.isFirstSibling&&!(y.type==="mopen"&&y.value===ee);)y=y.leftSibling;y.isFirstSibling||(y=y.leftSibling),E=!0}else y.type==="leftright"&&(y=y.leftSibling,E=!0);if(E)for(;!y.isFirstSibling&&(y.isFunction||Gp(y));)y=y.leftSibling;else{const ee=[];for(;!y.isFirstSibling&&(Gp(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 Gp(a){return a.isDigit()?!0:a.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(a.type)?!a.isExtensibleSymbol:!1}new tv;var iv=class extends Ga{constructor(){super("text")}onPaste(a,y){if(!y)return!1;const b=typeof y=="string"?y:y.getData("text/plain");return b&&a.model.contentWillChange({inputType:"insertFromPaste",data:b})?(a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b)&&(a.model.contentDidChange({inputType:"insertFromPaste"}),a.startRecording(),a.snapshot("paste"),Qs(a)),a.startRecording(),!0):!1}insert(a,y,b={}){if(!a.contentWillChange({data:y,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:E}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const ee=a.silenceNotifications;a.silenceNotifications=!0,b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Gs(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const ae=av(y,a.mathfield.context);if(Zu(ae,b.style),!ae)return!1;const se=a.at(a.position),ve=se.parent.addChildrenAfter(ae,se);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(ve)):ve&&(a.position=a.offsetOf(ve))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function av(a,y){return a=a.replace(/\\/g,"\\textbackslash "),a=a.replace(/#/g,"\\#"),a=a.replace(/\$/g,"\\$"),a=a.replace(/%/g,"\\%"),a=a.replace(/&/g,"\\&"),a=a.replace(/_/g,"\\_"),a=a.replace(/{/g,"\\textbraceleft "),a=a.replace(/}/g,"\\textbraceright "),a=a.replace(/lbrace/g,"\\textbraceleft "),a=a.replace(/rbrace/g,"\\textbraceright "),a=a.replace(/\^/g,"\\textasciicircum "),a=a.replace(/~/g,"\\textasciitilde "),a=a.replace(/£/g,"\\textsterling "),Dl(a,{context:y,parseMode:"text"})}new iv;function qc(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var ks=4,oc=20,pl=2*(oc+ks),nh=(a,y)=>`
|
|
|
<line x1="${a+oc}" y1="${y+oc}"
|
|
|
x2="${a>y?a+oc:7*oc+10*ks}"
|
|
|
y2="${a<y?y+oc:7*oc+10*ks}"/>
|
|
|
<svg id="plus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.34-3.33,3.34h-6.67v6.66c0,1.84-1.49,3.34-3.33,3.34s-3.34-1.5-3.34-3.34v-6.66h-6.66c-1.84,0-3.34-1.5-3.34-3.34s1.5-3.33,3.34-3.33h6.66v-6.67c0-1.84,1.5-3.33,3.34-3.33s3.33,1.49,3.33,3.33v6.67h6.67c1.84,0,3.33,1.49,3.33,3.33Z"/>
|
|
|
</svg>`,Yp=(a,y)=>`
|
|
|
<line x1="${a+oc}" y1="${y+oc}"
|
|
|
x2="${a>y?a+oc:7*oc+10*ks}"
|
|
|
y2="${a<y?y+oc:7*oc+10*ks}"/>
|
|
|
<svg id="minus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.33-3.33,3.33H10c-1.84,0-3.34-1.49-3.34-3.33s1.5-3.34,3.34-3.34h20c1.84,0,3.33,1.5,3.33,3.34Z"/>
|
|
|
</svg>`,rh=(a,y,b)=>`
|
|
|
<svg id="arrow" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<g transform="rotate(${b})" transform-origin="20 20">
|
|
|
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
|
|
|
</g>
|
|
|
</svg>`,ov=`
|
|
|
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
viewBox=
|
|
|
"-2 -2 ${8*oc+10*ks+5} ${8*oc+10*ks+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${pl+ks}"
|
|
|
height="${3*pl}"
|
|
|
width="${pl}"
|
|
|
rx="${pl/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${pl+ks}"
|
|
|
y="0"
|
|
|
height="${pl}"
|
|
|
width="${3*pl}"
|
|
|
rx="${pl/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${rh(2*(ks+pl),2*ks+3*pl,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${rh(2*(ks+pl),2*ks+pl,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${rh(2*ks+3*pl,2*(ks+pl),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${rh(2*ks+pl,2*(ks+pl),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${nh(2*ks+pl,ks)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${Yp(2*ks+2*pl,ks)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${nh(2*ks+3*pl,ks)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${nh(ks,2*ks+pl)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${Yp(ks,2*ks+2*pl)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${nh(ks,2*ks+3*pl)}
|
|
|
</g>
|
|
|
</svg>`,sv=a=>`
|
|
|
<svg id="matrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","matrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,lv=a=>`
|
|
|
<svg id="pmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","pmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
|
|
|
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,Xp=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>`,cv=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>`,uv=a=>`
|
|
|
<svg id="vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
|
|
|
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
|
|
|
</svg>`,dv=a=>`
|
|
|
<svg id="Vmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
|
|
|
data-command='["setEnvironment","Vmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
|
|
|
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
|
|
|
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
|
|
|
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
|
|
|
</svg>`,fv=a=>`
|
|
|
<svg id="cases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","cases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<circle cx="13" cy="8" r="1"/>
|
|
|
<circle cx="13" cy="16" r="1"/>
|
|
|
<circle cx="21" cy="8" r="1"/>
|
|
|
<circle cx="21" cy="16" r="1"/>
|
|
|
</svg>`,hv=a=>`
|
|
|
<svg id="rcases" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","rcases"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
|
|
|
<circle cx="15" cy="8" r="1"/>
|
|
|
<circle cx="15" cy="16" r="1"/>
|
|
|
<circle cx="7" cy="8" r="1"/>
|
|
|
<circle cx="7" cy="16" r="1"/>
|
|
|
</svg>`,Rh={matrix:sv,pmatrix:lv,bmatrix:cv,Bmatrix:Xp,vmatrix:uv,Vmatrix:dv},Fh={cases:fv,rcases:hv,Bmatrix:Xp};function pv(a){var y,b;const E=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!E)return;let ee=0;E.forEach(fn=>{(!ee||fn.length>ee)&&(ee=fn.length)});let ae=document.getElementById("mathlive-environment-popover");ae||(ae=Rf("mathlive-environment-popover"),uc("environment-popover"),uc("core"),ae.setAttribute("aria-hidden","true"));let se;const ve=ae.querySelector(".MLEP__environment-controls");ve?se=ve:(se=document.createElement("div"),ae.innerHTML="",ae.appendChild(se)),se.className="MLEP__environment-controls",se.style.display="flex",se.style.width="100%",se.style.height="100%",se.style.boxSizing="border-box",se.innerHTML=ov;let Ce=[],De="";const Fe=a.model.parentEnvironment.environmentName;if(jl(Fe)){const fn=gv(Fe);De=Rh[fn]("active");const Ar=Rh,{[fn]:hi}=Ar,Cr=ct(Ar,[Ie(fn)]);Ce=Object.values(Cr).map($r=>$r("inactive"))}else if(Ul(Fe)){const fn=vv(Fe);De=Fh[fn]("active");const Ar=Fh,{[fn]:hi}=Ar,Cr=ct(Ar,[Ie(fn)]);Ce=Object.values(Cr).map($r=>$r("inactive"))}else ll(Fe)&&(De=Rh.matrix("active"),Ce=Object.values(Fh).map(fn=>fn("inactive")));const nt=document.createElement("div");nt.className="MLEP__environment-delimiter-controls",nt.style.display="flex",nt.style.flexDirection="column",nt.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${De}
|
|
|
${Ce.join("")}
|
|
|
</div>`,De&&se.appendChild(nt),se.querySelectorAll("[data-command]").forEach(fn=>{const Ar=fn.dataset.command;let hi=Ar;try{hi=JSON.parse(Ar)}catch(Cr){}fn.addEventListener("mousedown",Cr=>Cr.preventDefault()),hi&&fn.addEventListener("click",()=>a.executeCommand(hi))});const tn=(b=a.field)==null?void 0:b.getBoundingClientRect();tn&&(ae.style.top=`${window.scrollY+(tn.top-ae.clientHeight-15)}px`,ae.style.left=`${tn.left+20}px`,ae.classList.add("is-visible"))}function zh(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function mv(){document.getElementById("mathlive-environment-popover")&&(bh("mathlive-environment-popover"),x("environment-popover"),x("core"))}function ih(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&Fs(b.environmentName)){const E=a.options.environmentPopoverPolicy;y=E==="auto"||E==="on"}}y?pv(a):zh()}function gv(a){return a.replace("*","")}function vv(a){return a==="dcases"?"cases":a}function Qp(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function Jp(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function Kh(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="rtl"||b==="end"&&E==="ltr"||b==="top"||b==="right"?Math.max(0,a-y):a}function yv(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="ltr"||b==="end"&&E==="rtl"||b==="top"||b==="right"?a:a-y}function bv(a,y){var b,E,ee;const ae=(b=Qp(a))!=null?b:"ltr";a.style.position="fixed",a.style.left="",a.style.top="",a.style.right="",a.style.bottom="",a.style.height="",a.style.width="";const se=a.getBoundingClientRect(),ve=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let Ce=Math.min(ve,(E=y.height)!=null?E:se.height),De=Kh(y.location.y,Ce,y.verticalPos,ae);De+Ce>window.innerHeight-8&&(y.alternateLocation?(De=Kh(y.alternateLocation.y,Ce,y.verticalPos,ae),De+Ce>window.innerHeight-8&&(De=void 0)):De=void 0),Number.isFinite(De)||(De=Math.max(8,window.innerHeight-8-Ce),8+Ce>window.innerHeight-8&&(a.style.bottom="8px")),Ce=Math.min(De+Ce,window.innerHeight-8)-De;const Fe=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let nt=Math.min(Fe,(ee=y.width)!=null?ee:se.width),At=Kh(y.location.x,nt,y.horizontalPos,ae);At+nt>window.innerWidth-8&&(y.alternateLocation?(At=yv(y.alternateLocation.x,nt,y.verticalPos,ae),At+nt>window.innerWidth-8&&(At=void 0)):At=void 0),Number.isFinite(At)||(At=Math.max(8,window.innerWidth-8-nt),8+nt>window.innerWidth-8&&(a.style.right="8px")),nt=Math.min(At+nt,window.innerWidth-8)-At,ae==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-At-nt).toString()}px`:a.style.left=`${Math.ceil(At).toString()}px`,a.style.top=`${Math.ceil(De).toString()}px`,Ce!==se.height&&(a.style.height=`${Math.ceil(Ce).toString()}px`),nt!==se.width&&(a.style.width=`${Math.ceil(nt).toString()}px`)}function xv(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function Ud(a){return"submenu"in a}function eu(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function Hh(a){return"type"in a&&a.type==="divider"}function _h(a){return"type"in a&&a.type==="heading"}var $p={};function Wh(a){let y=$p[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,$p[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 qp=80,e0=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,Ud(a)?(this.type="submenu",this.submenu=new t0(a.submenu,{parentMenu:y,submenuClass:a.submenuClass,columnCount:a.columnCount})):this.type=(b=a.type)!=null?b:"command",this.hasCheck=eu(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(Hh(ee)){this.enabled=!1,this.checked=!1;return}_h(ee)&&(this.enabled=!1,this.checked=!1,this.visible=!0),eu(ee)&&(this.checked=eu(ee)&&((y=Vd(ee.checked,a))!=null?y:!1)),(eu(ee)||Ud(ee))&&(this.enabled=(b=Vd(ee.enabled,a))!=null?b:!0,this.visible=(E=Vd(ee.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(eu(ee)||_h(ee)||Ud(ee))&&(this.label=Vd(ee.label,a),this.tooltip=Vd(ee.tooltip,a),this.ariaLabel=Vd(ee.ariaLabel,a)),this._element&&this.updateElement()}set dirty(a){console.assert(a===!0),a&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const a=this.element;a.textContent="",this.enabled?a.removeAttribute("aria-disabled"):a.setAttribute("aria-disabled","true"),this.checked===!0?(a.setAttribute("aria-checked","true"),a.append(Wh("checkmark"))):this.checked==="mixed"?(a.setAttribute("aria-checked","mixed"),a.append(Wh("mixedmark"))):a.removeAttribute("aria-checked"),this.ariaLabel&&a.setAttribute("aria-label",this.ariaLabel);const y=document.createElement("span");if(y.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&y.classList.add("heading"),y.innerHTML=this.label,a.append(y),this._tooltip&&a.setAttribute("data-tooltip",this._tooltip),eu(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=vh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Wh("trailing-chevron"))}get element(){if(this._element)return this._element;if(Hh(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,(eu(this._declaration)||_h(this._declaration)||Ud(this._declaration))&&this._declaration.class&&(a.className=this._declaration.class),a.setAttribute("part","menu-item"),a.setAttribute("tabindex","-1"),this.hasCheck?a.setAttribute("role","menuitemcheckbox"):a.setAttribute("role","menuitem"),this.type==="submenu"&&(a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded","false"));const y=this.abortController.signal;return a.addEventListener("pointerenter",this,{signal:y}),a.addEventListener("pointerleave",this,{signal:y}),a.addEventListener("pointerup",this,{signal:y}),a.addEventListener("click",this,{signal:y}),this._element}dispatchSelect(){if(!eu(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()},qp)},qp)}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=Qp(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:Jp(b,"trailing",E),y:b.top-4},alternateLocation:{x:Jp(b,"leading",E),y:b.top-4}})}movingTowardSubmenu(a){if(!this.element||this.type!=="submenu")return!1;const y=this.rootMenu.lastMoveEvent;if(!y)return!1;const b=a.timeStamp-y.timeStamp;if(b>500)return!1;const E=a.clientX-y.clientX;if(Sv(E,y.clientY-a.clientY,b)<=.2)return!1;let ae="right";if(this.submenu.element){const se=this.submenu.element.getBoundingClientRect(),ve=this.element.getBoundingClientRect();se.left<ve.left+ve.width/2&&(ae="left")}return ae==="right"?E>0:E<0}};function Sv(a,y,b){return Math.hypot(a,y)/b}function Vd(a,y){return a===void 0||typeof a!="function"?a:(y!=null||(y={alt:!1,control:!1,shift:!1,meta:!1}),a(y))}var t0=class ef{constructor(y,b){this._element=null,this._activeMenuItem=null,this._dirty=!0;var E,ee;this.parentMenu=(E=b==null?void 0:b.parentMenu)!=null?E:null,this._submenuClass=b==null?void 0:b.submenuClass,this.columnCount=(ee=b==null?void 0:b.columnCount)!=null?ee:1,this.isSubmenuOpen=!1,this.menuItems=y}get children(){return this._menuItems}set menuItems(y){const b=this.parentMenu;this.dispose(),this.parentMenu=b,y=[...y],this._menuItems=y.map(E=>E.onCreate?E.onCreate(E,this):new e0(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(De=>De.updateState(y));const ae=this.hasCheck;this.hasCheck=this._menuItems.some(De=>De.visible&&De.hasCheck),this.hasCheck!==ae&&this._menuItems.forEach(De=>De.updateState(y));let se,ve=0;for(const De of this._menuItems)De.type==="heading"?(se&&ve===0&&(se.visible=!1),se=De,ve=0):De.type==="divider"&&se?(se.visible=ve>0,se=void 0,ve=0):se&&De.visible&&(ve+=1);se&&(se.visible=ve>0);let Ce=!0;for(const De of this._menuItems)De.type==="divider"?(De.visible=!Ce,Ce=!0):De.visible&&(Ce=!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,ae;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const se=this.activeMenuItem;se.active=!1,(b=se.submenu)==null||b.hide()}if(!((E=y==null?void 0:y.visible)==null||E)){this._activeMenuItem=null;return}this._activeMenuItem=y,y&&(y.active=!0)}y?(ee=y.element)==null||ee.focus({preventScroll:!0}):(ae=this._element)==null||ae.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let y=0,b=!1;const E=this._menuItems;for(;!b&&y<=E.length-1;){const 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),ae=1;for(;ee>=b&&ee<=E;){ee+=y>0?1:-1;const se=this._menuItems[ee];if(!se)break;if(se.visible&&se.enabled){if(ae===Math.abs(y))return this._menuItems[ee];ae+=1}}return y>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(y){this.updateIfDirty();const E=this._menuItems.filter(ee=>ee.visible&&ee.enabled).indexOf(y);return E<0?-1:E%this.columnCount}static get collator(){return ef._collator||(ef._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),ef._collator}findMenuItem(y){var b;this.updateIfDirty();const E=this._menuItems.filter(ve=>ve.type!=="divider"&&ve.visible&&ve.enabled);if(E.length===0)return null;const ee=Math.max(...E.map(ve=>ve.label.length))-y.length;if(ee<0)return null;let ae=null,se=0;for(;se<ee&&!ae;)ae=(b=E.find(ve=>ef.collator.compare(y,ve.label.substring(se,y.length))===0))!=null?b:null,se++;return ae}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),Lt()&&(this.element.popover="manual",this.element.showPopover()),y.location&&bv(this.element,{location:y.location,alternateLocation:y.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var y,b,E,ee,ae;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),Lt()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(E=(b=this.parentMenu)==null?void 0:b.element)==null||E.focus(),(ae=(ee=this._element)==null?void 0:ee.parentNode)==null||ae.removeChild(this._element)}set openSubmenu(y){var b,E,ee,ae;const se=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((E=this.activeMenuItem.element)==null||E.setAttribute("aria-expanded",se.toString())),(ae=(ee=this.activeMenuItem)==null?void 0:ee.element)==null||ae.classList.toggle("is-submenu-open",se),this.isSubmenuOpen=se}},n0=class rm extends t0{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(r0),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(y){Hm(this._modifiers,y)||(this._modifiers=y,this.dirty=!0)}get activeSubmenu(){let y=this;for(;y.isSubmenuOpen;)y=y.activeMenuItem.submenu;return y}set dirty(y){this._updating||(console.assert(y===!0),this._dirty!==y&&(this._dirty=!0,y&&setTimeout(()=>{this.updateState(this.modifiers),this.updateElement()})))}updateState(y){this._updating=!0,this.modifiers=y!=null?y:this.modifiers,super.updateState(this.modifiers),this._updating=!1}handleKeyupEvent(y){this.isDynamic&&(this.modifiers=hd(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,E,ee;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=hd(y));let ae=!0;const se=this.activeSubmenu,ve=se.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":ve==null||ve.select(hd(y));break;case"ArrowRight":if((ve==null?void 0:ve.type)==="submenu")ve.select(hd(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!ve)se.activeMenuItem=se.firstMenuItem;else{const Ce=(b=se.getMenuItemColumn(ve))!=null?b:-1;if(Ce>=0&&Ce<((E=se.columnCount)!=null?E:1)-1){const De=se.nextMenuItem(1);De&&(se.activeMenuItem=De)}}break;case"ArrowLeft":if(se===this.rootMenu)ve||(se.activeMenuItem=se.firstMenuItem);else if((ve&&(ee=se.getMenuItemColumn(ve))!=null?ee:-1)<=0||!ve){se.hide();const De=se.parentMenu.activeMenuItem;if(De){const{element:Fe}=De;Fe==null||Fe.focus(),Fe==null||Fe.classList.remove("is-submenu-open")}}else{const De=se.nextMenuItem(-1);De&&(se.activeMenuItem=De)}break;case"ArrowDown":se.activeMenuItem=se.nextMenuItem(se.columnCount);break;case"ArrowUp":se.activeMenuItem=se.nextMenuItem(-se.columnCount);break;case"Home":case"PageUp":se.activeMenuItem=se.firstMenuItem;break;case"End":case"PageDown":se.activeMenuItem=se.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const Ce=se.findMenuItem(this.typingBuffer);Ce&&(se.activeMenuItem=Ce),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(Of(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const Ce=se.findMenuItem(this.typingBuffer);Ce&&(se.activeMenuItem=Ce),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else ae=!1}ae&&(y.preventDefault(),y.stopPropagation())}handleEvent(y){if(y.type==="keydown")this.handleKeydownEvent(y);else if(y.type==="keyup")this.handleKeyupEvent(y);else if(y.type==="pointermove")this.lastMoveEvent=y;else if(y.type==="pointerup"&&y.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(y.type==="contextmenu"){y.preventDefault(),y.stopPropagation();return}super.handleEvent(y)}dispatchEvent(y){return this._host?this._host.dispatchEvent(y):!0}get scrim(){return Qc.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),Qc.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),Qc.state==="open"&&Qc.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(me(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,Qc.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)}};n0.SUBMENU_DELAY=120;var wv=n0;function r0(a){return Hh(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(eu(a)||Ud(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||eu(a)&&typeof a.checked=="function"?!0:Ud(a)?a.submenu.some(r0):!1}var ah=class{};ah.DELAY=300,ah.MAX_DISTANCE=10;function Cv(a){return new Promise((y,b)=>{const E=Tf(a);E||y(!1);let ee=E;const ae=setTimeout(()=>{se.abort(),y(xv(ee,E)<ah.MAX_DISTANCE)},ah.DELAY),se=new AbortController,ve=se.signal;for(const Ce of["pointermove","pointerup","pointercancel"])window.addEventListener(Ce,De=>{if(De.type==="pointerup"||De.type==="pointercancel")clearTimeout(ae),se.abort(),y(!1);else if(De.type==="pointermove"){const Fe=Tf(De);Fe&&(ee=Fe)}},{passive:!0,signal:ve})})}function i0(a,y,b){return Vu(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:Tf(E),modifiers:hd(E)}))return a.preventDefault(),a.stopPropagation(),!0}if(a.type==="keydown"){const E=a;if(E.code==="ContextMenu"||E.code==="F10"&&E.shiftKey){const ee=y==null?void 0:y.getBoundingClientRect();if(ee&&b.show({target:y,location:{x:Math.ceil(ee.left+ee.width/2),y:Math.ceil(ee.top+ee.height/2)},modifiers:hd(E)}))return a.preventDefault(),a.stopPropagation(),!0}}if(a.type==="pointerdown"&&a.pointerType!=="mouse"&&a.button===0){let E=a.target;for(;E&&y!==E;)E=E.parentNode;if(!E||!b.visible)return!1;const ee=Tf(a);if(yield Cv(a))return b.state!=="closed"?!1:(b.show({target:y,location:ee}),!0)}return!1})}var a0={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};It(Object.keys(a0),"{body:auto}",{createAtom:a=>new z(me(we({},a),{body:Et(a.args[0]),accentChar:a0[a.command.slice(1)]}))}),It(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=un(Et(a.args[0]));return new z(me(we({},a),{body:Et(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),It(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(me(we({},a),{body:Et(a.args[0]),svgAccent:"overarc"}))}),It(["underarc","underparen"],"{body:auto}",{createAtom:a=>new Lc(me(we({},a),{body:Et(a.args[0]),svgBelow:"underarc"}))}),It("utilde","{body:auto}",{createAtom:a=>{const y=Et(a.args[0]),b=un(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new Lc(me(we({},a),{body:y,svgBelow:E,boxType:Ds(y)}))}}),It("^","{:string}",{createAtom:a=>{var y;return new Nr(me(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:"^"}))}}),It("`","{:string}",{createAtom:a=>{var y;return new Nr(me(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:"`"}))}}),It("'","{:string}",{createAtom:a=>{var y;return new Nr(me(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:"'"}))}}),It('"',"{:string}",{createAtom:a=>{var y,b;return new Nr(me(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]:'"'}))}}),It(".","{:string}",{createAtom:a=>{var y,b;return new Nr(me(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]:"."}))}}),It("=","{:string}",{createAtom:a=>{var y,b;return new Nr(me(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]:"="}))}}),It("~","{:string}",{createAtom:a=>{var y;return new Nr(me(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"}))}}),It("c","{:string}",{createAtom:a=>{var y;return new Nr(me(we({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),It("enclose","{notation:string}[style:string]{body:auto}",{createAtom:a=>{var y,b;const E=a.args,ee={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(y=a.style)!=null?y:{}};if(E[1]){const se=E[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const ve of se){const Ce=ve.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(Ce)ee.strokeWidth=Ce[1],ee.strokeStyle=Ce[2],ee.strokeColor=Ce[3];else{const De=ve.match(/\s*([a-z]*)\s*=\s*"(.*)"/);De&&(De[1]==="mathbackground"?ee.backgroundcolor=De[2]:De[1]==="mathcolor"?ee.strokeColor=De[2]:De[1]==="padding"?ee.padding=De[2]:De[1]==="shadow"&&(ee.shadow=De[2]))}}ee.strokeStyle==="dashed"?ee.svgStrokeStyle="5,5":ee.strokeStyle==="dotted"&&(ee.svgStrokeStyle="1,5")}ee.borderStyle=`${ee.strokeWidth} ${ee.strokeStyle} ${ee.strokeColor}`;const ae={};return((b=E[0])!=null?b:"").split(/[, ]/).filter(se=>se.length>0).forEach(se=>{ae[se.toLowerCase()]=!0}),new rf(a.command,Et(E[2]),ae,ee)}}),It("cancel","{body:auto}",{createAtom:a=>{var y;return new rf(a.command,Et(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:{}})}}),It("bcancel","{body:auto}",{createAtom:a=>{var y;return new rf(a.command,Et(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:{}})}}),It("xcancel","{body:auto}",{createAtom:a=>{var y;return new rf(a.command,Et(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:{}})}}),It(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new Lc(me(we({},a),{body:Et((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),It("overbrace","{:auto}",{createAtom:a=>new Lc(me(we({},a),{body:Et(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),It(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new Lc(me(we({},a),{body:Et(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),It(["underbrace"],"{:auto}",{createAtom:a=>new Lc(me(we({},a),{body:Et(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),It(["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,ae;return new Lc(me(we({},a),{svgBody:a.command.slice(1),above:((b=Et((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:Et((E=a.args)==null?void 0:E[1]),below:(ae=Et((ee=a.args)==null?void 0:ee[0]))!=null?ae:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(a,y)=>a.command+(a.hasEmptyBranch("below")?"":`[${a.belowToLatex(y)}]`)+`{${a.aboveToLatex(y)}}${a.supsubToLatex(y)}`}),It(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:a=>new fd(a.command.slice(1),me(we({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),It(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new fd({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],me(we({},a),{limits:"over-under",variant:"main"}))}),It(["lim","mod"],"",{ifMode:"math",createAtom:a=>new fd(a.command.slice(1),me(we({},a),{limits:"over-under",variant:"main"}))}),It(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new fd(a.command.slice(1),me(we({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),It(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new Nr(me(we({},a),{body:Et(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 ei("\xB0",{style:me(we({},a.style),{variant:"normal",variantStyle:"up"})});return new ei([b,ee],{type:"inner",isSelected:a.isSelected,caret:E})}}),It("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new op(me(we({},a),{body:Et(a.args[1]),index:a.args[0]?Et(a.args[0]):void 0}))}),It(["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 Rd(E[0]?Et(E[0]):[new Pa],E[1]?Et(E[1]):[new Pa],y)},serialize:(a,y)=>{const b=a.aboveToLatex(y),E=a.belowToLatex(y);return/^[0-9]$/.test(b)&&/^[0-9]$/.test(E)?`${a.command}${b}${E}`:Ii(a.command,b,E)}}),It(["brace","brack"],"",{infix:!0,createAtom:a=>new Rd(Et(a.args[0]),Et(a.args[1]),me(we({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>Wa([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),It(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new Rd(Et(E[0]),Et(E[1]),me(we({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>Wa([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),It(["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 Rd(Et(E[0]),Et(E[1]),me(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)}`}),It("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new Rd(Et(a.args[0]),Et(a.args[1]),me(we({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),It(["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)],me(we({},a),{limits:"auto",variant:"main"}))}),It("smallint","",{ifMode:"math",createAtom:a=>new fd("\u222B",me(we({},a),{limits:"adjacent",variant:"main"}))});var o0={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"};It(Object.keys(o0),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=o0[y.slice(1)];return new fh(b,me(we({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),It(["Re","Im"],"",{ifMode:"math",createAtom:a=>new fd({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],me(we({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),It("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new rp(me(we({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),It("the","{:value}",{createAtom:a=>new Nr(me(we({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new ya({parent:y},a.style);let ee="";a.isSelected&&(ee+=" ML__selected");const ae=E.evaluate(a.args[0]);return new ei(((b=hs(ae))!=null?b:"").split("").map(se=>new ei(se,{type:"ord",classes:ee,mode:a.mode,isSelected:a.isSelected,style:we({variant:"main"},a.style)})),{type:"lift",style:a.style,caret:a.caret,isSelected:a.isSelected,classes:ee}).wrap(E)},serialize:a=>{var y;return`\\the${(y=hs(a.args[0]))!=null?y:"\\relax"}`}}),It("mathtip","{:auto}{:math}",{createAtom:a=>new hh(me(we({},a),{body:Et(a.args[0]),tooltip:Et(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Nr.serialize([a.tooltip],me(we({},y),{defaultMode:"math"}))}}`}),It("texttip","{:auto}{:text}",{createAtom:a=>new hh(me(we({},a),{body:Et(a.args[0]),tooltip:Et(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${Nr.serialize([a.tooltip],me(we({},y),{defaultMode:"text"}))}}`}),It("error","{:math}",{createAtom:a=>new Nr(me(we({},a),{body:Et(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),It("ensuremath","{:math}",{createAtom:a=>new Nr(me(we({},a),{body:Et(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(me(we({},y),{defaultMode:"math"}))}}`}),It("color","{:value}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=hs(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),It("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=hs(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),It("boxed","{content:math}",{createAtom:a=>new el(me(we({},a),{body:Et(a.args[0]),framecolor:{string:"black"}}))}),It("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimBackgroundColor:(E=hs(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ee=y[0])!=null?ee:{string:"yellow"})}}}),It("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new el(me(we({},a),{body:Et(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(me(we({},y),{defaultMode:"text"})):Ii(a.command,(b=hs(a.framecolor))!=null?b:"",(E=hs(a.backgroundcolor))!=null?E:"",a.bodyToLatex(me(we({},y),{defaultMode:"text"})))}}),It("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=Et(a.args[1]);return b?new el(me(we({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new el(me(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 ae=[];a.padding&&ae.push((b=hs(a.padding))!=null?b:""),a.border&&ae.push(`border: ${a.border}`),a.backgroundcolor&&ae.push((E=hs(a.backgroundcolor))!=null?E:""),ee+=`[${ae.join(",")}]`}return Ii(ee,a.bodyToLatex(y))}}),It(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new Nr(me(we({},a),{body:Et(a.args[0])})),render:(a,y)=>{const b=new ya({parent:y,mathstyle:a.command.slice(1)},a.style),E=Nr.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):`{${Wa([a.command,a.bodyToLatex(y)])}}`}),It(["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]})}),It("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),It("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),It("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),It("selectfont","",{ifMode:"text",applyStyle:()=>({})}),It("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),It(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new Nr(me(we({},a),{body:Et(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),It("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),It("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),It("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),It("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),It("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),It("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),It("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),It("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),It("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),It("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),It("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),It("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),It("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),It("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),It("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),It("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),It("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),It("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),It("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),It("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),It("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),It("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),It("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),It("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),It("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),It("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),It("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),It(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),It(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),It("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),It("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),It("mbox","{:text}",{ifMode:"math",createAtom:a=>new Nr(me(we({},a),{type:"mord",body:Et(a.args[0]),mode:"math"})),serialize:(a,y)=>Ii("\\mbox",a.bodyToLatex(me(we({},y),{defaultMode:"text"})))}),It("text","{:text}",{ifMode:"math",applyMode:"text"}),It(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new Nr(me(we({},a),{body:Et(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:""})}}),It(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new Nr(me(we({},a),{body:Et(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}}),It("htmlData","{data:string}{content:auto}",{createAtom:a=>new Nr(me(we({},a),{body:Et(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}}),It(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new Nr(me(we({},a),{body:Et(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}}),It("em","{:rest}",{createAtom:a=>new Nr(me(we({},a),{body:Et(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"})}),It("emph","{:auto}",{createAtom:a=>new Nr(me(we({},a),{body:Et(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 s0={"\\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}};It(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new ip(me(we({},a),{delim:(y=a.args[0])!=null?y:".",size:s0[a.command].size,delimType:s0[a.command].mclass}))}}),It(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new sf(me(we({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),It(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new sf(me(we({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),It("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new Nr(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===Ws||E===Zs)&&(b=1),(E===Ml||E===Es)&&(b=2),(E===Al||E===Ms)&&(b=3);const ee=Et(a.args[b]);return Nr.createBox(y,ee)},serialize:(a,y)=>`\\mathchoice{${Nr.serialize(a.args[0],y)}}{${Nr.serialize(a.args[1],y)}}{${Nr.serialize(a.args[2],y)}}{${Nr.serialize(a.args[3],y)}}`}),It("mathop","{:auto}",{createAtom:a=>new Nr(me(we({},a),{type:"mop",body:Et(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=Nr.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 ei(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Ii(a.command,a.bodyToLatex(y))];return a.explicitSubsupPlacement&&(a.subsupPlacement==="over-under"&&b.push("\\limits"),a.subsupPlacement==="adjacent"&&b.push("\\nolimits"),a.subsupPlacement==="auto"&&b.push("\\displaylimits")),b.push(a.supsubToLatex(y)),Wa(b)}}),It(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new Nr(me(we({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:Et(a.args[0])}))}),It(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=Et(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 Nr(me(we({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=Nr.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 ei(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[Ii(a.command,a.bodyToLatex(y))];return a.explicitSubsupPlacement&&(a.subsupPlacement==="over-under"&&b.push("\\limits"),a.subsupPlacement==="adjacent"&&b.push("\\nolimits"),a.subsupPlacement==="auto"&&b.push("\\displaylimits")),b.push(a.supsubToLatex(y)),Wa(b)}}),It(["char","unicode"],"{charcode:value}",{createAtom:a=>new Nr(me(we({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${hs((y=a.args[0])!=null?y:{number:10067,base:"hexadecimal"})}`},render:(a,y)=>{let b=y.evaluate(a.args[0]);return(!b||!("number"in b))&&(b={number:10067,base:"hexadecimal"}),a.value=String.fromCodePoint(b.number),a.createBox(y)}}),It("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new Nr(a),render:(a,y)=>{var b,E,ee;const ae=new ya({parent:y,mathstyle:"textstyle"},a.style),se=ae.toEm((b=a.args[0])!=null?b:{dimension:0}),ve=ae.toEm((E=a.args[1])!=null?E:{dimension:10}),Ce=ae.toEm((ee=a.args[2])!=null?ee:{dimension:10}),De=new ei(null,{classes:"rule",type:"ord"});return De.width=ve,De.height=Ce+se,De.depth=-se,De.setStyle("border-right-width",ve,"em"),De.setStyle("border-top-width",Ce,"em"),De.setStyle("border-color",a.style.color),De.setStyle("vertical-align",se,"em"),a.isSelected&&De.setStyle("opacity","50%"),a.bind(ae,De),a.caret&&(De.caret=a.caret),De.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${hs(a.args[0])}]`:""}{${hs(a.args[1])}}{${hs(a.args[2])}}`}),It(["overline","underline"],"{:auto}",{createAtom:a=>new Nr(me(we({},a),{body:Et(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new ya({parent:y,mathstyle:"cramp"},a.style),ee=Nr.createBox(E,a.body);if(!ee)return null;const ae=E.metrics.defaultRuleThickness/E.scalingFactor,se=new ei(null,{classes:b+"-line"});se.height=ae,se.maxFontSize=ae*1.125*E.scalingFactor;let ve;return b==="overline"?ve=new $a({shift:0,children:[{box:ee},3*ae,{box:se},ae]}):ve=new $a({top:ee.height,children:[ae,{box:se},3*ae,{box:ee}]}),a.caret&&(ve.caret=a.caret),new ei(ve,{classes:b,type:"ignore"})}}),It("overset","{:auto}{base:auto}",{createAtom:a=>{const y=Et(a.args[1]);return new Lc(me(we({},a),{above:Et(a.args[0]),body:y,skipBoundary:!1,boxType:Ds(y)}))},serialize:(a,y)=>Ii(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),It("underset","{:auto}{base:auto}",{createAtom:a=>{const y=Et(a.args[1]);return new Lc(me(we({},a),{below:Et(a.args[0]),body:y,skipBoundary:!1,boxType:Ds(y)}))},serialize:(a,y)=>Ii(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),It("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=Et(a.args[2]);return new Lc(me(we({},a),{above:Et(a.args[0]),below:Et(a.args[1]),body:y,skipBoundary:!1,boxType:Ds(y)}))},serialize:(a,y)=>Ii(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),It(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new Lc(me(we({},a),{body:Et(a.args[2]),above:Et(a.args[1]),below:Et(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>Ii(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),It("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ee;return new of(me(we({},a),{body:Et(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}))}}),It(["vphantom"],"{:auto}",{createAtom:a=>new of(me(we({},a),{body:Et(a.args[0]),isInvisible:!0,smashWidth:!0}))}),It(["hphantom"],"{:auto}",{createAtom:a=>new of(me(we({},a),{body:Et(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),It(["phantom"],"{:auto}",{createAtom:a=>new of(me(we({},a),{body:Et(a.args[0]),isInvisible:!0}))}),It("not","{:math}",{createAtom:a=>{const y=Et(a.args[0]);return y.length===0?new Nr(me(we({},a),{type:"mrel",value:"\uE020"})):new Nr(me(we({},a),{body:[new dd(me(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{${Nr.serialize(b.group,y)}}`:`\\not${Nr.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":Ds(Et(a.args[0])),ee=Nr.createBox(y,a.body,{type:E});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)}}),It(["ne","neq"],"",{createAtom:a=>new Nr(me(we({},a),{type:"mrel",body:[new dd(me(we({},a),{body:"\uE020",align:"right",boxType:"rel"})),new Nr(me(we({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),It("rlap","{:auto}",{createAtom:a=>new dd(me(we({},a),{body:Et(a.args[0]),align:"right"}))}),It("llap","{:auto}",{createAtom:a=>new dd(me(we({},a),{body:Et(a.args[0]),align:"left"}))}),It("mathrlap","{:math}",{createAtom:a=>new dd(me(we({},a),{body:Et(a.args[0]),align:"left"}))}),It("mathllap","{:math}",{createAtom:a=>new dd(me(we({},a),{body:Et(a.args[0]),align:"left"}))}),It("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new el(me(we({},a),{body:Et(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Ii("\\raisebox",(b=hs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),It("raise","{:value}{:auto}",{createAtom:a=>{var y;return new el(me(we({},a),{body:Et(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return Ii("\\raise",(b=hs(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),It("lower","{:value}{:auto}",{createAtom:a=>{var y;return new el(me(we({},a),{body:Et(a.args[1]),padding:{dimension:0},offset:(y=sl(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return Ii("\\lower",(E=hs(sl((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),Te("0123456789/@.?!"),ot(65,90),ot(97,122),Te([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Te([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Te([["\\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]]),Te([["\\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"),Te([["\\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"]]),Te([["\\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"]]),Te([["\\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"),Te([["+",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"),Te([["\\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"),Te([["\\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]]),Te([["=",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"),Te([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Te([["\\wp",8472],["\\aleph",8501]]),Te([["\\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"),Te([["\\ ",160],["~",160]],"space"),It(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new sf(a)}),It("space","",{createAtom:a=>new sf(a)}),Te([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Te([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Te([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var l0="<mo>⁡</mo>",oh="<mo>⁢</mo>";function sh(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function ys(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Ev(a,y,b){var E,ee,ae,se,ve,Ce,De,Fe,nt,At,tn;let fn=!1;y=y!=null?y:a.atoms.length;let Ar="",hi="",Cr=a.atoms[a.index];const $r=(ee=(E=Cr.style)==null?void 0:E.variant)!=null?ee:"",yi=(se=(ae=Cr.style)==null?void 0:ae.variantStyle)!=null?se:"";let ri="";if($r||yi){const Ta=cn(Cr.value,(ve=Cr.style)==null?void 0:ve.variant,(Ce=Cr.style)==null?void 0:Ce.variantStyle);if(Ta!==Cr.value)return a.index+=1,Ar=`<mi${ys(Cr.id,b)}>${Ta}</mi>`,wu(Ar,a,b)||(a.mathML+=Ar,a.lastType="mi"),!0;ri=(De={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"}[yi+$r])!=null?De:"",ri=` mathvariant="${ri}"`}const ua={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Cr.command==="!")return a.index+=1,Ar="<mo>!</mo>",wu(Ar,a,b)||(a.mathML+=Ar,a.lastType="mo"),!0;if(ua[Cr.command]){a.index+=1;let Ta=`<mi${ys(Cr.id,b)}${ri}>${ua[Cr.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(Ta=oh+Ta),wu(Ta,a,b)||(a.mathML+=Ta,a.lastType="mi"),!0}if(Cr.command==="\\operatorname")hi=Gd(Cr.body),a.index+=1;else if($r||yi)for(;a.index<y&&(Cr.type==="mord"||Cr.type==="macro")&&!Cr.isDigit()&&$r===((nt=(Fe=Cr.style)==null?void 0:Fe.variant)!=null?nt:"")&&yi===((tn=(At=Cr.style)==null?void 0:At.variantStyle)!=null?tn:"");)hi+=Gd([Cr]),a.index+=1,Cr=a.atoms[a.index];else(Cr.type==="mord"||Cr.type==="macro")&&!Cr.isDigit()&&(hi+=Gd([Cr]),a.index+=1);if(hi.length>0){fn=!0,Ar=`<mi${ri}>${hi}</mi>`;const Ta=a.lastType;Ar.endsWith(">f</mi>")||Ar.endsWith(">g</mi>")?(Ar+=l0,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(Ar)?"mo":"mi",wu(Ar,a,b)||((Ta==="mi"||Ta==="mn"||Ta==="mtext"||Ta==="fence")&&(Ar=oh+Ar),a.mathML+=Ar)}return fn}function Mv(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function Av(a){let y=-1,b=a.index,E=!1,ee=!1;for(;b<a.atoms.length&&!E&&!ee;){const ae=a.atoms[b];E=!ae.isDigit(),ee=!E&&ae.superscript!==void 0,b++}return ee&&(y=b-1),y}function wu(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 ae=y.lastType;y.lastType="";const se=$o(ee.superscript,b);y.lastType="";const ve=$o(ee.subscript,b);if(y.lastType=ae,!se&&!ve)return!1;let Ce="";return se&&ve?Ce=`<msubsup>${a}${ve}${se}</msubsup>`:se?Ce=`<msup>${a}${se}</msup>`:ve&&(Ce=`<msub>${a}${ve}</msub>`),y.mathML+=Ce,y.lastType="",!0}function kv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="";for(;a.index<y&&a.atoms[a.index].mode==="text";)ee+=a.atoms[a.index].value?a.atoms[a.index].value:" ",a.index+=1;return ee.length>0?(a.mathML+=`<mtext ${ys(a.atoms[E].id,b)}>${ee}</mtext>`,a.lastType="mtext",!0):!1}function Lv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="",ae=Av(a);for(ae>=0&&ae<y&&(y=ae);a.index<y&&a.atoms[a.index].isDigit();)ee+=a.atoms[a.index].asDigit(),a.index+=1;return ee.length<=0?!1:(ee="<mn"+ys(a.atoms[E].id,b)+">"+ee+"</mn>",ae<0&&Mv(a)&&(ae=a.index,a.index+=1),wu(ee,a,b)||(a.mathML+=ee,a.lastType="mn"),!0)}function Dv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",ae="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let se=!1,ve=0;const Ce=a.index;let De=-1,Fe=Ce+1;for(;Fe<y&&!se;)a.atoms[Fe].type==="mopen"?ve+=1:a.atoms[Fe].type==="mclose"&&(ve-=1),ve===-1&&(se=!0,De=Fe),Fe+=1;se&&(ee="<mrow>",ee+=wd(a.atoms[Ce],b),ee+=$o(a.atoms,b,Ce+1,De),ee+=wd(a.atoms[De],b),ee+="</mrow>",a.index=De+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=oh),wu(ee,a,b)&&(E=!0,a.lastType="",ee=""),ae="fence")}return ee.length>0&&(E=!0,a.mathML+=ee,a.lastType=ae),E}function Bv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",ae="";const se=a.atoms[a.index];if(!se)return!1;const ve={"\\ne":"≠","\\neq":"&neq;","\\pm":"±","\\times":"×","\\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(ve[se.command]){a.index+=1;const Ce=`<mo${ys(se.id,b)}>${ve[se.command]}</mo>`;return wu(Ce,a,b)||(a.mathML+=Ce,a.lastType="mo"),!0}if(a.index<y&&(se.type==="mbin"||se.type==="mrel"))ee+=Zh(a.atoms[a.index],b),a.index+=1,ae="mo";else if(a.index<y&&(se.type==="mop"||se.type==="operator"||se.type==="extensible-symbol")){if(se.subsupPlacement==="over-under"&&(se.superscript||se.subscript)){const Ce=wd(se,b);return se.superscript&&se.subscript?(ee+="<munderover>"+Ce,ee+=$o(se.subscript,b),ee+=$o(se.superscript,b),ee+="</munderover>"):se.superscript?(ee+="<mover>"+Ce,ee+=$o(se.superscript,b),ee+="</mover>"):se.subscript&&(ee+="<munder>"+Ce,ee+=$o(se.subscript,b),ee+="</munder>"),a.mathML+=ee,a.lastType="mo",a.index+=1,!0}{const Ce=a.atoms[a.index],De=Ce.value==="\\operatorname",Fe=De?'<mi class="MathML-Unit"'+ys(Ce.id,b)+">"+Gd(Ce.value)+"</mi>":wd(Ce,b);ee+=Fe,!De&&!/^<mo>(.*)<\/mo>$/.test(Fe)?(ee+=l0,ae="applyfunction"):ae=De?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ee)&&(ee=oh+ee),a.index+=1}return ee.length>0&&(E=!0,wu(ee,a,b)||(a.mathML+=ee,a.lastType=ae)),E}function $o(a,y,b,E){y!=null||(y={});const ee={atoms:[],index:b!=null?b:0,mathML:"",lastType:""};if(typeof a=="number"||typeof a=="boolean")ee.mathML=a.toString();else if(typeof a=="string")ee.mathML=a;else if(a instanceof Nr)ee.mathML=Zh(a,y);else if(Array.isArray(a)){ee.atoms=a;let ae=0;for(E=E||(a?a.length:0);ee.index<E;)if(kv(ee,E,y)||Lv(ee,E,y)||Ev(ee,E,y)||Bv(ee,E,y)||Dv(ee,E,y))ae+=1;else if(ee.index<E){let se=Zh(ee.atoms[ee.index],y);ee.lastType==="mn"&&se.length>0&&ee.atoms[ee.index].type==="genfrac"&&(se="<mo>⁤</mo>"+se),ee.atoms[ee.index].type==="genfrac"?ee.lastType="mfrac":ee.lastType="",ee.index+=1,wu(se,ee,y)?ae+=1:se.length>0&&(ee.mathML+=se,ae+=1)}ae>1&&(ee.mathML="<mrow>"+ee.mathML+"</mrow>")}return ee.mathML}function wd(a,y){let b="";const E=Gd(a.value);return E&&(b="<mo"+ys(a.id,y)+">"+E+"</mo>"),b}function Gd(a){if(!a)return"";if(typeof a=="string")return sh(a);if(!Array.isArray(a)&&typeof a.body=="string")return sh(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return sh(y)}function Zh(a,y){var b,E,ee,ae,se,ve,Ce,De,Fe,nt,At,tn,fn,Ar,hi,Cr,$r,yi,ri,ua,Ta,xa;if(a.mode==="text")return`<mi${ys(a.id,y)}>${a.value}</mi>`;const Ko={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",longleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",longrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",longrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xleftrightarrows:"\u21C4",xRightleftharpoons:"\u21CC",longRightleftharpoons:"\u21CC",xLeftrightharpoons:"\u21CB",longLeftrightharpoons:"\u21CB"},ps={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Ei="",bc="",nu,Bc,Il,xc,sc,bs;const{command:nl}=a;if(a.command==="\\error")return`<merror${ys(a.id,y)}>${$o(a.body,y)}</merror>`;const Tl={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},ru={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":Ei=$o(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(Ei+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(Ei+="<mo>"+(Tl[a.leftDelim]||a.leftDelim)+"</mo>")),Ei+="<mtable",a.colFormat){for(Ei+=' columnalign="',Il=0;Il<a.colFormat.length;Il++)a.colFormat[Il].align&&(Ei+={l:"left",c:"center",r:"right"}[a.colFormat[Il].align]+" ");Ei+='"'}for(Ei+=">",Bc=0;Bc<a.array.length;Bc++){for(Ei+="<mtr>",nu=0;nu<a.array[Bc].length;nu++)Ei+="<mtd>"+$o(a.array[Bc][nu],y)+"</mtd>";Ei+="</mtr>"}Ei+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(Ei+="<mo>"+(Tl[a.leftDelim]||a.rightDelim)+"</mo>"),Ei+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(Ei+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(Ei+="<mo"+ys(a.id,y)+">"+(Tl[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(Ei+="<mfrac>",Ei+=$o(a.above,y)||"<mi> </mi>",Ei+=$o(a.below,y)||"<mi> </mi>",Ei+="</mfrac>"):(Ei+="<mtable"+ys(a.id,y)+">",Ei+="<mtr>"+$o(a.above,y)+"</mtr>",Ei+="<mtr>"+$o(a.below,y)+"</mtr>",Ei+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(Ei+="<mo"+ys(a.id,y)+">"+(Tl[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(Ei+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(Ei+="<msqrt"+ys(a.id,y)+">",Ei+=$o(a.body,y),Ei+="</msqrt>"):(Ei+="<mroot"+ys(a.id,y)+">",Ei+=$o(a.body,y),Ei+=$o(a.above,y),Ei+="</mroot>");break;case"leftright":const iu=a,au=iu.leftDelim;Ei="<mrow>",au&&au!=="."&&(Ei+=`<mo${ys(a.id,y)}>${(b=Tl[au])!=null?b:au}</mo>`),a.body&&(Ei+=$o(a.body,y));const ou=iu.matchingRightDelim();ou&&ou!=="."&&(Ei+=`<mo${ys(a.id,y)}>${(E=Tl[ou])!=null?E:ou}</mo>`),Ei+="</mrow>";break;case"sizeddelim":case"delim":Ei+=`<mo${ys(a.id,y)}>${Tl[a.value]||a.value}</mo>`;break;case"accent":Ei+='<mover accent="true"'+ys(a.id,y)+">",Ei+=$o(a.body,y),Ei+="<mo>"+(ru[nl]||a.accent)+"</mo>",Ei+="</mover>";break;case"line":case"overlap":break;case"overunder":sc=a.above,xc=a.below,(a.svgAbove||sc)&&(a.svgBelow||xc)?bs=a.body:sc&&sc.length>0?(bs=a.body,(ae=(ee=a.body)==null?void 0:ee[0])!=null&&ae.below?(xc=a.body[0].below,bs=a.body[0].body):((ve=(se=a.body)==null?void 0:se[0])==null?void 0:ve.type)==="first"&&((De=(Ce=a.body)==null?void 0:Ce[1])!=null&&De.below)&&(xc=a.body[1].below,bs=a.body[1].body)):xc&&xc.length>0&&(bs=a.body,(nt=(Fe=a.body)==null?void 0:Fe[0])!=null&&nt.above?(sc=a.body[0].above,bs=a.body[0].body):((tn=(At=a.body)==null?void 0:At[0])==null?void 0:tn.type)==="first"&&((Ar=(fn=a.body)==null?void 0:fn[1])!=null&&Ar.above)&&(sc=a.body[1].overscript,bs=a.body[1].body)),(a.svgAbove||sc)&&(a.svgBelow||xc)?(Ei+=`<munderover ${ys(a.id,y)}>`,Ei+=(hi=Ko[a.svgBody])!=null?hi:$o(bs,y),Ei+=(Cr=Ko[a.svgBelow])!=null?Cr:$o(xc,y),Ei+=($r=Ko[a.svgAbove])!=null?$r:$o(sc,y),Ei+="</munderover>"):a.svgAbove||sc?(Ei+=`<mover ${ys(a.id,y)}>`+((yi=Ko[a.svgBody])!=null?yi:$o(bs,y)),Ei+=(ri=Ko[a.svgAbove])!=null?ri:$o(sc,y),Ei+="</mover>"):(a.svgBelow||xc)&&(Ei+=`<munder ${ys(a.id,y)}>`+((ua=Ko[a.svgBody])!=null?ua:$o(bs,y)),Ei+=(Ta=Ko[a.svgBelow])!=null?Ta:$o(xc,y),Ei+="</munder>");break;case"placeholder":Ei+="?";break;case"mord":{Ei=typeof a.value=="string"?a.value:nl,nl==="\\char"?Ei="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":Ei.length>0&&Ei.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?Ei="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?Ei=a.value.charAt(0):(console.error("Did not expect this"),Ei=""));const Wc=/\d/.test(Ei)?"mn":"mi";Ei=`<${Wc}${ys(a.id,y)}>${sh(Ei)}</${Wc}>`;break}case"mbin":case"mrel":case"minner":Ei=wd(a,y);break;case"mpunct":Ei='<mo separator="true"'+ys(a.id,y)+">"+nl+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(Ei="<mo"+ys(a.id,y)+">",Ei+=nl==="\\operatorname"?a.body:nl||a.body,Ei+="</mo>");break;case"box":Ei='<menclose notation="box"',a.backgroundcolor&&(Ei+=' mathbackground="'+a.backgroundcolor+'"'),Ei+=ys(a.id,y)+">"+$o(a.body,y)+"</menclose>";break;case"spacing":Ei+='<mspace width="'+((xa=ps[nl])!=null?xa:0)+'em"/>';break;case"enclose":Ei='<menclose notation="';for(const Wc in a.notation)Object.prototype.hasOwnProperty.call(a.notation,Wc)&&a.notation[Wc]&&(Ei+=bc+Wc,bc=" ");Ei+=ys(a.id,y)+'">'+$o(a.body,y)+"</menclose>";break;case"prompt":Ei='<menclose notation="roundexbox""">'+$o(a.body,y)+"</menclose>";break;case"space":Ei+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Ei+=wd(a,y);break;case"mclose":Ei+=wd(a,y);break;case"macro":{const Wc=a.command+Gd(a.macroArgs);Wc&&(Ei+=`<mo ${ys(a.id,y)}>${Wc}</mo>`)}break;case"latexgroup":Ei+=$o(a.body,y);break;case"latex":Ei+="<mtext"+ys(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":Ei+=$o(a.body,y);break;case"text":Ei+=`<mtext ${ys(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${ys(a.id,y)} displaystyle="true">${$o(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${ys(a.id,y)} displaystyle="false">${$o(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return Ei}var Yd={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":'<break time="150ms"/> semi-colon <break time="150ms"/>',",":'<break time="150ms"/> comma <break time="150ms"/>',"|":'<break time="150ms"/>Vertical bar<break time="150ms"/>',"(":'<break time="150ms"/>Open paren. <break time="150ms"/>',")":'<break time="150ms"/> Close paren. <break time="150ms"/>',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\pm":"plus or minus","\\mp":"minus or plus","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","\\ne":"is not equal to ","\\neq":"is not equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","\u200B":"","\u2212":"minus ",":":'<break time="150ms"/> such that <break time="200ms"/> ',"\\colon":'<break time="150ms"/> such that <break time="200ms"/> ',"\\hbar":"etch bar ","\\iff":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\Longleftrightarrow":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set <break time="150ms"/><say-as interpret-as="character">n</say-as>',"\\C":'the set <break time="150ms"/><say-as interpret-as="character">c</say-as>',"\\Z":'the set <break time="150ms"/><say-as interpret-as="character">z</say-as>',"\\Q":'the set <break time="150ms"/><say-as interpret-as="character">q</say-as>',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'<break time="150ms"/>open paren<break time="150ms"/>',"\\rparen":'<break time="150ms"/>close paren<break time="150ms"/>',"\\lbrace":'<break time="150ms"/>open brace<break time="150ms"/>',"\\{":'<break time="150ms"/>open brace<break time="150ms"/>',"\\rbrace":'<break time="150ms"/>close brace<break time="150ms"/>',"\\}":'<break time="150ms"/>close brace<break time="150ms"/>',"\\langle":'<break time="150ms"/>left angle bracket<break time="150ms"/>',"\\rangle":'<break time="150ms"/>right angle bracket<break time="150ms"/>',"\\lfloor":'<break time="150ms"/>open floor<break time="150ms"/>',"\\rfloor":'<break time="150ms"/>close floor<break time="150ms"/>',"\\lceil":'<break time="150ms"/>open ceiling<break time="150ms"/>',"\\rceil":'<break time="150ms"/>close ceiling<break time="150ms"/>',"\\vert":'<break time="150ms"/>vertical bar<break time="150ms"/>',"\\mvert":'<break time="150ms"/>divides<break time="150ms"/>',"\\lvert":'<break time="150ms"/>left vertical bar<break time="150ms"/>',"\\rvert":'<break time="150ms"/>right vertical bar<break time="150ms"/>',"\\lbrack":'<break time="150ms"/> open square bracket <break time="150ms"/>',"\\rbrack":'<break time="150ms"/> close square bracket <break time="150ms"/>',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},jh={array:"array",matrix:"matrix",pmatrix:"parenthesis matrix",bmatrix:"square brackets matrix",Bmatrix:"braces matrix",vmatrix:"bars matrix",Vmatrix:"double bars matrix","matrix*":"matrix",smallmatrix:"small matrix"};function Iv(a){let y="";return a.startsWith("\\")&&(y=" "+a.replace("\\","")+" "),y}function wf(a){let y=0;if(Ke(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Tv(a){if(Ke(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function c0(a){let y="";if(Ke(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Ov(a){return a?a.map(y=>y.value).join(""):""}function Oo(a,y){var b,E,ee,ae,se;function ve(Fe){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(Fe)?` <say-as interpret-as="character">${Fe}</say-as>`:/[A-Z]/.test(Fe)?`capital <say-as interpret-as="character">${Fe.toLowerCase()}</say-as>`:Fe:/[a-z]/.test(Fe)?" '"+Fe.toUpperCase()+"'":/[A-Z]/.test(Fe)?" 'capital "+Fe.toUpperCase()+"'":Fe}function Ce(Fe){return"<emphasis>"+Fe+"</emphasis>"}if(!y)return"";let De="";if(Ke(y)){let Fe=!1,nt=!1;for(let At=0;At<y.length;At++)y[At].type!=="first"&&(y[At].mode!=="text"&&(nt=!1),At<y.length-2&&y[At].type==="mopen"&&y[At+2].type==="mclose"&&y[At+1].type==="mord"?(De+=" of ",De+=Ce(Oo(a,y[At+1])),At+=2):y[At].mode==="text"?nt?De+=(b=y[At].value)!=null?b:" ":(nt=!0,De+=Oo("text",y[At])):y[At].isDigit()?Fe?De+=y[At].asDigit():(Fe=!0,De+=Oo(a,y[At])):(Fe=!1,De+=Oo(a,y[At])))}else if(y.mode==="text")y.id&&a==="math"&&(De+='<mark name="'+y.id.toString()+'"/>'),De+=y.value;else{y.id&&a==="math"&&(De+='<mark name="'+y.id.toString()+'"/>');let Fe="",nt="",At="",tn=!1;const{command:fn}=y;switch(fn){case"\\vec":return"vector "+Oo(a,y.body);case"\\acute":return Oo(a,y.body)+" acute";case"\\grave":return Oo(a,y.body)+" grave";case"\\dot":return"dot over"+Oo(a,y.body);case"\\ddot":return"double dot over"+Oo(a,y.body);case"\\mathring":return"ring over"+Oo(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+Oo(a,y.body);case"\\bar":return Oo(a,y.body)+" bar";case"\\breve":return Oo(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Oo(a,y.body);case"\\hat":case"\\widehat":return"hat over"+Oo(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Oo(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+Oo(a,y.body)}switch(y.type){case"prompt":const Ar=y.body.length>1?'start input . <break time="500ms"/> '+Oo(a,y.body)+'. <break time="500ms"/> end input':"blank";De+=' <break time="300ms"/> '+Ar+'. <break time="700ms"/>'+((E=y.correctness)!=null?E:"")+' . <break time="700ms"/> ';break;case"array":const hi=y.array,Cr=y.environmentName;if(Object.keys(jh).includes(Cr)){De+=` begin ${jh[Cr]} `;for(let ri=0;ri<hi.length;ri++){ri>0&&(De+=","),De+=` row ${ri+1} `;for(let ua=0;ua<hi[ri].length;ua++)ua>0&&(De+=","),De+=` column ${ua+1}: `,De+=Oo("math",hi[ri][ua])}De+=` end ${jh[Cr]} `}break;case"group":fn==="\\ne"?De+=" not equal ":(fn==="\\not"&&(De+=" not "),De+=Oo("math",y.body));break;case"root":De+=Oo("math",y.body);break;case"genfrac":if(Fe=Oo("math",y.above),nt=Oo("math",y.below),wf(y.above)&&wf(y.below)){const ua={"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 "}[c0(y.above)+"/"+c0(y.below)];ua?De=ua:De+=Fe+" over "+nt}else De+=' the fraction <break time="150ms"/>'+Fe+' over <break time="150ms"/>'+nt+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(At=Oo("math",y.body),y.hasEmptyBranch("above"))De+=wf(y.body)?" the square root of "+At+" , ":' the square root of <break time="200ms"/>'+At+'. <break time="200ms"/> End square root';else{let ri=Oo("math",y.above);ri=ri.trim();const ua=ri.replace(/<mark([^/]*)\/>/g,"");ua==="3"?De+=' the cube root of <break time="200ms"/>'+At+'. <break time="200ms"/> End cube root':ua==="n"?De+=' the nth root of <break time="200ms"/>'+At+'. <break time="200ms"/> End root':De+=' the root with index: <break time="200ms"/>'+ri+', of <break time="200ms"/>'+At+'. <break time="200ms"/> End root'}break;case"leftright":{const ri=y;De+=(ee=ri.leftDelim?Yd[ri.leftDelim]:void 0)!=null?ee:ri.leftDelim,De+=Oo("math",y.body),De+=(ae=ri.rightDelim?Yd[ri.rightDelim]:void 0)!=null?ae:ri.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const $r=fn.replace(/^\\/g,""),yi=_t()[$r];yi&&(yi!=null&&yi.expand?De+=Oo("math",y.body):De+=`${$r} `);break;case"placeholder":De+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(fn==="\\mathbin"||fn==="\\mathrel"||fn==="\\mathopen"||fn==="\\mathclose"||fn==="\\mathpunct"||fn==="\\mathord"||fn==="\\mathinner"){De=Oo(a,y.body);break}let ri=y.isDigit()?y.asDigit():y.value,ua=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(ua=y.value,ri=ua),a==="text")De+=ri;else{if(y.type==="mbin"&&(De+='<break time="150ms"/>'),ri){const Ta=Yd[ri]||(ua?Yd[ua.trim()]:"");if(Ta)De+=" "+Ta;else{const xa=ua?Iv(ua.trim()):"";De+=xa||ve(ri)}}else De+=Oo("math",y.body);y.type==="mbin"&&(De+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const ri=y.command;if(ri==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let ua=Oo("math",y.superscript);ua=ua.trim();let Ta=Oo("math",y.subscript);Ta=Ta.trim(),De+=' the summation from <break time="200ms"/>'+Ta+'<break time="200ms"/> to <break time="200ms"/>'+ua+'<break time="200ms"/> of <break time="150ms"/>',tn=!0}else if(y.hasEmptyBranch("subscript"))De+=" the summation of";else{let ua=Oo("math",y.subscript);ua=ua.trim(),De+=' the summation from <break time="200ms"/>'+ua+'<break time="200ms"/> of <break time="150ms"/>',tn=!0}else if(ri==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let ua=Oo("math",y.superscript);ua=ua.trim();let Ta=Oo("math",y.subscript);Ta=Ta.trim(),De+=' the product from <break time="200ms"/>'+Ta+'<break time="200ms"/> to <break time="200ms"/>'+ua+'<break time="200ms"/> of <break time="150ms"/>',tn=!0}else if(y.hasEmptyBranch("subscript"))De+=" the product of ";else{let ua=Oo("math",y.subscript);ua=ua.trim(),De+=' the product from <break time="200ms"/>'+ua+'<break time="200ms"/> of <break time="150ms"/>',tn=!0}else if(ri==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let ua=Oo("math",y.superscript);ua=ua.trim();let Ta=Oo("math",y.subscript);Ta=Ta.trim(),De+=' the integral from <break time="200ms"/>'+Ce(Ta)+'<break time="200ms"/> to <break time="200ms"/>'+Ce(ua)+' <break time="200ms"/> of ',tn=!0}else De+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const ua=(se=Yd[y.value])!=null?se:y.command?Yd[y.command]:void 0;De+=ua||" "+y.value}else y.command&&(y.command==="\\mathop"?De+=Oo("math",y.body):y.command==="\\operatorname"?De+=Ov(y.body):De+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":At=Oo("math",y.body),De+=" crossed out "+At+". End crossed out.";break;case"space":case"spacing":break}if(!tn&&!y.hasEmptyBranch("superscript")){let Ar=Oo(a,y.superscript);Ar=Ar.trim();const hi=Ar.replace(/<[^>]*>/g,"");if(wf(y.superscript)){if(a==="math"){const Cr=Tv(y.superscript);Cr&&(De+='<mark name="'+Cr+'"/>')}hi==="\u2032"?De+=" prime ":hi==="2"?De+=" squared ":hi==="3"?De+=" cubed ":Number.isNaN(Number.parseInt(hi))?De+=" to the "+Ar+"; ":De+=' to the <say-as interpret-as="ordinal">'+hi+"</say-as> power; "}else Number.isNaN(Number.parseInt(hi))?De+=" raised to the "+Ar+"; ":De+=' raised to the <say-as interpret-as="ordinal">'+hi+"</say-as> power; "}if(!tn&&!y.hasEmptyBranch("subscript")){let Ar=Oo("math",y.subscript);Ar=Ar.trim(),De+=wf(y.subscript)?" sub "+Ar:" subscript "+Ar+". End subscript. "}}return De}function Xd(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ee=$o(a);if(ee){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=me(we({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=me(we({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=me(we({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const ae=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&ae.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let se="";try{se=ae.toSpeech(ee)}catch(ve){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",ve)}return se}return""}let E=Oo("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"&&ye()==="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 Cf={"\\ne":"\u2260","\\neq":"\u2260","\u2212":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},Ef={"\\pm":"+-","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrack":"[","\\rbrack":"]","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"(:","\\rangle":":)","\\sum":" sum ","\\prod":" prod ","\\bigcap":" nnn ","\\bigcup":" uuu ","\\int":" int ","\\oint":" oint ","\\ge":">=","\\le":"<=","\\ne":"!=","\\neq":"!=","\\lt":"<","\\gt":">","\\gets":"<-","\\to":"->","\\land":" and ","\\lor":" or ","\\lnot":" not ","\\forall":" AA ","\\exists":" EE ","\\in":" in ","\\notin":" !in ","\\mapsto":"|->","\\implies":"=>","\\iff":"<=>","\\cdot":"*","\\ast":"**","\\star":"***","\\times":"xx","\\div":"-:","\\ltimes":"|><","\\rtimes":"><|","\\bowtie":"|><|","\\circ":"@"};function Nv(a){let y="";for(const b of a){const E=y[y.length-1];E!==void 0&&/\d/.test(E)&&/^\d/.test(b)&&(y+=" "),y+=b}return y}function tl(a){var y,b,E,ee,ae,se,ve,Ce,De,Fe,nt,At,tn;if(!a)return"";if(Ke(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(tl).join("");if(a[0].mode==="text"){let yi=0,ri="";for(;((y=a[yi])==null?void 0:y.mode)==="text";)ri+=a[yi].body?tl(a[yi].body):a[yi].value,yi++;return`"${ri}" ${tl(a.slice(yi))}`}let Cr=0;const $r=[];for(;a[Cr]&&a[Cr].mode==="math";){let yi="";for(;a[Cr]&&a[Cr].type==="mord"&&/\d/.test(a[Cr].value);)yi+=a[Cr++].value;yi?$r.push(yi):$r.push(tl(a[Cr++]))}return $r.push(tl(a.slice(Cr))),Nv($r)}if(a.mode==="text")return`"${a.value}"`;let fn="";const{command:Ar}=a;let hi;if(Ar==="\\placeholder")return`(${tl(a.body)})`;switch(a.type){case"accent":const Cr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Ar];fn=`${Cr!=null?Cr:""} ${tl(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(xa=>xa.value).join("");case"group":case"root":fn=(b=Cf[Ar])!=null?b:tl(a.body);break;case"genfrac":{const xa=a;(xa.leftDelim||xa.rightDelim)&&(fn=xa.leftDelim==="."||!xa.leftDelim?"{:":xa.leftDelim),xa.hasBarLine?(fn+="(",fn+=tl(xa.above),fn+=")/(",fn+=tl(xa.below),fn+=")"):(fn+="("+tl(xa.above)+"),",fn+="("+tl(xa.below)+")"),(xa.leftDelim||xa.rightDelim)&&(fn+=xa.rightDelim==="."||!xa.rightDelim?"{:":xa.rightDelim)}break;case"surd":fn+=a.hasEmptyBranch("above")?"sqrt("+tl(a.body)+")":"root("+tl(a.above)+")("+tl(a.body)+")";break;case"latex":fn=a.value;break;case"leftright":{const xa=a,Ko=xa.leftDelim;fn+=Ko==="."||!Ko?"{:":Ko,fn+=tl(xa.body);const ps=xa.matchingRightDelim();fn+=ps==="."||!ps?":}":ps}break;case"sizeddelim":case"delim":fn=a.value;break;case"overlap":break;case"overunder":break;case"mord":fn=(ee=(E=Cf[Ar])!=null?E:Ar)!=null?ee:typeof a.value=="string"?a.value:"",fn.startsWith("\\")&&(fn+=" "),hi=Ar?Ar.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,hi?fn=String.fromCodePoint(Number.parseInt("0x"+hi[1])):fn.length>0&&fn.startsWith("\\")&&(fn=typeof a.value=="string"?a.value.charAt(0):a.command),fn=Pv(fn,a.style);break;case"mbin":case"mrel":case"minner":fn=(se=(ae=Cf[Ar])!=null?ae:Ef[Ar])!=null?se:a.value;break;case"mopen":case"mclose":fn=a.value;break;case"mpunct":fn=(ve=Ef[Ar])!=null?ve:Ar;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(Ef[Ar]?fn=Ef[Ar]:fn=Ar==="\\operatorname"?tl(a.body):(Ce=a.value)!=null?Ce:Ar,fn+=" ");break;case"array":const $r=a.array,yi=a.environmentName,ri=(De={bmatrix:["[","]"],"bmatrix*":["[","]"]}[yi])!=null?De:["(",")"],ua=[];for(const xa of $r){const Ko=[];for(const ps of xa)Ko.push(ri[0]+tl(ps)+ri[1]);ua.push(Ko.join(","))}const Ta=(Fe={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[yi])!=null?Fe:["(",")"];fn=Ta[0]+ua.join(",")+Ta[1];break;case"box":break;case"spacing":fn=(nt=Cf[Ar])!=null?nt:" ";break;case"enclose":fn="("+tl(a.body)+")";break;case"space":fn=" ";break;case"subsup":fn="";break;case"macro":fn=(tn=(At=Cf[Ar])!=null?At:Ef[Ar])!=null?tn:tl(a.body);break}if(!a.hasEmptyBranch("subscript")){fn+="_";const Cr=tl(a.subscript);fn+=Cr.length!==1?`(${Cr})`:Cr}if(!a.hasEmptyBranch("superscript")){fn+="^";const Cr=tl(a.superscript);fn+=Cr.length!==1?`(${Cr})`:Cr}return fn}function Pv(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 Bl(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ee=new ya({from:me(we({},yo()),{renderPlaceholder:()=>new ei(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),se=new Nr({mode:"math",type:"root",body:Dl(a,{context:ee,parseMode:"math",mathstyle:y.mathstyle})}).render(ee);return se?(Cs(lf(se,ee)),fl(se,{classes:"ML__latex"}).toMarkup()):""}function ky(a){return tp(a,{context:yo()})}function Rv(a,y={}){return $o(Dl(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Fv(a){const y=Dl(a,{parseMode:"math",mathstyle:"displaystyle"});return Xd(y)}var lh;function zv(a){var y,b;if(!lh){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?lh=new E:console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}return(b=lh==null?void 0:lh.box(a).latex)!=null?b:""}function Ly(a,y="math"){return tl(new Nr({type:"root",body:Dl(a,{parseMode:y})}))}function Dy(a){return Gc(a,{format:"ascii-math"})[1]}function Uh(a){if(typeof a=="string"){const y=Kv(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?_v(a):"a"in a?u0(a):a}function Qd(a){return a<0?0:a>255?255:Math.round(a)}function Kv(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,ae={L:y,a:b*Math.cos(ee),b:b*Math.sin(ee)};return a.alpha!==void 0&&(ae.alpha=a.alpha),ae}function Hv(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.sqrt(b*b+E*E),se=Math.atan2(E,b)*180/Math.PI,ve={L:y,C:ee,H:se};return a.alpha!==void 0&&(ve.alpha=a.alpha),ve}function Gh(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*E,3),ae=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*E,3),se=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*E,3),ve=4.076741661347994*ee-3.307711590408193*ae+.230969928729428*se,Ce=-1.2684380040921763*ee+2.6097574006633715*ae-.3413193963102197*se,De=-.004196086541837188*ee-.7034186144594493*ae+1.7076147009309444*se,Fe=nt=>{const At=Math.abs(nt);return At<=.0031308?nt*12.92:(Math.sign(nt)||1)*(1.055*Math.pow(At,1/2.4)-.055)};return[Fe(ve),Fe(Ce),Fe(De)]}function Yh(a){const[y,b,E]=a;return y>=0&&y<=1&&b>=0&&b<=1&&E>=0&&E<=1}function Xh(a,y){let[b,E,ee]=a;return b=Qd(b*255),E=Qd(E*255),ee=Qd(ee*255),y!==void 0?{r:b,g:E,b:ee,alpha:y}:{r:b,g:E,b:ee}}function u0(a){let[y,b,E]=Gh(a);if(Yh([y,b,E]))return Xh([y,b,E],a.alpha);const ee=Hv(a);if(ee.C=0,[y,b,E]=Gh(Vh(ee)),!Yh([y,b,E]))return Xh([y,b,E],a.alpha);let ae=0,se=a.L,ve=(ae+se)/2;ee.C=ve;const Ce=.36/Math.pow(2,12);for(;se-ae>Ce;)ve=(ae+se)/2,ee.C=ve,[y,b,E]=Gh(Vh(ee)),Yh([y,b,E])?ae=ve:se=ve;return Xh([y,b,E],a.alpha)}function _v(a){return u0(Vh(a))}function d0(a,y){const b=Uh(a),E=Uh(y),ee=.56,ae=.57,se=.62,ve=.65,Ce=.022,De=1.414,Fe=.1,nt=5e-4,At=1.14,tn=.027,fn=1.14,Ar=.027;function hi(xa){return xa>=Ce?xa:xa+su(Ce-xa,De)}function Cr(xa){return(xa<0?-1:1)*Math.pow(Math.abs(xa),2.4)}const $r=hi(Cr(E.r/255)*.2126729+Cr(E.g/255)*.7151522+Cr(E.b/255)*.072175),yi=hi(Cr(b.r/255)*.2126729+Cr(b.g/255)*.7151522+Cr(b.b/255)*.072175);let ri,ua,Ta;return Math.abs(yi-$r)<nt?ua=0:yi>$r?(ri=su(yi,ee)-su($r,ae),ua=ri*At):(ri=su(yi,ve)-su($r,se),ua=ri*fn),Math.abs(ua)<Fe?Ta=0:ua>0?Ta=ua-Ar:Ta=ua+tn,Ta*100}function f0(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const E=d0(a,b),ee=d0(a,y);return Math.abs(E)>Math.abs(ee)?b:y}function Wv(a){const y=Uh(a);let b=((1<<24)+(Qd(y.r)<<16)+(Qd(y.g)<<8)+Qd(y.b)).toString(16).slice(1);return y.alpha!==void 0&&y.alpha<1&&(b+=("00"+Math.round(y.alpha*255).toString(16)).slice(-2)),b[0]===b[1]&&b[2]===b[3]&&b[4]===b[5]&&b[6]===b[7]&&(b=b[0]+b[2]+b[4]+(y.alpha!==void 0&&y.alpha<1?b[6]:"")),"#"+b}function Is(a){const y=h0(a);let b="";for(const E of y){if(typeof E.value!="string")return"";b+=E.value}return b}function h0(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function Zv(a,y){const b=h0(a);if(b.length!==1)return!1;const E=ph[y];return E?!!E.test(b[0].value):!1}function jv(a,y){return Is(a).length>0}function Uv(a){return[Qh(a,"double-struck","mathbb","tooltip.blackboard"),Qh(a,"fraktur","mathfrak","tooltip.fraktur"),Qh(a,"calligraphic","mathcal","tooltip.caligraphic"),Jh(a,"up","mathrm","tooltip.roman-upright"),Jh(a,"bold","mathbf","tooltip.bold"),Jh(a,"italic","mathit","tooltip.italic")]}function Vv(a){return[{label:()=>Bl(`\\vec{${Is(a)}}`),visible:()=>Is(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\overrightarrow{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\overleftarrow{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\dot{${Is(a)}}`),visible:()=>Is(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\ddot{${Is(a)}}`),visible:()=>Is(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\bar{${Is(a)}}`),visible:()=>Is(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\overline{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\overgroup{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\overbrace{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\underline{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\undergroup{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\underbrace{${Is(a)}}`),visible:()=>Is(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Gv(a){return[{label:()=>Bl(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Bl(`\\bbox[5px, border: 2px dashed black]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Yv(a){const y=[];for(const b of Object.keys(Ze))y.push({class:(Wv(f0(Ze[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ze[b]} "></span>`,ariaLabel:()=>{var E;return(E=rt(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({backgroundColor:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({backgroundColor:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}function Xv(a){const y=[];for(const b of Object.keys(Ge))y.push({class:(f0(Ge[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Ge[b]} "></span>`,ariaLabel:()=>{var E;return(E=rt(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({color:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({color:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}var Qv=class extends e0{constructor(a,y,b,E){super(a,y),this.row=b,this.col=E}set active(a){const y=this.parentMenu.children;if(a)for(const b of y)b.element.classList.toggle("active",b.row<=this.row&&b.col<=this.col);else for(const b of y)b.element.classList.remove("active")}};function Jv(a){const y=[];for(let b=1;b<=5;b++)for(let E=1;E<=5;E++)y.push({onCreate:(ee,ae)=>new Qv(ee,ae,b,E),label:"\u2610",tooltip:()=>rt("tooltip.row-by-col",b,E),data:{row:b,col:E},onMenuSelect:()=>{a.insert(`\\begin{pmatrix}${Array(b).fill(Array(E).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return y}function $v(a){return[{label:()=>rt("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>Cd(a)},{label:()=>rt("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>Cd(a)},{label:()=>rt("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>Cd(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=ey(a);return b<y.maxColumns}},{label:()=>rt("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>Cd(a)},{type:"divider"},{label:()=>rt("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>Cd(a)},{label:()=>rt("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>Cd(a)},{type:"divider"},{label:()=>rt("menu.borders"),visible:()=>(qv(a)||Cd(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>Mf(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>Mf(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>Mf(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>Mf(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>Mf(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>rt("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:Jv(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>rt("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>rt("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{Kd(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>rt("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{Kd(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>rt("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>rt("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Uv(a),submenuClass:"variant-submenu"},{label:()=>rt("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Xv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>rt("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Yv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>rt("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Vv(a),submenuClass:"variant-submenu"},{label:()=>rt("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&Is(a).length>0,submenu:Gv(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>rt("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=ty(a);if(!y){a.model.announce("plonk");return}a.model.selectionIsCollapsed?(a.model.position=a.model.lastOffset,a.insert(`=${y}`,{insertionMode:"insertAfter",selectionMode:"item"})):a.insert(y,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>rt("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?rt("menu.solve-for",Bl(b)):rt("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(ae=>{var se;return(se=ae.simplify().latex)!=null?se:""});if(!ee){a.model.announce("plonk");return}a.insert(`${E}=${ee.length===1?ee[0]:"\\left\\lbrace"+(ee==null?void 0:ee.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>rt("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>rt("menu.copy"),id:"copy",submenu:[{label:()=>rt("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Ga.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>rt("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Ga.copyToClipboard(a,"ascii-math")},{label:()=>rt("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Ga.copyToClipboard(a,"math-ml")}]},{label:()=>rt("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>rt("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function Cd(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function qv(a){return a.model.at(a.model.position).type==="array"}function ey(a){var y;const b=(y=a.model.parentEnvironment)==null?void 0:y.array;return b?[b.length,b.reduce((E,ee)=>Math.max(E,ee.length),0)]:[0,0]}function Mf(a,y){Pf(a),a.flushInlineShortcutBuffer(),Tp(a.model,y),Qs(a)}function ty(a){var y,b;let E;if(a.model.selectionIsCollapsed?E=(y=window.MathfieldElement.computeEngine)==null?void 0:y.parse(a.getValue(),{canonical:!1}):E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection),{canonical:!1}),!E)return"";let ee=E.evaluate();return ee.isSame(E)&&(ee=E.N()),ee.latex}function Qh(a,y,b,E){return{label:()=>Bl(`\\${b}{${Is(a)}}`),tooltip:()=>{var ee;return(ee=rt(E))!=null?ee:E},visible:()=>Zv(a,y),checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({variant:y}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({variant:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Jh(a,y,b,E){return{label:()=>Bl(`\\${b}{${Is(a)}}`),tooltip:()=>{var ee;return(ee=rt(E))!=null?ee:E},visible:()=>jv(a,y),checked:()=>{var ee;return{some:"mixed",all:!0}[(ee=a.queryStyle({variantStyle:y}))!=null?ee:!1]},onMenuSelect:()=>{a.applyStyle({variantStyle:y},{operation:"toggle"}),a.adoptStyle="none"}}}function Jd(a,y){return a+Xd(y)}dc({speak:(a,y,b)=>ny(a,y,b)},{target:"mathfield"});function ny(a,y,b){var E,ee;b=b!=null?b:{withHighlighting:!1};const{model:ae}=a;function se(Fe){let nt=null;switch(Fe){case"all":nt=ae.root;break;case"selection":nt=ae.getAtoms(ae.selection);break;case"left":{nt=ae.getAtoms(ae.offsetOf(ae.at(ae.position).leftSibling),ae.position);break}case"right":{nt=ae.getAtoms(ae.position,ae.offsetOf(ae.at(ae.position).rightSibling));break}case"group":nt=ae.getAtoms(ae.getSiblingsRange(ae.position));break;case"parent":{const{parent:At}=ae.at(ae.position);At!=null&&At.parent?nt=At:nt=ae.root;break}default:nt=ae.root}return nt}function ve(Fe){let nt="";switch(Fe){case"all":console.log("Internal failure: speak all failed");break;case"selection":nt="no selection";break;case"left":nt="at start";break;case"right":nt="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":nt="no parent";break;default:console.log('unknown speak_ param value: "'+Fe+'"');break}return nt}const Ce=se(y);if(Ce===null)return(ee=(E=window.MathfieldElement).speakHook)==null||ee.call(E,ve(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const De=Xd(Ce);return dt()&&b.withHighlighting?(Uu().readAloudMathfield=a,pd(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,De)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(De),!1}function ry(a){var y,b;if(!dt()){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,(ae,se)=>{if(ae)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ae}`);else if(se!=null&&se.AudioStream){const ve=new Uint8Array(se.AudioStream),Ce=new Blob([ve.buffer],{type:"audio/mpeg"}),De=URL.createObjectURL(Ce);new Audio(De).play().catch(nt=>console.log(nt))}else console.log("polly.synthesizeSpeech():",se)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function p0(a){var y;let b;if(a.parent.type==="prompt")a.parentBranch==="body"&&(b="prompt");else if(a.parentBranch==="body")b=a.type&&(y={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[a.type])!=null?y:"parent";else if(a.parent.type==="genfrac"){if(a.parentBranch==="above")return"numerator";if(a.parentBranch==="below")return"denominator"}else a.parent.type==="surd"?a.parentBranch==="above"&&(b="index"):a.parentBranch==="superscript"?b="superscript":a.parentBranch==="subscript"&&(b="subscript");return b||console.log("unknown relationship"),b!=null?b:"parent"}function iy(a,y,b,E){let ee="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ee=Jd("deleted: ",E);else if(y==="focus"||y.includes("move"))ee=ay(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+oy(a.model);else if(y==="replacement")ee=Jd("",a.model.at(a.model.position));else if(y==="line"){const ae=Jd("",a.model.root);a.keyboardDelegate.setAriaLabel(ae)}else ee=E?Jd(y+" ",E):y;if(ee){const ae=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ee+ae}}function ay(a,y){if(Number.isNaN(y))return"";const b=a.at(y);if(!b||b.treeDepth<=a.at(a.position).treeDepth)return"";let E="",ee=b.parent;const ae=a.at(a.position).parent;for(;ee!==a.root&&ee!==ae;)E+=`out of ${p0(ee)};`,ee=ee.parent;return E}function oy(a){if(!a.selectionIsCollapsed)return Jd("",a.getAtoms(a.selection));let y="";const b=a.at(a.position),E=p0(b);return b.isFirstSibling&&(y=(E?"start of "+E:"unknown")+": "),b.isLastSibling?b.isFirstSibling||(y+=E?"end of "+E:"unknown"):y+=Jd("",b),y}var sy=class{constructor(a,y,b){this.mathfield=a,this.mode=y,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=b}dispose(){this.mathfield=void 0}getState(){const a={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(a.direction=this.selection.direction),{content:this.root.toJson(),selection:a,mode:this.mode}}setState(a,y){var b;const E=this.silenceNotifications;this.silenceNotifications=(b=y==null?void 0:y.silenceNotifications)!=null?b:!0;let ee={};if((y==null?void 0:y.type)==="undo"&&(ee={inputType:"historyUndo"}),(y==null?void 0:y.type)==="redo"&&(ee={inputType:"historyRedo"}),this.contentWillChange(ee)){const ae=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=_u(a.content),this.selection=a.selection,this.silenceNotifications=ae,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 ae=this.normalizeSelection(a,y);if(ae===void 0)throw new TypeError("Invalid selection");if(ae.ranges.length===1&&ae.ranges[0][0]===ae.ranges[0][1]){const Fe=ae.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(Fe))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((E=this.at(Fe-1))!=null&&E.parentPrompt){this._anchor=this.normalizeOffset(Fe-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ee=this.at(Fe+1))!=null&&ee.parentPrompt){this._anchor=this.normalizeOffset(Fe+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=Fe,this._position=Fe,this._selection=ae;return}const se=Gs(ae);ae.direction==="backward"?[this._position,this._anchor]=se:[this._anchor,this._position]=se;const ve=this.at(se[0]+1),Ce=this.at(se[1]),De=Nr.commonAncestor(ve,Ce);(De==null?void 0:De.type)==="array"&&ve.parent===De&&Ce.parent===De?this._selection={ranges:[se],direction:ae.direction}:this._selection={ranges:[se],direction:ae.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(a){var y;const b=this.at(a);(b==null?void 0:b.type)==="placeholder"?this.setSelection(a-1,a):((y=b==null?void 0:b.rightSibling)==null?void 0:y.type)==="placeholder"?this.setSelection(a,a+1):this.position=a,b instanceof Pl&&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(Nu(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((De,Fe)=>[...De,...this.getAtoms(Fe,E)],[]);a=a.ranges[0]}let ee,ae;if(Zl(a)){if(ee=a,!Zl(y))return[];ae=y}else[ee,ae]=a,E=y!=null?y:{};if(!Number.isFinite(ee))return[];E.includeChildren===void 0&&(E.includeChildren=!1),ee<0&&(ee=this.lastOffset-ee+1),ae<0&&(ae=this.lastOffset-ae+1);const se=Math.min(ee,ae)+1,ve=Math.max(ee,ae);if(!E.includeChildren&&se===1&&ve===this.lastOffset)return[this.root];let Ce=[];for(let De=se;De<=ve;De++){const Fe=this.atoms[De];m0(this,Fe,se,ve)&&Ce.push(Fe)}return E.includeChildren||(Ce=Ce.filter(De=>{let Fe=!1,{parent:nt}=De;for(;nt&&!Fe;)Fe=m0(this,nt,se,ve),nt=nt.parent;return!Fe})),Ce}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 ae=y;ae<=ee;ae++)if(E=this.atoms[ae],a(E))return E;for(let ae=0;ae<y;ae++)if(E=this.atoms[ae],a(E))return E;return}for(let ae=y;ae>=0;ae--)if(E=this.atoms[ae],a(E))return E;for(let ae=ee;ae>y;ae--)if(E=this.atoms[ae],a(E))return E}extractAtoms(a){let y=this.getAtoms(a);if(y.length===1&&!y[0].parent)if(y[0].type==="root")y=[...y[0].body],y.shift();else return y=this.root.cells.flat(),this.root=new Nr({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 Nr.serialize([a],{expandMacro:b==="latex-expanded",skipStyles:b==="latex-unstyled",skipPlaceholders:b==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode});if(b==="math-ml")return $o(a);if(b==="spoken")return Xd(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ee=Xd(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}if(b==="spoken-ssml"||b==="spoken-ssml-with-highlighting"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const ee=Xd(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}return b==="ascii-math"?tl(a):(console.error(`MathLive 0.98.5: Unexpected format "${b}`),"")}getValue(a,y,b){if(a===void 0)return this.atomToString(this.root,"latex");if(typeof a=="string"&&a!=="math-json")return this.atomToString(this.root,a);let E,ee;if(Zl(a)&&Zl(y)?(E=[this.normalizeRange([a,y])],ee=b):pu(a)?(E=[this.normalizeRange(a)],ee=y):Nu(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 ae=this.getValue({ranges:E},"latex-unstyled");try{const se=window.MathfieldElement.computeEngine.parse(ae);return JSON.stringify(se.json)}catch(se){return JSON.stringify(["Error",`'${se.toString()}'`])}}if(ee.startsWith("latex")){const ae={expandMacro:ee==="latex-expanded",skipStyles:ee==="latex-unstyled",skipPlaceholders:ee==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return Wa(E.map(se=>Nr.serialize(this.getAtoms(se),ae)))}return E.map(ae=>this.getAtoms(ae).map(se=>this.atomToString(se,ee)).join("")).join("")}extendSelectionTo(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const b=this.normalizeRange([a,y]);let[E,ee]=b,{parent:ae}=this.at(ee);if(ae&&(ae.type==="genfrac"||ae.type==="subsup"))for(;ae!==this.root&&$h(this,ae,[E,ee]);)ee=this.offsetOf(ae),ae=ae.parent;for(ae=this.at(E).parent;ae!==this.root&&$h(this,ae,[E,ee]);)E=this.offsetOf(ae.leftSibling),ae=ae.parent;if(ae=this.at(ee).parent,(ae==null?void 0:ae.type)==="genfrac")for(;ae!==this.root&&$h(this,ae,[E,ee]);)ee=this.offsetOf(ae),console.assert(ee>=0),ae=ae.parent;this._position=this.normalizeOffset(y),this._selection={ranges:[[E,ee]],direction:"none"}})}announce(a,y,b=[]){var E,ee;((ee=(E=this.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("announce",{detail:{command:a,previousPosition:y,atoms:b},cancelable:!0,bubbles:!0,composed:!0})))!=null?ee:!0)&&iy(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,E=this._anchor,ee=this._position,ae=this.silenceNotifications;this.silenceNotifications=!0;const se=this.root.changeCounter;y();const ve=this.root.changeCounter!==se,Ce=E!==this._anchor||ee!==this._position||hu(this._selection,b)==="different";return this.silenceNotifications=ae,a.content&&ve&&this.contentDidChange({inputType:a.type}),a.selection&&Ce&&this.selectionDidChange(),ve||Ce}normalizeOffset(a){return a>0?a=Math.min(a,this.lastOffset):a<0&&(a=this.lastOffset+a+1),a}normalizeRange(a){let[y,b]=a;return y=this.normalizeOffset(y),b=this.normalizeOffset(b),y<b?[y,b]:[b,y]}normalizeSelection(a,y){var b;let E;if(Zl(a)){const ee=this.normalizeOffset(a);if(Zl(y)){const ae=this.normalizeOffset(y);E=ee<=ae?{ranges:[[ee,ae]],direction:"none"}:{ranges:[[ae,ee]],direction:"backward"}}else E={ranges:[[ee,ee]],direction:"none"}}else if(pu(a)){const ee=this.normalizeOffset(a[0]),ae=this.normalizeOffset(a[1]);E=ee<=ae?{ranges:[[ee,ae]],direction:"none"}:{ranges:[[ae,ee]],direction:"backward"}}else Nu(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(qc(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const b=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",me(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(qc(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function m0(a,y,b,E){const ee=a.offsetOf(y);if(ee<b||ee>E)return!1;if(!y.hasChildren)return!0;const ae=a.offsetOf(y.firstChild);if(ae>=b&&ae<=E){const se=a.offsetOf(y.lastChild);if(se>=b&&se<=E)return!0}return!1}function $h(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[E,ee]=b,ae=a.offsetOf(y.firstChild),se=a.offsetOf(y.lastChild);return ae>=E&&ae<=ee&&se>=ae&&se<=ee}function Af(a,y,b,E){var ee,ae,se,ve,Ce,De;const Fe=b.parent;if(Fe&&b instanceof Jo){const nt=!E&&y==="forward"||E==="body"&&y==="backward";let At=nt?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return nt?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(Fe.addChildrenAfter(b.removeBranch("body"),b),Fe.removeChild(b),At--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(Fe.addChildrenAfter(b.removeBranch("body"),b),Fe.removeChild(b),At--),a.position=At,!0}if(Fe&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const nt=b.leftSibling;b.hasChildren&&Fe.addChildrenAfter(b.removeBranch("body"),b),Fe.removeChild(b),a.position=a.offsetOf(nt)}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),Fe.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(Fe&&(b.type==="box"||b.type==="enclose")){const nt=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return Fe.addChildrenAfter(b.removeBranch("body"),b),Fe.removeChild(b),a.position=a.offsetOf(nt),!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 nt=kf.fractionNavigationOrder==="numerator-denominator"?"above":"below",At=nt==="above"?"below":"above";if(Fe&&(y==="forward"&&E===nt||y==="backward"&&E===At)){const tn=b.removeBranch(nt),fn=b.removeBranch(At);return Fe.addChildrenAfter([...tn,...fn],b),Fe.removeChild(b),a.position=a.offsetOf(tn.length>0?tn[tn.length-1]:fn[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 nt=y==="forward"?(se=(ee=b.superscript)==null?void 0:ee[0])!=null?se:(ae=b.subscript)==null?void 0:ae[0]:(De=(ve=b.subscript)==null?void 0:ve[0].lastSibling)!=null?De:(Ce=b.superscript)==null?void 0:Ce[0].lastSibling;return nt&&(a.position=a.offsetOf(nt)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const nt=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=nt,!0}if(E==="superscript")if(y==="backward"){const nt=a.offsetOf(b.firstChild)-1;console.assert(nt>=0),a.position=nt}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 nt=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=nt}return!0}if((Fe==null?void 0:Fe.type)==="genfrac"&&!E&&b.type!=="first"){let nt=a.offsetOf(b.leftSibling);return Fe.removeChild(b),Fe.hasEmptyBranch("above")&&Fe.hasEmptyBranch("below")?(nt=a.offsetOf(Fe.leftSibling),Fe.parent.removeChild(Fe),a.announce("delete",void 0,[Fe]),a.position=nt,!0):(a.announce("delete",void 0,[b]),a.position=nt,!0)}if(y==="backward"&&((Fe==null?void 0:Fe.command)==="\\ln"||(Fe==null?void 0:Fe.command)==="\\log")&&b.parentBranch!=="body"){const nt=a.offsetOf(Fe.leftSibling);return Fe.parent.removeChild(Fe),a.announce("delete",void 0,[Fe]),a.position=nt,!0}return!1}function ly(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentBackward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},()=>{let y=a.at(a.position);if(!(y&&Af(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(Af(a,"backward",y.parent,y.parentBranch))return;y=null}if(!y){a.announce("plonk");return}a.position=a.offsetOf(y.leftSibling),y.parent.removeChild(y),a.announce("delete",void 0,[y])}}):tu(a,Gs(a.selection),"deleteContentBackward")}function cy(a){return!a.mathfield.isSelectionEditable||!a.contentWillChange({inputType:"deleteContentForward"})?!1:a.selectionIsCollapsed?a.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var y,b;let E=a.at(a.position).rightSibling;if(E&&Af(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&Af(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&Af(a,"forward",E.parent,E.parentBranch))return;E=void 0}if(a.position===a.lastOffset||!E){a.announce("plonk");return}E.parent.removeChild(E);let ee=(y=a.at(a.position))==null?void 0:y.rightSibling;for(;(ee==null?void 0:ee.type)==="subsup";)ee.parent.removeChild(ee),ee=(b=a.at(a.position))==null?void 0:b.rightSibling;a.announce("delete",void 0,[E])}):tu(a,Gs(a.selection),"deleteContentForward")}function tu(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 ae=E[E.length-1].parent.lastChild;let se=E[0];se.type==="first"&&(se=se.rightSibling);const ve=E[E.length-1];if(se===ee&&ve===ae){const Ce=E[0].parent;Ce.parent&&Ce.type!=="prompt"&&(y=[a.offsetOf(Ce.leftSibling),a.offsetOf(Ce)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const Ce=E[0].parent,De=E[0].parentBranch==="below"?"above":"below",Fe=a.offsetOf(Ce.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var nt,At;const tn=Ce.removeBranch(De);if(tn.length===1&&tn[0].type==="placeholder")(At=Ce.parent)==null||At.removeChild(Ce),a.position=Math.max(0,Fe);else{const fn=Ce.parent.addChildrenAfter(tn,Ce);(nt=Ce.parent)==null||nt.removeChild(Ce),a.position=a.offsetOf(fn)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}dc({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&tu(a,[0,-1],"deleteContent"),deleteForward:a=>cy(a),deleteBackward:a=>ly(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&tu(a,[a.anchor,kh(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&tu(a,[a.anchor,kh(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&tu(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&tu(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&tu(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&tu(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var uy=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${rt("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,dy=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${rt("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,fy=class{constructor(a,y){this.focusBlurInProgress=!1;var b,E,ee;this.options=we(me(we({},Vf()),{macros:_t(),registers:Ec()}),Uf(y)),this.eventController=new AbortController;const ae=this.eventController.signal;y.eventSink&&(this.host=y.eventSink),this.element=a,a.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let se=(E=(b=y.value)!=null?b:this.element.textContent)!=null?E:"";se=se.trim();const ve=Dp(this.options),Ce=new Nr({type:"root",mode:ve,body:Dl(se,{context:this.context})});this.model=new sy(this,ve,Ce),this.undoManager=new Fg(this.model);const De=[];if(De.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>"),De.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),De.push("<span part=content class=ML__content>"),De.push(Sp(this)),De.push("</span>"),window.mathVirtualKeyboard&&(De.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">`),De.push(uy),De.push("</div>")),De.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),De.push(dy),De.push("</div>"),De.push("</span>"),De.push("<span class=ML__sr-only>"),De.push("<span role=status aria-live=assertive aria-atomic=true></span>"),De.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(De.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=qe.subscribe(()=>qe.update(this.element)),qe.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",nt=>nt.stopImmediatePropagation(),{capture:!1,signal:ae}),this.field.addEventListener("wheel",this,{passive:!1,signal:ae}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:ae}):this.field.addEventListener("mousedown",this,{signal:ae}),(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(qc(this)))},{signal:ae}),this._menu=new wv($v(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:ae});const Fe=this.element.querySelector("[part=menu-toggle]");Fe==null||Fe.addEventListener("pointerdown",nt=>{if(nt.currentTarget!==Fe||this._menu.state!=="closed")return;this.element.classList.add("tracking");const At=Fe.getBoundingClientRect();this._menu.modifiers=hd(nt),this._menu.show({target:Fe,location:{x:At.left,y:At.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),nt.preventDefault(),nt.stopPropagation()},{signal:ae}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(Fe.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=Wm(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:ae}),document.addEventListener("scroll",this,{signal:ae}),this.resizeObserver=new ResizeObserver(()=>Qs(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:ae}),df&&!qe.locale.startsWith(df.locale)&&zm(qe.locale),yc!=="ready"&&document.fonts.ready.then(()=>Hf(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(qc(this)),ih(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:mc(this.field))!=null?b:void 0,ee=a==null?void 0:a.modifiers,ae=this.element.querySelector("[part=container]");return this._menu.show({target:ae,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:ft(a)}}get backgroundColorMap(){return a=>{var y,b,E,ee,ae,se;return(se=(ae=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?ae:(ee=(E=this.options).colorMap)==null?void 0:ee.call(E,a))!=null?se:Ne(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=Nr.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=Oh(this,a);"verbatimColor"in y&&delete y.verbatimColor,"verbatimBackgroundColor"in y&&delete y.verbatimBackgroundColor;const b=Object.keys(y).length;if(b===0)return"all";if(b>1){for(const Ce of Object.keys(y)){const De=this.queryStyle({[Ce]:y[Ce]});if(De==="none")return"none";if(De==="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 ae=this.model.getAtoms(this.model.selection,{includeChildren:!0});let se=ae.length;if(se===0)return"none";let ve=0;for(const Ce of ae){if(Ce.type==="first"){se-=1;continue}Ce.style[E]===ee&&(ve+=1)}return ve===0?"none":ve===se?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,E]=Gm(this.options.keybindings,(a=ff())!=null?a:Km());return((y=ff())==null?void 0:y.score)>0&&(this._keybindings=b,E.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",E)),b}get menu(){return this._menu}setOptions(a){var y;this.options=we(we({},this.options),Uf(a)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let b=this.options.defaultMode;b==="inline-math"&&(b="math"),((y=this.model.root.firstChild)==null?void 0:y.mode)!==b&&(this.model.root.firstChild.mode=b),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const E=Nr.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&Ga.insert(this.model,E,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in a||"macros"in a||"registers"in a||"colorMap"in a||"backgroundColorMap"in a||"letterShapeStyle"in a||"minFontScale"in a||"readOnly"in a||"placeholderSymbol"in a)&&Qs(this)}getOptions(a){return gd(this.options,a)}getOption(a){return gd(this.options,a)}handleEvent(a){return Vu(this,null,function*(){var y;if(Ql(this)){if(Ch(a)){if(!as(a.origin,(y=this.options.originValidator)!=null?y:"none"))throw new DOMException(`Message from unknown origin (${a.origin}) cannot be handled`,"SecurityError");const{action:b}=a.data;if(b==="execute-command"){const E=a.data.command;if(_d(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"&&jp(this,a);break;case"pointerdown":this.userSelect!=="none"&&(jp(this,a),a.shiftKey===!1&&(yield i0(a,this.element.querySelector("[part=container]"),this._menu))&&eh.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield i0(a,this.element.querySelector("[part=container]"),this._menu))&&eh.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&ih(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Ql(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>Ql(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!Ql(this))return;qe.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose();const a=this.element;delete a.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,Yg(),qm(),mv()}flushInlineShortcutBuffer(a){if(a!=null||(a={defer:!1}),!a.defer){this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=0;return}this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout(()=>this.flushInlineShortcutBuffer(),this.options.inlineShortcutTimeout))}executeCommand(a){return _d(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(qc(this))),!1):og(this,a)}get errors(){return tp(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=Bd(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();Ga.insert(this.model,a,y)&&(Qs(this),E||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const a=window.MathfieldElement.computeEngine;return a?a.box(a.parse(this.model.getValue("latex-unstyled"))):(console.error("MathLive 0.98.5: no compute engine available. Make sure the Compute Engine library is loaded."),null)}scrollIntoView(){var a;if(!this.element)return;if(this.host){if(this.options.onScrollIntoView)this.options.onScrollIntoView(this);else if(this.host.scrollIntoView({block:"nearest",inline:"nearest"}),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.container===window.document.body){const E=window.mathVirtualKeyboard.boundingRect,ee=this.host.getBoundingClientRect();ee.bottom>E.top&&((a=window.document.scrollingElement)==null||a.scrollBy(0,ee.bottom-E.top+8))}}this.dirty&&pd(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=mc(this.field);else{const E=Fo(this);if(E.length>0){let ee=-1/0,ae=-1/0;for(const se of E)se.right>ee&&(ee=se.right),se.top<ae&&(ae=se.top);b={x:ee+y.left-this.field.scrollLeft,y:ae+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const E=this.host.getBoundingClientRect(),ee=b.y;let ae=this.host.scrollTop;ee<E.top?ae=ee-E.top+this.host.scrollTop:ee>E.bottom&&(ae=ee-E.bottom+this.host.scrollTop+b.height),this.host.scroll({top:ae,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&&We()&&navigator.vibrate(wp),window.MathfieldElement.playSound("keypress")),a==="\\\\"?Bp(this.model):a==="&"?Ip(this.model):this.model.selectionIsCollapsed?Ga.insert(this.model,a,we({style:this.model.at(this.model.position).computedStyle},y)):Ga.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Qs(this),y.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(a,y="",b=""){var E;if(this.model.mode===a||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const ee=this.model.mode;if(this.model.mode=a,!((E=this.host)!=null&&E.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=ee;return}const ae=this.model.mode,{model:se}=this;se.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let ve=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const Ce=Dl(y,{context:this.context,parseMode:a});se.collapseSelection("forward");const De=se.at(se.position);se.position=se.offsetOf(De.parent.addChildrenAfter(Ce,De)),ve=!0}if(this.model.mode=a,a==="latex"){let Ce=se.selectionIsCollapsed;Kd(this,"accept");let De,Fe=se.at(se.position);if(Ce)De="\\";else{const At=Gs(se.selection);De=this.model.getValue(At,"latex");const tn=this.model.extractAtoms(At);tn.length===1&&tn[0].type==="placeholder"&&(De=y,Ce=!0),Fe=se.at(At[0])}const nt=new af(De);Fe.parent.addChildAfter(nt,Fe),Ce?se.position=se.offsetOf(nt.lastChild):se.setSelection(se.offsetOf(nt.firstChild),se.offsetOf(nt.lastChild))}else hf(se).forEach(Ce=>{Ce.isError=!1});if(b){const Ce=Dl(b,{context:this.context,parseMode:ae});se.collapseSelection("forward");const De=se.at(se.position);se.position=se.offsetOf(De.parent.addChildrenAfter(Ce,De)),ve=!0}return Qs(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),ve}),this.model.mode=a,window.mathVirtualKeyboard.update(qc(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};pu(y)?ee.range=y:(y.operation==="toggle"&&(ee.operation="toggle"),ee.range=y.range,ee.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const ae=Oh(this,a),se=(E=ee.operation)!=null?E:"set";if(ee.range===void 0&&this.model.selectionIsCollapsed){if(se==="set"){this.defaultStyle=we(we({},this.defaultStyle),ae);return}const ve=we({},this.defaultStyle);for(const Ce of Object.keys(ae))ve[Ce]===ae[Ce]?(Ce==="color"&&delete ve.verbatimColor,Ce==="backgroundColor"&&delete ve.verbatimBackgroundColor,delete ve[Ce]):ve[Ce]=ae[Ce];this.defaultStyle=ve;return}this.model.deferNotifications({content:!ee.silenceNotifications,type:"insertText"},()=>{if(ee.range===void 0)for(const ve of this.model.selection.ranges)Mh(this.model,ve,ae,{operation:se});else Mh(this.model,ee.range,ae,{operation:se})}),Qs(this)}toggleContextMenu(){var a;return this._menu.visible?this._menu.state==="open"?(this._menu.hide(),!0):(this._menu.show({target:this.element.querySelector("[part=container]"),location:(a=this.getCaretPoint())!=null?a:void 0,onDismiss:()=>{var y;return(y=this.element)==null?void 0:y.focus()}}),!0):!1}getCaretPoint(){const a=mc(this.field);return a?{x:a.x,y:a.y}:null}setCaretPoint(a,y){const b=Sf(this,a,y,{bias:0});if(b<0)return!1;const E=this.model.position;return this.model.position=b,this.model.announce("move",E),Qs(this),!0}getPrompt(a){const y=this.model.findAtom(b=>b.type==="prompt"&&b.placeholderId===a);return console.assert(y!==void 0,"MathLive 0.98.5: no prompts with matching ID found"),y}getPromptValue(a,y){const b=this.getPrompt(a);if(!b)return"";const E=this.model.offsetOf(b.firstChild),ee=this.model.offsetOf(b.lastChild);return this.model.getValue(E,ee,y)}getPrompts(a){return this.model.getAllAtoms().filter(y=>y.type!=="prompt"?!1:a?!(a.id&&y.placeholderId!==a.id||a.locked&&y.locked!==a.locked||a.correctness==="undefined"&&y.correctness||a.correctness&&y.correctness!==a.correctness):!0).map(y=>y.placeholderId)}setPromptValue(a,y,b){if(y!==void 0){const E=this.getPrompt(a);if(!E){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}const ee=this.model.getBranchRange(this.model.offsetOf(E),"body");this.model.setSelection(ee),this.insert(y,me(we({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),Qs(this)}setPromptState(a,y,b){const E=this.getPrompt(a);if(!E){console.error(`MathLive 0.98.5: unknown prompt ${a}`);return}y==="undefined"?E.correctness=void 0:typeof y=="string"&&(E.correctness=y),typeof b=="boolean"&&(E.locked=b,E.captureSelection=b),Qs(this)}getPromptState(a){const y=this.getPrompt(a);return y?[y.correctness,y.locked]:(console.error(`MathLive 0.98.5: unknown prompt ${a}`),[void 0,!0])}getPromptRange(a){const y=this.getPrompt(a);return y?this.model.getBranchRange(this.model.offsetOf(y),"body"):(console.error(`MathLive 0.98.5: unknown prompt ${a}`),[0,0])}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(a){var y;this.undoManager.snapshot(a)&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(qc(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(qc(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(qc(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:Dp(this.options);this.model.mode!==ee&&(this.model.mode==="latex"?(Kd(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(qc(this)),ih(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",me(we({},a),{data:a.data?a.data:(y=a.inputType)!=null?y:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?E:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),pd(this,{interactive:!0}),this.valueOnFocus=this.model.getValue(),this.hasEditablePrompts&&!this.model.at(this.model.anchor).parentPrompt&&this.executeCommand("moveToNextPlaceholder"),this.focusBlurInProgress=!1)}onBlur(){var a,y,b;if(this.focusBlurInProgress||this.blurred)return;this.focusBlurInProgress=!0,this.stopCoalescingUndo(),this.blurred=!0,this.ariaLiveText.textContent="",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})),Qs(this),this.focusBlurInProgress=!1,zh();const E=new AbortController,ee=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{Ql(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ee})},{once:!0,signal:ee}),setTimeout(()=>E.abort(),100)}onInput(a){Bh(this,a)}onKeystroke(a){return _p(this,a)}onCompositionStart(a){this.model.deleteAtoms(Gs(this.model.selection));const y=mc(this.field);y&&requestAnimationFrame(()=>{pd(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Lg(this.model,a),Qs(this)}onCompositionEnd(a){Dg(this.model),Bh(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Ga.onCopy(this,a),tu(this.model,Gs(this.model.selection),"deleteByCut"),this.snapshot("cut"),Qs(this))}onCopy(a){Ga.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=Ga.onPaste(this.model.at(this.model.position).mode,this,a.clipboardData)),y||this.model.announce("plonk"),a.preventDefault(),a.stopPropagation(),y}onGeometryChange(){this._menu.hide(),Ff(this),ih(this)}onWheel(a){const y=5*a.deltaX;if(!Number.isFinite(y)||y===0)return;const b=this.field;y<0&&b.scrollLeft===0||y>0&&b.offsetWidth+b.scrollLeft>=b.scrollWidth||(b.scrollBy({top:0,left:y}),a.preventDefault(),a.stopPropagation())}getHTMLElement(a){let y=a;for(;!y.id&&y.hasChildren;)y=a.children[0];return this.field.querySelector(`[data-atom-id="${y.id}"]`)}get context(){var a,y;return{registers:(a=this.options.registers)!=null?a:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:(y=this.options.placeholderSymbol)!=null?y:"\u25A2",colorMap:b=>this.colorMap(b),backgroundColorMap:b=>this.backgroundColorMap(b),getMacro:b=>Un(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function g0(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)g0(y)}function qh(a,y){var b;a&&(!y||((b=a.dataset)==null?void 0:b.atomId)===y?(a.classList.add("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&qh(E)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&qh(E,y)})))}function hy(a,y){var b;if(!dt())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"]};Uu().readAloudElement=a,E.synthesizeSpeech(ee,(ae,se)=>{if(ae){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${ae}`);return}if(!(se!=null&&se.AudioStream)){console.log("polly.synthesizeSpeech():",se);return}const ve=new TextDecoder("utf-8").decode(new Uint8Array(se.AudioStream));Uu().readAloudMarks=ve.split(`
|
|
|
`).map(Ce=>Ce?JSON.parse(Ce):{}),Uu().readAloudTokens=[];for(const Ce of Uu().readAloudMarks)Ce.value&&Uu().readAloudTokens.push(Ce.value);Uu().readAloudCurrentMark="",ee.OutputFormat="mp3",ee.SpeechMarkTypes=[],E.synthesizeSpeech(ee,(Ce,De)=>{if(Ce){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${Ce}`);return}if(!(De!=null&&De.AudioStream))return;const Fe=new Uint8Array(De.AudioStream),nt=new Blob([Fe.buffer],{type:"audio/mpeg"}),At=URL.createObjectURL(nt),tn=Uu();tn.readAloudAudio?tn.readAloudAudio.pause():(tn.readAloudAudio=new Audio,tn.readAloudAudio.addEventListener("ended",()=>{const fn=tn.readAloudMathfield;tn.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),fn?(pd(fn),tn.readAloudElement=null,tn.readAloudMathfield=null,tn.readAloudTokens=[],tn.readAloudMarks=[],tn.readAloudCurrentMark=""):g0(tn.readAloudElement)}),tn.readAloudAudio.addEventListener("timeupdate",()=>{let fn="";const Ar=tn.readAloudAudio.currentTime*1e3+100;for(const hi of tn.readAloudMarks)hi.time<Ar&&(fn=hi.value);tn.readAloudCurrentMark!==fn&&(tn.readAloudCurrentToken=fn,fn&&fn===tn.readAloudFinalToken?tn.readAloudAudio.pause():(tn.readAloudCurrentMark=fn,qh(tn.readAloudElement,tn.readAloudCurrentMark)))})),tn.readAloudAudio.src=At,tn.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),tn.readAloudAudio.play()})})}dt()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var Go=new WeakMap,py=.5,ju={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 = ..."},Rl=class Ed extends HTMLElement{static get formAssociated(){return $d()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(y){y!==this._fontsDirectory&&(this._fontsDirectory=y,ng())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(y){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(y){this._soundsDirectory=y,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(y){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(y){var b,E,ee;this.audioBuffers={},y===null?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:typeof y=="string"?this._keypressSound={spacebar:y,return:y,delete:y,default:y}:typeof y=="object"&&"default"in y&&(this._keypressSound={spacebar:(b=y.spacebar)!=null?b:y.default,return:(E=y.return)!=null?E:y.default,delete:(ee=y.delete)!=null?ee:y.default,default:y.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(y){this.audioBuffers={},this._plonkSound=y}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(y){this._speechEngine=y}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(y){this._speechEngineRate=y}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(y){this._speechEngineVoice=y}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(y){this._textToSpeechMarkup=y}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(y){this._textToSpeechRules=y}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(y){this._textToSpeechRulesOptions=y}static get locale(){return qe.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),qe.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 qe.strings}static set strings(y){qe.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 Vu(this,null,function*(){delete this.audioBuffers[y];let b="";switch(y){case"keypress":b=this._keypressSound.default;break;case"return":b=this._keypressSound.return;break;case"spacebar":b=this._keypressSound.spacebar;break;case"delete":b=this._keypressSound.delete;break;case"plonk":b=this.plonkSound;break}if(typeof b!="string")return;b=b.trim();const E=this.soundsDirectory;if(!(E==null||E==="null"||b==="none"||b==="null"))try{const ae=yield(yield fetch(yield xp(`${E}/${b}`))).arrayBuffer(),se=yield this.audioContext.decodeAudioData(ae);this.audioBuffers[y]=se}catch(ee){}})}static playSound(y){return Vu(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[y]||(yield this.loadSound(y)),!this.audioBuffers[y])return;const b=this.audioContext.createBufferSource();b.buffer=this.audioBuffers[y];const E=this.audioContext.createGain();E.gain.value=py,b.connect(E).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const E of Object.keys(y))if(ju[E])if(ju[E].startsWith("mf."))if(ju[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${ju[E]}`);else{const ee=ju[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 ${ju[E]}`);if(b.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const E of b)console.warn(E);console.groupEnd()}}if($d()&&(this._internals=this.attachInternals(),this._internals.role="math",this._internals.ariaLabel="math input field",this._internals.ariaMultiLine="false"),this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot&&"adoptedStyleSheets"in this.shadowRoot){this.shadowRoot.adoptedStyleSheets=[Hu("core"),Hu("mathfield"),Hu("mathfield-element"),Hu("ui"),Hu("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>"+bu("core")+bu("mathfield")+bu("mathfield-element")+bu("ui")+bu("menu")+'</style><span></span><slot style="display:none"></slot>';y&&this._setOptions(y),this.shadowRoot.addEventListener("slotchange",()=>{var b;const E=this.shadowRoot.querySelector("slot:not([name])");this.value=(b=E==null?void 0:E.assignedNodes().map(ee=>ee.nodeType===3?ee.textContent:"").join("").trim())!=null?b:""})}showMenu(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.showMenu(y))!=null?E:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",y=>{var b;y.target===this&&!((b=this._mathfield)!=null&&b.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:y.altKey,button:y.button,buttons:y.buttons,clientX:y.clientX,clientY:y.clientY,ctrlKey:y.ctrlKey,metaKey:y.metaKey,movementX:y.movementX,movementY:y.movementY,relatedTarget:y.relatedTarget,screenX:y.screenX,screenY:y.screenY,shiftKey:y.shiftKey}))},{once:!0})}getPromptValue(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.getPromptValue(y,b))!=null?ee:""}setPromptValue(y,b,E){var ee;(ee=this._mathfield)==null||ee.setPromptValue(y,b,E)}getPromptRange(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPromptRange(y))!=null?E:null}getPrompts(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPrompts(y))!=null?E:[]}get form(){var y;return(y=this._internals)==null?void 0:y.form}get name(){var y;return(y=this.getAttribute("name"))!=null?y:""}get type(){return this.localName}get mode(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.mode)!=null?b:this.defaultMode==="text"?"text":"math"}set mode(y){var b;(b=this._mathfield)==null||b.switchMode(y)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(y){var b,E;if(!this._mathfield)return;const ee=(E=(b=Ed.computeEngine)==null?void 0:b.box(y).latex)!=null?E:null;ee!==null&&this._mathfield.setValue(ee),window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}get errors(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.errors)!=null?b:[]}_getOptions(y){return this._mathfield?gd(this._mathfield.options,y):Go.has(this)?we({},gd(we(we({},Vf()),Uf(Go.get(this).options)),y)):null}getOptions(y){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOptions()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._mathfield?gd(this._mathfield.options,y):Go.has(this)?gd(we(we({},Vf()),Uf(Go.get(this).options)),y):null}reflectAttributes(){const y=Vf(),b=this._getOptions();Object.keys(Ed.optionsAttributes).forEach(E=>{const ee=Cu(E);Ed.optionsAttributes[E]==="on/off"?y[ee]!==b[ee]?this.setAttribute(E,b[ee]?"on":"off"):this.removeAttribute(E):y[ee]!==b[ee]&&(Ed.optionsAttributes[E]==="boolean"?b[ee]?this.setAttribute(E,""):this.removeAttribute(E):(typeof b[ee]=="string"||typeof b[ee]=="number")&&this.setAttribute(E,b[ee].toString()))})}getOption(y){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([y])[y]}_getOption(y){return this._getOptions([y])[y]}_setOptions(y){if(this._mathfield)this._mathfield.setOptions(y);else if(Go.has(this)){const b=we(we({},Go.get(this).options),y);Go.set(this,me(we({},Go.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else Go.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:y,menuItems:void 0});this.reflectAttributes()}setOptions(y){console.group("%cMathLive 0.98.5: %cDeprecated Usage","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn(" `mf.setOptions()` is deprecated. Set the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.");for(const b of Object.keys(y))ju[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${ju[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,ae;if(this._mathfield)return this._mathfield.model.getValue(y,b,E);if(Go.has(this)){let se,ve,Ce;if(Nu(y)?([se,ve]=y.ranges[0],Ce=b):pu(y)?([se,ve]=y,Ce=b):Zl(y)&&Zl(b)?(se=y,ve=b,Ce=E):(se=0,ve=-1,Ce=y),(Ce===void 0||Ce==="latex")&&se===0&&ve===-1)return(ae=(ee=Go.get(this).value)!=null?ee:this.textContent)!=null?ae:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(Go.has(this)){const ee=Go.get(this).options;Go.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0});return}const E=Lf(this);Go.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:E,menuItems:void 0})}hasFocus(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.hasFocus())!=null?b:!1}focus(){var y;(y=this._mathfield)==null||y.focus()}blur(){var y;(y=this._mathfield)==null||y.blur()}select(){var y;(y=this._mathfield)==null||y.select()}insert(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.insert(y,b))!=null?ee:!1}applyStyle(y,b){var E;return(E=this._mathfield)==null?void 0:E.applyStyle(y,b)}queryStyle(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.queryStyle(y))!=null?E:"none"}get caretPoint(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.getCaretPoint())!=null?b:null}set caretPoint(y){var b;y&&((b=this._mathfield)==null||b.setCaretPoint(y.x,y.y))}setCaretPoint(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.setCaretPoint(y,b))!=null?ee:!1}offsetFromPoint(y,b,E){return this._mathfield?Sf(this._mathfield,y,b,E):-1}hitboxFromOffset(y){if(!this._mathfield)return null;const b=this._mathfield.model.at(y);if(!b)return null;const E=zc(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,ae;Qc.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"&&((ae=this._mathfield)==null||ae.blur()))}connectedCallback(){var y,b,E,ee;const ae=window.getComputedStyle(this),se=this.shadowRoot,ve=ae.userSelect!=="none";if(ve)se.host.addEventListener("pointerdown",this,!0);else{const Fe=se.querySelector("span");Fe.style.pointerEvents="none"}se.host.addEventListener("focus",this,!0),se.host.addEventListener("blur",this,!0),$d()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),ve&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const Ce=se.querySelector("slot:not([name])");if(Ce)try{this._style=Ce.assignedElements().filter(Fe=>Fe.tagName.toLowerCase()==="style").map(Fe=>Fe.textContent).join("")}catch(Fe){console.error(Fe)}if(this._style){const Fe=document.createElement("style");Fe.textContent=this._style,se.appendChild(Fe)}let De="";if(this.hasAttribute("value")?De=this.getAttribute("value"):De=(y=Ce==null?void 0:Ce.assignedNodes().map(Fe=>Fe.nodeType===3?Fe.textContent:"").join("").trim())!=null?y:"",this._mathfield=new fy(se.querySelector(":host > span"),me(we({},(E=(b=Go.get(this))==null?void 0:b.options)!=null?E:Lf(this)),{eventSink:this,value:De})),!Go.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const Fe of Object.keys(Ed.optionsAttributes))this.upgradeProperty(Cu(Fe))}if(!((ee=this._mathfield)!=null&&ee.model)){this._mathfield=null;return}if(Go.has(this)){const Fe=this._mathfield,nt=Go.get(this),At=nt.menuItems;Fe.model.deferNotifications({content:!1,selection:!1},()=>{const tn=nt.value;tn!==void 0&&Fe.setValue(tn),Fe.model.selection=nt.selection,Go.delete(this)}),At&&(this.menuItems=At)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),Kf()}disconnectedCallback(){var y,b;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask(()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0})));const E=gd(this._mathfield.options,Object.keys(Ed.optionsAttributes).map(ee=>Cu(ee)));Go.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:(b=(y=this._mathfield.menu)==null?void 0:y.menuItems)!=null?b:void 0,options:E}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(y){if(this.hasOwnProperty(y)){const b=this[y];delete this[y],(y==="readonly"||y==="read-only")&&(y="readOnly"),this[y]=b}}attributeChangedCallback(y,b,E){if(b===E)return;const ee=E!==null;switch(y){case"contenteditable":Qs(this._mathfield);break;case"disabled":this.disabled=ee;break;case"read-only":case"readonly":this.readOnly=ee;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(y){const b=!!y;b?(this.setAttribute("readonly",""),$d()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):($d()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:b})}get disabled(){return this.hasAttribute("disabled")}set disabled(y){var b;const E=!!y;E?this.setAttribute("disabled",""):this.removeAttribute("disabled"),$d()?this._internals.ariaDisabled=E?"true":"false":this.setAttribute("aria-disabled",E?"true":"false"),E&&((b=this._mathfield)!=null&&b.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(y){this.setValue(y)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(y){this._setOptions({defaultMode:y})}get macros(){return this._getOption("macros")}set macros(y){this._setOptions({macros:y})}get registers(){const y=this;return new Proxy({},{get:(b,E)=>{if(typeof E=="string")return y._getOption("registers")[E]},set(b,E,ee){return typeof E!="string"?!1:(y._setOptions({registers:me(we({},y._getOption("registers")),{[E]:ee})}),!0)}})}set registers(y){this._setOptions({registers:y})}get colorMap(){return this._getOption("colorMap")}set colorMap(y){this._setOptions({colorMap:y})}get backgroundColorMap(){return this._getOption("backgroundColorMap")}set backgroundColorMap(y){this._setOptions({backgroundColorMap:y})}get letterShapeStyle(){return this._getOption("letterShapeStyle")}set letterShapeStyle(y){this._setOptions({letterShapeStyle:y})}get minFontScale(){return this._getOption("minFontScale")}set minFontScale(y){this._setOptions({minFontScale:y})}get smartMode(){return this._getOption("smartMode")}set smartMode(y){this._setOptions({smartMode:y})}get smartFence(){return this._getOption("smartFence")}set smartFence(y){this._setOptions({smartFence:y})}get smartSuperscript(){return this._getOption("smartSuperscript")}set smartSuperscript(y){this._setOptions({smartSuperscript:y})}get scriptDepth(){return this._getOption("scriptDepth")}set scriptDepth(y){this._setOptions({scriptDepth:y})}get removeExtraneousParentheses(){return this._getOption("removeExtraneousParentheses")}set removeExtraneousParentheses(y){this._setOptions({removeExtraneousParentheses:y})}get mathModeSpace(){return this._getOption("mathModeSpace")}set mathModeSpace(y){this._setOptions({mathModeSpace:y})}get placeholderSymbol(){return this._getOption("placeholderSymbol")}set placeholderSymbol(y){this._setOptions({placeholderSymbol:y})}get popoverPolicy(){return this._getOption("popoverPolicy")}set popoverPolicy(y){this._setOptions({popoverPolicy:y})}get environmentPopoverPolicy(){return this._getOption("environmentPopoverPolicy")}set environmentPopoverPolicy(y){this._setOptions({environmentPopoverPolicy:y})}get menuItems(){var y,b,E;return this._mathfield?(y=this._mathfield.menu._menuItems.map(ee=>ee.menuItem))!=null?y:[]:(E=(b=Go.get(this))==null?void 0:b.menuItems)!=null?E:[]}set menuItems(y){var b;if(this._mathfield){const E=(b=this._mathfield.element)==null?void 0:b.querySelector("[part=menu-toggle]");E&&(E.style.display=y.length===0?"none":""),this._mathfield.menu.menuItems=y}Go.has(this)?Go.set(this,me(we({},Go.get(this)),{menuItems:y})):Go.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Lf(this),menuItems:y})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(y){this._setOptions({mathVirtualKeyboardPolicy:y})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(y){this._setOptions({inlineShortcuts:y})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(y){this._setOptions({inlineShortcutTimeout:y})}get keybindings(){return this._getOption("keybindings")}set keybindings(y){this._setOptions({keybindings:y})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(y){this._setOptions({onInlineShortcut:y})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(y){this._setOptions({onScrollIntoView:y})}get onExport(){return this._getOption("onExport")}set onExport(y){this._setOptions({onExport:y})}get readOnly(){return this._getOption("readOnly")}set readOnly(y){this._setOptions({readOnly:y})}get isSelectionEditable(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.isSelectionEditable)!=null?b:!1}setPromptState(y,b,E){var ee;(ee=this._mathfield)==null||ee.setPromptState(y,b,E)}getPromptState(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPromptState(y))!=null?E:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(y){this._setOptions({virtualKeyboardTargetOrigin:y})}get selection(){return this._mathfield?this._mathfield.model.selection:Go.has(this)?Go.get(this).selection:{ranges:[[0,0]],direction:"forward"}}set selection(y){if(typeof y=="number"&&(y={ranges:[[y,y]]}),this._mathfield){this._mathfield.model.selection=y,Qs(this._mathfield);return}if(Go.has(this)){Go.set(this,me(we({},Go.get(this)),{selection:y}));return}Go.set(this,{value:void 0,selection:y,options:Lf(this),menuItems:void 0})}get selectionIsCollapsed(){const y=this.selection;return y.ranges.length===1&&y.ranges[0][0]===y.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:Go.has(this)?Go.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,Qs(this._mathfield)),Go.has(this)){Go.set(this,me(we({},Go.get(this)),{selection:{ranges:[[y,y]]}}));return}Go.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:Lf(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}};Rl.version="0.98.5",Rl._fontsDirectory="./fonts",Rl._soundsDirectory="./sounds",Rl.keypressVibration=!0,Rl._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},Rl._plonkSound="plonk.wav",Rl.audioBuffers={},Rl.createHTML=a=>a,Rl._speechEngineRate="100%",Rl._speechEngineVoice="Joanna",Rl._textToSpeechMarkup="",Rl._textToSpeechRules="mathlive",Rl._textToSpeechRulesOptions={},Rl.speakHook=ry,Rl.readAloudHook=hy,Rl._decimalSeparator=".",Rl.fractionNavigationOrder="numerator-denominator",Rl._isFunction=a=>{var y,b;const E=window.MathfieldElement.computeEngine;return(b=(y=E==null?void 0:E.parse(a).domain)==null?void 0:y.isFunction)!=null?b:!1};var kf=Rl;function Cu(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function Lf(a){const y={readOnly:!1},b=kf.optionsAttributes;return Object.keys(b).forEach(E=>{if(a.hasAttribute(E)){const ee=a.getAttribute(E);E==="placeholder"?y.contentPlaceholder=ee!=null?ee:"":b[E]==="boolean"?y[Cu(E)]=!0:b[E]==="on/off"?ee==="on"?y[Cu(E)]=!0:ee==="off"?y[Cu(E)]=!1:y[Cu(E)]=void 0:b[E]==="number"?y[Cu(E)]=Number.parseFloat(ee!=null?ee:"0"):y[Cu(E)]=ee}}),y}function $d(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var v0=kf,y0,b0,x0,S0;if(dt()&&!((y0=window.customElements)!=null&&y0.get("math-field"))){(x0=window[b0=Symbol.for("io.cortexjs.mathlive")])!=null||(window[b0]={});const a=window[Symbol.for("io.cortexjs.mathlive")];a.version="0.98.5",window.MathfieldElement=kf,(S0=window.customElements)==null||S0.define("math-field",kf)}function my(a,y,b){let E=b,ee=0;const ae=a.length;for(;E<y.length;){const se=y[E];if(ee<=0&&y.slice(E,E+ae)===a)return E;se==="\\"?E++:se==="{"?ee++:se==="}"&&ee--,E++}return-1}function ch(a,y,b,E,ee="latex"){const ae=[];for(const se of a)if(se.type==="text"){const ve=se.data;let Ce=!0,De=0,Fe;Fe=ve.indexOf(y),Fe!==-1&&(De=Fe,De>0&&ae.push({type:"text",data:ve.slice(0,De)}),Ce=!1);let nt=!1;for(;!nt;){if(Ce){if(Fe=ve.indexOf(y,De),Fe===-1){nt=!0;break}De!==Fe&&ae.push({type:"text",data:ve.slice(De,Fe)}),De=Fe}else{if(Fe=my(b,ve,De+y.length),Fe===-1){nt=!0;break}let At=ve.slice(De+y.length,Fe);ee==="ascii-math"&&([,At]=Gc(At,{format:"ascii-math"})),ae.push({type:"math",data:At,rawData:ve.slice(De,Fe+b.length),mathstyle:E}),De=Fe+b.length}Ce=!Ce}De<ve.length&&ae.push({type:"text",data:ve.slice(De)})}else ae.push(se);return ae}function w0(a,y,b){let E=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ee,ae])=>{E=ch(E,ee,ae,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ee,ae])=>{E=ch(E,ee,ae,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ee,ae])=>{E=ch(E,ee,ae,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ee,ae])=>{E=ch(E,ee,ae,"displaystyle","ascii-math")}),E}function gy(a,y){const b=document.createElement("span");b.setAttribute("translate","no");try{const E="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+y.renderToMathML(a)+"</math>";b.innerHTML=window.MathfieldElement.createHTML(E)}catch(E){console.error(`MathLive 0.98.5: Could not convert "${a}"' to MathML with ${E}`),b.textContent=a}return b.className="ML__sr-only",b}function vy(a,y,b,E){try{const ee=y.renderToMarkup(a,{mathstyle:b,format:"html"}),ae=document.createElement("span");return ae.dataset.latex=a,ae.style.display=b==="displaystyle"?"flex":"inline-flex",ae.setAttribute("aria-hidden","true"),ae.setAttribute("translate","no"),ae.innerHTML=window.MathfieldElement.createHTML(ee),ae}catch(ee){if(console.error("Could not parse'"+a+"' with ",ee),E)return document.createTextNode(a)}return null}function qd(a,y,b,E){var ee;const ae=vy(a,b,y||"textstyle",E),se=(ee=b.renderAccessibleContent)!=null?ee:"";if(ae&&/\b(mathml|speakable-text)\b/i.test(se)){const ve=document.createElement("span");if(/\bmathml\b/i.test(se)&&b.renderToMathML&&ve.append(gy(a,b)),/\bspeakable-text\b/i.test(se)&&b.renderToSpeakableText){const Ce=document.createElement("span");Ce.setAttribute("translate","no");const De=b.renderToSpeakableText(a);Ce.innerHTML=window.MathfieldElement.createHTML(De),Ce.className="ML__sr-only",ve.append(Ce)}return ve.append(ae),ve}return ae}function yy(a,y){var b,E,ee;let ae=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){ae=document.createDocumentFragment();const se=qd(a,"",y,!0);se&&ae.appendChild(se)}else{if(!a.trim())return null;const se=w0(a,(E=y.TeX)==null?void 0:E.delimiters,(ee=y.asciiMath)==null?void 0:ee.delimiters);if(se.length===1&&se[0].type==="text")return null;ae=document.createDocumentFragment();for(const ve of se)if(ve.type==="text")ae.appendChild(document.createTextNode(ve.data));else{const Ce=qd(ve.data,ve.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);Ce&&ae.appendChild(Ce)}}return ae}function C0(a,y){var b,E,ee,ae,se,ve,Ce,De,Fe,nt,At,tn,fn,Ar,hi,Cr;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const $r=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test($r)){a.textContent="";const ri=qd($r,"",y,!0);ri&&a.append(ri);return}const yi=w0($r,(ee=y.TeX)==null?void 0:ee.delimiters,(ae=y.asciiMath)==null?void 0:ae.delimiters);if(yi.length===1&&yi[0].type==="math"){a.textContent="";const ri=qd(yi[0].data,yi[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);ri&&a.append(ri);return}if(yi.length===1&&yi[0].type==="text")return}for(let $r=a.childNodes.length-1;$r>=0;$r--){const yi=a.childNodes[$r];if(yi.nodeType===3){const ri=yy((se=yi.textContent)!=null?se:"",y);ri&&($r+=ri.childNodes.length-1,yi.replaceWith(ri))}else if(yi.nodeType===1){const ri=yi,ua=yi.nodeName.toLowerCase();if(ua==="script"){const Ta=yi;let xa;if((ve=y.processScriptTypePattern)!=null&&ve.test(Ta.type))xa=(Ce=Ta.textContent)!=null?Ce:"";else if((De=y.processMathJSONScriptTypePattern)!=null&&De.test(Ta.type))try{xa=(nt=y.serializeToLatex)==null?void 0:nt.call(y,JSON.parse((Fe=Ta.textContent)!=null?Fe:""))}catch(Ko){console.error(Ko)}if(xa){let Ko="textstyle";for(const Ei of Ta.type.split(";")){const[bc,nu]=Ei.toLowerCase().split("=");bc.trim()==="mode"&&(Ko=nu.trim()==="display"?"displaystyle":"textstyle")}const ps=qd(xa,Ko,y,!0);ps&&Ta.parentNode.replaceChild(ps,Ta)}}else if(((tn=(At=y.processClassPattern)==null?void 0:At.test(ri.className))!=null?tn:!1)||!((Ar=(fn=y.skipTags)==null?void 0:fn.includes(ua))!=null&&Ar||(Cr=(hi=y.ignoreClassPattern)==null?void 0:hi.test(ri.className))!=null&&Cr))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const xa=a.textContent;a.textContent="";const Ko=qd(xa!=null?xa:"","displaystyle",y,!0);Ko&&a.append(Ko)}else C0(ri,y)}}}var by={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function xy(a,y){var b,E,ee,ae;try{const se=we(we({},by),y);se.ignoreClassPattern=new RegExp((b=se.ignoreClass)!=null?b:""),se.processClassPattern=new RegExp((E=se.processClass)!=null?E:""),se.processScriptTypePattern=new RegExp((ee=se.processScriptType)!=null?ee:""),se.processMathJSONScriptTypePattern=new RegExp((ae=se.processMathJSONScriptType)!=null?ae:""),Kf(),uc("core"),C0(a,se)}catch(se){se instanceof Error?console.error("renderMathInElement(): "+se.message):console.error("renderMathInElement(): Could not render math for element",a)}}function Sy(a,y){const b=Wu.singleton;return b?(b.show(),gf(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function wy(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}dc({switchKeyboardLayer:Sy,toggleVirtualKeyboard:wy,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function Uu(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function By(){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 Iy(a){Ey(document.body,a)}function Cy(a){if(typeof a=="string"){const y=document.getElementById(a);if(y===null)throw new Error(`The element with ID "${a}" could not be found.`);return y}return typeof a=="string"?null:a}function Ey(a,y){var b,E,ee,ae;const se=Cy(a);if(!se)return;const ve=y!=null?y:{};(b=ve.renderToMarkup)!=null||(ve.renderToMarkup=Bl),(E=ve.renderToMathML)!=null||(ve.renderToMathML=Rv),(ee=ve.renderToSpeakableText)!=null||(ve.renderToSpeakableText=Fv),(ae=ve.serializeToLatex)!=null||(ve.serializeToLatex=zv),xy(se,ve)}var Ty={mathlive:"0.98.5"}},17423:function(bn,Ut,re){"use strict";re.d(Ut,{Z:function(){return we}});const ie=me=>typeof me=="object"&&me!=null&&me.nodeType===1,Le=(me,Ie)=>(!Ie||me!=="hidden")&&me!=="visible"&&me!=="clip",Oe=(me,Ie)=>{if(me.clientHeight<me.scrollHeight||me.clientWidth<me.scrollWidth){const ct=getComputedStyle(me,null);return Le(ct.overflowY,Ie)||Le(ct.overflowX,Ie)||(Ke=>{const st=(dt=>{if(!dt.ownerDocument||!dt.ownerDocument.defaultView)return null;try{return dt.ownerDocument.defaultView.frameElement}catch(Xe){return null}})(Ke);return!!st&&(st.clientHeight<Ke.scrollHeight||st.clientWidth<Ke.scrollWidth)})(me)}return!1},Ue=(me,Ie,ct,Ke,st,dt,Xe,We)=>dt<me&&Xe>Ie||dt>me&&Xe<Ie?0:dt<=me&&We<=ct||Xe>=Ie&&We>=ct?dt-me-Ke:Xe>Ie&&We<ct||dt<me&&We>ct?Xe-Ie+st:0,be=me=>{const Ie=me.parentElement;return Ie==null?me.getRootNode().host||null:Ie},Me=(me,Ie)=>{var ct,Ke,st,dt;if(typeof document=="undefined")return[];const{scrollMode:Xe,block:We,inline:ye,boundary:it,skipOverflowHiddenElements:Lt}=Ie,qe=typeof it=="function"?it:Pt=>Pt!==it;if(!ie(me))throw new TypeError("Invalid target");const rt=document.scrollingElement||document.documentElement,xe=[];let Se=me;for(;ie(Se)&&qe(Se);){if(Se=be(Se),Se===rt){xe.push(Se);break}Se!=null&&Se===document.body&&Oe(Se)&&!Oe(document.documentElement)||Se!=null&&Oe(Se,Lt)&&xe.push(Se)}const Ze=(Ke=(ct=window.visualViewport)==null?void 0:ct.width)!=null?Ke:innerWidth,Ge=(dt=(st=window.visualViewport)==null?void 0:st.height)!=null?dt:innerHeight,{scrollX:yt,scrollY:pt}=window,{height:ft,width:Ne,top:jt,right:bt,bottom:xn,left:Mt}=me.getBoundingClientRect(),{top:Gt,right:Bn,bottom:Tn,left:at}=(Pt=>{const ht=window.getComputedStyle(Pt);return{top:parseFloat(ht.scrollMarginTop)||0,right:parseFloat(ht.scrollMarginRight)||0,bottom:parseFloat(ht.scrollMarginBottom)||0,left:parseFloat(ht.scrollMarginLeft)||0}})(me);let Ae=We==="start"||We==="nearest"?jt-Gt:We==="end"?xn+Tn:jt+ft/2-Gt+Tn,St=ye==="center"?Mt+Ne/2-at+Bn:ye==="end"?bt+Bn:Mt-at;const cn=[];for(let Pt=0;Pt<xe.length;Pt++){const ht=xe[Pt],{height:Et,width:Qt,top:ir,right:On,bottom:$t,left:yn}=ht.getBoundingClientRect();if(Xe==="if-needed"&&jt>=0&&Mt>=0&&xn<=Ge&&bt<=Ze&&jt>=ir&&xn<=$t&&Mt>=yn&&bt<=On)return cn;const Qn=getComputedStyle(ht),Cn=parseInt(Qn.borderLeftWidth,10),Pe=parseInt(Qn.borderTopWidth,10),fe=parseInt(Qn.borderRightWidth,10),ce=parseInt(Qn.borderBottomWidth,10);let pe=0,de=0;const le="offsetWidth"in ht?ht.offsetWidth-ht.clientWidth-Cn-fe:0,Te="offsetHeight"in ht?ht.offsetHeight-ht.clientHeight-Pe-ce:0,ot="offsetWidth"in ht?ht.offsetWidth===0?0:Qt/ht.offsetWidth:0,Bt="offsetHeight"in ht?ht.offsetHeight===0?0:Et/ht.offsetHeight:0;if(rt===ht)pe=We==="start"?Ae:We==="end"?Ae-Ge:We==="nearest"?Ue(pt,pt+Ge,Ge,Pe,ce,pt+Ae,pt+Ae+ft,ft):Ae-Ge/2,de=ye==="start"?St:ye==="center"?St-Ze/2:ye==="end"?St-Ze:Ue(yt,yt+Ze,Ze,Cn,fe,yt+St,yt+St+Ne,Ne),pe=Math.max(0,pe+pt),de=Math.max(0,de+yt);else{pe=We==="start"?Ae-ir-Pe:We==="end"?Ae-$t+ce+Te:We==="nearest"?Ue(ir,$t,Et,Pe,ce+Te,Ae,Ae+ft,ft):Ae-(ir+Et/2)+Te/2,de=ye==="start"?St-yn-Cn:ye==="center"?St-(yn+Qt/2)+le/2:ye==="end"?St-On+fe+le:Ue(yn,On,Qt,Cn,fe+le,St,St+Ne,Ne);const{scrollLeft:en,scrollTop:rn}=ht;pe=Bt===0?0:Math.max(0,Math.min(rn+pe/Bt,ht.scrollHeight-Et/Bt+Te)),de=ot===0?0:Math.max(0,Math.min(en+de/ot,ht.scrollWidth-Qt/ot+le)),Ae+=rn-pe,St+=en-de}cn.push({el:ht,top:pe,left:de})}return cn},ue=me=>me===!1?{block:"end",inline:"nearest"}:(Ie=>Ie===Object(Ie)&&Object.keys(Ie).length!==0)(me)?me:{block:"start",inline:"nearest"};function we(me,Ie){if(!me.isConnected||!(st=>{let dt=st;for(;dt&&dt.parentNode;){if(dt.parentNode===document)return!0;dt=dt.parentNode instanceof ShadowRoot?dt.parentNode.host:dt.parentNode}return!1})(me))return;const ct=(st=>{const dt=window.getComputedStyle(st);return{top:parseFloat(dt.scrollMarginTop)||0,right:parseFloat(dt.scrollMarginRight)||0,bottom:parseFloat(dt.scrollMarginBottom)||0,left:parseFloat(dt.scrollMarginLeft)||0}})(me);if((st=>typeof st=="object"&&typeof st.behavior=="function")(Ie))return Ie.behavior(Me(me,Ie));const Ke=typeof Ie=="boolean"||Ie==null?void 0:Ie.behavior;for(const{el:st,top:dt,left:Xe}of Me(me,ue(Ie))){const We=dt-ct.top+ct.bottom,ye=Xe-ct.left+ct.right;st.scroll({top:We,left:ye,behavior:Ke})}}}}]);
|
|
|
}()); |