|
|
!(function(){var zc=Math.pow;var yu=(Mn,tn,oe)=>new Promise((ae,Ae)=>{var Le=Ee=>{try{xe(oe.next(Ee))}catch(pe){Ae(pe)}},ct=Ee=>{try{xe(oe.throw(Ee))}catch(pe){Ae(pe)}},xe=Ee=>Ee.done?ae(Ee.value):Promise.resolve(Ee.value).then(Le,ct);xe((oe=oe.apply(Mn,tn)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[1461],{89489:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},59477:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},40001:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},26227:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},49198:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},84105:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},41464:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},18785:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},73331:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},15277:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},52671:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},8657:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},56082:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},33853:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},15075:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},62772:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},43531:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},61485:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},38819:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},47472:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},87395:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(_e,vt){return Ae.createElement(xe.Z,(0,ae.Z)({},_e,{ref:vt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe},14618:function(){"use strict"},66552:function(){"use strict"},18760:function(Mn,tn){"use strict";tn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},67609:function(Mn,tn){"use strict";tn.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"}},3352:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Mn={},tn="5.0",oe={},ae=null,Ae=!1,Le=!1,ct=null,xe=!1,Ee=null,pe=null,ve=0;ve<arguments.length;ve++){var Me=arguments[ve];if(Me!==null)switch(typeof Me){case"number":tn=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?tn=Me:ct=Me;break;case"object":typeof Me.is3D!="undefined"?ae=Me:oe=Me;break;case"boolean":Ae=Me,Le=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},oe.material_id!==void 0&&!Le&&(Ae=!0)),ct!==null&&oe.id===void 0&&(oe.id=ct);var _e="",vt="",Fe=!1,qe=null,pt=null,Ke=null,je=!1,ft=null,mt=null,Bt=null,ht=null,nt=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var Re=function(Ue){return parseFloat(Ue)>4?parseFloat(Ue):5};Mn.setHTML5Codebase=function(Ue,at){pe=Ue,Ye(Ue,at)},Mn.setJavaCodebase=Mn.setJavaCodebaseVersion=Mn.isCompiledInstalled=Mn.setPreCompiledScriptPath=Mn.setPreCompiledResourcePath=function(){},Mn.setHTML5CodebaseVersion=function(Ue,at){var Ot=parseFloat(Ue);if(Ot!==NaN&&Ot<5){console.log("The GeoGebra HTML5 codebase version "+Ot+" is deprecated. Using version latest instead.");return}Ee=Ue,be(Ue,at)},Mn.getHTML5CodebaseVersion=function(){return pt},Mn.getParameters=function(){return oe},Mn.setFontsCSSURL=function(Ue){ht=Ue},Mn.setGiacJSURL=function(Ue){},Mn.setJNLPFile=function(Ue){_e=Ue},Mn.setJNLPBaseDir=function(Ue){},Mn.inject=function(){function Ue(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var at="auto",Ot=oe.id,kn,Kt=!1,gn=0;gn<arguments.length;gn++){var nn=arguments[gn];typeof nn=="string"?(nn=nn.toLowerCase(),nn.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?at=nn:Ot=arguments[gn]):typeof nn=="boolean"?Kt=nn:nn instanceof HTMLElement&&(kn=nn)}Gt();function Gt(){if(!xe){setTimeout(Gt,200);return}at=It(at);var Xt=kn||document.getElementById(Ot);if(!Xt){console.log("possibly bug on ajax loading? ");return}if(Mn.removeExistingApplet(Xt,!1),oe.width===void 0&&Xt.clientWidth&&(oe.width=Xt.clientWidth),oe.height===void 0&&Xt.clientHeight&&(oe.height=Xt.clientHeight),!(oe.width&&oe.height)&&at==="html5"&&(delete oe.width,delete oe.height),qe=at,at==="screenshot")tt(Xt,oe);else{var ye=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?ye=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(ye=(!Ce()||Ue())&&Je()),ye?(qe="screenshot",At(Xt,oe,Kt,at)):Lt(Xt,oe,Kt)}}};function Ce(){try{return window.self!==window.top}catch(Ue){return!0}}function Je(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Mn.getViews=function(){return ae},Mn.isJavaInstalled=function(){return!1};var et=function(Ue){var at=function(gn){var nn=JSON.parse(gn),Gt=function(ue){return ue.type=="G"||ue.type=="E"},Xt=nn.elements?nn.elements.filter(Gt)[0]:nn;if(!Xt||!Xt.url){Ot();return}oe.fileName=Xt.url,wt(Xt.settings||{}),ae.is3D=!0;var ye="https://www.geogebra.org/images/";Mn.setPreviewImage(ft||Xt.previewUrl,ye+"GeoGebra_loading.png",ye+"applet_play.png"),Ue()},Ot=function(){oe.onError&&oe.onError(),Pt("Error: Fetching material (id "+oe.material_id+") failed.",oe)},kn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Kt="/materials/"+oe.material_id+"?scope=basic";Qe("https://"+kn+"/api/proxy.php?path="+encodeURIComponent(Kt),at,Ot)};function wt(Ue){var at=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ot){Ue[Ot]=!!Ue[Ot]}),at.forEach(function(Ot){oe[Ot]===void 0&&Ue[Ot]!==void 0&&(oe[Ot]=Ue[Ot])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function Qe(Ue,at,Ot){var kn=new XMLHttpRequest;kn.open("GET",Ue),kn.onload=function(){at(kn.responseText)},kn.onerror=Ot,kn.send()}Mn.isHTML5Installed=function(){return!0},Mn.getLoadedAppletType=function(){return qe},Mn.setPreviewImage=function(Ue,at,Ot){ft=Ue,mt=at,Bt=Ot},Mn.removeExistingApplet=function(Ue,at){var Ot;typeof Ue=="string"&&(Ue=document.getElementById(Ue)),qe=null;var kn=null;for(Ot=0;Ot<Ue.childNodes.length;Ot++){var Kt=Ue.childNodes[Ot],gn=Kt.className;gn==="applet_screenshot"?at?(Kt.style.display="block",qe="screenshot"):Kt.style.display="none":gn!=="applet_scaler prerender"&&(Ue.removeChild(Kt),kn=gn&&gn.indexOf("appletParameters")!=-1?Kt.id:null,Ot--)}var nn=oe.id!==void 0?oe.id:kn,Gt=window[nn];Gt&&typeof Gt.getBase64=="function"&&(Gt.remove(),window[nn]=null)},Mn.refreshHitPoints=function(){if(Re(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ue=Mn.getAppletObject();return Ue&&typeof Ue.recalculateEnvironments=="function"?(Ue.recalculateEnvironments(),!0):!1},Mn.startAnimation=function(){var Ue=Mn.getAppletObject();return Ue&&typeof Ue.startAnimation=="function"?(Ue.startAnimation(),!0):!1},Mn.stopAnimation=function(){var Ue=Mn.getAppletObject();return Ue&&typeof Ue.stopAnimation=="function"?(Ue.stopAnimation(),!0):!1},Mn.getAppletObject=function(){var Ue=oe.id!==void 0?oe.id:"ggbApplet";return window[Ue]},Mn.resize=function(){};var bt=function(Ue,at,Ot){var kn=document.createElement("param");kn.setAttribute("name",at),kn.setAttribute("value",Ot),Ue.appendChild(kn)},Oe=function(Ue){return Ue&&Ue!=="false"},Lt=function(Ue,at,Ot){Re(pt)<=4.2&&(Ot=!0);var kn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==pt||ggbHTML5LoadedCodebaseIsWebSimple&&!je)&&(kn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Kt=document.createElement("div");Kt.classList.add("appletParameters","notranslate");var gn=at.width,nn=at.height;if(at.disableAutoScale=at.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():at.disableAutoScale,at.width!==void 0)if(Re(pt)<=4.4)Oe(at.showToolBar)&&(at.height-=7),Oe(at.showAlgebraInput)&&(at.height-=37),at.width<605&&Oe(at.showToolBar)&&(at.width=605,gn=605);else{var Gt=100;(Oe(at.showToolBar)||Oe(at.showMenuBar))&&(at.hasOwnProperty("customToolBar")&&(at.customToolbar=at.customToolBar),Gt=Oe(at.showMenuBar)?245:155),gn<Gt&&(at.width=Gt,gn=Gt)}Kt.style.border="none",Kt.style.display="inline-block";for(var Xt in at)at.hasOwnProperty(Xt)&&Xt!=="appletOnLoad"&&Kt.setAttribute("data-param-"+Xt,at[Xt]);ht&&Kt.setAttribute("data-param-fontscssurl",ht),Mn.resize=function(){GGBAppletUtils.responsiveResize(Ue,at)},window.addEventListener("resize",function(Ve){Mn.resize()});var ye=typeof at.appletOnLoad=="function"?at.appletOnLoad:function(){};if(!Ot&&at.width!==void 0){at.hasOwnProperty("showSplash")||Kt.setAttribute("data-param-showSplash","false");var ue=Ue.querySelector(".applet_scaler.prerender"),ce=ue!==null;if(ce)var de=ue.querySelector(".ggb_preview");else{var de=Wt(gn,nn,at.borderColor,!1);ue=document.createElement("div"),ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.style.width=gn+"px",ue.style.height=nn+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ue,"66%"),Re(pt)>=5?(at.appletOnLoad=function(Ve){var Ct=Ue.querySelector(".ggb_preview");Ct&&Ct.parentNode.removeChild(Ct),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ue),window.GGBT_wsf_view&&$(window).trigger("resize"),ye(Ve)},ce||ue.appendChild(de)):Kt.appendChild(de),ue.appendChild(Kt),ce||Ue.appendChild(ue),setTimeout(function(){Mn.resize()},1)}else{var he=document.createElement("div");he.className="applet_scaler",he.style.position="relative",he.style.display="block",he.appendChild(Kt),Ue.appendChild(he),at.appletOnLoad=function(Ve){Mn.resize(),ye(Ve)}}function se(Ve,Ct){Ct&&typeof Ct.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Ve,Ct.appletOnLoad):renderGGBElement(Ve),Pt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ct)}function ke(Ve,Ct){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Ve,params:Ct}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(rn){se(rn.article,rn.params)}),html5AppletsToProcess=null)},Re(pt)<5&&(Ve.className+=" geogebraweb")):se(Ve,Ct)}if(kn){scriptLoadStarted=!0;for(var gt=0;gt<Kt.childNodes.length;gt++){var Ie=Kt.childNodes[gt].tagName;Ie==="TABLE"&&(Kt.removeChild(Kt.childNodes[gt]),gt--)}if(ggbHTML5LoadedScript!==null){var Be=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Be!=null&&Be.parentNode.removeChild(Be)}var yt=document.createElement("script"),rt=function(){ke(Kt,at)};yt.src=vt+Ke,ggbHTML5LoadedCodebaseIsWebSimple=je,ggbHTML5LoadedCodebaseVersion=pt,ggbHTML5LoadedScript=yt.src,Pt("GeoGebra HTML5 codebase loaded: '"+vt+"'.",at),!pe&&(!Ee||Ee=="5.0")?(je?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),rt()):vt.requirejs?__webpack_require__.e(7206).then(function(){var Ve=[__webpack_require__(97206)];rt.apply(null,Ve)}.bind(this)).catch(__webpack_require__.oe):(yt.onload=rt,Ue.appendChild(yt))}else ke(Kt,at);at.height=nn,at.width=gn},tt=function(Ue,at,Ot){var kn=Wt(at.width,at.height,at.borderColor,Ot),Kt=document.createElement("div");Kt.style.position="relative",Kt.style.display="block",Kt.style.width=at.width+"px",Kt.style.height=at.height+"px",Kt.className="applet_screenshot applet_scaler"+(Ot?" applet_screenshot_play":""),Kt.appendChild(kn);var gn=GGBAppletUtils.getScale(at,Ue,Ot);Ot?(Ue.appendChild(Mt()),window.GGBT_wsf_view||(Ue.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Kt,"66%"),Ue.appendChild(Kt),gn!==1&&!isNaN(gn)&&(GGBAppletUtils.scaleElement(Kt,gn),Kt.style.width=at.width+"px",Kt.style.height=at.height+"px",Kt.parentNode.style.width=at.width*gn+"px",Kt.parentNode.style.height=at.height*gn+"px"),Mn.resize=function(){Ut(Ue,kn,Kt,Ot)},window.addEventListener("resize",function(nn){Mn.resize()}),Mn.resize()};function Ut(Ue,at,Ot,kn){if(Ue.contains(at)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ue.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ue)}var Kt=GGBAppletUtils.getScale(oe,Ue,kn);Ot.parentNode!==null&&(!isNaN(Kt)&&Kt!==1?(GGBAppletUtils.scaleElement(Ot,Kt),Ot.parentNode.style.width=oe.width*Kt+"px",Ot.parentNode.style.height=oe.height*Kt+"px"):(GGBAppletUtils.scaleElement(Ot,1),Ot.parentNode.style.width=oe.width+"px",Ot.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ue),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Mn.onExitFullscreen=function(Ue,at){at.appendChild(Ue)};var At=function(Ue,at,Ot,kn){tt(Ue,at,!0);for(var Kt=function(){var Gt=[];for(nn=0;nn<Ue.childNodes.length;nn++)Gt.push(Ue.childNodes[nn]);if(window.GGBT_wsf_view){var Xt=window.GGBT_wsf_view.renderFullScreen(Ue,at.id),ye=document.getElementById("fullscreencontainer"),ue=jQuery(Ue).find(".fullscreencontent");ue.length>0?(Xt.remove(),ue.attr("id","fullscreencontent").show(),jQuery(ye).append(ue),window.dispatchEvent(new Event("resize"))):Lt(Xt,at,!1),window.GGBT_wsf_view.launchFullScreen(ye)}else qe=kn,Lt(Ue,at,!1);if(!window.GGBT_wsf_view)for(nn=0;nn<Gt.length;nn++)Ue.removeChild(Gt[nn])},gn=Ue.getElementsByClassName("ggb_preview_play"),nn=0;nn<gn.length;nn++)gn[nn].addEventListener("click",Kt,!1),gn[nn].addEventListener("ontouchstart",Kt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ue),Je()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Mt=function(){var Ue=document.createElement("div");if(Ue.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var at='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ot=document.createElement("style");Ot.styleSheet?Ot.styleSheet.cssText=at:Ot.appendChild(document.createTextNode(at)),document.getElementsByTagName("head")[0].appendChild(Ot)}return Ue},Wt=function(Ue,at,Ot,kn){var Kt=document.createElement("div");Kt.className="ggb_preview",Kt.style.position="absolute",Kt.style.zIndex="90",Kt.style.width=Ue-2+"px",Kt.style.height=at-2+"px",Kt.style.top="0px",Kt.style.left="0px",Kt.style.overflow="hidden",Kt.style.backgroundColor="white";var gn="lightgrey";Ot!==void 0&&(Ot==="none"?gn="transparent":gn=Ot),Kt.style.border="1px solid "+gn;var nn=document.createElement("img");if(nn.style.position="relative",nn.style.zIndex="1000",nn.style.top="-1px",nn.style.left="-1px",ft!==null&&nn.setAttribute("src",ft),nn.style.opacity=.7,mt!==null){var Gt,Xt,ye;if(!kn){Gt=document.createElement("img"),Gt.style.position="absolute",Gt.style.zIndex="1001",Gt.style.opacity=1,nn.style.opacity=.3,Xt=360,Xt>Ue/4*3&&(Xt=Ue/4*3),ye=Xt/5.8,Gt.setAttribute("src",mt),Gt.setAttribute("width",Xt),Gt.setAttribute("height",ye);var ue=(Ue-Xt)/2,ce=(at-ye)/2;Gt.style.left=ue+"px",Gt.style.top=ce+"px",Kt.appendChild(Gt)}}return Kt.appendChild(nn),Kt},It=function(Ue){return Ue=Ue.toLowerCase(),Ue==="html5"||Ue==="screenshot"?Ue:"html5"},Ge=["web","webSimple","web3d","tablet","tablet3d","phone"],be=function(Ue,at){if(pt=Ue,at){Ye(pt,!0);return}var Ot=!Ae;if(Ot){var kn=Re(pt);!isNaN(kn)&&kn<4.4&&(Ot=!1)}var Kt,gn;window.location.protocol.substr(0,4)==="http"?Kt=window.location.protocol:Kt="http:";var nn=pt.indexOf("//");nn>0?gn=pt:nn===0?gn=Kt+pt:gn="https://www.geogebra.org/apps/5.2.814.0/";for(var Gt in Ge)if(pt.slice(Ge[Gt].length*-1)===Ge[Gt]||pt.slice((Ge[Gt].length+1)*-1)===Ge[Gt]+"/"){Ye(gn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ot&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Oe(oe.showToolBar)&&!Oe(oe.showMenuBar)&&!Oe(oe.showAlgebraInput)&&!Oe(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?gn+="webSimple/":gn+="web3d/",Ye(gn,!1)},Ye=function(Ue,at){if(Ue.requirejs){vt=Ue;return}Ue.slice(-1)!=="/"&&(Ue+="/"),vt=Ue,at===null&&(at=Ue.indexOf("http")===-1),Fe=at,Ke="web.nocache.js",je=!1;var Ot=vt.split("/");Ot.length>1&&(!at&&Ot[Ot.length-2]==="webSimple"?(Ke="webSimple.nocache.js",je=!0):Ge.indexOf(Ot[Ot.length-2])>=0&&(Ke=Ot[Ot.length-2]+".nocache.js")),Ot=Ue.split("/"),pt=Ot[Ot.length-3],pt.substr(0,4)==="test"?pt=pt.substr(4,1)+"."+pt.substr(5,1):(pt.substr(0,3)==="war"||pt.substr(0,4)==="beta")&&(pt="5.0");var kn=parseFloat(pt);kn!==NaN&&kn<5&&Ue.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+kn+" is deprecated. Using version latest instead."),be("5.0",at))},Pt=function(Ue,at){window.console&&window.console.log&&(!at||typeof at.showLogging=="undefined"||at.showLogging&&at.showLogging!=="false")&&console.log(Ue)};oe.material_id!==void 0?et(xt):xt();function xt(){var Ue=tn;Ee!==null?Ue=Ee:parseFloat(Ue)<5&&(Ue="5.0"),be(Ue,!1),pe!==null&&Ye(pe,Fe),xe=!0}return Mn},GGBAppletUtils=function(){"use strict";function Mn(){return window.GGBT_wsf_edit!==void 0}function tn(xe,Ee){Ee!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+Ee+","+Ee+")",xe.style.webkitTransform="scale("+Ee+","+Ee+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function oe(xe,Ee,pe,ve,Me,_e){var vt=null;if(_e!=null&&_e!="")for(var Fe=xe.parentNode;Fe!=null;)if((" "+Fe.className+" ").indexOf(" "+_e+" ")>-1){vt=Fe;break}else Fe=Fe.parentNode;var qe=0,pt=0,Ke=0,je=0,ft=0,mt=0,Bt=0;if(vt)qe=vt.offsetWidth,pt=Math.max(ve?vt.offsetWidth:0,vt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(qe=Math.min(window.innerWidth,document.documentElement.clientWidth),pt=Math.min(window.innerHeight,document.documentElement.clientHeight),Ke=qe):(qe=window.innerWidth,pt=window.innerHeight,Ke=window.innerWidth),xe){var ht=xe.getBoundingClientRect();ht.left>0&&ht.left<=qe&&(Me===void 0||!Me)&&(document.dir==="rtl"?(ft=qe-ht.width-ht.left,mt=Ke<=480?10:30):(mt=ht.left,ft=Ke<=480?10:30),je=mt+ft)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var nt=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(je=40,Bt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(je=0,Bt=40)}}return xe&&((pe===void 0||!pe)&&Ee>0&&Ee+je<qe?qe=Ee:qe-=je,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(pe===void 0||!pe)&&(pt-=Bt)),{width:qe,height:pt}}function ae(xe,Ee,pe,ve,Me){if(xe.isScreenshoGenerator)return 1;var _e=ve!==void 0&&ve,vt=xe.noScaleMargin!=null&&xe.noScaleMargin,Fe=function(nt){return nt&&nt!=="false"},qe=Fe(xe.autoHeight),pt=oe(Ee,xe.width,pe,qe,_e&&window.GGBT_wsf_view||vt,Me),Ke=parseInt(pt.width),je=xe.width,ft=xe.height;if(je===void 0){var mt=Ee.querySelector(".appletParameters");mt&&(je=mt.offsetWidth,ft=mt.offsetHeight)}var Bt=Ke/je,ht=_e?1:pt.height/ft;return pe!==void 0&&!pe&&(Bt=Math.min(1,Bt),ht=Math.min(1,ht)),Math.min(Bt,ht)}function Ae(xe,Ee,pe){var ve=1,Me,_e=!1;if(xe.hasOwnProperty("allowUpscale")&&(_e=xe.allowUpscale),xe.hasOwnProperty("scale")&&(ve=parseFloat(xe.scale),(isNaN(ve)||ve===null||ve===0)&&(ve=1),ve>1&&(_e=!0)),Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(_e=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))Me=ae(xe,Ee,_e,pe,xe.scaleContainerClass);else return ve;return _e&&(!xe.hasOwnProperty("scale")||ve===1)?Me:Math.min(ve,Me)}function Le(xe){var Ee=Math.min(window.innerWidth,document.documentElement.clientWidth),pe=Math.min(window.innerHeight,document.documentElement.clientHeight),ve=xe.getBoundingClientRect(),Me=(Ee-ve.width)/2,_e=(pe-ve.height)/2;_e<0&&(_e=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?xe.style.left="40px":xe.style.left=Me+"px",xe.style.top=_e+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(_e<40?xe.style.top="40px":xe.style.top=_e+"px",xe.style.left=Me+"px")}function ct(xe,Ee){var pe=xe.querySelector(".appletParameters");if(pe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ee.id!==pe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}if(pe.parentElement&&/fullscreen/.test(pe.parentElement.className))return;var ve=Ae(Ee,xe);Mn()&&pe.setAttribute("data-param-scale",ve);for(var Me=null,_e=0;_e<xe.childNodes.length;_e++)if(xe.childNodes[_e].className!==void 0&&xe.childNodes[_e].className.match(/^applet_scaler/)){Me=xe.childNodes[_e];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var vt=Ee.id!==void 0?Ee.id:"ggbApplet",Fe=window[vt];(Fe==null||!Fe.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN(ve)&&ve!==1?(Me.parentNode.style.width=Ee.width*ve+"px",Me.parentNode.style.height=Ee.height*ve+"px",tn(Me,ve)):(tn(Me,1),Me.parentNode.style.width=Ee.width+"px",Me.parentNode.style.height=Ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Le(xe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(pe).parents(".content-added-content"))}}return{responsiveResize:ct,isFlexibleWorksheetEditor:Mn,positionCenter:Le,getScale:Ae,scaleElement:tn}}();__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 Mn=n.location.search;return Mn.indexOf(J)!=-1||Mn.indexOf(K)!=-1}function q(Mn,tn){}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(Mn){var tn=s[L].bindings;s[L].bindings=function(){for(var oe=tn?tn():{},ae=Mn[webModule.__softPermutationId],Ae=O;Ae<ae.length;Ae++){var Le=ae[Ae];oe[Le[O]]=Le[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Mn=o.createElement(Q);if(Mn.id=L,Mn.style.cssText=R+S,Mn.tabIndex=-1,o.body.appendChild(Mn),t=Mn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var tn=document.compatMode==U?V:W;t.write(tn+X),t.close()}}}function w(Mn){function tn(ae){function Ae(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Le=Ae();if(Le){ae();return}function ct(){if(!Le){if(!Ae())return;Le=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,ct,!1),xe&&clearInterval(xe)}}o.addEventListener&&o.addEventListener(Z,ct,!1);var xe=setInterval(function(){ct()},$)}function oe(ae){var Ae=u(),Le=Ae.body,ct=Ae.createElement(_);ct.language=ab,ct.crossOrigin=W,ct.src=ae,webModule.__errFn&&(ct.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Le.appendChild(ct)}tn(function(){oe(Mn)})}webModule.__startLoadingFragment=function(Mn){return C(Mn)},webModule.__installRunAsyncCode=function(Mn){var tn=u(),oe=tn.body,ae=tn.createElement(_);ae.language=ab,ae.text=Mn,oe.appendChild(ae),oe.removeChild(ae)};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(Mn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Mn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Mn){var tn=c[Mn];return tn==null?null:tn},r=d,webModule.__errFn=e}function B(){function Mn(xe){var Ee=xe.lastIndexOf(rb);Ee==-1&&(Ee=xe.length);var pe=xe.indexOf(sb);pe==-1&&(pe=xe.length);var ve=xe.lastIndexOf(tb,Math.min(pe,Ee));return ve>=O?xe.substring(O,ve+P):W}function tn(xe){if(!xe.match(/^\w+:\/\//)){var Ee=o.createElement(ub);Ee.src=xe+vb,xe=Mn(Ee.src)}return xe}function oe(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function ae(){for(var xe=o.getElementsByTagName(_),Ee=O;Ee<xe.length;++Ee)if(xe[Ee].src.indexOf(xb)!=-1)return Mn(xe[Ee].src);return W}function Ae(){var xe=o.getElementsByTagName(yb);return xe.length>O?xe[xe.length-P].href:W}function Le(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var ct=oe();return ct==W&&(ct=ae()),ct==W&&(ct=Ae()),ct==W&&Le()&&(ct=Mn(o.location.href)),ct=tn(ct),ct}function C(Mn){return Mn.match(/^\//)||Mn.match(/^[a-zA-Z]+:\/\//)?Mn:webModule.__moduleBase+Mn}function D(){var Mn=[],tn=O,oe=[],ae=[];function Ae(xe){var Ee=ae[xe](),pe=oe[xe];if(Ee in pe)return Ee;var ve=[];for(var Me in pe)ve[pe[Me]]=Me;throw r&&r(xe,ve,Ee),null}if(__gwt_isKnownPropertyValue=function(xe,Ee){return Ee in oe[xe]},webModule.__getPropMap=function(){var xe={};for(var Ee in oe)oe.hasOwnProperty(Ee)&&(xe[Ee]=Ae(Ee));return xe},webModule.__computePropValue=Ae,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Le;try{Le=Cb;var ct=Le.indexOf(Db);ct!=-1&&(tn=parseInt(Le.substring(ct+P),$),Le=Le.substring(O,ct))}catch(xe){}return webModule.__softPermutationId=tn,C(Le+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},79090:function(Mn,tn,oe){"use strict";oe.d(tn,{Ax:function(){return ct},Ds:function(){return xe},KI:function(){return pe},SI:function(){return Le},f1:function(){return Ae}});var ae=oe(6521);function Ae(ve){let Me=!0;if(ve.length>0){for(let _e=0;_e<ve.length;_e++)if(ve[_e].compile_success==0||!ve[_e].compile_success){Me=!1;break}}else Me=!1;return Me}function Le(ve,Me=""){let _e=[];for(let vt=0;vt<ve.length;vt++){let Fe=ve[vt],qe=Me?`${Me}/${Fe.name}`:`${Fe.name}`;_e.push({title:Fe.name,type:Fe.type,isLeaf:Fe.type!=="tree",key:qe})}return _e}function ct(ve,Me,_e){for(let vt=0;vt<ve.length;vt++){let Fe=ve[vt];if(Fe.key===Me){Fe.children=_e;break}Fe.children&&ct(Fe.children,Me,_e)}return ve}function xe(ve,Me,_e){let vt;return function(){let Fe=this,qe=arguments,pt=function(){vt=null,_e||ve.apply(Fe,qe)},Ke=_e&&!vt;clearTimeout(vt),vt=setTimeout(pt,Me),Ke&&ve.apply(Fe,qe)}}const Ee=!0,pe=ae.Z.API_SERVER},5033:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return pt}});var ae=oe(3113),Ae=oe(59301),Le=Object.defineProperty,ct=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Me=(Ke,je,ft)=>je in Ke?Le(Ke,je,{enumerable:!0,configurable:!0,writable:!0,value:ft}):Ke[je]=ft,_e=(Ke,je)=>{for(var ft in je||(je={}))pe.call(je,ft)&&Me(Ke,ft,je[ft]);if(Ee)for(var ft of Ee(je))ve.call(je,ft)&&Me(Ke,ft,je[ft]);return Ke},vt=(Ke,je)=>ct(Ke,xe(je)),Fe=(Ke,je)=>{var ft={};for(var mt in Ke)pe.call(Ke,mt)&&je.indexOf(mt)<0&&(ft[mt]=Ke[mt]);if(Ke!=null&&Ee)for(var mt of Ee(Ke))je.indexOf(mt)<0&&ve.call(Ke,mt)&&(ft[mt]=Ke[mt]);return ft},qe=(Ke,je,ft)=>new Promise((mt,Bt)=>{var ht=Ce=>{try{Re(ft.next(Ce))}catch(Je){Bt(Je)}},nt=Ce=>{try{Re(ft.throw(Ce))}catch(Je){Bt(Je)}},Re=Ce=>Ce.done?mt(Ce.value):Promise.resolve(Ce.value).then(ht,nt);Re((ft=ft.apply(Ke,je)).next())});const pt=Ke=>{var je=Ke,{children:ft}=je,mt=Fe(je,["children"]);const[Bt,ht]=(0,Ae.useState)(!1);return Ae.createElement(ae.ZP,vt(_e({},mt),{loading:Bt,onClick:nt=>qe(void 0,null,function*(){try{ht(!0),yield mt.onClick(nt),ht(!1)}catch(Re){console.error(Re),ht(!1)}})}),ft)}},40929:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return qe}});var ae=oe(59301),Ae=oe(8591),Le=oe(92832),ct={codeBox:"codeBox___WpkVl"},xe=oe(92310),Ee=oe.n(xe),pe=Object.defineProperty,ve=(pt,Ke,je)=>Ke in pt?pe(pt,Ke,{enumerable:!0,configurable:!0,writable:!0,value:je}):pt[Ke]=je,Me=(pt,Ke,je)=>ve(pt,typeof Ke!="symbol"?Ke+"":Ke,je),_e=(pt,Ke,je)=>new Promise((ft,mt)=>{var Bt=Re=>{try{nt(je.next(Re))}catch(Ce){mt(Ce)}},ht=Re=>{try{nt(je.throw(Re))}catch(Ce){mt(Ce)}},nt=Re=>Re.done?ft(Re.value):Promise.resolve(Re.value).then(Bt,ht);nt((je=je.apply(pt,Ke)).next())});class vt extends ae.Component{constructor(Ke){super(Ke),Me(this,"canvas"),Me(this,"randomNum",(je,ft)=>Math.floor(Math.random()*(ft-je)+je)),Me(this,"drawPic",()=>{this.randomCode()}),Me(this,"reloadPic",()=>{this.drawPic()}),Me(this,"changeCode",je=>{console.log(je.target.value,222),this.setState({value:je.target.value,showError:!1})}),Me(this,"onVerify",()=>{let je;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(je=!0,Ae.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(je=!0,Ae.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(je=!1),this.setState({showError:je}),je}),this.canvas=ae.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(Ke,je){const ft=this.randomNum(Ke,je),mt=this.randomNum(Ke,je),Bt=this.randomNum(Ke,je);return`rgb(${ft}, ${mt}, ${Bt})`}drawText(Ke,je,ft){Ke.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const mt=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);Ke.font=mt+"px SimHei";const Bt=10,ht=(this.state.contentWidth-40)/(this.state.code.length-1);let nt=Bt;ft>0&&(nt=Bt+ft*ht);let Re=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);mt>40&&(Re=40);const Ce=this.randomNum(-10,10);Ke.translate(nt,Re),Ke.rotate(Ce*Math.PI/180),Ke.fillText(je,0,0),Ke.rotate(-Ce*Math.PI/180),Ke.translate(-nt,-Re)}drawLine(Ke){for(let je=0;je<1;je++)Ke.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),Ke.beginPath(),Ke.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Ke.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Ke.stroke()}drawDot(Ke){for(let je=0;je<100;je++)Ke.fillStyle=this.randomColor(0,255),Ke.beginPath(),Ke.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),Ke.fill()}randomCode(){let Ke="";const je="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let ft=0;ft<this.state.codeLength;ft++){const mt=Math.floor(Math.random()*57);Ke+=je[mt]}this.setState({code:Ke},()=>{const mt=this.canvas.current.getContext("2d");mt.textBaseline="bottom",mt.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),mt.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let Bt=0;Bt<this.state.code.length;Bt++)this.drawText(mt,this.state.code[Bt],Bt);this.drawLine(mt),this.drawDot(mt)})}render(){const{className:Ke,width:je=300}=this.props;return ae.createElement("div",{className:Ee()(ct.codeBox,Ke),style:{width:je}},ae.createElement("aside",null,ae.createElement(Le.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),ae.createElement("div",null,ae.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),ae.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const Fe=(pt,Ke)=>{let je;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,Ke),React.createElement(vt,{ref:ft=>je=ft})),onOk:()=>_e(void 0,null,function*(){if(je.onVerify())return Promise.reject();pt()})})};var qe=vt},15868:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return vt}});var ae=oe(59301),Ae={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Le=oe(92310),ct=oe.n(Le),xe=oe(71418),Ee=oe(2859),pe=oe(79769),ve=oe(25544),Me=(Fe,qe,pt)=>new Promise((Ke,je)=>{var ft=ht=>{try{Bt(pt.next(ht))}catch(nt){je(nt)}},mt=ht=>{try{Bt(pt.throw(ht))}catch(nt){je(nt)}},Bt=ht=>ht.done?Ke(ht.value):Promise.resolve(ht.value).then(ft,mt);Bt((pt=pt.apply(Fe,qe)).next())}),vt=({data:Fe,className:qe,fullWidth:pt,style:Ke={},onClose:je,onOk:ft,showFullTools:mt,noAssociationId:Bt})=>{const ht=(0,ae.useRef)(null),nt=(0,ae.useRef)(null),Re=(0,ae.useRef)(null),Ce=(0,ae.useRef)(null),[Je,et]=(0,ae.useState)(!1),[wt,Qe]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{Re.current||(Re.current=document.createElement("style"),document.head.appendChild(Re.current)),Fe!=null&&Fe.visible?(document.body.setAttribute("data-custom","y-hidden"),Re.current.innerHTML=" html { overflow-y: hidden; }",Fe!=null&&Fe.src&&bt()):(document.body.removeAttribute("data-custom"),Re.current&&(document.head.removeChild(Re.current),Re.current=null))},[Fe==null?void 0:Fe.visible]);const bt=()=>Me(void 0,null,function*(){et(!0),Qe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const At=yield(0,ve.ZJ)(Fe==null?void 0:Fe.src);ht.current.src="",ht.current.src=At,ht.current.onload=function(){Ut()},et(!1),Qe("")}),Oe=()=>{document.body.removeAttribute("data-custom"),Re.current.innerHTML=" ",je()},Lt=At=>Me(void 0,null,function*(){et(!0),Qe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Mt=yield(0,pe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Fe.title,file:At.dataUrl}});Mt!=null&&Mt.id&&!Bt?(yield(0,pe.ZP)(`/api/attachments/${Fe.id}/add_subitem.json`,{method:"post",body:{subitem_id:Mt==null?void 0:Mt.id,settings:JSON.stringify(At.state)}})).status===0&&ft():Mt!=null&&Mt.id&&ft(Mt),document.body.removeAttribute("data-custom"),Re.current.innerHTML=" ",et(!1),Qe("")}),tt=()=>{const At=document.querySelector('a[href="https://markerjs.com/"]');At&&At.parentNode&&(At.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(Wt=>{const It=document.querySelector(Wt.name);It&&It.setAttribute("title",Wt.title)})},Ut=()=>{nt.current=new Ee.hP(ht.current),nt.current.targetRoot=Ce.current,nt.current.addEventListener("render",Lt),nt.current.addEventListener("beforeclose",Oe),mt&&(nt.current.availableMarkerTypes=nt.current.ALL_MARKER_TYPES,nt.current.uiStyleSettings.redoButtonVisible=!0,nt.current.uiStyleSettings.notesButtonVisible=!0,nt.current.uiStyleSettings.zoomButtonVisible=!0,nt.current.uiStyleSettings.zoomOutButtonVisible=!0,nt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=nt.current.uiStyleSettings,nt.current.show(),Fe!=null&&Fe.snapshotData&&nt.current.restoreState(Fe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),tt()},300)};return ae.createElement(ae.Fragment,null,(Fe==null?void 0:Fe.visible)&&ae.createElement(xe.Z,{spinning:Je,tip:wt,style:{position:"absolute"}},ae.createElement("div",{ref:Ce,className:ct()(Ae.imageDimensions,qe,pt?Ae.fullWidth:""),style:Ke},ae.createElement("img",{className:Ae.img,ref:ht}))))}},3315:function(Mn,tn,oe){"use strict";var ae=oe(59301),Ae=oe(95237),Le=oe(43604),ct=oe(99313),xe=oe(3113),Ee=oe(39655),pe=oe(18760),ve=oe(48136),Me=oe(59301);const _e=(0,ae.forwardRef)(({callback:vt,showSaveButton:Fe,value:qe=""},pt)=>{const Ke=(0,ae.useRef)(),je=[{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 "}]}]}],ft=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],mt=nt=>{Ke.current.setValue(Ke.current.getValue()+" "+nt.value+" ")},Bt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Me.createElement(Ae.Z,{className:pe.Z.lists,gutter:[10,10]},je.map((nt,Re)=>Me.createElement(Le.Z,{flex:"110px",className:pe.Z.item},Me.createElement("div",null,Me.createElement(Ee.Z,{value:`$$${nt.value}$$`}),nt.name),Me.createElement("div",{className:pe.Z.children},nt.children.map((Ce,Je)=>Me.createElement("div",{key:Je},Me.createElement("h1",null,Ce.name),Me.createElement(Ae.Z,{gutter:[10,10]},Ce.data.map((et,wt)=>Me.createElement(Le.Z,{key:wt,onClick:()=>mt(et),className:pe.Z.diamond},Me.createElement(Ee.Z,{value:"`$$"+et.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(Ae.Z,{className:pe.Z.lists,gutter:[10,10]},ft.map((nt,Re)=>Me.createElement(Le.Z,{flex:"110px",className:pe.Z.item},Me.createElement("div",null,Me.createElement(Ee.Z,{value:"`$$"+nt.value+"$$`"}),nt.name),Me.createElement("div",{className:pe.Z.children},nt.children.map((Ce,Je)=>Me.createElement("div",{key:Je},Ce.name&&Me.createElement("h1",null,Ce.name),Me.createElement(Ae.Z,{gutter:[10,10]},Ce.data.map((et,wt)=>Me.createElement(Le.Z,{key:wt,onClick:()=>mt(et),className:pe.Z.diamond},Me.createElement(Ee.Z,{value:"`$$"+et.value+"$$`"}))))))))))}],ht=()=>{var nt=document.createElement("div");nt.innerHTML=Ke.current.getValue();var Re=nt.innerText;return vt&&vt(Re),Re};return(0,ae.useImperativeHandle)(pt,()=>({getData:ht})),Me.createElement("div",{className:pe.Z.mathWrap},Me.createElement(ct.default,{defaultActiveKey:"1",items:Bt}),Me.createElement("math-field",{locale:"zh_cn",className:pe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ke,style:{width:800,marginTop:30,fontSize:18}},qe||""),Fe&&Me.createElement("div",{className:pe.Z.button},Me.createElement(xe.ZP,{size:"large",onClick:ht,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});tn.Z=_e},69925:function(Mn,tn,oe){"use strict";oe.d(tn,{h:function(){return Ke},x:function(){return je}});var ae=oe(40973),Ae=oe(67609),Le=oe(39655),ct=oe(59301),xe=Object.defineProperty,Ee=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,vt=(ft,mt,Bt)=>mt in ft?xe(ft,mt,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):ft[mt]=Bt,Fe=(ft,mt)=>{for(var Bt in mt||(mt={}))Me.call(mt,Bt)&&vt(ft,Bt,mt[Bt]);if(ve)for(var Bt of ve(mt))_e.call(mt,Bt)&&vt(ft,Bt,mt[Bt]);return ft},qe=(ft,mt)=>Ee(ft,pe(mt)),pt=(ft,mt)=>{var Bt={};for(var ht in ft)Me.call(ft,ht)&&mt.indexOf(ht)<0&&(Bt[ht]=ft[ht]);if(ft!=null&&ve)for(var ht of ve(ft))mt.indexOf(ht)<0&&_e.call(ft,ht)&&(Bt[ht]=ft[ht]);return Bt};const Ke=ft=>{var mt=ft,{value:Bt,onChange:ht,scrollId:nt}=mt,Re=pt(mt,["value","onChange","scrollId"]);return ct.createElement("div",{id:nt||""},ct.createElement(ae.Z,qe(Fe({},Re),{defaultValue:Bt,onChange:(Ce,Je)=>{Je!=null&&Je.length?ht(Ce,Je):ht(Ce)}})))},je=({value:ft,onChange:mt,placeholder:Bt,height:ht=140,isEdit:nt,miniToolbar:Re,watch:Ce=!0})=>nt?ct.createElement(ae.Z,{watch:Ce,isFocus:!0,height:ht||void 0,placeholder:Bt,defaultValue:ft,onChange:mt,miniToolbar:Re}):ct.createElement("div",{style:{cursor:"pointer"}},ft?ct.createElement(Le.Z,{className:Ae.Z.inputBorder,value:ft}):ct.createElement("div",{className:`${Ae.Z.inputBorder} ${Ae.Z.placeholder} inputBorderError`},Bt))},67831:function(Mn,tn,oe){"use strict";oe.d(tn,{h:function(){return nt}});var ae=oe(59301),Ae=oe(57809),Le=oe(78241),ct=oe(3113),xe=oe(89780),Ee=oe.n(xe),pe=oe(14618),ve=oe(66552),Me=Object.defineProperty,_e=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,Ke=(Re,Ce,Je)=>Ce in Re?Me(Re,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Re[Ce]=Je,je=(Re,Ce)=>{for(var Je in Ce||(Ce={}))qe.call(Ce,Je)&&Ke(Re,Je,Ce[Je]);if(Fe)for(var Je of Fe(Ce))pt.call(Ce,Je)&&Ke(Re,Je,Ce[Je]);return Re},ft=(Re,Ce)=>_e(Re,vt(Ce));const mt=Ae.default.Option,Bt={labelCol:{span:4},wrapperCol:{span:20}},ht={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"]};tn.Z=({callback:Re,onCancel:Ce})=>{const[Je,et]=(0,ae.useState)("python");function wt(bt){et(ht[bt][1])}function Qe(bt){Re(bt)}return ae.createElement(Le.default,ft(je({},Bt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Qe,style:{width:500}}),ae.createElement(Le.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Ae.default,{getPopupContainer:bt=>bt.parentNode,onChange:wt},Object.keys(ht).map(bt=>ae.createElement(mt,{key:bt,value:bt},ht[bt][0])))),ae.createElement(Le.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(nt,{mode:Je})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(ct.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(ct.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function nt({value:Re,onChange:Ce,mode:Je,options:et={}}){const wt=(0,ae.useRef)(),[Qe,bt]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(Qe){let Oe=function(Lt){const tt=Lt.getValue();Ce&&Ce(tt)};return Qe.on("change",Oe),()=>{Qe.off("change",Oe)}}},[Qe,Ce]),(0,ae.useEffect)(()=>{Qe&&Qe.setOption("mode",Je)},[Qe,Je]),(0,ae.useEffect)(()=>{Qe&&(Re!==Qe.getValue()||Re==="")&&setTimeout(()=>{Qe.setValue(Re||"")},300)},[Qe,Re]),(0,ae.useEffect)(()=>{if(wt.current&&!Qe){const Oe=Ee().fromTextArea(wt.current,je({mode:Je,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},et));bt(Oe)}},[wt.current,Qe]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:wt}))}},40973:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return Ar}});var ae=oe(59301),Ae=oe(89780),Le=oe.n(Ae),ct=oe(76374),xe=oe(14618),Ee=oe(6313),pe=oe(25717),ve=oe(99498),Me=oe(25419),_e=oe(67549),vt=oe(39655),Fe=({value:dr="",className:Mr,showTextOnly:tr,showLines:Gn,style:Xr={}})=>{const Rt=(0,ae.useMemo)(()=>"",[dr]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:Rt}}))},qe=oe(59301),pt=Object.defineProperty,Ke=Object.defineProperties,je=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,ht=(dr,Mr,tr)=>Mr in dr?pt(dr,Mr,{enumerable:!0,configurable:!0,writable:!0,value:tr}):dr[Mr]=tr,nt=(dr,Mr)=>{for(var tr in Mr||(Mr={}))mt.call(Mr,tr)&&ht(dr,tr,Mr[tr]);if(ft)for(var tr of ft(Mr))Bt.call(Mr,tr)&&ht(dr,tr,Mr[tr]);return dr},Re=(dr,Mr)=>Ke(dr,je(Mr));let Ce=[{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 Je({onActionCallback:dr,title:Mr,icon:tr,actionName:Gn,className:Xr="",children:Rt}){function ze(){dr(Gn)}return qe.createElement("a",{title:Mr,className:Xr,onClick:ze},qe.createElement("i",{className:`${tr}`}),Rt)}var et=({watch:dr,showNullButton:Mr,showNullProgramButton:tr,onActionCallback:Gn,fullScreen:Xr,insertTemp:Rt,hidetoolBar:ze,extraUse:$e})=>{const Xe=[...Ce,{title:`${dr?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${dr?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return qe.createElement("ul",{className:"markdown-toolbar-container"},!ze&&Xe.map((Ze,Et)=>qe.createElement("li",{key:Et},Ze.actionName?qe.createElement(Je,Re(nt({},Ze),{onActionCallback:Gn})):qe.createElement("span",{className:"v-line"}))),Mr?qe.createElement("li",null,qe.createElement(Je,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Gn},qe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,tr?qe.createElement(qe.Fragment,null,qe.createElement("li",null,qe.createElement(Je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Gn},qe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),qe.createElement("li",null,qe.createElement(Je,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Gn},qe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Rt&&qe.createElement("li",null,qe.createElement(Je,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Rt}`,onActionCallback:Gn},qe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),$e&&qe.createElement("li",null,$e),qe.createElement("li",{className:"btn-full-screen"},qe.createElement(Je,{icon:`${Xr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Xr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Gn})))},wt=oe(53531),Qe=oe(78241),bt=oe(92832),Oe=oe(3113),Lt=Object.defineProperty,tt=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,At=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,It=(dr,Mr,tr)=>Mr in dr?Lt(dr,Mr,{enumerable:!0,configurable:!0,writable:!0,value:tr}):dr[Mr]=tr,Ge=(dr,Mr)=>{for(var tr in Mr||(Mr={}))Mt.call(Mr,tr)&&It(dr,tr,Mr[tr]);if(At)for(var tr of At(Mr))Wt.call(Mr,tr)&&It(dr,tr,Mr[tr]);return dr},be=(dr,Mr)=>tt(dr,Ut(Mr));const Ye={labelCol:{span:4},wrapperCol:{span:20}};var Pt=({callback:dr,onCancel:Mr})=>{function tr(Gn){dr(Gn)}return ae.createElement(Qe.default,be(Ge({},Ye),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:tr,style:{width:500}}),ae.createElement(Qe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(bt.default,null)),ae.createElement(Qe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(bt.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Oe.ZP,{type:"ghost",onClick:Mr},"\u53D6\u6D88")))},xt=oe(67831),Ue=oe(58448),at=oe(43418),Ot=oe(95237),kn=oe(15868),Kt=oe(59301),gn=({callback:dr,onCancel:Mr})=>{const tr=document.createElement("canvas"),Gn=tr.getContext("2d");tr.width=1e3,tr.height=800,Gn.fillStyle="#ffffff",Gn.fillRect(0,0,tr.width,tr.height);const Xr=tr.toDataURL("image/png");return Kt.createElement(at.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Kt.createElement(Ot.Z,{style:{height:"100vh"}},Kt.createElement(kn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Xr,visible:!0,title:String(Date.now())},onOk:Rt=>{dr({src:Rt.url})},onClose:Mr})))},nn=oe(8591),Gt=oe(43428),Xt=oe(43604),ye={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ue=oe(59301),de=(0,ae.forwardRef)(({onCancel:dr,editImgId:Mr,callback:tr},Gn)=>{let Xr=(0,ae.useRef)(),Rt=(0,ae.useRef)(),ze=(0,ae.useRef)(),$e=(0,ae.useRef)(!1);const Xe=(0,ae.useRef)(!1);console.log("ref:",Gn);const[Ze,Et]=(0,ae.useState)(0),[Tt,hn]=(0,ae.useState)("100vh");(0,ae.useEffect)(()=>{Et(1);try{indexedDB.databases().then(Tn=>{Tn.forEach(Fn=>indexedDB.deleteDatabase(Fn.name))})}catch(Tn){}},[]),(0,ae.useEffect)(()=>(window.addEventListener("message",wn),()=>{window.removeEventListener("message",wn)}),[]),(0,ae.useImperativeHandle)(Gn,()=>({setHeight:hn}));const ln=Tn=>{window.saveDrawData(Fn=>{if(Fn===null&&!Tn){nn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}nn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),tr({src:`/api/attachments/${Fn}`,id:Fn,disabledClose:!0})})},wn=Tn=>{var Fn;((Fn=Tn==null?void 0:Tn.data)==null?void 0:Fn.type)==="closePop"&&ln(!0)};return ue.createElement("div",{ref:Xe,className:"body-overflow-initial"},ue.createElement(Gt.Z,{width:"100vw",height:Tt,footer:null,closable:!0,placement:"bottom",open:!!Ze,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ye.drawerWrap}`,onClose:()=>{window.saveDrawData(Tn=>{tr({src:`/api/attachments/${Tn}`,id:Tn})})},title:ue.createElement(Ot.Z,{align:"middle"},ue.createElement(Xt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ue.createElement(Xt.Z,{onClick:()=>{hn(Tt==="60px"?"100vh":"60px")}},ue.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ue.createElement(Xt.Z,{onClick:ln},ue.createElement(Oe.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ue.createElement("iframe",{src:`${window.ENV==="build"?"/react/build":""}/drawio/src/main/webapp/?id=${Mr||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Rt})))}),he=oe(6521),se=oe(5112),ke=oe(5871);const gt=se.ZP.Group,Ie={margin:"0 8px"};var Be=({callback:dr,onCancel:Mr})=>{function tr(Gn){dr(Gn)}return ae.createElement(Qe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:tr},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Ie},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Ie},"\u884C\u6570"),ae.createElement(Qe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(ke.Z,null)),ae.createElement("span",{style:Ie},"\u5217\u6570"),ae.createElement(Qe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(ke.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Ie},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(Qe.default.Item,{name:"align"},ae.createElement(gt,null,ae.createElement(se.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(se.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(se.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(se.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Oe.ZP,{type:"ghost",onClick:Mr},"\u53D6\u6D88")))},yt=oe(78673),rt=oe(3352),Ve=oe.n(rt),rn=(0,ae.forwardRef)(({use3d:dr,width:Mr,height:tr,callback:Gn,showSaveButton:Xr},Rt)=>{const ze=(0,ae.useRef)(),$e=(0,ae.useRef)(),[Xe,Ze]=(0,ae.useState)(!1),Et=(0,ae.useRef)({id:ze,appName:"graphing",width:Mr||1e3,height:tr||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{$e.current=new(Ve())(Et.current,!0),window.onload=function(){$e.current.inject("applet_container")}},[]);const Tt=()=>{var hn=window.ggbApplet.getPNGBase64(1,!0,72);return Gn&&Gn(hn),hn};return(0,ae.useEffect)(()=>{Et.current.appName=Xe?"3D":"graphing",$e.current.inject("applet_container")},[Xe]),(0,ae.useEffect)(()=>{Ze(dr)},[dr]),(0,ae.useImperativeHandle)(Rt,()=>({getImgData:Tt})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ze}),ae.createElement(Ot.Z,{align:"middle"},ae.createElement(Xt.Z,{flex:1},ae.createElement(yt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Xe,onChange:hn=>Ze(hn)})),ae.createElement(Xt.Z,null,ae.createElement(Oe.ZP,{size:"large",onClick:Tt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),lt=oe(3315),_t=oe(1012);const fn="link",ut="upload-image",De="add-flowchart",dt="draw-image",Ft="add-flowchart",zt="code-block",an="add-table",Bn="------------",qt={default:Bn,left:`:${Bn}`,center:`:${Bn}:`,right:`${Bn}:`};var pn=oe(57649),zn=(dr,Mr,tr)=>new Promise((Gn,Xr)=>{var Rt=Xe=>{try{$e(tr.next(Xe))}catch(Ze){Xr(Ze)}},ze=Xe=>{try{$e(tr.throw(Xe))}catch(Ze){Xr(Ze)}},$e=Xe=>Xe.done?Gn(Xe.value):Promise.resolve(Xe.value).then(Rt,ze);$e((tr=tr.apply(dr,Mr)).next())});function Vn(){}let Pn=0;const Qn=1e4,gr="\u2581",rr="@\u2581\u2581@",er="@\u2581@",pr=`
|
|
|
**\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`,Pr=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function $n(dr){return/^\d+$/.test(dr)?`${dr}px`:dr}const vr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",qr={[vr+"-B"]:"bold",[vr+"-I"]:"italic"},xi={[fn]:"\u6DFB\u52A0\u94FE\u63A5",[zt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ut]:"\u6DFB\u52A0\u56FE\u7247",[dt]:"\u6DFB\u52A0\u753B\u56FE",[De]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[an]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Ar=({defaultValue:dr="",onChange:Mr,width:tr="100%",height:Gn=400,miniToolbar:Xr=!1,isFocus:Rt=!1,watch:ze,insertTemp:$e,mode:Xe="markdown",id:Ze="markdown-editor-id",showResizeBar:Et=!1,noStorage:Tt=!1,showNullButton:hn=!1,showNullProgramButton:ln=!1,hidetoolBar:wn=!1,fullScreen:Tn=!1,onBlur:Fn,onCMBeforeChange:jn,onFullScreen:Qt,className:Dn="",disablePaste:Dt=!1,disabled:Zt=!1,disabledFill:on=!1,placeholder:cn="",values:In="",extraUse:en,onAddBlank:Ln})=>{const[it,Yt]=(0,ae.useState)(null),[$t,vn]=(0,ae.useState)(dr),[dn,xn]=(0,ae.useState)(ze),[yn,_n]=(0,ae.useState)(Tn),[Un,nr]=(0,ae.useState)(""),[mr,Tr]=(0,ae.useState)(0),[jr,br]=(0,ae.useState)(Gn),[ir,Ur]=(0,ae.useState)(!1),Nr=(0,ae.useRef)((0,_t.Z)()),$r=(0,ae.useRef)(!1),Cr=(0,ae.useRef)(),[Lr,ri]=(0,ae.useState)(0),[Kr,Ei]=(0,ae.useState)(0),Ri=(0,ae.useRef)(),zr=(0,ae.useRef)(),qn=(0,ae.useRef)(),Jn=(0,ae.useRef)(),Jr=(0,ae.useRef)(),Rr=(0,ae.useRef)(),li=()=>zn(void 0,null,function*(){var Br;const kr=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Nr.current}});(Br=kr==null?void 0:kr.attachments)!=null&&Br.length&&(console.log("cm:",it,Ri),kr.attachments.map(Er=>{Er.content_type.indexOf("image")>-1?it.replaceSelection(``):Er.content_type.indexOf("video")>-1?it.replaceSelection(`<video width="100%" controls src="${he.Z.API_SERVER}/api/attachments/${data.id}"></video>`):Er.content_type.indexOf("pdf")>-1?it.replaceSelection(`<a href="${he.Z.API_SERVER}/api/attachments/${Er.id}?type=${Er.content_type}&disposition=inline" target="_blank">${Er.name}</a>`):it.replaceSelection(`[${Er.name}](${he.Z.API_SERVER}/api/attachments/${Er.id}?type=${Er.content_type})`)}))});(0,ae.useEffect)(()=>{const Br=window.scrollY||window.pageYOffset;vn(In),it==null||it.setValue(In),window.scrollTo(0,Br)},[In]),(0,ae.useEffect)(()=>{Qt==null||Qt(yn)},[yn]),(0,ae.useEffect)(()=>{if(Ri.current){let Br=function(Er,Gr){var Xi;if(Dt){Gr.preventDefault();return}const fa=Gr.clipboardData;if(fa){const va=fa.types.toString(),pa=fa.items;if(va==="Files"||fa.types.indexOf("Files")>-1){if(Gr.preventDefault(),Xe=="stex")return;try{let ua=pa[1];((Xi=pa[0])==null?void 0:Xi.kind)==="file"&&(ua=pa[0]);const Aa=ua.getAsFile(),Ya=Aa.name.split(".").pop();(0,Ue.I)(Aa,Ua=>{var go,Fi,Vi;Ua.id?((go=Aa==null?void 0:Aa.type)==null?void 0:go.indexOf("image"))>-1?kr.replaceSelection(`<img width="100%" src="/api/attachments/${Ua.id}?type=${Ua.content_type})" alt="" />`):((Fi=Aa==null?void 0:Aa.type)==null?void 0:Fi.indexOf("video"))>-1?kr.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ua.id}"></video>`):((Vi=Aa==null?void 0:Aa.type)==null?void 0:Vi.indexOf("pdf"))>-1?kr.replaceSelection(`<a href="/api/attachments/${Ua.id}?type=${Aa.type}&disposition=inline" target="_blank">${Aa.name}</a>`):Pr.includes(Ya)?kr.replaceSelection(`<a href="/api/attachments/${Ua.id}?type=office&disposition=inline" target="_blank">${Aa.name}</a>`):kr.replaceSelection(`[${Aa.name}](/api/attachments/${Ua.id}?type=${Ua.content_type})`):(Ua==null?void 0:Ua.status)===401&&(nn.ZP.warning((Ua==null?void 0:Ua.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(ua){nn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const kr=Le().fromTextArea(Ri.current,{mode:Xe,lineNumbers:!Xr,lineWrapping:!0,value:dr,autoCloseTags:!ln,autoCloseBrackets:!0});return kr.on("keyup",function(Er,Gr){Gr.keyCode===8&&(Er.getValue()==""?kr.setOption("placeholder",cn):kr.setOption("placeholder",null))}),kr.on("keydown",function(Er,Gr){if(Gr.keyCode===8){var Xi=fi(Er);Xi&&Gr.preventDefault()}}),Rt&&kr.focus(),kr.on("paste",Br),kr.on("dragleave",function(Er,Gr){zr.current.classList.remove("mouse-hover-md")}),Zt&&kr.on("beforeChange",function(Er,Gr){(Gr.origin==="paste"||Gr.origin==="+input")&&Gr.cancel()}),Yt(kr),()=>{kr.off("paste",Br)}}},[]);const pi=(0,ae.useCallback)(()=>{if(zr.current)try{}catch(Br){console.log(Br,"---- to set md editor body height")}},[jr,zr,yn]);(0,ae.useEffect)(()=>{function Br(){let kr=new ct.Z(Er=>{for(let Gr of Er)(Gr.target.offsetHeight>0||Gr.target.offsetWidth>0)&&(pi(),it.setSize("100%","100%"),it.refresh())});return kr.observe(Ri.current.parentElement),kr}if(it){const kr=Br();return()=>{var Er,Gr;(Er=Ri.current)!=null&&Er.parentElement&&kr.unobserve((Gr=Ri.current)==null?void 0:Gr.parentElement)}}},[it,pi]),(0,ae.useEffect)(()=>{if(it){let Br=[];for(const[kr,Er]of Object.entries(qr)){let Gr={[kr]:()=>{Qr(Er)}};Br.push(Gr),it.addKeyMap(Gr)}return Cr.current=setInterval(()=>{$r.current&&li()},4e3),()=>{clearInterval(Cr.current);for(let kr of Br)it.removeKeyMap(kr)}}},[it]),(0,ae.useEffect)(()=>{Tn!==yn&&_n(Tn)},[Tn]),(0,pn.Z)(()=>{if(!Tt&&mr>0){let Br=new Date().getTime(),kr=window.sessionStorage.getItem(Ze);Br>=mr+Qn&&(!kr||kr!==$t)&&(window.sessionStorage.setItem(Ze,$t),Ur(!0))}},Qn),(0,ae.useEffect)(()=>{xn(ze)},[it,ze]),(0,ae.useEffect)(()=>{it&&Rt&&it.focus()},[it,Rt]),(0,ae.useEffect)(()=>{if(dn&&it){let Br=function(Er){let Gr=Er.target;if(Jn.current){let Xi=Gr.scrollTop/Gr.scrollHeight;Jn.current.scrollTop=Jn.current.scrollHeight*Xi}};const kr=it.getScrollerElement();return kr.addEventListener("scroll",Br),()=>{kr.removeEventListener("scroll",Br)}}},[it,dn]),(0,ae.useEffect)(()=>{if(it&&jn){let Br=function(kr,Er){jn(kr,Er)};return it.on("beforeChange",Br),()=>{it.off("beforeChange",Br)}}},[it,jn]),(0,ae.useEffect)(()=>{if(it&&Fn){let Br=function(){Fn(it.getValue())};return it.on("blur",Br),()=>{it.off("blur",Br)}}},[it,Fn]);function fi(Br,kr){var Er=Br.getDoc(),Gr=Er.getCursor(),Xi=Er.getLine(Gr.line),fa=Xi.charAt(Gr.ch-1),va=Xi.lastIndexOf("@\u2581@",Gr.ch),pa=Xi.lastIndexOf("@\u2581\u2581@",Gr.ch),ua=va>pa?va:pa,Aa=va>pa?3:4;if(rr.indexOf(fa)===-1)return null;if(console.log("change1:",kr,Br,Xi,Gr,ua,va,pa,fa),ua>=0&&Gr.ch-ua<5){var Ya=ua+Aa;return Er.replaceRange("",{line:Gr.line,ch:ua},{line:Gr.line,ch:Ya}),{line:Gr.line,ch:Ya}}return null}(0,ae.useEffect)(()=>{if(it){let Br=function(kr,Er){const Gr=kr.getValue();vn(Gr),Tr(new Date().getTime()),kr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Mr&&(ln?Mr(Gr,ca(Gr)):Mr(Gr))};return it.on("change",Br),()=>{it.off("change",Br)}}},[it,Mr]),(0,ae.useEffect)(()=>{if(it)if(dr==null)it.setValue(""),vn("");else{const Br=window.scrollY||window.pageYOffset;dr!==it.getValue()&&(it.setValue(dr),vn(dr),it.setCursor(Zt?1:it.lineCount(),0),window.scrollTo(0,Br))}},[it,dr]);const Qr=(0,ae.useCallback)(Br=>{const kr=it.getCursor(),Er=it.getSelection();let Gr=Er.split(`
|
|
|
`);switch(Br){case"bold":return it.replaceSelection("**"+Er+"**"),Er===""&&it.setCursor(kr.line,kr.ch+2),it.focus();case"italic":return it.replaceSelection("*"+Er+"*"),Er===""&&it.setCursor(kr.line,kr.ch+1),it.focus();case"code":return it.replaceSelection("`"+Er+"`"),Er===""&&it.setCursor(kr.line,kr.ch+1),it.focus();case"inline-latex":return nr("inline-latex"),it.focus();case"latex":return it.replaceSelection("```latex\n"+Er+"\n```"),it.setCursor(kr.line+1,Er.length+1),it.focus();case"line-break":return it.replaceSelection(`<br/>
|
|
|
`),it.focus();case"list-ul":return Er===""?it.replaceSelection("- "+Er):it.replaceSelection(Gr.map(Xi=>Xi===""?"":`- ${Xi}`).join(`
|
|
|
`)),it.focus();case"list-ol":return Er===""?it.replaceSelection("1. "+Er):it.replaceSelection(Gr.map((Xi,fa)=>Xi===""?"":`${fa+1}. ${Xi}`).join(`
|
|
|
`)),it.focus();case"add-null-ch":Ln==null||Ln();return;case"add-signal":return Er===""&&it.setCursor(kr.line,kr.ch),it.replaceSelection(er),it.focus();case"add-multiple":return Er===""&&it.setCursor(kr.line,kr.ch),it.replaceSelection(rr),it.focus();case"inster-template-1":return Er===""&&it.setCursor(kr.line,kr.ch),it.replaceSelection(pr),it.focus();case"eraser":return it.setValue(""),it.focus();case"trigger-watch":return xn(!dn),it.focus();case"trigger-full-screen":return _n(!yn),it.focus();case fn:nr(fn);return;case zt:nr(zt);return;case ut:nr(ut);return;case dt:nr(dt);return;case"maths-latex":nr("maths-latex");return;case De:Jr.current="",sessionStorage.removeItem("file_id"),nr(De);return;case an:nr(an);return;default:throw new Error}},[it,dn,yn]),oi=(0,ae.useCallback)((Br,kr)=>{var Er,Gr,Xi,fa,va,pa;nr("");const{src:ua,alt:Aa,id:Ya}=Br||{};switch(Un){case fn:const{title:La,link:aa}=Br;return it.replaceSelection(`[${La}](${aa})`),it.focus();case zt:const{language:ha,content:An}=Br;return it.replaceSelection(["```"+ha,An,"```"].join(`
|
|
|
`)),it.focus();case"maths-latex":for(var Ua=atob(Br),go=new Uint8Array(Ua.length),Fi=0;Fi<Ua.length;Fi++)go[Fi]=Ua.charCodeAt(Fi);var Vi=new Blob([go],{type:"image/png"});(0,Ue.I)(Vi,wr=>{wr.id?it.replaceSelection(``):(wr==null?void 0:wr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":it.replaceSelection("`$$"+Br+"$$`");break;case Ft:if(!Ya)return;it.focus(),it.getValue().indexOf(ua)===-1?it.replaceSelection(`<center><img id="${Ya}" width="80%" src="${ua}" class="draw-flowchart" alt="${Aa||""}" /></center>`):document.getElementById(Ya).src=he.Z.API_SERVER+ua+"?t="+Date.now();try{setTimeout(()=>{Fn(it.getValue())},100)}catch(wr){}break;case ut:case dt:const Cn=kr,mn=(Xi=(Gr=(Er=Cn==null?void 0:Cn.name)==null?void 0:Er.split("."))==null?void 0:Gr.pop)==null?void 0:Xi.call(Gr);return((fa=Cn==null?void 0:Cn.type)==null?void 0:fa.indexOf("image"))>-1||!(Cn!=null&&Cn.type)?Cn!=null&&Cn.align||Cn!=null&&Cn.width?it.replaceSelection(`<p style="text-align:${Cn.align||"initial"}"><img width="${Cn.width?Cn.width+"%":"initial"}" src="${ua}" alt="${Aa||""}" /></p>`):it.replaceSelection(`<img width="100%" src="${ua}" alt="${Aa||""}" />`):((va=Cn==null?void 0:Cn.type)==null?void 0:va.indexOf("video"))>-1?it.replaceSelection(`<video width="100%" controls src="${ua}"></video>`):((pa=Cn==null?void 0:Cn.type)==null?void 0:pa.indexOf("pdf"))>-1?it.replaceSelection(`<a href="${ua}?type=${Cn.type}&disposition=inline" target="_blank">${Cn.name}</a>`):Pr.includes(mn)?it.replaceSelection(`<a href="${ua}?type=office&disposition=inline" target="_blank">${Cn.name}</a>`):it.replaceSelection(`[${Cn.name}](${ua})`),it.focus();case an:const{row:Wn,col:ar,align:or}=Br;let Hn=`
|
|
|
`;for(let wr=0;wr<Wn;wr++){let ci=[],Li=[];for(let ui=0;ui<ar;ui++)wr===1&&Li.push(qt[or]),ci.push(" ");wr===1&&(Hn+=`| ${Li.join(" | ")} |
|
|
|
`),Hn+=`| ${ci.join(ar===1?"":" | ")} |
|
|
|
`}return it.replaceSelection(Hn+`
|
|
|
`),it.focus();default:throw new Error}},[it,Un]),ta=(0,ae.useMemo)(()=>{switch(Un){case fn:return ae.createElement(Pt,{callback:oi,onCancel:xr});case zt:return ae.createElement(xt.Z,{callback:oi,onCancel:xr});case ut:return ae.createElement(Ue.Z,{callback:oi,onCancel:xr});case De:return ae.createElement(de,{editImgId:Jr.current,callback:oi,onCancel:xr});case an:return ae.createElement(Be,{callback:oi,onCancel:xr});case"maths-latex":return ae.createElement(rn,{showSaveButton:!0,callback:oi});case"inline-latex":return ae.createElement(lt.Z,{showSaveButton:!0,callback:oi});default:return null}},[Un]);function xr(){nr("")}(0,ae.useEffect)(()=>{if(qn.current){let Br=function(va){Xi=!0,fa=va.pageY},kr=function(){Xi=!1},Er=function(va){if(Xi){let pa=va.pageY-fa;pa<0&&(pa=0),pa>300&&(pa=300);let ua=Gn+pa+"px";br(ua)}},Gr=qn.current,Xi=!1,fa=0;return Gr.addEventListener("mousedown",Br),document.addEventListener("mousemove",Er),document.addEventListener("mouseup",kr),()=>{Gr.removeEventListener("mousedown",Br),document.removeEventListener("mousemove",Er),document.removeEventListener("mouseup",kr)}}},[it,qn]),(0,ae.useEffect)(()=>{br(Gn)},[Gn]);const Ir=$n(tr),mi=$n(jr),Mi={width:Ir,height:mi},da=(0,ae.useMemo)(()=>{if(mr){let Br=new Date(mr),kr=Br.getHours(),Er=Br.getMinutes(),Gr=Br.getSeconds();return kr=kr<10?"0"+kr:kr,Er=Er<10?"0"+Er:Er,Gr=Gr<10?"0"+Gr:Gr,`${kr}:${Er}:${Gr}`}return 0},[mr]),ca=Br=>{const kr=[];if(ln){let Er=-1;Br=Br.replace(/(@▁▁@|@▁@)/g,function(Gr,Xi,fa){kr.push({multiLine:Gr!==er})})}return kr};function qi(){window.sessionStorage.removeItem(Ze),Ur(!1),Tr(0)}function Wi(){Ur(!1),Tr(0),it.setValue(window.sessionStorage.getItem(Ze))}(0,ae.useEffect)(()=>{xi[Un]&&Un!==dt&&Un!==De&&setTimeout(()=>{const Br=document.getElementsByClassName("markdown-popup-form")[0],kr=window.innerWidth/2-Br.offsetWidth/2,Er=window.innerHeight/2-Br.offsetHeight/2;ri(kr),Ei(Er)},0)},[Un]);const xa=Br=>{Br.preventDefault();const kr=Br.clientX-Lr,Er=Br.clientY-Kr;document.body.onmousemove=Gr=>{let Xi=Gr.clientX-kr,fa=Gr.clientY-Er;const va=document.getElementsByClassName("markdown-popup-form")[0],pa=window.innerWidth-va.offsetWidth,ua=window.innerHeight-va.offsetHeight;Xi=Math.max(0,Math.min(Xi,pa)),fa=Math.max(0,Math.min(fa,ua)),wa(Gr.clientX,Gr.clientY,kr,Er)&&(ri(Xi),Ei(fa))},document.body.onmouseup=function(){document.body.onmousemove=null}},wa=(Br,kr,Er,Gr)=>{const Xi=document.body.clientHeight,fa=document.body.clientWidth;return Br<20&&Er>Br||Br>fa-20&&Er<Br||kr<20&&Gr>kr||kr>Xi-20&&Gr<kr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:zr},ae.createElement("div",{className:`markdown-editor-container ${Dn} ${dn?"on-preview":""} ${Xr?"mini":""} ${yn?"full-screen":""}`,style:Mi},ae.createElement(et,{insertTemp:$e,watch:dn,fullScreen:yn,showNullButton:hn,showNullProgramButton:ln,onActionCallback:Qr,hidetoolBar:wn,extraUse:en}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Ri,placeholder:cn})),dn?ae.createElement("div",{ref:Jn,className:"preview-container"},Xe==="stex"&&ae.createElement(Fe,{value:$t}),Xe!=="stex"&&ae.createElement(vt.Z,{edit:!0,disabledFill:on,showProgramFill:ln,value:$t,openEditor:Br=>{var kr;Jr.current=Br,(kr=Rr.current)==null||kr.setHeight("100vh"),setTimeout(()=>{nr("add-flowchart")},150)}})):null))),Et?ae.createElement("a",{ref:qn,className:"editor-resize"}):null,Un===dt&&ae.createElement(gn,{callback:oi,onCancel:xr}),Un===De&&ae.createElement(de,{ref:Rr,editImgId:Jr.current,callback:oi,onCancel:xr}),ae.createElement(wt.Z,null,xi[Un]&&Un!==dt&&Un!==De?ae.createElement(at.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Lr,top:Kr},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:xa},xi[Un]),open:!0,onCancel:xr,footer:null,destroyOnClose:!0,width:Un===De?"1200px":null,height:Un===De?"80vh":null,className:"markdown-popup-form"},ta):null))}},58448:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return Je},I:function(){return wt}});var ae=oe(78241),Ae=oe(8591),Le=oe(92832),ct=oe(81327),xe=oe(5871),Ee=oe(5112),pe=oe(3113),ve=oe(79090),Me=oe(59301),_e=oe(7544),vt=oe(59301),Fe=Object.defineProperty,qe=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ft=Object.prototype.propertyIsEnumerable,mt=(Qe,bt,Oe)=>bt in Qe?Fe(Qe,bt,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Qe[bt]=Oe,Bt=(Qe,bt)=>{for(var Oe in bt||(bt={}))je.call(bt,Oe)&&mt(Qe,Oe,bt[Oe]);if(Ke)for(var Oe of Ke(bt))ft.call(bt,Oe)&&mt(Qe,Oe,bt[Oe]);return Qe},ht=(Qe,bt)=>qe(Qe,pt(bt));const{useForm:nt}=ae.default,Re={width:280,marginRight:10},Ce={labelCol:{span:5},wrapperCol:{span:19}};var Je=({callback:Qe,onCancel:bt})=>{const[Oe]=nt();let Lt=(0,Me.useRef)();function tt(Mt){Lt.current.width=Oe.getFieldValue("width"),Lt.current.align=Oe.getFieldValue("align"),Qe(Mt,Lt.current)}function Ut(Mt,Wt){if(Mt.status===-1){Ae.ZP.error(Mt.message);return}Oe.setFieldsValue({src:`/api/attachments/${Mt.id}`,type:Wt.type})}function At(Mt){let Wt=Mt.target.files[0];Lt.current=Wt,wt(Wt,Ut)}return vt.createElement(ae.default,ht(Bt({form:Oe},Ce),{className:"upload-image-panel",onFinish:tt,style:{width:470,overflow:"hidden"}}),vt.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},vt.createElement("div",{className:"flex-container"},vt.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},vt.createElement(Le.default,{style:Re})),vt.createElement(et,{onFileChange:At}))),vt.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},vt.createElement(Le.default,{style:{width:264}})),vt.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},vt.createElement(ct.Z,null,vt.createElement(ae.default.Item,{name:"width",style:{margin:0}},vt.createElement(xe.Z,{style:{width:264}})),vt.createElement("span",{className:"ml8"},"%"))),vt.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},vt.createElement(Ee.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),vt.createElement("aside",null,vt.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},vt.createElement(pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),vt.createElement(pe.ZP,{type:"default",onClick:bt},"\u53D6\u6D88"))))};function et({onFileChange:Qe}){return vt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",vt.createElement("input",{type:"file",onChange:Qe}))}function wt(Qe,bt){if(!Qe)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,_e.bg)())throw Ae.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Oe=new FormData;Oe.append("editormd-image-file",Qe),Oe.append("file_param_name","editormd-image-file"),Oe.append("byxhr","true");var Lt=new window.XMLHttpRequest;Lt.withCredentials=!0,Lt.addEventListener("load",function(tt){bt(JSON.parse(tt.target.responseText),Qe)},!1),Lt.addEventListener("error",function(tt){console.error(tt)},!1),Lt.open("POST",`${ve.KI}/api/attachments.json`),Lt.send(Oe)}},53531:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return Le}});var ae=oe(59301),Ae=oe(4676);class Le extends ae.Component{constructor(xe){super(xe);const Ee=window.document;this.node=Ee.createElement("div"),Ee.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,Ae.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},26073:function(Mn,tn,oe){"use strict";oe.d(tn,{i:function(){return Ce},Z:function(){return et}});var ae={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"},Ae=oe(71418),Le=oe(6848),ct=oe(93948),xe=oe(92310),Ee=oe.n(xe),pe=oe(25544),ve=oe(18540),Me=oe(7544),_e=oe(79005),vt=oe(20345),Fe=oe(77882),qe=oe(31081),pt=oe(75309),Ke=oe(71979),je=oe(47558),ft=oe(42922),mt=oe(66832),Bt=oe(96593),ht=oe(19664),nt=oe(91833),Re=oe(59301);const Ce=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:_e,swimg:vt},{name:"101\u8BA1\u5212",ptimg:Fe,swimg:qe},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:pt,swimg:Ke},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:je,swimg:ft},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:mt,swimg:Bt},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ht,swimg:nt}];var et=({className:wt,dataSource:Qe=[],col:bt=4,right:Oe,bottom:Lt=23,precision:tt=0,wrapWidth:Ut=1200,trackEventItems:At,loading:Mt,onRemove:Wt=()=>{},isCurrent:It=!0,showAlias:Ge=!1,showProgress:be=!1})=>{const Ye=Math.floor((Ut-(bt-1)*Oe)/bt),Pt=[{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(xt=>(window.ENV==="build"&&(xt.ptimg=`/react/build${xt.ptimg}`,xt.swimg=`/react/build${xt.swimg}`),xt));return Re.createElement(Ae.Z,{spinning:Mt},Re.createElement("div",{className:Ee()(ae.list,wt)},!!(Qe!=null&&Qe.length)&&(Qe==null?void 0:Qe.map((xt,Ue)=>{var at,Ot,kn,Kt,gn,nn;const{name:Gt,id:Xt,identifier:ye,featured:ue,school_name:ce,image_url:de,excellent:he,is_plan:se}=xt;return Re.createElement("div",{key:Xt,className:It&&be?ae.wrapisCurrent:ae.wrap,style:{width:Ye,marginRight:(1+Ue)%bt===0?0:Oe+tt,marginBottom:Lt}},Re.createElement("a",{className:ae.li,onClick:ke=>{ke.preventDefault(),ke.stopPropagation(),At&&(0,pe.L9)([At]),(0,pe.xg)(`/paths/${ye}`)}},Re.createElement("div",{className:ae.img},Re.createElement("img",{className:ae.cover,src:`${de}`}),It&&(0,Me.bg)()&&(xt==null?void 0:xt.studying)&&Re.createElement("div",{className:`${ae.movebq} user-path-items`,onClick:ke=>{ke.stopPropagation(),Wt(xt)}},Re.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Re.createElement("span",{className:"c-red"},"\u79FB\u9664")),(at=xt==null?void 0:xt.subject_tags)==null?void 0:at.map((ke,gt)=>{var Ie,Be;if(gt===0){const rt=(Ie=Pt.find(Ve=>Ve.name==ke))==null?void 0:Ie.swimg;return Re.createElement("img",{className:ae.sign,src:rt,style:{left:"-4px"}})}const yt=(Be=Pt.find(rt=>rt.name==ke))==null?void 0:Be.ptimg;return Re.createElement("img",{className:ae.sign,src:yt,style:{left:`${48+52*(gt-1)+2*gt}px`}})}),Re.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(xt==null?void 0:xt.excellent)&&Re.createElement("div",{className:ae.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Re.createElement("div",{className:ae.name},Re.createElement(Le.Z,{title:Ge&&(xt!=null&&xt.excellent_alias_name)?Re.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Gt}`,Re.createElement("br",null),Re.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${xt==null?void 0:xt.excellent_alias_name}`)):Gt},Re.createElement("span",{className:ae.e},Ge&&(xt==null?void 0:xt.excellent_alias_name)||Gt))),It&&be&&((Ot=xt==null?void 0:xt.progress)==null?void 0:Ot.all_score)!=0&&Re.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Re.createElement(ct.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((kn=xt==null?void 0:xt.progress)==null?void 0:kn.my_score)/((Kt=xt==null?void 0:xt.progress)==null?void 0:Kt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(gn=xt==null?void 0:xt.progress)==null?void 0:gn.my_score,"/",(nn=xt==null?void 0:xt.progress)==null?void 0:nn.all_score),(!It||!be)&&Re.createElement("div",{className:ae.tags},Re.createElement("div",null,Re.createElement(Le.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Re.createElement("span",null,xt.stages_count))),Re.createElement(Le.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Re.createElement("span",null,xt.members_count)))))))})),!Qe.length&&Re.createElement(ve.Z,null)))}},23579:function(Mn,tn,oe){"use strict";oe.d(tn,{jL:function(){return xe},w9:function(){return xi},vv:function(){return ze},dN:function(){return tr},QD:function(){return ri},cQ:function(){return gt.Z},vg:function(){return Pr},Oz:function(){return Pn},op:function(){return ir},O5:function(){return ca},_b:function(){return Jn},t7:function(){return Lt},tT:function(){return At},Gi:function(){return Qt},YG:function(){return Et},Ed:function(){return Fn},kT:function(){return ln},qp:function(){return ft},Um:function(){return Ce},K3:function(){return ht},vr:function(){return Ri},qE:function(){return $r},Je:function(){return It},wb:function(){return nn},rC:function(){return ke},lB:function(){return ye},cq:function(){return In},kO:function(){return Yt},tp:function(){return wt},Si:function(){return xa},k8:function(){return ha},Du:function(){return va}});var ae=oe(59301),Ae={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"},Le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELA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lDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",xe=({dataSource:An=[],img:Cn,imgWidth:mn=346,title:Wn,sunTitle:ar,bannerExtraContent:or})=>ae.createElement("div",{className:Ae.banner},ae.createElement("div",{className:Ae.content},ae.createElement("aside",null,ae.createElement("p",null,ae.createElement("b",null,Wn),ae.createElement("span",null,ar)),An.length>0&&ae.createElement("div",{className:Ae.btns},An.map((Hn,wr)=>ae.createElement("div",{key:wr,onClick:Hn.click},Hn.name,Hn.sign?ae.createElement("img",{src:Le,width:39}):null))),or),Cn&&ae.createElement("img",{style:{marginTop:33,marginRight:38},src:Cn,width:mn}))),Ee={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"},pe=oe(92310),ve=oe.n(pe),Me=oe(78267),_e=Object.defineProperty,vt=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,pt=(An,Cn,mn)=>Cn in An?_e(An,Cn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):An[Cn]=mn,Ke=(An,Cn)=>{for(var mn in Cn||(Cn={}))Fe.call(Cn,mn)&&pt(An,mn,Cn[mn]);if(vt)for(var mn of vt(Cn))qe.call(Cn,mn)&&pt(An,mn,Cn[mn]);return An},ft=({dataSource:An=[],value:Cn,onChange:mn,onTitleChange:Wn,className:ar,title:or,titleWidth:Hn=41,style:wr={},fontColor:ci="#6A7283",showCount:Li,classNameActive:ui,styleItem:yr={}})=>{const[di,ki]=(0,ae.useState)(0),[na,vi]=(0,ae.useState)(!1),wi=(0,ae.useRef)(null),Gi=(0,ae.useRef)(null);return(0,ae.useEffect)(()=>{var Sa;An.length!==0&&(((Sa=wi==null?void 0:wi.current)==null?void 0:Sa.clientHeight)>97?ki(1):ki(0)),An.length===0&&ki(0),vi(!1)},[An]),ae.createElement("div",{className:ve()(Ee.row,ar),style:wr},ae.createElement("div",{onClick:(0,Me.throttle)(()=>Wn==null?void 0:Wn(),2e3),style:{width:Hn,marginTop:na?12:4},className:`${Ee.title} ${Wn?"current":""}`},or),ae.createElement("div",{className:na?`${Ee.tagsWrap} ${Ee.tagsBorderWrap}`:Ee.tagsWrap},ae.createElement("div",{className:Ee.bar,ref:Gi,style:di>0?{height:di===1?97:"auto",overflow:di===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ae.createElement("div",{className:Ee.tag,ref:wi},An==null?void 0:An.map(Sa=>ae.createElement("span",{onClick:()=>mn(Sa.id),key:Sa.id,style:Ke(Ke({color:ci},yr),(Sa==null?void 0:Sa.style)||{}),className:Cn===Sa.id?ve()(ui||Ee.active,Sa.classNameActive):""},ae.createElement("span",{title:Sa.name,className:Ee.name},Sa.name),!!Li&&ae.createElement("span",{className:Ee.num},Sa.count))))),!!di&&ae.createElement(ae.Fragment,null,di===1?ae.createElement("div",{onClick:()=>{var Sa;ki(2),((Sa=wi==null?void 0:wi.current)==null?void 0:Sa.clientHeight)>245?vi(!0):vi(!1)},className:Ee.action},"\u5C55\u5F00",ae.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ae.createElement("div",{onClick:()=>{Gi.current.scrollTop=0,ki(1),vi(!1)},className:Ee.action},"\u6536\u8D77",ae.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},mt={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},ht=({dataSource:An=[],value:Cn,onChange:mn,onTitleChange:Wn,className:ar,title:or,titleWidth:Hn=41,style:wr={},fontColor:ci="#6A7283",showCount:Li,expand:ui=!0})=>{const[yr,di]=(0,ae.useState)(0),[ki,na]=(0,ae.useState)(!1),vi=(0,ae.useRef)(null),wi=(0,ae.useRef)(null),[Gi,Sa]=(0,ae.useState)(ui);return ae.createElement("div",{className:ve()(mt.row,ar),style:wr},ae.createElement("div",{className:"flex item-center justify-between"},ae.createElement("div",{onClick:(0,Me.throttle)(()=>Wn==null?void 0:Wn(),2e3),style:{width:Hn,marginTop:ki?12:4},className:`${mt.title} ${Wn?"current":""}`},or),ae.createElement("i",{className:`iconfont ${Gi?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:Gi?8:10},onClick:()=>Sa(!Gi)})),Gi&&ae.createElement("div",{className:ki?`${mt.tagsWrap} ${mt.tagsBorderWrap}`:mt.tagsWrap},ae.createElement("div",{className:mt.fenge}),ae.createElement("div",{className:mt.bar,ref:wi},ae.createElement("div",{className:mt.tag,ref:vi},An==null?void 0:An.map(Ra=>ae.createElement("span",{onClick:()=>mn(Ra.id),key:Ra.id,style:{color:ci},className:Cn===Ra.id?mt.active:""},ae.createElement("span",{title:Ra.name,className:mt.name},Ra.name),!!Li&&ae.createElement("span",{className:mt.num},Ra.count)))))))},nt={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"},Ce=({dataSource:An=[],value:Cn,onChange:mn,onTitleChange:Wn,className:ar,title:or,titleWidth:Hn=41,style:wr={},fontColor:ci="#fff",showCount:Li,expand:ui=!0})=>{const[yr,di]=(0,ae.useState)(0),[ki,na]=(0,ae.useState)(!1),vi=(0,ae.useRef)(null),wi=(0,ae.useRef)(null),[Gi,Sa]=(0,ae.useState)(ui);return ae.createElement("div",{className:ve()(nt.row,ar),style:wr},ae.createElement("div",{className:"flex item-center justify-between"},ae.createElement("div",{onClick:(0,Me.throttle)(()=>Wn==null?void 0:Wn(),2e3),style:{width:Hn},className:`${nt.title} ${Wn?"current":""}`},or),ae.createElement("i",{className:`iconfont ${Gi?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:Gi?"#00DDC7":"#037F74",fontSize:Gi?10:12},onClick:()=>Sa(!Gi)})),Gi&&ae.createElement("div",{className:ki?`${nt.tagsWrap} ${nt.tagsBorderWrap}`:nt.tagsWrap},ae.createElement("div",{className:nt.bar,ref:wi},ae.createElement("div",{className:nt.tag,ref:vi},An==null?void 0:An.map(Ra=>ae.createElement("span",{onClick:()=>mn(Ra.id),key:Ra.id,style:{color:ci},className:Cn===Ra.id?nt.active:""},ae.createElement("span",{title:Ra.name,className:nt.name},Ra.name),!!Li&&ae.createElement("span",{className:nt.num},Ra.count)))))))},Je={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},wt=({dataSource:An=[],value:Cn,onChange:mn,className:Wn,style:ar={}})=>ae.createElement("div",{style:ar,className:ve()(Je.tabs,Wn)},An.map(or=>ae.createElement("span",{onClick:()=>mn(or.id),className:Cn===or.id?Je.active:"",key:or.id},or.name))),Qe={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"},bt=oe(92832),Lt=({dataSource:An=[],value:Cn="",onChange:mn,onInputChange:Wn=()=>{},className:ar,style:or={},placeholder:Hn,allowClear:wr=!1})=>{var ci;const[Li,ui]=(0,ae.useState)(""),[yr,di]=(0,ae.useState)("");(0,ae.useEffect)(()=>{var vi;let wi=Cn;(vi=JSON.stringify(Cn))!=null&&vi.includes("{")&&(ui(Cn.id),wi=Cn.value||"");try{di(decodeURIComponent(wi||""))}catch(Gi){di(decodeURIComponent(wi||""))}},[Cn]);const ki=()=>{mn(encodeURIComponent(yr),Li||null)},na=vi=>{vi!==Li&&(ui(vi),mn(encodeURIComponent(yr),vi))};return ae.createElement("div",{className:ve()(Qe.input,ar),style:or},!!An.length&&ae.createElement("div",{className:Qe.dropdown},ae.createElement("div",{className:Qe.text},(ci=An.find(vi=>vi.id===Li))==null?void 0:ci.name,ae.createElement("i",{className:"iconfont icon-zhankai4"}),ae.createElement("b",{className:Qe.b1}),ae.createElement("b",{className:Qe.b2})),ae.createElement("div",{className:Qe.menu},An.map((vi,wi)=>ae.createElement("div",{key:wi,onClick:()=>na(vi.id)},vi.name)))),ae.createElement(bt.default,{onPressEnter:ki,value:yr,onChange:vi=>{di(vi.target.value),Wn(encodeURIComponent(vi.target.value),Li||null)},bordered:!1,placeholder:Hn}),ae.createElement("i",{onClick:ki,className:"iconfont icon-sousuo9 font14 pl10 current"}))},tt={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"},At=({dataSource:An=[],value:Cn="",onChange:mn,onInputChange:Wn=()=>{},className:ar,style:or={},placeholder:Hn,allowClear:wr=!1})=>{var ci;const[Li,ui]=(0,ae.useState)(""),[yr,di]=(0,ae.useState)("");(0,ae.useEffect)(()=>{var vi;let wi=Cn;(vi=JSON.stringify(Cn))!=null&&vi.includes("{")&&(ui(Cn.id),wi=Cn.value||"");try{di(decodeURIComponent(wi||""))}catch(Gi){di(decodeURIComponent(wi||""))}},[Cn]);const ki=()=>{mn(encodeURIComponent(yr),Li||null)},na=vi=>{vi!==Li&&(ui(vi),mn(encodeURIComponent(yr),vi))};return ae.createElement("div",{className:ve()(tt.input,ar),style:or},!!An.length&&ae.createElement("div",{className:tt.dropdown},ae.createElement("div",{className:tt.text},(ci=An.find(vi=>vi.id===Li))==null?void 0:ci.name,ae.createElement("i",{className:"iconfont icon-zhankai4 ml5"})),ae.createElement("div",{className:tt.menu},An.map((vi,wi)=>ae.createElement("div",{key:wi,onClick:()=>na(vi.id)},vi.name)))),ae.createElement(bt.default,{onPressEnter:ki,value:yr,onChange:vi=>{di(vi.target.value),Wn(encodeURIComponent(vi.target.value),Li||null)},bordered:!1,placeholder:Hn}),ae.createElement("i",{onClick:ki,className:"iconfont icon-sousuo9 font14 pl10 current"}))},Mt={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"},It=({value:An,onChange:Cn,className:mn,total:Wn,pageSize:ar,style:or={}})=>{const Hn=An<2,wr=An>=Math.ceil(Wn/ar);return Wn<=ar?ae.createElement(ae.Fragment,null):ae.createElement("div",{className:ve()(Mt.quickPager,mn),style:or},ae.createElement("div",{onClick:()=>{Hn||Cn(An-1,"prev")},className:Hn?Mt.disabled:""},"\u4E0A\u4E00\u9875"),ae.createElement("div",{onClick:()=>{wr||Cn(An+1,"next")},className:wr?Mt.disabled:""},"\u4E0B\u4E00\u9875"))},Ge={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"},be=oe(71418),Ye=oe(6848),Pt=oe(13570),xt=oe(6521),Ue=oe(25544),at=oe(96908),Ot=oe(57177),kn=oe(81378),Kt=oe(18540),nn=({className:An,dataSource:Cn=[],col:mn=4,right:Wn,bottom:ar=23,precision:or=0,wrapWidth:Hn=1200,trackEventItems:wr,loading:ci})=>{const Li=Math.floor((Hn-(mn-1)*Wn)/mn);return ae.createElement(be.Z,{spinning:ci},ae.createElement("div",{className:ve()(Ge.list,An)},!!Cn.length&&Cn.map((ui,yr)=>{const{name:di,id:ki,identifier:na,power:vi,cover_image_id:wi,pic:Gi}=ui;return ae.createElement("div",{className:Ge.wrap,key:ki,style:{width:Li,marginRight:(1+yr)%mn===0?0:Wn+or,marginBottom:ar}},ae.createElement("a",{target:"_blank",href:`/shixuns/${na}/challenges`,className:Ge.li,onClick:Sa=>{Sa.preventDefault(),wr&&(0,Ue.L9)([wr]),vi&&(0,Ue.xg)(`/shixuns/${na}/challenges`)}},ae.createElement("div",{className:Ge.img},ae.createElement("img",{className:Ge.cover,src:`${Gi}`}),ui.is_jupyter&&ae.createElement("img",{className:Ge.sign,src:at}),ui.is_jupyter_lab&&ae.createElement("img",{className:Ge.sign,src:Ot}),ui.is_unity_3d&&ae.createElement("img",{className:Ge.sign,src:kn})),ae.createElement("div",{className:Ge.name},ae.createElement(Ye.Z,{title:di||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:Ge.e},di||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{className:Ge.tags},ae.createElement(Ye.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ae.createElement("span",null,ui.challenges_count))),!!ui.myshixuns_count&&ae.createElement(Ye.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ae.createElement("span",null,ui.myshixuns_count))),ae.createElement(Ye.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ae.createElement("span",null,ae.createElement("span",null,ui.level))),ae.createElement("div",{className:Ge.rate},ae.createElement(Pt.Z,{allowHalf:!0,disabled:!0,defaultValue:ui.score_info}),ae.createElement("span",null,"\xA0",ui.score_info?`${ui.score_info}\u5206`:"5\u5206")))),!vi&&ae.createElement("div",{className:Ge.lockWrap},ae.createElement("img",{src:`${xt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Cn.length&&ae.createElement(Kt.Z,null)))},Gt={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"},ye=({className:An,dataSource:Cn=[],col:mn=4,right:Wn,bottom:ar=23,precision:or=0,wrapWidth:Hn=1200,wrapClassName:wr,trackEventItems:ci,loading:Li})=>{const ui=Math.floor((Hn-(mn-1)*Wn)/mn);return ae.createElement(be.Z,{spinning:Li},ae.createElement("div",{className:ve()(Gt.list,An)},!!Cn.length&&Cn.map((yr,di)=>{const{name:ki,id:na,identifier:vi,power:wi,cover_image_id:Gi,pic:Sa}=yr;return ae.createElement("div",{className:ve()(Gt.wrap,wr),key:na,style:{width:ui,marginRight:(1+di)%mn===0?0:Wn+or,marginBottom:ar}},ae.createElement("a",{target:"_blank",href:`/shixuns/${vi}/challenges`,className:Gt.li,onClick:Ra=>{Ra.preventDefault(),ci&&(0,Ue.L9)([ci]),wi&&(0,Ue.xg)(`/shixuns/${vi}/challenges`)}},ae.createElement("img",{src:oe(47621),className:Gt.titleBg}),ae.createElement("div",{className:Gt.name},ae.createElement(Ye.Z,{title:ki||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:Gt.e},ki||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{style:{padding:"14px",paddingBottom:0}},ae.createElement("div",{className:Gt.img},ae.createElement("img",{className:Gt.cover,src:Gi?`${xt.Z.API_SERVER}/api/attachments/${Gi}`:`${xt.Z.IMG_SERVER+Sa}`}),yr.is_jupyter&&ae.createElement("div",{className:Gt.bq},"Jupyter"),yr.is_jupyter_lab&&ae.createElement("div",{className:Gt.bq},"JupyterLab"),yr.is_unity_3d&&ae.createElement("div",{className:Gt.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),ae.createElement("div",{className:"mt20 flex item-center justify-between"},ae.createElement("div",null,ae.createElement("span",{className:Gt.text},"\u5B66\u4E60\u4EBA\u6570"),ae.createElement("span",{className:Gt.value},yr.myshixuns_count)),ae.createElement("div",null,ae.createElement("span",{className:Gt.text},"\u56F0\u96BE\u7B49\u7EA7"),ae.createElement("span",{className:Gt.value},yr.level))),ae.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ae.createElement("div",null,ae.createElement("span",{className:Gt.text},"\u5173\u5361\u6570"),ae.createElement("span",{className:Gt.value},yr.challenges_count)),ae.createElement("div",{className:Gt.rate},ae.createElement(Pt.Z,{allowHalf:!0,disabled:!0,defaultValue:yr.score_info}),ae.createElement("span",{className:Gt.value,style:{color:"#FF9C00"}},"\xA0",yr.score_info?`${yr.score_info}\u5206`:"5\u5206"))))),!wi&&ae.createElement("div",{className:Gt.lockWrap},ae.createElement("img",{src:`${xt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Cn.length&&ae.createElement(Kt.Z,null)))},ue={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___a3F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MFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII=",ke=({className:An,dataSource:Cn=[],col:mn=4,right:Wn,bottom:ar=23,precision:or=0,wrapWidth:Hn=1200,trackEventItems:wr,loading:ci,wrapClassName:Li,imgClassName:ui})=>{const yr=Math.floor((Hn-(mn-1)*Wn)/mn);return ae.createElement(be.Z,{spinning:ci},ae.createElement("div",{className:ve()(ue.list,An)},!!Cn.length&&Cn.map((di,ki)=>{const{name:na,id:vi,identifier:wi,power:Gi,cover_image_id:Sa,pic:Ra}=di;return ae.createElement("div",{className:ve()(ue.wrap,Li),key:vi,style:{width:yr,marginRight:(1+ki)%mn===0?0:Wn+or,marginBottom:ar}},ae.createElement("a",{target:"_blank",href:`/shixuns/${wi}/challenges`,className:ue.li,onClick:so=>{so.preventDefault(),wr&&(0,Ue.L9)([wr]),Gi&&(0,Ue.xg)(`/shixuns/${wi}/challenges`)}},ae.createElement("div",{className:ve()(ue.img,ui)},ae.createElement("img",{className:ue.cover,src:Sa?`${xt.Z.API_SERVER}/api/attachments/${Sa}`:`${xt.Z.IMG_SERVER+Ra}`}),di.is_jupyter&&ae.createElement("img",{className:ue.sign,src:ce}),di.is_jupyter_lab&&ae.createElement("img",{className:ue.sign,src:de}),di.is_unity_3d&&ae.createElement("img",{className:ue.sign,src:he})),ae.createElement("div",{className:ue.name},ae.createElement(Ye.Z,{title:na||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ae.createElement("span",{className:ue.e},na||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ae.createElement("div",{className:ue.tags},ae.createElement(Ye.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ae.createElement("span",null,di.challenges_count))),!!di.myshixuns_count&&ae.createElement(Ye.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ae.createElement("span",null,ae.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ae.createElement("span",null,di.myshixuns_count))),ae.createElement(Ye.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ae.createElement("span",null,ae.createElement("span",null,di.level))),ae.createElement("div",{className:ue.rate},ae.createElement(Pt.Z,{allowHalf:!0,disabled:!0,defaultValue:di.score_info}),ae.createElement("span",null,"\xA0",di.score_info?`${di.score_info}\u5206`:"5\u5206")))),!Gi&&ae.createElement("div",{className:ue.lockWrap},ae.createElement("img",{src:`${xt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Cn.length&&ae.createElement(Kt.Z,null)))},gt=oe(26073),Ie={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"},Be=oe(79005),yt=oe(20345),rt=oe(77882),Ve=oe(31081),Ct=oe(75309),rn=oe(71979),lt=oe(47558),_t=oe(42922),fn=oe(66832),ut=oe(96593),De=oe(19664),dt=oe(91833),Ft=Object.defineProperty,zt=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,qt=(An,Cn,mn)=>Cn in An?Ft(An,Cn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):An[Cn]=mn,pn=(An,Cn)=>{for(var mn in Cn||(Cn={}))an.call(Cn,mn)&&qt(An,mn,Cn[mn]);if(zt)for(var mn of zt(Cn))Bn.call(Cn,mn)&&qt(An,mn,Cn[mn]);return An};const zn=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Be,swimg:yt},{name:"101\u8BA1\u5212",ptimg:rt,swimg:Ve},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Ct,swimg:rn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:lt,swimg:_t},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:fn,swimg:ut},{name:"\u519B\u961F\u4E00\u6D41",ptimg:De,swimg:dt}];var Pn=({className:An,dataSource:Cn=[],col:mn=4,right:Wn,bottom:ar=23,precision:or=0,wrapWidth:Hn=1200,trackEventItems:wr,loading:ci,wrapClassName:Li,imgClassName:ui,isArrow:yr=!1,imgStyle:di={}})=>{const ki=Math.floor((Hn-(mn-1)*Wn)/mn),[na,vi]=(0,ae.useState)(),[wi,Gi]=(0,ae.useState)(),Sa=so=>vi(so),Ra=()=>vi(-1);return ae.createElement(be.Z,{spinning:ci},ae.createElement("div",{className:ve()(Ie.list,An)},!!(Cn!=null&&Cn.length)&&(Cn==null?void 0:Cn.map((so,Do)=>{var Ys;const{name:ss,id:Mo,identifier:fo,featured:Os,school_name:Wo,image_url:hs,excellent:Xs,is_plan:Ns}=so;return ae.createElement("div",{key:Mo,className:ve()(Ie.wrap,Li),style:{width:ki,marginRight:(1+Do)%mn===0?0:Wn+or,marginBottom:ar}},ae.createElement("a",{target:"_blank",href:`/paths/${fo}`,className:Ie.li,onClick:ko=>{ko.preventDefault(),wr&&(0,Ue.L9)([wr]),(0,Ue.xg)(`/paths/${fo}`)}},ae.createElement("img",{src:oe(39057),className:Ie.titleBg}),ae.createElement("div",{className:Ie.name},ae.createElement(Ye.Z,{title:ss},ae.createElement("span",{className:Ie.e,style:{color:yr&&na===Do?"#145DFF":"#000000"},onMouseEnter:()=>{Sa(Do)},onMouseLeave:Ra},ss))),ae.createElement("div",{style:{padding:"14px",paddingBottom:0}},ae.createElement("div",{className:ve()(Ie.img,ui)},ae.createElement("img",{className:Ie.cover,style:pn({},di),src:`${xt.Z.IMG_SERVER+hs}`}),(Ys=so==null?void 0:so.subject_tags)==null?void 0:Ys.map((ko,vo)=>{var za,Rs;if(vo===0){const ys=(za=zn.find(Ca=>Ca.name==ko))==null?void 0:za.swimg;return ae.createElement("img",{className:Ie.sign,src:ys,style:{left:"-4px"}})}const cl=(Rs=zn.find(ys=>ys.name==ko))==null?void 0:Rs.ptimg;return ae.createElement("img",{className:Ie.sign,src:cl,style:{left:`${48+52*(vo-1)+2*vo}px`}})}),ae.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(so==null?void 0:so.excellent)&&ae.createElement("div",{className:Ie.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ae.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},ae.createElement("div",null,ae.createElement("span",{className:Ie.text},"\u7AE0\u8282\u6570"),ae.createElement("span",{className:Ie.value},so.stages_count)),ae.createElement("div",null,ae.createElement("span",{className:Ie.text},"\u5B66\u4E60\u4EBA\u6570"),ae.createElement("span",{className:Ie.value},so.members_count))))))})),!Cn.length&&ae.createElement(Kt.Z,null)))},Qn={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"},gr=oe(7544),rr=oe(59301);const er=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Be,swimg:yt},{name:"101\u8BA1\u5212",ptimg:rt,swimg:Ve},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:Ct,swimg:rn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:lt,swimg:_t},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:fn,swimg:ut},{name:"\u519B\u961F\u4E00\u6D41",ptimg:De,swimg:dt}];var Pr=({className:An,dataSource:Cn=[],col:mn=4,right:Wn,bottom:ar=23,precision:or=0,wrapWidth:Hn=1200,trackEventItems:wr,loading:ci,onRemove:Li=()=>{},isCurrent:ui=!0,showAlias:yr=!1,wrapClassName:di,imgClassName:ki})=>{const na=Math.floor((Hn-(mn-1)*Wn)/mn),vi=[{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(wi=>(window.ENV==="build"&&(wi.ptimg=`/react/build${wi.ptimg}`,wi.swimg=`/react/build${wi.swimg}`),wi));return rr.createElement(be.Z,{spinning:ci},rr.createElement("div",{className:ve()(Qn.list,An)},!!(Cn!=null&&Cn.length)&&(Cn==null?void 0:Cn.map((wi,Gi)=>{var Sa;const{name:Ra,id:so,identifier:Do,featured:Ys,school_name:ss,image_url:Mo,excellent:fo,is_plan:Os}=wi;return rr.createElement("div",{key:so,className:ve()(Qn.wrap,di),style:{width:na,marginRight:(1+Gi)%mn===0?0:Wn+or,marginBottom:ar}},rr.createElement("a",{className:Qn.li,onClick:Wo=>{Wo.preventDefault(),Wo.stopPropagation(),wr&&(0,Ue.L9)([wr]),(0,Ue.xg)(`/paths/${Do}`)}},rr.createElement("div",{className:ve()(Qn.img,ki)},rr.createElement("img",{className:Qn.cover,src:`${xt.Z.IMG_SERVER+Mo}`}),ui&&(0,gr.bg)()&&(wi==null?void 0:wi.studying)&&rr.createElement("div",{className:`${Qn.movebq} user-path-items`,onClick:Wo=>{Wo.stopPropagation(),Li(wi)}},rr.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),rr.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Sa=wi==null?void 0:wi.subject_tags)==null?void 0:Sa.map((Wo,hs)=>{var Xs,Ns;if(hs===0){const vo=(Xs=vi.find(za=>za.name==Wo))==null?void 0:Xs.swimg;return rr.createElement("img",{className:Qn.sign,src:vo,style:{left:"-4px"}})}const ko=(Ns=vi.find(vo=>vo.name==Wo))==null?void 0:Ns.ptimg;return rr.createElement("img",{className:Qn.sign,src:ko,style:{left:`${48+52*(hs-1)+2*hs}px`}})}),rr.createElement("div",{style:{position:"absolute",bottom:"10px",right:"10px"}},(wi==null?void 0:wi.excellent)&&rr.createElement("div",{className:Qn.bq},"\u5F00\u653E\u8BFE\u7A0B"))),rr.createElement("div",{className:Qn.name},rr.createElement(Ye.Z,{title:yr&&(wi!=null&&wi.excellent_alias_name)?rr.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ra}`,rr.createElement("br",null),rr.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${wi==null?void 0:wi.excellent_alias_name}`)):Ra},rr.createElement("span",{className:Qn.e},yr&&(wi==null?void 0:wi.excellent_alias_name)||Ra))),rr.createElement("div",{className:Qn.tags},rr.createElement("div",null,rr.createElement(Ye.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},rr.createElement("span",null,rr.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),rr.createElement("span",null,wi.stages_count))),rr.createElement(Ye.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},rr.createElement("span",null,rr.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),rr.createElement("span",null,wi.members_count)))))))})),!Cn.length&&rr.createElement(Kt.Z,null)))},$n={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"},Wr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo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RRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",vr=oe(59301),xi=({className:An,dataSource:Cn=[],col:mn=4,right:Wn,bottom:ar=23,precision:or=0,wrapWidth:Hn=1200,trackEventItems:wr,loading:ci})=>{const Li=Math.floor((Hn-(mn-1)*Wn)/mn);return vr.createElement(be.Z,{spinning:ci},vr.createElement("div",{className:ve()($n.list,An)},!!Cn.length&&Cn.map((ui,yr)=>{const{subject_identifier:di,id:ki,identifier:na,power:vi}=ui,wi=ui.is_public!=0&&ui.is_public;return vr.createElement("div",{className:$n.wrap,key:ki,style:{width:Li,marginRight:(1+yr)%mn===0?0:Wn+or,marginBottom:ar}},vr.createElement("a",{className:$n.li,onClick:Gi=>{Gi.preventDefault(),wr&&(0,Ue.L9)([wr]),(0,Ue.xg)(ui.first_category_url)}},vr.createElement("div",{className:$n.top},vr.createElement(Ye.Z,{title:ui.name},vr.createElement("div",{className:$n.name},ui.name)),vr.createElement("img",{className:$n.img,src:xt.Z.IMG_SERVER+"/images/"+ui.avatar_url}),vr.createElement("div",{className:$n.text,title:ui.creator},ui.creator),di&&vr.createElement("div",{className:$n.btns},vr.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),vr.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),wi&&vr.createElement("div",{className:$n.sign},"\u516C\u5F00")),vr.createElement("div",{className:$n.bottom},ui.visits>0&&vr.createElement(Ye.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},vr.createElement("span",null,vr.createElement("i",{className:"iconfont icon-liulanyan"}),vr.createElement("span",null,ui.visits))),ui.course_members_count>0&&vr.createElement(Ye.Z,{title:"\u6210\u5458",placement:"bottom"},vr.createElement("span",null,vr.createElement("i",{className:"iconfont icon-chengyuan"}),ui.course_members_count)),ui.tasks_count>0&&vr.createElement(Ye.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},vr.createElement("span",null,vr.createElement("i",{className:"iconfont icon-zuoye"}),ui.tasks_count)),ui.is_end?vr.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):vr.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ui.is_accessible&&vr.createElement("div",{className:$n.lockWrap},vr.createElement("img",{src:`${xt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),vr.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Cn.length&&vr.createElement(Kt.Z,null)))},Ar={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"},dr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJ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bvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",tr=({className:An,dataSource:Cn=[],col:mn=4,right:Wn,bottom:ar=23,precision:or=0,wrapWidth:Hn=1200,wrapClassName:wr,trackEventItems:ci,loading:Li})=>{const ui=Math.floor((Hn-(mn-1)*Wn)/mn);return ae.createElement(be.Z,{spinning:Li},ae.createElement("div",{className:ve()(Ar.list,An)},!!Cn.length&&Cn.map((yr,di)=>{const{subject_identifier:ki,id:na,identifier:vi,power:wi}=yr,Gi=yr.is_public!=0&&yr.is_public;return ae.createElement("div",{className:ve()(`${Ar.wrap} ${yr.is_accessible?"":Ar.warpStyle}`,wr),key:na,style:{width:ui,marginRight:(1+di)%mn===0?0:Wn+or,marginBottom:ar}},ae.createElement("a",{className:Ar.li,onClick:Sa=>{Sa.preventDefault(),ci&&(0,Ue.L9)([ci]),(0,Ue.xg)(yr.first_category_url)}},ae.createElement("div",{className:Ar.creator},ae.createElement("img",{className:Ar.img,src:xt.Z.IMG_SERVER+"/images/"+yr.avatar_url}),ae.createElement("div",{className:Ar.text,title:yr.creator},yr.creator)),ae.createElement("div",{className:Ar.top},ae.createElement(Ye.Z,{title:yr.name},ae.createElement("div",{className:Ar.name},yr.name)),Gi&&ae.createElement("div",{className:Ar.sign},"\u516C\u5F00")),ae.createElement("div",{className:Ar.middle},ae.createElement("div",{className:Ar.row,style:{marginBottom:6}},ae.createElement("div",null,ae.createElement("span",{className:Ar.text},"\u8BBF\u95EE\u91CF"),ae.createElement("span",{className:Ar.value},(yr==null?void 0:yr.visits)||0)),ae.createElement("div",null,ae.createElement("span",{className:Ar.text},"\u6210\u5458"),ae.createElement("span",{className:Ar.value},(yr==null?void 0:yr.course_members_count)||0))),ae.createElement("div",{className:Ar.row},ae.createElement("div",null,ae.createElement("span",{className:Ar.text,style:{width:42}},"\u4F5C",ae.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ae.createElement("span",{className:Ar.value},(yr==null?void 0:yr.tasks_count)||0)),ae.createElement("div",null,ae.createElement("span",{className:Ar.text},"\u72B6\u6001"),yr.is_end?ae.createElement("span",{className:Ar.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ae.createElement("span",{className:Ar.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),ki&&ae.createElement("div",{className:Ar.btns},ae.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!yr.is_accessible&&ae.createElement("div",{className:Ar.lockWrap},ae.createElement("img",{src:`${xt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Cn.length&&ae.createElement(Kt.Z,null)))},Gn={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"},Xr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUv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zPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",ze=({className:An,dataSource:Cn=[],col:mn=4,right:Wn,bottom:ar=23,precision:or=0,wrapWidth:Hn=1200,wrapClassName:wr,trackEventItems:ci,loading:Li})=>{const ui=Math.floor((Hn-(mn-1)*Wn)/mn);return ae.createElement(be.Z,{spinning:Li},ae.createElement("div",{className:ve()(Gn.list,An)},!!Cn.length&&Cn.map((yr,di)=>{const{subject_identifier:ki,id:na,identifier:vi,power:wi}=yr,Gi=yr.is_public!=0&&yr.is_public;return ae.createElement("div",{className:ve()(`${Gn.wrap} ${yr.is_accessible?"":Gn.warpStyle}`,wr),key:na,style:{width:ui,marginRight:(1+di)%mn===0?0:Wn+or,marginBottom:ar}},ae.createElement("a",{className:Gn.li,onClick:Sa=>{Sa.preventDefault(),ci&&(0,Ue.L9)([ci]),(0,Ue.xg)(yr.first_category_url)}},ae.createElement("div",{className:Gn.creator},ae.createElement("img",{className:Gn.img,src:xt.Z.IMG_SERVER+"/images/"+yr.avatar_url}),ae.createElement("div",{className:Gn.text,title:yr.creator},yr.creator)),ae.createElement("div",{className:Gn.top},ae.createElement(Ye.Z,{title:yr.name},ae.createElement("div",{className:Gn.name},yr.name)),Gi&&ae.createElement("div",{className:Gn.sign})),ae.createElement("div",{className:Gn.middle},ae.createElement("div",{className:Gn.row,style:{marginBottom:6}},ae.createElement("div",null,ae.createElement("span",{className:Gn.text},"\u8BBF\u95EE\u91CF"),ae.createElement("span",{className:Gn.value},(yr==null?void 0:yr.visits)||0)),ae.createElement("div",null,ae.createElement("span",{className:Gn.text},"\u6210\u5458"),ae.createElement("span",{className:Gn.value},(yr==null?void 0:yr.course_members_count)||0))),ae.createElement("div",{className:Gn.row},ae.createElement("div",null,ae.createElement("span",{className:Gn.text,style:{width:42}},"\u4F5C",ae.createElement("span",{style:{marginLeft:14}},"\u4E1A")),ae.createElement("span",{className:Gn.value},(yr==null?void 0:yr.tasks_count)||0)),ae.createElement("div",null,ae.createElement("span",{className:Gn.text},"\u72B6\u6001"),yr.is_end?ae.createElement("span",{className:Gn.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):ae.createElement("span",{className:Gn.value,style:{color:"#00DDC7"}},"\u8FDB\u884C\u4E2D")))),ki&&ae.createElement("div",{className:Gn.btns},ae.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!yr.is_accessible&&ae.createElement("div",{className:Gn.lockWrap},ae.createElement("img",{src:`${xt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ae.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Cn.length&&ae.createElement(Kt.Z,null)))},$e={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"},Xe=oe(91482),Et=({dataSource:An=[],value:Cn,onChange:mn,className:Wn,style:ar={},tabBarExtraContent:or})=>ae.createElement("div",{className:ve()($e.tabs,Wn),style:ar},ae.createElement("div",{className:$e.tabsWrap},An.map((Hn,wr)=>ae.createElement("aside",{className:$e.tab,onClick:()=>{mn(Hn.id),Hn.link&&Xe.history.push(Hn.link)},key:wr},ae.createElement("div",{className:Cn===Hn.id?$e.active:""},Hn.name),(Hn==null?void 0:Hn.resetCount)==null&&(Hn==null?void 0:Hn.total)!==void 0&&ae.createElement("span",null,"\uFF08",Hn==null?void 0:Hn.total,"\uFF09"),(Hn==null?void 0:Hn.resetCount)!==void 0&&(Hn==null?void 0:Hn.total)!==void 0&&ae.createElement(Ye.Z,{title:(Hn==null?void 0:Hn.tip)!=null?Hn==null?void 0:Hn.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},Hn==null?void 0:Hn.resetCount),"/",ae.createElement("span",null,Hn==null?void 0:Hn.total),"\uFF09"))))),ae.createElement("div",{className:$e.tabBar},or)),Tt={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"},ln=({dataSource:An=[],value:Cn,onChange:mn,className:Wn,style:ar={},tabBarExtraContent:or})=>ae.createElement("div",{className:ve()(Tt.tabs,Wn),style:ar},ae.createElement("div",{className:Tt.tabsWrap},An.map((Hn,wr)=>ae.createElement("aside",{className:Tt.tab,onClick:()=>{mn(Hn.id),Hn.link&&Xe.history.push(Hn.link)},key:wr},ae.createElement("div",{className:Cn===Hn.id?Tt.active:""},Hn.name),(Hn==null?void 0:Hn.resetCount)==null&&(Hn==null?void 0:Hn.total)!==void 0&&ae.createElement("span",null,"\uFF08",Hn==null?void 0:Hn.total,"\uFF09"),(Hn==null?void 0:Hn.resetCount)!==void 0&&(Hn==null?void 0:Hn.total)!==void 0&&ae.createElement(Ye.Z,{title:(Hn==null?void 0:Hn.tip)!=null?Hn==null?void 0:Hn.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},Hn==null?void 0:Hn.resetCount),"/",ae.createElement("span",null,Hn==null?void 0:Hn.total),"\uFF09"))))),ae.createElement("div",{className:Tt.tabBar},or)),wn={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"},Fn=({dataSource:An=[],value:Cn,onChange:mn,className:Wn,style:ar={},tabBarExtraContent:or})=>ae.createElement("div",{className:ve()(wn.tabs,Wn),style:ar},ae.createElement("div",{className:wn.tabsWrap},An.map((Hn,wr)=>ae.createElement("aside",{className:`${wn.tab} ${Cn===Hn.id?wn.active:""}`,onClick:()=>{mn(Hn.id),Hn.link&&Xe.history.push(Hn.link)},key:wr},ae.createElement("div",null,Hn.name),(Hn==null?void 0:Hn.resetCount)==null&&(Hn==null?void 0:Hn.total)!==void 0&&ae.createElement("span",null,"\uFF08",Hn==null?void 0:Hn.total,"\uFF09"),(Hn==null?void 0:Hn.resetCount)!==void 0&&(Hn==null?void 0:Hn.total)!==void 0&&ae.createElement(Ye.Z,{title:(Hn==null?void 0:Hn.tip)!=null?Hn==null?void 0:Hn.tip:""},ae.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ae.createElement("span",{style:{color:"#000"}},Hn==null?void 0:Hn.resetCount),"/",ae.createElement("span",null,Hn==null?void 0:Hn.total),"\uFF09"))))),ae.createElement("div",{className:wn.tabBar},or)),Qt=({className:An,style:Cn={},children:mn})=>ae.createElement("div",{className:ve()(An),style:Cn},mn),Dn={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"},Dt=oe(38854),Zt=oe(20834);const on=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var In=({sortValue:An,dropValue:Cn,className:mn,onSort:Wn,onDrop:ar,dataSource:or=on})=>{var Hn;return ae.createElement("div",{className:ve()(Dn.orderWrap,mn)},ae.createElement(Dt.Z,{dropdownRender:()=>ae.createElement(Zt.default,null,or.map((wr,ci)=>ae.createElement(Zt.default.Item,{key:ci,onClick:()=>ar(wr.id)},wr.name)))},ae.createElement("span",{className:Dn.orderTextWrap},(Hn=or.find(wr=>Cn===wr.id))==null?void 0:Hn.name)),ae.createElement("span",{className:Dn.orderIconWrap},ae.createElement("span",{className:Dn.orderAsc},ae.createElement("i",{className:An==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Dn.cursorPointer} ${Dn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Dn.cursorPointer}`,onClick:()=>Wn(An==="asc"?"desc":"asc")})),ae.createElement("span",{className:Dn.orderDesc},ae.createElement("i",{className:An==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Dn.cursorPointer} ${Dn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Dn.cursorPointer}`,onClick:()=>Wn(An==="asc"?"desc":"asc")}))))},en={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 Ln=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Yt=({sortValue:An,dropValue:Cn,className:mn,onSort:Wn,onDrop:ar,dataSource:or=Ln})=>{var Hn;return ae.createElement("div",{className:ve()(en.orderWrap,mn)},ae.createElement(Dt.Z,{dropdownRender:()=>ae.createElement(Zt.default,null,or.map((wr,ci)=>ae.createElement(Zt.default.Item,{key:ci,onClick:()=>ar(wr.id)},wr.name)))},ae.createElement("span",{className:en.orderTextWrap},(Hn=or.find(wr=>Cn===wr.id))==null?void 0:Hn.name)),ae.createElement("span",{className:en.orderIconWrap},ae.createElement("span",{className:en.orderAsc},ae.createElement("i",{className:An==="asc"?`iconfont icon-sanjiaoxing-up font12 ${en.cursorPointer} ${en.active}`:`iconfont icon-sanjiaoxing-up font12 ${en.cursorPointer}`,onClick:()=>Wn(An==="asc"?"desc":"asc")})),ae.createElement("span",{className:en.orderDesc},ae.createElement("i",{className:An==="desc"?`iconfont icon-sanjiaoxing-down font12 ${en.cursorPointer} ${en.active}`:`iconfont icon-sanjiaoxing-down font12 ${en.cursorPointer}`,onClick:()=>Wn(An==="asc"?"desc":"asc")}))))},$t={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"},vn=oe(3113),dn=oe(29715),xn=Object.defineProperty,yn=Object.getOwnPropertySymbols,_n=Object.prototype.hasOwnProperty,Un=Object.prototype.propertyIsEnumerable,nr=(An,Cn,mn)=>Cn in An?xn(An,Cn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):An[Cn]=mn,mr=(An,Cn)=>{for(var mn in Cn||(Cn={}))_n.call(Cn,mn)&&nr(An,mn,Cn[mn]);if(yn)for(var mn of yn(Cn))Un.call(Cn,mn)&&nr(An,mn,Cn[mn]);return An},Tr=(An,Cn)=>{var mn={};for(var Wn in An)_n.call(An,Wn)&&Cn.indexOf(Wn)<0&&(mn[Wn]=An[Wn]);if(An!=null&&yn)for(var Wn of yn(An))Cn.indexOf(Wn)<0&&Un.call(An,Wn)&&(mn[Wn]=An[Wn]);return mn},jr=(An,Cn,mn)=>new Promise((Wn,ar)=>{var or=ci=>{try{wr(mn.next(ci))}catch(Li){ar(Li)}},Hn=ci=>{try{wr(mn.throw(ci))}catch(Li){ar(Li)}},wr=ci=>ci.done?Wn(ci.value):Promise.resolve(ci.value).then(or,Hn);wr((mn=mn.apply(An,Cn)).next())}),ir=An=>{var Cn=An,{className:mn,style:Wn,children:ar,loading:or=!1,openLoading:Hn,onClick:wr=()=>{},size:ci="middle",shape:Li="round",theme:ui}=Cn,yr=Tr(Cn,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[di,ki]=(0,ae.useState)(!1),na=(0,ae.useMemo)(()=>{switch(ui){case dn.Fy.THEMEONE:return $t.ThemeOne;case dn.Fy.DEFAULT:default:return $t.btn}},[ui]);return ae.createElement(vn.ZP,mr({onClick:(0,Me.throttle)(vi=>jr(void 0,null,function*(){Hn&&ki(!0);try{yield wr(vi)}catch(wi){console.log("error",wi)}Hn&&ki(!1)}),2e3,{leading:!0,trailing:!1}),className:ve()(na,$t[`${ci}-${Li}`],mn),style:Wn,size:ci,shape:Li,loading:di||or},yr),ar)},Ur={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"},$r=({className:An,style:Cn,children:mn=null,onClick:Wn,title:ar})=>ae.createElement("div",{className:ve()(Ur.head,An),style:Cn},ae.createElement("span",{className:"primary-hover",onClick:Wn},ae.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ae.createElement("b",{title:ar},ar),ae.createElement("div",{className:Ur.node},mn)),Cr={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"},ri=({confirmShow:An=!0,confirmTitle:Cn,confirmClick:mn,cancelShow:Wn=!0,cancelTitle:ar,cancelClick:or,className:Hn,style:wr,confirmLoading:ci=!1})=>ae.createElement("div",{className:ve()(Cr.btns,Hn),style:wr},An&&ae.createElement(vn.ZP,{loading:ci,onClick:mn,type:"primary",className:Cr.confirm},Cn),Wn&&ae.createElement(vn.ZP,{onClick:or,className:Cr.cancel},ar)),Kr={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"},Ri=({className:An,style:Cn={},LeftContent:mn,children:Wn,RightContent:ar})=>ae.createElement("div",{className:ve()(Kr.fixedBottom,An),style:Cn},ae.createElement("div",{className:Kr.wrap},ae.createElement("div",{className:Kr.left},mn),ae.createElement("div",{className:Kr.center},Wn),ae.createElement("div",{className:Kr.right},ar))),zr={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"},Jn=({className:An,style:Cn={},dataSource:mn=[]})=>ae.createElement("div",{className:ve()(zr.crumbs,An),style:Cn},mn.map((Wn,ar)=>ar<mn.length-1?ae.createElement(ae.Fragment,{key:ar},Wn.path||Wn.onClick?ae.createElement("span",{className:zr.hover,onClick:Wn!=null&&Wn.onClick?Wn.onClick:()=>Xe.history.push(Wn.path)},Wn.name):ae.createElement("span",null,Wn.name),ae.createElement("span",null,"\xA0",">","\xA0")):ae.createElement("span",{key:ar,style:{color:"#5F6368"}},Wn.name))),Jr=oe(31797),Rr=Object.defineProperty,li=Object.defineProperties,pi=Object.getOwnPropertyDescriptors,fi=Object.getOwnPropertySymbols,Qr=Object.prototype.hasOwnProperty,oi=Object.prototype.propertyIsEnumerable,ta=(An,Cn,mn)=>Cn in An?Rr(An,Cn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):An[Cn]=mn,xr=(An,Cn)=>{for(var mn in Cn||(Cn={}))Qr.call(Cn,mn)&&ta(An,mn,Cn[mn]);if(fi)for(var mn of fi(Cn))oi.call(Cn,mn)&&ta(An,mn,Cn[mn]);return An},Ir=(An,Cn)=>li(An,pi(Cn)),mi=(An,Cn)=>{var mn={};for(var Wn in An)Qr.call(An,Wn)&&Cn.indexOf(Wn)<0&&(mn[Wn]=An[Wn]);if(An!=null&&fi)for(var Wn of fi(An))Cn.indexOf(Wn)<0&&oi.call(An,Wn)&&(mn[Wn]=An[Wn]);return mn};const{Countdown:Mi}=Jr.default;var ca=An=>{var Cn=An,{onChange:mn}=Cn,Wn=mi(Cn,["onChange"]);const[ar,or]=(0,ae.useState)(null);(0,ae.useEffect)(()=>{typeof ar=="number"&&ar>=0&&mn(ar)},[ar]);const Hn=wr=>{const ci=Math.floor(wr/1e3);or(ci)};return ae.createElement(Mi,Ir(xr({},Wn),{onChange:Hn}))},qi={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},xa=({DataProps:An,className:Cn,style:mn={}})=>{var Wn;return ae.createElement("div",{className:ve()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",qi.ClassRoomItem,Cn),style:mn,onClick:()=>{(0,Ue.xg)(An==null?void 0:An.first_category_url)}},ae.createElement("div",{className:"flex flex-col item-center"},ae.createElement("img",{src:`${(Wn=xt.Z)==null?void 0:Wn.IMG_SERVER}/images/${An==null?void 0:An.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(An==null?void 0:An.subject_identifier)&&ae.createElement("div",{className:"mt-40px"},ae.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),ae.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),ae.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},ae.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(An!=null&&An.is_public)&&ae.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"),ae.createElement("span",{className:ve()("text-16px font-medium",qi.TitleDom)},An==null?void 0:An.name)),ae.createElement("div",{className:"c-grey-333 font-medium"},An==null?void 0:An.creator),ae.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",An==null?void 0:An.course_members_count),ae.createElement("div",{className:"c-grey-333 flex item-center justify-between"},ae.createElement("div",null,"\u4F5C\u4E1A\uFF1A",An==null?void 0:An.tasks_count),An!=null&&An.is_end?ae.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):ae.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},wa=Object.defineProperty,Br=Object.getOwnPropertySymbols,kr=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable,Gr=(An,Cn,mn)=>Cn in An?wa(An,Cn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):An[Cn]=mn,Xi=(An,Cn)=>{for(var mn in Cn||(Cn={}))kr.call(Cn,mn)&&Gr(An,mn,Cn[mn]);if(Br)for(var mn of Br(Cn))Er.call(Cn,mn)&&Gr(An,mn,Cn[mn]);return An},va=({DataProps:An=[],selectValue:Cn,onChange:mn,className:Wn,style:ar={},extra:or,classNameItem:Hn,styleItem:wr={},barHidden:ci})=>{const[Li,ui]=(0,ae.useState)();return(0,ae.useEffect)(()=>{ui(Array.isArray(Cn)?Cn:[Cn])},[Cn]),ae.createElement("div",{className:ve()("flex px-20px py-10px gap-40px",Wn),style:Xi({borderBottom:"1px solid #D3F0FF"},ar)},An==null?void 0:An.map(yr=>ae.createElement("div",{key:yr==null?void 0:yr.id,className:ve()("flex item-center justify-center current c-grey-333 text-16 relative",Hn,yr==null?void 0:yr.className),style:Xi(Xi({color:Li!=null&&Li.includes(yr==null?void 0:yr.id)?"#1890FF":"",minWidth:88},wr),(yr==null?void 0:yr.style)||{}),onClick:di=>{mn==null||mn({domEvent:di,item:yr}),yr!=null&&yr.link&&Xe.history.push(yr==null?void 0:yr.link)}},yr==null?void 0:yr.name,!ci&&(Li==null?void 0:Li.includes(yr==null?void 0:yr.id))&&ae.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),ae.createElement("div",{className:"ml-auto"},or))},pa=Object.defineProperty,ua=Object.defineProperties,Aa=Object.getOwnPropertyDescriptors,Ya=Object.getOwnPropertySymbols,Ua=Object.prototype.hasOwnProperty,go=Object.prototype.propertyIsEnumerable,Fi=(An,Cn,mn)=>Cn in An?pa(An,Cn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):An[Cn]=mn,Vi=(An,Cn)=>{for(var mn in Cn||(Cn={}))Ua.call(Cn,mn)&&Fi(An,mn,Cn[mn]);if(Ya)for(var mn of Ya(Cn))go.call(Cn,mn)&&Fi(An,mn,Cn[mn]);return An},La=(An,Cn)=>ua(An,Aa(Cn)),ha=({value:An,onChange:Cn,onInputChange:mn,className:Wn,style:ar={},InputProps:or})=>{const[Hn,wr]=(0,ae.useState)(An);return ae.createElement("div",{className:ve()("flex item-center rounded-full px-10px py-2px",Wn),style:Vi({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},ar)},ae.createElement(bt.default,La(Vi({bordered:!1},or),{onChange:ci=>{wr(ci.target.value),mn==null||mn(encodeURIComponent(ci.target.value))},onPressEnter:ci=>{Cn==null||Cn({domEvent:ci,item:{value:Hn}})}})),ae.createElement("img",{className:"h-22px current",src:oe(25365),height:22,onClick:ci=>{Cn==null||Cn({domEvent:ci,item:{value:Hn}})}}))}},57649:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return Ae}});var ae=oe(59301);function Ae(Le,ct){const xe=(0,ae.useRef)();(0,ae.useEffect)(()=>{xe.current=Le}),(0,ae.useEffect)(()=>{function Ee(){xe.current()}if(ct!==null){let pe=setInterval(Ee,ct);return()=>clearInterval(pe)}},[ct])}},94255:function(Mn,tn,oe){"use strict";oe.r(tn),oe.d(tn,{default:function(){return be}});var ae=oe(59301),Ae={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"},Le=oe(91482),ct=oe(78241),xe=oe(6848),Ee=oe(8591),pe=oe(43418),ve=oe(95237),Me=oe(43604),_e=oe(1710),vt=oe(58421),Fe=oe(3113),qe=oe(24905),pt=oe(92832),Ke=oe(57809),je=oe(54580),ft=oe(78673),mt=oe(23579),Bt=oe(56102),ht=oe(18540),nt=oe(6521),Re=oe(25544),Ce=oe(40929),Je=oe(69925),et=oe(9014),wt=oe(5033),Qe=Object.defineProperty,bt=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,At=(Ye,Pt,xt)=>Pt in Ye?Qe(Ye,Pt,{enumerable:!0,configurable:!0,writable:!0,value:xt}):Ye[Pt]=xt,Mt=(Ye,Pt)=>{for(var xt in Pt||(Pt={}))tt.call(Pt,xt)&&At(Ye,xt,Pt[xt]);if(Lt)for(var xt of Lt(Pt))Ut.call(Pt,xt)&&At(Ye,xt,Pt[xt]);return Ye},Wt=(Ye,Pt)=>bt(Ye,Oe(Pt)),It=(Ye,Pt,xt)=>new Promise((Ue,at)=>{var Ot=gn=>{try{Kt(xt.next(gn))}catch(nn){at(nn)}},kn=gn=>{try{Kt(xt.throw(gn))}catch(nn){at(nn)}},Kt=gn=>gn.done?Ue(gn.value):Promise.resolve(gn.value).then(Ot,kn);Kt((xt=xt.apply(Ye,Pt)).next())});const Ge=({graduations:{Tasks:Ye,teachers:Pt,students:xt,forTask:Ue},loading:at,dispatch:Ot})=>{var kn,Kt;const gn=(0,Le.useParams)(),[nn,Gt]=(0,ae.useState)([]),[Xt,ye]=(0,ae.useState)([]),[ue,ce]=(0,ae.useState)(!1),[de,he]=(0,ae.useState)(!1),[se]=ct.default.useForm(),[ke,gt]=(0,ae.useState)({}),[Ie,Be]=(0,ae.useState)({}),[yt,rt]=(0,ae.useState)([]),[Ve,Ct]=(0,ae.useState)(!1),rn=(0,ae.useRef)(null),[lt,_t]=(0,ae.useState)({keyword:"",page:1,per_page:20,status:null,is_teacher:!0}),fn=[{id:null,name:"\u5168\u90E8"},{id:1,name:"\u8FBE\u6210\u53CC\u9009"},{id:0,name:"\u672A\u8FBE\u6210\u53CC\u9009"}],ut=[{title:"\u8BFE\u9898\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:qt=>ae.createElement(xe.Z,{placement:"topLeft",title:qt},ae.createElement("span",{className:"c-grey-333"},qt))},{title:"\u6307\u5BFC\u8001\u5E08",width:120,ellipsis:!0,dataIndex:"teacher_names",render:qt=>ae.createElement(xe.Z,{placement:"topLeft",title:qt},ae.createElement("span",{className:"c-grey-333"},qt))},{title:"\u9009\u9898\u72B6\u6001",width:120,dataIndex:"status",render:qt=>ae.createElement(ae.Fragment,null,qt==0&&ae.createElement("span",{style:{color:"#E30000"}},"\u672A\u8FBE\u6210\u53CC\u9009"),qt==1&&ae.createElement("span",null,"\u8FBE\u6210\u53CC\u9009"))},{title:"\u9080\u8BF7\u7801",width:132,dataIndex:"invite_code",render:qt=>ae.createElement("span",{className:"c-grey-333"},qt,ae.createElement(Bt.CopyToClipboard,{text:qt,onCopy:()=>Ee.ZP.success("\u590D\u5236\u6210\u529F")},ae.createElement("i",{className:"iconfont icon-fuzhi8 font14",style:{color:"#165DFF",marginLeft:"8px",cursor:"pointer"}})))},{title:ae.createElement("span",null,"\u64CD\u4F5C"),align:"right",width:120,render:(qt,pn)=>ae.createElement(ae.Fragment,null,ae.createElement(wt.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0},onClick:()=>It(void 0,null,function*(){var zn,Vn;Ct(!1),yield Ft(),pn.teacher_ids=(zn=pn.teacher)==null?void 0:zn.map(Pn=>Pn.id),pn.student_id=pn.student_id?Number(pn.student_id):"",rt((Vn=pn==null?void 0:pn.attachments)==null?void 0:Vn.map(Pn=>({uid:Pn==null?void 0:Pn.id,name:(Pn==null?void 0:Pn.title)+" "+(Pn==null?void 0:Pn.filesize),status:"done",url:(Pn==null?void 0:Pn.url)||""}))),gt(pn),Be(pn),se.setFieldsValue(pn)})},"\u7F16\u8F91"),ae.createElement("a",{className:Ae.ActvieE3,type:"link",style:{padding:"0 0 0 10px",whiteSpace:"nowrap"},onClick:()=>{if(pn.status==1)Ee.ZP.warning("\u8BE5\u8BFE\u9898\u5DF2\u88AB\u5B66\u751F\u9009\u9898\u4E0D\u80FD\u5220\u9664");else{const zn=pe.default.confirm({title:"\u5220\u9664\u63D0\u793A",icon:null,maskClosable:!0,content:ae.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:()=>It(void 0,null,function*(){(yield Ot({type:"graduations/getDelGraduationsTasks",payload:{id:gn.id,ids:[pn.id]}})).status==0&&(Ee.ZP.success("\u5220\u9664\u6210\u529F"),lt.page=1,_t(Mt({},lt))),zn.destroy()}),onCancel:()=>{zn.destroy()}})}}},"\u5220\u9664"))}],De={multiple:!0,withCredentials:!0,defaultFileList:yt,onRemove:qt=>{rt(yt.filter(pn=>(qt.uid||qt.response.id)!=pn.uid))},beforeUpload:qt=>{const pn=qt.size/1024/1024;return pn>150||pn==0?(Ee.ZP.error(`${qt.name} \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002${pn==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(150MB)"}`),Promise.reject()):!0},action:`${nt.Z.API_SERVER}/api/attachments.json`,onChange:qt=>{var pn,zn,Vn,Pn,Qn,gr,rr,er;qt.file.status==="done"&&rt([...yt,{uid:(zn=(pn=qt==null?void 0:qt.file)==null?void 0:pn.response)==null?void 0:zn.id,name:((Pn=(Vn=qt==null?void 0:qt.file)==null?void 0:Vn.response)==null?void 0:Pn.filename)+" "+(0,Re.RD)((gr=(Qn=qt==null?void 0:qt.file)==null?void 0:Qn.response)==null?void 0:gr.filesize),status:"done",url:((er=(rr=qt==null?void 0:qt.file)==null?void 0:rr.response)==null?void 0:er.url)||""}])}},dt={selectedRowKeys:[...nn.map(qt=>qt.id),...Xt.map(qt=>qt.id)],onChange:(qt,pn)=>{const zn=[],Vn=[];pn.map(Pn=>{Pn.status==0?Vn.push(Pn):zn.push(Pn)}),ye(zn),Gt(Vn)}},Ft=(qt=!1)=>It(void 0,null,function*(){var pn,zn;const Vn=yield Ot({type:"graduations/getGraduationsTeachers",payload:{id:gn.id,page:1,per_page:2e3}});if(Ot({type:"graduations/getGraduationsStudents",payload:{id:gn.id,page:1,per_page:2e3}}),Ot({type:"graduations/getGraduationsDetails",payload:{id:gn.id}}),qt){const Pn=(zn=(pn=Vn==null?void 0:Vn.data)==null?void 0:pn.filter(Qn=>Qn==null?void 0:Qn.is_creator))==null?void 0:zn.map(Qn=>Qn.id);se.setFieldsValue({teacher_ids:Pn}),gt(Wt(Mt({},ke),{teacher_ids:Pn}))}ce(!0)}),zt=()=>It(void 0,null,function*(){yield Ot({type:"graduations/getGraduationsTasks",payload:Mt({id:gn.id},lt)})}),an=qt=>It(void 0,null,function*(){qt.attachment_ids=yt.map(zn=>zn.uid);let pn;Ve?pn=yield(0,et.jW)(Mt({graduation_id:gn.id},qt)):pn=yield(0,et.YS)(Mt({graduation_id:gn.id,id:ke.id},qt)),pn.status==0&&(Ee.ZP.success(Ve?"\u521B\u5EFA\u6210\u529F":"\u66F4\u65B0\u6210\u529F"),gt({}),rt([]),ce(!1),se.resetFields(),yield zt())});(0,ae.useEffect)(()=>{Gt([]),ye([]),zt()},[lt]),(0,ae.useEffect)(()=>{ke.base_project&&Bn()},[ke==null?void 0:ke.base_project]);const Bn=(qt=1e5)=>{const pn=document.querySelector(".ant-form-modal-body").querySelector(".ant-modal-body");pn.scrollTop=qt};return ae.createElement("section",{className:Ae.body},ae.createElement(mt.YG,{value:"manage",tabBarExtraContent:ae.createElement(mt.op,{openLoading:!0,onClick:()=>It(void 0,null,function*(){Ct(!0),yield Ft(!0)})},"\u5F55\u5165\u8BFE\u9898"),dataSource:[{id:"manage",name:"\u8BFE\u9898\u7BA1\u7406"}],onChange:qt=>{console.log(qt)}}),ae.createElement(ve.Z,{wrap:!1,align:"middle",justify:"space-between"},ae.createElement(Me.Z,null,ae.createElement(mt.qp,{title:"\u72B6\u6001",className:"mt20",dataSource:fn,titleWidth:28,value:lt.status,onChange:qt=>{lt.status=qt,lt.page=1,_t(Mt({},lt))}})),ae.createElement(Me.Z,null,ae.createElement(mt.t7,{style:{width:329,height:"38px"},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u9898\u540D\u79F0/\u6307\u5BFC\u8001\u5E08\u8FDB\u884C\u641C\u7D22",value:lt.keyword,onChange:qt=>{lt.keyword=qt,lt.page=1,_t(Mt({},lt))}}))),nn.length+Xt.length>0&&ae.createElement(ve.Z,{wrap:!1,align:"middle",justify:"space-between",style:{padding:"11px 12px",background:"#F4F7FC",marginBottom:"1px"}},ae.createElement(Me.Z,null,"\u5DF2\u9009\u62E9\xA0",ae.createElement("span",{style:{color:"#165DFF"}},nn.length+Xt.length||0),"\xA0\u9879"),ae.createElement(Me.Z,{style:{color:"#E30000",cursor:"pointer"},onClick:()=>{const qt=pe.default.confirm({title:"\u5220\u9664\u63D0\u793A",icon:null,maskClosable:!0,content:ae.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:()=>It(void 0,null,function*(){nn.length>0&&(yield Ot({type:"graduations/getDelGraduationsTasks",payload:{id:gn.id,ids:nn.map(zn=>zn.id)}})).status==0&&Ee.ZP.success("\u6279\u91CF\u5220\u9664\u6210\u529F"),Xt.length>0&&(nn.length==0&&Ee.ZP.error("\u65E0\u6CD5\u5220\u9664"),he(!0)),Gt([]),zt(),qt.destroy()}),onCancel:()=>{qt.destroy()}})}},ae.createElement("i",{className:"iconfont icon-piliangshanchu3 mr5"}),"\u6279\u91CF\u5220\u9664")),ae.createElement(_e.default,{rowKey:"id",loading:at.effects["graduations/getGraduationsTasks"],style:{minHeight:500},locale:{emptyText:ae.createElement(ht.Z,{customText:lt.status==null&<.keyword==""&<.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:lt.status==null&<.keyword==""&<.page==1?ae.createElement(mt.op,{openLoading:!0,onClick:()=>It(void 0,null,function*(){Ct(!0),yield Ft(!0)})},"\u5F55\u5165\u8BFE\u9898"):ae.createElement(ae.Fragment,null)})},rowSelection:dt,columns:ut,dataSource:Ye.data,pagination:!1}),Ye.count!=0&&ae.createElement(ve.Z,{className:"mt20 mb20",wrap:!1,align:"middle",justify:"space-between"},ae.createElement(Me.Z,null,"\u5171\xA0",ae.createElement("span",{style:{color:"#165DFF"}},Ye.count||0),"\xA0\u6761\u6570\u636E"),ae.createElement(Me.Z,null,ae.createElement(vt.Z,{showSizeChanger:!0,showQuickJumper:!0,current:lt.page,pageSize:lt.per_page,onShowSizeChange:(qt,pn)=>{lt.per_page=pn,lt.page=1,_t(Mt({},lt))},onChange:qt=>{lt.page=qt,_t(Mt({},lt))},total:Ye.count}))),ae.createElement(pe.default,{open:de,title:"\u63D0\u793A",destroyOnClose:!0,width:1200,footer:ae.createElement(Fe.ZP,{type:"primary",onClick:()=>{he(!1),ye([])}},"\u77E5\u9053\u4E86"),onCancel:()=>{he(!1),ye([])}},ae.createElement("span",null,"\u4E0B\u9762",ae.createElement("span",{style:{color:"#FA6400"}},Xt.length),"\u4E2A\u8BFE\u9898\u5DF2\u88AB\u5B66\u751F\u9009\u9898\uFF0C\u4E0D\u80FD\u5220\u9664"),ae.createElement("div",{className:"mt10",style:{background:"#F6F7F9",padding:"20px 12px"}},Xt.map((qt,pn)=>ae.createElement(ve.Z,{wrap:!1,align:"middle",key:pn,style:{color:"#999"}},ae.createElement("i",{className:"iconfont icon-guansuo font14"}),ae.createElement("div",{className:Ae.Onerow,style:{marginLeft:"8px"}},ae.createElement(xe.Z,{placement:"topLeft",title:qt.name},qt.name)))))),ae.createElement(pe.default,{open:ue,title:`${Ve?"\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:qt=>{qt&&document.querySelector(".ant-form-modal-body").querySelector(".ant-modal-body").scrollTo(0,0)},onCancel:()=>{gt({}),rt([]),se.resetFields(),ce(!1)},onOk:()=>{se.submit()}},ae.createElement(ct.default,{onFinishFailed:qt=>{var pn;if(!(ke!=null&&ke.name)||!((pn=ke==null?void 0:ke.teacher_ids)!=null&&pn.length)){Bn(0);return}(!(ke!=null&&ke.description)||ke!=null&&ke.base_project&&!(ke!=null&&ke.graduation_stage_id))&&Bn()},form:se,initialValues:{},layout:"vertical",className:`${Ae.FormDiv}`,onValuesChange:(qt,pn)=>{gt(Mt(Mt({},ke),qt))},onFinish:qt=>It(void 0,null,function*(){!Ve&&Ie.status==1&&qt.student_id!=Ie.student_id?pe.default.confirm({centered:!0,okText:"\u786E\u5B9A",icon:null,cancelText:"\u53D6\u6D88",title:"\u53D8\u66F4\u6307\u5B9A\u5B66\u751F",content:ae.createElement("div",null,ae.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"),ae.createElement("div",null,"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\u786E\u8BA4\u5220\u9664"),ae.createElement(Ce.Z,{ref:pn=>rn.current=pn})),onOk:()=>It(void 0,null,function*(){if(rn.current.onVerify())return Promise.reject();an(qt)})}):an(qt)})},ae.createElement(ct.default.Item,{htmlFor:null,name:"source_is_repeat",valuePropName:"checked"},ae.createElement(qe.default,null,ae.createElement("span",{style:{color:"#000"}},"\u8FD1\u4E09\u5E74\u662F\u5426\u91CD\u590D"))),ae.createElement(ct.default.Item,{htmlFor:null,label:ae.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"}]},ae.createElement(pt.default,{showCount:!0,maxLength:100,size:"large"})),ae.createElement(ct.default.Item,{htmlFor:null,label:ae.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"}]},ae.createElement(Ke.default,{size:"large",mode:"multiple",optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"},(kn=Pt==null?void 0:Pt.data)==null?void 0:kn.map((qt,pn)=>ae.createElement(Ke.default.Option,{key:pn,value:qt.id},qt.name)))),ae.createElement(ct.default.Item,{htmlFor:null,label:ae.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"}]},ae.createElement(pt.default,{size:"large",showCount:!0,maxLength:100})),ae.createElement(ct.default.Item,{htmlFor:null,label:ae.createElement("span",{style:{color:"#5F6368"}},"\u6307\u5B9A\u5B66\u751F"),name:"student_id"},ae.createElement(Ke.default,{size:"large",showSearch:!0,allowClear:!0,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u6307\u5B9A\u5B66\u751F"},(Kt=xt==null?void 0:xt.data)==null?void 0:Kt.map((qt,pn)=>ae.createElement(Ke.default.Option,{key:pn,value:qt.id},qt.name)))),ae.createElement(ct.default.Item,{htmlFor:null,label:ae.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"}]},ae.createElement(pt.default,{size:"large",showCount:!0,maxLength:60})),ae.createElement(ct.default.Item,{htmlFor:null,label:ae.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"}]},ae.createElement(pt.default,{size:"large",showCount:!0,maxLength:60})),ae.createElement(ct.default.Item,{htmlFor:null,label:ae.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"}]},ae.createElement(Je.h,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26",scrollId:"",watch:!0,height:140})),ae.createElement(ct.default.Item,{htmlFor:null,name:"attachment_ids",style:{display:"flex",alignItems:"center"},valuePropName:"fileList",getValueFromEvent:qt=>Array.isArray(qt)?qt:qt==null?void 0:qt.fileList,normalize:qt=>{const pn="\u3000\u3000";return qt.filter(Vn=>{if(Vn.url)return!0;const Pn=Vn.size/1024/1024;return Vn.name.indexOf(pn)===-1&&(Vn.name=`${Vn.name}${pn}${(0,Re.RD)(Vn.size)}`),!(Pn>150||Pn==0)})}},ae.createElement(je.default,Mt({},De),ae.createElement(ve.Z,{style:{width:"100%"},wrap:!1,align:"middle"},ae.createElement(Me.Z,null,ae.createElement(mt.op,{style:{borderRadius:"2px"}},ae.createElement("i",{className:"iconfont icon-shangchuan3 mr5"}),"\u6587\u4EF6\u4E0A\u4F20")),ae.createElement(Me.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:qt=>{qt.preventDefault(),qt.stopPropagation()}},"\u4E0A\u4F20\u8BFE\u9898\u76F8\u5173\u6587\u6863\uFF0C\u5355\u4E2A\u6587\u6863\u5927\u5C0F\u4E0D\u8D85\u8FC7150M")))),ae.createElement(ve.Z,{wrap:!1,align:"middle",className:"mb20"},ae.createElement(Me.Z,null,ae.createElement(ct.default.Item,{htmlFor:null,name:"base_project",valuePropName:"checked",style:{marginBottom:0}},ae.createElement(ft.Z,null))),ae.createElement(ve.Z,{align:"middle",className:"ml10",style:{color:"#000"}},ae.createElement(Me.Z,null,"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD"),ae.createElement(xe.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"},ae.createElement("i",{className:"iconfont icon-tishixiaowenhao ml5",style:{cursor:"pointer",color:"#3061D0"}})))),ae.createElement("div",{id:"graduationstageid"},ke.base_project&&ae.createElement("div",{style:{background:"#F6F7F9",padding:"12px 12px 4px 12px",width:"100%",height:104}},ae.createElement("span",{style:{color:"#5F6367"}},"\u5B66\u751F\u9700\u8981\u5B8C\u6210\u5173\u8054\u9879\u76EE\u7684\u9636\u6BB5"),ae.createElement(ve.Z,{wrap:!1,align:"middle",className:"mt15"},ae.createElement(Me.Z,{style:{width:"632px"}},ae.createElement(ct.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"}]},ae.createElement(Ke.default,null,Ue==null?void 0:Ue.map((qt,pn)=>ae.createElement(Ke.default.Option,{key:pn,value:qt.id},qt.name))))),ae.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 be=(0,Le.connect)(({graduations:Ye,loading:Pt})=>({graduations:Ye,loading:Pt}))(Ge)},50371:function(Mn,tn){"use strict";function oe(){const ae=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ae=1;Ae<arguments.length;Ae++){const Le=Ae<0||arguments.length<=Ae?void 0:arguments[Ae];Le&&Object.keys(Le).forEach(ct=>{const xe=Le[ct];xe!==void 0&&(ae[ct]=xe)})}return ae}tn.Z=oe},13845:function(Mn,tn,oe){"use strict";oe.d(tn,{F:function(){return ae},Z:function(){return Ae}});function ae(Le){return Le!=null&&Le===Le.window}function Ae(Le,ct){var xe,Ee;if(typeof window=="undefined")return 0;const pe=ct?"scrollTop":"scrollLeft";let ve=0;return ae(Le)?ve=Le[ct?"pageYOffset":"pageXOffset"]:Le instanceof Document?ve=Le.documentElement[pe]:(Le instanceof HTMLElement||Le)&&(ve=Le[pe]),Le&&!ae(Le)&&typeof ve!="number"&&(ve=(Ee=((xe=Le.ownerDocument)!==null&&xe!==void 0?xe:Le).documentElement)===null||Ee===void 0?void 0:Ee[pe]),ve}},56762:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return Ae}});var ae=oe(59301);function Ae(){const[,Le]=ae.useReducer(ct=>ct+1,0);return Le}},68031:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ct}});var ae=oe(16089);function Ae(xe,Ee,pe,ve){const Me=pe-Ee;return xe/=ve/2,xe<1?Me/2*xe*xe*xe+Ee:Me/2*((xe-=2)*xe*xe+2)+Ee}var Le=oe(13845);function ct(xe){let Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:pe=()=>window,callback:ve,duration:Me=450}=Ee,_e=pe(),vt=(0,Le.Z)(_e,!0),Fe=Date.now(),qe=()=>{const Ke=Date.now()-Fe,je=Ae(Ke>Me?Me:Ke,vt,xe,Me);(0,Le.F)(_e)?_e.scrollTo(window.pageXOffset,je):_e instanceof Document||_e.constructor.name==="HTMLDocument"?_e.documentElement.scrollTop=je:_e.scrollTop=je,Ke<Me?(0,ae.Z)(qe):typeof ve=="function"&&ve()};(0,ae.Z)(qe)}},19080:function(Mn,tn,oe){"use strict";oe.d(tn,{F:function(){return xe},Z:function(){return ct}});var ae=oe(92310),Ae=oe.n(ae);const Le=null;function ct(Ee,pe,ve){return Ae()({[`${Ee}-status-success`]:pe==="success",[`${Ee}-status-warning`]:pe==="warning",[`${Ee}-status-error`]:pe==="error",[`${Ee}-status-validating`]:pe==="validating",[`${Ee}-has-feedback`]:ve})}const xe=(Ee,pe)=>pe||Ee},24905:function(Mn,tn,oe){"use strict";oe.d(tn,{default:function(){return Je}});var ae=oe(92310),Ae=oe.n(ae),Le=oe(5630),ct=oe(59301),xe=oe(36355),Ee=oe(1684),pe=oe(32441),Me=ct.createContext(null),_e=oe(98447),vt=oe(14088),Fe=oe(4572),qe=function(et,wt){var Qe={};for(var bt in et)Object.prototype.hasOwnProperty.call(et,bt)&&wt.indexOf(bt)<0&&(Qe[bt]=et[bt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,bt=Object.getOwnPropertySymbols(et);Oe<bt.length;Oe++)wt.indexOf(bt[Oe])<0&&Object.prototype.propertyIsEnumerable.call(et,bt[Oe])&&(Qe[bt[Oe]]=et[bt[Oe]]);return Qe};const pt=(et,wt)=>{var Qe;const{prefixCls:bt,className:Oe,rootClassName:Lt,children:tt,indeterminate:Ut=!1,style:At,onMouseEnter:Mt,onMouseLeave:Wt,skipGroup:It=!1,disabled:Ge}=et,be=qe(et,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ye,direction:Pt,checkbox:xt}=ct.useContext(xe.E_),Ue=ct.useContext(Me),{isFormItemInput:at}=ct.useContext(pe.aM),Ot=ct.useContext(Ee.Z),kn=(Qe=(Ue==null?void 0:Ue.disabled)||Ge)!==null&&Qe!==void 0?Qe:Ot,Kt=ct.useRef(be.value);ct.useEffect(()=>{Ue==null||Ue.registerValue(be.value)},[]),ct.useEffect(()=>{if(!It)return be.value!==Kt.current&&(Ue==null||Ue.cancelValue(Kt.current),Ue==null||Ue.registerValue(be.value),Kt.current=be.value),()=>Ue==null?void 0:Ue.cancelValue(be.value)},[be.value]);const gn=Ye("checkbox",bt),[nn,Gt]=(0,_e.ZP)(gn),Xt=Object.assign({},be);Ue&&!It&&(Xt.onChange=function(){be.onChange&&be.onChange.apply(be,arguments),Ue.toggleOption&&Ue.toggleOption({label:tt,value:be.value})},Xt.name=Ue.name,Xt.checked=Ue.value.includes(be.value));const ye=Ae()(`${gn}-wrapper`,{[`${gn}-rtl`]:Pt==="rtl",[`${gn}-wrapper-checked`]:Xt.checked,[`${gn}-wrapper-disabled`]:kn,[`${gn}-wrapper-in-form-item`]:at},xt==null?void 0:xt.className,Oe,Lt,Gt),ue=Ae()({[`${gn}-indeterminate`]:Ut},Fe.A,Gt),ce=Ut?"mixed":void 0;return nn(ct.createElement(vt.Z,{component:"Checkbox",disabled:kn},ct.createElement("label",{className:ye,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),At),onMouseEnter:Mt,onMouseLeave:Wt},ct.createElement(Le.Z,Object.assign({"aria-checked":ce},Xt,{prefixCls:gn,className:ue,disabled:kn,ref:wt})),tt!==void 0&&ct.createElement("span",null,tt))))};var je=ct.forwardRef(pt),ft=oe(77654),mt=oe(2738),Bt=function(et,wt){var Qe={};for(var bt in et)Object.prototype.hasOwnProperty.call(et,bt)&&wt.indexOf(bt)<0&&(Qe[bt]=et[bt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,bt=Object.getOwnPropertySymbols(et);Oe<bt.length;Oe++)wt.indexOf(bt[Oe])<0&&Object.prototype.propertyIsEnumerable.call(et,bt[Oe])&&(Qe[bt[Oe]]=et[bt[Oe]]);return Qe};const ht=(et,wt)=>{const{defaultValue:Qe,children:bt,options:Oe=[],prefixCls:Lt,className:tt,rootClassName:Ut,style:At,onChange:Mt}=et,Wt=Bt(et,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:It,direction:Ge}=ct.useContext(xe.E_),[be,Ye]=ct.useState(Wt.value||Qe||[]),[Pt,xt]=ct.useState([]);ct.useEffect(()=>{"value"in Wt&&Ye(Wt.value||[])},[Wt.value]);const Ue=ct.useMemo(()=>Oe.map(de=>typeof de=="string"||typeof de=="number"?{label:de,value:de}:de),[Oe]),at=de=>{xt(he=>he.filter(se=>se!==de))},Ot=de=>{xt(he=>[].concat((0,ft.Z)(he),[de]))},kn=de=>{const he=be.indexOf(de.value),se=(0,ft.Z)(be);he===-1?se.push(de.value):se.splice(he,1),"value"in Wt||Ye(se),Mt==null||Mt(se.filter(ke=>Pt.includes(ke)).sort((ke,gt)=>{const Ie=Ue.findIndex(yt=>yt.value===ke),Be=Ue.findIndex(yt=>yt.value===gt);return Ie-Be}))},Kt=It("checkbox",Lt),gn=`${Kt}-group`,[nn,Gt]=(0,_e.ZP)(Kt),Xt=(0,mt.Z)(Wt,["value","disabled"]),ye=Oe.length?Ue.map(de=>ct.createElement(je,{prefixCls:Kt,key:de.value.toString(),disabled:"disabled"in de?de.disabled:Wt.disabled,value:de.value,checked:be.includes(de.value),onChange:de.onChange,className:`${gn}-item`,style:de.style,title:de.title},de.label)):bt,ue={toggleOption:kn,value:be,disabled:Wt.disabled,name:Wt.name,registerValue:Ot,cancelValue:at},ce=Ae()(gn,{[`${gn}-rtl`]:Ge==="rtl"},tt,Ut,Gt);return nn(ct.createElement("div",Object.assign({className:ce,style:At},Xt,{ref:wt}),ct.createElement(Me.Provider,{value:ue},ye)))},nt=ct.forwardRef(ht);var Re=ct.memo(nt);const Ce=je;Ce.Group=Re,Ce.__ANT_CHECKBOX=!0;var Je=Ce},98447:function(Mn,tn,oe){"use strict";oe.d(tn,{C2:function(){return xe}});var ae=oe(17313),Ae=oe(37613),Le=oe(83116);const ct=Ee=>{const{checkboxCls:pe}=Ee,ve=`${pe}-wrapper`;return[{[`${pe}-group`]:Object.assign(Object.assign({},(0,ae.Wf)(Ee)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ee.marginXS,[`> ${Ee.antCls}-row`]:{flex:1}}),[ve]:Object.assign(Object.assign({},(0,ae.Wf)(Ee)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ve}`]:{marginInlineStart:0},[`&${ve}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[pe]:Object.assign(Object.assign({},(0,ae.Wf)(Ee)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ee.borderRadiusSM,alignSelf:"center",[`${pe}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${pe}-inner`]:Object.assign({},(0,ae.oN)(Ee))},[`${pe}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ee.checkboxSize,height:Ee.checkboxSize,direction:"ltr",backgroundColor:Ee.colorBgContainer,border:`${Ee.lineWidth}px ${Ee.lineType} ${Ee.colorBorder}`,borderRadius:Ee.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ee.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ee.checkboxSize/14*5,height:Ee.checkboxSize/14*8,border:`${Ee.lineWidthBold}px solid ${Ee.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ee.motionDurationFast} ${Ee.motionEaseInBack}, opacity ${Ee.motionDurationFast}`}},"& + span":{paddingInlineStart:Ee.paddingXS,paddingInlineEnd:Ee.paddingXS}})},{[`
|
|
|
${ve}:not(${ve}-disabled),
|
|
|
${pe}:not(${pe}-disabled)
|
|
|
`]:{[`&:hover ${pe}-inner`]:{borderColor:Ee.colorPrimary}},[`${ve}:not(${ve}-disabled)`]:{[`&:hover ${pe}-checked:not(${pe}-disabled) ${pe}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${pe}-checked:not(${pe}-disabled):after`]:{borderColor:Ee.colorPrimaryHover}}},{[`${pe}-checked`]:{[`${pe}-inner`]:{backgroundColor:Ee.colorPrimary,borderColor:Ee.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ee.motionDurationMid} ${Ee.motionEaseOutBack} ${Ee.motionDurationFast}`}}},[`
|
|
|
${ve}-checked:not(${ve}-disabled),
|
|
|
${pe}-checked:not(${pe}-disabled)
|
|
|
`]:{[`&:hover ${pe}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"}}},{[pe]:{"&-indeterminate":{[`${pe}-inner`]:{backgroundColor:Ee.colorBgContainer,borderColor:Ee.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ee.fontSizeLG/2,height:Ee.fontSizeLG/2,backgroundColor:Ee.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${ve}-disabled`]:{cursor:"not-allowed"},[`${pe}-disabled`]:{[`&, ${pe}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${pe}-inner`]:{background:Ee.colorBgContainerDisabled,borderColor:Ee.colorBorder,"&:after":{borderColor:Ee.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ee.colorTextDisabled},[`&${pe}-indeterminate ${pe}-inner::after`]:{background:Ee.colorTextDisabled}}}]};function xe(Ee,pe){const ve=(0,Ae.TS)(pe,{checkboxCls:`.${Ee}`,checkboxSize:pe.controlInteractiveSize});return[ct(ve)]}tn.ZP=(0,Le.Z)("Checkbox",(Ee,pe)=>{let{prefixCls:ve}=pe;return[xe(ve,Ee)]})},93891:function(Mn,tn,oe){"use strict";var ae=oe(59301),Ae=oe(36355),Le=oe(64165);const ct=xe=>{const{componentName:Ee}=xe,{getPrefixCls:pe}=(0,ae.useContext)(Ae.E_),ve=pe("empty");switch(Ee){case"Table":case"List":return ae.createElement(Le.Z,{image:Le.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ae.createElement(Le.Z,{image:Le.Z.PRESENTED_IMAGE_SIMPLE,className:`${ve}-small`});default:return ae.createElement(Le.Z,null)}};tn.Z=ct},43428:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return nn}});var ae=oe(92310),Ae=oe.n(ae),Le=oe(85899),ct=oe(72190),xe=oe(43403),Ee=oe(34280),pe=oe(59301),ve=pe.createContext(null),Me=pe.createContext({}),_e=ve,vt=oe(18642),Fe=oe(60499),qe=oe(77900),pt=oe(10228),Ke=oe(26112),je=oe(70425),ft=function(Xt){var ye=Xt.prefixCls,ue=Xt.className,ce=Xt.style,de=Xt.children,he=Xt.containerRef,se=Xt.id,ke=Xt.onMouseEnter,gt=Xt.onMouseOver,Ie=Xt.onMouseLeave,Be=Xt.onClick,yt=Xt.onKeyDown,rt=Xt.onKeyUp,Ve={onMouseEnter:ke,onMouseOver:gt,onMouseLeave:Ie,onClick:Be,onKeyDown:yt,onKeyUp:rt},Ct=pe.useContext(Me),rn=Ct.panel,lt=(0,je.useComposeRef)(rn,he);return pe.createElement(pe.Fragment,null,pe.createElement("div",(0,Fe.Z)({id:se,className:Ae()("".concat(ye,"-content"),ue),style:(0,Le.Z)({},ce),"aria-modal":"true",role:"dialog",ref:lt},Ve),de))},mt=ft,Bt=oe(48736);function ht(Gt){return typeof Gt=="string"&&String(Number(Gt))===Gt?((0,Bt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Gt)):Gt}function nt(Gt){warning(!("wrapperClassName"in Gt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Gt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Re={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ce(Gt,Xt){var ye,ue,ce,de,he=Gt.prefixCls,se=Gt.open,ke=Gt.placement,gt=Gt.inline,Ie=Gt.push,Be=Gt.forceRender,yt=Gt.autoFocus,rt=Gt.keyboard,Ve=Gt.rootClassName,Ct=Gt.rootStyle,rn=Gt.zIndex,lt=Gt.className,_t=Gt.id,fn=Gt.style,ut=Gt.motion,De=Gt.width,dt=Gt.height,Ft=Gt.children,zt=Gt.contentWrapperStyle,an=Gt.mask,Bn=Gt.maskClosable,qt=Gt.maskMotion,pn=Gt.maskClassName,zn=Gt.maskStyle,Vn=Gt.afterOpenChange,Pn=Gt.onClose,Qn=Gt.onMouseEnter,gr=Gt.onMouseOver,rr=Gt.onMouseLeave,er=Gt.onClick,pr=Gt.onKeyDown,Pr=Gt.onKeyUp,$n=pe.useRef(),Wr=pe.useRef(),vr=pe.useRef();pe.useImperativeHandle(Xt,function(){return $n.current});var qr=function(ln){var wn=ln.keyCode,Tn=ln.shiftKey;switch(wn){case pt.Z.TAB:{if(wn===pt.Z.TAB){if(!Tn&&document.activeElement===vr.current){var Fn;(Fn=Wr.current)===null||Fn===void 0||Fn.focus({preventScroll:!0})}else if(Tn&&document.activeElement===Wr.current){var jn;(jn=vr.current)===null||jn===void 0||jn.focus({preventScroll:!0})}}break}case pt.Z.ESC:{Pn&&rt&&(ln.stopPropagation(),Pn(ln));break}}};pe.useEffect(function(){if(se&&yt){var hn;(hn=$n.current)===null||hn===void 0||hn.focus({preventScroll:!0})}},[se]);var xi=pe.useState(!1),Ar=(0,ct.Z)(xi,2),dr=Ar[0],Mr=Ar[1],tr=pe.useContext(_e),Gn;Ie===!1?Gn={distance:0}:Ie===!0?Gn={}:Gn=Ie||{};var Xr=(ye=(ue=(ce=Gn)===null||ce===void 0?void 0:ce.distance)!==null&&ue!==void 0?ue:tr==null?void 0:tr.pushDistance)!==null&&ye!==void 0?ye:180,Rt=pe.useMemo(function(){return{pushDistance:Xr,push:function(){Mr(!0)},pull:function(){Mr(!1)}}},[Xr]);pe.useEffect(function(){if(se){var hn;tr==null||(hn=tr.push)===null||hn===void 0||hn.call(tr)}else{var ln;tr==null||(ln=tr.pull)===null||ln===void 0||ln.call(tr)}},[se]),pe.useEffect(function(){return function(){var hn;tr==null||(hn=tr.pull)===null||hn===void 0||hn.call(tr)}},[]);var ze=an&&pe.createElement(qe.default,(0,Fe.Z)({key:"mask"},qt,{visible:se}),function(hn,ln){var wn=hn.className,Tn=hn.style;return pe.createElement("div",{className:Ae()("".concat(he,"-mask"),wn,pn),style:(0,Le.Z)((0,Le.Z)({},Tn),zn),onClick:Bn&&se?Pn:void 0,ref:ln})}),$e=typeof ut=="function"?ut(ke):ut,Xe={};if(dr&&Xr)switch(ke){case"top":Xe.transform="translateY(".concat(Xr,"px)");break;case"bottom":Xe.transform="translateY(".concat(-Xr,"px)");break;case"left":Xe.transform="translateX(".concat(Xr,"px)");break;default:Xe.transform="translateX(".concat(-Xr,"px)");break}ke==="left"||ke==="right"?Xe.width=ht(De):Xe.height=ht(dt);var Ze={onMouseEnter:Qn,onMouseOver:gr,onMouseLeave:rr,onClick:er,onKeyDown:pr,onKeyUp:Pr},Et=pe.createElement(qe.default,(0,Fe.Z)({key:"panel"},$e,{visible:se,forceRender:Be,onVisibleChanged:function(ln){Vn==null||Vn(ln)},removeOnLeave:!1,leavedClassName:"".concat(he,"-content-wrapper-hidden")}),function(hn,ln){var wn=hn.className,Tn=hn.style;return pe.createElement("div",(0,Fe.Z)({className:Ae()("".concat(he,"-content-wrapper"),wn),style:(0,Le.Z)((0,Le.Z)((0,Le.Z)({},Xe),Tn),zt)},(0,Ke.Z)(Gt,{data:!0})),pe.createElement(mt,(0,Fe.Z)({id:_t,containerRef:ln,prefixCls:he,className:lt,style:fn},Ze),Ft))}),Tt=(0,Le.Z)({},Ct);return rn&&(Tt.zIndex=rn),pe.createElement(_e.Provider,{value:Rt},pe.createElement("div",{className:Ae()(he,"".concat(he,"-").concat(ke),Ve,(de={},(0,vt.Z)(de,"".concat(he,"-open"),se),(0,vt.Z)(de,"".concat(he,"-inline"),gt),de)),style:Tt,tabIndex:-1,ref:$n,onKeyDown:qr},ze,pe.createElement("div",{tabIndex:0,ref:Wr,style:Re,"aria-hidden":"true","data-sentinel":"start"}),Et,pe.createElement("div",{tabIndex:0,ref:vr,style:Re,"aria-hidden":"true","data-sentinel":"end"})))}var Je=pe.forwardRef(Ce),et=Je,wt=function(Xt){var ye=Xt.open,ue=ye===void 0?!1:ye,ce=Xt.prefixCls,de=ce===void 0?"rc-drawer":ce,he=Xt.placement,se=he===void 0?"right":he,ke=Xt.autoFocus,gt=ke===void 0?!0:ke,Ie=Xt.keyboard,Be=Ie===void 0?!0:Ie,yt=Xt.width,rt=yt===void 0?378:yt,Ve=Xt.mask,Ct=Ve===void 0?!0:Ve,rn=Xt.maskClosable,lt=rn===void 0?!0:rn,_t=Xt.getContainer,fn=Xt.forceRender,ut=Xt.afterOpenChange,De=Xt.destroyOnClose,dt=Xt.onMouseEnter,Ft=Xt.onMouseOver,zt=Xt.onMouseLeave,an=Xt.onClick,Bn=Xt.onKeyDown,qt=Xt.onKeyUp,pn=Xt.panelRef,zn=pe.useState(!1),Vn=(0,ct.Z)(zn,2),Pn=Vn[0],Qn=Vn[1],gr=pe.useState(!1),rr=(0,ct.Z)(gr,2),er=rr[0],pr=rr[1];(0,Ee.Z)(function(){pr(!0)},[]);var Pr=er?ue:!1,$n=pe.useRef(),Wr=pe.useRef();(0,Ee.Z)(function(){Pr&&(Wr.current=document.activeElement)},[Pr]);var vr=function(Mr){var tr;if(Qn(Mr),ut==null||ut(Mr),!Mr&&Wr.current&&!((tr=$n.current)!==null&&tr!==void 0&&tr.contains(Wr.current))){var Gn;(Gn=Wr.current)===null||Gn===void 0||Gn.focus({preventScroll:!0})}},qr=pe.useMemo(function(){return{panel:pn}},[pn]);if(!fn&&!Pn&&!Pr&&De)return null;var xi={onMouseEnter:dt,onMouseOver:Ft,onMouseLeave:zt,onClick:an,onKeyDown:Bn,onKeyUp:qt},Ar=(0,Le.Z)((0,Le.Z)({},Xt),{},{open:Pr,prefixCls:de,placement:se,autoFocus:gt,keyboard:Be,width:rt,mask:Ct,maskClosable:lt,inline:_t===!1,afterOpenChange:vr,ref:$n},xi);return pe.createElement(Me.Provider,{value:qr},pe.createElement(xe.Z,{open:Pr||fn||Pn,autoDestroy:!1,getContainer:_t,autoLock:Ct&&(Pr||Pn)},pe.createElement(et,Ar)))},Qe=wt,bt=Qe,Oe=oe(62892),Lt=oe(36355),tt=oe(32441),Ut=oe(47729),Mt=Gt=>{const{prefixCls:Xt,title:ye,footer:ue,extra:ce,closeIcon:de,closable:he,onClose:se,headerStyle:ke,drawerStyle:gt,bodyStyle:Ie,footerStyle:Be,children:yt}=Gt,rt=pe.useCallback(_t=>pe.createElement("button",{type:"button",onClick:se,"aria-label":"Close",className:`${Xt}-close`},_t),[se]),[Ve,Ct]=(0,Ut.Z)(he,de,rt,void 0,!0),rn=pe.useMemo(()=>!ye&&!Ve?null:pe.createElement("div",{style:ke,className:Ae()(`${Xt}-header`,{[`${Xt}-header-close-only`]:Ve&&!ye&&!ce})},pe.createElement("div",{className:`${Xt}-header-title`},Ct,ye&&pe.createElement("div",{className:`${Xt}-title`},ye)),ce&&pe.createElement("div",{className:`${Xt}-extra`},ce)),[Ve,Ct,ce,ke,Xt,ye]),lt=pe.useMemo(()=>{if(!ue)return null;const _t=`${Xt}-footer`;return pe.createElement("div",{className:_t,style:Be},ue)},[ue,Be,Xt]);return pe.createElement("div",{className:`${Xt}-wrapper-body`,style:gt},rn,pe.createElement("div",{className:`${Xt}-body`,style:Ie},yt),lt)},Wt=oe(33234),It=oe(83116),Ge=oe(37613),Ye=Gt=>{const{componentCls:Xt,motionDurationSlow:ye}=Gt,ue={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${ye}`}}};return{[Xt]:{[`${Xt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${ye}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Xt}-panel-motion`]:{"&-left":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[ue,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Pt=Gt=>{const{componentCls:Xt,zIndexPopup:ye,colorBgMask:ue,colorBgElevated:ce,motionDurationSlow:de,motionDurationMid:he,padding:se,paddingLG:ke,fontSizeLG:gt,lineHeightLG:Ie,lineWidth:Be,lineType:yt,colorSplit:rt,marginSM:Ve,colorIcon:Ct,colorIconHover:rn,colorText:lt,fontWeightStrong:_t,footerPaddingBlock:fn,footerPaddingInline:ut}=Gt,De=`${Xt}-content-wrapper`;return{[Xt]:{position:"fixed",inset:0,zIndex:ye,pointerEvents:"none","&-pure":{position:"relative",background:ce,[`&${Xt}-left`]:{boxShadow:Gt.boxShadowDrawerLeft},[`&${Xt}-right`]:{boxShadow:Gt.boxShadowDrawerRight},[`&${Xt}-top`]:{boxShadow:Gt.boxShadowDrawerUp},[`&${Xt}-bottom`]:{boxShadow:Gt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Xt}-mask`]:{position:"absolute",inset:0,zIndex:ye,background:ue,pointerEvents:"auto"},[De]:{position:"absolute",zIndex:ye,maxWidth:"100vw",transition:`all ${de}`,"&-hidden":{display:"none"}},[`&-left > ${De}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Gt.boxShadowDrawerLeft},[`&-right > ${De}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Gt.boxShadowDrawerRight},[`&-top > ${De}`]:{top:0,insetInline:0,boxShadow:Gt.boxShadowDrawerUp},[`&-bottom > ${De}`]:{bottom:0,insetInline:0,boxShadow:Gt.boxShadowDrawerDown},[`${Xt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:ce,pointerEvents:"auto"},[`${Xt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Xt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${se}px ${ke}px`,fontSize:gt,lineHeight:Ie,borderBottom:`${Be}px ${yt} ${rt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Xt}-extra`]:{flex:"none"},[`${Xt}-close`]:{display:"inline-block",marginInlineEnd:Ve,color:Ct,fontWeight:_t,fontSize:gt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${he}`,textRendering:"auto","&:focus, &:hover":{color:rn,textDecoration:"none"}},[`${Xt}-title`]:{flex:1,margin:0,color:lt,fontWeight:Gt.fontWeightStrong,fontSize:gt,lineHeight:Ie},[`${Xt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:ke,overflow:"auto"},[`${Xt}-footer`]:{flexShrink:0,padding:`${fn}px ${ut}px`,borderTop:`${Be}px ${yt} ${rt}`},"&-rtl":{direction:"rtl"}}}};var xt=(0,It.Z)("Drawer",Gt=>{const Xt=(0,Ge.TS)(Gt,{});return[Pt(Xt),Ye(Xt)]},Gt=>({zIndexPopup:Gt.zIndexPopupBase,footerPaddingBlock:Gt.paddingXS,footerPaddingInline:Gt.padding})),Ue=oe(11575),at=function(Gt,Xt){var ye={};for(var ue in Gt)Object.prototype.hasOwnProperty.call(Gt,ue)&&Xt.indexOf(ue)<0&&(ye[ue]=Gt[ue]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ue=Object.getOwnPropertySymbols(Gt);ce<ue.length;ce++)Xt.indexOf(ue[ce])<0&&Object.prototype.propertyIsEnumerable.call(Gt,ue[ce])&&(ye[ue[ce]]=Gt[ue[ce]]);return ye};const Ot=null,kn={distance:180},Kt=Gt=>{var Xt;const{rootClassName:ye,width:ue,height:ce,size:de="default",mask:he=!0,push:se=kn,open:ke,afterOpenChange:gt,onClose:Ie,prefixCls:Be,getContainer:yt,style:rt,className:Ve,visible:Ct,afterVisibleChange:rn}=Gt,lt=at(Gt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:_t,getPrefixCls:fn,direction:ut,drawer:De}=pe.useContext(Lt.E_),dt=fn("drawer",Be),[Ft,zt]=xt(dt),an=yt===void 0&&_t?()=>_t(document.body):yt,Bn=Ae()({"no-mask":!he,[`${dt}-rtl`]:ut==="rtl"},ye,zt),qt=pe.useMemo(()=>ue!=null?ue:de==="large"?736:378,[ue,de]),pn=pe.useMemo(()=>ce!=null?ce:de==="large"?736:378,[ce,de]),zn={motionName:(0,Oe.m)(dt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Vn=Qn=>({motionName:(0,Oe.m)(dt,`panel-motion-${Qn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Pn=(0,Ue.H)();return Ft(pe.createElement(Wt.BR,null,pe.createElement(tt.Ux,{status:!0,override:!0},pe.createElement(bt,Object.assign({prefixCls:dt,onClose:Ie,maskMotion:zn,motion:Vn},lt,{open:ke!=null?ke:Ct,mask:he,push:se,width:qt,height:pn,style:Object.assign(Object.assign({},De==null?void 0:De.style),rt),className:Ae()(De==null?void 0:De.className,Ve),rootClassName:Bn,getContainer:an,afterOpenChange:gt!=null?gt:rn,panelRef:Pn}),pe.createElement(Mt,Object.assign({prefixCls:dt},lt,{onClose:Ie}))))))},gn=Gt=>{const{prefixCls:Xt,style:ye,className:ue,placement:ce="right"}=Gt,de=at(Gt,["prefixCls","style","className","placement"]),{getPrefixCls:he}=pe.useContext(Lt.E_),se=he("drawer",Xt),[ke,gt]=xt(se),Ie=Ae()(se,`${se}-pure`,`${se}-${ce}`,gt,ue);return ke(pe.createElement("div",{className:Ie,style:ye},pe.createElement(Mt,Object.assign({prefixCls:se},de))))};Kt._InternalPanelDoNotUseOrYouWillBeFired=gn;var nn=Kt},91857:function(Mn,tn,oe){"use strict";var ae=oe(59301),Ae=oe(38819),Le=oe(92310),ct=oe.n(Le),xe=oe(31561),Ee=oe(70425),pe=oe(18929),ve=oe(2738),Me=oe(79676),_e=oe(53487),vt=oe(92343),Fe=oe(36355),qe=oe(20834),pt=oe(40875),Ke=oe(88088),je=oe(47211);const ft=null,mt=Re=>{const{menu:Ce,arrow:Je,prefixCls:et,children:wt,trigger:Qe,disabled:bt,dropdownRender:Oe,getPopupContainer:Lt,overlayClassName:tt,rootClassName:Ut,open:At,onOpenChange:Mt,visible:Wt,onVisibleChange:It,mouseEnterDelay:Ge=.15,mouseLeaveDelay:be=.1,autoAdjustOverflow:Ye=!0,placement:Pt="",overlay:xt,transitionName:Ue}=Re,{getPopupContainer:at,getPrefixCls:Ot,direction:kn}=ae.useContext(Fe.E_),Kt=ae.useMemo(()=>{const Ve=Ot();return Ue!==void 0?Ue:Pt.includes("top")?`${Ve}-slide-down`:`${Ve}-slide-up`},[Ot,Pt,Ue]),gn=ae.useMemo(()=>Pt?Pt.includes("Center")?Pt.slice(0,Pt.indexOf("Center")):Pt:kn==="rtl"?"bottomRight":"bottomLeft",[Pt,kn]),nn=Ot("dropdown",et),[Gt,Xt]=(0,je.Z)(nn),[,ye]=(0,Ke.Z)(),ue=ae.Children.only(wt),ce=(0,vt.Tm)(ue,{className:ct()(`${nn}-trigger`,{[`${nn}-rtl`]:kn==="rtl"},ue.props.className),disabled:bt}),de=bt?[]:Qe;let he;de&&de.includes("contextMenu")&&(he=!0);const[se,ke]=(0,pe.Z)(!1,{value:At!=null?At:Wt}),gt=(0,Ee.useEvent)(Ve=>{Mt==null||Mt(Ve),It==null||It(Ve),ke(Ve)}),Ie=ct()(tt,Ut,Xt,{[`${nn}-rtl`]:kn==="rtl"}),Be=(0,Me.Z)({arrowPointAtCenter:typeof Je=="object"&&Je.pointAtCenter,autoAdjustOverflow:Ye,offset:ye.marginXXS,arrowWidth:Je?ye.sizePopupArrow:0,borderRadius:ye.borderRadius}),yt=ae.useCallback(()=>{ke(!1)},[]),rt=()=>{let Ve;return Ce!=null&&Ce.items?Ve=ae.createElement(qe.default,Object.assign({},Ce)):typeof xt=="function"?Ve=xt():Ve=xt,Oe&&(Ve=Oe(Ve)),Ve=ae.Children.only(typeof Ve=="string"?ae.createElement("span",null,Ve):Ve),ae.createElement(pt.J,{prefixCls:`${nn}-menu`,expandIcon:ae.createElement("span",{className:`${nn}-menu-submenu-arrow`},ae.createElement(Ae.Z,{className:`${nn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:yt,validator:Ct=>{let{mode:rn}=Ct}},Ve)};return Gt(ae.createElement(xe.Z,Object.assign({alignPoint:he},(0,ve.Z)(Re,["rootClassName"]),{mouseEnterDelay:Ge,mouseLeaveDelay:be,visible:se,builtinPlacements:Be,arrow:!!Je,overlayClassName:Ie,prefixCls:nn,getPopupContainer:Lt||at,transitionName:Kt,trigger:de,overlay:rt,placement:gn,onVisibleChange:gt}),ce))};function Bt(Re){return Object.assign(Object.assign({},Re),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ht=(0,_e.Z)(mt,"dropdown",Re=>Re,Bt),nt=Re=>ae.createElement(ht,Object.assign({},Re),ae.createElement("span",null));mt._InternalPanelDoNotUseOrYouWillBeFired=nt,tn.Z=mt},38854:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return Ke}});var ae=oe(91857),Ae=oe(92310),Le=oe.n(Ae),ct=oe(59301),xe=oe(18785),Ee=oe(3113),pe=oe(36355),ve=oe(81327),Me=oe(33234),_e=oe(47211),vt=function(je,ft){var mt={};for(var Bt in je)Object.prototype.hasOwnProperty.call(je,Bt)&&ft.indexOf(Bt)<0&&(mt[Bt]=je[Bt]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Bt=Object.getOwnPropertySymbols(je);ht<Bt.length;ht++)ft.indexOf(Bt[ht])<0&&Object.prototype.propertyIsEnumerable.call(je,Bt[ht])&&(mt[Bt[ht]]=je[Bt[ht]]);return mt};const Fe=je=>{const{getPopupContainer:ft,getPrefixCls:mt,direction:Bt}=ct.useContext(pe.E_),{prefixCls:ht,type:nt="default",danger:Re,disabled:Ce,loading:Je,onClick:et,htmlType:wt,children:Qe,className:bt,menu:Oe,arrow:Lt,autoFocus:tt,overlay:Ut,trigger:At,align:Mt,open:Wt,onOpenChange:It,placement:Ge,getPopupContainer:be,href:Ye,icon:Pt=ct.createElement(xe.Z,null),title:xt,buttonsRender:Ue=rt=>rt,mouseEnterDelay:at,mouseLeaveDelay:Ot,overlayClassName:kn,overlayStyle:Kt,destroyPopupOnHide:gn,dropdownRender:nn}=je,Gt=vt(je,["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"]),Xt=mt("dropdown",ht),ye=`${Xt}-button`,[ue,ce]=(0,_e.Z)(Xt),de={menu:Oe,arrow:Lt,autoFocus:tt,align:Mt,disabled:Ce,trigger:Ce?[]:At,onOpenChange:It,getPopupContainer:be||ft,mouseEnterDelay:at,mouseLeaveDelay:Ot,overlayClassName:kn,overlayStyle:Kt,destroyPopupOnHide:gn,dropdownRender:nn},{compactSize:he,compactItemClassnames:se}=(0,Me.ri)(Xt,Bt),ke=Le()(ye,se,bt,ce);"overlay"in je&&(de.overlay=Ut),"open"in je&&(de.open=Wt),"placement"in je?de.placement=Ge:de.placement=Bt==="rtl"?"bottomLeft":"bottomRight";const gt=ct.createElement(Ee.ZP,{type:nt,danger:Re,disabled:Ce,loading:Je,onClick:et,htmlType:wt,href:Ye,title:xt},Qe),Ie=ct.createElement(Ee.ZP,{type:nt,danger:Re,icon:Pt}),[Be,yt]=Ue([gt,Ie]);return ue(ct.createElement(ve.Z.Compact,Object.assign({className:ke,size:he,block:!0},Gt),Be,ct.createElement(ae.Z,Object.assign({},de),yt)))};Fe.__ANT_BUTTON=!0;var qe=Fe;const pt=ae.Z;pt.Button=qe;var Ke=pt},47211:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return vt}});var ae=oe(17313),Ae=oe(13826),Le=oe(92899),ct=oe(29878),xe=oe(19447),Ee=oe(83116),pe=oe(37613),Me=Fe=>{const{componentCls:qe,menuCls:pt,colorError:Ke,colorTextLightSolid:je}=Fe,ft=`${pt}-item`;return{[`${qe}, ${qe}-menu-submenu`]:{[`${pt} ${ft}`]:{[`&${ft}-danger:not(${ft}-disabled)`]:{color:Ke,"&:hover":{color:je,backgroundColor:Ke}}}}}};const _e=Fe=>{const{componentCls:qe,menuCls:pt,zIndexPopup:Ke,dropdownArrowDistance:je,sizePopupArrow:ft,antCls:mt,iconCls:Bt,motionDurationMid:ht,dropdownPaddingVertical:nt,fontSize:Re,dropdownEdgeChildPadding:Ce,colorTextDisabled:Je,fontSizeIcon:et,controlPaddingHorizontal:wt,colorBgElevated:Qe}=Fe;return[{[qe]:Object.assign(Object.assign({},(0,ae.Wf)(Fe)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ke,display:"block","&::before":{position:"absolute",insetBlock:-je+ft/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${mt}-btn`]:{[`& > ${Bt}-down, & > ${mt}-btn-icon > ${Bt}-down`]:{fontSize:et}},[`${qe}-wrap`]:{position:"relative",[`${mt}-btn > ${Bt}-down`]:{fontSize:et},[`${Bt}-down::before`]:{transition:`transform ${ht}`}},[`${qe}-wrap-open`]:{[`${Bt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${mt}-slide-down-enter${mt}-slide-down-enter-active${qe}-placement-bottomLeft,
|
|
|
&${mt}-slide-down-appear${mt}-slide-down-appear-active${qe}-placement-bottomLeft,
|
|
|
&${mt}-slide-down-enter${mt}-slide-down-enter-active${qe}-placement-bottom,
|
|
|
&${mt}-slide-down-appear${mt}-slide-down-appear-active${qe}-placement-bottom,
|
|
|
&${mt}-slide-down-enter${mt}-slide-down-enter-active${qe}-placement-bottomRight,
|
|
|
&${mt}-slide-down-appear${mt}-slide-down-appear-active${qe}-placement-bottomRight`]:{animationName:Ae.fJ},[`&${mt}-slide-up-enter${mt}-slide-up-enter-active${qe}-placement-topLeft,
|
|
|
&${mt}-slide-up-appear${mt}-slide-up-appear-active${qe}-placement-topLeft,
|
|
|
&${mt}-slide-up-enter${mt}-slide-up-enter-active${qe}-placement-top,
|
|
|
&${mt}-slide-up-appear${mt}-slide-up-appear-active${qe}-placement-top,
|
|
|
&${mt}-slide-up-enter${mt}-slide-up-enter-active${qe}-placement-topRight,
|
|
|
&${mt}-slide-up-appear${mt}-slide-up-appear-active${qe}-placement-topRight`]:{animationName:Ae.Qt},[`&${mt}-slide-down-leave${mt}-slide-down-leave-active${qe}-placement-bottomLeft,
|
|
|
&${mt}-slide-down-leave${mt}-slide-down-leave-active${qe}-placement-bottom,
|
|
|
&${mt}-slide-down-leave${mt}-slide-down-leave-active${qe}-placement-bottomRight`]:{animationName:Ae.Uw},[`&${mt}-slide-up-leave${mt}-slide-up-leave-active${qe}-placement-topLeft,
|
|
|
&${mt}-slide-up-leave${mt}-slide-up-leave-active${qe}-placement-top,
|
|
|
&${mt}-slide-up-leave${mt}-slide-up-leave-active${qe}-placement-topRight`]:{animationName:Ae.ly}})},(0,xe.ZP)(Fe,{colorBg:Qe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${qe} ${pt}`]:{position:"relative",margin:0},[`${pt}-submenu-popup`]:{position:"absolute",zIndex:Ke,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${qe}, ${qe}-menu-submenu`]:{[pt]:Object.assign(Object.assign({padding:Ce,listStyleType:"none",backgroundColor:Qe,backgroundClip:"padding-box",borderRadius:Fe.borderRadiusLG,outline:"none",boxShadow:Fe.boxShadowSecondary},(0,ae.Qy)(Fe)),{[`${pt}-item-group-title`]:{padding:`${nt}px ${wt}px`,color:Fe.colorTextDescription,transition:`all ${ht}`},[`${pt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${pt}-item-icon`]:{minWidth:Re,marginInlineEnd:Fe.marginXS,fontSize:Fe.fontSizeSM},[`${pt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ht}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${pt}-item, ${pt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${nt}px ${wt}px`,color:Fe.colorText,fontWeight:"normal",fontSize:Re,lineHeight:Fe.lineHeight,cursor:"pointer",transition:`all ${ht}`,borderRadius:Fe.borderRadiusSM,"&:hover, &-active":{backgroundColor:Fe.controlItemBgHover}},(0,ae.Qy)(Fe)),{"&-selected":{color:Fe.colorPrimary,backgroundColor:Fe.controlItemBgActive,"&:hover, &-active":{backgroundColor:Fe.controlItemBgActiveHover}},"&-disabled":{color:Je,cursor:"not-allowed","&:hover":{color:Je,backgroundColor:Qe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Fe.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Fe.colorSplit},[`${qe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Fe.paddingXS,[`${qe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Fe.colorTextDescription,fontSize:et,fontStyle:"normal"}}}),[`${pt}-item-group-list`]:{margin:`0 ${Fe.marginXS}px`,padding:0,listStyle:"none"},[`${pt}-submenu-title`]:{paddingInlineEnd:wt+Fe.fontSizeSM},[`${pt}-submenu-vertical`]:{position:"relative"},[`${pt}-submenu${pt}-submenu-disabled ${qe}-menu-submenu-title`]:{[`&, ${qe}-menu-submenu-arrow-icon`]:{color:Je,backgroundColor:Qe,cursor:"not-allowed"}},[`${pt}-submenu-selected ${qe}-menu-submenu-title`]:{color:Fe.colorPrimary}})}},[(0,Ae.oN)(Fe,"slide-up"),(0,Ae.oN)(Fe,"slide-down"),(0,Le.Fm)(Fe,"move-up"),(0,Le.Fm)(Fe,"move-down"),(0,ct._y)(Fe,"zoom-big")]]};var vt=(0,Ee.Z)("Dropdown",(Fe,qe)=>{let{rootPrefixCls:pt}=qe;const{marginXXS:Ke,sizePopupArrow:je,controlHeight:ft,fontSize:mt,lineHeight:Bt,paddingXXS:ht,componentCls:nt,borderRadiusLG:Re}=Fe,Ce=(ft-mt*Bt)/2,{dropdownArrowOffset:Je}=(0,xe.fS)({contentRadius:Re}),et=(0,pe.TS)(Fe,{menuCls:`${nt}-menu`,rootPrefixCls:pt,dropdownArrowDistance:je/2+Ke,dropdownArrowOffset:Je,dropdownPaddingVertical:Ce,dropdownEdgeChildPadding:ht});return[_e(et),Me(et)]},Fe=>({zIndexPopup:Fe.zIndexPopupBase+50}))},64165:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ht}});var ae=oe(92310),Ae=oe.n(ae),Le=oe(59301),ct=oe(36355),xe=oe(9763),Ee=oe(64993),pe=oe(88088),Me=()=>{const[,nt]=(0,pe.Z)(),Ce=new Ee.C(nt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Le.createElement("svg",{style:Ce,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Le.createElement("g",{fill:"none",fillRule:"evenodd"},Le.createElement("g",{transform:"translate(24 31.67)"},Le.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Le.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"}),Le.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)"}),Le.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"}),Le.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"})),Le.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"}),Le.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Le.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Le.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},vt=()=>{const[,nt]=(0,pe.Z)(),{colorFill:Re,colorFillTertiary:Ce,colorFillQuaternary:Je,colorBgContainer:et}=nt,{borderColor:wt,shadowColor:Qe,contentColor:bt}=(0,Le.useMemo)(()=>({borderColor:new Ee.C(Re).onBackground(et).toHexShortString(),shadowColor:new Ee.C(Ce).onBackground(et).toHexShortString(),contentColor:new Ee.C(Je).onBackground(et).toHexShortString()}),[Re,Ce,Je,et]);return Le.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Le.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Le.createElement("ellipse",{fill:Qe,cx:"32",cy:"33",rx:"32",ry:"7"}),Le.createElement("g",{fillRule:"nonzero",stroke:wt},Le.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"}),Le.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:bt}))))},Fe=oe(83116),qe=oe(37613);const pt=nt=>{const{componentCls:Re,margin:Ce,marginXS:Je,marginXL:et,fontSize:wt,lineHeight:Qe}=nt;return{[Re]:{marginInline:Je,fontSize:wt,lineHeight:Qe,textAlign:"center",[`${Re}-image`]:{height:nt.emptyImgHeight,marginBottom:Je,opacity:nt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Re}-description`]:{color:nt.colorText},[`${Re}-footer`]:{marginTop:Ce},"&-normal":{marginBlock:et,color:nt.colorTextDisabled,[`${Re}-description`]:{color:nt.colorTextDisabled},[`${Re}-image`]:{height:nt.emptyImgHeightMD}},"&-small":{marginBlock:Je,color:nt.colorTextDisabled,[`${Re}-image`]:{height:nt.emptyImgHeightSM}}}}};var Ke=(0,Fe.Z)("Empty",nt=>{const{componentCls:Re,controlHeightLG:Ce}=nt,Je=(0,qe.TS)(nt,{emptyImgCls:`${Re}-img`,emptyImgHeight:Ce*2.5,emptyImgHeightMD:Ce,emptyImgHeightSM:Ce*.875});return[pt(Je)]}),je=function(nt,Re){var Ce={};for(var Je in nt)Object.prototype.hasOwnProperty.call(nt,Je)&&Re.indexOf(Je)<0&&(Ce[Je]=nt[Je]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,Je=Object.getOwnPropertySymbols(nt);et<Je.length;et++)Re.indexOf(Je[et])<0&&Object.prototype.propertyIsEnumerable.call(nt,Je[et])&&(Ce[Je[et]]=nt[Je[et]]);return Ce};const ft=Le.createElement(Me,null),mt=Le.createElement(vt,null),Bt=nt=>{var{className:Re,rootClassName:Ce,prefixCls:Je,image:et=ft,description:wt,children:Qe,imageStyle:bt,style:Oe}=nt,Lt=je(nt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:tt,direction:Ut,empty:At}=Le.useContext(ct.E_),Mt=tt("empty",Je),[Wt,It]=Ke(Mt),[Ge]=(0,xe.Z)("Empty"),be=typeof wt!="undefined"?wt:Ge==null?void 0:Ge.description,Ye=typeof be=="string"?be:"empty";let Pt=null;return typeof et=="string"?Pt=Le.createElement("img",{alt:Ye,src:et}):Pt=et,Wt(Le.createElement("div",Object.assign({className:Ae()(It,Mt,At==null?void 0:At.className,{[`${Mt}-normal`]:et===mt,[`${Mt}-rtl`]:Ut==="rtl"},Re,Ce),style:Object.assign(Object.assign({},At==null?void 0:At.style),Oe)},Lt),Le.createElement("div",{className:`${Mt}-image`,style:bt},Pt),be&&Le.createElement("div",{className:`${Mt}-description`},be),Qe&&Le.createElement("div",{className:`${Mt}-footer`},Qe)))};Bt.PRESENTED_IMAGE_DEFAULT=ft,Bt.PRESENTED_IMAGE_SIMPLE=mt;var ht=Bt},78241:function(Mn,tn,oe){"use strict";oe.d(tn,{default:function(){return Xr}});var ae=oe(77654),Ae=oe(92310),Le=oe.n(Ae),ct=oe(77900),xe=oe(59301),Ee=oe(62892),pe=oe(32441);function ve(Rt){const[ze,$e]=xe.useState(Rt);return xe.useEffect(()=>{const Xe=setTimeout(()=>{$e(Rt)},Rt.length?0:10);return()=>{clearTimeout(Xe)}},[Rt]),ze}var Me=oe(17313),_e=oe(29878),vt=oe(8378),Fe=oe(37613),qe=oe(83116),Ke=Rt=>{const{componentCls:ze}=Rt,$e=`${ze}-show-help`,Xe=`${ze}-show-help-item`;return{[$e]:{transition:`opacity ${Rt.motionDurationSlow} ${Rt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Xe]:{overflow:"hidden",transition:`height ${Rt.motionDurationSlow} ${Rt.motionEaseInOut},
|
|
|
opacity ${Rt.motionDurationSlow} ${Rt.motionEaseInOut},
|
|
|
transform ${Rt.motionDurationSlow} ${Rt.motionEaseInOut} !important`,[`&${Xe}-appear, &${Xe}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Xe}-leave-active`]:{transform:"translateY(-5px)"}}}}};const je=Rt=>({legend:{display:"block",width:"100%",marginBottom:Rt.marginLG,padding:0,color:Rt.colorTextDescription,fontSize:Rt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Rt.lineWidth}px ${Rt.lineType} ${Rt.colorBorder}`},label:{fontSize:Rt.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 ${Rt.controlOutlineWidth}px ${Rt.controlOutline}`},output:{display:"block",paddingTop:15,color:Rt.colorText,fontSize:Rt.fontSize,lineHeight:Rt.lineHeight}}),ft=(Rt,ze)=>{const{formItemCls:$e}=Rt;return{[$e]:{[`${$e}-label > label`]:{height:ze},[`${$e}-control-input`]:{minHeight:ze}}}},mt=Rt=>{const{componentCls:ze}=Rt;return{[Rt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Me.Wf)(Rt)),je(Rt)),{[`${ze}-text`]:{display:"inline-block",paddingInlineEnd:Rt.paddingSM},"&-small":Object.assign({},ft(Rt,Rt.controlHeightSM)),"&-large":Object.assign({},ft(Rt,Rt.controlHeightLG))})}},Bt=Rt=>{const{formItemCls:ze,iconCls:$e,componentCls:Xe,rootPrefixCls:Ze,labelRequiredMarkColor:Et,labelColor:Tt,labelFontSize:hn,labelHeight:ln,labelColonMarginInlineStart:wn,labelColonMarginInlineEnd:Tn,itemMarginBottom:Fn}=Rt;return{[ze]:Object.assign(Object.assign({},(0,Me.Wf)(Rt)),{marginBottom:Fn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Ze}-row`]:{display:"none"},"&-has-warning":{[`${ze}-split`]:{color:Rt.colorError}},"&-has-error":{[`${ze}-split`]:{color:Rt.colorWarning}},[`${ze}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Rt.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:ln,color:Tt,fontSize:hn,[`> ${$e}`]:{fontSize:Rt.fontSize,verticalAlign:"top"},[`&${ze}-required:not(${ze}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Rt.marginXXS,color:Et,fontSize:Rt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Xe}-hide-required-mark &`]:{display:"none"}},[`${ze}-optional`]:{display:"inline-block",marginInlineStart:Rt.marginXXS,color:Rt.colorTextDescription,[`${Xe}-hide-required-mark &`]:{display:"none"}},[`${ze}-tooltip`]:{color:Rt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Rt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:wn,marginInlineEnd:Tn},[`&${ze}-no-colon::after`]:{content:'"\\a0"'}}},[`${ze}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ze}-col-'"]):not([class*="' ${Ze}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Rt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ze]:{"&-explain, &-extra":{clear:"both",color:Rt.colorTextDescription,fontSize:Rt.fontSize,lineHeight:Rt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Rt.controlHeightSM,transition:`color ${Rt.motionDurationMid} ${Rt.motionEaseOut}`},"&-explain":{"&-error":{color:Rt.colorError},"&-warning":{color:Rt.colorWarning}}},[`&-with-help ${ze}-explain`]:{height:"auto",opacity:1},[`${ze}-feedback-icon`]:{fontSize:Rt.fontSize,textAlign:"center",visibility:"visible",animationName:_e.kr,animationDuration:Rt.motionDurationMid,animationTimingFunction:Rt.motionEaseOutBack,pointerEvents:"none","&-success":{color:Rt.colorSuccess},"&-error":{color:Rt.colorError},"&-warning":{color:Rt.colorWarning},"&-validating":{color:Rt.colorPrimary}}})}},ht=Rt=>{const{componentCls:ze,formItemCls:$e}=Rt;return{[`${ze}-horizontal`]:{[`${$e}-label`]:{flexGrow:0},[`${$e}-control`]:{flex:"1 1 0",minWidth:0},[`${$e}-label[class$='-24'], ${$e}-label[class*='-24 ']`]:{[`& + ${$e}-control`]:{minWidth:"unset"}}}}},nt=Rt=>{const{componentCls:ze,formItemCls:$e}=Rt;return{[`${ze}-inline`]:{display:"flex",flexWrap:"wrap",[$e]:{flex:"none",marginInlineEnd:Rt.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${$e}-label,
|
|
|
> ${$e}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${$e}-label`]:{flex:"none"},[`${ze}-text`]:{display:"inline-block"},[`${$e}-has-feedback`]:{display:"inline-block"}}}}},Re=Rt=>({padding:Rt.verticalLabelPadding,margin:Rt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ce=Rt=>{const{componentCls:ze,formItemCls:$e,rootPrefixCls:Xe}=Rt;return{[`${$e} ${$e}-label`]:Re(Rt),[ze]:{[$e]:{flexWrap:"wrap",[`${$e}-label, ${$e}-control`]:{[`&:not([class*=" ${Xe}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Je=Rt=>{const{componentCls:ze,formItemCls:$e,rootPrefixCls:Xe}=Rt;return{[`${ze}-vertical`]:{[$e]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ze}-item-control`]:{width:"100%"}}},[`${ze}-vertical ${$e}-label,
|
|
|
.${Xe}-col-24${$e}-label,
|
|
|
.${Xe}-col-xl-24${$e}-label`]:Re(Rt),[`@media (max-width: ${Rt.screenXSMax}px)`]:[Ce(Rt),{[ze]:{[`.${Xe}-col-xs-24${$e}-label`]:Re(Rt)}}],[`@media (max-width: ${Rt.screenSMMax}px)`]:{[ze]:{[`.${Xe}-col-sm-24${$e}-label`]:Re(Rt)}},[`@media (max-width: ${Rt.screenMDMax}px)`]:{[ze]:{[`.${Xe}-col-md-24${$e}-label`]:Re(Rt)}},[`@media (max-width: ${Rt.screenLGMax}px)`]:{[ze]:{[`.${Xe}-col-lg-24${$e}-label`]:Re(Rt)}}}},et=(Rt,ze)=>(0,Fe.TS)(Rt,{formItemCls:`${Rt.componentCls}-item`,rootPrefixCls:ze});var wt=(0,qe.Z)("Form",(Rt,ze)=>{let{rootPrefixCls:$e}=ze;const Xe=et(Rt,$e);return[mt(Xe),Bt(Xe),Ke(Xe),ht(Xe),nt(Xe),Je(Xe),(0,vt.Z)(Xe),_e.kr]},Rt=>({labelRequiredMarkColor:Rt.colorError,labelColor:Rt.colorTextHeading,labelFontSize:Rt.fontSize,labelHeight:Rt.controlHeight,labelColonMarginInlineStart:Rt.marginXXS/2,labelColonMarginInlineEnd:Rt.marginXS,itemMarginBottom:Rt.marginLG,verticalLabelPadding:`0 0 ${Rt.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Qe=[];function bt(Rt,ze,$e){let Xe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Rt=="string"?Rt:`${ze}-${Xe}`,error:Rt,errorStatus:$e}}var Lt=Rt=>{let{help:ze,helpStatus:$e,errors:Xe=Qe,warnings:Ze=Qe,className:Et,fieldId:Tt,onVisibleChanged:hn}=Rt;const{prefixCls:ln}=xe.useContext(pe.Rk),wn=`${ln}-item-explain`,[,Tn]=wt(ln),Fn=(0,xe.useMemo)(()=>(0,Ee.Z)(ln),[ln]),jn=ve(Xe),Qt=ve(Ze),Dn=xe.useMemo(()=>ze!=null?[bt(ze,"help",$e)]:[].concat((0,ae.Z)(jn.map((Zt,on)=>bt(Zt,"error","error",on))),(0,ae.Z)(Qt.map((Zt,on)=>bt(Zt,"warning","warning",on)))),[ze,$e,jn,Qt]),Dt={};return Tt&&(Dt.id=`${Tt}_help`),xe.createElement(ct.default,{motionDeadline:Fn.motionDeadline,motionName:`${ln}-show-help`,visible:!!Dn.length,onVisibleChanged:hn},Zt=>{const{className:on,style:cn}=Zt;return xe.createElement("div",Object.assign({},Dt,{className:Le()(wn,on,Et,Tn),style:cn,role:"alert"}),xe.createElement(ct.CSSMotionList,Object.assign({keys:Dn},(0,Ee.Z)(ln),{motionName:`${ln}-show-help-item`,component:!1}),In=>{const{key:en,error:Ln,errorStatus:it,className:Yt,style:$t}=In;return xe.createElement("div",{key:en,className:Le()(Yt,{[`${wn}-${it}`]:it}),style:$t},Ln)}))})},tt=oe(95013),Ut=oe(36355),At=oe(1684),Mt=oe(52946),Wt=oe(19716),It=oe(16722);const Ge=["parentNode"],be="form_item";function Ye(Rt){return Rt===void 0||Rt===!1?[]:Array.isArray(Rt)?Rt:[Rt]}function Pt(Rt,ze){if(!Rt.length)return;const $e=Rt.join("_");return ze?`${ze}_${$e}`:Ge.includes($e)?`${be}_${$e}`:$e}function xt(Rt,ze,$e,Xe,Ze,Et){let Tt=Xe;return Et!==void 0?Tt=Et:$e.validating?Tt="validating":Rt.length?Tt="error":ze.length?Tt="warning":($e.touched||Ze&&$e.validated)&&(Tt="success"),Tt}function Ue(Rt){return Ye(Rt).join("_")}function at(Rt){const[ze]=(0,tt.useForm)(),$e=xe.useRef({}),Xe=xe.useMemo(()=>Rt!=null?Rt:Object.assign(Object.assign({},ze),{__INTERNAL__:{itemRef:Ze=>Et=>{const Tt=Ue(Ze);Et?$e.current[Tt]=Et:delete $e.current[Tt]}},scrollToField:function(Ze){let Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Tt=Ye(Ze),hn=Pt(Tt,Xe.__INTERNAL__.name),ln=hn?document.getElementById(hn):null;ln&&(0,It.Z)(ln,Object.assign({scrollMode:"if-needed",block:"nearest"},Et))},getFieldInstance:Ze=>{const Et=Ue(Ze);return $e.current[Et]}}),[Rt,ze]);return[Xe]}var Ot=oe(28726),kn=function(Rt,ze){var $e={};for(var Xe in Rt)Object.prototype.hasOwnProperty.call(Rt,Xe)&&ze.indexOf(Xe)<0&&($e[Xe]=Rt[Xe]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Xe=Object.getOwnPropertySymbols(Rt);Ze<Xe.length;Ze++)ze.indexOf(Xe[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Xe[Ze])&&($e[Xe[Ze]]=Rt[Xe[Ze]]);return $e};const Kt=(Rt,ze)=>{const $e=xe.useContext(At.Z),{getPrefixCls:Xe,direction:Ze,form:Et}=xe.useContext(Ut.E_),{prefixCls:Tt,className:hn,rootClassName:ln,size:wn,disabled:Tn=$e,form:Fn,colon:jn,labelAlign:Qt,labelWrap:Dn,labelCol:Dt,wrapperCol:Zt,hideRequiredMark:on,layout:cn="horizontal",scrollToFirstError:In,requiredMark:en,onFinishFailed:Ln,name:it,style:Yt,feedbackIcons:$t}=Rt,vn=kn(Rt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),dn=(0,Wt.Z)(wn),xn=xe.useContext(Ot.Z),yn=(0,xe.useMemo)(()=>en!==void 0?en:Et&&Et.requiredMark!==void 0?Et.requiredMark:!on,[on,en,Et]),_n=jn!=null?jn:Et==null?void 0:Et.colon,Un=Xe("form",Tt),[nr,mr]=wt(Un),Tr=Le()(Un,`${Un}-${cn}`,{[`${Un}-hide-required-mark`]:yn===!1,[`${Un}-rtl`]:Ze==="rtl",[`${Un}-${dn}`]:dn},mr,Et==null?void 0:Et.className,hn,ln),[jr]=at(Fn),{__INTERNAL__:br}=jr;br.name=it;const ir=(0,xe.useMemo)(()=>({name:it,labelAlign:Qt,labelCol:Dt,labelWrap:Dn,wrapperCol:Zt,vertical:cn==="vertical",colon:_n,requiredMark:yn,itemRef:br.itemRef,form:jr,feedbackIcons:$t}),[it,Qt,Dt,Zt,cn,_n,yn,jr,$t]);xe.useImperativeHandle(ze,()=>jr);const Ur=($r,Cr)=>{if($r){let Lr={block:"nearest"};typeof $r=="object"&&(Lr=$r),jr.scrollToField(Cr,Lr)}},Nr=$r=>{if(Ln==null||Ln($r),$r.errorFields.length){const Cr=$r.errorFields[0].name;if(In!==void 0){Ur(In,Cr);return}Et&&Et.scrollToFirstError!==void 0&&Ur(Et.scrollToFirstError,Cr)}};return nr(xe.createElement(At.n,{disabled:Tn},xe.createElement(Mt.q,{size:dn},xe.createElement(pe.RV,Object.assign({},{validateMessages:xn}),xe.createElement(pe.q3.Provider,{value:ir},xe.createElement(tt.default,Object.assign({id:it},vn,{name:it,onFinishFailed:Nr,form:jr,style:Object.assign(Object.assign({},Et==null?void 0:Et.style),Yt),className:Tr})))))))};var nn=xe.forwardRef(Kt),Gt=oe(41799),Xt=oe(8654),ye=oe(92343),ue=oe(11592);function ce(Rt){if(typeof Rt=="function")return Rt;const ze=(0,ue.Z)(Rt);return ze.length<=1?ze[0]:ze}const de=()=>{const{status:Rt,errors:ze=[],warnings:$e=[]}=(0,xe.useContext)(pe.aM);return{status:Rt,errors:ze,warnings:$e}};de.Context=pe.aM;var he=de,se=oe(16089);function ke(Rt){const[ze,$e]=xe.useState(Rt),Xe=(0,xe.useRef)(null),Ze=(0,xe.useRef)([]),Et=(0,xe.useRef)(!1);xe.useEffect(()=>(Et.current=!1,()=>{Et.current=!0,se.Z.cancel(Xe.current),Xe.current=null}),[]);function Tt(hn){Et.current||(Xe.current===null&&(Ze.current=[],Xe.current=(0,se.Z)(()=>{Xe.current=null,$e(ln=>{let wn=ln;return Ze.current.forEach(Tn=>{wn=Tn(wn)}),wn})})),Ze.current.push(hn))}return[ze,Tt]}function gt(){const{itemRef:Rt}=xe.useContext(pe.q3),ze=xe.useRef({});function $e(Xe,Ze){const Et=Ze&&typeof Ze=="object"&&Ze.ref,Tt=Xe.join("_");return(ze.current.name!==Tt||ze.current.originRef!==Et)&&(ze.current.name=Tt,ze.current.originRef=Et,ze.current.ref=(0,Xt.sQ)(Rt(Xe),Et)),ze.current.ref}return $e}var Ie=oe(29194),Be=oe(34280),yt=oe(2738),rt=oe(27382),Ve=oe(37028);const Ct=Rt=>{const{formItemCls:ze}=Rt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ze}-control`]:{display:"flex"}}}};var rn=(0,qe.b)(["Form","item-item"],(Rt,ze)=>{let{rootPrefixCls:$e}=ze;const Xe=et(Rt,$e);return[Ct(Xe)]}),_t=Rt=>{const{prefixCls:ze,status:$e,wrapperCol:Xe,children:Ze,errors:Et,warnings:Tt,_internalItemRender:hn,extra:ln,help:wn,fieldId:Tn,marginBottom:Fn,onErrorVisibleChanged:jn}=Rt,Qt=`${ze}-item`,Dn=xe.useContext(pe.q3),Dt=Xe||Dn.wrapperCol||{},Zt=Le()(`${Qt}-control`,Dt.className),on=xe.useMemo(()=>Object.assign({},Dn),[Dn]);delete on.labelCol,delete on.wrapperCol;const cn=xe.createElement("div",{className:`${Qt}-control-input`},xe.createElement("div",{className:`${Qt}-control-input-content`},Ze)),In=xe.useMemo(()=>({prefixCls:ze,status:$e}),[ze,$e]),en=Fn!==null||Et.length||Tt.length?xe.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},xe.createElement(pe.Rk.Provider,{value:In},xe.createElement(Lt,{fieldId:Tn,errors:Et,warnings:Tt,help:wn,helpStatus:$e,className:`${Qt}-explain-connected`,onVisibleChanged:jn})),!!Fn&&xe.createElement("div",{style:{width:0,height:Fn}})):null,Ln={};Tn&&(Ln.id=`${Tn}_extra`);const it=ln?xe.createElement("div",Object.assign({},Ln,{className:`${Qt}-extra`}),ln):null,Yt=hn&&hn.mark==="pro_table_render"&&hn.render?hn.render(Rt,{input:cn,errorList:en,extra:it}):xe.createElement(xe.Fragment,null,cn,en,it);return xe.createElement(pe.q3.Provider,{value:on},xe.createElement(Ve.Z,Object.assign({},Dt,{className:Zt}),Yt),xe.createElement(rn,{prefixCls:ze}))},fn=oe(61485),ut=oe(31724),De=oe(9763),dt=oe(6848),Ft=function(Rt,ze){var $e={};for(var Xe in Rt)Object.prototype.hasOwnProperty.call(Rt,Xe)&&ze.indexOf(Xe)<0&&($e[Xe]=Rt[Xe]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Xe=Object.getOwnPropertySymbols(Rt);Ze<Xe.length;Ze++)ze.indexOf(Xe[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Xe[Ze])&&($e[Xe[Ze]]=Rt[Xe[Ze]]);return $e};function zt(Rt){return Rt?typeof Rt=="object"&&!xe.isValidElement(Rt)?Rt:{title:Rt}:null}var Bn=Rt=>{let{prefixCls:ze,label:$e,htmlFor:Xe,labelCol:Ze,labelAlign:Et,colon:Tt,required:hn,requiredMark:ln,tooltip:wn}=Rt;var Tn;const[Fn]=(0,De.Z)("Form"),{vertical:jn,labelAlign:Qt,labelCol:Dn,labelWrap:Dt,colon:Zt}=xe.useContext(pe.q3);if(!$e)return null;const on=Ze||Dn||{},cn=Et||Qt,In=`${ze}-item-label`,en=Le()(In,cn==="left"&&`${In}-left`,on.className,{[`${In}-wrap`]:!!Dt});let Ln=$e;const it=Tt===!0||Zt!==!1&&Tt!==!1;it&&!jn&&typeof $e=="string"&&$e.trim()!==""&&(Ln=$e.replace(/[:|:]\s*$/,""));const $t=zt(wn);if($t){const{icon:yn=xe.createElement(fn.Z,null)}=$t,_n=Ft($t,["icon"]),Un=xe.createElement(dt.Z,Object.assign({},_n),xe.cloneElement(yn,{className:`${ze}-item-tooltip`,title:""}));Ln=xe.createElement(xe.Fragment,null,Ln,Un)}const vn=ln==="optional",dn=typeof ln=="function";dn?Ln=ln(Ln,{required:!!hn}):vn&&!hn&&(Ln=xe.createElement(xe.Fragment,null,Ln,xe.createElement("span",{className:`${ze}-item-optional`,title:""},(Fn==null?void 0:Fn.optional)||((Tn=ut.Z.Form)===null||Tn===void 0?void 0:Tn.optional))));const xn=Le()({[`${ze}-item-required`]:hn,[`${ze}-item-required-mark-optional`]:vn||dn,[`${ze}-item-no-colon`]:!it});return xe.createElement(Ve.Z,Object.assign({},on,{className:en}),xe.createElement("label",{htmlFor:Xe,className:xn,title:typeof $e=="string"?$e:""},Ln))},qt=oe(29679),pn=oe(19248),zn=oe(96512),Vn=oe(58617);const Pn={success:qt.Z,warning:zn.Z,error:pn.Z,validating:Vn.Z};function Qn(Rt){let{children:ze,errors:$e,warnings:Xe,hasFeedback:Ze,validateStatus:Et,prefixCls:Tt,meta:hn,noStyle:ln}=Rt;const wn=`${Tt}-item`,{feedbackIcons:Tn}=xe.useContext(pe.q3),Fn=xt($e,Xe,hn,null,!!Ze,Et),{isFormItemInput:jn,status:Qt}=xe.useContext(pe.aM),Dn=xe.useMemo(()=>{var Dt;let Zt;if(Ze){const In=Ze!==!0&&Ze.icons||Tn,en=Fn&&((Dt=In==null?void 0:In({status:Fn,errors:$e,warnings:Xe}))===null||Dt===void 0?void 0:Dt[Fn]),Ln=Fn&&Pn[Fn];Zt=en!==!1&&Ln?xe.createElement("span",{className:Le()(`${wn}-feedback-icon`,`${wn}-feedback-icon-${Fn}`)},en||xe.createElement(Ln,null)):null}let on=!0,cn=Fn||"";return ln&&(on=jn,cn=(Fn!=null?Fn:Qt)||""),{status:cn,errors:$e,warnings:Xe,hasFeedback:!!Ze,feedbackIcon:Zt,isFormItemInput:on}},[Fn,Ze,ln,jn,Qt]);return xe.createElement(pe.aM.Provider,{value:Dn},ze)}var gr=function(Rt,ze){var $e={};for(var Xe in Rt)Object.prototype.hasOwnProperty.call(Rt,Xe)&&ze.indexOf(Xe)<0&&($e[Xe]=Rt[Xe]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Xe=Object.getOwnPropertySymbols(Rt);Ze<Xe.length;Ze++)ze.indexOf(Xe[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Xe[Ze])&&($e[Xe[Ze]]=Rt[Xe[Ze]]);return $e};function rr(Rt){const{prefixCls:ze,className:$e,rootClassName:Xe,style:Ze,help:Et,errors:Tt,warnings:hn,validateStatus:ln,meta:wn,hasFeedback:Tn,hidden:Fn,children:jn,fieldId:Qt,required:Dn,isRequired:Dt,onSubItemMetaChange:Zt}=Rt,on=gr(Rt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),cn=`${ze}-item`,{requiredMark:In}=xe.useContext(pe.q3),en=xe.useRef(null),Ln=ve(Tt),it=ve(hn),Yt=Et!=null,$t=!!(Yt||Tt.length||hn.length),vn=!!en.current&&(0,Ie.Z)(en.current),[dn,xn]=xe.useState(null);(0,Be.Z)(()=>{if($t&&en.current){const mr=getComputedStyle(en.current);xn(parseInt(mr.marginBottom,10))}},[$t,vn]);const yn=mr=>{mr||xn(null)},Un=function(){let mr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Tr=mr?Ln:wn.errors,jr=mr?it:wn.warnings;return xt(Tr,jr,wn,"",!!Tn,ln)}(),nr=Le()(cn,$e,Xe,{[`${cn}-with-help`]:Yt||Ln.length||it.length,[`${cn}-has-feedback`]:Un&&Tn,[`${cn}-has-success`]:Un==="success",[`${cn}-has-warning`]:Un==="warning",[`${cn}-has-error`]:Un==="error",[`${cn}-is-validating`]:Un==="validating",[`${cn}-hidden`]:Fn});return xe.createElement("div",{className:nr,style:Ze,ref:en},xe.createElement(rt.Z,Object.assign({className:`${cn}-row`},(0,yt.Z)(on,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),xe.createElement(Bn,Object.assign({htmlFor:Qt},Rt,{requiredMark:In,required:Dn!=null?Dn:Dt,prefixCls:ze})),xe.createElement(_t,Object.assign({},Rt,wn,{errors:Ln,warnings:it,prefixCls:ze,status:Un,help:Et,marginBottom:dn,onErrorVisibleChanged:yn}),xe.createElement(pe.qI.Provider,{value:Zt},xe.createElement(Qn,{prefixCls:ze,meta:wn,errors:wn.errors,warnings:wn.warnings,hasFeedback:Tn,validateStatus:Un},jn)))),!!dn&&xe.createElement("div",{className:`${cn}-margin-offset`,style:{marginBottom:-dn}}))}const er="__SPLIT__",pr=null,Pr=xe.memo(Rt=>{let{children:ze}=Rt;return ze},(Rt,ze)=>Rt.value===ze.value&&Rt.update===ze.update&&Rt.childProps.length===ze.childProps.length&&Rt.childProps.every(($e,Xe)=>$e===ze.childProps[Xe]));function $n(Rt){return Rt!=null}function Wr(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function vr(Rt){const{name:ze,noStyle:$e,className:Xe,dependencies:Ze,prefixCls:Et,shouldUpdate:Tt,rules:hn,children:ln,required:wn,label:Tn,messageVariables:Fn,trigger:jn="onChange",validateTrigger:Qt,hidden:Dn,help:Dt}=Rt,{getPrefixCls:Zt}=xe.useContext(Ut.E_),{name:on}=xe.useContext(pe.q3),cn=ce(ln),In=typeof cn=="function",en=xe.useContext(pe.qI),{validateTrigger:Ln}=xe.useContext(tt.FieldContext),it=Qt!==void 0?Qt:Ln,Yt=$n(ze),$t=Zt("form",Et),[vn,dn]=wt($t),xn=xe.useContext(tt.ListContext),yn=xe.useRef(),[_n,Un]=ke({}),[nr,mr]=(0,Gt.Z)(()=>Wr()),Tr=Cr=>{const Lr=xn==null?void 0:xn.getKey(Cr.name);if(mr(Cr.destroy?Wr():Cr,!0),$e&&Dt!==!1&&en){let ri=Cr.name;if(Cr.destroy)ri=yn.current||ri;else if(Lr!==void 0){const[Kr,Ei]=Lr;ri=[Kr].concat((0,ae.Z)(Ei)),yn.current=ri}en(Cr,ri)}},jr=(Cr,Lr)=>{Un(ri=>{const Kr=Object.assign({},ri),Ri=[].concat((0,ae.Z)(Cr.name.slice(0,-1)),(0,ae.Z)(Lr)).join(er);return Cr.destroy?delete Kr[Ri]:Kr[Ri]=Cr,Kr})},[br,ir]=xe.useMemo(()=>{const Cr=(0,ae.Z)(nr.errors),Lr=(0,ae.Z)(nr.warnings);return Object.values(_n).forEach(ri=>{Cr.push.apply(Cr,(0,ae.Z)(ri.errors||[])),Lr.push.apply(Lr,(0,ae.Z)(ri.warnings||[]))}),[Cr,Lr]},[_n,nr.errors,nr.warnings]),Ur=gt();function Nr(Cr,Lr,ri){return $e&&!Dn?xe.createElement(Qn,{prefixCls:$t,hasFeedback:Rt.hasFeedback,validateStatus:Rt.validateStatus,meta:nr,errors:br,warnings:ir,noStyle:!0},Cr):xe.createElement(rr,Object.assign({key:"row"},Rt,{className:Le()(Xe,dn),prefixCls:$t,fieldId:Lr,isRequired:ri,errors:br,warnings:ir,meta:nr,onSubItemMetaChange:jr}),Cr)}if(!Yt&&!In&&!Ze)return vn(Nr(cn));let $r={};return typeof Tn=="string"?$r.label=Tn:ze&&($r.label=String(ze)),Fn&&($r=Object.assign(Object.assign({},$r),Fn)),vn(xe.createElement(tt.Field,Object.assign({},Rt,{messageVariables:$r,trigger:jn,validateTrigger:it,onMetaChange:Tr}),(Cr,Lr,ri)=>{const Kr=Ye(ze).length&&Lr?Lr.name:[],Ei=Pt(Kr,on),Ri=wn!==void 0?wn:!!(hn&&hn.some(Jn=>{if(Jn&&typeof Jn=="object"&&Jn.required&&!Jn.warningOnly)return!0;if(typeof Jn=="function"){const Jr=Jn(ri);return Jr&&Jr.required&&!Jr.warningOnly}return!1})),zr=Object.assign({},Cr);let qn=null;if(Array.isArray(cn)&&Yt)qn=cn;else if(!(In&&(!(Tt||Ze)||Yt))){if(!(Ze&&!In&&!Yt))if((0,ye.l$)(cn)){const Jn=Object.assign(Object.assign({},cn.props),zr);if(Jn.id||(Jn.id=Ei),Dt||br.length>0||ir.length>0||Rt.extra){const li=[];(Dt||br.length>0)&&li.push(`${Ei}_help`),Rt.extra&&li.push(`${Ei}_extra`),Jn["aria-describedby"]=li.join(" ")}br.length>0&&(Jn["aria-invalid"]="true"),Ri&&(Jn["aria-required"]="true"),(0,Xt.Yr)(cn)&&(Jn.ref=Ur(Kr,cn)),new Set([].concat((0,ae.Z)(Ye(jn)),(0,ae.Z)(Ye(it)))).forEach(li=>{Jn[li]=function(){for(var pi,fi,Qr,oi,ta,xr=arguments.length,Ir=new Array(xr),mi=0;mi<xr;mi++)Ir[mi]=arguments[mi];(Qr=zr[li])===null||Qr===void 0||(pi=Qr).call.apply(pi,[zr].concat(Ir)),(ta=(oi=cn.props)[li])===null||ta===void 0||(fi=ta).call.apply(fi,[oi].concat(Ir))}});const Rr=[Jn["aria-required"],Jn["aria-invalid"],Jn["aria-describedby"]];qn=xe.createElement(Pr,{value:zr[Rt.valuePropName||"value"],update:cn,childProps:Rr},(0,ye.Tm)(cn,Jn))}else In&&(Tt||Ze)&&!Yt?qn=cn(ri):qn=cn}return Nr(qn,Ei,Ri)}))}const qr=vr;qr.useStatus=he;var xi=qr,Ar=function(Rt,ze){var $e={};for(var Xe in Rt)Object.prototype.hasOwnProperty.call(Rt,Xe)&&ze.indexOf(Xe)<0&&($e[Xe]=Rt[Xe]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,Xe=Object.getOwnPropertySymbols(Rt);Ze<Xe.length;Ze++)ze.indexOf(Xe[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Xe[Ze])&&($e[Xe[Ze]]=Rt[Xe[Ze]]);return $e},Mr=Rt=>{var{prefixCls:ze,children:$e}=Rt,Xe=Ar(Rt,["prefixCls","children"]);const{getPrefixCls:Ze}=xe.useContext(Ut.E_),Et=Ze("form",ze),Tt=xe.useMemo(()=>({prefixCls:Et,status:"error"}),[Et]);return xe.createElement(tt.List,Object.assign({},Xe),(hn,ln,wn)=>xe.createElement(pe.Rk.Provider,{value:Tt},$e(hn.map(Tn=>Object.assign(Object.assign({},Tn),{fieldKey:Tn.key})),ln,{errors:wn.errors,warnings:wn.warnings})))};function tr(){const{form:Rt}=(0,xe.useContext)(pe.q3);return Rt}const Gn=nn;Gn.Item=xi,Gn.List=Mr,Gn.ErrorList=Lt,Gn.useForm=at,Gn.useFormInstance=tr,Gn.useWatch=tt.useWatch,Gn.Provider=pe.RV,Gn.create=()=>{};var Xr=Gn},8628:function(Mn,tn,oe){"use strict";var ae=oe(59301),Ae=oe(34280),Le=oe(56762),ct=oe(69507);function xe(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const pe=(0,ae.useRef)({}),ve=(0,Le.Z)(),Me=(0,ct.ZP)();return(0,Ae.Z)(()=>{const _e=Me.subscribe(vt=>{pe.current=vt,Ee&&ve()});return()=>Me.unsubscribe(_e)},[]),pe.current}tn.Z=xe},5871:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return fn}});var ae=oe(84105),Ae=oe(87395),Le=oe(92310),ct=oe.n(Le),xe=oe(60499),Ee=oe(18642),pe=oe(43749),ve=oe(72190),Me=oe(42244),_e=oe(38705),vt=oe(17212);function Fe(){return typeof BigInt=="function"}function qe(ut){return!ut&&ut!==0&&!Number.isNaN(ut)||!String(ut).trim()}function pt(ut){var De=ut.trim(),dt=De.startsWith("-");dt&&(De=De.slice(1)),De=De.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),De.startsWith(".")&&(De="0".concat(De));var Ft=De||"0",zt=Ft.split("."),an=zt[0]||"0",Bn=zt[1]||"0";an==="0"&&Bn==="0"&&(dt=!1);var qt=dt?"-":"";return{negative:dt,negativeStr:qt,trimStr:Ft,integerStr:an,decimalStr:Bn,fullStr:"".concat(qt).concat(Ft)}}function Ke(ut){var De=String(ut);return!Number.isNaN(Number(De))&&De.includes("e")}function je(ut){var De=String(ut);if(Ke(ut)){var dt=Number(De.slice(De.indexOf("e-")+2)),Ft=De.match(/\.(\d+)/);return Ft!=null&&Ft[1]&&(dt+=Ft[1].length),dt}return De.includes(".")&&mt(De)?De.length-De.indexOf(".")-1:0}function ft(ut){var De=String(ut);if(Ke(ut)){if(ut>Number.MAX_SAFE_INTEGER)return String(Fe()?BigInt(ut).toString():Number.MAX_SAFE_INTEGER);if(ut<Number.MIN_SAFE_INTEGER)return String(Fe()?BigInt(ut).toString():Number.MIN_SAFE_INTEGER);De=ut.toFixed(je(De))}return pt(De).fullStr}function mt(ut){return typeof ut=="number"?!Number.isNaN(ut):ut?/^\s*-?\d+(\.\d+)?\s*$/.test(ut)||/^\s*-?\d+\.\s*$/.test(ut)||/^\s*-?\.\d+\s*$/.test(ut):!1}var Bt=function(){function ut(De){if((0,_e.Z)(this,ut),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"negative",void 0),(0,Ee.Z)(this,"integer",void 0),(0,Ee.Z)(this,"decimal",void 0),(0,Ee.Z)(this,"decimalLen",void 0),(0,Ee.Z)(this,"empty",void 0),(0,Ee.Z)(this,"nan",void 0),qe(De)){this.empty=!0;return}if(this.origin=String(De),De==="-"||Number.isNaN(De)){this.nan=!0;return}var dt=De;if(Ke(dt)&&(dt=Number(dt)),dt=typeof dt=="string"?dt:ft(dt),mt(dt)){var Ft=pt(dt);this.negative=Ft.negative;var zt=Ft.trimStr.split(".");this.integer=BigInt(zt[0]);var an=zt[1]||"0";this.decimal=BigInt(an),this.decimalLen=an.length}else this.nan=!0}return(0,vt.Z)(ut,[{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(dt){var Ft="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(dt,"0"));return BigInt(Ft)}},{key:"negate",value:function(){var dt=new ut(this.toString());return dt.negative=!dt.negative,dt}},{key:"cal",value:function(dt,Ft,zt){var an=Math.max(this.getDecimalStr().length,dt.getDecimalStr().length),Bn=this.alignDecimal(an),qt=dt.alignDecimal(an),pn=Ft(Bn,qt).toString(),zn=zt(an),Vn=pt(pn),Pn=Vn.negativeStr,Qn=Vn.trimStr,gr="".concat(Pn).concat(Qn.padStart(zn+1,"0"));return new ut("".concat(gr.slice(0,-zn),".").concat(gr.slice(-zn)))}},{key:"add",value:function(dt){if(this.isInvalidate())return new ut(dt);var Ft=new ut(dt);return Ft.isInvalidate()?this:this.cal(Ft,function(zt,an){return zt+an},function(zt){return zt})}},{key:"multi",value:function(dt){var Ft=new ut(dt);return this.isInvalidate()||Ft.isInvalidate()?new ut(NaN):this.cal(Ft,function(zt,an){return zt*an},function(zt){return zt*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(dt){return this.toString()===(dt==null?void 0:dt.toString())}},{key:"lessEquals",value:function(dt){return this.add(dt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return dt?this.isInvalidate()?"":pt("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),ut}(),ht=function(){function ut(De){if((0,_e.Z)(this,ut),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"number",void 0),(0,Ee.Z)(this,"empty",void 0),qe(De)){this.empty=!0;return}this.origin=String(De),this.number=Number(De)}return(0,vt.Z)(ut,[{key:"negate",value:function(){return new ut(-this.toNumber())}},{key:"add",value:function(dt){if(this.isInvalidate())return new ut(dt);var Ft=Number(dt);if(Number.isNaN(Ft))return this;var zt=this.number+Ft;if(zt>Number.MAX_SAFE_INTEGER)return new ut(Number.MAX_SAFE_INTEGER);if(zt<Number.MIN_SAFE_INTEGER)return new ut(Number.MIN_SAFE_INTEGER);var an=Math.max(je(this.number),je(Ft));return new ut(zt.toFixed(an))}},{key:"multi",value:function(dt){var Ft=Number(dt);if(this.isInvalidate()||Number.isNaN(Ft))return new ut(NaN);var zt=this.number*Ft;if(zt>Number.MAX_SAFE_INTEGER)return new ut(Number.MAX_SAFE_INTEGER);if(zt<Number.MIN_SAFE_INTEGER)return new ut(Number.MIN_SAFE_INTEGER);var an=Math.max(je(this.number),je(Ft));return new ut(zt.toFixed(an))}},{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(dt){return this.toNumber()===(dt==null?void 0:dt.toNumber())}},{key:"lessEquals",value:function(dt){return this.add(dt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return dt?this.isInvalidate()?"":ft(this.number):this.origin}}]),ut}();function nt(ut){return Fe()?new Bt(ut):new ht(ut)}function Re(ut,De,dt){var Ft=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ut==="")return"";var zt=pt(ut),an=zt.negativeStr,Bn=zt.integerStr,qt=zt.decimalStr,pn="".concat(De).concat(qt),zn="".concat(an).concat(Bn);if(dt>=0){var Vn=Number(qt[dt]);if(Vn>=5&&!Ft){var Pn=nt(ut).add("".concat(an,"0.").concat("0".repeat(dt)).concat(10-Vn));return Re(Pn.toString(),De,dt,Ft)}return dt===0?zn:"".concat(zn).concat(De).concat(qt.padEnd(dt,"0").slice(0,dt))}return pn===".0"?zn:"".concat(zn).concat(pn)}var Ce=nt,Je=oe(93681),et=oe(34280),wt=oe(8654),Qe=oe(59301),bt=oe(48736);function Oe(ut,De){var dt=(0,Qe.useRef)(null);function Ft(){try{var an=ut.selectionStart,Bn=ut.selectionEnd,qt=ut.value,pn=qt.substring(0,an),zn=qt.substring(Bn);dt.current={start:an,end:Bn,value:qt,beforeTxt:pn,afterTxt:zn}}catch(Vn){}}function zt(){if(ut&&dt.current&&De)try{var an=ut.value,Bn=dt.current,qt=Bn.beforeTxt,pn=Bn.afterTxt,zn=Bn.start,Vn=an.length;if(an.endsWith(pn))Vn=an.length-dt.current.afterTxt.length;else if(an.startsWith(qt))Vn=qt.length;else{var Pn=qt[zn-1],Qn=an.indexOf(Pn,zn-1);Qn!==-1&&(Vn=Qn+1)}ut.setSelectionRange(Vn,Vn)}catch(gr){(0,bt.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(gr.message))}}return[Ft,zt]}var Lt=oe(49658),tt=function(){var De=(0,Qe.useState)(!1),dt=(0,ve.Z)(De,2),Ft=dt[0],zt=dt[1];return(0,et.Z)(function(){zt((0,Lt.Z)())},[]),Ft},Ut=tt,At=oe(16089),Mt=200,Wt=600;function It(ut){var De=ut.prefixCls,dt=ut.upNode,Ft=ut.downNode,zt=ut.upDisabled,an=ut.downDisabled,Bn=ut.onStep,qt=Qe.useRef(),pn=Qe.useRef([]),zn=Qe.useRef();zn.current=Bn;var Vn=function(){clearTimeout(qt.current)},Pn=function(Wr,vr){Wr.preventDefault(),Vn(),zn.current(vr);function qr(){zn.current(vr),qt.current=setTimeout(qr,Mt)}qt.current=setTimeout(qr,Wt)};Qe.useEffect(function(){return function(){Vn(),pn.current.forEach(function($n){return At.Z.cancel($n)})}},[]);var Qn=Ut();if(Qn)return null;var gr="".concat(De,"-handler"),rr=ct()(gr,"".concat(gr,"-up"),(0,Ee.Z)({},"".concat(gr,"-up-disabled"),zt)),er=ct()(gr,"".concat(gr,"-down"),(0,Ee.Z)({},"".concat(gr,"-down-disabled"),an)),pr=function(){return pn.current.push((0,At.Z)(Vn))},Pr={unselectable:"on",role:"button",onMouseUp:pr,onMouseLeave:pr};return Qe.createElement("div",{className:"".concat(gr,"-wrap")},Qe.createElement("span",(0,xe.Z)({},Pr,{onMouseDown:function(Wr){Pn(Wr,!0)},"aria-label":"Increase Value","aria-disabled":zt,className:rr}),dt||Qe.createElement("span",{unselectable:"on",className:"".concat(De,"-handler-up-inner")})),Qe.createElement("span",(0,xe.Z)({},Pr,{onMouseDown:function(Wr){Pn(Wr,!1)},"aria-label":"Decrease Value","aria-disabled":an,className:er}),Ft||Qe.createElement("span",{unselectable:"on",className:"".concat(De,"-handler-down-inner")})))}function Ge(ut){var De=typeof ut=="number"?ft(ut):pt(ut).fullStr,dt=De.includes(".");return dt?pt(De.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:ut+"0"}var be=oe(5643),Ye=function(){var ut=(0,Qe.useRef)(0),De=function(){At.Z.cancel(ut.current)};return(0,Qe.useEffect)(function(){return De},[]),function(dt){De(),ut.current=(0,At.Z)(function(){dt()})}},Pt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],xt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Ue=function(De,dt){return De||dt.isEmpty()?dt.toString():dt.toNumber()},at=function(De){var dt=Ce(De);return dt.isInvalidate()?null:dt},Ot=Qe.forwardRef(function(ut,De){var dt,Ft=ut.prefixCls,zt=Ft===void 0?"rc-input-number":Ft,an=ut.className,Bn=ut.style,qt=ut.min,pn=ut.max,zn=ut.step,Vn=zn===void 0?1:zn,Pn=ut.defaultValue,Qn=ut.value,gr=ut.disabled,rr=ut.readOnly,er=ut.upHandler,pr=ut.downHandler,Pr=ut.keyboard,$n=ut.controls,Wr=$n===void 0?!0:$n,vr=ut.classNames,qr=ut.stringMode,xi=ut.parser,Ar=ut.formatter,dr=ut.precision,Mr=ut.decimalSeparator,tr=ut.onChange,Gn=ut.onInput,Xr=ut.onPressEnter,Rt=ut.onStep,ze=(0,Me.Z)(ut,Pt),$e="".concat(zt,"-input"),Xe=Qe.useRef(null),Ze=Qe.useState(!1),Et=(0,ve.Z)(Ze,2),Tt=Et[0],hn=Et[1],ln=Qe.useRef(!1),wn=Qe.useRef(!1),Tn=Qe.useRef(!1),Fn=Qe.useState(function(){return Ce(Qn!=null?Qn:Pn)}),jn=(0,ve.Z)(Fn,2),Qt=jn[0],Dn=jn[1];function Dt(qn){Qn===void 0&&Dn(qn)}var Zt=Qe.useCallback(function(qn,Jn){if(!Jn)return dr>=0?dr:Math.max(je(qn),je(Vn))},[dr,Vn]),on=Qe.useCallback(function(qn){var Jn=String(qn);if(xi)return xi(Jn);var Jr=Jn;return Mr&&(Jr=Jr.replace(Mr,".")),Jr.replace(/[^\w.-]+/g,"")},[xi,Mr]),cn=Qe.useRef(""),In=Qe.useCallback(function(qn,Jn){if(Ar)return Ar(qn,{userTyping:Jn,input:String(cn.current)});var Jr=typeof qn=="number"?ft(qn):qn;if(!Jn){var Rr=Zt(Jr,Jn);if(mt(Jr)&&(Mr||Rr>=0)){var li=Mr||".";Jr=Re(Jr,li,Rr)}}return Jr},[Ar,Zt,Mr]),en=Qe.useState(function(){var qn=Pn!=null?Pn:Qn;return Qt.isInvalidate()&&["string","number"].includes((0,pe.Z)(qn))?Number.isNaN(qn)?"":qn:In(Qt.toString(),!1)}),Ln=(0,ve.Z)(en,2),it=Ln[0],Yt=Ln[1];cn.current=it;function $t(qn,Jn){Yt(In(qn.isInvalidate()?qn.toString(!1):qn.toString(!Jn),Jn))}var vn=Qe.useMemo(function(){return at(pn)},[pn,dr]),dn=Qe.useMemo(function(){return at(qt)},[qt,dr]),xn=Qe.useMemo(function(){return!vn||!Qt||Qt.isInvalidate()?!1:vn.lessEquals(Qt)},[vn,Qt]),yn=Qe.useMemo(function(){return!dn||!Qt||Qt.isInvalidate()?!1:Qt.lessEquals(dn)},[dn,Qt]),_n=Oe(Xe.current,Tt),Un=(0,ve.Z)(_n,2),nr=Un[0],mr=Un[1],Tr=function(Jn){return vn&&!Jn.lessEquals(vn)?vn:dn&&!dn.lessEquals(Jn)?dn:null},jr=function(Jn){return!Tr(Jn)},br=function(Jn,Jr){var Rr=Jn,li=jr(Rr)||Rr.isEmpty();if(!Rr.isEmpty()&&!Jr&&(Rr=Tr(Rr)||Rr,li=!0),!rr&&!gr&&li){var pi=Rr.toString(),fi=Zt(pi,Jr);return fi>=0&&(Rr=Ce(Re(pi,".",fi)),jr(Rr)||(Rr=Ce(Re(pi,".",fi,!0)))),Rr.equals(Qt)||(Dt(Rr),tr==null||tr(Rr.isEmpty()?null:Ue(qr,Rr)),Qn===void 0&&$t(Rr,Jr)),Rr}return Qt},ir=Ye(),Ur=function qn(Jn){if(nr(),cn.current=Jn,Yt(Jn),!wn.current){var Jr=on(Jn),Rr=Ce(Jr);Rr.isNaN()||br(Rr,!0)}Gn==null||Gn(Jn),ir(function(){var li=Jn;xi||(li=Jn.replace(/。/g,".")),li!==Jn&&qn(li)})},Nr=function(){wn.current=!0},$r=function(){wn.current=!1,Ur(Xe.current.value)},Cr=function(Jn){Ur(Jn.target.value)},Lr=function(Jn){var Jr;if(!(Jn&&xn||!Jn&&yn)){ln.current=!1;var Rr=Ce(Tn.current?Ge(Vn):Vn);Jn||(Rr=Rr.negate());var li=(Qt||Ce(0)).add(Rr.toString()),pi=br(li,!1);Rt==null||Rt(Ue(qr,pi),{offset:Tn.current?Ge(Vn):Vn,type:Jn?"up":"down"}),(Jr=Xe.current)===null||Jr===void 0||Jr.focus()}},ri=function(Jn){var Jr=Ce(on(it)),Rr=Jr;Jr.isNaN()?Rr=br(Qt,Jn):Rr=br(Jr,Jn),Qn!==void 0?$t(Qt,!1):Rr.isNaN()||$t(Rr,!1)},Kr=function(){ln.current=!0},Ei=function(Jn){var Jr=Jn.key,Rr=Jn.shiftKey;ln.current=!0,Tn.current=Rr,Jr==="Enter"&&(wn.current||(ln.current=!1),ri(!1),Xr==null||Xr(Jn)),Pr!==!1&&!wn.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Jr)&&(Lr(Jr==="Up"||Jr==="ArrowUp"),Jn.preventDefault())},Ri=function(){ln.current=!1,Tn.current=!1},zr=function(){ri(!1),hn(!1),ln.current=!1};return(0,et.o)(function(){Qt.isInvalidate()||$t(Qt,!1)},[dr]),(0,et.o)(function(){var qn=Ce(Qn);Dn(qn);var Jn=Ce(on(it));(!qn.equals(Jn)||!ln.current||Ar)&&$t(qn,ln.current)},[Qn]),(0,et.o)(function(){Ar&&mr()},[it]),Qe.createElement("div",{className:ct()(zt,vr==null?void 0:vr.input,an,(dt={},(0,Ee.Z)(dt,"".concat(zt,"-focused"),Tt),(0,Ee.Z)(dt,"".concat(zt,"-disabled"),gr),(0,Ee.Z)(dt,"".concat(zt,"-readonly"),rr),(0,Ee.Z)(dt,"".concat(zt,"-not-a-number"),Qt.isNaN()),(0,Ee.Z)(dt,"".concat(zt,"-out-of-range"),!Qt.isInvalidate()&&!jr(Qt)),dt)),style:Bn,onFocus:function(){hn(!0)},onBlur:zr,onKeyDown:Ei,onKeyUp:Ri,onCompositionStart:Nr,onCompositionEnd:$r,onBeforeInput:Kr},Wr&&Qe.createElement(It,{prefixCls:zt,upNode:er,downNode:pr,upDisabled:xn,downDisabled:yn,onStep:Lr}),Qe.createElement("div",{className:"".concat($e,"-wrap")},Qe.createElement("input",(0,xe.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":qt,"aria-valuemax":pn,"aria-valuenow":Qt.isInvalidate()?null:Qt.toString(),step:Vn},ze,{ref:(0,wt.sQ)(Xe,De),className:$e,value:it,onChange:Cr,disabled:gr,readOnly:rr}))))}),kn=Qe.forwardRef(function(ut,De){var dt=ut.disabled,Ft=ut.style,zt=ut.prefixCls,an=ut.value,Bn=ut.prefix,qt=ut.suffix,pn=ut.addonBefore,zn=ut.addonAfter,Vn=ut.classes,Pn=ut.className,Qn=ut.classNames,gr=(0,Me.Z)(ut,xt),rr=Qe.useRef(null),er=function(Pr){rr.current&&(0,be.nH)(rr.current,Pr)};return Qe.createElement(Je.BaseInput,{inputElement:Qe.createElement(Ot,(0,xe.Z)({prefixCls:zt,disabled:dt,classNames:Qn,ref:(0,wt.sQ)(rr,De)},gr)),className:Pn,triggerFocus:er,prefixCls:zt,value:an,disabled:dt,style:Ft,prefix:Bn,suffix:qt,addonAfter:zn,addonBefore:pn,classes:Vn,classNames:Qn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});kn.displayName="InputNumber";var Kt=kn,gn=Kt,nn=oe(19080),Gt=oe(36355),Xt=oe(92736),ye=oe(1684),ue=oe(19716),ce=oe(32441),de=oe(33234),he=oe(9937),se=oe(17313),ke=oe(74207),gt=oe(83116),Ie=oe(37613);const Be=(ut,De)=>{let{componentCls:dt,borderRadiusSM:Ft,borderRadiusLG:zt}=ut;const an=De==="lg"?zt:Ft;return{[`&-${De}`]:{[`${dt}-handler-wrap`]:{borderStartEndRadius:an,borderEndEndRadius:an},[`${dt}-handler-up`]:{borderStartEndRadius:an},[`${dt}-handler-down`]:{borderEndEndRadius:an}}}},yt=ut=>{const{componentCls:De,lineWidth:dt,lineType:Ft,colorBorder:zt,borderRadius:an,fontSizeLG:Bn,controlHeightLG:qt,controlHeightSM:pn,colorError:zn,paddingInlineSM:Vn,colorTextDescription:Pn,motionDurationMid:Qn,handleHoverColor:gr,paddingInline:rr,paddingBlock:er,handleBg:pr,handleActiveBg:Pr,colorTextDisabled:$n,borderRadiusSM:Wr,borderRadiusLG:vr,controlWidth:qr,handleVisible:xi,handleBorderColor:Ar}=ut;return[{[De]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,se.Wf)(ut)),(0,he.ik)(ut)),(0,he.bi)(ut,De)),{display:"inline-block",width:qr,margin:0,padding:0,border:`${dt}px ${Ft} ${zt}`,borderRadius:an,"&-rtl":{direction:"rtl",[`${De}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Bn,borderRadius:vr,[`input${De}-input`]:{height:qt-2*dt}},"&-sm":{padding:0,borderRadius:Wr,[`input${De}-input`]:{height:pn-2*dt,padding:`0 ${Vn}px`}},"&:hover":Object.assign({},(0,he.pU)(ut)),"&-focused":Object.assign({},(0,he.M1)(ut)),"&-out-of-range":{[`${De}-input-wrap`]:{input:{color:zn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,se.Wf)(ut)),(0,he.s7)(ut)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${De}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${De}-group-addon`]:{borderRadius:vr,fontSize:ut.fontSizeLG}},"&-sm":{[`${De}-group-addon`]:{borderRadius:Wr}},[`${De}-wrapper-disabled > ${De}-group-addon`]:Object.assign({},(0,he.Xy)(ut))}}),[`&-disabled ${De}-input`]:{cursor:"not-allowed"},[De]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,se.Wf)(ut)),{width:"100%",padding:`${er}px ${rr}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:an,outline:0,transition:`all ${Qn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,he.nz)(ut.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[De]:Object.assign(Object.assign(Object.assign({[`&:hover ${De}-handler-wrap, &-focused ${De}-handler-wrap`]:{opacity:1},[`${De}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:ut.handleWidth,height:"100%",background:pr,borderStartStartRadius:0,borderStartEndRadius:an,borderEndEndRadius:an,borderEndStartRadius:0,opacity:xi===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Qn} linear ${Qn}`,[`${De}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${De}-handler-up-inner,
|
|
|
${De}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:ut.handleFontSize}}},[`${De}-handler`]:{height:"50%",overflow:"hidden",color:Pn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${dt}px ${Ft} ${Ar}`,transition:`all ${Qn} linear`,"&:active":{background:Pr},"&:hover":{height:"60%",[`
|
|
|
${De}-handler-up-inner,
|
|
|
${De}-handler-down-inner
|
|
|
`]:{color:gr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,se.Ro)()),{color:Pn,transition:`all ${Qn} linear`,userSelect:"none"})},[`${De}-handler-up`]:{borderStartEndRadius:an},[`${De}-handler-down`]:{borderBlockStart:`${dt}px ${Ft} ${Ar}`,borderEndEndRadius:an}},Be(ut,"lg")),Be(ut,"sm")),{"&-disabled, &-readonly":{[`${De}-handler-wrap`]:{display:"none"},[`${De}-input`]:{color:"inherit"}},[`
|
|
|
${De}-handler-up-disabled,
|
|
|
${De}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${De}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${De}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:$n}})},{[`${De}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${De}-handler-down`]:{borderBlockStartWidth:0}}}]},rt=ut=>{const{componentCls:De,paddingBlock:dt,paddingInline:Ft,inputAffixPadding:zt,controlWidth:an,borderRadiusLG:Bn,borderRadiusSM:qt}=ut;return{[`${De}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,he.ik)(ut)),(0,he.bi)(ut,`${De}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:an,padding:0,paddingInlineStart:Ft,"&-lg":{borderRadius:Bn},"&-sm":{borderRadius:qt},[`&:not(${De}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,he.pU)(ut)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${De}-disabled`]:{background:"transparent"},[`> div${De}`]:{width:"100%",border:"none",outline:"none",[`&${De}-focused`]:{boxShadow:"none !important"}},[`input${De}-input`]:{padding:`${dt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${De}-handler-wrap`]:{zIndex:2},[De]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:zt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Ft,marginInlineStart:zt}}})}};var Ve=(0,gt.Z)("InputNumber",ut=>{const De=(0,Ie.TS)(ut,(0,he.e5)(ut));return[yt(De),rt(De),(0,ke.c)(De)]},ut=>Object.assign(Object.assign({},(0,he.TM)(ut)),{controlWidth:90,handleWidth:ut.controlHeightSM-ut.lineWidth*2,handleFontSize:ut.fontSize/2,handleVisible:"auto",handleActiveBg:ut.colorFillAlter,handleBg:ut.colorBgContainer,handleHoverColor:ut.colorPrimary,handleBorderColor:ut.colorBorder})),Ct=function(ut,De){var dt={};for(var Ft in ut)Object.prototype.hasOwnProperty.call(ut,Ft)&&De.indexOf(Ft)<0&&(dt[Ft]=ut[Ft]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Ft=Object.getOwnPropertySymbols(ut);zt<Ft.length;zt++)De.indexOf(Ft[zt])<0&&Object.prototype.propertyIsEnumerable.call(ut,Ft[zt])&&(dt[Ft[zt]]=ut[Ft[zt]]);return dt};const rn=Qe.forwardRef((ut,De)=>{const{getPrefixCls:dt,direction:Ft}=Qe.useContext(Gt.E_),zt=Qe.useRef(null);Qe.useImperativeHandle(De,()=>zt.current);const{className:an,rootClassName:Bn,size:qt,disabled:pn,prefixCls:zn,addonBefore:Vn,addonAfter:Pn,prefix:Qn,bordered:gr=!0,readOnly:rr,status:er,controls:pr}=ut,Pr=Ct(ut,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),$n=dt("input-number",zn),[Wr,vr]=Ve($n),{compactSize:qr,compactItemClassnames:xi}=(0,de.ri)($n,Ft);let Ar=Qe.createElement(Ae.Z,{className:`${$n}-handler-up-inner`}),dr=Qe.createElement(ae.Z,{className:`${$n}-handler-down-inner`});const Mr=typeof pr=="boolean"?pr:void 0;typeof pr=="object"&&(Ar=typeof pr.upIcon=="undefined"?Ar:Qe.createElement("span",{className:`${$n}-handler-up-inner`},pr.upIcon),dr=typeof pr.downIcon=="undefined"?dr:Qe.createElement("span",{className:`${$n}-handler-down-inner`},pr.downIcon));const{hasFeedback:tr,status:Gn,isFormItemInput:Xr,feedbackIcon:Rt}=Qe.useContext(ce.aM),ze=(0,nn.F)(Gn,er),$e=(0,ue.Z)(ln=>{var wn;return(wn=qt!=null?qt:qr)!==null&&wn!==void 0?wn:ln}),Xe=Qe.useContext(ye.Z),Ze=pn!=null?pn:Xe,Et=ct()({[`${$n}-lg`]:$e==="large",[`${$n}-sm`]:$e==="small",[`${$n}-rtl`]:Ft==="rtl",[`${$n}-borderless`]:!gr,[`${$n}-in-form-item`]:Xr},(0,nn.Z)($n,ze),xi,vr),Tt=`${$n}-group`,hn=Qe.createElement(gn,Object.assign({ref:zt,disabled:Ze,className:ct()(an,Bn),upHandler:Ar,downHandler:dr,prefixCls:$n,readOnly:rr,controls:Mr,prefix:Qn,suffix:tr&&Rt,addonAfter:Pn&&Qe.createElement(de.BR,null,Qe.createElement(ce.Ux,{override:!0,status:!0},Pn)),addonBefore:Vn&&Qe.createElement(de.BR,null,Qe.createElement(ce.Ux,{override:!0,status:!0},Vn)),classNames:{input:Et},classes:{affixWrapper:ct()((0,nn.Z)(`${$n}-affix-wrapper`,ze,tr),{[`${$n}-affix-wrapper-sm`]:$e==="small",[`${$n}-affix-wrapper-lg`]:$e==="large",[`${$n}-affix-wrapper-rtl`]:Ft==="rtl",[`${$n}-affix-wrapper-borderless`]:!gr},vr),wrapper:ct()({[`${Tt}-rtl`]:Ft==="rtl",[`${$n}-wrapper-disabled`]:Ze},vr),group:ct()({[`${$n}-group-wrapper-sm`]:$e==="small",[`${$n}-group-wrapper-lg`]:$e==="large",[`${$n}-group-wrapper-rtl`]:Ft==="rtl"},(0,nn.Z)(`${$n}-group-wrapper`,ze,tr),vr)}},Pr));return Wr(hn)}),lt=rn,_t=ut=>Qe.createElement(Xt.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Qe.createElement(rn,Object.assign({},ut)));lt._InternalPanelDoNotUseOrYouWillBeFired=_t;var fn=lt},9432:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return Bt},n:function(){return ft}});var ae=oe(19248),Ae=oe(92310),Le=oe.n(Ae),ct=oe(93681),xe=oe(8654),Ee=oe(59301),pe=oe(19080),ve=oe(36355),Me=oe(1684),_e=oe(19716),vt=oe(32441),Fe=oe(33234),qe=oe(59412),pt=oe(9937);function Ke(ht){return!!(ht.prefix||ht.suffix||ht.allowClear)}var je=function(ht,nt){var Re={};for(var Ce in ht)Object.prototype.hasOwnProperty.call(ht,Ce)&&nt.indexOf(Ce)<0&&(Re[Ce]=ht[Ce]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Ce=Object.getOwnPropertySymbols(ht);Je<Ce.length;Je++)nt.indexOf(Ce[Je])<0&&Object.prototype.propertyIsEnumerable.call(ht,Ce[Je])&&(Re[Ce[Je]]=ht[Ce[Je]]);return Re};function ft(ht,nt){if(!ht)return;ht.focus(nt);const{cursor:Re}=nt||{};if(Re){const Ce=ht.value.length;switch(Re){case"start":ht.setSelectionRange(0,0);break;case"end":ht.setSelectionRange(Ce,Ce);break;default:ht.setSelectionRange(0,Ce);break}}}var Bt=(0,Ee.forwardRef)((ht,nt)=>{var Re;const{prefixCls:Ce,bordered:Je=!0,status:et,size:wt,disabled:Qe,onBlur:bt,onFocus:Oe,suffix:Lt,allowClear:tt,addonAfter:Ut,addonBefore:At,className:Mt,style:Wt,styles:It,rootClassName:Ge,onChange:be,classNames:Ye}=ht,Pt=je(ht,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:xt,direction:Ue,input:at}=Ee.useContext(ve.E_),Ot=xt("input",Ce),kn=(0,Ee.useRef)(null),[Kt,gn]=(0,pt.ZP)(Ot),{compactSize:nn,compactItemClassnames:Gt}=(0,Fe.ri)(Ot,Ue),Xt=(0,_e.Z)(rn=>{var lt;return(lt=wt!=null?wt:nn)!==null&<!==void 0?lt:rn}),ye=Ee.useContext(Me.Z),ue=Qe!=null?Qe:ye,{status:ce,hasFeedback:de,feedbackIcon:he}=(0,Ee.useContext)(vt.aM),se=(0,pe.F)(ce,et),ke=Ke(ht)||!!de,gt=(0,Ee.useRef)(ke);(0,Ee.useEffect)(()=>{var rn;ke&>.current,gt.current=ke},[ke]);const Ie=(0,qe.Z)(kn,!0),Be=rn=>{Ie(),bt==null||bt(rn)},yt=rn=>{Ie(),Oe==null||Oe(rn)},rt=rn=>{Ie(),be==null||be(rn)},Ve=(de||Lt)&&Ee.createElement(Ee.Fragment,null,Lt,de&&he);let Ct;return typeof tt=="object"&&(tt!=null&&tt.clearIcon)?Ct=tt:tt&&(Ct={clearIcon:Ee.createElement(ae.Z,null)}),Kt(Ee.createElement(ct.default,Object.assign({ref:(0,xe.sQ)(nt,kn),prefixCls:Ot,autoComplete:at==null?void 0:at.autoComplete},Pt,{disabled:ue,onBlur:Be,onFocus:yt,style:Object.assign(Object.assign({},at==null?void 0:at.style),Wt),styles:Object.assign(Object.assign({},at==null?void 0:at.styles),It),suffix:Ve,allowClear:Ct,className:Le()(Mt,Ge,Gt,at==null?void 0:at.className),onChange:rt,addonAfter:Ut&&Ee.createElement(Fe.BR,null,Ee.createElement(vt.Ux,{override:!0,status:!0},Ut)),addonBefore:At&&Ee.createElement(Fe.BR,null,Ee.createElement(vt.Ux,{override:!0,status:!0},At)),classNames:Object.assign(Object.assign(Object.assign({},Ye),at==null?void 0:at.classNames),{input:Le()({[`${Ot}-sm`]:Xt==="small",[`${Ot}-lg`]:Xt==="large",[`${Ot}-rtl`]:Ue==="rtl",[`${Ot}-borderless`]:!Je},!ke&&(0,pe.Z)(Ot,se),Ye==null?void 0:Ye.input,(Re=at==null?void 0:at.classNames)===null||Re===void 0?void 0:Re.input,gn)}),classes:{affixWrapper:Le()({[`${Ot}-affix-wrapper-sm`]:Xt==="small",[`${Ot}-affix-wrapper-lg`]:Xt==="large",[`${Ot}-affix-wrapper-rtl`]:Ue==="rtl",[`${Ot}-affix-wrapper-borderless`]:!Je},(0,pe.Z)(`${Ot}-affix-wrapper`,se,de),gn),wrapper:Le()({[`${Ot}-group-rtl`]:Ue==="rtl"},gn),group:Le()({[`${Ot}-group-wrapper-sm`]:Xt==="small",[`${Ot}-group-wrapper-lg`]:Xt==="large",[`${Ot}-group-wrapper-rtl`]:Ue==="rtl",[`${Ot}-group-wrapper-disabled`]:ue},(0,pe.Z)(`${Ot}-group-wrapper`,se,de),gn)}})))})},1643:function(Mn,tn,oe){"use strict";var ae=oe(19248),Ae=oe(92310),Le=oe.n(Ae),ct=oe(9296),xe=oe(59301),Ee=oe(19080),pe=oe(36355),ve=oe(1684),Me=oe(19716),_e=oe(32441),vt=oe(9432),Fe=oe(9937),qe=function(Ke,je){var ft={};for(var mt in Ke)Object.prototype.hasOwnProperty.call(Ke,mt)&&je.indexOf(mt)<0&&(ft[mt]=Ke[mt]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,mt=Object.getOwnPropertySymbols(Ke);Bt<mt.length;Bt++)je.indexOf(mt[Bt])<0&&Object.prototype.propertyIsEnumerable.call(Ke,mt[Bt])&&(ft[mt[Bt]]=Ke[mt[Bt]]);return ft};const pt=(0,xe.forwardRef)((Ke,je)=>{const{prefixCls:ft,bordered:mt=!0,size:Bt,disabled:ht,status:nt,allowClear:Re,showCount:Ce,classNames:Je,rootClassName:et,className:wt}=Ke,Qe=qe(Ke,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:bt,direction:Oe}=xe.useContext(pe.E_),Lt=(0,Me.Z)(Bt),tt=xe.useContext(ve.Z),Ut=ht!=null?ht:tt,{status:At,hasFeedback:Mt,feedbackIcon:Wt}=xe.useContext(_e.aM),It=(0,Ee.F)(At,nt),Ge=xe.useRef(null);xe.useImperativeHandle(je,()=>{var Ue;return{resizableTextArea:(Ue=Ge.current)===null||Ue===void 0?void 0:Ue.resizableTextArea,focus:at=>{var Ot,kn;(0,vt.n)((kn=(Ot=Ge.current)===null||Ot===void 0?void 0:Ot.resizableTextArea)===null||kn===void 0?void 0:kn.textArea,at)},blur:()=>{var at;return(at=Ge.current)===null||at===void 0?void 0:at.blur()}}});const be=bt("input",ft);let Ye;typeof Re=="object"&&(Re!=null&&Re.clearIcon)?Ye=Re:Re&&(Ye={clearIcon:xe.createElement(ae.Z,null)});const[Pt,xt]=(0,Fe.ZP)(be);return Pt(xe.createElement(ct.default,Object.assign({},Qe,{disabled:Ut,allowClear:Ye,className:Le()(wt,et),classes:{affixWrapper:Le()(`${be}-textarea-affix-wrapper`,{[`${be}-affix-wrapper-rtl`]:Oe==="rtl",[`${be}-affix-wrapper-borderless`]:!mt,[`${be}-affix-wrapper-sm`]:Lt==="small",[`${be}-affix-wrapper-lg`]:Lt==="large",[`${be}-textarea-show-count`]:Ce},(0,Ee.Z)(`${be}-affix-wrapper`,It),xt)},classNames:Object.assign(Object.assign({},Je),{textarea:Le()({[`${be}-borderless`]:!mt,[`${be}-sm`]:Lt==="small",[`${be}-lg`]:Lt==="large"},(0,Ee.Z)(be,It),xt,Je==null?void 0:Je.textarea)}),prefixCls:be,suffix:Mt&&xe.createElement("span",{className:`${be}-textarea-suffix`},Wt),showCount:Ce,ref:Ge})))});tn.Z=pt},59412:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return Ae}});var ae=oe(59301);function Ae(Le,ct){const xe=(0,ae.useRef)([]),Ee=()=>{xe.current.push(setTimeout(()=>{var pe,ve,Me,_e;!((pe=Le.current)===null||pe===void 0)&&pe.input&&((ve=Le.current)===null||ve===void 0?void 0:ve.input.getAttribute("type"))==="password"&&(!((Me=Le.current)===null||Me===void 0)&&Me.input.hasAttribute("value"))&&((_e=Le.current)===null||_e===void 0||_e.input.removeAttribute("value"))}))};return(0,ae.useEffect)(()=>(ct&&Ee(),()=>xe.current.forEach(pe=>{pe&&clearTimeout(pe)})),[]),Ee}},92832:function(Mn,tn,oe){"use strict";oe.d(tn,{default:function(){return Lt}});var ae=oe(92310),Ae=oe.n(ae),Le=oe(59301),ct=oe(36355),xe=oe(32441),Ee=oe(9937),ve=tt=>{const{getPrefixCls:Ut,direction:At}=(0,Le.useContext)(ct.E_),{prefixCls:Mt,className:Wt}=tt,It=Ut("input-group",Mt),Ge=Ut("input"),[be,Ye]=(0,Ee.ZP)(Ge),Pt=Ae()(It,{[`${It}-lg`]:tt.size==="large",[`${It}-sm`]:tt.size==="small",[`${It}-compact`]:tt.compact,[`${It}-rtl`]:At==="rtl"},Ye,Wt),xt=(0,Le.useContext)(xe.aM),Ue=(0,Le.useMemo)(()=>Object.assign(Object.assign({},xt),{isFormItemInput:!1}),[xt]);return be(Le.createElement("span",{className:Pt,style:tt.style,onMouseEnter:tt.onMouseEnter,onMouseLeave:tt.onMouseLeave,onFocus:tt.onFocus,onBlur:tt.onBlur},Le.createElement(xe.aM.Provider,{value:Ue},tt.children)))},Me=oe(9432),_e=oe(73331),vt=oe(15277),Fe=oe(2738),qe=oe(8654),pt=oe(59412),Ke=function(tt,Ut){var At={};for(var Mt in tt)Object.prototype.hasOwnProperty.call(tt,Mt)&&Ut.indexOf(Mt)<0&&(At[Mt]=tt[Mt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,Mt=Object.getOwnPropertySymbols(tt);Wt<Mt.length;Wt++)Ut.indexOf(Mt[Wt])<0&&Object.prototype.propertyIsEnumerable.call(tt,Mt[Wt])&&(At[Mt[Wt]]=tt[Mt[Wt]]);return At};const je=tt=>tt?Le.createElement(vt.Z,null):Le.createElement(_e.Z,null),ft={click:"onClick",hover:"onMouseOver"};var Bt=Le.forwardRef((tt,Ut)=>{const{visibilityToggle:At=!0}=tt,Mt=typeof At=="object"&&At.visible!==void 0,[Wt,It]=(0,Le.useState)(()=>Mt?At.visible:!1),Ge=(0,Le.useRef)(null);Le.useEffect(()=>{Mt&&It(At.visible)},[Mt,At]);const be=(0,pt.Z)(Ge),Ye=()=>{const{disabled:ue}=tt;ue||(Wt&&be(),It(ce=>{var de;const he=!ce;return typeof At=="object"&&((de=At.onVisibleChange)===null||de===void 0||de.call(At,he)),he}))},Pt=ue=>{const{action:ce="click",iconRender:de=je}=tt,he=ft[ce]||"",se=de(Wt),ke={[he]:Ye,className:`${ue}-icon`,key:"passwordIcon",onMouseDown:gt=>{gt.preventDefault()},onMouseUp:gt=>{gt.preventDefault()}};return Le.cloneElement(Le.isValidElement(se)?se:Le.createElement("span",null,se),ke)},{className:xt,prefixCls:Ue,inputPrefixCls:at,size:Ot}=tt,kn=Ke(tt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Kt}=Le.useContext(ct.E_),gn=Kt("input",at),nn=Kt("input-password",Ue),Gt=At&&Pt(nn),Xt=Ae()(nn,xt,{[`${nn}-${Ot}`]:!!Ot}),ye=Object.assign(Object.assign({},(0,Fe.Z)(kn,["suffix","iconRender","visibilityToggle"])),{type:Wt?"text":"password",className:Xt,prefixCls:gn,suffix:Gt});return Ot&&(ye.size=Ot),Le.createElement(Me.Z,Object.assign({ref:(0,qe.sQ)(Ut,Ge)},ye))}),ht=oe(47472),nt=oe(92343),Re=oe(3113),Ce=oe(19716),Je=oe(33234),et=function(tt,Ut){var At={};for(var Mt in tt)Object.prototype.hasOwnProperty.call(tt,Mt)&&Ut.indexOf(Mt)<0&&(At[Mt]=tt[Mt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,Mt=Object.getOwnPropertySymbols(tt);Wt<Mt.length;Wt++)Ut.indexOf(Mt[Wt])<0&&Object.prototype.propertyIsEnumerable.call(tt,Mt[Wt])&&(At[Mt[Wt]]=tt[Mt[Wt]]);return At},Qe=Le.forwardRef((tt,Ut)=>{const{prefixCls:At,inputPrefixCls:Mt,className:Wt,size:It,suffix:Ge,enterButton:be=!1,addonAfter:Ye,loading:Pt,disabled:xt,onSearch:Ue,onChange:at,onCompositionStart:Ot,onCompositionEnd:kn}=tt,Kt=et(tt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:gn,direction:nn}=Le.useContext(ct.E_),Gt=Le.useRef(!1),Xt=gn("input-search",At),ye=gn("input",Mt),{compactSize:ue}=(0,Je.ri)(Xt,nn),ce=(0,Ce.Z)(_t=>{var fn;return(fn=It!=null?It:ue)!==null&&fn!==void 0?fn:_t}),de=Le.useRef(null),he=_t=>{_t&&_t.target&&_t.type==="click"&&Ue&&Ue(_t.target.value,_t,{source:"clear"}),at&&at(_t)},se=_t=>{var fn;document.activeElement===((fn=de.current)===null||fn===void 0?void 0:fn.input)&&_t.preventDefault()},ke=_t=>{var fn,ut;Ue&&Ue((ut=(fn=de.current)===null||fn===void 0?void 0:fn.input)===null||ut===void 0?void 0:ut.value,_t,{source:"input"})},gt=_t=>{Gt.current||Pt||ke(_t)},Ie=typeof be=="boolean"?Le.createElement(ht.Z,null):null,Be=`${Xt}-button`;let yt;const rt=be||{},Ve=rt.type&&rt.type.__ANT_BUTTON===!0;Ve||rt.type==="button"?yt=(0,nt.Tm)(rt,Object.assign({onMouseDown:se,onClick:_t=>{var fn,ut;(ut=(fn=rt==null?void 0:rt.props)===null||fn===void 0?void 0:fn.onClick)===null||ut===void 0||ut.call(fn,_t),ke(_t)},key:"enterButton"},Ve?{className:Be,size:ce}:{})):yt=Le.createElement(Re.ZP,{className:Be,type:be?"primary":void 0,size:ce,disabled:xt,key:"enterButton",onMouseDown:se,onClick:ke,loading:Pt,icon:Ie},be),Ye&&(yt=[yt,(0,nt.Tm)(Ye,{key:"addonAfter"})]);const Ct=Ae()(Xt,{[`${Xt}-rtl`]:nn==="rtl",[`${Xt}-${ce}`]:!!ce,[`${Xt}-with-button`]:!!be},Wt),rn=_t=>{Gt.current=!0,Ot==null||Ot(_t)},lt=_t=>{Gt.current=!1,kn==null||kn(_t)};return Le.createElement(Me.Z,Object.assign({ref:(0,qe.sQ)(de,Ut),onPressEnter:gt},Kt,{size:ce,onCompositionStart:rn,onCompositionEnd:lt,prefixCls:ye,addonAfter:yt,suffix:Ge,onChange:he,className:Ct,disabled:xt}))}),bt=oe(1643);const Oe=Me.Z;Oe.Group=ve,Oe.Search=Qe,Oe.TextArea=bt.Z,Oe.Password=Bt;var Lt=Oe},9937:function(Mn,tn,oe){"use strict";oe.d(tn,{M1:function(){return pe},TM:function(){return nt},Xy:function(){return ve},bi:function(){return vt},e5:function(){return ht},ik:function(){return Fe},nz:function(){return xe},pU:function(){return Ee},s7:function(){return qe},x0:function(){return _e}});var ae=oe(17313),Ae=oe(74207),Le=oe(37613),ct=oe(83116);const xe=Re=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:Re,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ee=Re=>({borderColor:Re.hoverBorderColor}),pe=Re=>({borderColor:Re.activeBorderColor,boxShadow:Re.activeShadow,outline:0}),ve=Re=>({color:Re.colorTextDisabled,backgroundColor:Re.colorBgContainerDisabled,borderColor:Re.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},Ee((0,Le.TS)(Re,{hoverBorderColor:Re.colorBorder})))}),Me=Re=>{const{paddingBlockLG:Ce,fontSizeLG:Je,lineHeightLG:et,borderRadiusLG:wt,paddingInlineLG:Qe}=Re;return{padding:`${Ce}px ${Qe}px`,fontSize:Je,lineHeight:et,borderRadius:wt}},_e=Re=>({padding:`${Re.paddingBlockSM}px ${Re.paddingInlineSM}px`,borderRadius:Re.borderRadiusSM}),vt=(Re,Ce)=>{const{componentCls:Je,colorError:et,colorWarning:wt,errorActiveShadow:Qe,warningActiveShadow:bt,colorErrorBorderHover:Oe,colorWarningBorderHover:Lt}=Re;return{[`&-status-error:not(${Ce}-disabled):not(${Ce}-borderless)${Ce}`]:{borderColor:et,"&:hover":{borderColor:Oe},"&:focus, &-focused":Object.assign({},pe((0,Le.TS)(Re,{activeBorderColor:et,activeShadow:Qe}))),[`${Je}-prefix, ${Je}-suffix`]:{color:et}},[`&-status-warning:not(${Ce}-disabled):not(${Ce}-borderless)${Ce}`]:{borderColor:wt,"&:hover":{borderColor:Lt},"&:focus, &-focused":Object.assign({},pe((0,Le.TS)(Re,{activeBorderColor:wt,activeShadow:bt}))),[`${Je}-prefix, ${Je}-suffix`]:{color:wt}}}},Fe=Re=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Re.paddingBlock}px ${Re.paddingInline}px`,color:Re.colorText,fontSize:Re.fontSize,lineHeight:Re.lineHeight,backgroundColor:Re.colorBgContainer,backgroundImage:"none",borderWidth:Re.lineWidth,borderStyle:Re.lineType,borderColor:Re.colorBorder,borderRadius:Re.borderRadius,transition:`all ${Re.motionDurationMid}`},xe(Re.colorTextPlaceholder)),{"&:hover":Object.assign({},Ee(Re)),"&:focus, &-focused":Object.assign({},pe(Re)),"&-disabled, &[disabled]":Object.assign({},ve(Re)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:Re.controlHeight,lineHeight:Re.lineHeight,verticalAlign:"bottom",transition:`all ${Re.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Me(Re)),"&-sm":Object.assign({},_e(Re)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),qe=Re=>{const{componentCls:Ce,antCls:Je}=Re;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:Re.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${Ce}, &-lg > ${Ce}-group-addon`]:Object.assign({},Me(Re)),[`&-sm ${Ce}, &-sm > ${Ce}-group-addon`]:Object.assign({},_e(Re)),[`&-lg ${Je}-select-single ${Je}-select-selector`]:{height:Re.controlHeightLG},[`&-sm ${Je}-select-single ${Je}-select-selector`]:{height:Re.controlHeightSM},[`> ${Ce}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${Ce}-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 ${Re.paddingInline}px`,color:Re.colorText,fontWeight:"normal",fontSize:Re.fontSize,textAlign:"center",backgroundColor:Re.colorFillAlter,border:`${Re.lineWidth}px ${Re.lineType} ${Re.colorBorder}`,borderRadius:Re.borderRadius,transition:`all ${Re.motionDurationSlow}`,lineHeight:1,[`${Je}-select`]:{margin:`-${Re.paddingBlock+1}px -${Re.paddingInline}px`,[`&${Je}-select-single:not(${Je}-select-customize-input)`]:{[`${Je}-select-selector`]:{backgroundColor:"inherit",border:`${Re.lineWidth}px ${Re.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${Je}-select-selector`]:{color:Re.colorPrimary}}},[`${Je}-cascader-picker`]:{margin:`-9px -${Re.paddingInline}px`,backgroundColor:"transparent",[`${Je}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${Ce}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${Ce}-search-with-button &`]:{zIndex:0}}},[`> ${Ce}:first-child, ${Ce}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${Je}-select ${Je}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ce}-affix-wrapper`]:{[`&:not(:first-child) ${Ce}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${Ce}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${Ce}:last-child, ${Ce}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${Je}-select ${Je}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${Ce}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${Ce}-search &`]:{borderStartStartRadius:Re.borderRadius,borderEndStartRadius:Re.borderRadius}},[`&:not(:first-child), ${Ce}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${Ce}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ae.dF)()),{[`${Ce}-group-addon, ${Ce}-group-wrap, > ${Ce}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:Re.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${Ce}-affix-wrapper,
|
|
|
& > ${Ce}-number-affix-wrapper,
|
|
|
& > ${Je}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-Re.lineWidth,borderInlineEndWidth:Re.lineWidth},[`${Ce}`]:{float:"none"},[`& > ${Je}-select > ${Je}-select-selector,
|
|
|
& > ${Je}-select-auto-complete ${Ce},
|
|
|
& > ${Je}-cascader-picker ${Ce},
|
|
|
& > ${Ce}-group-wrapper ${Ce}`]:{borderInlineEndWidth:Re.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${Je}-select-focused`]:{zIndex:1},[`& > ${Je}-select > ${Je}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${Je}-select:first-child > ${Je}-select-selector,
|
|
|
& > ${Je}-select-auto-complete:first-child ${Ce},
|
|
|
& > ${Je}-cascader-picker:first-child ${Ce}`]:{borderStartStartRadius:Re.borderRadius,borderEndStartRadius:Re.borderRadius},[`& > *:last-child,
|
|
|
& > ${Je}-select:last-child > ${Je}-select-selector,
|
|
|
& > ${Je}-cascader-picker:last-child ${Ce},
|
|
|
& > ${Je}-cascader-picker-focused:last-child ${Ce}`]:{borderInlineEndWidth:Re.lineWidth,borderStartEndRadius:Re.borderRadius,borderEndEndRadius:Re.borderRadius},[`& > ${Je}-select-auto-complete ${Ce}`]:{verticalAlign:"top"},[`${Ce}-group-wrapper + ${Ce}-group-wrapper`]:{marginInlineStart:-Re.lineWidth,[`${Ce}-affix-wrapper`]:{borderRadius:0}},[`${Ce}-group-wrapper:not(:last-child)`]:{[`&${Ce}-search > ${Ce}-group`]:{[`& > ${Ce}-group-addon > ${Ce}-search-button`]:{borderRadius:0},[`& > ${Ce}`]:{borderStartStartRadius:Re.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Re.borderRadius}}}})}},pt=Re=>{const{componentCls:Ce,controlHeightSM:Je,lineWidth:et}=Re,Qe=(Je-et*2-16)/2;return{[Ce]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(Re)),Fe(Re)),vt(Re,Ce)),{'&[type="color"]':{height:Re.controlHeight,[`&${Ce}-lg`]:{height:Re.controlHeightLG},[`&${Ce}-sm`]:{height:Je,paddingTop:Qe,paddingBottom:Qe}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Ke=Re=>{const{componentCls:Ce}=Re;return{[`${Ce}-clear-icon`]:{margin:0,color:Re.colorTextQuaternary,fontSize:Re.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${Re.motionDurationSlow}`,"&:hover":{color:Re.colorTextTertiary},"&:active":{color:Re.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Re.inputAffixPadding}px`}}}},je=Re=>{const{componentCls:Ce,inputAffixPadding:Je,colorTextDescription:et,motionDurationSlow:wt,colorIcon:Qe,colorIconHover:bt,iconCls:Oe}=Re;return{[`${Ce}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Fe(Re)),{display:"inline-flex",[`&:not(${Ce}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},Ee(Re)),{zIndex:1,[`${Ce}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${Ce}[disabled]`]:{background:"transparent"}},[`> input${Ce}`]:{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"'},[`${Ce}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:Re.paddingXS}},"&-show-count-suffix":{color:et},"&-show-count-has-suffix":{marginInlineEnd:Re.paddingXXS},"&-prefix":{marginInlineEnd:Je},"&-suffix":{marginInlineStart:Je}}}),Ke(Re)),{[`${Oe}${Ce}-password-icon`]:{color:Qe,cursor:"pointer",transition:`all ${wt}`,"&:hover":{color:bt}}}),vt(Re,`${Ce}-affix-wrapper`))}},ft=Re=>{const{componentCls:Ce,colorError:Je,colorWarning:et,borderRadiusLG:wt,borderRadiusSM:Qe}=Re;return{[`${Ce}-group`]:Object.assign(Object.assign(Object.assign({},(0,ae.Wf)(Re)),qe(Re)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${Ce}-group-addon`]:{borderRadius:wt,fontSize:Re.fontSizeLG}},"&-sm":{[`${Ce}-group-addon`]:{borderRadius:Qe}},"&-status-error":{[`${Ce}-group-addon`]:{color:Je,borderColor:Je}},"&-status-warning":{[`${Ce}-group-addon`]:{color:et,borderColor:et}},"&-disabled":{[`${Ce}-group-addon`]:Object.assign({},ve(Re))},[`&:not(${Ce}-compact-first-item):not(${Ce}-compact-last-item)${Ce}-compact-item`]:{[`${Ce}, ${Ce}-group-addon`]:{borderRadius:0}},[`&:not(${Ce}-compact-last-item)${Ce}-compact-first-item`]:{[`${Ce}, ${Ce}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Ce}-compact-first-item)${Ce}-compact-last-item`]:{[`${Ce}, ${Ce}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},mt=Re=>{const{componentCls:Ce,antCls:Je}=Re,et=`${Ce}-search`;return{[et]:{[`${Ce}`]:{"&:hover, &:focus":{borderColor:Re.colorPrimaryHover,[`+ ${Ce}-group-addon ${et}-button:not(${Je}-btn-primary)`]:{borderInlineStartColor:Re.colorPrimaryHover}}},[`${Ce}-affix-wrapper`]:{borderRadius:0},[`${Ce}-lg`]:{lineHeight:Re.lineHeightLG-2e-4},[`> ${Ce}-group`]:{[`> ${Ce}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${et}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:Re.borderRadius,borderEndEndRadius:Re.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${et}-button:not(${Je}-btn-primary)`]:{color:Re.colorTextDescription,"&:hover":{color:Re.colorPrimaryHover},"&:active":{color:Re.colorPrimaryActive},[`&${Je}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${et}-button`]:{height:Re.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${et}-button`]:{height:Re.controlHeightLG},[`&-small ${et}-button`]:{height:Re.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${Ce}-compact-item`]:{[`&:not(${Ce}-compact-last-item)`]:{[`${Ce}-group-addon`]:{[`${Ce}-search-button`]:{marginInlineEnd:-Re.lineWidth,borderRadius:0}}},[`&:not(${Ce}-compact-first-item)`]:{[`${Ce},${Ce}-affix-wrapper`]:{borderRadius:0}},[`> ${Ce}-group-addon ${Ce}-search-button,
|
|
|
> ${Ce},
|
|
|
${Ce}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${Ce}-affix-wrapper-focused`]:{zIndex:2}}}}},Bt=Re=>{const{componentCls:Ce,paddingLG:Je}=Re,et=`${Ce}-textarea`;return{[et]:{position:"relative","&-show-count":{[`> ${Ce}`]:{height:"100%"},[`${Ce}-data-count`]:{position:"absolute",bottom:-Re.fontSize*Re.lineHeight,insetInlineEnd:0,color:Re.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${Ce}`]:{paddingInlineEnd:Je}},[`&-affix-wrapper${et}-has-feedback`]:{[`${Ce}`]:{paddingInlineEnd:Je}},[`&-affix-wrapper${Ce}-affix-wrapper`]:{padding:0,[`> textarea${Ce}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${Ce}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ce}-clear-icon`]:{position:"absolute",insetInlineEnd:Re.paddingXS,insetBlockStart:Re.paddingXS},[`${et}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Re.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ht(Re){return(0,Le.TS)(Re,{inputAffixPadding:Re.paddingXXS})}const nt=Re=>{const{controlHeight:Ce,fontSize:Je,lineHeight:et,lineWidth:wt,controlHeightSM:Qe,controlHeightLG:bt,fontSizeLG:Oe,lineHeightLG:Lt,paddingSM:tt,controlPaddingHorizontalSM:Ut,controlPaddingHorizontal:At,colorFillAlter:Mt,colorPrimaryHover:Wt,controlOutlineWidth:It,controlOutline:Ge,colorErrorOutline:be,colorWarningOutline:Ye}=Re;return{paddingBlock:Math.max(Math.round((Ce-Je*et)/2*10)/10-wt,3),paddingBlockSM:Math.max(Math.round((Qe-Je*et)/2*10)/10-wt,0),paddingBlockLG:Math.ceil((bt-Oe*Lt)/2*10)/10-wt,paddingInline:tt-wt,paddingInlineSM:Ut-wt,paddingInlineLG:At-wt,addonBg:Mt,activeBorderColor:Wt,hoverBorderColor:Wt,activeShadow:`0 0 0 ${It}px ${Ge}`,errorActiveShadow:`0 0 0 ${It}px ${be}`,warningActiveShadow:`0 0 0 ${It}px ${Ye}`}};tn.ZP=(0,ct.Z)("Input",Re=>{const Ce=(0,Le.TS)(Re,ht(Re));return[pt(Ce),Bt(Ce),je(Ce),ft(Ce),mt(Ce),(0,Ae.c)(Ce)]},nt)},45818:function(Mn,tn,oe){"use strict";oe.d(tn,{D:function(){return ht},Z:function(){return Ce}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(et,wt){return Ae.createElement(xe.Z,(0,ae.Z)({},et,{ref:wt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe,Me=oe(33853),_e=oe(38819),vt=oe(92310),Fe=oe.n(vt),qe=oe(2738),Ke=Je=>!isNaN(parseFloat(Je))&&isFinite(Je),je=oe(36355),ft=oe(84966),mt=function(Je,et){var wt={};for(var Qe in Je)Object.prototype.hasOwnProperty.call(Je,Qe)&&et.indexOf(Qe)<0&&(wt[Qe]=Je[Qe]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,Qe=Object.getOwnPropertySymbols(Je);bt<Qe.length;bt++)et.indexOf(Qe[bt])<0&&Object.prototype.propertyIsEnumerable.call(Je,Qe[bt])&&(wt[Qe[bt]]=Je[Qe[bt]]);return wt};const Bt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ht=Ae.createContext({}),nt=(()=>{let Je=0;return function(){let et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Je+=1,`${et}${Je}`}})();var Ce=Ae.forwardRef((Je,et)=>{const{prefixCls:wt,className:Qe,trigger:bt,children:Oe,defaultCollapsed:Lt=!1,theme:tt="dark",style:Ut={},collapsible:At=!1,reverseArrow:Mt=!1,width:Wt=200,collapsedWidth:It=80,zeroWidthTriggerStyle:Ge,breakpoint:be,onCollapse:Ye,onBreakpoint:Pt}=Je,xt=mt(Je,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ue}=(0,Ae.useContext)(ft.Gs),[at,Ot]=(0,Ae.useState)("collapsed"in Je?Je.collapsed:Lt),[kn,Kt]=(0,Ae.useState)(!1);(0,Ae.useEffect)(()=>{"collapsed"in Je&&Ot(Je.collapsed)},[Je.collapsed]);const gn=(ce,de)=>{"collapsed"in Je||Ot(ce),Ye==null||Ye(ce,de)},nn=(0,Ae.useRef)();nn.current=ce=>{Kt(ce.matches),Pt==null||Pt(ce.matches),at!==ce.matches&&gn(ce.matches,"responsive")},(0,Ae.useEffect)(()=>{function ce(he){return nn.current(he)}let de;if(typeof window!="undefined"){const{matchMedia:he}=window;if(he&&be&&be in Bt){de=he(`(max-width: ${Bt[be]})`);try{de.addEventListener("change",ce)}catch(se){de.addListener(ce)}ce(de)}}return()=>{try{de==null||de.removeEventListener("change",ce)}catch(he){de==null||de.removeListener(ce)}}},[be]),(0,Ae.useEffect)(()=>{const ce=nt("ant-sider-");return Ue.addSider(ce),()=>Ue.removeSider(ce)},[]);const Gt=()=>{gn(!at,"clickTrigger")},{getPrefixCls:Xt}=(0,Ae.useContext)(je.E_),ye=()=>{const ce=Xt("layout-sider",wt),de=(0,qe.Z)(xt,["collapsed"]),he=at?It:Wt,se=Ke(he)?`${he}px`:String(he),ke=parseFloat(String(It||0))===0?Ae.createElement("span",{onClick:Gt,className:Fe()(`${ce}-zero-width-trigger`,`${ce}-zero-width-trigger-${Mt?"right":"left"}`),style:Ge},bt||Ae.createElement(ve,null)):null,Be={expanded:Mt?Ae.createElement(_e.Z,null):Ae.createElement(Me.Z,null),collapsed:Mt?Ae.createElement(Me.Z,null):Ae.createElement(_e.Z,null)}[at?"collapsed":"expanded"],yt=bt!==null?ke||Ae.createElement("div",{className:`${ce}-trigger`,onClick:Gt,style:{width:se}},bt||Be):null,rt=Object.assign(Object.assign({},Ut),{flex:`0 0 ${se}`,maxWidth:se,minWidth:se,width:se}),Ve=Fe()(ce,`${ce}-${tt}`,{[`${ce}-collapsed`]:!!at,[`${ce}-has-trigger`]:At&&bt!==null&&!ke,[`${ce}-below`]:!!kn,[`${ce}-zero-width`]:parseFloat(se)===0},Qe);return Ae.createElement("aside",Object.assign({className:Ve},de,{style:rt,ref:et}),Ae.createElement("div",{className:`${ce}-children`},Oe),At||kn&&ke?yt:null)},ue=Ae.useMemo(()=>({siderCollapsed:at}),[at]);return Ae.createElement(ht.Provider,{value:ue},ye())})},84966:function(Mn,tn,oe){"use strict";oe.d(tn,{VY:function(){return ht},$_:function(){return Bt},h4:function(){return mt},Gs:function(){return qe},ZP:function(){return nt}});var ae=oe(77654),Ae=oe(92310),Le=oe.n(Ae),ct=oe(2738),xe=oe(59301),Ee=oe(36355),pe=oe(83116),Me=Re=>{const{componentCls:Ce,bodyBg:Je,lightSiderBg:et,lightTriggerBg:wt,lightTriggerColor:Qe}=Re;return{[`${Ce}-sider-light`]:{background:et,[`${Ce}-sider-trigger`]:{color:Qe,background:wt},[`${Ce}-sider-zero-width-trigger`]:{color:Qe,background:wt,border:`1px solid ${Je}`,borderInlineStart:0}}}};const _e=Re=>{const{antCls:Ce,componentCls:Je,colorText:et,triggerColor:wt,footerBg:Qe,triggerBg:bt,headerHeight:Oe,headerPadding:Lt,headerColor:tt,footerPadding:Ut,triggerHeight:At,zeroTriggerHeight:Mt,zeroTriggerWidth:Wt,motionDurationMid:It,motionDurationSlow:Ge,fontSize:be,borderRadius:Ye,bodyBg:Pt,headerBg:xt,siderBg:Ue}=Re;return{[Je]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Pt,"&, *":{boxSizing:"border-box"},[`&${Je}-has-sider`]:{flexDirection:"row",[`> ${Je}, > ${Je}-content`]:{width:0}},[`${Je}-header, &${Je}-footer`]:{flex:"0 0 auto"},[`${Je}-sider`]:{position:"relative",minWidth:0,background:Ue,transition:`all ${It}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ce}-menu${Ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:At},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:At,color:wt,lineHeight:`${At}px`,textAlign:"center",background:bt,cursor:"pointer",transition:`all ${It}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Oe,insetInlineEnd:-Wt,zIndex:1,width:Wt,height:Mt,color:wt,fontSize:Re.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ue,borderStartStartRadius:0,borderStartEndRadius:Ye,borderEndEndRadius:Ye,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ge} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ge}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Wt,borderStartStartRadius:Ye,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ye}}}}},Me(Re)),{"&-rtl":{direction:"rtl"}}),[`${Je}-header`]:{height:Oe,padding:Lt,color:tt,lineHeight:`${Oe}px`,background:xt,[`${Ce}-menu`]:{lineHeight:"inherit"}},[`${Je}-footer`]:{padding:Ut,color:et,fontSize:be,background:Qe},[`${Je}-content`]:{flex:"auto",minHeight:0}}};var vt=(0,pe.Z)("Layout",Re=>[_e(Re)],Re=>{const{colorBgLayout:Ce,controlHeight:Je,controlHeightLG:et,colorText:wt,controlHeightSM:Qe,marginXXS:bt,colorTextLightSolid:Oe,colorBgContainer:Lt}=Re,tt=et*1.25;return{colorBgHeader:"#001529",colorBgBody:Ce,colorBgTrigger:"#002140",bodyBg:Ce,headerBg:"#001529",headerHeight:Je*2,headerPadding:`0 ${tt}px`,headerColor:wt,footerPadding:`${Qe}px ${tt}px`,footerBg:Ce,siderBg:"#001529",triggerHeight:et+bt*2,triggerBg:"#002140",triggerColor:Oe,zeroTriggerWidth:et,zeroTriggerHeight:et,lightSiderBg:Lt,lightTriggerBg:Lt,lightTriggerColor:wt}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Fe=function(Re,Ce){var Je={};for(var et in Re)Object.prototype.hasOwnProperty.call(Re,et)&&Ce.indexOf(et)<0&&(Je[et]=Re[et]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,et=Object.getOwnPropertySymbols(Re);wt<et.length;wt++)Ce.indexOf(et[wt])<0&&Object.prototype.propertyIsEnumerable.call(Re,et[wt])&&(Je[et[wt]]=Re[et[wt]]);return Je};const qe=xe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function pt(Re){let{suffixCls:Ce,tagName:Je,displayName:et}=Re;return wt=>xe.forwardRef((bt,Oe)=>xe.createElement(wt,Object.assign({ref:Oe,suffixCls:Ce,tagName:Je},bt)))}const Ke=xe.forwardRef((Re,Ce)=>{const{prefixCls:Je,suffixCls:et,className:wt,tagName:Qe}=Re,bt=Fe(Re,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Oe}=xe.useContext(Ee.E_),Lt=Oe("layout",Je),[tt,Ut]=vt(Lt),At=et?`${Lt}-${et}`:Lt;return tt(xe.createElement(Qe,Object.assign({className:Le()(Je||At,wt,Ut),ref:Ce},bt)))}),je=xe.forwardRef((Re,Ce)=>{const{direction:Je}=xe.useContext(Ee.E_),[et,wt]=xe.useState([]),{prefixCls:Qe,className:bt,rootClassName:Oe,children:Lt,hasSider:tt,tagName:Ut,style:At}=Re,Mt=Fe(Re,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Wt=(0,ct.Z)(Mt,["suffixCls"]),{getPrefixCls:It,layout:Ge}=xe.useContext(Ee.E_),be=It("layout",Qe),[Ye,Pt]=vt(be),xt=Le()(be,{[`${be}-has-sider`]:typeof tt=="boolean"?tt:et.length>0,[`${be}-rtl`]:Je==="rtl"},Ge==null?void 0:Ge.className,bt,Oe,Pt),Ue=xe.useMemo(()=>({siderHook:{addSider:at=>{wt(Ot=>[].concat((0,ae.Z)(Ot),[at]))},removeSider:at=>{wt(Ot=>Ot.filter(kn=>kn!==at))}}}),[]);return Ye(xe.createElement(qe.Provider,{value:Ue},xe.createElement(Ut,Object.assign({ref:Ce,className:xt,style:Object.assign(Object.assign({},Ge==null?void 0:Ge.style),At)},Wt),Lt)))}),ft=pt({tagName:"div",displayName:"Layout"})(je),mt=pt({suffixCls:"header",tagName:"header",displayName:"Header"})(Ke),Bt=pt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Ke),ht=pt({suffixCls:"content",tagName:"main",displayName:"Content"})(Ke);var nt=ft},40875:function(Mn,tn,oe){"use strict";oe.d(tn,{J:function(){return Ee}});var ae=oe(59301),Ae=oe(33234),Le=oe(70425),ct=function(pe,ve){var Me={};for(var _e in pe)Object.prototype.hasOwnProperty.call(pe,_e)&&ve.indexOf(_e)<0&&(Me[_e]=pe[_e]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,_e=Object.getOwnPropertySymbols(pe);vt<_e.length;vt++)ve.indexOf(_e[vt])<0&&Object.prototype.propertyIsEnumerable.call(pe,_e[vt])&&(Me[_e[vt]]=pe[_e[vt]]);return Me};const xe=ae.createContext(null),Ee=ae.forwardRef((pe,ve)=>{const{children:Me}=pe,_e=ct(pe,["children"]),vt=ae.useContext(xe),Fe=ae.useMemo(()=>Object.assign(Object.assign({},vt),_e),[vt,_e.prefixCls,_e.mode,_e.selectable]);return ae.createElement(xe.Provider,{value:Fe},ae.createElement(Ae.BR,null,(0,Le.supportNodeRef)(Me)?ae.cloneElement(Me,{ref:ve}):Me))});tn.Z=xe},20834:function(Mn,tn,oe){"use strict";oe.d(tn,{default:function(){return ue}});var ae=oe(15285),Ae=oe(59301),Le=oe(45818),ct=oe(92310),xe=oe.n(ct),Ee=oe(36355),pe=function(ce,de){var he={};for(var se in ce)Object.prototype.hasOwnProperty.call(ce,se)&&de.indexOf(se)<0&&(he[se]=ce[se]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,se=Object.getOwnPropertySymbols(ce);ke<se.length;ke++)de.indexOf(se[ke])<0&&Object.prototype.propertyIsEnumerable.call(ce,se[ke])&&(he[se[ke]]=ce[se[ke]]);return he},Me=ce=>{const{prefixCls:de,className:he,dashed:se}=ce,ke=pe(ce,["prefixCls","className","dashed"]),{getPrefixCls:gt}=Ae.useContext(Ee.E_),Ie=gt("menu",de),Be=xe()({[`${Ie}-item-divider-dashed`]:!!se},he);return Ae.createElement(ae.iz,Object.assign({className:Be},ke))},_e=oe(11592),vt=oe(2738),Fe=oe(6848),qe=oe(92343),Ke=(0,Ae.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ft=ce=>{var de;const{className:he,children:se,icon:ke,title:gt,danger:Ie}=ce,{prefixCls:Be,firstLevel:yt,direction:rt,disableMenuItemTitleTooltip:Ve,inlineCollapsed:Ct}=Ae.useContext(Ke),rn=dt=>{const Ft=Ae.createElement("span",{className:`${Be}-title-content`},se);return(!ke||(0,qe.l$)(se)&&se.type==="span")&&se&&dt&&yt&&typeof se=="string"?Ae.createElement("div",{className:`${Be}-inline-collapsed-noicon`},se.charAt(0)):Ft},{siderCollapsed:lt}=Ae.useContext(Le.D);let _t=gt;typeof gt=="undefined"?_t=yt?se:"":gt===!1&&(_t="");const fn={title:_t};!lt&&!Ct&&(fn.title=null,fn.open=!1);const ut=(0,_e.Z)(se).length;let De=Ae.createElement(ae.ck,Object.assign({},(0,vt.Z)(ce,["title","icon","danger"]),{className:xe()({[`${Be}-item-danger`]:Ie,[`${Be}-item-only-child`]:(ke?ut+1:ut)===1},he),title:typeof gt=="string"?gt:void 0}),(0,qe.Tm)(ke,{className:xe()((0,qe.l$)(ke)?(de=ke.props)===null||de===void 0?void 0:de.className:"",`${Be}-item-icon`)}),rn(Ct));return Ve||(De=Ae.createElement(Fe.Z,Object.assign({},fn,{placement:rt==="rtl"?"left":"right",overlayClassName:`${Be}-inline-collapsed-tooltip`}),De)),De},Bt=ce=>{var de;const{popupClassName:he,icon:se,title:ke,theme:gt}=ce,Ie=Ae.useContext(Ke),{prefixCls:Be,inlineCollapsed:yt,theme:rt}=Ie,Ve=(0,ae.Xl)();let Ct;if(!se)Ct=yt&&!Ve.length&&ke&&typeof ke=="string"?Ae.createElement("div",{className:`${Be}-inline-collapsed-noicon`},ke.charAt(0)):Ae.createElement("span",{className:`${Be}-title-content`},ke);else{const lt=(0,qe.l$)(ke)&&ke.type==="span";Ct=Ae.createElement(Ae.Fragment,null,(0,qe.Tm)(se,{className:xe()((0,qe.l$)(se)?(de=se.props)===null||de===void 0?void 0:de.className:"",`${Be}-item-icon`)}),lt?ke:Ae.createElement("span",{className:`${Be}-title-content`},ke))}const rn=Ae.useMemo(()=>Object.assign(Object.assign({},Ie),{firstLevel:!1}),[Ie]);return Ae.createElement(Ke.Provider,{value:rn},Ae.createElement(ae.Wd,Object.assign({},(0,vt.Z)(ce,["icon"]),{title:Ct,popupClassName:xe()(Be,he,`${Be}-${gt||rt}`)})))},ht=oe(18785),nt=oe(70425),Re=oe(62892),Ce=oe(40875),Je=function(ce,de){var he={};for(var se in ce)Object.prototype.hasOwnProperty.call(ce,se)&&de.indexOf(se)<0&&(he[se]=ce[se]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,se=Object.getOwnPropertySymbols(ce);ke<se.length;ke++)de.indexOf(se[ke])<0&&Object.prototype.propertyIsEnumerable.call(ce,se[ke])&&(he[se[ke]]=ce[se[ke]]);return he};function et(ce){return(ce||[]).map((de,he)=>{if(de&&typeof de=="object"){const se=de,{label:ke,children:gt,key:Ie,type:Be}=se,yt=Je(se,["label","children","key","type"]),rt=Ie!=null?Ie:`tmp-${he}`;return gt||Be==="group"?Be==="group"?Ae.createElement(ae.BW,Object.assign({key:rt},yt,{title:ke}),et(gt)):Ae.createElement(Bt,Object.assign({key:rt},yt,{title:ke}),et(gt)):Be==="divider"?Ae.createElement(Me,Object.assign({key:rt},yt)):Ae.createElement(ft,Object.assign({key:rt},yt),ke)}return null}).filter(de=>de)}function wt(ce){return Ae.useMemo(()=>ce&&et(ce),[ce])}var Qe=oe(64993),bt=oe(17313),Oe=oe(8378),Lt=oe(13826),tt=oe(29878),Ut=oe(83116),At=oe(37613),Wt=ce=>{const{componentCls:de,motionDurationSlow:he,horizontalLineHeight:se,colorSplit:ke,lineWidth:gt,lineType:Ie,itemPaddingInline:Be}=ce;return{[`${de}-horizontal`]:{lineHeight:se,border:0,borderBottom:`${gt}px ${Ie} ${ke}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${de}-item, ${de}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Be},[`> ${de}-item:hover,
|
|
|
> ${de}-item-active,
|
|
|
> ${de}-submenu ${de}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${de}-item, ${de}-submenu-title`]:{transition:[`border-color ${he}`,`background ${he}`].join(",")},[`${de}-submenu-arrow`]:{display:"none"}}}},Ge=ce=>{let{componentCls:de,menuArrowOffset:he}=ce;return{[`${de}-rtl`]:{direction:"rtl"},[`${de}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${de}-rtl${de}-vertical,
|
|
|
${de}-submenu-rtl ${de}-vertical`]:{[`${de}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${he})`},"&::after":{transform:`rotate(45deg) translateY(${he})`}}}}};const be=ce=>Object.assign({},(0,bt.oN)(ce));var Pt=(ce,de)=>{const{componentCls:he,itemColor:se,itemSelectedColor:ke,groupTitleColor:gt,itemBg:Ie,subMenuItemBg:Be,itemSelectedBg:yt,activeBarHeight:rt,activeBarWidth:Ve,activeBarBorderWidth:Ct,motionDurationSlow:rn,motionEaseInOut:lt,motionEaseOut:_t,itemPaddingInline:fn,motionDurationMid:ut,itemHoverColor:De,lineType:dt,colorSplit:Ft,itemDisabledColor:zt,dangerItemColor:an,dangerItemHoverColor:Bn,dangerItemSelectedColor:qt,dangerItemActiveBg:pn,dangerItemSelectedBg:zn,itemHoverBg:Vn,itemActiveBg:Pn,menuSubMenuBg:Qn,horizontalItemSelectedColor:gr,horizontalItemSelectedBg:rr,horizontalItemBorderRadius:er,horizontalItemHoverBg:pr,popupBg:Pr}=ce;return{[`${he}-${de}, ${he}-${de} > ${he}`]:{color:se,background:Ie,[`&${he}-root:focus-visible`]:Object.assign({},be(ce)),[`${he}-item-group-title`]:{color:gt},[`${he}-submenu-selected`]:{[`> ${he}-submenu-title`]:{color:ke}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{color:`${zt} !important`},[`${he}-item:not(${he}-item-selected):not(${he}-submenu-selected)`]:{[`&:hover, > ${he}-submenu-title:hover`]:{color:De}},[`&:not(${he}-horizontal)`]:{[`${he}-item:not(${he}-item-selected)`]:{"&:hover":{backgroundColor:Vn},"&:active":{backgroundColor:Pn}},[`${he}-submenu-title`]:{"&:hover":{backgroundColor:Vn},"&:active":{backgroundColor:Pn}}},[`${he}-item-danger`]:{color:an,[`&${he}-item:hover`]:{[`&:not(${he}-item-selected):not(${he}-submenu-selected)`]:{color:Bn}},[`&${he}-item:active`]:{background:pn}},[`${he}-item a`]:{"&, &:hover":{color:"inherit"}},[`${he}-item-selected`]:{color:ke,[`&${he}-item-danger`]:{color:qt},"a, a:hover":{color:"inherit"}},[`& ${he}-item-selected`]:{backgroundColor:yt,[`&${he}-item-danger`]:{backgroundColor:zn}},[`${he}-item, ${he}-submenu-title`]:{[`&:not(${he}-item-disabled):focus-visible`]:Object.assign({},be(ce))},[`&${he}-submenu > ${he}`]:{backgroundColor:Qn},[`&${he}-popup > ${he}`]:{backgroundColor:Pr},[`&${he}-horizontal`]:Object.assign(Object.assign({},de==="dark"?{borderBottom:0}:{}),{[`> ${he}-item, > ${he}-submenu`]:{top:Ct,marginTop:-Ct,marginBottom:0,borderRadius:er,"&::after":{position:"absolute",insetInline:fn,bottom:0,borderBottom:`${rt}px solid transparent`,transition:`border-color ${rn} ${lt}`,content:'""'},"&:hover, &-active, &-open":{background:pr,"&::after":{borderBottomWidth:rt,borderBottomColor:gr}},"&-selected":{color:gr,backgroundColor:rr,"&:hover":{backgroundColor:rr},"&::after":{borderBottomWidth:rt,borderBottomColor:gr}}}}),[`&${he}-root`]:{[`&${he}-inline, &${he}-vertical`]:{borderInlineEnd:`${Ct}px ${dt} ${Ft}`}},[`&${he}-inline`]:{[`${he}-sub${he}-inline`]:{background:Be},[`${he}-item, ${he}-submenu-title`]:Ct&&Ve?{width:`calc(100% + ${Ct}px)`}:{},[`${he}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ve}px solid ${ke}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ut} ${_t}`,`opacity ${ut} ${_t}`].join(","),content:'""'},[`&${he}-item-danger`]:{"&::after":{borderInlineEndColor:qt}}},[`${he}-selected, ${he}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ut} ${lt}`,`opacity ${ut} ${lt}`].join(",")}}}}}};const xt=ce=>{const{componentCls:de,itemHeight:he,itemMarginInline:se,padding:ke,menuArrowSize:gt,marginXS:Ie,itemMarginBlock:Be}=ce,yt=ke+gt+Ie;return{[`${de}-item`]:{position:"relative",overflow:"hidden"},[`${de}-item, ${de}-submenu-title`]:{height:he,lineHeight:`${he}px`,paddingInline:ke,overflow:"hidden",textOverflow:"ellipsis",marginInline:se,marginBlock:Be,width:`calc(100% - ${se*2}px)`},[`> ${de}-item,
|
|
|
> ${de}-submenu > ${de}-submenu-title`]:{height:he,lineHeight:`${he}px`},[`${de}-item-group-list ${de}-submenu-title,
|
|
|
${de}-submenu-title`]:{paddingInlineEnd:yt}}};var at=ce=>{const{componentCls:de,iconCls:he,itemHeight:se,colorTextLightSolid:ke,dropdownWidth:gt,controlHeightLG:Ie,motionDurationMid:Be,motionEaseOut:yt,paddingXL:rt,itemMarginInline:Ve,fontSizeLG:Ct,motionDurationSlow:rn,paddingXS:lt,boxShadowSecondary:_t,collapsedWidth:fn,collapsedIconSize:ut}=ce,De={height:se,lineHeight:`${se}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[de]:{"&-inline, &-vertical":Object.assign({[`&${de}-root`]:{boxShadow:"none"}},xt(ce))},[`${de}-submenu-popup`]:{[`${de}-vertical`]:Object.assign(Object.assign({},xt(ce)),{boxShadow:_t})}},{[`${de}-submenu-popup ${de}-vertical${de}-sub`]:{minWidth:gt,maxHeight:`calc(100vh - ${Ie*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${de}-inline`]:{width:"100%",[`&${de}-root`]:{[`${de}-item, ${de}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${rn}`,`background ${rn}`,`padding ${Be} ${yt}`].join(","),[`> ${de}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${de}-sub${de}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${de}-submenu > ${de}-submenu-title`]:De,[`& ${de}-item-group-title`]:{paddingInlineStart:rt}},[`${de}-item`]:De}},{[`${de}-inline-collapsed`]:{width:fn,[`&${de}-root`]:{[`${de}-item, ${de}-submenu ${de}-submenu-title`]:{[`> ${de}-inline-collapsed-noicon`]:{fontSize:Ct,textAlign:"center"}}},[`> ${de}-item,
|
|
|
> ${de}-item-group > ${de}-item-group-list > ${de}-item,
|
|
|
> ${de}-item-group > ${de}-item-group-list > ${de}-submenu > ${de}-submenu-title,
|
|
|
> ${de}-submenu > ${de}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ct/2}px - ${Ve}px)`,textOverflow:"clip",[`
|
|
|
${de}-submenu-arrow,
|
|
|
${de}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${de}-item-icon, ${he}`]:{margin:0,fontSize:ut,lineHeight:`${se}px`,"+ span":{display:"inline-block",opacity:0}}},[`${de}-item-icon, ${he}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${de}-item-icon, ${he}`]:{display:"none"},"a, a:hover":{color:ke}},[`${de}-item-group-title`]:Object.assign(Object.assign({},bt.vS),{paddingInline:lt})}}]};const Ot=ce=>{const{componentCls:de,motionDurationSlow:he,motionDurationMid:se,motionEaseInOut:ke,motionEaseOut:gt,iconCls:Ie,iconSize:Be,iconMarginInlineEnd:yt}=ce;return{[`${de}-item, ${de}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${he}`,`background ${he}`,`padding ${he} ${ke}`].join(","),[`${de}-item-icon, ${Ie}`]:{minWidth:Be,fontSize:Be,transition:[`font-size ${se} ${gt}`,`margin ${he} ${ke}`,`color ${he}`].join(","),"+ span":{marginInlineStart:yt,opacity:1,transition:[`opacity ${he} ${ke}`,`margin ${he}`,`color ${he}`].join(",")}},[`${de}-item-icon`]:Object.assign({},(0,bt.Ro)()),[`&${de}-item-only-child`]:{[`> ${Ie}, > ${de}-item-icon`]:{marginInlineEnd:0}}},[`${de}-item-disabled, ${de}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${de}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},kn=ce=>{const{componentCls:de,motionDurationSlow:he,motionEaseInOut:se,borderRadius:ke,menuArrowSize:gt,menuArrowOffset:Ie}=ce;return{[`${de}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ce.margin,width:gt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${he} ${se}, opacity ${he}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:gt*.6,height:gt*.15,backgroundColor:"currentcolor",borderRadius:ke,transition:[`background ${he} ${se}`,`transform ${he} ${se}`,`top ${he} ${se}`,`color ${he} ${se}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ie})`},"&::after":{transform:`rotate(-45deg) translateY(${Ie})`}}}}},Kt=ce=>{const{antCls:de,componentCls:he,fontSize:se,motionDurationSlow:ke,motionDurationMid:gt,motionEaseInOut:Ie,paddingXS:Be,padding:yt,colorSplit:rt,lineWidth:Ve,zIndexPopup:Ct,borderRadiusLG:rn,subMenuItemBorderRadius:lt,menuArrowSize:_t,menuArrowOffset:fn,lineType:ut,menuPanelMaskInset:De,groupTitleLineHeight:dt,groupTitleFontSize:Ft}=ce;return[{"":{[`${he}`]:Object.assign(Object.assign({},(0,bt.dF)()),{"&-hidden":{display:"none"}})},[`${he}-submenu-hidden`]:{display:"none"}},{[he]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,bt.Wf)(ce)),(0,bt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:se,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ke} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${he}-item`]:{flex:"none"}},[`${he}-item, ${he}-submenu, ${he}-submenu-title`]:{borderRadius:ce.itemBorderRadius},[`${he}-item-group-title`]:{padding:`${Be}px ${yt}px`,fontSize:Ft,lineHeight:dt,transition:`all ${ke}`},[`&-horizontal ${he}-submenu`]:{transition:[`border-color ${ke} ${Ie}`,`background ${ke} ${Ie}`].join(",")},[`${he}-submenu, ${he}-submenu-inline`]:{transition:[`border-color ${ke} ${Ie}`,`background ${ke} ${Ie}`,`padding ${gt} ${Ie}`].join(",")},[`${he}-submenu ${he}-sub`]:{cursor:"initial",transition:[`background ${ke} ${Ie}`,`padding ${ke} ${Ie}`].join(",")},[`${he}-title-content`]:{transition:`color ${ke}`},[`${he}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${he}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:rt,borderStyle:ut,borderWidth:0,borderTopWidth:Ve,marginBlock:Ve,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ot(ce)),{[`${he}-item-group`]:{[`${he}-item-group-list`]:{margin:0,padding:0,[`${he}-item, ${he}-submenu-title`]:{paddingInline:`${se*2}px ${yt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ct,borderRadius:rn,boxShadow:"none",transformOrigin:"0 0",[`&${he}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${De}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:De},"\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},[`> ${he}`]:Object.assign(Object.assign(Object.assign({borderRadius:rn},Ot(ce)),kn(ce)),{[`${he}-item, ${he}-submenu > ${he}-submenu-title`]:{borderRadius:lt},[`${he}-submenu-title::after`]:{transition:`transform ${ke} ${Ie}`}})}}),kn(ce)),{[`&-inline-collapsed ${he}-submenu-arrow,
|
|
|
&-inline ${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${fn})`},"&::after":{transform:`rotate(45deg) translateX(-${fn})`}},[`${he}-submenu-open${he}-submenu-inline > ${he}-submenu-title > ${he}-submenu-arrow`]:{transform:`translateY(-${_t*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${fn})`},"&::before":{transform:`rotate(45deg) translateX(${fn})`}}})},{[`${de}-layout-header`]:{[he]:{lineHeight:"inherit"}}}]};var gn=(ce,de)=>(0,Ut.Z)("Menu",se=>{if(de===!1)return[];const{colorBgElevated:ke,colorPrimary:gt,colorTextLightSolid:Ie,controlHeightLG:Be,fontSize:yt,darkItemColor:rt,darkDangerItemColor:Ve,darkItemBg:Ct,darkSubMenuItemBg:rn,darkItemSelectedColor:lt,darkItemSelectedBg:_t,darkDangerItemSelectedBg:fn,darkItemHoverBg:ut,darkGroupTitleColor:De,darkItemHoverColor:dt,darkItemDisabledColor:Ft,darkDangerItemHoverColor:zt,darkDangerItemSelectedColor:an,darkDangerItemActiveBg:Bn}=se,qt=yt/7*5,pn=(0,At.TS)(se,{menuArrowSize:qt,menuHorizontalHeight:Be*1.15,menuArrowOffset:`${qt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ke}),zn=(0,At.TS)(pn,{itemColor:rt,itemHoverColor:dt,groupTitleColor:De,itemSelectedColor:lt,itemBg:Ct,popupBg:Ct,subMenuItemBg:rn,itemActiveBg:"transparent",itemSelectedBg:_t,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ut,itemDisabledColor:Ft,dangerItemColor:Ve,dangerItemHoverColor:zt,dangerItemSelectedColor:an,dangerItemActiveBg:Bn,dangerItemSelectedBg:fn,menuSubMenuBg:rn,horizontalItemSelectedColor:Ie,horizontalItemSelectedBg:gt});return[Kt(pn),Wt(pn),at(pn),Pt(pn,"light"),Pt(zn,"dark"),Ge(pn),(0,Oe.Z)(pn),(0,Lt.oN)(pn,"slide-up"),(0,Lt.oN)(pn,"slide-down"),(0,tt._y)(pn,"zoom-big")]},se=>{const{colorPrimary:ke,colorError:gt,colorTextDisabled:Ie,colorErrorBg:Be,colorText:yt,colorTextDescription:rt,colorBgContainer:Ve,colorFillAlter:Ct,colorFillContent:rn,lineWidth:lt,lineWidthBold:_t,controlItemBgActive:fn,colorBgTextHover:ut,controlHeightLG:De,lineHeight:dt,colorBgElevated:Ft,marginXXS:zt,padding:an,fontSize:Bn,controlHeightSM:qt,fontSizeLG:pn,colorTextLightSolid:zn,colorErrorHover:Vn}=se,Pn=new Qe.C(zn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:se.zIndexPopupBase+50,radiusItem:se.borderRadiusLG,itemBorderRadius:se.borderRadiusLG,radiusSubMenuItem:se.borderRadiusSM,subMenuItemBorderRadius:se.borderRadiusSM,colorItemText:yt,itemColor:yt,colorItemTextHover:yt,itemHoverColor:yt,colorItemTextHoverHorizontal:ke,horizontalItemHoverColor:ke,colorGroupTitle:rt,groupTitleColor:rt,colorItemTextSelected:ke,itemSelectedColor:ke,colorItemTextSelectedHorizontal:ke,horizontalItemSelectedColor:ke,colorItemBg:Ve,itemBg:Ve,colorItemBgHover:ut,itemHoverBg:ut,colorItemBgActive:rn,itemActiveBg:fn,colorSubItemBg:Ct,subMenuItemBg:Ct,colorItemBgSelected:fn,itemSelectedBg:fn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:_t,activeBarHeight:_t,colorActiveBarBorderSize:lt,activeBarBorderWidth:lt,colorItemTextDisabled:Ie,itemDisabledColor:Ie,colorDangerItemText:gt,dangerItemColor:gt,colorDangerItemTextHover:gt,dangerItemHoverColor:gt,colorDangerItemTextSelected:gt,dangerItemSelectedColor:gt,colorDangerItemBgActive:Be,dangerItemActiveBg:Be,colorDangerItemBgSelected:Be,dangerItemSelectedBg:Be,itemMarginInline:se.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:De,groupTitleLineHeight:dt,collapsedWidth:De*2,popupBg:Ft,itemMarginBlock:zt,itemPaddingInline:an,horizontalLineHeight:`${De*1.15}px`,iconSize:Bn,iconMarginInlineEnd:qt-Bn,collapsedIconSize:pn,groupTitleFontSize:Bn,darkItemDisabledColor:new Qe.C(zn).setAlpha(.25).toRgbString(),darkItemColor:Pn,darkDangerItemColor:gt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:zn,darkItemSelectedBg:ke,darkDangerItemSelectedBg:gt,darkItemHoverBg:"transparent",darkGroupTitleColor:Pn,darkItemHoverColor:zn,darkDangerItemHoverColor:Vn,darkDangerItemSelectedColor:zn,darkDangerItemActiveBg:gt}},{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),nn=function(ce,de){var he={};for(var se in ce)Object.prototype.hasOwnProperty.call(ce,se)&&de.indexOf(se)<0&&(he[se]=ce[se]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,se=Object.getOwnPropertySymbols(ce);ke<se.length;ke++)de.indexOf(se[ke])<0&&Object.prototype.propertyIsEnumerable.call(ce,se[ke])&&(he[se[ke]]=ce[se[ke]]);return he},Xt=(0,Ae.forwardRef)((ce,de)=>{var he,se;const ke=Ae.useContext(Ce.Z),gt=ke||{},{getPrefixCls:Ie,getPopupContainer:Be,direction:yt,menu:rt}=Ae.useContext(Ee.E_),Ve=Ie(),{prefixCls:Ct,className:rn,style:lt,theme:_t="light",expandIcon:fn,_internalDisableMenuItemTitleTooltip:ut,inlineCollapsed:De,siderCollapsed:dt,items:Ft,children:zt,rootClassName:an,mode:Bn,selectable:qt,onClick:pn,overflowedIndicatorPopupClassName:zn}=ce,Vn=nn(ce,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Pn=(0,vt.Z)(Vn,["collapsedWidth"]),Qn=wt(Ft)||zt;(he=gt.validator)===null||he===void 0||he.call(gt,{mode:Bn});const gr=(0,nt.useEvent)(function(){var dr;pn==null||pn.apply(void 0,arguments),(dr=gt.onClick)===null||dr===void 0||dr.call(gt)}),rr=gt.mode||Bn,er=qt!=null?qt:gt.selectable,pr=Ae.useMemo(()=>dt!==void 0?dt:De,[De,dt]),Pr={horizontal:{motionName:`${Ve}-slide-up`},inline:(0,Re.Z)(Ve),other:{motionName:`${Ve}-zoom-big`}},$n=Ie("menu",Ct||gt.prefixCls),[Wr,vr]=gn($n,!ke),qr=xe()(`${$n}-${_t}`,rt==null?void 0:rt.className,rn);let xi;if(typeof fn=="function")xi=fn;else if(fn===null||fn===!1)xi=null;else if(gt.expandIcon===null||gt.expandIcon===!1)xi=null;else{const dr=fn!=null?fn:gt.expandIcon;xi=(0,qe.Tm)(dr,{className:xe()(`${$n}-submenu-expand-icon`,(0,qe.l$)(dr)?(se=dr.props)===null||se===void 0?void 0:se.className:"")})}const Ar=Ae.useMemo(()=>({prefixCls:$n,inlineCollapsed:pr||!1,direction:yt,firstLevel:!0,theme:_t,mode:rr,disableMenuItemTitleTooltip:ut}),[$n,pr,yt,ut,_t]);return Wr(Ae.createElement(Ce.Z.Provider,{value:null},Ae.createElement(Ke.Provider,{value:Ar},Ae.createElement(ae.ZP,Object.assign({getPopupContainer:Be,overflowedIndicator:Ae.createElement(ht.Z,null),overflowedIndicatorPopupClassName:xe()($n,`${$n}-${_t}`,zn),mode:rr,selectable:er,onClick:gr},Pn,{inlineCollapsed:pr,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),lt),className:qr,prefixCls:$n,direction:yt,defaultMotions:Pr,expandIcon:xi,ref:de,rootClassName:xe()(an,vr)}),Qn))))});const ye=(0,Ae.forwardRef)((ce,de)=>{const he=(0,Ae.useRef)(null),se=Ae.useContext(Le.D);return(0,Ae.useImperativeHandle)(de,()=>({menu:he.current,focus:ke=>{var gt;(gt=he.current)===null||gt===void 0||gt.focus(ke)}})),Ae.createElement(Xt,Object.assign({ref:he},ce,se))});ye.Item=ft,ye.SubMenu=Bt,ye.Divider=Me,ye.ItemGroup=ae.BW;var ue=ye},58421:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return gt}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(Be,yt){return Ae.createElement(xe.Z,(0,ae.Z)({},Be,{ref:yt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe,Me=oe(49198),_e=oe(33853),vt=oe(38819),Fe=oe(92310),qe=oe.n(Fe),pt=oe(18642),Ke=oe(85899),je=oe(38705),ft=oe(17212),mt=oe(39153),Bt=oe(55401),ht=oe(26112),nt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Re=nt,Ce=oe(91735),Je=function(Ie){(0,mt.Z)(yt,Ie);var Be=(0,Bt.Z)(yt);function yt(){var rt;(0,je.Z)(this,yt);for(var Ve=arguments.length,Ct=new Array(Ve),rn=0;rn<Ve;rn++)Ct[rn]=arguments[rn];return rt=Be.call.apply(Be,[this].concat(Ct)),rt.state={goInputText:""},rt.getValidValue=function(){var lt=rt.state.goInputText;return!lt||Number.isNaN(lt)?void 0:Number(lt)},rt.buildOptionText=function(lt){return"".concat(lt," ").concat(rt.props.locale.items_per_page)},rt.changeSize=function(lt){rt.props.changeSize(Number(lt))},rt.handleChange=function(lt){rt.setState({goInputText:lt.target.value})},rt.handleBlur=function(lt){var _t=rt.props,fn=_t.goButton,ut=_t.quickGo,De=_t.rootPrefixCls,dt=rt.state.goInputText;fn||dt===""||(rt.setState({goInputText:""}),!(lt.relatedTarget&&(lt.relatedTarget.className.indexOf("".concat(De,"-item-link"))>=0||lt.relatedTarget.className.indexOf("".concat(De,"-item"))>=0))&&ut(rt.getValidValue()))},rt.go=function(lt){var _t=rt.state.goInputText;_t!==""&&(lt.keyCode===Re.ENTER||lt.type==="click")&&(rt.setState({goInputText:""}),rt.props.quickGo(rt.getValidValue()))},rt}return(0,ft.Z)(yt,[{key:"getPageSizeOptions",value:function(){var Ve=this.props,Ct=Ve.pageSize,rn=Ve.pageSizeOptions;return rn.some(function(lt){return lt.toString()===Ct.toString()})?rn:rn.concat([Ct.toString()]).sort(function(lt,_t){var fn=Number.isNaN(Number(lt))?0:Number(lt),ut=Number.isNaN(Number(_t))?0:Number(_t);return fn-ut})}},{key:"render",value:function(){var Ve=this,Ct=this.props,rn=Ct.pageSize,lt=Ct.locale,_t=Ct.rootPrefixCls,fn=Ct.changeSize,ut=Ct.quickGo,De=Ct.goButton,dt=Ct.selectComponentClass,Ft=Ct.buildOptionText,zt=Ct.selectPrefixCls,an=Ct.disabled,Bn=this.state.goInputText,qt="".concat(_t,"-options"),pn=dt,zn=null,Vn=null,Pn=null;if(!fn&&!ut)return null;var Qn=this.getPageSizeOptions();if(fn&&pn){var gr=Qn.map(function(rr,er){return Ae.createElement(pn.Option,{key:er,value:rr.toString()},(Ft||Ve.buildOptionText)(rr))});zn=Ae.createElement(pn,{disabled:an,prefixCls:zt,showSearch:!1,className:"".concat(qt,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(rn||Qn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(er){return er.parentNode},"aria-label":lt.page_size,defaultOpen:!1},gr)}return ut&&(De&&(Pn=typeof De=="boolean"?Ae.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:an,className:"".concat(qt,"-quick-jumper-button")},lt.jump_to_confirm):Ae.createElement("span",{onClick:this.go,onKeyUp:this.go},De)),Vn=Ae.createElement("div",{className:"".concat(qt,"-quick-jumper")},lt.jump_to,Ae.createElement("input",{disabled:an,type:"text",value:Bn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":lt.page}),lt.page,Pn)),Ae.createElement("li",{className:"".concat(qt)},zn,Vn)}}]),yt}(Ae.Component);Je.defaultProps={pageSizeOptions:["10","20","50","100"]};var et=Je,wt=function(Be){var yt,rt=Be.rootPrefixCls,Ve=Be.page,Ct=Be.active,rn=Be.className,lt=Be.showTitle,_t=Be.onClick,fn=Be.onKeyPress,ut=Be.itemRender,De="".concat(rt,"-item"),dt=qe()(De,"".concat(De,"-").concat(Ve),(yt={},(0,pt.Z)(yt,"".concat(De,"-active"),Ct),(0,pt.Z)(yt,"".concat(De,"-disabled"),!Ve),(0,pt.Z)(yt,Be.className,rn),yt)),Ft=function(){_t(Ve)},zt=function(qt){fn(qt,_t,Ve)},an=ut(Ve,"page",Ae.createElement("a",{rel:"nofollow"},Ve));return an?Ae.createElement("li",{title:lt?Ve.toString():null,className:dt,onClick:Ft,onKeyPress:zt,tabIndex:0},an):null},Qe=wt;function bt(){}function Oe(Ie){var Be=Number(Ie);return typeof Be=="number"&&!Number.isNaN(Be)&&isFinite(Be)&&Math.floor(Be)===Be}var Lt=function(Be,yt,rt){return rt};function tt(Ie,Be,yt){var rt=typeof Ie=="undefined"?Be.pageSize:Ie;return Math.floor((yt.total-1)/rt)+1}var Ut=function(Ie){(0,mt.Z)(yt,Ie);var Be=(0,Bt.Z)(yt);function yt(rt){var Ve;(0,je.Z)(this,yt),Ve=Be.call(this,rt),Ve.paginationNode=Ae.createRef(),Ve.getJumpPrevPage=function(){return Math.max(1,Ve.state.current-(Ve.props.showLessItems?3:5))},Ve.getJumpNextPage=function(){return Math.min(tt(void 0,Ve.state,Ve.props),Ve.state.current+(Ve.props.showLessItems?3:5))},Ve.getItemIcon=function(fn,ut){var De=Ve.props.prefixCls,dt=fn||Ae.createElement("button",{type:"button","aria-label":ut,className:"".concat(De,"-item-link")});return typeof fn=="function"&&(dt=Ae.createElement(fn,(0,Ke.Z)({},Ve.props))),dt},Ve.isValid=function(fn){var ut=Ve.props.total;return Oe(fn)&&fn!==Ve.state.current&&Oe(ut)&&ut>0},Ve.shouldDisplayQuickJumper=function(){var fn=Ve.props,ut=fn.showQuickJumper,De=fn.total,dt=Ve.state.pageSize;return De<=dt?!1:ut},Ve.handleKeyDown=function(fn){(fn.keyCode===Re.ARROW_UP||fn.keyCode===Re.ARROW_DOWN)&&fn.preventDefault()},Ve.handleKeyUp=function(fn){var ut=Ve.getValidValue(fn),De=Ve.state.currentInputValue;ut!==De&&Ve.setState({currentInputValue:ut}),fn.keyCode===Re.ENTER?Ve.handleChange(ut):fn.keyCode===Re.ARROW_UP?Ve.handleChange(ut-1):fn.keyCode===Re.ARROW_DOWN&&Ve.handleChange(ut+1)},Ve.handleBlur=function(fn){var ut=Ve.getValidValue(fn);Ve.handleChange(ut)},Ve.changePageSize=function(fn){var ut=Ve.state.current,De=tt(fn,Ve.state,Ve.props);ut=ut>De?De:ut,De===0&&(ut=Ve.state.current),typeof fn=="number"&&("pageSize"in Ve.props||Ve.setState({pageSize:fn}),"current"in Ve.props||Ve.setState({current:ut,currentInputValue:ut})),Ve.props.onShowSizeChange(ut,fn),"onChange"in Ve.props&&Ve.props.onChange&&Ve.props.onChange(ut,fn)},Ve.handleChange=function(fn){var ut=Ve.props,De=ut.disabled,dt=ut.onChange,Ft=Ve.state,zt=Ft.pageSize,an=Ft.current,Bn=Ft.currentInputValue;if(Ve.isValid(fn)&&!De){var qt=tt(void 0,Ve.state,Ve.props),pn=fn;return fn>qt?pn=qt:fn<1&&(pn=1),"current"in Ve.props||Ve.setState({current:pn}),pn!==Bn&&Ve.setState({currentInputValue:pn}),dt(pn,zt),pn}return an},Ve.prev=function(){Ve.hasPrev()&&Ve.handleChange(Ve.state.current-1)},Ve.next=function(){Ve.hasNext()&&Ve.handleChange(Ve.state.current+1)},Ve.jumpPrev=function(){Ve.handleChange(Ve.getJumpPrevPage())},Ve.jumpNext=function(){Ve.handleChange(Ve.getJumpNextPage())},Ve.hasPrev=function(){return Ve.state.current>1},Ve.hasNext=function(){return Ve.state.current<tt(void 0,Ve.state,Ve.props)},Ve.runIfEnter=function(fn,ut){if(fn.key==="Enter"||fn.charCode===13){for(var De=arguments.length,dt=new Array(De>2?De-2:0),Ft=2;Ft<De;Ft++)dt[Ft-2]=arguments[Ft];ut.apply(void 0,dt)}},Ve.runIfEnterPrev=function(fn){Ve.runIfEnter(fn,Ve.prev)},Ve.runIfEnterNext=function(fn){Ve.runIfEnter(fn,Ve.next)},Ve.runIfEnterJumpPrev=function(fn){Ve.runIfEnter(fn,Ve.jumpPrev)},Ve.runIfEnterJumpNext=function(fn){Ve.runIfEnter(fn,Ve.jumpNext)},Ve.handleGoTO=function(fn){(fn.keyCode===Re.ENTER||fn.type==="click")&&Ve.handleChange(Ve.state.currentInputValue)},Ve.renderPrev=function(fn){var ut=Ve.props,De=ut.prevIcon,dt=ut.itemRender,Ft=dt(fn,"prev",Ve.getItemIcon(De,"prev page")),zt=!Ve.hasPrev();return(0,Ae.isValidElement)(Ft)?(0,Ae.cloneElement)(Ft,{disabled:zt}):Ft},Ve.renderNext=function(fn){var ut=Ve.props,De=ut.nextIcon,dt=ut.itemRender,Ft=dt(fn,"next",Ve.getItemIcon(De,"next page")),zt=!Ve.hasNext();return(0,Ae.isValidElement)(Ft)?(0,Ae.cloneElement)(Ft,{disabled:zt}):Ft};var Ct=rt.onChange!==bt,rn="current"in rt;rn&&!Ct&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var lt=rt.defaultCurrent;"current"in rt&&(lt=rt.current);var _t=rt.defaultPageSize;return"pageSize"in rt&&(_t=rt.pageSize),lt=Math.min(lt,tt(_t,void 0,rt)),Ve.state={current:lt,currentInputValue:lt,pageSize:_t},Ve}return(0,ft.Z)(yt,[{key:"componentDidUpdate",value:function(Ve,Ct){var rn=this.props.prefixCls;if(Ct.current!==this.state.current&&this.paginationNode.current){var lt=this.paginationNode.current.querySelector(".".concat(rn,"-item-").concat(Ct.current));if(lt&&document.activeElement===lt){var _t;lt==null||(_t=lt.blur)===null||_t===void 0||_t.call(lt)}}}},{key:"getValidValue",value:function(Ve){var Ct=Ve.target.value,rn=tt(void 0,this.state,this.props),lt=this.state.currentInputValue,_t;return Ct===""?_t=Ct:Number.isNaN(Number(Ct))?_t=lt:Ct>=rn?_t=rn:_t=Number(Ct),_t}},{key:"getShowSizeChanger",value:function(){var Ve=this.props,Ct=Ve.showSizeChanger,rn=Ve.total,lt=Ve.totalBoundaryShowSizeChanger;return typeof Ct!="undefined"?Ct:rn>lt}},{key:"render",value:function(){var Ve=this.props,Ct=Ve.prefixCls,rn=Ve.className,lt=Ve.style,_t=Ve.disabled,fn=Ve.hideOnSinglePage,ut=Ve.total,De=Ve.locale,dt=Ve.showQuickJumper,Ft=Ve.showLessItems,zt=Ve.showTitle,an=Ve.showTotal,Bn=Ve.simple,qt=Ve.itemRender,pn=Ve.showPrevNextJumpers,zn=Ve.jumpPrevIcon,Vn=Ve.jumpNextIcon,Pn=Ve.selectComponentClass,Qn=Ve.selectPrefixCls,gr=Ve.pageSizeOptions,rr=this.state,er=rr.current,pr=rr.pageSize,Pr=rr.currentInputValue;if(fn===!0&&ut<=pr)return null;var $n=tt(void 0,this.state,this.props),Wr=[],vr=null,qr=null,xi=null,Ar=null,dr=null,Mr=dt&&dt.goButton,tr=Ft?1:2,Gn=er-1>0?er-1:0,Xr=er+1<$n?er+1:$n,Rt=(0,ht.Z)(this.props,{aria:!0,data:!0}),ze=an&&Ae.createElement("li",{className:"".concat(Ct,"-total-text")},an(ut,[ut===0?0:(er-1)*pr+1,er*pr>ut?ut:er*pr]));if(Bn){Mr&&(typeof Mr=="boolean"?dr=Ae.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},De.jump_to_confirm):dr=Ae.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Mr),dr=Ae.createElement("li",{title:zt?"".concat(De.jump_to).concat(er,"/").concat($n):null,className:"".concat(Ct,"-simple-pager")},dr));var $e=this.renderPrev(Gn);return Ae.createElement("ul",(0,ae.Z)({className:qe()(Ct,"".concat(Ct,"-simple"),(0,pt.Z)({},"".concat(Ct,"-disabled"),_t),rn),style:lt,ref:this.paginationNode},Rt),ze,$e?Ae.createElement("li",{title:zt?De.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:qe()("".concat(Ct,"-prev"),(0,pt.Z)({},"".concat(Ct,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},$e):null,Ae.createElement("li",{title:zt?"".concat(er,"/").concat($n):null,className:"".concat(Ct,"-simple-pager")},Ae.createElement("input",{type:"text",value:Pr,disabled:_t,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Ae.createElement("span",{className:"".concat(Ct,"-slash")},"/"),$n),Ae.createElement("li",{title:zt?De.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:qe()("".concat(Ct,"-next"),(0,pt.Z)({},"".concat(Ct,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Xr)),dr)}if($n<=3+tr*2){var Xe={locale:De,rootPrefixCls:Ct,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:zt,itemRender:qt};$n||Wr.push(Ae.createElement(Qe,(0,ae.Z)({},Xe,{key:"noPager",page:1,className:"".concat(Ct,"-item-disabled")})));for(var Ze=1;Ze<=$n;Ze+=1){var Et=er===Ze;Wr.push(Ae.createElement(Qe,(0,ae.Z)({},Xe,{key:Ze,page:Ze,active:Et})))}}else{var Tt=Ft?De.prev_3:De.prev_5,hn=Ft?De.next_3:De.next_5,ln=qt(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(zn,"prev page")),wn=qt(this.getJumpNextPage(),"jump-next",this.getItemIcon(Vn,"next page"));pn&&(vr=ln?Ae.createElement("li",{title:zt?Tt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:qe()("".concat(Ct,"-jump-prev"),(0,pt.Z)({},"".concat(Ct,"-jump-prev-custom-icon"),!!zn))},ln):null,qr=wn?Ae.createElement("li",{title:zt?hn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:qe()("".concat(Ct,"-jump-next"),(0,pt.Z)({},"".concat(Ct,"-jump-next-custom-icon"),!!Vn))},wn):null),Ar=Ae.createElement(Qe,{locale:De,last:!0,rootPrefixCls:Ct,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:$n,page:$n,active:!1,showTitle:zt,itemRender:qt}),xi=Ae.createElement(Qe,{locale:De,rootPrefixCls:Ct,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:zt,itemRender:qt});var Tn=Math.max(1,er-tr),Fn=Math.min(er+tr,$n);er-1<=tr&&(Fn=1+tr*2),$n-er<=tr&&(Tn=$n-tr*2);for(var jn=Tn;jn<=Fn;jn+=1){var Qt=er===jn;Wr.push(Ae.createElement(Qe,{locale:De,rootPrefixCls:Ct,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:jn,page:jn,active:Qt,showTitle:zt,itemRender:qt}))}er-1>=tr*2&&er!==3&&(Wr[0]=(0,Ae.cloneElement)(Wr[0],{className:"".concat(Ct,"-item-after-jump-prev")}),Wr.unshift(vr)),$n-er>=tr*2&&er!==$n-2&&(Wr[Wr.length-1]=(0,Ae.cloneElement)(Wr[Wr.length-1],{className:"".concat(Ct,"-item-before-jump-next")}),Wr.push(qr)),Tn!==1&&Wr.unshift(xi),Fn!==$n&&Wr.push(Ar)}var Dn=!this.hasPrev()||!$n,Dt=!this.hasNext()||!$n,Zt=this.renderPrev(Gn),on=this.renderNext(Xr);return Ae.createElement("ul",(0,ae.Z)({className:qe()(Ct,rn,(0,pt.Z)({},"".concat(Ct,"-disabled"),_t)),style:lt,ref:this.paginationNode},Rt),ze,Zt?Ae.createElement("li",{title:zt?De.prev_page:null,onClick:this.prev,tabIndex:Dn?null:0,onKeyPress:this.runIfEnterPrev,className:qe()("".concat(Ct,"-prev"),(0,pt.Z)({},"".concat(Ct,"-disabled"),Dn)),"aria-disabled":Dn},Zt):null,Wr,on?Ae.createElement("li",{title:zt?De.next_page:null,onClick:this.next,tabIndex:Dt?null:0,onKeyPress:this.runIfEnterNext,className:qe()("".concat(Ct,"-next"),(0,pt.Z)({},"".concat(Ct,"-disabled"),Dt)),"aria-disabled":Dt},on):null,Ae.createElement(et,{disabled:_t,locale:De,rootPrefixCls:Ct,selectComponentClass:Pn,selectPrefixCls:Qn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:er,pageSize:pr,pageSizeOptions:gr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Mr}))}}],[{key:"getDerivedStateFromProps",value:function(Ve,Ct){var rn={};if("current"in Ve&&(rn.current=Ve.current,Ve.current!==Ct.current&&(rn.currentInputValue=rn.current)),"pageSize"in Ve&&Ve.pageSize!==Ct.pageSize){var lt=Ct.current,_t=tt(Ve.pageSize,Ct,Ve);lt=lt>_t?_t:lt,"current"in Ve||(rn.current=lt,rn.currentInputValue=lt),rn.pageSize=Ve.pageSize}return rn}}]),yt}(Ae.Component);Ut.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:bt,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:bt,locale:Ce.Z,style:{},itemRender:Lt,totalBoundaryShowSizeChanger:50};var At=Ut,Mt=oe(22075),Wt=oe(36355),It=oe(19716),Ge=oe(8628),be=oe(9763),Ye=oe(57809);const Pt=Ie=>Ae.createElement(Ye.default,Object.assign({},Ie,{showSearch:!0,size:"small"})),xt=Ie=>Ae.createElement(Ye.default,Object.assign({},Ie,{showSearch:!0,size:"middle"}));Pt.Option=Ye.default.Option,xt.Option=Ye.default.Option;var Ue=oe(9937),at=oe(17313),Ot=oe(83116),kn=oe(37613);const Kt=Ie=>{const{componentCls:Be}=Ie;return{[`${Be}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Be}-item-link`]:{color:Ie.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Be}-item-link`]:{color:Ie.colorTextDisabled,cursor:"not-allowed"}}},[`&${Be}-disabled`]:{cursor:"not-allowed",[`${Be}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Ie.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Ie.colorBorder,backgroundColor:Ie.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Ie.itemActiveBgDisabled},a:{color:Ie.itemActiveColorDisabled}}},[`${Be}-item-link`]:{color:Ie.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Be}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Be}-simple-pager`]:{color:Ie.colorTextDisabled},[`${Be}-jump-prev, ${Be}-jump-next`]:{[`${Be}-item-link-icon`]:{opacity:0},[`${Be}-item-ellipsis`]:{opacity:1}}},[`&${Be}-simple`]:{[`${Be}-prev, ${Be}-next`]:{[`&${Be}-disabled ${Be}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},gn=Ie=>{const{componentCls:Be}=Ie;return{[`&${Be}-mini ${Be}-total-text, &${Be}-mini ${Be}-simple-pager`]:{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`},[`&${Be}-mini ${Be}-item`]:{minWidth:Ie.itemSizeSM,height:Ie.itemSizeSM,margin:0,lineHeight:`${Ie.itemSizeSM-2}px`},[`&${Be}-mini:not(${Be}-disabled) ${Be}-item:not(${Be}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Ie.colorBgTextHover},"&:active":{backgroundColor:Ie.colorBgTextActive}},[`&${Be}-mini ${Be}-prev, &${Be}-mini ${Be}-next`]:{minWidth:Ie.itemSizeSM,height:Ie.itemSizeSM,margin:0,lineHeight:`${Ie.itemSizeSM}px`},[`&${Be}-mini:not(${Be}-disabled)`]:{[`${Be}-prev, ${Be}-next`]:{[`&:hover ${Be}-item-link`]:{backgroundColor:Ie.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:Ie.colorBgTextActive},[`&${Be}-disabled:hover ${Be}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Be}-mini ${Be}-prev ${Be}-item-link,
|
|
|
&${Be}-mini ${Be}-next ${Be}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`}},[`&${Be}-mini ${Be}-jump-prev, &${Be}-mini ${Be}-jump-next`]:{height:Ie.itemSizeSM,marginInlineEnd:0,lineHeight:`${Ie.itemSizeSM}px`},[`&${Be}-mini ${Be}-options`]:{marginInlineStart:Ie.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Ie.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ue.x0)(Ie)),{width:Ie.paginationMiniQuickJumperInputWidth,height:Ie.controlHeightSM})}}}},nn=Ie=>{const{componentCls:Be}=Ie;return{[`
|
|
|
&${Be}-simple ${Be}-prev,
|
|
|
&${Be}-simple ${Be}-next
|
|
|
`]:{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`,verticalAlign:"top",[`${Be}-item-link`]:{height:Ie.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Ie.colorBgTextHover},"&:active":{backgroundColor:Ie.colorBgTextActive},"&::after":{height:Ie.itemSizeSM,lineHeight:`${Ie.itemSizeSM}px`}}},[`&${Be}-simple ${Be}-simple-pager`]:{display:"inline-block",height:Ie.itemSizeSM,marginInlineEnd:Ie.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Ie.marginXS,padding:`0 ${Ie.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Ie.itemInputBg,border:`${Ie.lineWidth}px ${Ie.lineType} ${Ie.colorBorder}`,borderRadius:Ie.borderRadius,outline:"none",transition:`border-color ${Ie.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Ie.colorPrimary},"&:focus":{borderColor:Ie.colorPrimaryHover,boxShadow:`${Ie.inputOutlineOffset}px 0 ${Ie.controlOutlineWidth}px ${Ie.controlOutline}`},"&[disabled]":{color:Ie.colorTextDisabled,backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,cursor:"not-allowed"}}}}},Gt=Ie=>{const{componentCls:Be}=Ie;return{[`${Be}-jump-prev, ${Be}-jump-next`]:{outline:0,[`${Be}-item-container`]:{position:"relative",[`${Be}-item-link-icon`]:{color:Ie.colorPrimary,fontSize:Ie.fontSizeSM,opacity:0,transition:`all ${Ie.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Be}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Ie.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Ie.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Ie.paginationEllipsisTextIndent,opacity:1,transition:`all ${Ie.motionDurationMid}`}},"&:hover":{[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Be}-prev,
|
|
|
${Be}-jump-prev,
|
|
|
${Be}-jump-next
|
|
|
`]:{marginInlineEnd:Ie.marginXS},[`
|
|
|
${Be}-prev,
|
|
|
${Be}-next,
|
|
|
${Be}-jump-prev,
|
|
|
${Be}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Ie.itemSize,height:Ie.itemSize,color:Ie.colorText,fontFamily:Ie.fontFamily,lineHeight:`${Ie.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Ie.borderRadius,cursor:"pointer",transition:`all ${Ie.motionDurationMid}`},[`${Be}-prev, ${Be}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Ie.colorText,cursor:"pointer",userSelect:"none"},[`${Be}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Ie.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Ie.lineWidth}px ${Ie.lineType} transparent`,borderRadius:Ie.borderRadius,outline:"none",transition:`all ${Ie.motionDurationMid}`},[`&:hover ${Be}-item-link`]:{backgroundColor:Ie.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:Ie.colorBgTextActive},[`&${Be}-disabled:hover`]:{[`${Be}-item-link`]:{backgroundColor:"transparent"}}},[`${Be}-slash`]:{marginInlineEnd:Ie.paginationSlashMarginInlineEnd,marginInlineStart:Ie.paginationSlashMarginInlineStart},[`${Be}-options`]:{display:"inline-block",marginInlineStart:Ie.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Ie.controlHeight,marginInlineStart:Ie.marginXS,lineHeight:`${Ie.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ue.ik)(Ie)),{width:Ie.controlHeightLG*1.25,height:Ie.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Ie.marginXS,marginInlineEnd:Ie.marginXS})}}}},Xt=Ie=>{const{componentCls:Be}=Ie;return{[`${Be}-item`]:{display:"inline-block",minWidth:Ie.itemSize,height:Ie.itemSize,marginInlineEnd:Ie.marginXS,fontFamily:Ie.fontFamily,lineHeight:`${Ie.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Ie.lineWidth}px ${Ie.lineType} transparent`,borderRadius:Ie.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Ie.paginationItemPaddingInline}px`,color:Ie.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Be}-item-active)`]:{"&:hover":{transition:`all ${Ie.motionDurationMid}`,backgroundColor:Ie.colorBgTextHover},"&:active":{backgroundColor:Ie.colorBgTextActive}},"&-active":{fontWeight:Ie.fontWeightStrong,backgroundColor:Ie.itemActiveBg,borderColor:Ie.colorPrimary,a:{color:Ie.colorPrimary},"&:hover":{borderColor:Ie.colorPrimaryHover},"&:hover a":{color:Ie.colorPrimaryHover}}}}},ye=Ie=>{const{componentCls:Be}=Ie;return{[Be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,at.Wf)(Ie)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Be}-total-text`]:{display:"inline-block",height:Ie.itemSize,marginInlineEnd:Ie.marginXS,lineHeight:`${Ie.itemSize-2}px`,verticalAlign:"middle"}}),Xt(Ie)),Gt(Ie)),nn(Ie)),gn(Ie)),Kt(Ie)),{[`@media only screen and (max-width: ${Ie.screenLG}px)`]:{[`${Be}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Ie.screenSM}px)`]:{[`${Be}-options`]:{display:"none"}}}),[`&${Ie.componentCls}-rtl`]:{direction:"rtl"}}},ue=Ie=>{const{componentCls:Be}=Ie;return{[`${Be}${Be}-disabled:not(${Be}-mini)`]:{"&, &:hover":{[`${Be}-item-link`]:{borderColor:Ie.colorBorder}},"&:focus-visible":{[`${Be}-item-link`]:{borderColor:Ie.colorBorder}},[`${Be}-item, ${Be}-item-link`]:{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,[`&:hover:not(${Be}-item-active)`]:{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,a:{color:Ie.colorTextDisabled}},[`&${Be}-item-active`]:{backgroundColor:Ie.itemActiveBgDisabled}},[`${Be}-prev, ${Be}-next`]:{"&:hover button":{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder,color:Ie.colorTextDisabled},[`${Be}-item-link`]:{backgroundColor:Ie.colorBgContainerDisabled,borderColor:Ie.colorBorder}}},[`${Be}:not(${Be}-mini)`]:{[`${Be}-prev, ${Be}-next`]:{"&:hover button":{borderColor:Ie.colorPrimaryHover,backgroundColor:Ie.itemBg},[`${Be}-item-link`]:{backgroundColor:Ie.itemLinkBg,borderColor:Ie.colorBorder},[`&:hover ${Be}-item-link`]:{borderColor:Ie.colorPrimary,backgroundColor:Ie.itemBg,color:Ie.colorPrimary},[`&${Be}-disabled`]:{[`${Be}-item-link`]:{borderColor:Ie.colorBorder,color:Ie.colorTextDisabled}}},[`${Be}-item`]:{backgroundColor:Ie.itemBg,border:`${Ie.lineWidth}px ${Ie.lineType} ${Ie.colorBorder}`,[`&:hover:not(${Be}-item-active)`]:{borderColor:Ie.colorPrimary,backgroundColor:Ie.itemBg,a:{color:Ie.colorPrimary}},"&-active":{borderColor:Ie.colorPrimary}}}}},ce=Ie=>{const{componentCls:Be}=Ie;return{[`${Be}:not(${Be}-disabled)`]:{[`${Be}-item`]:Object.assign({},(0,at.Qy)(Ie)),[`${Be}-jump-prev, ${Be}-jump-next`]:{"&:focus-visible":Object.assign({[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}},(0,at.oN)(Ie))},[`${Be}-prev, ${Be}-next`]:{[`&:focus-visible ${Be}-item-link`]:Object.assign({},(0,at.oN)(Ie))}}}};var de=(0,Ot.Z)("Pagination",Ie=>{const Be=(0,kn.TS)(Ie,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Ie.marginXXS/2,paginationMiniQuickJumperInputWidth:Ie.controlHeightLG*1.1,paginationItemPaddingInline:Ie.marginXXS*1.5,paginationEllipsisLetterSpacing:Ie.marginXXS/2,paginationSlashMarginInlineStart:Ie.marginXXS,paginationSlashMarginInlineEnd:Ie.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ue.e5)(Ie),(0,Ue.TM)(Ie));return[ye(Be),ce(Be),Ie.wireframe&&ue(Be)]},Ie=>({itemBg:Ie.colorBgContainer,itemSize:Ie.controlHeight,itemSizeSM:Ie.controlHeightSM,itemActiveBg:Ie.colorBgContainer,itemLinkBg:Ie.colorBgContainer,itemActiveColorDisabled:Ie.colorTextDisabled,itemActiveBgDisabled:Ie.controlItemBgActiveDisabled,itemInputBg:Ie.colorBgContainer,miniOptionsSizeChangerTop:0})),he=function(Ie,Be){var yt={};for(var rt in Ie)Object.prototype.hasOwnProperty.call(Ie,rt)&&Be.indexOf(rt)<0&&(yt[rt]=Ie[rt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,rt=Object.getOwnPropertySymbols(Ie);Ve<rt.length;Ve++)Be.indexOf(rt[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Ie,rt[Ve])&&(yt[rt[Ve]]=Ie[rt[Ve]]);return yt},ke=Ie=>{const{prefixCls:Be,selectPrefixCls:yt,className:rt,rootClassName:Ve,style:Ct,size:rn,locale:lt,selectComponentClass:_t,responsive:fn,showSizeChanger:ut}=Ie,De=he(Ie,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:dt}=(0,Ge.Z)(fn),{getPrefixCls:Ft,direction:zt,pagination:an={}}=Ae.useContext(Wt.E_),Bn=Ft("pagination",Be),[qt,pn]=de(Bn),zn=ut!=null?ut:an.showSizeChanger,Vn=Ae.useMemo(()=>{const $n=Ae.createElement("span",{className:`${Bn}-item-ellipsis`},"\u2022\u2022\u2022"),Wr=Ae.createElement("button",{className:`${Bn}-item-link`,type:"button",tabIndex:-1},zt==="rtl"?Ae.createElement(vt.Z,null):Ae.createElement(_e.Z,null)),vr=Ae.createElement("button",{className:`${Bn}-item-link`,type:"button",tabIndex:-1},zt==="rtl"?Ae.createElement(_e.Z,null):Ae.createElement(vt.Z,null)),qr=Ae.createElement("a",{className:`${Bn}-item-link`},Ae.createElement("div",{className:`${Bn}-item-container`},zt==="rtl"?Ae.createElement(Me.Z,{className:`${Bn}-item-link-icon`}):Ae.createElement(ve,{className:`${Bn}-item-link-icon`}),$n)),xi=Ae.createElement("a",{className:`${Bn}-item-link`},Ae.createElement("div",{className:`${Bn}-item-container`},zt==="rtl"?Ae.createElement(ve,{className:`${Bn}-item-link-icon`}):Ae.createElement(Me.Z,{className:`${Bn}-item-link-icon`}),$n));return{prevIcon:Wr,nextIcon:vr,jumpPrevIcon:qr,jumpNextIcon:xi}},[zt,Bn]),[Pn]=(0,be.Z)("Pagination",Mt.Z),Qn=Object.assign(Object.assign({},Pn),lt),gr=(0,It.Z)(rn),rr=gr==="small"||!!(dt&&!gr&&fn),er=Ft("select",yt),pr=qe()({[`${Bn}-mini`]:rr,[`${Bn}-rtl`]:zt==="rtl"},an==null?void 0:an.className,rt,Ve,pn),Pr=Object.assign(Object.assign({},an==null?void 0:an.style),Ct);return qt(Ae.createElement(At,Object.assign({},Vn,De,{style:Pr,prefixCls:Bn,selectPrefixCls:er,className:pr,selectComponentClass:_t||(rr?Pt:xt),locale:Qn,showSizeChanger:zn})))},gt=ke},93948:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ut}});var ae=oe(59301),Ae=oe(29679),Le=oe(40001),ct=oe(19248),xe=oe(99267),Ee=oe(92310),pe=oe.n(Ee),ve=oe(2738),Me=oe(36355),_e=oe(60499),vt=oe(85899),Fe=oe(42244),qe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},pt=function(){var dt=(0,ae.useRef)([]),Ft=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var zt=Date.now(),an=!1;dt.current.forEach(function(Bn){if(Bn){an=!0;var qt=Bn.style;qt.transitionDuration=".3s, .3s, .3s, .06s",Ft.current&&zt-Ft.current<100&&(qt.transitionDuration="0s, 0s")}}),an&&(Ft.current=Date.now())}),dt.current},Ke=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],je=function(dt){var Ft=(0,vt.Z)((0,vt.Z)({},qe),dt),zt=Ft.className,an=Ft.percent,Bn=Ft.prefixCls,qt=Ft.strokeColor,pn=Ft.strokeLinecap,zn=Ft.strokeWidth,Vn=Ft.style,Pn=Ft.trailColor,Qn=Ft.trailWidth,gr=Ft.transition,rr=(0,Fe.Z)(Ft,Ke);delete rr.gapPosition;var er=Array.isArray(an)?an:[an],pr=Array.isArray(qt)?qt:[qt],Pr=pt(),$n=zn/2,Wr=100-zn/2,vr="M ".concat(pn==="round"?$n:0,",").concat($n,`
|
|
|
L `).concat(pn==="round"?Wr:100,",").concat($n),qr="0 0 100 ".concat(zn),xi=0;return ae.createElement("svg",(0,_e.Z)({className:pe()("".concat(Bn,"-line"),zt),viewBox:qr,preserveAspectRatio:"none",style:Vn},rr),ae.createElement("path",{className:"".concat(Bn,"-line-trail"),d:vr,strokeLinecap:pn,stroke:Pn,strokeWidth:Qn||zn,fillOpacity:"0"}),er.map(function(Ar,dr){var Mr=1;switch(pn){case"round":Mr=1-zn/100;break;case"square":Mr=1-zn/2/100;break;default:Mr=1;break}var tr={strokeDasharray:"".concat(Ar*Mr,"px, 100px"),strokeDashoffset:"-".concat(xi,"px"),transition:gr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Gn=pr[dr]||pr[pr.length-1];return xi+=Ar,ae.createElement("path",{key:dr,className:"".concat(Bn,"-line-path"),d:vr,strokeLinecap:pn,stroke:Gn,strokeWidth:zn,fillOpacity:"0",ref:function(Rt){Pr[dr]=Rt},style:tr})}))},ft=je,mt=oe(43749),Bt=oe(72190),ht=oe(47273),nt=0,Re=(0,ht.Z)();function Ce(){var De;return Re?(De=nt,nt+=1):De="TEST_OR_SSR",De}var Je=function(De){var dt=ae.useState(),Ft=(0,Bt.Z)(dt,2),zt=Ft[0],an=Ft[1];return ae.useEffect(function(){an("rc_progress_".concat(Ce()))},[]),De||zt},et=function(dt){var Ft=dt.bg,zt=dt.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Ft}},zt)};function wt(De,dt){return Object.keys(De).map(function(Ft){var zt=parseFloat(Ft),an="".concat(Math.floor(zt*dt),"%");return"".concat(De[Ft]," ").concat(an)})}var Qe=ae.forwardRef(function(De,dt){var Ft=De.prefixCls,zt=De.color,an=De.gradientId,Bn=De.radius,qt=De.style,pn=De.ptg,zn=De.strokeLinecap,Vn=De.strokeWidth,Pn=De.size,Qn=De.gapDegree,gr=zt&&(0,mt.Z)(zt)==="object",rr=gr?"#FFF":void 0,er=Pn/2,pr=ae.createElement("circle",{className:"".concat(Ft,"-circle-path"),r:Bn,cx:er,cy:er,stroke:rr,strokeLinecap:zn,strokeWidth:Vn,opacity:pn===0?0:1,style:qt,ref:dt});if(!gr)return pr;var Pr="".concat(an,"-conic"),$n=Qn?"".concat(180+Qn/2,"deg"):"0deg",Wr=wt(zt,(360-Qn)/360),vr=wt(zt,1),qr="conic-gradient(from ".concat($n,", ").concat(Wr.join(", "),")"),xi="linear-gradient(to ".concat(Qn?"bottom":"top",", ").concat(vr.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Pr},pr),ae.createElement("foreignObject",{x:0,y:0,width:Pn,height:Pn,mask:"url(#".concat(Pr,")")},ae.createElement(et,{bg:xi},ae.createElement(et,{bg:qr}))))}),bt=Qe,Oe=100,Lt=function(dt,Ft,zt,an,Bn,qt,pn,zn,Vn,Pn){var Qn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,gr=zt/100*360*((360-qt)/360),rr=qt===0?0:{bottom:0,top:180,left:90,right:-90}[pn],er=(100-an)/100*Ft;Vn==="round"&&an!==100&&(er+=Pn/2,er>=Ft&&(er=Ft-.01));var pr=Oe/2;return{stroke:typeof zn=="string"?zn:void 0,strokeDasharray:"".concat(Ft,"px ").concat(dt),strokeDashoffset:er+Qn,transform:"rotate(".concat(Bn+gr+rr,"deg)"),transformOrigin:"".concat(pr,"px ").concat(pr,"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}},tt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ut(De){var dt=De!=null?De:[];return Array.isArray(dt)?dt:[dt]}var At=function(dt){var Ft=(0,vt.Z)((0,vt.Z)({},qe),dt),zt=Ft.id,an=Ft.prefixCls,Bn=Ft.steps,qt=Ft.strokeWidth,pn=Ft.trailWidth,zn=Ft.gapDegree,Vn=zn===void 0?0:zn,Pn=Ft.gapPosition,Qn=Ft.trailColor,gr=Ft.strokeLinecap,rr=Ft.style,er=Ft.className,pr=Ft.strokeColor,Pr=Ft.percent,$n=(0,Fe.Z)(Ft,tt),Wr=Oe/2,vr=Je(zt),qr="".concat(vr,"-gradient"),xi=Wr-qt/2,Ar=Math.PI*2*xi,dr=Vn>0?90+Vn/2:-90,Mr=Ar*((360-Vn)/360),tr=(0,mt.Z)(Bn)==="object"?Bn:{count:Bn,space:2},Gn=tr.count,Xr=tr.space,Rt=Ut(Pr),ze=Ut(pr),$e=ze.find(function(wn){return wn&&(0,mt.Z)(wn)==="object"}),Xe=$e&&(0,mt.Z)($e)==="object",Ze=Xe?"butt":gr,Et=Lt(Ar,Mr,0,100,dr,Vn,Pn,Qn,Ze,qt),Tt=pt(),hn=function(){var Tn=0;return Rt.map(function(Fn,jn){var Qt=ze[jn]||ze[ze.length-1],Dn=Lt(Ar,Mr,Tn,Fn,dr,Vn,Pn,Qt,Ze,qt);return Tn+=Fn,ae.createElement(bt,{key:jn,color:Qt,ptg:Fn,radius:xi,prefixCls:an,gradientId:qr,style:Dn,strokeLinecap:Ze,strokeWidth:qt,gapDegree:Vn,ref:function(Zt){Tt[jn]=Zt},size:Oe})}).reverse()},ln=function(){var Tn=Math.round(Gn*(Rt[0]/100)),Fn=100/Gn,jn=0;return new Array(Gn).fill(null).map(function(Qt,Dn){var Dt=Dn<=Tn-1?ze[0]:Qn,Zt=Dt&&(0,mt.Z)(Dt)==="object"?"url(#".concat(qr,")"):void 0,on=Lt(Ar,Mr,jn,Fn,dr,Vn,Pn,Dt,"butt",qt,Xr);return jn+=(Mr-on.strokeDashoffset+Xr)*100/Mr,ae.createElement("circle",{key:Dn,className:"".concat(an,"-circle-path"),r:xi,cx:Wr,cy:Wr,stroke:Zt,strokeWidth:qt,opacity:1,style:on,ref:function(In){Tt[Dn]=In}})})};return ae.createElement("svg",(0,_e.Z)({className:pe()("".concat(an,"-circle"),er),viewBox:"0 0 ".concat(Oe," ").concat(Oe),style:rr,id:zt,role:"presentation"},$n),!Gn&&ae.createElement("circle",{className:"".concat(an,"-circle-trail"),r:xi,cx:Wr,cy:Wr,stroke:Qn,strokeLinecap:Ze,strokeWidth:pn||qt,style:Et}),Gn?ln():hn())},Mt=At,Wt={Line:ft,Circle:Mt},It=oe(6848),Ge=oe(30071);function be(De){return!De||De<0?0:De>100?100:De}function Ye(De){let{success:dt,successPercent:Ft}=De,zt=Ft;return dt&&"progress"in dt&&(zt=dt.progress),dt&&"percent"in dt&&(zt=dt.percent),zt}const Pt=De=>{let{percent:dt,success:Ft,successPercent:zt}=De;const an=be(Ye({success:Ft,successPercent:zt}));return[an,be(be(dt)-an)]},xt=De=>{let{success:dt={},strokeColor:Ft}=De;const{strokeColor:zt}=dt;return[zt||Ge.presetPrimaryColors.green,Ft||null]},Ue=(De,dt,Ft)=>{var zt,an,Bn,qt;let pn=-1,zn=-1;if(dt==="step"){const Vn=Ft.steps,Pn=Ft.strokeWidth;typeof De=="string"||typeof De=="undefined"?(pn=De==="small"?2:14,zn=Pn!=null?Pn:8):typeof De=="number"?[pn,zn]=[De,De]:[pn=14,zn=8]=De,pn*=Vn}else if(dt==="line"){const Vn=Ft==null?void 0:Ft.strokeWidth;typeof De=="string"||typeof De=="undefined"?zn=Vn||(De==="small"?6:8):typeof De=="number"?[pn,zn]=[De,De]:[pn=-1,zn=8]=De}else(dt==="circle"||dt==="dashboard")&&(typeof De=="string"||typeof De=="undefined"?[pn,zn]=De==="small"?[60,60]:[120,120]:typeof De=="number"?[pn,zn]=[De,De]:(pn=(an=(zt=De[0])!==null&&zt!==void 0?zt:De[1])!==null&&an!==void 0?an:120,zn=(qt=(Bn=De[0])!==null&&Bn!==void 0?Bn:De[1])!==null&&qt!==void 0?qt:120));return[pn,zn]},at=3,Ot=De=>at/De*100;var Kt=De=>{const{prefixCls:dt,trailColor:Ft=null,strokeLinecap:zt="round",gapPosition:an,gapDegree:Bn,width:qt=120,type:pn,children:zn,success:Vn,size:Pn=qt}=De,[Qn,gr]=Ue(Pn,"circle");let{strokeWidth:rr}=De;rr===void 0&&(rr=Math.max(Ot(Qn),6));const er={width:Qn,height:gr,fontSize:Qn*.15+6},pr=ae.useMemo(()=>{if(Bn||Bn===0)return Bn;if(pn==="dashboard")return 75},[Bn,pn]),Pr=an||pn==="dashboard"&&"bottom"||void 0,$n=Object.prototype.toString.call(De.strokeColor)==="[object Object]",Wr=xt({success:Vn,strokeColor:De.strokeColor}),vr=pe()(`${dt}-inner`,{[`${dt}-circle-gradient`]:$n}),qr=ae.createElement(Mt,{percent:Pt(De),strokeWidth:rr,trailWidth:rr,strokeColor:Wr,strokeLinecap:zt,trailColor:Ft,prefixCls:dt,gapDegree:pr,gapPosition:Pr});return ae.createElement("div",{className:vr,style:er},Qn<=20?ae.createElement(It.Z,{title:zn},ae.createElement("span",null,qr)):ae.createElement(ae.Fragment,null,qr,zn))},gn=function(De,dt){var Ft={};for(var zt in De)Object.prototype.hasOwnProperty.call(De,zt)&&dt.indexOf(zt)<0&&(Ft[zt]=De[zt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var an=0,zt=Object.getOwnPropertySymbols(De);an<zt.length;an++)dt.indexOf(zt[an])<0&&Object.prototype.propertyIsEnumerable.call(De,zt[an])&&(Ft[zt[an]]=De[zt[an]]);return Ft};const nn=De=>{let dt=[];return Object.keys(De).forEach(Ft=>{const zt=parseFloat(Ft.replace(/%/g,""));isNaN(zt)||dt.push({key:zt,value:De[Ft]})}),dt=dt.sort((Ft,zt)=>Ft.key-zt.key),dt.map(Ft=>{let{key:zt,value:an}=Ft;return`${an} ${zt}%`}).join(", ")},Gt=(De,dt)=>{const{from:Ft=Ge.presetPrimaryColors.blue,to:zt=Ge.presetPrimaryColors.blue,direction:an=dt==="rtl"?"to left":"to right"}=De,Bn=gn(De,["from","to","direction"]);if(Object.keys(Bn).length!==0){const qt=nn(Bn);return{backgroundImage:`linear-gradient(${an}, ${qt})`}}return{backgroundImage:`linear-gradient(${an}, ${Ft}, ${zt})`}};var ye=De=>{const{prefixCls:dt,direction:Ft,percent:zt,size:an,strokeWidth:Bn,strokeColor:qt,strokeLinecap:pn="round",children:zn,trailColor:Vn=null,success:Pn}=De,Qn=qt&&typeof qt!="string"?Gt(qt,Ft):{backgroundColor:qt},gr=pn==="square"||pn==="butt"?0:void 0,rr={backgroundColor:Vn||void 0,borderRadius:gr},er=an!=null?an:[-1,Bn||(an==="small"?6:8)],[pr,Pr]=Ue(er,"line",{strokeWidth:Bn}),$n=Object.assign({width:`${be(zt)}%`,height:Pr,borderRadius:gr},Qn),Wr=Ye(De),vr={width:`${be(Wr)}%`,height:Pr,borderRadius:gr,backgroundColor:Pn==null?void 0:Pn.strokeColor},qr={width:pr<0?"100%":pr,height:Pr};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${dt}-outer`,style:qr},ae.createElement("div",{className:`${dt}-inner`,style:rr},ae.createElement("div",{className:`${dt}-bg`,style:$n}),Wr!==void 0?ae.createElement("div",{className:`${dt}-success-bg`,style:vr}):null)),zn)},ce=De=>{const{size:dt,steps:Ft,percent:zt=0,strokeWidth:an=8,strokeColor:Bn,trailColor:qt=null,prefixCls:pn,children:zn}=De,Vn=Math.round(Ft*(zt/100)),Pn=dt==="small"?2:14,Qn=dt!=null?dt:[Pn,an],[gr,rr]=Ue(Qn,"step",{steps:Ft,strokeWidth:an}),er=gr/Ft,pr=new Array(Ft);for(let Pr=0;Pr<Ft;Pr++){const $n=Array.isArray(Bn)?Bn[Pr]:Bn;pr[Pr]=ae.createElement("div",{key:Pr,className:pe()(`${pn}-steps-item`,{[`${pn}-steps-item-active`]:Pr<=Vn-1}),style:{backgroundColor:Pr<=Vn-1?$n:qt,width:er,height:rr}})}return ae.createElement("div",{className:`${pn}-steps-outer`},pr,zn)},de=oe(36237),he=oe(17313),se=oe(83116),ke=oe(37613);const gt=De=>{const dt=De?"100%":"-100%";return new de.Keyframes(`antProgress${De?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${dt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${dt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ie=De=>{const{componentCls:dt,iconCls:Ft}=De;return{[dt]:Object.assign(Object.assign({},(0,he.Wf)(De)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:De.fontSize,marginInlineEnd:De.marginXS,marginBottom:De.marginXS},[`${dt}-outer`]:{display:"inline-block",width:"100%"},[`&${dt}-show-info`]:{[`${dt}-outer`]:{marginInlineEnd:`calc(-2em - ${De.marginXS}px)`,paddingInlineEnd:`calc(2em + ${De.paddingXS}px)`}},[`${dt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:De.remainingColor,borderRadius:De.lineBorderRadius},[`${dt}-inner:not(${dt}-circle-gradient)`]:{[`${dt}-circle-path`]:{stroke:De.defaultColor}},[`${dt}-success-bg, ${dt}-bg`]:{position:"relative",backgroundColor:De.defaultColor,borderRadius:De.lineBorderRadius,transition:`all ${De.motionDurationSlow} ${De.motionEaseInOutCirc}`},[`${dt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:De.colorSuccess},[`${dt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:De.marginXS,color:De.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ft]:{fontSize:De.fontSize}},[`&${dt}-status-active`]:{[`${dt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:De.colorBgContainer,borderRadius:De.lineBorderRadius,opacity:0,animationName:gt(),animationDuration:De.progressActiveMotionDuration,animationTimingFunction:De.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${dt}-rtl${dt}-status-active`]:{[`${dt}-bg::before`]:{animationName:gt(!0)}},[`&${dt}-status-exception`]:{[`${dt}-bg`]:{backgroundColor:De.colorError},[`${dt}-text`]:{color:De.colorError}},[`&${dt}-status-exception ${dt}-inner:not(${dt}-circle-gradient)`]:{[`${dt}-circle-path`]:{stroke:De.colorError}},[`&${dt}-status-success`]:{[`${dt}-bg`]:{backgroundColor:De.colorSuccess},[`${dt}-text`]:{color:De.colorSuccess}},[`&${dt}-status-success ${dt}-inner:not(${dt}-circle-gradient)`]:{[`${dt}-circle-path`]:{stroke:De.colorSuccess}}})}},Be=De=>{const{componentCls:dt,iconCls:Ft}=De;return{[dt]:{[`${dt}-circle-trail`]:{stroke:De.remainingColor},[`&${dt}-circle ${dt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${dt}-circle ${dt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:De.circleTextColor,fontSize:De.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ft]:{fontSize:`${De.fontSize/De.fontSizeSM}em`}},[`${dt}-circle&-status-exception`]:{[`${dt}-text`]:{color:De.colorError}},[`${dt}-circle&-status-success`]:{[`${dt}-text`]:{color:De.colorSuccess}}},[`${dt}-inline-circle`]:{lineHeight:1,[`${dt}-inner`]:{verticalAlign:"bottom"}}}},yt=De=>{const{componentCls:dt}=De;return{[dt]:{[`${dt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:De.progressStepMinWidth,marginInlineEnd:De.progressStepMarginInlineEnd,backgroundColor:De.remainingColor,transition:`all ${De.motionDurationSlow}`,"&-active":{backgroundColor:De.defaultColor}}}}}},rt=De=>{const{componentCls:dt,iconCls:Ft}=De;return{[dt]:{[`${dt}-small&-line, ${dt}-small&-line ${dt}-text ${Ft}`]:{fontSize:De.fontSizeSM}}}};var Ve=(0,se.Z)("Progress",De=>{const dt=De.marginXXS/2,Ft=(0,ke.TS)(De,{progressStepMarginInlineEnd:dt,progressStepMinWidth:dt,progressActiveMotionDuration:"2.4s"});return[Ie(Ft),Be(Ft),yt(Ft),rt(Ft)]},De=>({circleTextColor:De.colorText,defaultColor:De.colorInfo,remainingColor:De.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ct=function(De,dt){var Ft={};for(var zt in De)Object.prototype.hasOwnProperty.call(De,zt)&&dt.indexOf(zt)<0&&(Ft[zt]=De[zt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var an=0,zt=Object.getOwnPropertySymbols(De);an<zt.length;an++)dt.indexOf(zt[an])<0&&Object.prototype.propertyIsEnumerable.call(De,zt[an])&&(Ft[zt[an]]=De[zt[an]]);return Ft};const rn=null,lt=["normal","exception","active","success"];var fn=ae.forwardRef((De,dt)=>{const{prefixCls:Ft,className:zt,rootClassName:an,steps:Bn,strokeColor:qt,percent:pn=0,size:zn="default",showInfo:Vn=!0,type:Pn="line",status:Qn,format:gr,style:rr}=De,er=Ct(De,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),pr=ae.useMemo(()=>{var Rt,ze;const $e=Ye(De);return parseInt($e!==void 0?(Rt=$e!=null?$e:0)===null||Rt===void 0?void 0:Rt.toString():(ze=pn!=null?pn:0)===null||ze===void 0?void 0:ze.toString(),10)},[pn,De.success,De.successPercent]),Pr=ae.useMemo(()=>!lt.includes(Qn)&&pr>=100?"success":Qn||"normal",[Qn,pr]),{getPrefixCls:$n,direction:Wr,progress:vr}=ae.useContext(Me.E_),qr=$n("progress",Ft),[xi,Ar]=Ve(qr),dr=ae.useMemo(()=>{if(!Vn)return null;const Rt=Ye(De);let ze;const $e=gr||(Ze=>`${Ze}%`),Xe=Pn==="line";return gr||Pr!=="exception"&&Pr!=="success"?ze=$e(be(pn),be(Rt)):Pr==="exception"?ze=Xe?ae.createElement(ct.Z,null):ae.createElement(xe.Z,null):Pr==="success"&&(ze=Xe?ae.createElement(Ae.Z,null):ae.createElement(Le.Z,null)),ae.createElement("span",{className:`${qr}-text`,title:typeof ze=="string"?ze:void 0},ze)},[Vn,pn,pr,Pr,Pn,qr,gr]),Mr=Array.isArray(qt)?qt[0]:qt,tr=typeof qt=="string"||Array.isArray(qt)?qt:void 0;let Gn;Pn==="line"?Gn=Bn?ae.createElement(ce,Object.assign({},De,{strokeColor:tr,prefixCls:qr,steps:Bn}),dr):ae.createElement(ye,Object.assign({},De,{strokeColor:Mr,prefixCls:qr,direction:Wr}),dr):(Pn==="circle"||Pn==="dashboard")&&(Gn=ae.createElement(Kt,Object.assign({},De,{strokeColor:Mr,prefixCls:qr,progressStatus:Pr}),dr));const Xr=pe()(qr,`${qr}-status-${Pr}`,`${qr}-${Pn==="dashboard"&&"circle"||Bn&&"steps"||Pn}`,{[`${qr}-inline-circle`]:Pn==="circle"&&Ue(zn,"circle")[0]<=20,[`${qr}-show-info`]:Vn,[`${qr}-${zn}`]:typeof zn=="string",[`${qr}-rtl`]:Wr==="rtl"},vr==null?void 0:vr.className,zt,an,Ar);return xi(ae.createElement("div",Object.assign({ref:dt,style:Object.assign(Object.assign({},vr==null?void 0:vr.style),rr),className:Xr,role:"progressbar","aria-valuenow":pr},(0,ve.Z)(er,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Gn))}),ut=fn},5112:function(Mn,tn,oe){"use strict";oe.d(tn,{ZP:function(){return Ge}});var ae=oe(92310),Ae=oe.n(ae),Le=oe(18929),ct=oe(26112),xe=oe(59301),Ee=oe(36355),pe=oe(19716);const ve=xe.createContext(null),Me=ve.Provider;var _e=ve;const vt=xe.createContext(null),Fe=vt.Provider;var qe=oe(5630),pt=oe(8654),Ke=oe(1684),je=oe(32441),ft=oe(17313),mt=oe(83116),Bt=oe(37613);const ht=be=>{const{componentCls:Ye,antCls:Pt}=be,xt=`${Ye}-group`;return{[xt]:Object.assign(Object.assign({},(0,ft.Wf)(be)),{display:"inline-block",fontSize:0,[`&${xt}-rtl`]:{direction:"rtl"},[`${Pt}-badge ${Pt}-badge-count`]:{zIndex:1},[`> ${Pt}-badge:not(:first-child) > ${Pt}-button-wrapper`]:{borderInlineStart:"none"}})}},nt=be=>{const{componentCls:Ye,wrapperMarginInlineEnd:Pt,colorPrimary:xt,radioSize:Ue,motionDurationSlow:at,motionDurationMid:Ot,motionEaseInOutCirc:kn,colorBgContainer:Kt,colorBorder:gn,lineWidth:nn,dotSize:Gt,colorBgContainerDisabled:Xt,colorTextDisabled:ye,paddingXS:ue,dotColorDisabled:ce,lineType:de,radioDotDisabledSize:he,wireframe:se,colorWhite:ke}=be,gt=`${Ye}-inner`;return{[`${Ye}-wrapper`]:Object.assign(Object.assign({},(0,ft.Wf)(be)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Pt,cursor:"pointer",[`&${Ye}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:be.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Ye}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${nn}px ${de} ${xt}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Ye]:Object.assign(Object.assign({},(0,ft.Wf)(be)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Ye}-wrapper:hover &,
|
|
|
&:hover ${gt}`]:{borderColor:xt},[`${Ye}-input:focus-visible + ${gt}`]:Object.assign({},(0,ft.oN)(be)),[`${Ye}:hover::after, ${Ye}-wrapper:hover &::after`]:{visibility:"visible"},[`${Ye}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Ue,height:Ue,marginBlockStart:Ue/-2,marginInlineStart:Ue/-2,backgroundColor:se?xt:ke,borderBlockStart:0,borderInlineStart:0,borderRadius:Ue,transform:"scale(0)",opacity:0,transition:`all ${at} ${kn}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Ue,height:Ue,backgroundColor:Kt,borderColor:gn,borderStyle:"solid",borderWidth:nn,borderRadius:"50%",transition:`all ${Ot}`},[`${Ye}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Ye}-checked`]:{[gt]:{borderColor:xt,backgroundColor:se?Kt:xt,"&::after":{transform:`scale(${Gt/Ue})`,opacity:1,transition:`all ${at} ${kn}`}}},[`${Ye}-disabled`]:{cursor:"not-allowed",[gt]:{backgroundColor:Xt,borderColor:gn,cursor:"not-allowed","&::after":{backgroundColor:ce}},[`${Ye}-input`]:{cursor:"not-allowed"},[`${Ye}-disabled + span`]:{color:ye,cursor:"not-allowed"},[`&${Ye}-checked`]:{[gt]:{"&::after":{transform:`scale(${he/Ue})`}}}},[`span${Ye} + *`]:{paddingInlineStart:ue,paddingInlineEnd:ue}})}},Re=be=>{const{buttonColor:Ye,controlHeight:Pt,componentCls:xt,lineWidth:Ue,lineType:at,colorBorder:Ot,motionDurationSlow:kn,motionDurationMid:Kt,buttonPaddingInline:gn,fontSize:nn,buttonBg:Gt,fontSizeLG:Xt,controlHeightLG:ye,controlHeightSM:ue,paddingXS:ce,borderRadius:de,borderRadiusSM:he,borderRadiusLG:se,buttonCheckedBg:ke,buttonSolidCheckedColor:gt,colorTextDisabled:Ie,colorBgContainerDisabled:Be,buttonCheckedBgDisabled:yt,buttonCheckedColorDisabled:rt,colorPrimary:Ve,colorPrimaryHover:Ct,colorPrimaryActive:rn,buttonSolidCheckedBg:lt,buttonSolidCheckedHoverBg:_t,buttonSolidCheckedActiveBg:fn}=be;return{[`${xt}-button-wrapper`]:{position:"relative",display:"inline-block",height:Pt,margin:0,paddingInline:gn,paddingBlock:0,color:Ye,fontSize:nn,lineHeight:`${Pt-Ue*2}px`,background:Gt,border:`${Ue}px ${at} ${Ot}`,borderBlockStartWidth:Ue+.02,borderInlineStartWidth:0,borderInlineEndWidth:Ue,cursor:"pointer",transition:[`color ${Kt}`,`background ${Kt}`,`box-shadow ${Kt}`].join(","),a:{color:Ye},[`> ${xt}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-Ue,insetInlineStart:-Ue,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Ue,paddingInline:0,backgroundColor:Ot,transition:`background-color ${kn}`,content:'""'}},"&:first-child":{borderInlineStart:`${Ue}px ${at} ${Ot}`,borderStartStartRadius:de,borderEndStartRadius:de},"&:last-child":{borderStartEndRadius:de,borderEndEndRadius:de},"&:first-child:last-child":{borderRadius:de},[`${xt}-group-large &`]:{height:ye,fontSize:Xt,lineHeight:`${ye-Ue*2}px`,"&:first-child":{borderStartStartRadius:se,borderEndStartRadius:se},"&:last-child":{borderStartEndRadius:se,borderEndEndRadius:se}},[`${xt}-group-small &`]:{height:ue,paddingInline:ce-Ue,paddingBlock:0,lineHeight:`${ue-Ue*2}px`,"&:first-child":{borderStartStartRadius:he,borderEndStartRadius:he},"&:last-child":{borderStartEndRadius:he,borderEndEndRadius:he}},"&:hover":{position:"relative",color:Ve},"&:has(:focus-visible)":Object.assign({},(0,ft.oN)(be)),[`${xt}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${xt}-button-wrapper-disabled)`]:{zIndex:1,color:Ve,background:ke,borderColor:Ve,"&::before":{backgroundColor:Ve},"&:first-child":{borderColor:Ve},"&:hover":{color:Ct,borderColor:Ct,"&::before":{backgroundColor:Ct}},"&:active":{color:rn,borderColor:rn,"&::before":{backgroundColor:rn}}},[`${xt}-group-solid &-checked:not(${xt}-button-wrapper-disabled)`]:{color:gt,background:lt,borderColor:lt,"&:hover":{color:gt,background:_t,borderColor:_t},"&:active":{color:gt,background:fn,borderColor:fn}},"&-disabled":{color:Ie,backgroundColor:Be,borderColor:Ot,cursor:"not-allowed","&:first-child, &:hover":{color:Ie,backgroundColor:Be,borderColor:Ot}},[`&-disabled${xt}-button-wrapper-checked`]:{color:rt,backgroundColor:yt,borderColor:Ot,boxShadow:"none"}}}},Ce=be=>be-4*2;var Je=(0,mt.Z)("Radio",be=>{const{controlOutline:Ye,controlOutlineWidth:Pt,radioSize:xt}=be,Ue=`0 0 0 ${Pt}px ${Ye}`,at=Ue,Ot=Ce(xt),kn=(0,Bt.TS)(be,{radioDotDisabledSize:Ot,radioFocusShadow:Ue,radioButtonFocusShadow:at});return[ht(kn),nt(kn),Re(kn)]},be=>{const{wireframe:Ye,padding:Pt,marginXS:xt,lineWidth:Ue,fontSizeLG:at,colorText:Ot,colorBgContainer:kn,colorTextDisabled:Kt,controlItemBgActiveDisabled:gn,colorTextLightSolid:nn,colorPrimary:Gt,colorPrimaryHover:Xt,colorPrimaryActive:ye}=be,ue=4,ce=at,de=Ye?Ce(ce):ce-(ue+Ue)*2;return{radioSize:ce,dotSize:de,dotColorDisabled:Kt,buttonSolidCheckedColor:nn,buttonSolidCheckedBg:Gt,buttonSolidCheckedHoverBg:Xt,buttonSolidCheckedActiveBg:ye,buttonBg:kn,buttonCheckedBg:kn,buttonColor:Ot,buttonCheckedBgDisabled:gn,buttonCheckedColorDisabled:Kt,buttonPaddingInline:Pt-Ue,wrapperMarginInlineEnd:xt}}),et=oe(14088),wt=oe(4572),Qe=function(be,Ye){var Pt={};for(var xt in be)Object.prototype.hasOwnProperty.call(be,xt)&&Ye.indexOf(xt)<0&&(Pt[xt]=be[xt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,xt=Object.getOwnPropertySymbols(be);Ue<xt.length;Ue++)Ye.indexOf(xt[Ue])<0&&Object.prototype.propertyIsEnumerable.call(be,xt[Ue])&&(Pt[xt[Ue]]=be[xt[Ue]]);return Pt};const bt=(be,Ye)=>{var Pt,xt;const Ue=xe.useContext(_e),at=xe.useContext(vt),{getPrefixCls:Ot,direction:kn,radio:Kt}=xe.useContext(Ee.E_),gn=xe.useRef(null),nn=(0,pt.sQ)(Ye,gn),{isFormItemInput:Gt}=xe.useContext(je.aM),Xt=rn=>{var lt,_t;(lt=be.onChange)===null||lt===void 0||lt.call(be,rn),(_t=Ue==null?void 0:Ue.onChange)===null||_t===void 0||_t.call(Ue,rn)},{prefixCls:ye,className:ue,rootClassName:ce,children:de,style:he}=be,se=Qe(be,["prefixCls","className","rootClassName","children","style"]),ke=Ot("radio",ye),gt=((Ue==null?void 0:Ue.optionType)||at)==="button",Ie=gt?`${ke}-button`:ke,[Be,yt]=Je(ke),rt=Object.assign({},se),Ve=xe.useContext(Ke.Z);Ue&&(rt.name=Ue.name,rt.onChange=Xt,rt.checked=be.value===Ue.value,rt.disabled=(Pt=rt.disabled)!==null&&Pt!==void 0?Pt:Ue.disabled),rt.disabled=(xt=rt.disabled)!==null&&xt!==void 0?xt:Ve;const Ct=Ae()(`${Ie}-wrapper`,{[`${Ie}-wrapper-checked`]:rt.checked,[`${Ie}-wrapper-disabled`]:rt.disabled,[`${Ie}-wrapper-rtl`]:kn==="rtl",[`${Ie}-wrapper-in-form-item`]:Gt},Kt==null?void 0:Kt.className,ue,ce,yt);return Be(xe.createElement(et.Z,{component:"Radio",disabled:rt.disabled},xe.createElement("label",{className:Ct,style:Object.assign(Object.assign({},Kt==null?void 0:Kt.style),he),onMouseEnter:be.onMouseEnter,onMouseLeave:be.onMouseLeave},xe.createElement(qe.Z,Object.assign({},rt,{className:Ae()(rt.className,!gt&&wt.A),type:"radio",prefixCls:Ie,ref:nn})),de!==void 0?xe.createElement("span",null,de):null)))};var Lt=xe.forwardRef(bt);const tt=xe.forwardRef((be,Ye)=>{const{getPrefixCls:Pt,direction:xt}=xe.useContext(Ee.E_),[Ue,at]=(0,Le.Z)(be.defaultValue,{value:be.value}),Ot=lt=>{const _t=Ue,fn=lt.target.value;"value"in be||at(fn);const{onChange:ut}=be;ut&&fn!==_t&&ut(lt)},{prefixCls:kn,className:Kt,rootClassName:gn,options:nn,buttonStyle:Gt="outline",disabled:Xt,children:ye,size:ue,style:ce,id:de,onMouseEnter:he,onMouseLeave:se,onFocus:ke,onBlur:gt}=be,Ie=Pt("radio",kn),Be=`${Ie}-group`,[yt,rt]=Je(Ie);let Ve=ye;nn&&nn.length>0&&(Ve=nn.map(lt=>typeof lt=="string"||typeof lt=="number"?xe.createElement(Lt,{key:lt.toString(),prefixCls:Ie,disabled:Xt,value:lt,checked:Ue===lt},lt):xe.createElement(Lt,{key:`radio-group-value-options-${lt.value}`,prefixCls:Ie,disabled:lt.disabled||Xt,value:lt.value,checked:Ue===lt.value,title:lt.title,style:lt.style},lt.label)));const Ct=(0,pe.Z)(ue),rn=Ae()(Be,`${Be}-${Gt}`,{[`${Be}-${Ct}`]:Ct,[`${Be}-rtl`]:xt==="rtl"},Kt,gn,rt);return yt(xe.createElement("div",Object.assign({},(0,ct.Z)(be,{aria:!0,data:!0}),{className:rn,style:ce,onMouseEnter:he,onMouseLeave:se,onFocus:ke,onBlur:gt,id:de,ref:Ye}),xe.createElement(Me,{value:{onChange:Ot,value:Ue,disabled:be.disabled,name:be.name,optionType:be.optionType}},Ve)))});var Ut=xe.memo(tt),At=function(be,Ye){var Pt={};for(var xt in be)Object.prototype.hasOwnProperty.call(be,xt)&&Ye.indexOf(xt)<0&&(Pt[xt]=be[xt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,xt=Object.getOwnPropertySymbols(be);Ue<xt.length;Ue++)Ye.indexOf(xt[Ue])<0&&Object.prototype.propertyIsEnumerable.call(be,xt[Ue])&&(Pt[xt[Ue]]=be[xt[Ue]]);return Pt};const Mt=(be,Ye)=>{const{getPrefixCls:Pt}=xe.useContext(Ee.E_),{prefixCls:xt}=be,Ue=At(be,["prefixCls"]),at=Pt("radio",xt);return xe.createElement(Fe,{value:"button"},xe.createElement(Lt,Object.assign({prefixCls:at},Ue,{type:"radio",ref:Ye})))};var Wt=xe.forwardRef(Mt);const It=Lt;It.Button=Wt,It.Group=Ut,It.__ANT_RADIO=!0;var Ge=It},13570:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return be}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(Pt,xt){return Ae.createElement(xe.Z,(0,ae.Z)({},Pt,{ref:xt,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe,Me=oe(92310),_e=oe.n(Me),vt=oe(18642),Fe=oe(72190),qe=oe(42244),pt=oe(18929),Ke=oe(10228),je=oe(26112);function ft(Ye,Pt){var xt=Ye.disabled,Ue=Ye.prefixCls,at=Ye.character,Ot=Ye.characterRender,kn=Ye.index,Kt=Ye.count,gn=Ye.value,nn=Ye.allowHalf,Gt=Ye.focused,Xt=Ye.onHover,ye=Ye.onClick,ue=function(Be){Xt(Be,kn)},ce=function(Be){ye(Be,kn)},de=function(Be){Be.keyCode===Ke.Z.ENTER&&ye(Be,kn)},he=kn+1,se=new Set([Ue]);gn===0&&kn===0&&Gt?se.add("".concat(Ue,"-focused")):nn&&gn+.5>=he&&gn<he?(se.add("".concat(Ue,"-half")),se.add("".concat(Ue,"-active")),Gt&&se.add("".concat(Ue,"-focused"))):(he<=gn?se.add("".concat(Ue,"-full")):se.add("".concat(Ue,"-zero")),he===gn&&Gt&&se.add("".concat(Ue,"-focused")));var ke=typeof at=="function"?at(Ye):at,gt=Ae.createElement("li",{className:_e()(Array.from(se)),ref:Pt},Ae.createElement("div",{onClick:xt?null:ce,onKeyDown:xt?null:de,onMouseMove:xt?null:ue,role:"radio","aria-checked":gn>kn?"true":"false","aria-posinset":kn+1,"aria-setsize":Kt,tabIndex:xt?-1:0},Ae.createElement("div",{className:"".concat(Ue,"-first")},ke),Ae.createElement("div",{className:"".concat(Ue,"-second")},ke)));return Ot&&(gt=Ot(gt,Ye)),gt}var mt=Ae.forwardRef(ft);function Bt(){var Ye=Ae.useRef({});function Pt(Ue){return Ye.current[Ue]}function xt(Ue){return function(at){Ye.current[Ue]=at}}return[Pt,xt]}function ht(Ye){var Pt=Ye.pageXOffset,xt="scrollLeft";if(typeof Pt!="number"){var Ue=Ye.document;Pt=Ue.documentElement[xt],typeof Pt!="number"&&(Pt=Ue.body[xt])}return Pt}function nt(Ye){var Pt,xt,Ue=Ye.ownerDocument,at=Ue.body,Ot=Ue&&Ue.documentElement,kn=Ye.getBoundingClientRect();return Pt=kn.left,xt=kn.top,Pt-=Ot.clientLeft||at.clientLeft||0,xt-=Ot.clientTop||at.clientTop||0,{left:Pt,top:xt}}function Re(Ye){var Pt=nt(Ye),xt=Ye.ownerDocument,Ue=xt.defaultView||xt.parentWindow;return Pt.left+=ht(Ue),Pt.left}var Ce=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Je(Ye,Pt){var xt,Ue=Ye.prefixCls,at=Ue===void 0?"rc-rate":Ue,Ot=Ye.className,kn=Ye.defaultValue,Kt=Ye.value,gn=Ye.count,nn=gn===void 0?5:gn,Gt=Ye.allowHalf,Xt=Gt===void 0?!1:Gt,ye=Ye.allowClear,ue=ye===void 0?!0:ye,ce=Ye.character,de=ce===void 0?"\u2605":ce,he=Ye.characterRender,se=Ye.disabled,ke=Ye.direction,gt=ke===void 0?"ltr":ke,Ie=Ye.tabIndex,Be=Ie===void 0?0:Ie,yt=Ye.autoFocus,rt=Ye.onHoverChange,Ve=Ye.onChange,Ct=Ye.onFocus,rn=Ye.onBlur,lt=Ye.onKeyDown,_t=Ye.onMouseLeave,fn=(0,qe.Z)(Ye,Ce),ut=Bt(),De=(0,Fe.Z)(ut,2),dt=De[0],Ft=De[1],zt=Ae.useRef(null),an=function(){if(!se){var Ze;(Ze=zt.current)===null||Ze===void 0||Ze.focus()}};Ae.useImperativeHandle(Pt,function(){return{focus:an,blur:function(){if(!se){var Ze;(Ze=zt.current)===null||Ze===void 0||Ze.blur()}}}});var Bn=(0,pt.Z)(kn||0,{value:Kt}),qt=(0,Fe.Z)(Bn,2),pn=qt[0],zn=qt[1],Vn=(0,pt.Z)(null),Pn=(0,Fe.Z)(Vn,2),Qn=Pn[0],gr=Pn[1],rr=function(Ze,Et){var Tt=gt==="rtl",hn=Ze+1;if(Xt){var ln=dt(Ze),wn=Re(ln),Tn=ln.clientWidth;(Tt&&Et-wn>Tn/2||!Tt&&Et-wn<Tn/2)&&(hn-=.5)}return hn},er=function(Ze){zn(Ze),Ve==null||Ve(Ze)},pr=Ae.useState(!1),Pr=(0,Fe.Z)(pr,2),$n=Pr[0],Wr=Pr[1],vr=function(){Wr(!0),Ct==null||Ct()},qr=function(){Wr(!1),rn==null||rn()},xi=Ae.useState(null),Ar=(0,Fe.Z)(xi,2),dr=Ar[0],Mr=Ar[1],tr=function(Ze,Et){var Tt=rr(Et,Ze.pageX);Tt!==Qn&&(Mr(Tt),gr(null)),rt==null||rt(Tt)},Gn=function(Ze){se||(Mr(null),gr(null),rt==null||rt(void 0)),Ze&&(_t==null||_t(Ze))},Xr=function(Ze,Et){var Tt=rr(Et,Ze.pageX),hn=!1;ue&&(hn=Tt===pn),Gn(),er(hn?0:Tt),gr(hn?Tt:null)},Rt=function(Ze){var Et=Ze.keyCode,Tt=gt==="rtl",hn=pn;Et===Ke.Z.RIGHT&&hn<nn&&!Tt?(Xt?hn+=.5:hn+=1,er(hn),Ze.preventDefault()):Et===Ke.Z.LEFT&&hn>0&&!Tt||Et===Ke.Z.RIGHT&&hn>0&&Tt?(Xt?hn-=.5:hn-=1,er(hn),Ze.preventDefault()):Et===Ke.Z.LEFT&&hn<nn&&Tt&&(Xt?hn+=.5:hn+=1,er(hn),Ze.preventDefault()),lt==null||lt(Ze)};Ae.useEffect(function(){yt&&!se&&an()},[]);var ze=new Array(nn).fill(0).map(function(Xe,Ze){return Ae.createElement(mt,{ref:Ft(Ze),index:Ze,count:nn,disabled:se,prefixCls:"".concat(at,"-star"),allowHalf:Xt,value:dr===null?pn:dr,onClick:Xr,onHover:tr,key:Xe||Ze,character:de,characterRender:he,focused:$n})}),$e=_e()(at,Ot,(xt={},(0,vt.Z)(xt,"".concat(at,"-disabled"),se),(0,vt.Z)(xt,"".concat(at,"-rtl"),gt==="rtl"),xt));return Ae.createElement("ul",(0,ae.Z)({className:$e,onMouseLeave:Gn,tabIndex:se?-1:Be,onFocus:se?null:vr,onBlur:se?null:qr,onKeyDown:se?null:Rt,ref:zt,role:"radiogroup"},(0,je.Z)(fn,{aria:!0,data:!0,attr:!0})),ze)}var et=Ae.forwardRef(Je),wt=et,Qe=oe(36355),bt=oe(6848),Oe=oe(17313),Lt=oe(83116),tt=oe(37613);const Ut=Ye=>{const{componentCls:Pt}=Ye;return{[`${Pt}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ye.marginXS},"> div":{transition:`all ${Ye.motionDurationMid}, outline 0s`,"&:hover":{transform:Ye.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${Ye.lineWidth}px dashed ${Ye.starColor}`,transform:Ye.starHoverScale}},"&-first, &-second":{color:Ye.starBg,transition:`all ${Ye.motionDurationMid}`,userSelect:"none",[Ye.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Pt}-star-first, &-half ${Pt}-star-second`]:{opacity:1},[`&-half ${Pt}-star-first, &-full ${Pt}-star-second`]:{color:"inherit"}}}},At=Ye=>({[`&-rtl${Ye.componentCls}`]:{direction:"rtl"}}),Mt=Ye=>{const{componentCls:Pt}=Ye;return{[Pt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Oe.Wf)(Ye)),{display:"inline-block",margin:0,padding:0,color:Ye.starColor,fontSize:Ye.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Pt} ${Pt}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Ut(Ye)),{[`+ ${Pt}-text`]:{display:"inline-block",marginInlineStart:Ye.marginXS,fontSize:Ye.fontSize}}),At(Ye))}};var Wt=(0,Lt.Z)("Rate",Ye=>{const Pt=(0,tt.TS)(Ye,{});return[Mt(Pt)]},Ye=>({starColor:Ye.yellow6,starSize:Ye.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ye.colorFillContent})),It=function(Ye,Pt){var xt={};for(var Ue in Ye)Object.prototype.hasOwnProperty.call(Ye,Ue)&&Pt.indexOf(Ue)<0&&(xt[Ue]=Ye[Ue]);if(Ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ue=Object.getOwnPropertySymbols(Ye);at<Ue.length;at++)Pt.indexOf(Ue[at])<0&&Object.prototype.propertyIsEnumerable.call(Ye,Ue[at])&&(xt[Ue[at]]=Ye[Ue[at]]);return xt},be=Ae.forwardRef((Ye,Pt)=>{const{prefixCls:xt,className:Ue,rootClassName:at,style:Ot,tooltips:kn,character:Kt=Ae.createElement(ve,null)}=Ye,gn=It(Ye,["prefixCls","className","rootClassName","style","tooltips","character"]),nn=(se,ke)=>{let{index:gt}=ke;return kn?Ae.createElement(bt.Z,{title:kn[gt]},se):se},{getPrefixCls:Gt,direction:Xt,rate:ye}=Ae.useContext(Qe.E_),ue=Gt("rate",xt),[ce,de]=Wt(ue),he=Object.assign(Object.assign({},ye==null?void 0:ye.style),Ot);return ce(Ae.createElement(wt,Object.assign({ref:Pt,character:Kt,characterRender:nn},gn,{className:_e()(Ue,at,de,ye==null?void 0:ye.className),style:he,prefixCls:ue,direction:Xt})))})},57809:function(Mn,tn,oe){"use strict";var ae=oe(92310),Ae=oe.n(ae),Le=oe(77861),ct=oe(2738),xe=oe(59301),Ee=oe(53487),pe=oe(62892),ve=oe(19080),Me=oe(36355),_e=oe(1684),vt=oe(93891),Fe=oe(19716),qe=oe(32441),pt=oe(33234),Ke=oe(14154),je=oe(58582),ft=oe(84443),mt=oe(66339),Bt=function(Je,et){var wt={};for(var Qe in Je)Object.prototype.hasOwnProperty.call(Je,Qe)&&et.indexOf(Qe)<0&&(wt[Qe]=Je[Qe]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,Qe=Object.getOwnPropertySymbols(Je);bt<Qe.length;bt++)et.indexOf(Qe[bt])<0&&Object.prototype.propertyIsEnumerable.call(Je,Qe[bt])&&(wt[Qe[bt]]=Je[Qe[bt]]);return wt};const ht="SECRET_COMBOBOX_MODE_DO_NOT_USE",nt=(Je,et)=>{var wt,{prefixCls:Qe,bordered:bt=!0,className:Oe,rootClassName:Lt,getPopupContainer:tt,popupClassName:Ut,dropdownClassName:At,listHeight:Mt=256,placement:Wt,listItemHeight:It=24,size:Ge,disabled:be,notFoundContent:Ye,status:Pt,builtinPlacements:xt,dropdownMatchSelectWidth:Ue,popupMatchSelectWidth:at,direction:Ot,style:kn,allowClear:Kt}=Je,gn=Bt(Je,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:nn,getPrefixCls:Gt,renderEmpty:Xt,direction:ye,virtual:ue,popupMatchSelectWidth:ce,popupOverflow:de,select:he}=xe.useContext(Me.E_),se=Gt("select",Qe),ke=Gt(),gt=Ot!=null?Ot:ye,{compactSize:Ie,compactItemClassnames:Be}=(0,pt.ri)(se,gt),[yt,rt]=(0,Ke.Z)(se),Ve=xe.useMemo(()=>{const{mode:Pr}=gn;if(Pr!=="combobox")return Pr===ht?"combobox":Pr},[gn.mode]),Ct=Ve==="multiple"||Ve==="tags",rn=(0,ft.Z)(gn.suffixIcon,gn.showArrow),lt=(wt=at!=null?at:Ue)!==null&&wt!==void 0?wt:ce,{status:_t,hasFeedback:fn,isFormItemInput:ut,feedbackIcon:De}=xe.useContext(qe.aM),dt=(0,ve.F)(_t,Pt);let Ft;Ye!==void 0?Ft=Ye:Ve==="combobox"?Ft=null:Ft=(Xt==null?void 0:Xt("Select"))||xe.createElement(vt.Z,{componentName:"Select"});const{suffixIcon:zt,itemIcon:an,removeIcon:Bn,clearIcon:qt}=(0,mt.Z)(Object.assign(Object.assign({},gn),{multiple:Ct,hasFeedback:fn,feedbackIcon:De,showSuffixIcon:rn,prefixCls:se,showArrow:gn.showArrow,componentName:"Select"})),pn=Kt===!0?{clearIcon:qt}:Kt,zn=(0,ct.Z)(gn,["suffixIcon","itemIcon"]),Vn=Ae()(Ut||At,{[`${se}-dropdown-${gt}`]:gt==="rtl"},Lt,rt),Pn=(0,Fe.Z)(Pr=>{var $n;return($n=Ge!=null?Ge:Ie)!==null&&$n!==void 0?$n:Pr}),Qn=xe.useContext(_e.Z),gr=be!=null?be:Qn,rr=Ae()({[`${se}-lg`]:Pn==="large",[`${se}-sm`]:Pn==="small",[`${se}-rtl`]:gt==="rtl",[`${se}-borderless`]:!bt,[`${se}-in-form-item`]:ut},(0,ve.Z)(se,dt,fn),Be,he==null?void 0:he.className,Oe,Lt,rt),er=xe.useMemo(()=>Wt!==void 0?Wt:gt==="rtl"?"bottomRight":"bottomLeft",[Wt,gt]),pr=(0,je.Z)(xt,de);return yt(xe.createElement(Le.ZP,Object.assign({ref:et,virtual:ue,showSearch:he==null?void 0:he.showSearch},zn,{style:Object.assign(Object.assign({},he==null?void 0:he.style),kn),dropdownMatchSelectWidth:lt,builtinPlacements:pr,transitionName:(0,pe.m)(ke,"slide-up",gn.transitionName),listHeight:Mt,listItemHeight:It,mode:Ve,prefixCls:se,placement:er,direction:gt,suffixIcon:zt,menuItemSelectedIcon:an,removeIcon:Bn,allowClear:pn,notFoundContent:Ft,className:rr,getPopupContainer:tt||nn,dropdownClassName:Vn,disabled:gr})))},Re=xe.forwardRef(nt),Ce=(0,Ee.Z)(Re);Re.SECRET_COMBOBOX_MODE_DO_NOT_USE=ht,Re.Option=Le.Wx,Re.OptGroup=Le.Xo,Re._InternalPanelDoNotUseOrYouWillBeFired=Ce,tn.default=Re},14154:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return Re}});var ae=oe(17313),Ae=oe(74207),Le=oe(37613),ct=oe(83116),xe=oe(13826),Ee=oe(92899);const pe=Ce=>{const{optionHeight:Je,optionFontSize:et,optionLineHeight:wt,optionPadding:Qe}=Ce;return{position:"relative",display:"block",minHeight:Je,padding:Qe,color:Ce.colorText,fontWeight:"normal",fontSize:et,lineHeight:wt,boxSizing:"border-box"}};var Me=Ce=>{const{antCls:Je,componentCls:et}=Ce,wt=`${et}-item`,Qe=`&${Je}-slide-up-enter${Je}-slide-up-enter-active`,bt=`&${Je}-slide-up-appear${Je}-slide-up-appear-active`,Oe=`&${Je}-slide-up-leave${Je}-slide-up-leave-active`,Lt=`${et}-dropdown-placement-`;return[{[`${et}-dropdown`]:Object.assign(Object.assign({},(0,ae.Wf)(Ce)),{position:"absolute",top:-9999,zIndex:Ce.zIndexPopup,boxSizing:"border-box",padding:Ce.paddingXXS,overflow:"hidden",fontSize:Ce.fontSize,fontVariant:"initial",backgroundColor:Ce.colorBgElevated,borderRadius:Ce.borderRadiusLG,outline:"none",boxShadow:Ce.boxShadowSecondary,[`
|
|
|
${Qe}${Lt}bottomLeft,
|
|
|
${bt}${Lt}bottomLeft
|
|
|
`]:{animationName:xe.fJ},[`
|
|
|
${Qe}${Lt}topLeft,
|
|
|
${bt}${Lt}topLeft,
|
|
|
${Qe}${Lt}topRight,
|
|
|
${bt}${Lt}topRight
|
|
|
`]:{animationName:xe.Qt},[`${Oe}${Lt}bottomLeft`]:{animationName:xe.Uw},[`
|
|
|
${Oe}${Lt}topLeft,
|
|
|
${Oe}${Lt}topRight
|
|
|
`]:{animationName:xe.ly},"&-hidden":{display:"none"},[`${wt}`]:Object.assign(Object.assign({},pe(Ce)),{cursor:"pointer",transition:`background ${Ce.motionDurationSlow} ease`,borderRadius:Ce.borderRadiusSM,"&-group":{color:Ce.colorTextDescription,fontSize:Ce.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ae.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${wt}-option-disabled)`]:{backgroundColor:Ce.optionActiveBg},[`&-selected:not(${wt}-option-disabled)`]:{color:Ce.optionSelectedColor,fontWeight:Ce.optionSelectedFontWeight,backgroundColor:Ce.optionSelectedBg,[`${wt}-option-state`]:{color:Ce.colorPrimary}},"&-disabled":{[`&${wt}-option-selected`]:{backgroundColor:Ce.colorBgContainerDisabled},color:Ce.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ce.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,xe.oN)(Ce,"slide-up"),(0,xe.oN)(Ce,"slide-down"),(0,Ee.Fm)(Ce,"move-up"),(0,Ee.Fm)(Ce,"move-down")]};const _e=2,vt=Ce=>{let{controlHeightSM:Je,controlHeight:et,lineWidth:wt}=Ce;const Qe=(et-Je)/2-wt,bt=Math.ceil(Qe/2);return[Qe,bt]};function Fe(Ce,Je){const{componentCls:et,iconCls:wt}=Ce,Qe=`${et}-selection-overflow`,bt=Ce.multipleSelectItemHeight,[Oe]=vt(Ce),Lt=Je?`${et}-${Je}`:"";return{[`${et}-multiple${Lt}`]:{fontSize:Ce.fontSize,[Qe]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${et}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Oe-_e}px ${_e*2}px`,borderRadius:Ce.borderRadius,[`${et}-show-search&`]:{cursor:"text"},[`${et}-disabled&`]:{background:Ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${_e}px 0`,lineHeight:`${bt}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${et}-show-arrow ${et}-selector,
|
|
|
&${et}-allow-clear ${et}-selector
|
|
|
`]:{paddingInlineEnd:Ce.fontSizeIcon+Ce.controlPaddingHorizontal},[`${et}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:bt,marginTop:_e,marginBottom:_e,lineHeight:`${bt-Ce.lineWidth*2}px`,background:Ce.multipleItemBg,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.multipleItemBorderColor}`,borderRadius:Ce.borderRadiusSM,cursor:"default",transition:`font-size ${Ce.motionDurationSlow}, line-height ${Ce.motionDurationSlow}, height ${Ce.motionDurationSlow}`,userSelect:"none",marginInlineEnd:_e*2,paddingInlineStart:Ce.paddingXS,paddingInlineEnd:Ce.paddingXS/2,[`${et}-disabled&`]:{color:Ce.multipleItemColorDisabled,borderColor:Ce.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ce.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ae.Ro)()),{display:"inline-flex",alignItems:"center",color:Ce.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${wt}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ce.colorIconHover}})},[`${Qe}-item + ${Qe}-item`]:{[`${et}-selection-search`]:{marginInlineStart:0}},[`${et}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ce.inputPaddingHorizontalBase-Oe,"\n &-input,\n &-mirror\n ":{height:bt,fontFamily:Ce.fontFamily,lineHeight:`${bt}px`,transition:`all ${Ce.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${et}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ce.inputPaddingHorizontalBase,insetInlineEnd:Ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ce.motionDurationSlow}`}}}}var pt=Ce=>{const{componentCls:Je}=Ce,et=(0,Le.TS)(Ce,{controlHeight:Ce.controlHeightSM,multipleSelectItemHeight:Ce.controlHeightXS,borderRadius:Ce.borderRadiusSM,borderRadiusSM:Ce.borderRadiusXS}),wt=(0,Le.TS)(Ce,{fontSize:Ce.fontSizeLG,controlHeight:Ce.controlHeightLG,multipleSelectItemHeight:Ce.multipleItemHeightLG,borderRadius:Ce.borderRadiusLG,borderRadiusSM:Ce.borderRadius}),[,Qe]=vt(Ce);return[Fe(Ce),Fe(et,"sm"),{[`${Je}-multiple${Je}-sm`]:{[`${Je}-selection-placeholder`]:{insetInline:Ce.controlPaddingHorizontalSM-Ce.lineWidth},[`${Je}-selection-search`]:{marginInlineStart:Qe}}},Fe(wt,"lg")]};function Ke(Ce,Je){const{componentCls:et,inputPaddingHorizontalBase:wt,borderRadius:Qe}=Ce,bt=Ce.controlHeight-Ce.lineWidth*2,Oe=Math.ceil(Ce.fontSize*1.25),Lt=Je?`${et}-${Je}`:"";return{[`${et}-single${Lt}`]:{fontSize:Ce.fontSize,[`${et}-selector`]:Object.assign(Object.assign({},(0,ae.Wf)(Ce)),{display:"flex",borderRadius:Qe,[`${et}-selection-search`]:{position:"absolute",top:0,insetInlineStart:wt,insetInlineEnd:wt,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${et}-selection-item,
|
|
|
${et}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${bt}px`,transition:`all ${Ce.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${bt}px`}},[`${et}-selection-item`]:{position:"relative",userSelect:"none"},[`${et}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${et}-selection-item:after`,`${et}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${et}-show-arrow ${et}-selection-item,
|
|
|
&${et}-show-arrow ${et}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Oe},[`&${et}-open ${et}-selection-item`]:{color:Ce.colorTextPlaceholder},[`&:not(${et}-customize-input)`]:{[`${et}-selector`]:{width:"100%",height:Ce.controlHeight,padding:`0 ${wt}px`,[`${et}-selection-search-input`]:{height:bt},"&:after":{lineHeight:`${bt}px`}}},[`&${et}-customize-input`]:{[`${et}-selector`]:{"&:after":{display:"none"},[`${et}-selection-search`]:{position:"static",width:"100%"},[`${et}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${wt}px`,"&:after":{display:"none"}}}}}}}function je(Ce){const{componentCls:Je}=Ce,et=Ce.controlPaddingHorizontalSM-Ce.lineWidth;return[Ke(Ce),Ke((0,Le.TS)(Ce,{controlHeight:Ce.controlHeightSM,borderRadius:Ce.borderRadiusSM}),"sm"),{[`${Je}-single${Je}-sm`]:{[`&:not(${Je}-customize-input)`]:{[`${Je}-selection-search`]:{insetInlineStart:et,insetInlineEnd:et},[`${Je}-selector`]:{padding:`0 ${et}px`},[`&${Je}-show-arrow ${Je}-selection-search`]:{insetInlineEnd:et+Ce.fontSize*1.5},[`
|
|
|
&${Je}-show-arrow ${Je}-selection-item,
|
|
|
&${Je}-show-arrow ${Je}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ce.fontSize*1.5}}}},Ke((0,Le.TS)(Ce,{controlHeight:Ce.singleItemHeightLG,fontSize:Ce.fontSizeLG,borderRadius:Ce.borderRadiusLG}),"lg")]}const ft=Ce=>{const{componentCls:Je,selectorBg:et}=Ce;return{position:"relative",backgroundColor:et,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseInOut}`,input:{cursor:"pointer"},[`${Je}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Je}-disabled&`]:{color:Ce.colorTextDisabled,background:Ce.colorBgContainerDisabled,cursor:"not-allowed",[`${Je}-multiple&`]:{background:Ce.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},mt=function(Ce,Je){let et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:wt,borderHoverColor:Qe,outlineColor:bt,antCls:Oe}=Je,Lt=et?{[`${wt}-selector`]:{borderColor:Qe}}:{};return{[Ce]:{[`&:not(${wt}-disabled):not(${wt}-customize-input):not(${Oe}-pagination-size-changer)`]:Object.assign(Object.assign({},Lt),{[`${wt}-focused& ${wt}-selector`]:{borderColor:Qe,boxShadow:`0 0 0 ${Je.controlOutlineWidth}px ${bt}`,outline:0},[`&:hover ${wt}-selector`]:{borderColor:Qe}})}}},Bt=Ce=>{const{componentCls:Je}=Ce;return{[`${Je}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ht=Ce=>{const{componentCls:Je,inputPaddingHorizontalBase:et,iconCls:wt}=Ce;return{[Je]:Object.assign(Object.assign({},(0,ae.Wf)(Ce)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Je}-customize-input) ${Je}-selector`]:Object.assign(Object.assign({},ft(Ce)),Bt(Ce)),[`${Je}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ae.vS),[`${Je}-selection-placeholder`]:Object.assign(Object.assign({},ae.vS),{flex:1,color:Ce.colorTextPlaceholder,pointerEvents:"none"}),[`${Je}-arrow`]:Object.assign(Object.assign({},(0,ae.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:et,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[wt]:{verticalAlign:"top",transition:`transform ${Ce.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Je}-suffix)`]:{pointerEvents:"auto"}},[`${Je}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Je}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:et,zIndex:1,display:"inline-block",width:Ce.fontSizeIcon,height:Ce.fontSizeIcon,marginTop:-Ce.fontSizeIcon/2,color:Ce.colorTextQuaternary,fontSize:Ce.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ce.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ce.motionDurationMid} ease, opacity ${Ce.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ce.colorTextTertiary}},"&:hover":{[`${Je}-clear`]:{opacity:1}}}),[`${Je}-has-feedback`]:{[`${Je}-clear`]:{insetInlineEnd:et+Ce.fontSize+Ce.paddingXS}}}},nt=Ce=>{const{componentCls:Je}=Ce;return[{[Je]:{[`&-borderless ${Je}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Je}-in-form-item`]:{width:"100%"}}},ht(Ce),je(Ce),pt(Ce),Me(Ce),{[`${Je}-rtl`]:{direction:"rtl"}},mt(Je,(0,Le.TS)(Ce,{borderHoverColor:Ce.colorPrimaryHover,outlineColor:Ce.controlOutline})),mt(`${Je}-status-error`,(0,Le.TS)(Ce,{borderHoverColor:Ce.colorErrorHover,outlineColor:Ce.colorErrorOutline}),!0),mt(`${Je}-status-warning`,(0,Le.TS)(Ce,{borderHoverColor:Ce.colorWarningHover,outlineColor:Ce.colorWarningOutline}),!0),(0,Ae.c)(Ce,{borderElCls:`${Je}-selector`,focusElCls:`${Je}-focused`})]};var Re=(0,ct.Z)("Select",(Ce,Je)=>{let{rootPrefixCls:et}=Je;const wt=(0,Le.TS)(Ce,{rootPrefixCls:et,inputPaddingHorizontalBase:Ce.paddingSM-1,multipleSelectItemHeight:Ce.multipleItemHeight});return[nt(wt)]},Ce=>{const{fontSize:Je,lineHeight:et,controlHeight:wt,controlPaddingHorizontal:Qe,zIndexPopupBase:bt,colorText:Oe,fontWeightStrong:Lt,controlItemBgActive:tt,controlItemBgHover:Ut,colorBgContainer:At,colorFillSecondary:Mt,controlHeightLG:Wt,controlHeightSM:It,colorBgContainerDisabled:Ge,colorTextDisabled:be}=Ce;return{zIndexPopup:bt+50,optionSelectedColor:Oe,optionSelectedFontWeight:Lt,optionSelectedBg:tt,optionActiveBg:Ut,optionPadding:`${(wt-Je*et)/2}px ${Qe}px`,optionFontSize:Je,optionLineHeight:et,optionHeight:wt,selectorBg:At,clearBg:At,singleItemHeightLG:Wt,multipleItemBg:Mt,multipleItemBorderColor:"transparent",multipleItemHeight:It,multipleItemHeightLG:wt,multipleSelectorBgDisabled:Ge,multipleItemColorDisabled:be,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return Ae}});const ae=Le=>{const xe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Le==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},xe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},xe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},xe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},xe),{points:["br","tr"],offset:[0,-4]})}};function Ae(Le,ct){return Le||ae(ct)}},84443:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ae}});function ae(Ae,Le){return Le!==void 0?Le:Ae!==null}},66339:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});var ae=oe(40001),Ae=oe(19248),Le=oe(99267),ct=oe(84105),xe=oe(58617),Ee=oe(47472),pe=oe(59301);function ve(Me){let{suffixIcon:_e,clearIcon:vt,menuItemSelectedIcon:Fe,removeIcon:qe,loading:pt,multiple:Ke,hasFeedback:je,prefixCls:ft,showSuffixIcon:mt,feedbackIcon:Bt,showArrow:ht,componentName:nt}=Me;const Re=vt!=null?vt:pe.createElement(Ae.Z,null),Ce=Qe=>_e===null&&!je&&!ht?null:pe.createElement(pe.Fragment,null,mt!==!1&&Qe,je&&Bt);let Je=null;if(_e!==void 0)Je=Ce(_e);else if(pt)Je=Ce(pe.createElement(xe.Z,{spin:!0}));else{const Qe=`${ft}-suffix`;Je=bt=>{let{open:Oe,showSearch:Lt}=bt;return Ce(Oe&&Lt?pe.createElement(Ee.Z,{className:Qe}):pe.createElement(ct.Z,{className:Qe}))}}let et=null;Fe!==void 0?et=Fe:Ke?et=pe.createElement(ae.Z,null):et=null;let wt=null;return qe!==void 0?wt=qe:wt=pe.createElement(Le.Z,null),{clearIcon:Re,suffixIcon:Je,itemIcon:et,removeIcon:wt}}},61621:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return de}});var ae=oe(92310),Ae=oe.n(ae),Le=oe(59301),ct=oe(36355),xe=oe(2738),pe=he=>{const{prefixCls:se,className:ke,style:gt,size:Ie,shape:Be}=he,yt=Ae()({[`${se}-lg`]:Ie==="large",[`${se}-sm`]:Ie==="small"}),rt=Ae()({[`${se}-circle`]:Be==="circle",[`${se}-square`]:Be==="square",[`${se}-round`]:Be==="round"}),Ve=Le.useMemo(()=>typeof Ie=="number"?{width:Ie,height:Ie,lineHeight:`${Ie}px`}:{},[Ie]);return Le.createElement("span",{className:Ae()(se,yt,rt,ke),style:Object.assign(Object.assign({},Ve),gt)})},ve=oe(36237),Me=oe(83116),_e=oe(37613);const vt=new ve.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Fe=he=>({height:he,lineHeight:`${he}px`}),qe=he=>Object.assign({width:he},Fe(he)),pt=he=>({background:he.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:vt,animationDuration:he.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ke=he=>Object.assign({width:he*5,minWidth:he*5},Fe(he)),je=he=>{const{skeletonAvatarCls:se,gradientFromColor:ke,controlHeight:gt,controlHeightLG:Ie,controlHeightSM:Be}=he;return{[`${se}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ke},qe(gt)),[`${se}${se}-circle`]:{borderRadius:"50%"},[`${se}${se}-lg`]:Object.assign({},qe(Ie)),[`${se}${se}-sm`]:Object.assign({},qe(Be))}},ft=he=>{const{controlHeight:se,borderRadiusSM:ke,skeletonInputCls:gt,controlHeightLG:Ie,controlHeightSM:Be,gradientFromColor:yt}=he;return{[`${gt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:yt,borderRadius:ke},Ke(se)),[`${gt}-lg`]:Object.assign({},Ke(Ie)),[`${gt}-sm`]:Object.assign({},Ke(Be))}},mt=he=>Object.assign({width:he},Fe(he)),Bt=he=>{const{skeletonImageCls:se,imageSizeBase:ke,gradientFromColor:gt,borderRadiusSM:Ie}=he;return{[`${se}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:gt,borderRadius:Ie},mt(ke*2)),{[`${se}-path`]:{fill:"#bfbfbf"},[`${se}-svg`]:Object.assign(Object.assign({},mt(ke)),{maxWidth:ke*4,maxHeight:ke*4}),[`${se}-svg${se}-svg-circle`]:{borderRadius:"50%"}}),[`${se}${se}-circle`]:{borderRadius:"50%"}}},ht=(he,se,ke)=>{const{skeletonButtonCls:gt}=he;return{[`${ke}${gt}-circle`]:{width:se,minWidth:se,borderRadius:"50%"},[`${ke}${gt}-round`]:{borderRadius:se}}},nt=he=>Object.assign({width:he*2,minWidth:he*2},Fe(he)),Re=he=>{const{borderRadiusSM:se,skeletonButtonCls:ke,controlHeight:gt,controlHeightLG:Ie,controlHeightSM:Be,gradientFromColor:yt}=he;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ke}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:yt,borderRadius:se,width:gt*2,minWidth:gt*2},nt(gt))},ht(he,gt,ke)),{[`${ke}-lg`]:Object.assign({},nt(Ie))}),ht(he,Ie,`${ke}-lg`)),{[`${ke}-sm`]:Object.assign({},nt(Be))}),ht(he,Be,`${ke}-sm`))},Ce=he=>{const{componentCls:se,skeletonAvatarCls:ke,skeletonTitleCls:gt,skeletonParagraphCls:Ie,skeletonButtonCls:Be,skeletonInputCls:yt,skeletonImageCls:rt,controlHeight:Ve,controlHeightLG:Ct,controlHeightSM:rn,gradientFromColor:lt,padding:_t,marginSM:fn,borderRadius:ut,titleHeight:De,blockRadius:dt,paragraphLiHeight:Ft,controlHeightXS:zt,paragraphMarginTop:an}=he;return{[`${se}`]:{display:"table",width:"100%",[`${se}-header`]:{display:"table-cell",paddingInlineEnd:_t,verticalAlign:"top",[`${ke}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:lt},qe(Ve)),[`${ke}-circle`]:{borderRadius:"50%"},[`${ke}-lg`]:Object.assign({},qe(Ct)),[`${ke}-sm`]:Object.assign({},qe(rn))},[`${se}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${gt}`]:{width:"100%",height:De,background:lt,borderRadius:dt,[`+ ${Ie}`]:{marginBlockStart:rn}},[`${Ie}`]:{padding:0,"> li":{width:"100%",height:Ft,listStyle:"none",background:lt,borderRadius:dt,"+ li":{marginBlockStart:zt}}},[`${Ie}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${se}-content`]:{[`${gt}, ${Ie} > li`]:{borderRadius:ut}}},[`${se}-with-avatar ${se}-content`]:{[`${gt}`]:{marginBlockStart:fn,[`+ ${Ie}`]:{marginBlockStart:an}}},[`${se}${se}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Re(he)),je(he)),ft(he)),Bt(he)),[`${se}${se}-block`]:{width:"100%",[`${Be}`]:{width:"100%"},[`${yt}`]:{width:"100%"}},[`${se}${se}-active`]:{[`
|
|
|
${gt},
|
|
|
${Ie} > li,
|
|
|
${ke},
|
|
|
${Be},
|
|
|
${yt},
|
|
|
${rt}
|
|
|
`]:Object.assign({},pt(he))}}};var Je=(0,Me.Z)("Skeleton",he=>{const{componentCls:se}=he,ke=(0,_e.TS)(he,{skeletonAvatarCls:`${se}-avatar`,skeletonTitleCls:`${se}-title`,skeletonParagraphCls:`${se}-paragraph`,skeletonButtonCls:`${se}-button`,skeletonInputCls:`${se}-input`,skeletonImageCls:`${se}-image`,imageSizeBase:he.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${he.gradientFromColor} 25%, ${he.gradientToColor} 37%, ${he.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ce(ke)]},he=>{const{colorFillContent:se,colorFill:ke}=he,gt=se,Ie=ke;return{color:gt,colorGradientEnd:Ie,gradientFromColor:gt,gradientToColor:Ie,titleHeight:he.controlHeight/2,blockRadius:he.borderRadiusSM,paragraphMarginTop:he.marginLG+he.marginXXS,paragraphLiHeight:he.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),wt=he=>{const{prefixCls:se,className:ke,rootClassName:gt,active:Ie,shape:Be="circle",size:yt="default"}=he,{getPrefixCls:rt}=Le.useContext(ct.E_),Ve=rt("skeleton",se),[Ct,rn]=Je(Ve),lt=(0,xe.Z)(he,["prefixCls","className"]),_t=Ae()(Ve,`${Ve}-element`,{[`${Ve}-active`]:Ie},ke,gt,rn);return Ct(Le.createElement("div",{className:_t},Le.createElement(pe,Object.assign({prefixCls:`${Ve}-avatar`,shape:Be,size:yt},lt))))},bt=he=>{const{prefixCls:se,className:ke,rootClassName:gt,active:Ie,block:Be=!1,size:yt="default"}=he,{getPrefixCls:rt}=Le.useContext(ct.E_),Ve=rt("skeleton",se),[Ct,rn]=Je(Ve),lt=(0,xe.Z)(he,["prefixCls"]),_t=Ae()(Ve,`${Ve}-element`,{[`${Ve}-active`]:Ie,[`${Ve}-block`]:Be},ke,gt,rn);return Ct(Le.createElement("div",{className:_t},Le.createElement(pe,Object.assign({prefixCls:`${Ve}-button`,size:yt},lt))))};const Oe="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var tt=he=>{const{prefixCls:se,className:ke,rootClassName:gt,style:Ie,active:Be}=he,{getPrefixCls:yt}=Le.useContext(ct.E_),rt=yt("skeleton",se),[Ve,Ct]=Je(rt),rn=Ae()(rt,`${rt}-element`,{[`${rt}-active`]:Be},ke,gt,Ct);return Ve(Le.createElement("div",{className:rn},Le.createElement("div",{className:Ae()(`${rt}-image`,ke),style:Ie},Le.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${rt}-image-svg`},Le.createElement("path",{d:Oe,className:`${rt}-image-path`})))))},At=he=>{const{prefixCls:se,className:ke,rootClassName:gt,active:Ie,block:Be,size:yt="default"}=he,{getPrefixCls:rt}=Le.useContext(ct.E_),Ve=rt("skeleton",se),[Ct,rn]=Je(Ve),lt=(0,xe.Z)(he,["prefixCls"]),_t=Ae()(Ve,`${Ve}-element`,{[`${Ve}-active`]:Ie,[`${Ve}-block`]:Be},ke,gt,rn);return Ct(Le.createElement("div",{className:_t},Le.createElement(pe,Object.assign({prefixCls:`${Ve}-input`,size:yt},lt))))},Mt=oe(60499),Wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},It=Wt,Ge=oe(7657),be=function(se,ke){return Le.createElement(Ge.Z,(0,Mt.Z)({},se,{ref:ke,icon:It}))},Ye=Le.forwardRef(be),Pt=Ye,Ue=he=>{const{prefixCls:se,className:ke,rootClassName:gt,style:Ie,active:Be,children:yt}=he,{getPrefixCls:rt}=Le.useContext(ct.E_),Ve=rt("skeleton",se),[Ct,rn]=Je(Ve),lt=Ae()(Ve,`${Ve}-element`,{[`${Ve}-active`]:Be},rn,ke,gt),_t=yt!=null?yt:Le.createElement(Pt,null);return Ct(Le.createElement("div",{className:lt},Le.createElement("div",{className:Ae()(`${Ve}-image`,ke),style:Ie},_t)))},at=oe(77654),kn=he=>{const se=rt=>{const{width:Ve,rows:Ct=2}=he;if(Array.isArray(Ve))return Ve[rt];if(Ct-1===rt)return Ve},{prefixCls:ke,className:gt,style:Ie,rows:Be}=he,yt=(0,at.Z)(Array(Be)).map((rt,Ve)=>Le.createElement("li",{key:Ve,style:{width:se(Ve)}}));return Le.createElement("ul",{className:Ae()(ke,gt),style:Ie},yt)},gn=he=>{let{prefixCls:se,className:ke,width:gt,style:Ie}=he;return Le.createElement("h3",{className:Ae()(se,ke),style:Object.assign({width:gt},Ie)})};function nn(he){return he&&typeof he=="object"?he:{}}function Gt(he,se){return he&&!se?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Xt(he,se){return!he&&se?{width:"38%"}:he&&se?{width:"50%"}:{}}function ye(he,se){const ke={};return(!he||!se)&&(ke.width="61%"),!he&&se?ke.rows=3:ke.rows=2,ke}const ue=he=>{const{prefixCls:se,loading:ke,className:gt,rootClassName:Ie,style:Be,children:yt,avatar:rt=!1,title:Ve=!0,paragraph:Ct=!0,active:rn,round:lt}=he,{getPrefixCls:_t,direction:fn,skeleton:ut}=Le.useContext(ct.E_),De=_t("skeleton",se),[dt,Ft]=Je(De);if(ke||!("loading"in he)){const zt=!!rt,an=!!Ve,Bn=!!Ct;let qt;if(zt){const Vn=Object.assign(Object.assign({prefixCls:`${De}-avatar`},Gt(an,Bn)),nn(rt));qt=Le.createElement("div",{className:`${De}-header`},Le.createElement(pe,Object.assign({},Vn)))}let pn;if(an||Bn){let Vn;if(an){const Qn=Object.assign(Object.assign({prefixCls:`${De}-title`},Xt(zt,Bn)),nn(Ve));Vn=Le.createElement(gn,Object.assign({},Qn))}let Pn;if(Bn){const Qn=Object.assign(Object.assign({prefixCls:`${De}-paragraph`},ye(zt,an)),nn(Ct));Pn=Le.createElement(kn,Object.assign({},Qn))}pn=Le.createElement("div",{className:`${De}-content`},Vn,Pn)}const zn=Ae()(De,{[`${De}-with-avatar`]:zt,[`${De}-active`]:rn,[`${De}-rtl`]:fn==="rtl",[`${De}-round`]:lt},ut==null?void 0:ut.className,gt,Ie,Ft);return dt(Le.createElement("div",{className:zn,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),Be)},qt,pn))}return typeof yt!="undefined"?yt:null};ue.Button=bt,ue.Avatar=wt,ue.Input=At,ue.Image=tt,ue.Node=Ue;var ce=ue,de=ce},31797:function(Mn,tn,oe){"use strict";oe.d(tn,{default:function(){return Je}});var ae=oe(59301),Ae=oe(56762),Le=oe(92343),ct=oe(92310),xe=oe.n(ct),Ee=oe(36355),pe=oe(61621),Me=et=>{const{value:wt,formatter:Qe,precision:bt,decimalSeparator:Oe,groupSeparator:Lt="",prefixCls:tt}=et;let Ut;if(typeof Qe=="function")Ut=Qe(wt);else{const At=String(wt),Mt=At.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Mt||At==="-")Ut=At;else{const Wt=Mt[1];let It=Mt[2]||"0",Ge=Mt[4]||"";It=It.replace(/\B(?=(\d{3})+(?!\d))/g,Lt),typeof bt=="number"&&(Ge=Ge.padEnd(bt,"0").slice(0,bt>0?bt:0)),Ge&&(Ge=`${Oe}${Ge}`),Ut=[ae.createElement("span",{key:"int",className:`${tt}-content-value-int`},Wt,It),Ge&&ae.createElement("span",{key:"decimal",className:`${tt}-content-value-decimal`},Ge)]}}return ae.createElement("span",{className:`${tt}-content-value`},Ut)},_e=oe(17313),vt=oe(83116),Fe=oe(37613);const qe=et=>{const{componentCls:wt,marginXXS:Qe,padding:bt,colorTextDescription:Oe,titleFontSize:Lt,colorTextHeading:tt,contentFontSize:Ut,fontFamily:At}=et;return{[`${wt}`]:Object.assign(Object.assign({},(0,_e.Wf)(et)),{[`${wt}-title`]:{marginBottom:Qe,color:Oe,fontSize:Lt},[`${wt}-skeleton`]:{paddingTop:bt},[`${wt}-content`]:{color:tt,fontSize:Ut,fontFamily:At,[`${wt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${wt}-content-prefix, ${wt}-content-suffix`]:{display:"inline-block"},[`${wt}-content-prefix`]:{marginInlineEnd:Qe},[`${wt}-content-suffix`]:{marginInlineStart:Qe}}})}};var pt=(0,vt.Z)("Statistic",et=>{const wt=(0,Fe.TS)(et,{});return[qe(wt)]},et=>{const{fontSizeHeading3:wt,fontSize:Qe}=et;return{titleFontSize:Qe,contentFontSize:wt}}),je=et=>{const{prefixCls:wt,className:Qe,rootClassName:bt,style:Oe,valueStyle:Lt,value:tt=0,title:Ut,valueRender:At,prefix:Mt,suffix:Wt,loading:It=!1,onMouseEnter:Ge,onMouseLeave:be,decimalSeparator:Ye=".",groupSeparator:Pt=","}=et,{getPrefixCls:xt,direction:Ue,statistic:at}=ae.useContext(Ee.E_),Ot=xt("statistic",wt),[kn,Kt]=pt(Ot),gn=ae.createElement(Me,Object.assign({decimalSeparator:Ye,groupSeparator:Pt,prefixCls:Ot},et,{value:tt})),nn=xe()(Ot,{[`${Ot}-rtl`]:Ue==="rtl"},at==null?void 0:at.className,Qe,bt,Kt);return kn(ae.createElement("div",{className:nn,style:Object.assign(Object.assign({},at==null?void 0:at.style),Oe),onMouseEnter:Ge,onMouseLeave:be},Ut&&ae.createElement("div",{className:`${Ot}-title`},Ut),ae.createElement(pe.Z,{paragraph:!1,loading:It,className:`${Ot}-skeleton`},ae.createElement("div",{style:Lt,className:`${Ot}-content`},Mt&&ae.createElement("span",{className:`${Ot}-content-prefix`},Mt),At?At(gn):gn,Wt&&ae.createElement("span",{className:`${Ot}-content-suffix`},Wt)))))};const ft=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function mt(et,wt){let Qe=et;const bt=/\[[^\]]*]/g,Oe=(wt.match(bt)||[]).map(At=>At.slice(1,-1)),Lt=wt.replace(bt,"[]"),tt=ft.reduce((At,Mt)=>{let[Wt,It]=Mt;if(At.includes(Wt)){const Ge=Math.floor(Qe/It);return Qe-=Ge*It,At.replace(new RegExp(`${Wt}+`,"g"),be=>{const Ye=be.length;return Ge.toString().padStart(Ye,"0")})}return At},Lt);let Ut=0;return tt.replace(bt,()=>{const At=Oe[Ut];return Ut+=1,At})}function Bt(et,wt){const{format:Qe=""}=wt,bt=new Date(et).getTime(),Oe=Date.now(),Lt=Math.max(bt-Oe,0);return mt(Lt,Qe)}const ht=1e3/30;function nt(et){return new Date(et).getTime()}const Re=et=>{const{value:wt,format:Qe="HH:mm:ss",onChange:bt,onFinish:Oe}=et,Lt=(0,Ae.Z)(),tt=ae.useRef(null),Ut=()=>{Oe==null||Oe(),tt.current&&(clearInterval(tt.current),tt.current=null)},At=()=>{const It=nt(wt);It>=Date.now()&&(tt.current=setInterval(()=>{Lt(),bt==null||bt(It-Date.now()),It<Date.now()&&Ut()},ht))};ae.useEffect(()=>(At(),()=>{tt.current&&(clearInterval(tt.current),tt.current=null)}),[wt]);const Mt=(It,Ge)=>Bt(It,Object.assign(Object.assign({},Ge),{format:Qe})),Wt=It=>(0,Le.Tm)(It,{title:void 0});return ae.createElement(je,Object.assign({},et,{valueRender:Wt,formatter:Mt}))};var Ce=ae.memo(Re);je.Countdown=Ce;var Je=je},8378:function(Mn,tn){"use strict";const oe=ae=>({[ae.componentCls]:{[`${ae.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ae.motionDurationMid} ${ae.motionEaseInOut},
|
|
|
opacity ${ae.motionDurationMid} ${ae.motionEaseInOut} !important`}},[`${ae.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ae.motionDurationMid} ${ae.motionEaseInOut},
|
|
|
opacity ${ae.motionDurationMid} ${ae.motionEaseInOut} !important`}}});tn.Z=oe},92899:function(Mn,tn,oe){"use strict";oe.d(tn,{Fm:function(){return Fe}});var ae=oe(36237),Ae=oe(95406);const Le=new ae.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ct=new ae.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),xe=new ae.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ee=new ae.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),pe=new ae.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ve=new ae.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 ae.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_e=new ae.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),vt={"move-up":{inKeyframes:Me,outKeyframes:_e},"move-down":{inKeyframes:Le,outKeyframes:ct},"move-left":{inKeyframes:xe,outKeyframes:Ee},"move-right":{inKeyframes:pe,outKeyframes:ve}},Fe=(qe,pt)=>{const{antCls:Ke}=qe,je=`${Ke}-${pt}`,{inKeyframes:ft,outKeyframes:mt}=vt[pt];return[(0,Ae.R)(je,ft,mt,qe.motionDurationMid),{[`
|
|
|
${je}-enter,
|
|
|
${je}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:qe.motionEaseOutCirc},[`${je}-leave`]:{animationTimingFunction:qe.motionEaseInOutCirc}}]}},13826:function(Mn,tn,oe){"use strict";oe.d(tn,{Qt:function(){return xe},Uw:function(){return ct},fJ:function(){return Le},ly:function(){return Ee},oN:function(){return Fe}});var ae=oe(36237),Ae=oe(95406);const Le=new ae.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ct=new ae.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),xe=new ae.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Ee=new ae.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),pe=new ae.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),ve=new ae.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Me=new ae.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),_e=new ae.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),vt={"slide-up":{inKeyframes:Le,outKeyframes:ct},"slide-down":{inKeyframes:xe,outKeyframes:Ee},"slide-left":{inKeyframes:pe,outKeyframes:ve},"slide-right":{inKeyframes:Me,outKeyframes:_e}},Fe=(qe,pt)=>{const{antCls:Ke}=qe,je=`${Ke}-${pt}`,{inKeyframes:ft,outKeyframes:mt}=vt[pt];return[(0,Ae.R)(je,ft,mt,qe.motionDurationMid),{[`
|
|
|
${je}-enter,
|
|
|
${je}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:qe.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${je}-leave`]:{animationTimingFunction:qe.motionEaseInQuint}}]}},15969:function(Mn,tn,oe){"use strict";oe.d(tn,{N:function(){return ae}});const ae=Ae=>({color:Ae.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Ae.motionDurationSlow}`,"&:focus, &:hover":{color:Ae.colorLinkHover},"&:active":{color:Ae.colorLinkActive}})},78673:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return Lt}});var ae=oe(58617),Ae=oe(92310),Le=oe.n(Ae),ct=oe(60499),xe=oe(18642),Ee=oe(72190),pe=oe(42244),ve=oe(59301),Me=oe(18929),_e=oe(10228),vt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Fe=ve.forwardRef(function(tt,Ut){var At,Mt=tt.prefixCls,Wt=Mt===void 0?"rc-switch":Mt,It=tt.className,Ge=tt.checked,be=tt.defaultChecked,Ye=tt.disabled,Pt=tt.loadingIcon,xt=tt.checkedChildren,Ue=tt.unCheckedChildren,at=tt.onClick,Ot=tt.onChange,kn=tt.onKeyDown,Kt=(0,pe.Z)(tt,vt),gn=(0,Me.Z)(!1,{value:Ge,defaultValue:be}),nn=(0,Ee.Z)(gn,2),Gt=nn[0],Xt=nn[1];function ye(he,se){var ke=Gt;return Ye||(ke=he,Xt(ke),Ot==null||Ot(ke,se)),ke}function ue(he){he.which===_e.Z.LEFT?ye(!1,he):he.which===_e.Z.RIGHT&&ye(!0,he),kn==null||kn(he)}function ce(he){var se=ye(!Gt,he);at==null||at(se,he)}var de=Le()(Wt,It,(At={},(0,xe.Z)(At,"".concat(Wt,"-checked"),Gt),(0,xe.Z)(At,"".concat(Wt,"-disabled"),Ye),At));return ve.createElement("button",(0,ct.Z)({},Kt,{type:"button",role:"switch","aria-checked":Gt,disabled:Ye,className:de,ref:Ut,onKeyDown:ue,onClick:ce}),Pt,ve.createElement("span",{className:"".concat(Wt,"-inner")},ve.createElement("span",{className:"".concat(Wt,"-inner-checked")},xt),ve.createElement("span",{className:"".concat(Wt,"-inner-unchecked")},Ue)))});Fe.displayName="Switch";var qe=Fe,pt=oe(14088),Ke=oe(36355),je=oe(1684),ft=oe(19716),mt=oe(64993),Bt=oe(17313),ht=oe(83116),nt=oe(37613);const Re=tt=>{const{componentCls:Ut,trackHeightSM:At,trackPadding:Mt,trackMinWidthSM:Wt,innerMinMarginSM:It,innerMaxMarginSM:Ge,handleSizeSM:be}=tt,Ye=`${Ut}-inner`;return{[Ut]:{[`&${Ut}-small`]:{minWidth:Wt,height:At,lineHeight:`${At}px`,[`${Ut}-inner`]:{paddingInlineStart:Ge,paddingInlineEnd:It,[`${Ye}-checked`]:{marginInlineStart:`calc(-100% + ${be+Mt*2}px - ${Ge*2}px)`,marginInlineEnd:`calc(100% - ${be+Mt*2}px + ${Ge*2}px)`},[`${Ye}-unchecked`]:{marginTop:-At,marginInlineStart:0,marginInlineEnd:0}},[`${Ut}-handle`]:{width:be,height:be},[`${Ut}-loading-icon`]:{top:(be-tt.switchLoadingIconSize)/2,fontSize:tt.switchLoadingIconSize},[`&${Ut}-checked`]:{[`${Ut}-inner`]:{paddingInlineStart:It,paddingInlineEnd:Ge,[`${Ye}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ye}-unchecked`]:{marginInlineStart:`calc(100% - ${be+Mt*2}px + ${Ge*2}px)`,marginInlineEnd:`calc(-100% + ${be+Mt*2}px - ${Ge*2}px)`}},[`${Ut}-handle`]:{insetInlineStart:`calc(100% - ${be+Mt}px)`}},[`&:not(${Ut}-disabled):active`]:{[`&:not(${Ut}-checked) ${Ye}`]:{[`${Ye}-unchecked`]:{marginInlineStart:tt.marginXXS/2,marginInlineEnd:-tt.marginXXS/2}},[`&${Ut}-checked ${Ye}`]:{[`${Ye}-checked`]:{marginInlineStart:-tt.marginXXS/2,marginInlineEnd:tt.marginXXS/2}}}}}}},Ce=tt=>{const{componentCls:Ut,handleSize:At}=tt;return{[Ut]:{[`${Ut}-loading-icon${tt.iconCls}`]:{position:"relative",top:(At-tt.fontSize)/2,color:tt.switchLoadingIconColor,verticalAlign:"top"},[`&${Ut}-checked ${Ut}-loading-icon`]:{color:tt.switchColor}}}},Je=tt=>{const{componentCls:Ut,motion:At,trackPadding:Mt,handleBg:Wt,handleShadow:It,handleSize:Ge}=tt,be=`${Ut}-handle`;return{[Ut]:{[be]:{position:"absolute",top:Mt,insetInlineStart:Mt,width:Ge,height:Ge,transition:`all ${tt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Wt,borderRadius:Ge/2,boxShadow:It,transition:`all ${tt.switchDuration} ease-in-out`,content:'""'}},[`&${Ut}-checked ${be}`]:{insetInlineStart:`calc(100% - ${Ge+Mt}px)`},[`&:not(${Ut}-disabled):active`]:At?{[`${be}::before`]:{insetInlineEnd:tt.switchHandleActiveInset,insetInlineStart:0},[`&${Ut}-checked ${be}::before`]:{insetInlineEnd:0,insetInlineStart:tt.switchHandleActiveInset}}:{}}}},et=tt=>{const{componentCls:Ut,trackHeight:At,trackPadding:Mt,innerMinMargin:Wt,innerMaxMargin:It,handleSize:Ge}=tt,be=`${Ut}-inner`;return{[Ut]:{[be]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:It,paddingInlineEnd:Wt,transition:`padding-inline-start ${tt.switchDuration} ease-in-out, padding-inline-end ${tt.switchDuration} ease-in-out`,[`${be}-checked, ${be}-unchecked`]:{display:"block",color:tt.colorTextLightSolid,fontSize:tt.fontSizeSM,transition:`margin-inline-start ${tt.switchDuration} ease-in-out, margin-inline-end ${tt.switchDuration} ease-in-out`,pointerEvents:"none"},[`${be}-checked`]:{marginInlineStart:`calc(-100% + ${Ge+Mt*2}px - ${It*2}px)`,marginInlineEnd:`calc(100% - ${Ge+Mt*2}px + ${It*2}px)`},[`${be}-unchecked`]:{marginTop:-At,marginInlineStart:0,marginInlineEnd:0}},[`&${Ut}-checked ${be}`]:{paddingInlineStart:Wt,paddingInlineEnd:It,[`${be}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${be}-unchecked`]:{marginInlineStart:`calc(100% - ${Ge+Mt*2}px + ${It*2}px)`,marginInlineEnd:`calc(-100% + ${Ge+Mt*2}px - ${It*2}px)`}},[`&:not(${Ut}-disabled):active`]:{[`&:not(${Ut}-checked) ${be}`]:{[`${be}-unchecked`]:{marginInlineStart:Mt*2,marginInlineEnd:-Mt*2}},[`&${Ut}-checked ${be}`]:{[`${be}-checked`]:{marginInlineStart:-Mt*2,marginInlineEnd:Mt*2}}}}}},wt=tt=>{const{componentCls:Ut,trackHeight:At,trackMinWidth:Mt}=tt;return{[Ut]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(tt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Mt,height:At,lineHeight:`${At}px`,verticalAlign:"middle",background:tt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${tt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Ut}-disabled)`]:{background:tt.colorTextTertiary}}),(0,Bt.Qy)(tt)),{[`&${Ut}-checked`]:{background:tt.switchColor,[`&:hover:not(${Ut}-disabled)`]:{background:tt.colorPrimaryHover}},[`&${Ut}-loading, &${Ut}-disabled`]:{cursor:"not-allowed",opacity:tt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Ut}-rtl`]:{direction:"rtl"}})}};var Qe=(0,ht.Z)("Switch",tt=>{const Ut=(0,nt.TS)(tt,{switchDuration:tt.motionDurationMid,switchColor:tt.colorPrimary,switchDisabledOpacity:tt.opacityLoading,switchLoadingIconSize:tt.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${tt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[wt(Ut),et(Ut),Je(Ut),Ce(Ut),Re(Ut)]},tt=>{const{fontSize:Ut,lineHeight:At,controlHeight:Mt,colorWhite:Wt}=tt,It=Ut*At,Ge=Mt/2,be=2,Ye=It-be*2,Pt=Ge-be*2;return{trackHeight:It,trackHeightSM:Ge,trackMinWidth:Ye*2+be*4,trackMinWidthSM:Pt*2+be*2,trackPadding:be,handleBg:Wt,handleSize:Ye,handleSizeSM:Pt,handleShadow:`0 2px 4px 0 ${new mt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:Ye/2,innerMaxMargin:Ye+be+be*2,innerMinMarginSM:Pt/2,innerMaxMarginSM:Pt+be+be*2}}),bt=function(tt,Ut){var At={};for(var Mt in tt)Object.prototype.hasOwnProperty.call(tt,Mt)&&Ut.indexOf(Mt)<0&&(At[Mt]=tt[Mt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Wt=0,Mt=Object.getOwnPropertySymbols(tt);Wt<Mt.length;Wt++)Ut.indexOf(Mt[Wt])<0&&Object.prototype.propertyIsEnumerable.call(tt,Mt[Wt])&&(At[Mt[Wt]]=tt[Mt[Wt]]);return At};const Oe=ve.forwardRef((tt,Ut)=>{const{prefixCls:At,size:Mt,disabled:Wt,loading:It,className:Ge,rootClassName:be,style:Ye}=tt,Pt=bt(tt,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:xt,direction:Ue,switch:at}=ve.useContext(Ke.E_),Ot=ve.useContext(je.Z),kn=(Wt!=null?Wt:Ot)||It,Kt=xt("switch",At),gn=ve.createElement("div",{className:`${Kt}-handle`},It&&ve.createElement(ae.Z,{className:`${Kt}-loading-icon`})),[nn,Gt]=Qe(Kt),Xt=(0,ft.Z)(Mt),ye=Le()(at==null?void 0:at.className,{[`${Kt}-small`]:Xt==="small",[`${Kt}-loading`]:It,[`${Kt}-rtl`]:Ue==="rtl"},Ge,be,Gt),ue=Object.assign(Object.assign({},at==null?void 0:at.style),Ye);return nn(ve.createElement(pt.Z,{component:"Switch"},ve.createElement(qe,Object.assign({},Pt,{prefixCls:Kt,className:ye,style:ue,disabled:kn,ref:Ut,loadingIcon:gn}))))});Oe.__ANT_SWITCH=!0;var Lt=Oe},1710:function(Mn,tn,oe){"use strict";oe.d(tn,{default:function(){return qu}});var ae={},Ae="rc-table-internal-hook",Le=oe(72190),ct=oe(6089),xe=oe(34280),Ee=oe(13697),pe=oe(59301),ve=oe(4676);function Me(Ne){var We=pe.createContext(void 0),St=function(Jt){var Ht=Jt.value,En=Jt.children,Sn=pe.useRef(Ht);Sn.current=Ht;var bn=pe.useState(function(){return{getValue:function(){return Sn.current},listeners:new Set}}),Nn=(0,Le.Z)(bn,1),Xn=Nn[0];return(0,xe.Z)(function(){(0,ve.unstable_batchedUpdates)(function(){Xn.listeners.forEach(function(Kn){Kn(Ht)})})},[Ht]),pe.createElement(We.Provider,{value:Xn},En)};return{Context:We,Provider:St,defaultValue:Ne}}function _e(Ne,We){var St=(0,ct.Z)(typeof We=="function"?We:function(Kn){if(We===void 0)return Kn;if(!Array.isArray(We))return Kn[We];var fr={};return We.forEach(function(cr){fr[cr]=Kn[cr]}),fr}),Nt=pe.useContext(Ne==null?void 0:Ne.Context),Jt=Nt||{},Ht=Jt.listeners,En=Jt.getValue,Sn=pe.useRef();Sn.current=St(Nt?En():Ne==null?void 0:Ne.defaultValue);var bn=pe.useState({}),Nn=(0,Le.Z)(bn,2),Xn=Nn[1];return(0,xe.Z)(function(){if(!Nt)return;function Kn(fr){var cr=St(fr);(0,Ee.Z)(Sn.current,cr,!0)||Xn({})}return Ht.add(Kn),function(){Ht.delete(Kn)}},[Nt]),Sn.current}var vt=oe(60499),Fe=oe(8654);function qe(){var Ne=pe.createContext(null);function We(){return pe.useContext(Ne)}function St(Jt,Ht){var En=(0,Fe.Yr)(Jt),Sn=function(Nn,Xn){var Kn=En?{ref:Xn}:{},fr=pe.useRef(0),cr=pe.useRef(Nn),ur=We();return ur!==null?pe.createElement(Jt,(0,vt.Z)({},Nn,Kn)):((!Ht||Ht(cr.current,Nn))&&(fr.current+=1),cr.current=Nn,pe.createElement(Ne.Provider,{value:fr.current},pe.createElement(Jt,(0,vt.Z)({},Nn,Kn))))};return En?pe.forwardRef(Sn):Sn}function Nt(Jt,Ht){var En=(0,Fe.Yr)(Jt),Sn=function(Nn,Xn){var Kn=En?{ref:Xn}:{};return We(),pe.createElement(Jt,(0,vt.Z)({},Nn,Kn))};return En?pe.memo(pe.forwardRef(Sn),Ht):pe.memo(Sn,Ht)}return{makeImmutable:St,responseImmutable:Nt,useImmutableMark:We}}var pt=qe(),Ke=pt.makeImmutable,je=pt.responseImmutable,ft=pt.useImmutableMark,mt=qe(),Bt=mt.makeImmutable,ht=mt.responseImmutable,nt=mt.useImmutableMark,Re=Me(),Ce=Re;function Je(Ne,We){var St=pe.useRef(0);St.current+=1;var Nt=pe.useRef(Ne),Jt=[];Object.keys(Ne||{}).map(function(En){var Sn;(Ne==null?void 0:Ne[En])!==((Sn=Nt.current)===null||Sn===void 0?void 0:Sn[En])&&Jt.push(En)}),Nt.current=Ne;var Ht=pe.useRef([]);return Jt.length&&(Ht.current=Jt),pe.useDebugValue(St.current),pe.useDebugValue(Ht.current.join(", ")),We&&console.log("".concat(We,":"),St.current,Ht.current),St.current}var et=null,wt=pe.memo(function(){var Ne=Je();return pe.createElement("h1",null,"Render Times: ",Ne)});wt.displayName="RenderBlock";var Qe=oe(43749),bt=oe(85899),Oe=oe(18642),Lt=oe(92310),tt=oe.n(Lt),Ut=oe(80547),At=oe(97938),Mt=oe(48736),Wt=pe.createContext({renderWithProps:!1}),It=Wt,Ge="RC_TABLE_KEY";function be(Ne){return Ne==null?[]:Array.isArray(Ne)?Ne:[Ne]}function Ye(Ne){var We=[],St={};return Ne.forEach(function(Nt){for(var Jt=Nt||{},Ht=Jt.key,En=Jt.dataIndex,Sn=Ht||be(En).join("-")||Ge;St[Sn];)Sn="".concat(Sn,"_next");St[Sn]=!0,We.push(Sn)}),We}function Pt(Ne){return Ne!=null}function xt(Ne){return Ne&&(0,Qe.Z)(Ne)==="object"&&!Array.isArray(Ne)&&!pe.isValidElement(Ne)}function Ue(Ne,We,St,Nt,Jt,Ht){var En=pe.useContext(It),Sn=nt(),bn=(0,Ut.Z)(function(){if(Pt(Nt))return[Nt];var Nn=We==null||We===""?[]:Array.isArray(We)?We:[We],Xn=(0,At.Z)(Ne,Nn),Kn=Xn,fr=void 0;if(Jt){var cr=Jt(Xn,Ne,St);xt(cr)?(Kn=cr.children,fr=cr.props,En.renderWithProps=!0):Kn=cr}return[Kn,fr]},[Sn,Ne,Nt,We,Jt,St],function(Nn,Xn){if(Ht){var Kn=(0,Le.Z)(Nn,2),fr=Kn[1],cr=(0,Le.Z)(Xn,2),ur=cr[1];return Ht(ur,fr)}return En.renderWithProps?!0:!(0,Ee.Z)(Nn,Xn,!0)});return bn}function at(Ne,We,St,Nt){var Jt=Ne+We-1;return Ne<=Nt&&Jt>=St}function Ot(Ne,We){return _e(Ce,function(St){var Nt=at(Ne,We||1,St.hoverStartRow,St.hoverEndRow);return[Nt,St.onHover]})}var kn=function(We){var St=We.ellipsis,Nt=We.rowType,Jt=We.children,Ht,En=St===!0?{showTitle:!0}:St;return En&&(En.showTitle||Nt==="header")&&(typeof Jt=="string"||typeof Jt=="number"?Ht=Jt.toString():pe.isValidElement(Jt)&&typeof Jt.props.children=="string"&&(Ht=Jt.props.children)),Ht};function Kt(Ne){var We,St,Nt,Jt,Ht,En,Sn,bn,Nn=Ne.component,Xn=Ne.children,Kn=Ne.ellipsis,fr=Ne.scope,cr=Ne.prefixCls,ur=Ne.className,ei=Ne.align,Hr=Ne.record,ti=Ne.render,Zr=Ne.dataIndex,hi=Ne.renderIndex,Oi=Ne.shouldCellUpdate,zi=Ne.index,Ai=Ne.rowType,Qi=Ne.colSpan,sa=Ne.rowSpan,yi=Ne.fixLeft,Di=Ne.fixRight,bi=Ne.firstFixLeft,Fr=Ne.lastFixLeft,Si=Ne.firstFixRight,Yi=Ne.lastFixRight,ga=Ne.appendNode,Zi=Ne.additionalProps,ii=Zi===void 0?{}:Zi,ra=Ne.isSticky,la="".concat(cr,"-cell"),Fa=_e(Ce,["supportSticky","allColumnsFixedLeft"]),Ia=Fa.supportSticky,lo=Fa.allColumnsFixedLeft,eo=Ue(Hr,Zr,hi,Xn,ti,Oi),oa=(0,Le.Z)(eo,2),Co=oa[0],Ma=oa[1],ao={},to=typeof yi=="number"&&Ia,Po=typeof Di=="number"&&Ia;to&&(ao.position="sticky",ao.left=yi),Po&&(ao.position="sticky",ao.right=Di);var ji=(We=(St=(Nt=Ma==null?void 0:Ma.colSpan)!==null&&Nt!==void 0?Nt:ii.colSpan)!==null&&St!==void 0?St:Qi)!==null&&We!==void 0?We:1,_i=(Jt=(Ht=(En=Ma==null?void 0:Ma.rowSpan)!==null&&En!==void 0?En:ii.rowSpan)!==null&&Ht!==void 0?Ht:sa)!==null&&Jt!==void 0?Jt:1,Ki=Ot(zi,_i),Pi=(0,Le.Z)(Ki,2),Pa=Pi[0],Ni=Pi[1],ia=function(Ao){var Vo;Hr&&Ni(zi,zi+_i-1),ii==null||(Vo=ii.onMouseEnter)===null||Vo===void 0||Vo.call(ii,Ao)},ka=function(Ao){var Vo;Hr&&Ni(-1,-1),ii==null||(Vo=ii.onMouseLeave)===null||Vo===void 0||Vo.call(ii,Ao)};if(ji===0||_i===0)return null;var Ea=(Sn=ii.title)!==null&&Sn!==void 0?Sn:kn({rowType:Ai,ellipsis:Kn,children:Co}),es=tt()(la,ur,(bn={},(0,Oe.Z)(bn,"".concat(la,"-fix-left"),to&&Ia),(0,Oe.Z)(bn,"".concat(la,"-fix-left-first"),bi&&Ia),(0,Oe.Z)(bn,"".concat(la,"-fix-left-last"),Fr&&Ia),(0,Oe.Z)(bn,"".concat(la,"-fix-left-all"),Fr&&lo&&Ia),(0,Oe.Z)(bn,"".concat(la,"-fix-right"),Po&&Ia),(0,Oe.Z)(bn,"".concat(la,"-fix-right-first"),Si&&Ia),(0,Oe.Z)(bn,"".concat(la,"-fix-right-last"),Yi&&Ia),(0,Oe.Z)(bn,"".concat(la,"-ellipsis"),Kn),(0,Oe.Z)(bn,"".concat(la,"-with-append"),ga),(0,Oe.Z)(bn,"".concat(la,"-fix-sticky"),(to||Po)&&ra&&Ia),(0,Oe.Z)(bn,"".concat(la,"-row-hover"),!Ma&&Pa),bn),ii.className,Ma==null?void 0:Ma.className),To={};ei&&(To.textAlign=ei);var js=(0,bt.Z)((0,bt.Z)((0,bt.Z)((0,bt.Z)({},ao),ii.style),To),Ma==null?void 0:Ma.style),Eo=Co;return(0,Qe.Z)(Eo)==="object"&&!Array.isArray(Eo)&&!pe.isValidElement(Eo)&&(Eo=null),Kn&&(Fr||Si)&&(Eo=pe.createElement("span",{className:"".concat(la,"-content")},Eo)),pe.createElement(Nn,(0,vt.Z)({},Ma,ii,{className:es,style:js,title:Ea,scope:fr,onMouseEnter:ia,onMouseLeave:ka,colSpan:ji!==1?ji:null,rowSpan:_i!==1?_i:null}),ga,Eo)}var gn=pe.memo(Kt);function nn(Ne,We,St,Nt,Jt,Ht){var En=St[Ne]||{},Sn=St[We]||{},bn,Nn;En.fixed==="left"?bn=Nt.left[Jt==="rtl"?We:Ne]:Sn.fixed==="right"&&(Nn=Nt.right[Jt==="rtl"?Ne:We]);var Xn=!1,Kn=!1,fr=!1,cr=!1,ur=St[We+1],ei=St[Ne-1],Hr=!(Ht!=null&&Ht.children);if(Jt==="rtl"){if(bn!==void 0){var ti=ei&&ei.fixed==="left";cr=!ti&&Hr}else if(Nn!==void 0){var Zr=ur&&ur.fixed==="right";fr=!Zr&&Hr}}else if(bn!==void 0){var hi=ur&&ur.fixed==="left";Xn=!hi&&Hr}else if(Nn!==void 0){var Oi=ei&&ei.fixed==="right";Kn=!Oi&&Hr}return{fixLeft:bn,fixRight:Nn,lastFixLeft:Xn,firstFixRight:Kn,lastFixRight:fr,firstFixLeft:cr,isSticky:Nt.isSticky}}var Gt=pe.createContext({}),Xt=Gt;function ye(Ne){var We=Ne.className,St=Ne.index,Nt=Ne.children,Jt=Ne.colSpan,Ht=Jt===void 0?1:Jt,En=Ne.rowSpan,Sn=Ne.align,bn=_e(Ce,["prefixCls","direction"]),Nn=bn.prefixCls,Xn=bn.direction,Kn=pe.useContext(Xt),fr=Kn.scrollColumnIndex,cr=Kn.stickyOffsets,ur=Kn.flattenColumns,ei=Kn.columns,Hr=St+Ht-1,ti=Hr+1===fr?Ht+1:Ht,Zr=nn(St,St+ti-1,ur,cr,Xn,ei==null?void 0:ei[St]);return pe.createElement(gn,(0,vt.Z)({className:We,index:St,component:"td",prefixCls:Nn,record:null,dataIndex:null,align:Sn,colSpan:ti,rowSpan:En,render:function(){return Nt}},Zr))}var ue=oe(42244),ce=["children"];function de(Ne){var We=Ne.children,St=(0,ue.Z)(Ne,ce);return pe.createElement("tr",St,We)}function he(Ne){var We=Ne.children;return We}he.Row=de,he.Cell=ye;var se=he;function ke(Ne){var We=Ne.children,St=Ne.stickyOffsets,Nt=Ne.flattenColumns,Jt=Ne.columns,Ht=_e(Ce,"prefixCls"),En=Nt.length-1,Sn=Nt[En],bn=pe.useMemo(function(){return{stickyOffsets:St,flattenColumns:Nt,scrollColumnIndex:Sn!=null&&Sn.scrollbar?En:null,columns:Jt}},[Sn,Nt,En,St,Jt]);return pe.createElement(Xt.Provider,{value:bn},pe.createElement("tfoot",{className:"".concat(Ht,"-summary")},We))}var gt=ht(ke),Ie=se,Be=oe(70425),yt=oe(29301),rt=oe(29194),Ve=oe(24514),Ct=oe(75152),rn=oe(26112);function lt(Ne,We,St,Nt,Jt,Ht,En){Ne.push({record:We,indent:St,index:En});var Sn=Ht(We),bn=Jt==null?void 0:Jt.has(Sn);if(We&&Array.isArray(We[Nt])&&bn)for(var Nn=0;Nn<We[Nt].length;Nn+=1)lt(Ne,We[Nt][Nn],St+1,Nt,Jt,Ht,Nn)}function _t(Ne,We,St,Nt){var Jt=pe.useMemo(function(){if(St!=null&&St.size){for(var Ht=[],En=0;En<(Ne==null?void 0:Ne.length);En+=1){var Sn=Ne[En];lt(Ht,Sn,0,We,St,Nt,En)}return Ht}return Ne==null?void 0:Ne.map(function(bn,Nn){return{record:bn,indent:0,index:Nn}})},[Ne,We,St,Nt]);return Jt}function fn(Ne){var We=Ne.prefixCls,St=Ne.children,Nt=Ne.component,Jt=Ne.cellComponent,Ht=Ne.className,En=Ne.expanded,Sn=Ne.colSpan,bn=Ne.isEmpty,Nn=_e(Ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Xn=Nn.scrollbarSize,Kn=Nn.fixHeader,fr=Nn.fixColumn,cr=Nn.componentWidth,ur=Nn.horizonScroll,ei=St;return(bn?ur&&cr:fr)&&(ei=pe.createElement("div",{style:{width:cr-(Kn?Xn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(We,"-expanded-row-fixed")},ei)),pe.createElement(Nt,{className:Ht,style:{display:En?null:"none"}},pe.createElement(gn,{component:Jt,prefixCls:We,colSpan:Sn},ei))}var ut=fn;function De(Ne,We,St,Nt){var Jt=_e(Ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ht=Jt.flattenColumns,En=Jt.expandableType,Sn=Jt.expandedKeys,bn=Jt.childrenColumnName,Nn=Jt.onTriggerExpand,Xn=Jt.rowExpandable,Kn=Jt.onRow,fr=Jt.expandRowByClick,cr=Jt.rowClassName,ur=En==="nest",ei=En==="row"&&(!Xn||Xn(Ne)),Hr=ei||ur,ti=Sn&&Sn.has(We),Zr=bn&&Ne&&Ne[bn],hi=(0,Be.useEvent)(Nn),Oi=Kn==null?void 0:Kn(Ne,St),zi=Oi==null?void 0:Oi.onClick,Ai=function(Di){fr&&Hr&&Nn(Ne,Di);for(var bi=arguments.length,Fr=new Array(bi>1?bi-1:0),Si=1;Si<bi;Si++)Fr[Si-1]=arguments[Si];zi==null||zi.apply(void 0,[Di].concat(Fr))},Qi;typeof cr=="string"?Qi=cr:typeof cr=="function"&&(Qi=cr(Ne,St,Nt));var sa=Ye(Ht);return(0,bt.Z)((0,bt.Z)({},Jt),{},{columnsKey:sa,nestExpandable:ur,expanded:ti,hasNestChildren:Zr,record:Ne,onTriggerExpand:hi,rowSupportExpand:ei,expandable:Hr,rowProps:(0,bt.Z)((0,bt.Z)({},Oi),{},{className:tt()(Qi,Oi==null?void 0:Oi.className),onClick:Ai})})}function dt(Ne,We,St,Nt,Jt){var Ht=Ne.record,En=Ne.prefixCls,Sn=Ne.columnsKey,bn=Ne.fixedInfoList,Nn=Ne.expandIconColumnIndex,Xn=Ne.nestExpandable,Kn=Ne.indentSize,fr=Ne.expandIcon,cr=Ne.expanded,ur=Ne.hasNestChildren,ei=Ne.onTriggerExpand,Hr=Sn[St],ti=bn[St],Zr;St===(Nn||0)&&Xn&&(Zr=pe.createElement(pe.Fragment,null,pe.createElement("span",{style:{paddingLeft:"".concat(Kn*Nt,"px")},className:"".concat(En,"-row-indent indent-level-").concat(Nt)}),fr({prefixCls:En,expanded:cr,expandable:ur,record:Ht,onExpand:ei})));var hi;return We.onCell&&(hi=We.onCell(Ht,Jt)),{key:Hr,fixedInfo:ti,appendCellNode:Zr,additionalCellProps:hi||{}}}function Ft(Ne){var We=Ne.className,St=Ne.style,Nt=Ne.record,Jt=Ne.index,Ht=Ne.renderIndex,En=Ne.rowKey,Sn=Ne.indent,bn=Sn===void 0?0:Sn,Nn=Ne.rowComponent,Xn=Ne.cellComponent,Kn=Ne.scopeCellComponent,fr=De(Nt,En,Jt,bn),cr=fr.prefixCls,ur=fr.flattenColumns,ei=fr.expandedRowClassName,Hr=fr.expandedRowRender,ti=fr.rowProps,Zr=fr.expanded,hi=fr.rowSupportExpand,Oi=pe.useState(!1),zi=(0,Le.Z)(Oi,2),Ai=zi[0],Qi=zi[1];pe.useEffect(function(){Zr&&Qi(!0)},[Zr]);var sa=pe.createElement(Nn,(0,vt.Z)({},ti,{"data-row-key":En,className:tt()(We,"".concat(cr,"-row"),"".concat(cr,"-row-level-").concat(bn),ti==null?void 0:ti.className),style:(0,bt.Z)((0,bt.Z)({},St),ti==null?void 0:ti.style)}),ur.map(function(Fr,Si){var Yi=Fr.render,ga=Fr.dataIndex,Zi=Fr.className,ii=dt(fr,Fr,Si,bn,Jt),ra=ii.key,la=ii.fixedInfo,Fa=ii.appendCellNode,Ia=ii.additionalCellProps;return pe.createElement(gn,(0,vt.Z)({className:Zi,ellipsis:Fr.ellipsis,align:Fr.align,scope:Fr.rowScope,component:Fr.rowScope?Kn:Xn,prefixCls:cr,key:ra,record:Nt,index:Jt,renderIndex:Ht,dataIndex:ga,render:Yi,shouldCellUpdate:Fr.shouldCellUpdate},la,{appendNode:Fa,additionalProps:Ia}))})),yi;if(hi&&(Ai||Zr)){var Di=Hr(Nt,Jt,bn+1,Zr),bi=ei&&ei(Nt,Jt,bn);yi=pe.createElement(ut,{expanded:Zr,className:tt()("".concat(cr,"-expanded-row"),"".concat(cr,"-expanded-row-level-").concat(bn+1),bi),prefixCls:cr,component:Nn,cellComponent:Xn,colSpan:ur.length,isEmpty:!1},Di)}return pe.createElement(pe.Fragment,null,sa,yi)}Ft.displayName="BodyRow";var zt=ht(Ft);function an(Ne){var We=Ne.columnKey,St=Ne.onColumnResize,Nt=pe.useRef();return pe.useEffect(function(){Nt.current&&St(We,Nt.current.offsetWidth)},[]),pe.createElement(yt.Z,{data:We},pe.createElement("td",{ref:Nt,style:{padding:0,border:0,height:0}},pe.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Bn(Ne){var We=Ne.prefixCls,St=Ne.columnsKey,Nt=Ne.onColumnResize;return pe.createElement("tr",{"aria-hidden":"true",className:"".concat(We,"-measure-row"),style:{height:0,fontSize:0}},pe.createElement(yt.Z.Collection,{onBatchResize:function(Ht){Ht.forEach(function(En){var Sn=En.data,bn=En.size;Nt(Sn,bn.offsetWidth)})}},St.map(function(Jt){return pe.createElement(an,{key:Jt,columnKey:Jt,onColumnResize:Nt})})))}function qt(Ne){var We=Ne.data,St=Ne.measureColumnWidth,Nt=_e(Ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Jt=Nt.prefixCls,Ht=Nt.getComponent,En=Nt.onColumnResize,Sn=Nt.flattenColumns,bn=Nt.getRowKey,Nn=Nt.expandedKeys,Xn=Nt.childrenColumnName,Kn=Nt.emptyNode,fr=_t(We,Xn,Nn,bn),cr=pe.useRef({renderWithProps:!1}),ur=Ht(["body","wrapper"],"tbody"),ei=Ht(["body","row"],"tr"),Hr=Ht(["body","cell"],"td"),ti=Ht(["body","cell"],"th"),Zr;We.length?Zr=fr.map(function(Oi,zi){var Ai=Oi.record,Qi=Oi.indent,sa=Oi.index,yi=bn(Ai,zi);return pe.createElement(zt,{key:yi,rowKey:yi,record:Ai,index:zi,renderIndex:sa,rowComponent:ei,cellComponent:Hr,scopeCellComponent:ti,getRowKey:bn,indent:Qi})}):Zr=pe.createElement(ut,{expanded:!0,className:"".concat(Jt,"-placeholder"),prefixCls:Jt,component:ei,cellComponent:Hr,colSpan:Sn.length,isEmpty:!0},Kn);var hi=Ye(Sn);return pe.createElement(It.Provider,{value:cr.current},pe.createElement(ur,{className:"".concat(Jt,"-tbody")},St&&pe.createElement(Bn,{prefixCls:Jt,columnsKey:hi,onColumnResize:En}),Zr))}qt.displayName="Body";var pn=ht(qt),zn=["expandable"],Vn="RC_TABLE_INTERNAL_COL_DEFINE";function Pn(Ne){var We=Ne.expandable,St=(0,ue.Z)(Ne,zn),Nt;return"expandable"in Ne?Nt=(0,bt.Z)((0,bt.Z)({},St),We):Nt=St,Nt.showExpandColumn===!1&&(Nt.expandIconColumnIndex=-1),Nt}var Qn=["columnType"];function gr(Ne){for(var We=Ne.colWidths,St=Ne.columns,Nt=Ne.columCount,Jt=[],Ht=Nt||St.length,En=!1,Sn=Ht-1;Sn>=0;Sn-=1){var bn=We[Sn],Nn=St&&St[Sn],Xn=Nn&&Nn[Vn];if(bn||Xn||En){var Kn=Xn||{},fr=Kn.columnType,cr=(0,ue.Z)(Kn,Qn);Jt.unshift(pe.createElement("col",(0,vt.Z)({key:Sn,style:{width:bn}},cr))),En=!0}}return pe.createElement("colgroup",null,Jt)}var rr=gr,er=oe(77654),pr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Pr(Ne,We){return(0,pe.useMemo)(function(){for(var St=[],Nt=0;Nt<We;Nt+=1){var Jt=Ne[Nt];if(Jt!==void 0)St[Nt]=Jt;else return null}return St},[Ne.join("_"),We])}var $n=pe.forwardRef(function(Ne,We){var St=Ne.className,Nt=Ne.noData,Jt=Ne.columns,Ht=Ne.flattenColumns,En=Ne.colWidths,Sn=Ne.columCount,bn=Ne.stickyOffsets,Nn=Ne.direction,Xn=Ne.fixHeader,Kn=Ne.stickyTopOffset,fr=Ne.stickyBottomOffset,cr=Ne.stickyClassName,ur=Ne.onScroll,ei=Ne.maxContentScroll,Hr=Ne.children,ti=(0,ue.Z)(Ne,pr),Zr=_e(Ce,["prefixCls","scrollbarSize","isSticky"]),hi=Zr.prefixCls,Oi=Zr.scrollbarSize,zi=Zr.isSticky,Ai=zi&&!Xn?0:Oi,Qi=pe.useRef(null),sa=pe.useCallback(function(Zi){(0,Fe.mH)(We,Zi),(0,Fe.mH)(Qi,Zi)},[]);pe.useEffect(function(){var Zi;function ii(ra){var la=ra,Fa=la.currentTarget,Ia=la.deltaX;Ia&&(ur({currentTarget:Fa,scrollLeft:Fa.scrollLeft+Ia}),ra.preventDefault())}return(Zi=Qi.current)===null||Zi===void 0||Zi.addEventListener("wheel",ii),function(){var ra;(ra=Qi.current)===null||ra===void 0||ra.removeEventListener("wheel",ii)}},[]);var yi=pe.useMemo(function(){return Ht.every(function(Zi){return Zi.width})},[Ht]),Di=Ht[Ht.length-1],bi={fixed:Di?Di.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(hi,"-cell-scrollbar")}}},Fr=(0,pe.useMemo)(function(){return Ai?[].concat((0,er.Z)(Jt),[bi]):Jt},[Ai,Jt]),Si=(0,pe.useMemo)(function(){return Ai?[].concat((0,er.Z)(Ht),[bi]):Ht},[Ai,Ht]),Yi=(0,pe.useMemo)(function(){var Zi=bn.right,ii=bn.left;return(0,bt.Z)((0,bt.Z)({},bn),{},{left:Nn==="rtl"?[].concat((0,er.Z)(ii.map(function(ra){return ra+Ai})),[0]):ii,right:Nn==="rtl"?Zi:[].concat((0,er.Z)(Zi.map(function(ra){return ra+Ai})),[0]),isSticky:zi})},[Ai,bn,zi]),ga=Pr(En,Sn);return pe.createElement("div",{style:(0,bt.Z)({overflow:"hidden"},zi?{top:Kn,bottom:fr}:{}),ref:sa,className:tt()(St,(0,Oe.Z)({},cr,!!cr))},pe.createElement("table",{style:{tableLayout:"fixed",visibility:Nt||ga?null:"hidden"}},(!Nt||!ei||yi)&&pe.createElement(rr,{colWidths:ga?[].concat((0,er.Z)(ga),[Ai]):[],columCount:Sn+1,columns:Si}),Hr((0,bt.Z)((0,bt.Z)({},ti),{},{stickyOffsets:Yi,columns:Fr,flattenColumns:Si}))))});$n.displayName="FixedHolder";var Wr=pe.memo($n);function vr(Ne){var We=Ne.cells,St=Ne.stickyOffsets,Nt=Ne.flattenColumns,Jt=Ne.rowComponent,Ht=Ne.cellComponent,En=Ne.tdCellComponent,Sn=Ne.onHeaderRow,bn=Ne.index,Nn=_e(Ce,["prefixCls","direction"]),Xn=Nn.prefixCls,Kn=Nn.direction,fr;Sn&&(fr=Sn(We.map(function(ur){return ur.column}),bn));var cr=Ye(We.map(function(ur){return ur.column}));return pe.createElement(Jt,fr,We.map(function(ur,ei){var Hr=ur.column,ti=nn(ur.colStart,ur.colEnd,Nt,St,Kn,Hr),Zr;return Hr&&Hr.onHeaderCell&&(Zr=ur.column.onHeaderCell(Hr)),pe.createElement(gn,(0,vt.Z)({},ur,{scope:Hr.title?ur.colSpan>1?"colgroup":"col":null,ellipsis:Hr.ellipsis,align:Hr.align,component:Hr.title?Ht:En,prefixCls:Xn,key:cr[ei]},ti,{additionalProps:Zr,rowType:"header"}))}))}vr.displayName="HeaderRow";var qr=vr;function xi(Ne){var We=[];function St(En,Sn){var bn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;We[bn]=We[bn]||[];var Nn=Sn,Xn=En.filter(Boolean).map(function(Kn){var fr={key:Kn.key,className:Kn.className||"",children:Kn.title,column:Kn,colStart:Nn},cr=1,ur=Kn.children;return ur&&ur.length>0&&(cr=St(ur,Nn,bn+1).reduce(function(ei,Hr){return ei+Hr},0),fr.hasSubColumns=!0),"colSpan"in Kn&&(cr=Kn.colSpan),"rowSpan"in Kn&&(fr.rowSpan=Kn.rowSpan),fr.colSpan=cr,fr.colEnd=fr.colStart+cr-1,We[bn].push(fr),Nn+=cr,cr});return Xn}St(Ne,0);for(var Nt=We.length,Jt=function(Sn){We[Sn].forEach(function(bn){!("rowSpan"in bn)&&!bn.hasSubColumns&&(bn.rowSpan=Nt-Sn)})},Ht=0;Ht<Nt;Ht+=1)Jt(Ht);return We}function Ar(Ne){var We=Ne.stickyOffsets,St=Ne.columns,Nt=Ne.flattenColumns,Jt=Ne.onHeaderRow,Ht=_e(Ce,["prefixCls","getComponent"]),En=Ht.prefixCls,Sn=Ht.getComponent,bn=pe.useMemo(function(){return xi(St)},[St]),Nn=Sn(["header","wrapper"],"thead"),Xn=Sn(["header","row"],"tr"),Kn=Sn(["header","cell"],"th"),fr=Sn(["header","cell"],"td");return pe.createElement(Nn,{className:"".concat(En,"-thead")},bn.map(function(cr,ur){var ei=pe.createElement(qr,{key:ur,flattenColumns:Nt,cells:cr,stickyOffsets:We,rowComponent:Xn,cellComponent:Kn,tdCellComponent:fr,onHeaderRow:Jt,index:ur});return ei}))}var dr=ht(Ar),Mr=oe(11592);function tr(Ne){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof We=="number"?We:We.endsWith("%")?Ne*parseFloat(We)/100:null}function Gn(Ne,We){return pe.useMemo(function(){if(We&&We>0){var St=0,Nt=0;Ne.forEach(function(Nn){var Xn=tr(We,Nn.width);Xn?St+=Xn:Nt+=1});var Jt=We-St,Ht=Nt,En=Jt/Nt,Sn=0,bn=Ne.map(function(Nn){var Xn=(0,bt.Z)({},Nn),Kn=tr(We,Xn.width);if(Kn)Xn.width=Kn;else{var fr=Math.floor(En);Xn.width=Ht===1?Jt:fr,Jt-=fr,Ht-=1}return Sn+=Xn.width,Xn});return[bn,Sn]}return[Ne,We]},[Ne,We])}var Xr=["children"],Rt=["fixed"];function ze(Ne){return(0,Mr.Z)(Ne).filter(function(We){return pe.isValidElement(We)}).map(function(We){var St=We.key,Nt=We.props,Jt=Nt.children,Ht=(0,ue.Z)(Nt,Xr),En=(0,bt.Z)({key:St},Ht);return Jt&&(En.children=ze(Jt)),En})}function $e(Ne){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ne.filter(function(St){return St&&(0,Qe.Z)(St)==="object"}).reduce(function(St,Nt,Jt){var Ht=Nt.fixed,En=Ht===!0?"left":Ht,Sn="".concat(We,"-").concat(Jt),bn=Nt.children;return bn&&bn.length>0?[].concat((0,er.Z)(St),(0,er.Z)($e(bn,Sn).map(function(Nn){return(0,bt.Z)({fixed:En},Nn)}))):[].concat((0,er.Z)(St),[(0,bt.Z)((0,bt.Z)({key:Sn},Nt),{},{fixed:En})])},[])}function Xe(Ne){for(var We=!0,St=0;St<Ne.length;St+=1){var Nt=Ne[St];if(We&&Nt.fixed!=="left")We=!1;else if(!We&&Nt.fixed==="left"){warning(!1,"Index ".concat(St-1," of `columns` missing `fixed='left'` prop."));break}}for(var Jt=!0,Ht=Ne.length-1;Ht>=0;Ht-=1){var En=Ne[Ht];if(Jt&&En.fixed!=="right")Jt=!1;else if(!Jt&&En.fixed==="right"){warning(!1,"Index ".concat(Ht+1," of `columns` missing `fixed='right'` prop."));break}}}function Ze(Ne){return Ne.map(function(We){var St=We.fixed,Nt=(0,ue.Z)(We,Rt),Jt=St;return St==="left"?Jt="right":St==="right"&&(Jt="left"),(0,bt.Z)({fixed:Jt},Nt)})}function Et(Ne,We){var St=Ne.prefixCls,Nt=Ne.columns,Jt=Ne.children,Ht=Ne.expandable,En=Ne.expandedKeys,Sn=Ne.columnTitle,bn=Ne.getRowKey,Nn=Ne.onTriggerExpand,Xn=Ne.expandIcon,Kn=Ne.rowExpandable,fr=Ne.expandIconColumnIndex,cr=Ne.direction,ur=Ne.expandRowByClick,ei=Ne.columnWidth,Hr=Ne.fixed,ti=Ne.scrollWidth,Zr=pe.useMemo(function(){return Nt||ze(Jt)},[Nt,Jt]),hi=pe.useMemo(function(){if(Ht){var Di,bi=Zr.slice();if(!bi.includes(ae)){var Fr=fr||0;Fr>=0&&bi.splice(Fr,0,ae)}var Si=bi.indexOf(ae);bi=bi.filter(function(ii,ra){return ii!==ae||ra===Si});var Yi=Zr[Si],ga;(Hr==="left"||Hr)&&!fr?ga="left":(Hr==="right"||Hr)&&fr===Zr.length?ga="right":ga=Yi?Yi.fixed:null;var Zi=(Di={},(0,Oe.Z)(Di,Vn,{className:"".concat(St,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Oe.Z)(Di,"title",Sn),(0,Oe.Z)(Di,"fixed",ga),(0,Oe.Z)(Di,"className","".concat(St,"-row-expand-icon-cell")),(0,Oe.Z)(Di,"width",ei),(0,Oe.Z)(Di,"render",function(ra,la,Fa){var Ia=bn(la,Fa),lo=En.has(Ia),eo=Kn?Kn(la):!0,oa=Xn({prefixCls:St,expanded:lo,expandable:eo,record:la,onExpand:Nn});return ur?pe.createElement("span",{onClick:function(Ma){return Ma.stopPropagation()}},oa):oa}),Di);return bi.map(function(ii){return ii===ae?Zi:ii})}return Zr.filter(function(ii){return ii!==ae})},[Ht,Zr,bn,En,Xn,cr]),Oi=pe.useMemo(function(){var Di=hi;return We&&(Di=We(Di)),Di.length||(Di=[{render:function(){return null}}]),Di},[We,hi,cr]),zi=pe.useMemo(function(){return cr==="rtl"?Ze($e(Oi)):$e(Oi)},[Oi,cr,ti]),Ai=Gn(zi,ti),Qi=(0,Le.Z)(Ai,2),sa=Qi[0],yi=Qi[1];return[Oi,sa,yi]}var Tt=Et;function hn(Ne){var We,St=Ne.prefixCls,Nt=Ne.record,Jt=Ne.onExpand,Ht=Ne.expanded,En=Ne.expandable,Sn="".concat(St,"-row-expand-icon");if(!En)return pe.createElement("span",{className:tt()(Sn,"".concat(St,"-row-spaced"))});var bn=function(Xn){Jt(Nt,Xn),Xn.stopPropagation()};return pe.createElement("span",{className:tt()(Sn,(We={},(0,Oe.Z)(We,"".concat(St,"-row-expanded"),Ht),(0,Oe.Z)(We,"".concat(St,"-row-collapsed"),!Ht),We)),onClick:bn})}function ln(Ne,We,St){var Nt=[];function Jt(Ht){(Ht||[]).forEach(function(En,Sn){Nt.push(We(En,Sn)),Jt(En[St])})}return Jt(Ne),Nt}function wn(Ne,We,St){var Nt=Pn(Ne),Jt=Nt.expandIcon,Ht=Nt.expandedRowKeys,En=Nt.defaultExpandedRowKeys,Sn=Nt.defaultExpandAllRows,bn=Nt.expandedRowRender,Nn=Nt.onExpand,Xn=Nt.onExpandedRowsChange,Kn=Nt.childrenColumnName,fr=Jt||hn,cr=Kn||"children",ur=pe.useMemo(function(){return bn?"row":Ne.expandable&&Ne.internalHooks===Ae&&Ne.expandable.__PARENT_RENDER_ICON__||We.some(function(zi){return zi&&(0,Qe.Z)(zi)==="object"&&zi[cr]})?"nest":!1},[!!bn,We]),ei=pe.useState(function(){return En||(Sn?ln(We,St,cr):[])}),Hr=(0,Le.Z)(ei,2),ti=Hr[0],Zr=Hr[1],hi=pe.useMemo(function(){return new Set(Ht||ti||[])},[Ht,ti]),Oi=pe.useCallback(function(zi){var Ai=St(zi,We.indexOf(zi)),Qi,sa=hi.has(Ai);sa?(hi.delete(Ai),Qi=(0,er.Z)(hi)):Qi=[].concat((0,er.Z)(hi),[Ai]),Zr(Qi),Nn&&Nn(!sa,zi),Xn&&Xn(Qi)},[St,hi,We,Nn,Xn]);return[Nt,ur,hi,fr,cr,Oi]}function Tn(Ne,We,St,Nt){var Jt=Ne.map(function(Ht,En){return nn(En,En,Ne,We,St,Nt==null?void 0:Nt[En])});return(0,Ut.Z)(function(){return Jt},[Jt],function(Ht,En){return!(0,Ee.Z)(Ht,En)})}function Fn(Ne){var We=(0,pe.useRef)(Ne),St=(0,pe.useState)({}),Nt=(0,Le.Z)(St,2),Jt=Nt[1],Ht=(0,pe.useRef)(null),En=(0,pe.useRef)([]);function Sn(bn){En.current.push(bn);var Nn=Promise.resolve();Ht.current=Nn,Nn.then(function(){if(Ht.current===Nn){var Xn=En.current,Kn=We.current;En.current=[],Xn.forEach(function(fr){We.current=fr(We.current)}),Ht.current=null,Kn!==We.current&&Jt({})}})}return(0,pe.useEffect)(function(){return function(){Ht.current=null}},[]),[We.current,Sn]}function jn(Ne){var We=(0,pe.useRef)(Ne||null),St=(0,pe.useRef)();function Nt(){window.clearTimeout(St.current)}function Jt(En){We.current=En,Nt(),St.current=window.setTimeout(function(){We.current=null,St.current=void 0},100)}function Ht(){return We.current}return(0,pe.useEffect)(function(){return Nt},[]),[Jt,Ht]}function Qt(){var Ne=pe.useState(-1),We=(0,Le.Z)(Ne,2),St=We[0],Nt=We[1],Jt=pe.useState(-1),Ht=(0,Le.Z)(Jt,2),En=Ht[0],Sn=Ht[1],bn=pe.useCallback(function(Nn,Xn){Nt(Nn),Sn(Xn)},[]);return[St,En,bn]}var Dn=oe(47273),Dt=(0,Dn.Z)()?window:null;function Zt(Ne,We){var St=(0,Qe.Z)(Ne)==="object"?Ne:{},Nt=St.offsetHeader,Jt=Nt===void 0?0:Nt,Ht=St.offsetSummary,En=Ht===void 0?0:Ht,Sn=St.offsetScroll,bn=Sn===void 0?0:Sn,Nn=St.getContainer,Xn=Nn===void 0?function(){return Dt}:Nn,Kn=Xn()||Dt;return pe.useMemo(function(){var fr=!!Ne;return{isSticky:fr,stickyClassName:fr?"".concat(We,"-sticky-holder"):"",offsetHeader:Jt,offsetSummary:En,offsetScroll:bn,container:Kn}},[bn,Jt,En,We,Kn])}function on(Ne,We,St){var Nt=(0,pe.useMemo)(function(){for(var Jt=[],Ht=[],En=0,Sn=0,bn=0;bn<We;bn+=1)if(St==="rtl"){Ht[bn]=Sn,Sn+=Ne[bn]||0;var Nn=We-bn-1;Jt[Nn]=En,En+=Ne[Nn]||0}else{Jt[bn]=En,En+=Ne[bn]||0;var Xn=We-bn-1;Ht[Xn]=Sn,Sn+=Ne[Xn]||0}return{left:Jt,right:Ht}},[Ne,We,St]);return Nt}var cn=on;function In(Ne){var We=Ne.className,St=Ne.children;return pe.createElement("div",{className:We},St)}var en=In,Ln=oe(8224),it=oe(55468),Yt=function(We,St){var Nt,Jt,Ht=We.scrollBodyRef,En=We.onScroll,Sn=We.offsetScroll,bn=We.container,Nn=_e(Ce,"prefixCls"),Xn=((Nt=Ht.current)===null||Nt===void 0?void 0:Nt.scrollWidth)||0,Kn=((Jt=Ht.current)===null||Jt===void 0?void 0:Jt.clientWidth)||0,fr=Xn&&Kn*(Kn/Xn),cr=pe.useRef(),ur=Fn({scrollLeft:0,isHiddenScrollBar:!1}),ei=(0,Le.Z)(ur,2),Hr=ei[0],ti=ei[1],Zr=pe.useRef({delta:0,x:0}),hi=pe.useState(!1),Oi=(0,Le.Z)(hi,2),zi=Oi[0],Ai=Oi[1],Qi=function(){Ai(!1)},sa=function(Si){Si.persist(),Zr.current.delta=Si.pageX-Hr.scrollLeft,Zr.current.x=0,Ai(!0),Si.preventDefault()},yi=function(Si){var Yi,ga=Si||((Yi=window)===null||Yi===void 0?void 0:Yi.event),Zi=ga.buttons;if(!zi||Zi===0){zi&&Ai(!1);return}var ii=Zr.current.x+Si.pageX-Zr.current.x-Zr.current.delta;ii<=0&&(ii=0),ii+fr>=Kn&&(ii=Kn-fr),En({scrollLeft:ii/Kn*(Xn+2)}),Zr.current.x=Si.pageX},Di=function(){if(Ht.current){var Si=(0,it.os)(Ht.current).top,Yi=Si+Ht.current.offsetHeight,ga=bn===window?document.documentElement.scrollTop+window.innerHeight:(0,it.os)(bn).top+bn.clientHeight;Yi-(0,Ct.Z)()<=ga||Si>=ga-Sn?ti(function(Zi){return(0,bt.Z)((0,bt.Z)({},Zi),{},{isHiddenScrollBar:!0})}):ti(function(Zi){return(0,bt.Z)((0,bt.Z)({},Zi),{},{isHiddenScrollBar:!1})})}},bi=function(Si){ti(function(Yi){return(0,bt.Z)((0,bt.Z)({},Yi),{},{scrollLeft:Si/Xn*Kn||0})})};return pe.useImperativeHandle(St,function(){return{setScrollLeft:bi}}),pe.useEffect(function(){var Fr=(0,Ln.Z)(document.body,"mouseup",Qi,!1),Si=(0,Ln.Z)(document.body,"mousemove",yi,!1);return Di(),function(){Fr.remove(),Si.remove()}},[fr,zi]),pe.useEffect(function(){var Fr=(0,Ln.Z)(bn,"scroll",Di,!1),Si=(0,Ln.Z)(window,"resize",Di,!1);return function(){Fr.remove(),Si.remove()}},[bn]),pe.useEffect(function(){Hr.isHiddenScrollBar||ti(function(Fr){var Si=Ht.current;return Si?(0,bt.Z)((0,bt.Z)({},Fr),{},{scrollLeft:Si.scrollLeft/Si.scrollWidth*Si.clientWidth}):Fr})},[Hr.isHiddenScrollBar]),Xn<=Kn||!fr||Hr.isHiddenScrollBar?null:pe.createElement("div",{style:{height:(0,Ct.Z)(),width:Kn,bottom:Sn},className:"".concat(Nn,"-sticky-scroll")},pe.createElement("div",{onMouseDown:sa,ref:cr,className:tt()("".concat(Nn,"-sticky-scroll-bar"),(0,Oe.Z)({},"".concat(Nn,"-sticky-scroll-bar-active"),zi)),style:{width:"".concat(fr,"px"),transform:"translate3d(".concat(Hr.scrollLeft,"px, 0, 0)")}}))},$t=pe.forwardRef(Yt);function vn(Ne){return null}var dn=vn;function xn(Ne){return null}var yn=xn,_n="rc-table",Un=[],nr={};function mr(){return"No Data"}function Tr(Ne){var We,St=(0,bt.Z)({rowKey:"key",prefixCls:_n,emptyText:mr},Ne),Nt=St.prefixCls,Jt=St.className,Ht=St.rowClassName,En=St.style,Sn=St.data,bn=St.rowKey,Nn=St.scroll,Xn=St.tableLayout,Kn=St.direction,fr=St.title,cr=St.footer,ur=St.summary,ei=St.caption,Hr=St.id,ti=St.showHeader,Zr=St.components,hi=St.emptyText,Oi=St.onRow,zi=St.onHeaderRow,Ai=St.internalHooks,Qi=St.transformColumns,sa=St.internalRefs,yi=St.tailor,Di=St.sticky,bi=Sn||Un,Fr=!!bi.length,Si=Ai===Ae,Yi=pe.useCallback(function(Oa,Za){return(0,At.Z)(Zr,Oa)||Za},[Zr]),ga=pe.useMemo(function(){return typeof bn=="function"?bn:function(Oa){var Za=Oa&&Oa[bn];return Za}},[bn]),Zi=Yi(["body"]),ii=Qt(),ra=(0,Le.Z)(ii,3),la=ra[0],Fa=ra[1],Ia=ra[2],lo=wn(St,bi,ga),eo=(0,Le.Z)(lo,6),oa=eo[0],Co=eo[1],Ma=eo[2],ao=eo[3],to=eo[4],Po=eo[5],ji=Nn==null?void 0:Nn.x,_i=pe.useState(0),Ki=(0,Le.Z)(_i,2),Pi=Ki[0],Pa=Ki[1],Ni=Tt((0,bt.Z)((0,bt.Z)((0,bt.Z)({},St),oa),{},{expandable:!!oa.expandedRowRender,columnTitle:oa.columnTitle,expandedKeys:Ma,getRowKey:ga,onTriggerExpand:Po,expandIcon:ao,expandIconColumnIndex:oa.expandIconColumnIndex,direction:Kn,scrollWidth:Si&&yi&&typeof ji=="number"?ji:null}),Si?Qi:null),ia=(0,Le.Z)(Ni,3),ka=ia[0],Ea=ia[1],es=ia[2],To=es!=null?es:ji,js=pe.useMemo(function(){return{columns:ka,flattenColumns:Ea}},[ka,Ea]),Eo=pe.useRef(),Js=pe.useRef(),Ao=pe.useRef(),Vo=pe.useRef(),xl=pe.useRef(),Da=pe.useState(!1),Or=(0,Le.Z)(Da,2),_a=Or[0],Lo=Or[1],Oo=pe.useState(!1),$i=(0,Le.Z)(Oo,2),Va=$i[0],Uo=$i[1],zs=Fn(new Map),fl=(0,Le.Z)(zs,2),ws=fl[0],ts=fl[1],il=Ye(Ea),ns=il.map(function(Oa){return ws.get(Oa)}),Ss=pe.useMemo(function(){return ns},[ns.join("_")]),cs=cn(Ss,Ea.length,Kn),co=Nn&&Pt(Nn.y),uo=Nn&&Pt(To)||!!oa.fixed,ms=uo&&Ea.some(function(Oa){var Za=Oa.fixed;return Za}),wl=pe.useRef(),Vs=Zt(Di,Nt),hl=Vs.isSticky,Rl=Vs.offsetHeader,ru=Vs.offsetSummary,Ta=Vs.offsetScroll,Xa=Vs.stickyClassName,zo=Vs.container,Qa=pe.useMemo(function(){return ur==null?void 0:ur(bi)},[ur,bi]),_o=(co||hl)&&pe.isValidElement(Qa)&&Qa.type===se&&Qa.props.fixed,rs,As,Sl;co&&(As={overflowY:"scroll",maxHeight:Nn.y}),uo&&(rs={overflowX:"auto"},co||(As={overflowY:"hidden"}),Sl={width:To===!0?"auto":To,minWidth:"100%"});var Mu=pe.useCallback(function(Oa,Za){(0,rt.Z)(Eo.current)&&ts(function(Es){if(Es.get(Oa)!==Za){var kl=new Map(Es);return kl.set(Oa,Za),kl}return Es})},[]),Yl=jn(null),Cl=(0,Le.Z)(Yl,2),Ba=Cl[0],ho=Cl[1];function pl(Oa,Za){Za&&(typeof Za=="function"?Za(Oa):Za.scrollLeft!==Oa&&(Za.scrollLeft=Oa,Za.scrollLeft!==Oa&&setTimeout(function(){Za.scrollLeft=Oa},0)))}var sc=(0,ct.Z)(function(Oa){var Za=Oa.currentTarget,Es=Oa.scrollLeft,kl=Kn==="rtl",Al=typeof Es=="number"?Es:Za.scrollLeft,Bu=Za||nr;if(!ho()||ho()===Bu){var Ro;Ba(Bu),pl(Al,Js.current),pl(Al,Ao.current),pl(Al,xl.current),pl(Al,(Ro=wl.current)===null||Ro===void 0?void 0:Ro.setScrollLeft)}var ol=Za||Js.current;if(ol){var Du=ol.scrollWidth,Ql=ol.clientWidth;if(Du===Ql){Lo(!1),Uo(!1);return}kl?(Lo(-Al<Du-Ql),Uo(-Al>0)):(Lo(Al>0),Uo(Al<Du-Ql))}}),Us=function(){uo&&Ao.current?sc({currentTarget:Ao.current}):(Lo(!1),Uo(!1))},$u=function(Za){var Es=Za.width;Es!==Pi&&(Us(),Pa(Eo.current?Eo.current.offsetWidth:Es))},No=pe.useRef(!1);pe.useEffect(function(){No.current&&Us()},[uo,Sn,ka.length]),pe.useEffect(function(){No.current=!0},[]);var ku=pe.useState(0),ed=(0,Le.Z)(ku,2),iu=ed[0],au=ed[1],xc=pe.useState(!0),lc=(0,Le.Z)(xc,2),Vr=lc[0],Au=lc[1];pe.useEffect(function(){(!yi||!Si)&&(Ao.current instanceof Element?au((0,Ct.o)(Ao.current).width):au((0,Ct.o)(Vo.current).width)),Au((0,Ve.G)("position","sticky"))},[]),pe.useEffect(function(){Si&&sa&&(sa.body.current=Ao.current)});var ou=pe.useCallback(function(Oa){return pe.createElement(pe.Fragment,null,pe.createElement(dr,Oa),_o==="top"&&pe.createElement(gt,Oa,Qa))},[_o,Qa]),su=pe.useCallback(function(Oa){return pe.createElement(gt,Oa,Qa)},[Qa]),al=Yi(["table"],"table"),Xl=pe.useMemo(function(){return Xn||(ms?To==="max-content"?"auto":"fixed":co||hl||Ea.some(function(Oa){var Za=Oa.ellipsis;return Za})?"fixed":"auto")},[co,ms,Ea,Xn,hl]),wc,cc={colWidths:Ss,columCount:Ea.length,stickyOffsets:cs,onHeaderRow:zi,fixHeader:co,scroll:Nn},oo=pe.useMemo(function(){return Fr?null:typeof hi=="function"?hi():hi},[Fr,hi]),td=pe.createElement(pn,{data:bi,measureColumnWidth:co||uo||hl}),lu=pe.createElement(rr,{colWidths:Ea.map(function(Oa){var Za=Oa.width;return Za}),columns:Ea}),El=ei!=null?pe.createElement("caption",{className:"".concat(Nt,"-caption")},ei):void 0,Wc=(0,rn.Z)(St,{data:!0}),Fl=(0,rn.Z)(St,{aria:!0});if(co||hl){var zl;typeof Zi=="function"?(zl=Zi(bi,{scrollbarSize:iu,ref:Ao,onScroll:sc}),cc.colWidths=Ea.map(function(Oa,Za){var Es=Oa.width,kl=Za===Ea.length-1?Es-iu:Es;return typeof kl=="number"&&!Number.isNaN(kl)?kl:0})):zl=pe.createElement("div",{style:(0,bt.Z)((0,bt.Z)({},rs),As),onScroll:sc,ref:Ao,className:tt()("".concat(Nt,"-body"))},pe.createElement(al,(0,vt.Z)({style:(0,bt.Z)((0,bt.Z)({},Sl),{},{tableLayout:Xl})},Fl),El,lu,td,!_o&&Qa&&pe.createElement(gt,{stickyOffsets:cs,flattenColumns:Ea,columns:ka},Qa)));var Cs=(0,bt.Z)((0,bt.Z)((0,bt.Z)({noData:!bi.length,maxContentScroll:uo&&To==="max-content"},cc),js),{},{direction:Kn,stickyClassName:Xa,onScroll:sc});wc=pe.createElement(pe.Fragment,null,ti!==!1&&pe.createElement(Wr,(0,vt.Z)({},Cs,{stickyTopOffset:Rl,className:"".concat(Nt,"-header"),ref:Js}),ou),zl,_o&&_o!=="top"&&pe.createElement(Wr,(0,vt.Z)({},Cs,{stickyBottomOffset:ru,className:"".concat(Nt,"-summary"),ref:xl}),su),hl&&pe.createElement($t,{ref:wl,offsetScroll:Ta,scrollBodyRef:Ao,onScroll:sc,container:zo}))}else wc=pe.createElement("div",{style:(0,bt.Z)((0,bt.Z)({},rs),As),className:tt()("".concat(Nt,"-content")),onScroll:sc,ref:Ao},pe.createElement(al,(0,vt.Z)({style:(0,bt.Z)((0,bt.Z)({},Sl),{},{tableLayout:Xl})},Fl),El,lu,ti!==!1&&pe.createElement(dr,(0,vt.Z)({},cc,js)),td,Qa&&pe.createElement(gt,{stickyOffsets:cs,flattenColumns:Ea,columns:ka},Qa)));var Gs=pe.createElement("div",(0,vt.Z)({className:tt()(Nt,Jt,(We={},(0,Oe.Z)(We,"".concat(Nt,"-rtl"),Kn==="rtl"),(0,Oe.Z)(We,"".concat(Nt,"-ping-left"),_a),(0,Oe.Z)(We,"".concat(Nt,"-ping-right"),Va),(0,Oe.Z)(We,"".concat(Nt,"-layout-fixed"),Xn==="fixed"),(0,Oe.Z)(We,"".concat(Nt,"-fixed-header"),co),(0,Oe.Z)(We,"".concat(Nt,"-fixed-column"),ms),(0,Oe.Z)(We,"".concat(Nt,"-scroll-horizontal"),uo),(0,Oe.Z)(We,"".concat(Nt,"-has-fix-left"),Ea[0]&&Ea[0].fixed),(0,Oe.Z)(We,"".concat(Nt,"-has-fix-right"),Ea[Ea.length-1]&&Ea[Ea.length-1].fixed==="right"),We)),style:En,id:Hr,ref:Eo},Wc),fr&&pe.createElement(en,{className:"".concat(Nt,"-title")},fr(bi)),pe.createElement("div",{ref:Vo,className:"".concat(Nt,"-container")},wc),cr&&pe.createElement(en,{className:"".concat(Nt,"-footer")},cr(bi)));uo&&(Gs=pe.createElement(yt.Z,{onResize:$u},Gs));var us=Tn(Ea,cs,Kn,ka),Ml=pe.useMemo(function(){return{scrollX:To,prefixCls:Nt,getComponent:Yi,scrollbarSize:iu,direction:Kn,fixedInfoList:us,isSticky:hl,supportSticky:Vr,componentWidth:Pi,fixHeader:co,fixColumn:ms,horizonScroll:uo,tableLayout:Xl,rowClassName:Ht,expandedRowClassName:oa.expandedRowClassName,expandIcon:ao,expandableType:Co,expandRowByClick:oa.expandRowByClick,expandedRowRender:oa.expandedRowRender,onTriggerExpand:Po,expandIconColumnIndex:oa.expandIconColumnIndex,indentSize:oa.indentSize,allColumnsFixedLeft:Ea.every(function(Oa){return Oa.fixed==="left"}),emptyNode:oo,columns:ka,flattenColumns:Ea,onColumnResize:Mu,hoverStartRow:la,hoverEndRow:Fa,onHover:Ia,rowExpandable:oa.rowExpandable,onRow:Oi,getRowKey:ga,expandedKeys:Ma,childrenColumnName:to}},[To,Nt,Yi,iu,Kn,us,hl,Vr,Pi,co,ms,uo,Xl,Ht,oa.expandedRowClassName,ao,Co,oa.expandRowByClick,oa.expandedRowRender,Po,oa.expandIconColumnIndex,oa.indentSize,oo,ka,Ea,Mu,la,Fa,Ia,oa.rowExpandable,Oi,ga,Ma,to]);return pe.createElement(Ce.Provider,{value:Ml},Gs)}function jr(Ne){return Bt(Tr,Ne)}var br=jr();br.EXPAND_COLUMN=ae,br.INTERNAL_HOOKS=Ae,br.Column=dn,br.ColumnGroup=yn,br.Summary=Ie;var ir=br,Ur=oe(48911),Nr=Me(null),$r=Me(null);function Cr(Ne,We,St){var Nt=We||1;return St[Ne+Nt]-(St[Ne]||0)}function Lr(Ne){var We=Ne.rowInfo,St=Ne.column,Nt=Ne.colIndex,Jt=Ne.indent,Ht=Ne.index,En=Ne.renderIndex,Sn=Ne.record,bn=Ne.style,Nn=Ne.className,Xn=Ne.inverse,Kn=Ne.getHeight,fr=St.render,cr=St.dataIndex,ur=St.className,ei=St.width,Hr=_e($r,["columnsOffset"]),ti=Hr.columnsOffset,Zr=dt(We,St,Nt,Jt,Ht),hi=Zr.key,Oi=Zr.fixedInfo,zi=Zr.appendCellNode,Ai=Zr.additionalCellProps,Qi=Ai.style,sa=Ai.colSpan,yi=sa===void 0?1:sa,Di=Ai.rowSpan,bi=Di===void 0?1:Di,Fr=Nt-1,Si=Cr(Fr,yi,ti),Yi=yi>1?ei-Si:0,ga=(0,bt.Z)((0,bt.Z)((0,bt.Z)({},Qi),bn),{},{flex:"0 0 ".concat(Si,"px"),width:"".concat(Si,"px"),marginRight:Yi,pointerEvents:"auto"}),Zi=pe.useMemo(function(){return Xn?bi<=1:yi===0||bi===0||bi>1},[bi,yi,Xn]);Zi?ga.visibility="hidden":Xn&&(ga.height=Kn==null?void 0:Kn(bi));var ii=Zi?function(){return null}:fr,ra={};return(bi===0||yi===0)&&(ra.rowSpan=1,ra.colSpan=1),pe.createElement(gn,(0,vt.Z)({className:tt()(ur,Nn),ellipsis:St.ellipsis,align:St.align,scope:St.rowScope,component:"div",prefixCls:We.prefixCls,key:hi,record:Sn,index:Ht,renderIndex:En,dataIndex:cr,render:ii,shouldCellUpdate:St.shouldCellUpdate},Oi,{appendNode:zi,additionalProps:(0,bt.Z)((0,bt.Z)({},Ai),{},{style:ga},ra)}))}var ri=Lr,Kr=["data","index","className","rowKey","style","extra","getHeight"],Ei=pe.forwardRef(function(Ne,We){var St=Ne.data,Nt=Ne.index,Jt=Ne.className,Ht=Ne.rowKey,En=Ne.style,Sn=Ne.extra,bn=Ne.getHeight,Nn=(0,ue.Z)(Ne,Kr),Xn=St.record,Kn=St.indent,fr=St.index,cr=_e(Ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),ur=cr.scrollX,ei=cr.flattenColumns,Hr=cr.prefixCls,ti=cr.fixColumn,Zr=cr.componentWidth,hi=De(Xn,Ht,Nt,Kn),Oi=hi.rowSupportExpand,zi=hi.expanded,Ai=hi.rowProps,Qi=hi.expandedRowRender,sa=hi.expandedRowClassName,yi;if(Oi&&zi){var Di=Qi(Xn,Nt,Kn+1,zi),bi=sa==null?void 0:sa(Xn,Nt,Kn),Fr={};ti&&(Fr={style:(0,Oe.Z)({},"--virtual-width","".concat(Zr,"px"))});var Si="".concat(Hr,"-expanded-row-cell");yi=pe.createElement("div",{className:tt()("".concat(Hr,"-expanded-row"),"".concat(Hr,"-expanded-row-level-").concat(Kn+1),bi)},pe.createElement(gn,{component:"div",prefixCls:Hr,className:tt()(Si,(0,Oe.Z)({},"".concat(Si,"-fixed"),ti)),additionalProps:Fr},Di))}var Yi=(0,bt.Z)((0,bt.Z)({},En),{},{width:ur});Sn&&(Yi.position="absolute",Yi.pointerEvents="none");var ga=pe.createElement("div",(0,vt.Z)({},Ai,Nn,{ref:Oi?null:We,className:tt()(Jt,"".concat(Hr,"-row"),Ai==null?void 0:Ai.className,(0,Oe.Z)({},"".concat(Hr,"-row-extra"),Sn)),style:(0,bt.Z)((0,bt.Z)({},Yi),Ai==null?void 0:Ai.style)}),ei.map(function(Zi,ii){return pe.createElement(ri,{key:ii,rowInfo:hi,column:Zi,colIndex:ii,indent:Kn,index:Nt,renderIndex:fr,record:Xn,inverse:Sn,getHeight:bn})}));return Oi?pe.createElement("div",{ref:We},ga,yi):ga}),Ri=ht(Ei),zr=Ri,qn=pe.forwardRef(function(Ne,We){var St=Ne.data,Nt=Ne.onScroll,Jt=_e(Ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Ht=Jt.flattenColumns,En=Jt.onColumnResize,Sn=Jt.getRowKey,bn=Jt.expandedKeys,Nn=Jt.prefixCls,Xn=Jt.childrenColumnName,Kn=Jt.emptyNode,fr=Jt.scrollX,cr=_e(Nr),ur=cr.scrollY,ei=cr.listItemHeight,Hr=pe.useRef(),ti=_t(St,Xn,bn,Sn),Zr=pe.useMemo(function(){var yi=0;return Ht.map(function(Di){var bi=Di.width,Fr=Di.key;return yi+=bi,[Fr,bi,yi]})},[Ht]),hi=pe.useMemo(function(){return Zr.map(function(yi){return yi[2]})},[Zr]);pe.useEffect(function(){Zr.forEach(function(yi){var Di=(0,Le.Z)(yi,2),bi=Di[0],Fr=Di[1];En(bi,Fr)})},[Zr]),pe.useImperativeHandle(We,function(){var yi={};return Object.defineProperty(yi,"scrollLeft",{get:function(){var bi;return((bi=Hr.current)===null||bi===void 0?void 0:bi.getScrollInfo().x)||0},set:function(bi){var Fr;(Fr=Hr.current)===null||Fr===void 0||Fr.scrollTo({left:bi})}}),yi});var Oi=function(Di,bi){var Fr,Si=(Fr=ti[bi])===null||Fr===void 0?void 0:Fr.record,Yi=Di.onCell;if(Yi){var ga,Zi=Yi(Si,bi);return(ga=Zi==null?void 0:Zi.rowSpan)!==null&&ga!==void 0?ga:1}return 1},zi=function(Di){var bi=Di.start,Fr=Di.end,Si=Di.getSize,Yi=Di.offsetY;if(Fr<0)return null;for(var ga=Ht.filter(function(ji){return Oi(ji,bi)===0}),Zi=bi,ii=function(_i){if(ga=ga.filter(function(Ki){return Oi(Ki,_i)===0}),!ga.length)return Zi=_i,"break"},ra=bi;ra>=0;ra-=1){var la=ii(ra);if(la==="break")break}for(var Fa=Ht.filter(function(ji){return Oi(ji,Fr)!==1}),Ia=Fr,lo=function(_i){if(Fa=Fa.filter(function(Ki){return Oi(Ki,_i)!==1}),!Fa.length)return Ia=Math.max(_i-1,Fr),"break"},eo=Fr;eo<ti.length;eo+=1){var oa=lo(eo);if(oa==="break")break}for(var Co=[],Ma=function(_i){var Ki=ti[_i];if(!Ki)return"continue";Ht.some(function(Pi){return Oi(Pi,_i)>1})&&Co.push(_i)},ao=Zi;ao<=Ia;ao+=1)var to=Ma(ao);var Po=Co.map(function(ji){var _i=ti[ji],Ki=Sn(_i.record,ji),Pi=function(ia){var ka=ji+ia-1,Ea=Sn(ti[ka].record,ka),es=Si(Ki,Ea);return es.bottom-es.top},Pa=Si(Ki);return pe.createElement(zr,{key:ji,data:_i,rowKey:Ki,index:ji,style:{top:-Yi+Pa.top},extra:!0,getHeight:Pi})});return Po},Ai=pe.useMemo(function(){return{columnsOffset:hi}},[hi]),Qi="".concat(Nn,"-tbody"),sa;return ti.length?sa=pe.createElement(Ur.Z,{fullHeight:!1,ref:Hr,className:tt()(Qi,"".concat(Qi,"-virtual")),height:ur,itemHeight:ei||24,data:ti,itemKey:function(Di){return Sn(Di.record)},scrollWidth:fr,onVirtualScroll:function(Di){var bi=Di.x;Nt({scrollLeft:bi})},extraRender:zi},function(yi,Di,bi){var Fr=Sn(yi.record,Di);return pe.createElement(zr,(0,vt.Z)({data:yi,rowKey:Fr,index:Di},bi))}):sa=pe.createElement("div",{className:tt()("".concat(Nn,"-placeholder"))},pe.createElement(gn,{component:"div",prefixCls:Nn},Kn)),pe.createElement($r.Provider,{value:Ai},sa)}),Jn=ht(qn),Jr=Jn,Rr=function(We,St){var Nt=St.ref,Jt=St.onScroll;return pe.createElement(Jr,{ref:Nt,data:We,onScroll:Jt})},li=100;function pi(Ne){var We=Ne.columns,St=Ne.scroll,Nt=Ne.prefixCls,Jt=Nt===void 0?_n:Nt,Ht=Ne.className,En=Ne.listItemHeight,Sn=St||{},bn=Sn.x,Nn=Sn.y;typeof bn!="number"&&(bn=((We||[]).length+1)*li),typeof Nn!="number"&&(Nn=500);var Xn=pe.useMemo(function(){return{scrollY:Nn,listItemHeight:En}},[Nn,En]);return pe.createElement(Nr.Provider,{value:Xn},pe.createElement(ir,(0,vt.Z)({},Ne,{className:tt()(Ht,"".concat(Jt,"-virtual")),scroll:(0,bt.Z)((0,bt.Z)({},St),{},{x:bn}),components:{body:Rr},columns:We,internalHooks:Ae,tailor:!0})))}function fi(Ne){return Bt(pi,Ne)}var Qr=fi(),oi=null;function ta(Ne){return null}var xr=ta;function Ir(Ne){return null}var mi=Ir,Mi=oe(2738),da=oe(68031),ca=oe(36355),qi=oe(93891),Wi=oe(19716),xa=oe(8628),wa=oe(31724),Br=oe(58421),kr=oe(71418),Er=oe(88088);function Gr(Ne){return function(St){let{prefixCls:Nt,onExpand:Jt,record:Ht,expanded:En,expandable:Sn}=St;const bn=`${Nt}-row-expand-icon`;return pe.createElement("button",{type:"button",onClick:Nn=>{Jt(Ht,Nn),Nn.stopPropagation()},className:tt()(bn,{[`${bn}-spaced`]:!Sn,[`${bn}-expanded`]:Sn&&En,[`${bn}-collapsed`]:Sn&&!En}),"aria-label":En?Ne.collapse:Ne.expand,"aria-expanded":En})}}var Xi=Gr;function fa(Ne,We){return"key"in Ne&&Ne.key!==void 0&&Ne.key!==null?Ne.key:Ne.dataIndex?Array.isArray(Ne.dataIndex)?Ne.dataIndex.join("."):Ne.dataIndex:We}function va(Ne,We){return We?`${We}-${Ne}`:`${Ne}`}function pa(Ne,We){return typeof Ne=="function"?Ne(We):Ne}function ua(Ne,We){const St=pa(Ne,We);return Object.prototype.toString.call(St)==="[object Object]"?"":St}var Aa={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"},Ya=Aa,Ua=oe(7657),go=function(We,St){return pe.createElement(Ua.Z,(0,vt.Z)({},We,{ref:St,icon:Ya}))},Fi=pe.forwardRef(go),Vi=Fi,La=oe(56762);function aa(Ne){const We=pe.useRef(Ne),St=(0,La.Z)();return[()=>We.current,Nt=>{We.current=Nt,St()}]}var ha=oe(3113),An=oe(24905),Cn=oe(38854),mn=oe(64165),Wn=oe(20834),ar=oe(40875),or=oe(5112),Hn=oe(17574),wr=oe(47472),ci=oe(92832);function Li(Ne){let{value:We,onChange:St,filterSearch:Nt,tablePrefixCls:Jt,locale:Ht}=Ne;return Nt?pe.createElement("div",{className:`${Jt}-filter-dropdown-search`},pe.createElement(ci.default,{prefix:pe.createElement(wr.Z,null),placeholder:Ht.filterSearchPlaceholder,onChange:St,value:We,htmlSize:1,className:`${Jt}-filter-dropdown-search-input`})):null}var ui=Li,yr=oe(10228);const di=Ne=>{const{keyCode:We}=Ne;We===yr.Z.ENTER&&Ne.stopPropagation()};var na=pe.forwardRef((Ne,We)=>pe.createElement("div",{className:Ne.className,onClick:St=>St.stopPropagation(),onKeyDown:di,ref:We},Ne.children));function vi(Ne){let We=[];return(Ne||[]).forEach(St=>{let{value:Nt,children:Jt}=St;We.push(Nt),Jt&&(We=[].concat((0,er.Z)(We),(0,er.Z)(vi(Jt))))}),We}function wi(Ne){return Ne.some(We=>{let{children:St}=We;return St})}function Gi(Ne,We){return typeof We=="string"||typeof We=="number"?We==null?void 0:We.toString().toLowerCase().includes(Ne.trim().toLowerCase()):!1}function Sa(Ne){let{filters:We,prefixCls:St,filteredKeys:Nt,filterMultiple:Jt,searchValue:Ht,filterSearch:En}=Ne;return We.map((Sn,bn)=>{const Nn=String(Sn.value);if(Sn.children)return{key:Nn||bn,label:Sn.text,popupClassName:`${St}-dropdown-submenu`,children:Sa({filters:Sn.children,prefixCls:St,filteredKeys:Nt,filterMultiple:Jt,searchValue:Ht,filterSearch:En})};const Xn=Jt?An.default:or.ZP,Kn={key:Sn.value!==void 0?Nn:bn,label:pe.createElement(pe.Fragment,null,pe.createElement(Xn,{checked:Nt.includes(Nn)}),pe.createElement("span",null,Sn.text))};return Ht.trim()?typeof En=="function"?En(Ht,Sn)?Kn:null:Gi(Ht,Sn.text)?Kn:null:Kn})}function Ra(Ne){var We,St;const{tablePrefixCls:Nt,prefixCls:Jt,column:Ht,dropdownPrefixCls:En,columnKey:Sn,filterMultiple:bn,filterMode:Nn="menu",filterSearch:Xn=!1,filterState:Kn,triggerFilter:fr,locale:cr,children:ur,getPopupContainer:ei}=Ne,{filterDropdownOpen:Hr,onFilterDropdownOpenChange:ti,filterResetToDefaultFilteredValue:Zr,defaultFilteredValue:hi,filterDropdownVisible:Oi,onFilterDropdownVisibleChange:zi}=Ht,[Ai,Qi]=pe.useState(!1),sa=!!(Kn&&(!((We=Kn.filteredKeys)===null||We===void 0)&&We.length||Kn.forceFiltered)),yi=Ni=>{Qi(Ni),ti==null||ti(Ni),zi==null||zi(Ni)},Di=(St=Hr!=null?Hr:Oi)!==null&&St!==void 0?St:Ai,bi=Kn==null?void 0:Kn.filteredKeys,[Fr,Si]=aa(bi||[]),Yi=Ni=>{let{selectedKeys:ia}=Ni;Si(ia)},ga=(Ni,ia)=>{let{node:ka,checked:Ea}=ia;Yi(bn?{selectedKeys:Ni}:{selectedKeys:Ea&&ka.key?[ka.key]:[]})};pe.useEffect(()=>{Ai&&Yi({selectedKeys:bi||[]})},[bi]);const[Zi,ii]=pe.useState([]),ra=Ni=>{ii(Ni)},[la,Fa]=pe.useState(""),Ia=Ni=>{const{value:ia}=Ni.target;Fa(ia)};pe.useEffect(()=>{Ai||Fa("")},[Ai]);const lo=Ni=>{const ia=Ni&&Ni.length?Ni:null;if(ia===null&&(!Kn||!Kn.filteredKeys)||(0,Ee.Z)(ia,Kn==null?void 0:Kn.filteredKeys,!0))return null;fr({column:Ht,key:Sn,filteredKeys:ia})},eo=()=>{yi(!1),lo(Fr())},oa=function(){let{confirm:Ni,closeDropdown:ia}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ni&&lo([]),ia&&yi(!1),Fa(""),Si(Zr?(hi||[]).map(ka=>String(ka)):[])},Co=function(){let{closeDropdown:Ni}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ni&&yi(!1),lo(Fr())},Ma=Ni=>{Ni&&bi!==void 0&&Si(bi||[]),yi(Ni),!Ni&&!Ht.filterDropdown&&eo()},ao=tt()({[`${En}-menu-without-submenu`]:!wi(Ht.filters||[])}),to=Ni=>{if(Ni.target.checked){const ia=vi(Ht==null?void 0:Ht.filters).map(ka=>String(ka));Si(ia)}else Si([])},Po=Ni=>{let{filters:ia}=Ni;return(ia||[]).map((ka,Ea)=>{const es=String(ka.value),To={title:ka.text,key:ka.value!==void 0?es:Ea};return ka.children&&(To.children=Po({filters:ka.children})),To})},ji=Ni=>{var ia;return Object.assign(Object.assign({},Ni),{text:Ni.title,value:Ni.key,children:((ia=Ni.children)===null||ia===void 0?void 0:ia.map(ka=>ji(ka)))||[]})};let _i;if(typeof Ht.filterDropdown=="function")_i=Ht.filterDropdown({prefixCls:`${En}-custom`,setSelectedKeys:Ni=>Yi({selectedKeys:Ni}),selectedKeys:Fr(),confirm:Co,clearFilters:oa,filters:Ht.filters,visible:Di,close:()=>{yi(!1)}});else if(Ht.filterDropdown)_i=Ht.filterDropdown;else{const Ni=Fr()||[],ia=()=>(Ht.filters||[]).length===0?pe.createElement(mn.Z,{image:mn.Z.PRESENTED_IMAGE_SIMPLE,description:cr.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Nn==="tree"?pe.createElement(pe.Fragment,null,pe.createElement(ui,{filterSearch:Xn,value:la,onChange:Ia,tablePrefixCls:Nt,locale:cr}),pe.createElement("div",{className:`${Nt}-filter-dropdown-tree`},bn?pe.createElement(An.default,{checked:Ni.length===vi(Ht.filters).length,indeterminate:Ni.length>0&&Ni.length<vi(Ht.filters).length,className:`${Nt}-filter-dropdown-checkall`,onChange:to},cr.filterCheckall):null,pe.createElement(Hn.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:bn,checkStrictly:!bn,className:`${En}-menu`,onCheck:ga,checkedKeys:Ni,selectedKeys:Ni,showIcon:!1,treeData:Po({filters:Ht.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:la.trim()?Ea=>typeof Xn=="function"?Xn(la,ji(Ea)):Gi(la,Ea.title):void 0}))):pe.createElement(pe.Fragment,null,pe.createElement(ui,{filterSearch:Xn,value:la,onChange:Ia,tablePrefixCls:Nt,locale:cr}),pe.createElement(Wn.default,{selectable:!0,multiple:bn,prefixCls:`${En}-menu`,className:ao,onSelect:Yi,onDeselect:Yi,selectedKeys:Ni,getPopupContainer:ei,openKeys:Zi,onOpenChange:ra,items:Sa({filters:Ht.filters||[],filterSearch:Xn,prefixCls:Jt,filteredKeys:Fr(),filterMultiple:bn,searchValue:la})})),ka=()=>Zr?(0,Ee.Z)((hi||[]).map(Ea=>String(Ea)),Ni,!0):Ni.length===0;_i=pe.createElement(pe.Fragment,null,ia(),pe.createElement("div",{className:`${Jt}-dropdown-btns`},pe.createElement(ha.ZP,{type:"link",size:"small",disabled:ka(),onClick:()=>oa()},cr.filterReset),pe.createElement(ha.ZP,{type:"primary",size:"small",onClick:eo},cr.filterConfirm)))}Ht.filterDropdown&&(_i=pe.createElement(ar.J,{selectable:void 0},_i));const Ki=()=>pe.createElement(na,{className:`${Jt}-dropdown`},_i);let Pi;typeof Ht.filterIcon=="function"?Pi=Ht.filterIcon(sa):Ht.filterIcon?Pi=Ht.filterIcon:Pi=pe.createElement(Vi,null);const{direction:Pa}=pe.useContext(ca.E_);return pe.createElement("div",{className:`${Jt}-column`},pe.createElement("span",{className:`${Nt}-column-title`},ur),pe.createElement(Cn.Z,{dropdownRender:Ki,trigger:["click"],open:Di,onOpenChange:Ma,getPopupContainer:ei,placement:Pa==="rtl"?"bottomLeft":"bottomRight"},pe.createElement("span",{role:"button",tabIndex:-1,className:tt()(`${Jt}-trigger`,{active:sa}),onClick:Ni=>{Ni.stopPropagation()}},Pi)))}var so=Ra;function Do(Ne,We,St){let Nt=[];return(Ne||[]).forEach((Jt,Ht)=>{var En;const Sn=va(Ht,St);if(Jt.filters||"filterDropdown"in Jt||"onFilter"in Jt)if("filteredValue"in Jt){let bn=Jt.filteredValue;"filterDropdown"in Jt||(bn=(En=bn==null?void 0:bn.map(String))!==null&&En!==void 0?En:bn),Nt.push({column:Jt,key:fa(Jt,Sn),filteredKeys:bn,forceFiltered:Jt.filtered})}else Nt.push({column:Jt,key:fa(Jt,Sn),filteredKeys:We&&Jt.defaultFilteredValue?Jt.defaultFilteredValue:void 0,forceFiltered:Jt.filtered});"children"in Jt&&(Nt=[].concat((0,er.Z)(Nt),(0,er.Z)(Do(Jt.children,We,Sn))))}),Nt}function Ys(Ne,We,St,Nt,Jt,Ht,En,Sn){return St.map((bn,Nn)=>{const Xn=va(Nn,Sn),{filterMultiple:Kn=!0,filterMode:fr,filterSearch:cr}=bn;let ur=bn;if(ur.filters||ur.filterDropdown){const ei=fa(ur,Xn),Hr=Nt.find(ti=>{let{key:Zr}=ti;return ei===Zr});ur=Object.assign(Object.assign({},ur),{title:ti=>pe.createElement(so,{tablePrefixCls:Ne,prefixCls:`${Ne}-filter`,dropdownPrefixCls:We,column:ur,columnKey:ei,filterState:Hr,filterMultiple:Kn,filterMode:fr,filterSearch:cr,triggerFilter:Ht,locale:Jt,getPopupContainer:En},pa(bn.title,ti))})}return"children"in ur&&(ur=Object.assign(Object.assign({},ur),{children:Ys(Ne,We,ur.children,Nt,Jt,Ht,En,Xn)})),ur})}function ss(Ne){const We={};return Ne.forEach(St=>{let{key:Nt,filteredKeys:Jt,column:Ht}=St;const{filters:En,filterDropdown:Sn}=Ht;if(Sn)We[Nt]=Jt||null;else if(Array.isArray(Jt)){const bn=vi(En);We[Nt]=bn.filter(Nn=>Jt.includes(String(Nn)))}else We[Nt]=null}),We}function Mo(Ne,We){return We.reduce((St,Nt)=>{const{column:{onFilter:Jt,filters:Ht},filteredKeys:En}=Nt;return Jt&&En&&En.length?St.filter(Sn=>En.some(bn=>{const Nn=vi(Ht),Xn=Nn.findIndex(fr=>String(fr)===String(bn)),Kn=Xn!==-1?Nn[Xn]:bn;return Jt(Kn,Sn)})):St},Ne)}const fo=Ne=>Ne.flatMap(We=>"children"in We?[We].concat((0,er.Z)(fo(We.children||[]))):[We]);function Os(Ne){let{prefixCls:We,dropdownPrefixCls:St,mergedColumns:Nt,onFilterChange:Jt,getPopupContainer:Ht,locale:En}=Ne;const Sn=pe.useMemo(()=>fo(Nt||[]),[Nt]),[bn,Nn]=pe.useState(()=>Do(Sn,!0)),Xn=pe.useMemo(()=>{const ur=Do(Sn,!1);if(ur.length===0)return ur;let ei=!0,Hr=!0;if(ur.forEach(ti=>{let{filteredKeys:Zr}=ti;Zr!==void 0?ei=!1:Hr=!1}),ei){const ti=(Sn||[]).map((Zr,hi)=>fa(Zr,va(hi)));return bn.filter(Zr=>{let{key:hi}=Zr;return ti.includes(hi)}).map(Zr=>{const hi=Sn[ti.findIndex(Oi=>Oi===Zr.key)];return Object.assign(Object.assign({},Zr),{column:Object.assign(Object.assign({},Zr.column),hi),forceFiltered:hi.filtered})})}return ur},[Sn,bn]),Kn=pe.useMemo(()=>ss(Xn),[Xn]),fr=ur=>{const ei=Xn.filter(Hr=>{let{key:ti}=Hr;return ti!==ur.key});ei.push(ur),Nn(ei),Jt(ss(ei),ei)};return[ur=>Ys(We,St,ur,Xn,En,fr,Ht),Xn,Kn]}var Wo=Os;function hs(Ne,We,St){const Nt=pe.useRef({});function Jt(Ht){if(!Nt.current||Nt.current.data!==Ne||Nt.current.childrenColumnName!==We||Nt.current.getRowKey!==St){let Sn=function(bn){bn.forEach((Nn,Xn)=>{const Kn=St(Nn,Xn);En.set(Kn,Nn),Nn&&typeof Nn=="object"&&We in Nn&&Sn(Nn[We]||[])})};const En=new Map;Sn(Ne),Nt.current={data:Ne,childrenColumnName:We,kvMap:En,getRowKey:St}}return Nt.current.kvMap.get(Ht)}return[Jt]}var Xs=oe(50371),Ns=function(Ne,We){var St={};for(var Nt in Ne)Object.prototype.hasOwnProperty.call(Ne,Nt)&&We.indexOf(Nt)<0&&(St[Nt]=Ne[Nt]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Nt=Object.getOwnPropertySymbols(Ne);Jt<Nt.length;Jt++)We.indexOf(Nt[Jt])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Nt[Jt])&&(St[Nt[Jt]]=Ne[Nt[Jt]]);return St};const ko=10;function vo(Ne,We){const St={current:Ne.current,pageSize:Ne.pageSize};return Object.keys(We&&typeof We=="object"?We:{}).forEach(Jt=>{const Ht=Ne[Jt];typeof Ht!="function"&&(St[Jt]=Ht)}),St}function za(Ne,We,St){const Nt=St&&typeof St=="object"?St:{},{total:Jt=0}=Nt,Ht=Ns(Nt,["total"]),[En,Sn]=(0,pe.useState)(()=>({current:"defaultCurrent"in Ht?Ht.defaultCurrent:1,pageSize:"defaultPageSize"in Ht?Ht.defaultPageSize:ko})),bn=(0,Xs.Z)(En,Ht,{total:Jt>0?Jt:Ne}),Nn=Math.ceil((Jt||Ne)/bn.pageSize);bn.current>Nn&&(bn.current=Nn||1);const Xn=(fr,cr)=>{Sn({current:fr!=null?fr:1,pageSize:cr||bn.pageSize})},Kn=(fr,cr)=>{var ur;St&&((ur=St.onChange)===null||ur===void 0||ur.call(St,fr,cr)),Xn(fr,cr),We(fr,cr||(bn==null?void 0:bn.pageSize))};return St===!1?[{},()=>{}]:[Object.assign(Object.assign({},bn),{onChange:Kn}),Xn]}var Rs=za,cl=oe(84105),ys=oe(35654),Ca=oe(90782),ba=oe(71430),qa=oe(18929);const yo={},io="SELECT_ALL",Zo="SELECT_INVERT",Qo="SELECT_NONE",bs=[],Jo=(Ne,We)=>{let St=[];return(We||[]).forEach(Nt=>{St.push(Nt),Nt&&typeof Nt=="object"&&Ne in Nt&&(St=[].concat((0,er.Z)(St),(0,er.Z)(Jo(Ne,Nt[Ne]))))}),St};var Fs=(Ne,We)=>{const{preserveSelectedRowKeys:St,selectedRowKeys:Nt,defaultSelectedRowKeys:Jt,getCheckboxProps:Ht,onChange:En,onSelect:Sn,onSelectAll:bn,onSelectInvert:Nn,onSelectNone:Xn,onSelectMultiple:Kn,columnWidth:fr,type:cr,selections:ur,fixed:ei,renderCell:Hr,hideSelectAll:ti,checkStrictly:Zr=!0}=We||{},{prefixCls:hi,data:Oi,pageData:zi,getRecordByKey:Ai,getRowKey:Qi,expandType:sa,childrenColumnName:yi,locale:Di,getPopupContainer:bi}=Ne,[Fr,Si]=(0,qa.Z)(Nt||Jt||bs,{value:Nt}),Yi=pe.useRef(new Map),ga=(0,pe.useCallback)(ji=>{if(St){const _i=new Map;ji.forEach(Ki=>{let Pi=Ai(Ki);!Pi&&Yi.current.has(Ki)&&(Pi=Yi.current.get(Ki)),_i.set(Ki,Pi)}),Yi.current=_i}},[Ai,St]);pe.useEffect(()=>{ga(Fr)},[Fr]);const{keyEntities:Zi}=(0,pe.useMemo)(()=>{if(Zr)return{keyEntities:null};let ji=Oi;if(St){const _i=new Set(Oi.map((Pi,Pa)=>Qi(Pi,Pa))),Ki=Array.from(Yi.current).reduce((Pi,Pa)=>{let[Ni,ia]=Pa;return _i.has(Ni)?Pi:Pi.concat(ia)},[]);ji=[].concat((0,er.Z)(ji),(0,er.Z)(Ki))}return(0,ba.I8)(ji,{externalGetKey:Qi,childrenPropName:yi})},[Oi,Qi,Zr,yi,St]),ii=(0,pe.useMemo)(()=>Jo(yi,zi),[yi,zi]),ra=(0,pe.useMemo)(()=>{const ji=new Map;return ii.forEach((_i,Ki)=>{const Pi=Qi(_i,Ki),Pa=(Ht?Ht(_i):null)||{};ji.set(Pi,Pa)}),ji},[ii,Qi,Ht]),la=(0,pe.useCallback)(ji=>{var _i;return!!(!((_i=ra.get(Qi(ji)))===null||_i===void 0)&&_i.disabled)},[ra,Qi]),[Fa,Ia]=(0,pe.useMemo)(()=>{if(Zr)return[Fr||[],[]];const{checkedKeys:ji,halfCheckedKeys:_i}=(0,Ca.S)(Fr,!0,Zi,la);return[ji||[],_i]},[Fr,Zr,Zi,la]),lo=(0,pe.useMemo)(()=>{const ji=cr==="radio"?Fa.slice(0,1):Fa;return new Set(ji)},[Fa,cr]),eo=(0,pe.useMemo)(()=>cr==="radio"?new Set:new Set(Ia),[Ia,cr]),[oa,Co]=(0,pe.useState)(null);pe.useEffect(()=>{We||Si(bs)},[!!We]);const Ma=(0,pe.useCallback)((ji,_i)=>{let Ki,Pi;ga(ji),St?(Ki=ji,Pi=ji.map(Pa=>Yi.current.get(Pa))):(Ki=[],Pi=[],ji.forEach(Pa=>{const Ni=Ai(Pa);Ni!==void 0&&(Ki.push(Pa),Pi.push(Ni))})),Si(Ki),En==null||En(Ki,Pi,{type:_i})},[Si,Ai,En,St]),ao=(0,pe.useCallback)((ji,_i,Ki,Pi)=>{if(Sn){const Pa=Ki.map(Ni=>Ai(Ni));Sn(Ai(ji),_i,Pa,Pi)}Ma(Ki,"single")},[Sn,Ai,Ma]),to=(0,pe.useMemo)(()=>!ur||ti?null:(ur===!0?[io,Zo,Qo]:ur).map(_i=>_i===io?{key:"all",text:Di.selectionAll,onSelect(){Ma(Oi.map((Ki,Pi)=>Qi(Ki,Pi)).filter(Ki=>{const Pi=ra.get(Ki);return!(Pi!=null&&Pi.disabled)||lo.has(Ki)}),"all")}}:_i===Zo?{key:"invert",text:Di.selectInvert,onSelect(){const Ki=new Set(lo);zi.forEach((Pa,Ni)=>{const ia=Qi(Pa,Ni),ka=ra.get(ia);ka!=null&&ka.disabled||(Ki.has(ia)?Ki.delete(ia):Ki.add(ia))});const Pi=Array.from(Ki);Nn&&Nn(Pi),Ma(Pi,"invert")}}:_i===Qo?{key:"none",text:Di.selectNone,onSelect(){Xn==null||Xn(),Ma(Array.from(lo).filter(Ki=>{const Pi=ra.get(Ki);return Pi==null?void 0:Pi.disabled}),"none")}}:_i).map(_i=>Object.assign(Object.assign({},_i),{onSelect:function(){for(var Ki,Pi,Pa=arguments.length,Ni=new Array(Pa),ia=0;ia<Pa;ia++)Ni[ia]=arguments[ia];(Pi=_i.onSelect)===null||Pi===void 0||(Ki=Pi).call.apply(Ki,[_i].concat(Ni)),Co(null)}})),[ur,lo,zi,Qi,Nn,Ma]);return[(0,pe.useCallback)(ji=>{var _i;if(!We)return ji.filter(Da=>Da!==yo);let Ki=(0,er.Z)(ji);const Pi=new Set(lo),Pa=ii.map(Qi).filter(Da=>!ra.get(Da).disabled),Ni=Pa.every(Da=>Pi.has(Da)),ia=Pa.some(Da=>Pi.has(Da)),ka=()=>{const Da=[];Ni?Pa.forEach(_a=>{Pi.delete(_a),Da.push(_a)}):Pa.forEach(_a=>{Pi.has(_a)||(Pi.add(_a),Da.push(_a))});const Or=Array.from(Pi);bn==null||bn(!Ni,Or.map(_a=>Ai(_a)),Da.map(_a=>Ai(_a))),Ma(Or,"all"),Co(null)};let Ea;if(cr!=="radio"){let Da;if(to){const $i={getPopupContainer:bi,items:to.map((Va,Uo)=>{const{key:zs,text:fl,onSelect:ws}=Va;return{key:zs!=null?zs:Uo,onClick:()=>{ws==null||ws(Pa)},label:fl}})};Da=pe.createElement("div",{className:`${hi}-selection-extra`},pe.createElement(Cn.Z,{menu:$i,getPopupContainer:bi},pe.createElement("span",null,pe.createElement(cl.Z,null))))}const Or=ii.map(($i,Va)=>{const Uo=Qi($i,Va),zs=ra.get(Uo)||{};return Object.assign({checked:Pi.has(Uo)},zs)}).filter($i=>{let{disabled:Va}=$i;return Va}),_a=!!Or.length&&Or.length===ii.length,Lo=_a&&Or.every($i=>{let{checked:Va}=$i;return Va}),Oo=_a&&Or.some($i=>{let{checked:Va}=$i;return Va});Ea=!ti&&pe.createElement("div",{className:`${hi}-selection`},pe.createElement(An.default,{checked:_a?Lo:!!ii.length&&Ni,indeterminate:_a?!Lo&&Oo:!Ni&&ia,onChange:ka,disabled:ii.length===0||_a,"aria-label":Da?"Custom selection":"Select all",skipGroup:!0}),Da)}let es;cr==="radio"?es=(Da,Or,_a)=>{const Lo=Qi(Or,_a),Oo=Pi.has(Lo);return{node:pe.createElement(or.ZP,Object.assign({},ra.get(Lo),{checked:Oo,onClick:$i=>$i.stopPropagation(),onChange:$i=>{Pi.has(Lo)||ao(Lo,!0,[Lo],$i.nativeEvent)}})),checked:Oo}}:es=(Da,Or,_a)=>{var Lo;const Oo=Qi(Or,_a),$i=Pi.has(Oo),Va=eo.has(Oo),Uo=ra.get(Oo);let zs;return sa==="nest"?zs=Va:zs=(Lo=Uo==null?void 0:Uo.indeterminate)!==null&&Lo!==void 0?Lo:Va,{node:pe.createElement(An.default,Object.assign({},Uo,{indeterminate:zs,checked:$i,skipGroup:!0,onClick:fl=>fl.stopPropagation(),onChange:fl=>{let{nativeEvent:ws}=fl;const{shiftKey:ts}=ws;let il=-1,ns=-1;if(ts&&Zr){const Ss=new Set([oa,Oo]);Pa.some((cs,co)=>{if(Ss.has(cs))if(il===-1)il=co;else return ns=co,!0;return!1})}if(ns!==-1&&il!==ns&&Zr){const Ss=Pa.slice(il,ns+1),cs=[];$i?Ss.forEach(uo=>{Pi.has(uo)&&(cs.push(uo),Pi.delete(uo))}):Ss.forEach(uo=>{Pi.has(uo)||(cs.push(uo),Pi.add(uo))});const co=Array.from(Pi);Kn==null||Kn(!$i,co.map(uo=>Ai(uo)),cs.map(uo=>Ai(uo))),Ma(co,"multiple")}else{const Ss=Fa;if(Zr){const cs=$i?(0,ys._5)(Ss,Oo):(0,ys.L0)(Ss,Oo);ao(Oo,!$i,cs,ws)}else{const cs=(0,Ca.S)([].concat((0,er.Z)(Ss),[Oo]),!0,Zi,la),{checkedKeys:co,halfCheckedKeys:uo}=cs;let ms=co;if($i){const wl=new Set(co);wl.delete(Oo),ms=(0,Ca.S)(Array.from(wl),{checked:!1,halfCheckedKeys:uo},Zi,la).checkedKeys}ao(Oo,!$i,ms,ws)}}Co($i?null:Oo)}})),checked:$i}};const To=(Da,Or,_a)=>{const{node:Lo,checked:Oo}=es(Da,Or,_a);return Hr?Hr(Oo,Or,_a,Lo):Lo};if(!Ki.includes(yo))if(Ki.findIndex(Da=>{var Or;return((Or=Da[Vn])===null||Or===void 0?void 0:Or.columnType)==="EXPAND_COLUMN"})===0){const[Da,...Or]=Ki;Ki=[Da,yo].concat((0,er.Z)(Or))}else Ki=[yo].concat((0,er.Z)(Ki));const js=Ki.indexOf(yo);Ki=Ki.filter((Da,Or)=>Da!==yo||Or===js);const Eo=Ki[js-1],Js=Ki[js+1];let Ao=ei;Ao===void 0&&((Js==null?void 0:Js.fixed)!==void 0?Ao=Js.fixed:(Eo==null?void 0:Eo.fixed)!==void 0&&(Ao=Eo.fixed)),Ao&&Eo&&((_i=Eo[Vn])===null||_i===void 0?void 0:_i.columnType)==="EXPAND_COLUMN"&&Eo.fixed===void 0&&(Eo.fixed=Ao);const Vo=tt()(`${hi}-selection-col`,{[`${hi}-selection-col-with-dropdown`]:ur&&cr==="checkbox"}),xl={fixed:Ao,width:fr,className:`${hi}-selection-column`,title:We.columnTitle||Ea,render:To,onCell:We.onCell,[Vn]:{className:Vo}};return Ki.map(Da=>Da===yo?xl:Da)},[Qi,ii,We,Fa,lo,eo,fr,to,sa,oa,ra,Kn,ao,la]),lo]},qo=oe(89489),gc=oe(59477),vl=oe(6848);const yl="ascend",nc="descend";function Vl(Ne){return typeof Ne.sorter=="object"&&typeof Ne.sorter.multiple=="number"?Ne.sorter.multiple:!1}function Ll(Ne){return typeof Ne=="function"?Ne:Ne&&typeof Ne=="object"&&Ne.compare?Ne.compare:!1}function Qc(Ne,We){return We?Ne[Ne.indexOf(We)+1]:Ne[0]}function ul(Ne,We,St){let Nt=[];function Jt(Ht,En){Nt.push({column:Ht,key:fa(Ht,En),multiplePriority:Vl(Ht),sortOrder:Ht.sortOrder})}return(Ne||[]).forEach((Ht,En)=>{const Sn=va(En,St);Ht.children?("sortOrder"in Ht&&Jt(Ht,Sn),Nt=[].concat((0,er.Z)(Nt),(0,er.Z)(ul(Ht.children,We,Sn)))):Ht.sorter&&("sortOrder"in Ht?Jt(Ht,Sn):We&&Ht.defaultSortOrder&&Nt.push({column:Ht,key:fa(Ht,Sn),multiplePriority:Vl(Ht),sortOrder:Ht.defaultSortOrder}))}),Nt}function rc(Ne,We,St,Nt,Jt,Ht,En,Sn){return(We||[]).map((bn,Nn)=>{const Xn=va(Nn,Sn);let Kn=bn;if(Kn.sorter){const fr=Kn.sortDirections||Jt,cr=Kn.showSorterTooltip===void 0?En:Kn.showSorterTooltip,ur=fa(Kn,Xn),ei=St.find(sa=>{let{key:yi}=sa;return yi===ur}),Hr=ei?ei.sortOrder:null,ti=Qc(fr,Hr);let Zr;if(bn.sortIcon)Zr=bn.sortIcon({sortOrder:Hr});else{const sa=fr.includes(yl)&&pe.createElement(gc.Z,{className:tt()(`${Ne}-column-sorter-up`,{active:Hr===yl})}),yi=fr.includes(nc)&&pe.createElement(qo.Z,{className:tt()(`${Ne}-column-sorter-down`,{active:Hr===nc})});Zr=pe.createElement("span",{className:tt()(`${Ne}-column-sorter`,{[`${Ne}-column-sorter-full`]:!!(sa&&yi)})},pe.createElement("span",{className:`${Ne}-column-sorter-inner`,"aria-hidden":"true"},sa,yi))}const{cancelSort:hi,triggerAsc:Oi,triggerDesc:zi}=Ht||{};let Ai=hi;ti===nc?Ai=zi:ti===yl&&(Ai=Oi);const Qi=typeof cr=="object"?cr:{title:Ai};Kn=Object.assign(Object.assign({},Kn),{className:tt()(Kn.className,{[`${Ne}-column-sort`]:Hr}),title:sa=>{const yi=pe.createElement("div",{className:`${Ne}-column-sorters`},pe.createElement("span",{className:`${Ne}-column-title`},pa(bn.title,sa)),Zr);return cr?pe.createElement(vl.Z,Object.assign({},Qi),yi):yi},onHeaderCell:sa=>{const yi=bn.onHeaderCell&&bn.onHeaderCell(sa)||{},Di=yi.onClick,bi=yi.onKeyDown;yi.onClick=Yi=>{Nt({column:bn,key:ur,sortOrder:ti,multiplePriority:Vl(bn)}),Di==null||Di(Yi)},yi.onKeyDown=Yi=>{Yi.keyCode===yr.Z.ENTER&&(Nt({column:bn,key:ur,sortOrder:ti,multiplePriority:Vl(bn)}),bi==null||bi(Yi))};const Fr=ua(bn.title,{}),Si=Fr==null?void 0:Fr.toString();return Hr?yi["aria-sort"]=Hr==="ascend"?"ascending":"descending":yi["aria-label"]=Si||"",yi.className=tt()(yi.className,`${Ne}-column-has-sorters`),yi.tabIndex=0,bn.ellipsis&&(yi.title=(Fr!=null?Fr:"").toString()),yi}})}return"children"in Kn&&(Kn=Object.assign(Object.assign({},Kn),{children:rc(Ne,Kn.children,St,Nt,Jt,Ht,En,Xn)})),Kn})}function dl(Ne){const{column:We,sortOrder:St}=Ne;return{column:We,order:St,field:We.dataIndex,columnKey:We.key}}function bl(Ne){const We=Ne.filter(St=>{let{sortOrder:Nt}=St;return Nt}).map(dl);return We.length===0&&Ne.length?Object.assign(Object.assign({},dl(Ne[Ne.length-1])),{column:void 0}):We.length<=1?We[0]||{}:We}function Ha(Ne,We,St){const Nt=We.slice().sort((En,Sn)=>Sn.multiplePriority-En.multiplePriority),Jt=Ne.slice(),Ht=Nt.filter(En=>{let{column:{sorter:Sn},sortOrder:bn}=En;return Ll(Sn)&&bn});return Ht.length?Jt.sort((En,Sn)=>{for(let bn=0;bn<Ht.length;bn+=1){const Nn=Ht[bn],{column:{sorter:Xn},sortOrder:Kn}=Nn,fr=Ll(Xn);if(fr&&Kn){const cr=fr(En,Sn,Kn);if(cr!==0)return Kn===yl?cr:-cr}}return 0}).map(En=>{const Sn=En[St];return Sn?Object.assign(Object.assign({},En),{[St]:Ha(Sn,We,St)}):En}):Jt}function Ga(Ne){let{prefixCls:We,mergedColumns:St,onSorterChange:Nt,sortDirections:Jt,tableLocale:Ht,showSorterTooltip:En}=Ne;const[Sn,bn]=pe.useState(ul(St,!0)),Nn=pe.useMemo(()=>{let ur=!0;const ei=ul(St,!1);if(!ei.length)return Sn;const Hr=[];function ti(hi){ur?Hr.push(hi):Hr.push(Object.assign(Object.assign({},hi),{sortOrder:null}))}let Zr=null;return ei.forEach(hi=>{Zr===null?(ti(hi),hi.sortOrder&&(hi.multiplePriority===!1?ur=!1:Zr=!0)):(Zr&&hi.multiplePriority!==!1||(ur=!1),ti(hi))}),Hr},[St,Sn]),Xn=pe.useMemo(()=>{const ur=Nn.map(ei=>{let{column:Hr,sortOrder:ti}=ei;return{column:Hr,order:ti}});return{sortColumns:ur,sortColumn:ur[0]&&ur[0].column,sortOrder:ur[0]&&ur[0].order}},[Nn]);function Kn(ur){let ei;ur.multiplePriority===!1||!Nn.length||Nn[0].multiplePriority===!1?ei=[ur]:ei=[].concat((0,er.Z)(Nn.filter(Hr=>{let{key:ti}=Hr;return ti!==ur.key})),[ur]),bn(ei),Nt(bl(ei),ei)}return[ur=>rc(We,ur,Nn,Kn,Jt,Ht,En),Nn,Xn,()=>bl(Nn)]}function $a(Ne,We){return Ne.map(St=>{const Nt=Object.assign({},St);return Nt.title=pa(St.title,We),"children"in Nt&&(Nt.children=$a(Nt.children,We)),Nt})}function xs(Ne){return[pe.useCallback(St=>$a(St,Ne),[Ne])]}var $o=jr((Ne,We)=>{const{_renderTimes:St}=Ne,{_renderTimes:Nt}=We;return St!==Nt}),Qs=fi((Ne,We)=>{const{_renderTimes:St}=Ne,{_renderTimes:Nt}=We;return St!==Nt}),ps=oe(64993),jo=oe(17313),tl=oe(83116),nl=oe(37613),Il=Ne=>{const{componentCls:We}=Ne,St=`${Ne.lineWidth}px ${Ne.lineType} ${Ne.tableBorderColor}`,Nt=(Jt,Ht,En)=>({[`&${We}-${Jt}`]:{[`> ${We}-container`]:{[`> ${We}-content, > ${We}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${We}-expanded-row-fixed`]:{margin:`-${Ht}px -${En+Ne.lineWidth}px`}}}}}});return{[`${We}-wrapper`]:{[`${We}${We}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${We}-title`]:{border:St,borderBottom:0},[`> ${We}-container`]:{borderInlineStart:St,borderTop:St,[`
|
|
|
> ${We}-content,
|
|
|
> ${We}-header,
|
|
|
> ${We}-body,
|
|
|
> ${We}-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:St},"> thead":{"> tr:not(:last-child) > th":{borderBottom:St},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${We}-cell-fix-right-first::after`]:{borderInlineEnd:St}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${We}-expanded-row-fixed`]:{margin:`-${Ne.tablePaddingVertical}px -${Ne.tablePaddingHorizontal+Ne.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ne.lineWidth,bottom:0,borderInlineEnd:St,content:'""'}}}}}},[`&${We}-scroll-horizontal`]:{[`> ${We}-container > ${We}-body`]:{"> table > tbody":{[`
|
|
|
> tr${We}-expanded-row,
|
|
|
> tr${We}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Nt("middle",Ne.tablePaddingVerticalMiddle,Ne.tablePaddingHorizontalMiddle)),Nt("small",Ne.tablePaddingVerticalSmall,Ne.tablePaddingHorizontalSmall)),{[`> ${We}-footer`]:{border:St,borderTop:0}}),[`${We}-cell`]:{[`${We}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ne.lineWidth}px 0 ${Ne.lineWidth}px ${Ne.tableHeaderBg}`}},[`${We}-bordered ${We}-cell-scrollbar`]:{borderInlineEnd:St}}}},vc=Ne=>{const{componentCls:We}=Ne;return{[`${We}-wrapper`]:{[`${We}-cell-ellipsis`]:Object.assign(Object.assign({},jo.vS),{wordBreak:"keep-all",[`
|
|
|
&${We}-cell-fix-left-last,
|
|
|
&${We}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${We}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${We}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},bu=Ne=>{const{componentCls:We}=Ne;return{[`${We}-wrapper`]:{[`${We}-tbody > tr${We}-placeholder`]:{textAlign:"center",color:Ne.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Ne.colorBgContainer}}}}},_c=oe(15969),qc=Ne=>{const{componentCls:We,antCls:St,controlInteractiveSize:Nt,motionDurationSlow:Jt,lineWidth:Ht,paddingXS:En,lineType:Sn,tableBorderColor:bn,tableExpandIconBg:Nn,tableExpandColumnWidth:Xn,borderRadius:Kn,fontSize:fr,fontSizeSM:cr,lineHeight:ur,tablePaddingVertical:ei,tablePaddingHorizontal:Hr,tableExpandedRowBg:ti,paddingXXS:Zr}=Ne,hi=Nt/2-Ht,Oi=hi*2+Ht*3,zi=`${Ht}px ${Sn} ${bn}`,Ai=Zr-Ht;return{[`${We}-wrapper`]:{[`${We}-expand-icon-col`]:{width:Xn},[`${We}-row-expand-icon-cell`]:{textAlign:"center",[`${We}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${We}-row-indent`]:{height:1,float:"left"},[`${We}-row-expand-icon`]:Object.assign(Object.assign({},(0,_c.N)(Ne)),{position:"relative",float:"left",boxSizing:"border-box",width:Oi,height:Oi,padding:0,color:"inherit",lineHeight:`${Oi}px`,background:Nn,border:zi,borderRadius:Kn,transform:`scale(${Nt/Oi})`,transition:`all ${Jt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Jt} ease-out`,content:'""'},"&::before":{top:hi,insetInlineEnd:Ai,insetInlineStart:Ai,height:Ht},"&::after":{top:Ai,bottom:Ai,insetInlineStart:hi,width:Ht,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"}}),[`${We}-row-indent + ${We}-row-expand-icon`]:{marginTop:(fr*ur-Ht*3)/2-Math.ceil((cr*1.4-Ht*3)/2),marginInlineEnd:En},[`tr${We}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:ti}},[`${St}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${We}-expanded-row-fixed`]:{position:"relative",margin:`-${ei}px -${Hr}px`,padding:`${ei}px ${Hr}px`}}}},xu=Ne=>{const{componentCls:We,antCls:St,iconCls:Nt,tableFilterDropdownWidth:Jt,tableFilterDropdownSearchWidth:Ht,paddingXXS:En,paddingXS:Sn,colorText:bn,lineWidth:Nn,lineType:Xn,tableBorderColor:Kn,tableHeaderIconColor:fr,fontSizeSM:cr,tablePaddingHorizontal:ur,borderRadius:ei,motionDurationSlow:Hr,colorTextDescription:ti,colorPrimary:Zr,tableHeaderFilterActiveBg:hi,colorTextDisabled:Oi,tableFilterDropdownBg:zi,tableFilterDropdownHeight:Ai,controlItemBgHover:Qi,controlItemBgActive:sa,boxShadowSecondary:yi,filterDropdownMenuBg:Di}=Ne,bi=`${St}-dropdown`,Fr=`${We}-filter-dropdown`,Si=`${St}-tree`,Yi=`${Nn}px ${Xn} ${Kn}`;return[{[`${We}-wrapper`]:{[`${We}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${We}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-En,marginInline:`${En}px ${-ur/2}px`,padding:`0 ${En}px`,color:fr,fontSize:cr,borderRadius:ei,cursor:"pointer",transition:`all ${Hr}`,"&:hover":{color:ti,background:hi},"&.active":{color:Zr}}}},{[`${St}-dropdown`]:{[Fr]:Object.assign(Object.assign({},(0,jo.Wf)(Ne)),{minWidth:Jt,backgroundColor:zi,borderRadius:ei,boxShadow:yi,overflow:"hidden",[`${bi}-menu`]:{maxHeight:Ai,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Di,"&:empty::after":{display:"block",padding:`${Sn}px 0`,color:Oi,fontSize:cr,textAlign:"center",content:'"Not Found"'}},[`${Fr}-tree`]:{paddingBlock:`${Sn}px 0`,paddingInline:Sn,[Si]:{padding:0},[`${Si}-treenode ${Si}-node-content-wrapper:hover`]:{backgroundColor:Qi},[`${Si}-treenode-checkbox-checked ${Si}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:sa}}},[`${Fr}-search`]:{padding:Sn,borderBottom:Yi,"&-input":{input:{minWidth:Ht},[Nt]:{color:Oi}}},[`${Fr}-checkall`]:{width:"100%",marginBottom:En,marginInlineStart:En},[`${Fr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Sn-Nn}px ${Sn}px`,overflow:"hidden",borderTop:Yi}})}},{[`${St}-dropdown ${Fr}, ${Fr}-submenu`]:{[`${St}-checkbox-wrapper + span`]:{paddingInlineStart:Sn,color:bn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},ic=Ne=>{const{componentCls:We,lineWidth:St,colorSplit:Nt,motionDurationSlow:Jt,zIndexTableFixed:Ht,tableBg:En,zIndexTableSticky:Sn}=Ne,bn=Nt;return{[`${We}-wrapper`]:{[`
|
|
|
${We}-cell-fix-left,
|
|
|
${We}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Ht,background:En},[`
|
|
|
${We}-cell-fix-left-first::after,
|
|
|
${We}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-St,width:30,transform:"translateX(100%)",transition:`box-shadow ${Jt}`,content:'""',pointerEvents:"none"},[`${We}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${We}-cell-fix-right-first::after,
|
|
|
${We}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-St,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Jt}`,content:'""',pointerEvents:"none"},[`${We}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Sn+1,width:30,transition:`box-shadow ${Jt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${We}-ping-left`]:{[`&:not(${We}-has-fix-left) ${We}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${bn}`}},[`
|
|
|
${We}-cell-fix-left-first::after,
|
|
|
${We}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${bn}`},[`${We}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${We}-ping-right`]:{[`&:not(${We}-has-fix-right) ${We}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${bn}`}},[`
|
|
|
${We}-cell-fix-right-first::after,
|
|
|
${We}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${bn}`}}}}},Su=Ne=>{const{componentCls:We,antCls:St}=Ne;return{[`${We}-wrapper`]:{[`${We}-pagination${St}-pagination`]:{margin:`${Ne.margin}px 0`},[`${We}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ne.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Pl=Ne=>{const{componentCls:We,tableRadius:St}=Ne;return{[`${We}-wrapper`]:{[We]:{[`${We}-title, ${We}-header`]:{borderRadius:`${St}px ${St}px 0 0`},[`${We}-title + ${We}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${We}-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:St,borderStartEndRadius:St,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:St},"> *:last-child":{borderStartEndRadius:St}}},"&-footer":{borderRadius:`0 0 ${St}px ${St}px`}}}}},Yu=Ne=>{const{componentCls:We}=Ne;return{[`${We}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${We}-pagination-left`]:{justifyContent:"flex-end"},[`${We}-pagination-right`]:{justifyContent:"flex-start"},[`${We}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${We}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${We}-row-indent`]:{float:"right"}}}}},tu=Ne=>{const{componentCls:We,antCls:St,iconCls:Nt,fontSizeIcon:Jt,padding:Ht,paddingXS:En,tableHeaderIconColor:Sn,tableHeaderIconColorHover:bn,tableSelectionColumnWidth:Nn}=Ne;return{[`${We}-wrapper`]:{[`${We}-selection-col`]:{width:Nn,[`&${We}-selection-col-with-dropdown`]:{width:Nn+Jt+Ht/4}},[`${We}-bordered ${We}-selection-col`]:{width:Nn+En*2,[`&${We}-selection-col-with-dropdown`]:{width:Nn+Jt+Ht/4+En*2}},[`
|
|
|
table tr th${We}-selection-column,
|
|
|
table tr td${We}-selection-column
|
|
|
`]:{paddingInlineEnd:Ne.paddingXS,paddingInlineStart:Ne.paddingXS,textAlign:"center",[`${St}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${We}-selection-column${We}-cell-fix-left`]:{zIndex:Ne.zIndexTableFixed+1},[`table tr th${We}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${We}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${We}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ne.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ne.tablePaddingHorizontal/4}px`,[Nt]:{color:Sn,fontSize:Jt,verticalAlign:"baseline","&:hover":{color:bn}}}}}},oc=Ne=>{const{componentCls:We}=Ne,St=(Nt,Jt,Ht,En)=>({[`${We}${We}-${Nt}`]:{fontSize:En,[`
|
|
|
${We}-title,
|
|
|
${We}-footer,
|
|
|
${We}-cell,
|
|
|
${We}-thead > tr > th,
|
|
|
${We}-tbody > tr > th,
|
|
|
${We}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${Jt}px ${Ht}px`},[`${We}-filter-trigger`]:{marginInlineEnd:`-${Ht/2}px`},[`${We}-expanded-row-fixed`]:{margin:`-${Jt}px -${Ht}px`},[`${We}-tbody`]:{[`${We}-wrapper:only-child ${We}`]:{marginBlock:`-${Jt}px`,marginInline:`${Ne.tableExpandColumnWidth-Ht}px -${Ht}px`}},[`${We}-selection-column`]:{paddingInlineStart:`${Ht/4}px`}}});return{[`${We}-wrapper`]:Object.assign(Object.assign({},St("middle",Ne.tablePaddingVerticalMiddle,Ne.tablePaddingHorizontalMiddle,Ne.tableFontSizeMiddle)),St("small",Ne.tablePaddingVerticalSmall,Ne.tablePaddingHorizontalSmall,Ne.tableFontSizeSmall))}},Hc=Ne=>{const{componentCls:We,marginXXS:St,fontSizeIcon:Nt,tableHeaderIconColor:Jt,tableHeaderIconColorHover:Ht}=Ne;return{[`${We}-wrapper`]:{[`${We}-thead th${We}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ne.motionDurationSlow}`,"&:hover":{background:Ne.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ne.colorPrimary},[`
|
|
|
&${We}-cell-fix-left:hover,
|
|
|
&${We}-cell-fix-right:hover
|
|
|
`]:{background:Ne.tableFixedHeaderSortActiveBg}},[`${We}-thead th${We}-column-sort`]:{background:Ne.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${We}-column-sort`]:{background:Ne.tableBodySortBg},[`${We}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${We}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${We}-column-sorter`]:{marginInlineStart:St,color:Jt,fontSize:0,transition:`color ${Ne.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Nt,"&.active":{color:Ne.colorPrimary}},[`${We}-column-sorter-up + ${We}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${We}-column-sorters:hover ${We}-column-sorter`]:{color:Ht}}}},Ul=Ne=>{const{componentCls:We,opacityLoading:St,tableScrollThumbBg:Nt,tableScrollThumbBgHover:Jt,tableScrollThumbSize:Ht,tableScrollBg:En,zIndexTableSticky:Sn,stickyScrollBarBorderRadius:bn}=Ne,Nn=`${Ne.lineWidth}px ${Ne.lineType} ${Ne.tableBorderColor}`;return{[`${We}-wrapper`]:{[`${We}-sticky`]:{"&-holder":{position:"sticky",zIndex:Sn,background:Ne.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ht}px !important`,zIndex:Sn,display:"flex",alignItems:"center",background:En,borderTop:Nn,opacity:St,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ht,backgroundColor:Nt,borderRadius:bn,transition:`all ${Ne.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Jt}}}}}}},Tl=Ne=>{const{componentCls:We,lineWidth:St,tableBorderColor:Nt}=Ne,Jt=`${St}px ${Ne.lineType} ${Nt}`;return{[`${We}-wrapper`]:{[`${We}-summary`]:{position:"relative",zIndex:Ne.zIndexTableFixed,background:Ne.tableBg,"> tr":{"> th, > td":{borderBottom:Jt}}},[`div${We}-summary`]:{boxShadow:`0 -${St}px 0 ${Nt}`}}}},Ol=Ne=>{const{componentCls:We}=Ne,St=`${Ne.lineWidth}px ${Ne.lineType} ${Ne.tableBorderColor}`,Nt=`${We}-expanded-row-cell`;return{[`${We}-wrapper`]:{[`${We}-tbody-virtual`]:{[`${We}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${We}-cell`]:{borderBottom:St},[`${We}-expanded-row`]:{[`${Nt}${Nt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ne.lineWidth}px)`,borderInlineEnd:"none"}}},[`${We}-bordered`]:{[`${We}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:St,position:"absolute"},[`${We}-cell`]:{borderInlineEnd:St,[`&${We}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ne.lineWidth,borderInlineStart:St}}}}}}};const Zs=Ne=>{const{componentCls:We,fontWeightStrong:St,tablePaddingVertical:Nt,tablePaddingHorizontal:Jt,lineWidth:Ht,lineType:En,tableBorderColor:Sn,tableFontSize:bn,tableBg:Nn,tableRadius:Xn,tableHeaderTextColor:Kn,motionDurationMid:fr,tableHeaderBg:cr,tableHeaderCellSplitColor:ur,tableRowHoverBg:ei,tableSelectedRowBg:Hr,tableSelectedRowHoverBg:ti,tableFooterTextColor:Zr,tableFooterBg:hi,paddingContentVerticalLG:Oi}=Ne,zi=`${Ht}px ${En} ${Sn}`;return{[`${We}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,jo.dF)()),{[We]:Object.assign(Object.assign({},(0,jo.Wf)(Ne)),{fontSize:bn,background:Nn,borderRadius:`${Xn}px ${Xn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Xn}px ${Xn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${We}-cell,
|
|
|
${We}-thead > tr > th,
|
|
|
${We}-tbody > tr > th,
|
|
|
${We}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Oi}px ${Jt}px`,overflowWrap:"break-word"},[`${We}-title`]:{padding:`${Nt}px ${Jt}px`},[`${We}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Kn,fontWeight:St,textAlign:"start",background:cr,borderBottom:zi,transition:`background ${fr} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${We}-selection-column):not(${We}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ur,transform:"translateY(-50%)",transition:`background-color ${fr}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${We}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${fr}, border-color ${fr}`,borderBottom:zi,[`
|
|
|
> ${We}-wrapper:only-child,
|
|
|
> ${We}-expanded-row-fixed > ${We}-wrapper:only-child
|
|
|
`]:{[We]:{marginBlock:`-${Nt}px`,marginInline:`${Ne.tableExpandColumnWidth-Jt}px -${Jt}px`,[`${We}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Kn,fontWeight:St,textAlign:"start",background:cr,borderBottom:zi,transition:`background ${fr} ease`},[`
|
|
|
&${We}-row:hover > th,
|
|
|
&${We}-row:hover > td,
|
|
|
> th${We}-cell-row-hover,
|
|
|
> td${We}-cell-row-hover
|
|
|
`]:{background:ei},[`&${We}-row-selected`]:{"> th, > td":{background:Hr},"&:hover > th, &:hover > td":{background:ti}}}},[`${We}-footer`]:{padding:`${Nt}px ${Jt}px`,color:Zr,background:hi}})}};var Gl=(0,tl.Z)("Table",Ne=>{const{colorTextHeading:We,colorSplit:St,colorIcon:Nt,colorIconHover:Jt,opacityLoading:Ht,colorBgContainer:En,controlInteractiveSize:Sn,headerBg:bn,headerColor:Nn,headerSortActiveBg:Xn,headerSortHoverBg:Kn,bodySortBg:fr,rowHoverBg:cr,rowSelectedBg:ur,rowSelectedHoverBg:ei,rowExpandedBg:Hr,cellPaddingBlock:ti,cellPaddingInline:Zr,cellPaddingBlockMD:hi,cellPaddingInlineMD:Oi,cellPaddingBlockSM:zi,cellPaddingInlineSM:Ai,borderColor:Qi,footerBg:sa,footerColor:yi,headerBorderRadius:Di,cellFontSize:bi,cellFontSizeMD:Fr,cellFontSizeSM:Si,headerSplitColor:Yi,fixedHeaderSortActiveBg:ga,headerFilterHoverBg:Zi,filterDropdownBg:ii,expandIconBg:ra,selectionColumnWidth:la,stickyScrollBarBg:Fa}=Ne,Ia=new ps.C(Nt),lo=new ps.C(Jt),eo=2,oa=(0,nl.TS)(Ne,{tableFontSize:bi,tableBg:En,tableRadius:Di,tablePaddingVertical:ti,tablePaddingHorizontal:Zr,tablePaddingVerticalMiddle:hi,tablePaddingHorizontalMiddle:Oi,tablePaddingVerticalSmall:zi,tablePaddingHorizontalSmall:Ai,tableBorderColor:Qi,tableHeaderTextColor:Nn,tableHeaderBg:bn,tableFooterTextColor:yi,tableFooterBg:sa,tableHeaderCellSplitColor:Yi,tableHeaderSortBg:Xn,tableHeaderSortHoverBg:Kn,tableHeaderIconColor:Ia.clone().setAlpha(Ia.getAlpha()*Ht).toRgbString(),tableHeaderIconColorHover:lo.clone().setAlpha(lo.getAlpha()*Ht).toRgbString(),tableBodySortBg:fr,tableFixedHeaderSortActiveBg:ga,tableHeaderFilterActiveBg:Zi,tableFilterDropdownBg:ii,tableRowHoverBg:cr,tableSelectedRowBg:ur,tableSelectedRowHoverBg:ei,zIndexTableFixed:eo,zIndexTableSticky:eo+1,tableFontSizeMiddle:Fr,tableFontSizeSmall:Si,tableSelectionColumnWidth:la,tableExpandIconBg:ra,tableExpandColumnWidth:Sn+2*Ne.padding,tableExpandedRowBg:Hr,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Fa,tableScrollThumbBgHover:We,tableScrollBg:St});return[Zs(oa),Su(oa),Tl(oa),Hc(oa),xu(oa),Il(oa),Pl(oa),qc(oa),Tl(oa),bu(oa),tu(oa),ic(oa),Ul(oa),vc(oa),oc(oa),Yu(oa),Ol(oa)]},Ne=>{const{colorFillAlter:We,colorBgContainer:St,colorTextHeading:Nt,colorFillSecondary:Jt,colorFillContent:Ht,controlItemBgActive:En,controlItemBgActiveHover:Sn,padding:bn,paddingSM:Nn,paddingXS:Xn,colorBorderSecondary:Kn,borderRadiusLG:fr,fontSize:cr,controlHeight:ur,colorTextPlaceholder:ei}=Ne,Hr=new ps.C(Jt).onBackground(St).toHexShortString(),ti=new ps.C(Ht).onBackground(St).toHexShortString(),Zr=new ps.C(We).onBackground(St).toHexShortString();return{headerBg:Zr,headerColor:Nt,headerSortActiveBg:Hr,headerSortHoverBg:ti,bodySortBg:Zr,rowHoverBg:Zr,rowSelectedBg:En,rowSelectedHoverBg:Sn,rowExpandedBg:We,cellPaddingBlock:bn,cellPaddingInline:bn,cellPaddingBlockMD:Nn,cellPaddingInlineMD:Xn,cellPaddingBlockSM:Xn,cellPaddingInlineSM:Xn,borderColor:Kn,headerBorderRadius:fr,footerBg:Zr,footerColor:Nt,cellFontSize:cr,cellFontSizeMD:cr,cellFontSizeSM:cr,headerSplitColor:Kn,fixedHeaderSortActiveBg:Hr,headerFilterHoverBg:Ht,filterDropdownMenuBg:St,filterDropdownBg:St,expandIconBg:St,selectionColumnWidth:ur,stickyScrollBarBg:ei,stickyScrollBarBorderRadius:100}});const nu=[],Cu=(Ne,We)=>{const{prefixCls:St,className:Nt,rootClassName:Jt,style:Ht,size:En,bordered:Sn,dropdownPrefixCls:bn,dataSource:Nn,pagination:Xn,rowSelection:Kn,rowKey:fr="key",rowClassName:cr,columns:ur,children:ei,childrenColumnName:Hr,onChange:ti,getPopupContainer:Zr,loading:hi,expandIcon:Oi,expandable:zi,expandedRowRender:Ai,expandIconColumnIndex:Qi,indentSize:sa,scroll:yi,sortDirections:Di,locale:bi,showSorterTooltip:Fr=!0,virtual:Si}=Ne,Yi=pe.useMemo(()=>ur||ze(ei),[ur,ei]),ga=pe.useMemo(()=>Yi.some(Ta=>Ta.responsive),[Yi]),Zi=(0,xa.Z)(ga),ii=pe.useMemo(()=>{const Ta=new Set(Object.keys(Zi).filter(Xa=>Zi[Xa]));return Yi.filter(Xa=>!Xa.responsive||Xa.responsive.some(zo=>Ta.has(zo)))},[Yi,Zi]),ra=(0,Mi.Z)(Ne,["className","style","columns"]),{locale:la=wa.Z,direction:Fa,table:Ia,renderEmpty:lo,getPrefixCls:eo,getPopupContainer:oa}=pe.useContext(ca.E_),Co=(0,Wi.Z)(En),Ma=Object.assign(Object.assign({},la.Table),bi),ao=Nn||nu,to=eo("table",St),Po=eo("dropdown",bn),ji=Object.assign({childrenColumnName:Hr,expandIconColumnIndex:Qi},zi),{childrenColumnName:_i="children"}=ji,Ki=pe.useMemo(()=>ao.some(Ta=>Ta==null?void 0:Ta[_i])?"nest":Ai||zi&&zi.expandedRowRender?"row":null,[ao]),Pi={body:pe.useRef()},Pa=pe.useMemo(()=>typeof fr=="function"?fr:Ta=>Ta==null?void 0:Ta[fr],[fr]),[Ni]=hs(ao,_i,Pa),ia={},ka=function(Ta,Xa){let zo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Qa,_o,rs;const As=Object.assign(Object.assign({},ia),Ta);zo&&((Qa=ia.resetPagination)===null||Qa===void 0||Qa.call(ia),!((_o=As.pagination)===null||_o===void 0)&&_o.current&&(As.pagination.current=1),Xn&&Xn.onChange&&Xn.onChange(1,(rs=As.pagination)===null||rs===void 0?void 0:rs.pageSize)),yi&&yi.scrollToFirstRowOnChange!==!1&&Pi.body.current&&(0,da.Z)(0,{getContainer:()=>Pi.body.current}),ti==null||ti(As.pagination,As.filters,As.sorter,{currentDataSource:Mo(Ha(ao,As.sorterStates,_i),As.filterStates),action:Xa})},Ea=(Ta,Xa)=>{ka({sorter:Ta,sorterStates:Xa},"sort",!1)},[es,To,js,Eo]=Ga({prefixCls:to,mergedColumns:ii,onSorterChange:Ea,sortDirections:Di||["ascend","descend"],tableLocale:Ma,showSorterTooltip:Fr}),Js=pe.useMemo(()=>Ha(ao,To,_i),[ao,To]);ia.sorter=Eo(),ia.sorterStates=To;const Ao=(Ta,Xa)=>{ka({filters:Ta,filterStates:Xa},"filter",!0)},[Vo,xl,Da]=Wo({prefixCls:to,locale:Ma,dropdownPrefixCls:Po,mergedColumns:ii,onFilterChange:Ao,getPopupContainer:Zr||oa}),Or=Mo(Js,xl);ia.filters=Da,ia.filterStates=xl;const _a=pe.useMemo(()=>{const Ta={};return Object.keys(Da).forEach(Xa=>{Da[Xa]!==null&&(Ta[Xa]=Da[Xa])}),Object.assign(Object.assign({},js),{filters:Ta})},[js,Da]),[Lo]=xs(_a),Oo=(Ta,Xa)=>{ka({pagination:Object.assign(Object.assign({},ia.pagination),{current:Ta,pageSize:Xa})},"paginate")},[$i,Va]=Rs(Or.length,Oo,Xn);ia.pagination=Xn===!1?{}:vo($i,Xn),ia.resetPagination=Va;const Uo=pe.useMemo(()=>{if(Xn===!1||!$i.pageSize)return Or;const{current:Ta=1,total:Xa,pageSize:zo=ko}=$i;return Or.length<Xa?Or.length>zo?Or.slice((Ta-1)*zo,Ta*zo):Or:Or.slice((Ta-1)*zo,Ta*zo)},[!!Xn,Or,$i&&$i.current,$i&&$i.pageSize,$i&&$i.total]),[zs,fl]=Fs({prefixCls:to,data:Or,pageData:Uo,getRowKey:Pa,getRecordByKey:Ni,expandType:Ki,childrenColumnName:_i,locale:Ma,getPopupContainer:Zr||oa},Kn),ws=(Ta,Xa,zo)=>{let Qa;return typeof cr=="function"?Qa=tt()(cr(Ta,Xa,zo)):Qa=tt()(cr),tt()({[`${to}-row-selected`]:fl.has(Pa(Ta,Xa))},Qa)};ji.__PARENT_RENDER_ICON__=ji.expandIcon,ji.expandIcon=ji.expandIcon||Oi||Xi(Ma),Ki==="nest"&&ji.expandIconColumnIndex===void 0?ji.expandIconColumnIndex=Kn?1:0:ji.expandIconColumnIndex>0&&Kn&&(ji.expandIconColumnIndex-=1),typeof ji.indentSize!="number"&&(ji.indentSize=typeof sa=="number"?sa:15);const ts=pe.useCallback(Ta=>Lo(zs(Vo(es(Ta)))),[es,Vo,zs]);let il,ns;if(Xn!==!1&&($i!=null&&$i.total)){let Ta;$i.size?Ta=$i.size:Ta=Co==="small"||Co==="middle"?"small":void 0;const Xa=_o=>pe.createElement(Br.Z,Object.assign({},$i,{className:tt()(`${to}-pagination ${to}-pagination-${_o}`,$i.className),size:Ta})),zo=Fa==="rtl"?"left":"right",{position:Qa}=$i;if(Qa!==null&&Array.isArray(Qa)){const _o=Qa.find(Sl=>Sl.includes("top")),rs=Qa.find(Sl=>Sl.includes("bottom")),As=Qa.every(Sl=>`${Sl}`=="none");!_o&&!rs&&!As&&(ns=Xa(zo)),_o&&(il=Xa(_o.toLowerCase().replace("top",""))),rs&&(ns=Xa(rs.toLowerCase().replace("bottom","")))}else ns=Xa(zo)}let Ss;typeof hi=="boolean"?Ss={spinning:hi}:typeof hi=="object"&&(Ss=Object.assign({spinning:!0},hi));const[cs,co]=Gl(to),[,uo]=(0,Er.Z)(),ms=tt()(`${to}-wrapper`,Ia==null?void 0:Ia.className,{[`${to}-wrapper-rtl`]:Fa==="rtl"},Nt,Jt,co),wl=Object.assign(Object.assign({},Ia==null?void 0:Ia.style),Ht),Vs=bi&&bi.emptyText||(lo==null?void 0:lo("Table"))||pe.createElement(qi.Z,{componentName:"Table"}),hl=Si?Qs:$o,Rl={},ru=pe.useMemo(()=>{const{fontSize:Ta,lineHeight:Xa,padding:zo,paddingXS:Qa,paddingSM:_o}=uo,rs=Math.floor(Ta*Xa);switch(Co){case"large":return zo*2+rs;case"small":return Qa*2+rs;default:return _o*2+rs}},[uo,Co]);return Si&&(Rl.listItemHeight=ru),cs(pe.createElement("div",{ref:We,className:ms,style:wl},pe.createElement(kr.Z,Object.assign({spinning:!1},Ss),il,pe.createElement(hl,Object.assign({},Rl,ra,{columns:ii,direction:Fa,expandable:ji,prefixCls:to,className:tt()({[`${to}-middle`]:Co==="middle",[`${to}-small`]:Co==="small",[`${to}-bordered`]:Sn,[`${to}-empty`]:ao.length===0}),data:Uo,rowKey:Pa,rowClassName:ws,emptyText:Vs,internalHooks:Ae,internalRefs:Pi,transformColumns:ts})),ns)))};var Eu=pe.forwardRef(Cu);const Ju=(Ne,We)=>{const St=pe.useRef(0);return St.current+=1,pe.createElement(Eu,Object.assign({},Ne,{ref:We,_renderTimes:St.current}))},ks=pe.forwardRef(Ju);ks.SELECTION_COLUMN=yo,ks.EXPAND_COLUMN=ae,ks.SELECTION_ALL=io,ks.SELECTION_INVERT=Zo,ks.SELECTION_NONE=Qo,ks.Column=xr,ks.ColumnGroup=mi,ks.Summary=Ie;var Nl=ks,qu=Nl},99313:function(Mn,tn,oe){"use strict";oe.d(tn,{default:function(){return Rt}});var ae=oe(99267),Ae=oe(18785),Le=oe(62772),ct=oe(92310),xe=oe.n(ct),Ee=oe(60499),pe=oe(18642),ve=oe(85899),Me=oe(72190),_e=oe(43749),vt=oe(42244),Fe=oe(59301),qe=oe(49658),pt=oe(18929),Ke=oe(77900),je=(0,Fe.createContext)(null),ft=Fe.forwardRef(function(ze,$e){var Xe=ze.prefixCls,Ze=ze.className,Et=ze.style,Tt=ze.id,hn=ze.active,ln=ze.tabKey,wn=ze.children;return Fe.createElement("div",{id:Tt&&"".concat(Tt,"-panel-").concat(ln),role:"tabpanel",tabIndex:hn?0:-1,"aria-labelledby":Tt&&"".concat(Tt,"-tab-").concat(ln),"aria-hidden":!hn,style:Et,className:xe()(Xe,hn&&"".concat(Xe,"-active"),Ze),ref:$e},wn)}),mt=ft,Bt=["key","forceRender","style","className"];function ht(ze){var $e=ze.id,Xe=ze.activeKey,Ze=ze.animated,Et=ze.tabPosition,Tt=ze.destroyInactiveTabPane,hn=Fe.useContext(je),ln=hn.prefixCls,wn=hn.tabs,Tn=Ze.tabPane,Fn="".concat(ln,"-tabpane");return Fe.createElement("div",{className:xe()("".concat(ln,"-content-holder"))},Fe.createElement("div",{className:xe()("".concat(ln,"-content"),"".concat(ln,"-content-").concat(Et),(0,pe.Z)({},"".concat(ln,"-content-animated"),Tn))},wn.map(function(jn){var Qt=jn.key,Dn=jn.forceRender,Dt=jn.style,Zt=jn.className,on=(0,vt.Z)(jn,Bt),cn=Qt===Xe;return Fe.createElement(Ke.default,(0,Ee.Z)({key:Qt,visible:cn,forceRender:Dn,removeOnLeave:!!Tt,leavedClassName:"".concat(Fn,"-hidden")},Ze.tabPaneMotion),function(In,en){var Ln=In.style,it=In.className;return Fe.createElement(mt,(0,Ee.Z)({},on,{prefixCls:Fn,id:$e,tabKey:Qt,animated:Tn,active:cn,style:(0,ve.Z)((0,ve.Z)({},Dt),Ln),className:xe()(Zt,it),ref:en}))})})))}var nt=oe(77654),Re=oe(29301),Ce=oe(6089),Je=oe(8654),et={width:0,height:0,left:0,top:0};function wt(ze,$e,Xe){return(0,Fe.useMemo)(function(){for(var Ze,Et=new Map,Tt=$e.get((Ze=ze[0])===null||Ze===void 0?void 0:Ze.key)||et,hn=Tt.left+Tt.width,ln=0;ln<ze.length;ln+=1){var wn=ze[ln].key,Tn=$e.get(wn);if(!Tn){var Fn;Tn=$e.get((Fn=ze[ln-1])===null||Fn===void 0?void 0:Fn.key)||et}var jn=Et.get(wn)||(0,ve.Z)({},Tn);jn.right=hn-jn.left-jn.width,Et.set(wn,jn)}return Et},[ze.map(function(Ze){return Ze.key}).join("_"),$e,Xe])}function Qe(ze,$e){var Xe=Fe.useRef(ze),Ze=Fe.useState({}),Et=(0,Me.Z)(Ze,2),Tt=Et[1];function hn(ln){var wn=typeof ln=="function"?ln(Xe.current):ln;wn!==Xe.current&&$e(wn,Xe.current),Xe.current=wn,Tt({})}return[Xe.current,hn]}var bt=.1,Oe=.01,Lt=20,tt=Math.pow(.995,Lt);function Ut(ze,$e){var Xe=(0,Fe.useState)(),Ze=(0,Me.Z)(Xe,2),Et=Ze[0],Tt=Ze[1],hn=(0,Fe.useState)(0),ln=(0,Me.Z)(hn,2),wn=ln[0],Tn=ln[1],Fn=(0,Fe.useState)(0),jn=(0,Me.Z)(Fn,2),Qt=jn[0],Dn=jn[1],Dt=(0,Fe.useState)(),Zt=(0,Me.Z)(Dt,2),on=Zt[0],cn=Zt[1],In=(0,Fe.useRef)();function en(dn){var xn=dn.touches[0],yn=xn.screenX,_n=xn.screenY;Tt({x:yn,y:_n}),window.clearInterval(In.current)}function Ln(dn){if(Et){dn.preventDefault();var xn=dn.touches[0],yn=xn.screenX,_n=xn.screenY;Tt({x:yn,y:_n});var Un=yn-Et.x,nr=_n-Et.y;$e(Un,nr);var mr=Date.now();Tn(mr),Dn(mr-wn),cn({x:Un,y:nr})}}function it(){if(Et&&(Tt(null),cn(null),on)){var dn=on.x/Qt,xn=on.y/Qt,yn=Math.abs(dn),_n=Math.abs(xn);if(Math.max(yn,_n)<bt)return;var Un=dn,nr=xn;In.current=window.setInterval(function(){if(Math.abs(Un)<Oe&&Math.abs(nr)<Oe){window.clearInterval(In.current);return}Un*=tt,nr*=tt,$e(Un*Lt,nr*Lt)},Lt)}}var Yt=(0,Fe.useRef)();function $t(dn){var xn=dn.deltaX,yn=dn.deltaY,_n=0,Un=Math.abs(xn),nr=Math.abs(yn);Un===nr?_n=Yt.current==="x"?xn:yn:Un>nr?(_n=xn,Yt.current="x"):(_n=yn,Yt.current="y"),$e(-_n,-_n)&&dn.preventDefault()}var vn=(0,Fe.useRef)(null);vn.current={onTouchStart:en,onTouchMove:Ln,onTouchEnd:it,onWheel:$t},Fe.useEffect(function(){function dn(Un){vn.current.onTouchStart(Un)}function xn(Un){vn.current.onTouchMove(Un)}function yn(Un){vn.current.onTouchEnd(Un)}function _n(Un){vn.current.onWheel(Un)}return document.addEventListener("touchmove",xn,{passive:!1}),document.addEventListener("touchend",yn,{passive:!1}),ze.current.addEventListener("touchstart",dn,{passive:!1}),ze.current.addEventListener("wheel",_n),function(){document.removeEventListener("touchmove",xn),document.removeEventListener("touchend",yn)}},[])}var At=oe(34280);function Mt(ze){var $e=(0,Fe.useState)(0),Xe=(0,Me.Z)($e,2),Ze=Xe[0],Et=Xe[1],Tt=(0,Fe.useRef)(0),hn=(0,Fe.useRef)();return hn.current=ze,(0,At.o)(function(){var ln;(ln=hn.current)===null||ln===void 0||ln.call(hn)},[Ze]),function(){Tt.current===Ze&&(Tt.current+=1,Et(Tt.current))}}function Wt(ze){var $e=(0,Fe.useRef)([]),Xe=(0,Fe.useState)({}),Ze=(0,Me.Z)(Xe,2),Et=Ze[1],Tt=(0,Fe.useRef)(typeof ze=="function"?ze():ze),hn=Mt(function(){var wn=Tt.current;$e.current.forEach(function(Tn){wn=Tn(wn)}),$e.current=[],Tt.current=wn,Et({})});function ln(wn){$e.current.push(wn),hn()}return[Tt.current,ln]}var It={width:0,height:0,left:0,top:0,right:0};function Ge(ze,$e,Xe,Ze,Et,Tt,hn){var ln=hn.tabs,wn=hn.tabPosition,Tn=hn.rtl,Fn,jn,Qt;return["top","bottom"].includes(wn)?(Fn="width",jn=Tn?"right":"left",Qt=Math.abs(Xe)):(Fn="height",jn="top",Qt=-Xe),(0,Fe.useMemo)(function(){if(!ln.length)return[0,0];for(var Dn=ln.length,Dt=Dn,Zt=0;Zt<Dn;Zt+=1){var on=ze.get(ln[Zt].key)||It;if(on[jn]+on[Fn]>Qt+$e){Dt=Zt-1;break}}for(var cn=0,In=Dn-1;In>=0;In-=1){var en=ze.get(ln[In].key)||It;if(en[jn]<Qt){cn=In+1;break}}return cn>=Dt?[0,0]:[cn,Dt]},[ze,$e,Ze,Et,Tt,Qt,wn,ln.map(function(Dn){return Dn.key}).join("_"),Tn])}function be(ze){var $e;return ze instanceof Map?($e={},ze.forEach(function(Xe,Ze){$e[Ze]=Xe})):$e=ze,JSON.stringify($e)}var Ye="TABS_DQ";function Pt(ze){return String(ze).replace(/"/g,Ye)}function xt(ze,$e,Xe,Ze){return!(!Xe||Ze||ze===!1||ze===void 0&&($e===!1||$e===null))}function Ue(ze,$e){var Xe=ze.prefixCls,Ze=ze.editable,Et=ze.locale,Tt=ze.style;return!Ze||Ze.showAdd===!1?null:Fe.createElement("button",{ref:$e,type:"button",className:"".concat(Xe,"-nav-add"),style:Tt,"aria-label":(Et==null?void 0:Et.addAriaLabel)||"Add tab",onClick:function(ln){Ze.onEdit("add",{event:ln})}},Ze.addIcon||"+")}var at=Fe.forwardRef(Ue),Ot=Fe.forwardRef(function(ze,$e){var Xe=ze.position,Ze=ze.prefixCls,Et=ze.extra;if(!Et)return null;var Tt,hn={};return(0,_e.Z)(Et)==="object"&&!Fe.isValidElement(Et)?hn=Et:hn.right=Et,Xe==="right"&&(Tt=hn.right),Xe==="left"&&(Tt=hn.left),Tt?Fe.createElement("div",{className:"".concat(Ze,"-extra-content"),ref:$e},Tt):null}),kn=Ot,Kt=oe(31561),gn=oe(15285),nn=oe(10228);function Gt(ze,$e){var Xe=ze.prefixCls,Ze=ze.id,Et=ze.tabs,Tt=ze.locale,hn=ze.mobile,ln=ze.moreIcon,wn=ln===void 0?"More":ln,Tn=ze.moreTransitionName,Fn=ze.style,jn=ze.className,Qt=ze.editable,Dn=ze.tabBarGutter,Dt=ze.rtl,Zt=ze.removeAriaLabel,on=ze.onTabClick,cn=ze.getPopupContainer,In=ze.popupClassName,en=(0,Fe.useState)(!1),Ln=(0,Me.Z)(en,2),it=Ln[0],Yt=Ln[1],$t=(0,Fe.useState)(null),vn=(0,Me.Z)($t,2),dn=vn[0],xn=vn[1],yn="".concat(Ze,"-more-popup"),_n="".concat(Xe,"-dropdown"),Un=dn!==null?"".concat(yn,"-").concat(dn):null,nr=Tt==null?void 0:Tt.dropdownAriaLabel;function mr($r,Cr){$r.preventDefault(),$r.stopPropagation(),Qt.onEdit("remove",{key:Cr,event:$r})}var Tr=Fe.createElement(gn.ZP,{onClick:function(Cr){var Lr=Cr.key,ri=Cr.domEvent;on(Lr,ri),Yt(!1)},prefixCls:"".concat(_n,"-menu"),id:yn,tabIndex:-1,role:"listbox","aria-activedescendant":Un,selectedKeys:[dn],"aria-label":nr!==void 0?nr:"expanded dropdown"},Et.map(function($r){var Cr=$r.closable,Lr=$r.disabled,ri=$r.closeIcon,Kr=$r.key,Ei=$r.label,Ri=xt(Cr,ri,Qt,Lr);return Fe.createElement(gn.sN,{key:Kr,id:"".concat(yn,"-").concat(Kr),role:"option","aria-controls":Ze&&"".concat(Ze,"-panel-").concat(Kr),disabled:Lr},Fe.createElement("span",null,Ei),Ri&&Fe.createElement("button",{type:"button","aria-label":Zt||"remove",tabIndex:0,className:"".concat(_n,"-menu-item-remove"),onClick:function(qn){qn.stopPropagation(),mr(qn,Kr)}},ri||Qt.removeIcon||"\xD7"))}));function jr($r){for(var Cr=Et.filter(function(Ri){return!Ri.disabled}),Lr=Cr.findIndex(function(Ri){return Ri.key===dn})||0,ri=Cr.length,Kr=0;Kr<ri;Kr+=1){Lr=(Lr+$r+ri)%ri;var Ei=Cr[Lr];if(!Ei.disabled){xn(Ei.key);return}}}function br($r){var Cr=$r.which;if(!it){[nn.Z.DOWN,nn.Z.SPACE,nn.Z.ENTER].includes(Cr)&&(Yt(!0),$r.preventDefault());return}switch(Cr){case nn.Z.UP:jr(-1),$r.preventDefault();break;case nn.Z.DOWN:jr(1),$r.preventDefault();break;case nn.Z.ESC:Yt(!1);break;case nn.Z.SPACE:case nn.Z.ENTER:dn!==null&&on(dn,$r);break}}(0,Fe.useEffect)(function(){var $r=document.getElementById(Un);$r&&$r.scrollIntoView&&$r.scrollIntoView(!1)},[dn]),(0,Fe.useEffect)(function(){it||xn(null)},[it]);var ir=(0,pe.Z)({},Dt?"marginRight":"marginLeft",Dn);Et.length||(ir.visibility="hidden",ir.order=1);var Ur=xe()((0,pe.Z)({},"".concat(_n,"-rtl"),Dt)),Nr=hn?null:Fe.createElement(Kt.Z,{prefixCls:_n,overlay:Tr,trigger:["hover"],visible:Et.length?it:!1,transitionName:Tn,onVisibleChange:Yt,overlayClassName:xe()(Ur,In),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:cn},Fe.createElement("button",{type:"button",className:"".concat(Xe,"-nav-more"),style:ir,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":yn,id:"".concat(Ze,"-more"),"aria-expanded":it,onKeyDown:br},wn));return Fe.createElement("div",{className:xe()("".concat(Xe,"-nav-operations"),jn),style:Fn,ref:$e},Nr,Fe.createElement(at,{prefixCls:Xe,locale:Tt,editable:Qt}))}var Xt=Fe.memo(Fe.forwardRef(Gt),function(ze,$e){return $e.tabMoving});function ye(ze){var $e,Xe=ze.prefixCls,Ze=ze.id,Et=ze.active,Tt=ze.tab,hn=Tt.key,ln=Tt.label,wn=Tt.disabled,Tn=Tt.closeIcon,Fn=ze.closable,jn=ze.renderWrapper,Qt=ze.removeAriaLabel,Dn=ze.editable,Dt=ze.onClick,Zt=ze.onFocus,on=ze.style,cn="".concat(Xe,"-tab"),In=xt(Fn,Tn,Dn,wn);function en(Yt){wn||Dt(Yt)}function Ln(Yt){Yt.preventDefault(),Yt.stopPropagation(),Dn.onEdit("remove",{key:hn,event:Yt})}var it=Fe.createElement("div",{key:hn,"data-node-key":Pt(hn),className:xe()(cn,($e={},(0,pe.Z)($e,"".concat(cn,"-with-remove"),In),(0,pe.Z)($e,"".concat(cn,"-active"),Et),(0,pe.Z)($e,"".concat(cn,"-disabled"),wn),$e)),style:on,onClick:en},Fe.createElement("div",{role:"tab","aria-selected":Et,id:Ze&&"".concat(Ze,"-tab-").concat(hn),className:"".concat(cn,"-btn"),"aria-controls":Ze&&"".concat(Ze,"-panel-").concat(hn),"aria-disabled":wn,tabIndex:wn?null:0,onClick:function($t){$t.stopPropagation(),en($t)},onKeyDown:function($t){[nn.Z.SPACE,nn.Z.ENTER].includes($t.which)&&($t.preventDefault(),en($t))},onFocus:Zt},ln),In&&Fe.createElement("button",{type:"button","aria-label":Qt||"remove",tabIndex:0,className:"".concat(cn,"-remove"),onClick:function($t){$t.stopPropagation(),Ln($t)}},Tn||Dn.removeIcon||"\xD7"));return jn?jn(it):it}var ue=ye,ce=oe(16089),de=function($e){var Xe=$e.activeTabOffset,Ze=$e.horizontal,Et=$e.rtl,Tt=$e.indicatorSize,hn=(0,Fe.useState)(),ln=(0,Me.Z)(hn,2),wn=ln[0],Tn=ln[1],Fn=(0,Fe.useRef)(),jn=function(Dt){return typeof Tt=="function"?Tt(Dt):typeof Tt=="number"?Tt:Dt};function Qt(){ce.Z.cancel(Fn.current)}return(0,Fe.useEffect)(function(){var Dn={};return Xe&&(Ze?(Et?(Dn.right=Xe.right+Xe.width/2,Dn.transform="translateX(50%)"):(Dn.left=Xe.left+Xe.width/2,Dn.transform="translateX(-50%)"),Dn.width=jn(Xe.width)):(Dn.top=Xe.top+Xe.height/2,Dn.transform="translateY(-50%)",Dn.height=jn(Xe.height))),Qt(),Fn.current=(0,ce.Z)(function(){Tn(Dn)}),Qt},[Xe,Ze,Et,Tt]),{style:wn}},he=de,se=function($e){var Xe=$e.current||{},Ze=Xe.offsetWidth,Et=Ze===void 0?0:Ze,Tt=Xe.offsetHeight,hn=Tt===void 0?0:Tt;return[Et,hn]},ke=function($e,Xe){return $e[Xe?0:1]};function gt(ze,$e){var Xe,Ze=Fe.useContext(je),Et=Ze.prefixCls,Tt=Ze.tabs,hn=ze.className,ln=ze.style,wn=ze.id,Tn=ze.animated,Fn=ze.activeKey,jn=ze.rtl,Qt=ze.extra,Dn=ze.editable,Dt=ze.locale,Zt=ze.tabPosition,on=ze.tabBarGutter,cn=ze.children,In=ze.onTabClick,en=ze.onTabScroll,Ln=ze.indicatorSize,it=(0,Fe.useRef)(),Yt=(0,Fe.useRef)(),$t=(0,Fe.useRef)(),vn=(0,Fe.useRef)(),dn=(0,Fe.useRef)(),xn=(0,Fe.useRef)(),yn=(0,Fe.useRef)(),_n=Zt==="top"||Zt==="bottom",Un=Qe(0,function(di,ki){_n&&en&&en({direction:di>ki?"left":"right"})}),nr=(0,Me.Z)(Un,2),mr=nr[0],Tr=nr[1],jr=Qe(0,function(di,ki){!_n&&en&&en({direction:di>ki?"top":"bottom"})}),br=(0,Me.Z)(jr,2),ir=br[0],Ur=br[1],Nr=(0,Fe.useState)([0,0]),$r=(0,Me.Z)(Nr,2),Cr=$r[0],Lr=$r[1],ri=(0,Fe.useState)([0,0]),Kr=(0,Me.Z)(ri,2),Ei=Kr[0],Ri=Kr[1],zr=(0,Fe.useState)([0,0]),qn=(0,Me.Z)(zr,2),Jn=qn[0],Jr=qn[1],Rr=(0,Fe.useState)([0,0]),li=(0,Me.Z)(Rr,2),pi=li[0],fi=li[1],Qr=Wt(new Map),oi=(0,Me.Z)(Qr,2),ta=oi[0],xr=oi[1],Ir=wt(Tt,ta,Ei[0]),mi=ke(Cr,_n),Mi=ke(Ei,_n),da=ke(Jn,_n),ca=ke(pi,_n),qi=mi<Mi+da,Wi=qi?mi-ca:mi-da,xa="".concat(Et,"-nav-operations-hidden"),wa=0,Br=0;_n&&jn?(wa=0,Br=Math.max(0,Mi-Wi)):(wa=Math.min(0,Wi-Mi),Br=0);function kr(di){return di<wa?wa:di>Br?Br:di}var Er=(0,Fe.useRef)(),Gr=(0,Fe.useState)(),Xi=(0,Me.Z)(Gr,2),fa=Xi[0],va=Xi[1];function pa(){va(Date.now())}function ua(){window.clearTimeout(Er.current)}Ut(vn,function(di,ki){function na(vi,wi){vi(function(Gi){var Sa=kr(Gi+wi);return Sa})}return qi?(_n?na(Tr,di):na(Ur,ki),ua(),pa(),!0):!1}),(0,Fe.useEffect)(function(){return ua(),fa&&(Er.current=window.setTimeout(function(){va(0)},100)),ua},[fa]);var Aa=Ge(Ir,Wi,_n?mr:ir,Mi,da,ca,(0,ve.Z)((0,ve.Z)({},ze),{},{tabs:Tt})),Ya=(0,Me.Z)(Aa,2),Ua=Ya[0],go=Ya[1],Fi=(0,Ce.Z)(function(){var di=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fn,ki=Ir.get(di)||{width:0,height:0,left:0,right:0,top:0};if(_n){var na=mr;jn?ki.right<mr?na=ki.right:ki.right+ki.width>mr+Wi&&(na=ki.right+ki.width-Wi):ki.left<-mr?na=-ki.left:ki.left+ki.width>-mr+Wi&&(na=-(ki.left+ki.width-Wi)),Ur(0),Tr(kr(na))}else{var vi=ir;ki.top<-ir?vi=-ki.top:ki.top+ki.height>-ir+Wi&&(vi=-(ki.top+ki.height-Wi)),Tr(0),Ur(kr(vi))}}),Vi={};Zt==="top"||Zt==="bottom"?Vi[jn?"marginRight":"marginLeft"]=on:Vi.marginTop=on;var La=Tt.map(function(di,ki){var na=di.key;return Fe.createElement(ue,{id:wn,prefixCls:Et,key:na,tab:di,style:ki===0?void 0:Vi,closable:di.closable,editable:Dn,active:na===Fn,renderWrapper:cn,removeAriaLabel:Dt==null?void 0:Dt.removeAriaLabel,onClick:function(wi){In(na,wi)},onFocus:function(){Fi(na),pa(),vn.current&&(jn||(vn.current.scrollLeft=0),vn.current.scrollTop=0)}})}),aa=function(){return xr(function(){var ki=new Map;return Tt.forEach(function(na){var vi,wi=na.key,Gi=(vi=dn.current)===null||vi===void 0?void 0:vi.querySelector('[data-node-key="'.concat(Pt(wi),'"]'));Gi&&ki.set(wi,{width:Gi.offsetWidth,height:Gi.offsetHeight,left:Gi.offsetLeft,top:Gi.offsetTop})}),ki})};(0,Fe.useEffect)(function(){aa()},[Tt.map(function(di){return di.key}).join("_")]);var ha=Mt(function(){var di=se(it),ki=se(Yt),na=se($t);Lr([di[0]-ki[0]-na[0],di[1]-ki[1]-na[1]]);var vi=se(yn);Jr(vi);var wi=se(xn);fi(wi);var Gi=se(dn);Ri([Gi[0]-vi[0],Gi[1]-vi[1]]),aa()}),An=Tt.slice(0,Ua),Cn=Tt.slice(go+1),mn=[].concat((0,nt.Z)(An),(0,nt.Z)(Cn)),Wn=Ir.get(Fn),ar=he({activeTabOffset:Wn,horizontal:_n,rtl:jn,indicatorSize:Ln}),or=ar.style;(0,Fe.useEffect)(function(){Fi()},[Fn,wa,Br,be(Wn),be(Ir),_n]),(0,Fe.useEffect)(function(){ha()},[jn]);var Hn=!!mn.length,wr="".concat(Et,"-nav-wrap"),ci,Li,ui,yr;return _n?jn?(Li=mr>0,ci=mr!==Br):(ci=mr<0,Li=mr!==wa):(ui=ir<0,yr=ir!==wa),Fe.createElement(Re.Z,{onResize:ha},Fe.createElement("div",{ref:(0,Je.x1)($e,it),role:"tablist",className:xe()("".concat(Et,"-nav"),hn),style:ln,onKeyDown:function(){pa()}},Fe.createElement(kn,{ref:Yt,position:"left",extra:Qt,prefixCls:Et}),Fe.createElement(Re.Z,{onResize:ha},Fe.createElement("div",{className:xe()(wr,(Xe={},(0,pe.Z)(Xe,"".concat(wr,"-ping-left"),ci),(0,pe.Z)(Xe,"".concat(wr,"-ping-right"),Li),(0,pe.Z)(Xe,"".concat(wr,"-ping-top"),ui),(0,pe.Z)(Xe,"".concat(wr,"-ping-bottom"),yr),Xe)),ref:vn},Fe.createElement(Re.Z,{onResize:ha},Fe.createElement("div",{ref:dn,className:"".concat(Et,"-nav-list"),style:{transform:"translate(".concat(mr,"px, ").concat(ir,"px)"),transition:fa?"none":void 0}},La,Fe.createElement(at,{ref:yn,prefixCls:Et,locale:Dt,editable:Dn,style:(0,ve.Z)((0,ve.Z)({},La.length===0?void 0:Vi),{},{visibility:Hn?"hidden":null})}),Fe.createElement("div",{className:xe()("".concat(Et,"-ink-bar"),(0,pe.Z)({},"".concat(Et,"-ink-bar-animated"),Tn.inkBar)),style:or}))))),Fe.createElement(Xt,(0,Ee.Z)({},ze,{removeAriaLabel:Dt==null?void 0:Dt.removeAriaLabel,ref:xn,prefixCls:Et,tabs:mn,className:!Hn&&xa,tabMoving:!!fa})),Fe.createElement(kn,{ref:$t,position:"right",extra:Qt,prefixCls:Et})))}var Ie=Fe.forwardRef(gt),Be=["renderTabBar"],yt=["label","key"];function rt(ze){var $e=ze.renderTabBar,Xe=(0,vt.Z)(ze,Be),Ze=Fe.useContext(je),Et=Ze.tabs;if($e){var Tt=(0,ve.Z)((0,ve.Z)({},Xe),{},{panes:Et.map(function(hn){var ln=hn.label,wn=hn.key,Tn=(0,vt.Z)(hn,yt);return Fe.createElement(mt,(0,Ee.Z)({tab:ln,key:wn,tabKey:wn},Tn))})});return $e(Tt,Ie)}return Fe.createElement(Ie,Xe)}var Ve=oe(48736);function Ct(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},$e;return ze===!1?$e={inkBar:!1,tabPane:!1}:ze===!0?$e={inkBar:!0,tabPane:!1}:$e=(0,ve.Z)({inkBar:!0},(0,_e.Z)(ze)==="object"?ze:{}),$e.tabPaneMotion&&$e.tabPane===void 0&&($e.tabPane=!0),!$e.tabPaneMotion&&$e.tabPane&&($e.tabPane=!1),$e}var rn=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],lt=0;function _t(ze,$e){var Xe,Ze=ze.id,Et=ze.prefixCls,Tt=Et===void 0?"rc-tabs":Et,hn=ze.className,ln=ze.items,wn=ze.direction,Tn=ze.activeKey,Fn=ze.defaultActiveKey,jn=ze.editable,Qt=ze.animated,Dn=ze.tabPosition,Dt=Dn===void 0?"top":Dn,Zt=ze.tabBarGutter,on=ze.tabBarStyle,cn=ze.tabBarExtraContent,In=ze.locale,en=ze.moreIcon,Ln=ze.moreTransitionName,it=ze.destroyInactiveTabPane,Yt=ze.renderTabBar,$t=ze.onChange,vn=ze.onTabClick,dn=ze.onTabScroll,xn=ze.getPopupContainer,yn=ze.popupClassName,_n=ze.indicatorSize,Un=(0,vt.Z)(ze,rn),nr=Fe.useMemo(function(){return(ln||[]).filter(function(fi){return fi&&(0,_e.Z)(fi)==="object"&&"key"in fi})},[ln]),mr=wn==="rtl",Tr=Ct(Qt),jr=(0,Fe.useState)(!1),br=(0,Me.Z)(jr,2),ir=br[0],Ur=br[1];(0,Fe.useEffect)(function(){Ur((0,qe.Z)())},[]);var Nr=(0,pt.Z)(function(){var fi;return(fi=nr[0])===null||fi===void 0?void 0:fi.key},{value:Tn,defaultValue:Fn}),$r=(0,Me.Z)(Nr,2),Cr=$r[0],Lr=$r[1],ri=(0,Fe.useState)(function(){return nr.findIndex(function(fi){return fi.key===Cr})}),Kr=(0,Me.Z)(ri,2),Ei=Kr[0],Ri=Kr[1];(0,Fe.useEffect)(function(){var fi=nr.findIndex(function(oi){return oi.key===Cr});if(fi===-1){var Qr;fi=Math.max(0,Math.min(Ei,nr.length-1)),Lr((Qr=nr[fi])===null||Qr===void 0?void 0:Qr.key)}Ri(fi)},[nr.map(function(fi){return fi.key}).join("_"),Cr,Ei]);var zr=(0,pt.Z)(null,{value:Ze}),qn=(0,Me.Z)(zr,2),Jn=qn[0],Jr=qn[1];(0,Fe.useEffect)(function(){Ze||(Jr("rc-tabs-".concat(lt)),lt+=1)},[]);function Rr(fi,Qr){vn==null||vn(fi,Qr);var oi=fi!==Cr;Lr(fi),oi&&($t==null||$t(fi))}var li={id:Jn,activeKey:Cr,animated:Tr,tabPosition:Dt,rtl:mr,mobile:ir},pi=(0,ve.Z)((0,ve.Z)({},li),{},{editable:jn,locale:In,moreIcon:en,moreTransitionName:Ln,tabBarGutter:Zt,onTabClick:Rr,onTabScroll:dn,extra:cn,style:on,panes:null,getPopupContainer:xn,popupClassName:yn,indicatorSize:_n});return Fe.createElement(je.Provider,{value:{tabs:nr,prefixCls:Tt}},Fe.createElement("div",(0,Ee.Z)({ref:$e,id:Ze,className:xe()(Tt,"".concat(Tt,"-").concat(Dt),(Xe={},(0,pe.Z)(Xe,"".concat(Tt,"-mobile"),ir),(0,pe.Z)(Xe,"".concat(Tt,"-editable"),jn),(0,pe.Z)(Xe,"".concat(Tt,"-rtl"),mr),Xe),hn)},Un),Fe.createElement(rt,(0,Ee.Z)({},pi,{renderTabBar:Yt})),Fe.createElement(ht,(0,Ee.Z)({destroyInactiveTabPane:it},li,{animated:Tr}))))}var fn=Fe.forwardRef(_t),ut=fn,De=ut,dt=oe(36355),Ft=oe(19716),an=()=>null,Bn=oe(62892);const qt={motionAppear:!1,motionEnter:!0,motionLeave:!0};function pn(ze){let $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Xe;return $e===!1?Xe={inkBar:!1,tabPane:!1}:$e===!0?Xe={inkBar:!0,tabPane:!0}:Xe=Object.assign({inkBar:!0},typeof $e=="object"?$e:{}),Xe.tabPane&&(Xe.tabPaneMotion=Object.assign(Object.assign({},qt),{motionName:(0,Bn.m)(ze,"switch")})),Xe}var zn=oe(11592),Vn=function(ze,$e){var Xe={};for(var Ze in ze)Object.prototype.hasOwnProperty.call(ze,Ze)&&$e.indexOf(Ze)<0&&(Xe[Ze]=ze[Ze]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Ze=Object.getOwnPropertySymbols(ze);Et<Ze.length;Et++)$e.indexOf(Ze[Et])<0&&Object.prototype.propertyIsEnumerable.call(ze,Ze[Et])&&(Xe[Ze[Et]]=ze[Ze[Et]]);return Xe};function Pn(ze){return ze.filter($e=>$e)}function Qn(ze,$e){if(ze)return ze;const Xe=(0,zn.Z)($e).map(Ze=>{if(Fe.isValidElement(Ze)){const{key:Et,props:Tt}=Ze,hn=Tt||{},{tab:ln}=hn,wn=Vn(hn,["tab"]);return Object.assign(Object.assign({key:String(Et)},wn),{label:ln})}return null});return Pn(Xe)}var gr=oe(17313),rr=oe(83116),er=oe(37613),pr=oe(13826),$n=ze=>{const{componentCls:$e,motionDurationSlow:Xe}=ze;return[{[$e]:{[`${$e}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Xe}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Xe}`}}}}},[(0,pr.oN)(ze,"slide-up"),(0,pr.oN)(ze,"slide-down")]]};const Wr=ze=>{const{componentCls:$e,tabsCardPadding:Xe,cardBg:Ze,cardGutter:Et,colorBorderSecondary:Tt,itemSelectedColor:hn}=ze;return{[`${$e}-card`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab`]:{margin:0,padding:Xe,background:Ze,border:`${ze.lineWidth}px ${ze.lineType} ${Tt}`,transition:`all ${ze.motionDurationSlow} ${ze.motionEaseInOut}`},[`${$e}-tab-active`]:{color:hn,background:ze.colorBgContainer},[`${$e}-ink-bar`]:{visibility:"hidden"}},[`&${$e}-top, &${$e}-bottom`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab + ${$e}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Et}px`}}}},[`&${$e}-top`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab`]:{borderRadius:`${ze.borderRadiusLG}px ${ze.borderRadiusLG}px 0 0`},[`${$e}-tab-active`]:{borderBottomColor:ze.colorBgContainer}}},[`&${$e}-bottom`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab`]:{borderRadius:`0 0 ${ze.borderRadiusLG}px ${ze.borderRadiusLG}px`},[`${$e}-tab-active`]:{borderTopColor:ze.colorBgContainer}}},[`&${$e}-left, &${$e}-right`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab + ${$e}-tab`]:{marginTop:`${Et}px`}}},[`&${$e}-left`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ze.borderRadiusLG}px 0 0 ${ze.borderRadiusLG}px`}},[`${$e}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:ze.colorBgContainer}}}},[`&${$e}-right`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ze.borderRadiusLG}px ${ze.borderRadiusLG}px 0`}},[`${$e}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:ze.colorBgContainer}}}}}}},vr=ze=>{const{componentCls:$e,itemHoverColor:Xe,dropdownEdgeChildVerticalPadding:Ze}=ze;return{[`${$e}-dropdown`]:Object.assign(Object.assign({},(0,gr.Wf)(ze)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ze.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${$e}-dropdown-menu`]:{maxHeight:ze.tabsDropdownHeight,margin:0,padding:`${Ze}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:ze.colorBgContainer,backgroundClip:"padding-box",borderRadius:ze.borderRadiusLG,outline:"none",boxShadow:ze.boxShadowSecondary,"&-item":Object.assign(Object.assign({},gr.vS),{display:"flex",alignItems:"center",minWidth:ze.tabsDropdownWidth,margin:0,padding:`${ze.paddingXXS}px ${ze.paddingSM}px`,color:ze.colorText,fontWeight:"normal",fontSize:ze.fontSize,lineHeight:ze.lineHeight,cursor:"pointer",transition:`all ${ze.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:ze.marginSM},color:ze.colorTextDescription,fontSize:ze.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Xe}},"&:hover":{background:ze.controlItemBgHover},"&-disabled":{"&, &:hover":{color:ze.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},qr=ze=>{const{componentCls:$e,margin:Xe,colorBorderSecondary:Ze,horizontalMargin:Et,verticalItemPadding:Tt,verticalItemMargin:hn}=ze;return{[`${$e}-top, ${$e}-bottom`]:{flexDirection:"column",[`> ${$e}-nav, > div > ${$e}-nav`]:{margin:Et,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ze.lineWidth}px ${ze.lineType} ${Ze}`,content:"''"},[`${$e}-ink-bar`]:{height:ze.lineWidthBold,"&-animated":{transition:`width ${ze.motionDurationSlow}, left ${ze.motionDurationSlow},
|
|
|
right ${ze.motionDurationSlow}`}},[`${$e}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:ze.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:ze.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:ze.boxShadowTabsOverflowRight},[`&${$e}-nav-wrap-ping-left::before`]:{opacity:1},[`&${$e}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${$e}-top`]:{[`> ${$e}-nav,
|
|
|
> div > ${$e}-nav`]:{"&::before":{bottom:0},[`${$e}-ink-bar`]:{bottom:0}}},[`${$e}-bottom`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{order:1,marginTop:`${Xe}px`,marginBottom:0,"&::before":{top:0},[`${$e}-ink-bar`]:{top:0}},[`> ${$e}-content-holder, > div > ${$e}-content-holder`]:{order:0}},[`${$e}-left, ${$e}-right`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{flexDirection:"column",minWidth:ze.controlHeight*1.25,[`${$e}-tab`]:{padding:Tt,textAlign:"center"},[`${$e}-tab + ${$e}-tab`]:{margin:hn},[`${$e}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:ze.controlHeight},"&::before":{top:0,boxShadow:ze.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:ze.boxShadowTabsOverflowBottom},[`&${$e}-nav-wrap-ping-top::before`]:{opacity:1},[`&${$e}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${$e}-ink-bar`]:{width:ze.lineWidthBold,"&-animated":{transition:`height ${ze.motionDurationSlow}, top ${ze.motionDurationSlow}`}},[`${$e}-nav-list, ${$e}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${$e}-left`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${$e}-content-holder, > div > ${$e}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${ze.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${ze.lineWidth}px ${ze.lineType} ${ze.colorBorder}`},[`> ${$e}-content > ${$e}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:ze.paddingLG}}}},[`${$e}-right`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{order:1,[`${$e}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${$e}-content-holder, > div > ${$e}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-ze.lineWidth},borderRight:{_skip_check_:!0,value:`${ze.lineWidth}px ${ze.lineType} ${ze.colorBorder}`},[`> ${$e}-content > ${$e}-tabpane`]:{paddingRight:{_skip_check_:!0,value:ze.paddingLG}}}}}},xi=ze=>{const{componentCls:$e,cardPaddingSM:Xe,cardPaddingLG:Ze,horizontalItemPaddingSM:Et,horizontalItemPaddingLG:Tt}=ze;return{[$e]:{"&-small":{[`> ${$e}-nav`]:{[`${$e}-tab`]:{padding:Et,fontSize:ze.titleFontSizeSM}}},"&-large":{[`> ${$e}-nav`]:{[`${$e}-tab`]:{padding:Tt,fontSize:ze.titleFontSizeLG}}}},[`${$e}-card`]:{[`&${$e}-small`]:{[`> ${$e}-nav`]:{[`${$e}-tab`]:{padding:Xe}},[`&${$e}-bottom`]:{[`> ${$e}-nav ${$e}-tab`]:{borderRadius:`0 0 ${ze.borderRadius}px ${ze.borderRadius}px`}},[`&${$e}-top`]:{[`> ${$e}-nav ${$e}-tab`]:{borderRadius:`${ze.borderRadius}px ${ze.borderRadius}px 0 0`}},[`&${$e}-right`]:{[`> ${$e}-nav ${$e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ze.borderRadius}px ${ze.borderRadius}px 0`}}},[`&${$e}-left`]:{[`> ${$e}-nav ${$e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ze.borderRadius}px 0 0 ${ze.borderRadius}px`}}}},[`&${$e}-large`]:{[`> ${$e}-nav`]:{[`${$e}-tab`]:{padding:Ze}}}}}},Ar=ze=>{const{componentCls:$e,itemActiveColor:Xe,itemHoverColor:Ze,iconCls:Et,tabsHorizontalItemMargin:Tt,horizontalItemPadding:hn,itemSelectedColor:ln,itemColor:wn}=ze,Tn=`${$e}-tab`;return{[Tn]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:hn,fontSize:ze.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:wn,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Xe}},(0,gr.Qy)(ze)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-ze.marginXXS},marginLeft:{_skip_check_:!0,value:ze.marginXS},color:ze.colorTextDescription,fontSize:ze.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${ze.motionDurationSlow}`,"&:hover":{color:ze.colorTextHeading}},"&:hover":{color:Ze},[`&${Tn}-active ${Tn}-btn`]:{color:ln,textShadow:ze.tabsActiveTextShadow},[`&${Tn}-disabled`]:{color:ze.colorTextDisabled,cursor:"not-allowed"},[`&${Tn}-disabled ${Tn}-btn, &${Tn}-disabled ${$e}-remove`]:{"&:focus, &:active":{color:ze.colorTextDisabled}},[`& ${Tn}-remove ${Et}`]:{margin:0},[Et]:{marginRight:{_skip_check_:!0,value:ze.marginSM}}},[`${Tn} + ${Tn}`]:{margin:{_skip_check_:!0,value:Tt}}}},dr=ze=>{const{componentCls:$e,tabsHorizontalItemMarginRTL:Xe,iconCls:Ze,cardGutter:Et}=ze;return{[`${$e}-rtl`]:{direction:"rtl",[`${$e}-nav`]:{[`${$e}-tab`]:{margin:{_skip_check_:!0,value:Xe},[`${$e}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ze]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${ze.marginSM}px`}},[`${$e}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${ze.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${ze.marginXXS}px`},[Ze]:{margin:0}}}},[`&${$e}-left`]:{[`> ${$e}-nav`]:{order:1},[`> ${$e}-content-holder`]:{order:0}},[`&${$e}-right`]:{[`> ${$e}-nav`]:{order:0},[`> ${$e}-content-holder`]:{order:1}},[`&${$e}-card${$e}-top, &${$e}-card${$e}-bottom`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-tab + ${$e}-tab`]:{marginRight:{_skip_check_:!0,value:Et},marginLeft:{_skip_check_:!0,value:0}}}}},[`${$e}-dropdown-rtl`]:{direction:"rtl"},[`${$e}-menu-item`]:{[`${$e}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Mr=ze=>{const{componentCls:$e,tabsCardPadding:Xe,cardHeight:Ze,cardGutter:Et,itemHoverColor:Tt,itemActiveColor:hn,colorBorderSecondary:ln}=ze;return{[$e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,gr.Wf)(ze)),{display:"flex",[`> ${$e}-nav, > div > ${$e}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${$e}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${ze.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${$e}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${ze.motionDurationSlow}`},[`${$e}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${$e}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${$e}-nav-more`]:{position:"relative",padding:Xe,background:"transparent",border:0,color:ze.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:ze.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${$e}-nav-add`]:Object.assign({minWidth:Ze,marginLeft:{_skip_check_:!0,value:Et},padding:`0 ${ze.paddingXS}px`,background:"transparent",border:`${ze.lineWidth}px ${ze.lineType} ${ln}`,borderRadius:`${ze.borderRadiusLG}px ${ze.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:ze.colorText,transition:`all ${ze.motionDurationSlow} ${ze.motionEaseInOut}`,"&:hover":{color:Tt},"&:active, &:focus:not(:focus-visible)":{color:hn}},(0,gr.Qy)(ze))},[`${$e}-extra-content`]:{flex:"none"},[`${$e}-ink-bar`]:{position:"absolute",background:ze.inkBarColor,pointerEvents:"none"}}),Ar(ze)),{[`${$e}-content`]:{position:"relative",width:"100%"},[`${$e}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${$e}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${$e}-centered`]:{[`> ${$e}-nav, > div > ${$e}-nav`]:{[`${$e}-nav-wrap`]:{[`&:not([class*='${$e}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var tr=(0,rr.Z)("Tabs",ze=>{const $e=(0,er.TS)(ze,{tabsCardPadding:ze.cardPadding||`${(ze.cardHeight-Math.round(ze.fontSize*ze.lineHeight))/2-ze.lineWidth}px ${ze.padding}px`,dropdownEdgeChildVerticalPadding:ze.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ze.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${ze.horizontalItemGutter}px`});return[xi($e),dr($e),qr($e),vr($e),Wr($e),Mr($e),$n($e)]},ze=>{const $e=ze.controlHeightLG;return{zIndexPopup:ze.zIndexPopupBase+50,cardBg:ze.colorFillAlter,cardHeight:$e,cardPadding:"",cardPaddingSM:`${ze.paddingXXS*1.5}px ${ze.padding}px`,cardPaddingLG:`${ze.paddingXS}px ${ze.padding}px ${ze.paddingXXS*1.5}px`,titleFontSize:ze.fontSize,titleFontSizeLG:ze.fontSizeLG,titleFontSizeSM:ze.fontSize,inkBarColor:ze.colorPrimary,horizontalMargin:`0 0 ${ze.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${ze.paddingSM}px 0`,horizontalItemPaddingSM:`${ze.paddingXS}px 0`,horizontalItemPaddingLG:`${ze.padding}px 0`,verticalItemPadding:`${ze.paddingXS}px ${ze.paddingLG}px`,verticalItemMargin:`${ze.margin}px 0 0 0`,itemColor:ze.colorText,itemSelectedColor:ze.colorPrimary,itemHoverColor:ze.colorPrimaryHover,itemActiveColor:ze.colorPrimaryActive,cardGutter:ze.marginXXS/2}}),Gn=function(ze,$e){var Xe={};for(var Ze in ze)Object.prototype.hasOwnProperty.call(ze,Ze)&&$e.indexOf(Ze)<0&&(Xe[Ze]=ze[Ze]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Ze=Object.getOwnPropertySymbols(ze);Et<Ze.length;Et++)$e.indexOf(Ze[Et])<0&&Object.prototype.propertyIsEnumerable.call(ze,Ze[Et])&&(Xe[Ze[Et]]=ze[Ze[Et]]);return Xe};const Xr=ze=>{const{type:$e,className:Xe,rootClassName:Ze,size:Et,onEdit:Tt,hideAdd:hn,centered:ln,addIcon:wn,popupClassName:Tn,children:Fn,items:jn,animated:Qt,style:Dn,indicatorSize:Dt}=ze,Zt=Gn(ze,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:on,moreIcon:cn=Fe.createElement(Ae.Z,null)}=Zt,{direction:In,tabs:en,getPrefixCls:Ln,getPopupContainer:it}=Fe.useContext(dt.E_),Yt=Ln("tabs",on),[$t,vn]=tr(Yt);let dn;$e==="editable-card"&&(dn={onEdit:(mr,Tr)=>{let{key:jr,event:br}=Tr;Tt==null||Tt(mr==="add"?br:jr,mr)},removeIcon:Fe.createElement(ae.Z,null),addIcon:wn||Fe.createElement(Le.Z,null),showAdd:hn!==!0});const xn=Ln(),yn=Qn(jn,Fn),_n=pn(Yt,Qt),Un=(0,Ft.Z)(Et),nr=Object.assign(Object.assign({},en==null?void 0:en.style),Dn);return $t(Fe.createElement(De,Object.assign({direction:In,getPopupContainer:it,moreTransitionName:`${xn}-slide-up`},Zt,{items:yn,className:xe()({[`${Yt}-${Un}`]:Un,[`${Yt}-card`]:["card","editable-card"].includes($e),[`${Yt}-editable-card`]:$e==="editable-card",[`${Yt}-centered`]:ln},en==null?void 0:en.className,Xe,Ze,vn),popupClassName:xe()(Tn,vn),style:nr,editable:dn,moreIcon:cn,prefixCls:Yt,animated:_n,indicatorSize:Dt!=null?Dt:en==null?void 0:en.indicatorSize})))};Xr.TabPane=an;var Rt=Xr},17574:function(Mn,tn,oe){"use strict";oe.d(tn,{default:function(){return Ge}});var ae=oe(38028),Ae=oe(77654),Le=oe(52671),ct=oe(8657),xe=oe(60499),Ee=oe(59301),pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},ve=pe,Me=oe(7657),_e=function(Ye,Pt){return Ee.createElement(Me.Z,(0,xe.Z)({},Ye,{ref:Pt,icon:ve}))},vt=Ee.forwardRef(_e),Fe=vt,qe=oe(92310),pt=oe.n(qe),Ke=oe(35654),je=oe(71430),ft=oe(36355),mt=oe(56082),Bt=oe(62892),ht=oe(20648);const nt=4;function Re(be){const{dropPosition:Ye,dropLevelOffset:Pt,prefixCls:xt,indent:Ue,direction:at="ltr"}=be,Ot=at==="ltr"?"left":"right",kn=at==="ltr"?"right":"left",Kt={[Ot]:-Pt*Ue+nt,[kn]:0};switch(Ye){case-1:Kt.top=-3;break;case 1:Kt.bottom=-3;break;default:Kt.bottom=-3,Kt[Ot]=Ue+nt;break}return Ee.createElement("div",{style:Kt,className:`${xt}-drop-indicator`})}var Ce=oe(71997),et=Ee.forwardRef((be,Ye)=>{const{getPrefixCls:Pt,direction:xt,virtual:Ue,tree:at}=Ee.useContext(ft.E_),{prefixCls:Ot,className:kn,showIcon:Kt=!1,showLine:gn,switcherIcon:nn,blockNode:Gt=!1,children:Xt,checkable:ye=!1,selectable:ue=!0,draggable:ce,motion:de,style:he}=be,se=Pt("tree",Ot),ke=Pt(),gt=de!=null?de:Object.assign(Object.assign({},(0,Bt.Z)(ke)),{motionAppear:!1}),Ie=Object.assign(Object.assign({},be),{checkable:ye,selectable:ue,showIcon:Kt,motion:gt,blockNode:Gt,showLine:!!gn,dropIndicatorRender:Re}),[Be,yt]=(0,ht.ZP)(se),rt=Ee.useMemo(()=>{if(!ce)return!1;let Ct={};switch(typeof ce){case"function":Ct.nodeDraggable=ce;break;case"object":Ct=Object.assign({},ce);break;default:break}return Ct.icon!==!1&&(Ct.icon=Ct.icon||Ee.createElement(mt.Z,null)),Ct},[ce]),Ve=Ct=>Ee.createElement(Ce.Z,{prefixCls:se,switcherIcon:nn,treeNodeProps:Ct,showLine:gn});return Be(Ee.createElement(ae.Z,Object.assign({itemHeight:20,ref:Ye,virtual:Ue},Ie,{style:Object.assign(Object.assign({},at==null?void 0:at.style),he),prefixCls:se,className:pt()({[`${se}-icon-hide`]:!Kt,[`${se}-block-node`]:Gt,[`${se}-unselectable`]:!ue,[`${se}-rtl`]:xt==="rtl"},at==null?void 0:at.className,kn,yt),direction:xt,checkable:ye&&Ee.createElement("span",{className:`${se}-checkbox-inner`}),selectable:ue,switcherIcon:Ve,draggable:rt}),Xt))}),wt;(function(be){be[be.None=0]="None",be[be.Start=1]="Start",be[be.End=2]="End"})(wt||(wt={}));function Qe(be,Ye){function Pt(xt){const{key:Ue,children:at}=xt;Ye(Ue,xt)!==!1&&Qe(at||[],Ye)}be.forEach(Pt)}function bt(be){let{treeData:Ye,expandedKeys:Pt,startKey:xt,endKey:Ue}=be;const at=[];let Ot=wt.None;if(xt&&xt===Ue)return[xt];if(!xt||!Ue)return[];function kn(Kt){return Kt===xt||Kt===Ue}return Qe(Ye,Kt=>{if(Ot===wt.End)return!1;if(kn(Kt)){if(at.push(Kt),Ot===wt.None)Ot=wt.Start;else if(Ot===wt.Start)return Ot=wt.End,!1}else Ot===wt.Start&&at.push(Kt);return Pt.includes(Kt)}),at}function Oe(be,Ye){const Pt=(0,Ae.Z)(Ye),xt=[];return Qe(be,(Ue,at)=>{const Ot=Pt.indexOf(Ue);return Ot!==-1&&(xt.push(at),Pt.splice(Ot,1)),!!Pt.length}),xt}var Lt=function(be,Ye){var Pt={};for(var xt in be)Object.prototype.hasOwnProperty.call(be,xt)&&Ye.indexOf(xt)<0&&(Pt[xt]=be[xt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,xt=Object.getOwnPropertySymbols(be);Ue<xt.length;Ue++)Ye.indexOf(xt[Ue])<0&&Object.prototype.propertyIsEnumerable.call(be,xt[Ue])&&(Pt[xt[Ue]]=be[xt[Ue]]);return Pt};function tt(be){const{isLeaf:Ye,expanded:Pt}=be;return Ye?Ee.createElement(Le.Z,null):Pt?Ee.createElement(ct.Z,null):Ee.createElement(Fe,null)}function Ut(be){let{treeData:Ye,children:Pt}=be;return Ye||(0,je.zn)(Pt)}const At=(be,Ye)=>{var{defaultExpandAll:Pt,defaultExpandParent:xt,defaultExpandedKeys:Ue}=be,at=Lt(be,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ot=Ee.useRef(),kn=Ee.useRef(),Kt=()=>{const{keyEntities:rt}=(0,je.I8)(Ut(at));let Ve;return Pt?Ve=Object.keys(rt):xt?Ve=(0,Ke.r7)(at.expandedKeys||Ue||[],rt):Ve=at.expandedKeys||Ue,Ve},[gn,nn]=Ee.useState(at.selectedKeys||at.defaultSelectedKeys||[]),[Gt,Xt]=Ee.useState(()=>Kt());Ee.useEffect(()=>{"selectedKeys"in at&&nn(at.selectedKeys)},[at.selectedKeys]),Ee.useEffect(()=>{"expandedKeys"in at&&Xt(at.expandedKeys)},[at.expandedKeys]);const ye=(rt,Ve)=>{var Ct;return"expandedKeys"in at||Xt(rt),(Ct=at.onExpand)===null||Ct===void 0?void 0:Ct.call(at,rt,Ve)},ue=(rt,Ve)=>{var Ct;const{multiple:rn}=at,{node:lt,nativeEvent:_t}=Ve,{key:fn=""}=lt,ut=Ut(at),De=Object.assign(Object.assign({},Ve),{selected:!0}),dt=(_t==null?void 0:_t.ctrlKey)||(_t==null?void 0:_t.metaKey),Ft=_t==null?void 0:_t.shiftKey;let zt;rn&&dt?(zt=rt,Ot.current=fn,kn.current=zt,De.selectedNodes=Oe(ut,zt)):rn&&Ft?(zt=Array.from(new Set([].concat((0,Ae.Z)(kn.current||[]),(0,Ae.Z)(bt({treeData:ut,expandedKeys:Gt,startKey:fn,endKey:Ot.current}))))),De.selectedNodes=Oe(ut,zt)):(zt=[fn],Ot.current=fn,kn.current=zt,De.selectedNodes=Oe(ut,zt)),(Ct=at.onSelect)===null||Ct===void 0||Ct.call(at,zt,De),"selectedKeys"in at||nn(zt)},{getPrefixCls:ce,direction:de}=Ee.useContext(ft.E_),{prefixCls:he,className:se,showIcon:ke=!0,expandAction:gt="click"}=at,Ie=Lt(at,["prefixCls","className","showIcon","expandAction"]),Be=ce("tree",he),yt=pt()(`${Be}-directory`,{[`${Be}-directory-rtl`]:de==="rtl"},se);return Ee.createElement(et,Object.assign({icon:tt,ref:Ye,blockNode:!0},Ie,{showIcon:ke,expandAction:gt,prefixCls:Be,className:yt,expandedKeys:Gt,selectedKeys:gn,onSelect:ue,onExpand:ye}))};var Wt=Ee.forwardRef(At);const It=et;It.DirectoryTree=Wt,It.TreeNode=ae.O;var Ge=It},20648:function(Mn,tn,oe){"use strict";oe.d(tn,{TM:function(){return qe},Yk:function(){return Fe}});var ae=oe(36237),Ae=oe(98447),Le=oe(17313),ct=oe(8378),xe=oe(37613),Ee=oe(83116);const pe=new ae.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ve=(pt,Ke)=>({[`.${pt}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Ke.motionDurationSlow}`}}}),Me=(pt,Ke)=>({[`.${pt}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Ke.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Ke.lineWidthBold}px solid ${Ke.colorPrimary}`,borderRadius:"50%",content:'""'}}}),_e=(pt,Ke)=>{const{treeCls:je,treeNodeCls:ft,treeNodePadding:mt,titleHeight:Bt,nodeSelectedBg:ht,nodeHoverBg:nt}=Ke,Re=Ke.paddingXS;return{[je]:Object.assign(Object.assign({},(0,Le.Wf)(Ke)),{background:Ke.colorBgContainer,borderRadius:Ke.borderRadius,transition:`background-color ${Ke.motionDurationSlow}`,[`&${je}-rtl`]:{[`${je}-switcher`]:{"&_close":{[`${je}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${je}-active-focused)`]:Object.assign({},(0,Le.oN)(Ke)),[`${je}-list-holder-inner`]:{alignItems:"flex-start"},[`&${je}-block-node`]:{[`${je}-list-holder-inner`]:{alignItems:"stretch",[`${je}-node-content-wrapper`]:{flex:"auto"},[`${ft}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:mt,insetInlineStart:0,border:`1px solid ${Ke.colorPrimary}`,opacity:0,animationName:pe,animationDuration:Ke.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ft}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${mt}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${je}-node-content-wrapper`]:{color:Ke.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${je}-node-content-wrapper`]:Object.assign({},(0,Le.oN)(Ke)),[`&:not(${ft}-disabled).filter-node ${je}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${je}-draggable-icon`]:{flexShrink:0,width:Bt,lineHeight:`${Bt}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${Ke.motionDurationSlow}`,[`${ft}:hover &`]:{opacity:.45}},[`&${ft}-disabled`]:{[`${je}-draggable-icon`]:{visibility:"hidden"}}}},[`${je}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Bt}},[`${je}-draggable-icon`]:{visibility:"hidden"},[`${je}-switcher`]:Object.assign(Object.assign({},ve(pt,Ke)),{position:"relative",flex:"none",alignSelf:"stretch",width:Bt,margin:0,lineHeight:`${Bt}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${je}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:Ke.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Bt/2,bottom:-mt,marginInlineStart:-1,borderInlineEnd:`1px solid ${Ke.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Bt/2*.8,height:Bt/2,borderBottom:`1px solid ${Ke.colorBorder}`,content:'""'}}}),[`${je}-checkbox`]:{top:"initial",marginInlineEnd:Re},[`${je}-node-content-wrapper, ${je}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:Bt,margin:0,padding:`0 ${Ke.paddingXS/2}px`,color:"inherit",lineHeight:`${Bt}px`,background:"transparent",borderRadius:Ke.borderRadius,cursor:"pointer",transition:`all ${Ke.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:nt},[`&${je}-node-selected`]:{backgroundColor:ht},[`${je}-iconEle`]:{display:"inline-block",width:Bt,height:Bt,lineHeight:`${Bt}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${je}-unselectable ${je}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${je}-node-content-wrapper`]:Object.assign({lineHeight:`${Bt}px`,userSelect:"none"},Me(pt,Ke)),[`${ft}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${Ke.colorPrimary}`}},"&-show-line":{[`${je}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Bt/2,bottom:-mt,borderInlineEnd:`1px solid ${Ke.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${je}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ft}-leaf-last`]:{[`${je}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${Bt/2}px !important`}}}}})}},vt=pt=>{const{treeCls:Ke,treeNodeCls:je,treeNodePadding:ft,directoryNodeSelectedBg:mt,directoryNodeSelectedColor:Bt}=pt;return{[`${Ke}${Ke}-directory`]:{[je]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ft,insetInlineStart:0,transition:`background-color ${pt.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:pt.controlItemBgHover}},"> *":{zIndex:1},[`${Ke}-switcher`]:{transition:`color ${pt.motionDurationMid}`},[`${Ke}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${Ke}-node-selected`]:{color:Bt,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:mt},[`${Ke}-switcher`]:{color:Bt},[`${Ke}-node-content-wrapper`]:{color:Bt,background:"transparent"}}}}}},Fe=(pt,Ke)=>{const je=`.${pt}`,ft=`${je}-treenode`,mt=Ke.paddingXS/2,Bt=(0,xe.TS)(Ke,{treeCls:je,treeNodeCls:ft,treeNodePadding:mt});return[_e(pt,Bt),vt(Bt)]},qe=pt=>{const{controlHeightSM:Ke}=pt;return{titleHeight:Ke,nodeHoverBg:pt.controlItemBgHover,nodeSelectedBg:pt.controlItemBgActive}};tn.ZP=(0,Ee.Z)("Tree",(pt,Ke)=>{let{prefixCls:je}=Ke;return[{[pt.componentCls]:(0,Ae.C2)(`${je}-checkbox`,pt)},Fe(je,pt),(0,ct.Z)(pt)]},pt=>{const{colorTextLightSolid:Ke,colorPrimary:je}=pt;return Object.assign(Object.assign({},qe(pt)),{directoryNodeSelectedColor:Ke,directoryNodeSelectedBg:je})})},71997:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ft}});var ae=oe(60499),Ae=oe(59301),Le={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"},ct=Le,xe=oe(7657),Ee=function(Bt,ht){return Ae.createElement(xe.Z,(0,ae.Z)({},Bt,{ref:ht,icon:ct}))},pe=Ae.forwardRef(Ee),ve=pe,Me=oe(52671),_e=oe(58617),vt=oe(15075),Fe=oe(43531),qe=oe(92310),pt=oe.n(qe),Ke=oe(92343),ft=mt=>{const{prefixCls:Bt,switcherIcon:ht,treeNodeProps:nt,showLine:Re}=mt,{isLeaf:Ce,expanded:Je,loading:et}=nt;if(et)return Ae.createElement(_e.Z,{className:`${Bt}-switcher-loading-icon`});let wt;if(Re&&typeof Re=="object"&&(wt=Re.showLeafIcon),Ce){if(!Re)return null;if(typeof wt!="boolean"&&wt){const Oe=typeof wt=="function"?wt(nt):wt,Lt=`${Bt}-switcher-line-custom-icon`;return(0,Ke.l$)(Oe)?(0,Ke.Tm)(Oe,{className:pt()(Oe.props.className||"",Lt)}):Oe}return wt?Ae.createElement(Me.Z,{className:`${Bt}-switcher-line-icon`}):Ae.createElement("span",{className:`${Bt}-switcher-leaf-line`})}const Qe=`${Bt}-switcher-icon`,bt=typeof ht=="function"?ht(nt):ht;return(0,Ke.l$)(bt)?(0,Ke.Tm)(bt,{className:pt()(bt.props.className||"",Qe)}):bt!==void 0?bt:Re?Je?Ae.createElement(vt.Z,{className:`${Bt}-switcher-line-icon`}):Ae.createElement(Fe.Z,{className:`${Bt}-switcher-line-icon`}):Ae.createElement(ve,{className:Qe})}},54580:function(Mn,tn,oe){"use strict";oe.d(tn,{default:function(){return Dn}});var ae=oe(59301),Ae=oe(77654),Le=oe(92310),ct=oe.n(Le),xe=oe(60499),Ee=oe(38705),pe=oe(17212),ve=oe(39153),Me=oe(55401),_e=oe(18642),vt=oe(42244),Fe=oe(73001),qe=oe(43749),pt=oe(11576),Ke=oe(26112);function je(Dt,Zt){var on="cannot ".concat(Dt.method," ").concat(Dt.action," ").concat(Zt.status,"'"),cn=new Error(on);return cn.status=Zt.status,cn.method=Dt.method,cn.url=Dt.action,cn}function ft(Dt){var Zt=Dt.responseText||Dt.response;if(!Zt)return Zt;try{return JSON.parse(Zt)}catch(on){return Zt}}function mt(Dt){var Zt=new XMLHttpRequest;Dt.onProgress&&Zt.upload&&(Zt.upload.onprogress=function(en){en.total>0&&(en.percent=en.loaded/en.total*100),Dt.onProgress(en)});var on=new FormData;Dt.data&&Object.keys(Dt.data).forEach(function(In){var en=Dt.data[In];if(Array.isArray(en)){en.forEach(function(Ln){on.append("".concat(In,"[]"),Ln)});return}on.append(In,en)}),Dt.file instanceof Blob?on.append(Dt.filename,Dt.file,Dt.file.name):on.append(Dt.filename,Dt.file),Zt.onerror=function(en){Dt.onError(en)},Zt.onload=function(){return Zt.status<200||Zt.status>=300?Dt.onError(je(Dt,Zt),ft(Zt)):Dt.onSuccess(ft(Zt),Zt)},Zt.open(Dt.method,Dt.action,!0),Dt.withCredentials&&"withCredentials"in Zt&&(Zt.withCredentials=!0);var cn=Dt.headers||{};return cn["X-Requested-With"]!==null&&Zt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(cn).forEach(function(In){cn[In]!==null&&Zt.setRequestHeader(In,cn[In])}),Zt.send(on),{abort:function(){Zt.abort()}}}var Bt=+new Date,ht=0;function nt(){return"rc-upload-".concat(Bt,"-").concat(++ht)}var Re=oe(48736),Ce=function(Dt,Zt){if(Dt&&Zt){var on=Array.isArray(Zt)?Zt:Zt.split(","),cn=Dt.name||"",In=Dt.type||"",en=In.replace(/\/.*$/,"");return on.some(function(Ln){var it=Ln.trim();if(/^\*(\/\*)?$/.test(Ln))return!0;if(it.charAt(0)==="."){var Yt=cn.toLowerCase(),$t=it.toLowerCase(),vn=[$t];return($t===".jpg"||$t===".jpeg")&&(vn=[".jpg",".jpeg"]),vn.some(function(dn){return Yt.endsWith(dn)})}return/\/\*$/.test(it)?en===it.replace(/\/.*$/,""):In===it?!0:/^\w+$/.test(it)?((0,Re.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(it,"'.Skip for check.")),!0):!1})}return!0};function Je(Dt,Zt){var on=Dt.createReader(),cn=[];function In(){on.readEntries(function(en){var Ln=Array.prototype.slice.apply(en);cn=cn.concat(Ln);var it=!Ln.length;it?Zt(cn):In()})}In()}var et=function(Zt,on,cn){var In=function en(Ln,it){Ln&&(Ln.path=it||"",Ln.isFile?Ln.file(function(Yt){cn(Yt)&&(Ln.fullPath&&!Yt.webkitRelativePath&&(Object.defineProperties(Yt,{webkitRelativePath:{writable:!0}}),Yt.webkitRelativePath=Ln.fullPath.replace(/^\//,""),Object.defineProperties(Yt,{webkitRelativePath:{writable:!1}})),on([Yt]))}):Ln.isDirectory&&Je(Ln,function(Yt){Yt.forEach(function($t){en($t,"".concat(it).concat(Ln.name,"/"))})}))};Zt.forEach(function(en){In(en.webkitGetAsEntry())})},wt=et,Qe=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],bt=function(Dt){(0,ve.Z)(on,Dt);var Zt=(0,Me.Z)(on);function on(){var cn;(0,Ee.Z)(this,on);for(var In=arguments.length,en=new Array(In),Ln=0;Ln<In;Ln++)en[Ln]=arguments[Ln];return cn=Zt.call.apply(Zt,[this].concat(en)),cn.state={uid:nt()},cn.reqs={},cn.fileInput=void 0,cn._isMounted=void 0,cn.onChange=function(it){var Yt=cn.props,$t=Yt.accept,vn=Yt.directory,dn=it.target.files,xn=(0,Ae.Z)(dn).filter(function(yn){return!vn||Ce(yn,$t)});cn.uploadFiles(xn),cn.reset()},cn.onClick=function(it){var Yt=cn.fileInput;if(Yt){var $t=it.target,vn=cn.props.onClick;if($t&&$t.tagName==="BUTTON"){var dn=Yt.parentNode;dn.focus(),$t.blur()}Yt.click(),vn&&vn(it)}},cn.onKeyDown=function(it){it.key==="Enter"&&cn.onClick(it)},cn.onFileDrop=function(it){var Yt=cn.props.multiple;if(it.preventDefault(),it.type!=="dragover")if(cn.props.directory)wt(Array.prototype.slice.call(it.dataTransfer.items),cn.uploadFiles,function(vn){return Ce(vn,cn.props.accept)});else{var $t=(0,Ae.Z)(it.dataTransfer.files).filter(function(vn){return Ce(vn,cn.props.accept)});Yt===!1&&($t=$t.slice(0,1)),cn.uploadFiles($t)}},cn.uploadFiles=function(it){var Yt=(0,Ae.Z)(it),$t=Yt.map(function(vn){return vn.uid=nt(),cn.processFile(vn,Yt)});Promise.all($t).then(function(vn){var dn=cn.props.onBatchStart;dn==null||dn(vn.map(function(xn){var yn=xn.origin,_n=xn.parsedFile;return{file:yn,parsedFile:_n}})),vn.filter(function(xn){return xn.parsedFile!==null}).forEach(function(xn){cn.post(xn)})})},cn.processFile=function(){var it=(0,pt.Z)((0,Fe.Z)().mark(function Yt($t,vn){var dn,xn,yn,_n,Un,nr,mr,Tr,jr;return(0,Fe.Z)().wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:if(dn=cn.props.beforeUpload,xn=$t,!dn){ir.next=14;break}return ir.prev=3,ir.next=6,dn($t,vn);case 6:xn=ir.sent,ir.next=12;break;case 9:ir.prev=9,ir.t0=ir.catch(3),xn=!1;case 12:if(xn!==!1){ir.next=14;break}return ir.abrupt("return",{origin:$t,parsedFile:null,action:null,data:null});case 14:if(yn=cn.props.action,typeof yn!="function"){ir.next=21;break}return ir.next=18,yn($t);case 18:_n=ir.sent,ir.next=22;break;case 21:_n=yn;case 22:if(Un=cn.props.data,typeof Un!="function"){ir.next=29;break}return ir.next=26,Un($t);case 26:nr=ir.sent,ir.next=30;break;case 29:nr=Un;case 30:return mr=((0,qe.Z)(xn)==="object"||typeof xn=="string")&&xn?xn:$t,mr instanceof File?Tr=mr:Tr=new File([mr],$t.name,{type:$t.type}),jr=Tr,jr.uid=$t.uid,ir.abrupt("return",{origin:$t,data:nr,parsedFile:jr,action:_n});case 35:case"end":return ir.stop()}},Yt,null,[[3,9]])}));return function(Yt,$t){return it.apply(this,arguments)}}(),cn.saveFileInput=function(it){cn.fileInput=it},cn}return(0,pe.Z)(on,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(In){var en=this,Ln=In.data,it=In.origin,Yt=In.action,$t=In.parsedFile;if(this._isMounted){var vn=this.props,dn=vn.onStart,xn=vn.customRequest,yn=vn.name,_n=vn.headers,Un=vn.withCredentials,nr=vn.method,mr=it.uid,Tr=xn||mt,jr={action:Yt,filename:yn,data:Ln,file:$t,headers:_n,withCredentials:Un,method:nr||"post",onProgress:function(ir){var Ur=en.props.onProgress;Ur==null||Ur(ir,$t)},onSuccess:function(ir,Ur){var Nr=en.props.onSuccess;Nr==null||Nr(ir,$t,Ur),delete en.reqs[mr]},onError:function(ir,Ur){var Nr=en.props.onError;Nr==null||Nr(ir,Ur,$t),delete en.reqs[mr]}};dn(it),this.reqs[mr]=Tr(jr)}}},{key:"reset",value:function(){this.setState({uid:nt()})}},{key:"abort",value:function(In){var en=this.reqs;if(In){var Ln=In.uid?In.uid:In;en[Ln]&&en[Ln].abort&&en[Ln].abort(),delete en[Ln]}else Object.keys(en).forEach(function(it){en[it]&&en[it].abort&&en[it].abort(),delete en[it]})}},{key:"render",value:function(){var In=this.props,en=In.component,Ln=In.prefixCls,it=In.className,Yt=In.disabled,$t=In.id,vn=In.style,dn=In.multiple,xn=In.accept,yn=In.capture,_n=In.children,Un=In.directory,nr=In.openFileDialogOnClick,mr=In.onMouseEnter,Tr=In.onMouseLeave,jr=(0,vt.Z)(In,Qe),br=ct()((0,_e.Z)((0,_e.Z)((0,_e.Z)({},Ln,!0),"".concat(Ln,"-disabled"),Yt),it,it)),ir=Un?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Ur=Yt?{}:{onClick:nr?this.onClick:function(){},onKeyDown:nr?this.onKeyDown:function(){},onMouseEnter:mr,onMouseLeave:Tr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(en,(0,xe.Z)({},Ur,{className:br,role:"button",style:vn}),ae.createElement("input",(0,xe.Z)({},(0,Ke.Z)(jr,{aria:!0,data:!0}),{id:$t,disabled:Yt,type:"file",ref:this.saveFileInput,onClick:function($r){return $r.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:xn},ir,{multiple:dn,onChange:this.onChange},yn!=null?{capture:yn}:{})),_n)}}]),on}(ae.Component),Oe=bt;function Lt(){}var tt=function(Dt){(0,ve.Z)(on,Dt);var Zt=(0,Me.Z)(on);function on(){var cn;(0,Ee.Z)(this,on);for(var In=arguments.length,en=new Array(In),Ln=0;Ln<In;Ln++)en[Ln]=arguments[Ln];return cn=Zt.call.apply(Zt,[this].concat(en)),cn.uploader=void 0,cn.saveUploader=function(it){cn.uploader=it},cn}return(0,pe.Z)(on,[{key:"abort",value:function(In){this.uploader.abort(In)}},{key:"render",value:function(){return ae.createElement(Oe,(0,xe.Z)({},this.props,{ref:this.saveUploader}))}}]),on}(ae.Component);tt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Lt,onError:Lt,onSuccess:Lt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ut=tt,At=Ut,Mt=oe(18929),Wt=oe(4676),It=oe(36355),Ge=oe(1684),be=oe(9763),Ye=oe(31724),Pt={icon:function(Zt,on){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:on}},{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:Zt}}]}},name:"file",theme:"twotone"},xt=Pt,Ue=oe(7657),at=function(Zt,on){return ae.createElement(Ue.Z,(0,xe.Z)({},Zt,{ref:on,icon:xt}))},Ot=ae.forwardRef(at),kn=Ot,Kt=oe(58617),gn={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"},nn=gn,Gt=function(Zt,on){return ae.createElement(Ue.Z,(0,xe.Z)({},Zt,{ref:on,icon:nn}))},Xt=ae.forwardRef(Gt),ye=Xt,ue={icon:function(Zt,on){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:Zt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:on}},{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:on}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:on}},{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:Zt}}]}},name:"picture",theme:"twotone"},ce=ue,de=function(Zt,on){return ae.createElement(Ue.Z,(0,xe.Z)({},Zt,{ref:on,icon:ce}))},he=ae.forwardRef(de),se=he,ke=oe(77900),gt=oe(56762),Ie=oe(62892),Be=oe(92343),yt=oe(3113);function rt(Dt){return Object.assign(Object.assign({},Dt),{lastModified:Dt.lastModified,lastModifiedDate:Dt.lastModifiedDate,name:Dt.name,size:Dt.size,type:Dt.type,uid:Dt.uid,percent:0,originFileObj:Dt})}function Ve(Dt,Zt){const on=(0,Ae.Z)(Zt),cn=on.findIndex(In=>{let{uid:en}=In;return en===Dt.uid});return cn===-1?on.push(Dt):on[cn]=Dt,on}function Ct(Dt,Zt){const on=Dt.uid!==void 0?"uid":"name";return Zt.filter(cn=>cn[on]===Dt[on])[0]}function rn(Dt,Zt){const on=Dt.uid!==void 0?"uid":"name",cn=Zt.filter(In=>In[on]!==Dt[on]);return cn.length===Zt.length?null:cn}const lt=function(){const Zt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),cn=Zt[Zt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(cn)||[""])[0]},_t=Dt=>Dt.indexOf("image/")===0,fn=Dt=>{if(Dt.type&&!Dt.thumbUrl)return _t(Dt.type);const Zt=Dt.thumbUrl||Dt.url||"",on=lt(Zt);return/^data:image\//.test(Zt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(on)?!0:!(/^data:/.test(Zt)||on)},ut=200;function De(Dt){return new Promise(Zt=>{if(!Dt.type||!_t(Dt.type)){Zt("");return}const on=document.createElement("canvas");on.width=ut,on.height=ut,on.style.cssText=`position: fixed; left: 0; top: 0; width: ${ut}px; height: ${ut}px; z-index: 9999; display: none;`,document.body.appendChild(on);const cn=on.getContext("2d"),In=new Image;if(In.onload=()=>{const{width:en,height:Ln}=In;let it=ut,Yt=ut,$t=0,vn=0;en>Ln?(Yt=Ln*(ut/en),vn=-(Yt-it)/2):(it=en*(ut/Ln),$t=-(it-Yt)/2),cn.drawImage(In,$t,vn,it,Yt);const dn=on.toDataURL();document.body.removeChild(on),window.URL.revokeObjectURL(In.src),Zt(dn)},In.crossOrigin="anonymous",Dt.type.startsWith("image/svg+xml")){const en=new FileReader;en.onload=()=>{en.result&&(In.src=en.result)},en.readAsDataURL(Dt)}else if(Dt.type.startsWith("image/gif")){const en=new FileReader;en.onload=()=>{en.result&&Zt(en.result)},en.readAsDataURL(Dt)}else In.src=window.URL.createObjectURL(Dt)})}var dt=oe(26227),Ft=oe(41464),zt=oe(15277),an=oe(93948),Bn=oe(6848),pn=ae.forwardRef((Dt,Zt)=>{let{prefixCls:on,className:cn,style:In,locale:en,listType:Ln,file:it,items:Yt,progress:$t,iconRender:vn,actionIconRender:dn,itemRender:xn,isImgUrl:yn,showPreviewIcon:_n,showRemoveIcon:Un,showDownloadIcon:nr,previewIcon:mr,removeIcon:Tr,downloadIcon:jr,onPreview:br,onDownload:ir,onClose:Ur}=Dt;var Nr,$r;const{status:Cr}=it,[Lr,ri]=ae.useState(Cr);ae.useEffect(()=>{Cr!=="removed"&&ri(Cr)},[Cr]);const[Kr,Ei]=ae.useState(!1);ae.useEffect(()=>{const ca=setTimeout(()=>{Ei(!0)},300);return()=>{clearTimeout(ca)}},[]);const Ri=vn(it);let zr=ae.createElement("div",{className:`${on}-icon`},Ri);if(Ln==="picture"||Ln==="picture-card"||Ln==="picture-circle")if(Lr==="uploading"||!it.thumbUrl&&!it.url){const ca=ct()(`${on}-list-item-thumbnail`,{[`${on}-list-item-file`]:Lr!=="uploading"});zr=ae.createElement("div",{className:ca},Ri)}else{const ca=yn!=null&&yn(it)?ae.createElement("img",{src:it.thumbUrl||it.url,alt:it.name,className:`${on}-list-item-image`,crossOrigin:it.crossOrigin}):Ri,qi=ct()(`${on}-list-item-thumbnail`,{[`${on}-list-item-file`]:yn&&!yn(it)});zr=ae.createElement("a",{className:qi,onClick:Wi=>br(it,Wi),href:it.url||it.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ca)}const qn=ct()(`${on}-list-item`,`${on}-list-item-${Lr}`),Jn=typeof it.linkProps=="string"?JSON.parse(it.linkProps):it.linkProps,Jr=Un?dn((typeof Tr=="function"?Tr(it):Tr)||ae.createElement(dt.Z,null),()=>Ur(it),on,en.removeFile):null,Rr=nr&&Lr==="done"?dn((typeof jr=="function"?jr(it):jr)||ae.createElement(Ft.Z,null),()=>ir(it),on,en.downloadFile):null,li=Ln!=="picture-card"&&Ln!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:ct()(`${on}-list-item-actions`,{picture:Ln==="picture"})},Rr,Jr),pi=ct()(`${on}-list-item-name`),fi=it.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:pi,title:it.name},Jn,{href:it.url,onClick:ca=>br(it,ca)}),it.name),li]:[ae.createElement("span",{key:"view",className:pi,onClick:ca=>br(it,ca),title:it.name},it.name),li],Qr={pointerEvents:"none",opacity:.5},oi=_n?ae.createElement("a",{href:it.url||it.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:it.url||it.thumbUrl?void 0:Qr,onClick:ca=>br(it,ca),title:en.previewFile},typeof mr=="function"?mr(it):mr||ae.createElement(zt.Z,null)):null,ta=(Ln==="picture-card"||Ln==="picture-circle")&&Lr!=="uploading"&&ae.createElement("span",{className:`${on}-list-item-actions`},oi,Lr==="done"&&Rr,Jr),{getPrefixCls:xr}=ae.useContext(It.E_),Ir=xr(),mi=ae.createElement("div",{className:qn},zr,fi,ta,Kr&&ae.createElement(ke.default,{motionName:`${Ir}-fade`,visible:Lr==="uploading",motionDeadline:2e3},ca=>{let{className:qi}=ca;const Wi="percent"in it?ae.createElement(an.Z,Object.assign({},$t,{type:"line",percent:it.percent,"aria-label":it["aria-label"],"aria-labelledby":it["aria-labelledby"]})):null;return ae.createElement("div",{className:ct()(`${on}-list-item-progress`,qi)},Wi)})),Mi=it.response&&typeof it.response=="string"?it.response:((Nr=it.error)===null||Nr===void 0?void 0:Nr.statusText)||(($r=it.error)===null||$r===void 0?void 0:$r.message)||en.uploadError,da=Lr==="error"?ae.createElement(Bn.Z,{title:Mi,getPopupContainer:ca=>ca.parentNode},mi):mi;return ae.createElement("div",{className:ct()(`${on}-list-item-container`,cn),style:In,ref:Zt},xn?xn(da,it,Yt,{download:ir.bind(null,it),preview:br.bind(null,it),remove:Ur.bind(null,it)}):da)});const zn=(Dt,Zt)=>{const{listType:on="text",previewFile:cn=De,onPreview:In,onDownload:en,onRemove:Ln,locale:it,iconRender:Yt,isImageUrl:$t=fn,prefixCls:vn,items:dn=[],showPreviewIcon:xn=!0,showRemoveIcon:yn=!0,showDownloadIcon:_n=!1,removeIcon:Un,previewIcon:nr,downloadIcon:mr,progress:Tr={size:[-1,2],showInfo:!1},appendAction:jr,appendActionVisible:br=!0,itemRender:ir,disabled:Ur}=Dt,Nr=(0,gt.Z)(),[$r,Cr]=ae.useState(!1);ae.useEffect(()=>{on!=="picture"&&on!=="picture-card"&&on!=="picture-circle"||(dn||[]).forEach(Qr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Qr.originFileObj instanceof File||Qr.originFileObj instanceof Blob)||Qr.thumbUrl!==void 0||(Qr.thumbUrl="",cn&&cn(Qr.originFileObj).then(oi=>{Qr.thumbUrl=oi||"",Nr()}))})},[on,dn,cn]),ae.useEffect(()=>{Cr(!0)},[]);const Lr=(Qr,oi)=>{if(In)return oi==null||oi.preventDefault(),In(Qr)},ri=Qr=>{typeof en=="function"?en(Qr):Qr.url&&window.open(Qr.url)},Kr=Qr=>{Ln==null||Ln(Qr)},Ei=Qr=>{if(Yt)return Yt(Qr,on);const oi=Qr.status==="uploading",ta=$t&&$t(Qr)?ae.createElement(se,null):ae.createElement(kn,null);let xr=oi?ae.createElement(Kt.Z,null):ae.createElement(ye,null);return on==="picture"?xr=oi?ae.createElement(Kt.Z,null):ta:(on==="picture-card"||on==="picture-circle")&&(xr=oi?it.uploading:ta),xr},Ri=(Qr,oi,ta,xr)=>{const Ir={type:"text",size:"small",title:xr,onClick:mi=>{oi(),(0,Be.l$)(Qr)&&Qr.props.onClick&&Qr.props.onClick(mi)},className:`${ta}-list-item-action`,disabled:Ur};if((0,Be.l$)(Qr)){const mi=(0,Be.Tm)(Qr,Object.assign(Object.assign({},Qr.props),{onClick:()=>{}}));return ae.createElement(yt.ZP,Object.assign({},Ir,{icon:mi}))}return ae.createElement(yt.ZP,Object.assign({},Ir),ae.createElement("span",null,Qr))};ae.useImperativeHandle(Zt,()=>({handlePreview:Lr,handleDownload:ri}));const{getPrefixCls:zr}=ae.useContext(It.E_),qn=zr("upload",vn),Jn=zr(),Jr=ct()(`${qn}-list`,`${qn}-list-${on}`),Rr=(0,Ae.Z)(dn.map(Qr=>({key:Qr.uid,file:Qr})));let pi={motionDeadline:2e3,motionName:`${qn}-${on==="picture-card"||on==="picture-circle"?"animate-inline":"animate"}`,keys:Rr,motionAppear:$r};const fi=ae.useMemo(()=>{const Qr=Object.assign({},(0,Ie.Z)(Jn));return delete Qr.onAppearEnd,delete Qr.onEnterEnd,delete Qr.onLeaveEnd,Qr},[Jn]);return on!=="picture-card"&&on!=="picture-circle"&&(pi=Object.assign(Object.assign({},fi),pi)),ae.createElement("div",{className:Jr},ae.createElement(ke.CSSMotionList,Object.assign({},pi,{component:!1}),Qr=>{let{key:oi,file:ta,className:xr,style:Ir}=Qr;return ae.createElement(pn,{key:oi,locale:it,prefixCls:qn,className:xr,style:Ir,file:ta,items:dn,progress:Tr,listType:on,isImgUrl:$t,showPreviewIcon:xn,showRemoveIcon:yn,showDownloadIcon:_n,removeIcon:Un,previewIcon:nr,downloadIcon:mr,iconRender:Ei,actionIconRender:Ri,itemRender:ir,onPreview:Lr,onDownload:ri,onClose:Kr})}),jr&&ae.createElement(ke.default,Object.assign({},pi,{visible:br,forceRender:!0}),Qr=>{let{className:oi,style:ta}=Qr;return(0,Be.Tm)(jr,xr=>({className:ct()(xr.className,oi),style:Object.assign(Object.assign(Object.assign({},ta),{pointerEvents:oi?"none":void 0}),xr.style)}))}))};var Pn=ae.forwardRef(zn),Qn=oe(17313),gr=oe(8378),rr=oe(83116),er=oe(37613),Pr=Dt=>{const{componentCls:Zt,iconCls:on}=Dt;return{[`${Zt}-wrapper`]:{[`${Zt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Dt.colorFillAlter,border:`${Dt.lineWidth}px dashed ${Dt.colorBorder}`,borderRadius:Dt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Dt.motionDurationSlow}`,[Zt]:{padding:`${Dt.padding}px 0`},[`${Zt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Zt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Zt}-disabled):hover`]:{borderColor:Dt.colorPrimaryHover},[`p${Zt}-drag-icon`]:{marginBottom:Dt.margin,[on]:{color:Dt.colorPrimary,fontSize:Dt.uploadThumbnailSize}},[`p${Zt}-text`]:{margin:`0 0 ${Dt.marginXXS}px`,color:Dt.colorTextHeading,fontSize:Dt.fontSizeLG},[`p${Zt}-hint`]:{color:Dt.colorTextDescription,fontSize:Dt.fontSize},[`&${Zt}-disabled`]:{cursor:"not-allowed",[`p${Zt}-drag-icon ${on},
|
|
|
p${Zt}-text,
|
|
|
p${Zt}-hint
|
|
|
`]:{color:Dt.colorTextDisabled}}}}}},Wr=Dt=>{const{componentCls:Zt,antCls:on,iconCls:cn,fontSize:In,lineHeight:en}=Dt,Ln=`${Zt}-list-item`,it=`${Ln}-actions`,Yt=`${Ln}-action`,$t=Math.round(In*en);return{[`${Zt}-wrapper`]:{[`${Zt}-list`]:Object.assign(Object.assign({},(0,Qn.dF)()),{lineHeight:Dt.lineHeight,[Ln]:{position:"relative",height:Dt.lineHeight*In,marginTop:Dt.marginXS,fontSize:In,display:"flex",alignItems:"center",transition:`background-color ${Dt.motionDurationSlow}`,"&:hover":{backgroundColor:Dt.controlItemBgHover},[`${Ln}-name`]:Object.assign(Object.assign({},Qn.vS),{padding:`0 ${Dt.paddingXS}px`,lineHeight:en,flex:"auto",transition:`all ${Dt.motionDurationSlow}`}),[it]:{[Yt]:{opacity:0},[`${Yt}${on}-btn-sm`]:{height:$t,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${Yt}:focus-visible,
|
|
|
&.picture ${Yt}
|
|
|
`]:{opacity:1},[cn]:{color:Dt.actionsColor,transition:`all ${Dt.motionDurationSlow}`},[`&:hover ${cn}`]:{color:Dt.colorText}},[`${Zt}-icon ${cn}`]:{color:Dt.colorTextDescription,fontSize:In},[`${Ln}-progress`]:{position:"absolute",bottom:-Dt.uploadProgressOffset,width:"100%",paddingInlineStart:In+Dt.paddingXS,fontSize:In,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ln}:hover ${Yt}`]:{opacity:1,color:Dt.colorText},[`${Ln}-error`]:{color:Dt.colorError,[`${Ln}-name, ${Zt}-icon ${cn}`]:{color:Dt.colorError},[it]:{[`${cn}, ${cn}:hover`]:{color:Dt.colorError},[Yt]:{opacity:1}}},[`${Zt}-list-item-container`]:{transition:`opacity ${Dt.motionDurationSlow}, height ${Dt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},vr=oe(36237),qr=oe(1950);const xi=new vr.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Ar=new vr.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Mr=Dt=>{const{componentCls:Zt}=Dt,on=`${Zt}-animate-inline`;return[{[`${Zt}-wrapper`]:{[`${on}-appear, ${on}-enter, ${on}-leave`]:{animationDuration:Dt.motionDurationSlow,animationTimingFunction:Dt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${on}-appear, ${on}-enter`]:{animationName:xi},[`${on}-leave`]:{animationName:Ar}}},{[`${Zt}-wrapper`]:(0,qr.J$)(Dt)},xi,Ar]},tr=oe(30071),Gn=oe(64993);const Xr=Dt=>{const{componentCls:Zt,iconCls:on,uploadThumbnailSize:cn,uploadProgressOffset:In}=Dt,en=`${Zt}-list`,Ln=`${en}-item`;return{[`${Zt}-wrapper`]:{[`
|
|
|
${en}${en}-picture,
|
|
|
${en}${en}-picture-card,
|
|
|
${en}${en}-picture-circle
|
|
|
`]:{[Ln]:{position:"relative",height:cn+Dt.lineWidth*2+Dt.paddingXS*2,padding:Dt.paddingXS,border:`${Dt.lineWidth}px ${Dt.lineType} ${Dt.colorBorder}`,borderRadius:Dt.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ln}-thumbnail`]:Object.assign(Object.assign({},Qn.vS),{width:cn,height:cn,lineHeight:`${cn+Dt.paddingSM}px`,textAlign:"center",flex:"none",[on]:{fontSize:Dt.fontSizeHeading2,color:Dt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ln}-progress`]:{bottom:In,width:`calc(100% - ${Dt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:cn+Dt.paddingXS}},[`${Ln}-error`]:{borderColor:Dt.colorError,[`${Ln}-thumbnail ${on}`]:{[`svg path[fill='${tr.blue[0]}']`]:{fill:Dt.colorErrorBg},[`svg path[fill='${tr.blue.primary}']`]:{fill:Dt.colorError}}},[`${Ln}-uploading`]:{borderStyle:"dashed",[`${Ln}-name`]:{marginBottom:In}}},[`${en}${en}-picture-circle ${Ln}`]:{[`&, &::before, ${Ln}-thumbnail`]:{borderRadius:"50%"}}}}},Rt=Dt=>{const{componentCls:Zt,iconCls:on,fontSizeLG:cn,colorTextLightSolid:In}=Dt,en=`${Zt}-list`,Ln=`${en}-item`,it=Dt.uploadPicCardSize;return{[`
|
|
|
${Zt}-wrapper${Zt}-picture-card-wrapper,
|
|
|
${Zt}-wrapper${Zt}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Qn.dF)()),{display:"inline-block",width:"100%",[`${Zt}${Zt}-select`]:{width:it,height:it,marginInlineEnd:Dt.marginXS,marginBottom:Dt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Dt.colorFillAlter,border:`${Dt.lineWidth}px dashed ${Dt.colorBorder}`,borderRadius:Dt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Dt.motionDurationSlow}`,[`> ${Zt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Zt}-disabled):hover`]:{borderColor:Dt.colorPrimary}},[`${en}${en}-picture-card, ${en}${en}-picture-circle`]:{[`${en}-item-container`]:{display:"inline-block",width:it,height:it,marginBlock:`0 ${Dt.marginXS}px`,marginInline:`0 ${Dt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ln]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Dt.paddingXS*2}px)`,height:`calc(100% - ${Dt.paddingXS*2}px)`,backgroundColor:Dt.colorBgMask,opacity:0,transition:`all ${Dt.motionDurationSlow}`,content:'" "'}},[`${Ln}:hover`]:{[`&::before, ${Ln}-actions`]:{opacity:1}},[`${Ln}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Dt.motionDurationSlow}`,[`${on}-eye, ${on}-download, ${on}-delete`]:{zIndex:10,width:cn,margin:`0 ${Dt.marginXXS}px`,fontSize:cn,cursor:"pointer",transition:`all ${Dt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ln}-actions, ${Ln}-actions:hover`]:{[`${on}-eye, ${on}-download, ${on}-delete`]:{color:new Gn.C(In).setAlpha(.65).toRgbString(),"&:hover":{color:In}}},[`${Ln}-thumbnail, ${Ln}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ln}-name`]:{display:"none",textAlign:"center"},[`${Ln}-file + ${Ln}-name`]:{position:"absolute",bottom:Dt.margin,display:"block",width:`calc(100% - ${Dt.paddingXS*2}px)`},[`${Ln}-uploading`]:{[`&${Ln}`]:{backgroundColor:Dt.colorFillAlter},[`&::before, ${on}-eye, ${on}-download, ${on}-delete`]:{display:"none"}},[`${Ln}-progress`]:{bottom:Dt.marginXL,width:`calc(100% - ${Dt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Zt}-wrapper${Zt}-picture-circle-wrapper`]:{[`${Zt}${Zt}-select`]:{borderRadius:"50%"}}}};var $e=Dt=>{const{componentCls:Zt}=Dt;return{[`${Zt}-rtl`]:{direction:"rtl"}}};const Xe=Dt=>{const{componentCls:Zt,colorTextDisabled:on}=Dt;return{[`${Zt}-wrapper`]:Object.assign(Object.assign({},(0,Qn.Wf)(Dt)),{[Zt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Zt}-select`]:{display:"inline-block"},[`${Zt}-disabled`]:{color:on,cursor:"not-allowed"}})}};var Ze=(0,rr.Z)("Upload",Dt=>{const{fontSizeHeading3:Zt,fontSize:on,lineHeight:cn,lineWidth:In,controlHeightLG:en}=Dt,Ln=Math.round(on*cn),it=(0,er.TS)(Dt,{uploadThumbnailSize:Zt*2,uploadProgressOffset:Ln/2+In,uploadPicCardSize:en*2.55});return[Xe(it),Pr(it),Xr(it),Rt(it),Wr(it),Mr(it),$e(it),(0,gr.Z)(it)]},Dt=>({actionsColor:Dt.colorTextDescription})),Et=function(Dt,Zt,on,cn){function In(en){return en instanceof on?en:new on(function(Ln){Ln(en)})}return new(on||(on=Promise))(function(en,Ln){function it(vn){try{$t(cn.next(vn))}catch(dn){Ln(dn)}}function Yt(vn){try{$t(cn.throw(vn))}catch(dn){Ln(dn)}}function $t(vn){vn.done?en(vn.value):In(vn.value).then(it,Yt)}$t((cn=cn.apply(Dt,Zt||[])).next())})};const Tt=`__LIST_IGNORE_${Date.now()}__`,hn=(Dt,Zt)=>{const{fileList:on,defaultFileList:cn,onRemove:In,showUploadList:en=!0,listType:Ln="text",onPreview:it,onDownload:Yt,onChange:$t,onDrop:vn,previewFile:dn,disabled:xn,locale:yn,iconRender:_n,isImageUrl:Un,progress:nr,prefixCls:mr,className:Tr,type:jr="select",children:br,style:ir,itemRender:Ur,maxCount:Nr,data:$r={},multiple:Cr=!1,action:Lr="",accept:ri="",supportServerRender:Kr=!0,rootClassName:Ei}=Dt,Ri=ae.useContext(Ge.Z),zr=xn!=null?xn:Ri,[qn,Jn]=(0,Mt.Z)(cn||[],{value:on,postState:Fi=>Fi!=null?Fi:[]}),[Jr,Rr]=ae.useState("drop"),li=ae.useRef(null);ae.useMemo(()=>{const Fi=Date.now();(on||[]).forEach((Vi,La)=>{!Vi.uid&&!Object.isFrozen(Vi)&&(Vi.uid=`__AUTO__${Fi}_${La}__`)})},[on]);const pi=(Fi,Vi,La)=>{let aa=(0,Ae.Z)(Vi),ha=!1;Nr===1?aa=aa.slice(-1):Nr&&(ha=aa.length>Nr,aa=aa.slice(0,Nr)),(0,Wt.flushSync)(()=>{Jn(aa)});const An={file:Fi,fileList:aa};La&&(An.event=La),(!ha||aa.some(Cn=>Cn.uid===Fi.uid))&&(0,Wt.flushSync)(()=>{$t==null||$t(An)})},fi=(Fi,Vi)=>Et(void 0,void 0,void 0,function*(){const{beforeUpload:La,transformFile:aa}=Dt;let ha=Fi;if(La){const An=yield La(Fi,Vi);if(An===!1)return!1;if(delete Fi[Tt],An===Tt)return Object.defineProperty(Fi,Tt,{value:!0,configurable:!0}),!1;typeof An=="object"&&An&&(ha=An)}return aa&&(ha=yield aa(ha)),ha}),Qr=Fi=>{const Vi=Fi.filter(ha=>!ha.file[Tt]);if(!Vi.length)return;const La=Vi.map(ha=>rt(ha.file));let aa=(0,Ae.Z)(qn);La.forEach(ha=>{aa=Ve(ha,aa)}),La.forEach((ha,An)=>{let Cn=ha;if(Vi[An].parsedFile)ha.status="uploading";else{const{originFileObj:mn}=ha;let Wn;try{Wn=new File([mn],mn.name,{type:mn.type})}catch(ar){Wn=new Blob([mn],{type:mn.type}),Wn.name=mn.name,Wn.lastModifiedDate=new Date,Wn.lastModified=new Date().getTime()}Wn.uid=ha.uid,Cn=Wn}pi(Cn,aa)})},oi=(Fi,Vi,La)=>{try{typeof Fi=="string"&&(Fi=JSON.parse(Fi))}catch(An){}if(!Ct(Vi,qn))return;const aa=rt(Vi);aa.status="done",aa.percent=100,aa.response=Fi,aa.xhr=La;const ha=Ve(aa,qn);pi(aa,ha)},ta=(Fi,Vi)=>{if(!Ct(Vi,qn))return;const La=rt(Vi);La.status="uploading",La.percent=Fi.percent;const aa=Ve(La,qn);pi(La,aa,Fi)},xr=(Fi,Vi,La)=>{if(!Ct(La,qn))return;const aa=rt(La);aa.error=Fi,aa.response=Vi,aa.status="error";const ha=Ve(aa,qn);pi(aa,ha)},Ir=Fi=>{let Vi;Promise.resolve(typeof In=="function"?In(Fi):In).then(La=>{var aa;if(La===!1)return;const ha=rn(Fi,qn);ha&&(Vi=Object.assign(Object.assign({},Fi),{status:"removed"}),qn==null||qn.forEach(An=>{const Cn=Vi.uid!==void 0?"uid":"name";An[Cn]===Vi[Cn]&&!Object.isFrozen(An)&&(An.status="removed")}),(aa=li.current)===null||aa===void 0||aa.abort(Vi),pi(Vi,ha))})},mi=Fi=>{Rr(Fi.type),Fi.type==="drop"&&(vn==null||vn(Fi))};ae.useImperativeHandle(Zt,()=>({onBatchStart:Qr,onSuccess:oi,onProgress:ta,onError:xr,fileList:qn,upload:li.current}));const{getPrefixCls:Mi,direction:da,upload:ca}=ae.useContext(It.E_),qi=Mi("upload",mr),Wi=Object.assign(Object.assign({onBatchStart:Qr,onError:xr,onProgress:ta,onSuccess:oi},Dt),{data:$r,multiple:Cr,action:Lr,accept:ri,supportServerRender:Kr,prefixCls:qi,disabled:zr,beforeUpload:fi,onChange:void 0});delete Wi.className,delete Wi.style,(!br||zr)&&delete Wi.id;const[xa,wa]=Ze(qi),[Br]=(0,be.Z)("Upload",Ye.Z.Upload),{showRemoveIcon:kr,showPreviewIcon:Er,showDownloadIcon:Gr,removeIcon:Xi,previewIcon:fa,downloadIcon:va}=typeof en=="boolean"?{}:en,pa=(Fi,Vi)=>en?ae.createElement(Pn,{prefixCls:qi,listType:Ln,items:qn,previewFile:dn,onPreview:it,onDownload:Yt,onRemove:Ir,showRemoveIcon:!zr&&kr,showPreviewIcon:Er,showDownloadIcon:Gr,removeIcon:Xi,previewIcon:fa,downloadIcon:va,iconRender:_n,locale:Object.assign(Object.assign({},Br),yn),isImageUrl:Un,progress:nr,appendAction:Fi,appendActionVisible:Vi,itemRender:Ur,disabled:zr}):Fi,ua=ct()(`${qi}-wrapper`,Tr,Ei,wa,ca==null?void 0:ca.className,{[`${qi}-rtl`]:da==="rtl",[`${qi}-picture-card-wrapper`]:Ln==="picture-card",[`${qi}-picture-circle-wrapper`]:Ln==="picture-circle"}),Aa=Object.assign(Object.assign({},ca==null?void 0:ca.style),ir);if(jr==="drag"){const Fi=ct()(wa,qi,`${qi}-drag`,{[`${qi}-drag-uploading`]:qn.some(Vi=>Vi.status==="uploading"),[`${qi}-drag-hover`]:Jr==="dragover",[`${qi}-disabled`]:zr,[`${qi}-rtl`]:da==="rtl"});return xa(ae.createElement("span",{className:ua},ae.createElement("div",{className:Fi,style:Aa,onDrop:mi,onDragOver:mi,onDragLeave:mi},ae.createElement(At,Object.assign({},Wi,{ref:li,className:`${qi}-btn`}),ae.createElement("div",{className:`${qi}-drag-container`},br))),pa()))}const Ya=ct()(qi,`${qi}-select`,{[`${qi}-disabled`]:zr}),go=(Fi=>ae.createElement("div",{className:Ya,style:Fi},ae.createElement(At,Object.assign({},Wi,{ref:li}))))(br?void 0:{display:"none"});return xa(Ln==="picture-card"||Ln==="picture-circle"?ae.createElement("span",{className:ua},pa(go,!!br)):ae.createElement("span",{className:ua},go,pa()))};var wn=ae.forwardRef(hn),Tn=function(Dt,Zt){var on={};for(var cn in Dt)Object.prototype.hasOwnProperty.call(Dt,cn)&&Zt.indexOf(cn)<0&&(on[cn]=Dt[cn]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var In=0,cn=Object.getOwnPropertySymbols(Dt);In<cn.length;In++)Zt.indexOf(cn[In])<0&&Object.prototype.propertyIsEnumerable.call(Dt,cn[In])&&(on[cn[In]]=Dt[cn[In]]);return on},jn=ae.forwardRef((Dt,Zt)=>{var{style:on,height:cn}=Dt,In=Tn(Dt,["style","height"]);return ae.createElement(wn,Object.assign({ref:Zt},In,{type:"drag",style:Object.assign(Object.assign({},on),{height:cn})}))});const Qt=wn;Qt.Dragger=jn,Qt.LIST_IGNORE=Tt;var Dn=Qt},99498:function(Mn,tn,oe){(function(ae){ae(oe(89780))})(function(ae){ae.defineOption("placeholder","",function(ve,Me,_e){var vt=_e&&_e!=ae.Init;if(Me&&!vt)ve.on("blur",xe),ve.on("change",Ee),ve.on("swapDoc",Ee),ae.on(ve.getInputField(),"compositionupdate",ve.state.placeholderCompose=function(){ct(ve)}),Ee(ve);else if(!Me&&vt){ve.off("blur",xe),ve.off("change",Ee),ve.off("swapDoc",Ee),ae.off(ve.getInputField(),"compositionupdate",ve.state.placeholderCompose),Ae(ve);var Fe=ve.getWrapperElement();Fe.className=Fe.className.replace(" CodeMirror-empty","")}Me&&!ve.hasFocus()&&xe(ve)});function Ae(ve){ve.state.placeholder&&(ve.state.placeholder.parentNode.removeChild(ve.state.placeholder),ve.state.placeholder=null)}function Le(ve){Ae(ve);var Me=ve.state.placeholder=document.createElement("pre");Me.style.cssText="height: 0; overflow: visible",Me.style.direction=ve.getOption("direction"),Me.className="CodeMirror-placeholder CodeMirror-line-like";var _e=ve.getOption("placeholder");typeof _e=="string"&&(_e=document.createTextNode(_e)),Me.appendChild(_e),ve.display.lineSpace.insertBefore(Me,ve.display.lineSpace.firstChild)}function ct(ve){setTimeout(function(){var Me=!1,_e=ve.getInputField();_e.nodeName=="TEXTAREA"?Me=!_e.value:ve.lineCount()==1&&(Me=!/[^\u200b]/.test(_e.querySelector(".CodeMirror-line").textContent)),Me?Le(ve):Ae(ve)},20)}function xe(ve){pe(ve)&&Le(ve)}function Ee(ve){var Me=ve.getWrapperElement(),_e=pe(ve);Me.className=Me.className.replace(" CodeMirror-empty","")+(_e?" CodeMirror-empty":""),_e?Le(ve):Ae(ve)}function pe(ve){return ve.lineCount()===1&&ve.getLine(0)===""}})},25717:function(Mn,tn,oe){(function(ae){ae(oe(89780))})(function(ae){var Ae={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Le=ae.Pos;ae.defineOption("autoCloseBrackets",!1,function(Ke,je,ft){ft&&ft!=ae.Init&&(Ke.removeKeyMap(xe),Ke.state.closeBrackets=null),je&&(Ee(ct(je,"pairs")),Ke.state.closeBrackets=je,Ke.addKeyMap(xe))});function ct(Ke,je){return je=="pairs"&&typeof Ke=="string"?Ke:typeof Ke=="object"&&Ke[je]!=null?Ke[je]:Ae[je]}var xe={Backspace:Me,Enter:_e};function Ee(Ke){for(var je=0;je<Ke.length;je++){var ft=Ke.charAt(je),mt="'"+ft+"'";xe[mt]||(xe[mt]=pe(ft))}}Ee(Ae.pairs+"`");function pe(Ke){return function(je){return Fe(je,Ke)}}function ve(Ke){var je=Ke.state.closeBrackets;if(!je||je.override)return je;var ft=Ke.getModeAt(Ke.getCursor());return ft.closeBrackets||je}function Me(Ke){var je=ve(Ke);if(!je||Ke.getOption("disableInput"))return ae.Pass;for(var ft=ct(je,"pairs"),mt=Ke.listSelections(),Bt=0;Bt<mt.length;Bt++){if(!mt[Bt].empty())return ae.Pass;var ht=qe(Ke,mt[Bt].head);if(!ht||ft.indexOf(ht)%2!=0)return ae.Pass}for(var Bt=mt.length-1;Bt>=0;Bt--){var nt=mt[Bt].head;Ke.replaceRange("",Le(nt.line,nt.ch-1),Le(nt.line,nt.ch+1),"+delete")}}function _e(Ke){var je=ve(Ke),ft=je&&ct(je,"explode");if(!ft||Ke.getOption("disableInput"))return ae.Pass;for(var mt=Ke.listSelections(),Bt=0;Bt<mt.length;Bt++){if(!mt[Bt].empty())return ae.Pass;var ht=qe(Ke,mt[Bt].head);if(!ht||ft.indexOf(ht)%2!=0)return ae.Pass}Ke.operation(function(){var nt=Ke.lineSeparator()||`
|
|
|
`;Ke.replaceSelection(nt+nt,null),Ke.execCommand("goCharLeft"),mt=Ke.listSelections();for(var Re=0;Re<mt.length;Re++){var Ce=mt[Re].head.line;Ke.indentLine(Ce,null,!0),Ke.indentLine(Ce+1,null,!0)}})}function vt(Ke){var je=ae.cmpPos(Ke.anchor,Ke.head)>0;return{anchor:new Le(Ke.anchor.line,Ke.anchor.ch+(je?-1:1)),head:new Le(Ke.head.line,Ke.head.ch+(je?1:-1))}}function Fe(Ke,je){var ft=ve(Ke);if(!ft||Ke.getOption("disableInput"))return ae.Pass;var mt=ct(ft,"pairs"),Bt=mt.indexOf(je);if(Bt==-1)return ae.Pass;for(var ht=ct(ft,"closeBefore"),nt=ct(ft,"triples"),Re=mt.charAt(Bt+1)==je,Ce=Ke.listSelections(),Je=Bt%2==0,et,wt=0;wt<Ce.length;wt++){var Qe=Ce[wt],bt=Qe.head,Oe,Lt=Ke.getRange(bt,Le(bt.line,bt.ch+1));if(Je&&!Qe.empty())Oe="surround";else if((Re||!Je)&&Lt==je)Re&&pt(Ke,bt)?Oe="both":nt.indexOf(je)>=0&&Ke.getRange(bt,Le(bt.line,bt.ch+3))==je+je+je?Oe="skipThree":Oe="skip";else if(Re&&bt.ch>1&&nt.indexOf(je)>=0&&Ke.getRange(Le(bt.line,bt.ch-2),bt)==je+je){if(bt.ch>2&&/\bstring/.test(Ke.getTokenTypeAt(Le(bt.line,bt.ch-2))))return ae.Pass;Oe="addFour"}else if(Re){var tt=bt.ch==0?" ":Ke.getRange(Le(bt.line,bt.ch-1),bt);if(!ae.isWordChar(Lt)&&tt!=je&&!ae.isWordChar(tt))Oe="both";else return ae.Pass}else if(Je&&(Lt.length===0||/\s/.test(Lt)||ht.indexOf(Lt)>-1))Oe="both";else return ae.Pass;if(!et)et=Oe;else if(et!=Oe)return ae.Pass}var Ut=Bt%2?mt.charAt(Bt-1):je,At=Bt%2?je:mt.charAt(Bt+1);Ke.operation(function(){if(et=="skip")Ke.execCommand("goCharRight");else if(et=="skipThree")for(var Mt=0;Mt<3;Mt++)Ke.execCommand("goCharRight");else if(et=="surround"){for(var Wt=Ke.getSelections(),Mt=0;Mt<Wt.length;Mt++)Wt[Mt]=Ut+Wt[Mt]+At;Ke.replaceSelections(Wt,"around"),Wt=Ke.listSelections().slice();for(var Mt=0;Mt<Wt.length;Mt++)Wt[Mt]=vt(Wt[Mt]);Ke.setSelections(Wt)}else et=="both"?(Ke.replaceSelection(Ut+At,null),Ke.triggerElectric(Ut+At),Ke.execCommand("goCharLeft")):et=="addFour"&&(Ke.replaceSelection(Ut+Ut+Ut+Ut,"before"),Ke.execCommand("goCharRight"))})}function qe(Ke,je){var ft=Ke.getRange(Le(je.line,je.ch-1),Le(je.line,je.ch+1));return ft.length==2?ft:null}function pt(Ke,je){var ft=Ke.getTokenAt(Le(je.line,je.ch+1));return/\bstring/.test(ft.type)&&ft.start==je.ch&&(je.ch==0||!/\bstring/.test(Ke.getTokenTypeAt(je)))}})},6313:function(Mn,tn,oe){(function(ae){ae(oe(89780),oe(32855))})(function(ae){ae.defineOption("autoCloseTags",!1,function(Me,_e,vt){if(vt!=ae.Init&&vt&&Me.removeKeyMap("autoCloseTags"),!!_e){var Fe={name:"autoCloseTags"};(typeof _e!="object"||_e.whenClosing!==!1)&&(Fe["'/'"]=function(qe){return Ee(qe)}),(typeof _e!="object"||_e.whenOpening!==!1)&&(Fe["'>'"]=function(qe){return ct(qe)}),Me.addKeyMap(Fe)}});var Ae=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Le=["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 ct(Me){if(Me.getOption("disableInput"))return ae.Pass;for(var _e=Me.listSelections(),vt=[],Fe=Me.getOption("autoCloseTags"),qe=0;qe<_e.length;qe++){if(!_e[qe].empty())return ae.Pass;var pt=_e[qe].head,Ke=Me.getTokenAt(pt),je=ae.innerMode(Me.getMode(),Ke.state),ft=je.state,mt=je.mode.xmlCurrentTag&&je.mode.xmlCurrentTag(ft),Bt=mt&&mt.name;if(!Bt)return ae.Pass;var ht=je.mode.configuration=="html",nt=typeof Fe=="object"&&Fe.dontCloseTags||ht&&Ae,Re=typeof Fe=="object"&&Fe.indentTags||ht&&Le;Ke.end>pt.ch&&(Bt=Bt.slice(0,Bt.length-Ke.end+pt.ch));var Ce=Bt.toLowerCase();if(!Bt||Ke.type=="string"&&(Ke.end!=pt.ch||!/[\"\']/.test(Ke.string.charAt(Ke.string.length-1))||Ke.string.length==1)||Ke.type=="tag"&&mt.close||Ke.string.indexOf("/")==pt.ch-Ke.start-1||nt&&pe(nt,Ce)>-1||ve(Me,je.mode.xmlCurrentContext&&je.mode.xmlCurrentContext(ft)||[],Bt,pt,!0))return ae.Pass;var Je=typeof Fe=="object"&&Fe.emptyTags;if(Je&&pe(Je,Bt)>-1){vt[qe]={text:"/>",newPos:ae.Pos(pt.line,pt.ch+2)};continue}var et=Re&&pe(Re,Ce)>-1;vt[qe]={indent:et,text:">"+(et?`
|
|
|
|
|
|
`:"")+"</"+Bt+">",newPos:et?ae.Pos(pt.line+1,0):ae.Pos(pt.line,pt.ch+1)}}for(var wt=typeof Fe=="object"&&Fe.dontIndentOnAutoClose,qe=_e.length-1;qe>=0;qe--){var Qe=vt[qe];Me.replaceRange(Qe.text,_e[qe].head,_e[qe].anchor,"+insert");var bt=Me.listSelections().slice(0);bt[qe]={head:Qe.newPos,anchor:Qe.newPos},Me.setSelections(bt),!wt&&Qe.indent&&(Me.indentLine(Qe.newPos.line,null,!0),Me.indentLine(Qe.newPos.line+1,null,!0))}}function xe(Me,_e){for(var vt=Me.listSelections(),Fe=[],qe=_e?"/":"</",pt=Me.getOption("autoCloseTags"),Ke=typeof pt=="object"&&pt.dontIndentOnSlash,je=0;je<vt.length;je++){if(!vt[je].empty())return ae.Pass;var ft=vt[je].head,mt=Me.getTokenAt(ft),Bt=ae.innerMode(Me.getMode(),mt.state),ht=Bt.state;if(_e&&(mt.type=="string"||mt.string.charAt(0)!="<"||mt.start!=ft.ch-1))return ae.Pass;var nt,Re=Bt.mode.name!="xml"&&Me.getMode().name=="htmlmixed";if(Re&&Bt.mode.name=="javascript")nt=qe+"script";else if(Re&&Bt.mode.name=="css")nt=qe+"style";else{var Ce=Bt.mode.xmlCurrentContext&&Bt.mode.xmlCurrentContext(ht);if(!Ce||Ce.length&&ve(Me,Ce,Ce[Ce.length-1],ft))return ae.Pass;nt=qe+Ce[Ce.length-1]}Me.getLine(ft.line).charAt(mt.end)!=">"&&(nt+=">"),Fe[je]=nt}if(Me.replaceSelections(Fe),vt=Me.listSelections(),!Ke)for(var je=0;je<vt.length;je++)(je==vt.length-1||vt[je].head.line<vt[je+1].head.line)&&Me.indentLine(vt[je].head.line)}function Ee(Me){return Me.getOption("disableInput")?ae.Pass:xe(Me,!0)}ae.commands.closeTag=function(Me){return xe(Me)};function pe(Me,_e){if(Me.indexOf)return Me.indexOf(_e);for(var vt=0,Fe=Me.length;vt<Fe;++vt)if(Me[vt]==_e)return vt;return-1}function ve(Me,_e,vt,Fe,qe){if(!ae.scanForClosingTag)return!1;var pt=Math.min(Me.lastLine()+1,Fe.line+500),Ke=ae.scanForClosingTag(Me,Fe,null,pt);if(!Ke||Ke.tag!=vt)return!1;for(var je=qe?1:0,ft=_e.length-1;ft>=0&&_e[ft]==vt;ft--)++je;Fe=Ke.to;for(var ft=1;ft<je;ft++){var mt=ae.scanForClosingTag(Me,Fe,null,pt);if(!mt||mt.tag!=vt)return!1;Fe=mt.to}return!0}})},32855:function(Mn,tn,oe){(function(ae){ae(oe(89780))})(function(ae){"use strict";var Ae=ae.Pos;function Le(ft,mt){return ft.line-mt.line||ft.ch-mt.ch}var ct="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",xe=ct+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ee=new RegExp("<(/?)(["+ct+"]["+xe+"]*)","g");function pe(ft,mt,Bt,ht){this.line=mt,this.ch=Bt,this.cm=ft,this.text=ft.getLine(mt),this.min=ht?Math.max(ht.from,ft.firstLine()):ft.firstLine(),this.max=ht?Math.min(ht.to-1,ft.lastLine()):ft.lastLine()}function ve(ft,mt){var Bt=ft.cm.getTokenTypeAt(Ae(ft.line,mt));return Bt&&/\btag\b/.test(Bt)}function Me(ft){if(!(ft.line>=ft.max))return ft.ch=0,ft.text=ft.cm.getLine(++ft.line),!0}function _e(ft){if(!(ft.line<=ft.min))return ft.text=ft.cm.getLine(--ft.line),ft.ch=ft.text.length,!0}function vt(ft){for(;;){var mt=ft.text.indexOf(">",ft.ch);if(mt==-1){if(Me(ft))continue;return}if(!ve(ft,mt+1)){ft.ch=mt+1;continue}var Bt=ft.text.lastIndexOf("/",mt),ht=Bt>-1&&!/\S/.test(ft.text.slice(Bt+1,mt));return ft.ch=mt+1,ht?"selfClose":"regular"}}function Fe(ft){for(;;){var mt=ft.ch?ft.text.lastIndexOf("<",ft.ch-1):-1;if(mt==-1){if(_e(ft))continue;return}if(!ve(ft,mt+1)){ft.ch=mt;continue}Ee.lastIndex=mt,ft.ch=mt;var Bt=Ee.exec(ft.text);if(Bt&&Bt.index==mt)return Bt}}function qe(ft){for(;;){Ee.lastIndex=ft.ch;var mt=Ee.exec(ft.text);if(!mt){if(Me(ft))continue;return}if(!ve(ft,mt.index+1)){ft.ch=mt.index+1;continue}return ft.ch=mt.index+mt[0].length,mt}}function pt(ft){for(;;){var mt=ft.ch?ft.text.lastIndexOf(">",ft.ch-1):-1;if(mt==-1){if(_e(ft))continue;return}if(!ve(ft,mt+1)){ft.ch=mt;continue}var Bt=ft.text.lastIndexOf("/",mt),ht=Bt>-1&&!/\S/.test(ft.text.slice(Bt+1,mt));return ft.ch=mt+1,ht?"selfClose":"regular"}}function Ke(ft,mt){for(var Bt=[];;){var ht=qe(ft),nt,Re=ft.line,Ce=ft.ch-(ht?ht[0].length:0);if(!ht||!(nt=vt(ft)))return;if(nt!="selfClose")if(ht[1]){for(var Je=Bt.length-1;Je>=0;--Je)if(Bt[Je]==ht[2]){Bt.length=Je;break}if(Je<0&&(!mt||mt==ht[2]))return{tag:ht[2],from:Ae(Re,Ce),to:Ae(ft.line,ft.ch)}}else Bt.push(ht[2])}}function je(ft,mt){for(var Bt=[];;){var ht=pt(ft);if(!ht)return;if(ht=="selfClose"){Fe(ft);continue}var nt=ft.line,Re=ft.ch,Ce=Fe(ft);if(!Ce)return;if(Ce[1])Bt.push(Ce[2]);else{for(var Je=Bt.length-1;Je>=0;--Je)if(Bt[Je]==Ce[2]){Bt.length=Je;break}if(Je<0&&(!mt||mt==Ce[2]))return{tag:Ce[2],from:Ae(ft.line,ft.ch),to:Ae(nt,Re)}}}}ae.registerHelper("fold","xml",function(ft,mt){for(var Bt=new pe(ft,mt.line,0);;){var ht=qe(Bt);if(!ht||Bt.line!=mt.line)return;var nt=vt(Bt);if(!nt)return;if(!ht[1]&&nt!="selfClose"){var Re=Ae(Bt.line,Bt.ch),Ce=Ke(Bt,ht[2]);return Ce&&Le(Ce.from,Re)>0?{from:Re,to:Ce.from}:null}}}),ae.findMatchingTag=function(ft,mt,Bt){var ht=new pe(ft,mt.line,mt.ch,Bt);if(!(ht.text.indexOf(">")==-1&&ht.text.indexOf("<")==-1)){var nt=vt(ht),Re=nt&&Ae(ht.line,ht.ch),Ce=nt&&Fe(ht);if(!(!nt||!Ce||Le(ht,mt)>0)){var Je={from:Ae(ht.line,ht.ch),to:Re,tag:Ce[2]};return nt=="selfClose"?{open:Je,close:null,at:"open"}:Ce[1]?{open:je(ht,Ce[2]),close:Je,at:"close"}:(ht=new pe(ft,Re.line,Re.ch,Bt),{open:Je,close:Ke(ht,Ce[2]),at:"open"})}}},ae.findEnclosingTag=function(ft,mt,Bt,ht){for(var nt=new pe(ft,mt.line,mt.ch,Bt);;){var Re=je(nt,ht);if(!Re)break;var Ce=new pe(ft,mt.line,mt.ch,Bt),Je=Ke(Ce,Re.tag);if(Je)return{open:Re,close:Je}}},ae.scanForClosingTag=function(ft,mt,Bt,ht){var nt=new pe(ft,mt.line,mt.ch,ht?{from:0,to:ht}:null);return Ke(nt,Bt)}})},89780:function(Mn){(function(tn,oe){Mn.exports=oe()})(this,function(){"use strict";var tn=navigator.userAgent,oe=navigator.platform,ae=/gecko\/\d/i.test(tn),Ae=/MSIE \d/.test(tn),Le=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(tn),ct=/Edge\/(\d+)/.exec(tn),xe=Ae||Le||ct,Ee=xe&&(Ae?document.documentMode||6:+(ct||Le)[1]),pe=!ct&&/WebKit\//.test(tn),ve=pe&&/Qt\/\d+\.\d+/.test(tn),Me=!ct&&/Chrome\//.test(tn),_e=/Opera\//.test(tn),vt=/Apple Computer/.test(navigator.vendor),Fe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(tn),qe=/PhantomJS/.test(tn),pt=!ct&&/AppleWebKit/.test(tn)&&/Mobile\/\w+/.test(tn),Ke=/Android/.test(tn),je=pt||Ke||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(tn),ft=pt||/Mac/.test(oe),mt=/\bCrOS\b/.test(tn),Bt=/win/i.test(oe),ht=_e&&tn.match(/Version\/(\d*\.\d*)/);ht&&(ht=Number(ht[1])),ht&&ht>=15&&(_e=!1,pe=!0);var nt=ft&&(ve||_e&&(ht==null||ht<12.11)),Re=ae||xe&&Ee>=9;function Ce(x){return new RegExp("(^|\\s)"+x+"(?:$|\\s)\\s*")}var Je=function(x,z){var ne=x.className,te=Ce(z).exec(ne);if(te){var ie=ne.slice(te.index+te[0].length);x.className=ne.slice(0,te.index)+(ie?te[1]+ie:"")}};function et(x){for(var z=x.childNodes.length;z>0;--z)x.removeChild(x.firstChild);return x}function wt(x,z){return et(x).appendChild(z)}function Qe(x,z,ne,te){var ie=document.createElement(x);if(ne&&(ie.className=ne),te&&(ie.style.cssText=te),typeof z=="string")ie.appendChild(document.createTextNode(z));else if(z)for(var fe=0;fe<z.length;++fe)ie.appendChild(z[fe]);return ie}function bt(x,z,ne,te){var ie=Qe(x,z,ne,te);return ie.setAttribute("role","presentation"),ie}var Oe;document.createRange?Oe=function(x,z,ne,te){var ie=document.createRange();return ie.setEnd(te||x,ne),ie.setStart(x,z),ie}:Oe=function(x,z,ne){var te=document.body.createTextRange();try{te.moveToElementText(x.parentNode)}catch(ie){return te}return te.collapse(!0),te.moveEnd("character",ne),te.moveStart("character",z),te};function Lt(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 tt(){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 Ut(x,z){var ne=x.className;Ce(z).test(ne)||(x.className+=(ne?" ":"")+z)}function At(x,z){for(var ne=x.split(" "),te=0;te<ne.length;te++)ne[te]&&!Ce(ne[te]).test(z)&&(z+=" "+ne[te]);return z}var Mt=function(x){x.select()};pt?Mt=function(x){x.selectionStart=0,x.selectionEnd=x.value.length}:xe&&(Mt=function(x){try{x.select()}catch(z){}});function Wt(x){var z=Array.prototype.slice.call(arguments,1);return function(){return x.apply(null,z)}}function It(x,z,ne){z||(z={});for(var te in x)x.hasOwnProperty(te)&&(ne!==!1||!z.hasOwnProperty(te))&&(z[te]=x[te]);return z}function Ge(x,z,ne,te,ie){z==null&&(z=x.search(/[^\s\u00a0]/),z==-1&&(z=x.length));for(var fe=te||0,we=ie||0;;){var Te=x.indexOf(" ",fe);if(Te<0||Te>=z)return we+(z-fe);we+=Te-fe,we+=ne-we%ne,fe=Te+1}}var be=function(){this.id=null,this.f=null,this.time=0,this.handler=Wt(this.onTimeout,this)};be.prototype.onTimeout=function(x){x.id=0,x.time<=+new Date?x.f():setTimeout(x.handler,x.time-+new Date)},be.prototype.set=function(x,z){this.f=z;var ne=+new Date+x;(!this.id||ne<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,x),this.time=ne)};function Ye(x,z){for(var ne=0;ne<x.length;++ne)if(x[ne]==z)return ne;return-1}var Pt=50,xt={toString:function(){return"CodeMirror.Pass"}},Ue={scroll:!1},at={origin:"*mouse"},Ot={origin:"+move"};function kn(x,z,ne){for(var te=0,ie=0;;){var fe=x.indexOf(" ",te);fe==-1&&(fe=x.length);var we=fe-te;if(fe==x.length||ie+we>=z)return te+Math.min(we,z-ie);if(ie+=fe-te,ie+=ne-ie%ne,te=fe+1,ie>=z)return te}}var Kt=[""];function gn(x){for(;Kt.length<=x;)Kt.push(nn(Kt)+" ");return Kt[x]}function nn(x){return x[x.length-1]}function Gt(x,z){for(var ne=[],te=0;te<x.length;te++)ne[te]=z(x[te],te);return ne}function Xt(x,z,ne){for(var te=0,ie=ne(z);te<x.length&&ne(x[te])<=ie;)te++;x.splice(te,0,z)}function ye(){}function ue(x,z){var ne;return Object.create?ne=Object.create(x):(ye.prototype=x,ne=new ye),z&&It(z,ne),ne}var ce=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function de(x){return/\w/.test(x)||x>"\x80"&&(x.toUpperCase()!=x.toLowerCase()||ce.test(x))}function he(x,z){return z?z.source.indexOf("\\w")>-1&&de(x)?!0:z.test(x):de(x)}function se(x){for(var z in x)if(x.hasOwnProperty(z)&&x[z])return!1;return!0}var ke=/[\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 gt(x){return x.charCodeAt(0)>=768&&ke.test(x)}function Ie(x,z,ne){for(;(ne<0?z>0:z<x.length)&>(x.charAt(z));)z+=ne;return z}function Be(x,z,ne){for(var te=z>ne?-1:1;;){if(z==ne)return z;var ie=(z+ne)/2,fe=te<0?Math.ceil(ie):Math.floor(ie);if(fe==z)return x(fe)?z:ne;x(fe)?ne=fe:z=fe+te}}function yt(x,z,ne,te){if(!x)return te(z,ne,"ltr",0);for(var ie=!1,fe=0;fe<x.length;++fe){var we=x[fe];(we.from<ne&&we.to>z||z==ne&&we.to==z)&&(te(Math.max(we.from,z),Math.min(we.to,ne),we.level==1?"rtl":"ltr",fe),ie=!0)}ie||te(z,ne,"ltr")}var rt=null;function Ve(x,z,ne){var te;rt=null;for(var ie=0;ie<x.length;++ie){var fe=x[ie];if(fe.from<z&&fe.to>z)return ie;fe.to==z&&(fe.from!=fe.to&&ne=="before"?te=ie:rt=ie),fe.from==z&&(fe.from!=fe.to&&ne!="before"?te=ie:rt=ie)}return te!=null?te:rt}var Ct=function(){var x="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ne(ot){return ot<=247?x.charAt(ot):1424<=ot&&ot<=1524?"R":1536<=ot&&ot<=1785?z.charAt(ot-1536):1774<=ot&&ot<=2220?"r":8192<=ot&&ot<=8203?"w":ot==8204?"b":"L"}var te=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ie=/[stwN]/,fe=/[LRr]/,we=/[Lb1n]/,Te=/[1n]/;function He(ot,jt,un){this.level=ot,this.from=jt,this.to=un}return function(ot,jt){var un=jt=="ltr"?"L":"R";if(ot.length==0||jt=="ltr"&&!te.test(ot))return!1;for(var Rn=ot.length,On=[],lr=0;lr<Rn;++lr)On.push(ne(ot.charCodeAt(lr)));for(var Dr=0,ai=un;Dr<Rn;++Dr){var Ci=On[Dr];Ci=="m"?On[Dr]=ai:ai=Ci}for(var Bi=0,gi=un;Bi<Rn;++Bi){var Ii=On[Bi];Ii=="1"&&gi=="r"?On[Bi]="n":fe.test(Ii)&&(gi=Ii,Ii=="r"&&(On[Bi]="R"))}for(var Ji=1,ea=On[0];Ji<Rn-1;++Ji){var Na=On[Ji];Na=="+"&&ea=="1"&&On[Ji+1]=="1"?On[Ji]="1":Na==","&&ea==On[Ji+1]&&(ea=="1"||ea=="n")&&(On[Ji]=ea),ea=Na}for(var xo=0;xo<Rn;++xo){var Ms=On[xo];if(Ms==",")On[xo]="N";else if(Ms=="%"){var Ko=void 0;for(Ko=xo+1;Ko<Rn&&On[Ko]=="%";++Ko);for(var qs=xo&&On[xo-1]=="!"||Ko<Rn&&On[Ko]=="1"?"1":"N",$s=xo;$s<Ko;++$s)On[$s]=qs;xo=Ko-1}}for(var ds=0,el=un;ds<Rn;++ds){var ya=On[ds];el=="L"&&ya=="1"?On[ds]="L":fe.test(ya)&&(el=ya)}for(var Go=0;Go<Rn;++Go)if(ie.test(On[Go])){var Ho=void 0;for(Ho=Go+1;Ho<Rn&&ie.test(On[Ho]);++Ho);for(var Yo=(Go?On[Go-1]:un)=="L",is=(Ho<Rn?On[Ho]:un)=="L",jc=Yo==is?Yo?"L":"R":un,sl=Go;sl<Ho;++sl)On[sl]=jc;Go=Ho-1}for(var Ds=[],no,gs=0;gs<Rn;)if(we.test(On[gs])){var ld=gs;for(++gs;gs<Rn&&we.test(On[gs]);++gs);Ds.push(new He(0,ld,gs))}else{var hc=gs,kc=Ds.length,Jl=jt=="rtl"?1:0;for(++gs;gs<Rn&&On[gs]!="L";++gs);for(var fs=hc;fs<gs;)if(Te.test(On[fs])){hc<fs&&(Ds.splice(kc,0,new He(1,hc,fs)),kc+=Jl);var Vc=fs;for(++fs;fs<gs&&Te.test(On[fs]);++fs);Ds.splice(kc,0,new He(2,Vc,fs)),kc+=Jl,hc=fs}else++fs;hc<gs&&Ds.splice(kc,0,new He(1,hc,gs))}return jt=="ltr"&&(Ds[0].level==1&&(no=ot.match(/^\s+/))&&(Ds[0].from=no[0].length,Ds.unshift(new He(0,0,no[0].length))),nn(Ds).level==1&&(no=ot.match(/\s+$/))&&(nn(Ds).to-=no[0].length,Ds.push(new He(0,Rn-no[0].length,Rn)))),jt=="rtl"?Ds.reverse():Ds}}();function rn(x,z){var ne=x.order;return ne==null&&(ne=x.order=Ct(x.text,z)),ne}var lt=[],_t=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]||lt).concat(ne)}};function fn(x,z){return x._handlers&&x._handlers[z]||lt}function ut(x,z,ne){if(x.removeEventListener)x.removeEventListener(z,ne,!1);else if(x.detachEvent)x.detachEvent("on"+z,ne);else{var te=x._handlers,ie=te&&te[z];if(ie){var fe=Ye(ie,ne);fe>-1&&(te[z]=ie.slice(0,fe).concat(ie.slice(fe+1)))}}}function De(x,z){var ne=fn(x,z);if(ne.length)for(var te=Array.prototype.slice.call(arguments,2),ie=0;ie<ne.length;++ie)ne[ie].apply(null,te)}function dt(x,z,ne){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),De(x,ne||z.type,x,z),pn(z)||z.codemirrorIgnore}function Ft(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)Ye(ne,z[te])==-1&&ne.push(z[te])}function zt(x,z){return fn(x,z).length>0}function an(x){x.prototype.on=function(z,ne){_t(this,z,ne)},x.prototype.off=function(z,ne){ut(this,z,ne)}}function Bn(x){x.preventDefault?x.preventDefault():x.returnValue=!1}function qt(x){x.stopPropagation?x.stopPropagation():x.cancelBubble=!0}function pn(x){return x.defaultPrevented!=null?x.defaultPrevented:x.returnValue==!1}function zn(x){Bn(x),qt(x)}function Vn(x){return x.target||x.srcElement}function Pn(x){var z=x.which;return z==null&&(x.button&1?z=1:x.button&2?z=3:x.button&4&&(z=2)),ft&&x.ctrlKey&&z==1&&(z=3),z}var Qn=function(){if(xe&&Ee<9)return!1;var x=Qe("div");return"draggable"in x||"dragDrop"in x}(),gr;function rr(x){if(gr==null){var z=Qe("span","\u200B");wt(x,Qe("span",[z,document.createTextNode("x")])),x.firstChild.offsetHeight!=0&&(gr=z.offsetWidth<=1&&z.offsetHeight>2&&!(xe&&Ee<8))}var ne=gr?Qe("span","\u200B"):Qe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ne.setAttribute("cm-text",""),ne}var er;function pr(x){if(er!=null)return er;var z=wt(x,document.createTextNode("A\u062EA")),ne=Oe(z,0,1).getBoundingClientRect(),te=Oe(z,1,2).getBoundingClientRect();return et(x),!ne||ne.left==ne.right?!1:er=te.right-ne.right<3}var Pr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(x){for(var z=0,ne=[],te=x.length;z<=te;){var ie=x.indexOf(`
|
|
|
`,z);ie==-1&&(ie=x.length);var fe=x.slice(z,x.charAt(ie-1)=="\r"?ie-1:ie),we=fe.indexOf("\r");we!=-1?(ne.push(fe.slice(0,we)),z+=we+1):(ne.push(fe),z=ie+1)}return ne}:function(x){return x.split(/\r\n?|\n/)},$n=window.getSelection?function(x){try{return x.selectionStart!=x.selectionEnd}catch(z){return!1}}:function(x){var z;try{z=x.ownerDocument.selection.createRange()}catch(ne){}return!z||z.parentElement()!=x?!1:z.compareEndPoints("StartToEnd",z)!=0},Wr=function(){var x=Qe("div");return"oncopy"in x?!0:(x.setAttribute("oncopy","return;"),typeof x.oncopy=="function")}(),vr=null;function qr(x){if(vr!=null)return vr;var z=wt(x,Qe("span","x")),ne=z.getBoundingClientRect(),te=Oe(z,0,1).getBoundingClientRect();return vr=Math.abs(ne.left-te.left)>1}var xi={},Ar={};function dr(x,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),xi[x]=z}function Mr(x,z){Ar[x]=z}function tr(x){if(typeof x=="string"&&Ar.hasOwnProperty(x))x=Ar[x];else if(x&&typeof x.name=="string"&&Ar.hasOwnProperty(x.name)){var z=Ar[x.name];typeof z=="string"&&(z={name:z}),x=ue(z,x),x.name=z.name}else{if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(x))return tr("application/xml");if(typeof x=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(x))return tr("application/json")}return typeof x=="string"?{name:x}:x||{name:"null"}}function Gn(x,z){z=tr(z);var ne=xi[z.name];if(!ne)return Gn(x,"text/plain");var te=ne(x,z);if(Xr.hasOwnProperty(z.name)){var ie=Xr[z.name];for(var fe in ie)ie.hasOwnProperty(fe)&&(te.hasOwnProperty(fe)&&(te["_"+fe]=te[fe]),te[fe]=ie[fe])}if(te.name=z.name,z.helperType&&(te.helperType=z.helperType),z.modeProps)for(var we in z.modeProps)te[we]=z.modeProps[we];return te}var Xr={};function Rt(x,z){var ne=Xr.hasOwnProperty(x)?Xr[x]:Xr[x]={};It(z,ne)}function ze(x,z){if(z===!0)return z;if(x.copyState)return x.copyState(z);var ne={};for(var te in z){var ie=z[te];ie instanceof Array&&(ie=ie.concat([])),ne[te]=ie}return ne}function $e(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 Xe(x,z,ne){return x.startState?x.startState(z,ne):!0}var Ze=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};Ze.prototype.eol=function(){return this.pos>=this.string.length},Ze.prototype.sol=function(){return this.pos==this.lineStart},Ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ze.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ze.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},Ze.prototype.eatWhile=function(x){for(var z=this.pos;this.eat(x););return this.pos>z},Ze.prototype.eatSpace=function(){for(var x=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>x},Ze.prototype.skipToEnd=function(){this.pos=this.string.length},Ze.prototype.skipTo=function(x){var z=this.string.indexOf(x,this.pos);if(z>-1)return this.pos=z,!0},Ze.prototype.backUp=function(x){this.pos-=x},Ze.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ge(this.string,this.lineStart,this.tabSize):0)},Ze.prototype.indentation=function(){return Ge(this.string,null,this.tabSize)-(this.lineStart?Ge(this.string,this.lineStart,this.tabSize):0)},Ze.prototype.match=function(x,z,ne){if(typeof x=="string"){var te=function(we){return ne?we.toLowerCase():we},ie=this.string.substr(this.pos,x.length);if(te(ie)==te(x))return z!==!1&&(this.pos+=x.length),!0}else{var fe=this.string.slice(this.pos).match(x);return fe&&fe.index>0?null:(fe&&z!==!1&&(this.pos+=fe[0].length),fe)}},Ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ze.prototype.hideFirstChars=function(x,z){this.lineStart+=x;try{return z()}finally{this.lineStart-=x}},Ze.prototype.lookAhead=function(x){var z=this.lineOracle;return z&&z.lookAhead(x)},Ze.prototype.baseToken=function(){var x=this.lineOracle;return x&&x.baseToken(this.pos)};function Et(x,z){if(z-=x.first,z<0||z>=x.size)throw new Error("There is no line "+(z+x.first)+" in the document.");for(var ne=x;!ne.lines;)for(var te=0;;++te){var ie=ne.children[te],fe=ie.chunkSize();if(z<fe){ne=ie;break}z-=fe}return ne.lines[z]}function Tt(x,z,ne){var te=[],ie=z.line;return x.iter(z.line,ne.line+1,function(fe){var we=fe.text;ie==ne.line&&(we=we.slice(0,ne.ch)),ie==z.line&&(we=we.slice(z.ch)),te.push(we),++ie}),te}function hn(x,z,ne){var te=[];return x.iter(z,ne,function(ie){te.push(ie.text)}),te}function ln(x,z){var ne=z-x.height;if(ne)for(var te=x;te;te=te.parent)te.height+=ne}function wn(x){if(x.parent==null)return null;for(var z=x.parent,ne=Ye(z.lines,x),te=z.parent;te;z=te,te=te.parent)for(var ie=0;te.children[ie]!=z;++ie)ne+=te.children[ie].chunkSize();return ne+z.first}function Tn(x,z){var ne=x.first;e:do{for(var te=0;te<x.children.length;++te){var ie=x.children[te],fe=ie.height;if(z<fe){x=ie;continue e}z-=fe,ne+=ie.chunkSize()}return ne}while(!x.lines);for(var we=0;we<x.lines.length;++we){var Te=x.lines[we],He=Te.height;if(z<He)break;z-=He}return ne+we}function Fn(x,z){return z>=x.first&&z<x.first+x.size}function jn(x,z){return String(x.lineNumberFormatter(z+x.firstLineNumber))}function Qt(x,z,ne){if(ne===void 0&&(ne=null),!(this instanceof Qt))return new Qt(x,z,ne);this.line=x,this.ch=z,this.sticky=ne}function Dn(x,z){return x.line-z.line||x.ch-z.ch}function Dt(x,z){return x.sticky==z.sticky&&Dn(x,z)==0}function Zt(x){return Qt(x.line,x.ch)}function on(x,z){return Dn(x,z)<0?z:x}function cn(x,z){return Dn(x,z)<0?x:z}function In(x,z){return Math.max(x.first,Math.min(z,x.first+x.size-1))}function en(x,z){if(z.line<x.first)return Qt(x.first,0);var ne=x.first+x.size-1;return z.line>ne?Qt(ne,Et(x,ne).text.length):Ln(z,Et(x,z.line).text.length)}function Ln(x,z){var ne=x.ch;return ne==null||ne>z?Qt(x.line,z):ne<0?Qt(x.line,0):x}function it(x,z){for(var ne=[],te=0;te<z.length;te++)ne[te]=en(x,z[te]);return ne}var Yt=function(x,z){this.state=x,this.lookAhead=z},$t=function(x,z,ne,te){this.state=z,this.doc=x,this.line=ne,this.maxLookAhead=te||0,this.baseTokens=null,this.baseTokenPos=1};$t.prototype.lookAhead=function(x){var z=this.doc.getLine(this.line+x);return z!=null&&x>this.maxLookAhead&&(this.maxLookAhead=x),z},$t.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}},$t.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},$t.fromSaved=function(x,z,ne){return z instanceof Yt?new $t(x,ze(x.mode,z.state),ne,z.lookAhead):new $t(x,ze(x.mode,z),ne)},$t.prototype.save=function(x){var z=x!==!1?ze(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Yt(z,this.maxLookAhead):z};function vn(x,z,ne,te){var ie=[x.state.modeGen],fe={};jr(x,z.text,x.doc.mode,ne,function(ot,jt){return ie.push(ot,jt)},fe,te);for(var we=ne.state,Te=function(ot){ne.baseTokens=ie;var jt=x.state.overlays[ot],un=1,Rn=0;ne.state=!0,jr(x,z.text,jt.mode,ne,function(On,lr){for(var Dr=un;Rn<On;){var ai=ie[un];ai>On&&ie.splice(un,1,On,ie[un+1],ai),un+=2,Rn=Math.min(On,ai)}if(lr)if(jt.opaque)ie.splice(Dr,un-Dr,On,"overlay "+lr),un=Dr+2;else for(;Dr<un;Dr+=2){var Ci=ie[Dr+1];ie[Dr+1]=(Ci?Ci+" ":"")+"overlay "+lr}},fe),ne.state=we,ne.baseTokens=null,ne.baseTokenPos=1},He=0;He<x.state.overlays.length;++He)Te(He);return{styles:ie,classes:fe.bgClass||fe.textClass?fe:null}}function dn(x,z,ne){if(!z.styles||z.styles[0]!=x.state.modeGen){var te=xn(x,wn(z)),ie=z.text.length>x.options.maxHighlightLength&&ze(x.doc.mode,te.state),fe=vn(x,z,te);ie&&(te.state=ie),z.stateAfter=te.save(!ie),z.styles=fe.styles,fe.classes?z.styleClasses=fe.classes:z.styleClasses&&(z.styleClasses=null),ne===x.doc.highlightFrontier&&(x.doc.modeFrontier=Math.max(x.doc.modeFrontier,++x.doc.highlightFrontier))}return z.styles}function xn(x,z,ne){var te=x.doc,ie=x.display;if(!te.mode.startState)return new $t(te,!0,z);var fe=br(x,z,ne),we=fe>te.first&&Et(te,fe-1).stateAfter,Te=we?$t.fromSaved(te,we,fe):new $t(te,Xe(te.mode),fe);return te.iter(fe,z,function(He){yn(x,He.text,Te);var ot=Te.line;He.stateAfter=ot==z-1||ot%5==0||ot>=ie.viewFrom&&ot<ie.viewTo?Te.save():null,Te.nextLine()}),ne&&(te.modeFrontier=Te.line),Te}function yn(x,z,ne,te){var ie=x.doc.mode,fe=new Ze(z,x.options.tabSize,ne);for(fe.start=fe.pos=te||0,z==""&&_n(ie,ne.state);!fe.eol();)Un(ie,fe,ne.state),fe.start=fe.pos}function _n(x,z){if(x.blankLine)return x.blankLine(z);if(x.innerMode){var ne=$e(x,z);if(ne.mode.blankLine)return ne.mode.blankLine(ne.state)}}function Un(x,z,ne,te){for(var ie=0;ie<10;ie++){te&&(te[0]=$e(x,ne).mode);var fe=x.token(z,ne);if(z.pos>z.start)return fe}throw new Error("Mode "+x.name+" failed to advance stream.")}var nr=function(x,z,ne){this.start=x.start,this.end=x.pos,this.string=x.current(),this.type=z||null,this.state=ne};function mr(x,z,ne,te){var ie=x.doc,fe=ie.mode,we;z=en(ie,z);var Te=Et(ie,z.line),He=xn(x,z.line,ne),ot=new Ze(Te.text,x.options.tabSize,He),jt;for(te&&(jt=[]);(te||ot.pos<z.ch)&&!ot.eol();)ot.start=ot.pos,we=Un(fe,ot,He.state),te&&jt.push(new nr(ot,we,ze(ie.mode,He.state)));return te?jt:new nr(ot,we,He.state)}function Tr(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 jr(x,z,ne,te,ie,fe,we){var Te=ne.flattenSpans;Te==null&&(Te=x.options.flattenSpans);var He=0,ot=null,jt=new Ze(z,x.options.tabSize,te),un,Rn=x.options.addModeClass&&[null];for(z==""&&Tr(_n(ne,te.state),fe);!jt.eol();){if(jt.pos>x.options.maxHighlightLength?(Te=!1,we&&yn(x,z,te,jt.pos),jt.pos=z.length,un=null):un=Tr(Un(ne,jt,te.state,Rn),fe),Rn){var On=Rn[0].name;On&&(un="m-"+(un?On+" "+un:On))}if(!Te||ot!=un){for(;He<jt.start;)He=Math.min(jt.start,He+5e3),ie(He,ot);ot=un}jt.start=jt.pos}for(;He<jt.pos;){var lr=Math.min(jt.pos,He+5e3);ie(lr,ot),He=lr}}function br(x,z,ne){for(var te,ie,fe=x.doc,we=ne?-1:z-(x.doc.mode.innerMode?1e3:100),Te=z;Te>we;--Te){if(Te<=fe.first)return fe.first;var He=Et(fe,Te-1),ot=He.stateAfter;if(ot&&(!ne||Te+(ot instanceof Yt?ot.lookAhead:0)<=fe.modeFrontier))return Te;var jt=Ge(He.text,null,x.options.tabSize);(ie==null||te>jt)&&(ie=Te-1,te=jt)}return ie}function ir(x,z){if(x.modeFrontier=Math.min(x.modeFrontier,z),!(x.highlightFrontier<z-10)){for(var ne=x.first,te=z-1;te>ne;te--){var ie=Et(x,te).stateAfter;if(ie&&(!(ie instanceof Yt)||te+ie.lookAhead<z)){ne=te+1;break}}x.highlightFrontier=Math.min(x.highlightFrontier,ne)}}var Ur=!1,Nr=!1;function $r(){Ur=!0}function Cr(){Nr=!0}function Lr(x,z,ne){this.marker=x,this.from=z,this.to=ne}function ri(x,z){if(x)for(var ne=0;ne<x.length;++ne){var te=x[ne];if(te.marker==z)return te}}function Kr(x,z){for(var ne,te=0;te<x.length;++te)x[te]!=z&&(ne||(ne=[])).push(x[te]);return ne}function Ei(x,z){x.markedSpans=x.markedSpans?x.markedSpans.concat([z]):[z],z.marker.attachLine(x)}function Ri(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var fe=x[ie],we=fe.marker,Te=fe.from==null||(we.inclusiveLeft?fe.from<=z:fe.from<z);if(Te||fe.from==z&&we.type=="bookmark"&&(!ne||!fe.marker.insertLeft)){var He=fe.to==null||(we.inclusiveRight?fe.to>=z:fe.to>z);(te||(te=[])).push(new Lr(we,fe.from,He?null:fe.to))}}return te}function zr(x,z,ne){var te;if(x)for(var ie=0;ie<x.length;++ie){var fe=x[ie],we=fe.marker,Te=fe.to==null||(we.inclusiveRight?fe.to>=z:fe.to>z);if(Te||fe.from==z&&we.type=="bookmark"&&(!ne||fe.marker.insertLeft)){var He=fe.from==null||(we.inclusiveLeft?fe.from<=z:fe.from<z);(te||(te=[])).push(new Lr(we,He?null:fe.from-z,fe.to==null?null:fe.to-z))}}return te}function qn(x,z){if(z.full)return null;var ne=Fn(x,z.from.line)&&Et(x,z.from.line).markedSpans,te=Fn(x,z.to.line)&&Et(x,z.to.line).markedSpans;if(!ne&&!te)return null;var ie=z.from.ch,fe=z.to.ch,we=Dn(z.from,z.to)==0,Te=Ri(ne,ie,we),He=zr(te,fe,we),ot=z.text.length==1,jt=nn(z.text).length+(ot?ie:0);if(Te)for(var un=0;un<Te.length;++un){var Rn=Te[un];if(Rn.to==null){var On=ri(He,Rn.marker);On?ot&&(Rn.to=On.to==null?null:On.to+jt):Rn.to=ie}}if(He)for(var lr=0;lr<He.length;++lr){var Dr=He[lr];if(Dr.to!=null&&(Dr.to+=jt),Dr.from==null){var ai=ri(Te,Dr.marker);ai||(Dr.from=jt,ot&&(Te||(Te=[])).push(Dr))}else Dr.from+=jt,ot&&(Te||(Te=[])).push(Dr)}Te&&(Te=Jn(Te)),He&&He!=Te&&(He=Jn(He));var Ci=[Te];if(!ot){var Bi=z.text.length-2,gi;if(Bi>0&&Te)for(var Ii=0;Ii<Te.length;++Ii)Te[Ii].to==null&&(gi||(gi=[])).push(new Lr(Te[Ii].marker,null,null));for(var Ji=0;Ji<Bi;++Ji)Ci.push(gi);Ci.push(He)}return Ci}function Jn(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 Jr(x,z,ne){var te=null;if(x.iter(z.line,ne.line+1,function(On){if(On.markedSpans)for(var lr=0;lr<On.markedSpans.length;++lr){var Dr=On.markedSpans[lr].marker;Dr.readOnly&&(!te||Ye(te,Dr)==-1)&&(te||(te=[])).push(Dr)}}),!te)return null;for(var ie=[{from:z,to:ne}],fe=0;fe<te.length;++fe)for(var we=te[fe],Te=we.find(0),He=0;He<ie.length;++He){var ot=ie[He];if(!(Dn(ot.to,Te.from)<0||Dn(ot.from,Te.to)>0)){var jt=[He,1],un=Dn(ot.from,Te.from),Rn=Dn(ot.to,Te.to);(un<0||!we.inclusiveLeft&&!un)&&jt.push({from:ot.from,to:Te.from}),(Rn>0||!we.inclusiveRight&&!Rn)&&jt.push({from:Te.to,to:ot.to}),ie.splice.apply(ie,jt),He+=jt.length-3}}return ie}function Rr(x){var z=x.markedSpans;if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.detachLine(x);x.markedSpans=null}}function li(x,z){if(z){for(var ne=0;ne<z.length;++ne)z[ne].marker.attachLine(x);x.markedSpans=z}}function pi(x){return x.inclusiveLeft?-1:0}function fi(x){return x.inclusiveRight?1:0}function Qr(x,z){var ne=x.lines.length-z.lines.length;if(ne!=0)return ne;var te=x.find(),ie=z.find(),fe=Dn(te.from,ie.from)||pi(x)-pi(z);if(fe)return-fe;var we=Dn(te.to,ie.to)||fi(x)-fi(z);return we||z.id-x.id}function oi(x,z){var ne=Nr&&x.markedSpans,te;if(ne)for(var ie=void 0,fe=0;fe<ne.length;++fe)ie=ne[fe],ie.marker.collapsed&&(z?ie.from:ie.to)==null&&(!te||Qr(te,ie.marker)<0)&&(te=ie.marker);return te}function ta(x){return oi(x,!0)}function xr(x){return oi(x,!1)}function Ir(x,z){var ne=Nr&&x.markedSpans,te;if(ne)for(var ie=0;ie<ne.length;++ie){var fe=ne[ie];fe.marker.collapsed&&(fe.from==null||fe.from<z)&&(fe.to==null||fe.to>z)&&(!te||Qr(te,fe.marker)<0)&&(te=fe.marker)}return te}function mi(x,z,ne,te,ie){var fe=Et(x,z),we=Nr&&fe.markedSpans;if(we)for(var Te=0;Te<we.length;++Te){var He=we[Te];if(He.marker.collapsed){var ot=He.marker.find(0),jt=Dn(ot.from,ne)||pi(He.marker)-pi(ie),un=Dn(ot.to,te)||fi(He.marker)-fi(ie);if(!(jt>=0&&un<=0||jt<=0&&un>=0)&&(jt<=0&&(He.marker.inclusiveRight&&ie.inclusiveLeft?Dn(ot.to,ne)>=0:Dn(ot.to,ne)>0)||jt>=0&&(He.marker.inclusiveRight&&ie.inclusiveLeft?Dn(ot.from,te)<=0:Dn(ot.from,te)<0)))return!0}}}function Mi(x){for(var z;z=ta(x);)x=z.find(-1,!0).line;return x}function da(x){for(var z;z=xr(x);)x=z.find(1,!0).line;return x}function ca(x){for(var z,ne;z=xr(x);)x=z.find(1,!0).line,(ne||(ne=[])).push(x);return ne}function qi(x,z){var ne=Et(x,z),te=Mi(ne);return ne==te?z:wn(te)}function Wi(x,z){if(z>x.lastLine())return z;var ne=Et(x,z),te;if(!xa(x,ne))return z;for(;te=xr(ne);)ne=te.find(1,!0).line;return wn(ne)+1}function xa(x,z){var ne=Nr&&z.markedSpans;if(ne){for(var te=void 0,ie=0;ie<ne.length;++ie)if(te=ne[ie],!!te.marker.collapsed){if(te.from==null)return!0;if(!te.marker.widgetNode&&te.from==0&&te.marker.inclusiveLeft&&wa(x,z,te))return!0}}}function wa(x,z,ne){if(ne.to==null){var te=ne.marker.find(1,!0);return wa(x,te.line,ri(te.line.markedSpans,ne.marker))}if(ne.marker.inclusiveRight&&ne.to==z.text.length)return!0;for(var ie=void 0,fe=0;fe<z.markedSpans.length;++fe)if(ie=z.markedSpans[fe],ie.marker.collapsed&&!ie.marker.widgetNode&&ie.from==ne.to&&(ie.to==null||ie.to!=ne.from)&&(ie.marker.inclusiveLeft||ne.marker.inclusiveRight)&&wa(x,z,ie))return!0}function Br(x){x=Mi(x);for(var z=0,ne=x.parent,te=0;te<ne.lines.length;++te){var ie=ne.lines[te];if(ie==x)break;z+=ie.height}for(var fe=ne.parent;fe;ne=fe,fe=ne.parent)for(var we=0;we<fe.children.length;++we){var Te=fe.children[we];if(Te==ne)break;z+=Te.height}return z}function kr(x){if(x.height==0)return 0;for(var z=x.text.length,ne,te=x;ne=ta(te);){var ie=ne.find(0,!0);te=ie.from.line,z+=ie.from.ch-ie.to.ch}for(te=x;ne=xr(te);){var fe=ne.find(0,!0);z-=te.text.length-fe.from.ch,te=fe.to.line,z+=te.text.length-fe.to.ch}return z}function Er(x){var z=x.display,ne=x.doc;z.maxLine=Et(ne,ne.first),z.maxLineLength=kr(z.maxLine),z.maxLineChanged=!0,ne.iter(function(te){var ie=kr(te);ie>z.maxLineLength&&(z.maxLineLength=ie,z.maxLine=te)})}var Gr=function(x,z,ne){this.text=x,li(this,z),this.height=ne?ne(this):1};Gr.prototype.lineNo=function(){return wn(this)},an(Gr);function Xi(x,z,ne,te){x.text=z,x.stateAfter&&(x.stateAfter=null),x.styles&&(x.styles=null),x.order!=null&&(x.order=null),Rr(x),li(x,ne);var ie=te?te(x):1;ie!=x.height&&ln(x,ie)}function fa(x){x.parent=null,Rr(x)}var va={},pa={};function ua(x,z){if(!x||/^\s*$/.test(x))return null;var ne=z.addModeClass?pa:va;return ne[x]||(ne[x]=x.replace(/\S+/g,"cm-$&"))}function Aa(x,z){var ne=bt("span",null,null,pe?"padding-right: .1px":null),te={pre:bt("pre",[ne],"CodeMirror-line"),content:ne,col:0,pos:0,cm:x,trailingSpace:!1,splitSpaces:x.getOption("lineWrapping")};z.measure={};for(var ie=0;ie<=(z.rest?z.rest.length:0);ie++){var fe=ie?z.rest[ie-1]:z.line,we=void 0;te.pos=0,te.addToken=Ua,pr(x.display.measure)&&(we=rn(fe,x.doc.direction))&&(te.addToken=Fi(te.addToken,we)),te.map=[];var Te=z!=x.display.externalMeasured&&wn(fe);La(fe,te,dn(x,fe,Te)),fe.styleClasses&&(fe.styleClasses.bgClass&&(te.bgClass=At(fe.styleClasses.bgClass,te.bgClass||"")),fe.styleClasses.textClass&&(te.textClass=At(fe.styleClasses.textClass,te.textClass||""))),te.map.length==0&&te.map.push(0,0,te.content.appendChild(rr(x.display.measure))),ie==0?(z.measure.map=te.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(te.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(pe){var He=te.content.lastChild;(/\bcm-tab\b/.test(He.className)||He.querySelector&&He.querySelector(".cm-tab"))&&(te.content.className="cm-tab-wrap-hack")}return De(x,"renderLine",x,z.line,te.pre),te.pre.className&&(te.textClass=At(te.pre.className,te.textClass||"")),te}function Ya(x){var z=Qe("span","\u2022","cm-invalidchar");return z.title="\\u"+x.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function Ua(x,z,ne,te,ie,fe,we){if(z){var Te=x.splitSpaces?go(z,x.trailingSpace):z,He=x.cm.state.specialChars,ot=!1,jt;if(!He.test(z))x.col+=z.length,jt=document.createTextNode(Te),x.map.push(x.pos,x.pos+z.length,jt),xe&&Ee<9&&(ot=!0),x.pos+=z.length;else{jt=document.createDocumentFragment();for(var un=0;;){He.lastIndex=un;var Rn=He.exec(z),On=Rn?Rn.index-un:z.length-un;if(On){var lr=document.createTextNode(Te.slice(un,un+On));xe&&Ee<9?jt.appendChild(Qe("span",[lr])):jt.appendChild(lr),x.map.push(x.pos,x.pos+On,lr),x.col+=On,x.pos+=On}if(!Rn)break;un+=On+1;var Dr=void 0;if(Rn[0]==" "){var ai=x.cm.options.tabSize,Ci=ai-x.col%ai;Dr=jt.appendChild(Qe("span",gn(Ci),"cm-tab")),Dr.setAttribute("role","presentation"),Dr.setAttribute("cm-text"," "),x.col+=Ci}else Rn[0]=="\r"||Rn[0]==`
|
|
|
`?(Dr=jt.appendChild(Qe("span",Rn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Dr.setAttribute("cm-text",Rn[0]),x.col+=1):(Dr=x.cm.options.specialCharPlaceholder(Rn[0]),Dr.setAttribute("cm-text",Rn[0]),xe&&Ee<9?jt.appendChild(Qe("span",[Dr])):jt.appendChild(Dr),x.col+=1);x.map.push(x.pos,x.pos+1,Dr),x.pos++}}if(x.trailingSpace=Te.charCodeAt(z.length-1)==32,ne||te||ie||ot||fe||we){var Bi=ne||"";te&&(Bi+=te),ie&&(Bi+=ie);var gi=Qe("span",[jt],Bi,fe);if(we)for(var Ii in we)we.hasOwnProperty(Ii)&&Ii!="style"&&Ii!="class"&&gi.setAttribute(Ii,we[Ii]);return x.content.appendChild(gi)}x.content.appendChild(jt)}}function go(x,z){if(x.length>1&&!/ /.test(x))return x;for(var ne=z,te="",ie=0;ie<x.length;ie++){var fe=x.charAt(ie);fe==" "&&ne&&(ie==x.length-1||x.charCodeAt(ie+1)==32)&&(fe="\xA0"),te+=fe,ne=fe==" "}return te}function Fi(x,z){return function(ne,te,ie,fe,we,Te,He){ie=ie?ie+" cm-force-border":"cm-force-border";for(var ot=ne.pos,jt=ot+te.length;;){for(var un=void 0,Rn=0;Rn<z.length&&(un=z[Rn],!(un.to>ot&&un.from<=ot));Rn++);if(un.to>=jt)return x(ne,te,ie,fe,we,Te,He);x(ne,te.slice(0,un.to-ot),ie,fe,null,Te,He),fe=null,te=te.slice(un.to-ot),ot=un.to}}}function Vi(x,z,ne,te){var ie=!te&&ne.widgetNode;ie&&x.map.push(x.pos,x.pos+z,ie),!te&&x.cm.display.input.needsContentAttribute&&(ie||(ie=x.content.appendChild(document.createElement("span"))),ie.setAttribute("cm-marker",ne.id)),ie&&(x.cm.display.input.setUneditable(ie),x.content.appendChild(ie)),x.pos+=z,x.trailingSpace=!1}function La(x,z,ne){var te=x.markedSpans,ie=x.text,fe=0;if(!te){for(var we=1;we<ne.length;we+=2)z.addToken(z,ie.slice(fe,fe=ne[we]),ua(ne[we+1],z.cm.options));return}for(var Te=ie.length,He=0,ot=1,jt="",un,Rn,On=0,lr,Dr,ai,Ci,Bi;;){if(On==He){lr=Dr=ai=Rn="",Bi=null,Ci=null,On=1/0;for(var gi=[],Ii=void 0,Ji=0;Ji<te.length;++Ji){var ea=te[Ji],Na=ea.marker;if(Na.type=="bookmark"&&ea.from==He&&Na.widgetNode)gi.push(Na);else if(ea.from<=He&&(ea.to==null||ea.to>He||Na.collapsed&&ea.to==He&&ea.from==He)){if(ea.to!=null&&ea.to!=He&&On>ea.to&&(On=ea.to,Dr=""),Na.className&&(lr+=" "+Na.className),Na.css&&(Rn=(Rn?Rn+";":"")+Na.css),Na.startStyle&&ea.from==He&&(ai+=" "+Na.startStyle),Na.endStyle&&ea.to==On&&(Ii||(Ii=[])).push(Na.endStyle,ea.to),Na.title&&((Bi||(Bi={})).title=Na.title),Na.attributes)for(var xo in Na.attributes)(Bi||(Bi={}))[xo]=Na.attributes[xo];Na.collapsed&&(!Ci||Qr(Ci.marker,Na)<0)&&(Ci=ea)}else ea.from>He&&On>ea.from&&(On=ea.from)}if(Ii)for(var Ms=0;Ms<Ii.length;Ms+=2)Ii[Ms+1]==On&&(Dr+=" "+Ii[Ms]);if(!Ci||Ci.from==He)for(var Ko=0;Ko<gi.length;++Ko)Vi(z,0,gi[Ko]);if(Ci&&(Ci.from||0)==He){if(Vi(z,(Ci.to==null?Te+1:Ci.to)-He,Ci.marker,Ci.from==null),Ci.to==null)return;Ci.to==He&&(Ci=!1)}}if(He>=Te)break;for(var qs=Math.min(Te,On);;){if(jt){var $s=He+jt.length;if(!Ci){var ds=$s>qs?jt.slice(0,qs-He):jt;z.addToken(z,ds,un?un+lr:lr,ai,He+ds.length==On?Dr:"",Rn,Bi)}if($s>=qs){jt=jt.slice(qs-He),He=qs;break}He=$s,ai=""}jt=ie.slice(fe,fe=ne[ot++]),un=ua(ne[ot++],z.cm.options)}}}function aa(x,z,ne){this.line=z,this.rest=ca(z),this.size=this.rest?wn(nn(this.rest))-ne+1:1,this.node=this.text=null,this.hidden=xa(x,z)}function ha(x,z,ne){for(var te=[],ie,fe=z;fe<ne;fe=ie){var we=new aa(x.doc,Et(x.doc,fe),fe);ie=fe+we.size,te.push(we)}return te}var An=null;function Cn(x){An?An.ops.push(x):x.ownsGroup=An={ops:[x],delayedCallbacks:[]}}function mn(x){var z=x.delayedCallbacks,ne=0;do{for(;ne<z.length;ne++)z[ne].call(null);for(var te=0;te<x.ops.length;te++){var ie=x.ops[te];if(ie.cursorActivityHandlers)for(;ie.cursorActivityCalled<ie.cursorActivityHandlers.length;)ie.cursorActivityHandlers[ie.cursorActivityCalled++].call(null,ie.cm)}}while(ne<z.length)}function Wn(x,z){var ne=x.ownsGroup;if(ne)try{mn(ne)}finally{An=null,z(ne)}}var ar=null;function or(x,z){var ne=fn(x,z);if(ne.length){var te=Array.prototype.slice.call(arguments,2),ie;An?ie=An.delayedCallbacks:ar?ie=ar:(ie=ar=[],setTimeout(Hn,0));for(var fe=function(Te){ie.push(function(){return ne[Te].apply(null,te)})},we=0;we<ne.length;++we)fe(we)}}function Hn(){var x=ar;ar=null;for(var z=0;z<x.length;++z)x[z]()}function wr(x,z,ne,te){for(var ie=0;ie<z.changes.length;ie++){var fe=z.changes[ie];fe=="text"?yr(x,z):fe=="gutter"?ki(x,z,ne,te):fe=="class"?di(x,z):fe=="widget"&&na(x,z,te)}z.changes=null}function ci(x){return x.node==x.text&&(x.node=Qe("div",null,null,"position: relative"),x.text.parentNode&&x.text.parentNode.replaceChild(x.node,x.text),x.node.appendChild(x.text),xe&&Ee<8&&(x.node.style.zIndex=2)),x.node}function Li(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=ci(z);z.background=te.insertBefore(Qe("div",null,ne),te.firstChild),x.display.input.setUneditable(z.background)}}function ui(x,z){var ne=x.display.externalMeasured;return ne&&ne.line==z.line?(x.display.externalMeasured=null,z.measure=ne.measure,ne.built):Aa(x,z)}function yr(x,z){var ne=z.text.className,te=ui(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,di(x,z)):ne&&(z.text.className=ne)}function di(x,z){Li(x,z),z.line.wrapClass?ci(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 ki(x,z,ne,te){if(z.gutter&&(z.node.removeChild(z.gutter),z.gutter=null),z.gutterBackground&&(z.node.removeChild(z.gutterBackground),z.gutterBackground=null),z.line.gutterClass){var ie=ci(z);z.gutterBackground=Qe("div",null,"CodeMirror-gutter-background "+z.line.gutterClass,"left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px; width: "+te.gutterTotalWidth+"px"),x.display.input.setUneditable(z.gutterBackground),ie.insertBefore(z.gutterBackground,z.text)}var fe=z.line.gutterMarkers;if(x.options.lineNumbers||fe){var we=ci(z),Te=z.gutter=Qe("div",null,"CodeMirror-gutter-wrapper","left: "+(x.options.fixedGutter?te.fixedPos:-te.gutterTotalWidth)+"px");if(x.display.input.setUneditable(Te),we.insertBefore(Te,z.text),z.line.gutterClass&&(Te.className+=" "+z.line.gutterClass),x.options.lineNumbers&&(!fe||!fe["CodeMirror-linenumbers"])&&(z.lineNumber=Te.appendChild(Qe("div",jn(x.options,ne),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+te.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+x.display.lineNumInnerWidth+"px"))),fe)for(var He=0;He<x.display.gutterSpecs.length;++He){var ot=x.display.gutterSpecs[He].className,jt=fe.hasOwnProperty(ot)&&fe[ot];jt&&Te.appendChild(Qe("div",[jt],"CodeMirror-gutter-elt","left: "+te.gutterLeft[ot]+"px; width: "+te.gutterWidth[ot]+"px"))}}}function na(x,z,ne){z.alignable&&(z.alignable=null);for(var te=Ce("CodeMirror-linewidget"),ie=z.node.firstChild,fe=void 0;ie;ie=fe)fe=ie.nextSibling,te.test(ie.className)&&z.node.removeChild(ie);wi(x,z,ne)}function vi(x,z,ne,te){var ie=ui(x,z);return z.text=z.node=ie.pre,ie.bgClass&&(z.bgClass=ie.bgClass),ie.textClass&&(z.textClass=ie.textClass),di(x,z),ki(x,z,ne,te),wi(x,z,te),z.node}function wi(x,z,ne){if(Gi(x,z.line,z,ne,!0),z.rest)for(var te=0;te<z.rest.length;te++)Gi(x,z.rest[te],z,ne,!1)}function Gi(x,z,ne,te,ie){if(z.widgets)for(var fe=ci(ne),we=0,Te=z.widgets;we<Te.length;++we){var He=Te[we],ot=Qe("div",[He.node],"CodeMirror-linewidget"+(He.className?" "+He.className:""));He.handleMouseEvents||ot.setAttribute("cm-ignore-events","true"),Sa(He,ot,ne,te),x.display.input.setUneditable(ot),ie&&He.above?fe.insertBefore(ot,ne.gutter||ne.text):fe.appendChild(ot),or(He,"redraw")}}function Sa(x,z,ne,te){if(x.noHScroll){(ne.alignable||(ne.alignable=[])).push(z);var ie=te.wrapperWidth;z.style.left=te.fixedPos+"px",x.coverGutter||(ie-=te.gutterTotalWidth,z.style.paddingLeft=te.gutterTotalWidth+"px"),z.style.width=ie+"px"}x.coverGutter&&(z.style.zIndex=5,z.style.position="relative",x.noHScroll||(z.style.marginLeft=-te.gutterTotalWidth+"px"))}function Ra(x){if(x.height!=null)return x.height;var z=x.doc.cm;if(!z)return 0;if(!Lt(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;"),wt(z.display.measure,Qe("div",[x.node],null,ne))}return x.height=x.node.parentNode.offsetHeight}function so(x,z){for(var ne=Vn(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 Do(x){return x.lineSpace.offsetTop}function Ys(x){return x.mover.offsetHeight-x.lineSpace.offsetHeight}function ss(x){if(x.cachedPaddingH)return x.cachedPaddingH;var z=wt(x.measure,Qe("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 Mo(x){return Pt-x.display.nativeBarWidth}function fo(x){return x.display.scroller.clientWidth-Mo(x)-x.display.barWidth}function Os(x){return x.display.scroller.clientHeight-Mo(x)-x.display.barHeight}function Wo(x,z,ne){var te=x.options.lineWrapping,ie=te&&fo(x);if(!z.measure.heights||te&&z.measure.width!=ie){var fe=z.measure.heights=[];if(te){z.measure.width=ie;for(var we=z.text.firstChild.getClientRects(),Te=0;Te<we.length-1;Te++){var He=we[Te],ot=we[Te+1];Math.abs(He.bottom-ot.bottom)>2&&fe.push((He.bottom+ot.top)/2-ne.top)}}fe.push(ne.bottom-ne.top)}}function hs(x,z,ne){if(x.line==z)return{map:x.measure.map,cache:x.measure.cache};for(var te=0;te<x.rest.length;te++)if(x.rest[te]==z)return{map:x.measure.maps[te],cache:x.measure.caches[te]};for(var ie=0;ie<x.rest.length;ie++)if(wn(x.rest[ie])>ne)return{map:x.measure.maps[ie],cache:x.measure.caches[ie],before:!0}}function Xs(x,z){z=Mi(z);var ne=wn(z),te=x.display.externalMeasured=new aa(x.doc,z,ne);te.lineN=ne;var ie=te.built=Aa(x,te);return te.text=ie.pre,wt(x.display.lineMeasure,ie.pre),te}function Ns(x,z,ne,te){return za(x,vo(x,z),ne,te)}function ko(x,z){if(z>=x.display.viewFrom&&z<x.display.viewTo)return x.display.view[ps(x,z)];var ne=x.display.externalMeasured;if(ne&&z>=ne.lineN&&z<ne.lineN+ne.size)return ne}function vo(x,z){var ne=wn(z),te=ko(x,ne);te&&!te.text?te=null:te&&te.changes&&(wr(x,te,ne,Ga(x)),x.curOp.forceUpdate=!0),te||(te=Xs(x,z));var ie=hs(te,z,ne);return{line:z,view:te,rect:null,map:ie.map,cache:ie.cache,before:ie.before,hasHeights:!1}}function za(x,z,ne,te,ie){z.before&&(ne=-1);var fe=ne+(te||""),we;return z.cache.hasOwnProperty(fe)?we=z.cache[fe]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(Wo(x,z.view,z.rect),z.hasHeights=!0),we=Ca(x,z,ne,te),we.bogus||(z.cache[fe]=we)),{left:we.left,right:we.right,top:ie?we.rtop:we.top,bottom:ie?we.rbottom:we.bottom}}var Rs={left:0,right:0,top:0,bottom:0};function cl(x,z,ne){for(var te,ie,fe,we,Te,He,ot=0;ot<x.length;ot+=3)if(Te=x[ot],He=x[ot+1],z<Te?(ie=0,fe=1,we="left"):z<He?(ie=z-Te,fe=ie+1):(ot==x.length-3||z==He&&x[ot+3]>z)&&(fe=He-Te,ie=fe-1,z>=He&&(we="right")),ie!=null){if(te=x[ot+2],Te==He&&ne==(te.insertLeft?"left":"right")&&(we=ne),ne=="left"&&ie==0)for(;ot&&x[ot-2]==x[ot-3]&&x[ot-1].insertLeft;)te=x[(ot-=3)+2],we="left";if(ne=="right"&&ie==He-Te)for(;ot<x.length-3&&x[ot+3]==x[ot+4]&&!x[ot+5].insertLeft;)te=x[(ot+=3)+2],we="right";break}return{node:te,start:ie,end:fe,collapse:we,coverStart:Te,coverEnd:He}}function ys(x,z){var ne=Rs;if(z=="left")for(var te=0;te<x.length&&(ne=x[te]).left==ne.right;te++);else for(var ie=x.length-1;ie>=0&&(ne=x[ie]).left==ne.right;ie--);return ne}function Ca(x,z,ne,te){var ie=cl(z.map,ne,te),fe=ie.node,we=ie.start,Te=ie.end,He=ie.collapse,ot;if(fe.nodeType==3){for(var jt=0;jt<4;jt++){for(;we&>(z.line.text.charAt(ie.coverStart+we));)--we;for(;ie.coverStart+Te<ie.coverEnd&>(z.line.text.charAt(ie.coverStart+Te));)++Te;if(xe&&Ee<9&&we==0&&Te==ie.coverEnd-ie.coverStart?ot=fe.parentNode.getBoundingClientRect():ot=ys(Oe(fe,we,Te).getClientRects(),te),ot.left||ot.right||we==0)break;Te=we,we=we-1,He="right"}xe&&Ee<11&&(ot=ba(x.display.measure,ot))}else{we>0&&(He=te="right");var un;x.options.lineWrapping&&(un=fe.getClientRects()).length>1?ot=un[te=="right"?un.length-1:0]:ot=fe.getBoundingClientRect()}if(xe&&Ee<9&&!we&&(!ot||!ot.left&&!ot.right)){var Rn=fe.parentNode.getClientRects()[0];Rn?ot={left:Rn.left,right:Rn.left+Ha(x.display),top:Rn.top,bottom:Rn.bottom}:ot=Rs}for(var On=ot.top-z.rect.top,lr=ot.bottom-z.rect.top,Dr=(On+lr)/2,ai=z.view.measure.heights,Ci=0;Ci<ai.length-1&&!(Dr<ai[Ci]);Ci++);var Bi=Ci?ai[Ci-1]:0,gi=ai[Ci],Ii={left:(He=="right"?ot.right:ot.left)-z.rect.left,right:(He=="left"?ot.left:ot.right)-z.rect.left,top:Bi,bottom:gi};return!ot.left&&!ot.right&&(Ii.bogus=!0),x.options.singleCursorHeightPerLine||(Ii.rtop=On,Ii.rbottom=lr),Ii}function ba(x,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!qr(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 qa(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 yo(x){x.display.externalMeasure=null,et(x.display.lineMeasure);for(var z=0;z<x.display.view.length;z++)qa(x.display.view[z])}function io(x){yo(x),x.display.cachedCharWidth=x.display.cachedTextHeight=x.display.cachedPaddingH=null,x.options.lineWrapping||(x.display.maxLineChanged=!0),x.display.lineNumChars=null}function Zo(){return Me&&Ke?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Qo(){return Me&&Ke?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function bs(x){var z=0;if(x.widgets)for(var ne=0;ne<x.widgets.length;++ne)x.widgets[ne].above&&(z+=Ra(x.widgets[ne]));return z}function Jo(x,z,ne,te,ie){if(!ie){var fe=bs(z);ne.top+=fe,ne.bottom+=fe}if(te=="line")return ne;te||(te="local");var we=Br(z);if(te=="local"?we+=Do(x.display):we-=x.display.viewOffset,te=="page"||te=="window"){var Te=x.display.lineSpace.getBoundingClientRect();we+=Te.top+(te=="window"?0:Qo());var He=Te.left+(te=="window"?0:Zo());ne.left+=He,ne.right+=He}return ne.top+=we,ne.bottom+=we,ne}function Ws(x,z,ne){if(ne=="div")return z;var te=z.left,ie=z.top;if(ne=="page")te-=Zo(),ie-=Qo();else if(ne=="local"||!ne){var fe=x.display.sizer.getBoundingClientRect();te+=fe.left,ie+=fe.top}var we=x.display.lineSpace.getBoundingClientRect();return{left:te-we.left,top:ie-we.top}}function Fs(x,z,ne,te,ie){return te||(te=Et(x.doc,z.line)),Jo(x,te,Ns(x,te,z.ch,ie),ne)}function qo(x,z,ne,te,ie,fe){te=te||Et(x.doc,z.line),ie||(ie=vo(x,te));function we(lr,Dr){var ai=za(x,ie,lr,Dr?"right":"left",fe);return Dr?ai.left=ai.right:ai.right=ai.left,Jo(x,te,ai,ne)}var Te=rn(te,x.doc.direction),He=z.ch,ot=z.sticky;if(He>=te.text.length?(He=te.text.length,ot="before"):He<=0&&(He=0,ot="after"),!Te)return we(ot=="before"?He-1:He,ot=="before");function jt(lr,Dr,ai){var Ci=Te[Dr],Bi=Ci.level==1;return we(ai?lr-1:lr,Bi!=ai)}var un=Ve(Te,He,ot),Rn=rt,On=jt(He,un,ot=="before");return Rn!=null&&(On.other=jt(He,Rn,ot!="before")),On}function gc(x,z){var ne=0;z=en(x.doc,z),x.options.lineWrapping||(ne=Ha(x.display)*z.ch);var te=Et(x.doc,z.line),ie=Br(te)+Do(x.display);return{left:ne,right:ne,top:ie,bottom:ie+te.height}}function vl(x,z,ne,te,ie){var fe=Qt(x,z,ne);return fe.xRel=ie,te&&(fe.outside=te),fe}function yl(x,z,ne){var te=x.doc;if(ne+=x.display.viewOffset,ne<0)return vl(te.first,0,null,-1,-1);var ie=Tn(te,ne),fe=te.first+te.size-1;if(ie>fe)return vl(te.first+te.size-1,Et(te,fe).text.length,null,1,1);z<0&&(z=0);for(var we=Et(te,ie);;){var Te=Qc(x,we,ie,z,ne),He=Ir(we,Te.ch+(Te.xRel>0||Te.outside>0?1:0));if(!He)return Te;var ot=He.find(1);if(ot.line==ie)return ot;we=Et(te,ie=ot.line)}}function nc(x,z,ne,te){te-=bs(z);var ie=z.text.length,fe=Be(function(we){return za(x,ne,we-1).bottom<=te},ie,0);return ie=Be(function(we){return za(x,ne,we).top>te},fe,ie),{begin:fe,end:ie}}function Vl(x,z,ne,te){ne||(ne=vo(x,z));var ie=Jo(x,z,za(x,ne,te),"line").top;return nc(x,z,ne,ie)}function Ll(x,z,ne,te){return x.bottom<=ne?!1:x.top>ne?!0:(te?x.left:x.right)>z}function Qc(x,z,ne,te,ie){ie-=Br(z);var fe=vo(x,z),we=bs(z),Te=0,He=z.text.length,ot=!0,jt=rn(z,x.doc.direction);if(jt){var un=(x.options.lineWrapping?rc:ul)(x,z,ne,fe,jt,te,ie);ot=un.level!=1,Te=ot?un.from:un.to-1,He=ot?un.to:un.from-1}var Rn=null,On=null,lr=Be(function(Ji){var ea=za(x,fe,Ji);return ea.top+=we,ea.bottom+=we,Ll(ea,te,ie,!1)?(ea.top<=ie&&ea.left<=te&&(Rn=Ji,On=ea),!0):!1},Te,He),Dr,ai,Ci=!1;if(On){var Bi=te-On.left<On.right-te,gi=Bi==ot;lr=Rn+(gi?0:1),ai=gi?"after":"before",Dr=Bi?On.left:On.right}else{!ot&&(lr==He||lr==Te)&&lr++,ai=lr==0?"after":lr==z.text.length?"before":za(x,fe,lr-(ot?1:0)).bottom+we<=ie==ot?"after":"before";var Ii=qo(x,Qt(ne,lr,ai),"line",z,fe);Dr=Ii.left,Ci=ie<Ii.top?-1:ie>=Ii.bottom?1:0}return lr=Ie(z.text,lr,1),vl(ne,lr,ai,Ci,te-Dr)}function ul(x,z,ne,te,ie,fe,we){var Te=Be(function(un){var Rn=ie[un],On=Rn.level!=1;return Ll(qo(x,Qt(ne,On?Rn.to:Rn.from,On?"before":"after"),"line",z,te),fe,we,!0)},0,ie.length-1),He=ie[Te];if(Te>0){var ot=He.level!=1,jt=qo(x,Qt(ne,ot?He.from:He.to,ot?"after":"before"),"line",z,te);Ll(jt,fe,we,!0)&&jt.top>we&&(He=ie[Te-1])}return He}function rc(x,z,ne,te,ie,fe,we){var Te=nc(x,z,te,we),He=Te.begin,ot=Te.end;/\s/.test(z.text.charAt(ot-1))&&ot--;for(var jt=null,un=null,Rn=0;Rn<ie.length;Rn++){var On=ie[Rn];if(!(On.from>=ot||On.to<=He)){var lr=On.level!=1,Dr=za(x,te,lr?Math.min(ot,On.to)-1:Math.max(He,On.from)).right,ai=Dr<fe?fe-Dr+1e9:Dr-fe;(!jt||un>ai)&&(jt=On,un=ai)}}return jt||(jt=ie[ie.length-1]),jt.from<He&&(jt={from:He,to:jt.to,level:jt.level}),jt.to>ot&&(jt={from:jt.from,to:ot,level:jt.level}),jt}var dl;function bl(x){if(x.cachedTextHeight!=null)return x.cachedTextHeight;if(dl==null){dl=Qe("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)dl.appendChild(document.createTextNode("x")),dl.appendChild(Qe("br"));dl.appendChild(document.createTextNode("x"))}wt(x.measure,dl);var ne=dl.offsetHeight/50;return ne>3&&(x.cachedTextHeight=ne),et(x.measure),ne||1}function Ha(x){if(x.cachedCharWidth!=null)return x.cachedCharWidth;var z=Qe("span","xxxxxxxxxx"),ne=Qe("pre",[z],"CodeMirror-line-like");wt(x.measure,ne);var te=z.getBoundingClientRect(),ie=(te.right-te.left)/10;return ie>2&&(x.cachedCharWidth=ie),ie||10}function Ga(x){for(var z=x.display,ne={},te={},ie=z.gutters.clientLeft,fe=z.gutters.firstChild,we=0;fe;fe=fe.nextSibling,++we){var Te=x.display.gutterSpecs[we].className;ne[Te]=fe.offsetLeft+fe.clientLeft+ie,te[Te]=fe.clientWidth}return{fixedPos:$a(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ne,gutterWidth:te,wrapperWidth:z.wrapper.clientWidth}}function $a(x){return x.scroller.getBoundingClientRect().left-x.sizer.getBoundingClientRect().left}function xs(x){var z=bl(x.display),ne=x.options.lineWrapping,te=ne&&Math.max(5,x.display.scroller.clientWidth/Ha(x.display)-3);return function(ie){if(xa(x.doc,ie))return 0;var fe=0;if(ie.widgets)for(var we=0;we<ie.widgets.length;we++)ie.widgets[we].height&&(fe+=ie.widgets[we].height);return ne?fe+(Math.ceil(ie.text.length/te)||1)*z:fe+z}}function $o(x){var z=x.doc,ne=xs(x);z.iter(function(te){var ie=ne(te);ie!=te.height&&ln(te,ie)})}function Qs(x,z,ne,te){var ie=x.display;if(!ne&&Vn(z).getAttribute("cm-not-content")=="true")return null;var fe,we,Te=ie.lineSpace.getBoundingClientRect();try{fe=z.clientX-Te.left,we=z.clientY-Te.top}catch(un){return null}var He=yl(x,fe,we),ot;if(te&&He.xRel>0&&(ot=Et(x.doc,He.line).text).length==He.ch){var jt=Ge(ot,ot.length,x.options.tabSize)-ot.length;He=Qt(He.line,Math.max(0,Math.round((fe-ss(x.display).left)/Ha(x.display))-jt))}return He}function ps(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 jo(x,z,ne,te){z==null&&(z=x.doc.first),ne==null&&(ne=x.doc.first+x.doc.size),te||(te=0);var ie=x.display;if(te&&ne<ie.viewTo&&(ie.updateLineNumbers==null||ie.updateLineNumbers>z)&&(ie.updateLineNumbers=z),x.curOp.viewChanged=!0,z>=ie.viewTo)Nr&&qi(x.doc,z)<ie.viewTo&&nl(x);else if(ne<=ie.viewFrom)Nr&&Wi(x.doc,ne+te)>ie.viewFrom?nl(x):(ie.viewFrom+=te,ie.viewTo+=te);else if(z<=ie.viewFrom&&ne>=ie.viewTo)nl(x);else if(z<=ie.viewFrom){var fe=rl(x,ne,ne+te,1);fe?(ie.view=ie.view.slice(fe.index),ie.viewFrom=fe.lineN,ie.viewTo+=te):nl(x)}else if(ne>=ie.viewTo){var we=rl(x,z,z,-1);we?(ie.view=ie.view.slice(0,we.index),ie.viewTo=we.lineN):nl(x)}else{var Te=rl(x,z,z,-1),He=rl(x,ne,ne+te,1);Te&&He?(ie.view=ie.view.slice(0,Te.index).concat(ha(x,Te.lineN,He.lineN)).concat(ie.view.slice(He.index)),ie.viewTo+=te):nl(x)}var ot=ie.externalMeasured;ot&&(ne<ot.lineN?ot.lineN+=te:z<ot.lineN+ot.size&&(ie.externalMeasured=null))}function tl(x,z,ne){x.curOp.viewChanged=!0;var te=x.display,ie=x.display.externalMeasured;if(ie&&z>=ie.lineN&&z<ie.lineN+ie.size&&(te.externalMeasured=null),!(z<te.viewFrom||z>=te.viewTo)){var fe=te.view[ps(x,z)];if(fe.node!=null){var we=fe.changes||(fe.changes=[]);Ye(we,ne)==-1&&we.push(ne)}}}function nl(x){x.display.viewFrom=x.display.viewTo=x.doc.first,x.display.view=[],x.display.viewOffset=0}function rl(x,z,ne,te){var ie=ps(x,z),fe,we=x.display.view;if(!Nr||ne==x.doc.first+x.doc.size)return{index:ie,lineN:ne};for(var Te=x.display.viewFrom,He=0;He<ie;He++)Te+=we[He].size;if(Te!=z){if(te>0){if(ie==we.length-1)return null;fe=Te+we[ie].size-z,ie++}else fe=Te-z;z+=fe,ne+=fe}for(;qi(x.doc,ne)!=ne;){if(ie==(te<0?0:we.length-1))return null;ne+=te*we[ie-(te<0?1:0)].size,ie+=te}return{index:ie,lineN:ne}}function Il(x,z,ne){var te=x.display,ie=te.view;ie.length==0||z>=te.viewTo||ne<=te.viewFrom?(te.view=ha(x,z,ne),te.viewFrom=z):(te.viewFrom>z?te.view=ha(x,z,te.viewFrom).concat(te.view):te.viewFrom<z&&(te.view=te.view.slice(ps(x,z))),te.viewFrom=z,te.viewTo<ne?te.view=te.view.concat(ha(x,te.viewTo,ne)):te.viewTo>ne&&(te.view=te.view.slice(0,ps(x,ne)))),te.viewTo=ne}function Jc(x){for(var z=x.display.view,ne=0,te=0;te<z.length;te++){var ie=z[te];!ie.hidden&&(!ie.node||ie.changes)&&++ne}return ne}function vc(x){x.display.input.showSelection(x.display.input.prepareSelection())}function Gu(x,z){z===void 0&&(z=!0);for(var ne=x.doc,te={},ie=te.cursors=document.createDocumentFragment(),fe=te.selection=document.createDocumentFragment(),we=0;we<ne.sel.ranges.length;we++)if(!(!z&&we==ne.sel.primIndex)){var Te=ne.sel.ranges[we];if(!(Te.from().line>=x.display.viewTo||Te.to().line<x.display.viewFrom)){var He=Te.empty();(He||x.options.showCursorWhenSelecting)&&bu(x,Te.head,ie),He||Bd(x,Te,fe)}}return te}function bu(x,z,ne){var te=qo(x,z,"div",null,null,!x.options.singleCursorHeightPerLine),ie=ne.appendChild(Qe("div","\xA0","CodeMirror-cursor"));if(ie.style.left=te.left+"px",ie.style.top=te.top+"px",ie.style.height=Math.max(0,te.bottom-te.top)*x.options.cursorHeight+"px",te.other){var fe=ne.appendChild(Qe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));fe.style.display="",fe.style.left=te.other.left+"px",fe.style.top=te.other.top+"px",fe.style.height=(te.other.bottom-te.other.top)*.85+"px"}}function _c(x,z){return x.top-z.top||x.left-z.left}function Bd(x,z,ne){var te=x.display,ie=x.doc,fe=document.createDocumentFragment(),we=ss(x.display),Te=we.left,He=Math.max(te.sizerWidth,fo(x)-te.sizer.offsetLeft)-we.right,ot=ie.direction=="ltr";function jt(gi,Ii,Ji,ea){Ii<0&&(Ii=0),Ii=Math.round(Ii),ea=Math.round(ea),fe.appendChild(Qe("div",null,"CodeMirror-selected","position: absolute; left: "+gi+`px;
|
|
|
top: `+Ii+"px; width: "+(Ji==null?He-gi:Ji)+`px;
|
|
|
height: `+(ea-Ii)+"px"))}function un(gi,Ii,Ji){var ea=Et(ie,gi),Na=ea.text.length,xo,Ms;function Ko(ds,el){return Fs(x,Qt(gi,ds),"div",ea,el)}function qs(ds,el,ya){var Go=Vl(x,ea,null,ds),Ho=el=="ltr"==(ya=="after")?"left":"right",Yo=ya=="after"?Go.begin:Go.end-(/\s/.test(ea.text.charAt(Go.end-1))?2:1);return Ko(Yo,Ho)[Ho]}var $s=rn(ea,ie.direction);return yt($s,Ii||0,Ji==null?Na:Ji,function(ds,el,ya,Go){var Ho=ya=="ltr",Yo=Ko(ds,Ho?"left":"right"),is=Ko(el-1,Ho?"right":"left"),jc=Ii==null&&ds==0,sl=Ji==null&&el==Na,Ds=Go==0,no=!$s||Go==$s.length-1;if(is.top-Yo.top<=3){var gs=(ot?jc:sl)&&Ds,ld=(ot?sl:jc)&&no,hc=gs?Te:(Ho?Yo:is).left,kc=ld?He:(Ho?is:Yo).right;jt(hc,Yo.top,kc-hc,Yo.bottom)}else{var Jl,fs,Vc,Ls;Ho?(Jl=ot&&jc&&Ds?Te:Yo.left,fs=ot?He:qs(ds,ya,"before"),Vc=ot?Te:qs(el,ya,"after"),Ls=ot&&sl&&no?He:is.right):(Jl=ot?qs(ds,ya,"before"):Te,fs=!ot&&jc&&Ds?He:Yo.right,Vc=!ot&&sl&&no?Te:is.left,Ls=ot?qs(el,ya,"after"):He),jt(Jl,Yo.top,fs-Jl,Yo.bottom),Yo.bottom<is.top&&jt(Te,Yo.bottom,null,is.top),jt(Vc,is.top,Ls-Vc,is.bottom)}(!xo||_c(Yo,xo)<0)&&(xo=Yo),_c(is,xo)<0&&(xo=is),(!Ms||_c(Yo,Ms)<0)&&(Ms=Yo),_c(is,Ms)<0&&(Ms=is)}),{start:xo,end:Ms}}var Rn=z.from(),On=z.to();if(Rn.line==On.line)un(Rn.line,Rn.ch,On.ch);else{var lr=Et(ie,Rn.line),Dr=Et(ie,On.line),ai=Mi(lr)==Mi(Dr),Ci=un(Rn.line,Rn.ch,ai?lr.text.length+1:null).end,Bi=un(On.line,ai?0:null,On.ch).start;ai&&(Ci.top<Bi.top-2?(jt(Ci.right,Ci.top,null,Ci.bottom),jt(Te,Bi.top,Bi.left,Bi.bottom)):jt(Ci.right,Ci.top,Bi.left-Ci.right,Ci.bottom)),Ci.bottom<Bi.top&&jt(Te,Ci.bottom,null,Bi.top)}ne.appendChild(fe)}function qc(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()||ic(x),z.cursorDiv.style.visibility=(ne=!ne)?"":"hidden"},x.options.cursorBlinkRate):x.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function Kc(x){x.state.focused||(x.display.input.focus(),wu(x))}function xu(x){x.state.delayingBlurEvent=!0,setTimeout(function(){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1,ic(x))},100)}function wu(x,z){x.state.delayingBlurEvent&&(x.state.delayingBlurEvent=!1),x.options.readOnly!="nocursor"&&(x.state.focused||(De(x,"focus",x,z),x.state.focused=!0,Ut(x.display.wrapper,"CodeMirror-focused"),!x.curOp&&x.display.selForContextMenu!=x.doc.sel&&(x.display.input.reset(),pe&&setTimeout(function(){return x.display.input.reset(!0)},20)),x.display.input.receivedFocus()),qc(x))}function ic(x,z){x.state.delayingBlurEvent||(x.state.focused&&(De(x,"blur",x,z),x.state.focused=!1,Je(x.display.wrapper,"CodeMirror-focused")),clearInterval(x.display.blinker),setTimeout(function(){x.state.focused||(x.display.shift=!1)},150))}function $c(x){for(var z=x.display,ne=z.lineDiv.offsetTop,te=0;te<z.view.length;te++){var ie=z.view[te],fe=x.options.lineWrapping,we=void 0,Te=0;if(!ie.hidden){if(xe&&Ee<8){var He=ie.node.offsetTop+ie.node.offsetHeight;we=He-ne,ne=He}else{var ot=ie.node.getBoundingClientRect();we=ot.bottom-ot.top,!fe&&ie.text.firstChild&&(Te=ie.text.firstChild.getBoundingClientRect().right-ot.left-1)}var jt=ie.line.height-we;if((jt>.005||jt<-.005)&&(ln(ie.line,we),Su(ie.line),ie.rest))for(var un=0;un<ie.rest.length;un++)Su(ie.rest[un]);if(Te>x.display.sizerWidth){var Rn=Math.ceil(Te/Ha(x.display));Rn>x.display.maxLineLength&&(x.display.maxLineLength=Rn,x.display.maxLine=ie.line,x.display.maxLineChanged=!0)}}}}function Su(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 ls(x,z,ne){var te=ne&&ne.top!=null?Math.max(0,ne.top):x.scroller.scrollTop;te=Math.floor(te-Do(x));var ie=ne&&ne.bottom!=null?ne.bottom:te+x.wrapper.clientHeight,fe=Tn(z,te),we=Tn(z,ie);if(ne&&ne.ensure){var Te=ne.ensure.from.line,He=ne.ensure.to.line;Te<fe?(fe=Te,we=Tn(z,Br(Et(z,Te))+x.wrapper.clientHeight)):Math.min(He,z.lastLine())>=we&&(fe=Tn(z,Br(Et(z,He))-x.wrapper.clientHeight),we=He)}return{from:fe,to:Math.max(we,fe+1)}}function Pl(x,z){if(!dt(x,"scrollCursorIntoView")){var ne=x.display,te=ne.sizer.getBoundingClientRect(),ie=null;if(z.top+te.top<0?ie=!0:z.bottom+te.top>(window.innerHeight||document.documentElement.clientHeight)&&(ie=!1),ie!=null&&!qe){var fe=Qe("div","\u200B",null,`position: absolute;
|
|
|
top: `+(z.top-ne.viewOffset-Do(x.display))+`px;
|
|
|
height: `+(z.bottom-z.top+Mo(x)+ne.barHeight)+`px;
|
|
|
left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");x.display.lineSpace.appendChild(fe),fe.scrollIntoView(ie),x.display.lineSpace.removeChild(fe)}}}function ac(x,z,ne,te){te==null&&(te=0);var ie;!x.options.lineWrapping&&z==ne&&(z=z.ch?Qt(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ne=z.sticky=="before"?Qt(z.line,z.ch+1,"before"):z);for(var fe=0;fe<5;fe++){var we=!1,Te=qo(x,z),He=!ne||ne==z?Te:qo(x,ne);ie={left:Math.min(Te.left,He.left),top:Math.min(Te.top,He.top)-te,right:Math.max(Te.left,He.left),bottom:Math.max(Te.bottom,He.bottom)+te};var ot=eu(x,ie),jt=x.doc.scrollTop,un=x.doc.scrollLeft;if(ot.scrollTop!=null&&(Ul(x,ot.scrollTop),Math.abs(x.doc.scrollTop-jt)>1&&(we=!0)),ot.scrollLeft!=null&&(Tl(x,ot.scrollLeft),Math.abs(x.doc.scrollLeft-un)>1&&(we=!0)),!we)break}return ie}function Yu(x,z){var ne=eu(x,z);ne.scrollTop!=null&&Ul(x,ne.scrollTop),ne.scrollLeft!=null&&Tl(x,ne.scrollLeft)}function eu(x,z){var ne=x.display,te=bl(x.display);z.top<0&&(z.top=0);var ie=x.curOp&&x.curOp.scrollTop!=null?x.curOp.scrollTop:ne.scroller.scrollTop,fe=Os(x),we={};z.bottom-z.top>fe&&(z.bottom=z.top+fe);var Te=x.doc.height+Ys(ne),He=z.top<te,ot=z.bottom>Te-te;if(z.top<ie)we.scrollTop=He?0:z.top;else if(z.bottom>ie+fe){var jt=Math.min(z.top,(ot?Te:z.bottom)-fe);jt!=ie&&(we.scrollTop=jt)}var un=x.options.fixedGutter?0:ne.gutters.offsetWidth,Rn=x.curOp&&x.curOp.scrollLeft!=null?x.curOp.scrollLeft:ne.scroller.scrollLeft-un,On=fo(x)-ne.gutters.offsetWidth,lr=z.right-z.left>On;return lr&&(z.right=z.left+On),z.left<10?we.scrollLeft=0:z.left<Rn?we.scrollLeft=Math.max(0,z.left+un-(lr?0:10)):z.right>On+Rn-3&&(we.scrollLeft=z.right+(lr?0:10)-On),we}function tu(x,z){z!=null&&(Hc(x),x.curOp.scrollTop=(x.curOp.scrollTop==null?x.doc.scrollTop:x.curOp.scrollTop)+z)}function yc(x){Hc(x);var z=x.getCursor();x.curOp.scrollToPos={from:z,to:z,margin:x.options.cursorScrollMargin}}function oc(x,z,ne){(z!=null||ne!=null)&&Hc(x),z!=null&&(x.curOp.scrollLeft=z),ne!=null&&(x.curOp.scrollTop=ne)}function Dd(x,z){Hc(x),x.curOp.scrollToPos=z}function Hc(x){var z=x.curOp.scrollToPos;if(z){x.curOp.scrollToPos=null;var ne=gc(x,z.from),te=gc(x,z.to);Xu(x,ne,te,z.margin)}}function Xu(x,z,ne,te){var ie=eu(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});oc(x,ie.scrollLeft,ie.scrollTop)}function Ul(x,z){Math.abs(x.doc.scrollTop-z)<2||(ae||ti(x,{top:z}),Qu(x,z,!0),ae&&ti(x),Nn(x,100))}function Qu(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 Tl(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,zi(x),x.display.scroller.scrollLeft!=z&&(x.display.scroller.scrollLeft=z),x.display.scrollbars.setScrollLeft(z))}function bc(x){var z=x.display,ne=z.gutters.offsetWidth,te=Math.round(x.doc.height+Ys(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+Mo(x)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ne}}var Ol=function(x,z,ne){this.cm=ne;var te=this.vert=Qe("div",[Qe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ie=this.horiz=Qe("div",[Qe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");te.tabIndex=ie.tabIndex=-1,x(te),x(ie),_t(te,"scroll",function(){te.clientHeight&&z(te.scrollTop,"vertical")}),_t(ie,"scroll",function(){ie.clientWidth&&z(ie.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xe&&Ee<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ol.prototype.update=function(x){var z=x.scrollWidth>x.clientWidth+1,ne=x.scrollHeight>x.clientHeight+1,te=x.nativeBarWidth;if(ne){this.vert.style.display="block",this.vert.style.bottom=z?te+"px":"0";var ie=x.viewHeight-(z?te:0);this.vert.firstChild.style.height=Math.max(0,x.scrollHeight-x.clientHeight+ie)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=ne?te+"px":"0",this.horiz.style.left=x.barLeft+"px";var fe=x.viewWidth-x.barLeft-(ne?te:0);this.horiz.firstChild.style.width=Math.max(0,x.scrollWidth-x.clientWidth+fe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&x.clientHeight>0&&(te==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ne?te:0,bottom:z?te:0}},Ol.prototype.setScrollLeft=function(x){this.horiz.scrollLeft!=x&&(this.horiz.scrollLeft=x),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ol.prototype.setScrollTop=function(x){this.vert.scrollTop!=x&&(this.vert.scrollTop=x),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ol.prototype.zeroWidthHack=function(){var x=ft&&!Fe?"12px":"18px";this.horiz.style.height=this.vert.style.width=x,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new be,this.disableVert=new be},Ol.prototype.enableZeroWidthBar=function(x,z,ne){x.style.pointerEvents="auto";function te(){var ie=x.getBoundingClientRect(),fe=ne=="vert"?document.elementFromPoint(ie.right-1,(ie.top+ie.bottom)/2):document.elementFromPoint((ie.right+ie.left)/2,ie.bottom-1);fe!=x?x.style.pointerEvents="none":z.set(1e3,te)}z.set(1e3,te)},Ol.prototype.clear=function(){var x=this.horiz.parentNode;x.removeChild(this.horiz),x.removeChild(this.vert)};var Zs=function(){};Zs.prototype.update=function(){return{bottom:0,right:0}},Zs.prototype.setScrollLeft=function(){},Zs.prototype.setScrollTop=function(){},Zs.prototype.clear=function(){};function Gl(x,z){z||(z=bc(x));var ne=x.display.barWidth,te=x.display.barHeight;nu(x,z);for(var ie=0;ie<4&&ne!=x.display.barWidth||te!=x.display.barHeight;ie++)ne!=x.display.barWidth&&x.options.lineWrapping&&$c(x),nu(x,bc(x)),ne=x.display.barWidth,te=x.display.barHeight}function nu(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 Cu={native:Ol,null:Zs};function Eu(x){x.display.scrollbars&&(x.display.scrollbars.clear(),x.display.scrollbars.addClass&&Je(x.display.wrapper,x.display.scrollbars.addClass)),x.display.scrollbars=new Cu[x.options.scrollbarStyle](function(z){x.display.wrapper.insertBefore(z,x.display.scrollbarFiller),_t(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"?Tl(x,z):Ul(x,z)},x),x.display.scrollbars.addClass&&Ut(x.display.wrapper,x.display.scrollbars.addClass)}var Ju=0;function ks(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:++Ju},Cn(x.curOp)}function Nl(x){var z=x.curOp;z&&Wn(z,function(ne){for(var te=0;te<ne.ops.length;te++)ne.ops[te].cm.curOp=null;qu(ne)})}function qu(x){for(var z=x.ops,ne=0;ne<z.length;ne++)Ne(z[ne]);for(var te=0;te<z.length;te++)We(z[te]);for(var ie=0;ie<z.length;ie++)St(z[ie]);for(var fe=0;fe<z.length;fe++)Nt(z[fe]);for(var we=0;we<z.length;we++)Jt(z[we])}function Ne(x){var z=x.cm,ne=z.display;fr(z),x.updateMaxLine&&Er(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 Kn(z,x.mustUpdate&&{top:x.scrollTop,ensure:x.scrollToPos},x.forceUpdate)}function We(x){x.updatedDisplay=x.mustUpdate&&ei(x.cm,x.update)}function St(x){var z=x.cm,ne=z.display;x.updatedDisplay&&$c(z),x.barMeasure=bc(z),ne.maxLineChanged&&!z.options.lineWrapping&&(x.adjustWidthTo=Ns(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+Mo(z)+z.display.barWidth),x.maxScrollLeft=Math.max(0,ne.sizer.offsetLeft+x.adjustWidthTo-fo(z))),(x.updatedDisplay||x.selectionChanged)&&(x.preparedSelection=ne.input.prepareSelection())}function Nt(x){var z=x.cm;x.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=x.adjustWidthTo+"px",x.maxScrollLeft<z.doc.scrollLeft&&Tl(z,Math.min(z.display.scroller.scrollLeft,x.maxScrollLeft),!0),z.display.maxLineChanged=!1);var ne=x.focus&&x.focus==tt();x.preparedSelection&&z.display.input.showSelection(x.preparedSelection,ne),(x.updatedDisplay||x.startHeight!=z.doc.height)&&Gl(z,x.barMeasure),x.updatedDisplay&&Oi(z,x.barMeasure),x.selectionChanged&&qc(z),z.state.focused&&x.updateInput&&z.display.input.reset(x.typing),ne&&Kc(x.cm)}function Jt(x){var z=x.cm,ne=z.display,te=z.doc;if(x.updatedDisplay&&Hr(z,x.update),ne.wheelStartX!=null&&(x.scrollTop!=null||x.scrollLeft!=null||x.scrollToPos)&&(ne.wheelStartX=ne.wheelStartY=null),x.scrollTop!=null&&Qu(z,x.scrollTop,x.forceScroll),x.scrollLeft!=null&&Tl(z,x.scrollLeft,!0,!0),x.scrollToPos){var ie=ac(z,en(te,x.scrollToPos.from),en(te,x.scrollToPos.to),x.scrollToPos.margin);Pl(z,ie)}var fe=x.maybeHiddenMarkers,we=x.maybeUnhiddenMarkers;if(fe)for(var Te=0;Te<fe.length;++Te)fe[Te].lines.length||De(fe[Te],"hide");if(we)for(var He=0;He<we.length;++He)we[He].lines.length&&De(we[He],"unhide");ne.wrapper.offsetHeight&&(te.scrollTop=z.display.scroller.scrollTop),x.changeObjs&&De(z,"changes",z,x.changeObjs),x.update&&x.update.finish()}function Ht(x,z){if(x.curOp)return z();ks(x);try{return z()}finally{Nl(x)}}function En(x,z){return function(){if(x.curOp)return z.apply(x,arguments);ks(x);try{return z.apply(x,arguments)}finally{Nl(x)}}}function Sn(x){return function(){if(this.curOp)return x.apply(this,arguments);ks(this);try{return x.apply(this,arguments)}finally{Nl(this)}}}function bn(x){return function(){var z=this.cm;if(!z||z.curOp)return x.apply(this,arguments);ks(z);try{return x.apply(this,arguments)}finally{Nl(z)}}}function Nn(x,z){x.doc.highlightFrontier<x.display.viewTo&&x.state.highlight.set(z,Wt(Xn,x))}function Xn(x){var z=x.doc;if(!(z.highlightFrontier>=x.display.viewTo)){var ne=+new Date+x.options.workTime,te=xn(x,z.highlightFrontier),ie=[];z.iter(te.line,Math.min(z.first+z.size,x.display.viewTo+500),function(fe){if(te.line>=x.display.viewFrom){var we=fe.styles,Te=fe.text.length>x.options.maxHighlightLength?ze(z.mode,te.state):null,He=vn(x,fe,te,!0);Te&&(te.state=Te),fe.styles=He.styles;var ot=fe.styleClasses,jt=He.classes;jt?fe.styleClasses=jt:ot&&(fe.styleClasses=null);for(var un=!we||we.length!=fe.styles.length||ot!=jt&&(!ot||!jt||ot.bgClass!=jt.bgClass||ot.textClass!=jt.textClass),Rn=0;!un&&Rn<we.length;++Rn)un=we[Rn]!=fe.styles[Rn];un&&ie.push(te.line),fe.stateAfter=te.save(),te.nextLine()}else fe.text.length<=x.options.maxHighlightLength&&yn(x,fe.text,te),fe.stateAfter=te.line%5==0?te.save():null,te.nextLine();if(+new Date>ne)return Nn(x,x.options.workDelay),!0}),z.highlightFrontier=te.line,z.modeFrontier=Math.max(z.modeFrontier,te.line),ie.length&&Ht(x,function(){for(var fe=0;fe<ie.length;fe++)tl(x,ie[fe],"text")})}}var Kn=function(x,z,ne){var te=x.display;this.viewport=z,this.visible=ls(te,x.doc,z),this.editorIsHidden=!te.wrapper.offsetWidth,this.wrapperHeight=te.wrapper.clientHeight,this.wrapperWidth=te.wrapper.clientWidth,this.oldDisplayWidth=fo(x),this.force=ne,this.dims=Ga(x),this.events=[]};Kn.prototype.signal=function(x,z){zt(x,z)&&this.events.push(arguments)},Kn.prototype.finish=function(){for(var x=0;x<this.events.length;x++)De.apply(null,this.events[x])};function fr(x){var z=x.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=Mo(x)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=Mo(x)+"px",z.scrollbarsClipped=!0)}function cr(x){if(x.hasFocus())return null;var z=tt();if(!z||!Lt(x.display.lineDiv,z))return null;var ne={activeElt:z};if(window.getSelection){var te=window.getSelection();te.anchorNode&&te.extend&&Lt(x.display.lineDiv,te.anchorNode)&&(ne.anchorNode=te.anchorNode,ne.anchorOffset=te.anchorOffset,ne.focusNode=te.focusNode,ne.focusOffset=te.focusOffset)}return ne}function ur(x){if(!(!x||!x.activeElt||x.activeElt==tt())&&(x.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(x.activeElt.nodeName)&&x.anchorNode&&Lt(document.body,x.anchorNode)&&Lt(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 ei(x,z){var ne=x.display,te=x.doc;if(z.editorIsHidden)return nl(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&&Jc(x)==0)return!1;Ai(x)&&(nl(x),z.dims=Ga(x));var ie=te.first+te.size,fe=Math.max(z.visible.from-x.options.viewportMargin,te.first),we=Math.min(ie,z.visible.to+x.options.viewportMargin);ne.viewFrom<fe&&fe-ne.viewFrom<20&&(fe=Math.max(te.first,ne.viewFrom)),ne.viewTo>we&&ne.viewTo-we<20&&(we=Math.min(ie,ne.viewTo)),Nr&&(fe=qi(x.doc,fe),we=Wi(x.doc,we));var Te=fe!=ne.viewFrom||we!=ne.viewTo||ne.lastWrapHeight!=z.wrapperHeight||ne.lastWrapWidth!=z.wrapperWidth;Il(x,fe,we),ne.viewOffset=Br(Et(x.doc,ne.viewFrom)),x.display.mover.style.top=ne.viewOffset+"px";var He=Jc(x);if(!Te&&He==0&&!z.force&&ne.renderedView==ne.view&&(ne.updateLineNumbers==null||ne.updateLineNumbers>=ne.viewTo))return!1;var ot=cr(x);return He>4&&(ne.lineDiv.style.display="none"),Zr(x,ne.updateLineNumbers,z.dims),He>4&&(ne.lineDiv.style.display=""),ne.renderedView=ne.view,ur(ot),et(ne.cursorDiv),et(ne.selectionDiv),ne.gutters.style.height=ne.sizer.style.minHeight=0,Te&&(ne.lastWrapHeight=z.wrapperHeight,ne.lastWrapWidth=z.wrapperWidth,Nn(x,400)),ne.updateLineNumbers=null,!0}function Hr(x,z){for(var ne=z.viewport,te=!0;;te=!1){if(!te||!x.options.lineWrapping||z.oldDisplayWidth==fo(x)){if(ne&&ne.top!=null&&(ne={top:Math.min(x.doc.height+Ys(x.display)-Os(x),ne.top)}),z.visible=ls(x.display,x.doc,ne),z.visible.from>=x.display.viewFrom&&z.visible.to<=x.display.viewTo)break}else te&&(z.visible=ls(x.display,x.doc,ne));if(!ei(x,z))break;$c(x);var ie=bc(x);vc(x),Gl(x,ie),Oi(x,ie),z.force=!1}z.signal(x,"update",x),(x.display.viewFrom!=x.display.reportedViewFrom||x.display.viewTo!=x.display.reportedViewTo)&&(z.signal(x,"viewportChange",x,x.display.viewFrom,x.display.viewTo),x.display.reportedViewFrom=x.display.viewFrom,x.display.reportedViewTo=x.display.viewTo)}function ti(x,z){var ne=new Kn(x,z);if(ei(x,ne)){$c(x),Hr(x,ne);var te=bc(x);vc(x),Gl(x,te),Oi(x,te),ne.finish()}}function Zr(x,z,ne){var te=x.display,ie=x.options.lineNumbers,fe=te.lineDiv,we=fe.firstChild;function Te(lr){var Dr=lr.nextSibling;return pe&&ft&&x.display.currentWheelTarget==lr?lr.style.display="none":lr.parentNode.removeChild(lr),Dr}for(var He=te.view,ot=te.viewFrom,jt=0;jt<He.length;jt++){var un=He[jt];if(!un.hidden)if(!un.node||un.node.parentNode!=fe){var Rn=vi(x,un,ot,ne);fe.insertBefore(Rn,we)}else{for(;we!=un.node;)we=Te(we);var On=ie&&z!=null&&z<=ot&&un.lineNumber;un.changes&&(Ye(un.changes,"gutter")>-1&&(On=!1),wr(x,un,ot,ne)),On&&(et(un.lineNumber),un.lineNumber.appendChild(document.createTextNode(jn(x.options,ot)))),we=un.node.nextSibling}ot+=un.size}for(;we;)we=Te(we)}function hi(x){var z=x.gutters.offsetWidth;x.sizer.style.marginLeft=z+"px"}function Oi(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+Mo(x)+"px"}function zi(x){var z=x.display,ne=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!x.options.fixedGutter))){for(var te=$a(z)-z.scroller.scrollLeft+x.doc.scrollLeft,ie=z.gutters.offsetWidth,fe=te+"px",we=0;we<ne.length;we++)if(!ne[we].hidden){x.options.fixedGutter&&(ne[we].gutter&&(ne[we].gutter.style.left=fe),ne[we].gutterBackground&&(ne[we].gutterBackground.style.left=fe));var Te=ne[we].alignable;if(Te)for(var He=0;He<Te.length;He++)Te[He].style.left=fe}x.options.fixedGutter&&(z.gutters.style.left=te+ie+"px")}}function Ai(x){if(!x.options.lineNumbers)return!1;var z=x.doc,ne=jn(x.options,z.first+z.size-1),te=x.display;if(ne.length!=te.lineNumChars){var ie=te.measure.appendChild(Qe("div",[Qe("div",ne)],"CodeMirror-linenumber CodeMirror-gutter-elt")),fe=ie.firstChild.offsetWidth,we=ie.offsetWidth-fe;return te.lineGutter.style.width="",te.lineNumInnerWidth=Math.max(fe,te.lineGutter.offsetWidth-we)+1,te.lineNumWidth=te.lineNumInnerWidth+we,te.lineNumChars=te.lineNumInnerWidth?ne.length:-1,te.lineGutter.style.width=te.lineNumWidth+"px",hi(x.display),!0}return!1}function Qi(x,z){for(var ne=[],te=!1,ie=0;ie<x.length;ie++){var fe=x[ie],we=null;if(typeof fe!="string"&&(we=fe.style,fe=fe.className),fe=="CodeMirror-linenumbers")if(z)te=!0;else continue;ne.push({className:fe,style:we})}return z&&!te&&ne.push({className:"CodeMirror-linenumbers",style:null}),ne}function sa(x){var z=x.gutters,ne=x.gutterSpecs;et(z),x.lineGutter=null;for(var te=0;te<ne.length;++te){var ie=ne[te],fe=ie.className,we=ie.style,Te=z.appendChild(Qe("div",null,"CodeMirror-gutter "+fe));we&&(Te.style.cssText=we),fe=="CodeMirror-linenumbers"&&(x.lineGutter=Te,Te.style.width=(x.lineNumWidth||1)+"px")}z.style.display=ne.length?"":"none",hi(x)}function yi(x){sa(x.display),jo(x),zi(x)}function Di(x,z,ne,te){var ie=this;this.input=ne,ie.scrollbarFiller=Qe("div",null,"CodeMirror-scrollbar-filler"),ie.scrollbarFiller.setAttribute("cm-not-content","true"),ie.gutterFiller=Qe("div",null,"CodeMirror-gutter-filler"),ie.gutterFiller.setAttribute("cm-not-content","true"),ie.lineDiv=bt("div",null,"CodeMirror-code"),ie.selectionDiv=Qe("div",null,null,"position: relative; z-index: 1"),ie.cursorDiv=Qe("div",null,"CodeMirror-cursors"),ie.measure=Qe("div",null,"CodeMirror-measure"),ie.lineMeasure=Qe("div",null,"CodeMirror-measure"),ie.lineSpace=bt("div",[ie.measure,ie.lineMeasure,ie.selectionDiv,ie.cursorDiv,ie.lineDiv],null,"position: relative; outline: none");var fe=bt("div",[ie.lineSpace],"CodeMirror-lines");ie.mover=Qe("div",[fe],null,"position: relative"),ie.sizer=Qe("div",[ie.mover],"CodeMirror-sizer"),ie.sizerWidth=null,ie.heightForcer=Qe("div",null,null,"position: absolute; height: "+Pt+"px; width: 1px;"),ie.gutters=Qe("div",null,"CodeMirror-gutters"),ie.lineGutter=null,ie.scroller=Qe("div",[ie.sizer,ie.heightForcer,ie.gutters],"CodeMirror-scroll"),ie.scroller.setAttribute("tabIndex","-1"),ie.wrapper=Qe("div",[ie.scrollbarFiller,ie.gutterFiller,ie.scroller],"CodeMirror"),xe&&Ee<8&&(ie.gutters.style.zIndex=-1,ie.scroller.style.paddingRight=0),!pe&&!(ae&&je)&&(ie.scroller.draggable=!0),x&&(x.appendChild?x.appendChild(ie.wrapper):x(ie.wrapper)),ie.viewFrom=ie.viewTo=z.first,ie.reportedViewFrom=ie.reportedViewTo=z.first,ie.view=[],ie.renderedView=null,ie.externalMeasured=null,ie.viewOffset=0,ie.lastWrapHeight=ie.lastWrapWidth=0,ie.updateLineNumbers=null,ie.nativeBarWidth=ie.barHeight=ie.barWidth=0,ie.scrollbarsClipped=!1,ie.lineNumWidth=ie.lineNumInnerWidth=ie.lineNumChars=null,ie.alignWidgets=!1,ie.cachedCharWidth=ie.cachedTextHeight=ie.cachedPaddingH=null,ie.maxLine=null,ie.maxLineLength=0,ie.maxLineChanged=!1,ie.wheelDX=ie.wheelDY=ie.wheelStartX=ie.wheelStartY=null,ie.shift=!1,ie.selForContextMenu=null,ie.activeTouch=null,ie.gutterSpecs=Qi(te.gutters,te.lineNumbers),sa(ie),ne.init(ie)}var bi=0,Fr=null;xe?Fr=-.53:ae?Fr=15:Me?Fr=-.7:vt&&(Fr=-1/3);function Si(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 Yi(x){var z=Si(x);return z.x*=Fr,z.y*=Fr,z}function ga(x,z){var ne=Si(z),te=ne.x,ie=ne.y,fe=x.display,we=fe.scroller,Te=we.scrollWidth>we.clientWidth,He=we.scrollHeight>we.clientHeight;if(te&&Te||ie&&He){if(ie&&ft&&pe){e:for(var ot=z.target,jt=fe.view;ot!=we;ot=ot.parentNode)for(var un=0;un<jt.length;un++)if(jt[un].node==ot){x.display.currentWheelTarget=ot;break e}}if(te&&!ae&&!_e&&Fr!=null){ie&&He&&Ul(x,Math.max(0,we.scrollTop+ie*Fr)),Tl(x,Math.max(0,we.scrollLeft+te*Fr)),(!ie||ie&&He)&&Bn(z),fe.wheelStartX=null;return}if(ie&&Fr!=null){var Rn=ie*Fr,On=x.doc.scrollTop,lr=On+fe.wrapper.clientHeight;Rn<0?On=Math.max(0,On+Rn-50):lr=Math.min(x.doc.height,lr+Rn+50),ti(x,{top:On,bottom:lr})}bi<20&&(fe.wheelStartX==null?(fe.wheelStartX=we.scrollLeft,fe.wheelStartY=we.scrollTop,fe.wheelDX=te,fe.wheelDY=ie,setTimeout(function(){if(fe.wheelStartX!=null){var Dr=we.scrollLeft-fe.wheelStartX,ai=we.scrollTop-fe.wheelStartY,Ci=ai&&fe.wheelDY&&ai/fe.wheelDY||Dr&&fe.wheelDX&&Dr/fe.wheelDX;fe.wheelStartX=fe.wheelStartY=null,Ci&&(Fr=(Fr*bi+Ci)/(bi+1),++bi)}},200)):(fe.wheelDX+=te,fe.wheelDY+=ie))}}var Zi=function(x,z){this.ranges=x,this.primIndex=z};Zi.prototype.primary=function(){return this.ranges[this.primIndex]},Zi.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(!Dt(ne.anchor,te.anchor)||!Dt(ne.head,te.head))return!1}return!0},Zi.prototype.deepCopy=function(){for(var x=[],z=0;z<this.ranges.length;z++)x[z]=new ii(Zt(this.ranges[z].anchor),Zt(this.ranges[z].head));return new Zi(x,this.primIndex)},Zi.prototype.somethingSelected=function(){for(var x=0;x<this.ranges.length;x++)if(!this.ranges[x].empty())return!0;return!1},Zi.prototype.contains=function(x,z){z||(z=x);for(var ne=0;ne<this.ranges.length;ne++){var te=this.ranges[ne];if(Dn(z,te.from())>=0&&Dn(x,te.to())<=0)return ne}return-1};var ii=function(x,z){this.anchor=x,this.head=z};ii.prototype.from=function(){return cn(this.anchor,this.head)},ii.prototype.to=function(){return on(this.anchor,this.head)},ii.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ra(x,z,ne){var te=x&&x.options.selectionsMayTouch,ie=z[ne];z.sort(function(Rn,On){return Dn(Rn.from(),On.from())}),ne=Ye(z,ie);for(var fe=1;fe<z.length;fe++){var we=z[fe],Te=z[fe-1],He=Dn(Te.to(),we.from());if(te&&!we.empty()?He>0:He>=0){var ot=cn(Te.from(),we.from()),jt=on(Te.to(),we.to()),un=Te.empty()?we.from()==we.head:Te.from()==Te.head;fe<=ne&&--ne,z.splice(--fe,2,new ii(un?jt:ot,un?ot:jt))}}return new Zi(z,ne)}function la(x,z){return new Zi([new ii(x,z||x)],0)}function Fa(x){return x.text?Qt(x.from.line+x.text.length-1,nn(x.text).length+(x.text.length==1?x.from.ch:0)):x.to}function Ia(x,z){if(Dn(x,z.from)<0)return x;if(Dn(x,z.to)<=0)return Fa(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+=Fa(z).ch-z.to.ch),Qt(ne,te)}function lo(x,z){for(var ne=[],te=0;te<x.sel.ranges.length;te++){var ie=x.sel.ranges[te];ne.push(new ii(Ia(ie.anchor,z),Ia(ie.head,z)))}return ra(x.cm,ne,x.sel.primIndex)}function eo(x,z,ne){return x.line==z.line?Qt(ne.line,x.ch-z.ch+ne.ch):Qt(ne.line+(x.line-z.line),x.ch)}function oa(x,z,ne){for(var te=[],ie=Qt(x.first,0),fe=ie,we=0;we<z.length;we++){var Te=z[we],He=eo(Te.from,ie,fe),ot=eo(Fa(Te),ie,fe);if(ie=Te.to,fe=ot,ne=="around"){var jt=x.sel.ranges[we],un=Dn(jt.head,jt.anchor)<0;te[we]=new ii(un?ot:He,un?He:ot)}else te[we]=new ii(He,He)}return new Zi(te,x.sel.primIndex)}function Co(x){x.doc.mode=Gn(x.options,x.doc.modeOption),Ma(x)}function Ma(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,Nn(x,100),x.state.modeGen++,x.curOp&&jo(x)}function ao(x,z){return z.from.ch==0&&z.to.ch==0&&nn(z.text)==""&&(!x.cm||x.cm.options.wholeLineUpdateBefore)}function to(x,z,ne,te){function ie(Bi){return ne?ne[Bi]:null}function fe(Bi,gi,Ii){Xi(Bi,gi,Ii,te),or(Bi,"change",Bi,z)}function we(Bi,gi){for(var Ii=[],Ji=Bi;Ji<gi;++Ji)Ii.push(new Gr(ot[Ji],ie(Ji),te));return Ii}var Te=z.from,He=z.to,ot=z.text,jt=Et(x,Te.line),un=Et(x,He.line),Rn=nn(ot),On=ie(ot.length-1),lr=He.line-Te.line;if(z.full)x.insert(0,we(0,ot.length)),x.remove(ot.length,x.size-ot.length);else if(ao(x,z)){var Dr=we(0,ot.length-1);fe(un,un.text,On),lr&&x.remove(Te.line,lr),Dr.length&&x.insert(Te.line,Dr)}else if(jt==un)if(ot.length==1)fe(jt,jt.text.slice(0,Te.ch)+Rn+jt.text.slice(He.ch),On);else{var ai=we(1,ot.length-1);ai.push(new Gr(Rn+jt.text.slice(He.ch),On,te)),fe(jt,jt.text.slice(0,Te.ch)+ot[0],ie(0)),x.insert(Te.line+1,ai)}else if(ot.length==1)fe(jt,jt.text.slice(0,Te.ch)+ot[0]+un.text.slice(He.ch),ie(0)),x.remove(Te.line+1,lr);else{fe(jt,jt.text.slice(0,Te.ch)+ot[0],ie(0)),fe(un,Rn+un.text.slice(He.ch),On);var Ci=we(1,ot.length-1);lr>1&&x.remove(Te.line+1,lr-1),x.insert(Te.line+1,Ci)}or(x,"change",x,z)}function Po(x,z,ne){function te(ie,fe,we){if(ie.linked)for(var Te=0;Te<ie.linked.length;++Te){var He=ie.linked[Te];if(He.doc!=fe){var ot=we&&He.sharedHist;ne&&!ot||(z(He.doc,ot),te(He.doc,ie,ot))}}}te(x,null,!0)}function ji(x,z){if(z.cm)throw new Error("This document is already in use.");x.doc=z,z.cm=x,$o(x),Co(x),_i(x),x.options.lineWrapping||Er(x),x.options.mode=z.modeOption,jo(x)}function _i(x){(x.doc.direction=="rtl"?Ut:Je)(x.display.lineDiv,"CodeMirror-rtl")}function Ki(x){Ht(x,function(){_i(x),jo(x)})}function Pi(x){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=x||1}function Pa(x,z){var ne={from:Zt(z.from),to:Fa(z),text:Tt(x,z.from,z.to)};return js(x,ne,z.from.line,z.to.line+1),Po(x,function(te){return js(te,ne,z.from.line,z.to.line+1)},!0),ne}function Ni(x){for(;x.length;){var z=nn(x);if(z.ranges)x.pop();else break}}function ia(x,z){if(z)return Ni(x.done),nn(x.done);if(x.done.length&&!nn(x.done).ranges)return nn(x.done);if(x.done.length>1&&!x.done[x.done.length-2].ranges)return x.done.pop(),nn(x.done)}function ka(x,z,ne,te){var ie=x.history;ie.undone.length=0;var fe=+new Date,we,Te;if((ie.lastOp==te||ie.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&ie.lastModTime>fe-(x.cm?x.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(we=ia(ie,ie.lastOp==te)))Te=nn(we.changes),Dn(z.from,z.to)==0&&Dn(z.from,Te.to)==0?Te.to=Fa(z):we.changes.push(Pa(x,z));else{var He=nn(ie.done);for((!He||!He.ranges)&&To(x.sel,ie.done),we={changes:[Pa(x,z)],generation:ie.generation},ie.done.push(we);ie.done.length>ie.undoDepth;)ie.done.shift(),ie.done[0].ranges||ie.done.shift()}ie.done.push(ne),ie.generation=++ie.maxGeneration,ie.lastModTime=ie.lastSelTime=fe,ie.lastOp=ie.lastSelOp=te,ie.lastOrigin=ie.lastSelOrigin=z.origin,Te||De(x,"historyAdded")}function Ea(x,z,ne,te){var ie=z.charAt(0);return ie=="*"||ie=="+"&&ne.ranges.length==te.ranges.length&&ne.somethingSelected()==te.somethingSelected()&&new Date-x.history.lastSelTime<=(x.cm?x.cm.options.historyEventDelay:500)}function es(x,z,ne,te){var ie=x.history,fe=te&&te.origin;ne==ie.lastSelOp||fe&&ie.lastSelOrigin==fe&&(ie.lastModTime==ie.lastSelTime&&ie.lastOrigin==fe||Ea(x,fe,nn(ie.done),z))?ie.done[ie.done.length-1]=z:To(z,ie.done),ie.lastSelTime=+new Date,ie.lastSelOrigin=fe,ie.lastSelOp=ne,te&&te.clearRedo!==!1&&Ni(ie.undone)}function To(x,z){var ne=nn(z);ne&&ne.ranges&&ne.equals(x)||z.push(x)}function js(x,z,ne,te){var ie=z["spans_"+x.id],fe=0;x.iter(Math.max(x.first,ne),Math.min(x.first+x.size,te),function(we){we.markedSpans&&((ie||(ie=z["spans_"+x.id]={}))[fe]=we.markedSpans),++fe})}function Eo(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 Js(x,z){var ne=z["spans_"+x.id];if(!ne)return null;for(var te=[],ie=0;ie<z.text.length;++ie)te.push(Eo(ne[ie]));return te}function Ao(x,z){var ne=Js(x,z),te=qn(x,z);if(!ne)return te;if(!te)return ne;for(var ie=0;ie<ne.length;++ie){var fe=ne[ie],we=te[ie];if(fe&&we)e:for(var Te=0;Te<we.length;++Te){for(var He=we[Te],ot=0;ot<fe.length;++ot)if(fe[ot].marker==He.marker)continue e;fe.push(He)}else we&&(ne[ie]=we)}return ne}function Vo(x,z,ne){for(var te=[],ie=0;ie<x.length;++ie){var fe=x[ie];if(fe.ranges){te.push(ne?Zi.prototype.deepCopy.call(fe):fe);continue}var we=fe.changes,Te=[];te.push({changes:Te});for(var He=0;He<we.length;++He){var ot=we[He],jt=void 0;if(Te.push({from:ot.from,to:ot.to,text:ot.text}),z)for(var un in ot)(jt=un.match(/^spans_(\d+)$/))&&Ye(z,Number(jt[1]))>-1&&(nn(Te)[un]=ot[un],delete ot[un])}}return te}function xl(x,z,ne,te){if(te){var ie=x.anchor;if(ne){var fe=Dn(z,ie)<0;fe!=Dn(ne,ie)<0?(ie=z,z=ne):fe!=Dn(z,ne)<0&&(z=ne)}return new ii(ie,z)}else return new ii(ne||z,z)}function Da(x,z,ne,te,ie){ie==null&&(ie=x.cm&&(x.cm.display.shift||x.extend)),Va(x,new Zi([xl(x.sel.primary(),z,ne,ie)],0),te)}function Or(x,z,ne){for(var te=[],ie=x.cm&&(x.cm.display.shift||x.extend),fe=0;fe<x.sel.ranges.length;fe++)te[fe]=xl(x.sel.ranges[fe],z[fe],null,ie);var we=ra(x.cm,te,x.sel.primIndex);Va(x,we,ne)}function _a(x,z,ne,te){var ie=x.sel.ranges.slice(0);ie[z]=ne,Va(x,ra(x.cm,ie,x.sel.primIndex),te)}function Lo(x,z,ne,te){Va(x,la(z,ne),te)}function Oo(x,z,ne){var te={ranges:z.ranges,update:function(ie){this.ranges=[];for(var fe=0;fe<ie.length;fe++)this.ranges[fe]=new ii(en(x,ie[fe].anchor),en(x,ie[fe].head))},origin:ne&&ne.origin};return De(x,"beforeSelectionChange",x,te),x.cm&&De(x.cm,"beforeSelectionChange",x.cm,te),te.ranges!=z.ranges?ra(x.cm,te.ranges,te.ranges.length-1):z}function $i(x,z,ne){var te=x.history.done,ie=nn(te);ie&&ie.ranges?(te[te.length-1]=z,Uo(x,z,ne)):Va(x,z,ne)}function Va(x,z,ne){Uo(x,z,ne),es(x,x.sel,x.cm?x.cm.curOp.id:NaN,ne)}function Uo(x,z,ne){(zt(x,"beforeSelectionChange")||x.cm&&zt(x.cm,"beforeSelectionChange"))&&(z=Oo(x,z,ne));var te=ne&&ne.bias||(Dn(z.primary().head,x.sel.primary().head)<0?-1:1);zs(x,ws(x,z,te,!0)),!(ne&&ne.scroll===!1)&&x.cm&&yc(x.cm)}function zs(x,z){z.equals(x.sel)||(x.sel=z,x.cm&&(x.cm.curOp.updateInput=1,x.cm.curOp.selectionChanged=!0,Ft(x.cm)),or(x,"cursorActivity",x))}function fl(x){zs(x,ws(x,x.sel,null,!1))}function ws(x,z,ne,te){for(var ie,fe=0;fe<z.ranges.length;fe++){var we=z.ranges[fe],Te=z.ranges.length==x.sel.ranges.length&&x.sel.ranges[fe],He=il(x,we.anchor,Te&&Te.anchor,ne,te),ot=il(x,we.head,Te&&Te.head,ne,te);(ie||He!=we.anchor||ot!=we.head)&&(ie||(ie=z.ranges.slice(0,fe)),ie[fe]=new ii(He,ot))}return ie?ra(x.cm,ie,z.primIndex):z}function ts(x,z,ne,te,ie){var fe=Et(x,z.line);if(fe.markedSpans)for(var we=0;we<fe.markedSpans.length;++we){var Te=fe.markedSpans[we],He=Te.marker,ot="selectLeft"in He?!He.selectLeft:He.inclusiveLeft,jt="selectRight"in He?!He.selectRight:He.inclusiveRight;if((Te.from==null||(ot?Te.from<=z.ch:Te.from<z.ch))&&(Te.to==null||(jt?Te.to>=z.ch:Te.to>z.ch))){if(ie&&(De(He,"beforeCursorEnter"),He.explicitlyCleared))if(fe.markedSpans){--we;continue}else break;if(!He.atomic)continue;if(ne){var un=He.find(te<0?1:-1),Rn=void 0;if((te<0?jt:ot)&&(un=ns(x,un,-te,un&&un.line==z.line?fe:null)),un&&un.line==z.line&&(Rn=Dn(un,ne))&&(te<0?Rn<0:Rn>0))return ts(x,un,z,te,ie)}var On=He.find(te<0?-1:1);return(te<0?ot:jt)&&(On=ns(x,On,te,On.line==z.line?fe:null)),On?ts(x,On,z,te,ie):null}}return z}function il(x,z,ne,te,ie){var fe=te||1,we=ts(x,z,ne,fe,ie)||!ie&&ts(x,z,ne,fe,!0)||ts(x,z,ne,-fe,ie)||!ie&&ts(x,z,ne,-fe,!0);return we||(x.cantEdit=!0,Qt(x.first,0))}function ns(x,z,ne,te){return ne<0&&z.ch==0?z.line>x.first?en(x,Qt(z.line-1)):null:ne>0&&z.ch==(te||Et(x,z.line)).text.length?z.line<x.first+x.size-1?Qt(z.line+1,0):null:new Qt(z.line,z.ch+ne)}function Ss(x){x.setSelection(Qt(x.firstLine(),0),Qt(x.lastLine()),Ue)}function cs(x,z,ne){var te={canceled:!1,from:z.from,to:z.to,text:z.text,origin:z.origin,cancel:function(){return te.canceled=!0}};return ne&&(te.update=function(ie,fe,we,Te){ie&&(te.from=en(x,ie)),fe&&(te.to=en(x,fe)),we&&(te.text=we),Te!==void 0&&(te.origin=Te)}),De(x,"beforeChange",x,te),x.cm&&De(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 co(x,z,ne){if(x.cm){if(!x.cm.curOp)return En(x.cm,co)(x,z,ne);if(x.cm.state.suppressEdits)return}if(!((zt(x,"beforeChange")||x.cm&&zt(x.cm,"beforeChange"))&&(z=cs(x,z,!0),!z))){var te=Ur&&!ne&&Jr(x,z.from,z.to);if(te)for(var ie=te.length-1;ie>=0;--ie)uo(x,{from:te[ie].from,to:te[ie].to,text:ie?[""]:z.text,origin:z.origin});else uo(x,z)}}function uo(x,z){if(!(z.text.length==1&&z.text[0]==""&&Dn(z.from,z.to)==0)){var ne=lo(x,z);ka(x,z,ne,x.cm?x.cm.curOp.id:NaN),Vs(x,z,ne,qn(x,z));var te=[];Po(x,function(ie,fe){!fe&&Ye(te,ie.history)==-1&&(Xa(ie.history,z),te.push(ie.history)),Vs(ie,z,null,qn(ie,z))})}}function ms(x,z,ne){var te=x.cm&&x.cm.state.suppressEdits;if(!(te&&!ne)){for(var ie=x.history,fe,we=x.sel,Te=z=="undo"?ie.done:ie.undone,He=z=="undo"?ie.undone:ie.done,ot=0;ot<Te.length&&(fe=Te[ot],!(ne?fe.ranges&&!fe.equals(x.sel):!fe.ranges));ot++);if(ot!=Te.length){for(ie.lastOrigin=ie.lastSelOrigin=null;;)if(fe=Te.pop(),fe.ranges){if(To(fe,He),ne&&!fe.equals(x.sel)){Va(x,fe,{clearRedo:!1});return}we=fe}else if(te){Te.push(fe);return}else break;var jt=[];To(we,He),He.push({changes:jt,generation:ie.generation}),ie.generation=fe.generation||++ie.maxGeneration;for(var un=zt(x,"beforeChange")||x.cm&&zt(x.cm,"beforeChange"),Rn=function(Dr){var ai=fe.changes[Dr];if(ai.origin=z,un&&!cs(x,ai,!1))return Te.length=0,{};jt.push(Pa(x,ai));var Ci=Dr?lo(x,ai):nn(Te);Vs(x,ai,Ci,Ao(x,ai)),!Dr&&x.cm&&x.cm.scrollIntoView({from:ai.from,to:Fa(ai)});var Bi=[];Po(x,function(gi,Ii){!Ii&&Ye(Bi,gi.history)==-1&&(Xa(gi.history,ai),Bi.push(gi.history)),Vs(gi,ai,null,Ao(gi,ai))})},On=fe.changes.length-1;On>=0;--On){var lr=Rn(On);if(lr)return lr.v}}}}function wl(x,z){if(z!=0&&(x.first+=z,x.sel=new Zi(Gt(x.sel.ranges,function(ie){return new ii(Qt(ie.anchor.line+z,ie.anchor.ch),Qt(ie.head.line+z,ie.head.ch))}),x.sel.primIndex),x.cm)){jo(x.cm,x.first,x.first-z,z);for(var ne=x.cm.display,te=ne.viewFrom;te<ne.viewTo;te++)tl(x.cm,te,"gutter")}}function Vs(x,z,ne,te){if(x.cm&&!x.cm.curOp)return En(x.cm,Vs)(x,z,ne,te);if(z.to.line<x.first){wl(x,z.text.length-1-(z.to.line-z.from.line));return}if(!(z.from.line>x.lastLine())){if(z.from.line<x.first){var ie=z.text.length-1-(x.first-z.from.line);wl(x,ie),z={from:Qt(x.first,0),to:Qt(z.to.line+ie,z.to.ch),text:[nn(z.text)],origin:z.origin}}var fe=x.lastLine();z.to.line>fe&&(z={from:z.from,to:Qt(fe,Et(x,fe).text.length),text:[z.text[0]],origin:z.origin}),z.removed=Tt(x,z.from,z.to),ne||(ne=lo(x,z)),x.cm?hl(x.cm,z,te):to(x,z,te),Uo(x,ne,Ue),x.cantEdit&&il(x,Qt(x.firstLine(),0))&&(x.cantEdit=!1)}}function hl(x,z,ne){var te=x.doc,ie=x.display,fe=z.from,we=z.to,Te=!1,He=fe.line;x.options.lineWrapping||(He=wn(Mi(Et(te,fe.line))),te.iter(He,we.line+1,function(On){if(On==ie.maxLine)return Te=!0,!0})),te.sel.contains(z.from,z.to)>-1&&Ft(x),to(te,z,ne,xs(x)),x.options.lineWrapping||(te.iter(He,fe.line+z.text.length,function(On){var lr=kr(On);lr>ie.maxLineLength&&(ie.maxLine=On,ie.maxLineLength=lr,ie.maxLineChanged=!0,Te=!1)}),Te&&(x.curOp.updateMaxLine=!0)),ir(te,fe.line),Nn(x,400);var ot=z.text.length-(we.line-fe.line)-1;z.full?jo(x):fe.line==we.line&&z.text.length==1&&!ao(x.doc,z)?tl(x,fe.line,"text"):jo(x,fe.line,we.line+1,ot);var jt=zt(x,"changes"),un=zt(x,"change");if(un||jt){var Rn={from:fe,to:we,text:z.text,removed:z.removed,origin:z.origin};un&&or(x,"change",x,Rn),jt&&(x.curOp.changeObjs||(x.curOp.changeObjs=[])).push(Rn)}x.display.selForContextMenu=null}function Rl(x,z,ne,te,ie){var fe;te||(te=ne),Dn(te,ne)<0&&(fe=[te,ne],ne=fe[0],te=fe[1]),typeof z=="string"&&(z=x.splitLines(z)),co(x,{from:ne,to:te,text:z,origin:ie})}function ru(x,z,ne,te){ne<x.line?x.line+=te:z<x.line&&(x.line=z,x.ch=0)}function Ta(x,z,ne,te){for(var ie=0;ie<x.length;++ie){var fe=x[ie],we=!0;if(fe.ranges){fe.copied||(fe=x[ie]=fe.deepCopy(),fe.copied=!0);for(var Te=0;Te<fe.ranges.length;Te++)ru(fe.ranges[Te].anchor,z,ne,te),ru(fe.ranges[Te].head,z,ne,te);continue}for(var He=0;He<fe.changes.length;++He){var ot=fe.changes[He];if(ne<ot.from.line)ot.from=Qt(ot.from.line+te,ot.from.ch),ot.to=Qt(ot.to.line+te,ot.to.ch);else if(z<=ot.to.line){we=!1;break}}we||(x.splice(0,ie+1),ie=0)}}function Xa(x,z){var ne=z.from.line,te=z.to.line,ie=z.text.length-(te-ne)-1;Ta(x.done,ne,te,ie),Ta(x.undone,ne,te,ie)}function zo(x,z,ne,te){var ie=z,fe=z;return typeof z=="number"?fe=Et(x,In(x,z)):ie=wn(z),ie==null?null:(te(fe,ie)&&x.cm&&tl(x.cm,ie,ne),fe)}function Qa(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}Qa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(x,z){for(var ne=x,te=x+z;ne<te;++ne){var ie=this.lines[ne];this.height-=ie.height,fa(ie),or(ie,"delete")}this.lines.splice(x,z)},collapse:function(x){x.push.apply(x,this.lines)},insertInner:function(x,z,ne){this.height+=ne,this.lines=this.lines.slice(0,x).concat(z).concat(this.lines.slice(x));for(var te=0;te<z.length;++te)z[te].parent=this},iterN:function(x,z,ne){for(var te=x+z;x<te;++x)if(ne(this.lines[x]))return!0}};function _o(x){this.children=x;for(var z=0,ne=0,te=0;te<x.length;++te){var ie=x[te];z+=ie.chunkSize(),ne+=ie.height,ie.parent=this}this.size=z,this.height=ne,this.parent=null}_o.prototype={chunkSize:function(){return this.size},removeInner:function(x,z){this.size-=z;for(var ne=0;ne<this.children.length;++ne){var te=this.children[ne],ie=te.chunkSize();if(x<ie){var fe=Math.min(z,ie-x),we=te.height;if(te.removeInner(x,fe),this.height-=we-te.height,ie==fe&&(this.children.splice(ne--,1),te.parent=null),(z-=fe)==0)break;x=0}else x-=ie}if(this.size-z<25&&(this.children.length>1||!(this.children[0]instanceof Qa))){var Te=[];this.collapse(Te),this.children=[new Qa(Te)],this.children[0].parent=this}},collapse:function(x){for(var z=0;z<this.children.length;++z)this.children[z].collapse(x)},insertInner:function(x,z,ne){this.size+=z.length,this.height+=ne;for(var te=0;te<this.children.length;++te){var ie=this.children[te],fe=ie.chunkSize();if(x<=fe){if(ie.insertInner(x,z,ne),ie.lines&&ie.lines.length>50){for(var we=ie.lines.length%25+25,Te=we;Te<ie.lines.length;){var He=new Qa(ie.lines.slice(Te,Te+=25));ie.height-=He.height,this.children.splice(++te,0,He),He.parent=this}ie.lines=ie.lines.slice(0,we),this.maybeSpill()}break}x-=fe}},maybeSpill:function(){if(!(this.children.length<=10)){var x=this;do{var z=x.children.splice(x.children.length-5,5),ne=new _o(z);if(x.parent){x.size-=ne.size,x.height-=ne.height;var ie=Ye(x.parent.children,x);x.parent.children.splice(ie+1,0,ne)}else{var te=new _o(x.children);te.parent=x,x.children=[te,ne],x=te}ne.parent=x.parent}while(x.children.length>10);x.parent.maybeSpill()}},iterN:function(x,z,ne){for(var te=0;te<this.children.length;++te){var ie=this.children[te],fe=ie.chunkSize();if(x<fe){var we=Math.min(z,fe-x);if(ie.iterN(x,we,ne))return!0;if((z-=we)==0)break;x=0}else x-=fe}}};var rs=function(x,z,ne){if(ne)for(var te in ne)ne.hasOwnProperty(te)&&(this[te]=ne[te]);this.doc=x,this.node=z};rs.prototype.clear=function(){var x=this.doc.cm,z=this.line.widgets,ne=this.line,te=wn(ne);if(!(te==null||!z)){for(var ie=0;ie<z.length;++ie)z[ie]==this&&z.splice(ie--,1);z.length||(ne.widgets=null);var fe=Ra(this);ln(ne,Math.max(0,ne.height-fe)),x&&(Ht(x,function(){As(x,ne,-fe),tl(x,te,"widget")}),or(x,"lineWidgetCleared",x,this,te))}},rs.prototype.changed=function(){var x=this,z=this.height,ne=this.doc.cm,te=this.line;this.height=null;var ie=Ra(this)-z;ie&&(xa(this.doc,te)||ln(te,te.height+ie),ne&&Ht(ne,function(){ne.curOp.forceUpdate=!0,As(ne,te,ie),or(ne,"lineWidgetChanged",ne,x,wn(te))}))},an(rs);function As(x,z,ne){Br(z)<(x.curOp&&x.curOp.scrollTop||x.doc.scrollTop)&&tu(x,ne)}function Sl(x,z,ne,te){var ie=new rs(x,ne,te),fe=x.cm;return fe&&ie.noHScroll&&(fe.display.alignWidgets=!0),zo(x,z,"widget",function(we){var Te=we.widgets||(we.widgets=[]);if(ie.insertAt==null?Te.push(ie):Te.splice(Math.min(Te.length-1,Math.max(0,ie.insertAt)),0,ie),ie.line=we,fe&&!xa(x,we)){var He=Br(we)<x.scrollTop;ln(we,we.height+Ra(ie)),He&&tu(fe,ie.height),fe.curOp.forceUpdate=!0}return!0}),fe&&or(fe,"lineWidgetAdded",fe,ie,typeof z=="number"?z:wn(z)),ie}var Mu=0,Yl=function(x,z){this.lines=[],this.type=z,this.doc=x,this.id=++Mu};Yl.prototype.clear=function(){if(!this.explicitlyCleared){var x=this.doc.cm,z=x&&!x.curOp;if(z&&ks(x),zt(this,"clear")){var ne=this.find();ne&&or(this,"clear",ne.from,ne.to)}for(var te=null,ie=null,fe=0;fe<this.lines.length;++fe){var we=this.lines[fe],Te=ri(we.markedSpans,this);x&&!this.collapsed?tl(x,wn(we),"text"):x&&(Te.to!=null&&(ie=wn(we)),Te.from!=null&&(te=wn(we))),we.markedSpans=Kr(we.markedSpans,Te),Te.from==null&&this.collapsed&&!xa(this.doc,we)&&x&&ln(we,bl(x.display))}if(x&&this.collapsed&&!x.options.lineWrapping)for(var He=0;He<this.lines.length;++He){var ot=Mi(this.lines[He]),jt=kr(ot);jt>x.display.maxLineLength&&(x.display.maxLine=ot,x.display.maxLineLength=jt,x.display.maxLineChanged=!0)}te!=null&&x&&this.collapsed&&jo(x,te,ie+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,x&&fl(x.doc)),x&&or(x,"markerCleared",x,this,te,ie),z&&Nl(x),this.parent&&this.parent.clear()}},Yl.prototype.find=function(x,z){x==null&&this.type=="bookmark"&&(x=1);for(var ne,te,ie=0;ie<this.lines.length;++ie){var fe=this.lines[ie],we=ri(fe.markedSpans,this);if(we.from!=null&&(ne=Qt(z?fe:wn(fe),we.from),x==-1))return ne;if(we.to!=null&&(te=Qt(z?fe:wn(fe),we.to),x==1))return te}return ne&&{from:ne,to:te}},Yl.prototype.changed=function(){var x=this,z=this.find(-1,!0),ne=this,te=this.doc.cm;!z||!te||Ht(te,function(){var ie=z.line,fe=wn(z.line),we=ko(te,fe);if(we&&(qa(we),te.curOp.selectionChanged=te.curOp.forceUpdate=!0),te.curOp.updateMaxLine=!0,!xa(ne.doc,ie)&&ne.height!=null){var Te=ne.height;ne.height=null;var He=Ra(ne)-Te;He&&ln(ie,ie.height+He)}or(te,"markerChanged",te,x)})},Yl.prototype.attachLine=function(x){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||Ye(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(x)},Yl.prototype.detachLine=function(x){if(this.lines.splice(Ye(this.lines,x),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},an(Yl);function Cl(x,z,ne,te,ie){if(te&&te.shared)return ho(x,z,ne,te,ie);if(x.cm&&!x.cm.curOp)return En(x.cm,Cl)(x,z,ne,te,ie);var fe=new Yl(x,ie),we=Dn(z,ne);if(te&&It(te,fe,!1),we>0||we==0&&fe.clearWhenEmpty!==!1)return fe;if(fe.replacedWith&&(fe.collapsed=!0,fe.widgetNode=bt("span",[fe.replacedWith],"CodeMirror-widget"),te.handleMouseEvents||fe.widgetNode.setAttribute("cm-ignore-events","true"),te.insertLeft&&(fe.widgetNode.insertLeft=!0)),fe.collapsed){if(mi(x,z.line,z,ne,fe)||z.line!=ne.line&&mi(x,ne.line,z,ne,fe))throw new Error("Inserting collapsed marker partially overlapping an existing one");Cr()}fe.addToHistory&&ka(x,{from:z,to:ne,origin:"markText"},x.sel,NaN);var Te=z.line,He=x.cm,ot;if(x.iter(Te,ne.line+1,function(un){He&&fe.collapsed&&!He.options.lineWrapping&&Mi(un)==He.display.maxLine&&(ot=!0),fe.collapsed&&Te!=z.line&&ln(un,0),Ei(un,new Lr(fe,Te==z.line?z.ch:null,Te==ne.line?ne.ch:null)),++Te}),fe.collapsed&&x.iter(z.line,ne.line+1,function(un){xa(x,un)&&ln(un,0)}),fe.clearOnEnter&&_t(fe,"beforeCursorEnter",function(){return fe.clear()}),fe.readOnly&&($r(),(x.history.done.length||x.history.undone.length)&&x.clearHistory()),fe.collapsed&&(fe.id=++Mu,fe.atomic=!0),He){if(ot&&(He.curOp.updateMaxLine=!0),fe.collapsed)jo(He,z.line,ne.line+1);else if(fe.className||fe.startStyle||fe.endStyle||fe.css||fe.attributes||fe.title)for(var jt=z.line;jt<=ne.line;jt++)tl(He,jt,"text");fe.atomic&&fl(He.doc),or(He,"markerAdded",He,fe)}return fe}var Ba=function(x,z){this.markers=x,this.primary=z;for(var ne=0;ne<x.length;++ne)x[ne].parent=this};Ba.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var x=0;x<this.markers.length;++x)this.markers[x].clear();or(this,"clear")}},Ba.prototype.find=function(x,z){return this.primary.find(x,z)},an(Ba);function ho(x,z,ne,te,ie){te=It(te),te.shared=!1;var fe=[Cl(x,z,ne,te,ie)],we=fe[0],Te=te.widgetNode;return Po(x,function(He){Te&&(te.widgetNode=Te.cloneNode(!0)),fe.push(Cl(He,en(He,z),en(He,ne),te,ie));for(var ot=0;ot<He.linked.length;++ot)if(He.linked[ot].isParent)return;we=nn(fe)}),new Ba(fe,we)}function pl(x){return x.findMarks(Qt(x.first,0),x.clipPos(Qt(x.lastLine())),function(z){return z.parent})}function sc(x,z){for(var ne=0;ne<z.length;ne++){var te=z[ne],ie=te.find(),fe=x.clipPos(ie.from),we=x.clipPos(ie.to);if(Dn(fe,we)){var Te=Cl(x,fe,we,te.primary,te.primary.type);te.markers.push(Te),Te.parent=te}}}function Us(x){for(var z=function(te){var ie=x[te],fe=[ie.primary.doc];Po(ie.primary.doc,function(He){return fe.push(He)});for(var we=0;we<ie.markers.length;we++){var Te=ie.markers[we];Ye(fe,Te.doc)==-1&&(Te.parent=null,ie.markers.splice(we--,1))}},ne=0;ne<x.length;ne++)z(ne)}var $u=0,No=function(x,z,ne,te,ie){if(!(this instanceof No))return new No(x,z,ne,te,ie);ne==null&&(ne=0),_o.call(this,[new Qa([new Gr("",null)])]),this.first=ne,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ne;var fe=Qt(ne,0);this.sel=la(fe),this.history=new Pi(null),this.id=++$u,this.modeOption=z,this.lineSep=te,this.direction=ie=="rtl"?"rtl":"ltr",this.extend=!1,typeof x=="string"&&(x=this.splitLines(x)),to(this,{from:fe,to:fe,text:x}),Va(this,la(fe),Ue)};No.prototype=ue(_o.prototype,{constructor:No,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=hn(this,this.first,this.first+this.size);return x===!1?z:z.join(x||this.lineSeparator())},setValue:bn(function(x){var z=Qt(this.first,0),ne=this.first+this.size-1;co(this,{from:z,to:Qt(ne,Et(this,ne).text.length),text:this.splitLines(x),origin:"setValue",full:!0},!0),this.cm&&oc(this.cm,0,0),Va(this,la(z),Ue)}),replaceRange:function(x,z,ne,te){z=en(this,z),ne=ne?en(this,ne):z,Rl(this,x,z,ne,te)},getRange:function(x,z,ne){var te=Tt(this,en(this,x),en(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(Fn(this,x))return Et(this,x)},getLineNumber:function(x){return wn(x)},getLineHandleVisualStart:function(x){return typeof x=="number"&&(x=Et(this,x)),Mi(x)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(x){return en(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:bn(function(x,z,ne){Lo(this,en(this,typeof x=="number"?Qt(x,z||0):x),null,ne)}),setSelection:bn(function(x,z,ne){Lo(this,en(this,x),en(this,z||x),ne)}),extendSelection:bn(function(x,z,ne){Da(this,en(this,x),z&&en(this,z),ne)}),extendSelections:bn(function(x,z){Or(this,it(this,x),z)}),extendSelectionsBy:bn(function(x,z){var ne=Gt(this.sel.ranges,x);Or(this,it(this,ne),z)}),setSelections:bn(function(x,z,ne){if(x.length){for(var te=[],ie=0;ie<x.length;ie++)te[ie]=new ii(en(this,x[ie].anchor),en(this,x[ie].head));z==null&&(z=Math.min(x.length-1,this.sel.primIndex)),Va(this,ra(this.cm,te,z),ne)}}),addSelection:bn(function(x,z,ne){var te=this.sel.ranges.slice(0);te.push(new ii(en(this,x),en(this,z||x))),Va(this,ra(this.cm,te,te.length-1),ne)}),getSelection:function(x){for(var z=this.sel.ranges,ne,te=0;te<z.length;te++){var ie=Tt(this,z[te].from(),z[te].to());ne=ne?ne.concat(ie):ie}return x===!1?ne:ne.join(x||this.lineSeparator())},getSelections:function(x){for(var z=[],ne=this.sel.ranges,te=0;te<ne.length;te++){var ie=Tt(this,ne[te].from(),ne[te].to());x!==!1&&(ie=ie.join(x||this.lineSeparator())),z[te]=ie}return z},replaceSelection:function(x,z,ne){for(var te=[],ie=0;ie<this.sel.ranges.length;ie++)te[ie]=x;this.replaceSelections(te,z,ne||"+input")},replaceSelections:bn(function(x,z,ne){for(var te=[],ie=this.sel,fe=0;fe<ie.ranges.length;fe++){var we=ie.ranges[fe];te[fe]={from:we.from(),to:we.to(),text:this.splitLines(x[fe]),origin:ne}}for(var Te=z&&z!="end"&&oa(this,te,z),He=te.length-1;He>=0;He--)co(this,te[He]);Te?$i(this,Te):this.cm&&yc(this.cm)}),undo:bn(function(){ms(this,"undo")}),redo:bn(function(){ms(this,"redo")}),undoSelection:bn(function(){ms(this,"undo",!0)}),redoSelection:bn(function(){ms(this,"redo",!0)}),setExtending:function(x){this.extend=x},getExtending:function(){return this.extend},historySize:function(){for(var x=this.history,z=0,ne=0,te=0;te<x.done.length;te++)x.done[te].ranges||++z;for(var ie=0;ie<x.undone.length;ie++)x.undone[ie].ranges||++ne;return{undo:z,redo:ne}},clearHistory:function(){var x=this;this.history=new Pi(this.history.maxGeneration),Po(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:Vo(this.history.done),undone:Vo(this.history.undone)}},setHistory:function(x){var z=this.history=new Pi(this.history.maxGeneration);z.done=Vo(x.done.slice(0),null,!0),z.undone=Vo(x.undone.slice(0),null,!0)},setGutterMarker:bn(function(x,z,ne){return zo(this,x,"gutter",function(te){var ie=te.gutterMarkers||(te.gutterMarkers={});return ie[z]=ne,!ne&&se(ie)&&(te.gutterMarkers=null),!0})}),clearGutter:bn(function(x){var z=this;this.iter(function(ne){ne.gutterMarkers&&ne.gutterMarkers[x]&&zo(z,ne,"gutter",function(){return ne.gutterMarkers[x]=null,se(ne.gutterMarkers)&&(ne.gutterMarkers=null),!0})})}),lineInfo:function(x){var z;if(typeof x=="number"){if(!Fn(this,x)||(z=x,x=Et(this,x),!x))return null}else if(z=wn(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:bn(function(x,z,ne){return zo(this,x,z=="gutter"?"gutter":"class",function(te){var ie=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass";if(!te[ie])te[ie]=ne;else{if(Ce(ne).test(te[ie]))return!1;te[ie]+=" "+ne}return!0})}),removeLineClass:bn(function(x,z,ne){return zo(this,x,z=="gutter"?"gutter":"class",function(te){var ie=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass",fe=te[ie];if(fe)if(ne==null)te[ie]=null;else{var we=fe.match(Ce(ne));if(!we)return!1;var Te=we.index+we[0].length;te[ie]=fe.slice(0,we.index)+(!we.index||Te==fe.length?"":" ")+fe.slice(Te)||null}else return!1;return!0})}),addLineWidget:bn(function(x,z,ne){return Sl(this,x,z,ne)}),removeLineWidget:function(x){x.clear()},markText:function(x,z,ne){return Cl(this,en(this,x),en(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=en(this,x),Cl(this,x,x,ne,"bookmark")},findMarksAt:function(x){x=en(this,x);var z=[],ne=Et(this,x.line).markedSpans;if(ne)for(var te=0;te<ne.length;++te){var ie=ne[te];(ie.from==null||ie.from<=x.ch)&&(ie.to==null||ie.to>=x.ch)&&z.push(ie.marker.parent||ie.marker)}return z},findMarks:function(x,z,ne){x=en(this,x),z=en(this,z);var te=[],ie=x.line;return this.iter(x.line,z.line+1,function(fe){var we=fe.markedSpans;if(we)for(var Te=0;Te<we.length;Te++){var He=we[Te];!(He.to!=null&&ie==x.line&&x.ch>=He.to||He.from==null&&ie!=x.line||He.from!=null&&ie==z.line&&He.from>=z.ch)&&(!ne||ne(He.marker))&&te.push(He.marker.parent||He.marker)}++ie}),te},getAllMarks:function(){var x=[];return this.iter(function(z){var ne=z.markedSpans;if(ne)for(var te=0;te<ne.length;++te)ne[te].from!=null&&x.push(ne[te].marker)}),x},posFromIndex:function(x){var z,ne=this.first,te=this.lineSeparator().length;return this.iter(function(ie){var fe=ie.text.length+te;if(fe>x)return z=x,!0;x-=fe,++ne}),en(this,Qt(ne,z))},indexFromPos:function(x){x=en(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 No(hn(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 No(hn(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}],sc(te,pl(this)),te},unlinkDoc:function(x){if(x instanceof ma&&(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),Us(pl(this));break}}if(x.history==this.history){var te=[x.id];Po(x,function(ie){return te.push(ie.id)},!0),x.history=new Pi(null),x.history.done=Vo(this.history.done,te),x.history.undone=Vo(this.history.undone,te)}},iterLinkedDocs:function(x){Po(this,x)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(x){return this.lineSep?x.split(this.lineSep):Pr(x)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:bn(function(x){x!="rtl"&&(x="ltr"),x!=this.direction&&(this.direction=x,this.iter(function(z){return z.order=null}),this.cm&&Ki(this.cm))})}),No.prototype.eachLine=No.prototype.iter;var ku=0;function ed(x){var z=this;if(xc(z),!(dt(z,x)||so(z.display,x))){Bn(x),xe&&(ku=+new Date);var ne=Qs(z,x,!0),te=x.dataTransfer.files;if(!(!ne||z.isReadOnly()))if(te&&te.length&&window.FileReader&&window.File)for(var ie=te.length,fe=Array(ie),we=0,Te=function(){++we==ie&&En(z,function(){ne=en(z.doc,ne);var On={from:ne,to:ne,text:z.doc.splitLines(fe.filter(function(lr){return lr!=null}).join(z.doc.lineSeparator())),origin:"paste"};co(z.doc,On),$i(z.doc,la(en(z.doc,ne),en(z.doc,Fa(On))))})()},He=function(On,lr){if(z.options.allowDropFileTypes&&Ye(z.options.allowDropFileTypes,On.type)==-1){Te();return}var Dr=new FileReader;Dr.onerror=function(){return Te()},Dr.onload=function(){var ai=Dr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ai)){Te();return}fe[lr]=ai,Te()},Dr.readAsText(On)},ot=0;ot<te.length;ot++)He(te[ot],ot);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 jt=x.dataTransfer.getData("Text");if(jt){var un;if(z.state.draggingText&&!z.state.draggingText.copy&&(un=z.listSelections()),Uo(z.doc,la(ne,ne)),un)for(var Rn=0;Rn<un.length;++Rn)Rl(z.doc,"",un[Rn].anchor,un[Rn].head,"drag");z.replaceSelection(jt,"around","paste"),z.display.input.focus()}}catch(On){}}}}function iu(x,z){if(xe&&(!x.state.draggingText||+new Date-ku<100)){zn(z);return}if(!(dt(x,z)||so(x.display,z))&&(z.dataTransfer.setData("Text",x.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!vt)){var ne=Qe("img",null,null,"position: fixed; left: 0; top: 0;");ne.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",_e&&(ne.width=ne.height=1,x.display.wrapper.appendChild(ne),ne._top=ne.offsetTop),z.dataTransfer.setDragImage(ne,0,0),_e&&ne.parentNode.removeChild(ne)}}function au(x,z){var ne=Qs(x,z);if(ne){var te=document.createDocumentFragment();bu(x,ne,te),x.display.dragCursor||(x.display.dragCursor=Qe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),x.display.lineSpace.insertBefore(x.display.dragCursor,x.display.cursorDiv)),wt(x.display.dragCursor,te)}}function xc(x){x.display.dragCursor&&(x.display.lineSpace.removeChild(x.display.dragCursor),x.display.dragCursor=null)}function lc(x){if(document.getElementsByClassName){for(var z=document.getElementsByClassName("CodeMirror"),ne=[],te=0;te<z.length;te++){var ie=z[te].CodeMirror;ie&&ne.push(ie)}ne.length&&ne[0].operation(function(){for(var fe=0;fe<ne.length;fe++)x(ne[fe])})}}var Vr=!1;function Au(){Vr||(ou(),Vr=!0)}function ou(){var x;_t(window,"resize",function(){x==null&&(x=setTimeout(function(){x=null,lc(su)},100))}),_t(window,"blur",function(){return lc(ic)})}function su(x){var z=x.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,x.setSize()}for(var al={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"},Xl=0;Xl<10;Xl++)al[Xl+48]=al[Xl+96]=String(Xl);for(var wc=65;wc<=90;wc++)al[wc]=String.fromCharCode(wc);for(var cc=1;cc<=12;cc++)al[cc+111]=al[cc+63235]="F"+cc;var oo={};oo.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"},oo.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"},oo.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"},oo.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"]},oo.default=ft?oo.macDefault:oo.pcDefault;function td(x){var z=x.split(/-(?!$)/);x=z[z.length-1];for(var ne,te,ie,fe,we=0;we<z.length-1;we++){var Te=z[we];if(/^(cmd|meta|m)$/i.test(Te))fe=!0;else if(/^a(lt)?$/i.test(Te))ne=!0;else if(/^(c|ctrl|control)$/i.test(Te))te=!0;else if(/^s(hift)?$/i.test(Te))ie=!0;else throw new Error("Unrecognized modifier name: "+Te)}return ne&&(x="Alt-"+x),te&&(x="Ctrl-"+x),fe&&(x="Cmd-"+x),ie&&(x="Shift-"+x),x}function lu(x){var z={};for(var ne in x)if(x.hasOwnProperty(ne)){var te=x[ne];if(/^(name|fallthrough|(de|at)tach)$/.test(ne))continue;if(te=="..."){delete x[ne];continue}for(var ie=Gt(ne.split(" "),td),fe=0;fe<ie.length;fe++){var we=void 0,Te=void 0;fe==ie.length-1?(Te=ie.join(" "),we=te):(Te=ie.slice(0,fe+1).join(" "),we="...");var He=z[Te];if(!He)z[Te]=we;else if(He!=we)throw new Error("Inconsistent bindings for "+Te)}delete x[ne]}for(var ot in z)x[ot]=z[ot];return x}function El(x,z,ne,te){z=Cs(z);var ie=z.call?z.call(x,te):z[x];if(ie===!1)return"nothing";if(ie==="...")return"multi";if(ie!=null&&ne(ie))return"handled";if(z.fallthrough){if(Object.prototype.toString.call(z.fallthrough)!="[object Array]")return El(x,z.fallthrough,ne,te);for(var fe=0;fe<z.fallthrough.length;fe++){var we=El(x,z.fallthrough[fe],ne,te);if(we)return we}}}function Wc(x){var z=typeof x=="string"?x:al[x.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function Fl(x,z,ne){var te=x;return z.altKey&&te!="Alt"&&(x="Alt-"+x),(nt?z.metaKey:z.ctrlKey)&&te!="Ctrl"&&(x="Ctrl-"+x),(nt?z.ctrlKey:z.metaKey)&&te!="Mod"&&(x="Cmd-"+x),!ne&&z.shiftKey&&te!="Shift"&&(x="Shift-"+x),x}function zl(x,z){if(_e&&x.keyCode==34&&x.char)return!1;var ne=al[x.keyCode];return ne==null||x.altGraphKey?!1:(x.keyCode==3&&x.code&&(ne=x.code),Fl(ne,x,z))}function Cs(x){return typeof x=="string"?oo[x]:x}function Gs(x,z){for(var ne=x.doc.sel.ranges,te=[],ie=0;ie<ne.length;ie++){for(var fe=z(ne[ie]);te.length&&Dn(fe.from,nn(te).to)<=0;){var we=te.pop();if(Dn(we.from,fe.from)<0){fe.from=we.from;break}}te.push(fe)}Ht(x,function(){for(var Te=te.length-1;Te>=0;Te--)Rl(x.doc,"",te[Te].from,te[Te].to,"+delete");yc(x)})}function us(x,z,ne){var te=Ie(x.text,z+ne,ne);return te<0||te>x.text.length?null:te}function Ml(x,z,ne){var te=us(x,z.ch,ne);return te==null?null:new Qt(z.line,te,ne<0?"after":"before")}function Oa(x,z,ne,te,ie){if(x){z.doc.direction=="rtl"&&(ie=-ie);var fe=rn(ne,z.doc.direction);if(fe){var we=ie<0?nn(fe):fe[0],Te=ie<0==(we.level==1),He=Te?"after":"before",ot;if(we.level>0||z.doc.direction=="rtl"){var jt=vo(z,ne);ot=ie<0?ne.text.length-1:0;var un=za(z,jt,ot).top;ot=Be(function(Rn){return za(z,jt,Rn).top==un},ie<0==(we.level==1)?we.from:we.to-1,ot),He=="before"&&(ot=us(ne,ot,1))}else ot=ie<0?we.to:we.from;return new Qt(te,ot,He)}}return new Qt(te,ie<0?ne.text.length:0,ie<0?"before":"after")}function Za(x,z,ne,te){var ie=rn(z,x.doc.direction);if(!ie)return Ml(z,ne,te);ne.ch>=z.text.length?(ne.ch=z.text.length,ne.sticky="before"):ne.ch<=0&&(ne.ch=0,ne.sticky="after");var fe=Ve(ie,ne.ch,ne.sticky),we=ie[fe];if(x.doc.direction=="ltr"&&we.level%2==0&&(te>0?we.to>ne.ch:we.from<ne.ch))return Ml(z,ne,te);var Te=function(Ci,Bi){return us(z,Ci instanceof Qt?Ci.ch:Ci,Bi)},He,ot=function(Ci){return x.options.lineWrapping?(He=He||vo(x,z),Vl(x,z,He,Ci)):{begin:0,end:z.text.length}},jt=ot(ne.sticky=="before"?Te(ne,-1):ne.ch);if(x.doc.direction=="rtl"||we.level==1){var un=we.level==1==te<0,Rn=Te(ne,un?1:-1);if(Rn!=null&&(un?Rn<=we.to&&Rn<=jt.end:Rn>=we.from&&Rn>=jt.begin)){var On=un?"before":"after";return new Qt(ne.line,Rn,On)}}var lr=function(Ci,Bi,gi){for(var Ii=function(xo,Ms){return Ms?new Qt(ne.line,Te(xo,1),"before"):new Qt(ne.line,xo,"after")};Ci>=0&&Ci<ie.length;Ci+=Bi){var Ji=ie[Ci],ea=Bi>0==(Ji.level!=1),Na=ea?gi.begin:Te(gi.end,-1);if(Ji.from<=Na&&Na<Ji.to||(Na=ea?Ji.from:Te(Ji.to,-1),gi.begin<=Na&&Na<gi.end))return Ii(Na,ea)}},Dr=lr(fe+te,te,jt);if(Dr)return Dr;var ai=te>0?jt.end:Te(jt.begin,-1);return ai!=null&&!(te>0&&ai==z.text.length)&&(Dr=lr(te>0?0:ie.length-1,te,ot(ai)),Dr)?Dr:null}var Es={selectAll:Ss,singleSelection:function(x){return x.setSelection(x.getCursor("anchor"),x.getCursor("head"),Ue)},killLine:function(x){return Gs(x,function(z){if(z.empty()){var ne=Et(x.doc,z.head.line).text.length;return z.head.ch==ne&&z.head.line<x.lastLine()?{from:z.head,to:Qt(z.head.line+1,0)}:{from:z.head,to:Qt(z.head.line,ne)}}else return{from:z.from(),to:z.to()}})},deleteLine:function(x){return Gs(x,function(z){return{from:Qt(z.from().line,0),to:en(x.doc,Qt(z.to().line+1,0))}})},delLineLeft:function(x){return Gs(x,function(z){return{from:Qt(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(x){return Gs(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 Gs(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(Qt(x.firstLine(),0))},goDocEnd:function(x){return x.extendSelection(Qt(x.lastLine()))},goLineStart:function(x){return x.extendSelectionsBy(function(z){return kl(x,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(x){return x.extendSelectionsBy(function(z){return Bu(x,z.head)},{origin:"+move",bias:1})},goLineEnd:function(x){return x.extendSelectionsBy(function(z){return Al(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")},Ot)},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")},Ot)},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/)?Bu(x,z.head):te},Ot)},goLineUp:function(x){return x.moveV(-1,"line")},goLineDown:function(x){return x.moveV(1,"line")},goPageUp:function(x){return x.moveV(-1,"page")},goPageDown:function(x){return x.moveV(1,"page")},goCharLeft:function(x){return x.moveH(-1,"char")},goCharRight:function(x){return x.moveH(1,"char")},goColumnLeft:function(x){return x.moveH(-1,"column")},goColumnRight:function(x){return x.moveH(1,"column")},goWordLeft:function(x){return x.moveH(-1,"word")},goGroupRight:function(x){return x.moveH(1,"group")},goGroupLeft:function(x){return x.moveH(-1,"group")},goWordRight:function(x){return x.moveH(1,"word")},delCharBefore:function(x){return x.deleteH(-1,"codepoint")},delCharAfter:function(x){return x.deleteH(1,"char")},delWordBefore:function(x){return x.deleteH(-1,"word")},delWordAfter:function(x){return x.deleteH(1,"word")},delGroupBefore:function(x){return x.deleteH(-1,"group")},delGroupAfter:function(x){return x.deleteH(1,"group")},indentAuto:function(x){return x.indentSelection("smart")},indentMore:function(x){return x.indentSelection("add")},indentLess:function(x){return x.indentSelection("subtract")},insertTab:function(x){return x.replaceSelection(" ")},insertSoftTab:function(x){for(var z=[],ne=x.listSelections(),te=x.options.tabSize,ie=0;ie<ne.length;ie++){var fe=ne[ie].from(),we=Ge(x.getLine(fe.line),fe.ch,te);z.push(gn(te-we%te))}x.replaceSelections(z)},defaultTab:function(x){x.somethingSelected()?x.indentSelection("add"):x.execCommand("insertTab")},transposeChars:function(x){return Ht(x,function(){for(var z=x.listSelections(),ne=[],te=0;te<z.length;te++)if(z[te].empty()){var ie=z[te].head,fe=Et(x.doc,ie.line).text;if(fe){if(ie.ch==fe.length&&(ie=new Qt(ie.line,ie.ch-1)),ie.ch>0)ie=new Qt(ie.line,ie.ch+1),x.replaceRange(fe.charAt(ie.ch-1)+fe.charAt(ie.ch-2),Qt(ie.line,ie.ch-2),ie,"+transpose");else if(ie.line>x.doc.first){var we=Et(x.doc,ie.line-1).text;we&&(ie=new Qt(ie.line,1),x.replaceRange(fe.charAt(0)+x.doc.lineSeparator()+we.charAt(we.length-1),Qt(ie.line-1,we.length-1),ie,"+transpose"))}}ne.push(new ii(ie,ie))}x.setSelections(ne)})},newlineAndIndent:function(x){return Ht(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);yc(x)})},openLine:function(x){return x.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(x){return x.toggleOverwrite()}};function kl(x,z){var ne=Et(x.doc,z),te=Mi(ne);return te!=ne&&(z=wn(te)),Oa(!0,x,te,z,1)}function Al(x,z){var ne=Et(x.doc,z),te=da(ne);return te!=ne&&(z=wn(te)),Oa(!0,x,ne,z,-1)}function Bu(x,z){var ne=kl(x,z.line),te=Et(x.doc,ne.line),ie=rn(te,x.doc.direction);if(!ie||ie[0].level==0){var fe=Math.max(ne.ch,te.text.search(/\S/)),we=z.line==ne.line&&z.ch<=fe&&z.ch;return Qt(ne.line,we?0:fe,ne.sticky)}return ne}function Ro(x,z,ne){if(typeof z=="string"&&(z=Es[z],!z))return!1;x.display.input.ensurePolled();var te=x.display.shift,ie=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),ne&&(x.display.shift=!1),ie=z(x)!=xt}finally{x.display.shift=te,x.state.suppressEdits=!1}return ie}function ol(x,z,ne){for(var te=0;te<x.state.keyMaps.length;te++){var ie=El(z,x.state.keyMaps[te],ne,x);if(ie)return ie}return x.options.extraKeys&&El(z,x.options.extraKeys,ne,x)||El(z,x.options.keyMap,ne,x)}var Du=new be;function Ql(x,z,ne,te){var ie=x.state.keySeq;if(ie){if(Wc(z))return"handled";if(/\'$/.test(z)?x.state.keySeq=null:Du.set(50,function(){x.state.keySeq==ie&&(x.state.keySeq=null,x.display.input.reset())}),nd(x,ie+" "+z,ne,te))return!0}return nd(x,z,ne,te)}function nd(x,z,ne,te){var ie=ol(x,z,te);return ie=="multi"&&(x.state.keySeq=z),ie=="handled"&&or(x,"keyHandled",x,z,ne),(ie=="handled"||ie=="multi")&&(Bn(ne),qc(x)),!!ie}function Wa(x,z){var ne=zl(z,!0);return ne?z.shiftKey&&!x.state.keySeq?Ql(x,"Shift-"+ne,z,function(te){return Ro(x,te,!0)})||Ql(x,ne,z,function(te){if(typeof te=="string"?/^go[A-Z]/.test(te):te.motion)return Ro(x,te)}):Ql(x,ne,z,function(te){return Ro(x,te)}):!1}function cu(x,z,ne){return Ql(x,"'"+ne+"'",z,function(te){return Ro(x,te,!0)})}var uc=null;function Lu(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&(z.curOp.focus=tt(),!dt(z,x))){xe&&Ee<11&&x.keyCode==27&&(x.returnValue=!1);var ne=x.keyCode;z.display.shift=ne==16||x.shiftKey;var te=Wa(z,x);_e&&(uc=te?ne:null,!te&&ne==88&&!Wr&&(ft?x.metaKey:x.ctrlKey)&&z.replaceSelection("",null,"cut")),ae&&!ft&&!te&&ne==46&&x.shiftKey&&!x.ctrlKey&&document.execCommand&&document.execCommand("cut"),ne==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&sr(z)}}function sr(x){var z=x.display.lineDiv;Ut(z,"CodeMirror-crosshair");function ne(te){(te.keyCode==18||!te.altKey)&&(Je(z,"CodeMirror-crosshair"),ut(document,"keyup",ne),ut(document,"mouseover",ne))}_t(document,"keyup",ne),_t(document,"mouseover",ne)}function hf(x){x.keyCode==16&&(this.doc.sel.shift=!1),dt(this,x)}function pf(x){var z=this;if(!(x.target&&x.target!=z.display.input.getField())&&!(so(z.display,x)||dt(z,x)||x.ctrlKey&&!x.altKey||ft&&x.metaKey)){var ne=x.keyCode,te=x.charCode;if(_e&&ne==uc){uc=null,Bn(x);return}if(!(_e&&(!x.which||x.which<10)&&Wa(z,x))){var ie=String.fromCharCode(te==null?ne:te);ie!="\b"&&(cu(z,x,ie)||z.display.input.onKeyPress(x))}}}var Ld=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+Ld>x&&Dn(z,this.pos)==0&&ne==this.button};var dc,Iu;function ih(x,z){var ne=+new Date;return Iu&&Iu.compare(ne,x,z)?(dc=Iu=null,"triple"):dc&&dc.compare(ne,x,z)?(Iu=new Id(ne,x,z),dc=null,"double"):(dc=new Id(ne,x,z),Iu=null,"single")}function Bs(x){var z=this,ne=z.display;if(!(dt(z,x)||ne.activeTouch&&ne.input.supportsTouch())){if(ne.input.ensurePolled(),ne.shift=x.shiftKey,so(ne,x)){pe||(ne.scroller.draggable=!1,setTimeout(function(){return ne.scroller.draggable=!0},100));return}if(!_s(z,x)){var te=Qs(z,x),ie=Pn(x),fe=te?ih(te,ie):"single";window.focus(),ie==1&&z.state.selectingText&&z.state.selectingText(x),!(te&&Sc(z,ie,te,fe,x))&&(ie==1?te?id(z,te,fe,x):Vn(x)==ne.scroller&&Bn(x):ie==2?(te&&Da(z.doc,te),setTimeout(function(){return ne.input.focus()},20)):ie==3&&(Re?z.display.input.onContextMenu(x):xu(z)))}}}function Sc(x,z,ne,te,ie){var fe="Click";return te=="double"?fe="Double"+fe:te=="triple"&&(fe="Triple"+fe),fe=(z==1?"Left":z==2?"Middle":"Right")+fe,Ql(x,Fl(fe,ie),ie,function(we){if(typeof we=="string"&&(we=Es[we]),!we)return!1;var Te=!1;try{x.isReadOnly()&&(x.state.suppressEdits=!0),Te=we(x,ne)!=xt}finally{x.state.suppressEdits=!1}return Te})}function rd(x,z,ne){var te=x.getOption("configureMouse"),ie=te?te(x,z,ne):{};if(ie.unit==null){var fe=mt?ne.shiftKey&&ne.metaKey:ne.altKey;ie.unit=fe?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(ie.extend==null||x.doc.extend)&&(ie.extend=x.doc.extend||ne.shiftKey),ie.addNew==null&&(ie.addNew=ft?ne.metaKey:ne.ctrlKey),ie.moveOnDrag==null&&(ie.moveOnDrag=!(ft?ne.altKey:ne.ctrlKey)),ie}function id(x,z,ne,te){xe?setTimeout(Wt(Kc,x),0):x.curOp.focus=tt();var ie=rd(x,ne,te),fe=x.doc.sel,we;x.options.dragDrop&&Qn&&!x.isReadOnly()&&ne=="single"&&(we=fe.contains(z))>-1&&(Dn((we=fe.ranges[we]).from(),z)<0||z.xRel>0)&&(Dn(we.to(),z)>0||z.xRel<0)?ah(x,te,z,ie):Pd(x,te,z,ie)}function ah(x,z,ne,te){var ie=x.display,fe=!1,we=En(x,function(ot){pe&&(ie.scroller.draggable=!1),x.state.draggingText=!1,ut(ie.wrapper.ownerDocument,"mouseup",we),ut(ie.wrapper.ownerDocument,"mousemove",Te),ut(ie.scroller,"dragstart",He),ut(ie.scroller,"drop",we),fe||(Bn(ot),te.addNew||Da(x.doc,ne,null,null,te.extend),pe&&!vt||xe&&Ee==9?setTimeout(function(){ie.wrapper.ownerDocument.body.focus({preventScroll:!0}),ie.input.focus()},20):ie.input.focus())}),Te=function(ot){fe=fe||Math.abs(z.clientX-ot.clientX)+Math.abs(z.clientY-ot.clientY)>=10},He=function(){return fe=!0};pe&&(ie.scroller.draggable=!0),x.state.draggingText=we,we.copy=!te.moveOnDrag,ie.scroller.dragDrop&&ie.scroller.dragDrop(),_t(ie.wrapper.ownerDocument,"mouseup",we),_t(ie.wrapper.ownerDocument,"mousemove",Te),_t(ie.scroller,"dragstart",He),_t(ie.scroller,"drop",we),xu(x),setTimeout(function(){return ie.input.focus()},20)}function mf(x,z,ne){if(ne=="char")return new ii(z,z);if(ne=="word")return x.findWordAt(z);if(ne=="line")return new ii(Qt(z.line,0),en(x.doc,Qt(z.line+1,0)));var te=ne(x,z);return new ii(te.from,te.to)}function Pd(x,z,ne,te){var ie=x.display,fe=x.doc;Bn(z);var we,Te,He=fe.sel,ot=He.ranges;if(te.addNew&&!te.extend?(Te=fe.sel.contains(ne),Te>-1?we=ot[Te]:we=new ii(ne,ne)):(we=fe.sel.primary(),Te=fe.sel.primIndex),te.unit=="rectangle")te.addNew||(we=new ii(ne,ne)),ne=Qs(x,z,!0,!0),Te=-1;else{var jt=mf(x,ne,te.unit);te.extend?we=xl(we,jt.anchor,jt.head,te.extend):we=jt}te.addNew?Te==-1?(Te=ot.length,Va(fe,ra(x,ot.concat([we]),Te),{scroll:!1,origin:"*mouse"})):ot.length>1&&ot[Te].empty()&&te.unit=="char"&&!te.extend?(Va(fe,ra(x,ot.slice(0,Te).concat(ot.slice(Te+1)),0),{scroll:!1,origin:"*mouse"}),He=fe.sel):_a(fe,Te,we,at):(Te=0,Va(fe,new Zi([we],0),at),He=fe.sel);var un=ne;function Rn(gi){if(Dn(un,gi)!=0)if(un=gi,te.unit=="rectangle"){for(var Ii=[],Ji=x.options.tabSize,ea=Ge(Et(fe,ne.line).text,ne.ch,Ji),Na=Ge(Et(fe,gi.line).text,gi.ch,Ji),xo=Math.min(ea,Na),Ms=Math.max(ea,Na),Ko=Math.min(ne.line,gi.line),qs=Math.min(x.lastLine(),Math.max(ne.line,gi.line));Ko<=qs;Ko++){var $s=Et(fe,Ko).text,ds=kn($s,xo,Ji);xo==Ms?Ii.push(new ii(Qt(Ko,ds),Qt(Ko,ds))):$s.length>ds&&Ii.push(new ii(Qt(Ko,ds),Qt(Ko,kn($s,Ms,Ji))))}Ii.length||Ii.push(new ii(ne,ne)),Va(fe,ra(x,He.ranges.slice(0,Te).concat(Ii),Te),{origin:"*mouse",scroll:!1}),x.scrollIntoView(gi)}else{var el=we,ya=mf(x,gi,te.unit),Go=el.anchor,Ho;Dn(ya.anchor,Go)>0?(Ho=ya.head,Go=cn(el.from(),ya.anchor)):(Ho=ya.anchor,Go=on(el.to(),ya.head));var Yo=He.ranges.slice(0);Yo[Te]=gf(x,new ii(en(fe,Go),Ho)),Va(fe,ra(x,Yo,Te),at)}}var On=ie.wrapper.getBoundingClientRect(),lr=0;function Dr(gi){var Ii=++lr,Ji=Qs(x,gi,!0,te.unit=="rectangle");if(Ji)if(Dn(Ji,un)!=0){x.curOp.focus=tt(),Rn(Ji);var ea=ls(ie,fe);(Ji.line>=ea.to||Ji.line<ea.from)&&setTimeout(En(x,function(){lr==Ii&&Dr(gi)}),150)}else{var Na=gi.clientY<On.top?-20:gi.clientY>On.bottom?20:0;Na&&setTimeout(En(x,function(){lr==Ii&&(ie.scroller.scrollTop+=Na,Dr(gi))}),50)}}function ai(gi){x.state.selectingText=!1,lr=1/0,gi&&(Bn(gi),ie.input.focus()),ut(ie.wrapper.ownerDocument,"mousemove",Ci),ut(ie.wrapper.ownerDocument,"mouseup",Bi),fe.history.lastSelOrigin=null}var Ci=En(x,function(gi){gi.buttons===0||!Pn(gi)?ai(gi):Dr(gi)}),Bi=En(x,ai);x.state.selectingText=Bi,_t(ie.wrapper.ownerDocument,"mousemove",Ci),_t(ie.wrapper.ownerDocument,"mouseup",Bi)}function gf(x,z){var ne=z.anchor,te=z.head,ie=Et(x.doc,ne.line);if(Dn(ne,te)==0&&ne.sticky==te.sticky)return z;var fe=rn(ie);if(!fe)return z;var we=Ve(fe,ne.ch,ne.sticky),Te=fe[we];if(Te.from!=ne.ch&&Te.to!=ne.ch)return z;var He=we+(Te.from==ne.ch==(Te.level!=1)?0:1);if(He==0||He==fe.length)return z;var ot;if(te.line!=ne.line)ot=(te.line-ne.line)*(x.doc.direction=="ltr"?1:-1)>0;else{var jt=Ve(fe,te.ch,te.sticky),un=jt-we||(te.ch-ne.ch)*(Te.level==1?-1:1);jt==He-1||jt==He?ot=un<0:ot=un>0}var Rn=fe[He+(ot?-1:0)],On=ot==(Rn.level==1),lr=On?Rn.from:Rn.to,Dr=On?"after":"before";return ne.ch==lr&&ne.sticky==Dr?z:new ii(new Qt(ne.line,lr,Dr),te)}function Pu(x,z,ne,te){var ie,fe;if(z.touches)ie=z.touches[0].clientX,fe=z.touches[0].clientY;else try{ie=z.clientX,fe=z.clientY}catch(Rn){return!1}if(ie>=Math.floor(x.display.gutters.getBoundingClientRect().right))return!1;te&&Bn(z);var we=x.display,Te=we.lineDiv.getBoundingClientRect();if(fe>Te.bottom||!zt(x,ne))return pn(z);fe-=Te.top-we.viewOffset;for(var He=0;He<x.display.gutterSpecs.length;++He){var ot=we.gutters.childNodes[He];if(ot&&ot.getBoundingClientRect().right>=ie){var jt=Tn(x.doc,fe),un=x.display.gutterSpecs[He];return De(x,ne,x,jt,un.className,z),pn(z)}}}function _s(x,z){return Pu(x,z,"gutterClick",!0)}function Cc(x,z){so(x.display,z)||vf(x,z)||dt(x,z,"contextmenu")||Re||x.display.input.onContextMenu(z)}function vf(x,z){return zt(x,"gutterContextMenu")?Pu(x,z,"gutterContextMenu",!1):!1}function Td(x){x.display.wrapper.className=x.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+x.options.theme.replace(/(^|\s)\s*/g," cm-s-"),io(x)}var Ec={toString:function(){return"CodeMirror.Init"}},yf={},ad={};function oh(x){var z=x.optionHandlers;function ne(te,ie,fe,we){x.defaults[te]=ie,fe&&(z[te]=we?function(Te,He,ot){ot!=Ec&&fe(Te,He,ot)}:fe)}x.defineOption=ne,x.Init=Ec,ne("value","",function(te,ie){return te.setValue(ie)},!0),ne("mode",null,function(te,ie){te.doc.modeOption=ie,Co(te)},!0),ne("indentUnit",2,Co,!0),ne("indentWithTabs",!1),ne("smartIndent",!0),ne("tabSize",4,function(te){Ma(te),io(te),jo(te)},!0),ne("lineSeparator",null,function(te,ie){if(te.doc.lineSep=ie,!!ie){var fe=[],we=te.doc.first;te.doc.iter(function(He){for(var ot=0;;){var jt=He.text.indexOf(ie,ot);if(jt==-1)break;ot=jt+ie.length,fe.push(Qt(we,jt))}we++});for(var Te=fe.length-1;Te>=0;Te--)Rl(te.doc,ie,fe[Te],Qt(fe[Te].line,fe[Te].ch+ie.length))}}),ne("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(te,ie,fe){te.state.specialChars=new RegExp(ie.source+(ie.test(" ")?"":"| "),"g"),fe!=Ec&&te.refresh()}),ne("specialCharPlaceholder",Ya,function(te){return te.refresh()},!0),ne("electricChars",!0),ne("inputStyle",je?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ne("spellcheck",!1,function(te,ie){return te.getInputField().spellcheck=ie},!0),ne("autocorrect",!1,function(te,ie){return te.getInputField().autocorrect=ie},!0),ne("autocapitalize",!1,function(te,ie){return te.getInputField().autocapitalize=ie},!0),ne("rtlMoveVisually",!Bt),ne("wholeLineUpdateBefore",!0),ne("theme","default",function(te){Td(te),yi(te)},!0),ne("keyMap","default",function(te,ie,fe){var we=Cs(ie),Te=fe!=Ec&&Cs(fe);Te&&Te.detach&&Te.detach(te,we),we.attach&&we.attach(te,Te||null)}),ne("extraKeys",null),ne("configureMouse",null),ne("lineWrapping",!1,bf,!0),ne("gutters",[],function(te,ie){te.display.gutterSpecs=Qi(ie,te.options.lineNumbers),yi(te)},!0),ne("fixedGutter",!0,function(te,ie){te.display.gutters.style.left=ie?$a(te.display)+"px":"0",te.refresh()},!0),ne("coverGutterNextToScrollbar",!1,function(te){return Gl(te)},!0),ne("scrollbarStyle","native",function(te){Eu(te),Gl(te),te.display.scrollbars.setScrollTop(te.doc.scrollTop),te.display.scrollbars.setScrollLeft(te.doc.scrollLeft)},!0),ne("lineNumbers",!1,function(te,ie){te.display.gutterSpecs=Qi(te.options.gutters,ie),yi(te)},!0),ne("firstLineNumber",1,yi,!0),ne("lineNumberFormatter",function(te){return te},yi,!0),ne("showCursorWhenSelecting",!1,vc,!0),ne("resetSelectionOnContextMenu",!0),ne("lineWiseCopyCut",!0),ne("pasteLinesPerSelection",!0),ne("selectionsMayTouch",!1),ne("readOnly",!1,function(te,ie){ie=="nocursor"&&(ic(te),te.display.input.blur()),te.display.input.readOnlyChanged(ie)}),ne("screenReaderLabel",null,function(te,ie){ie=ie===""?null:ie,te.display.input.screenReaderLabelChanged(ie)}),ne("disableInput",!1,function(te,ie){ie||te.display.input.reset()},!0),ne("dragDrop",!0,sh),ne("allowDropFileTypes",null),ne("cursorBlinkRate",530),ne("cursorScrollMargin",0),ne("cursorHeight",1,vc,!0),ne("singleCursorHeightPerLine",!0,vc,!0),ne("workTime",100),ne("workDelay",100),ne("flattenSpans",!0,Ma,!0),ne("addModeClass",!1,Ma,!0),ne("pollInterval",100),ne("undoDepth",200,function(te,ie){return te.doc.history.undoDepth=ie}),ne("historyEventDelay",1250),ne("viewportMargin",10,function(te){return te.refresh()},!0),ne("maxHighlightLength",1e4,Ma,!0),ne("moveInputWithCursor",!0,function(te,ie){ie||te.display.input.resetPosition()}),ne("tabindex",null,function(te,ie){return te.display.input.getField().tabIndex=ie||""}),ne("autofocus",null),ne("direction","ltr",function(te,ie){return te.doc.setDirection(ie)},!0),ne("phrases",null)}function sh(x,z,ne){var te=ne&&ne!=Ec;if(!z!=!te){var ie=x.display.dragFunctions,fe=z?_t:ut;fe(x.display.scroller,"dragstart",ie.start),fe(x.display.scroller,"dragenter",ie.enter),fe(x.display.scroller,"dragover",ie.over),fe(x.display.scroller,"dragleave",ie.leave),fe(x.display.scroller,"drop",ie.drop)}}function bf(x){x.options.lineWrapping?(Ut(x.display.wrapper,"CodeMirror-wrap"),x.display.sizer.style.minWidth="",x.display.sizerWidth=null):(Je(x.display.wrapper,"CodeMirror-wrap"),Er(x)),$o(x),jo(x),io(x),setTimeout(function(){return Gl(x)},100)}function ma(x,z){var ne=this;if(!(this instanceof ma))return new ma(x,z);this.options=z=z?It(z):{},It(yf,z,!1);var te=z.value;typeof te=="string"?te=new No(te,z.mode,null,z.lineSeparator,z.direction):z.mode&&(te.modeOption=z.mode),this.doc=te;var ie=new ma.inputStyles[z.inputStyle](this),fe=this.display=new Di(x,te,ie,z);fe.wrapper.CodeMirror=this,Td(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Eu(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new be,keySeq:null,specialChars:null},z.autofocus&&!je&&fe.input.focus(),xe&&Ee<11&&setTimeout(function(){return ne.display.input.reset(!0)},20),lh(this),Au(),ks(this),this.curOp.forceUpdate=!0,ji(this,te),z.autofocus&&!je||this.hasFocus()?setTimeout(function(){ne.hasFocus()&&!ne.state.focused&&wu(ne)},20):ic(this);for(var we in ad)ad.hasOwnProperty(we)&&ad[we](this,z[we],Ec);Ai(this),z.finishInit&&z.finishInit(this);for(var Te=0;Te<Od.length;++Te)Od[Te](this);Nl(this),pe&&z.lineWrapping&&getComputedStyle(fe.lineDiv).textRendering=="optimizelegibility"&&(fe.lineDiv.style.textRendering="auto")}ma.defaults=yf,ma.optionHandlers=ad;function lh(x){var z=x.display;_t(z.scroller,"mousedown",En(x,Bs)),xe&&Ee<11?_t(z.scroller,"dblclick",En(x,function(He){if(!dt(x,He)){var ot=Qs(x,He);if(!(!ot||_s(x,He)||so(x.display,He))){Bn(He);var jt=x.findWordAt(ot);Da(x.doc,jt.anchor,jt.head)}}})):_t(z.scroller,"dblclick",function(He){return dt(x,He)||Bn(He)}),_t(z.scroller,"contextmenu",function(He){return Cc(x,He)}),_t(z.input.getField(),"contextmenu",function(He){z.scroller.contains(He.target)||Cc(x,He)});var ne,te={end:0};function ie(){z.activeTouch&&(ne=setTimeout(function(){return z.activeTouch=null},1e3),te=z.activeTouch,te.end=+new Date)}function fe(He){if(He.touches.length!=1)return!1;var ot=He.touches[0];return ot.radiusX<=1&&ot.radiusY<=1}function we(He,ot){if(ot.left==null)return!0;var jt=ot.left-He.left,un=ot.top-He.top;return jt*jt+un*un>20*20}_t(z.scroller,"touchstart",function(He){if(!dt(x,He)&&!fe(He)&&!_s(x,He)){z.input.ensurePolled(),clearTimeout(ne);var ot=+new Date;z.activeTouch={start:ot,moved:!1,prev:ot-te.end<=300?te:null},He.touches.length==1&&(z.activeTouch.left=He.touches[0].pageX,z.activeTouch.top=He.touches[0].pageY)}}),_t(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),_t(z.scroller,"touchend",function(He){var ot=z.activeTouch;if(ot&&!so(z,He)&&ot.left!=null&&!ot.moved&&new Date-ot.start<300){var jt=x.coordsChar(z.activeTouch,"page"),un;!ot.prev||we(ot,ot.prev)?un=new ii(jt,jt):!ot.prev.prev||we(ot,ot.prev.prev)?un=x.findWordAt(jt):un=new ii(Qt(jt.line,0),en(x.doc,Qt(jt.line+1,0))),x.setSelection(un.anchor,un.head),x.focus(),Bn(He)}ie()}),_t(z.scroller,"touchcancel",ie),_t(z.scroller,"scroll",function(){z.scroller.clientHeight&&(Ul(x,z.scroller.scrollTop),Tl(x,z.scroller.scrollLeft,!0),De(x,"scroll",x))}),_t(z.scroller,"mousewheel",function(He){return ga(x,He)}),_t(z.scroller,"DOMMouseScroll",function(He){return ga(x,He)}),_t(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(He){dt(x,He)||zn(He)},over:function(He){dt(x,He)||(au(x,He),zn(He))},start:function(He){return iu(x,He)},drop:En(x,ed),leave:function(He){dt(x,He)||xc(x)}};var Te=z.input.getField();_t(Te,"keyup",function(He){return hf.call(x,He)}),_t(Te,"keydown",En(x,Lu)),_t(Te,"keypress",En(x,pf)),_t(Te,"focus",function(He){return wu(x,He)}),_t(Te,"blur",function(He){return ic(x,He)})}var Od=[];ma.defineInitHook=function(x){return Od.push(x)};function _l(x,z,ne,te){var ie=x.doc,fe;ne==null&&(ne="add"),ne=="smart"&&(ie.mode.indent?fe=xn(x,z).state:ne="prev");var we=x.options.tabSize,Te=Et(ie,z),He=Ge(Te.text,null,we);Te.stateAfter&&(Te.stateAfter=null);var ot=Te.text.match(/^\s*/)[0],jt;if(!te&&!/\S/.test(Te.text))jt=0,ne="not";else if(ne=="smart"&&(jt=ie.mode.indent(fe,Te.text.slice(ot.length),Te.text),jt==xt||jt>150)){if(!te)return;ne="prev"}ne=="prev"?z>ie.first?jt=Ge(Et(ie,z-1).text,null,we):jt=0:ne=="add"?jt=He+x.options.indentUnit:ne=="subtract"?jt=He-x.options.indentUnit:typeof ne=="number"&&(jt=He+ne),jt=Math.max(0,jt);var un="",Rn=0;if(x.options.indentWithTabs)for(var On=Math.floor(jt/we);On;--On)Rn+=we,un+=" ";if(Rn<jt&&(un+=gn(jt-Rn)),un!=ot)return Rl(ie,un,Qt(z,0),Qt(z,ot.length),"+input"),Te.stateAfter=null,!0;for(var lr=0;lr<ie.sel.ranges.length;lr++){var Dr=ie.sel.ranges[lr];if(Dr.head.line==z&&Dr.head.ch<ot.length){var ai=Qt(z,ot.length);_a(ie,lr,new ii(ai,ai));break}}}var Kl=null;function Mc(x){Kl=x}function Nd(x,z,ne,te,ie){var fe=x.doc;x.display.shift=!1,te||(te=fe.sel);var we=+new Date-200,Te=ie=="paste"||x.state.pasteIncoming>we,He=Pr(z),ot=null;if(Te&&te.ranges.length>1)if(Kl&&Kl.text.join(`
|
|
|
`)==z){if(te.ranges.length%Kl.text.length==0){ot=[];for(var jt=0;jt<Kl.text.length;jt++)ot.push(fe.splitLines(Kl.text[jt]))}}else He.length==te.ranges.length&&x.options.pasteLinesPerSelection&&(ot=Gt(He,function(Ci){return[Ci]}));for(var un=x.curOp.updateInput,Rn=te.ranges.length-1;Rn>=0;Rn--){var On=te.ranges[Rn],lr=On.from(),Dr=On.to();On.empty()&&(ne&&ne>0?lr=Qt(lr.line,lr.ch-ne):x.state.overwrite&&!Te?Dr=Qt(Dr.line,Math.min(Et(fe,Dr.line).text.length,Dr.ch+nn(He).length)):Te&&Kl&&Kl.lineWise&&Kl.text.join(`
|
|
|
`)==He.join(`
|
|
|
`)&&(lr=Dr=Qt(lr.line,0)));var ai={from:lr,to:Dr,text:ot?ot[Rn%ot.length]:He,origin:ie||(Te?"paste":x.state.cutIncoming>we?"cut":"+input")};co(x.doc,ai),or(x,"inputRead",x,ai)}z&&!Te&&Fd(x,z),yc(x),x.curOp.updateInput<2&&(x.curOp.updateInput=un),x.curOp.typing=!0,x.state.pasteIncoming=x.state.cutIncoming=-1}function Rd(x,z){var ne=x.clipboardData&&x.clipboardData.getData("Text");if(ne)return x.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&Ht(z,function(){return Nd(z,ne,0,null,"paste")}),!0}function Fd(x,z){if(!(!x.options.electricChars||!x.options.smartIndent))for(var ne=x.doc.sel,te=ne.ranges.length-1;te>=0;te--){var ie=ne.ranges[te];if(!(ie.head.ch>100||te&&ne.ranges[te-1].head.line==ie.head.line)){var fe=x.getModeAt(ie.head),we=!1;if(fe.electricChars){for(var Te=0;Te<fe.electricChars.length;Te++)if(z.indexOf(fe.electricChars.charAt(Te))>-1){we=_l(x,ie.head.line,"smart");break}}else fe.electricInput&&fe.electricInput.test(Et(x.doc,ie.head.line).text.slice(0,ie.head.ch))&&(we=_l(x,ie.head.line,"smart"));we&&or(x,"electricInput",x,ie.head.line)}}}function uu(x){for(var z=[],ne=[],te=0;te<x.doc.sel.ranges.length;te++){var ie=x.doc.sel.ranges[te].head.line,fe={anchor:Qt(ie,0),head:Qt(ie+1,0)};ne.push(fe),z.push(x.getRange(fe.anchor,fe.head))}return{text:z,ranges:ne}}function xf(x,z,ne,te){x.setAttribute("autocorrect",ne?"":"off"),x.setAttribute("autocapitalize",te?"":"off"),x.setAttribute("spellcheck",!!z)}function zd(){var x=Qe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=Qe("div",[x],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return pe?x.style.width="1000px":x.setAttribute("wrap","off"),pt&&(x.style.border="1px solid black"),xf(x),z}function _d(x){var z=x.optionHandlers,ne=x.helpers={};x.prototype={constructor:x,focus:function(){window.focus(),this.display.input.focus()},setOption:function(te,ie){var fe=this.options,we=fe[te];fe[te]==ie&&te!="mode"||(fe[te]=ie,z.hasOwnProperty(te)&&En(this,z[te])(this,ie,we),De(this,"optionChange",this,te))},getOption:function(te){return this.options[te]},getDoc:function(){return this.doc},addKeyMap:function(te,ie){this.state.keyMaps[ie?"push":"unshift"](Cs(te))},removeKeyMap:function(te){for(var ie=this.state.keyMaps,fe=0;fe<ie.length;++fe)if(ie[fe]==te||ie[fe].name==te)return ie.splice(fe,1),!0},addOverlay:Sn(function(te,ie){var fe=te.token?te:x.getMode(this.options,te);if(fe.startState)throw new Error("Overlays may not be stateful.");Xt(this.state.overlays,{mode:fe,modeSpec:te,opaque:ie&&ie.opaque,priority:ie&&ie.priority||0},function(we){return we.priority}),this.state.modeGen++,jo(this)}),removeOverlay:Sn(function(te){for(var ie=this.state.overlays,fe=0;fe<ie.length;++fe){var we=ie[fe].modeSpec;if(we==te||typeof te=="string"&&we.name==te){ie.splice(fe,1),this.state.modeGen++,jo(this);return}}}),indentLine:Sn(function(te,ie,fe){typeof ie!="string"&&typeof ie!="number"&&(ie==null?ie=this.options.smartIndent?"smart":"prev":ie=ie?"add":"subtract"),Fn(this.doc,te)&&_l(this,te,ie,fe)}),indentSelection:Sn(function(te){for(var ie=this.doc.sel.ranges,fe=-1,we=0;we<ie.length;we++){var Te=ie[we];if(Te.empty())Te.head.line>fe&&(_l(this,Te.head.line,te,!0),fe=Te.head.line,we==this.doc.sel.primIndex&&yc(this));else{var He=Te.from(),ot=Te.to(),jt=Math.max(fe,He.line);fe=Math.min(this.lastLine(),ot.line-(ot.ch?0:1))+1;for(var un=jt;un<fe;++un)_l(this,un,te);var Rn=this.doc.sel.ranges;He.ch==0&&ie.length==Rn.length&&Rn[we].from().ch>0&&_a(this.doc,we,new ii(He,Rn[we].to()),Ue)}}}),getTokenAt:function(te,ie){return mr(this,te,ie)},getLineTokens:function(te,ie){return mr(this,Qt(te),ie,!0)},getTokenTypeAt:function(te){te=en(this.doc,te);var ie=dn(this,Et(this.doc,te.line)),fe=0,we=(ie.length-1)/2,Te=te.ch,He;if(Te==0)He=ie[2];else for(;;){var ot=fe+we>>1;if((ot?ie[ot*2-1]:0)>=Te)we=ot;else if(ie[ot*2+1]<Te)fe=ot+1;else{He=ie[ot*2+2];break}}var jt=He?He.indexOf("overlay "):-1;return jt<0?He:jt==0?null:He.slice(0,jt-1)},getModeAt:function(te){var ie=this.doc.mode;return ie.innerMode?x.innerMode(ie,this.getTokenAt(te).state).mode:ie},getHelper:function(te,ie){return this.getHelpers(te,ie)[0]},getHelpers:function(te,ie){var fe=[];if(!ne.hasOwnProperty(ie))return fe;var we=ne[ie],Te=this.getModeAt(te);if(typeof Te[ie]=="string")we[Te[ie]]&&fe.push(we[Te[ie]]);else if(Te[ie])for(var He=0;He<Te[ie].length;He++){var ot=we[Te[ie][He]];ot&&fe.push(ot)}else Te.helperType&&we[Te.helperType]?fe.push(we[Te.helperType]):we[Te.name]&&fe.push(we[Te.name]);for(var jt=0;jt<we._global.length;jt++){var un=we._global[jt];un.pred(Te,this)&&Ye(fe,un.val)==-1&&fe.push(un.val)}return fe},getStateAfter:function(te,ie){var fe=this.doc;return te=In(fe,te==null?fe.first+fe.size-1:te),xn(this,te+1,ie).state},cursorCoords:function(te,ie){var fe,we=this.doc.sel.primary();return te==null?fe=we.head:typeof te=="object"?fe=en(this.doc,te):fe=te?we.from():we.to(),qo(this,fe,ie||"page")},charCoords:function(te,ie){return Fs(this,en(this.doc,te),ie||"page")},coordsChar:function(te,ie){return te=Ws(this,te,ie||"page"),yl(this,te.left,te.top)},lineAtHeight:function(te,ie){return te=Ws(this,{top:te,left:0},ie||"page").top,Tn(this.doc,te+this.display.viewOffset)},heightAtLine:function(te,ie,fe){var we=!1,Te;if(typeof te=="number"){var He=this.doc.first+this.doc.size-1;te<this.doc.first?te=this.doc.first:te>He&&(te=He,we=!0),Te=Et(this.doc,te)}else Te=te;return Jo(this,Te,{top:0,left:0},ie||"page",fe||we).top+(we?this.doc.height-Br(Te):0)},defaultTextHeight:function(){return bl(this.display)},defaultCharWidth:function(){return Ha(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(te,ie,fe,we,Te){var He=this.display;te=qo(this,en(this.doc,te));var ot=te.bottom,jt=te.left;if(ie.style.position="absolute",ie.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ie),He.sizer.appendChild(ie),we=="over")ot=te.top;else if(we=="above"||we=="near"){var un=Math.max(He.wrapper.clientHeight,this.doc.height),Rn=Math.max(He.sizer.clientWidth,He.lineSpace.clientWidth);(we=="above"||te.bottom+ie.offsetHeight>un)&&te.top>ie.offsetHeight?ot=te.top-ie.offsetHeight:te.bottom+ie.offsetHeight<=un&&(ot=te.bottom),jt+ie.offsetWidth>Rn&&(jt=Rn-ie.offsetWidth)}ie.style.top=ot+"px",ie.style.left=ie.style.right="",Te=="right"?(jt=He.sizer.clientWidth-ie.offsetWidth,ie.style.right="0px"):(Te=="left"?jt=0:Te=="middle"&&(jt=(He.sizer.clientWidth-ie.offsetWidth)/2),ie.style.left=jt+"px"),fe&&Yu(this,{left:jt,top:ot,right:jt+ie.offsetWidth,bottom:ot+ie.offsetHeight})},triggerOnKeyDown:Sn(Lu),triggerOnKeyPress:Sn(pf),triggerOnKeyUp:hf,triggerOnMouseDown:Sn(Bs),execCommand:function(te){if(Es.hasOwnProperty(te))return Es[te].call(null,this)},triggerElectric:Sn(function(te){Fd(this,te)}),findPosH:function(te,ie,fe,we){var Te=1;ie<0&&(Te=-1,ie=-ie);for(var He=en(this.doc,te),ot=0;ot<ie&&(He=od(this.doc,He,Te,fe,we),!He.hitSide);++ot);return He},moveH:Sn(function(te,ie){var fe=this;this.extendSelectionsBy(function(we){return fe.display.shift||fe.doc.extend||we.empty()?od(fe.doc,we.head,te,ie,fe.options.rtlMoveVisually):te<0?we.from():we.to()},Ot)}),deleteH:Sn(function(te,ie){var fe=this.doc.sel,we=this.doc;fe.somethingSelected()?we.replaceSelection("",null,"+delete"):Gs(this,function(Te){var He=od(we,Te.head,te,ie,!1);return te<0?{from:He,to:Te.head}:{from:Te.head,to:He}})}),findPosV:function(te,ie,fe,we){var Te=1,He=we;ie<0&&(Te=-1,ie=-ie);for(var ot=en(this.doc,te),jt=0;jt<ie;++jt){var un=qo(this,ot,"div");if(He==null?He=un.left:un.left=He,ot=wf(this,un,Te,fe),ot.hitSide)break}return ot},moveV:Sn(function(te,ie){var fe=this,we=this.doc,Te=[],He=!this.display.shift&&!we.extend&&we.sel.somethingSelected();if(we.extendSelectionsBy(function(jt){if(He)return te<0?jt.from():jt.to();var un=qo(fe,jt.head,"div");jt.goalColumn!=null&&(un.left=jt.goalColumn),Te.push(un.left);var Rn=wf(fe,un,te,ie);return ie=="page"&&jt==we.sel.primary()&&tu(fe,Fs(fe,Rn,"div").top-un.top),Rn},Ot),Te.length)for(var ot=0;ot<we.sel.ranges.length;ot++)we.sel.ranges[ot].goalColumn=Te[ot]}),findWordAt:function(te){var ie=this.doc,fe=Et(ie,te.line).text,we=te.ch,Te=te.ch;if(fe){var He=this.getHelper(te,"wordChars");(te.sticky=="before"||Te==fe.length)&&we?--we:++Te;for(var ot=fe.charAt(we),jt=he(ot,He)?function(un){return he(un,He)}:/\s/.test(ot)?function(un){return/\s/.test(un)}:function(un){return!/\s/.test(un)&&!he(un)};we>0&&jt(fe.charAt(we-1));)--we;for(;Te<fe.length&&jt(fe.charAt(Te));)++Te}return new ii(Qt(te.line,we),Qt(te.line,Te))},toggleOverwrite:function(te){te!=null&&te==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ut(this.display.cursorDiv,"CodeMirror-overwrite"):Je(this.display.cursorDiv,"CodeMirror-overwrite"),De(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==tt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Sn(function(te,ie){oc(this,te,ie)}),getScrollInfo:function(){var te=this.display.scroller;return{left:te.scrollLeft,top:te.scrollTop,height:te.scrollHeight-Mo(this)-this.display.barHeight,width:te.scrollWidth-Mo(this)-this.display.barWidth,clientHeight:Os(this),clientWidth:fo(this)}},scrollIntoView:Sn(function(te,ie){te==null?(te={from:this.doc.sel.primary().head,to:null},ie==null&&(ie=this.options.cursorScrollMargin)):typeof te=="number"?te={from:Qt(te,0),to:null}:te.from==null&&(te={from:te,to:null}),te.to||(te.to=te.from),te.margin=ie||0,te.from.line!=null?Dd(this,te):Xu(this,te.from,te.to,te.margin)}),setSize:Sn(function(te,ie){var fe=this,we=function(He){return typeof He=="number"||/^\d+$/.test(String(He))?He+"px":He};te!=null&&(this.display.wrapper.style.width=we(te)),ie!=null&&(this.display.wrapper.style.height=we(ie)),this.options.lineWrapping&&yo(this);var Te=this.display.viewFrom;this.doc.iter(Te,this.display.viewTo,function(He){if(He.widgets){for(var ot=0;ot<He.widgets.length;ot++)if(He.widgets[ot].noHScroll){tl(fe,Te,"widget");break}}++Te}),this.curOp.forceUpdate=!0,De(this,"refresh",this)}),operation:function(te){return Ht(this,te)},startOperation:function(){return ks(this)},endOperation:function(){return Nl(this)},refresh:Sn(function(){var te=this.display.cachedTextHeight;jo(this),this.curOp.forceUpdate=!0,io(this),oc(this,this.doc.scrollLeft,this.doc.scrollTop),hi(this.display),(te==null||Math.abs(te-bl(this.display))>.5||this.options.lineWrapping)&&$o(this),De(this,"refresh",this)}),swapDoc:Sn(function(te){var ie=this.doc;return ie.cm=null,this.state.selectingText&&this.state.selectingText(),ji(this,te),io(this),this.display.input.reset(),oc(this,te.scrollLeft,te.scrollTop),this.curOp.forceScroll=!0,or(this,"swapDoc",this,ie),ie}),phrase:function(te){var ie=this.options.phrases;return ie&&Object.prototype.hasOwnProperty.call(ie,te)?ie[te]:te},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},an(x),x.registerHelper=function(te,ie,fe){ne.hasOwnProperty(te)||(ne[te]=x[te]={_global:[]}),ne[te][ie]=fe},x.registerGlobalHelper=function(te,ie,fe,we){x.registerHelper(te,ie,we),ne[te]._global.push({pred:fe,val:we})}}function od(x,z,ne,te,ie){var fe=z,we=ne,Te=Et(x,z.line),He=ie&&x.direction=="rtl"?-ne:ne;function ot(){var Bi=z.line+He;return Bi<x.first||Bi>=x.first+x.size?!1:(z=new Qt(Bi,z.ch,z.sticky),Te=Et(x,Bi))}function jt(Bi){var gi;if(te=="codepoint"){var Ii=Te.text.charCodeAt(z.ch+(te>0?0:-1));isNaN(Ii)?gi=null:gi=new Qt(z.line,Math.max(0,Math.min(Te.text.length,z.ch+ne*(Ii>=55296&&Ii<56320?2:1))),-ne)}else ie?gi=Za(x.cm,Te,z,ne):gi=Ml(Te,z,ne);if(gi==null)if(!Bi&&ot())z=Oa(ie,x.cm,Te,z.line,He);else return!1;else z=gi;return!0}if(te=="char"||te=="codepoint")jt();else if(te=="column")jt(!0);else if(te=="word"||te=="group")for(var un=null,Rn=te=="group",On=x.cm&&x.cm.getHelper(z,"wordChars"),lr=!0;!(ne<0&&!jt(!lr));lr=!1){var Dr=Te.text.charAt(z.ch)||`
|
|
|
`,ai=he(Dr,On)?"w":Rn&&Dr==`
|
|
|
`?"n":!Rn||/\s/.test(Dr)?null:"p";if(Rn&&!lr&&!ai&&(ai="s"),un&&un!=ai){ne<0&&(ne=1,jt(),z.sticky="after");break}if(ai&&(un=ai),ne>0&&!jt(!lr))break}var Ci=il(x,z,fe,we,!0);return Dt(fe,Ci)&&(Ci.hitSide=!0),Ci}function wf(x,z,ne,te){var ie=x.doc,fe=z.left,we;if(te=="page"){var Te=Math.min(x.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),He=Math.max(Te-.5*bl(x.display),3);we=(ne>0?z.bottom:z.top)+ne*He}else te=="line"&&(we=ne>0?z.bottom+3:z.top-3);for(var ot;ot=yl(x,fe,we),!!ot.outside;){if(ne<0?we<=0:we>=ie.height){ot.hitSide=!0;break}we+=ne*5}return ot}var po=function(x){this.cm=x,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new be,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};po.prototype.init=function(x){var z=this,ne=this,te=ne.cm,ie=ne.div=x.lineDiv;xf(ie,te.options.spellcheck,te.options.autocorrect,te.options.autocapitalize);function fe(Te){for(var He=Te.target;He;He=He.parentNode){if(He==ie)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(He.className))break}return!1}_t(ie,"paste",function(Te){!fe(Te)||dt(te,Te)||Rd(Te,te)||Ee<=11&&setTimeout(En(te,function(){return z.updateFromDOM()}),20)}),_t(ie,"compositionstart",function(Te){z.composing={data:Te.data,done:!1}}),_t(ie,"compositionupdate",function(Te){z.composing||(z.composing={data:Te.data,done:!1})}),_t(ie,"compositionend",function(Te){z.composing&&(Te.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),_t(ie,"touchstart",function(){return ne.forceCompositionEnd()}),_t(ie,"input",function(){z.composing||z.readFromDOMSoon()});function we(Te){if(!(!fe(Te)||dt(te,Te))){if(te.somethingSelected())Mc({lineWise:!1,text:te.getSelections()}),Te.type=="cut"&&te.replaceSelection("",null,"cut");else if(te.options.lineWiseCopyCut){var He=uu(te);Mc({lineWise:!0,text:He.text}),Te.type=="cut"&&te.operation(function(){te.setSelections(He.ranges,0,Ue),te.replaceSelection("",null,"cut")})}else return;if(Te.clipboardData){Te.clipboardData.clearData();var ot=Kl.text.join(`
|
|
|
`);if(Te.clipboardData.setData("Text",ot),Te.clipboardData.getData("Text")==ot){Te.preventDefault();return}}var jt=zd(),un=jt.firstChild;te.display.lineSpace.insertBefore(jt,te.display.lineSpace.firstChild),un.value=Kl.text.join(`
|
|
|
`);var Rn=document.activeElement;Mt(un),setTimeout(function(){te.display.lineSpace.removeChild(jt),Rn.focus(),Rn==ie&&ne.showPrimarySelection()},50)}}_t(ie,"copy",we),_t(ie,"cut",we)},po.prototype.screenReaderLabelChanged=function(x){x?this.div.setAttribute("aria-label",x):this.div.removeAttribute("aria-label")},po.prototype.prepareSelection=function(){var x=Gu(this.cm,!1);return x.focus=document.activeElement==this.div,x},po.prototype.showSelection=function(x,z){!x||!this.cm.display.view.length||((x.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(x))},po.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},po.prototype.showPrimarySelection=function(){var x=this.getSelection(),z=this.cm,ne=z.doc.sel.primary(),te=ne.from(),ie=ne.to();if(z.display.viewTo==z.display.viewFrom||te.line>=z.display.viewTo||ie.line<z.display.viewFrom){x.removeAllRanges();return}var fe=sd(z,x.anchorNode,x.anchorOffset),we=sd(z,x.focusNode,x.focusOffset);if(!(fe&&!fe.bad&&we&&!we.bad&&Dn(cn(fe,we),te)==0&&Dn(on(fe,we),ie)==0)){var Te=z.display.view,He=te.line>=z.display.viewFrom&&Sf(z,te)||{node:Te[0].measure.map[2],offset:0},ot=ie.line<z.display.viewTo&&Sf(z,ie);if(!ot){var jt=Te[Te.length-1].measure,un=jt.maps?jt.maps[jt.maps.length-1]:jt.map;ot={node:un[un.length-1],offset:un[un.length-2]-un[un.length-3]}}if(!He||!ot){x.removeAllRanges();return}var Rn=x.rangeCount&&x.getRangeAt(0),On;try{On=Oe(He.node,He.offset,ot.offset,ot.node)}catch(lr){}On&&(!ae&&z.state.focused?(x.collapse(He.node,He.offset),On.collapsed||(x.removeAllRanges(),x.addRange(On))):(x.removeAllRanges(),x.addRange(On)),Rn&&x.anchorNode==null?x.addRange(Rn):ae&&this.startGracePeriod()),this.rememberSelection()}},po.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)},po.prototype.showMultipleSelections=function(x){wt(this.cm.display.cursorDiv,x.cursors),wt(this.cm.display.selectionDiv,x.selection)},po.prototype.rememberSelection=function(){var x=this.getSelection();this.lastAnchorNode=x.anchorNode,this.lastAnchorOffset=x.anchorOffset,this.lastFocusNode=x.focusNode,this.lastFocusOffset=x.focusOffset},po.prototype.selectionInEditor=function(){var x=this.getSelection();if(!x.rangeCount)return!1;var z=x.getRangeAt(0).commonAncestorContainer;return Lt(this.div,z)},po.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},po.prototype.blur=function(){this.div.blur()},po.prototype.getField=function(){return this.div},po.prototype.supportsTouch=function(){return!0},po.prototype.receivedFocus=function(){var x=this;this.selectionInEditor()?this.pollSelection():Ht(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)},po.prototype.selectionChanged=function(){var x=this.getSelection();return x.anchorNode!=this.lastAnchorNode||x.anchorOffset!=this.lastAnchorOffset||x.focusNode!=this.lastFocusNode||x.focusOffset!=this.lastFocusOffset},po.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var x=this.getSelection(),z=this.cm;if(Ke&&Me&&this.cm.display.gutterSpecs.length&&ch(x.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ne=sd(z,x.anchorNode,x.anchorOffset),te=sd(z,x.focusNode,x.focusOffset);ne&&te&&Ht(z,function(){Va(z.doc,la(ne,te),Ue),(ne.bad||te.bad)&&(z.curOp.selectionChanged=!0)})}}},po.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var x=this.cm,z=x.display,ne=x.doc.sel.primary(),te=ne.from(),ie=ne.to();if(te.ch==0&&te.line>x.firstLine()&&(te=Qt(te.line-1,Et(x.doc,te.line-1).length)),ie.ch==Et(x.doc,ie.line).text.length&&ie.line<x.lastLine()&&(ie=Qt(ie.line+1,0)),te.line<z.viewFrom||ie.line>z.viewTo-1)return!1;var fe,we,Te;te.line==z.viewFrom||(fe=ps(x,te.line))==0?(we=wn(z.view[0].line),Te=z.view[0].node):(we=wn(z.view[fe].line),Te=z.view[fe-1].node.nextSibling);var He=ps(x,ie.line),ot,jt;if(He==z.view.length-1?(ot=z.viewTo-1,jt=z.lineDiv.lastChild):(ot=wn(z.view[He+1].line)-1,jt=z.view[He+1].node.previousSibling),!Te)return!1;for(var un=x.doc.splitLines(uh(x,Te,jt,we,ot)),Rn=Tt(x.doc,Qt(we,0),Qt(ot,Et(x.doc,ot).text.length));un.length>1&&Rn.length>1;)if(nn(un)==nn(Rn))un.pop(),Rn.pop(),ot--;else if(un[0]==Rn[0])un.shift(),Rn.shift(),we++;else break;for(var On=0,lr=0,Dr=un[0],ai=Rn[0],Ci=Math.min(Dr.length,ai.length);On<Ci&&Dr.charCodeAt(On)==ai.charCodeAt(On);)++On;for(var Bi=nn(un),gi=nn(Rn),Ii=Math.min(Bi.length-(un.length==1?On:0),gi.length-(Rn.length==1?On:0));lr<Ii&&Bi.charCodeAt(Bi.length-lr-1)==gi.charCodeAt(gi.length-lr-1);)++lr;if(un.length==1&&Rn.length==1&&we==te.line)for(;On&&On>te.ch&&Bi.charCodeAt(Bi.length-lr-1)==gi.charCodeAt(gi.length-lr-1);)On--,lr++;un[un.length-1]=Bi.slice(0,Bi.length-lr).replace(/^\u200b+/,""),un[0]=un[0].slice(On).replace(/\u200b+$/,"");var Ji=Qt(we,On),ea=Qt(ot,Rn.length?nn(Rn).length-lr:0);if(un.length>1||un[0]||Dn(Ji,ea))return Rl(x.doc,un,Ji,ea,"+input"),!0},po.prototype.ensurePolled=function(){this.forceCompositionEnd()},po.prototype.reset=function(){this.forceCompositionEnd()},po.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},po.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))},po.prototype.updateFromDOM=function(){var x=this;(this.cm.isReadOnly()||!this.pollContent())&&Ht(this.cm,function(){return jo(x.cm)})},po.prototype.setUneditable=function(x){x.contentEditable="false"},po.prototype.onKeyPress=function(x){x.charCode==0||this.composing||(x.preventDefault(),this.cm.isReadOnly()||En(this.cm,Nd)(this.cm,String.fromCharCode(x.charCode==null?x.keyCode:x.charCode),0))},po.prototype.readOnlyChanged=function(x){this.div.contentEditable=String(x!="nocursor")},po.prototype.onContextMenu=function(){},po.prototype.resetPosition=function(){},po.prototype.needsContentAttribute=!0;function Sf(x,z){var ne=ko(x,z.line);if(!ne||ne.hidden)return null;var te=Et(x.doc,z.line),ie=hs(ne,te,z.line),fe=rn(te,x.doc.direction),we="left";if(fe){var Te=Ve(fe,z.ch);we=Te%2?"right":"left"}var He=cl(ie.map,z.ch,we);return He.offset=He.collapse=="right"?He.end:He.start,He}function ch(x){for(var z=x;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function du(x,z){return z&&(x.bad=!0),x}function uh(x,z,ne,te,ie){var fe="",we=!1,Te=x.doc.lineSeparator(),He=!1;function ot(On){return function(lr){return lr.id==On}}function jt(){we&&(fe+=Te,He&&(fe+=Te),we=He=!1)}function un(On){On&&(jt(),fe+=On)}function Rn(On){if(On.nodeType==1){var lr=On.getAttribute("cm-text");if(lr){un(lr);return}var Dr=On.getAttribute("cm-marker"),ai;if(Dr){var Ci=x.findMarks(Qt(te,0),Qt(ie+1,0),ot(+Dr));Ci.length&&(ai=Ci[0].find(0))&&un(Tt(x.doc,ai.from,ai.to).join(Te));return}if(On.getAttribute("contenteditable")=="false")return;var Bi=/^(pre|div|p|li|table|br)$/i.test(On.nodeName);if(!/^br$/i.test(On.nodeName)&&On.textContent.length==0)return;Bi&&jt();for(var gi=0;gi<On.childNodes.length;gi++)Rn(On.childNodes[gi]);/^(pre|p)$/i.test(On.nodeName)&&(He=!0),Bi&&(we=!0)}else On.nodeType==3&&un(On.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Rn(z),z!=ne;)z=z.nextSibling,He=!1;return fe}function sd(x,z,ne){var te;if(z==x.display.lineDiv){if(te=x.display.lineDiv.childNodes[ne],!te)return du(x.clipPos(Qt(x.display.viewTo-1)),!0);z=null,ne=0}else for(te=z;;te=te.parentNode){if(!te||te==x.display.lineDiv)return null;if(te.parentNode&&te.parentNode==x.display.lineDiv)break}for(var ie=0;ie<x.display.view.length;ie++){var fe=x.display.view[ie];if(fe.node==te)return dh(fe,z,ne)}}function dh(x,z,ne){var te=x.text.firstChild,ie=!1;if(!z||!Lt(te,z))return du(Qt(wn(x.line),0),!0);if(z==te&&(ie=!0,z=te.childNodes[ne],ne=0,!z)){var fe=x.rest?nn(x.rest):x.line;return du(Qt(wn(fe),fe.text.length),ie)}var we=z.nodeType==3?z:null,Te=z;for(!we&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(we=z.firstChild,ne&&(ne=we.nodeValue.length));Te.parentNode!=te;)Te=Te.parentNode;var He=x.measure,ot=He.maps;function jt(ai,Ci,Bi){for(var gi=-1;gi<(ot?ot.length:0);gi++)for(var Ii=gi<0?He.map:ot[gi],Ji=0;Ji<Ii.length;Ji+=3){var ea=Ii[Ji+2];if(ea==ai||ea==Ci){var Na=wn(gi<0?x.line:x.rest[gi]),xo=Ii[Ji]+Bi;return(Bi<0||ea!=ai)&&(xo=Ii[Ji+(Bi?1:0)]),Qt(Na,xo)}}}var un=jt(we,Te,ne);if(un)return du(un,ie);for(var Rn=Te.nextSibling,On=we?we.nodeValue.length-ne:0;Rn;Rn=Rn.nextSibling){if(un=jt(Rn,Rn.firstChild,0),un)return du(Qt(un.line,un.ch-On),ie);On+=Rn.textContent.length}for(var lr=Te.previousSibling,Dr=ne;lr;lr=lr.previousSibling){if(un=jt(lr,lr.firstChild,-1),un)return du(Qt(un.line,un.ch+Dr),ie);Dr+=lr.textContent.length}}var bo=function(x){this.cm=x,this.prevInput="",this.pollingFast=!1,this.polling=new be,this.hasSelection=!1,this.composing=null};bo.prototype.init=function(x){var z=this,ne=this,te=this.cm;this.createField(x);var ie=this.textarea;x.wrapper.insertBefore(this.wrapper,x.wrapper.firstChild),pt&&(ie.style.width="0px"),_t(ie,"input",function(){xe&&Ee>=9&&z.hasSelection&&(z.hasSelection=null),ne.poll()}),_t(ie,"paste",function(we){dt(te,we)||Rd(we,te)||(te.state.pasteIncoming=+new Date,ne.fastPoll())});function fe(we){if(!dt(te,we)){if(te.somethingSelected())Mc({lineWise:!1,text:te.getSelections()});else if(te.options.lineWiseCopyCut){var Te=uu(te);Mc({lineWise:!0,text:Te.text}),we.type=="cut"?te.setSelections(Te.ranges,null,Ue):(ne.prevInput="",ie.value=Te.text.join(`
|
|
|
`),Mt(ie))}else return;we.type=="cut"&&(te.state.cutIncoming=+new Date)}}_t(ie,"cut",fe),_t(ie,"copy",fe),_t(x.scroller,"paste",function(we){if(!(so(x,we)||dt(te,we))){if(!ie.dispatchEvent){te.state.pasteIncoming=+new Date,ne.focus();return}var Te=new Event("paste");Te.clipboardData=we.clipboardData,ie.dispatchEvent(Te)}}),_t(x.lineSpace,"selectstart",function(we){so(x,we)||Bn(we)}),_t(ie,"compositionstart",function(){var we=te.getCursor("from");ne.composing&&ne.composing.range.clear(),ne.composing={start:we,range:te.markText(we,te.getCursor("to"),{className:"CodeMirror-composing"})}}),_t(ie,"compositionend",function(){ne.composing&&(ne.poll(),ne.composing.range.clear(),ne.composing=null)})},bo.prototype.createField=function(x){this.wrapper=zd(),this.textarea=this.wrapper.firstChild},bo.prototype.screenReaderLabelChanged=function(x){x?this.textarea.setAttribute("aria-label",x):this.textarea.removeAttribute("aria-label")},bo.prototype.prepareSelection=function(){var x=this.cm,z=x.display,ne=x.doc,te=Gu(x);if(x.options.moveInputWithCursor){var ie=qo(x,ne.sel.primary().head,"div"),fe=z.wrapper.getBoundingClientRect(),we=z.lineDiv.getBoundingClientRect();te.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,ie.top+we.top-fe.top)),te.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,ie.left+we.left-fe.left))}return te},bo.prototype.showSelection=function(x){var z=this.cm,ne=z.display;wt(ne.cursorDiv,x.cursors),wt(ne.selectionDiv,x.selection),x.teTop!=null&&(this.wrapper.style.top=x.teTop+"px",this.wrapper.style.left=x.teLeft+"px")},bo.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&&Mt(this.textarea),xe&&Ee>=9&&(this.hasSelection=ne)}else x||(this.prevInput=this.textarea.value="",xe&&Ee>=9&&(this.hasSelection=null))}},bo.prototype.getField=function(){return this.textarea},bo.prototype.supportsTouch=function(){return!1},bo.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!je||tt()!=this.textarea))try{this.textarea.focus()}catch(x){}},bo.prototype.blur=function(){this.textarea.blur()},bo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},bo.prototype.receivedFocus=function(){this.slowPoll()},bo.prototype.slowPoll=function(){var x=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){x.poll(),x.cm.state.focused&&x.slowPoll()})},bo.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)},bo.prototype.poll=function(){var x=this,z=this.cm,ne=this.textarea,te=this.prevInput;if(this.contextMenuPending||!z.state.focused||$n(ne)&&!te&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var ie=ne.value;if(ie==te&&!z.somethingSelected())return!1;if(xe&&Ee>=9&&this.hasSelection===ie||ft&&/[\uf700-\uf7ff]/.test(ie))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var fe=ie.charCodeAt(0);if(fe==8203&&!te&&(te="\u200B"),fe==8666)return this.reset(),this.cm.execCommand("undo")}for(var we=0,Te=Math.min(te.length,ie.length);we<Te&&te.charCodeAt(we)==ie.charCodeAt(we);)++we;return Ht(z,function(){Nd(z,ie.slice(we),te.length-we,null,x.composing?"*compose":null),ie.length>1e3||ie.indexOf(`
|
|
|
`)>-1?ne.value=x.prevInput="":x.prevInput=ie,x.composing&&(x.composing.range.clear(),x.composing.range=z.markText(x.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},bo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},bo.prototype.onKeyPress=function(){xe&&Ee>=9&&(this.hasSelection=null),this.fastPoll()},bo.prototype.onContextMenu=function(x){var z=this,ne=z.cm,te=ne.display,ie=z.textarea;z.contextMenuPending&&z.contextMenuPending();var fe=Qs(ne,x),we=te.scroller.scrollTop;if(!fe||_e)return;var Te=ne.options.resetSelectionOnContextMenu;Te&&ne.doc.sel.contains(fe)==-1&&En(ne,Va)(ne.doc,la(fe),Ue);var He=ie.style.cssText,ot=z.wrapper.style.cssText,jt=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",ie.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(x.clientY-jt.top-5)+"px; left: "+(x.clientX-jt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var un;pe&&(un=window.scrollY),te.input.focus(),pe&&window.scrollTo(null,un),te.input.reset(),ne.somethingSelected()||(ie.value=z.prevInput=" "),z.contextMenuPending=On,te.selForContextMenu=ne.doc.sel,clearTimeout(te.detectingSelectAll);function Rn(){if(ie.selectionStart!=null){var Dr=ne.somethingSelected(),ai="\u200B"+(Dr?ie.value:"");ie.value="\u21DA",ie.value=ai,z.prevInput=Dr?"":"\u200B",ie.selectionStart=1,ie.selectionEnd=ai.length,te.selForContextMenu=ne.doc.sel}}function On(){if(z.contextMenuPending==On&&(z.contextMenuPending=!1,z.wrapper.style.cssText=ot,ie.style.cssText=He,xe&&Ee<9&&te.scrollbars.setScrollTop(te.scroller.scrollTop=we),ie.selectionStart!=null)){(!xe||xe&&Ee<9)&&Rn();var Dr=0,ai=function(){te.selForContextMenu==ne.doc.sel&&ie.selectionStart==0&&ie.selectionEnd>0&&z.prevInput=="\u200B"?En(ne,Ss)(ne):Dr++<10?te.detectingSelectAll=setTimeout(ai,500):(te.selForContextMenu=null,te.input.reset())};te.detectingSelectAll=setTimeout(ai,200)}}if(xe&&Ee>=9&&Rn(),Re){zn(x);var lr=function(){ut(window,"mouseup",lr),setTimeout(On,20)};_t(window,"mouseup",lr)}else setTimeout(On,50)},bo.prototype.readOnlyChanged=function(x){x||this.reset(),this.textarea.disabled=x=="nocursor",this.textarea.readOnly=!!x},bo.prototype.setUneditable=function(){},bo.prototype.needsContentAttribute=!1;function Zc(x,z){if(z=z?It(z):{},z.value=x.value,!z.tabindex&&x.tabIndex&&(z.tabindex=x.tabIndex),!z.placeholder&&x.placeholder&&(z.placeholder=x.placeholder),z.autofocus==null){var ne=tt();z.autofocus=ne==x||x.getAttribute("autofocus")!=null&&ne==document.body}function te(){x.value=Te.getValue()}var ie;if(x.form&&(_t(x.form,"submit",te),!z.leaveSubmitMethodAlone)){var fe=x.form;ie=fe.submit;try{var we=fe.submit=function(){te(),fe.submit=ie,fe.submit(),fe.submit=we}}catch(He){}}z.finishInit=function(He){He.save=te,He.getTextArea=function(){return x},He.toTextArea=function(){He.toTextArea=isNaN,te(),x.parentNode.removeChild(He.getWrapperElement()),x.style.display="",x.form&&(ut(x.form,"submit",te),!z.leaveSubmitMethodAlone&&typeof x.form.submit=="function"&&(x.form.submit=ie))}},x.style.display="none";var Te=ma(function(He){return x.parentNode.insertBefore(He,x.nextSibling)},z);return Te}function fu(x){x.off=ut,x.on=_t,x.wheelEventPixels=Yi,x.Doc=No,x.splitLines=Pr,x.countColumn=Ge,x.findColumn=kn,x.isWordChar=de,x.Pass=xt,x.signal=De,x.Line=Gr,x.changeEnd=Fa,x.scrollbarModel=Cu,x.Pos=Qt,x.cmpPos=Dn,x.modes=xi,x.mimeModes=Ar,x.resolveMode=tr,x.getMode=Gn,x.modeExtensions=Xr,x.extendMode=Rt,x.copyState=ze,x.startState=Xe,x.innerMode=$e,x.commands=Es,x.keyMap=oo,x.keyName=zl,x.isModifierKey=Wc,x.lookupKey=El,x.normalizeKeyMap=lu,x.StringStream=Ze,x.SharedTextMarker=Ba,x.TextMarker=Yl,x.LineWidget=rs,x.e_preventDefault=Bn,x.e_stopPropagation=qt,x.e_stop=zn,x.addClass=Ut,x.contains=Lt,x.rmClass=Je,x.keyNames=al}oh(ma),_d(ma);var fc="iter insert remove copy getEditor constructor".split(" ");for(var Bl in No.prototype)No.prototype.hasOwnProperty(Bl)&&Ye(fc,Bl)<0&&(ma.prototype[Bl]=function(x){return function(){return x.apply(this.doc,arguments)}}(No.prototype[Bl]));return an(No),ma.inputStyles={textarea:bo,contenteditable:po},ma.defineMode=function(x){!ma.defaults.mode&&x!="null"&&(ma.defaults.mode=x),dr.apply(this,arguments)},ma.defineMIME=Mr,ma.defineMode("null",function(){return{token:function(x){return x.skipToEnd()}}}),ma.defineMIME("text/plain","null"),ma.defineExtension=function(x,z){ma.prototype[x]=z},ma.defineDocExtension=function(x,z){No.prototype[x]=z},ma.fromTextArea=Zc,fu(ma),ma.version="5.58.2",ma})},25419:function(Mn,tn,oe){(function(ae){ae(oe(89780),oe(15525),oe(98101))})(function(ae){"use strict";ae.defineMode("markdown",function(Ae,Le){var ct=ae.getMode(Ae,"text/html"),xe=ct.name=="null";function Ee(Ge){if(ae.findModeByName){var be=ae.findModeByName(Ge);be&&(Ge=be.mime||be.mimes[0])}var Ye=ae.getMode(Ae,Ge);return Ye.name=="null"?null:Ye}Le.highlightFormatting===void 0&&(Le.highlightFormatting=!1),Le.maxBlockquoteDepth===void 0&&(Le.maxBlockquoteDepth=0),Le.taskLists===void 0&&(Le.taskLists=!1),Le.strikethrough===void 0&&(Le.strikethrough=!1),Le.emoji===void 0&&(Le.emoji=!1),Le.fencedCodeBlockHighlighting===void 0&&(Le.fencedCodeBlockHighlighting=!0),Le.fencedCodeBlockDefaultMode===void 0&&(Le.fencedCodeBlockDefaultMode="text/plain"),Le.xml===void 0&&(Le.xml=!0),Le.tokenTypeOverrides===void 0&&(Le.tokenTypeOverrides={});var pe={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var ve in pe)pe.hasOwnProperty(ve)&&Le.tokenTypeOverrides[ve]&&(pe[ve]=Le.tokenTypeOverrides[ve]);var Me=/^([*\-_])(?:\s*\1){2,}\s*$/,_e=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,vt=/^\[(x| )\](?=\s)/i,Fe=Le.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,qe=/^ {0,3}(?:\={1,}|-{2,})\s*$/,pt=/^[^#!\[\]*_\\<>` "'(~:]+/,Ke=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,je=/^\s*\[[^\]]+?\]:.*$/,ft=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,mt=" ";function Bt(Ge,be,Ye){return be.f=be.inline=Ye,Ye(Ge,be)}function ht(Ge,be,Ye){return be.f=be.block=Ye,Ye(Ge,be)}function nt(Ge){return!Ge||!/\S/.test(Ge.string)}function Re(Ge){if(Ge.linkTitle=!1,Ge.linkHref=!1,Ge.linkText=!1,Ge.em=!1,Ge.strong=!1,Ge.strikethrough=!1,Ge.quote=0,Ge.indentedCode=!1,Ge.f==Je){var be=xe;if(!be){var Ye=ae.innerMode(ct,Ge.htmlState);be=Ye.mode.name=="xml"&&Ye.state.tagStart===null&&!Ye.state.context&&Ye.state.tokenize.isInText}be&&(Ge.f=bt,Ge.block=Ce,Ge.htmlState=null)}return Ge.trailingSpace=0,Ge.trailingSpaceNewLine=!1,Ge.prevLine=Ge.thisLine,Ge.thisLine={stream:null},null}function Ce(Ge,be){var Ye=Ge.column()===be.indentation,Pt=nt(be.prevLine.stream),xt=be.indentedCode,Ue=be.prevLine.hr,at=be.list!==!1,Ot=(be.listStack[be.listStack.length-1]||0)+3;be.indentedCode=!1;var kn=be.indentation;if(be.indentationDiff===null&&(be.indentationDiff=be.indentation,at)){for(be.list=null;kn<be.listStack[be.listStack.length-1];)be.listStack.pop(),be.listStack.length?be.indentation=be.listStack[be.listStack.length-1]:be.list=!1;be.list!==!1&&(be.indentationDiff=kn-be.listStack[be.listStack.length-1])}var Kt=!Pt&&!Ue&&!be.prevLine.header&&(!at||!xt)&&!be.prevLine.fencedCodeEnd,gn=(be.list===!1||Ue||Pt)&&be.indentation<=Ot&&Ge.match(Me),nn=null;if(be.indentationDiff>=4&&(xt||be.prevLine.fencedCodeEnd||be.prevLine.header||Pt))return Ge.skipToEnd(),be.indentedCode=!0,pe.code;if(Ge.eatSpace())return null;if(Ye&&be.indentation<=Ot&&(nn=Ge.match(Fe))&&nn[1].length<=6)return be.quote=0,be.header=nn[1].length,be.thisLine.header=!0,Le.highlightFormatting&&(be.formatting="header"),be.f=be.inline,wt(be);if(be.indentation<=Ot&&Ge.eat(">"))return be.quote=Ye?1:be.quote+1,Le.highlightFormatting&&(be.formatting="quote"),Ge.eatSpace(),wt(be);if(!gn&&!be.setext&&Ye&&be.indentation<=Ot&&(nn=Ge.match(_e))){var Gt=nn[1]?"ol":"ul";return be.indentation=kn+Ge.current().length,be.list=!0,be.quote=0,be.listStack.push(be.indentation),be.em=!1,be.strong=!1,be.code=!1,be.strikethrough=!1,Le.taskLists&&Ge.match(vt,!1)&&(be.taskList=!0),be.f=be.inline,Le.highlightFormatting&&(be.formatting=["list","list-"+Gt]),wt(be)}else{if(Ye&&be.indentation<=Ot&&(nn=Ge.match(Ke,!0)))return be.quote=0,be.fencedEndRE=new RegExp(nn[1]+"+ *$"),be.localMode=Le.fencedCodeBlockHighlighting&&Ee(nn[2]||Le.fencedCodeBlockDefaultMode),be.localMode&&(be.localState=ae.startState(be.localMode)),be.f=be.block=et,Le.highlightFormatting&&(be.formatting="code-block"),be.code=-1,wt(be);if(be.setext||(!Kt||!at)&&!be.quote&&be.list===!1&&!be.code&&!gn&&!je.test(Ge.string)&&(nn=Ge.lookAhead(1))&&(nn=nn.match(qe)))return be.setext?(be.header=be.setext,be.setext=0,Ge.skipToEnd(),Le.highlightFormatting&&(be.formatting="header")):(be.header=nn[0].charAt(0)=="="?1:2,be.setext=be.header),be.thisLine.header=!0,be.f=be.inline,wt(be);if(gn)return Ge.skipToEnd(),be.hr=!0,be.thisLine.hr=!0,pe.hr;if(Ge.peek()==="[")return Bt(Ge,be,At)}return Bt(Ge,be,be.inline)}function Je(Ge,be){var Ye=ct.token(Ge,be.htmlState);if(!xe){var Pt=ae.innerMode(ct,be.htmlState);(Pt.mode.name=="xml"&&Pt.state.tagStart===null&&!Pt.state.context&&Pt.state.tokenize.isInText||be.md_inside&&Ge.current().indexOf(">")>-1)&&(be.f=bt,be.block=Ce,be.htmlState=null)}return Ye}function et(Ge,be){var Ye=be.listStack[be.listStack.length-1]||0,Pt=be.indentation<Ye,xt=Ye+3;if(be.fencedEndRE&&be.indentation<=xt&&(Pt||Ge.match(be.fencedEndRE))){Le.highlightFormatting&&(be.formatting="code-block");var Ue;return Pt||(Ue=wt(be)),be.localMode=be.localState=null,be.block=Ce,be.f=bt,be.fencedEndRE=null,be.code=0,be.thisLine.fencedCodeEnd=!0,Pt?ht(Ge,be,be.block):Ue}else return be.localMode?be.localMode.token(Ge,be.localState):(Ge.skipToEnd(),pe.code)}function wt(Ge){var be=[];if(Ge.formatting){be.push(pe.formatting),typeof Ge.formatting=="string"&&(Ge.formatting=[Ge.formatting]);for(var Ye=0;Ye<Ge.formatting.length;Ye++)be.push(pe.formatting+"-"+Ge.formatting[Ye]),Ge.formatting[Ye]==="header"&&be.push(pe.formatting+"-"+Ge.formatting[Ye]+"-"+Ge.header),Ge.formatting[Ye]==="quote"&&(!Le.maxBlockquoteDepth||Le.maxBlockquoteDepth>=Ge.quote?be.push(pe.formatting+"-"+Ge.formatting[Ye]+"-"+Ge.quote):be.push("error"))}if(Ge.taskOpen)return be.push("meta"),be.length?be.join(" "):null;if(Ge.taskClosed)return be.push("property"),be.length?be.join(" "):null;if(Ge.linkHref?be.push(pe.linkHref,"url"):(Ge.strong&&be.push(pe.strong),Ge.em&&be.push(pe.em),Ge.strikethrough&&be.push(pe.strikethrough),Ge.emoji&&be.push(pe.emoji),Ge.linkText&&be.push(pe.linkText),Ge.code&&be.push(pe.code),Ge.image&&be.push(pe.image),Ge.imageAltText&&be.push(pe.imageAltText,"link"),Ge.imageMarker&&be.push(pe.imageMarker)),Ge.header&&be.push(pe.header,pe.header+"-"+Ge.header),Ge.quote&&(be.push(pe.quote),!Le.maxBlockquoteDepth||Le.maxBlockquoteDepth>=Ge.quote?be.push(pe.quote+"-"+Ge.quote):be.push(pe.quote+"-"+Le.maxBlockquoteDepth)),Ge.list!==!1){var Pt=(Ge.listStack.length-1)%3;Pt?Pt===1?be.push(pe.list2):be.push(pe.list3):be.push(pe.list1)}return Ge.trailingSpaceNewLine?be.push("trailing-space-new-line"):Ge.trailingSpace&&be.push("trailing-space-"+(Ge.trailingSpace%2?"a":"b")),be.length?be.join(" "):null}function Qe(Ge,be){if(Ge.match(pt,!0))return wt(be)}function bt(Ge,be){var Ye=be.text(Ge,be);if(typeof Ye!="undefined")return Ye;if(be.list)return be.list=null,wt(be);if(be.taskList){var Pt=Ge.match(vt,!0)[1]===" ";return Pt?be.taskOpen=!0:be.taskClosed=!0,Le.highlightFormatting&&(be.formatting="task"),be.taskList=!1,wt(be)}if(be.taskOpen=!1,be.taskClosed=!1,be.header&&Ge.match(/^#+$/,!0))return Le.highlightFormatting&&(be.formatting="header"),wt(be);var xt=Ge.next();if(be.linkTitle){be.linkTitle=!1;var Ue=xt;xt==="("&&(Ue=")"),Ue=(Ue+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var at="^\\s*(?:[^"+Ue+"\\\\]+|\\\\\\\\|\\\\.)"+Ue;if(Ge.match(new RegExp(at),!0))return pe.linkHref}if(xt==="`"){var Ot=be.formatting;Le.highlightFormatting&&(be.formatting="code"),Ge.eatWhile("`");var kn=Ge.current().length;if(be.code==0&&(!be.quote||kn==1))return be.code=kn,wt(be);if(kn==be.code){var Kt=wt(be);return be.code=0,Kt}else return be.formatting=Ot,wt(be)}else if(be.code)return wt(be);if(xt==="\\"&&(Ge.next(),Le.highlightFormatting)){var gn=wt(be),nn=pe.formatting+"-escape";return gn?gn+" "+nn:nn}if(xt==="!"&&Ge.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return be.imageMarker=!0,be.image=!0,Le.highlightFormatting&&(be.formatting="image"),wt(be);if(xt==="["&&be.imageMarker&&Ge.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return be.imageMarker=!1,be.imageAltText=!0,Le.highlightFormatting&&(be.formatting="image"),wt(be);if(xt==="]"&&be.imageAltText){Le.highlightFormatting&&(be.formatting="image");var gn=wt(be);return be.imageAltText=!1,be.image=!1,be.inline=be.f=Lt,gn}if(xt==="["&&!be.image)return be.linkText&&Ge.match(/^.*?\]/)||(be.linkText=!0,Le.highlightFormatting&&(be.formatting="link")),wt(be);if(xt==="]"&&be.linkText){Le.highlightFormatting&&(be.formatting="link");var gn=wt(be);return be.linkText=!1,be.inline=be.f=Ge.match(/\(.*?\)| ?\[.*?\]/,!1)?Lt:bt,gn}if(xt==="<"&&Ge.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){be.f=be.inline=Oe,Le.highlightFormatting&&(be.formatting="link");var gn=wt(be);return gn?gn+=" ":gn="",gn+pe.linkInline}if(xt==="<"&&Ge.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){be.f=be.inline=Oe,Le.highlightFormatting&&(be.formatting="link");var gn=wt(be);return gn?gn+=" ":gn="",gn+pe.linkEmail}if(Le.xml&&xt==="<"&&Ge.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Gt=Ge.string.indexOf(">",Ge.pos);if(Gt!=-1){var Xt=Ge.string.substring(Ge.start,Gt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Xt)&&(be.md_inside=!0)}return Ge.backUp(1),be.htmlState=ae.startState(ct),ht(Ge,be,Je)}if(Le.xml&&xt==="<"&&Ge.match(/^\/\w*?>/))return be.md_inside=!1,"tag";if(xt==="*"||xt==="_"){for(var ye=1,ue=Ge.pos==1?" ":Ge.string.charAt(Ge.pos-2);ye<3&&Ge.eat(xt);)ye++;var ce=Ge.peek()||" ",de=!/\s/.test(ce)&&(!ft.test(ce)||/\s/.test(ue)||ft.test(ue)),he=!/\s/.test(ue)&&(!ft.test(ue)||/\s/.test(ce)||ft.test(ce)),se=null,ke=null;if(ye%2&&(!be.em&&de&&(xt==="*"||!he||ft.test(ue))?se=!0:be.em==xt&&he&&(xt==="*"||!de||ft.test(ce))&&(se=!1)),ye>1&&(!be.strong&&de&&(xt==="*"||!he||ft.test(ue))?ke=!0:be.strong==xt&&he&&(xt==="*"||!de||ft.test(ce))&&(ke=!1)),ke!=null||se!=null){Le.highlightFormatting&&(be.formatting=se==null?"strong":ke==null?"em":"strong em"),se===!0&&(be.em=xt),ke===!0&&(be.strong=xt);var Kt=wt(be);return se===!1&&(be.em=!1),ke===!1&&(be.strong=!1),Kt}}else if(xt===" "&&(Ge.eat("*")||Ge.eat("_"))){if(Ge.peek()===" ")return wt(be);Ge.backUp(1)}if(Le.strikethrough){if(xt==="~"&&Ge.eatWhile(xt)){if(be.strikethrough){Le.highlightFormatting&&(be.formatting="strikethrough");var Kt=wt(be);return be.strikethrough=!1,Kt}else if(Ge.match(/^[^\s]/,!1))return be.strikethrough=!0,Le.highlightFormatting&&(be.formatting="strikethrough"),wt(be)}else if(xt===" "&&Ge.match(/^~~/,!0)){if(Ge.peek()===" ")return wt(be);Ge.backUp(2)}}if(Le.emoji&&xt===":"&&Ge.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){be.emoji=!0,Le.highlightFormatting&&(be.formatting="emoji");var gt=wt(be);return be.emoji=!1,gt}return xt===" "&&(Ge.match(/^ +$/,!1)?be.trailingSpace++:be.trailingSpace&&(be.trailingSpaceNewLine=!0)),wt(be)}function Oe(Ge,be){var Ye=Ge.next();if(Ye===">"){be.f=be.inline=bt,Le.highlightFormatting&&(be.formatting="link");var Pt=wt(be);return Pt?Pt+=" ":Pt="",Pt+pe.linkInline}return Ge.match(/^[^>]+/,!0),pe.linkInline}function Lt(Ge,be){if(Ge.eatSpace())return null;var Ye=Ge.next();return Ye==="("||Ye==="["?(be.f=be.inline=Ut(Ye==="("?")":"]"),Le.highlightFormatting&&(be.formatting="link-string"),be.linkHref=!0,wt(be)):"error"}var tt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Ut(Ge){return function(be,Ye){var Pt=be.next();if(Pt===Ge){Ye.f=Ye.inline=bt,Le.highlightFormatting&&(Ye.formatting="link-string");var xt=wt(Ye);return Ye.linkHref=!1,xt}return be.match(tt[Ge]),Ye.linkHref=!0,wt(Ye)}}function At(Ge,be){return Ge.match(/^([^\]\\]|\\.)*\]:/,!1)?(be.f=Mt,Ge.next(),Le.highlightFormatting&&(be.formatting="link"),be.linkText=!0,wt(be)):Bt(Ge,be,bt)}function Mt(Ge,be){if(Ge.match(/^\]:/,!0)){be.f=be.inline=Wt,Le.highlightFormatting&&(be.formatting="link");var Ye=wt(be);return be.linkText=!1,Ye}return Ge.match(/^([^\]\\]|\\.)+/,!0),pe.linkText}function Wt(Ge,be){return Ge.eatSpace()?null:(Ge.match(/^[^\s]+/,!0),Ge.peek()===void 0?be.linkTitle=!0:Ge.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),be.f=be.inline=bt,pe.linkHref+" url")}var It={startState:function(){return{f:Ce,prevLine:{stream:null},thisLine:{stream:null},block:Ce,htmlState:null,indentation:0,inline:bt,text:Qe,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(Ge){return{f:Ge.f,prevLine:Ge.prevLine,thisLine:Ge.thisLine,block:Ge.block,htmlState:Ge.htmlState&&ae.copyState(ct,Ge.htmlState),indentation:Ge.indentation,localMode:Ge.localMode,localState:Ge.localMode?ae.copyState(Ge.localMode,Ge.localState):null,inline:Ge.inline,text:Ge.text,formatting:!1,linkText:Ge.linkText,linkTitle:Ge.linkTitle,linkHref:Ge.linkHref,code:Ge.code,em:Ge.em,strong:Ge.strong,strikethrough:Ge.strikethrough,emoji:Ge.emoji,header:Ge.header,setext:Ge.setext,hr:Ge.hr,taskList:Ge.taskList,list:Ge.list,listStack:Ge.listStack.slice(0),quote:Ge.quote,indentedCode:Ge.indentedCode,trailingSpace:Ge.trailingSpace,trailingSpaceNewLine:Ge.trailingSpaceNewLine,md_inside:Ge.md_inside,fencedEndRE:Ge.fencedEndRE}},token:function(Ge,be){if(be.formatting=!1,Ge!=be.thisLine.stream){if(be.header=0,be.hr=!1,Ge.match(/^\s*$/,!0))return Re(be),null;if(be.prevLine=be.thisLine,be.thisLine={stream:Ge},be.taskList=!1,be.trailingSpace=0,be.trailingSpaceNewLine=!1,!be.localState&&(be.f=be.block,be.f!=Je)){var Ye=Ge.match(/^\s*/,!0)[0].replace(/\t/g,mt).length;if(be.indentation=Ye,be.indentationDiff=null,Ye>0)return null}}return be.f(Ge,be)},innerMode:function(Ge){return Ge.block==Je?{state:Ge.htmlState,mode:ct}:Ge.localState?{state:Ge.localState,mode:Ge.localMode}:{state:Ge,mode:It}},indent:function(Ge,be,Ye){return Ge.block==Je&&ct.indent?ct.indent(Ge.htmlState,be,Ye):Ge.localState&&Ge.localMode.indent?Ge.localMode.indent(Ge.localState,be,Ye):ae.Pass},blankLine:Re,getType:wt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return It},"xml"),ae.defineMIME("text/markdown","markdown"),ae.defineMIME("text/x-markdown","markdown")})},98101:function(Mn,tn,oe){(function(ae){ae(oe(89780))})(function(ae){"use strict";ae.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 Ae=0;Ae<ae.modeInfo.length;Ae++){var Le=ae.modeInfo[Ae];Le.mimes&&(Le.mime=Le.mimes[0])}ae.findModeByMIME=function(ct){ct=ct.toLowerCase();for(var xe=0;xe<ae.modeInfo.length;xe++){var Ee=ae.modeInfo[xe];if(Ee.mime==ct)return Ee;if(Ee.mimes){for(var pe=0;pe<Ee.mimes.length;pe++)if(Ee.mimes[pe]==ct)return Ee}}if(/\+xml$/.test(ct))return ae.findModeByMIME("application/xml");if(/\+json$/.test(ct))return ae.findModeByMIME("application/json")},ae.findModeByExtension=function(ct){ct=ct.toLowerCase();for(var xe=0;xe<ae.modeInfo.length;xe++){var Ee=ae.modeInfo[xe];if(Ee.ext){for(var pe=0;pe<Ee.ext.length;pe++)if(Ee.ext[pe]==ct)return Ee}}},ae.findModeByFileName=function(ct){for(var xe=0;xe<ae.modeInfo.length;xe++){var Ee=ae.modeInfo[xe];if(Ee.file&&Ee.file.test(ct))return Ee}var pe=ct.lastIndexOf("."),ve=pe>-1&&ct.substring(pe+1,ct.length);if(ve)return ae.findModeByExtension(ve)},ae.findModeByName=function(ct){ct=ct.toLowerCase();for(var xe=0;xe<ae.modeInfo.length;xe++){var Ee=ae.modeInfo[xe];if(Ee.name.toLowerCase()==ct)return Ee;if(Ee.alias){for(var pe=0;pe<Ee.alias.length;pe++)if(Ee.alias[pe].toLowerCase()==ct)return Ee}}}})},67549:function(Mn,tn,oe){(function(ae){ae(oe(89780))})(function(ae){"use strict";ae.defineMode("stex",function(Ae,Le){"use strict";function ct(pt,Ke){pt.cmdState.push(Ke)}function xe(pt){return pt.cmdState.length>0?pt.cmdState[pt.cmdState.length-1]:null}function Ee(pt){var Ke=pt.cmdState.pop();Ke&&Ke.closeBracket()}function pe(pt){for(var Ke=pt.cmdState,je=Ke.length-1;je>=0;je--){var ft=Ke[je];if(ft.name!="DEFAULT")return ft}return{styleIdentifier:function(){return null}}}function ve(pt,Ke,je){return function(){this.name=pt,this.bracketNo=0,this.style=Ke,this.styles=je,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=ve("importmodule","tag",["string","builtin"]),Me.documentclass=ve("documentclass","tag",["","atom"]),Me.usepackage=ve("usepackage","tag",["atom"]),Me.begin=ve("begin","tag",["atom"]),Me.end=ve("end","tag",["atom"]),Me.label=ve("label","tag",["atom"]),Me.ref=ve("ref","tag",["atom"]),Me.eqref=ve("eqref","tag",["atom"]),Me.cite=ve("cite","tag",["atom"]),Me.bibitem=ve("bibitem","tag",["atom"]),Me.Bibitem=ve("Bibitem","tag",["atom"]),Me.RBibitem=ve("RBibitem","tag",["atom"]),Me.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function _e(pt,Ke){pt.f=Ke}function vt(pt,Ke){var je;if(pt.match(/^\\[a-zA-Z@]+/)){var ft=pt.current().slice(1);return je=Me.hasOwnProperty(ft)?Me[ft]:Me.DEFAULT,je=new je,ct(Ke,je),_e(Ke,qe),je.style}if(pt.match(/^\\[$&%#{}_]/)||pt.match(/^\\[,;!\/\\]/))return"tag";if(pt.match("\\["))return _e(Ke,function(Bt,ht){return Fe(Bt,ht,"\\]")}),"keyword";if(pt.match("\\("))return _e(Ke,function(Bt,ht){return Fe(Bt,ht,"\\)")}),"keyword";if(pt.match("$$"))return _e(Ke,function(Bt,ht){return Fe(Bt,ht,"$$")}),"keyword";if(pt.match("$"))return _e(Ke,function(Bt,ht){return Fe(Bt,ht,"$")}),"keyword";var mt=pt.next();if(mt=="%")return pt.skipToEnd(),"comment";if(mt=="}"||mt=="]"){if(je=xe(Ke),je)je.closeBracket(mt),_e(Ke,qe);else return"error";return"bracket"}else return mt=="{"||mt=="["?(je=Me.DEFAULT,je=new je,ct(Ke,je),"bracket"):/\d/.test(mt)?(pt.eatWhile(/[\w.%]/),"atom"):(pt.eatWhile(/[\w\-_]/),je=pe(Ke),je.name=="begin"&&(je.argument=pt.current()),je.styleIdentifier())}function Fe(pt,Ke,je){if(pt.eatSpace())return null;if(je&&pt.match(je))return _e(Ke,vt),"keyword";if(pt.match(/^\\[a-zA-Z@]+/))return"tag";if(pt.match(/^[a-zA-Z]+/))return"variable-2";if(pt.match(/^\\[$&%#{}_]/)||pt.match(/^\\[,;!\/]/)||pt.match(/^[\^_&]/))return"tag";if(pt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(pt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ft=pt.next();return ft=="{"||ft=="}"||ft=="["||ft=="]"||ft=="("||ft==")"?"bracket":ft=="%"?(pt.skipToEnd(),"comment"):"error"}function qe(pt,Ke){var je=pt.peek(),ft;return je=="{"||je=="["?(ft=xe(Ke),ft.openBracket(je),pt.eat(je),_e(Ke,vt),"bracket"):/[ \t\r]/.test(je)?(pt.eat(je),null):(_e(Ke,vt),Ee(Ke),vt(pt,Ke))}return{startState:function(){var pt=Le.inMathMode?function(Ke,je){return Fe(Ke,je)}:vt;return{cmdState:[],f:pt}},copyState:function(pt){return{cmdState:pt.cmdState.slice(),f:pt.f}},token:function(pt,Ke){return Ke.f(pt,Ke)},blankLine:function(pt){pt.f=vt,pt.cmdState.length=0},lineComment:"%"}}),ae.defineMIME("text/x-stex","stex"),ae.defineMIME("text/x-latex","stex")})},15525:function(Mn,tn,oe){(function(ae){ae(oe(89780))})(function(ae){"use strict";var Ae={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},Le={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ae.defineMode("xml",function(ct,xe){var Ee=ct.indentUnit,pe={},ve=xe.htmlMode?Ae:Le;for(var Me in ve)pe[Me]=ve[Me];for(var Me in xe)pe[Me]=xe[Me];var _e,vt;function Fe(Oe,Lt){function tt(Mt){return Lt.tokenize=Mt,Mt(Oe,Lt)}var Ut=Oe.next();if(Ut=="<")return Oe.eat("!")?Oe.eat("[")?Oe.match("CDATA[")?tt(Ke("atom","]]>")):null:Oe.match("--")?tt(Ke("comment","-->")):Oe.match("DOCTYPE",!0,!0)?(Oe.eatWhile(/[\w\._\-]/),tt(je(1))):null:Oe.eat("?")?(Oe.eatWhile(/[\w\._\-]/),Lt.tokenize=Ke("meta","?>"),"meta"):(_e=Oe.eat("/")?"closeTag":"openTag",Lt.tokenize=qe,"tag bracket");if(Ut=="&"){var At;return Oe.eat("#")?Oe.eat("x")?At=Oe.eatWhile(/[a-fA-F\d]/)&&Oe.eat(";"):At=Oe.eatWhile(/[\d]/)&&Oe.eat(";"):At=Oe.eatWhile(/[\w\.\-:]/)&&Oe.eat(";"),At?"atom":"error"}else return Oe.eatWhile(/[^&<]/),null}Fe.isInText=!0;function qe(Oe,Lt){var tt=Oe.next();if(tt==">"||tt=="/"&&Oe.eat(">"))return Lt.tokenize=Fe,_e=tt==">"?"endTag":"selfcloseTag","tag bracket";if(tt=="=")return _e="equals",null;if(tt=="<"){Lt.tokenize=Fe,Lt.state=ht,Lt.tagName=Lt.tagStart=null;var Ut=Lt.tokenize(Oe,Lt);return Ut?Ut+" tag error":"tag error"}else return/[\'\"]/.test(tt)?(Lt.tokenize=pt(tt),Lt.stringStartCol=Oe.column(),Lt.tokenize(Oe,Lt)):(Oe.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function pt(Oe){var Lt=function(tt,Ut){for(;!tt.eol();)if(tt.next()==Oe){Ut.tokenize=qe;break}return"string"};return Lt.isInAttribute=!0,Lt}function Ke(Oe,Lt){return function(tt,Ut){for(;!tt.eol();){if(tt.match(Lt)){Ut.tokenize=Fe;break}tt.next()}return Oe}}function je(Oe){return function(Lt,tt){for(var Ut;(Ut=Lt.next())!=null;){if(Ut=="<")return tt.tokenize=je(Oe+1),tt.tokenize(Lt,tt);if(Ut==">")if(Oe==1){tt.tokenize=Fe;break}else return tt.tokenize=je(Oe-1),tt.tokenize(Lt,tt)}return"meta"}}function ft(Oe,Lt,tt){this.prev=Oe.context,this.tagName=Lt,this.indent=Oe.indented,this.startOfLine=tt,(pe.doNotIndent.hasOwnProperty(Lt)||Oe.context&&Oe.context.noIndent)&&(this.noIndent=!0)}function mt(Oe){Oe.context&&(Oe.context=Oe.context.prev)}function Bt(Oe,Lt){for(var tt;;){if(!Oe.context||(tt=Oe.context.tagName,!pe.contextGrabbers.hasOwnProperty(tt)||!pe.contextGrabbers[tt].hasOwnProperty(Lt)))return;mt(Oe)}}function ht(Oe,Lt,tt){return Oe=="openTag"?(tt.tagStart=Lt.column(),nt):Oe=="closeTag"?Re:ht}function nt(Oe,Lt,tt){return Oe=="word"?(tt.tagName=Lt.current(),vt="tag",et):pe.allowMissingTagName&&Oe=="endTag"?(vt="tag bracket",et(Oe,Lt,tt)):(vt="error",nt)}function Re(Oe,Lt,tt){if(Oe=="word"){var Ut=Lt.current();return tt.context&&tt.context.tagName!=Ut&&pe.implicitlyClosed.hasOwnProperty(tt.context.tagName)&&mt(tt),tt.context&&tt.context.tagName==Ut||pe.matchClosing===!1?(vt="tag",Ce):(vt="tag error",Je)}else return pe.allowMissingTagName&&Oe=="endTag"?(vt="tag bracket",Ce(Oe,Lt,tt)):(vt="error",Je)}function Ce(Oe,Lt,tt){return Oe!="endTag"?(vt="error",Ce):(mt(tt),ht)}function Je(Oe,Lt,tt){return vt="error",Ce(Oe,Lt,tt)}function et(Oe,Lt,tt){if(Oe=="word")return vt="attribute",wt;if(Oe=="endTag"||Oe=="selfcloseTag"){var Ut=tt.tagName,At=tt.tagStart;return tt.tagName=tt.tagStart=null,Oe=="selfcloseTag"||pe.autoSelfClosers.hasOwnProperty(Ut)?Bt(tt,Ut):(Bt(tt,Ut),tt.context=new ft(tt,Ut,At==tt.indented)),ht}return vt="error",et}function wt(Oe,Lt,tt){return Oe=="equals"?Qe:(pe.allowMissing||(vt="error"),et(Oe,Lt,tt))}function Qe(Oe,Lt,tt){return Oe=="string"?bt:Oe=="word"&&pe.allowUnquoted?(vt="string",et):(vt="error",et(Oe,Lt,tt))}function bt(Oe,Lt,tt){return Oe=="string"?bt:et(Oe,Lt,tt)}return{startState:function(Oe){var Lt={tokenize:Fe,state:ht,indented:Oe||0,tagName:null,tagStart:null,context:null};return Oe!=null&&(Lt.baseIndent=Oe),Lt},token:function(Oe,Lt){if(!Lt.tagName&&Oe.sol()&&(Lt.indented=Oe.indentation()),Oe.eatSpace())return null;_e=null;var tt=Lt.tokenize(Oe,Lt);return(tt||_e)&&tt!="comment"&&(vt=null,Lt.state=Lt.state(_e||tt,Oe,Lt),vt&&(tt=vt=="error"?tt+" error":vt)),tt},indent:function(Oe,Lt,tt){var Ut=Oe.context;if(Oe.tokenize.isInAttribute)return Oe.tagStart==Oe.indented?Oe.stringStartCol+1:Oe.indented+Ee;if(Ut&&Ut.noIndent)return ae.Pass;if(Oe.tokenize!=qe&&Oe.tokenize!=Fe)return tt?tt.match(/^(\s*)/)[0].length:0;if(Oe.tagName)return pe.multilineTagIndentPastTag!==!1?Oe.tagStart+Oe.tagName.length+2:Oe.tagStart+Ee*(pe.multilineTagIndentFactor||1);if(pe.alignCDATA&&/<!\[CDATA\[/.test(Lt))return 0;var At=Lt&&/^<(\/)?([\w_:\.-]*)/.exec(Lt);if(At&&At[1])for(;Ut;)if(Ut.tagName==At[2]){Ut=Ut.prev;break}else if(pe.implicitlyClosed.hasOwnProperty(Ut.tagName))Ut=Ut.prev;else break;else if(At)for(;Ut;){var Mt=pe.contextGrabbers[Ut.tagName];if(Mt&&Mt.hasOwnProperty(At[2]))Ut=Ut.prev;else break}for(;Ut&&Ut.prev&&!Ut.startOfLine;)Ut=Ut.prev;return Ut?Ut.indent+Ee:Oe.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:pe.htmlMode?"html":"xml",helperType:pe.htmlMode?"html":"xml",skipAttribute:function(Oe){Oe.state==Qe&&(Oe.state=et)},xmlCurrentTag:function(Oe){return Oe.tagName?{name:Oe.tagName,close:Oe.type=="closeTag"}:null},xmlCurrentContext:function(Oe){for(var Lt=[],tt=Oe.context;tt;tt=tt.prev)tt.tagName&&Lt.push(tt.tagName);return Lt.reverse()}}}),ae.defineMIME("text/xml","xml"),ae.defineMIME("application/xml","xml"),ae.mimeModes.hasOwnProperty("text/html")||ae.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(Mn,tn,oe){"use strict";oe.d(tn,{hP:function(){return Xt}});var ae=function(ye,ue){return(ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,de){ce.__proto__=de}||function(ce,de){for(var he in de)Object.prototype.hasOwnProperty.call(de,he)&&(ce[he]=de[he])})(ye,ue)};function Ae(ye,ue){function ce(){this.constructor=ye}ae(ye,ue),ye.prototype=ue===null?Object.create(ue):(ce.prototype=ue.prototype,new ce)}function Le(ye,ue,ce,de){return new(ce||(ce=Promise))(function(he,se){function ke(Be){try{Ie(de.next(Be))}catch(yt){se(yt)}}function gt(Be){try{Ie(de.throw(Be))}catch(yt){se(yt)}}function Ie(Be){var yt;Be.done?he(Be.value):(yt=Be.value,yt instanceof ce?yt:new ce(function(rt){rt(yt)})).then(ke,gt)}Ie((de=de.apply(ye,ue||[])).next())})}function ct(ye,ue){var ce,de,he,se,ke={label:0,sent:function(){if(1&he[0])throw he[1];return he[1]},trys:[],ops:[]};return se={next:gt(0),throw:gt(1),return:gt(2)},typeof Symbol=="function"&&(se[Symbol.iterator]=function(){return this}),se;function gt(Ie){return function(Be){return function(yt){if(ce)throw new TypeError("Generator is already executing.");for(;ke;)try{if(ce=1,de&&(he=2&yt[0]?de.return:yt[0]?de.throw||((he=de.return)&&he.call(de),0):de.next)&&!(he=he.call(de,yt[1])).done)return he;switch(de=0,he&&(yt=[2&yt[0],he.value]),yt[0]){case 0:case 1:he=yt;break;case 4:return ke.label++,{value:yt[1],done:!1};case 5:ke.label++,de=yt[1],yt=[0];continue;case 7:yt=ke.ops.pop(),ke.trys.pop();continue;default:if(he=ke.trys,!((he=he.length>0&&he[he.length-1])||yt[0]!==6&&yt[0]!==2)){ke=0;continue}if(yt[0]===3&&(!he||yt[1]>he[0]&&yt[1]<he[3])){ke.label=yt[1];break}if(yt[0]===6&&ke.label<he[1]){ke.label=he[1],he=yt;break}if(he&&ke.label<he[2]){ke.label=he[2],ke.ops.push(yt);break}he[2]&&ke.ops.pop(),ke.trys.pop();continue}yt=ue.call(ye,ke)}catch(rt){yt=[6,rt],de=0}finally{ce=he=0}if(5&yt[0])throw yt[1];return{value:yt[0]?yt[1]:void 0,done:!0}}([Ie,Be])}}}function xe(){for(var ye=0,ue=0,ce=arguments.length;ue<ce;ue++)ye+=arguments[ue].length;var de=Array(ye),he=0;for(ue=0;ue<ce;ue++)for(var se=arguments[ue],ke=0,gt=se.length;ke<gt;ke++,he++)de[he]=se[ke];return de}var Ee=function(){function ye(){}return ye.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ye.setAttributes=function(ue,ce){for(var de=0,he=ce;de<he.length;de++){var se=he[de],ke=se[0],gt=se[1];ue.setAttribute(ke,gt)}},ye.createRect=function(ue,ce,de){var he=document.createElementNS("http://www.w3.org/2000/svg","rect");return he.setAttribute("width",ue.toString()),he.setAttribute("height",ce.toString()),de&&ye.setAttributes(he,de),he},ye.createLine=function(ue,ce,de,he,se){var ke=document.createElementNS("http://www.w3.org/2000/svg","line");return ke.setAttribute("x1",ue.toString()),ke.setAttribute("y1",ce.toString()),ke.setAttribute("x2",de.toString()),ke.setAttribute("y2",he.toString()),se&&ye.setAttributes(ke,se),ke},ye.createPolygon=function(ue,ce){var de=document.createElementNS("http://www.w3.org/2000/svg","polygon");return de.setAttribute("points",ue),ce&&ye.setAttributes(de,ce),de},ye.createCircle=function(ue,ce){var de=document.createElementNS("http://www.w3.org/2000/svg","circle");return de.setAttribute("cx",(ue/2).toString()),de.setAttribute("cy",(ue/2).toString()),de.setAttribute("r",ue.toString()),ce&&ye.setAttributes(de,ce),de},ye.createEllipse=function(ue,ce,de){var he=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return he.setAttribute("cx",(ue/2).toString()),he.setAttribute("cy",(ce/2).toString()),he.setAttribute("rx",(ue/2).toString()),he.setAttribute("ry",(ce/2).toString()),de&&ye.setAttributes(he,de),he},ye.createGroup=function(ue){var ce=document.createElementNS("http://www.w3.org/2000/svg","g");return ue&&ye.setAttributes(ce,ue),ce},ye.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ye.createMarker=function(ue,ce,de,he,se,ke,gt){var Ie=document.createElementNS("http://www.w3.org/2000/svg","marker");return ye.setAttributes(Ie,[["id",ue],["orient",ce],["markerWidth",de.toString()],["markerHeight",he.toString()],["refX",se.toString()],["refY",ke.toString()]]),Ie.appendChild(gt),Ie},ye.createText=function(ue){var ce=document.createElementNS("http://www.w3.org/2000/svg","text");return ce.setAttribute("x","0"),ce.setAttribute("y","0"),ue&&ye.setAttributes(ce,ue),ce},ye.createTSpan=function(ue,ce){var de=document.createElementNS("http://www.w3.org/2000/svg","tspan");return de.textContent=ue,ce&&ye.setAttributes(de,ce),de},ye.createImage=function(ue){var ce=document.createElementNS("http://www.w3.org/2000/svg","image");return ue&&ye.setAttributes(ce,ue),ce},ye.createPoint=function(ue,ce){var de=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return de.x=ue,de.y=ce,de},ye.createPath=function(ue,ce){var de=document.createElementNS("http://www.w3.org/2000/svg","path");return de.setAttribute("d",ue),ce&&ye.setAttributes(de,ce),de},ye}(),pe=function(){function ye(){}return ye.addKey=function(ue){ye.key=ue},Object.defineProperty(ye,"isLicensed",{get:function(){return!!ye.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ye.key)},enumerable:!1,configurable:!0}),ye}(),ve=function(){function ye(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ye.prototype.rasterize=function(ue,ce,de){var he=this;return new Promise(function(se){var ke=de!==void 0?de:document.createElement("canvas");ue===null&&(he.markersOnly=!0,he.naturalSize=!1);var gt=document.createElementNS("http://www.w3.org/2000/svg","svg");gt.setAttribute("xmlns","http://www.w3.org/2000/svg"),gt.setAttribute("width",ce.width.baseVal.valueAsString),gt.setAttribute("height",ce.height.baseVal.valueAsString),gt.setAttribute("viewBox","0 0 "+ce.viewBox.baseVal.width.toString()+" "+ce.viewBox.baseVal.height.toString()),gt.innerHTML=ce.innerHTML,he.naturalSize===!0?(gt.width.baseVal.value=ue.naturalWidth,gt.height.baseVal.value=ue.naturalHeight):he.width!==void 0&&he.height!==void 0&&(gt.width.baseVal.value=he.width,gt.height.baseVal.value=he.height),ke.width=gt.width.baseVal.value,ke.height=gt.height.baseVal.value;var Ie=gt.outerHTML,Be=ke.getContext("2d");he.markersOnly!==!0&&Be.drawImage(ue,0,0,ke.width,ke.height);var yt=window.URL,rt=new Image(ke.width,ke.height);rt.setAttribute("crossOrigin","anonymous");var Ve=new Blob([Ie],{type:"image/svg+xml"}),Ct=yt.createObjectURL(Ve);rt.onload=function(){Be.drawImage(rt,0,0),yt.revokeObjectURL(Ct);var rn=ke.toDataURL(he.imageType,he.imageQuality);se(rn)},rt.src=Ct})},ye}(),Me=function(){},_e=function(){function ye(ue){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ue+"_"}return Object.defineProperty(ye.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ye.prototype.addClass=function(ue){return this.styleSheet===void 0&&this.addStyleSheet(),ue.name=""+this.classNamePrefix+ue.localName,this.classes.push(ue),this.styleSheet.sheet.insertRule("."+ue.name+" {"+ue.style+"}",this.styleSheet.sheet.cssRules.length),ue},ye.prototype.addRule=function(ue){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ue),this.styleSheet.sheet.insertRule(ue.selector+" {"+ue.style+"}",this.styleSheet.sheet.cssRules.length)},ye.prototype.addStyleSheet=function(){var ue;this.styleSheet=document.createElement("style"),((ue=this.styleSheetRoot)!==null&&ue!==void 0?ue:document.head).appendChild(this.styleSheet),this.addRule(new vt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new vt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new vt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Fe("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Fe("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},ye.prototype.removeStyleSheet=function(){var ue;this.styleSheet&&(((ue=this.styleSheetRoot)!==null&&ue!==void 0?ue:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ye}(),vt=function(ye,ue){this.selector=ye,this.style=ue},Fe=function(ye,ue){this.localName=ye,this.style=ue},qe=function(){function ye(ue,ce,de,he,se){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ue,this.displayMode=ce,this.markerItems=de,this.uiStyleSettings=he,this.styles=se,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ye.prototype.show=function(ue){var ce=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var de=document.createElement("div");de.className=this.toolbarBlockStyleClass.name,de.style.whiteSpace="nowrap",this.uiContainer.appendChild(de),this.addActionButton(de,'<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(de,'<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(de,'<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(de,'<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(de,'<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(de,'<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(de,'<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(de,'<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(se){var ke=document.createElement("div");ke.className=""+ce.toolbarButtonStyleClass.name,ke.setAttribute("data-type-name",se.typeName),ke.innerHTML=se.icon,ke.addEventListener("click",function(){ce.markerToolbarButtonClicked(ke,se)}),ce.buttons.push(ke),ce.markerButtons.push(ke)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var he=document.createElement("div");he.className=this.toolbarBlockStyleClass.name,he.style.whiteSpace="nowrap",he.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(he),this.addActionButton(he,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(he,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ye.prototype.addButtonClickListener=function(ue){this.buttonClickListeners.push(ue)},ye.prototype.removeButtonClickListener=function(ue){this.buttonClickListeners.indexOf(ue)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ue),1)},ye.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ye.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ue=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ce=0;ce<this.markerButtons.length;ce++)ce<ue||ce===ue&&this.markerButtons.length-1===ue?this.markerButtonBlock.appendChild(this.markerButtons[ce]):(ce===ue&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ce]))}},ye.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ye.prototype.resetButtonStyles=function(){var ue=this;this.buttons.forEach(function(ce){ce.className=ce.className.replace(ue.uiStyleSettings.toolbarButtonStyleColorsClassName?ue.uiStyleSettings.toolbarButtonStyleColorsClassName:ue.toolbarButtonStyleColorsClass.name,"").trim(),ce.className=ce.className.replace(ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ue.toolbarActiveButtonStyleColorsClass.name,"").trim(),ce.className+=" "+(ue.uiStyleSettings.toolbarButtonStyleColorsClassName?ue.uiStyleSettings.toolbarButtonStyleColorsClassName:ue.toolbarButtonStyleColorsClass.name)})},ye.prototype.addActionButton=function(ue,ce,de){var he=this,se=document.createElement("div");switch(se.className=""+this.toolbarButtonStyleClass.name,se.innerHTML=ce,se.setAttribute("data-action",de),se.addEventListener("click",function(){he.actionToolbarButtonClicked(se,de)}),de){case"select":se.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":se.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":se.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":se.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":se.style.fill=this.uiStyleSettings.closeButtonColor}ue.appendChild(se),this.buttons.push(se)},ye.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Fe("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 Fe("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Fe("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Fe("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 Fe("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var ue=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Fe("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
|
|
|
padding: `+ue+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Fe("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Fe("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new vt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new vt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},ye.prototype.markerToolbarButtonClicked=function(ue,ce){this.setActiveButton(ue),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(de){return de("marker",ce)}),this.markerButtonOverflowBlock.style.display="none"},ye.prototype.actionToolbarButtonClicked=function(ue,ce){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(de){return de("action",ce)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ye.prototype.setActiveButton=function(ue){this.resetButtonStyles(),ue.className=ue.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ue.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ye.prototype.setActiveMarkerButton=function(ue){var ce=this.markerButtons.find(function(de){return de.getAttribute("data-type-name")===ue});ce&&this.setActiveButton(ce)},ye.prototype.setCurrentMarker=function(ue){var ce=this;this.currentMarker=ue,this.buttons.filter(function(de){return/delete|notes/.test(de.getAttribute("data-action"))}).forEach(function(de){ce.currentMarker===void 0?(de.style.fillOpacity="0.4",de.style.pointerEvents="none"):(de.style.fillOpacity="1",de.style.pointerEvents="all")})},ye}(),pt=function(){function ye(ue,ce,de,he){this.panels=[],this.panelButtons=[],this.markerjsContainer=ue,this.displayMode=ce,this.uiStyleSettings=de,this.styles=he,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ye.prototype.addStyles=function(){var ue;this.toolboxStyleClass=this.styles.addClass(new Fe("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 Fe("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var ce=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Fe("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Fe("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Fe("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 Fe("toolbox-panel-row_colors",`
|
|
|
background-color: `+((ue=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ue!==void 0?ue:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Fe("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 Fe("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Fe("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new vt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new vt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},ye.prototype.show=function(ue){var ce;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ye.prototype.setPanelButtons=function(ue){var ce,de,he=this;this.panels=ue,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+" "+((de=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&de!==void 0?de:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(se){var ke;se.uiStyleSettings=he.uiStyleSettings;var gt=document.createElement("div");gt.className=he.toolboxButtonStyleClass.name+" "+((ke=he.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ke!==void 0?ke:he.toolboxButtonStyleColorsClass.name),gt.innerHTML=se.icon,gt.title=se.title,gt.addEventListener("click",function(){he.panelButtonClick(se)}),he.panelButtons.push(gt),he.buttonRow.appendChild(gt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ye.prototype.panelButtonClick=function(ue){var ce=this,de=-1;if(ue!==this.activePanel){de=this.panels.indexOf(ue),this.panelRow.innerHTML="";var he=ue.getUi();he.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(he),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=ue}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ce.displayMode==="inline"?ce.panelRow.style.display="none":ce.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(se,ke){var gt,Ie;se.className=ce.toolboxButtonStyleClass.name+" "+(ke===de?""+((gt=ce.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&>!==void 0?gt:ce.toolboxActiveButtonStyleColorsClass.name):""+((Ie=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ie!==void 0?Ie:ce.toolboxButtonStyleColorsClass.name))})},ye}(),Ke=function(ye,ue){this.title=ye,this.icon=ue},je=function(ye){function ue(ce,de,he,se){var ke=ye.call(this,ce,se||'<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 ke.colors=[],ke.addTransparent=!1,ke.colorBoxes=[],ke.colors=de,ke.currentColor=he,ke.setCurrentColor=ke.setCurrentColor.bind(ke),ke.getColorBox=ke.getColorBox.bind(ke),ke}return Ae(ue,ye),ue.prototype.getUi=function(){var ce=this,de=document.createElement("div");return de.style.overflow="hidden",de.style.whiteSpace="nowrap",this.colors.forEach(function(he){var se=ce.getColorBox(he);de.appendChild(se),ce.colorBoxes.push(se)}),de},ue.prototype.getColorBox=function(ce){var de=this,he=this.uiStyleSettings.toolbarHeight/4,se=this.uiStyleSettings.toolbarHeight-he,ke=document.createElement("div");ke.style.display="inline-block",ke.style.boxSizing="content-box",ke.style.width=se-2+"px",ke.style.height=se-2+"px",ke.style.padding="1px",ke.style.marginRight="2px",ke.style.marginBottom="2px",ke.style.borderWidth="2px",ke.style.borderStyle="solid",ke.style.borderRadius=(se+2)/2+"px",ke.style.borderColor=ce===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ke.addEventListener("click",function(){de.setCurrentColor(ce,ke)});var gt=document.createElement("div");return gt.style.display="inline-block",gt.style.width=se-2+"px",gt.style.height=se-2+"px",gt.style.backgroundColor=ce,gt.style.borderRadius=se/2+"px",ce==="transparent"&&(gt.style.fill=this.uiStyleSettings.toolboxAccentColor,gt.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>`),ke.appendChild(gt),ke},ue.prototype.setCurrentColor=function(ce,de){var he=this;this.currentColor=ce,this.colorBoxes.forEach(function(se){se.style.borderColor=se===de?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ce)},ue}(Ke),ft=function(){function ye(ue,ce,de){this._state="new",this._isSelected=!1,this._container=ue,this._overlayContainer=ce,this.globalSettings=de,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ye.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ye.prototype.ownsTarget=function(ue){return!1},Object.defineProperty(ye.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ye.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ye.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ye.prototype.pointerDown=function(ue,ce){},ye.prototype.dblClick=function(ue,ce){},ye.prototype.manipulate=function(ue){},ye.prototype.pointerUp=function(ue){this.stateChanged()},ye.prototype.dispose=function(){},ye.prototype.addMarkerVisualToContainer=function(ue){this.container.childNodes.length>0?this.container.insertBefore(ue,this.container.childNodes[0]):this.container.appendChild(ue)},ye.prototype.getState=function(){return{typeName:ye.typeName,state:this.state,notes:this.notes}},ye.prototype.restoreState=function(ue){this._state=ue.state,this.notes=ue.notes},ye.prototype.scale=function(ue,ce){},ye.prototype.colorChanged=function(ue){this.onColorChanged&&this.onColorChanged(ue),this.stateChanged()},ye.prototype.fillColorChanged=function(ue){this.onFillColorChanged&&this.onFillColorChanged(ue),this.stateChanged()},ye.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ue=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ue.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ue)&&this.onStateChanged(this)}},ye.typeName="MarkerBase",ye}(),mt=function(){function ye(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ye.prototype.findGripByVisual=function(ue){return this.topLeft.ownsTarget(ue)?this.topLeft:this.topCenter.ownsTarget(ue)?this.topCenter:this.topRight.ownsTarget(ue)?this.topRight:this.centerLeft.ownsTarget(ue)?this.centerLeft:this.centerRight.ownsTarget(ue)?this.centerRight:this.bottomLeft.ownsTarget(ue)?this.bottomLeft:this.bottomCenter.ownsTarget(ue)?this.bottomCenter:this.bottomRight.ownsTarget(ue)?this.bottomRight:void 0},ye}(),Bt=function(){function ye(){this.GRIP_SIZE=10,this.visual=Ee.createGroup(),this.visual.appendChild(Ee.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Ee.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ye.prototype.ownsTarget=function(ue){return ue===this.visual||ue===this.visual.childNodes[0]||ue===this.visual.childNodes[1]},ye}(),ht=function(){function ye(){}return ye.toITransformMatrix=function(ue){return{a:ue.a,b:ue.b,c:ue.c,d:ue.d,e:ue.e,f:ue.f}},ye.toSVGMatrix=function(ue,ce){return ue.a=ce.a,ue.b=ce.b,ue.c=ce.c,ue.d=ce.d,ue.e=ce.e,ue.f=ce.f,ue},ye}(),nt=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,de,he)||this;return se.left=0,se.top=0,se.width=0,se.height=0,se.defaultSize={x:50,y:20},se.offsetX=0,se.offsetY=0,se.rotationAngle=0,se.CB_DISTANCE=10,se._suppressMarkerCreateEvent=!1,se.container.transform.baseVal.appendItem(Ee.createTransform()),se.setupControlBox(),se}return Ae(ue,ye),Object.defineProperty(ue.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"visual",{get:function(){return this._visual},set:function(ce){this._visual=ce;var de=Ee.createTransform();this._visual.transform.baseVal.appendItem(de)},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(ce){return!!ye.prototype.ownsTarget.call(this,ce)||!!(this.controlGrips.findGripByVisual(ce)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ce))},ue.prototype.pointerDown=function(ce,de){ye.prototype.pointerDown.call(this,ce,de),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 he=this.unrotatePoint(ce);if(this.manipulationStartX=he.x,this.manipulationStartY=he.y,this.offsetX=he.x-this.left,this.offsetY=he.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(de),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(de)){this.activeGrip=this.rotatorGrip;var se=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=se.x-this.width/2,this.top=se.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ke=this.container.transform.baseVal.getItem(0);ke.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ke,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ue.prototype.pointerUp=function(ce){var de=this.state;ye.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",de==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ue.prototype.moveVisual=function(ce){this.visual.style.transform="translate("+ce.x+"px, "+ce.y+"px)"},ue.prototype.manipulate=function(ce){var de=this.unrotatePoint(ce);this.state==="creating"?this.resize(ce):this.state==="move"?(this.left=this.manipulationStartLeft+(de.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(de.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(de):this.state==="rotate"&&this.rotate(ce)},ue.prototype.resize=function(ce){var de=this.manipulationStartLeft,he=this.manipulationStartWidth,se=this.manipulationStartTop,ke=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:de=this.manipulationStartLeft+ce.x-this.manipulationStartX,he=this.manipulationStartWidth+this.manipulationStartLeft-de;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:he=this.manipulationStartWidth+ce.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:se=this.manipulationStartTop+ce.y-this.manipulationStartY,ke=this.manipulationStartHeight+this.manipulationStartTop-se;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ke=this.manipulationStartHeight+ce.y-this.manipulationStartY}he>=0?(this.left=de,this.width=he):(this.left=de+he,this.width=-he),ke>=0?(this.top=se,this.height=ke):(this.top=se+ke,this.height=-ke),this.setSize()},ue.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ue.prototype.rotate=function(ce){if(Math.abs(ce.x-this.centerX)>.1){var de=Math.sign(ce.x-this.centerX);this.rotationAngle=180*Math.atan((ce.y-this.centerY)/(ce.x-this.centerX))/Math.PI+90*de,this.applyRotation()}},ue.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)},ue.prototype.rotatePoint=function(ce){if(this.rotationAngle===0)return ce;var de=this.container.getCTM(),he=Ee.createPoint(ce.x,ce.y);return{x:(he=he.matrixTransform(de)).x,y:he.y}},ue.prototype.unrotatePoint=function(ce){if(this.rotationAngle===0)return ce;var de=this.container.getCTM();de=de.inverse();var he=Ee.createPoint(ce.x,ce.y);return{x:(he=he.matrixTransform(de)).x,y:he.y}},ue.prototype.select=function(){ye.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){ye.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup();var ce=Ee.createTransform();ce.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ce),this.container.appendChild(this.controlBox),this.controlRect=Ee.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=Ee.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new mt,this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){var 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()},ue.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},ue.prototype.createGrip=function(){var ce=new Bt;return ce.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(ce.visual),ce},ue.prototype.positionGrips=function(){var ce=this.controlGrips.topLeft.GRIP_SIZE,de=-ce/2,he=de,se=(this.width+this.CB_DISTANCE)/2-ce/2,ke=(this.height+this.CB_DISTANCE)/2-ce/2,gt=this.height+this.CB_DISTANCE-ce/2,Ie=this.width+this.CB_DISTANCE-ce/2;this.positionGrip(this.controlGrips.topLeft.visual,de,he),this.positionGrip(this.controlGrips.topCenter.visual,se,he),this.positionGrip(this.controlGrips.topRight.visual,Ie,he),this.positionGrip(this.controlGrips.centerLeft.visual,de,ke),this.positionGrip(this.controlGrips.centerRight.visual,Ie,ke),this.positionGrip(this.controlGrips.bottomLeft.visual,de,gt),this.positionGrip(this.controlGrips.bottomCenter.visual,se,gt),this.positionGrip(this.controlGrips.bottomRight.visual,Ie,gt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,se,he-3*this.CB_DISTANCE)},ue.prototype.positionGrip=function(ce,de,he){var se=ce.transform.baseVal.getItem(0);se.setTranslate(de,he),ce.transform.baseVal.replaceItem(se,0)},ue.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ue.prototype.showControlBox=function(){this.controlBox.style.display=""},ue.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ht.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ht.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ye.prototype.getState.call(this))},ue.prototype.restoreState=function(ce){ye.prototype.restoreState.call(this,ce);var de=ce;this.left=de.left,this.top=de.top,this.width=de.width,this.height=de.height,this.rotationAngle=de.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ht.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,de.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ht.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,de.containerTransformMatrix))},ue.prototype.scale=function(ce,de){ye.prototype.scale.call(this,ce,de);var he=this.rotatePoint({x:this.left,y:this.top}),se=this.unrotatePoint({x:he.x*ce,y:he.y*de});this.left=se.x,this.top=se.y,this.width=this.width*ce,this.height=this.height*de,this.adjustControlBox()},ue}(ft),Re=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,de,he)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.opacity=1,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.createVisual=se.createVisual.bind(se),se}return Ae(ue,ye),ue.prototype.ownsTarget=function(ce){return!(!ye.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},ue.prototype.createVisual=function(){this.visual=Ee.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(ce,de){ye.prototype.pointerDown.call(this,ce,de),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},ue.prototype.manipulate=function(ce){ye.prototype.manipulate.call(this,ce)},ue.prototype.resize=function(ce){ye.prototype.resize.call(this,ce),this.setSize()},ue.prototype.setSize=function(){ye.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(ce){ye.prototype.pointerUp.call(this,ce),this.setSize()},ue.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},ue.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ue.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ue.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ye.prototype.getState.call(this))},ue.prototype.restoreState=function(ce){var de=ce;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.opacity=de.opacity,this.createVisual(),ye.prototype.restoreState.call(this,ce),this.setSize()},ue.prototype.scale=function(ce,de){ye.prototype.scale.call(this,ce,de),this.setSize()},ue.title="Rectangle marker",ue}(nt),Ce=function(ye){function ue(ce,de,he,se){var ke=ye.call(this,ce,se||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ke.widths=[],ke.widthBoxes=[],ke.widths=de,ke.currentWidth=he,ke.setCurrentWidth=ke.setCurrentWidth.bind(ke),ke}return Ae(ue,ye),ue.prototype.getUi=function(){var ce=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",this.widths.forEach(function(he){var se=document.createElement("div");se.style.display="flex",se.style.flexGrow="2",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=he===ce.currentWidth?ce.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ce.setCurrentWidth(he,se)}),de.appendChild(se);var ke=document.createElement("div");ke.innerText=he.toString(),ke.style.marginRight="5px",se.appendChild(ke);var gt=document.createElement("div");gt.style.minHeight="20px",gt.style.flexGrow="2",gt.style.display="flex",gt.style.alignItems="center";var Ie=document.createElement("hr");Ie.style.minWidth="20px",Ie.style.border="0px",Ie.style.borderTop=he+"px solid "+ce.uiStyleSettings.toolboxColor,Ie.style.flexGrow="2",gt.appendChild(Ie),se.appendChild(gt),ce.widthBoxes.push(se)}),de},ue.prototype.setCurrentWidth=function(ce,de){var he=this;this.currentWidth=ce,this.widthBoxes.forEach(function(se){se.style.borderColor=se===de?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ue}(Ke),Je=function(ye){function ue(ce,de,he,se){var ke=ye.call(this,ce,se||'<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 ke.styles=[],ke.styleBoxes=[],ke.styles=de,ke.currentStyle=he,ke.setCurrentStyle=ke.setCurrentStyle.bind(ke),ke}return Ae(ue,ye),ue.prototype.getUi=function(){var ce=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",this.styles.forEach(function(he){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.overflow="hidden",se.style.maxWidth=100/ce.styles.length-5+"%",se.style.borderColor=he===ce.currentStyle?ce.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ce.setCurrentStyle(he,se)}),de.appendChild(se);var ke=document.createElement("div");ke.style.minHeight="20px",ke.style.flexGrow="2",ke.style.overflow="hidden";var gt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ce.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(he!==""?'stroke-dasharray="'+he+'"':"")+` />
|
|
|
</svg>`;ke.innerHTML=gt,se.appendChild(ke),ce.styleBoxes.push(se)}),de},ue.prototype.setCurrentStyle=function(ce,de){var he=this;this.currentStyle=ce,this.styleBoxes.forEach(function(se){se.style.borderColor=se===de?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ue}(Ke),et=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,de,he)||this;return se.strokeColor=he.defaultColor,se.strokeWidth=he.defaultStrokeWidth,se.strokeDasharray=he.defaultStrokeDasharray,se.strokePanel=new je("Line color",he.defaultColorSet,he.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Ce("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new Je("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return Ae(ue,ye),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=ye.prototype.getState.call(this);return ce.typeName=ue.typeName,ce},ue.typeName="FrameMarker",ue.title="Frame marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ue}(Re),wt=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"},Qe=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,de,he)||this;return se.x1=0,se.y1=0,se.x2=0,se.y2=0,se.defaultLength=50,se.manipulationStartX=0,se.manipulationStartY=0,se.manipulationStartX1=0,se.manipulationStartY1=0,se.manipulationStartX2=0,se.manipulationStartY2=0,se.setupControlBox(),se}return Ae(ue,ye),ue.prototype.ownsTarget=function(ce){return!!ye.prototype.ownsTarget.call(this,ce)||!(!this.grip1.ownsTarget(ce)&&!this.grip2.ownsTarget(ce))},ue.prototype.pointerDown=function(ce,de){ye.prototype.pointerDown.call(this,ce,de),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(de)?this.activeGrip=this.grip1:this.grip2.ownsTarget(de)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ue.prototype.pointerUp=function(ce){var de=this.state;ye.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",de==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ue.prototype.adjustVisual=function(){},ue.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)},ue.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()},ue.prototype.select=function(){ye.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){ye.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=Ee.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){this.positionGrips()},ue.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ue.prototype.createGrip=function(){var ce=new Bt;return ce.visual.transform.baseVal.appendItem(Ee.createTransform()),this.controlBox.appendChild(ce.visual),ce},ue.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)},ue.prototype.positionGrip=function(ce,de,he){var se=ce.transform.baseVal.getItem(0);se.setTranslate(de,he),ce.transform.baseVal.replaceItem(se,0)},ue.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ye.prototype.getState.call(this))},ue.prototype.restoreState=function(ce){ye.prototype.restoreState.call(this,ce);var de=ce;this.x1=de.x1,this.y1=de.y1,this.x2=de.x2,this.y2=de.y2},ue.prototype.scale=function(ce,de){ye.prototype.scale.call(this,ce,de),this.x1=this.x1*ce,this.y1=this.y1*de,this.x2=this.x2*ce,this.y2=this.y2*de,this.adjustVisual(),this.adjustControlBox()},ue}(ft),bt=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,de,he)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.strokeColor=he.defaultColor,se.strokeWidth=he.defaultStrokeWidth,se.strokeDasharray=he.defaultStrokeDasharray,se.strokePanel=new je("Line color",he.defaultColorSet,he.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Ce("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new Je("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return Ae(ue,ye),ue.prototype.ownsTarget=function(ce){return!(!ye.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorLine&&ce!==this.visibleLine)},ue.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorLine=Ee.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Ee.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(ce,de){ye.prototype.pointerDown.call(this,ce,de),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ue.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),Ee.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},ue.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ye.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){ye.prototype.restoreState.call(this,ce);var de=ce;this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.createVisual(),this.adjustVisual()},ue.typeName="LineMarker",ue.title="Line marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ue}(Qe),Oe=function(ye){function ue(ce,de,he,se){var ke=ye.call(this,ce,se||'<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 ke.fonts=[],ke.fontBoxes=[],ke.fonts=de,ke.currentFont=he,ke.setCurrentFont=ke.setCurrentFont.bind(ke),ke}return Ae(ue,ye),ue.prototype.getUi=function(){var ce=this,de=document.createElement("div");return de.style.overflow="hidden",de.style.flexGrow="2",this.fonts.forEach(function(he){var se=document.createElement("div");se.style.display="inline-block",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.overflow="hidden",se.style.maxWidth=100/ce.fonts.length-5+"%",se.style.borderColor=he===ce.currentFont?ce.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ce.setCurrentFont(he,se)}),de.appendChild(se);var ke=document.createElement("div");ke.style.display="flex",ke.style.minHeight="20px",ke.style.flexGrow="2",ke.style.fontFamily=he,ke.style.overflow="hidden";var gt=document.createElement("div");gt.style.whiteSpace="nowrap",gt.style.overflow="hidden",gt.style.textOverflow="ellipsis",gt.innerHTML="The quick brown fox jumps over the lazy dog",ke.appendChild(gt),se.appendChild(ke),ce.fontBoxes.push(se)}),de},ue.prototype.setCurrentFont=function(ce,de){var he=this;this.currentFont=ce,this.fontBoxes.forEach(function(se){se.style.borderColor=se===de?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ue}(Ke),Lt=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,de,he)||this;return se.color="transparent",se.padding=5,se.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",se.text=se.DEFAULT_TEXT,se.isMoved=!1,se.color=he.defaultColor,se.fontFamily=he.defaultFontFamily,se.defaultSize={x:100,y:30},se.setColor=se.setColor.bind(se),se.setFont=se.setFont.bind(se),se.renderText=se.renderText.bind(se),se.sizeText=se.sizeText.bind(se),se.textEditDivClicked=se.textEditDivClicked.bind(se),se.showTextEditor=se.showTextEditor.bind(se),se.setSize=se.setSize.bind(se),se.positionTextEditor=se.positionTextEditor.bind(se),se.colorPanel=new je("Color",he.defaultColorSet,he.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.fontFamilyPanel=new Oe("Font",he.defaultFontFamilies,he.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se}return Ae(ue,ye),ue.prototype.ownsTarget=function(ce){if(ye.prototype.ownsTarget.call(this,ce)||ce===this.visual||ce===this.textElement||ce===this.bgRectangle)return!0;var de=!1;return this.textElement.childNodes.forEach(function(he){he===ce&&(de=!0)}),de},ue.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.bgRectangle=Ee.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Ee.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.textElement.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ue.prototype.pointerDown=function(ce,de){ye.prototype.pointerDown.call(this,ce,de),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},ue.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(de){ce.textElement.appendChild(Ee.createTSpan(de.trim()===""?" ":de.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ue.prototype.getTextScale=function(){var ce=this.textElement.getBBox(),de=1;if(ce.width>0&&ce.height>0){var he=(1*this.width-this.width*this.padding*2/100)/ce.width,se=(1*this.height-this.height*this.padding*2/100)/ce.height;de=Math.min(he,se)}return de},ue.prototype.getTextPosition=function(ce){var de=this.textElement.getBBox(),he=0,se=0;return de.width>0&&de.height>0&&(he=(this.width-de.width*ce)/2,se=this.height/2-de.height*ce/2),{x:he,y:se}},ue.prototype.sizeText=function(){var ce=this.textElement.getBBox(),de=this.getTextScale(),he=this.getTextPosition(de);he.y-=ce.y*de,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+he.x+"px, "+he.y+"px) scale("+de+", "+de+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(he.x,he.y),this.textElement.transform.baseVal.getItem(1).setScale(de,de))},ue.prototype.manipulate=function(ce){ye.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)},ue.prototype.resize=function(ce){ye.prototype.resize.call(this,ce),this.isMoved=!0,this.setSize(),this.sizeText()},ue.prototype.setSize=function(){ye.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ue.prototype.pointerUp=function(ce){var de=this.state;de==="creating"&&(this._suppressMarkerCreateEvent=!0),ye.prototype.pointerUp.call(this,ce),this.setSize(),(de==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.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(de){de.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var de=Number.parseFloat(ce.textEditor.style.fontSize);ce.textEditor.clientWidth>=Number.parseInt(ce.textEditor.style.maxWidth)&&de>.9;)de-=.1,ce.textEditor.style.fontSize=Math.max(de,.9)+"em"}),this.textEditor.addEventListener("keyup",function(de){de.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(de){if(de.clipboardData){var he=de.clipboardData.getData("text"),se=window.getSelection();if(!se.rangeCount)return!1;se.deleteFromDocument(),se.getRangeAt(0).insertNode(document.createTextNode(he)),de.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")},ue.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ce=this.getTextScale(),de=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),he=this.textElement.getBBox(),se={x:he.width*ce,y:he.height*ce};de.x-=se.x/2,de.y-=se.y/2,this.textEditor.style.top=de.y+"px",this.textEditor.style.left=de.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-de.x+"px",this.textEditor.style.fontSize=Math.max(16*ce,12)+"px",this.textElement.style.display="none"}},ue.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()},ue.prototype.select=function(){ye.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ue.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ye.prototype.deselect.call(this)},ue.prototype.dblClick=function(ce,de){ye.prototype.dblClick.call(this,ce,de),this.showTextEditor()},ue.prototype.setColor=function(ce){this.textElement&&Ee.setAttributes(this.textElement,[["fill",ce]]),this.color=ce,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ce)},ue.prototype.setFont=function(ce){this.textElement&&Ee.setAttributes(this.textElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ue.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ue.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ye.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){var de=ce;this.color=de.color,this.fontFamily=de.fontFamily,this.padding=de.padding,this.text=de.text,this.createVisual(),ye.prototype.restoreState.call(this,ce),this.setSize()},ue.prototype.scale=function(ce,de){ye.prototype.scale.call(this,ce,de),this.setSize(),this.sizeText(),this.positionTextEditor()},ue.typeName="TextMarker",ue.title="Text marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',ue}(nt),tt=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,de,he)||this;return se.color="transparent",se.lineWidth=3,se.drawing=!1,se.pixelRatio=1,se.color=he.defaultColor,se.lineWidth=he.defaultStrokeWidth,se.pixelRatio=he.freehandPixelRatio,se.setColor=se.setColor.bind(se),se.addCanvas=se.addCanvas.bind(se),se.finishCreation=se.finishCreation.bind(se),se.setLineWidth=se.setLineWidth.bind(se),se.colorPanel=new je("Color",he.defaultColorSet,he.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.lineWidthPanel=new Ce("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),se.lineWidthPanel.onWidthChanged=se.setLineWidth,se}return Ae(ue,ye),ue.prototype.ownsTarget=function(ce){return!(!ye.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.drawingImage)},ue.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.drawingImage=Ee.createImage(),this.visual.appendChild(this.drawingImage);var ce=Ee.createTransform();this.visual.transform.baseVal.appendItem(ce),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(ce,de){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):ye.prototype.pointerDown.call(this,ce,de)},ue.prototype.manipulate=function(ce){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ce.x,ce.y),this.canvasContext.stroke()):ye.prototype.manipulate.call(this,ce)},ue.prototype.resize=function(ce){ye.prototype.resize.call(this,ce),Ee.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(ce){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ye.prototype.pointerUp.call(this,ce)},ue.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},ue.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ye.prototype.select.call(this)},ue.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ye.prototype.deselect.call(this)},ue.prototype.finishCreation=function(){for(var ce=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),de=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],he=de[0],se=de[1],ke=de[2],gt=de[3],Ie=!1,Be=0;Be<this.canvasElement.height;Be++)for(var yt=0;yt<this.canvasElement.width;yt++)ce.data[Be*this.canvasElement.width*4+4*yt+3]>0&&(Ie=!0,Be<se&&(se=Be),yt<he&&(he=yt),Be>gt&&(gt=Be),yt>ke&&(ke=yt));if(Ie){this.left=he/this.pixelRatio,this.top=se/this.pixelRatio,this.width=(ke-he)/this.pixelRatio,this.height=(gt-se)/this.pixelRatio;var rt=document.createElement("canvas");rt.width=ke-he,rt.height=gt-se,rt.getContext("2d").putImageData(this.canvasContext.getImageData(he,se,ke-he,gt-se),0,0),this.drawingImgUrl=rt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ue.prototype.setDrawingImage=function(){Ee.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Ee.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ue.prototype.setColor=function(ce){this.color=ce,this.colorChanged(ce)},ue.prototype.setLineWidth=function(ce){this.lineWidth=ce},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=Object.assign({drawingImgUrl:this.drawingImgUrl},ye.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){this.createVisual(),ye.prototype.restoreState.call(this,ce),this.drawingImgUrl=ce.drawingImgUrl,this.setDrawingImage()},ue.prototype.scale=function(ce,de){ye.prototype.scale.call(this,ce,de),this.setDrawingImage()},ue.typeName="FreehandMarker",ue.title="Freehand marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',ue}(nt),Ut=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,he||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return se.typeBoxes=[],se.currentType=de,se.setCurrentType=se.setCurrentType.bind(se),se}return Ae(ue,ye),ue.prototype.getUi=function(){var ce=this,de=document.createElement("div");de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2";for(var he=function(gt){var Ie="both";switch(gt){case 0:Ie="both";break;case 1:Ie="start";break;case 2:Ie="end";break;case 3:Ie="none"}var Be=document.createElement("div");if(Be.style.display="flex",Be.style.flexGrow="2",Be.style.alignItems="center",Be.style.justifyContent="space-between",Be.style.padding="5px",Be.style.borderWidth="2px",Be.style.borderStyle="solid",Be.style.borderColor=Ie===se.currentType?se.uiStyleSettings.toolboxAccentColor:"transparent",Be.addEventListener("click",function(){ce.setCurrentType(Ie,Be)}),de.appendChild(Be),Ie==="both"||Ie==="start"){var yt=document.createElement("div");yt.style.display="flex",yt.style.alignItems="center",yt.style.minHeight="20px",yt.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="`+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,yt.style.marginLeft="5px",Be.appendChild(yt)}var rt=document.createElement("div");rt.style.display="flex",rt.style.alignItems="center",rt.style.minHeight="20px",rt.style.flexGrow="2";var Ve=document.createElement("hr");if(Ve.style.minWidth="20px",Ve.style.border="0px",Ve.style.borderTop="3px solid "+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee"),Ve.style.flexGrow="2",rt.appendChild(Ve),Be.appendChild(rt),Ie==="both"||Ie==="end"){var Ct=document.createElement("div");Ct.style.display="flex",Ct.style.alignItems="center",Ct.style.minHeight="20px",Ct.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="`+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Ct.style.marginRight="5px",Be.appendChild(Ct)}se.typeBoxes.push(Be)},se=this,ke=0;ke<4;ke++)he(ke);return de},ue.prototype.setCurrentType=function(ce,de){var he=this;this.currentType=ce,this.typeBoxes.forEach(function(se){se.style.borderColor=se===de?he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ue}(Ke),At=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,de,he)||this;return se.arrowType="end",se.arrowBaseHeight=10,se.arrowBaseWidth=10,se.getArrowPoints=se.getArrowPoints.bind(se),se.setArrowType=se.setArrowType.bind(se),se.arrowTypePanel=new Ut("Arrow type","end"),se.arrowTypePanel.onArrowTypeChanged=se.setArrowType,se}return Ae(ue,ye),ue.prototype.ownsTarget=function(ce){return!(!ye.prototype.ownsTarget.call(this,ce)&&ce!==this.arrow1&&ce!==this.arrow2)},ue.prototype.getArrowPoints=function(ce,de){var he=this.arrowBaseWidth+2*this.strokeWidth,se=this.arrowBaseHeight+2*this.strokeWidth;return ce-he/2+","+(de+se/2)+" "+ce+","+(de-se/2)+" "+(ce+he/2)+","+(de+se/2)},ue.prototype.createTips=function(){this.arrow1=Ee.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Ee.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Ee.createTransform()),this.visual.appendChild(this.arrow2)},ue.prototype.pointerDown=function(ce,de){ye.prototype.pointerDown.call(this,ce,de),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(ye.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",Ee.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Ee.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 de=this.arrow1.transform.baseVal.getItem(0);de.setRotate(ce,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(de,0);var he=this.arrow2.transform.baseVal.getItem(0);he.setRotate(ce+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(he,0)}},ue.prototype.setArrowType=function(ce){this.arrowType=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=Object.assign({arrowType:this.arrowType},ye.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){ye.prototype.restoreState.call(this,ce);var de=ce;this.arrowType=de.arrowType,this.createTips(),this.adjustVisual()},ue.typeName="ArrowMarker",ue.title="Arrow marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ue}(bt),Mt=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,de,he)||this;return se.fillColor=he.defaultFillColor,se.strokeWidth=0,se.fillPanel=new je("Color",he.defaultColorSet,he.defaultFillColor),se.fillPanel.onColorChanged=se.setFillColor,se}return Ae(ue,ye),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=ye.prototype.getState.call(this);return ce.typeName=ue.typeName,ce},ue.typeName="CoverMarker",ue.title="Cover marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ue}(Re),Wt=function(ye){function ue(ce,de,he,se){var ke=ye.call(this,ce,se||'<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 ke.opacities=[],ke.opacityBoxes=[],ke.opacities=de,ke.currentOpacity=he,ke.setCurrentOpacity=ke.setCurrentOpacity.bind(ke),ke}return Ae(ue,ye),ue.prototype.getUi=function(){var ce=this,de=document.createElement("div");return de.style.display="flex",de.style.overflow="hidden",de.style.flexGrow="2",de.style.justifyContent="space-between",this.opacities.forEach(function(he){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="center",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=he===ce.currentOpacity?ce.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ce.setCurrentOpacity(he,se)}),de.appendChild(se);var ke=document.createElement("div");ke.innerText=100*he+"%",se.appendChild(ke),ce.opacityBoxes.push(se)}),de},ue.prototype.setCurrentOpacity=function(ce,de){var he=this;this.currentOpacity=ce,this.opacityBoxes.forEach(function(se){se.style.borderColor=se===de?he.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ue}(Ke),It=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,de,he)||this;return se.setOpacity=se.setOpacity.bind(se),se.fillColor=he.defaultHighlightColor,se.strokeWidth=0,se.opacity=he.defaultHighlightOpacity,se.fillPanel=new je("Color",he.defaultColorSet,se.fillColor),se.fillPanel.onColorChanged=se.setFillColor,se.opacityPanel=new Wt("Opacity",he.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return Ae(ue,ye),ue.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=ye.prototype.getState.call(this);return ce.typeName=ue.typeName,ce},ue.typeName="HighlightMarker",ue.title="Highlight marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',ue}(Mt),Ge='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',be='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Ye=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,de,he)||this;return se.bgColor="transparent",se.tipPosition={x:0,y:0},se.tipBase1Position={x:0,y:0},se.tipBase2Position={x:0,y:0},se.tipMoving=!1,se.color=he.defaultStrokeColor,se.bgColor=he.defaultFillColor,se.fontFamily=he.defaultFontFamily,se.defaultSize={x:100,y:30},se.setBgColor=se.setBgColor.bind(se),se.getTipPoints=se.getTipPoints.bind(se),se.positionTip=se.positionTip.bind(se),se.setTipPoints=se.setTipPoints.bind(se),se.colorPanel=new je("Text color",he.defaultColorSet,se.color,Ge),se.colorPanel.onColorChanged=se.setColor,se.bgColorPanel=new je("Fill color",he.defaultColorSet,se.bgColor,be),se.bgColorPanel.onColorChanged=se.setBgColor,se.fontFamilyPanel=new Oe("Font",he.defaultFontFamilies,he.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.tipGrip=new Bt,se.tipGrip.visual.transform.baseVal.appendItem(Ee.createTransform()),se.controlBox.appendChild(se.tipGrip.visual),se}return Ae(ue,ye),ue.prototype.ownsTarget=function(ce){return ye.prototype.ownsTarget.call(this,ce)||this.tipGrip.ownsTarget(ce)||this.tip===ce},ue.prototype.createTip=function(){Ee.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Ee.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ue.prototype.pointerDown=function(ce,de){this.state==="new"&&ye.prototype.pointerDown.call(this,ce,de),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(de)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ye.prototype.pointerDown.call(this,ce,de)},ue.prototype.pointerUp=function(ce){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ye.prototype.pointerUp.call(this,ce);else{var de=this.state==="creating";ye.prototype.pointerUp.call(this,ce),this.setTipPoints(de),this.positionTip()}},ue.prototype.manipulate=function(ce){if(this.tipMoving){var de=this.unrotatePoint(ce);this.tipPosition={x:de.x-this.manipulationStartLeft,y:de.y-this.manipulationStartTop},this.positionTip()}else ye.prototype.manipulate.call(this,ce)},ue.prototype.setBgColor=function(ce){this.bgRectangle&&this.tip&&(Ee.setAttributes(this.bgRectangle,[["fill",ce]]),Ee.setAttributes(this.tip,[["fill",ce]])),this.bgColor=ce,this.fillColorChanged(ce)},ue.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},ue.prototype.setTipPoints=function(ce){ce===void 0&&(ce=!1);var de=Math.min(this.height/2,15),he=this.height/5;ce&&(this.tipPosition={x:de+he/2,y:this.height+20});var se=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?se<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(he=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:de,y:0},this.tipBase2Position={x:de+he,y:0}):(this.tipBase1Position={x:0,y:de},this.tipBase2Position={x:0,y:de+he}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?se<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(he=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-de-he,y:0},this.tipBase2Position={x:this.width-de,y:0}):(this.tipBase1Position={x:this.width,y:de},this.tipBase2Position={x:this.width,y:de+he}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?se<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(he=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-de-he,y:this.height},this.tipBase2Position={x:this.width-de,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-de-he},this.tipBase2Position={x:this.width,y:this.height-de}):se<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(he=this.width/5,de=Math.min(this.width/2,15),this.tipBase1Position={x:de,y:this.height},this.tipBase2Position={x:de+he,y:this.height}):(this.tipBase1Position={x:0,y:this.height-de},this.tipBase2Position={x:0,y:this.height-de-he})},ue.prototype.resize=function(ce){ye.prototype.resize.call(this,ce),this.positionTip()},ue.prototype.positionTip=function(){Ee.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(ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ue.prototype.select=function(){this.positionTip(),ye.prototype.select.call(this)},ue.prototype.getState=function(){var ce=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ye.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){var de=ce;this.bgColor=de.bgColor,this.tipPosition=de.tipPosition,ye.prototype.restoreState.call(this,ce),this.createTip(),this.setTipPoints()},ue.prototype.scale=function(ce,de){ye.prototype.scale.call(this,ce,de),this.tipPosition={x:this.tipPosition.x*ce,y:this.tipPosition.y*de},this.positionTip()},ue.typeName="CalloutMarker",ue.title="Callout marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',ue}(Lt),Pt=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,de,he)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.opacity=1,se.strokeColor=he.defaultColor,se.strokeWidth=he.defaultStrokeWidth,se.strokeDasharray=he.defaultStrokeDasharray,se.fillColor=he.defaultFillColor,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.setOpacity=se.setOpacity.bind(se),se.createVisual=se.createVisual.bind(se),se.strokePanel=new je("Line color",xe(he.defaultColorSet,["transparent"]),he.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.fillPanel=new je("Fill color",xe(he.defaultColorSet,["transparent"]),se.fillColor,be),se.fillPanel.onColorChanged=se.setFillColor,se.strokeWidthPanel=new Ce("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new Je("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se.opacityPanel=new Wt("Opacity",he.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return Ae(ue,ye),ue.prototype.ownsTarget=function(ce){return!(!ye.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},ue.prototype.createVisual=function(){this.visual=Ee.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(ce,de){ye.prototype.pointerDown.call(this,ce,de),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},ue.prototype.manipulate=function(ce){ye.prototype.manipulate.call(this,ce)},ue.prototype.resize=function(ce){ye.prototype.resize.call(this,ce),this.setSize()},ue.prototype.setSize=function(){ye.prototype.setSize.call(this),Ee.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ue.prototype.pointerUp=function(ce){ye.prototype.pointerUp.call(this,ce),this.setSize()},ue.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&Ee.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},ue.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&Ee.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},ue.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&Ee.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&Ee.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ue.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&Ee.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ye.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){var de=ce;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.opacity=de.opacity,this.createVisual(),ye.prototype.restoreState.call(this,ce),this.setSize()},ue.prototype.scale=function(ce,de){ye.prototype.scale.call(this,ce,de),this.setSize()},ue.typeName="EllipseMarker",ue.title="Ellipse marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ue}(nt),xt=function(ye){function ue(ce,de,he){return ye.call(this,ce,de,he)||this}return Ae(ue,ye),Object.defineProperty(ue.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(ce){return!(!ye.prototype.ownsTarget.call(this,ce)&&ce!==this.tip1&&ce!==this.tip2)},ue.prototype.createTips=function(){this.tip1=Ee.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(Ee.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Ee.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(Ee.createTransform()),this.visual.appendChild(this.tip2)},ue.prototype.pointerDown=function(ce,de){ye.prototype.pointerDown.call(this,ce,de),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(ye.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Ee.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()]]),Ee.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),de=this.tip1.transform.baseVal.getItem(0);de.setRotate(ce,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(de,0);var he=this.tip2.transform.baseVal.getItem(0);he.setRotate(ce+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(he,0)}},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=ye.prototype.getState.call(this);return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){ye.prototype.restoreState.call(this,ce),this.createTips(),this.adjustVisual()},ue.typeName="MeasurementMarker",ue.title="Measurement marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',ue}(bt),Ue=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,de,he)||this;return se.strokePanel.colors=he.defaultColorSet,se.fillColor="transparent",se}return Ae(ue,ye),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=ye.prototype.getState.call(this);return ce.typeName=ue.typeName,ce},ue.typeName="EllipseFrameMarker",ue.title="Ellipse frame marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ue}(Pt),at=function(){function ye(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ye.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ye.prototype.addUndoStep=function(ue){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ue)||(this.undoStack.push(ue),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ue)&&this.redoStack.splice(0,this.redoStack.length))},ye.prototype.replaceLastUndoStep=function(ue){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ue)},ye.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ye.prototype.undo=function(){if(this.undoStack.length>1){var ue=this.undoStack.pop();return ue!==void 0&&this.redoStack.push(ue),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ye.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ye}(),Ot=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,de,he)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.curveX=0,se.curveY=0,se.manipulationStartCurveX=0,se.manipulationStartCurveY=0,se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.positionGrips=se.positionGrips.bind(se),se.addControlGrips=se.addControlGrips.bind(se),se.adjustVisual=se.adjustVisual.bind(se),se.setupControlBox=se.setupControlBox.bind(se),se.resize=se.resize.bind(se),se.strokeColor=he.defaultColor,se.strokeWidth=he.defaultStrokeWidth,se.strokeDasharray=he.defaultStrokeDasharray,se.strokePanel=new je("Line color",he.defaultColorSet,he.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new Ce("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new Je("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return Ae(ue,ye),ue.prototype.ownsTarget=function(ce){return!(!ye.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorCurve&&ce!==this.visibleCurve&&!this.curveGrip.ownsTarget(ce))},ue.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ue.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.selectorCurve=Ee.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Ee.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(ce,de){ye.prototype.pointerDown.call(this,ce,de),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(de)&&(this.activeGrip=this.curveGrip,this._state="resize")},ue.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Ee.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Ee.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Ee.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setupControlBox=function(){ye.prototype.setupControlBox.call(this),this.curveControlLine1=Ee.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Ee.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},ue.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ye.prototype.addControlGrips.call(this)},ue.prototype.positionGrips=function(){ye.prototype.positionGrips.call(this);var 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()))},ue.prototype.manipulate=function(ce){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ce.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ce.y-this.manipulationStartY),ye.prototype.manipulate.call(this,ce)},ue.prototype.resize=function(ce){this.activeGrip===this.curveGrip&&(this.curveX=ce.x,this.curveY=ce.y),ye.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)},ue.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},ue.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual()},ue.prototype.scale=function(ce,de){this.curveX=this.curveX*ce,this.curveY=this.curveY*de,ye.prototype.scale.call(this,ce,de)},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ye.prototype.getState.call(this));return ce.typeName=ue.typeName,ce},ue.prototype.restoreState=function(ce){ye.prototype.restoreState.call(this,ce);var de=ce;this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.curveX=de.curveX,this.curveY=de.curveY,this.createVisual(),this.adjustVisual()},ue.typeName="CurveMarker",ue.title="Curve marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',ue}(Qe),kn=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,de,he)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.textColor="transparent",se.fontSize="1rem",se.isMoved=!1,se.captionText="Caption",se.PADDING=5,se.captionBoxWidth=0,se.captionBoxHeight=0,se.strokeColor=he.defaultColor,se.strokeWidth=he.defaultStrokeWidth,se.strokeDasharray=he.defaultStrokeDasharray,se.fillColor=he.defaultFillColor,se.textColor=he.defaultStrokeColor,se.fontFamily=he.defaultFontFamily,se.fontSize=he.defaultCaptionFontSize,se.captionText=he.defaultCaptionText,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.createVisual=se.createVisual.bind(se),se.sizeCaption=se.sizeCaption.bind(se),se.setCaptionText=se.setCaptionText.bind(se),se.showTextEditor=se.showTextEditor.bind(se),se.positionTextEditor=se.positionTextEditor.bind(se),se.finishTextEditing=se.finishTextEditing.bind(se),se.setFont=se.setFont.bind(se),se.setTextColor=se.setTextColor.bind(se),se.strokePanel=new je("Line color",xe(he.defaultColorSet,["transparent"]),se.strokeColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.fillPanel=new je("Fill color",xe(he.defaultColorSet,["transparent"]),se.fillColor,be),se.fillPanel.onColorChanged=se.setFillColor,se.strokeWidthPanel=new Ce("Line width",he.defaultStrokeWidths,he.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new Je("Line style",he.defaultStrokeDasharrays,he.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se.fontFamilyPanel=new Oe("Font",he.defaultFontFamilies,he.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.textColorPanel=new je("Text color",he.defaultColorSet,se.textColor,Ge),se.textColorPanel.onColorChanged=se.setTextColor,se}return Ae(ue,ye),ue.prototype.ownsTarget=function(ce){return!(!ye.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.frame&&ce!==this.captionBg&&ce!==this.captionElement)},ue.prototype.createVisual=function(){this.visual=Ee.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Ee.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Ee.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=Ee.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},ue.prototype.setCaptionText=function(ce){this.captionText=ce,this.captionElement.textContent=this.captionText,this.sizeCaption()},ue.prototype.pointerDown=function(ce,de){ye.prototype.pointerDown.call(this,ce,de),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},ue.prototype.manipulate=function(ce){ye.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)},ue.prototype.resize=function(ce){ye.prototype.resize.call(this,ce),this.setSize()},ue.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),Ee.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')"]]),Ee.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},ue.prototype.showTextEditor=function(){var 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(de){de.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(de){de.key==="Enter"&&ce.finishTextEditing(ce.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(de){de.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()},ue.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},ue.prototype.finishTextEditing=function(ce){this.setCaptionText(ce.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ue.prototype.setFont=function(ce){this.captionElement&&Ee.setAttributes(this.captionElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ue.prototype.setTextColor=function(ce){this.captionElement&&Ee.setAttributes(this.captionElement,[["fill",ce]]),this.textColor=ce,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ue.prototype.setSize=function(){ye.prototype.setSize.call(this),Ee.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ue.prototype.pointerUp=function(ce){ye.prototype.pointerUp.call(this,ce),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.dblClick=function(ce,de){ye.prototype.dblClick.call(this,ce,de),this.showTextEditor()},ue.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.frame&&Ee.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},ue.prototype.setFillColor=function(ce){this.fillColor=ce,this.captionBg&&Ee.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},ue.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.frame&&Ee.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.frame&&Ee.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var 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},ye.prototype.getState.call(this));return ce.typeName=this.typeName,ce},ue.prototype.restoreState=function(ce){var de=ce;this.fillColor=de.fillColor,this.strokeColor=de.strokeColor,this.strokeWidth=de.strokeWidth,this.strokeDasharray=de.strokeDasharray,this.textColor=de.textColor,this.fontFamily=de.fontFamily,this.captionText=de.captionText,this.fontSize=de.fontSize,this.createVisual(),ye.prototype.restoreState.call(this,ce),this.setSize()},ue.prototype.scale=function(ce,de){ye.prototype.scale.call(this,ce,de),this.setSize()},ue.typeName="CaptionFrameMarker",ue.title="Caption frame marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',ue}(nt),Kt=function(){function ye(ue,ce){ce===void 0&&(ce=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ue,this.cancelable=ce}return Object.defineProperty(ye.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ye.prototype.preventDefault=function(){this._defaultPrevented=!0},ye}(),gn=function(ye){function ue(ce,de,he){var se=ye.call(this,ce,!1)||this;return se.dataUrl=de,se.state=he,se}return Ae(ue,ye),ue}(Kt),nn=function(ye){function ue(ce,de,he){he===void 0&&(he=!1);var se=ye.call(this,ce,he)||this;return se.marker=de,se}return Ae(ue,ye),ue}(Kt),Gt=function(){function ye(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ye.prototype.addEventListener=function(ue,ce){this[ue].push(ce)},ye.prototype.removeEventListener=function(ue,ce){var de=this[ue].indexOf(ce);de>-1&&this[ue].splice(de,1)},ye}(),Xt=function(){function ye(ue){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new wt,this._isOpen=!1,this.undoRedoManager=new at,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Gt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ye.instanceCounter++,this.styles=new _e(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ue,this.targetRoot=document.body,this.width=ue.clientWidth,this.height=ue.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(ye.prototype,"ALL_MARKER_TYPES",{get:function(){return[et,tt,At,Lt,Ue,Pt,It,Ye,xt,Mt,bt,Ot,kn]},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[et,tt,At,Lt,Pt,It,Ye]},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"BASIC_MARKER_TYPES",{get:function(){return[et,tt,At,Lt,It]},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ue){var ce=this;this._availableMarkerTypes.splice(0),ue.forEach(function(de){if(typeof de=="string"){var he=ce.ALL_MARKER_TYPES.find(function(se){return se.typeName===de});he!==void 0&&ce._availableMarkerTypes.push(he)}else ce._availableMarkerTypes.push(de)})},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ue){this._zoomLevel=ue,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ye.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),pe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ye.prototype.show=function(){var ue=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 Kt(ue))})},ye.prototype.render=function(){return Le(this,void 0,void 0,function(){var ue;return ct(this,function(ce){switch(ce.label){case 0:return this.setCurrentMarker(),(ue=new ve).naturalSize=this.renderAtNaturalSize,ue.imageType=this.renderImageType,ue.imageQuality=this.renderImageQuality,ue.markersOnly=this.renderMarkersOnly,ue.width=this.renderWidth,ue.height=this.renderHeight,[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ce.sent(),[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ce.sent()]}})})},ye.prototype.close=function(ue){var ce=this;if(ue===void 0&&(ue=!1),this.isOpen){var de=!1;ue||this.eventListeners.beforeclose.forEach(function(he){var se=new Kt(ce,!0);he(se),se.defaultPrevented&&(de=!0)}),de||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(he){return he(new Kt(ce))}),this.detachEvents(),this._isOpen=!1)}},ye.prototype.addMarkersToToolbar=function(){for(var ue,ce=[],de=0;de<arguments.length;de++)ce[de]=arguments[de];(ue=this._availableMarkerTypes).push.apply(ue,ce)},ye.prototype.addRenderEventListener=function(ue){this.addEventListener("render",function(ce){ue(ce.dataUrl,ce.state)})},ye.prototype.removeRenderEventListener=function(ue){},ye.prototype.addCloseEventListener=function(ue){this.addEventListener("close",function(){ue()})},ye.prototype.removeCloseEventListener=function(ue){},ye.prototype.setupResizeObserver=function(){var ue=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ue.resize(ue.target.clientWidth,ue.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ue.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ye.prototype.onPopupTargetResize=function(){var ue=1*this.target.clientWidth/this.target.clientHeight,ce=this.editorCanvas.clientWidth/ue>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ue:this.editorCanvas.clientWidth,de=ce<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ue;this.resize(ce,de)},ye.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ye.prototype.resize=function(ue,ce){this._isResizing=!0;var de=ue/this.imageWidth,he=ce/this.imageHeight;this.imageWidth=Math.round(ue),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(de,he),this._isResizing=!1},ye.prototype.scaleMarkers=function(ue,ce){var de,he=this;this._currentMarker&&this._currentMarker instanceof Lt?this._currentMarker.scale(ue,ce):(de=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(se){se!==he._currentMarker&&se.scale(ue,ce)}),de!==void 0&&this.setCurrentMarker(de)},ye.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ye.prototype.setTopLeft=function(){var ue=this.editingTarget.getBoundingClientRect(),ce=this.editorCanvas.getBoundingClientRect();this.left=ue.left-ce.left,this.top=ue.top-ce.top},ye.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ye.prototype.addDefs=function(){for(var ue,ce=[],de=0;de<arguments.length;de++)ce[de]=arguments[de];this.defs=Ee.createDefs(),this.addDefsToImage(),(ue=this.defs).append.apply(ue,ce)},ye.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ye.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},ye.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ye.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ye.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},ye.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ye.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},ye.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var ue=document.createElement("a");ue.href="https://markerjs.com/",ue.target="_blank",ue.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',ue.title="Powered by marker.js",ue.style.display="grid",ue.style.alignItems="center",ue.style.justifyItems="center",ue.style.padding="3px",ue.style.width="20px",ue.style.height="20px",this.logoUI.appendChild(ue),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ye.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},ye.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},ye.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ye.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var ue=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ue+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new qe(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 pt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ye.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ye.prototype.removeMarker=function(ue){this.markerImage.removeChild(ue.container),this.markers.indexOf(ue)>-1&&this.markers.splice(this.markers.indexOf(ue),1),ue.dispose()},ye.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},ye.prototype.toolbarButtonClicked=function(ue,ce){if(ue==="marker"&&ce!==void 0)this.createNewMarker(ce);else if(ue==="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()}},ye.prototype.deleteSelectedMarker=function(){var ue=this;if(this._currentMarker!==void 0){var ce=!1;if(this.eventListeners.markerbeforedelete.forEach(function(he){var se=new nn(ue,ue._currentMarker,!0);he(se),se.defaultPrevented&&(ce=!0)}),!ce){var de=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(he){return he(new nn(ue,de))})}}},ye.prototype.clear=function(){var ue=this,ce=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ke){var gt=new nn(ue,void 0,!0);ke(gt),gt.defaultPrevented&&(ce=!0)}),!ce)){this.setCurrentMarker();for(var de=function(ke){var gt=he.markers[ke];he.setCurrentMarker(he.markers[ke]),he._currentMarker.dispose(),he.markerImage.removeChild(he._currentMarker.container),he.markers.splice(he.markers.indexOf(he._currentMarker),1),he.eventListeners.markerdelete.forEach(function(Ie){return Ie(new nn(ue,gt))})},he=this,se=this.markers.length-1;se>=0;se--)de(se);this.addUndoStep()}},Object.defineProperty(ye.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ye.prototype.showNotesEditor=function(){var ue;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(ue=this._currentMarker.notes)!==null&&ue!==void 0?ue:"",this.overlayContainer.appendChild(this.notesArea))},ye.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},ye.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ye.prototype.addUndoStep=function(){var ue=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ce=this.getState(),de=this.undoRedoManager.getLastUndoStep();if(!de||de.width===ce.width&&de.height===ce.height){var he=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ce),he<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(se){return se(new Kt(ue))})}else this.undoRedoManager.replaceLastUndoStep(ce),this.eventListeners.statechange.forEach(function(se){return se(new Kt(ue))})}},ye.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ye.prototype.undoStep=function(){var ue=this,ce=this.undoRedoManager.undo();ce!==void 0&&(this.restoreState(ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(de){return de(new Kt(ue))}))},ye.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ye.prototype.redoStep=function(){var ue=this,ce=this.undoRedoManager.redo();ce!==void 0&&(this.restoreState(ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(de){return de(new Kt(ue))}))},ye.prototype.stepZoom=function(){var ue=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ue<this.zoomSteps.length-1?this.zoomSteps[ue+1]:this.zoomSteps[0]},ye.prototype.panTo=function(ue){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ue.x,top:this.prevPanPoint.y-ue.y}),this.prevPanPoint=ue},ye.prototype.startRenderAndClose=function(){return Le(this,void 0,void 0,function(){var ue,ce,de=this;return ct(this,function(he){switch(he.label){case 0:return[4,this.render()];case 1:return ue=he.sent(),ce=this.getState(),this.eventListeners.render.forEach(function(se){return se(new gn(de,ue,ce))}),this.close(!0),[2]}})})},ye.prototype.getState=function(ue){ue===!0&&this.setCurrentMarker();var ce={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(de){return ce.markers.push(de.getState())}),ce},ye.prototype.restoreState=function(ue){var ce=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ue.markers.forEach(function(de){var he=ce._availableMarkerTypes.find(function(ke){return ke.typeName===de.typeName});if(he!==void 0){var se=ce.addNewMarker(he);se.restoreState(de),ce.markers.push(se)}}),ue.width&&ue.height&&(ue.width!==this.imageWidth||ue.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ue.width,this.imageHeight/ue.height),this.eventListeners.restorestate.forEach(function(de){return de(new Kt(ce))})},ye.prototype.addNewMarker=function(ue){var ce=Ee.createGroup();return this.markerImage.appendChild(ce),new ue(ce,this.overlayContainer,this.settings)},ye.prototype.createNewMarker=function(ue){var ce,de=this;(ce=typeof ue=="string"?this._availableMarkerTypes.find(function(he){return he.typeName===ue}):ue)&&(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(he){return he(new nn(de,de._currentMarker))}))},ye.prototype.markerCreated=function(ue){var ce=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ue),this.setCurrentMarker(ue),ue instanceof tt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(tt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(de){return de(new nn(ce,ce._currentMarker))})},ye.prototype.colorChanged=function(ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ue,this.settings.defaultStrokeColor=ue)},ye.prototype.fillColorChanged=function(ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ue)},ye.prototype.markerStateChanged=function(ue){var ce=this;this.eventListeners.markerchange.forEach(function(de){return de(new nn(ce,ue))})},ye.prototype.setCurrentMarker=function(ue){var ce=this;this._currentMarker!==ue&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(de){return de(new nn(ce,ce._currentMarker))})),this._currentMarker=ue,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(de){return de(new nn(ce,ce._currentMarker))}))},ye.prototype.onPointerDown=function(ue){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ue.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ce=this.markers.find(function(de){return de.ownsTarget(ue.target)});ce!==void 0?(this.setCurrentMarker(ce),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ue.clientX,ue.clientY),ue.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ue.clientX,y:ue.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ue.clientX,ue.clientY))},ye.prototype.onDblClick=function(ue){if(this._isFocused||this.focus(),this.mode==="select"){var ce=this.markers.find(function(de){return de.ownsTarget(ue.target)});ce!==void 0&&ce!==this._currentMarker&&this.setCurrentMarker(ce),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ue.clientX,ue.clientY),ue.target):this.setCurrentMarker()}},ye.prototype.onPointerMove=function(ue){this.touchPoints!==1&&ue.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ue.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ue.clientX,ue.clientY)):this.zoomLevel>1&&this.panTo({x:ue.clientX,y:ue.clientY}))},ye.prototype.onPointerUp=function(ue){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ue.clientX,ue.clientY)),this.isDragging=!1,this.addUndoStep()},ye.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ye.prototype.onKeyUp=function(ue){this._currentMarker===void 0||this.notesArea!==void 0||ue.key!=="Delete"&&ue.key!=="Backspace"||this.deleteSelectedMarker()},ye.prototype.clientToLocalCoordinates=function(ue,ce){var de=this.markerImage.getBoundingClientRect();return{x:(ue-de.left)/this.zoomLevel,y:(ce-de.top)/this.zoomLevel}},ye.prototype.onWindowResize=function(){this.positionUI()},ye.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ue=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ue+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},ye.prototype.addLicenseKey=function(ue){pe.addKey(ue)},ye.prototype.addEventListener=function(ue,ce){this.eventListeners.addEventListener(ue,ce)},ye.prototype.removeEventListener=function(ue,ce){this.eventListeners.removeEventListener(ue,ce)},ye.prototype.renderState=function(ue){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ue),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ye.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ye.prototype.focus=function(){var ue=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ce){return ce(new Kt(ue))}))},ye.prototype.blur=function(){var ue=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ce){return ce(new Kt(ue))}))},ye.instanceCounter=0,ye}()},5630:function(Mn,tn,oe){"use strict";var ae=oe(60499),Ae=oe(85899),Le=oe(18642),ct=oe(72190),xe=oe(42244),Ee=oe(92310),pe=oe.n(Ee),ve=oe(18929),Me=oe(59301),_e=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],vt=(0,Me.forwardRef)(function(Fe,qe){var pt,Ke=Fe.prefixCls,je=Ke===void 0?"rc-checkbox":Ke,ft=Fe.className,mt=Fe.style,Bt=Fe.checked,ht=Fe.disabled,nt=Fe.defaultChecked,Re=nt===void 0?!1:nt,Ce=Fe.type,Je=Ce===void 0?"checkbox":Ce,et=Fe.title,wt=Fe.onChange,Qe=(0,xe.Z)(Fe,_e),bt=(0,Me.useRef)(null),Oe=(0,ve.Z)(Re,{value:Bt}),Lt=(0,ct.Z)(Oe,2),tt=Lt[0],Ut=Lt[1];(0,Me.useImperativeHandle)(qe,function(){return{focus:function(){var It;(It=bt.current)===null||It===void 0||It.focus()},blur:function(){var It;(It=bt.current)===null||It===void 0||It.blur()},input:bt.current}});var At=pe()(je,ft,(pt={},(0,Le.Z)(pt,"".concat(je,"-checked"),tt),(0,Le.Z)(pt,"".concat(je,"-disabled"),ht),pt)),Mt=function(It){ht||("checked"in Fe||Ut(It.target.checked),wt==null||wt({target:(0,Ae.Z)((0,Ae.Z)({},Fe),{},{type:Je,checked:It.target.checked}),stopPropagation:function(){It.stopPropagation()},preventDefault:function(){It.preventDefault()},nativeEvent:It.nativeEvent}))};return Me.createElement("span",{className:At,title:et,style:mt},Me.createElement("input",(0,ae.Z)({},Qe,{className:"".concat(je,"-input"),ref:bt,onChange:Mt,disabled:ht,checked:!!tt,type:Je})),Me.createElement("span",{className:"".concat(je,"-inner")}))});tn.Z=vt},31561:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return Je}});var ae=oe(60499),Ae=oe(18642),Le=oe(72190),ct=oe(42244),xe=oe(35593),Ee=oe(92310),pe=oe.n(Ee),ve=oe(8654),Me=oe(59301),_e=oe(10228),vt=oe(16089),Fe=_e.Z.ESC,qe=_e.Z.TAB;function pt(et){var wt=et.visible,Qe=et.triggerRef,bt=et.onVisibleChange,Oe=et.autoFocus,Lt=et.overlayRef,tt=Me.useRef(!1),Ut=function(){if(wt){var It,Ge;(It=Qe.current)===null||It===void 0||(Ge=It.focus)===null||Ge===void 0||Ge.call(It),bt==null||bt(!1)}},At=function(){var It;return(It=Lt.current)!==null&&It!==void 0&&It.focus?(Lt.current.focus(),tt.current=!0,!0):!1},Mt=function(It){switch(It.keyCode){case Fe:Ut();break;case qe:{var Ge=!1;tt.current||(Ge=At()),Ge?It.preventDefault():Ut();break}}};Me.useEffect(function(){return wt?(window.addEventListener("keydown",Mt),Oe&&(0,vt.Z)(At,3),function(){window.removeEventListener("keydown",Mt),tt.current=!1}):function(){tt.current=!1}},[wt])}var Ke=(0,Me.forwardRef)(function(et,wt){var Qe=et.overlay,bt=et.arrow,Oe=et.prefixCls,Lt=(0,Me.useMemo)(function(){var Ut;return typeof Qe=="function"?Ut=Qe():Ut=Qe,Ut},[Qe]),tt=(0,ve.sQ)(wt,Lt==null?void 0:Lt.ref);return Me.createElement(Me.Fragment,null,bt&&Me.createElement("div",{className:"".concat(Oe,"-arrow")}),Me.cloneElement(Lt,{ref:(0,ve.Yr)(Lt)?tt:void 0}))}),je=Ke,ft={adjustX:1,adjustY:1},mt=[0,0],Bt={topLeft:{points:["bl","tl"],overflow:ft,offset:[0,-4],targetOffset:mt},top:{points:["bc","tc"],overflow:ft,offset:[0,-4],targetOffset:mt},topRight:{points:["br","tr"],overflow:ft,offset:[0,-4],targetOffset:mt},bottomLeft:{points:["tl","bl"],overflow:ft,offset:[0,4],targetOffset:mt},bottom:{points:["tc","bc"],overflow:ft,offset:[0,4],targetOffset:mt},bottomRight:{points:["tr","br"],overflow:ft,offset:[0,4],targetOffset:mt}},ht=Bt,nt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Re(et,wt){var Qe,bt=et.arrow,Oe=bt===void 0?!1:bt,Lt=et.prefixCls,tt=Lt===void 0?"rc-dropdown":Lt,Ut=et.transitionName,At=et.animation,Mt=et.align,Wt=et.placement,It=Wt===void 0?"bottomLeft":Wt,Ge=et.placements,be=Ge===void 0?ht:Ge,Ye=et.getPopupContainer,Pt=et.showAction,xt=et.hideAction,Ue=et.overlayClassName,at=et.overlayStyle,Ot=et.visible,kn=et.trigger,Kt=kn===void 0?["hover"]:kn,gn=et.autoFocus,nn=et.overlay,Gt=et.children,Xt=et.onVisibleChange,ye=(0,ct.Z)(et,nt),ue=Me.useState(),ce=(0,Le.Z)(ue,2),de=ce[0],he=ce[1],se="visible"in et?Ot:de,ke=Me.useRef(null),gt=Me.useRef(null),Ie=Me.useRef(null);Me.useImperativeHandle(wt,function(){return ke.current});var Be=function(ut){he(ut),Xt==null||Xt(ut)};pt({visible:se,triggerRef:Ie,onVisibleChange:Be,autoFocus:gn,overlayRef:gt});var yt=function(ut){var De=et.onOverlayClick;he(!1),De&&De(ut)},rt=function(){return Me.createElement(je,{ref:gt,overlay:nn,prefixCls:tt,arrow:Oe})},Ve=function(){return typeof nn=="function"?rt:rt()},Ct=function(){var ut=et.minOverlayWidthMatchTrigger,De=et.alignPoint;return"minOverlayWidthMatchTrigger"in et?ut:!De},rn=function(){var ut=et.openClassName;return ut!==void 0?ut:"".concat(tt,"-open")},lt=Me.cloneElement(Gt,{className:pe()((Qe=Gt.props)===null||Qe===void 0?void 0:Qe.className,se&&rn()),ref:(0,ve.Yr)(Gt)?(0,ve.sQ)(Ie,Gt.ref):void 0}),_t=xt;return!_t&&Kt.indexOf("contextMenu")!==-1&&(_t=["click"]),Me.createElement(xe.Z,(0,ae.Z)({builtinPlacements:be},ye,{prefixCls:tt,ref:ke,popupClassName:pe()(Ue,(0,Ae.Z)({},"".concat(tt,"-show-arrow"),Oe)),popupStyle:at,action:Kt,showAction:Pt,hideAction:_t,popupPlacement:It,popupAlign:Mt,popupTransitionName:Ut,popupAnimation:At,popupVisible:se,stretch:Ct()?"minWidth":"",popup:Ve(),onPopupVisibleChange:Be,onPopupClick:yt,getPopupContainer:Ye}),lt)}var Ce=Me.forwardRef(Re),Je=Ce},93681:function(Mn,tn,oe){"use strict";oe.r(tn),oe.d(tn,{BaseInput:function(){return _e},default:function(){return Bt}});var ae=oe(60499),Ae=oe(85899),Le=oe(18642),ct=oe(43749),xe=oe(92310),Ee=oe.n(xe),pe=oe(59301),ve=oe(5643),Me=function(nt){var Re,Ce,Je=nt.inputElement,et=nt.prefixCls,wt=nt.prefix,Qe=nt.suffix,bt=nt.addonBefore,Oe=nt.addonAfter,Lt=nt.className,tt=nt.style,Ut=nt.disabled,At=nt.readOnly,Mt=nt.focused,Wt=nt.triggerFocus,It=nt.allowClear,Ge=nt.value,be=nt.handleReset,Ye=nt.hidden,Pt=nt.classes,xt=nt.classNames,Ue=nt.dataAttrs,at=nt.styles,Ot=nt.components,kn=(Ot==null?void 0:Ot.affixWrapper)||"span",Kt=(Ot==null?void 0:Ot.groupWrapper)||"span",gn=(Ot==null?void 0:Ot.wrapper)||"span",nn=(Ot==null?void 0:Ot.groupAddon)||"span",Gt=(0,pe.useRef)(null),Xt=function(rt){var Ve;(Ve=Gt.current)!==null&&Ve!==void 0&&Ve.contains(rt.target)&&(Wt==null||Wt())},ye=function(){var rt;if(!It)return null;var Ve=!Ut&&!At&&Ge,Ct="".concat(et,"-clear-icon"),rn=(0,ct.Z)(It)==="object"&&It!==null&&It!==void 0&&It.clearIcon?It.clearIcon:"\u2716";return pe.createElement("span",{onClick:be,onMouseDown:function(_t){return _t.preventDefault()},className:Ee()(Ct,(rt={},(0,Le.Z)(rt,"".concat(Ct,"-hidden"),!Ve),(0,Le.Z)(rt,"".concat(Ct,"-has-suffix"),!!Qe),rt)),role:"button",tabIndex:-1},rn)},ue=(0,pe.cloneElement)(Je,{value:Ge,hidden:Ye,className:Ee()((Re=Je.props)===null||Re===void 0?void 0:Re.className,!(0,ve.X3)(nt)&&!(0,ve.He)(nt)&&Lt)||null,style:(0,Ae.Z)((0,Ae.Z)({},(Ce=Je.props)===null||Ce===void 0?void 0:Ce.style),!(0,ve.X3)(nt)&&!(0,ve.He)(nt)?tt:{})});if((0,ve.X3)(nt)){var ce,de="".concat(et,"-affix-wrapper"),he=Ee()(de,(ce={},(0,Le.Z)(ce,"".concat(de,"-disabled"),Ut),(0,Le.Z)(ce,"".concat(de,"-focused"),Mt),(0,Le.Z)(ce,"".concat(de,"-readonly"),At),(0,Le.Z)(ce,"".concat(de,"-input-with-clear-btn"),Qe&&It&&Ge),ce),!(0,ve.He)(nt)&&Lt,Pt==null?void 0:Pt.affixWrapper,xt==null?void 0:xt.affixWrapper),se=(Qe||It)&&pe.createElement("span",{className:Ee()("".concat(et,"-suffix"),xt==null?void 0:xt.suffix),style:at==null?void 0:at.suffix},ye(),Qe);ue=pe.createElement(kn,(0,ae.Z)({className:he,style:(0,Ae.Z)((0,Ae.Z)({},(0,ve.He)(nt)?void 0:tt),at==null?void 0:at.affixWrapper),hidden:!(0,ve.He)(nt)&&Ye,onClick:Xt},Ue==null?void 0:Ue.affixWrapper,{ref:Gt}),wt&&pe.createElement("span",{className:Ee()("".concat(et,"-prefix"),xt==null?void 0:xt.prefix),style:at==null?void 0:at.prefix},wt),(0,pe.cloneElement)(Je,{value:Ge,hidden:null}),se)}if((0,ve.He)(nt)){var ke="".concat(et,"-group"),gt="".concat(ke,"-addon"),Ie=Ee()("".concat(et,"-wrapper"),ke,Pt==null?void 0:Pt.wrapper),Be=Ee()("".concat(et,"-group-wrapper"),Lt,Pt==null?void 0:Pt.group);return pe.createElement(Kt,{className:Be,style:tt,hidden:Ye},pe.createElement(gn,{className:Ie},bt&&pe.createElement(nn,{className:gt},bt),(0,pe.cloneElement)(ue,{hidden:null}),Oe&&pe.createElement(nn,{className:gt},Oe)))}return ue},_e=Me,vt=oe(77654),Fe=oe(72190),qe=oe(42244),pt=oe(18929),Ke=oe(2738),je=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],ft=(0,pe.forwardRef)(function(ht,nt){var Re=ht.autoComplete,Ce=ht.onChange,Je=ht.onFocus,et=ht.onBlur,wt=ht.onPressEnter,Qe=ht.onKeyDown,bt=ht.prefixCls,Oe=bt===void 0?"rc-input":bt,Lt=ht.disabled,tt=ht.htmlSize,Ut=ht.className,At=ht.maxLength,Mt=ht.suffix,Wt=ht.showCount,It=ht.type,Ge=It===void 0?"text":It,be=ht.classes,Ye=ht.classNames,Pt=ht.styles,xt=(0,qe.Z)(ht,je),Ue=(0,pt.Z)(ht.defaultValue,{value:ht.value}),at=(0,Fe.Z)(Ue,2),Ot=at[0],kn=at[1],Kt=(0,pe.useState)(!1),gn=(0,Fe.Z)(Kt,2),nn=gn[0],Gt=gn[1],Xt=(0,pe.useRef)(null),ye=function(Be){Xt.current&&(0,ve.nH)(Xt.current,Be)};(0,pe.useImperativeHandle)(nt,function(){return{focus:ye,blur:function(){var Be;(Be=Xt.current)===null||Be===void 0||Be.blur()},setSelectionRange:function(Be,yt,rt){var Ve;(Ve=Xt.current)===null||Ve===void 0||Ve.setSelectionRange(Be,yt,rt)},select:function(){var Be;(Be=Xt.current)===null||Be===void 0||Be.select()},input:Xt.current}}),(0,pe.useEffect)(function(){Gt(function(Ie){return Ie&&Lt?!1:Ie})},[Lt]);var ue=function(Be){ht.value===void 0&&kn(Be.target.value),Xt.current&&(0,ve.rJ)(Xt.current,Be,Ce)},ce=function(Be){wt&&Be.key==="Enter"&&wt(Be),Qe==null||Qe(Be)},de=function(Be){Gt(!0),Je==null||Je(Be)},he=function(Be){Gt(!1),et==null||et(Be)},se=function(Be){kn(""),ye(),Xt.current&&(0,ve.rJ)(Xt.current,Be,Ce)},ke=function(){var Be=(0,Ke.Z)(ht,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return pe.createElement("input",(0,ae.Z)({autoComplete:Re},Be,{onChange:ue,onFocus:de,onBlur:he,onKeyDown:ce,className:Ee()(Oe,(0,Le.Z)({},"".concat(Oe,"-disabled"),Lt),Ye==null?void 0:Ye.input),style:Pt==null?void 0:Pt.input,ref:Xt,size:tt,type:Ge}))},gt=function(){var Be=Number(At)>0;if(Mt||Wt){var yt=(0,ve.D7)(Ot),rt=(0,vt.Z)(yt).length,Ve=(0,ct.Z)(Wt)==="object"?Wt.formatter({value:yt,count:rt,maxLength:At}):"".concat(rt).concat(Be?" / ".concat(At):"");return pe.createElement(pe.Fragment,null,!!Wt&&pe.createElement("span",{className:Ee()("".concat(Oe,"-show-count-suffix"),(0,Le.Z)({},"".concat(Oe,"-show-count-has-suffix"),!!Mt),Ye==null?void 0:Ye.count),style:(0,Ae.Z)({},Pt==null?void 0:Pt.count)},Ve),Mt)}return null};return pe.createElement(_e,(0,ae.Z)({},xt,{prefixCls:Oe,className:Ut,inputElement:ke(),handleReset:se,value:(0,ve.D7)(Ot),focused:nn,triggerFocus:ye,suffix:gt(),disabled:Lt,classes:be,classNames:Ye,styles:Pt}))}),mt=ft,Bt=mt},5643:function(Mn,tn,oe){"use strict";oe.d(tn,{D7:function(){return xe},He:function(){return ae},X3:function(){return Ae},nH:function(){return ct},rJ:function(){return Le}});function ae(Ee){return!!(Ee.addonBefore||Ee.addonAfter)}function Ae(Ee){return!!(Ee.prefix||Ee.suffix||Ee.allowClear)}function Le(Ee,pe,ve,Me){if(ve){var _e=pe;if(pe.type==="click"){var vt=Ee.cloneNode(!0);_e=Object.create(pe,{target:{value:vt},currentTarget:{value:vt}}),vt.value="",ve(_e);return}if(Me!==void 0){_e=Object.create(pe,{target:{value:Ee},currentTarget:{value:Ee}}),Ee.value=Me,ve(_e);return}ve(_e)}}function ct(Ee,pe){if(Ee){Ee.focus(pe);var ve=pe||{},Me=ve.cursor;if(Me){var _e=Ee.value.length;switch(Me){case"start":Ee.setSelectionRange(0,0);break;case"end":Ee.setSelectionRange(_e,_e);break;default:Ee.setSelectionRange(0,_e)}}}}function xe(Ee){return typeof Ee=="undefined"||Ee===null?"":String(Ee)}},15285:function(Mn,tn,oe){"use strict";oe.d(tn,{iz:function(){return jn},ck:function(){return er},BW:function(){return Fn},sN:function(){return er},Wd:function(){return Tt},ZP:function(){return Ln},Xl:function(){return Qe}});var ae=oe(60499),Ae=oe(18642),Le=oe(85899),ct=oe(77654),xe=oe(72190),Ee=oe(42244),pe=oe(92310),ve=oe.n(pe),Me=oe(83836),_e=oe(18929),vt=oe(13697),Fe=oe(48736),qe=oe(59301),pt=oe(4676),Ke=qe.createContext(null);function je(it,Yt){return it===void 0?null:"".concat(it,"-").concat(Yt)}function ft(it){var Yt=qe.useContext(Ke);return je(Yt,it)}var mt=oe(80547),Bt=["children","locked"],ht=qe.createContext(null);function nt(it,Yt){var $t=(0,Le.Z)({},it);return Object.keys(Yt).forEach(function(vn){var dn=Yt[vn];dn!==void 0&&($t[vn]=dn)}),$t}function Re(it){var Yt=it.children,$t=it.locked,vn=(0,Ee.Z)(it,Bt),dn=qe.useContext(ht),xn=(0,mt.Z)(function(){return nt(dn,vn)},[dn,vn],function(yn,_n){return!$t&&(yn[0]!==_n[0]||!(0,vt.Z)(yn[1],_n[1],!0))});return qe.createElement(ht.Provider,{value:xn},Yt)}var Ce=[],Je=qe.createContext(null);function et(){return qe.useContext(Je)}var wt=qe.createContext(Ce);function Qe(it){var Yt=qe.useContext(wt);return qe.useMemo(function(){return it!==void 0?[].concat((0,ct.Z)(Yt),[it]):Yt},[Yt,it])}var bt=qe.createContext(null),Oe=qe.createContext({}),Lt=Oe,tt=oe(29194);function Ut(it){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,tt.Z)(it)){var $t=it.nodeName.toLowerCase(),vn=["input","select","textarea","button"].includes($t)||it.isContentEditable||$t==="a"&&!!it.getAttribute("href"),dn=it.getAttribute("tabindex"),xn=Number(dn),yn=null;return dn&&!Number.isNaN(xn)?yn=xn:vn&&yn===null&&(yn=0),vn&&it.disabled&&(yn=null),yn!==null&&(yn>=0||Yt&&yn<0)}return!1}function At(it){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$t=(0,ct.Z)(it.querySelectorAll("*")).filter(function(vn){return Ut(vn,Yt)});return Ut(it,Yt)&&$t.unshift(it),$t}var Mt=null;function Wt(){Mt=document.activeElement}function It(){Mt=null}function Ge(){if(Mt)try{Mt.focus()}catch(it){}}function be(it,Yt){if(Yt.keyCode===9){var $t=At(it),vn=$t[Yt.shiftKey?0:$t.length-1],dn=vn===document.activeElement||it===document.activeElement;if(dn){var xn=$t[Yt.shiftKey?$t.length-1:0];xn.focus(),Yt.preventDefault()}}}var Ye=oe(10228),Pt=oe(16089),xt=Ye.Z.LEFT,Ue=Ye.Z.RIGHT,at=Ye.Z.UP,Ot=Ye.Z.DOWN,kn=Ye.Z.ENTER,Kt=Ye.Z.ESC,gn=Ye.Z.HOME,nn=Ye.Z.END,Gt=[at,Ot,xt,Ue];function Xt(it,Yt,$t,vn){var dn,xn,yn,_n,Un="prev",nr="next",mr="children",Tr="parent";if(it==="inline"&&vn===kn)return{inlineTrigger:!0};var jr=(dn={},(0,Ae.Z)(dn,at,Un),(0,Ae.Z)(dn,Ot,nr),dn),br=(xn={},(0,Ae.Z)(xn,xt,$t?nr:Un),(0,Ae.Z)(xn,Ue,$t?Un:nr),(0,Ae.Z)(xn,Ot,mr),(0,Ae.Z)(xn,kn,mr),xn),ir=(yn={},(0,Ae.Z)(yn,at,Un),(0,Ae.Z)(yn,Ot,nr),(0,Ae.Z)(yn,kn,mr),(0,Ae.Z)(yn,Kt,Tr),(0,Ae.Z)(yn,xt,$t?mr:Tr),(0,Ae.Z)(yn,Ue,$t?Tr:mr),yn),Ur={inline:jr,horizontal:br,vertical:ir,inlineSub:jr,horizontalSub:ir,verticalSub:ir},Nr=(_n=Ur["".concat(it).concat(Yt?"":"Sub")])===null||_n===void 0?void 0:_n[vn];switch(Nr){case Un:return{offset:-1,sibling:!0};case nr:return{offset:1,sibling:!0};case Tr:return{offset:-1,sibling:!1};case mr:return{offset:1,sibling:!1};default:return null}}function ye(it){for(var Yt=it;Yt;){if(Yt.getAttribute("data-menu-list"))return Yt;Yt=Yt.parentElement}return null}function ue(it,Yt){for(var $t=it||document.activeElement;$t;){if(Yt.has($t))return $t;$t=$t.parentElement}return null}function ce(it,Yt){var $t=At(it,!0);return $t.filter(function(vn){return Yt.has(vn)})}function de(it,Yt,$t){var vn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!it)return null;var dn=ce(it,Yt),xn=dn.length,yn=dn.findIndex(function(_n){return $t===_n});return vn<0?yn===-1?yn=xn-1:yn-=1:vn>0&&(yn+=1),yn=(yn+xn)%xn,dn[yn]}var he=function(Yt,$t){var vn=new Set,dn=new Map,xn=new Map;return Yt.forEach(function(yn){var _n=document.querySelector("[data-menu-id='".concat(je($t,yn),"']"));_n&&(vn.add(_n),xn.set(_n,yn),dn.set(yn,_n))}),{elements:vn,key2element:dn,element2key:xn}};function se(it,Yt,$t,vn,dn,xn,yn,_n,Un,nr){var mr=qe.useRef(),Tr=qe.useRef();Tr.current=Yt;var jr=function(){Pt.Z.cancel(mr.current)};return qe.useEffect(function(){return function(){jr()}},[]),function(br){var ir=br.which;if([].concat(Gt,[kn,Kt,gn,nn]).includes(ir)){var Ur=xn(),Nr=he(Ur,vn),$r=Nr,Cr=$r.elements,Lr=$r.key2element,ri=$r.element2key,Kr=Lr.get(Yt),Ei=ue(Kr,Cr),Ri=ri.get(Ei),zr=Xt(it,yn(Ri,!0).length===1,$t,ir);if(!zr&&ir!==gn&&ir!==nn)return;(Gt.includes(ir)||[gn,nn].includes(ir))&&br.preventDefault();var qn=function(oi){if(oi){var ta=oi,xr=oi.querySelector("a");xr!=null&&xr.getAttribute("href")&&(ta=xr);var Ir=ri.get(oi);_n(Ir),jr(),mr.current=(0,Pt.Z)(function(){Tr.current===Ir&&ta.focus()})}};if([gn,nn].includes(ir)||zr.sibling||!Ei){var Jn;!Ei||it==="inline"?Jn=dn.current:Jn=ye(Ei);var Jr,Rr=ce(Jn,Cr);ir===gn?Jr=Rr[0]:ir===nn?Jr=Rr[Rr.length-1]:Jr=de(Jn,Cr,Ei,zr.offset),qn(Jr)}else if(zr.inlineTrigger)Un(Ri);else if(zr.offset>0)Un(Ri,!0),jr(),mr.current=(0,Pt.Z)(function(){Nr=he(Ur,vn);var Qr=Ei.getAttribute("aria-controls"),oi=document.getElementById(Qr),ta=de(oi,Nr.elements);qn(ta)},5);else if(zr.offset<0){var li=yn(Ri,!0),pi=li[li.length-2],fi=Lr.get(pi);Un(pi,!1),qn(fi)}}nr==null||nr(br)}}function ke(it){Promise.resolve().then(it)}var gt="__RC_UTIL_PATH_SPLIT__",Ie=function(Yt){return Yt.join(gt)},Be=function(Yt){return Yt.split(gt)},yt="rc-menu-more";function rt(){var it=qe.useState({}),Yt=(0,xe.Z)(it,2),$t=Yt[1],vn=(0,qe.useRef)(new Map),dn=(0,qe.useRef)(new Map),xn=qe.useState([]),yn=(0,xe.Z)(xn,2),_n=yn[0],Un=yn[1],nr=(0,qe.useRef)(0),mr=(0,qe.useRef)(!1),Tr=function(){mr.current||$t({})},jr=(0,qe.useCallback)(function(Lr,ri){var Kr=Ie(ri);dn.current.set(Kr,Lr),vn.current.set(Lr,Kr),nr.current+=1;var Ei=nr.current;ke(function(){Ei===nr.current&&Tr()})},[]),br=(0,qe.useCallback)(function(Lr,ri){var Kr=Ie(ri);dn.current.delete(Kr),vn.current.delete(Lr)},[]),ir=(0,qe.useCallback)(function(Lr){Un(Lr)},[]),Ur=(0,qe.useCallback)(function(Lr,ri){var Kr=vn.current.get(Lr)||"",Ei=Be(Kr);return ri&&_n.includes(Ei[0])&&Ei.unshift(yt),Ei},[_n]),Nr=(0,qe.useCallback)(function(Lr,ri){return Lr.some(function(Kr){var Ei=Ur(Kr,!0);return Ei.includes(ri)})},[Ur]),$r=function(){var ri=(0,ct.Z)(vn.current.keys());return _n.length&&ri.push(yt),ri},Cr=(0,qe.useCallback)(function(Lr){var ri="".concat(vn.current.get(Lr)).concat(gt),Kr=new Set;return(0,ct.Z)(dn.current.keys()).forEach(function(Ei){Ei.startsWith(ri)&&Kr.add(dn.current.get(Ei))}),Kr},[]);return qe.useEffect(function(){return function(){mr.current=!0}},[]),{registerPath:jr,unregisterPath:br,refreshOverflowKeys:ir,isSubPathKey:Nr,getKeyPath:Ur,getKeys:$r,getSubPathKeys:Cr}}function Ve(it){var Yt=qe.useRef(it);Yt.current=it;var $t=qe.useCallback(function(){for(var vn,dn=arguments.length,xn=new Array(dn),yn=0;yn<dn;yn++)xn[yn]=arguments[yn];return(vn=Yt.current)===null||vn===void 0?void 0:vn.call.apply(vn,[Yt].concat(xn))},[]);return it?$t:void 0}var Ct=Math.random().toFixed(5).toString().slice(2),rn=0;function lt(it){var Yt=(0,_e.Z)(it,{value:it}),$t=(0,xe.Z)(Yt,2),vn=$t[0],dn=$t[1];return qe.useEffect(function(){rn+=1;var xn="".concat(Ct,"-").concat(rn);dn("rc-menu-uuid-".concat(xn))},[]),vn}var _t=oe(38705),fn=oe(17212),ut=oe(39153),De=oe(55401),dt=oe(2738),Ft=oe(8654);function zt(it,Yt,$t,vn){var dn=qe.useContext(ht),xn=dn.activeKey,yn=dn.onActive,_n=dn.onInactive,Un={active:xn===it};return Yt||(Un.onMouseEnter=function(nr){$t==null||$t({key:it,domEvent:nr}),yn(it)},Un.onMouseLeave=function(nr){vn==null||vn({key:it,domEvent:nr}),_n(it)}),Un}function an(it){var Yt=qe.useContext(ht),$t=Yt.mode,vn=Yt.rtl,dn=Yt.inlineIndent;if($t!=="inline")return null;var xn=it;return vn?{paddingRight:xn*dn}:{paddingLeft:xn*dn}}function Bn(it){var Yt=it.icon,$t=it.props,vn=it.children,dn;return Yt===null||Yt===!1?null:(typeof Yt=="function"?dn=qe.createElement(Yt,(0,Le.Z)({},$t)):typeof Yt!="boolean"&&(dn=Yt),dn||vn||null)}var qt=["item"];function pn(it){var Yt=it.item,$t=(0,Ee.Z)(it,qt);return Object.defineProperty($t,"item",{get:function(){return(0,Fe.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Yt}}),$t}var zn=["title","attribute","elementRef"],Vn=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Pn=["active"],Qn=function(it){(0,ut.Z)($t,it);var Yt=(0,De.Z)($t);function $t(){return(0,_t.Z)(this,$t),Yt.apply(this,arguments)}return(0,fn.Z)($t,[{key:"render",value:function(){var dn=this.props,xn=dn.title,yn=dn.attribute,_n=dn.elementRef,Un=(0,Ee.Z)(dn,zn),nr=(0,dt.Z)(Un,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Fe.ZP)(!yn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),qe.createElement(Me.Z.Item,(0,ae.Z)({},yn,{title:typeof xn=="string"?xn:void 0},nr,{ref:_n}))}}]),$t}(qe.Component),gr=qe.forwardRef(function(it,Yt){var $t,vn=it.style,dn=it.className,xn=it.eventKey,yn=it.warnKey,_n=it.disabled,Un=it.itemIcon,nr=it.children,mr=it.role,Tr=it.onMouseEnter,jr=it.onMouseLeave,br=it.onClick,ir=it.onKeyDown,Ur=it.onFocus,Nr=(0,Ee.Z)(it,Vn),$r=ft(xn),Cr=qe.useContext(ht),Lr=Cr.prefixCls,ri=Cr.onItemClick,Kr=Cr.disabled,Ei=Cr.overflowDisabled,Ri=Cr.itemIcon,zr=Cr.selectedKeys,qn=Cr.onActive,Jn=qe.useContext(Lt),Jr=Jn._internalRenderMenuItem,Rr="".concat(Lr,"-item"),li=qe.useRef(),pi=qe.useRef(),fi=Kr||_n,Qr=(0,Ft.x1)(Yt,pi),oi=Qe(xn),ta=function(Er){return{key:xn,keyPath:(0,ct.Z)(oi).reverse(),item:li.current,domEvent:Er}},xr=Un||Ri,Ir=zt(xn,fi,Tr,jr),mi=Ir.active,Mi=(0,Ee.Z)(Ir,Pn),da=zr.includes(xn),ca=an(oi.length),qi=function(Er){if(!fi){var Gr=ta(Er);br==null||br(pn(Gr)),ri(Gr)}},Wi=function(Er){if(ir==null||ir(Er),Er.which===Ye.Z.ENTER){var Gr=ta(Er);br==null||br(pn(Gr)),ri(Gr)}},xa=function(Er){qn(xn),Ur==null||Ur(Er)},wa={};it.role==="option"&&(wa["aria-selected"]=da);var Br=qe.createElement(Qn,(0,ae.Z)({ref:li,elementRef:Qr,role:mr===null?"none":mr||"menuitem",tabIndex:_n?null:-1,"data-menu-id":Ei&&$r?null:$r},Nr,Mi,wa,{component:"li","aria-disabled":_n,style:(0,Le.Z)((0,Le.Z)({},ca),vn),className:ve()(Rr,($t={},(0,Ae.Z)($t,"".concat(Rr,"-active"),mi),(0,Ae.Z)($t,"".concat(Rr,"-selected"),da),(0,Ae.Z)($t,"".concat(Rr,"-disabled"),fi),$t),dn),onClick:qi,onKeyDown:Wi,onFocus:xa}),nr,qe.createElement(Bn,{props:(0,Le.Z)((0,Le.Z)({},it),{},{isSelected:da}),icon:xr}));return Jr&&(Br=Jr(Br,it,{selected:da})),Br});function rr(it,Yt){var $t=it.eventKey,vn=et(),dn=Qe($t);return qe.useEffect(function(){if(vn)return vn.registerPath($t,dn),function(){vn.unregisterPath($t,dn)}},[dn]),vn?null:qe.createElement(gr,(0,ae.Z)({},it,{ref:Yt}))}var er=qe.forwardRef(rr),pr=["className","children"],Pr=function(Yt,$t){var vn=Yt.className,dn=Yt.children,xn=(0,Ee.Z)(Yt,pr),yn=qe.useContext(ht),_n=yn.prefixCls,Un=yn.mode,nr=yn.rtl;return qe.createElement("ul",(0,ae.Z)({className:ve()(_n,nr&&"".concat(_n,"-rtl"),"".concat(_n,"-sub"),"".concat(_n,"-").concat(Un==="inline"?"inline":"vertical"),vn),role:"menu"},xn,{"data-menu-list":!0,ref:$t}),dn)},$n=qe.forwardRef(Pr);$n.displayName="SubMenuList";var Wr=$n,vr=oe(11592);function qr(it,Yt){return(0,vr.Z)(it).map(function($t,vn){if(qe.isValidElement($t)){var dn,xn,yn=$t.key,_n=(dn=(xn=$t.props)===null||xn===void 0?void 0:xn.eventKey)!==null&&dn!==void 0?dn:yn,Un=_n==null;Un&&(_n="tmp_key-".concat([].concat((0,ct.Z)(Yt),[vn]).join("-")));var nr={key:_n,eventKey:_n};return qe.cloneElement($t,nr)}return $t})}var xi=oe(35593),Ar={adjustX:1,adjustY:1},dr={topLeft:{points:["bl","tl"],overflow:Ar},topRight:{points:["br","tr"],overflow:Ar},bottomLeft:{points:["tl","bl"],overflow:Ar},bottomRight:{points:["tr","br"],overflow:Ar},leftTop:{points:["tr","tl"],overflow:Ar},leftBottom:{points:["br","bl"],overflow:Ar},rightTop:{points:["tl","tr"],overflow:Ar},rightBottom:{points:["bl","br"],overflow:Ar}},Mr={topLeft:{points:["bl","tl"],overflow:Ar},topRight:{points:["br","tr"],overflow:Ar},bottomLeft:{points:["tl","bl"],overflow:Ar},bottomRight:{points:["tr","br"],overflow:Ar},rightTop:{points:["tr","tl"],overflow:Ar},rightBottom:{points:["br","bl"],overflow:Ar},leftTop:{points:["tl","tr"],overflow:Ar},leftBottom:{points:["bl","br"],overflow:Ar}},tr=null;function Gn(it,Yt,$t){if(Yt)return Yt;if($t)return $t[it]||$t.other}var Xr={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Rt(it){var Yt=it.prefixCls,$t=it.visible,vn=it.children,dn=it.popup,xn=it.popupStyle,yn=it.popupClassName,_n=it.popupOffset,Un=it.disabled,nr=it.mode,mr=it.onVisibleChange,Tr=qe.useContext(ht),jr=Tr.getPopupContainer,br=Tr.rtl,ir=Tr.subMenuOpenDelay,Ur=Tr.subMenuCloseDelay,Nr=Tr.builtinPlacements,$r=Tr.triggerSubMenuAction,Cr=Tr.forceSubMenuRender,Lr=Tr.rootClassName,ri=Tr.motion,Kr=Tr.defaultMotions,Ei=qe.useState(!1),Ri=(0,xe.Z)(Ei,2),zr=Ri[0],qn=Ri[1],Jn=br?(0,Le.Z)((0,Le.Z)({},Mr),Nr):(0,Le.Z)((0,Le.Z)({},dr),Nr),Jr=Xr[nr],Rr=Gn(nr,ri,Kr),li=qe.useRef(Rr);nr!=="inline"&&(li.current=Rr);var pi=(0,Le.Z)((0,Le.Z)({},li.current),{},{leavedClassName:"".concat(Yt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),fi=qe.useRef();return qe.useEffect(function(){return fi.current=(0,Pt.Z)(function(){qn($t)}),function(){Pt.Z.cancel(fi.current)}},[$t]),qe.createElement(xi.Z,{prefixCls:Yt,popupClassName:ve()("".concat(Yt,"-popup"),(0,Ae.Z)({},"".concat(Yt,"-rtl"),br),yn,Lr),stretch:nr==="horizontal"?"minWidth":null,getPopupContainer:jr,builtinPlacements:Jn,popupPlacement:Jr,popupVisible:zr,popup:dn,popupStyle:xn,popupAlign:_n&&{offset:_n},action:Un?[]:[$r],mouseEnterDelay:ir,mouseLeaveDelay:Ur,onPopupVisibleChange:mr,forceRender:Cr,popupMotion:pi,fresh:!0},vn)}var ze=oe(77900);function $e(it){var Yt=it.id,$t=it.open,vn=it.keyPath,dn=it.children,xn="inline",yn=qe.useContext(ht),_n=yn.prefixCls,Un=yn.forceSubMenuRender,nr=yn.motion,mr=yn.defaultMotions,Tr=yn.mode,jr=qe.useRef(!1);jr.current=Tr===xn;var br=qe.useState(!jr.current),ir=(0,xe.Z)(br,2),Ur=ir[0],Nr=ir[1],$r=jr.current?$t:!1;qe.useEffect(function(){jr.current&&Nr(!1)},[Tr]);var Cr=(0,Le.Z)({},Gn(xn,nr,mr));vn.length>1&&(Cr.motionAppear=!1);var Lr=Cr.onVisibleChanged;return Cr.onVisibleChanged=function(ri){return!jr.current&&!ri&&Nr(!0),Lr==null?void 0:Lr(ri)},Ur?null:qe.createElement(Re,{mode:xn,locked:!jr.current},qe.createElement(ze.default,(0,ae.Z)({visible:$r},Cr,{forceRender:Un,removeOnLeave:!1,leavedClassName:"".concat(_n,"-hidden")}),function(ri){var Kr=ri.className,Ei=ri.style;return qe.createElement(Wr,{id:Yt,className:Kr,style:Ei},dn)}))}var Xe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ze=["active"],Et=function(Yt){var $t,vn=Yt.style,dn=Yt.className,xn=Yt.title,yn=Yt.eventKey,_n=Yt.warnKey,Un=Yt.disabled,nr=Yt.internalPopupClose,mr=Yt.children,Tr=Yt.itemIcon,jr=Yt.expandIcon,br=Yt.popupClassName,ir=Yt.popupOffset,Ur=Yt.popupStyle,Nr=Yt.onClick,$r=Yt.onMouseEnter,Cr=Yt.onMouseLeave,Lr=Yt.onTitleClick,ri=Yt.onTitleMouseEnter,Kr=Yt.onTitleMouseLeave,Ei=(0,Ee.Z)(Yt,Xe),Ri=ft(yn),zr=qe.useContext(ht),qn=zr.prefixCls,Jn=zr.mode,Jr=zr.openKeys,Rr=zr.disabled,li=zr.overflowDisabled,pi=zr.activeKey,fi=zr.selectedKeys,Qr=zr.itemIcon,oi=zr.expandIcon,ta=zr.onItemClick,xr=zr.onOpenChange,Ir=zr.onActive,mi=qe.useContext(Lt),Mi=mi._internalRenderSubMenuItem,da=qe.useContext(bt),ca=da.isSubPathKey,qi=Qe(),Wi="".concat(qn,"-submenu"),xa=Rr||Un,wa=qe.useRef(),Br=qe.useRef(),kr=Tr!=null?Tr:Qr,Er=jr!=null?jr:oi,Gr=Jr.includes(yn),Xi=!li&&Gr,fa=ca(fi,yn),va=zt(yn,xa,ri,Kr),pa=va.active,ua=(0,Ee.Z)(va,Ze),Aa=qe.useState(!1),Ya=(0,xe.Z)(Aa,2),Ua=Ya[0],go=Ya[1],Fi=function(ui){xa||go(ui)},Vi=function(ui){Fi(!0),$r==null||$r({key:yn,domEvent:ui})},La=function(ui){Fi(!1),Cr==null||Cr({key:yn,domEvent:ui})},aa=qe.useMemo(function(){return pa||(Jn!=="inline"?Ua||ca([pi],yn):!1)},[Jn,pa,pi,Ua,yn,ca]),ha=an(qi.length),An=function(ui){xa||(Lr==null||Lr({key:yn,domEvent:ui}),Jn==="inline"&&xr(yn,!Gr))},Cn=Ve(function(Li){Nr==null||Nr(pn(Li)),ta(Li)}),mn=function(ui){Jn!=="inline"&&xr(yn,ui)},Wn=function(){Ir(yn)},ar=Ri&&"".concat(Ri,"-popup"),or=qe.createElement("div",(0,ae.Z)({role:"menuitem",style:ha,className:"".concat(Wi,"-title"),tabIndex:xa?null:-1,ref:wa,title:typeof xn=="string"?xn:null,"data-menu-id":li&&Ri?null:Ri,"aria-expanded":Xi,"aria-haspopup":!0,"aria-controls":ar,"aria-disabled":xa,onClick:An,onFocus:Wn},ua),xn,qe.createElement(Bn,{icon:Jn!=="horizontal"?Er:void 0,props:(0,Le.Z)((0,Le.Z)({},Yt),{},{isOpen:Xi,isSubMenu:!0})},qe.createElement("i",{className:"".concat(Wi,"-arrow")}))),Hn=qe.useRef(Jn);if(Jn!=="inline"&&qi.length>1?Hn.current="vertical":Hn.current=Jn,!li){var wr=Hn.current;or=qe.createElement(Rt,{mode:wr,prefixCls:Wi,visible:!nr&&Xi&&Jn!=="inline",popupClassName:br,popupOffset:ir,popupStyle:Ur,popup:qe.createElement(Re,{mode:wr==="horizontal"?"vertical":wr},qe.createElement(Wr,{id:ar,ref:Br},mr)),disabled:xa,onVisibleChange:mn},or)}var ci=qe.createElement(Me.Z.Item,(0,ae.Z)({role:"none"},Ei,{component:"li",style:vn,className:ve()(Wi,"".concat(Wi,"-").concat(Jn),dn,($t={},(0,Ae.Z)($t,"".concat(Wi,"-open"),Xi),(0,Ae.Z)($t,"".concat(Wi,"-active"),aa),(0,Ae.Z)($t,"".concat(Wi,"-selected"),fa),(0,Ae.Z)($t,"".concat(Wi,"-disabled"),xa),$t)),onMouseEnter:Vi,onMouseLeave:La}),or,!li&&qe.createElement($e,{id:ar,open:Xi,keyPath:qi},mr));return Mi&&(ci=Mi(ci,Yt,{selected:fa,active:aa,open:Xi,disabled:xa})),qe.createElement(Re,{onItemClick:Cn,mode:Jn==="horizontal"?"vertical":Jn,itemIcon:kr,expandIcon:Er},ci)};function Tt(it){var Yt=it.eventKey,$t=it.children,vn=Qe(Yt),dn=qr($t,vn),xn=et();qe.useEffect(function(){if(xn)return xn.registerPath(Yt,vn),function(){xn.unregisterPath(Yt,vn)}},[vn]);var yn;return xn?yn=dn:yn=qe.createElement(Et,it,dn),qe.createElement(wt.Provider,{value:vn},yn)}var hn=oe(43749),ln=["className","title","eventKey","children"],wn=["children"],Tn=function(Yt){var $t=Yt.className,vn=Yt.title,dn=Yt.eventKey,xn=Yt.children,yn=(0,Ee.Z)(Yt,ln),_n=qe.useContext(ht),Un=_n.prefixCls,nr="".concat(Un,"-item-group");return qe.createElement("li",(0,ae.Z)({role:"presentation"},yn,{onClick:function(Tr){return Tr.stopPropagation()},className:ve()(nr,$t)}),qe.createElement("div",{role:"presentation",className:"".concat(nr,"-title"),title:typeof vn=="string"?vn:void 0},vn),qe.createElement("ul",{role:"group",className:"".concat(nr,"-list")},xn))};function Fn(it){var Yt=it.children,$t=(0,Ee.Z)(it,wn),vn=Qe($t.eventKey),dn=qr(Yt,vn),xn=et();return xn?dn:qe.createElement(Tn,(0,dt.Z)($t,["warnKey"]),dn)}function jn(it){var Yt=it.className,$t=it.style,vn=qe.useContext(ht),dn=vn.prefixCls,xn=et();return xn?null:qe.createElement("li",{role:"separator",className:ve()("".concat(dn,"-item-divider"),Yt),style:$t})}var Qt=["label","children","key","type"];function Dn(it){return(it||[]).map(function(Yt,$t){if(Yt&&(0,hn.Z)(Yt)==="object"){var vn=Yt,dn=vn.label,xn=vn.children,yn=vn.key,_n=vn.type,Un=(0,Ee.Z)(vn,Qt),nr=yn!=null?yn:"tmp-".concat($t);return xn||_n==="group"?_n==="group"?qe.createElement(Fn,(0,ae.Z)({key:nr},Un,{title:dn}),Dn(xn)):qe.createElement(Tt,(0,ae.Z)({key:nr},Un,{title:dn}),Dn(xn)):_n==="divider"?qe.createElement(jn,(0,ae.Z)({key:nr},Un)):qe.createElement(er,(0,ae.Z)({key:nr},Un),dn)}return null}).filter(function(Yt){return Yt})}function Dt(it,Yt,$t){var vn=it;return Yt&&(vn=Dn(Yt)),qr(vn,$t)}var Zt=["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"],on=[],cn=qe.forwardRef(function(it,Yt){var $t,vn,dn=it,xn=dn.prefixCls,yn=xn===void 0?"rc-menu":xn,_n=dn.rootClassName,Un=dn.style,nr=dn.className,mr=dn.tabIndex,Tr=mr===void 0?0:mr,jr=dn.items,br=dn.children,ir=dn.direction,Ur=dn.id,Nr=dn.mode,$r=Nr===void 0?"vertical":Nr,Cr=dn.inlineCollapsed,Lr=dn.disabled,ri=dn.disabledOverflow,Kr=dn.subMenuOpenDelay,Ei=Kr===void 0?.1:Kr,Ri=dn.subMenuCloseDelay,zr=Ri===void 0?.1:Ri,qn=dn.forceSubMenuRender,Jn=dn.defaultOpenKeys,Jr=dn.openKeys,Rr=dn.activeKey,li=dn.defaultActiveFirst,pi=dn.selectable,fi=pi===void 0?!0:pi,Qr=dn.multiple,oi=Qr===void 0?!1:Qr,ta=dn.defaultSelectedKeys,xr=dn.selectedKeys,Ir=dn.onSelect,mi=dn.onDeselect,Mi=dn.inlineIndent,da=Mi===void 0?24:Mi,ca=dn.motion,qi=dn.defaultMotions,Wi=dn.triggerSubMenuAction,xa=Wi===void 0?"hover":Wi,wa=dn.builtinPlacements,Br=dn.itemIcon,kr=dn.expandIcon,Er=dn.overflowedIndicator,Gr=Er===void 0?"...":Er,Xi=dn.overflowedIndicatorPopupClassName,fa=dn.getPopupContainer,va=dn.onClick,pa=dn.onOpenChange,ua=dn.onKeyDown,Aa=dn.openAnimation,Ya=dn.openTransitionName,Ua=dn._internalRenderMenuItem,go=dn._internalRenderSubMenuItem,Fi=(0,Ee.Z)(dn,Zt),Vi=qe.useMemo(function(){return Dt(br,jr,on)},[br,jr]),La=qe.useState(!1),aa=(0,xe.Z)(La,2),ha=aa[0],An=aa[1],Cn=qe.useRef(),mn=lt(Ur),Wn=ir==="rtl",ar=(0,_e.Z)(Jn,{value:Jr,postState:function(Ga){return Ga||on}}),or=(0,xe.Z)(ar,2),Hn=or[0],wr=or[1],ci=function(Ga){var $a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function xs(){wr(Ga),pa==null||pa(Ga)}$a?(0,pt.flushSync)(xs):xs()},Li=qe.useState(Hn),ui=(0,xe.Z)(Li,2),yr=ui[0],di=ui[1],ki=qe.useRef(!1),na=qe.useMemo(function(){return($r==="inline"||$r==="vertical")&&Cr?["vertical",Cr]:[$r,!1]},[$r,Cr]),vi=(0,xe.Z)(na,2),wi=vi[0],Gi=vi[1],Sa=wi==="inline",Ra=qe.useState(wi),so=(0,xe.Z)(Ra,2),Do=so[0],Ys=so[1],ss=qe.useState(Gi),Mo=(0,xe.Z)(ss,2),fo=Mo[0],Os=Mo[1];qe.useEffect(function(){Ys(wi),Os(Gi),ki.current&&(Sa?wr(yr):ci(on))},[wi,Gi]);var Wo=qe.useState(0),hs=(0,xe.Z)(Wo,2),Xs=hs[0],Ns=hs[1],ko=Xs>=Vi.length-1||Do!=="horizontal"||ri;qe.useEffect(function(){Sa&&di(Hn)},[Hn]),qe.useEffect(function(){return ki.current=!0,function(){ki.current=!1}},[]);var vo=rt(),za=vo.registerPath,Rs=vo.unregisterPath,cl=vo.refreshOverflowKeys,ys=vo.isSubPathKey,Ca=vo.getKeyPath,ba=vo.getKeys,qa=vo.getSubPathKeys,yo=qe.useMemo(function(){return{registerPath:za,unregisterPath:Rs}},[za,Rs]),io=qe.useMemo(function(){return{isSubPathKey:ys}},[ys]);qe.useEffect(function(){cl(ko?on:Vi.slice(Xs+1).map(function(Ha){return Ha.key}))},[Xs,ko]);var Zo=(0,_e.Z)(Rr||li&&(($t=Vi[0])===null||$t===void 0?void 0:$t.key),{value:Rr}),Qo=(0,xe.Z)(Zo,2),bs=Qo[0],Jo=Qo[1],Ws=Ve(function(Ha){Jo(Ha)}),Fs=Ve(function(){Jo(void 0)});(0,qe.useImperativeHandle)(Yt,function(){return{list:Cn.current,focus:function(Ga){var $a,xs=ba(),$o=he(xs,mn),Qs=$o.elements,ps=$o.key2element,jo=$o.element2key,tl=ce(Cn.current,Qs),nl=bs!=null?bs:tl[0]?jo.get(tl[0]):($a=Vi.find(function(Jc){return!Jc.props.disabled}))===null||$a===void 0?void 0:$a.key,rl=ps.get(nl);if(nl&&rl){var Il;rl==null||(Il=rl.focus)===null||Il===void 0||Il.call(rl,Ga)}}}});var qo=(0,_e.Z)(ta||[],{value:xr,postState:function(Ga){return Array.isArray(Ga)?Ga:Ga==null?on:[Ga]}}),gc=(0,xe.Z)(qo,2),vl=gc[0],yl=gc[1],nc=function(Ga){if(fi){var $a=Ga.key,xs=vl.includes($a),$o;oi?xs?$o=vl.filter(function(ps){return ps!==$a}):$o=[].concat((0,ct.Z)(vl),[$a]):$o=[$a],yl($o);var Qs=(0,Le.Z)((0,Le.Z)({},Ga),{},{selectedKeys:$o});xs?mi==null||mi(Qs):Ir==null||Ir(Qs)}!oi&&Hn.length&&Do!=="inline"&&ci(on)},Vl=Ve(function(Ha){va==null||va(pn(Ha)),nc(Ha)}),Ll=Ve(function(Ha,Ga){var $a=Hn.filter(function($o){return $o!==Ha});if(Ga)$a.push(Ha);else if(Do!=="inline"){var xs=qa(Ha);$a=$a.filter(function($o){return!xs.has($o)})}(0,vt.Z)(Hn,$a,!0)||ci($a,!0)}),Qc=function(Ga,$a){var xs=$a!=null?$a:!Hn.includes(Ga);Ll(Ga,xs)},ul=se(Do,bs,Wn,mn,Cn,ba,Ca,Jo,Qc,ua);qe.useEffect(function(){An(!0)},[]);var rc=qe.useMemo(function(){return{_internalRenderMenuItem:Ua,_internalRenderSubMenuItem:go}},[Ua,go]),dl=Do!=="horizontal"||ri?Vi:Vi.map(function(Ha,Ga){return qe.createElement(Re,{key:Ha.key,overflowDisabled:Ga>Xs},Ha)}),bl=qe.createElement(Me.Z,(0,ae.Z)({id:Ur,ref:Cn,prefixCls:"".concat(yn,"-overflow"),component:"ul",itemComponent:er,className:ve()(yn,"".concat(yn,"-root"),"".concat(yn,"-").concat(Do),nr,(vn={},(0,Ae.Z)(vn,"".concat(yn,"-inline-collapsed"),fo),(0,Ae.Z)(vn,"".concat(yn,"-rtl"),Wn),vn),_n),dir:ir,style:Un,role:"menu",tabIndex:Tr,data:dl,renderRawItem:function(Ga){return Ga},renderRawRest:function(Ga){var $a=Ga.length,xs=$a?Vi.slice(-$a):null;return qe.createElement(Tt,{eventKey:yt,title:Gr,disabled:ko,internalPopupClose:$a===0,popupClassName:Xi},xs)},maxCount:Do!=="horizontal"||ri?Me.Z.INVALIDATE:Me.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ga){Ns(Ga)},onKeyDown:ul},Fi));return qe.createElement(Lt.Provider,{value:rc},qe.createElement(Ke.Provider,{value:mn},qe.createElement(Re,{prefixCls:yn,rootClassName:_n,mode:Do,openKeys:Hn,rtl:Wn,disabled:Lr,motion:ha?ca:null,defaultMotions:ha?qi:null,activeKey:bs,onActive:Ws,onInactive:Fs,selectedKeys:vl,inlineIndent:da,subMenuOpenDelay:Ei,subMenuCloseDelay:zr,forceSubMenuRender:qn,builtinPlacements:wa,triggerSubMenuAction:xa,getPopupContainer:fa,itemIcon:Br,expandIcon:kr,onItemClick:Vl,onOpenChange:Ll},qe.createElement(bt.Provider,{value:io},bl),qe.createElement("div",{style:{display:"none"},"aria-hidden":!0},qe.createElement(Je.Provider,{value:yo},Vi)))))}),In=cn,en=In;en.Item=er,en.SubMenu=Tt,en.ItemGroup=Fn,en.Divider=jn;var Ln=en},83836:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return Wt}});var ae=oe(60499),Ae=oe(85899),Le=oe(72190),ct=oe(42244),xe=oe(59301),Ee=oe(92310),pe=oe.n(Ee),ve=oe(29301),Me=oe(34280),_e=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],vt=void 0;function Fe(It,Ge){var be=It.prefixCls,Ye=It.invalidate,Pt=It.item,xt=It.renderItem,Ue=It.responsive,at=It.responsiveDisabled,Ot=It.registerSize,kn=It.itemKey,Kt=It.className,gn=It.style,nn=It.children,Gt=It.display,Xt=It.order,ye=It.component,ue=ye===void 0?"div":ye,ce=(0,ct.Z)(It,_e),de=Ue&&!Gt;function he(Be){Ot(kn,Be)}xe.useEffect(function(){return function(){he(null)}},[]);var se=xt&&Pt!==vt?xt(Pt,{index:Xt}):nn,ke;Ye||(ke={opacity:de?0:1,height:de?0:vt,overflowY:de?"hidden":vt,order:Ue?Xt:vt,pointerEvents:de?"none":vt,position:de?"absolute":vt});var gt={};de&&(gt["aria-hidden"]=!0);var Ie=xe.createElement(ue,(0,ae.Z)({className:pe()(!Ye&&be,Kt),style:(0,Ae.Z)((0,Ae.Z)({},ke),gn)},gt,ce,{ref:Ge}),se);return Ue&&(Ie=xe.createElement(ve.Z,{onResize:function(yt){var rt=yt.offsetWidth;he(rt)},disabled:at},Ie)),Ie}var qe=xe.forwardRef(Fe);qe.displayName="Item";var pt=qe,Ke=oe(6089),je=oe(4676),ft=oe(16089);function mt(It){if(typeof MessageChannel=="undefined")(0,ft.Z)(It);else{var Ge=new MessageChannel;Ge.port1.onmessage=function(){return It()},Ge.port2.postMessage(void 0)}}function Bt(){var It=xe.useRef(null),Ge=function(Ye){It.current||(It.current=[],mt(function(){(0,je.unstable_batchedUpdates)(function(){It.current.forEach(function(Pt){Pt()}),It.current=null})})),It.current.push(Ye)};return Ge}function ht(It,Ge){var be=xe.useState(Ge),Ye=(0,Le.Z)(be,2),Pt=Ye[0],xt=Ye[1],Ue=(0,Ke.Z)(function(at){It(function(){xt(at)})});return[Pt,Ue]}var nt=xe.createContext(null),Re=["component"],Ce=["className"],Je=["className"],et=function(Ge,be){var Ye=xe.useContext(nt);if(!Ye){var Pt=Ge.component,xt=Pt===void 0?"div":Pt,Ue=(0,ct.Z)(Ge,Re);return xe.createElement(xt,(0,ae.Z)({},Ue,{ref:be}))}var at=Ye.className,Ot=(0,ct.Z)(Ye,Ce),kn=Ge.className,Kt=(0,ct.Z)(Ge,Je);return xe.createElement(nt.Provider,{value:null},xe.createElement(pt,(0,ae.Z)({ref:be,className:pe()(at,kn)},Ot,Kt)))},wt=xe.forwardRef(et);wt.displayName="RawItem";var Qe=wt,bt=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Oe="responsive",Lt="invalidate";function tt(It){return"+ ".concat(It.length," ...")}function Ut(It,Ge){var be=It.prefixCls,Ye=be===void 0?"rc-overflow":be,Pt=It.data,xt=Pt===void 0?[]:Pt,Ue=It.renderItem,at=It.renderRawItem,Ot=It.itemKey,kn=It.itemWidth,Kt=kn===void 0?10:kn,gn=It.ssr,nn=It.style,Gt=It.className,Xt=It.maxCount,ye=It.renderRest,ue=It.renderRawRest,ce=It.prefix,de=It.suffix,he=It.component,se=he===void 0?"div":he,ke=It.itemComponent,gt=It.onVisibleChange,Ie=(0,ct.Z)(It,bt),Be=gn==="full",yt=Bt(),rt=ht(yt,null),Ve=(0,Le.Z)(rt,2),Ct=Ve[0],rn=Ve[1],lt=Ct||0,_t=ht(yt,new Map),fn=(0,Le.Z)(_t,2),ut=fn[0],De=fn[1],dt=ht(yt,0),Ft=(0,Le.Z)(dt,2),zt=Ft[0],an=Ft[1],Bn=ht(yt,0),qt=(0,Le.Z)(Bn,2),pn=qt[0],zn=qt[1],Vn=ht(yt,0),Pn=(0,Le.Z)(Vn,2),Qn=Pn[0],gr=Pn[1],rr=ht(yt,0),er=(0,Le.Z)(rr,2),pr=er[0],Pr=er[1],$n=(0,xe.useState)(null),Wr=(0,Le.Z)($n,2),vr=Wr[0],qr=Wr[1],xi=(0,xe.useState)(null),Ar=(0,Le.Z)(xi,2),dr=Ar[0],Mr=Ar[1],tr=xe.useMemo(function(){return dr===null&&Be?Number.MAX_SAFE_INTEGER:dr||0},[dr,Ct]),Gn=(0,xe.useState)(!1),Xr=(0,Le.Z)(Gn,2),Rt=Xr[0],ze=Xr[1],$e="".concat(Ye,"-item"),Xe=Math.max(zt,pn),Ze=Xt===Oe,Et=xt.length&&Ze,Tt=Xt===Lt,hn=Et||typeof Xt=="number"&&xt.length>Xt,ln=(0,xe.useMemo)(function(){var xn=xt;return Et?Ct===null&&Be?xn=xt:xn=xt.slice(0,Math.min(xt.length,lt/Kt)):typeof Xt=="number"&&(xn=xt.slice(0,Xt)),xn},[xt,Kt,Ct,Xt,Et]),wn=(0,xe.useMemo)(function(){return Et?xt.slice(tr+1):xt.slice(ln.length)},[xt,ln,Et,tr]),Tn=(0,xe.useCallback)(function(xn,yn){var _n;return typeof Ot=="function"?Ot(xn):(_n=Ot&&(xn==null?void 0:xn[Ot]))!==null&&_n!==void 0?_n:yn},[Ot]),Fn=(0,xe.useCallback)(Ue||function(xn){return xn},[Ue]);function jn(xn,yn,_n){dr===xn&&(yn===void 0||yn===vr)||(Mr(xn),_n||(ze(xn<xt.length-1),gt==null||gt(xn)),yn!==void 0&&qr(yn))}function Qt(xn,yn){rn(yn.clientWidth)}function Dn(xn,yn){De(function(_n){var Un=new Map(_n);return yn===null?Un.delete(xn):Un.set(xn,yn),Un})}function Dt(xn,yn){zn(yn),an(pn)}function Zt(xn,yn){gr(yn)}function on(xn,yn){Pr(yn)}function cn(xn){return ut.get(Tn(ln[xn],xn))}(0,Me.Z)(function(){if(lt&&typeof Xe=="number"&&ln){var xn=Qn+pr,yn=ln.length,_n=yn-1;if(!yn){jn(0,null);return}for(var Un=0;Un<yn;Un+=1){var nr=cn(Un);if(Be&&(nr=nr||0),nr===void 0){jn(Un-1,void 0,!0);break}if(xn+=nr,_n===0&&xn<=lt||Un===_n-1&&xn+cn(_n)<=lt){jn(_n,null);break}else if(xn+Xe>lt){jn(Un-1,xn-nr-pr+pn);break}}de&&cn(0)+pr>lt&&qr(null)}},[lt,ut,pn,Qn,pr,Tn,ln]);var In=Rt&&!!wn.length,en={};vr!==null&&Et&&(en={position:"absolute",left:vr,top:0});var Ln={prefixCls:$e,responsive:Et,component:ke,invalidate:Tt},it=at?function(xn,yn){var _n=Tn(xn,yn);return xe.createElement(nt.Provider,{key:_n,value:(0,Ae.Z)((0,Ae.Z)({},Ln),{},{order:yn,item:xn,itemKey:_n,registerSize:Dn,display:yn<=tr})},at(xn,yn))}:function(xn,yn){var _n=Tn(xn,yn);return xe.createElement(pt,(0,ae.Z)({},Ln,{order:yn,key:_n,item:xn,renderItem:Fn,itemKey:_n,registerSize:Dn,display:yn<=tr}))},Yt={order:In?tr:Number.MAX_SAFE_INTEGER,className:"".concat($e,"-rest"),registerSize:Dt,display:In},$t=ye||tt,vn=ue?xe.createElement(nt.Provider,{value:(0,Ae.Z)((0,Ae.Z)({},Ln),Yt)},ue(wn)):xe.createElement(pt,(0,ae.Z)({},Ln,Yt),typeof $t=="function"?$t(wn):$t),dn=xe.createElement(se,(0,ae.Z)({className:pe()(!Tt&&Ye,Gt),style:nn,ref:Ge},Ie),ce&&xe.createElement(pt,(0,ae.Z)({},Ln,{responsive:Ze,responsiveDisabled:!Et,order:-1,className:"".concat($e,"-prefix"),registerSize:Zt,display:!0}),ce),ln.map(it),hn?vn:null,de&&xe.createElement(pt,(0,ae.Z)({},Ln,{responsive:Ze,responsiveDisabled:!Et,order:tr,className:"".concat($e,"-suffix"),registerSize:on,display:!0,style:en}),de));return Ze?xe.createElement(ve.Z,{onResize:Qt,disabled:!Et},dn):dn}var At=xe.forwardRef(Ut);At.displayName="Overflow",At.Item=Qe,At.RESPONSIVE=Oe,At.INVALIDATE=Lt;var Mt=At,Wt=Mt},91735:function(Mn,tn){"use strict";tn.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},17115:function(Mn,tn,oe){"use strict";oe.d(tn,{ZP:function(){return pe}});var ae=oe(72190),Ae=oe(59301),Le=oe(47273),ct=0,xe=(0,Le.Z)();function Ee(){var ve;return xe?(ve=ct,ct+=1):ve="TEST_OR_SSR",ve}function pe(ve){var Me=Ae.useState(),_e=(0,ae.Z)(Me,2),vt=_e[0],Fe=_e[1];return Ae.useEffect(function(){Fe("rc_select_".concat(Ee()))},[]),ve||vt}},77861:function(Mn,tn,oe){"use strict";oe.d(tn,{Ac:function(){return Ct},Xo:function(){return pn},Wx:function(){return Vn},ZP:function(){return $e},lk:function(){return nt}});var ae=oe(60499),Ae=oe(77654),Le=oe(18642),ct=oe(85899),xe=oe(72190),Ee=oe(42244),pe=oe(43749),ve=oe(18929),Me=oe(48736),_e=oe(59301),vt=oe(92310),Fe=oe.n(vt),qe=oe(34280),pt=oe(49658),Ke=oe(10228),je=oe(8654),ft=function(Ze){var Et=Ze.className,Tt=Ze.customizeIcon,hn=Ze.customizeIconProps,ln=Ze.onMouseDown,wn=Ze.onClick,Tn=Ze.children,Fn;return typeof Tt=="function"?Fn=Tt(hn):Fn=Tt,_e.createElement("span",{className:Et,onMouseDown:function(Qt){Qt.preventDefault(),ln&&ln(Qt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:wn,"aria-hidden":!0},Fn!==void 0?Fn:_e.createElement("span",{className:Fe()(Et.split(/\s+/).map(function(jn){return"".concat(jn,"-icon")}))},Tn))},mt=ft;function Bt(Xe,Ze,Et,Tt,hn){var ln=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,wn=arguments.length>6?arguments[6]:void 0,Tn=arguments.length>7?arguments[7]:void 0,Fn=_e.useMemo(function(){if((0,pe.Z)(Tt)==="object")return Tt.clearIcon;if(hn)return hn},[Tt,hn]),jn=_e.useMemo(function(){return!!(!ln&&Tt&&(Et.length||wn)&&!(Tn==="combobox"&&wn===""))},[Tt,ln,Et.length,wn,Tn]);return{allowClear:jn,clearIcon:_e.createElement(mt,{className:"".concat(Xe,"-clear"),onMouseDown:Ze,customizeIcon:Fn},"\xD7")}}var ht=_e.createContext(null);function nt(){return _e.useContext(ht)}function Re(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ze=_e.useState(!1),Et=(0,xe.Z)(Ze,2),Tt=Et[0],hn=Et[1],ln=_e.useRef(null),wn=function(){window.clearTimeout(ln.current)};_e.useEffect(function(){return wn},[]);var Tn=function(jn,Qt){wn(),ln.current=window.setTimeout(function(){hn(jn),Qt&&Qt()},Xe)};return[Tt,Tn,wn]}function Ce(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ze=_e.useRef(null),Et=_e.useRef(null);_e.useEffect(function(){return function(){window.clearTimeout(Et.current)}},[]);function Tt(hn){(hn||Ze.current===null)&&(Ze.current=hn),window.clearTimeout(Et.current),Et.current=window.setTimeout(function(){Ze.current=null},Xe)}return[function(){return Ze.current},Tt]}function Je(Xe,Ze,Et,Tt){var hn=_e.useRef(null);hn.current={open:Ze,triggerOpen:Et,customizedTrigger:Tt},_e.useEffect(function(){function ln(wn){var Tn;if(!((Tn=hn.current)!==null&&Tn!==void 0&&Tn.customizedTrigger)){var Fn=wn.target;Fn.shadowRoot&&wn.composed&&(Fn=wn.composedPath()[0]||Fn),hn.current.open&&Xe().filter(function(jn){return jn}).every(function(jn){return!jn.contains(Fn)&&jn!==Fn})&&hn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ln),function(){return window.removeEventListener("mousedown",ln)}},[])}var et=oe(26112),wt=oe(83836),Qe=function(Ze,Et){var Tt,hn,ln=Ze.prefixCls,wn=Ze.id,Tn=Ze.inputElement,Fn=Ze.disabled,jn=Ze.tabIndex,Qt=Ze.autoFocus,Dn=Ze.autoComplete,Dt=Ze.editable,Zt=Ze.activeDescendantId,on=Ze.value,cn=Ze.maxLength,In=Ze.onKeyDown,en=Ze.onMouseDown,Ln=Ze.onChange,it=Ze.onPaste,Yt=Ze.onCompositionStart,$t=Ze.onCompositionEnd,vn=Ze.open,dn=Ze.attrs,xn=Tn||_e.createElement("input",null),yn=xn,_n=yn.ref,Un=yn.props,nr=Un.onKeyDown,mr=Un.onChange,Tr=Un.onMouseDown,jr=Un.onCompositionStart,br=Un.onCompositionEnd,ir=Un.style;return(0,Me.Kp)(!("maxLength"in xn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),xn=_e.cloneElement(xn,(0,ct.Z)((0,ct.Z)((0,ct.Z)({type:"search"},Un),{},{id:wn,ref:(0,je.sQ)(Et,_n),disabled:Fn,tabIndex:jn,autoComplete:Dn||"off",autoFocus:Qt,className:Fe()("".concat(ln,"-selection-search-input"),(Tt=xn)===null||Tt===void 0||(hn=Tt.props)===null||hn===void 0?void 0:hn.className),role:"combobox","aria-label":"Search","aria-expanded":vn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(wn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(wn,"_list"),"aria-activedescendant":vn?Zt:void 0},dn),{},{value:Dt?on:"",maxLength:cn,readOnly:!Dt,unselectable:Dt?null:"on",style:(0,ct.Z)((0,ct.Z)({},ir),{},{opacity:Dt?null:0}),onKeyDown:function(Nr){In(Nr),nr&&nr(Nr)},onMouseDown:function(Nr){en(Nr),Tr&&Tr(Nr)},onChange:function(Nr){Ln(Nr),mr&&mr(Nr)},onCompositionStart:function(Nr){Yt(Nr),jr&&jr(Nr)},onCompositionEnd:function(Nr){$t(Nr),br&&br(Nr)},onPaste:it})),xn},bt=_e.forwardRef(Qe);bt.displayName="Input";var Oe=bt;function Lt(Xe){return Array.isArray(Xe)?Xe:Xe!==void 0?[Xe]:[]}var tt=typeof window!="undefined"&&window.document&&window.document.documentElement,Ut=tt;function At(Xe){return Xe!=null}function Mt(Xe){return!Xe&&Xe!==0}function Wt(Xe){return["string","number"].includes((0,pe.Z)(Xe))}function It(Xe){var Ze=void 0;return Xe&&(Wt(Xe.title)?Ze=Xe.title.toString():Wt(Xe.label)&&(Ze=Xe.label.toString())),Ze}function Ge(Xe,Ze){Ut?_e.useLayoutEffect(Xe,Ze):_e.useEffect(Xe,Ze)}function be(Xe){var Ze;return(Ze=Xe.key)!==null&&Ze!==void 0?Ze:Xe.value}var Ye=function(Ze){Ze.preventDefault(),Ze.stopPropagation()},Pt=function(Ze){var Et=Ze.id,Tt=Ze.prefixCls,hn=Ze.values,ln=Ze.open,wn=Ze.searchValue,Tn=Ze.autoClearSearchValue,Fn=Ze.inputRef,jn=Ze.placeholder,Qt=Ze.disabled,Dn=Ze.mode,Dt=Ze.showSearch,Zt=Ze.autoFocus,on=Ze.autoComplete,cn=Ze.activeDescendantId,In=Ze.tabIndex,en=Ze.removeIcon,Ln=Ze.maxTagCount,it=Ze.maxTagTextLength,Yt=Ze.maxTagPlaceholder,$t=Yt===void 0?function(pi){return"+ ".concat(pi.length," ...")}:Yt,vn=Ze.tagRender,dn=Ze.onToggleOpen,xn=Ze.onRemove,yn=Ze.onInputChange,_n=Ze.onInputPaste,Un=Ze.onInputKeyDown,nr=Ze.onInputMouseDown,mr=Ze.onInputCompositionStart,Tr=Ze.onInputCompositionEnd,jr=_e.useRef(null),br=(0,_e.useState)(0),ir=(0,xe.Z)(br,2),Ur=ir[0],Nr=ir[1],$r=(0,_e.useState)(!1),Cr=(0,xe.Z)($r,2),Lr=Cr[0],ri=Cr[1],Kr="".concat(Tt,"-selection"),Ei=ln||Dn==="multiple"&&Tn===!1||Dn==="tags"?wn:"",Ri=Dn==="tags"||Dn==="multiple"&&Tn===!1||Dt&&(ln||Lr);Ge(function(){Nr(jr.current.scrollWidth)},[Ei]);function zr(pi,fi,Qr,oi,ta){return _e.createElement("span",{className:Fe()("".concat(Kr,"-item"),(0,Le.Z)({},"".concat(Kr,"-item-disabled"),Qr)),title:It(pi)},_e.createElement("span",{className:"".concat(Kr,"-item-content")},fi),oi&&_e.createElement(mt,{className:"".concat(Kr,"-item-remove"),onMouseDown:Ye,onClick:ta,customizeIcon:en},"\xD7"))}function qn(pi,fi,Qr,oi,ta){var xr=function(mi){Ye(mi),dn(!ln)};return _e.createElement("span",{onMouseDown:xr},vn({label:fi,value:pi,disabled:Qr,closable:oi,onClose:ta}))}function Jn(pi){var fi=pi.disabled,Qr=pi.label,oi=pi.value,ta=!Qt&&!fi,xr=Qr;if(typeof it=="number"&&(typeof Qr=="string"||typeof Qr=="number")){var Ir=String(xr);Ir.length>it&&(xr="".concat(Ir.slice(0,it),"..."))}var mi=function(da){da&&da.stopPropagation(),xn(pi)};return typeof vn=="function"?qn(oi,xr,fi,ta,mi):zr(pi,xr,fi,ta,mi)}function Jr(pi){var fi=typeof $t=="function"?$t(pi):$t;return zr({title:fi},fi,!1)}var Rr=_e.createElement("div",{className:"".concat(Kr,"-search"),style:{width:Ur},onFocus:function(){ri(!0)},onBlur:function(){ri(!1)}},_e.createElement(Oe,{ref:Fn,open:ln,prefixCls:Tt,id:Et,inputElement:null,disabled:Qt,autoFocus:Zt,autoComplete:on,editable:Ri,activeDescendantId:cn,value:Ei,onKeyDown:Un,onMouseDown:nr,onChange:yn,onPaste:_n,onCompositionStart:mr,onCompositionEnd:Tr,tabIndex:In,attrs:(0,et.Z)(Ze,!0)}),_e.createElement("span",{ref:jr,className:"".concat(Kr,"-search-mirror"),"aria-hidden":!0},Ei,"\xA0")),li=_e.createElement(wt.Z,{prefixCls:"".concat(Kr,"-overflow"),data:hn,renderItem:Jn,renderRest:Jr,suffix:Rr,itemKey:be,maxCount:Ln});return _e.createElement(_e.Fragment,null,li,!hn.length&&!Ei&&_e.createElement("span",{className:"".concat(Kr,"-placeholder")},jn))},xt=Pt,Ue=function(Ze){var Et=Ze.inputElement,Tt=Ze.prefixCls,hn=Ze.id,ln=Ze.inputRef,wn=Ze.disabled,Tn=Ze.autoFocus,Fn=Ze.autoComplete,jn=Ze.activeDescendantId,Qt=Ze.mode,Dn=Ze.open,Dt=Ze.values,Zt=Ze.placeholder,on=Ze.tabIndex,cn=Ze.showSearch,In=Ze.searchValue,en=Ze.activeValue,Ln=Ze.maxLength,it=Ze.onInputKeyDown,Yt=Ze.onInputMouseDown,$t=Ze.onInputChange,vn=Ze.onInputPaste,dn=Ze.onInputCompositionStart,xn=Ze.onInputCompositionEnd,yn=Ze.title,_n=_e.useState(!1),Un=(0,xe.Z)(_n,2),nr=Un[0],mr=Un[1],Tr=Qt==="combobox",jr=Tr||cn,br=Dt[0],ir=In||"";Tr&&en&&!nr&&(ir=en),_e.useEffect(function(){Tr&&mr(!1)},[Tr,en]);var Ur=Qt!=="combobox"&&!Dn&&!cn?!1:!!ir,Nr=yn===void 0?It(br):yn,$r=function(){if(br)return null;var Lr=Ur?{visibility:"hidden"}:void 0;return _e.createElement("span",{className:"".concat(Tt,"-selection-placeholder"),style:Lr},Zt)};return _e.createElement(_e.Fragment,null,_e.createElement("span",{className:"".concat(Tt,"-selection-search")},_e.createElement(Oe,{ref:ln,prefixCls:Tt,id:hn,open:Dn,inputElement:Et,disabled:wn,autoFocus:Tn,autoComplete:Fn,editable:jr,activeDescendantId:jn,value:ir,onKeyDown:it,onMouseDown:Yt,onChange:function(Lr){mr(!0),$t(Lr)},onPaste:vn,onCompositionStart:dn,onCompositionEnd:xn,tabIndex:on,attrs:(0,et.Z)(Ze,!0),maxLength:Tr?Ln:void 0})),!Tr&&br?_e.createElement("span",{className:"".concat(Tt,"-selection-item"),title:Nr,style:Ur?{visibility:"hidden"}:void 0},br.label):null,$r())},at=Ue;function Ot(Xe){return![Ke.Z.ESC,Ke.Z.SHIFT,Ke.Z.BACKSPACE,Ke.Z.TAB,Ke.Z.WIN_KEY,Ke.Z.ALT,Ke.Z.META,Ke.Z.WIN_KEY_RIGHT,Ke.Z.CTRL,Ke.Z.SEMICOLON,Ke.Z.EQUALS,Ke.Z.CAPS_LOCK,Ke.Z.CONTEXT_MENU,Ke.Z.F1,Ke.Z.F2,Ke.Z.F3,Ke.Z.F4,Ke.Z.F5,Ke.Z.F6,Ke.Z.F7,Ke.Z.F8,Ke.Z.F9,Ke.Z.F10,Ke.Z.F11,Ke.Z.F12].includes(Xe)}var kn=function(Ze,Et){var Tt=(0,_e.useRef)(null),hn=(0,_e.useRef)(!1),ln=Ze.prefixCls,wn=Ze.open,Tn=Ze.mode,Fn=Ze.showSearch,jn=Ze.tokenWithEnter,Qt=Ze.autoClearSearchValue,Dn=Ze.onSearch,Dt=Ze.onSearchSubmit,Zt=Ze.onToggleOpen,on=Ze.onInputKeyDown,cn=Ze.domRef;_e.useImperativeHandle(Et,function(){return{focus:function(){Tt.current.focus()},blur:function(){Tt.current.blur()}}});var In=Ce(0),en=(0,xe.Z)(In,2),Ln=en[0],it=en[1],Yt=function(ir){var Ur=ir.which;(Ur===Ke.Z.UP||Ur===Ke.Z.DOWN)&&ir.preventDefault(),on&&on(ir),Ur===Ke.Z.ENTER&&Tn==="tags"&&!hn.current&&!wn&&(Dt==null||Dt(ir.target.value)),Ot(Ur)&&Zt(!0)},$t=function(){it(!0)},vn=(0,_e.useRef)(null),dn=function(ir){Dn(ir,!0,hn.current)!==!1&&Zt(!0)},xn=function(){hn.current=!0},yn=function(ir){hn.current=!1,Tn!=="combobox"&&dn(ir.target.value)},_n=function(ir){var Ur=ir.target.value;if(jn&&vn.current&&/[\r\n]/.test(vn.current)){var Nr=vn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ur=Ur.replace(Nr,vn.current)}vn.current=null,dn(Ur)},Un=function(ir){var Ur=ir.clipboardData,Nr=Ur.getData("text");vn.current=Nr},nr=function(ir){var Ur=ir.target;if(Ur!==Tt.current){var Nr=document.body.style.msTouchAction!==void 0;Nr?setTimeout(function(){Tt.current.focus()}):Tt.current.focus()}},mr=function(ir){var Ur=Ln();ir.target!==Tt.current&&!Ur&&Tn!=="combobox"&&ir.preventDefault(),(Tn!=="combobox"&&(!Fn||!Ur)||!wn)&&(wn&&Qt!==!1&&Dn("",!0,!1),Zt())},Tr={inputRef:Tt,onInputKeyDown:Yt,onInputMouseDown:$t,onInputChange:_n,onInputPaste:Un,onInputCompositionStart:xn,onInputCompositionEnd:yn},jr=Tn==="multiple"||Tn==="tags"?_e.createElement(xt,(0,ae.Z)({},Ze,Tr)):_e.createElement(at,(0,ae.Z)({},Ze,Tr));return _e.createElement("div",{ref:cn,className:"".concat(ln,"-selector"),onClick:nr,onMouseDown:mr},jr)},Kt=_e.forwardRef(kn);Kt.displayName="Selector";var gn=Kt,nn=oe(35593),Gt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Xt=function(Ze){var Et=Ze===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Et,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Et,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Et,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Et,adjustY:1},htmlRegion:"scroll"}}},ye=function(Ze,Et){var Tt=Ze.prefixCls,hn=Ze.disabled,ln=Ze.visible,wn=Ze.children,Tn=Ze.popupElement,Fn=Ze.animation,jn=Ze.transitionName,Qt=Ze.dropdownStyle,Dn=Ze.dropdownClassName,Dt=Ze.direction,Zt=Dt===void 0?"ltr":Dt,on=Ze.placement,cn=Ze.builtinPlacements,In=Ze.dropdownMatchSelectWidth,en=Ze.dropdownRender,Ln=Ze.dropdownAlign,it=Ze.getPopupContainer,Yt=Ze.empty,$t=Ze.getTriggerDOMNode,vn=Ze.onPopupVisibleChange,dn=Ze.onPopupMouseEnter,xn=(0,Ee.Z)(Ze,Gt),yn="".concat(Tt,"-dropdown"),_n=Tn;en&&(_n=en(Tn));var Un=_e.useMemo(function(){return cn||Xt(In)},[cn,In]),nr=Fn?"".concat(yn,"-").concat(Fn):jn,mr=typeof In=="number",Tr=_e.useMemo(function(){return mr?null:In===!1?"minWidth":"width"},[In,mr]),jr=Qt;mr&&(jr=(0,ct.Z)((0,ct.Z)({},jr),{},{width:In}));var br=_e.useRef(null);return _e.useImperativeHandle(Et,function(){return{getPopupElement:function(){return br.current}}}),_e.createElement(nn.Z,(0,ae.Z)({},xn,{showAction:vn?["click"]:[],hideAction:vn?["click"]:[],popupPlacement:on||(Zt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Un,prefixCls:yn,popupTransitionName:nr,popup:_e.createElement("div",{ref:br,onMouseEnter:dn},_n),stretch:Tr,popupAlign:Ln,popupVisible:ln,getPopupContainer:it,popupClassName:Fe()(Dn,(0,Le.Z)({},"".concat(yn,"-empty"),Yt)),popupStyle:jr,getTriggerDOMNode:$t,onPopupVisibleChange:vn}),wn)},ue=_e.forwardRef(ye);ue.displayName="SelectTrigger";var ce=ue,de=oe(48745);function he(Xe,Ze){var Et=Xe.key,Tt;return"value"in Xe&&(Tt=Xe.value),Et!=null?Et:Tt!==void 0?Tt:"rc-index-key-".concat(Ze)}function se(Xe,Ze){var Et=Xe||{},Tt=Et.label,hn=Et.value,ln=Et.options,wn=Et.groupLabel,Tn=Tt||(Ze?"children":"label");return{label:Tn,value:hn||"value",options:ln||"options",groupLabel:wn||Tn}}function ke(Xe){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Et=Ze.fieldNames,Tt=Ze.childrenAsData,hn=[],ln=se(Et,!1),wn=ln.label,Tn=ln.value,Fn=ln.options,jn=ln.groupLabel;function Qt(Dn,Dt){Dn.forEach(function(Zt){if(Dt||!(Fn in Zt)){var on=Zt[Tn];hn.push({key:he(Zt,hn.length),groupOption:Dt,data:Zt,label:Zt[wn],value:on})}else{var cn=Zt[jn];cn===void 0&&Tt&&(cn=Zt.label),hn.push({key:he(Zt,hn.length),group:!0,data:Zt,label:cn}),Qt(Zt[Fn],!0)}})}return Qt(Xe,!1),hn}function gt(Xe){var Ze=(0,ct.Z)({},Xe);return"props"in Ze||Object.defineProperty(Ze,"props",{get:function(){return(0,Me.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ze}}),Ze}function Ie(Xe,Ze){if(!Ze||!Ze.length)return null;var Et=!1;function Tt(ln,wn){var Tn=(0,de.Z)(wn),Fn=Tn[0],jn=Tn.slice(1);if(!Fn)return[ln];var Qt=ln.split(Fn);return Et=Et||Qt.length>1,Qt.reduce(function(Dn,Dt){return[].concat((0,Ae.Z)(Dn),(0,Ae.Z)(Tt(Dt,jn)))},[]).filter(function(Dn){return Dn})}var hn=Tt(Xe,Ze);return Et?hn:null}var Be=["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"],yt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function rt(Xe){return Xe==="tags"||Xe==="multiple"}var Ve=_e.forwardRef(function(Xe,Ze){var Et,Tt,hn=Xe.id,ln=Xe.prefixCls,wn=Xe.className,Tn=Xe.showSearch,Fn=Xe.tagRender,jn=Xe.direction,Qt=Xe.omitDomProps,Dn=Xe.displayValues,Dt=Xe.onDisplayValuesChange,Zt=Xe.emptyOptions,on=Xe.notFoundContent,cn=on===void 0?"Not Found":on,In=Xe.onClear,en=Xe.mode,Ln=Xe.disabled,it=Xe.loading,Yt=Xe.getInputElement,$t=Xe.getRawInputElement,vn=Xe.open,dn=Xe.defaultOpen,xn=Xe.onDropdownVisibleChange,yn=Xe.activeValue,_n=Xe.onActiveValueChange,Un=Xe.activeDescendantId,nr=Xe.searchValue,mr=Xe.autoClearSearchValue,Tr=Xe.onSearch,jr=Xe.onSearchSplit,br=Xe.tokenSeparators,ir=Xe.allowClear,Ur=Xe.suffixIcon,Nr=Xe.clearIcon,$r=Xe.OptionList,Cr=Xe.animation,Lr=Xe.transitionName,ri=Xe.dropdownStyle,Kr=Xe.dropdownClassName,Ei=Xe.dropdownMatchSelectWidth,Ri=Xe.dropdownRender,zr=Xe.dropdownAlign,qn=Xe.placement,Jn=Xe.builtinPlacements,Jr=Xe.getPopupContainer,Rr=Xe.showAction,li=Rr===void 0?[]:Rr,pi=Xe.onFocus,fi=Xe.onBlur,Qr=Xe.onKeyUp,oi=Xe.onKeyDown,ta=Xe.onMouseDown,xr=(0,Ee.Z)(Xe,Be),Ir=rt(en),mi=(Tn!==void 0?Tn:Ir)||en==="combobox",Mi=(0,ct.Z)({},xr);yt.forEach(function(Ca){delete Mi[Ca]}),Qt==null||Qt.forEach(function(Ca){delete Mi[Ca]});var da=_e.useState(!1),ca=(0,xe.Z)(da,2),qi=ca[0],Wi=ca[1];_e.useEffect(function(){Wi((0,pt.Z)())},[]);var xa=_e.useRef(null),wa=_e.useRef(null),Br=_e.useRef(null),kr=_e.useRef(null),Er=_e.useRef(null),Gr=Re(),Xi=(0,xe.Z)(Gr,3),fa=Xi[0],va=Xi[1],pa=Xi[2];_e.useImperativeHandle(Ze,function(){var Ca,ba;return{focus:(Ca=kr.current)===null||Ca===void 0?void 0:Ca.focus,blur:(ba=kr.current)===null||ba===void 0?void 0:ba.blur,scrollTo:function(yo){var io;return(io=Er.current)===null||io===void 0?void 0:io.scrollTo(yo)}}});var ua=_e.useMemo(function(){var Ca;if(en!=="combobox")return nr;var ba=(Ca=Dn[0])===null||Ca===void 0?void 0:Ca.value;return typeof ba=="string"||typeof ba=="number"?String(ba):""},[nr,en,Dn]),Aa=en==="combobox"&&typeof Yt=="function"&&Yt()||null,Ya=typeof $t=="function"&&$t(),Ua=(0,je.x1)(wa,Ya==null||(Et=Ya.props)===null||Et===void 0?void 0:Et.ref),go=_e.useState(!1),Fi=(0,xe.Z)(go,2),Vi=Fi[0],La=Fi[1];(0,qe.Z)(function(){La(!0)},[]);var aa=(0,ve.Z)(!1,{defaultValue:dn,value:vn}),ha=(0,xe.Z)(aa,2),An=ha[0],Cn=ha[1],mn=Vi?An:!1,Wn=!cn&&Zt;(Ln||Wn&&mn&&en==="combobox")&&(mn=!1);var ar=Wn?!1:mn,or=_e.useCallback(function(Ca){var ba=Ca!==void 0?Ca:!mn;Ln||(Cn(ba),mn!==ba&&(xn==null||xn(ba)))},[Ln,mn,Cn,xn]),Hn=_e.useMemo(function(){return(br||[]).some(function(Ca){return[`
|
|
|
`,`\r
|
|
|
`].includes(Ca)})},[br]),wr=function(ba,qa,yo){var io=!0,Zo=ba;_n==null||_n(null);var Qo=yo?null:Ie(ba,br);return en!=="combobox"&&Qo&&(Zo="",jr==null||jr(Qo),or(!1),io=!1),Tr&&ua!==Zo&&Tr(Zo,{source:qa?"typing":"effect"}),io},ci=function(ba){!ba||!ba.trim()||Tr(ba,{source:"submit"})};_e.useEffect(function(){!mn&&!Ir&&en!=="combobox"&&wr("",!1,!1)},[mn]),_e.useEffect(function(){An&&Ln&&Cn(!1),Ln&&va(!1)},[Ln]);var Li=Ce(),ui=(0,xe.Z)(Li,2),yr=ui[0],di=ui[1],ki=function(ba){var qa=yr(),yo=ba.which;if(yo===Ke.Z.ENTER&&(en!=="combobox"&&ba.preventDefault(),mn||or(!0)),di(!!ua),yo===Ke.Z.BACKSPACE&&!qa&&Ir&&!ua&&Dn.length){for(var io=(0,Ae.Z)(Dn),Zo=null,Qo=io.length-1;Qo>=0;Qo-=1){var bs=io[Qo];if(!bs.disabled){io.splice(Qo,1),Zo=bs;break}}Zo&&Dt(io,{type:"remove",values:[Zo]})}for(var Jo=arguments.length,Ws=new Array(Jo>1?Jo-1:0),Fs=1;Fs<Jo;Fs++)Ws[Fs-1]=arguments[Fs];if(mn&&Er.current){var qo;(qo=Er.current).onKeyDown.apply(qo,[ba].concat(Ws))}oi==null||oi.apply(void 0,[ba].concat(Ws))},na=function(ba){for(var qa=arguments.length,yo=new Array(qa>1?qa-1:0),io=1;io<qa;io++)yo[io-1]=arguments[io];if(mn&&Er.current){var Zo;(Zo=Er.current).onKeyUp.apply(Zo,[ba].concat(yo))}Qr==null||Qr.apply(void 0,[ba].concat(yo))},vi=function(ba){var qa=Dn.filter(function(yo){return yo!==ba});Dt(qa,{type:"remove",values:[ba]})},wi=_e.useRef(!1),Gi=function(){va(!0),Ln||(pi&&!wi.current&&pi.apply(void 0,arguments),li.includes("focus")&&or(!0)),wi.current=!0},Sa=function(){va(!1,function(){wi.current=!1,or(!1)}),!Ln&&(ua&&(en==="tags"?Tr(ua,{source:"submit"}):en==="multiple"&&Tr("",{source:"blur"})),fi&&fi.apply(void 0,arguments))},Ra=[];_e.useEffect(function(){return function(){Ra.forEach(function(Ca){return clearTimeout(Ca)}),Ra.splice(0,Ra.length)}},[]);var so=function(ba){var qa,yo=ba.target,io=(qa=Br.current)===null||qa===void 0?void 0:qa.getPopupElement();if(io&&io.contains(yo)){var Zo=setTimeout(function(){var Ws=Ra.indexOf(Zo);if(Ws!==-1&&Ra.splice(Ws,1),pa(),!qi&&!io.contains(document.activeElement)){var Fs;(Fs=kr.current)===null||Fs===void 0||Fs.focus()}});Ra.push(Zo)}for(var Qo=arguments.length,bs=new Array(Qo>1?Qo-1:0),Jo=1;Jo<Qo;Jo++)bs[Jo-1]=arguments[Jo];ta==null||ta.apply(void 0,[ba].concat(bs))},Do=_e.useState({}),Ys=(0,xe.Z)(Do,2),ss=Ys[1];function Mo(){ss({})}var fo;Ya&&(fo=function(ba){or(ba)}),Je(function(){var Ca;return[xa.current,(Ca=Br.current)===null||Ca===void 0?void 0:Ca.getPopupElement()]},ar,or,!!Ya);var Os=_e.useMemo(function(){return(0,ct.Z)((0,ct.Z)({},Xe),{},{notFoundContent:cn,open:mn,triggerOpen:ar,id:hn,showSearch:mi,multiple:Ir,toggleOpen:or})},[Xe,cn,ar,mn,hn,mi,Ir,or]),Wo=!!Ur||it,hs;Wo&&(hs=_e.createElement(mt,{className:Fe()("".concat(ln,"-arrow"),(0,Le.Z)({},"".concat(ln,"-arrow-loading"),it)),customizeIcon:Ur,customizeIconProps:{loading:it,searchValue:ua,open:mn,focused:fa,showSearch:mi}}));var Xs=function(){var ba;In==null||In(),(ba=kr.current)===null||ba===void 0||ba.focus(),Dt([],{type:"clear",values:Dn}),wr("",!1,!1)},Ns=Bt(ln,Xs,Dn,ir,Nr,Ln,ua,en),ko=Ns.allowClear,vo=Ns.clearIcon,za=_e.createElement($r,{ref:Er}),Rs=Fe()(ln,wn,(Tt={},(0,Le.Z)(Tt,"".concat(ln,"-focused"),fa),(0,Le.Z)(Tt,"".concat(ln,"-multiple"),Ir),(0,Le.Z)(Tt,"".concat(ln,"-single"),!Ir),(0,Le.Z)(Tt,"".concat(ln,"-allow-clear"),ir),(0,Le.Z)(Tt,"".concat(ln,"-show-arrow"),Wo),(0,Le.Z)(Tt,"".concat(ln,"-disabled"),Ln),(0,Le.Z)(Tt,"".concat(ln,"-loading"),it),(0,Le.Z)(Tt,"".concat(ln,"-open"),mn),(0,Le.Z)(Tt,"".concat(ln,"-customize-input"),Aa),(0,Le.Z)(Tt,"".concat(ln,"-show-search"),mi),Tt)),cl=_e.createElement(ce,{ref:Br,disabled:Ln,prefixCls:ln,visible:ar,popupElement:za,animation:Cr,transitionName:Lr,dropdownStyle:ri,dropdownClassName:Kr,direction:jn,dropdownMatchSelectWidth:Ei,dropdownRender:Ri,dropdownAlign:zr,placement:qn,builtinPlacements:Jn,getPopupContainer:Jr,empty:Zt,getTriggerDOMNode:function(){return wa.current},onPopupVisibleChange:fo,onPopupMouseEnter:Mo},Ya?_e.cloneElement(Ya,{ref:Ua}):_e.createElement(gn,(0,ae.Z)({},Xe,{domRef:wa,prefixCls:ln,inputElement:Aa,ref:kr,id:hn,showSearch:mi,autoClearSearchValue:mr,mode:en,activeDescendantId:Un,tagRender:Fn,values:Dn,open:mn,onToggleOpen:or,activeValue:yn,searchValue:ua,onSearch:wr,onSearchSubmit:ci,onRemove:vi,tokenWithEnter:Hn}))),ys;return Ya?ys=cl:ys=_e.createElement("div",(0,ae.Z)({className:Rs},Mi,{ref:xa,onMouseDown:so,onKeyDown:ki,onKeyUp:na,onFocus:Gi,onBlur:Sa}),fa&&!mn&&_e.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(Dn.map(function(Ca){var ba=Ca.label,qa=Ca.value;return["number","string"].includes((0,pe.Z)(ba))?ba:qa}).join(", "))),cl,hs,ko&&vo),_e.createElement(ht.Provider,{value:Os},ys)}),Ct=Ve,rn=function(Xe,Ze){var Et=_e.useRef({values:new Map,options:new Map}),Tt=_e.useMemo(function(){var ln=Et.current,wn=ln.values,Tn=ln.options,Fn=Xe.map(function(Dn){if(Dn.label===void 0){var Dt;return(0,ct.Z)((0,ct.Z)({},Dn),{},{label:(Dt=wn.get(Dn.value))===null||Dt===void 0?void 0:Dt.label})}return Dn}),jn=new Map,Qt=new Map;return Fn.forEach(function(Dn){jn.set(Dn.value,Dn),Qt.set(Dn.value,Ze.get(Dn.value)||Tn.get(Dn.value))}),Et.current.values=jn,Et.current.options=Qt,Fn},[Xe,Ze]),hn=_e.useCallback(function(ln){return Ze.get(ln)||Et.current.options.get(ln)},[Ze]);return[Tt,hn]};function lt(Xe,Ze){return Lt(Xe).join("").toUpperCase().includes(Ze)}var _t=function(Xe,Ze,Et,Tt,hn){return _e.useMemo(function(){if(!Et||Tt===!1)return Xe;var ln=Ze.options,wn=Ze.label,Tn=Ze.value,Fn=[],jn=typeof Tt=="function",Qt=Et.toUpperCase(),Dn=jn?Tt:function(Zt,on){return hn?lt(on[hn],Qt):on[ln]?lt(on[wn!=="children"?wn:"label"],Qt):lt(on[Tn],Qt)},Dt=jn?function(Zt){return gt(Zt)}:function(Zt){return Zt};return Xe.forEach(function(Zt){if(Zt[ln]){var on=Dn(Et,Dt(Zt));if(on)Fn.push(Zt);else{var cn=Zt[ln].filter(function(In){return Dn(Et,Dt(In))});cn.length&&Fn.push((0,ct.Z)((0,ct.Z)({},Zt),{},(0,Le.Z)({},ln,cn)))}return}Dn(Et,Dt(Zt))&&Fn.push(Zt)}),Fn},[Xe,Tt,hn,Et,Ze])},fn=oe(17115),ut=oe(11592),De=["children","value"],dt=["children"];function Ft(Xe){var Ze=Xe,Et=Ze.key,Tt=Ze.props,hn=Tt.children,ln=Tt.value,wn=(0,Ee.Z)(Tt,De);return(0,ct.Z)({key:Et,value:ln!==void 0?ln:Et,children:hn},wn)}function zt(Xe){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ut.Z)(Xe).map(function(Et,Tt){if(!_e.isValidElement(Et)||!Et.type)return null;var hn=Et,ln=hn.type.isSelectOptGroup,wn=hn.key,Tn=hn.props,Fn=Tn.children,jn=(0,Ee.Z)(Tn,dt);return Ze||!ln?Ft(Et):(0,ct.Z)((0,ct.Z)({key:"__RC_SELECT_GRP__".concat(wn===null?Tt:wn,"__"),label:wn},jn),{},{options:zt(Fn)})}).filter(function(Et){return Et})}function an(Xe,Ze,Et,Tt,hn){return _e.useMemo(function(){var ln=Xe,wn=!Xe;wn&&(ln=zt(Ze));var Tn=new Map,Fn=new Map,jn=function(Dt,Zt,on){on&&typeof on=="string"&&Dt.set(Zt[on],Zt)};function Qt(Dn){for(var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Zt=0;Zt<Dn.length;Zt+=1){var on=Dn[Zt];!on[Et.options]||Dt?(Tn.set(on[Et.value],on),jn(Fn,on,Et.label),jn(Fn,on,Tt),jn(Fn,on,hn)):Qt(on[Et.options],!0)}}return Qt(ln),{options:ln,valueOptions:Tn,labelOptions:Fn}},[Xe,Ze,Et,Tt,hn])}function Bn(Xe){var Ze=_e.useRef();Ze.current=Xe;var Et=_e.useCallback(function(){return Ze.current.apply(Ze,arguments)},[]);return Et}var qt=function(){return null};qt.isSelectOptGroup=!0;var pn=qt,zn=function(){return null};zn.isSelectOption=!0;var Vn=zn,Pn=oe(80547),Qn=oe(2738),gr=oe(48911),rr=_e.createContext(null),er=rr;function pr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Pr=["disabled","title","children","style","className"];function $n(Xe){return typeof Xe=="string"||typeof Xe=="number"}var Wr=function(Ze,Et){var Tt=nt(),hn=Tt.prefixCls,ln=Tt.id,wn=Tt.open,Tn=Tt.multiple,Fn=Tt.mode,jn=Tt.searchValue,Qt=Tt.toggleOpen,Dn=Tt.notFoundContent,Dt=Tt.onPopupScroll,Zt=_e.useContext(er),on=Zt.flattenOptions,cn=Zt.onActiveValue,In=Zt.defaultActiveFirstOption,en=Zt.onSelect,Ln=Zt.menuItemSelectedIcon,it=Zt.rawValues,Yt=Zt.fieldNames,$t=Zt.virtual,vn=Zt.direction,dn=Zt.listHeight,xn=Zt.listItemHeight,yn="".concat(hn,"-item"),_n=(0,Pn.Z)(function(){return on},[wn,on],function(zr,qn){return qn[0]&&zr[1]!==qn[1]}),Un=_e.useRef(null),nr=function(qn){qn.preventDefault()},mr=function(qn){Un.current&&Un.current.scrollTo(typeof qn=="number"?{index:qn}:qn)},Tr=function(qn){for(var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Jr=_n.length,Rr=0;Rr<Jr;Rr+=1){var li=(qn+Rr*Jn+Jr)%Jr,pi=_n[li],fi=pi.group,Qr=pi.data;if(!fi&&!Qr.disabled)return li}return-1},jr=_e.useState(function(){return Tr(0)}),br=(0,xe.Z)(jr,2),ir=br[0],Ur=br[1],Nr=function(qn){var Jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ur(qn);var Jr={source:Jn?"keyboard":"mouse"},Rr=_n[qn];if(!Rr){cn(null,-1,Jr);return}cn(Rr.value,qn,Jr)};(0,_e.useEffect)(function(){Nr(In!==!1?Tr(0):-1)},[_n.length,jn]);var $r=_e.useCallback(function(zr){return it.has(zr)&&Fn!=="combobox"},[Fn,(0,Ae.Z)(it).toString(),it.size]);(0,_e.useEffect)(function(){var zr=setTimeout(function(){if(!Tn&&wn&&it.size===1){var Jn=Array.from(it)[0],Jr=_n.findIndex(function(Rr){var li=Rr.data;return li.value===Jn});Jr!==-1&&(Nr(Jr),mr(Jr))}});if(wn){var qn;(qn=Un.current)===null||qn===void 0||qn.scrollTo(void 0)}return function(){return clearTimeout(zr)}},[wn,jn,on.length]);var Cr=function(qn){qn!==void 0&&en(qn,{selected:!it.has(qn)}),Tn||Qt(!1)};if(_e.useImperativeHandle(Et,function(){return{onKeyDown:function(qn){var Jn=qn.which,Jr=qn.ctrlKey;switch(Jn){case Ke.Z.N:case Ke.Z.P:case Ke.Z.UP:case Ke.Z.DOWN:{var Rr=0;if(Jn===Ke.Z.UP?Rr=-1:Jn===Ke.Z.DOWN?Rr=1:pr()&&Jr&&(Jn===Ke.Z.N?Rr=1:Jn===Ke.Z.P&&(Rr=-1)),Rr!==0){var li=Tr(ir+Rr,Rr);mr(li),Nr(li,!0)}break}case Ke.Z.ENTER:{var pi=_n[ir];pi&&!pi.data.disabled?Cr(pi.value):Cr(void 0),wn&&qn.preventDefault();break}case Ke.Z.ESC:Qt(!1),wn&&qn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(qn){mr(qn)}}}),_n.length===0)return _e.createElement("div",{role:"listbox",id:"".concat(ln,"_list"),className:"".concat(yn,"-empty"),onMouseDown:nr},Dn);var Lr=Object.keys(Yt).map(function(zr){return Yt[zr]}),ri=function(qn){return qn.label};function Kr(zr,qn){var Jn=zr.group;return{role:Jn?"presentation":"option",id:"".concat(ln,"_list_").concat(qn)}}var Ei=function(qn){var Jn=_n[qn];if(!Jn)return null;var Jr=Jn.data||{},Rr=Jr.value,li=Jn.group,pi=(0,et.Z)(Jr,!0),fi=ri(Jn);return Jn?_e.createElement("div",(0,ae.Z)({"aria-label":typeof fi=="string"&&!li?fi:null},pi,{key:qn},Kr(Jn,qn),{"aria-selected":$r(Rr)}),Rr):null},Ri={role:"listbox",id:"".concat(ln,"_list")};return _e.createElement(_e.Fragment,null,$t&&_e.createElement("div",(0,ae.Z)({},Ri,{style:{height:0,width:0,overflow:"hidden"}}),Ei(ir-1),Ei(ir),Ei(ir+1)),_e.createElement(gr.Z,{itemKey:"key",ref:Un,data:_n,height:dn,itemHeight:xn,fullHeight:!1,onMouseDown:nr,onScroll:Dt,virtual:$t,direction:vn,innerProps:$t?null:Ri},function(zr,qn){var Jn,Jr=zr.group,Rr=zr.groupOption,li=zr.data,pi=zr.label,fi=zr.value,Qr=li.key;if(Jr){var oi,ta=(oi=li.title)!==null&&oi!==void 0?oi:$n(pi)?pi.toString():void 0;return _e.createElement("div",{className:Fe()(yn,"".concat(yn,"-group")),title:ta},pi!==void 0?pi:Qr)}var xr=li.disabled,Ir=li.title,mi=li.children,Mi=li.style,da=li.className,ca=(0,Ee.Z)(li,Pr),qi=(0,Qn.Z)(ca,Lr),Wi=$r(fi),xa="".concat(yn,"-option"),wa=Fe()(yn,xa,da,(Jn={},(0,Le.Z)(Jn,"".concat(xa,"-grouped"),Rr),(0,Le.Z)(Jn,"".concat(xa,"-active"),ir===qn&&!xr),(0,Le.Z)(Jn,"".concat(xa,"-disabled"),xr),(0,Le.Z)(Jn,"".concat(xa,"-selected"),Wi),Jn)),Br=ri(zr),kr=!Ln||typeof Ln=="function"||Wi,Er=typeof Br=="number"?Br:Br||fi,Gr=$n(Er)?Er.toString():void 0;return Ir!==void 0&&(Gr=Ir),_e.createElement("div",(0,ae.Z)({},(0,et.Z)(qi),$t?{}:Kr(zr,qn),{"aria-selected":Wi,className:wa,title:Gr,onMouseMove:function(){ir===qn||xr||Nr(qn)},onClick:function(){xr||Cr(fi)},style:Mi}),_e.createElement("div",{className:"".concat(xa,"-content")},Er),_e.isValidElement(Ln)||Wi,kr&&_e.createElement(mt,{className:"".concat(yn,"-option-state"),customizeIcon:Ln,customizeIconProps:{isSelected:Wi}},Wi?"\u2713":null))}))},vr=_e.forwardRef(Wr);vr.displayName="OptionList";var qr=vr;function xi(Xe){var Ze=Xe.mode,Et=Xe.options,Tt=Xe.children,hn=Xe.backfill,ln=Xe.allowClear,wn=Xe.placeholder,Tn=Xe.getInputElement,Fn=Xe.showSearch,jn=Xe.onSearch,Qt=Xe.defaultOpen,Dn=Xe.autoFocus,Dt=Xe.labelInValue,Zt=Xe.value,on=Xe.inputValue,cn=Xe.optionLabelProp,In=isMultiple(Ze),en=Fn!==void 0?Fn:In||Ze==="combobox",Ln=Et||convertChildrenToData(Tt);if(warning(Ze!=="tags"||Ln.every(function(vn){return!vn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ze==="tags"||Ze==="combobox"){var it=Ln.some(function(vn){return vn.options?vn.options.some(function(dn){return typeof("value"in dn?dn.value:dn.key)=="number"}):typeof("value"in vn?vn.value:vn.key)=="number"});warning(!it,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ze!=="combobox"||!cn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ze==="combobox"||!hn,"`backfill` only works with `combobox` mode."),warning(Ze==="combobox"||!Tn,"`getInputElement` only work with `combobox` mode."),noteOnce(Ze!=="combobox"||!Tn||!ln||!wn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),jn&&!en&&Ze!=="combobox"&&Ze!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Qt||Dn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Zt!=null){var Yt=toArray(Zt);warning(!Dt||Yt.every(function(vn){return _typeof(vn)==="object"&&("key"in vn||"value"in vn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!In||Array.isArray(Zt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Tt){var $t=null;toNodeArray(Tt).some(function(vn){if(!React.isValidElement(vn)||!vn.type)return!1;var dn=vn,xn=dn.type;if(xn.isSelectOption)return!1;if(xn.isSelectOptGroup){var yn=toNodeArray(vn.props.children).every(function(_n){return!React.isValidElement(_n)||!vn.type||_n.type.isSelectOption?!0:($t=_n.type,!1)});return!yn}return $t=xn,!0}),$t&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat($t.displayName||$t.name||$t,"`.")),warning(on===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ar(Xe,Ze){if(Xe){var Et=function Tt(hn){for(var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,wn=0;wn<hn.length;wn++){var Tn=hn[wn];if(Tn[Ze==null?void 0:Ze.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!ln&&Array.isArray(Tn[Ze==null?void 0:Ze.options])&&Tt(Tn[Ze==null?void 0:Ze.options],!0))break}};Et(Xe)}}var dr=null,Mr=["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"],tr=["inputValue"];function Gn(Xe){return!Xe||(0,pe.Z)(Xe)!=="object"}var Xr=_e.forwardRef(function(Xe,Ze){var Et=Xe.id,Tt=Xe.mode,hn=Xe.prefixCls,ln=hn===void 0?"rc-select":hn,wn=Xe.backfill,Tn=Xe.fieldNames,Fn=Xe.inputValue,jn=Xe.searchValue,Qt=Xe.onSearch,Dn=Xe.autoClearSearchValue,Dt=Dn===void 0?!0:Dn,Zt=Xe.onSelect,on=Xe.onDeselect,cn=Xe.dropdownMatchSelectWidth,In=cn===void 0?!0:cn,en=Xe.filterOption,Ln=Xe.filterSort,it=Xe.optionFilterProp,Yt=Xe.optionLabelProp,$t=Xe.options,vn=Xe.children,dn=Xe.defaultActiveFirstOption,xn=Xe.menuItemSelectedIcon,yn=Xe.virtual,_n=Xe.direction,Un=Xe.listHeight,nr=Un===void 0?200:Un,mr=Xe.listItemHeight,Tr=mr===void 0?20:mr,jr=Xe.value,br=Xe.defaultValue,ir=Xe.labelInValue,Ur=Xe.onChange,Nr=(0,Ee.Z)(Xe,Mr),$r=(0,fn.ZP)(Et),Cr=rt(Tt),Lr=!!(!$t&&vn),ri=_e.useMemo(function(){return en===void 0&&Tt==="combobox"?!1:en},[en,Tt]),Kr=_e.useMemo(function(){return se(Tn,Lr)},[JSON.stringify(Tn),Lr]),Ei=(0,ve.Z)("",{value:jn!==void 0?jn:Fn,postState:function(Wn){return Wn||""}}),Ri=(0,xe.Z)(Ei,2),zr=Ri[0],qn=Ri[1],Jn=an($t,vn,Kr,it,Yt),Jr=Jn.valueOptions,Rr=Jn.labelOptions,li=Jn.options,pi=_e.useCallback(function(mn){var Wn=Lt(mn);return Wn.map(function(ar){var or,Hn,wr,ci,Li;if(Gn(ar))or=ar;else{var ui;wr=ar.key,Hn=ar.label,or=(ui=ar.value)!==null&&ui!==void 0?ui:wr}var yr=Jr.get(or);if(yr){var di;if(Hn===void 0&&(Hn=yr==null?void 0:yr[Yt||Kr.label]),wr===void 0&&(wr=(di=yr==null?void 0:yr.key)!==null&&di!==void 0?di:or),ci=yr==null?void 0:yr.disabled,Li=yr==null?void 0:yr.title,0)var ki}return{label:Hn,value:or,key:wr,disabled:ci,title:Li}})},[Kr,Yt,Jr]),fi=(0,ve.Z)(br,{value:jr}),Qr=(0,xe.Z)(fi,2),oi=Qr[0],ta=Qr[1],xr=_e.useMemo(function(){var mn,Wn=pi(oi);return Tt==="combobox"&&Mt((mn=Wn[0])===null||mn===void 0?void 0:mn.value)?[]:Wn},[oi,pi,Tt]),Ir=rn(xr,Jr),mi=(0,xe.Z)(Ir,2),Mi=mi[0],da=mi[1],ca=_e.useMemo(function(){if(!Tt&&Mi.length===1){var mn=Mi[0];if(mn.value===null&&(mn.label===null||mn.label===void 0))return[]}return Mi.map(function(Wn){var ar;return(0,ct.Z)((0,ct.Z)({},Wn),{},{label:(ar=Wn.label)!==null&&ar!==void 0?ar:Wn.value})})},[Tt,Mi]),qi=_e.useMemo(function(){return new Set(Mi.map(function(mn){return mn.value}))},[Mi]);_e.useEffect(function(){if(Tt==="combobox"){var mn,Wn=(mn=Mi[0])===null||mn===void 0?void 0:mn.value;qn(At(Wn)?String(Wn):"")}},[Mi]);var Wi=Bn(function(mn,Wn){var ar,or=Wn!=null?Wn:mn;return ar={},(0,Le.Z)(ar,Kr.value,mn),(0,Le.Z)(ar,Kr.label,or),ar}),xa=_e.useMemo(function(){if(Tt!=="tags")return li;var mn=(0,Ae.Z)(li),Wn=function(or){return Jr.has(or)};return(0,Ae.Z)(Mi).sort(function(ar,or){return ar.value<or.value?-1:1}).forEach(function(ar){var or=ar.value;Wn(or)||mn.push(Wi(or,ar.label))}),mn},[Wi,li,Jr,Mi,Tt]),wa=_t(xa,Kr,zr,ri,it),Br=_e.useMemo(function(){return Tt!=="tags"||!zr||wa.some(function(mn){return mn[it||"value"]===zr})||wa.some(function(mn){return mn[Kr.value]===zr})?wa:[Wi(zr)].concat((0,Ae.Z)(wa))},[Wi,it,Tt,wa,zr,Kr]),kr=_e.useMemo(function(){return Ln?(0,Ae.Z)(Br).sort(function(mn,Wn){return Ln(mn,Wn)}):Br},[Br,Ln]),Er=_e.useMemo(function(){return ke(kr,{fieldNames:Kr,childrenAsData:Lr})},[kr,Kr,Lr]),Gr=function(Wn){var ar=pi(Wn);if(ta(ar),Ur&&(ar.length!==Mi.length||ar.some(function(wr,ci){var Li;return((Li=Mi[ci])===null||Li===void 0?void 0:Li.value)!==(wr==null?void 0:wr.value)}))){var or=ir?ar:ar.map(function(wr){return wr.value}),Hn=ar.map(function(wr){return gt(da(wr.value))});Ur(Cr?or:or[0],Cr?Hn:Hn[0])}},Xi=_e.useState(null),fa=(0,xe.Z)(Xi,2),va=fa[0],pa=fa[1],ua=_e.useState(0),Aa=(0,xe.Z)(ua,2),Ya=Aa[0],Ua=Aa[1],go=dn!==void 0?dn:Tt!=="combobox",Fi=_e.useCallback(function(mn,Wn){var ar=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},or=ar.source,Hn=or===void 0?"keyboard":or;Ua(Wn),wn&&Tt==="combobox"&&mn!==null&&Hn==="keyboard"&&pa(String(mn))},[wn,Tt]),Vi=function(Wn,ar,or){var Hn=function(){var wi,Gi=da(Wn);return[ir?{label:Gi==null?void 0:Gi[Kr.label],value:Wn,key:(wi=Gi==null?void 0:Gi.key)!==null&&wi!==void 0?wi:Wn}:Wn,gt(Gi)]};if(ar&&Zt){var wr=Hn(),ci=(0,xe.Z)(wr,2),Li=ci[0],ui=ci[1];Zt(Li,ui)}else if(!ar&&on&&or!=="clear"){var yr=Hn(),di=(0,xe.Z)(yr,2),ki=di[0],na=di[1];on(ki,na)}},La=Bn(function(mn,Wn){var ar,or=Cr?Wn.selected:!0;or?ar=Cr?[].concat((0,Ae.Z)(Mi),[mn]):[mn]:ar=Mi.filter(function(Hn){return Hn.value!==mn}),Gr(ar),Vi(mn,or),Tt==="combobox"?pa(""):(!rt||Dt)&&(qn(""),pa(""))}),aa=function(Wn,ar){Gr(Wn);var or=ar.type,Hn=ar.values;(or==="remove"||or==="clear")&&Hn.forEach(function(wr){Vi(wr.value,!1,or)})},ha=function(Wn,ar){if(qn(Wn),pa(null),ar.source==="submit"){var or=(Wn||"").trim();if(or){var Hn=Array.from(new Set([].concat((0,Ae.Z)(qi),[or])));Gr(Hn),Vi(or,!0),qn("")}return}ar.source!=="blur"&&(Tt==="combobox"&&Gr(Wn),Qt==null||Qt(Wn))},An=function(Wn){var ar=Wn;Tt!=="tags"&&(ar=Wn.map(function(Hn){var wr=Rr.get(Hn);return wr==null?void 0:wr.value}).filter(function(Hn){return Hn!==void 0}));var or=Array.from(new Set([].concat((0,Ae.Z)(qi),(0,Ae.Z)(ar))));Gr(or),or.forEach(function(Hn){Vi(Hn,!0)})},Cn=_e.useMemo(function(){var mn=yn!==!1&&In!==!1;return(0,ct.Z)((0,ct.Z)({},Jn),{},{flattenOptions:Er,onActiveValue:Fi,defaultActiveFirstOption:go,onSelect:La,menuItemSelectedIcon:xn,rawValues:qi,fieldNames:Kr,virtual:mn,direction:_n,listHeight:nr,listItemHeight:Tr,childrenAsData:Lr})},[Jn,Er,Fi,go,La,xn,qi,Kr,yn,In,nr,Tr,Lr]);return _e.createElement(er.Provider,{value:Cn},_e.createElement(Ct,(0,ae.Z)({},Nr,{id:$r,prefixCls:ln,ref:Ze,omitDomProps:tr,mode:Tt,displayValues:ca,onDisplayValuesChange:aa,direction:_n,searchValue:zr,onSearch:ha,autoClearSearchValue:Dt,onSearchSplit:An,dropdownMatchSelectWidth:In,OptionList:qr,emptyOptions:!Er.length,activeValue:va,activeDescendantId:"".concat($r,"_list_").concat(Ya)})))}),Rt=Xr;Rt.Option=Vn,Rt.OptGroup=pn;var ze=Rt,$e=ze},9296:function(Mn,tn,oe){"use strict";oe.r(tn),oe.d(tn,{ResizableTextArea:function(){return bt},default:function(){return Mt}});var ae=oe(60499),Ae=oe(85899),Le=oe(18642),ct=oe(43749),xe=oe(72190),Ee=oe(42244),pe=oe(77654),ve=oe(92310),Me=oe.n(ve),_e=oe(93681),vt=oe(5643),Fe=oe(18929),qe=oe(59301),pt=oe(29301),Ke=oe(34280),je=oe(16089),ft=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,mt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Bt={},ht;function nt(Wt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ge=Wt.getAttribute("id")||Wt.getAttribute("data-reactid")||Wt.getAttribute("name");if(It&&Bt[Ge])return Bt[Ge];var be=window.getComputedStyle(Wt),Ye=be.getPropertyValue("box-sizing")||be.getPropertyValue("-moz-box-sizing")||be.getPropertyValue("-webkit-box-sizing"),Pt=parseFloat(be.getPropertyValue("padding-bottom"))+parseFloat(be.getPropertyValue("padding-top")),xt=parseFloat(be.getPropertyValue("border-bottom-width"))+parseFloat(be.getPropertyValue("border-top-width")),Ue=mt.map(function(Ot){return"".concat(Ot,":").concat(be.getPropertyValue(Ot))}).join(";"),at={sizingStyle:Ue,paddingSize:Pt,borderSize:xt,boxSizing:Ye};return It&&Ge&&(Bt[Ge]=at),at}function Re(Wt){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ht||(ht=document.createElement("textarea"),ht.setAttribute("tab-index","-1"),ht.setAttribute("aria-hidden","true"),document.body.appendChild(ht)),Wt.getAttribute("wrap")?ht.setAttribute("wrap",Wt.getAttribute("wrap")):ht.removeAttribute("wrap");var Ye=nt(Wt,It),Pt=Ye.paddingSize,xt=Ye.borderSize,Ue=Ye.boxSizing,at=Ye.sizingStyle;ht.setAttribute("style","".concat(at,";").concat(ft)),ht.value=Wt.value||Wt.placeholder||"";var Ot=void 0,kn=void 0,Kt,gn=ht.scrollHeight;if(Ue==="border-box"?gn+=xt:Ue==="content-box"&&(gn-=Pt),Ge!==null||be!==null){ht.value=" ";var nn=ht.scrollHeight-Pt;Ge!==null&&(Ot=nn*Ge,Ue==="border-box"&&(Ot=Ot+Pt+xt),gn=Math.max(Ot,gn)),be!==null&&(kn=nn*be,Ue==="border-box"&&(kn=kn+Pt+xt),Kt=gn>kn?"":"hidden",gn=Math.min(kn,gn))}var Gt={height:gn,overflowY:Kt,resize:"none"};return Ot&&(Gt.minHeight=Ot),kn&&(Gt.maxHeight=kn),Gt}var Ce=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Je=0,et=1,wt=2,Qe=qe.forwardRef(function(Wt,It){var Ge=Wt,be=Ge.prefixCls,Ye=Ge.onPressEnter,Pt=Ge.defaultValue,xt=Ge.value,Ue=Ge.autoSize,at=Ge.onResize,Ot=Ge.className,kn=Ge.style,Kt=Ge.disabled,gn=Ge.onChange,nn=Ge.onInternalAutoSize,Gt=(0,Ee.Z)(Ge,Ce),Xt=(0,Fe.Z)(Pt,{value:xt,postState:function(pn){return pn!=null?pn:""}}),ye=(0,xe.Z)(Xt,2),ue=ye[0],ce=ye[1],de=function(pn){ce(pn.target.value),gn==null||gn(pn)},he=qe.useRef();qe.useImperativeHandle(It,function(){return{textArea:he.current}});var se=qe.useMemo(function(){return Ue&&(0,ct.Z)(Ue)==="object"?[Ue.minRows,Ue.maxRows]:[]},[Ue]),ke=(0,xe.Z)(se,2),gt=ke[0],Ie=ke[1],Be=!!Ue,yt=function(){try{if(document.activeElement===he.current){var pn=he.current,zn=pn.selectionStart,Vn=pn.selectionEnd,Pn=pn.scrollTop;he.current.setSelectionRange(zn,Vn),he.current.scrollTop=Pn}}catch(Qn){}},rt=qe.useState(wt),Ve=(0,xe.Z)(rt,2),Ct=Ve[0],rn=Ve[1],lt=qe.useState(),_t=(0,xe.Z)(lt,2),fn=_t[0],ut=_t[1],De=function(){rn(Je)};(0,Ke.Z)(function(){Be&&De()},[xt,gt,Ie,Be]),(0,Ke.Z)(function(){if(Ct===Je)rn(et);else if(Ct===et){var qt=Re(he.current,!1,gt,Ie);rn(wt),ut(qt)}else yt()},[Ct]);var dt=qe.useRef(),Ft=function(){je.Z.cancel(dt.current)},zt=function(pn){Ct===wt&&(at==null||at(pn),Ue&&(Ft(),dt.current=(0,je.Z)(function(){De()})))};qe.useEffect(function(){return Ft},[]);var an=Be?fn:null,Bn=(0,Ae.Z)((0,Ae.Z)({},kn),an);return(Ct===Je||Ct===et)&&(Bn.overflowY="hidden",Bn.overflowX="hidden"),qe.createElement(pt.Z,{onResize:zt,disabled:!(Ue||at)},qe.createElement("textarea",(0,ae.Z)({},Gt,{ref:he,style:Bn,className:Me()(be,Ot,(0,Le.Z)({},"".concat(be,"-disabled"),Kt)),disabled:Kt,value:ue,onChange:de})))}),bt=Qe,Oe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Lt(Wt,It){return(0,pe.Z)(Wt||"").slice(0,It).join("")}function tt(Wt,It,Ge,be){var Ye=Ge;return Wt?Ye=Lt(Ge,be):(0,pe.Z)(It||"").length<Ge.length&&(0,pe.Z)(Ge||"").length>be&&(Ye=It),Ye}var Ut=qe.forwardRef(function(Wt,It){var Ge,be=Wt.defaultValue,Ye=Wt.value,Pt=Wt.onFocus,xt=Wt.onBlur,Ue=Wt.onChange,at=Wt.allowClear,Ot=Wt.maxLength,kn=Wt.onCompositionStart,Kt=Wt.onCompositionEnd,gn=Wt.suffix,nn=Wt.prefixCls,Gt=nn===void 0?"rc-textarea":nn,Xt=Wt.classes,ye=Wt.showCount,ue=Wt.className,ce=Wt.style,de=Wt.disabled,he=Wt.hidden,se=Wt.classNames,ke=Wt.styles,gt=Wt.onResize,Ie=(0,Ee.Z)(Wt,Oe),Be=(0,Fe.Z)(be,{value:Ye,defaultValue:be}),yt=(0,xe.Z)(Be,2),rt=yt[0],Ve=yt[1],Ct=(0,qe.useRef)(null),rn=qe.useState(!1),lt=(0,xe.Z)(rn,2),_t=lt[0],fn=lt[1],ut=qe.useState(!1),De=(0,xe.Z)(ut,2),dt=De[0],Ft=De[1],zt=qe.useRef(),an=qe.useRef(0),Bn=qe.useState(null),qt=(0,xe.Z)(Bn,2),pn=qt[0],zn=qt[1],Vn=function(){var Gn;(Gn=Ct.current)===null||Gn===void 0||Gn.textArea.focus()};(0,qe.useImperativeHandle)(It,function(){return{resizableTextArea:Ct.current,focus:Vn,blur:function(){var Gn;(Gn=Ct.current)===null||Gn===void 0||Gn.textArea.blur()}}}),(0,qe.useEffect)(function(){fn(function(tr){return!de&&tr})},[de]);var Pn=Number(Ot)>0,Qn=function(Gn){Ft(!0),zt.current=rt,an.current=Gn.currentTarget.selectionStart,kn==null||kn(Gn)},gr=function(Gn){Ft(!1);var Xr=Gn.currentTarget.value;if(Pn){var Rt,ze=an.current>=Ot+1||an.current===((Rt=zt.current)===null||Rt===void 0?void 0:Rt.length);Xr=tt(ze,zt.current,Xr,Ot)}Xr!==rt&&(Ve(Xr),(0,vt.rJ)(Gn.currentTarget,Gn,Ue,Xr)),Kt==null||Kt(Gn)},rr=function(Gn){var Xr=Gn.target.value;if(!dt&&Pn){var Rt=Gn.target.selectionStart>=Ot+1||Gn.target.selectionStart===Xr.length||!Gn.target.selectionStart;Xr=tt(Rt,rt,Xr,Ot)}Ve(Xr),(0,vt.rJ)(Gn.currentTarget,Gn,Ue,Xr)},er=function(Gn){var Xr=Ie.onPressEnter,Rt=Ie.onKeyDown;Gn.key==="Enter"&&Xr&&Xr(Gn),Rt==null||Rt(Gn)},pr=function(Gn){fn(!0),Pt==null||Pt(Gn)},Pr=function(Gn){fn(!1),xt==null||xt(Gn)},$n=function(Gn){var Xr;Ve(""),Vn(),(0,vt.rJ)((Xr=Ct.current)===null||Xr===void 0?void 0:Xr.textArea,Gn,Ue)},Wr=(0,vt.D7)(rt);!dt&&Pn&&Ye==null&&(Wr=Lt(Wr,Ot));var vr=gn,qr;if(ye){var xi=(0,pe.Z)(Wr).length;(0,ct.Z)(ye)==="object"?qr=ye.formatter({value:Wr,count:xi,maxLength:Ot}):qr="".concat(xi).concat(Pn?" / ".concat(Ot):""),vr=qe.createElement(qe.Fragment,null,vr,qe.createElement("span",{className:Me()("".concat(Gt,"-data-count"),se==null?void 0:se.count),style:ke==null?void 0:ke.count},qr))}var Ar=function(Gn){var Xr;gt==null||gt(Gn),(Xr=Ct.current)!==null&&Xr!==void 0&&Xr.textArea.style.height&&zn(!0)},dr=!Ie.autoSize&&!ye&&!at,Mr=qe.createElement(_e.BaseInput,{value:Wr,allowClear:at,handleReset:$n,suffix:vr,prefixCls:Gt,classes:{affixWrapper:Me()(Xt==null?void 0:Xt.affixWrapper,(Ge={},(0,Le.Z)(Ge,"".concat(Gt,"-show-count"),ye),(0,Le.Z)(Ge,"".concat(Gt,"-textarea-allow-clear"),at),Ge))},disabled:de,focused:_t,className:ue,style:(0,Ae.Z)((0,Ae.Z)({},ce),pn&&!dr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof qr=="string"?qr:void 0}},hidden:he,inputElement:qe.createElement(bt,(0,ae.Z)({},Ie,{onKeyDown:er,onChange:rr,onFocus:pr,onBlur:Pr,onCompositionStart:Qn,onCompositionEnd:gr,className:se==null?void 0:se.textarea,style:(0,Ae.Z)((0,Ae.Z)({},ke==null?void 0:ke.textarea),{},{resize:ce==null?void 0:ce.resize}),disabled:de,prefixCls:Gt,onResize:Ar,ref:Ct}))});return Mr}),At=Ut,Mt=At},39417:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return et}});var ae=oe(60499),Ae=oe(18642),Le=oe(42244),ct=oe(85899),xe=oe(38705),Ee=oe(17212),pe=oe(15793),ve=oe(39153),Me=oe(55401),_e=oe(92310),vt=oe.n(_e),Fe=oe(26112),qe=oe(59301),pt=oe(39378),Ke=function(Qe){for(var bt=Qe.prefixCls,Oe=Qe.level,Lt=Qe.isStart,tt=Qe.isEnd,Ut="".concat(bt,"-indent-unit"),At=[],Mt=0;Mt<Oe;Mt+=1){var Wt;At.push(qe.createElement("span",{key:Mt,className:vt()(Ut,(Wt={},(0,Ae.Z)(Wt,"".concat(Ut,"-start"),Lt[Mt]),(0,Ae.Z)(Wt,"".concat(Ut,"-end"),tt[Mt]),Wt))}))}return qe.createElement("span",{"aria-hidden":"true",className:"".concat(bt,"-indent")},At)},je=qe.memo(Ke),ft=oe(67841),mt=oe(71430),Bt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ht="open",nt="close",Re="---",Ce=function(wt){(0,ve.Z)(bt,wt);var Qe=(0,Me.Z)(bt);function bt(){var Oe;(0,xe.Z)(this,bt);for(var Lt=arguments.length,tt=new Array(Lt),Ut=0;Ut<Lt;Ut++)tt[Ut]=arguments[Ut];return Oe=Qe.call.apply(Qe,[this].concat(tt)),Oe.state={dragNodeHighlight:!1},Oe.selectHandle=void 0,Oe.cacheIndent=void 0,Oe.onSelectorClick=function(At){var Mt=Oe.props.context.onNodeClick;Mt(At,(0,mt.F)(Oe.props)),Oe.isSelectable()?Oe.onSelect(At):Oe.onCheck(At)},Oe.onSelectorDoubleClick=function(At){var Mt=Oe.props.context.onNodeDoubleClick;Mt(At,(0,mt.F)(Oe.props))},Oe.onSelect=function(At){if(!Oe.isDisabled()){var Mt=Oe.props.context.onNodeSelect;Mt(At,(0,mt.F)(Oe.props))}},Oe.onCheck=function(At){if(!Oe.isDisabled()){var Mt=Oe.props,Wt=Mt.disableCheckbox,It=Mt.checked,Ge=Oe.props.context.onNodeCheck;if(!(!Oe.isCheckable()||Wt)){var be=!It;Ge(At,(0,mt.F)(Oe.props),be)}}},Oe.onMouseEnter=function(At){var Mt=Oe.props.context.onNodeMouseEnter;Mt(At,(0,mt.F)(Oe.props))},Oe.onMouseLeave=function(At){var Mt=Oe.props.context.onNodeMouseLeave;Mt(At,(0,mt.F)(Oe.props))},Oe.onContextMenu=function(At){var Mt=Oe.props.context.onNodeContextMenu;Mt(At,(0,mt.F)(Oe.props))},Oe.onDragStart=function(At){var Mt=Oe.props.context.onNodeDragStart;At.stopPropagation(),Oe.setState({dragNodeHighlight:!0}),Mt(At,(0,pe.Z)(Oe));try{At.dataTransfer.setData("text/plain","")}catch(Wt){}},Oe.onDragEnter=function(At){var Mt=Oe.props.context.onNodeDragEnter;At.preventDefault(),At.stopPropagation(),Mt(At,(0,pe.Z)(Oe))},Oe.onDragOver=function(At){var Mt=Oe.props.context.onNodeDragOver;At.preventDefault(),At.stopPropagation(),Mt(At,(0,pe.Z)(Oe))},Oe.onDragLeave=function(At){var Mt=Oe.props.context.onNodeDragLeave;At.stopPropagation(),Mt(At,(0,pe.Z)(Oe))},Oe.onDragEnd=function(At){var Mt=Oe.props.context.onNodeDragEnd;At.stopPropagation(),Oe.setState({dragNodeHighlight:!1}),Mt(At,(0,pe.Z)(Oe))},Oe.onDrop=function(At){var Mt=Oe.props.context.onNodeDrop;At.preventDefault(),At.stopPropagation(),Oe.setState({dragNodeHighlight:!1}),Mt(At,(0,pe.Z)(Oe))},Oe.onExpand=function(At){var Mt=Oe.props,Wt=Mt.loading,It=Mt.context.onNodeExpand;Wt||It(At,(0,mt.F)(Oe.props))},Oe.setSelectHandle=function(At){Oe.selectHandle=At},Oe.getNodeState=function(){var At=Oe.props.expanded;return Oe.isLeaf()?null:At?ht:nt},Oe.hasChildren=function(){var At=Oe.props.eventKey,Mt=Oe.props.context.keyEntities,Wt=(0,ft.Z)(Mt,At)||{},It=Wt.children;return!!(It||[]).length},Oe.isLeaf=function(){var At=Oe.props,Mt=At.isLeaf,Wt=At.loaded,It=Oe.props.context.loadData,Ge=Oe.hasChildren();return Mt===!1?!1:Mt||!It&&!Ge||It&&Wt&&!Ge},Oe.isDisabled=function(){var At=Oe.props.disabled,Mt=Oe.props.context.disabled;return!!(Mt||At)},Oe.isCheckable=function(){var At=Oe.props.checkable,Mt=Oe.props.context.checkable;return!Mt||At===!1?!1:Mt},Oe.syncLoadData=function(At){var Mt=At.expanded,Wt=At.loading,It=At.loaded,Ge=Oe.props.context,be=Ge.loadData,Ye=Ge.onNodeLoad;Wt||be&&Mt&&!Oe.isLeaf()&&!Oe.hasChildren()&&!It&&Ye((0,mt.F)(Oe.props))},Oe.isDraggable=function(){var At=Oe.props,Mt=At.data,Wt=At.context.draggable;return!!(Wt&&(!Wt.nodeDraggable||Wt.nodeDraggable(Mt)))},Oe.renderDragHandler=function(){var At=Oe.props.context,Mt=At.draggable,Wt=At.prefixCls;return Mt!=null&&Mt.icon?qe.createElement("span",{className:"".concat(Wt,"-draggable-icon")},Mt.icon):null},Oe.renderSwitcherIconDom=function(At){var Mt=Oe.props.switcherIcon,Wt=Oe.props.context.switcherIcon,It=Mt||Wt;return typeof It=="function"?It((0,ct.Z)((0,ct.Z)({},Oe.props),{},{isLeaf:At})):It},Oe.renderSwitcher=function(){var At=Oe.props.expanded,Mt=Oe.props.context.prefixCls;if(Oe.isLeaf()){var Wt=Oe.renderSwitcherIconDom(!0);return Wt!==!1?qe.createElement("span",{className:vt()("".concat(Mt,"-switcher"),"".concat(Mt,"-switcher-noop"))},Wt):null}var It=vt()("".concat(Mt,"-switcher"),"".concat(Mt,"-switcher_").concat(At?ht:nt)),Ge=Oe.renderSwitcherIconDom(!1);return Ge!==!1?qe.createElement("span",{onClick:Oe.onExpand,className:It},Ge):null},Oe.renderCheckbox=function(){var At=Oe.props,Mt=At.checked,Wt=At.halfChecked,It=At.disableCheckbox,Ge=Oe.props.context.prefixCls,be=Oe.isDisabled(),Ye=Oe.isCheckable();if(!Ye)return null;var Pt=typeof Ye!="boolean"?Ye:null;return qe.createElement("span",{className:vt()("".concat(Ge,"-checkbox"),Mt&&"".concat(Ge,"-checkbox-checked"),!Mt&&Wt&&"".concat(Ge,"-checkbox-indeterminate"),(be||It)&&"".concat(Ge,"-checkbox-disabled")),onClick:Oe.onCheck},Pt)},Oe.renderIcon=function(){var At=Oe.props.loading,Mt=Oe.props.context.prefixCls;return qe.createElement("span",{className:vt()("".concat(Mt,"-iconEle"),"".concat(Mt,"-icon__").concat(Oe.getNodeState()||"docu"),At&&"".concat(Mt,"-icon_loading"))})},Oe.renderSelector=function(){var At=Oe.state.dragNodeHighlight,Mt=Oe.props,Wt=Mt.title,It=Wt===void 0?Re:Wt,Ge=Mt.selected,be=Mt.icon,Ye=Mt.loading,Pt=Mt.data,xt=Oe.props.context,Ue=xt.prefixCls,at=xt.showIcon,Ot=xt.icon,kn=xt.loadData,Kt=xt.titleRender,gn=Oe.isDisabled(),nn="".concat(Ue,"-node-content-wrapper"),Gt;if(at){var Xt=be||Ot;Gt=Xt?qe.createElement("span",{className:vt()("".concat(Ue,"-iconEle"),"".concat(Ue,"-icon__customize"))},typeof Xt=="function"?Xt(Oe.props):Xt):Oe.renderIcon()}else kn&&Ye&&(Gt=Oe.renderIcon());var ye;typeof It=="function"?ye=It(Pt):Kt?ye=Kt(Pt):ye=It;var ue=qe.createElement("span",{className:"".concat(Ue,"-title")},ye);return qe.createElement("span",{ref:Oe.setSelectHandle,title:typeof It=="string"?It:"",className:vt()("".concat(nn),"".concat(nn,"-").concat(Oe.getNodeState()||"normal"),!gn&&(Ge||At)&&"".concat(Ue,"-node-selected")),onMouseEnter:Oe.onMouseEnter,onMouseLeave:Oe.onMouseLeave,onContextMenu:Oe.onContextMenu,onClick:Oe.onSelectorClick,onDoubleClick:Oe.onSelectorDoubleClick},Gt,ue,Oe.renderDropIndicator())},Oe.renderDropIndicator=function(){var At=Oe.props,Mt=At.disabled,Wt=At.eventKey,It=Oe.props.context,Ge=It.draggable,be=It.dropLevelOffset,Ye=It.dropPosition,Pt=It.prefixCls,xt=It.indent,Ue=It.dropIndicatorRender,at=It.dragOverNodeKey,Ot=It.direction,kn=!!Ge,Kt=!Mt&&kn&&at===Wt,gn=xt!=null?xt:Oe.cacheIndent;return Oe.cacheIndent=xt,Kt?Ue({dropPosition:Ye,dropLevelOffset:be,indent:gn,prefixCls:Pt,direction:Ot}):null},Oe}return(0,Ee.Z)(bt,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Lt=this.props.selectable,tt=this.props.context.selectable;return typeof Lt=="boolean"?Lt:tt}},{key:"render",value:function(){var Lt,tt=this.props,Ut=tt.eventKey,At=tt.className,Mt=tt.style,Wt=tt.dragOver,It=tt.dragOverGapTop,Ge=tt.dragOverGapBottom,be=tt.isLeaf,Ye=tt.isStart,Pt=tt.isEnd,xt=tt.expanded,Ue=tt.selected,at=tt.checked,Ot=tt.halfChecked,kn=tt.loading,Kt=tt.domRef,gn=tt.active,nn=tt.data,Gt=tt.onMouseMove,Xt=tt.selectable,ye=(0,Le.Z)(tt,Bt),ue=this.props.context,ce=ue.prefixCls,de=ue.filterTreeNode,he=ue.keyEntities,se=ue.dropContainerKey,ke=ue.dropTargetKey,gt=ue.draggingNodeKey,Ie=this.isDisabled(),Be=(0,Fe.Z)(ye,{aria:!0,data:!0}),yt=(0,ft.Z)(he,Ut)||{},rt=yt.level,Ve=Pt[Pt.length-1],Ct=this.isDraggable(),rn=!Ie&&Ct,lt=gt===Ut,_t=Xt!==void 0?{"aria-selected":!!Xt}:void 0;return qe.createElement("div",(0,ae.Z)({ref:Kt,className:vt()(At,"".concat(ce,"-treenode"),(Lt={},(0,Ae.Z)(Lt,"".concat(ce,"-treenode-disabled"),Ie),(0,Ae.Z)(Lt,"".concat(ce,"-treenode-switcher-").concat(xt?"open":"close"),!be),(0,Ae.Z)(Lt,"".concat(ce,"-treenode-checkbox-checked"),at),(0,Ae.Z)(Lt,"".concat(ce,"-treenode-checkbox-indeterminate"),Ot),(0,Ae.Z)(Lt,"".concat(ce,"-treenode-selected"),Ue),(0,Ae.Z)(Lt,"".concat(ce,"-treenode-loading"),kn),(0,Ae.Z)(Lt,"".concat(ce,"-treenode-active"),gn),(0,Ae.Z)(Lt,"".concat(ce,"-treenode-leaf-last"),Ve),(0,Ae.Z)(Lt,"".concat(ce,"-treenode-draggable"),Ct),(0,Ae.Z)(Lt,"dragging",lt),(0,Ae.Z)(Lt,"drop-target",ke===Ut),(0,Ae.Z)(Lt,"drop-container",se===Ut),(0,Ae.Z)(Lt,"drag-over",!Ie&&Wt),(0,Ae.Z)(Lt,"drag-over-gap-top",!Ie&&It),(0,Ae.Z)(Lt,"drag-over-gap-bottom",!Ie&&Ge),(0,Ae.Z)(Lt,"filter-node",de&&de((0,mt.F)(this.props))),Lt)),style:Mt,draggable:rn,"aria-grabbed":lt,onDragStart:rn?this.onDragStart:void 0,onDragEnter:Ct?this.onDragEnter:void 0,onDragOver:Ct?this.onDragOver:void 0,onDragLeave:Ct?this.onDragLeave:void 0,onDrop:Ct?this.onDrop:void 0,onDragEnd:Ct?this.onDragEnd:void 0,onMouseMove:Gt},_t,Be),qe.createElement(je,{prefixCls:ce,level:rt,isStart:Ye,isEnd:Pt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),bt}(qe.Component),Je=function(Qe){return qe.createElement(pt.k.Consumer,null,function(bt){return qe.createElement(Ce,(0,ae.Z)({},Qe,{context:bt}))})};Je.displayName="TreeNode",Je.isTreeNode=1;var et=Je},39378:function(Mn,tn,oe){"use strict";oe.d(tn,{k:function(){return Ae}});var ae=oe(59301),Ae=ae.createContext(null)},38028:function(Mn,tn,oe){"use strict";oe.d(tn,{O:function(){return et.Z},Z:function(){return ue}});var ae=oe(60499),Ae=oe(18642),Le=oe(43749),ct=oe(85899),xe=oe(77654),Ee=oe(38705),pe=oe(17212),ve=oe(15793),Me=oe(39153),_e=oe(55401),vt=oe(92310),Fe=oe.n(vt),qe=oe(10228),pt=oe(26112),Ke=oe(48736),je=oe(59301),ft=oe(39378);function mt(ce){var de=ce.dropPosition,he=ce.dropLevelOffset,se=ce.indent,ke={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(de){case-1:ke.top=0,ke.left=-he*se;break;case 1:ke.bottom=0,ke.left=-he*se;break;case 0:ke.bottom=0,ke.left=se;break}return je.createElement("div",{style:ke})}function Bt(ce){if(ce==null)throw new TypeError("Cannot destructure "+ce)}var ht=oe(72190),nt=oe(42244),Re=oe(34280),Ce=oe(48911),Je=oe(77900),et=oe(39417);function wt(ce,de){var he=je.useState(!1),se=(0,ht.Z)(he,2),ke=se[0],gt=se[1];je.useLayoutEffect(function(){if(ke)return ce(),function(){de()}},[ke]),je.useLayoutEffect(function(){return gt(!0),function(){gt(!1)}},[])}var Qe=oe(71430),bt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Oe=function(de,he){var se=de.className,ke=de.style,gt=de.motion,Ie=de.motionNodes,Be=de.motionType,yt=de.onMotionStart,rt=de.onMotionEnd,Ve=de.active,Ct=de.treeNodeRequiredProps,rn=(0,nt.Z)(de,bt),lt=je.useState(!0),_t=(0,ht.Z)(lt,2),fn=_t[0],ut=_t[1],De=je.useContext(ft.k),dt=De.prefixCls,Ft=Ie&&Be!=="hide";(0,Re.Z)(function(){Ie&&Ft!==fn&&ut(Ft)},[Ie]);var zt=function(){Ie&&yt()},an=je.useRef(!1),Bn=function(){Ie&&!an.current&&(an.current=!0,rt())};wt(zt,Bn);var qt=function(zn){Ft===zn&&Bn()};return Ie?je.createElement(Je.default,(0,ae.Z)({ref:he,visible:fn},gt,{motionAppear:Be==="show",onVisibleChanged:qt}),function(pn,zn){var Vn=pn.className,Pn=pn.style;return je.createElement("div",{ref:zn,className:Fe()("".concat(dt,"-treenode-motion"),Vn),style:Pn},Ie.map(function(Qn){var gr=(0,ae.Z)({},(Bt(Qn.data),Qn.data)),rr=Qn.title,er=Qn.key,pr=Qn.isStart,Pr=Qn.isEnd;delete gr.children;var $n=(0,Qe.H8)(er,Ct);return je.createElement(et.Z,(0,ae.Z)({},gr,$n,{title:rr,active:Ve,data:Qn.data,key:er,isStart:pr,isEnd:Pr}))}))}):je.createElement(et.Z,(0,ae.Z)({domRef:he,className:se,style:ke},rn,{active:Ve}))};Oe.displayName="MotionTreeNode";var Lt=je.forwardRef(Oe),tt=Lt;function Ut(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],he=ce.length,se=de.length;if(Math.abs(he-se)!==1)return{add:!1,key:null};function ke(gt,Ie){var Be=new Map;gt.forEach(function(rt){Be.set(rt,!0)});var yt=Ie.filter(function(rt){return!Be.has(rt)});return yt.length===1?yt[0]:null}return he<se?{add:!0,key:ke(ce,de)}:{add:!1,key:ke(de,ce)}}function At(ce,de,he){var se=ce.findIndex(function(Be){return Be.key===he}),ke=ce[se+1],gt=de.findIndex(function(Be){return Be.key===he});if(ke){var Ie=de.findIndex(function(Be){return Be.key===ke.key});return de.slice(gt+1,Ie)}return de.slice(gt+1)}var Mt=["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"],Wt={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},It=function(){},Ge="RC_TREE_MOTION_".concat(Math.random()),be={key:Ge},Ye={key:Ge,level:0,index:0,pos:"0",node:be,nodes:[be]},Pt={parent:null,children:[],pos:Ye.pos,data:be,title:null,key:Ge,isStart:[],isEnd:[]};function xt(ce,de,he,se){return de===!1||!he?ce:ce.slice(0,Math.ceil(he/se)+1)}function Ue(ce){var de=ce.key,he=ce.pos;return(0,Qe.km)(de,he)}function at(ce){for(var de=String(ce.data.key),he=ce;he.parent;)he=he.parent,de="".concat(he.data.key," > ").concat(de);return de}var Ot=je.forwardRef(function(ce,de){var he=ce.prefixCls,se=ce.data,ke=ce.selectable,gt=ce.checkable,Ie=ce.expandedKeys,Be=ce.selectedKeys,yt=ce.checkedKeys,rt=ce.loadedKeys,Ve=ce.loadingKeys,Ct=ce.halfCheckedKeys,rn=ce.keyEntities,lt=ce.disabled,_t=ce.dragging,fn=ce.dragOverNodeKey,ut=ce.dropPosition,De=ce.motion,dt=ce.height,Ft=ce.itemHeight,zt=ce.virtual,an=ce.focusable,Bn=ce.activeItem,qt=ce.focused,pn=ce.tabIndex,zn=ce.onKeyDown,Vn=ce.onFocus,Pn=ce.onBlur,Qn=ce.onActiveChange,gr=ce.onListChangeStart,rr=ce.onListChangeEnd,er=(0,nt.Z)(ce,Mt),pr=je.useRef(null),Pr=je.useRef(null);je.useImperativeHandle(de,function(){return{scrollTo:function(Dn){pr.current.scrollTo(Dn)},getIndentWidth:function(){return Pr.current.offsetWidth}}});var $n=je.useState(Ie),Wr=(0,ht.Z)($n,2),vr=Wr[0],qr=Wr[1],xi=je.useState(se),Ar=(0,ht.Z)(xi,2),dr=Ar[0],Mr=Ar[1],tr=je.useState(se),Gn=(0,ht.Z)(tr,2),Xr=Gn[0],Rt=Gn[1],ze=je.useState([]),$e=(0,ht.Z)(ze,2),Xe=$e[0],Ze=$e[1],Et=je.useState(null),Tt=(0,ht.Z)(Et,2),hn=Tt[0],ln=Tt[1],wn=je.useRef(se);wn.current=se;function Tn(){var Qt=wn.current;Mr(Qt),Rt(Qt),Ze([]),ln(null),rr()}(0,Re.Z)(function(){qr(Ie);var Qt=Ut(vr,Ie);if(Qt.key!==null)if(Qt.add){var Dn=dr.findIndex(function(en){var Ln=en.key;return Ln===Qt.key}),Dt=xt(At(dr,se,Qt.key),zt,dt,Ft),Zt=dr.slice();Zt.splice(Dn+1,0,Pt),Rt(Zt),Ze(Dt),ln("show")}else{var on=se.findIndex(function(en){var Ln=en.key;return Ln===Qt.key}),cn=xt(At(se,dr,Qt.key),zt,dt,Ft),In=se.slice();In.splice(on+1,0,Pt),Rt(In),Ze(cn),ln("hide")}else dr!==se&&(Mr(se),Rt(se))},[Ie,se]),je.useEffect(function(){_t||Tn()},[_t]);var Fn=De?Xr:se,jn={expandedKeys:Ie,selectedKeys:Be,loadedKeys:rt,loadingKeys:Ve,checkedKeys:yt,halfCheckedKeys:Ct,dragOverNodeKey:fn,dropPosition:ut,keyEntities:rn};return je.createElement(je.Fragment,null,qt&&Bn&&je.createElement("span",{style:Wt,"aria-live":"assertive"},at(Bn)),je.createElement("div",null,je.createElement("input",{style:Wt,disabled:an===!1||lt,tabIndex:an!==!1?pn:null,onKeyDown:zn,onFocus:Vn,onBlur:Pn,value:"",onChange:It,"aria-label":"for screen reader"})),je.createElement("div",{className:"".concat(he,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},je.createElement("div",{className:"".concat(he,"-indent")},je.createElement("div",{ref:Pr,className:"".concat(he,"-indent-unit")}))),je.createElement(Ce.Z,(0,ae.Z)({},er,{data:Fn,itemKey:Ue,height:dt,fullHeight:!1,virtual:zt,itemHeight:Ft,prefixCls:"".concat(he,"-list"),ref:pr,onVisibleChange:function(Dn,Dt){var Zt=new Set(Dn),on=Dt.filter(function(cn){return!Zt.has(cn)});on.some(function(cn){return Ue(cn)===Ge})&&Tn()}}),function(Qt){var Dn=Qt.pos,Dt=(0,ae.Z)({},(Bt(Qt.data),Qt.data)),Zt=Qt.title,on=Qt.key,cn=Qt.isStart,In=Qt.isEnd,en=(0,Qe.km)(on,Dn);delete Dt.key,delete Dt.children;var Ln=(0,Qe.H8)(en,jn);return je.createElement(tt,(0,ae.Z)({},Dt,Ln,{title:Zt,active:!!Bn&&on===Bn.key,pos:Dn,data:Qt.data,isStart:cn,isEnd:In,motion:De,motionNodes:on===Ge?Xe:null,motionType:hn,onMotionStart:gr,onMotionEnd:Tn,treeNodeRequiredProps:jn,onMouseMove:function(){Qn(null)}}))}))});Ot.displayName="NodeList";var kn=Ot,Kt=oe(35654),gn=oe(90782),nn=oe(67841),Gt=10,Xt=function(ce){(0,Me.Z)(he,ce);var de=(0,_e.Z)(he);function he(){var se;(0,Ee.Z)(this,he);for(var ke=arguments.length,gt=new Array(ke),Ie=0;Ie<ke;Ie++)gt[Ie]=arguments[Ie];return se=de.call.apply(de,[this].concat(gt)),se.destroyed=!1,se.delayedDragEnterLogic=void 0,se.loadingRetryTimes={},se.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,Qe.w$)()},se.dragStartMousePosition=null,se.dragNode=void 0,se.currentMouseOverDroppableNodeKey=null,se.listRef=je.createRef(),se.onNodeDragStart=function(Be,yt){var rt=se.state,Ve=rt.expandedKeys,Ct=rt.keyEntities,rn=se.props.onDragStart,lt=yt.props.eventKey;se.dragNode=yt,se.dragStartMousePosition={x:Be.clientX,y:Be.clientY};var _t=(0,Kt._5)(Ve,lt);se.setState({draggingNodeKey:lt,dragChildrenKeys:(0,Kt.wA)(lt,Ct),indent:se.listRef.current.getIndentWidth()}),se.setExpandedKeys(_t),window.addEventListener("dragend",se.onWindowDragEnd),rn==null||rn({event:Be,node:(0,Qe.F)(yt.props)})},se.onNodeDragEnter=function(Be,yt){var rt=se.state,Ve=rt.expandedKeys,Ct=rt.keyEntities,rn=rt.dragChildrenKeys,lt=rt.flattenNodes,_t=rt.indent,fn=se.props,ut=fn.onDragEnter,De=fn.onExpand,dt=fn.allowDrop,Ft=fn.direction,zt=yt.props,an=zt.pos,Bn=zt.eventKey,qt=(0,ve.Z)(se),pn=qt.dragNode;if(se.currentMouseOverDroppableNodeKey!==Bn&&(se.currentMouseOverDroppableNodeKey=Bn),!pn){se.resetDragState();return}var zn=(0,Kt.OM)(Be,pn,yt,_t,se.dragStartMousePosition,dt,lt,Ct,Ve,Ft),Vn=zn.dropPosition,Pn=zn.dropLevelOffset,Qn=zn.dropTargetKey,gr=zn.dropContainerKey,rr=zn.dropTargetPos,er=zn.dropAllowed,pr=zn.dragOverNodeKey;if(rn.indexOf(Qn)!==-1||!er){se.resetDragState();return}if(se.delayedDragEnterLogic||(se.delayedDragEnterLogic={}),Object.keys(se.delayedDragEnterLogic).forEach(function(Pr){clearTimeout(se.delayedDragEnterLogic[Pr])}),pn.props.eventKey!==yt.props.eventKey&&(Be.persist(),se.delayedDragEnterLogic[an]=window.setTimeout(function(){if(se.state.draggingNodeKey!==null){var Pr=(0,xe.Z)(Ve),$n=(0,nn.Z)(Ct,yt.props.eventKey);$n&&($n.children||[]).length&&(Pr=(0,Kt.L0)(Ve,yt.props.eventKey)),"expandedKeys"in se.props||se.setExpandedKeys(Pr),De==null||De(Pr,{node:(0,Qe.F)(yt.props),expanded:!0,nativeEvent:Be.nativeEvent})}},800)),pn.props.eventKey===Qn&&Pn===0){se.resetDragState();return}se.setState({dragOverNodeKey:pr,dropPosition:Vn,dropLevelOffset:Pn,dropTargetKey:Qn,dropContainerKey:gr,dropTargetPos:rr,dropAllowed:er}),ut==null||ut({event:Be,node:(0,Qe.F)(yt.props),expandedKeys:Ve})},se.onNodeDragOver=function(Be,yt){var rt=se.state,Ve=rt.dragChildrenKeys,Ct=rt.flattenNodes,rn=rt.keyEntities,lt=rt.expandedKeys,_t=rt.indent,fn=se.props,ut=fn.onDragOver,De=fn.allowDrop,dt=fn.direction,Ft=(0,ve.Z)(se),zt=Ft.dragNode;if(zt){var an=(0,Kt.OM)(Be,zt,yt,_t,se.dragStartMousePosition,De,Ct,rn,lt,dt),Bn=an.dropPosition,qt=an.dropLevelOffset,pn=an.dropTargetKey,zn=an.dropContainerKey,Vn=an.dropAllowed,Pn=an.dropTargetPos,Qn=an.dragOverNodeKey;Ve.indexOf(pn)!==-1||!Vn||(zt.props.eventKey===pn&&qt===0?se.state.dropPosition===null&&se.state.dropLevelOffset===null&&se.state.dropTargetKey===null&&se.state.dropContainerKey===null&&se.state.dropTargetPos===null&&se.state.dropAllowed===!1&&se.state.dragOverNodeKey===null||se.resetDragState():Bn===se.state.dropPosition&&qt===se.state.dropLevelOffset&&pn===se.state.dropTargetKey&&zn===se.state.dropContainerKey&&Pn===se.state.dropTargetPos&&Vn===se.state.dropAllowed&&Qn===se.state.dragOverNodeKey||se.setState({dropPosition:Bn,dropLevelOffset:qt,dropTargetKey:pn,dropContainerKey:zn,dropTargetPos:Pn,dropAllowed:Vn,dragOverNodeKey:Qn}),ut==null||ut({event:Be,node:(0,Qe.F)(yt.props)}))}},se.onNodeDragLeave=function(Be,yt){se.currentMouseOverDroppableNodeKey===yt.props.eventKey&&!Be.currentTarget.contains(Be.relatedTarget)&&(se.resetDragState(),se.currentMouseOverDroppableNodeKey=null);var rt=se.props.onDragLeave;rt==null||rt({event:Be,node:(0,Qe.F)(yt.props)})},se.onWindowDragEnd=function(Be){se.onNodeDragEnd(Be,null,!0),window.removeEventListener("dragend",se.onWindowDragEnd)},se.onNodeDragEnd=function(Be,yt){var rt=se.props.onDragEnd;se.setState({dragOverNodeKey:null}),se.cleanDragState(),rt==null||rt({event:Be,node:(0,Qe.F)(yt.props)}),se.dragNode=null,window.removeEventListener("dragend",se.onWindowDragEnd)},se.onNodeDrop=function(Be,yt){var rt,Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ct=se.state,rn=Ct.dragChildrenKeys,lt=Ct.dropPosition,_t=Ct.dropTargetKey,fn=Ct.dropTargetPos,ut=Ct.dropAllowed;if(ut){var De=se.props.onDrop;if(se.setState({dragOverNodeKey:null}),se.cleanDragState(),_t!==null){var dt=(0,ct.Z)((0,ct.Z)({},(0,Qe.H8)(_t,se.getTreeNodeRequiredProps())),{},{active:((rt=se.getActiveItem())===null||rt===void 0?void 0:rt.key)===_t,data:(0,nn.Z)(se.state.keyEntities,_t).node}),Ft=rn.indexOf(_t)!==-1;(0,Ke.ZP)(!Ft,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var zt=(0,Kt.yx)(fn),an={event:Be,node:(0,Qe.F)(dt),dragNode:se.dragNode?(0,Qe.F)(se.dragNode.props):null,dragNodesKeys:[se.dragNode.props.eventKey].concat(rn),dropToGap:lt!==0,dropPosition:lt+Number(zt[zt.length-1])};Ve||De==null||De(an),se.dragNode=null}}},se.cleanDragState=function(){var Be=se.state.draggingNodeKey;Be!==null&&se.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),se.dragStartMousePosition=null,se.currentMouseOverDroppableNodeKey=null},se.triggerExpandActionExpand=function(Be,yt){var rt=se.state,Ve=rt.expandedKeys,Ct=rt.flattenNodes,rn=yt.expanded,lt=yt.key,_t=yt.isLeaf;if(!(_t||Be.shiftKey||Be.metaKey||Be.ctrlKey)){var fn=Ct.filter(function(De){return De.key===lt})[0],ut=(0,Qe.F)((0,ct.Z)((0,ct.Z)({},(0,Qe.H8)(lt,se.getTreeNodeRequiredProps())),{},{data:fn.data}));se.setExpandedKeys(rn?(0,Kt._5)(Ve,lt):(0,Kt.L0)(Ve,lt)),se.onNodeExpand(Be,ut)}},se.onNodeClick=function(Be,yt){var rt=se.props,Ve=rt.onClick,Ct=rt.expandAction;Ct==="click"&&se.triggerExpandActionExpand(Be,yt),Ve==null||Ve(Be,yt)},se.onNodeDoubleClick=function(Be,yt){var rt=se.props,Ve=rt.onDoubleClick,Ct=rt.expandAction;Ct==="doubleClick"&&se.triggerExpandActionExpand(Be,yt),Ve==null||Ve(Be,yt)},se.onNodeSelect=function(Be,yt){var rt=se.state.selectedKeys,Ve=se.state,Ct=Ve.keyEntities,rn=Ve.fieldNames,lt=se.props,_t=lt.onSelect,fn=lt.multiple,ut=yt.selected,De=yt[rn.key],dt=!ut;dt?fn?rt=(0,Kt.L0)(rt,De):rt=[De]:rt=(0,Kt._5)(rt,De);var Ft=rt.map(function(zt){var an=(0,nn.Z)(Ct,zt);return an?an.node:null}).filter(function(zt){return zt});se.setUncontrolledState({selectedKeys:rt}),_t==null||_t(rt,{event:"select",selected:dt,node:yt,selectedNodes:Ft,nativeEvent:Be.nativeEvent})},se.onNodeCheck=function(Be,yt,rt){var Ve=se.state,Ct=Ve.keyEntities,rn=Ve.checkedKeys,lt=Ve.halfCheckedKeys,_t=se.props,fn=_t.checkStrictly,ut=_t.onCheck,De=yt.key,dt,Ft={event:"check",node:yt,checked:rt,nativeEvent:Be.nativeEvent};if(fn){var zt=rt?(0,Kt.L0)(rn,De):(0,Kt._5)(rn,De),an=(0,Kt._5)(lt,De);dt={checked:zt,halfChecked:an},Ft.checkedNodes=zt.map(function(Pn){return(0,nn.Z)(Ct,Pn)}).filter(function(Pn){return Pn}).map(function(Pn){return Pn.node}),se.setUncontrolledState({checkedKeys:zt})}else{var Bn=(0,gn.S)([].concat((0,xe.Z)(rn),[De]),!0,Ct),qt=Bn.checkedKeys,pn=Bn.halfCheckedKeys;if(!rt){var zn=new Set(qt);zn.delete(De);var Vn=(0,gn.S)(Array.from(zn),{checked:!1,halfCheckedKeys:pn},Ct);qt=Vn.checkedKeys,pn=Vn.halfCheckedKeys}dt=qt,Ft.checkedNodes=[],Ft.checkedNodesPositions=[],Ft.halfCheckedKeys=pn,qt.forEach(function(Pn){var Qn=(0,nn.Z)(Ct,Pn);if(Qn){var gr=Qn.node,rr=Qn.pos;Ft.checkedNodes.push(gr),Ft.checkedNodesPositions.push({node:gr,pos:rr})}}),se.setUncontrolledState({checkedKeys:qt},!1,{halfCheckedKeys:pn})}ut==null||ut(dt,Ft)},se.onNodeLoad=function(Be){var yt=Be.key,rt=new Promise(function(Ve,Ct){se.setState(function(rn){var lt=rn.loadedKeys,_t=lt===void 0?[]:lt,fn=rn.loadingKeys,ut=fn===void 0?[]:fn,De=se.props,dt=De.loadData,Ft=De.onLoad;if(!dt||_t.indexOf(yt)!==-1||ut.indexOf(yt)!==-1)return null;var zt=dt(Be);return zt.then(function(){var an=se.state.loadedKeys,Bn=(0,Kt.L0)(an,yt);Ft==null||Ft(Bn,{event:"load",node:Be}),se.setUncontrolledState({loadedKeys:Bn}),se.setState(function(qt){return{loadingKeys:(0,Kt._5)(qt.loadingKeys,yt)}}),Ve()}).catch(function(an){if(se.setState(function(qt){return{loadingKeys:(0,Kt._5)(qt.loadingKeys,yt)}}),se.loadingRetryTimes[yt]=(se.loadingRetryTimes[yt]||0)+1,se.loadingRetryTimes[yt]>=Gt){var Bn=se.state.loadedKeys;(0,Ke.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),se.setUncontrolledState({loadedKeys:(0,Kt.L0)(Bn,yt)}),Ve()}Ct(an)}),{loadingKeys:(0,Kt.L0)(ut,yt)}})});return rt.catch(function(){}),rt},se.onNodeMouseEnter=function(Be,yt){var rt=se.props.onMouseEnter;rt==null||rt({event:Be,node:yt})},se.onNodeMouseLeave=function(Be,yt){var rt=se.props.onMouseLeave;rt==null||rt({event:Be,node:yt})},se.onNodeContextMenu=function(Be,yt){var rt=se.props.onRightClick;rt&&(Be.preventDefault(),rt({event:Be,node:yt}))},se.onFocus=function(){var Be=se.props.onFocus;se.setState({focused:!0});for(var yt=arguments.length,rt=new Array(yt),Ve=0;Ve<yt;Ve++)rt[Ve]=arguments[Ve];Be==null||Be.apply(void 0,rt)},se.onBlur=function(){var Be=se.props.onBlur;se.setState({focused:!1}),se.onActiveChange(null);for(var yt=arguments.length,rt=new Array(yt),Ve=0;Ve<yt;Ve++)rt[Ve]=arguments[Ve];Be==null||Be.apply(void 0,rt)},se.getTreeNodeRequiredProps=function(){var Be=se.state,yt=Be.expandedKeys,rt=Be.selectedKeys,Ve=Be.loadedKeys,Ct=Be.loadingKeys,rn=Be.checkedKeys,lt=Be.halfCheckedKeys,_t=Be.dragOverNodeKey,fn=Be.dropPosition,ut=Be.keyEntities;return{expandedKeys:yt||[],selectedKeys:rt||[],loadedKeys:Ve||[],loadingKeys:Ct||[],checkedKeys:rn||[],halfCheckedKeys:lt||[],dragOverNodeKey:_t,dropPosition:fn,keyEntities:ut}},se.setExpandedKeys=function(Be){var yt=se.state,rt=yt.treeData,Ve=yt.fieldNames,Ct=(0,Qe.oH)(rt,Be,Ve);se.setUncontrolledState({expandedKeys:Be,flattenNodes:Ct},!0)},se.onNodeExpand=function(Be,yt){var rt=se.state.expandedKeys,Ve=se.state,Ct=Ve.listChanging,rn=Ve.fieldNames,lt=se.props,_t=lt.onExpand,fn=lt.loadData,ut=yt.expanded,De=yt[rn.key];if(!Ct){var dt=rt.indexOf(De),Ft=!ut;if((0,Ke.ZP)(ut&&dt!==-1||!ut&&dt===-1,"Expand state not sync with index check"),Ft?rt=(0,Kt.L0)(rt,De):rt=(0,Kt._5)(rt,De),se.setExpandedKeys(rt),_t==null||_t(rt,{node:yt,expanded:Ft,nativeEvent:Be.nativeEvent}),Ft&&fn){var zt=se.onNodeLoad(yt);zt&&zt.then(function(){var an=(0,Qe.oH)(se.state.treeData,rt,rn);se.setUncontrolledState({flattenNodes:an})}).catch(function(){var an=se.state.expandedKeys,Bn=(0,Kt._5)(an,De);se.setExpandedKeys(Bn)})}}},se.onListChangeStart=function(){se.setUncontrolledState({listChanging:!0})},se.onListChangeEnd=function(){setTimeout(function(){se.setUncontrolledState({listChanging:!1})})},se.onActiveChange=function(Be){var yt=se.state.activeKey,rt=se.props.onActiveChange;yt!==Be&&(se.setState({activeKey:Be}),Be!==null&&se.scrollTo({key:Be}),rt==null||rt(Be))},se.getActiveItem=function(){var Be=se.state,yt=Be.activeKey,rt=Be.flattenNodes;return yt===null?null:rt.find(function(Ve){var Ct=Ve.key;return Ct===yt})||null},se.offsetActiveKey=function(Be){var yt=se.state,rt=yt.flattenNodes,Ve=yt.activeKey,Ct=rt.findIndex(function(_t){var fn=_t.key;return fn===Ve});Ct===-1&&Be<0&&(Ct=rt.length),Ct=(Ct+Be+rt.length)%rt.length;var rn=rt[Ct];if(rn){var lt=rn.key;se.onActiveChange(lt)}else se.onActiveChange(null)},se.onKeyDown=function(Be){var yt=se.state,rt=yt.activeKey,Ve=yt.expandedKeys,Ct=yt.checkedKeys,rn=yt.fieldNames,lt=se.props,_t=lt.onKeyDown,fn=lt.checkable,ut=lt.selectable;switch(Be.which){case qe.Z.UP:{se.offsetActiveKey(-1),Be.preventDefault();break}case qe.Z.DOWN:{se.offsetActiveKey(1),Be.preventDefault();break}}var De=se.getActiveItem();if(De&&De.data){var dt=se.getTreeNodeRequiredProps(),Ft=De.data.isLeaf===!1||!!(De.data[rn.children]||[]).length,zt=(0,Qe.F)((0,ct.Z)((0,ct.Z)({},(0,Qe.H8)(rt,dt)),{},{data:De.data,active:!0}));switch(Be.which){case qe.Z.LEFT:{Ft&&Ve.includes(rt)?se.onNodeExpand({},zt):De.parent&&se.onActiveChange(De.parent.key),Be.preventDefault();break}case qe.Z.RIGHT:{Ft&&!Ve.includes(rt)?se.onNodeExpand({},zt):De.children&&De.children.length&&se.onActiveChange(De.children[0].key),Be.preventDefault();break}case qe.Z.ENTER:case qe.Z.SPACE:{fn&&!zt.disabled&&zt.checkable!==!1&&!zt.disableCheckbox?se.onNodeCheck({},zt,!Ct.includes(rt)):!fn&&ut&&!zt.disabled&&zt.selectable!==!1&&se.onNodeSelect({},zt);break}}}_t==null||_t(Be)},se.setUncontrolledState=function(Be){var yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!se.destroyed){var Ve=!1,Ct=!0,rn={};Object.keys(Be).forEach(function(lt){if(lt in se.props){Ct=!1;return}Ve=!0,rn[lt]=Be[lt]}),Ve&&(!yt||Ct)&&se.setState((0,ct.Z)((0,ct.Z)({},rn),rt))}},se.scrollTo=function(Be){se.listRef.current.scrollTo(Be)},se}return(0,pe.Z)(he,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ke=this.props.activeKey;ke!==void 0&&ke!==this.state.activeKey&&(this.setState({activeKey:ke}),ke!==null&&this.scrollTo({key:ke}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var ke,gt=this.state,Ie=gt.focused,Be=gt.flattenNodes,yt=gt.keyEntities,rt=gt.draggingNodeKey,Ve=gt.activeKey,Ct=gt.dropLevelOffset,rn=gt.dropContainerKey,lt=gt.dropTargetKey,_t=gt.dropPosition,fn=gt.dragOverNodeKey,ut=gt.indent,De=this.props,dt=De.prefixCls,Ft=De.className,zt=De.style,an=De.showLine,Bn=De.focusable,qt=De.tabIndex,pn=qt===void 0?0:qt,zn=De.selectable,Vn=De.showIcon,Pn=De.icon,Qn=De.switcherIcon,gr=De.draggable,rr=De.checkable,er=De.checkStrictly,pr=De.disabled,Pr=De.motion,$n=De.loadData,Wr=De.filterTreeNode,vr=De.height,qr=De.itemHeight,xi=De.virtual,Ar=De.titleRender,dr=De.dropIndicatorRender,Mr=De.onContextMenu,tr=De.onScroll,Gn=De.direction,Xr=De.rootClassName,Rt=De.rootStyle,ze=(0,pt.Z)(this.props,{aria:!0,data:!0}),$e;return gr&&((0,Le.Z)(gr)==="object"?$e=gr:typeof gr=="function"?$e={nodeDraggable:gr}:$e={}),je.createElement(ft.k.Provider,{value:{prefixCls:dt,selectable:zn,showIcon:Vn,icon:Pn,switcherIcon:Qn,draggable:$e,draggingNodeKey:rt,checkable:rr,checkStrictly:er,disabled:pr,keyEntities:yt,dropLevelOffset:Ct,dropContainerKey:rn,dropTargetKey:lt,dropPosition:_t,dragOverNodeKey:fn,indent:ut,direction:Gn,dropIndicatorRender:dr,loadData:$n,filterTreeNode:Wr,titleRender:Ar,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}},je.createElement("div",{role:"tree",className:Fe()(dt,Ft,Xr,(ke={},(0,Ae.Z)(ke,"".concat(dt,"-show-line"),an),(0,Ae.Z)(ke,"".concat(dt,"-focused"),Ie),(0,Ae.Z)(ke,"".concat(dt,"-active-focused"),Ve!==null),ke)),style:Rt},je.createElement(kn,(0,ae.Z)({ref:this.listRef,prefixCls:dt,style:zt,data:Be,disabled:pr,selectable:zn,checkable:!!rr,motion:Pr,dragging:rt!==null,height:vr,itemHeight:qr,virtual:xi,focusable:Bn,focused:Ie,tabIndex:pn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Mr,onScroll:tr},this.getTreeNodeRequiredProps(),ze))))}}],[{key:"getDerivedStateFromProps",value:function(ke,gt){var Ie=gt.prevProps,Be={prevProps:ke};function yt(Bn){return!Ie&&Bn in ke||Ie&&Ie[Bn]!==ke[Bn]}var rt,Ve=gt.fieldNames;if(yt("fieldNames")&&(Ve=(0,Qe.w$)(ke.fieldNames),Be.fieldNames=Ve),yt("treeData")?rt=ke.treeData:yt("children")&&((0,Ke.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),rt=(0,Qe.zn)(ke.children)),rt){Be.treeData=rt;var Ct=(0,Qe.I8)(rt,{fieldNames:Ve});Be.keyEntities=(0,ct.Z)((0,Ae.Z)({},Ge,Ye),Ct.keyEntities)}var rn=Be.keyEntities||gt.keyEntities;if(yt("expandedKeys")||Ie&&yt("autoExpandParent"))Be.expandedKeys=ke.autoExpandParent||!Ie&&ke.defaultExpandParent?(0,Kt.r7)(ke.expandedKeys,rn):ke.expandedKeys;else if(!Ie&&ke.defaultExpandAll){var lt=(0,ct.Z)({},rn);delete lt[Ge],Be.expandedKeys=Object.keys(lt).map(function(Bn){return lt[Bn].key})}else!Ie&&ke.defaultExpandedKeys&&(Be.expandedKeys=ke.autoExpandParent||ke.defaultExpandParent?(0,Kt.r7)(ke.defaultExpandedKeys,rn):ke.defaultExpandedKeys);if(Be.expandedKeys||delete Be.expandedKeys,rt||Be.expandedKeys){var _t=(0,Qe.oH)(rt||gt.treeData,Be.expandedKeys||gt.expandedKeys,Ve);Be.flattenNodes=_t}if(ke.selectable&&(yt("selectedKeys")?Be.selectedKeys=(0,Kt.BT)(ke.selectedKeys,ke):!Ie&&ke.defaultSelectedKeys&&(Be.selectedKeys=(0,Kt.BT)(ke.defaultSelectedKeys,ke))),ke.checkable){var fn;if(yt("checkedKeys")?fn=(0,Kt.E6)(ke.checkedKeys)||{}:!Ie&&ke.defaultCheckedKeys?fn=(0,Kt.E6)(ke.defaultCheckedKeys)||{}:rt&&(fn=(0,Kt.E6)(ke.checkedKeys)||{checkedKeys:gt.checkedKeys,halfCheckedKeys:gt.halfCheckedKeys}),fn){var ut=fn,De=ut.checkedKeys,dt=De===void 0?[]:De,Ft=ut.halfCheckedKeys,zt=Ft===void 0?[]:Ft;if(!ke.checkStrictly){var an=(0,gn.S)(dt,!0,rn);dt=an.checkedKeys,zt=an.halfCheckedKeys}Be.checkedKeys=dt,Be.halfCheckedKeys=zt}}return yt("loadedKeys")&&(Be.loadedKeys=ke.loadedKeys),Be}}]),he}(je.Component);Xt.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:mt,allowDrop:function(){return!0},expandAction:!1},Xt.TreeNode=et.Z;var ye=Xt,ue=ye},35654:function(Mn,tn,oe){"use strict";oe.d(tn,{BT:function(){return je},E6:function(){return Bt},L0:function(){return _e},OM:function(){return Ke},_5:function(){return Me},r7:function(){return ht},wA:function(){return Fe},yx:function(){return vt}});var ae=oe(77654),Ae=oe(43749),Le=oe(48736),ct=oe(59301),xe=oe(39417),Ee=oe(67841),pe=oe(71430),ve=null;function Me(nt,Re){if(!nt)return[];var Ce=nt.slice(),Je=Ce.indexOf(Re);return Je>=0&&Ce.splice(Je,1),Ce}function _e(nt,Re){var Ce=(nt||[]).slice();return Ce.indexOf(Re)===-1&&Ce.push(Re),Ce}function vt(nt){return nt.split("-")}function Fe(nt,Re){var Ce=[],Je=(0,Ee.Z)(Re,nt);function et(){var wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];wt.forEach(function(Qe){var bt=Qe.key,Oe=Qe.children;Ce.push(bt),et(Oe)})}return et(Je.children),Ce}function qe(nt){if(nt.parent){var Re=vt(nt.pos);return Number(Re[Re.length-1])===nt.parent.children.length-1}return!1}function pt(nt){var Re=vt(nt.pos);return Number(Re[Re.length-1])===0}function Ke(nt,Re,Ce,Je,et,wt,Qe,bt,Oe,Lt){var tt,Ut=nt.clientX,At=nt.clientY,Mt=nt.target.getBoundingClientRect(),Wt=Mt.top,It=Mt.height,Ge=(Lt==="rtl"?-1:1)*(((et==null?void 0:et.x)||0)-Ut),be=(Ge-12)/Je,Ye=(0,Ee.Z)(bt,Ce.props.eventKey);if(At<Wt+It/2){var Pt=Qe.findIndex(function(ue){return ue.key===Ye.key}),xt=Pt<=0?0:Pt-1,Ue=Qe[xt].key;Ye=(0,Ee.Z)(bt,Ue)}var at=Ye.key,Ot=Ye,kn=Ye.key,Kt=0,gn=0;if(!Oe.includes(at))for(var nn=0;nn<be&&qe(Ye);nn+=1)Ye=Ye.parent,gn+=1;var Gt=Re.props.data,Xt=Ye.node,ye=!0;return pt(Ye)&&Ye.level===0&&At<Wt+It/2&&wt({dragNode:Gt,dropNode:Xt,dropPosition:-1})&&Ye.key===Ce.props.eventKey?Kt=-1:(Ot.children||[]).length&&Oe.includes(kn)?wt({dragNode:Gt,dropNode:Xt,dropPosition:0})?Kt=0:ye=!1:gn===0?be>-1.5?wt({dragNode:Gt,dropNode:Xt,dropPosition:1})?Kt=1:ye=!1:wt({dragNode:Gt,dropNode:Xt,dropPosition:0})?Kt=0:wt({dragNode:Gt,dropNode:Xt,dropPosition:1})?Kt=1:ye=!1:wt({dragNode:Gt,dropNode:Xt,dropPosition:1})?Kt=1:ye=!1,{dropPosition:Kt,dropLevelOffset:gn,dropTargetKey:Ye.key,dropTargetPos:Ye.pos,dragOverNodeKey:kn,dropContainerKey:Kt===0?null:((tt=Ye.parent)===null||tt===void 0?void 0:tt.key)||null,dropAllowed:ye}}function je(nt,Re){if(nt){var Ce=Re.multiple;return Ce?nt.slice():nt.length?[nt[0]]:nt}}var ft=function(Re){return Re};function mt(nt,Re){if(!nt)return[];var Ce=Re||{},Je=Ce.processProps,et=Je===void 0?ft:Je,wt=Array.isArray(nt)?nt:[nt];return wt.map(function(Qe){var bt=Qe.children,Oe=_objectWithoutProperties(Qe,ve),Lt=mt(bt,Re);return React.createElement(TreeNode,_extends({key:Oe.key},et(Oe)),Lt)})}function Bt(nt){if(!nt)return null;var Re;if(Array.isArray(nt))Re={checkedKeys:nt,halfCheckedKeys:void 0};else if((0,Ae.Z)(nt)==="object")Re={checkedKeys:nt.checked||void 0,halfCheckedKeys:nt.halfChecked||void 0};else return(0,Le.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Re}function ht(nt,Re){var Ce=new Set;function Je(et){if(!Ce.has(et)){var wt=(0,Ee.Z)(Re,et);if(wt){Ce.add(et);var Qe=wt.parent,bt=wt.node;bt.disabled||Qe&&Je(Qe.key)}}}return(nt||[]).forEach(function(et){Je(et)}),(0,ae.Z)(Ce)}},90782:function(Mn,tn,oe){"use strict";oe.d(tn,{S:function(){return pe}});var ae=oe(48736),Ae=oe(67841);function Le(ve,Me){var _e=new Set;return ve.forEach(function(vt){Me.has(vt)||_e.add(vt)}),_e}function ct(ve){var Me=ve||{},_e=Me.disabled,vt=Me.disableCheckbox,Fe=Me.checkable;return!!(_e||vt)||Fe===!1}function xe(ve,Me,_e,vt){for(var Fe=new Set(ve),qe=new Set,pt=0;pt<=_e;pt+=1){var Ke=Me.get(pt)||new Set;Ke.forEach(function(Bt){var ht=Bt.key,nt=Bt.node,Re=Bt.children,Ce=Re===void 0?[]:Re;Fe.has(ht)&&!vt(nt)&&Ce.filter(function(Je){return!vt(Je.node)}).forEach(function(Je){Fe.add(Je.key)})})}for(var je=new Set,ft=_e;ft>=0;ft-=1){var mt=Me.get(ft)||new Set;mt.forEach(function(Bt){var ht=Bt.parent,nt=Bt.node;if(!(vt(nt)||!Bt.parent||je.has(Bt.parent.key))){if(vt(Bt.parent.node)){je.add(ht.key);return}var Re=!0,Ce=!1;(ht.children||[]).filter(function(Je){return!vt(Je.node)}).forEach(function(Je){var et=Je.key,wt=Fe.has(et);Re&&!wt&&(Re=!1),!Ce&&(wt||qe.has(et))&&(Ce=!0)}),Re&&Fe.add(ht.key),Ce&&qe.add(ht.key),je.add(ht.key)}})}return{checkedKeys:Array.from(Fe),halfCheckedKeys:Array.from(Le(qe,Fe))}}function Ee(ve,Me,_e,vt,Fe){for(var qe=new Set(ve),pt=new Set(Me),Ke=0;Ke<=vt;Ke+=1){var je=_e.get(Ke)||new Set;je.forEach(function(ht){var nt=ht.key,Re=ht.node,Ce=ht.children,Je=Ce===void 0?[]:Ce;!qe.has(nt)&&!pt.has(nt)&&!Fe(Re)&&Je.filter(function(et){return!Fe(et.node)}).forEach(function(et){qe.delete(et.key)})})}pt=new Set;for(var ft=new Set,mt=vt;mt>=0;mt-=1){var Bt=_e.get(mt)||new Set;Bt.forEach(function(ht){var nt=ht.parent,Re=ht.node;if(!(Fe(Re)||!ht.parent||ft.has(ht.parent.key))){if(Fe(ht.parent.node)){ft.add(nt.key);return}var Ce=!0,Je=!1;(nt.children||[]).filter(function(et){return!Fe(et.node)}).forEach(function(et){var wt=et.key,Qe=qe.has(wt);Ce&&!Qe&&(Ce=!1),!Je&&(Qe||pt.has(wt))&&(Je=!0)}),Ce||qe.delete(nt.key),Je&&pt.add(nt.key),ft.add(nt.key)}})}return{checkedKeys:Array.from(qe),halfCheckedKeys:Array.from(Le(pt,qe))}}function pe(ve,Me,_e,vt){var Fe=[],qe;vt?qe=vt:qe=ct;var pt=new Set(ve.filter(function(mt){var Bt=!!(0,Ae.Z)(_e,mt);return Bt||Fe.push(mt),Bt})),Ke=new Map,je=0;Object.keys(_e).forEach(function(mt){var Bt=_e[mt],ht=Bt.level,nt=Ke.get(ht);nt||(nt=new Set,Ke.set(ht,nt)),nt.add(Bt),je=Math.max(je,ht)}),(0,ae.ZP)(!Fe.length,"Tree missing follow keys: ".concat(Fe.slice(0,100).map(function(mt){return"'".concat(mt,"'")}).join(", ")));var ft;return Me===!0?ft=xe(pt,Ke,je,qe):ft=Ee(pt,Me.halfCheckedKeys,Ke,je,qe),ft}},67841:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ae}});function ae(Ae,Le){return Ae[Le]}},71430:function(Mn,tn,oe){"use strict";oe.d(tn,{F:function(){return ht},H8:function(){return Bt},I8:function(){return mt},km:function(){return Fe},oH:function(){return je},w$:function(){return qe},zn:function(){return Ke}});var ae=oe(43749),Ae=oe(77654),Le=oe(85899),ct=oe(42244),xe=oe(11592),Ee=oe(2738),pe=oe(48736),ve=oe(67841),Me=["children"];function _e(nt,Re){return"".concat(nt,"-").concat(Re)}function vt(nt){return nt&&nt.type&&nt.type.isTreeNode}function Fe(nt,Re){return nt!=null?nt:Re}function qe(nt){var Re=nt||{},Ce=Re.title,Je=Re._title,et=Re.key,wt=Re.children,Qe=Ce||"title";return{title:Qe,_title:Je||[Qe],key:et||"key",children:wt||"children"}}function pt(nt,Re){var Ce=new Map;function Je(et){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(et||[]).forEach(function(Qe){var bt=Qe[Re.key],Oe=Qe[Re.children];warning(bt!=null,"Tree node must have a certain key: [".concat(wt).concat(bt,"]"));var Lt=String(bt);warning(!Ce.has(Lt)||bt===null||bt===void 0,"Same 'key' exist in the Tree: ".concat(Lt)),Ce.set(Lt,!0),Je(Oe,"".concat(wt).concat(Lt," > "))})}Je(nt)}function Ke(nt){function Re(Ce){var Je=(0,xe.Z)(Ce);return Je.map(function(et){if(!vt(et))return(0,pe.ZP)(!et,"Tree/TreeNode can only accept TreeNode as children."),null;var wt=et.key,Qe=et.props,bt=Qe.children,Oe=(0,ct.Z)(Qe,Me),Lt=(0,Le.Z)({key:wt},Oe),tt=Re(bt);return tt.length&&(Lt.children=tt),Lt}).filter(function(et){return et})}return Re(nt)}function je(nt,Re,Ce){var Je=qe(Ce),et=Je._title,wt=Je.key,Qe=Je.children,bt=new Set(Re===!0?[]:Re),Oe=[];function Lt(tt){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return tt.map(function(At,Mt){for(var Wt=_e(Ut?Ut.pos:"0",Mt),It=Fe(At[wt],Wt),Ge,be=0;be<et.length;be+=1){var Ye=et[be];if(At[Ye]!==void 0){Ge=At[Ye];break}}var Pt=(0,Le.Z)((0,Le.Z)({},(0,Ee.Z)(At,[].concat((0,Ae.Z)(et),[wt,Qe]))),{},{title:Ge,key:It,parent:Ut,pos:Wt,children:null,data:At,isStart:[].concat((0,Ae.Z)(Ut?Ut.isStart:[]),[Mt===0]),isEnd:[].concat((0,Ae.Z)(Ut?Ut.isEnd:[]),[Mt===tt.length-1])});return Oe.push(Pt),Re===!0||bt.has(It)?Pt.children=Lt(At[Qe]||[],Pt):Pt.children=[],Pt})}return Lt(nt),Oe}function ft(nt,Re,Ce){var Je={};(0,ae.Z)(Ce)==="object"?Je=Ce:Je={externalGetKey:Ce},Je=Je||{};var et=Je,wt=et.childrenPropName,Qe=et.externalGetKey,bt=et.fieldNames,Oe=qe(bt),Lt=Oe.key,tt=Oe.children,Ut=wt||tt,At;Qe?typeof Qe=="string"?At=function(It){return It[Qe]}:typeof Qe=="function"&&(At=function(It){return Qe(It)}):At=function(It,Ge){return Fe(It[Lt],Ge)};function Mt(Wt,It,Ge,be){var Ye=Wt?Wt[Ut]:nt,Pt=Wt?_e(Ge.pos,It):"0",xt=Wt?[].concat((0,Ae.Z)(be),[Wt]):[];if(Wt){var Ue=At(Wt,Pt),at={node:Wt,index:It,pos:Pt,key:Ue,parentPos:Ge.node?Ge.pos:null,level:Ge.level+1,nodes:xt};Re(at)}Ye&&Ye.forEach(function(Ot,kn){Mt(Ot,kn,{node:Wt,pos:Pt,level:Ge?Ge.level+1:-1},xt)})}Mt(null)}function mt(nt){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=Re.initWrapper,Je=Re.processEntity,et=Re.onProcessFinished,wt=Re.externalGetKey,Qe=Re.childrenPropName,bt=Re.fieldNames,Oe=arguments.length>2?arguments[2]:void 0,Lt=wt||Oe,tt={},Ut={},At={posEntities:tt,keyEntities:Ut};return Ce&&(At=Ce(At)||At),ft(nt,function(Mt){var Wt=Mt.node,It=Mt.index,Ge=Mt.pos,be=Mt.key,Ye=Mt.parentPos,Pt=Mt.level,xt=Mt.nodes,Ue={node:Wt,nodes:xt,index:It,key:be,pos:Ge,level:Pt},at=Fe(be,Ge);tt[Ge]=Ue,Ut[at]=Ue,Ue.parent=tt[Ye],Ue.parent&&(Ue.parent.children=Ue.parent.children||[],Ue.parent.children.push(Ue)),Je&&Je(Ue,At)},{externalGetKey:Lt,childrenPropName:Qe,fieldNames:bt}),et&&et(At),At}function Bt(nt,Re){var Ce=Re.expandedKeys,Je=Re.selectedKeys,et=Re.loadedKeys,wt=Re.loadingKeys,Qe=Re.checkedKeys,bt=Re.halfCheckedKeys,Oe=Re.dragOverNodeKey,Lt=Re.dropPosition,tt=Re.keyEntities,Ut=(0,ve.Z)(tt,nt),At={eventKey:nt,expanded:Ce.indexOf(nt)!==-1,selected:Je.indexOf(nt)!==-1,loaded:et.indexOf(nt)!==-1,loading:wt.indexOf(nt)!==-1,checked:Qe.indexOf(nt)!==-1,halfChecked:bt.indexOf(nt)!==-1,pos:String(Ut?Ut.pos:""),dragOver:Oe===nt&&Lt===0,dragOverGapTop:Oe===nt&&Lt===-1,dragOverGapBottom:Oe===nt&&Lt===1};return At}function ht(nt){var Re=nt.data,Ce=nt.expanded,Je=nt.selected,et=nt.checked,wt=nt.loaded,Qe=nt.loading,bt=nt.halfChecked,Oe=nt.dragOver,Lt=nt.dragOverGapTop,tt=nt.dragOverGapBottom,Ut=nt.pos,At=nt.active,Mt=nt.eventKey,Wt=(0,Le.Z)((0,Le.Z)({},Re),{},{expanded:Ce,selected:Je,checked:et,loaded:wt,loading:Qe,halfChecked:bt,dragOver:Oe,dragOverGapTop:Lt,dragOverGapBottom:tt,pos:Ut,active:At,key:Mt});return"props"in Wt||Object.defineProperty(Wt,"props",{get:function(){return(0,pe.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),nt}}),Wt}},8224:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return Ae}});var ae=oe(4676);function Ae(Le,ct,xe,Ee){var pe=ae.unstable_batchedUpdates?function(Me){ae.unstable_batchedUpdates(xe,Me)}:xe;return Le!=null&&Le.addEventListener&&Le.addEventListener(ct,pe,Ee),{remove:function(){Le!=null&&Le.removeEventListener&&Le.removeEventListener(ct,pe,Ee)}}}},55468:function(Mn,tn,oe){"use strict";oe.d(tn,{g1:function(){return vt},os:function(){return qe}});var ae=/margin|padding|width|height|max|min|offset/,Ae={left:!0,top:!0},Le={cssFloat:1,styleFloat:1,float:1};function ct(pt){return pt.nodeType===1?pt.ownerDocument.defaultView.getComputedStyle(pt,null):{}}function xe(pt,Ke,je){if(Ke=Ke.toLowerCase(),je==="auto"){if(Ke==="height")return pt.offsetHeight;if(Ke==="width")return pt.offsetWidth}return Ke in Ae||(Ae[Ke]=ae.test(Ke)),Ae[Ke]?parseFloat(je)||0:je}function Ee(pt,Ke){var je=arguments.length,ft=ct(pt);return Ke=Le[Ke]?"cssFloat"in pt.style?"cssFloat":"styleFloat":Ke,je===1?ft:xe(pt,Ke,ft[Ke]||pt.style[Ke])}function pe(pt,Ke,je){var ft=arguments.length;if(Ke=Le[Ke]?"cssFloat"in pt.style?"cssFloat":"styleFloat":Ke,ft===3)return typeof je=="number"&&ae.test(Ke)&&(je="".concat(je,"px")),pt.style[Ke]=je,je;for(var mt in Ke)Ke.hasOwnProperty(mt)&&pe(pt,mt,Ke[mt]);return ct(pt)}function ve(pt){return pt===document.body?document.documentElement.clientWidth:pt.offsetWidth}function Me(pt){return pt===document.body?window.innerHeight||document.documentElement.clientHeight:pt.offsetHeight}function _e(){var pt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ke=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:pt,height:Ke}}function vt(){var pt=document.documentElement.clientWidth,Ke=window.innerHeight||document.documentElement.clientHeight;return{width:pt,height:Ke}}function Fe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function qe(pt){var Ke=pt.getBoundingClientRect(),je=document.documentElement;return{left:Ke.left+(window.pageXOffset||je.scrollLeft)-(je.clientLeft||document.body.clientLeft||0),top:Ke.top+(window.pageYOffset||je.scrollTop)-(je.clientTop||document.body.clientTop||0)}}},24514:function(Mn,tn,oe){"use strict";oe.d(tn,{G:function(){return ct}});var ae=oe(47273),Ae=function(Ee){if((0,ae.Z)()&&window.document.documentElement){var pe=Array.isArray(Ee)?Ee:[Ee],ve=window.document.documentElement;return pe.some(function(Me){return Me in ve.style})}return!1},Le=function(Ee,pe){if(!Ae(Ee))return!1;var ve=document.createElement("div"),Me=ve.style[Ee];return ve.style[Ee]=pe,ve.style[Ee]!==Me};function ct(xe,Ee){return!Array.isArray(xe)&&Ee!==void 0?Le(xe,Ee):Ae(xe)}},48911:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return Xt}});var ae=oe(60499),Ae=oe(43749),Le=oe(85899),ct=oe(18642),xe=oe(72190),Ee=oe(42244),pe=oe(92310),ve=oe.n(pe),Me=oe(29301),_e=oe(70425),vt=oe(34280),Fe=oe(59301),qe=oe(4676),pt=Fe.forwardRef(function(ye,ue){var ce=ye.height,de=ye.offsetY,he=ye.offsetX,se=ye.children,ke=ye.prefixCls,gt=ye.onInnerResize,Ie=ye.innerProps,Be=ye.rtl,yt=ye.extra,rt={},Ve={display:"flex",flexDirection:"column"};return de!==void 0&&(rt={height:ce,position:"relative",overflow:"hidden"},Ve=(0,Le.Z)((0,Le.Z)({},Ve),{},(0,ct.Z)((0,ct.Z)((0,ct.Z)((0,ct.Z)((0,ct.Z)({transform:"translateY(".concat(de,"px)")},Be?"marginRight":"marginLeft",-he),"position","absolute"),"left",0),"right",0),"top",0))),Fe.createElement("div",{style:rt},Fe.createElement(Me.Z,{onResize:function(rn){var lt=rn.offsetHeight;lt&>&>()}},Fe.createElement("div",(0,ae.Z)({style:Ve,className:ve()((0,ct.Z)({},"".concat(ke,"-holder-inner"),ke)),ref:ue},Ie),se,yt)))});pt.displayName="Filler";var Ke=pt;function je(ye){var ue=ye.children,ce=ye.setRef,de=Fe.useCallback(function(he){ce(he)},[]);return Fe.cloneElement(ue,{ref:de})}function ft(ye,ue,ce,de,he,se,ke,gt){var Ie=gt.getKey;return ye.slice(ue,ce+1).map(function(Be,yt){var rt=ue+yt,Ve=ke(Be,rt,{style:{width:de},offsetX:he}),Ct=Ie(Be);return Fe.createElement(je,{key:Ct,setRef:function(lt){return se(Be,lt)}},Ve)})}function mt(ye,ue,ce,de){var he=ce-ye,se=ue-ce,ke=Math.min(he,se)*2;if(de<=ke){var gt=Math.floor(de/2);return de%2?ce+gt+1:ce-gt}return he>se?ce-(de-se):ce+(de-he)}function Bt(ye,ue,ce){var de=ye.length,he=ue.length,se,ke;if(de===0&&he===0)return null;de<he?(se=ye,ke=ue):(se=ue,ke=ye);var gt={__EMPTY_ITEM__:!0};function Ie(rn){return rn!==void 0?ce(rn):gt}for(var Be=null,yt=Math.abs(de-he)!==1,rt=0;rt<ke.length;rt+=1){var Ve=Ie(se[rt]),Ct=Ie(ke[rt]);if(Ve!==Ct){Be=rt,yt=yt||Ve!==Ie(ke[rt+1]);break}}return Be===null?null:{index:Be,multiple:yt}}function ht(ye,ue,ce){var de=Fe.useState(ye),he=(0,xe.Z)(de,2),se=he[0],ke=he[1],gt=Fe.useState(null),Ie=(0,xe.Z)(gt,2),Be=Ie[0],yt=Ie[1];return Fe.useEffect(function(){var rt=Bt(se||[],ye||[],ue);(rt==null?void 0:rt.index)!==void 0&&(ce==null||ce(rt.index),yt(ye[rt.index])),ke(ye)},[ye]),[Be]}var nt=oe(16089),Re=(typeof navigator=="undefined"?"undefined":(0,Ae.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ce=Re,Je=function(ye,ue,ce,de){var he=(0,Fe.useRef)(!1),se=(0,Fe.useRef)(null);function ke(){clearTimeout(se.current),he.current=!0,se.current=setTimeout(function(){he.current=!1},50)}var gt=(0,Fe.useRef)({top:ye,bottom:ue,left:ce,right:de});return gt.current.top=ye,gt.current.bottom=ue,gt.current.left=ce,gt.current.right=de,function(Ie,Be){var yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,rt=Ie?Be<0&>.current.left||Be>0&>.current.right:Be<0&>.current.top||Be>0&>.current.bottom;return yt&&rt?(clearTimeout(se.current),he.current=!1):(!rt||he.current)&&ke(),!he.current&&rt}};function et(ye,ue,ce,de,he,se,ke){var gt=(0,Fe.useRef)(0),Ie=(0,Fe.useRef)(null),Be=(0,Fe.useRef)(null),yt=(0,Fe.useRef)(!1),rt=Je(ue,ce,de,he);function Ve(ut,De){if(nt.Z.cancel(Ie.current),!rt(!1,De)){var dt=ut;if(!dt._virtualHandled)dt._virtualHandled=!0;else return;gt.current+=De,Be.current=De,Ce||dt.preventDefault(),Ie.current=(0,nt.Z)(function(){var Ft=yt.current?10:1;ke(gt.current*Ft,!1),gt.current=0})}}function Ct(ut,De){ke(De,!0),Ce||ut.preventDefault()}var rn=(0,Fe.useRef)(null),lt=(0,Fe.useRef)(null);function _t(ut){if(ye){nt.Z.cancel(lt.current),lt.current=(0,nt.Z)(function(){rn.current=null},2);var De=ut.deltaX,dt=ut.deltaY,Ft=ut.shiftKey,zt=De,an=dt;(rn.current==="sx"||!rn.current&&Ft&&dt&&!De)&&(zt=dt,an=0,rn.current="sx");var Bn=Math.abs(zt),qt=Math.abs(an);rn.current===null&&(rn.current=se&&Bn>qt?"x":"y"),rn.current==="y"?Ve(ut,an):Ct(ut,zt)}}function fn(ut){ye&&(yt.current=ut.detail===Be.current)}return[_t,fn]}function wt(ye,ue,ce,de){var he=Fe.useMemo(function(){return[new Map,[]]},[ye,ce.id,de]),se=(0,xe.Z)(he,2),ke=se[0],gt=se[1],Ie=function(yt){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yt,Ve=ke.get(yt),Ct=ke.get(rt);if(Ve===void 0||Ct===void 0)for(var rn=ye.length,lt=gt.length;lt<rn;lt+=1){var _t,fn=ye[lt],ut=ue(fn);ke.set(ut,lt);var De=(_t=ce.get(ut))!==null&&_t!==void 0?_t:de;if(gt[lt]=(gt[lt-1]||0)+De,ut===yt&&(Ve=lt),ut===rt&&(Ct=lt),Ve!==void 0&&Ct!==void 0)break}return{top:gt[Ve-1]||0,bottom:gt[Ct]}};return Ie}var Qe=oe(38705),bt=oe(17212),Oe=function(){function ye(){(0,Qe.Z)(this,ye),(0,ct.Z)(this,"maps",void 0),(0,ct.Z)(this,"id",0),(0,ct.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,bt.Z)(ye,[{key:"set",value:function(ce,de){this.diffRecords.set(ce,this.maps[ce]),this.maps[ce]=de,this.id+=1}},{key:"get",value:function(ce){return this.maps[ce]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ye}(),Lt=Oe;function tt(ye){var ue=parseFloat(ye);return isNaN(ue)?0:ue}function Ut(ye,ue,ce){var de=Fe.useState(0),he=(0,xe.Z)(de,2),se=he[0],ke=he[1],gt=(0,Fe.useRef)(new Map),Ie=(0,Fe.useRef)(new Lt),Be=(0,Fe.useRef)(0);function yt(){Be.current+=1}function rt(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;yt();var rn=function(){var fn=!1;gt.current.forEach(function(ut,De){if(ut&&ut.offsetParent){var dt=ut.offsetHeight,Ft=getComputedStyle(ut),zt=Ft.marginTop,an=Ft.marginBottom,Bn=tt(zt),qt=tt(an),pn=dt+Bn+qt;Ie.current.get(De)!==pn&&(Ie.current.set(De,pn),fn=!0)}}),fn&&ke(function(ut){return ut+1})};if(Ct)rn();else{Be.current+=1;var lt=Be.current;Promise.resolve().then(function(){lt===Be.current&&rn()})}}function Ve(Ct,rn){var lt=ye(Ct),_t=gt.current.get(lt);rn?(gt.current.set(lt,rn),rt()):gt.current.delete(lt),!_t!=!rn&&(rn?ue==null||ue(Ct):ce==null||ce(Ct))}return(0,Fe.useEffect)(function(){return yt},[]),[Ve,rt,Ie.current,se]}var At=14/15;function Mt(ye,ue,ce){var de=(0,Fe.useRef)(!1),he=(0,Fe.useRef)(0),se=(0,Fe.useRef)(0),ke=(0,Fe.useRef)(null),gt=(0,Fe.useRef)(null),Ie,Be=function(Ct){if(de.current){var rn=Math.ceil(Ct.touches[0].pageX),lt=Math.ceil(Ct.touches[0].pageY),_t=he.current-rn,fn=se.current-lt,ut=Math.abs(_t)>Math.abs(fn);ut?he.current=rn:se.current=lt;var De=ce(ut,ut?_t:fn,!1,Ct);De&&Ct.preventDefault(),clearInterval(gt.current),De&&(gt.current=setInterval(function(){ut?_t*=At:fn*=At;var dt=Math.floor(ut?_t:fn);(!ce(ut,dt,!0)||Math.abs(dt)<=.1)&&clearInterval(gt.current)},16))}},yt=function(){de.current=!1,Ie()},rt=function(Ct){Ie(),Ct.touches.length===1&&!de.current&&(de.current=!0,he.current=Math.ceil(Ct.touches[0].pageX),se.current=Math.ceil(Ct.touches[0].pageY),ke.current=Ct.target,ke.current.addEventListener("touchmove",Be,{passive:!1}),ke.current.addEventListener("touchend",yt,{passive:!0}))};Ie=function(){ke.current&&(ke.current.removeEventListener("touchmove",Be),ke.current.removeEventListener("touchend",yt))},(0,vt.Z)(function(){return ye&&ue.current.addEventListener("touchstart",rt,{passive:!0}),function(){var Ve;(Ve=ue.current)===null||Ve===void 0||Ve.removeEventListener("touchstart",rt),Ie(),clearInterval(gt.current)}},[ye])}function Wt(ye){return Math.floor(Math.pow(ye,.5))}function It(ye,ue){var ce="touches"in ye?ye.touches[0]:ye;return ce[ue?"pageX":"pageY"]-window[ue?"scrollX":"scrollY"]}function Ge(ye,ue,ce){Fe.useEffect(function(){var de=ue.current;if(ye&&de){var he=!1,se,ke,gt=function(){nt.Z.cancel(se)},Ie=function Ve(){gt(),se=(0,nt.Z)(function(){ce(ke),Ve()})},Be=function(){he=!1,gt()},yt=function(Ct){if(!(Ct.target.draggable||Ct.button!==0)){var rn=Ct;rn._virtualHandled||(rn._virtualHandled=!0,he=!0)}},rt=function(Ct){if(he){var rn=It(Ct,!1),lt=de.getBoundingClientRect(),_t=lt.top,fn=lt.bottom;if(rn<=_t){var ut=_t-rn;ke=-Wt(ut),Ie()}else if(rn>=fn){var De=rn-fn;ke=Wt(De),Ie()}else gt()}};return de.addEventListener("mousedown",yt),de.ownerDocument.addEventListener("mouseup",Be),de.ownerDocument.addEventListener("mousemove",rt),de.ownerDocument.addEventListener("dragend",Be),function(){de.removeEventListener("mousedown",yt),de.ownerDocument.removeEventListener("mouseup",Be),de.ownerDocument.removeEventListener("mousemove",rt),de.ownerDocument.removeEventListener("dragend",Be),gt()}}},[ye])}var be=10;function Ye(ye,ue,ce,de,he,se,ke,gt){var Ie=Fe.useRef(),Be=Fe.useState(null),yt=(0,xe.Z)(Be,2),rt=yt[0],Ve=yt[1];return(0,vt.Z)(function(){if(rt&&rt.times<be){if(!ye.current){Ve(function(Pr){return(0,Le.Z)({},Pr)});return}se();var Ct=rt.targetAlign,rn=rt.originAlign,lt=rt.index,_t=rt.offset,fn=ye.current.clientHeight,ut=!1,De=Ct,dt=null;if(fn){for(var Ft=Ct||rn,zt=0,an=0,Bn=0,qt=Math.min(ue.length-1,lt),pn=0;pn<=qt;pn+=1){var zn=he(ue[pn]);an=zt;var Vn=ce.get(zn);Bn=an+(Vn===void 0?de:Vn),zt=Bn}for(var Pn=Ft==="top"?_t:fn-_t,Qn=qt;Qn>=0;Qn-=1){var gr=he(ue[Qn]),rr=ce.get(gr);if(rr===void 0){ut=!0;break}if(Pn-=rr,Pn<=0)break}switch(Ft){case"top":dt=an-_t;break;case"bottom":dt=Bn-fn+_t;break;default:{var er=ye.current.scrollTop,pr=er+fn;an<er?De="top":Bn>pr&&(De="bottom")}}dt!==null&&ke(dt),dt!==rt.lastTop&&(ut=!0)}ut&&Ve((0,Le.Z)((0,Le.Z)({},rt),{},{times:rt.times+1,targetAlign:De,lastTop:dt}))}},[rt,ye.current]),function(Ct){if(Ct==null){gt();return}if(nt.Z.cancel(Ie.current),typeof Ct=="number")ke(Ct);else if(Ct&&(0,Ae.Z)(Ct)==="object"){var rn,lt=Ct.align;"index"in Ct?rn=Ct.index:rn=ue.findIndex(function(ut){return he(ut)===Ct.key});var _t=Ct.offset,fn=_t===void 0?0:_t;Ve({times:0,index:rn,offset:fn,originAlign:lt})}}}var Pt=Fe.forwardRef(function(ye,ue){var ce=ye.prefixCls,de=ye.rtl,he=ye.scrollOffset,se=ye.scrollRange,ke=ye.onStartMove,gt=ye.onStopMove,Ie=ye.onScroll,Be=ye.horizontal,yt=ye.spinSize,rt=ye.containerSize,Ve=ye.style,Ct=ye.thumbStyle,rn=ye.showScrollBar,lt=Fe.useState(!1),_t=(0,xe.Z)(lt,2),fn=_t[0],ut=_t[1],De=Fe.useState(null),dt=(0,xe.Z)(De,2),Ft=dt[0],zt=dt[1],an=Fe.useState(null),Bn=(0,xe.Z)(an,2),qt=Bn[0],pn=Bn[1],zn=!de,Vn=Fe.useRef(),Pn=Fe.useRef(),Qn=Fe.useState(rn),gr=(0,xe.Z)(Qn,2),rr=gr[0],er=gr[1],pr=Fe.useRef(),Pr=function(){rn===!0||rn===!1||(clearTimeout(pr.current),er(!0),pr.current=setTimeout(function(){er(!1)},3e3))},$n=se-rt||0,Wr=rt-yt||0,vr=Fe.useMemo(function(){if(he===0||$n===0)return 0;var Rt=he/$n;return Rt*Wr},[he,$n,Wr]),qr=function(ze){ze.stopPropagation(),ze.preventDefault()},xi=Fe.useRef({top:vr,dragging:fn,pageY:Ft,startTop:qt});xi.current={top:vr,dragging:fn,pageY:Ft,startTop:qt};var Ar=function(ze){ut(!0),zt(It(ze,Be)),pn(xi.current.top),ke(),ze.stopPropagation(),ze.preventDefault()};Fe.useEffect(function(){var Rt=function(Ze){Ze.preventDefault()},ze=Vn.current,$e=Pn.current;return ze.addEventListener("touchstart",Rt,{passive:!1}),$e.addEventListener("touchstart",Ar,{passive:!1}),function(){ze.removeEventListener("touchstart",Rt),$e.removeEventListener("touchstart",Ar)}},[]);var dr=Fe.useRef();dr.current=$n;var Mr=Fe.useRef();Mr.current=Wr,Fe.useEffect(function(){if(fn){var Rt,ze=function(Ze){var Et=xi.current,Tt=Et.dragging,hn=Et.pageY,ln=Et.startTop;nt.Z.cancel(Rt);var wn=Vn.current.getBoundingClientRect(),Tn=rt/(Be?wn.width:wn.height);if(Tt){var Fn=(It(Ze,Be)-hn)*Tn,jn=ln;!zn&&Be?jn-=Fn:jn+=Fn;var Qt=dr.current,Dn=Mr.current,Dt=Dn?jn/Dn:0,Zt=Math.ceil(Dt*Qt);Zt=Math.max(Zt,0),Zt=Math.min(Zt,Qt),Rt=(0,nt.Z)(function(){Ie(Zt,Be)})}},$e=function(){ut(!1),gt()};return window.addEventListener("mousemove",ze,{passive:!0}),window.addEventListener("touchmove",ze,{passive:!0}),window.addEventListener("mouseup",$e,{passive:!0}),window.addEventListener("touchend",$e,{passive:!0}),function(){window.removeEventListener("mousemove",ze),window.removeEventListener("touchmove",ze),window.removeEventListener("mouseup",$e),window.removeEventListener("touchend",$e),nt.Z.cancel(Rt)}}},[fn]),Fe.useEffect(function(){return Pr(),function(){clearTimeout(pr.current)}},[he]),Fe.useImperativeHandle(ue,function(){return{delayHidden:Pr}});var tr="".concat(ce,"-scrollbar"),Gn={position:"absolute",visibility:rr?null:"hidden"},Xr={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Be?(Object.assign(Gn,{height:8,left:0,right:0,bottom:0}),Object.assign(Xr,(0,ct.Z)({height:"100%",width:yt},zn?"left":"right",vr))):(Object.assign(Gn,(0,ct.Z)({width:8,top:0,bottom:0},zn?"right":"left",0)),Object.assign(Xr,{width:"100%",height:yt,top:vr})),Fe.createElement("div",{ref:Vn,className:ve()(tr,(0,ct.Z)((0,ct.Z)((0,ct.Z)({},"".concat(tr,"-horizontal"),Be),"".concat(tr,"-vertical"),!Be),"".concat(tr,"-visible"),rr)),style:(0,Le.Z)((0,Le.Z)({},Gn),Ve),onMouseDown:qr,onMouseMove:Pr},Fe.createElement("div",{ref:Pn,className:ve()("".concat(tr,"-thumb"),(0,ct.Z)({},"".concat(tr,"-thumb-moving"),fn)),style:(0,Le.Z)((0,Le.Z)({},Xr),Ct),onMouseDown:Ar}))}),xt=Pt,Ue=20;function at(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ce=ye/ue*ye;return isNaN(ce)&&(ce=0),ce=Math.max(ce,Ue),Math.floor(ce)}var Ot=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],kn=[],Kt={overflowY:"auto",overflowAnchor:"none"};function gn(ye,ue){var ce=ye.prefixCls,de=ce===void 0?"rc-virtual-list":ce,he=ye.className,se=ye.height,ke=ye.itemHeight,gt=ye.fullHeight,Ie=gt===void 0?!0:gt,Be=ye.style,yt=ye.data,rt=ye.children,Ve=ye.itemKey,Ct=ye.virtual,rn=ye.direction,lt=ye.scrollWidth,_t=ye.component,fn=_t===void 0?"div":_t,ut=ye.onScroll,De=ye.onVirtualScroll,dt=ye.onVisibleChange,Ft=ye.innerProps,zt=ye.extraRender,an=ye.styles,Bn=ye.showScrollBar,qt=Bn===void 0?"optional":Bn,pn=(0,Ee.Z)(ye,Ot),zn=Fe.useCallback(function(xr){return typeof Ve=="function"?Ve(xr):xr==null?void 0:xr[Ve]},[Ve]),Vn=Ut(zn,null,null),Pn=(0,xe.Z)(Vn,4),Qn=Pn[0],gr=Pn[1],rr=Pn[2],er=Pn[3],pr=!!(Ct!==!1&&se&&ke),Pr=Fe.useMemo(function(){return Object.values(rr.maps).reduce(function(xr,Ir){return xr+Ir},0)},[rr.id,rr.maps]),$n=pr&&yt&&(Math.max(ke*yt.length,Pr)>se||!!lt),Wr=rn==="rtl",vr=ve()(de,(0,ct.Z)({},"".concat(de,"-rtl"),Wr),he),qr=yt||kn,xi=(0,Fe.useRef)(),Ar=(0,Fe.useRef)(),dr=(0,Fe.useRef)(),Mr=(0,Fe.useState)(0),tr=(0,xe.Z)(Mr,2),Gn=tr[0],Xr=tr[1],Rt=(0,Fe.useState)(0),ze=(0,xe.Z)(Rt,2),$e=ze[0],Xe=ze[1],Ze=(0,Fe.useState)(!1),Et=(0,xe.Z)(Ze,2),Tt=Et[0],hn=Et[1],ln=function(){hn(!0)},wn=function(){hn(!1)},Tn={getKey:zn};function Fn(xr){Xr(function(Ir){var mi;typeof xr=="function"?mi=xr(Ir):mi=xr;var Mi=Tr(mi);return xi.current.scrollTop=Mi,Mi})}var jn=(0,Fe.useRef)({start:0,end:qr.length}),Qt=(0,Fe.useRef)(),Dn=ht(qr,zn),Dt=(0,xe.Z)(Dn,1),Zt=Dt[0];Qt.current=Zt;var on=Fe.useMemo(function(){if(!pr)return{scrollHeight:void 0,start:0,end:qr.length-1,offset:void 0};if(!$n){var xr;return{scrollHeight:((xr=Ar.current)===null||xr===void 0?void 0:xr.offsetHeight)||0,start:0,end:qr.length-1,offset:void 0}}for(var Ir=0,mi,Mi,da,ca=qr.length,qi=0;qi<ca;qi+=1){var Wi=qr[qi],xa=zn(Wi),wa=rr.get(xa),Br=Ir+(wa===void 0?ke:wa);Br>=Gn&&mi===void 0&&(mi=qi,Mi=Ir),Br>Gn+se&&da===void 0&&(da=qi),Ir=Br}return mi===void 0&&(mi=0,Mi=0,da=Math.ceil(se/ke)),da===void 0&&(da=qr.length-1),da=Math.min(da+1,qr.length-1),{scrollHeight:Ir,start:mi,end:da,offset:Mi}},[$n,pr,Gn,qr,er,se]),cn=on.scrollHeight,In=on.start,en=on.end,Ln=on.offset;jn.current.start=In,jn.current.end=en,Fe.useLayoutEffect(function(){var xr=rr.getRecord();if(xr.size===1){var Ir=Array.from(xr.keys())[0],mi=xr.get(Ir),Mi=qr[In];if(Mi&&mi===void 0){var da=zn(Mi);if(da===Ir){var ca=rr.get(Ir),qi=ca-ke;Fn(function(Wi){return Wi+qi})}}}rr.resetRecord()},[cn]);var it=Fe.useState({width:0,height:se}),Yt=(0,xe.Z)(it,2),$t=Yt[0],vn=Yt[1],dn=function(Ir){vn({width:Ir.offsetWidth,height:Ir.offsetHeight})},xn=(0,Fe.useRef)(),yn=(0,Fe.useRef)(),_n=Fe.useMemo(function(){return at($t.width,lt)},[$t.width,lt]),Un=Fe.useMemo(function(){return at($t.height,cn)},[$t.height,cn]),nr=cn-se,mr=(0,Fe.useRef)(nr);mr.current=nr;function Tr(xr){var Ir=xr;return Number.isNaN(mr.current)||(Ir=Math.min(Ir,mr.current)),Ir=Math.max(Ir,0),Ir}var jr=Gn<=0,br=Gn>=nr,ir=$e<=0,Ur=$e>=lt,Nr=Je(jr,br,ir,Ur),$r=function(){return{x:Wr?-$e:$e,y:Gn}},Cr=(0,Fe.useRef)($r()),Lr=(0,_e.useEvent)(function(xr){if(De){var Ir=(0,Le.Z)((0,Le.Z)({},$r()),xr);(Cr.current.x!==Ir.x||Cr.current.y!==Ir.y)&&(De(Ir),Cr.current=Ir)}});function ri(xr,Ir){var mi=xr;Ir?((0,qe.flushSync)(function(){Xe(mi)}),Lr()):Fn(mi)}function Kr(xr){var Ir=xr.currentTarget.scrollTop;Ir!==Gn&&Fn(Ir),ut==null||ut(xr),Lr()}var Ei=function(Ir){var mi=Ir,Mi=lt?lt-$t.width:0;return mi=Math.max(mi,0),mi=Math.min(mi,Mi),mi},Ri=(0,_e.useEvent)(function(xr,Ir){Ir?((0,qe.flushSync)(function(){Xe(function(mi){var Mi=mi+(Wr?-xr:xr);return Ei(Mi)})}),Lr()):Fn(function(mi){var Mi=mi+xr;return Mi})}),zr=et(pr,jr,br,ir,Ur,!!lt,Ri),qn=(0,xe.Z)(zr,2),Jn=qn[0],Jr=qn[1];Mt(pr,xi,function(xr,Ir,mi,Mi){var da=Mi;return Nr(xr,Ir,mi)?!1:!da||!da._virtualHandled?(da&&(da._virtualHandled=!0),Jn({preventDefault:function(){},deltaX:xr?Ir:0,deltaY:xr?0:Ir}),!0):!1}),Ge($n,xi,function(xr){Fn(function(Ir){return Ir+xr})}),(0,vt.Z)(function(){function xr(mi){var Mi=jr&&mi.detail<0,da=br&&mi.detail>0;pr&&!Mi&&!da&&mi.preventDefault()}var Ir=xi.current;return Ir.addEventListener("wheel",Jn,{passive:!1}),Ir.addEventListener("DOMMouseScroll",Jr,{passive:!0}),Ir.addEventListener("MozMousePixelScroll",xr,{passive:!1}),function(){Ir.removeEventListener("wheel",Jn),Ir.removeEventListener("DOMMouseScroll",Jr),Ir.removeEventListener("MozMousePixelScroll",xr)}},[pr,jr,br]),(0,vt.Z)(function(){if(lt){var xr=Ei($e);Xe(xr),Lr({x:xr})}},[$t.width,lt]);var Rr=function(){var Ir,mi;(Ir=xn.current)===null||Ir===void 0||Ir.delayHidden(),(mi=yn.current)===null||mi===void 0||mi.delayHidden()},li=Ye(xi,qr,rr,ke,zn,function(){return gr(!0)},Fn,Rr);Fe.useImperativeHandle(ue,function(){return{nativeElement:dr.current,getScrollInfo:$r,scrollTo:function(Ir){function mi(Mi){return Mi&&(0,Ae.Z)(Mi)==="object"&&("left"in Mi||"top"in Mi)}mi(Ir)?(Ir.left!==void 0&&Xe(Ei(Ir.left)),li(Ir.top)):li(Ir)}}}),(0,vt.Z)(function(){if(dt){var xr=qr.slice(In,en+1);dt(xr,qr)}},[In,en,qr]);var pi=wt(qr,zn,rr,ke),fi=zt==null?void 0:zt({start:In,end:en,virtual:$n,offsetX:$e,offsetY:Ln,rtl:Wr,getSize:pi}),Qr=ft(qr,In,en,lt,$e,Qn,rt,Tn),oi=null;se&&(oi=(0,Le.Z)((0,ct.Z)({},Ie?"height":"maxHeight",se),Kt),pr&&(oi.overflowY="hidden",lt&&(oi.overflowX="hidden"),Tt&&(oi.pointerEvents="none")));var ta={};return Wr&&(ta.dir="rtl"),Fe.createElement("div",(0,ae.Z)({ref:dr,style:(0,Le.Z)((0,Le.Z)({},Be),{},{position:"relative"}),className:vr},ta,pn),Fe.createElement(Me.Z,{onResize:dn},Fe.createElement(fn,{className:"".concat(de,"-holder"),style:oi,ref:xi,onScroll:Kr,onMouseEnter:Rr},Fe.createElement(Ke,{prefixCls:de,height:cn,offsetX:$e,offsetY:Ln,scrollWidth:lt,onInnerResize:gr,ref:Ar,innerProps:Ft,rtl:Wr,extra:fi},Qr))),$n&&cn>se&&Fe.createElement(xt,{ref:xn,prefixCls:de,scrollOffset:Gn,scrollRange:cn,rtl:Wr,onScroll:ri,onStartMove:ln,onStopMove:wn,spinSize:Un,containerSize:$t.height,style:an==null?void 0:an.verticalScrollBar,thumbStyle:an==null?void 0:an.verticalScrollBarThumb,showScrollBar:qt}),$n&<>$t.width&&Fe.createElement(xt,{ref:yn,prefixCls:de,scrollOffset:$e,scrollRange:lt,rtl:Wr,onScroll:ri,onStartMove:ln,onStopMove:wn,spinSize:_n,containerSize:$t.width,horizontal:!0,style:an==null?void 0:an.horizontalScrollBar,thumbStyle:an==null?void 0:an.horizontalScrollBarThumb,showScrollBar:qt}))}var nn=Fe.forwardRef(gn);nn.displayName="List";var Gt=nn,Xt=Gt},25365:function(Mn){"use strict";Mn.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/ut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aSGh56uZGIGn3ZTLJ+99dlOpz/lcFOSQxrizjSBCQboZJdYMkWxgekNxFTckgs9cTNM7IZpxqypkTriKZzoPt3xpREzYp6t7x2f8ARtZc8eay0EoAAAAASUVORK5CYII="},39057:function(Mn){"use strict";Mn.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+Rr5KSZc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SFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},47621:function(Mn){"use strict";Mn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAByCAYAAAAPvZi2AAAAAXNSR0IArs4c6QAAIABJREFUeF7tvXlzJzmSJQaSeWcd3TOzvT270mpN0ppM3/+raDWS6TJp/9jpObq6rqw8SZkDcI+HB3ccwR+zsruZZlUkI3A4HH48OByIq/T475EDjxx45MAjBx458MiBRw5ciANXF2rnsZlHDjxy4JEDjxx45MAjBx45kK7+l/96ezfigyCPq6vyX0p3SX4MK0yZev8Wpl18YQVu73z8djFU5zRUpyvlCYv+yUTS+2N2yksu4s09NuE0me7ch6Xv3B81WmSt/JNX/F6ba9rVNpgYaWTAA26bWaVVc5+VOTKdV3exHiD92J7ydqoBNsBa22MwlhmNrw5+2icNPOs9zIFYCW8uXNHCipX/1057Xl2WryHPPLma6H4jJo4wu6qK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DwtiyyExzvWOA+AneF5t9UF43Rvya0MzrR74jwhAqtE1YdjrUyTrQ5JypT/LI+izkPjTQJ67DEWrh1j/oWACsm/+FryLzaOpzYAg2TFI8kFGoP8Cq+8yTvVE1Chl4PeF1gIizRKgb+rPC5FLHYM72PZRw48cuCRA48ceOTAIwceOTDB2o8MeuTAIwceOfDIgUcOPHLgkQOX4cD/Dy5hqdeaBa56AAAAAElFTkSuQmCC"},48136:function(Mn,tn,oe){"use strict";var ae=Object.defineProperty,Ae=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,ct=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,pe=(a,y,b)=>y in a?ae(a,y,{enumerable:!0,configurable:!0,writable:!0,value:b}):a[y]=b,ve=(a,y)=>{for(var b in y||(y={}))xe.call(y,b)&&pe(a,b,y[b]);if(ct)for(var b of ct(y))Ee.call(y,b)&&pe(a,b,y[b]);return a},Me=(a,y)=>Ae(a,Le(y)),_e=a=>typeof a=="symbol"?a:a+"",vt=(a,y)=>{var b={};for(var E in a)xe.call(a,E)&&y.indexOf(E)<0&&(b[E]=a[E]);if(a!=null&&ct)for(var E of ct(a))y.indexOf(E)<0&&Ee.call(a,E)&&(b[E]=a[E]);return b};function Fe(a){return Array.isArray(a)}var qe={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 pt(){return"window"in globalThis&&"document"in globalThis}function Ke(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function je(){return typeof navigator.vibrate=="function"}function ft(){var a,y;if(!pt())return"other";const b=(y=(a=navigator.userAgentData)==null?void 0:a.platform)!=null?y:navigator.platform;return/^mac/i.test(b)?navigator.maxTouchPoints===5?"ios":"macos":/^win/i.test(b)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function mt(){if(!pt())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 Bt(){return HTMLElement.prototype.hasOwnProperty("popover")}var ht={strings:qe,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return ht._locale||(ht._locale=pt()?navigator.language.slice(0,5):"en-US"),ht._locale},set locale(a){ht._locale=a,ht._numberFormatter=void 0,ht.dirty=!0},get numberFormatter(){return ht._numberFormatter||(ht._numberFormatter=new Intl.NumberFormat(ht.locale)),ht._numberFormatter},merge(a,y){if(typeof a=="string"&&y)ht.strings[a]=ve(ve({},ht.strings[a]),y),ht.dirty=!0;else for(const b of Object.keys(a))ht.merge(b,a[b])},get dirty(){return ht._dirty},set dirty(a){ht._dirty||ht._dirty===a||(ht._dirty=!0,setTimeout(()=>{ht._dirty=!1,this._subscribers.forEach(y=>y==null?void 0:y())},0))},subscribe(a){return ht._subscribers.push(a),ht._subscribers.length-1},unsubscribe(a){a<0||a>=ht._subscribers.length||(ht._subscribers[a]=void 0)},update(a){let y=a.querySelectorAll("[data-l10n-tooltip]");for(const b of y){const E=b.getAttribute("data-l10n-tooltip");if(E){const ee=nt(E);ee&&b.setAttribute("data-tooltip",ee)}}y=a.querySelectorAll("[data-l10n-arial-label]");for(const b of y){const E=b.getAttribute("data-l10n-arial-label");if(E){const ee=nt(E);ee&&b.setAttribute("aria-label",ee)}}}};function nt(a,...y){if(a===void 0)return;let b="";const E=ht.locale;ht.strings[E]&&(b=ht.strings[E][a]);const ee=E.slice(0,2);if(!b&&ht.strings[ee]&&(b=ht.strings[ee][a]),b||(b=ht.strings.en[a]),!b)return;const re=/(%@|%([0-9]+)\$@)/g;let le=re.exec(b),me=0;for(;le;){if(y[me++]){const Se=le[2]?parseInt(le[2],10)-1:me-1;let Pe=y[Se];typeof Pe=="number"&&(Pe=ht.numberFormatter.format(Pe)),b=b.replace(le[1],Pe)}le=re.exec(b)}return b=b.replace(/%%/g,"%"),b}var Re={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},Ce={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},Je={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"},et={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"},wt={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"},Qe={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 bt(a){var y,b,E,ee,re,le;const me=a.split("!");let ge,Se,Pe,st=255,kt=255,Vt=255,sn=-1;const Yn=me.length>0&&me[0].startsWith("-");Yn&&(me[0]=me[0].slice(1));for(let Yr=0;Yr<me.length;Yr++){ge=st,Se=kt,Pe=Vt;const Zn=(y=me[Yr].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:y[1],hr=Zn==null?void 0:Zn.toLowerCase(),ni=Zn&&(le=(re=(ee=(E=(b=et[hr])!=null?b:et[wt[Zn]])!=null?E:Ce[Zn])!=null?ee:Qe[Zn])!=null?re:Re[Zn])!=null?le:me[Yr].trim();let Sr=ni.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(Sr!=null&&Sr[1]&&Sr[2]&&Sr[3])st=Math.max(0,Math.min(255,Number.parseInt(Sr[1],16))),kt=Math.max(0,Math.min(255,Number.parseInt(Sr[2],16))),Vt=Math.max(0,Math.min(255,Number.parseInt(Sr[3],16)));else if(Sr=ni.match(/^#([\da-f]{3})$/i),Sr!=null&&Sr[1]){const Ti=Number.parseInt(Sr[1][0],16),Ui=Number.parseInt(Sr[1][1],16),Hi=Number.parseInt(Sr[1][2],16);st=Math.max(0,Math.min(255,Ti*16+Ti)),kt=Math.max(0,Math.min(255,Ui*16+Ui)),Vt=Math.max(0,Math.min(255,Hi*16+Hi))}else if(Sr=ni.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),Sr!=null&&Sr[1]&&Sr[2]&&Sr[3])st=Math.max(0,Math.min(255,Number.parseInt(Sr[1]))),kt=Math.max(0,Math.min(255,Number.parseInt(Sr[2]))),Vt=Math.max(0,Math.min(255,Number.parseInt(Sr[3])));else return;sn>=0&&(st=(1-sn)*st+sn*ge,kt=(1-sn)*kt+sn*Se,Vt=(1-sn)*Vt+sn*Pe,sn=-1),Yr+1<me.length&&(sn=Math.max(0,Math.min(100,Number.parseInt(me[++Yr])))/100)}return sn>=0&&(st=sn*st+(1-sn)*ge,kt=sn*kt+(1-sn)*Se,Vt=sn*Vt+(1-sn)*Pe),Yn&&(st=255-st,kt=255-kt,Vt=255-Vt),"#"+("00"+Math.round(st).toString(16)).slice(-2)+("00"+Math.round(kt).toString(16)).slice(-2)+("00"+Math.round(Vt).toString(16)).slice(-2)}function Oe(a){var y,b;return a=a.trim(),(b=(y=Je[a.toLowerCase()])!=null?y:Je[wt[a]])!=null?b:bt(a)}function Lt(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 tt(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 Ut(a){let[y,b,E]=[a.h,a.s,a.l];y=(y+360)%360/60,E=Math.max(0,Math.min(E,1)),b=Math.max(0,Math.min(b,1));const ee=E<=.5?E*(b+1):E+b-E*b,re=E*2-ee;return{r:Math.round(255*tt(re,ee,y+2)),g:Math.round(255*tt(re,ee,y)),b:Math.round(255*tt(re,ee,y-2))}}function At(a){return a<0?0:a>255?255:Math.round(a)}function Mt(a){const{r:y,g:b,b:E}=a;let ee=((1<<24)+(At(y)<<16)+(At(b)<<8)+At(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 Wt(a){let{r:y,g:b,b:E}=a;y=y/255,b=b/255,E=E/255;const ee=Math.min(y,b,E),re=Math.max(y,b,E),le=re-ee;let me,ge;re===ee?me=0:y===re?me=(b-E)/le:b===re?me=2+(E-y)/le:E===re&&(me=4+(y-b)/le),me=Math.min(me*60,360),me<0&&(me+=360);const Se=(ee+re)/2;return re===ee?ge=0:Se<=.5?ge=le/(re+ee):ge=le/(2-re-ee),{h:me,s:ge,l:Se}}function It(a){let y=Lt(a);if(!y)return a;let{h:b,s:E,l:ee}=Wt(y);return E+=.1,ee-=.1,Mt(Ut({h:b,s:E,l:ee}))}var Ge={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},be={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},Ye=[{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 Pt(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 Ye)if((!y||ee.variant===y)&&(!b||ee.style===b)&&E>=ee.offset&&E<ee.offset+ee.len){const re=ee.start+E-ee.offset;return String.fromCodePoint(be[re]||re)}return a}function xt(a){var y;if((a<119808||a>120831)&&(a<8448||a>8527))return{char:String.fromCodePoint(a)};for(const b in be)if(be[b]===a){a=(y=b.codePointAt(0))!=null?y:0;break}for(const b of Ye)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 Ue(a){var y;let b="";for(const E of a){if("{}<>[]$&#^_%:'\u02DC".includes(E)){b+=E;continue}const ee=(y=E.codePointAt(0))!=null?y:0;let re=Ge[ee];if(re)re.startsWith("\\")?b+=re+" ":b+=re;else{const{char:le,variant:me,style:ge}=xt(ee);switch(re=le,me){case"double-struck":re=`\\mathbb{${re}}`;break;case"fraktur":re=`\\mathfrak{${re}}`;break;case"script":re=`\\mathscr{${re}}`;break;case"sans-serif":re=`\\mathsf{${re}}`;break;case"monospace":re=`\\mathtt{${re}}`;break;case"calligraphic":re=`\\mathcal{${re}}`;break}switch(ge){case"bold":re=`\\mathbf{${re}}`;break;case"italic":re=`\\mathit{${re}}`;break;case"bolditalic":re=`\\mathbfit{${re}}`;break}b+=re}}return b}function at(a){return a?Array.isArray(a)?a:typeof a=="object"&&"group"in a?a.group:[]:[]}var Ot={},kn=ve({},Ge),Kt={},gn={},nn={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}"},Gt={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}},Xt={bra:{def:"\\mathinner{\\langle{#1}|}",args:1,captureSelection:!1},ket:{def:"\\mathinner{|{#1}\\rangle}",args:1,captureSelection:!1},braket:{def:"\\mathinner{\\langle{#1}\\rangle}",args:1,captureSelection:!1},set:{def:"\\mathinner{\\lbrace #1 \\rbrace}",args:1,captureSelection:!1},Bra:{def:"\\left\\langle #1\\right|",args:1,captureSelection:!1},Ket:{def:"\\left|#1\\right\\rangle",args:1,captureSelection:!1},Braket:{def:"\\left\\langle{#1}\\right\\rangle",args:1,captureSelection:!1},Set:{def:"\\left\\lbrace #1 \\right\\rbrace",args:1,captureSelection:!1}},ye={iff:{primitive:!0,captureSelection:!0,def:"\\;\u27FA\\;"},nicefrac:"^{#1}\\!\\!/\\!_{#2}",phase:{def:"\\enclose{phasorangle}{#1}",args:1,captureSelection:!1},rd:"\\mathrm{d}",rD:"\\mathrm{D}",doubleStruckCapitalN:"\\mathbb{N}",doubleStruckCapitalR:"\\mathbb{R}",doubleStruckCapitalQ:"\\mathbb{Q}",doubleStruckCapitalZ:"\\mathbb{Z}",doubleStruckCapitalP:"\\mathbb{P}",scriptCapitalE:"\\mathscr{E}",scriptCapitalH:"\\mathscr{H}",scriptCapitalL:"\\mathscr{L}",gothicCapitalC:"\\mathfrak{C}",gothicCapitalH:"\\mathfrak{H}",gothicCapitalI:"\\mathfrak{I}",gothicCapitalR:"\\mathfrak{R}",imaginaryI:"\\mathrm{i}",imaginaryJ:"\\mathrm{j}",exponentialE:"\\mathrm{e}",differentialD:"\\mathrm{d}",capitalDifferentialD:"\\mathrm{D}",mathstrut:{def:"\\vphantom{(}",primitive:!0},angl:"\\enclose{actuarial}{#1}",angln:"\\enclose{actuarial}{n}",anglr:"\\enclose{actuarial}{r}",anglk:"\\enclose{actuarial}{k}",mathtools:{primitive:!0,package:{ordinarycolon:":",vcentcolon:"\\mathrel{\\mathop\\ordinarycolon}",dblcolon:'{\\mathop{\\char"2237}}',coloneqq:'{\\mathop{\\char"2254}}',Coloneqq:'{\\mathop{\\char"2237\\char"3D}}',coloneq:'{\\mathop{\\char"3A\\char"2212}}',Coloneq:'{\\mathop{\\char"2237\\char"2212}}',eqqcolon:'{\\mathop{\\char"2255}}',Eqqcolon:'{\\mathop{\\char"3D\\char"2237}}',eqcolon:'{\\mathop{\\char"2239}}',Eqcolon:'{\\mathop{\\char"2212\\char"2237}}',colonapprox:'{\\mathop{\\char"003A\\char"2248}}',Colonapprox:'{\\mathop{\\char"2237\\char"2248}}',colonsim:'{\\mathop{\\char"3A\\char"223C}}',Colonsim:'{\\mathop{\\char"2237\\char"223C}}',colondash:"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",Colondash:"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"}},ratio:"\\vcentcolon",coloncolon:"\\dblcolon",colonequals:"\\coloneq",coloncolonequals:"\\Coloneq",equalscolon:"\\eqcolon",equalscoloncolon:"\\Eqcolon",colonminus:"\\colondash",coloncolonminus:"\\Colondash",minuscolon:"\\dashcolon",minuscoloncolon:"\\Dashcolon",coloncolonapprox:"\\Colonapprox",coloncolonsim:"\\Colonsim",simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",simcoloncolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcoloncolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",notni:"\\mathrel{\\char`\u220C}",limsup:"\\operatorname*{lim\\,sup}",liminf:"\\operatorname*{lim\\,inf}",injlim:"\\operatorname*{inj\\,lim}",projlim:"\\operatorname*{proj\\,lim}",varlimsup:"\\operatorname*{\\overline{lim}}",varliminf:"\\operatorname*{\\underline{lim}}",varinjlim:"\\operatorname*{\\underrightarrow{lim}}",varprojlim:"\\operatorname*{\\underleftarrow{lim}}",argmin:"\\operatorname*{arg\\,min}",argmax:"\\operatorname*{arg\\,max}",plim:"\\mathop{\\operatorname{plim}}\\limits",tripledash:{def:"\\vphantom{-}\\raise{4mu}{\\mkern1.5mu\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2mu}}",expand:!0},"braket.sty":{package:Xt},"amsmath.sty":{package:Gt,primitive:!0},"texvc.sty":{package:nn,primitive:!1}},ue={" ":32,"\\!":33,"\\#":35,"\\$":36,"\\%":37,"\\&":38,"-":45,"\\textunderscore":95,"\\euro":8364,"\\maltese":10016,"\\{":123,"\\}":125,"\\textbraceleft":123,"\\textbraceright":125,"\\lbrace":123,"\\rbrace":125,"\\lbrack":91,"\\rbrack":93,"\\nobreakspace":160,"\\ldots":8230,"\\textellipsis":8230,"\\backslash":92,"`":8216,"'":8217,"``":8220,"''":8221,"\\degree":176,"\\textasciicircum":94,"\\textasciitilde":126,"\\textasteriskcentered":42,"\\textbackslash":92,"\\textbullet":8226,"\\textdollar":36,"\\textsterling":163,"\\textdagger":8224,"\\textdaggerdbl":8225,"\u2013":8211,"\u2014":8212,"\u2018":8216,"\u2019":8217,"\u201C":8220,"\u201D":8221,'"':8221,"\\ss":223,"\\ae":230,"\\oe":339,"\\AE":198,"\\OE":338,"\\O":216,"\\i":305,"\\j":567,"\\aa":229,"\\AA":197},ce=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,de,he;mt()?(de=new RegExp("\\p{Letter}","u"),he=new RegExp("[0-9\\p{Letter}]","u")):(de=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,he=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function se(a,y,b="mord",E){y!==void 0&&(Ot[a]={definitionType:"symbol",type:b,variant:E,codepoint:y},kn[y]||(kn[y]=a))}function ke(a,y,b){if(typeof a=="string"){for(let E=0;E<a.length;E++){const ee=a.charAt(E);se(ee,ee.codePointAt(0))}return}for(const[E,ee,re,le]of a)se(E,ee,re!=null?re:y,le!=null?le:b)}function gt(a,y){for(let b=a;b<=y;b++)se(String.fromCodePoint(b),b)}function Ie(a){var y;return(y=gn[a])!=null?y:null}function Be(a,y){var b,E;if(y.length===0||y==="\\"||!y.startsWith("\\"))return[];const ee=[];for(const le in Kt)le.startsWith(y)&&!Kt[le].infix&&ee.push({match:le,frequency:(b=Kt[le].frequency)!=null?b:0});for(const le in Ot)le.startsWith(y)&&ee.push({match:le,frequency:(E=Ot[le].frequency)!=null?E:0});const re=y.substring(1);for(const le of Object.keys(a.options.macros))le.startsWith(re)&&ee.push({match:"\\"+le,frequency:0});return ee.sort((le,me)=>{var ge,Se;return le.frequency===me.frequency?le.match.length===me.match.length?le.match<me.match?-1:1:le.match.length-me.match.length:((ge=me.frequency)!=null?ge:0)-((Se=le.frequency)!=null?Se:0)}),ee.map(le=>le.match)}function yt(a){let y="auto";const b=a.match(/:([^=]+)/);return b&&(y=b[1].trim()),y}function rt(a){if(!a)return[];const y=[];let b=a.split("]");if(b[0].startsWith("[")){y.push({isOptional:!0,type:yt(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...rt(b[E]))}else if(b=a.split("}"),b[0].startsWith("{")){y.push({isOptional:!1,type:yt(b[0].slice(1))});for(let E=1;E<=b.length;E++)y.push(...rt(b[E]))}return y}function Ve(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 Ct(a,y){typeof a=="string"&&(a=[a]);const b={tabular:!1,params:[],createAtom:y};for(const E of a)gn[E]=b}function rn(a,y,b){typeof a=="string"&&(a=[a]);const ee={tabular:!0,params:rt(y),createAtom:b};for(const re of a)gn[re]=ee}function lt(a,y,b){var E,ee;b||(b={});const re={definitionType:"function",params:rt(y),ifMode:b.ifMode,isFunction:(E=b.isFunction)!=null?E:!1,applyMode:b.applyMode,infix:(ee=b.infix)!=null?ee:!1,parse:b.parse,createAtom:b.createAtom,applyStyle:b.applyStyle,serialize:b.serialize,render:b.render};if(typeof a=="string")Kt["\\"+a]=re;else for(const le of a)Kt["\\"+le]=re}var _t;function fn(a){return _t||(_t=De(ye)),a?De(ve(ve({},_t),a)):_t}function ut(a,y){var b,E,ee,re;if(typeof a=="string"){let le=0;const me=a;return/(^|[^\\])#1/.test(me)&&(le=1),/(^|[^\\])#2/.test(me)&&(le=2),/(^|[^\\])#3/.test(me)&&(le=3),/(^|[^\\])#4/.test(me)&&(le=4),/(^|[^\\])#5/.test(me)&&(le=5),/(^|[^\\])#6/.test(me)&&(le=6),/(^|[^\\])#7/.test(me)&&(le=7),/(^|[^\\])#8/.test(me)&&(le=8),/(^|[^\\])#9/.test(me)&&(le=9),{expand:(b=y==null?void 0:y.expand)!=null?b:!0,captureSelection:(E=y==null?void 0:y.captureSelection)!=null?E:!0,args:le,def:me}}return ve({expand:(ee=y==null?void 0:y.expand)!=null?ee:!0,captureSelection:(re=y==null?void 0:y.captureSelection)!=null?re:!0,args:0},a)}function De(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]=ut(E.package[ee],{expand:!E.primitive,captureSelection:E.captureSelection});else y[b]=ut(E)}return y}function dt(a,y="math"){if(!a||a.length===0)return null;let b=null;if(a.startsWith("\\")){if(b=Kt[a],b)return!b.ifMode||b.ifMode===y?b:null;y==="math"?b=Ot[a]:ue[a]&&(b={definitionType:"symbol",type:"mord",codepoint:ue[a]})}else if(y==="math"){if(b=Ot[a],!b&&a.length===1){const E=zt("math",a.codePointAt(0));return E.startsWith("\\")?Me(ve({},dt(E,"math")),{command:E}):null}}else ue[a]?b={definitionType:"symbol",type:"mord",codepoint:ue[a]}:y==="text"&&(b={definitionType:"symbol",type:"mord",codepoint:a.codePointAt(0)});return b!=null?b:null}function Ft(a,y){if(!a.startsWith("\\"))return null;const b=a.slice(1);return y[b]}function zt(a,y){if(y===void 0)return"";if(a==="math"&&kn[y])return kn[y];if(a==="text"){const b=Object.keys(ue).find(E=>ue[E]===y);return b||String.fromCodePoint(y)}return String.fromCodePoint(y)}var an=[0,.68889,0,0,.72222],Bn=[0,.68889,0,0,.66667],qt=[0,.68889,0,0,.77778],pn=[0,.68889,0,0,.61111],zn=[.16667,.68889,0,0,.77778],Vn=[0,.68889,0,0,.55556],Pn=[0,0,0,0,.25],Qn=[0,.825,0,0,2.33334],gr=[0,.9,0,0,2.33334],rr=[0,.68889,0,0,.54028],er=[-.03598,.46402,0,0,.5],pr=[-.13313,.36687,0,0,1],Pr=[.01354,.52239,0,0,1],$n=[.01354,.52239,0,0,1.11111],Wr=[0,.54986,0,0,1],vr=[0,.69224,0,0,.5],qr=[0,.43056,0,0,1],xi=[.08198,.58198,0,0,.77778],Ar=[.19444,.69224,0,0,.41667],dr=[.1808,.675,0,0,1],Mr=[.19444,.69224,0,0,.83334],tr=[.13667,.63667,0,0,1],Gn=[-.064,.437,0,0,1.334],Xr=[.08167,.58167,0,0,.77778],Rt=[0,.69224,0,0,.72222],ze=[0,.69224,0,0,.66667],$e=[-.13313,.36687,0,0,.77778],Xe=[.06062,.54986,0,0,.77778],Ze=[0,.69224,0,0,.77778],Et=[.25583,.75583,0,0,.77778],Tt=[.25142,.75726,0,0,.77778],hn=[.20576,.70576,0,0,.77778],ln=[.30274,.79383,0,0,.77778],wn=[.22958,.72958,0,0,.77778],Tn=[.1808,.675,0,0,.77778],Fn=[.13667,.63667,0,0,.77778],jn=[.13597,.63597,0,0,.77778],Qt=[.03517,.54986,0,0,.77778],Dn=[0,.675,0,0,.77778],Dt=[.19444,.69224,0,0,.61111],Zt=[0,.54986,0,0,.76042],on=[0,.54986,0,0,.66667],cn=[.0391,.5391,0,0,.77778],In=[.03517,.54986,0,0,1.33334],en=[.38569,.88569,0,0,.77778],Ln=[.23222,.74111,0,0,.77778],it=[.19444,.69224,0,0,.77778],Yt=[0,.37788,0,0,.5],$t=[0,.54986,0,0,.72222],vn=[0,.69224,0,0,.83334],dn=[.11111,.69224,0,0,.66667],xn=[.26167,.75726,0,0,.77778],yn=[.48256,.98256,0,0,.77778],_n=[.28481,.79383,0,0,.77778],Un=[.08167,.58167,0,0,.22222],nr=[.08167,.58167,0,0,.38889],mr=[0,.43056,.04028,0,.66667],Tr=[.41951,.91951,0,0,.77778],jr=[.24982,.74947,0,0,.38865],br=[.08319,.58283,0,0,.75623],ir=[0,.10803,0,0,.27764],Ur=[0,.47534,0,0,.50181],Nr=[.18906,.47534,0,0,.50181],$r=[0,.69141,0,0,.50181],Cr=[.24982,.74947,0,0,.27764],Lr=[0,.69141,0,0,.21471],ri=[.25,.75,0,0,.44722],Kr=[0,.64444,0,0,.575],Ei=[.08556,.58556,0,0,.89444],Ri=[0,.69444,0,0,.89444],zr=[0,.68611,0,0,.9],qn=[0,.68611,0,0,.86944],Jn=[.25,.75,0,0,.575],Jr=[.25,.75,0,0,.31944],Rr=[0,.69444,0,0,.63889],li=[0,.69444,0,0,.31944],pi=[0,.44444,0,0,.63889],fi=[0,.44444,0,0,.51111],Qr=[0,.69444,0,0,.575],oi=[.13333,.63333,0,0,.89444],ta=[0,.44444,0,0,.31944],xr=[0,.69444,0,0,.86944],Ir=[0,.68611,0,0,.69166],mi=[0,.68611,0,0,.83055],Mi=[0,.68611,0,0,.89444],da=[0,.69444,0,0,.60278],ca=[.19444,.69444,0,0,.51111],qi=[0,.69444,0,0,.83055],Wi=[-.10889,.39111,0,0,1.14999],xa=[.19444,.69444,0,0,.575],wa=[.19444,.69444,0,0,1.14999],Br=[.19444,.69444,0,0,.70277],kr=[.05556,.75,0,0,.575],Er=[0,.68611,0,0,.95833],Gr=[.08556,.58556,0,0,.76666],Xi=[-.02639,.47361,0,0,.575],fa=[0,.44444,0,0,.89444],va=[0,.55556,0,0,.76666],pa=[-.10889,.39111,0,0,.89444],ua=[.00222,.50222,0,0,.89444],Aa=[.19667,.69667,0,0,.89444],Ya=[.08556,.58556,0,0,1.14999],Ua=[0,.69444,0,0,.70277],go=[-.02778,.47222,0,0,.575],Fi=[.25,.75,0,0,.51111],Vi=[-.13889,.36111,0,0,1.14999],La=[.19444,.69444,0,0,1.02222],aa=[.12963,.69444,0,0,.89444],ha=[.19444,.69444,0,0,.44722],An=[0,.64444,.13167,0,.59111],Cn=[.19444,.64444,.13167,0,.59111],mn=[0,.68611,.17208,0,.8961],Wn=[.19444,.44444,.105,0,.53222],ar=[0,.44444,.085,0,.82666],or=[0,.69444,.06709,0,.59111],Hn=[0,.69444,.12945,0,.35555],wr=[0,.69444,0,0,.94888],ci=[0,.69444,.11472,0,.59111],Li=[0,.68611,.10778,0,.88555],ui=[0,.69444,.07939,0,.62055],yr=[0,.69444,.12417,0,.30667],di=[0,.64444,.13556,0,.51111],ki=[.19444,.64444,.13556,0,.51111],na=[0,.68333,.16389,0,.74333],vi=[.19444,.43056,.08847,0,.46],wi=[0,.43056,.07514,0,.71555],Gi=[0,.69444,.06646,0,.51111],Sa=[0,.69444,0,0,.83129],Ra=[0,.69444,.1225,0,.51111],so=[0,.68333,.09403,0,.76666],Do=[0,.68333,.11111,0,.76666],Ys=[0,.69444,.06961,0,.51444],ss=[0,.69444,0,0,.27778],Mo=[.25,.75,0,0,.38889],fo=[0,.64444,0,0,.5],Os=[0,.69444,0,0,.77778],Wo=[0,.68333,0,0,.75],hs=[0,.68333,0,0,.77778],Xs=[0,.68333,0,0,.68056],Ns=[0,.68333,0,0,.72222],ko=[.25,.75,0,0,.5],vo=[.25,.75,0,0,.27778],za=[0,.69444,0,0,.5],Rs=[0,.69444,0,0,.55556],cl=[0,.43056,0,0,.44445],ys=[0,.43056,0,0,.5],Ca=[.19444,.43056,0,0,.55556],ba=[0,.43056,0,0,.55556],qa=[.08333,.58333,0,0,.77778],yo=[0,.43056,0,0,.27778],io=[0,.66786,0,0,.27778],Zo=[0,.69444,0,0,.75],Qo=[0,.66786,0,0,.5],bs=[0,.68333,0,0,.625],Jo=[.19444,.69444,0,0,.44445],Ws=[0,.69444,0,0,.72222],Fs=[.19444,.69444,0,0,.5],qo=[.19444,.69444,0,0,1],gc=[.011,.511,0,0,1.126],vl=[.19444,.69444,0,0,.61111],yl=[.05556,.75,0,0,.5],nc=[0,.68333,0,0,.83334],Vl=[.0391,.5391,0,0,.66667],Ll=[-.05555,.44445,0,0,.5],Qc=[0,.43056,0,0,.77778],ul=[0,.55556,0,0,.66667],rc=[-.03625,.46375,0,0,.77778],dl=[-.01688,.48312,0,0,.77778],bl=[.0391,.5391,0,0,1],Ha=[0,.69444,0,0,.61111],Ga=[-.03472,.46528,0,0,.5],$a=[.25,.75,0,0,.44445],xs=[-.14236,.35764,0,0,1],$o=[.244,.744,0,0,.412],Qs=[.19444,.69444,0,0,.88889],ps=[.12963,.69444,0,0,.77778],jo=[.19444,.69444,0,0,.38889],tl=[.011,.511,0,0,1.638],nl=[.19444,.69444,0,0,0],rl=[0,.44444,0,0,.575],Il=[.19444,.44444,0,0,.575],Jc=[0,.68611,0,0,.75555],vc=[0,.69444,0,0,.66759],Gu=[0,.68611,0,0,.80555],bu=[0,.68611,.08229,0,.98229],_c=[0,.68611,0,0,.76666],Bd=[0,.44444,0,0,.58472],qc=[.19444,.44444,0,0,.6118],Kc=[.19444,.43056,0,0,.5],xu=[0,.68333,.02778,.08334,.76278],wu=[0,.68333,.08125,.05556,.83125],ic=[0,.43056,0,.05556,.48472],$c=[.19444,.43056,0,.08334,.51702],Su=[.25,.75,0,0,.42778],ls=[0,.69444,0,0,.55],Pl=[0,.69444,0,0,.73334],ac=[0,.69444,0,0,.79445],Yu=[0,.69444,0,0,.51945],eu=[0,.69444,0,0,.70278],tu=[0,.69444,0,0,.76389],yc=[.25,.75,0,0,.34306],oc=[0,.69444,0,0,.56111],Dd=[0,.69444,0,0,.25556],Hc=[.19444,.45833,0,0,.56111],Xu=[0,.45833,0,0,.56111],Ul=[0,.69444,0,0,.30556],Qu=[0,.69444,0,0,.58056],Tl=[0,.69444,0,0,.67223],bc=[0,.69444,0,0,.85556],Ol=[0,.69444,0,0,.55834],Zs=[0,.65556,.11156,0,.5],Gl=[0,.69444,.08094,0,.70834],nu=[.17014,0,0,0,.44445],Cu=[0,.69444,.0799,0,.5],Eu=[0,.69444,0,0,.73752],Ju=[0,.69444,.09205,0,.5],ks=[0,.69444,.09031,0,.77778],Nl=[0,.69444,.07816,0,.27778],qu=[0,.69444,.00316,0,.5],Ne=[.19444,.69444,0,0,.83334],We=[.05556,.75,0,0,.83334],St=[0,.75,0,0,.5],Nt=[.125,.08333,0,0,.27778],Jt=[0,.08333,0,0,.27778],Ht=[0,.65556,0,0,.5],En=[0,.69444,0,0,.47222],Sn=[0,.69444,0,0,.66667],bn=[0,.69444,0,0,.59722],Nn=[0,.69444,0,0,.54167],Xn=[0,.69444,0,0,.70834],Kn=[.25,.75,0,0,.28889],fr=[0,.69444,0,0,.51667],cr=[0,.44444,0,0,.44445],ur=[.19444,.44444,0,0,.51667],ei=[0,.44444,0,0,.38333],Hr=[0,.44444,0,0,.51667],ti=[0,.69444,0,0,.83334],Zr=[.35001,.85,0,0,.45834],hi=[.35001,.85,0,0,.57778],Oi=[.35001,.85,0,0,.41667],zi=[.35001,.85,0,0,.58334],Ai=[0,.72222,0,0,.55556],Qi=[1e-5,.6,0,0,.66667],sa=[1e-5,.6,0,0,.77778],yi=[.25001,.75,0,0,.94445],Di=[.306,.805,.19445,0,.47222],bi=[.30612,.805,.19445,0,.47222],Fr=[.25001,.75,0,0,.83334],Si=[.35001,.85,0,0,.47222],Yi=[.25001,.75,0,0,1.11111],ga=[.65002,1.15,0,0,.59722],Zi=[.65002,1.15,0,0,.81111],ii=[.65002,1.15,0,0,.47222],ra=[.65002,1.15,0,0,.66667],la=[0,.75,0,0,1],Fa=[.55001,1.05,0,0,1.27778],Ia=[.862,1.36,.44445,0,.55556],lo=[.86225,1.36,.44445,0,.55556],eo=[.55001,1.05,0,0,1.11111],oa=[.65002,1.15,0,0,.52778],Co=[.65002,1.15,0,0,.61111],Ma=[.55001,1.05,0,0,1.51112],ao=[.95003,1.45,0,0,.73611],to=[.95003,1.45,0,0,1.04445],Po=[.95003,1.45,0,0,.52778],ji=[.95003,1.45,0,0,.75],_i=[0,.75,0,0,1.44445],Ki=[.95003,1.45,0,0,.58334],Pi=[1.25003,1.75,0,0,.79167],Pa=[1.25003,1.75,0,0,1.27778],Ni=[1.25003,1.75,0,0,.58334],ia=[1.25003,1.75,0,0,.80556],ka=[0,.825,0,0,1.8889],Ea=[1.25003,1.75,0,0,.63889],es=[.64502,1.155,0,0,.875],To=[1e-5,.6,0,0,.875],js=[-99e-5,.601,0,0,.66667],Eo=[.64502,1.155,0,0,.66667],Js=[1e-5,.9,0,0,.88889],Ao=[.65002,1.15,0,0,.88889],Vo=[.90001,0,0,0,.88889],xl=[-.00499,.605,0,0,1.05556],Da=[0,.12,0,0,.45],Or=[0,.61111,0,0,.525],_a=[.08333,.69444,0,0,.525],Lo=[-.08056,.53055,0,0,.525],Oo=[-.05556,.55556,0,0,.525],$i=[0,.43056,0,0,.525],Va=[.22222,.43056,0,0,.525],Uo=[0,0,0,0,.525],zs={"AMS-Regular":{32:Pn,65:an,66:Bn,67:an,68:an,69:Bn,70:pn,71:qt,72:qt,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:qt,76:Bn,77:[0,.68889,0,0,.94445],78:an,79:zn,80:pn,81:zn,82:an,83:Vn,84:Bn,85:an,86:an,87:[0,.68889,0,0,1],88:an,89:an,90:Bn,107:Vn,160:Pn,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Vn,295:rr,710:Qn,732:gr,770:Qn,771:gr,989:Xr,1008:mr,8245:[0,.54986,0,0,.275],8463:rr,8487:an,8498:Vn,8502:Bn,8503:[0,.68889,0,0,.44445],8504:Bn,8513:[0,.68889,0,0,.63889],8592:er,8594:er,8602:pr,8603:pr,8606:Pr,8608:Pr,8610:$n,8611:$n,8619:Wr,8620:Wr,8621:[-.13313,.37788,0,0,1.38889],8622:pr,8624:vr,8625:vr,8630:qr,8631:qr,8634:xi,8635:xi,8638:Ar,8639:Ar,8642:Ar,8643:Ar,8644:dr,8646:dr,8647:dr,8648:Mr,8649:dr,8650:Mr,8651:Pr,8652:Pr,8653:pr,8654:pr,8655:pr,8666:tr,8667:tr,8669:[-.13313,.37788,0,0,1],8672:Gn,8674:Gn,8705:[0,.825,0,0,.5],8708:Vn,8709:Xr,8717:[0,.43056,0,0,.42917],8722:er,8724:[.08198,.69224,0,0,.77778],8726:Xr,8733:Ze,8736:Rt,8737:Rt,8738:[.03517,.52239,0,0,.72222],8739:Un,8740:[.25142,.74111,0,0,.27778],8741:nr,8742:[.25142,.74111,0,0,.5],8756:ze,8757:ze,8764:$e,8765:[-.13313,.37788,0,0,.77778],8769:$e,8770:rc,8774:ln,8776:dl,8778:Xr,8782:Xe,8783:Xe,8785:xi,8786:xi,8787:xi,8790:Ze,8791:wn,8796:[.08198,.91667,0,0,.77778],8806:Et,8807:Et,8808:Tt,8809:Tt,8812:[.25583,.75583,0,0,.5],8814:hn,8815:hn,8816:ln,8817:ln,8818:wn,8819:wn,8822:Tn,8823:Tn,8828:Fn,8829:Fn,8830:wn,8831:wn,8832:hn,8833:hn,8840:ln,8841:ln,8842:jn,8843:jn,8847:Qt,8848:Qt,8858:xi,8859:xi,8861:xi,8862:Dn,8863:Dn,8864:Dn,8865:Dn,8872:[0,.69224,0,0,.61111],8873:Rt,8874:[0,.69224,0,0,.88889],8876:pn,8877:pn,8878:an,8879:an,8882:Qt,8883:Qt,8884:Fn,8885:Fn,8888:[0,.54986,0,0,1.11111],8890:Ca,8891:Dt,8892:Dt,8901:[0,.54986,0,0,.27778],8903:Xr,8905:Xr,8906:Xr,8907:Ze,8908:Ze,8909:[-.03598,.46402,0,0,.77778],8910:Zt,8911:Zt,8912:Qt,8913:Qt,8914:on,8915:on,8916:ze,8918:cn,8919:cn,8920:In,8921:In,8922:en,8923:en,8926:Fn,8927:Fn,8928:ln,8929:ln,8934:Ln,8935:Ln,8936:Ln,8937:Ln,8938:hn,8939:hn,8940:ln,8941:ln,8994:it,8995:it,9416:[.15559,.69224,0,0,.90222],9484:vr,9488:vr,9492:Yt,9496:Yt,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:Dn,9633:Dn,9650:$t,9651:$t,9654:Qt,9660:$t,9661:$t,9664:Qt,9674:dn,9733:[.19444,.69224,0,0,.94445],10003:vn,10016:vn,10731:dn,10846:[.19444,.75583,0,0,.61111],10877:Fn,10878:Fn,10885:Et,10886:Et,10887:jn,10888:jn,10889:xn,10890:xn,10891:yn,10892:yn,10901:Fn,10902:Fn,10933:Tt,10934:Tt,10935:xn,10936:xn,10937:xn,10938:xn,10949:Et,10950:Et,10955:_n,10956:_n,57350:Un,57351:nr,57352:Xr,57353:mr,57356:Tt,57357:Tt,57358:Tr,57359:ln,57360:ln,57361:Tr,57366:Tt,57367:Tt,57368:Tt,57369:Tt,57370:jn,57371:jn},"Caligraphic-Regular":{32:Pn,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:Pn},"Fraktur-Regular":{32:Pn,33:[0,.69141,0,0,.29574],34:Lr,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:jr,41:jr,42:[0,.62119,0,0,.27764],43:br,44:ir,45:br,46:ir,47:[.24982,.74947,0,0,.50181],48:Ur,49:Ur,50:Ur,51:Nr,52:Nr,53:Nr,54:$r,55:Nr,56:$r,57:Nr,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:Cr,93:Cr,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:Pn,8216:Lr,8217:Lr,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:Pn,33:[0,.69444,0,0,.35],34:da,35:[.19444,.69444,0,0,.95833],36:kr,37:[.05556,.75,0,0,.95833],38:Ri,39:li,40:ri,41:ri,42:[0,.75,0,0,.575],43:oi,44:[.19444,.15556,0,0,.31944],45:ei,46:[0,.15556,0,0,.31944],47:Jn,48:Kr,49:Kr,50:Kr,51:Kr,52:Kr,53:Kr,54:Kr,55:Kr,56:Kr,57:Kr,58:ta,59:[.19444,.44444,0,0,.31944],60:Ei,61:pa,62:Ei,63:[0,.69444,0,0,.54305],64:Ri,65:qn,66:[0,.68611,0,0,.81805],67:mi,68:[0,.68611,0,0,.88194],69:Jc,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:zr,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Ir,77:[0,.68611,0,0,1.09166],78:zr,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:qn,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Jr,92:Jn,93:Jr,94:Qr,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Rr,99:fi,100:Rr,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Rr,105:li,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:li,109:[0,.44444,0,0,.95833],110:pi,111:rl,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:pi,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:fi,123:Jn,124:Jr,125:Jn,126:[.35,.34444,0,0,.575],160:Pn,163:[0,.69444,0,0,.86853],168:Qr,172:[0,.44444,0,0,.76666],176:xr,177:oi,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:oi,216:[.04861,.73472,0,0,.89444],223:bn,230:[0,.44444,0,0,.83055],247:oi,248:[.09722,.54167,0,0,.575],305:ta,338:[0,.68611,0,0,1.16944],339:fa,567:[.19444,.44444,0,0,.35139],710:Qr,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Qr,715:Qr,728:Qr,729:li,730:xr,732:Qr,733:Qr,915:Ir,916:Er,920:Mi,923:Gu,926:_c,928:zr,931:mi,933:Mi,934:mi,936:Mi,937:mi,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:li,8217:li,8220:da,8221:da,8224:ca,8225:ca,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:vc,8465:qi,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:qi,8501:Ua,8592:Wi,8593:xa,8594:Wi,8595:xa,8596:Wi,8597:Jn,8598:wa,8599:wa,8600:wa,8601:wa,8636:Wi,8637:Wi,8640:Wi,8641:Wi,8656:Wi,8657:Br,8658:Wi,8659:Br,8660:Wi,8661:[.25,.75,0,0,.70277],8704:Rr,8706:[0,.69444,.06389,0,.62847],8707:Rr,8709:kr,8711:Er,8712:Gr,8715:Gr,8722:oi,8723:oi,8725:Jn,8726:Jn,8727:go,8728:Xi,8729:Xi,8730:[.18,.82,0,0,.95833],8733:fa,8734:[0,.44444,0,0,1.14999],8736:Rt,8739:Jr,8741:Jn,8743:va,8744:va,8745:va,8746:va,8747:[.19444,.69444,.12778,0,.56875],8764:pa,8768:[.19444,.69444,0,0,.31944],8771:ua,8776:[.02444,.52444,0,0,.89444],8781:ua,8801:ua,8804:Aa,8805:Aa,8810:Ya,8811:Ya,8826:Ei,8827:Ei,8834:Ei,8835:Ei,8838:Aa,8839:Aa,8846:va,8849:Aa,8850:Aa,8851:va,8852:va,8853:oi,8854:oi,8855:oi,8856:oi,8857:oi,8866:Ua,8867:Ua,8868:Ri,8869:Ri,8900:Xi,8901:[-.02639,.47361,0,0,.31944],8902:go,8968:Fi,8969:Fi,8970:Fi,8971:Fi,8994:Vi,8995:Vi,9651:La,9657:go,9661:La,9667:go,9711:wa,9824:aa,9825:aa,9826:aa,9827:aa,9837:[0,.75,0,0,.44722],9838:ha,9839:ha,10216:ri,10217:ri,10815:zr,10927:Aa,10928:Aa,57376:nl},"Main-BoldItalic":{32:Pn,33:[0,.69444,.11417,0,.38611],34:ui,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:Hn,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:An,49:An,50:An,51:An,52:Cn,53:An,54:An,55:Cn,56:An,57:An,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:ci,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:mn,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:mn,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:or,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:Wn,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:Wn,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:Pn,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:ar,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:ar,567:[.19444,.44444,.04611,0,.385],710:or,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:Hn,730:wr,732:ci,733:ci,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:mn,931:[0,.68611,.11431,0,.82666],933:Li,934:[0,.68611,.05632,0,.82666],936:Li,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:Hn,8217:Hn,8220:[0,.69444,.16772,0,.62055],8221:ui},"Main-Italic":{32:Pn,33:yr,34:Ys,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:yr,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:di,49:di,50:di,51:di,52:ki,53:di,54:di,55:ki,56:di,57:di,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:Ra,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:na,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:na,79:so,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:na,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:Gi,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:vi,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:vi,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:Pn,168:[0,.66786,.10474,0,.51111],176:Sa,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:wi,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:wi,710:Gi,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:Sa,732:[0,.66786,.11585,0,.51111],733:Ra,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:so,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:na,931:[0,.68333,.12028,0,.71555],933:Do,934:[0,.68333,.05986,0,.71555],936:Do,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:yr,8217:yr,8220:[0,.69444,.1685,0,.51444],8221:Ys,8463:rr},"Main-Regular":{32:Pn,33:ss,34:za,35:Ne,36:yl,37:We,38:Os,39:ss,40:Mo,41:Mo,42:St,43:qa,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:ko,48:fo,49:fo,50:fo,51:fo,52:fo,53:fo,54:fo,55:fo,56:fo,57:fo,58:yo,59:[.19444,.43056,0,0,.27778],60:cn,61:$e,62:cn,63:En,64:Os,65:Wo,66:[0,.68333,0,0,.70834],67:Ns,68:[0,.68333,0,0,.76389],69:Xs,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Wo,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:hs,76:bs,77:[0,.68333,0,0,.91667],78:Wo,79:hs,80:Xs,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Ns,85:Wo,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Wo,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:vo,92:ko,93:vo,94:za,95:[.31,.12056,.02778,0,.5],97:ys,98:Rs,99:cl,100:Rs,101:cl,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:Rs,105:io,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:ss,109:[0,.43056,0,0,.83334],110:ba,111:ys,112:Ca,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:ba,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:cl,123:ko,124:vo,125:ko,126:[.35,.31786,0,0,.5],160:Pn,163:[0,.69444,0,0,.76909],167:Jo,168:Qo,172:[0,.43056,0,0,.66667],176:Zo,177:qa,182:vl,184:nu,198:[0,.68333,0,0,.90278],215:qa,216:[.04861,.73194,0,0,.77778],223:za,230:[0,.43056,0,0,.72222],247:qa,248:[.09722,.52778,0,0,.5],305:yo,338:[0,.68333,0,0,1.01389],339:Qc,567:[.19444,.43056,0,0,.30556],710:za,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:za,715:za,728:za,729:io,730:Zo,732:Qo,733:za,915:bs,916:nc,920:hs,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Wo,931:Ns,933:hs,934:Ns,936:hs,937:Ns,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:ss,8217:ss,8220:za,8221:za,8224:Jo,8225:Jo,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:rr,8465:Ws,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Ws,8501:Ha,8592:pr,8593:Fs,8594:pr,8595:Fs,8596:pr,8597:ko,8598:qo,8599:qo,8600:qo,8601:qo,8614:[.011,.511,0,0,1],8617:gc,8618:gc,8636:pr,8637:pr,8640:pr,8641:pr,8652:[.011,.671,0,0,1],8656:pr,8657:vl,8658:pr,8659:vl,8660:pr,8661:[.25,.75,0,0,.61111],8704:Rs,8706:[0,.69444,.05556,.08334,.5309],8707:Rs,8709:yl,8711:nc,8712:Vl,8715:Vl,8722:qa,8723:qa,8725:ko,8726:ko,8727:Ga,8728:Ll,8729:Ll,8730:[.2,.8,0,0,.83334],8733:Qc,8734:qr,8736:Rt,8739:vo,8741:ko,8743:ul,8744:ul,8745:ul,8746:ul,8747:[.19444,.69444,.11111,0,.41667],8764:$e,8768:[.19444,.69444,0,0,.27778],8771:rc,8773:[-.022,.589,0,0,1],8776:dl,8781:rc,8784:[-.133,.67,0,0,.778],8801:rc,8804:jn,8805:jn,8810:bl,8811:bl,8826:cn,8827:cn,8834:cn,8835:cn,8838:jn,8839:jn,8846:ul,8849:jn,8850:jn,8851:ul,8852:ul,8853:qa,8854:qa,8855:qa,8856:qa,8857:qa,8866:Ha,8867:Ha,8868:Os,8869:Os,8872:[.249,.75,0,0,.867],8900:Ll,8901:[-.05555,.44445,0,0,.27778],8902:Ga,8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:$a,8969:$a,8970:$a,8971:$a,8994:xs,8995:xs,9136:$o,9137:$o,9651:Qs,9657:Ga,9661:Qs,9667:Ga,9711:qo,9824:ps,9825:ps,9826:ps,9827:ps,9837:[0,.75,0,0,.38889],9838:jo,9839:jo,10216:Mo,10217:Mo,10222:$o,10223:$o,10229:[.011,.511,0,0,1.609],10230:tl,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:tl,10815:Wo,10927:jn,10928:jn,57376:nl},"Math-BoldItalic":{32:Pn,48:rl,49:rl,50:rl,51:Il,52:Il,53:Il,54:Kr,55:Il,56:Kr,57:Il,65:qn,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:bu,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Jc,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:vc,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:Bd,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:Pn,915:[0,.68611,.15972,0,.65694],916:Er,920:[0,.68611,.03194,0,.86722],923:Gu,926:[0,.68611,.07458,0,.84125],928:bu,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:_c,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:Bd,960:[0,.44444,.03704,0,.68241],961:qc,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:qc,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:Pn,48:ys,49:ys,50:ys,51:Kc,52:Kc,53:Kc,54:fo,55:Kc,56:fo,57:Kc,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:wu,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:xu,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:ic,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:Pn,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:xu,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:wu,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:ic,960:[0,.43056,.03588,0,.57003],961:$c,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:$c,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:Pn,33:[0,.69444,0,0,.36667],34:Ol,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:Ul,40:Su,41:Su,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:ls,49:ls,50:ls,51:ls,52:ls,53:ls,54:ls,55:ls,56:ls,57:ls,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:Yu,64:Pl,65:Pl,66:Pl,67:eu,68:ac,69:[0,.69444,0,0,.64167],70:Ha,71:Pl,72:ac,73:[0,.69444,0,0,.33056],74:Yu,75:tu,76:Qu,77:[0,.69444,0,0,.97778],78:ac,79:ac,80:eu,81:[.10556,.69444,0,0,.79445],82:eu,83:Ha,84:Pl,85:tu,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Pl,89:[0,.69444,.0275,0,.73334],90:Tl,91:yc,93:yc,94:ls,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:oc,99:[0,.45833,0,0,.48889],100:oc,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:oc,105:Dd,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Dd,109:[0,.45833,0,0,.86667],110:Xu,111:[0,.45833,0,0,.55],112:Hc,113:Hc,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:Xu,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:Pn,168:ls,176:Pl,180:ls,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:ls,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:ls,729:Ul,730:Pl,732:ls,733:ls,915:Qu,916:[0,.69444,0,0,.91667],920:bc,923:Tl,926:Pl,928:ac,931:ac,933:bc,934:ac,936:bc,937:ac,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:Ul,8217:Ul,8220:Ol,8221:Ol},"SansSerif-Italic":{32:Pn,33:[0,.69444,.05733,0,.31945],34:qu,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:Nl,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:Nt,45:[0,.44444,.01946,0,.33333],46:Jt,47:[.25,.75,.13164,0,.5],48:Zs,49:Zs,50:Zs,51:Zs,52:Zs,53:Zs,54:Zs,55:Zs,56:Zs,57:Zs,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:Sn,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:Gl,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:Nn,77:[0,.69444,.08094,0,.875],78:Gl,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:Cu,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:Pn,168:[0,.67937,.06385,0,.5],176:Eu,184:nu,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:Cu,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:Ju,715:za,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:Eu,732:[0,.67659,.08826,0,.5],733:Ju,915:[0,.69444,.13372,0,.54167],916:ti,920:[0,.69444,.07555,0,.77778],923:Ha,926:[0,.69444,.12816,0,.66667],928:Gl,931:[0,.69444,.11983,0,.72222],933:ks,934:[0,.69444,.04603,0,.72222],936:ks,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:Nl,8217:Nl,8220:[0,.69444,.14205,0,.5],8221:qu},"SansSerif-Regular":{32:Pn,33:[0,.69444,0,0,.31945],34:za,35:Ne,36:yl,37:We,38:[0,.69444,0,0,.75834],39:ss,40:Mo,41:Mo,42:St,43:qa,44:Nt,45:[0,.44444,0,0,.33333],46:Jt,47:ko,48:Ht,49:Ht,50:Ht,51:Ht,52:Ht,53:Ht,54:Ht,55:Ht,56:Ht,57:Ht,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:En,64:Sn,65:Sn,66:Sn,67:Rr,68:[0,.69444,0,0,.72223],69:bn,70:[0,.69444,0,0,.56945],71:Sn,72:Xn,73:ss,74:En,75:[0,.69444,0,0,.69445],76:Nn,77:[0,.69444,0,0,.875],78:Xn,79:[0,.69444,0,0,.73611],80:Rr,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:Rs,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:Sn,89:[0,.69444,.025,0,.66667],90:Ha,91:Kn,93:Kn,94:za,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:fr,99:cr,100:fr,101:cr,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:fr,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:Hr,111:[0,.44444,0,0,.5],112:ur,113:ur,114:[0,.44444,.01389,0,.34167],115:ei,116:[0,.57143,0,0,.36111],117:Hr,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:Pn,168:[0,.67937,0,0,.5],176:Sn,184:nu,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:za,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:za,715:za,728:za,729:[0,.67937,0,0,.27778],730:Sn,732:[0,.67659,0,0,.5],733:za,915:Nn,916:ti,920:Os,923:Ha,926:Sn,928:Xn,931:Ws,933:Os,934:Ws,936:Os,937:Ws,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:ss,8217:ss,8220:za,8221:za},"Script-Regular":{32:Pn,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:Pn},"Size1-Regular":{32:Pn,40:Zr,41:Zr,47:hi,91:Oi,92:hi,93:Oi,123:zi,125:zi,160:Pn,710:Ai,732:Ai,770:Ai,771:Ai,8214:[-99e-5,.601,0,0,.77778],8593:Qi,8595:Qi,8657:sa,8659:sa,8719:yi,8720:yi,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:bi,8748:Di,8749:Di,8750:bi,8896:Fr,8897:Fr,8898:Fr,8899:Fr,8968:Si,8969:Si,8970:Si,8971:Si,9168:js,10216:Si,10217:Si,10752:Yi,10753:Yi,10754:Yi,10756:Fr,10758:Fr},"Size2-Regular":{32:Pn,40:ga,41:ga,47:Zi,91:ii,92:Zi,93:ii,123:ra,125:ra,160:Pn,710:la,732:la,770:la,771:la,8719:Fa,8720:Fa,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:lo,8748:Ia,8749:Ia,8750:lo,8896:eo,8897:eo,8898:eo,8899:eo,8968:oa,8969:oa,8970:oa,8971:oa,10216:Co,10217:Co,10752:Ma,10753:Ma,10754:Ma,10756:eo,10758:eo},"Size3-Regular":{32:Pn,40:ao,41:ao,47:to,91:Po,92:to,93:Po,123:ji,125:ji,160:Pn,710:_i,732:_i,770:_i,771:_i,8730:[.95003,1.45,0,0,1],8968:Ki,8969:Ki,8970:Ki,8971:Ki,10216:ji,10217:ji},"Size4-Regular":{32:Pn,40:Pi,41:Pi,47:Pa,91:Ni,92:Pa,93:Ni,123:ia,125:ia,160:Pn,710:ka,732:ka,770:ka,771:ka,8730:[1.25003,1.75,0,0,1],8968:Ea,8969:Ea,8970:Ea,8971:Ea,9115:es,9116:To,9117:es,9118:es,9119:To,9120:es,9121:Eo,9122:js,9123:Eo,9124:Eo,9125:js,9126:Eo,9127:Js,9128:Ao,9129:Vo,9130:[0,.3,0,0,.88889],9131:Js,9132:Ao,9133:Vo,9143:[.88502,.915,0,0,1.05556],10216:ia,10217:ia,57344:xl,57345:xl,57680:Da,57681:Da,57682:Da,57683:Da},"Typewriter-Regular":{32:Uo,33:Or,34:Or,35:Or,36:_a,37:_a,38:Or,39:Or,40:_a,41:_a,42:[0,.52083,0,0,.525],43:Lo,44:[.13889,.125,0,0,.525],45:Lo,46:[0,.125,0,0,.525],47:_a,48:Or,49:Or,50:Or,51:Or,52:Or,53:Or,54:Or,55:Or,56:Or,57:Or,58:$i,59:[.13889,.43056,0,0,.525],60:Oo,61:[-.19549,.41562,0,0,.525],62:Oo,63:Or,64:Or,65:Or,66:Or,67:Or,68:Or,69:Or,70:Or,71:Or,72:Or,73:Or,74:Or,75:Or,76:Or,77:Or,78:Or,79:Or,80:Or,81:[.13889,.61111,0,0,.525],82:Or,83:Or,84:Or,85:Or,86:Or,87:Or,88:Or,89:Or,90:Or,91:_a,92:_a,93:_a,94:Or,95:[.09514,0,0,0,.525],96:Or,97:$i,98:Or,99:$i,100:Or,101:$i,102:Or,103:Va,104:Or,105:Or,106:[.22222,.61111,0,0,.525],107:Or,108:Or,109:$i,110:$i,111:$i,112:Va,113:Va,114:$i,115:$i,116:[0,.55358,0,0,.525],117:$i,118:$i,119:$i,120:$i,121:Va,122:$i,123:_a,124:_a,125:_a,126:Or,127:Or,160:Uo,176:Or,184:[.19445,0,0,0,.525],305:$i,567:Va,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:Or,715:Or,728:Or,730:Or,770:Or,771:Or,776:Or,915:Or,916:Or,920:Or,923:Or,926:Or,928:Or,931:Or,933:Or,934:Or,936:Or,937:Or,8216:Or,8217:Or,8242:Or,9251:[.11111,.21944,0,0,.525]}},fl=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,ws=10,ts=.25,il=1.2,ns=.431,Ss={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[ns,ns,ns],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:[ts,ts,ts],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]},cs=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],co=5,uo={"\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 ms(a,y){a===void 0&&(a=77);const b=zs[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 uo)a=uo[E].codePointAt(0);else if(fl.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 wl={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]},Vs={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]},hl={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 Rl(a){if(Vs[a]){const[Se,Pe,st]=Vs[a],kt=`<span class="stretchy" style="height:${st}em"><svg width="100%" height="${st}em" viewBox="0 0 ${Se} ${Pe}" preserveAspectRatio="none" ><path fill="currentcolor" d="${hl[a]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*st/2)/100}em;min-width:0">${kt}</span>`}const[y,b,E,ee]=wl[a];let re,le;const me=E/1e3;y.length===3?(re=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],le=["xMinYMin","xMidYMin","xMaxYMin"]):y.length===2?(re=["slice-1-of-2","slice-2-of-2"],le=["xMinYMin","xMaxYMin"]):(re=["slice-1-of-1"],le=[ee]);const ge=y.map((Se,Pe)=>`<span class="${re[Pe]}" style=height:${me}em><svg width=400em height=${me}em viewBox="0 0 400000 ${E}" preserveAspectRatio="${le[Pe]} slice"><path fill="currentcolor" d="${hl[Se]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${me}em;min-width:${b}em;">${ge}</span>`}function ru(a){return wl[a]?wl[a][2]/1e3:Vs[a][2]}function Ta(a){const y=[];for(let b=0;b<a.length;b++){let E=a.charCodeAt(b);if(E===13&&a.charCodeAt(b+1)===10&&(E=10,b++),(E===13||E===12)&&(E=10),E===0&&(E=65533),E>=55296&&E<=56319){const ee=a.charCodeAt(b+1);if(ee>=56320&&ee<=57343){const re=E-55296,le=ee-56320;E=zc(2,16)+re*zc(2,10)+le,b++}}y.push(E)}return y}var Xa=8205,zo=[[Xa,1],[65038,2],[127995,5],[129456,4],[917536,96]],Qa,_o=[127462,127487];function rs(a){var y;if(Qa===void 0){Qa={};for(const b of zo)for(let E=b[0];E<=b[0]+b[1]-1;E++)Qa[E]=!0}return(y=Qa[a])!=null?y:!1}function As(a){return a>=_o[0]&&a<=_o[1]}function Sl(a){if(/^[\u0020-\u00FF]*$/.test(a))return a;const y=[],b=Ta(a);let E=0;for(;E<b.length;){const ee=b[E++],re=b[E];if(re===Xa){const le=E-1;for(E+=2;b[E]===Xa;)E+=2;y.push(String.fromCodePoint(...b.slice(le,E-le+1)))}else if(rs(re)){const le=E-1;for(;rs(b[E]);)E+=b[E]===Xa?2:1;y.push(String.fromCodePoint(...b.slice(le,2*E-le-1)))}else As(ee)?(E+=1,y.push(String.fromCodePoint(...b.slice(E-2,2)))):y.push(String.fromCodePoint(ee))}return y}var Mu=class{constructor(a){this.obeyspaces=!1,this.pos=0,this.s=Sl(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 Yl(a,y){var b,E,ee,re;const le=[];let me=a.next();if(me&&me!=="\\relax"){if(me==="\\noexpand")me=a.next(),me&&le.push(me);else if(me==="\\obeyspaces")a.obeyspaces=!0;else if(me==="\\bgroup")le.push("<{>");else if(me==="\\egroup")le.push("<}>");else if(me==="\\string"){if(me=a.next(),me)if(me.startsWith("\\"))for(const ge of me)le.push(ge==="\\"?"\\backslash":ge);else me==="<{>"?le.push("\\{"):me==="<space>"?le.push("~"):me==="<}>"&&le.push("\\}")}else if(me==="\\csname"){for(;a.peek()==="<space>";)a.next();let ge="",Se=!1,Pe=[];do{if(Pe.length===0)if(/^#[\d?@]$/.test(a.peek())){const st=a.get().slice(1);Pe=Cl((E=(b=y==null?void 0:y(st))!=null?b:y==null?void 0:y("?"))!=null?E:"\\placeholder{}",y),me=Pe[0]}else me=a.next(),Pe=me?[me]:[];Se=Pe.length===0,!Se&&me==="\\endcsname"&&(Se=!0,Pe.shift()),Se||(Se=me==="<$>"||me==="<$$>"||me==="<{>"||me==="<}>"||typeof me=="string"&&me.length>1&&me.startsWith("\\")),Se||(ge+=Pe.shift())}while(!Se);ge&&le.push("\\"+ge),le.push(...Pe)}else if(me!=="\\endcsname")if(me.length>1&&me.startsWith("#")){const ge=me.slice(1);le.push(...Cl((re=(ee=y==null?void 0:y(ge))!=null?ee:y==null?void 0:y("?"))!=null?re:"\\placeholder{}",y))}else le.push(me)}return le}function Cl(a,y=null){const b=[];let E="";for(const le of a.toString().split(/\r?\n/)){E&&b.push(E),E=" ";const me=le.match(/((?:\\%)|[^%])*/);me!==null&&b.push(me[0])}const ee=new Mu(Ue(b.join(""))),re=[];do re.push(...Yl(ee,y));while(!ee.end());return re}function Ba(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 ho(a,...y){return console.assert(a.startsWith("\\")),y.length===0?a:Ba([a,...y.map(b=>`{${b}}`)])}function pl(a){return Ba(a.map(y=>{var b;return(b={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[y])!=null?b:y}))}var sc=class ff{constructor(y){ff._registry[y]=this}static createAtom(y,b,E){return ff._registry[y].createAtom(b,dt(b,y),E)}static serialize(y,b){var E;if(!y||y.length===0)return"";if((E=b.skipStyles)!=null&&E){const ee=[];for(const re of $u(y)){const le=ff._registry[re[0].mode];ee.push(...le.serialize(re,b))}return Ba(ee)}return Ba(iu(y,b))}static getFont(y,b,E){return ff._registry[y].getFont(b,E)}};sc._registry={};var Us=sc;function $u(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 No(a,y){const b=[];let E=[],ee;for(const re of a)if(re.type!=="first"&&re.style){let le;y==="variant"?(le=re.style.variant,re.style.variantStyle&&re.style.variantStyle!=="up"&&(le+="-"+re.style.variantStyle)):le=re.style[y],le===ee?E.push(re):(E.length>0&&b.push(E),E=[re],ee=le)}return E.length>0&&b.push(E),b}function ku(a,y){var b;const{parent:E}=a[0],ee=E==null?void 0:E.computedStyle.color,re=[];for(const le of $u(a)){const me=y.defaultMode;for(const ge of No(le,"color")){const Se=ge[0].computedStyle,Pe=Us._registry[ge[0].mode].serialize(ge,Me(ve({},y),{defaultMode:me==="text"?"text":"math"}));!y.skipStyles&&Se.color&&Se.color!=="none"&&(!E||ee!==Se.color)?re.push(ho("\\textcolor",(b=Se.verbatimColor)!=null?b:Se.color,Ba(Pe))):re.push(Ba(Pe))}}return re}function ed(a,y){const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.backgroundColor;return No(a,"backgroundColor").map(ee=>{var re;if(ee.length>0||ee[0].type!=="box"){const le=ee[0].computedStyle;if(le.backgroundColor&&le.backgroundColor!=="none"&&(!b||E!==le.backgroundColor))return ho("\\colorbox",(re=le.verbatimBackgroundColor)!=null?re:le.backgroundColor,Ba(ku(ee,Me(ve({},y),{defaultMode:"text"}))))}return Ba(ku(ee,y))})}function iu(a,y){if(a.length===0)return[];const{parent:b}=a[0],E=b==null?void 0:b.computedStyle.fontSize,ee=[];for(const re of No(a,"fontSize")){const le=re[0].computedStyle.fontSize,me=ed(re,y);me&&(le&&le!=="auto"&&(!b||E!==le)?ee.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][le],...me):ee.push(...me))}return ee}function au(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 xc(a){if(a.length===0)return"ord";const y=au(a[0].type),b=au(a[a.length-1].type);return y&&y===b?y:"ord"}function lc(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 Vr=class Ep{constructor(y,b){var E,ee,re,le,me;if(typeof y=="number"?this.value=String.fromCodePoint(y):typeof y=="string"?this.value=y:Fe(y)?this.children=y.filter(Se=>Se!==null):y&&y instanceof Ep&&(this.children=[y]),this.children)for(const Se of this.children)Se.parent=this;this.type=(E=b==null?void 0:b.type)!=null?E:"ignore",this.isSelected=(b==null?void 0:b.isSelected)===!0,b!=null&&b.caret&&(this.caret=b.caret),this.classes=(ee=b==null?void 0:b.classes)!=null?ee:"",this.isTight=(re=b==null?void 0:b.isTight)!=null?re:!1,b!=null&&b.attributes&&(this.attributes=b.attributes);let ge=b==null?void 0:b.fontFamily;b!=null&&b.style&&this.value&&(ge=(me=Us.getFont((le=b.mode)!=null?le:"math",this,Me(ve({variant:"normal"},b.style),{letterShapeStyle:b.letterShapeStyle})))!=null?me:void 0),ge||(ge="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),Xl(this,ge)}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=lc(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=lc(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"]=lc(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"]=lc(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"]=lc(y,"em")))}get width(){return this._width*this.scale}set width(y){this._width=y,this.hasExplicitWidth=!0}set softWidth(y){}get height(){return this._height*this.scale}set height(y){this._height=y}get depth(){return this._depth*this.scale}set depth(y){this._depth=y}wrap(y){const b=y.parent;if(!b)return this;y.isPhantom&&this.setStyle("opacity",0);const E=y.color;E&&E!==b.color&&this.setStyle("color",E);let ee=y.backgroundColor;this.isSelected&&(ee=It(ee)),ee&&ee!==b.backgroundColor&&(this.setStyle("background-color",ee),this.setStyle("display","inline-block"));const re=y.scalingFactor;return this.scale=re,this.skew*=re,this.italic*=re,this}toMarkup(){var y,b,E,ee;let re=(y=this.value)!=null?y:"";if(this.children)for(const Vt of this.children)re+=Vt.toMarkup();let le="";if(this.svgBody)le=Rl(this.svgBody);else if(this.svgOverlay){le='<span style="',le+="display: inline-block;",le+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,le+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,le+='">',le+=re,le+="</span>",le+='<svg style="position:absolute;overflow:visible;',le+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const Vt=(b=this.cssProperties)==null?void 0:b.padding;Vt?(le+=`top:${Vt};`,le+=`left:${Vt};`,le+=`width:calc(100% - 2 * ${Vt} );`):le+="top:0;left:0;width:100%;",le+="z-index:2;",le+='"',this.svgStyle&&(le+=this.svgStyle),le+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,le+=`>${this.svgOverlay}</svg>`}let me="";const ge=this.classes.split(" ");ge.push((E={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?E:""),this.caret==="latex"&&ge.push("ML__latex-caret"),this.isSelected&&ge.push("ML__selected");const Se=ge.length===1?ge[0]:ge.filter((Vt,sn,Yn)=>Vt.length>0&&Yn.indexOf(Vt)===sn).join(" ");if(Se.length>0&&(me+=` class="${Se}"`),this.id&&(me+=` data-atom-id=${this.id}`),this.cssId&&(me+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(me+=" "+Object.keys(this.attributes).map(Vt=>`${Vt}="${this.attributes[Vt]}"`).join(" ")),this.htmlData){const Vt=this.htmlData.split(",");for(const sn of Vt){const Yn=sn.match(/([^=]+)=(.+$)/);if(Yn){const Yr=Yn[1].trim().replace(/ /g,"-");Yr&&(me+=` data-${Yr}="${Yn[2]}" `)}else{const Yr=sn.trim().replace(/ /g,"-");Yr&&(me+=` data-${Yr} `)}}}const Pe=(ee=this.cssProperties)!=null?ee:{};this.hasExplicitWidth&&Pe.width===void 0&&(Pe.width=`${Math.ceil(this._width*100)/100}em`);const st=Object.keys(Pe).map(Vt=>`${Vt}:${Pe[Vt]}`);if(this.scale!==void 0&&this.scale!==1&&(re.length>0||le.length>0)&&st.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const Vt=this.htmlStyle.split(";");let sn="";for(const Yn of Vt){const Yr=Yn.match(/([^=]+):(.+$)/);if(Yr){const Zn=Yr[1].trim().replace(/ /g,"-");Zn&&(sn+=`${Zn}:${Yr[2]};`)}}sn&&(me+=` style="${sn}"`)}st.length>0&&(me+=` style="${st.join(";")}"`);let kt="";return me.length>0||le.length>0?kt=`<span${me}>${re}${le}</span>`:kt=re,this.caret==="text"?kt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(kt+='<span class="ML__caret"></span>'),kt}tryCoalesceWith(y){if(this.svgBody||!this.value||y.svgBody||!y.value)return!1;const b=this.children&&this.children.length>0,E=y.children&&y.children.length>0;if(b||E)return!1;if(y.cssProperties||this.cssProperties){for(const ge of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(y.cssProperties&&ge in y.cssProperties||this.cssProperties&&ge in this.cssProperties)return!1}const ee=this.cssProperties?Object.keys(this.cssProperties).length:0,re=y.cssProperties?Object.keys(y.cssProperties).length:0;if(ee!==re)return!1;if(ee>0){for(const ge of Object.keys(this.cssProperties))if(this.cssProperties[ge]!==y.cssProperties[ge])return!1}const le=this.classes.trim().replace(/\s+/g," ").split(" "),me=y.classes.trim().replace(/\s+/g," ").split(" ");if(le.length!==me.length)return!1;le.sort(),me.sort();for(const[ge,Se]of le.entries())if(Se==="vertical-separator"||Se!==me[ge])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 Au(a){if(!a||a.length===0)return[];a[0].children=Au(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=Au(a[b].children),y.push(a[b]));return y}function ou(a){return a.children&&(a.children=Au(a.children)),a}function su(a,y){if(!a)return new Vr(null,y);const b=new Vr(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 Vr(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 Vr(E,Me(ve({},y),{type:"lift"}))}function al(a){const y=ru(a)/2,b=new Vr(null,{maxFontSize:0});return b.height=y+.166,b.depth=y-.166,b.svgBody=a,b}function Xl(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=ms(a.value.codePointAt(E),y);a.height=Math.max(a.height,ee.height),a.depth=Math.max(a.depth,ee.depth),a._width+=ee.width,a.skew=ee.skew,a.italic=ee.italic}return}if(a.children&&a.children.length>0){let E=-1/0,ee=-1/0,re=0;for(const le of a.children)le.height>E&&(E=le.height),le.depth>ee&&(ee=le.depth),re=Math.max(re,(b=le.maxFontSize)!=null?b:0);a.height=E,a.depth=ee,a._width=a.children.reduce((le,me)=>le+me.width,0),a.maxFontSize=re}}function wc(a){if("individualShift"in a){const y=a.individualShift;let b=y[0];const E=[b],ee=-b.shift-b.box.depth;let re=ee;for(let le=1;le<y.length;le++){const me=y[le],ge=-me.shift-re-me.box.depth,Se=ge-(b.box.height+b.box.depth);re=re+ge,E.push(Se),E.push(me),b=me}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 cc(a){var y;const[b,E]=wc(a);if(!b)return[[],0,0];const ee=new Vr(null,{classes:"pstrut"});let re=0;for(const sn of b)if(typeof sn!="number"){const Yn=sn.box;re=Math.max(re,Yn.maxFontSize,Yn.height)}re+=2,ee.height=re,ee.setStyle("height",re,"em");const le=[];let me=E,ge=E,Se=E,Pe=0;for(const sn of b){if(typeof sn=="number")Se+=sn;else{const Yn=sn.box,Yr=(y=sn.classes)!=null?y:[],Zn=new Vr([ee,Yn],{classes:Yr.join(" "),style:sn.style});Yn.setStyle("height",Yn.height+Yn.depth,"em"),Yn.setStyle("display","inline-block"),Zn.setStyle("top",-re-Se-Yn.depth,"em"),sn.marginLeft&&Zn.setStyle("margin-left",sn.marginLeft,"em"),sn.marginRight&&Zn.setStyle("margin-right",sn.marginRight,"em"),le.push(Zn),Se+=Yn.height+Yn.depth,Pe=Math.max(Pe,Zn.width)}me=Math.min(me,Se),ge=Math.max(ge,Se)}le.forEach(sn=>{sn.softWidth=Pe});const st=new Vr(le,{classes:"vlist"});if(st.softWidth=Pe,st.height=ge,st.setStyle("height",ge,"em"),me>=0)return[[new Vr(st,{classes:"vlist-r"})],ge,-me];const kt=new Vr(new Vr(null),{classes:"vlist"});kt.height=-me,kt.setStyle("height",-me,"em");const Vt=new Vr(8203,{classes:"vlist-s",maxFontSize:0});return Vt.softWidth=0,Vt.height=0,Vt.depth=0,[[new Vr([st,Vt],{classes:"vlist-r"}),new Vr(kt,{classes:"vlist-r"})],ge,-me]}var oo=class extends Vr{constructor(a,y){var b;const[E,ee,re]=cc(a);super(E.length===1?E[0]:E,{type:y==null?void 0:y.type,classes:((b=y==null?void 0:y.classes)!=null?b:"")+" vlist-t"+(E.length===2?" vlist-t2":"")}),this.height=ee,this.depth=re,this.softWidth=E.reduce((le,me)=>Math.max(le,me.width),0)}};function td(a,y){var b,E,ee,re,le;const me=a.metrics,ge=new Vr(y.base),Se=(b=y.baseShift)!=null?b:0,Pe=(E=y.slant)!=null?E:0;let st=0,kt=0;y.above&&(st=(ee=y.aboveShift)!=null?ee:Math.max(me.bigOpSpacing1,me.bigOpSpacing3-y.above.depth)),y.below&&(kt=(re=y.belowShift)!=null?re:Math.max(me.bigOpSpacing2,me.bigOpSpacing4-y.below.height));let Vt=null;if(y.below&&y.above){const sn=me.bigOpSpacing5+y.below.height+y.below.depth+kt+ge.depth+Se;Vt=new oo({bottom:sn,children:[me.bigOpSpacing5,{box:y.below,marginLeft:-Pe,classes:["ML__center"]},kt,{box:ge,classes:["ML__center"]},st,{box:y.above,marginLeft:Pe,classes:["ML__center"]},me.bigOpSpacing5]}).wrap(a)}else if(y.below&&!y.above)Vt=new oo({top:ge.height-Se,children:[me.bigOpSpacing5,{box:y.below,marginLeft:-Pe,classes:["ML__center"]},kt,{box:ge,classes:["ML__center"]}]}).wrap(a);else if(!y.below&&y.above){const sn=ge.depth+Se;Vt=new oo({bottom:sn,children:[{box:ge,classes:["ML__center"]},st,{box:y.above,marginLeft:Pe,classes:["ML__center"]},me.bigOpSpacing5]}).wrap(a)}else{const sn=ge.depth+Se;Vt=new oo({bottom:sn,children:[{box:ge},me.bigOpSpacing5]}).wrap(a)}return new Vr(Vt,{type:(le=y.type)!=null?le:"op"})}var lu=7,El=6,Wc=5,Fl=4,zl=3,Cs=2,Gs=1,us=0,Ml=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(Ss).reduce((ee,re)=>Me(ve({},ee),{[re]:Ss[re][E]}),{})}getFontSize(a){return Math.max(1,a+this.sizeDelta)}get sup(){return Za[[us,Gs,us,Gs,Cs,zl,Cs,zl][this.id]]}get sub(){return Za[[us,us,us,us,Cs,Cs,Cs,Cs][this.id]]}get fracNum(){return Za[[us,Gs,us,Gs,Cs,zl,Fl,Wc][this.id]]}get fracDen(){return Za[[us,us,us,us,Cs,Cs,Fl,Fl][this.id]]}get cramp(){return Za[[us,us,Cs,Cs,Fl,Fl,El,El][this.id]]}get isTight(){return this.sizeDelta<0}},Oa={7:new Ml(lu,0,!1),6:new Ml(El,0,!0),5:new Ml(Wc,0,!1),4:new Ml(Fl,0,!0),3:new Ml(zl,-3,!1),2:new Ml(Cs,-3,!0),1:new Ml(Gs,-4,!1),0:new Ml(us,-4,!0)},Za=Me(ve({},Oa),{displaystyle:Oa[lu],textstyle:Oa[Wc],scriptstyle:Oa[zl],scriptscriptstyle:Oa[Gs]});function Es(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:ws,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=zc(10,y);return Math.round(a.dimension/ws*E*ee)/ee}return a.dimension*E}function kl(a,y){if(a===null)return 0;const b=Es(a)/ws;if(Number.isFinite(y)){const E=zc(10,y);return Math.round(b*E)/E}return b}function Al(a){var y;return`${a.dimension}${(y=a.unit)!=null?y:"pt"}`}function Bu(a){let y=Al(a.glue);return a.grow&&a.grow.dimension!==0&&(y+=` plus ${Al(a.grow)}`),a.shrink&&a.shrink.dimension!==0&&(y+=` minus ${Al(a.shrink)}`),y}function Ro(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=Bu(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 ol(a,y){return a==null?null:"number"in a?Me(ve({},a),{number:a.number*y}):"register"in a?"factor"in a&&a.factor?Me(ve({},a),{factor:a.factor*y}):Me(ve({},a),{factor:y}):"dimension"in a?Me(ve({},a),{dimension:a.dimension*y}):"glue"in a?a.shrink&&a.grow?{glue:ol(a.glue,y),shrink:ol(a.shrink,y),grow:ol(a.grow,y)}:a.shrink?{glue:ol(a.glue,y),shrink:ol(a.shrink,y)}:a.grow?{glue:ol(a.glue,y),grow:ol(a.grow,y)}:{glue:ol(a.glue,y)}:null}var Du={"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 Ql(){return ve({},Du)}function nd(){return{registers:Ql(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:ht.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:bt,backgroundColorMap:Oe,getMacro:a=>Ft(a,fn())}}var Wa=class Mp{constructor(y,b){var E,ee,re,le,me,ge,Se,Pe,st,kt,Vt,sn,Yn,Yr,Zn;let hr;y!=null&&y.parent?(this.parent=y.parent,hr=y.parent,this.registers={}):(hr=ve(ve({},nd()),(E=y==null?void 0:y.from)!=null?E:{}),this.registers=hr.registers),hr.atomIdsSettings&&(this.atomIdsSettings=ve({},hr.atomIdsSettings)),this.renderPlaceholder=hr.renderPlaceholder,this.isPhantom=(le=(re=y==null?void 0:y.isPhantom)!=null?re:(ee=this.parent)==null?void 0:ee.isPhantom)!=null?le:!1,this.letterShapeStyle=hr.letterShapeStyle,this.minFontScale=hr.minFontScale,b!=null&&b.color&&b.color!=="none"?this.color=b.color:this.color=(ge=(me=this.parent)==null?void 0:me.color)!=null?ge:"",b!=null&&b.backgroundColor&&b.backgroundColor!=="none"?this.backgroundColor=b.backgroundColor:this.backgroundColor=(Pe=(Se=this.parent)==null?void 0:Se.backgroundColor)!=null?Pe:"",b!=null&&b.fontSize&&b.fontSize!=="auto"&&b.fontSize!==((st=this.parent)==null?void 0:st.size)?this.size=b.fontSize:this.size=(Vt=(kt=this.parent)==null?void 0:kt.size)!=null?Vt:co;let ni=(Yn=(sn=this.parent)==null?void 0:sn.mathstyle)!=null?Yn:Za.displaystyle;if(typeof(y==null?void 0:y.mathstyle)=="string"){if(hr instanceof Mp)switch(y.mathstyle){case"cramp":ni=ni.cramp;break;case"superscript":ni=ni.sup;break;case"subscript":ni=ni.sub;break;case"numerator":ni=ni.fracNum;break;case"denominator":ni=ni.fracDen;break}switch(y.mathstyle){case"textstyle":ni=Za.textstyle;break;case"displaystyle":ni=Za.displaystyle;break;case"scriptstyle":ni=Za.scriptstyle;break;case"scriptscriptstyle":ni=Za.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=ni,this.smartFence=hr.smartFence,this.placeholderSymbol=hr.placeholderSymbol,this.colorMap=(Yr=hr.colorMap)!=null?Yr:Sr=>Sr,this.backgroundColorMap=(Zn=hr.backgroundColorMap)!=null?Zn:Sr=>Sr,this.getMacro=hr.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===lu||this.mathstyle.id===El}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(cs[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 kl(this.getRegisterAsDimension(y),b)}getRegisterAsDimension(y){var b;if((b=this.registers)!=null&&b[y]){const E=this.registers[y];return typeof E=="object"&&"glue"in E?E.glue:typeof E=="object"&&"dimension"in E?E:typeof E=="number"?{dimension:E}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(y)}setRegister(y,b){if(b===void 0){delete this.registers[y];return}this.registers[y]=b}evaluate(y){if(!y||!("register"in y))return y;let b=this;if("global"in y&&y.global)for(;b.parent;)b=b.parent;let E=1;"factor"in y&&y.factor!==1&&y.factor!==void 0&&(E=y.factor);const ee=b.getRegister(y.register);if(ee===void 0)return;if(typeof ee=="string")return{string:Number(ee).toString()+ee};if(typeof ee=="number")return{number:E*ee};const re=b.evaluate(ee);if(re!==void 0)return"string"in re?{string:Number(ee).toString()+re.string}:"number"in re?{number:E*re.number}:"dimension"in re?Me(ve({},re),{dimension:E*re.dimension}):"glue"in re?Me(ve({},re),{glue:Me(ve({},re.glue),{dimension:E*re.glue.dimension}),shrink:re.shrink?Me(ve({},re.shrink),{dimension:E*re.shrink.dimension}):void 0,grow:re.grow?Me(ve({},re.grow),{dimension:E*re.grow.dimension}):void 0}):y}toDimension(y){const b=this.evaluate(y);return b===void 0?null:"dimension"in b?b:"glue"in b?b.glue:"number"in b?{dimension:b.number}:null}toEm(y,b){if(y===null)return 0;const E=this.toDimension(y);return E===null?0:Es(E,b)/ws}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}},cu=["body","above","below","superscript","subscript"];function uc(a){return typeof a=="string"&&cu.includes(a)}function Lu(a){return a!==void 0&&Array.isArray(a)&&a.length===2}var sr=class Yc{constructor(y){var b,E,ee,re,le,me;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=ve({},y.style),this.displayContainsHighlight=(re=y.displayContainsHighlight)!=null?re:!1,this.captureSelection=(le=y.captureSelection)!=null?le:!1,this.skipBoundary=(me=y.skipBoundary)!=null?me:!1,y.verbatimLatex!==void 0&&y.verbatimLatex!==null&&(this.verbatimLatex=y.verbatimLatex),y.args&&(this.args=y.args),y.body&&(this.body=y.body),this._changeCounter=0}static createBox(y,b,E){var ee;if(!b)return null;const re=hf(b),le=[];for(const ge of re){const Se=ge[0].style,Pe=pf(y,ge,{style:{color:Se.color,backgroundColor:Se.backgroundColor,fontSize:Se.fontSize}});Pe&&le.push(Pe)}if(le.length===0)return null;const me=((ee=E==null?void 0:E.classes)!=null?ee:"").trim();return le.length===1&&!me&&!(E!=null&&E.type)?le[0].wrap(y):new Vr(le,{classes:me,type:E==null?void 0:E.type}).wrap(y)}static serialize(y,b){return Us.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 Yc({type:"mord",value:y,mode:"math"}):new Yc(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=ve({},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=dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):this.body&&this.command?Ba([ho(this.command,this.bodyToLatex(y)),this.supsubToLatex(y)]):this.body?Ba([this.bodyToLatex(y),this.supsubToLatex(y)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(y){var b;return Us.serialize(this.body,Me(ve({},y),{defaultMode:(b=y.defaultMode)!=null?b:this.latexMode}))}aboveToLatex(y){return Us.serialize(this.above,y)}belowToLatex(y){return Us.serialize(this.below,y)}supsubToLatex(y){let b="";if(y=Me(ve({},y),{defaultMode:"math"}),this.branch("subscript")!==void 0){const E=Us.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=Us.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(uc(y)&&this._branches)return this._branches[y]}get branches(){if(!this._branches)return[];const y=[];for(const b of cu)this._branches[b]&&y.push(b);return y}createBranch(y){return console.assert(uc(y)),uc(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 Lu(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Lu(this.parentBranch)?this.parentBranch[1]:-1}get body(){var y;return(y=this._branches)==null?void 0:y.body}set body(y){this.setChildren(y,"body")}get superscript(){var y;return(y=this._branches)==null?void 0:y.superscript}set superscript(y){this.setChildren(y,"superscript")}get subscript(){var y;return(y=this._branches)==null?void 0:y.subscript}set subscript(y){this.setChildren(y,"subscript")}get above(){var y;return(y=this._branches)==null?void 0:y.above}set above(y){this.setChildren(y,"above")}get below(){var y;return(y=this._branches)==null?void 0:y.below}set below(y){this.setChildren(y,"below")}get computedStyle(){var y,b;const E=typeof this.style.verbatimColor=="string",ee=typeof this.style.verbatimBackgroundColor=="string",re=ve(ve({},(b=(y=this.parent)==null?void 0:y.computedStyle)!=null?b:{}),this.style);return delete re.variant,delete re.variantStyle,ee||delete re.verbatimBackgroundColor,E||delete re.verbatimColor,re}applyStyle(y){this.isDirty=!0,this.style=ve(ve({},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(uc(b)),!uc(b)))return;console.assert(((E=y[0])==null?void 0:E.type)!=="first");const ee=[this.makeFirstAtom(b),...y];this._branches?this._branches[b]=ee:this._branches={[b]:ee};for(const re of y)re.parent=this,re.parentBranch=b;this.isDirty=!0}makeFirstAtom(y){const b=new Yc({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(uc(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 cu)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=dt(this.command,this.mode);if(b!=null&&b.render)return b.render(this,y);const E=new Wa({parent:y},this.style);let ee=this.createBox(E,{classes:this.parent?"":"ML__base"});return ee?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(ee=this.attachSupsub(E,{base:ee})),ee.wrap(E)):null}attachSupsub(y,b){var E;const ee=b.base,re=this.superscript,le=this.subscript;if(!re&&!le)return ee;let me=null,ge=null;const Se=(E=b.isCharacterBox)!=null?E:this.isCharacterBox();let Pe=0;if(re){const Yn=new Wa({parent:y,mathstyle:"superscript"});me=Yc.createBox(Yn,re),Se||(Pe=ee.height-y.metrics.supDrop*Yn.scalingFactor)}let st=0;if(le){const Yn=new Wa({parent:y,mathstyle:"subscript"});ge=Yc.createBox(Yn,le),Se||(st=ee.depth+y.metrics.subDrop*Yn.scalingFactor)}let kt;y.isDisplayStyle?kt=y.metrics.sup1:y.isCramped?kt=y.metrics.sup3:kt=y.metrics.sup2;const Vt=.5/ws/y.scalingFactor;let sn=null;if(ge&&me){Pe=Math.max(Pe,kt,me.depth+.25*y.metrics.xHeight),st=Math.max(st,y.metrics.sub2);const Yn=y.metrics.defaultRuleThickness;if(Pe-me.depth-(ge.height-st)<4*Yn){st=4*Yn-(Pe-me.depth)+ge.height;const Zn=.8*y.metrics.xHeight-(Pe-me.depth);Zn>0&&(Pe+=Zn,st-=Zn)}const Yr=this.isExtensibleSymbol&&ee.italic?-ee.italic:0;sn=new oo({individualShift:[{box:ge,shift:st,marginLeft:Yr},{box:me,shift:-Pe}]}).wrap(y)}else ge&&!me?(st=Math.max(st,y.metrics.sub1,ge.height-.8*ns),sn=new oo({shift:st,children:[{box:ge,marginRight:Vt,marginLeft:this.isCharacterBox()?-ee.italic:0}]})):!ge&&me&&(Pe=Math.max(Pe,kt,me.depth+.25*ns),sn=new oo({shift:-Pe,children:[{box:me,marginRight:Vt}]}));return new Vr([ee,new Vr(sn,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:b.type})}attachLimits(y,b){const E=this.superscript?Yc.createBox(new Wa({parent:y,mathstyle:"superscript"},this.style),this.superscript):null,ee=this.subscript?Yc.createBox(new Wa({parent:y,mathstyle:"subscript"},this.style),this.subscript):null;return!E&&!ee?b.base.wrap(y):td(y,Me(ve({},b),{above:E,below:ee}))}bind(y,b){if(!b||y.isPhantom||this.value==="\u200B")return b;let E=this.parent;for(;E&&!E.captureSelection;)E=E.parent;return E!=null&&E.captureSelection||(this.id||(this.id=y.makeID()),b.atomID=this.id),b}createBox(y,b){var E,ee,re,le;const me=(E=this.value)!=null?E:this.body,ge=(ee=b==null?void 0:b.boxType)!=null?ee:au(this.type);let Se=(re=b==null?void 0:b.classes)!=null?re:"";this.mode==="text"&&(Se+=" ML__text");const Pe=typeof me=="string"||me===void 0?new Vr(me!=null?me:null,{type:ge,isSelected:this.isSelected,mode:this.mode,maxFontSize:y.scalingFactor,style:Me(ve({variant:"normal"},this.style),{fontSize:Math.max(1,y.size+y.mathstyle.sizeDelta)}),letterShapeStyle:y.letterShapeStyle,classes:Se}):(le=Yc.createBox(y,me,{type:ge,classes:Se}))!=null?le:new Vr(null);return y.isTight&&(Pe.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(Pe.italic=0),Pe.right=Pe.italic,this.bind(y,Pe),this.caret&&!this.superscript&&!this.subscript&&(Pe.caret=this.caret),Pe}isDigit(){var y;return this.type==="mord"&&this.value?/^[\d,\.]$/.test(this.value):this.type==="group"&&((y=this.body)==null?void 0:y.length)===2?this.body[0].type==="first"&&this.body[1].value===",":!1}asDigit(){var y;return this.type==="mord"&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:this.type==="group"&&((y=this.body)==null?void 0:y.length)===2&&this.body[0].type==="first"&&this.body[1].value===","?".":""}};function hf(a){let y;const b=[];let E=[];for(const ee of a)if(!y&&!ee.style)E.push(ee);else{const re=ee.computedStyle;y&&re.color===y.color&&re.backgroundColor===y.backgroundColor&&re.fontSize===y.fontSize?E.push(ee):(E.length>0&&b.push(E),E=[ee],y=re)}return E.length>0&&b.push(E),b}function pf(a,y,b){var E,ee,re,le,me;if(!y||y.length===0)return null;const ge=new Wa({parent:a},b.style),Se=!((E=ge.atomIdsSettings)!=null&&E.groupNumbers);let Pe=[];if(y.length===1){const kt=y[0],Vt=kt.render(ge);Vt&&(Se&&kt.isSelected&&Vt.selected(!0),Pe=[Vt])}else{let kt="",Vt=!0;for(const sn of y){(ee=ge.atomIdsSettings)!=null&&ee.groupNumbers&&kt&&(Vt&&sn.isDigit()||!Vt&&Ld(sn))&&(ge.atomIdsSettings.overrideID=kt);const Yn=sn.render(ge);ge.atomIdsSettings&&(ge.atomIdsSettings.overrideID=void 0),Yn&&((re=ge.atomIdsSettings)!=null&&re.groupNumbers&&((sn.isDigit()||Ld(sn))&&(!kt||Vt!==sn.isDigit())&&(Vt=sn.isDigit(),kt=(le=sn.id)!=null?le:""),kt&&(!(sn.isDigit()||Ld(sn))||!sn.hasEmptyBranch("superscript")||!sn.hasEmptyBranch("subscript"))&&(kt="")),Se&&sn.isSelected&&Yn.selected(!0),Pe.push(Yn))}}if(Pe.length===0)return null;const st=new Vr(Pe,Me(ve({isTight:ge.isTight},b),{type:(me=b.type)!=null?me:"lift"}));return st.isSelected=Pe.every(kt=>kt.isSelected),st.wrap(ge)}function Ld(a){return a.mode==="text"}function Id(a){return a.map(y=>y===null?"<null>":Array.isArray(y)&&y[0]instanceof sr?{atoms:y.map(b=>b.toJson())}:typeof y=="object"&&"group"in y?{group:y.group.map(b=>b.toJson())}:y)}var dc=class kp extends sr{constructor(y,b,E){super({type:"text",command:y,mode:"text",displayContainsHighlight:!0}),this.value=b,this.verbatimLatex=b,this.applyStyle(E)}static fromJson(y){return new kp(y.command,y.value,y.style)}render(y){const b=this.createBox(y);return this.caret&&(b.caret=this.caret),b}_serialize(y){var b;return(b=this.verbatimLatex)!=null?b:zt("text",this.value.codePointAt(0))}};function Iu(a,y){if(a.direction===y.direction){const b=a.ranges.length;if(y.ranges.length===b){let E=0;for(;E<b&&ih(a.ranges[E],y.ranges[E])==="equal";)E++;return E===b?"equal":"different"}}return"different"}function ih(a,y){return a[0]===y[0]&&a[1]===y[1]?"equal":"different"}function Bs(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 Sc(a){return typeof a=="number"&&!Number.isNaN(a)}function rd(a){return Array.isArray(a)&&a.length===2}function id(a){return a!=null&&typeof a=="object"&&"ranges"in a&&Array.isArray(a.ranges)}function ah(a,y){const b=a.at(y);let E;if(b){E=b.mode;let ee=b.parent;for(;!E&ⅇ)ee&&(E=ee.mode),ee=ee.parent}return E}function mf(a,y){if(!y)return"";if(typeof y=="string")return y;if(!a||y.after===void 0)return y.value;let b=!1,E=!1,ee=!1,re=!1,le=!1,me=!1,ge=!1,Se=!1,Pe=!1,st=!1,kt=!1,Vt=!1,sn=!1,Yn=!1,Yr=!1,Zn=a[0],hr=0;for(;Zn!=null&&Zn.type&&/^(subsup|placeholder)$/.test(Zn.type);)hr+=1,Zn=a[hr];return b=!Zn||Zn.type==="first",Zn&&(Yn=Zn.mode==="text",E=!Yn&&Zn.type==="mord"&&de.test(Zn.value),ee=!Yn&&Zn.type==="mord"&&/\d+$/.test(Zn.value),re=!Yn&&Zn.isFunction,le=Zn.type==="genfrac",me=Zn.type==="surd",ge=Zn.type==="mbin",Se=Zn.type==="mrel",Pe=Zn.type==="mop"||Zn.type==="operator"||Zn.type==="extensible-symbol",st=Zn.type==="mpunct"||Zn.type==="minner",kt=Zn.type==="array",Vt=Zn.type==="mopen",sn=Zn.type==="mclose"||Zn.type==="leftright",Yr=Zn.type==="space"),y.after.includes("nothing")&&b||y.after.includes("letter")&&E||y.after.includes("digit")&&ee||y.after.includes("function")&&re||y.after.includes("frac")&&le||y.after.includes("surd")&&me||y.after.includes("binop")&&ge||y.after.includes("relop")&&Se||y.after.includes("operator")&&Pe||y.after.includes("punct")&&st||y.after.includes("array")&&kt||y.after.includes("openfence")&&Vt||y.after.includes("closefence")&&sn||y.after.includes("text")&&Yn||y.after.includes("space")&&Yr?y.value:""}function Pd(a,y,b){return b?mf(a,b[y]):""}var gf={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 Pu(a,y){var b;let E=(b=y==null?void 0:y.format)!=null?b:"auto";return E==="auto"&&([E,a]=yf(a)),E==="ascii-math"?(a=a.replace(/\u2061/gu,""),a=a.replace(/\u3016/gu,"{"),a=a.replace(/\u3017/gu,"}"),a=a.replace(/([^\\])sinx/g,"$1\\sin x"),a=a.replace(/([^\\])cosx/g,"$1\\cos x "),a=a.replace(/\u2013/g,"-"),["ascii-math",_s(a,{inlineShortcuts:y==null?void 0:y.inlineShortcuts})]):["latex",a]}function _s(a,y){var b,E,ee;if(!a)return"";let re=!1,le;const me=(b=y.inlineShortcuts)!=null?b:gf;if(!re&&(a.startsWith("^")||a.startsWith("_"))&&(le=Cc(a.slice(1),{inlineShortcuts:me,noWrap:!0}),a=a[0]+"{"+le.match+"}",a+=_s(le.rest,y),re=!0),re||(le=a.match(/^(sqrt|\u221A)(.*)/),le&&(le=Cc(le[2],{inlineShortcuts:me,noWrap:!0}),a="\\sqrt{"+((E=le.match)!=null?E:"\\placeholder{}")+"}",a+=_s(le.rest,y),re=!0)),re||(le=a.match(/^(\\cbrt|\u221B)(.*)/),le&&(le=Cc(le[2],{inlineShortcuts:me,noWrap:!0}),a="\\sqrt[3]{"+((ee=le.match)!=null?ee:"\\placeholder{}")+"}",a+=_s(le.rest,y),re=!0)),re||(le=a.match(/^abs(.*)/),le&&(le=Cc(le[1],{inlineShortcuts:me,noWrap:!0}),a="\\left|"+le.match+"\\right|",a+=_s(le.rest,y),re=!0)),re||(le=a.match(/^["”“](.*?)["”“](.*)/),le&&(a="\\text{"+le[1]+"}",a+=_s(le[2],y),re=!0)),re||(le=a.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),le&&(a=vf(le[1],me),a+=_s(le[2],y),re=!0)),!re&&/^([fgh])[^a-zA-Z]/.test(a)&&(le=Cc(a.slice(1),{inlineShortcuts:me,noWrap:!0}),a=a[1]==="("?a[0]+"\\left("+le.match+"\\right)":a[0]+le.match,a+=_s(le.rest,y),re=!0),re||(le=a.match(/^([a-zA-Z]+)(.*)/),le&&(a=vf(le[1],me),a+=_s(le[2],y),re=!0)),!re)if(le=Cc(a,{inlineShortcuts:me,noWrap:!0}),le.match&&le.rest[0]==="/"){const ge=Cc(le.rest.slice(1),{inlineShortcuts:me,noWrap:!0});ge.match&&(a="\\frac{"+le.match+"}{"+ge.match+"}"+_s(ge.rest,y)),re=!0}else le.match&&(a=a.startsWith("(")?"\\left("+le.match+"\\right)"+_s(le.rest,y):le.match+_s(le.rest,y),re=!0);return re||(le=a.match(/^(\s+)(.*)$/),le&&(a=" "+_s(le[2],y),re=!0)),a}function Cc(a,y){let b="";a=a.trim();let E=a,ee=a.charAt(0),re={"(":")","{":"}","[":"]"}[ee];if(re){let le=1,me=1;for(;me<a.length&&le>0;)a[me]===ee&&le++,a[me]===re&&le--,me++;le===0?(y.noWrap&&ee==="("?b=_s(a.substring(1,me-1),y):(ee==="{"&&re==="}"&&(ee="\\{",re="\\}"),b="\\left"+ee+_s(a.substring(1,me-1),y)+"\\right"+re),E=a.slice(Math.max(0,me))):(b=a.substring(1,me),E="")}else{let le=a.match(/^([a-zA-Z]+)/);if(le){let me=Pd(null,a,y.inlineShortcuts);if(me)return me=me.replace("_{#?}",""),me=me.replace("^{#?}",""),{match:me,rest:a.slice(me.length)}}if(le=a.match(/^([a-zA-Z])/),le)return{match:le[1],rest:a.slice(1)};if(le=a.match(/^(-)?\d+(\.\d*)?/),le)return{match:le[0],rest:a.slice(le[0].length)};/^\\(left|right)/.test(a)||(le=a.match(/^(\\[a-zA-Z]+)/),le&&(E=a.slice(le[1].length),b=le[1]))}return{match:b,rest:E}}function vf(a,y){let b=Pd(null,a,y);return b?(b=b.replace("_{#?}",""),b=b.replace("^{#?}",""),b+=" "):b=a,b}var Td=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function Ec(a){const y=a.trim();for(const b of Td)if(y.startsWith(b[0])&&y.endsWith(b[1]))return[!0,y.substring(b[0].length,y.length-b[1].length)];return[!1,a]}function yf(a){if(a=a.trim(),a.length<=1)return["latex",a];let y;return[y,a]=Ec(a),y?["latex",a]:a.startsWith("`")&&a.endsWith("`")?(a=a.substring(1,a.length-1),["ascii-math",a]):a.includes("\\")?["latex",a]:/\$.+\$/.test(a)?["latex",`\\text{${a}}`]:[void 0,a]}var ad="$$",oh="$$",sh=(a,y,b)=>(Td.some(E=>y.startsWith(E[0])&&y.endsWith(E[1]))||(y=`${ad} ${y} ${oh}`),y),bf=class rh{constructor(y){rh._modes[y]=this}static onPaste(y,b,E){var ee;if(!b.contentEditable&&b.userSelect==="none")return b.model.announce("plonk"),!1;if(typeof E=="string"){const le=new DataTransfer;le.setData("text/plain",E),E=le}const re=new ClipboardEvent("paste",{clipboardData:E,cancelable:!0});return(ee=b.host)!=null&&ee.dispatchEvent(re)?rh._modes[y].onPaste(b,E):!1}static copyToClipboard(y,b){if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const E=y.model,ee=E.selectionIsCollapsed?[0,E.lastOffset]:Bs(E.selection),re=E.getValue(ee,b);navigator.clipboard.writeText(re).then(()=>{},()=>y.model.announce("plonk"))}static onCopy(y,b){var E;if(!b.clipboardData)return;if(!y.contentEditable&&y.userSelect==="none"){y.model.announce("plonk");return}const ee=y.model,re=ee.selectionIsCollapsed?[0,ee.lastOffset]:Bs(ee.selection);let le=ee.getAtoms(re);if(le.every(me=>me.mode==="text"||!me.mode))b.clipboardData.setData("text/plain",le.filter(me=>me instanceof dc).map(me=>me.value).join(""));else if(le.every(me=>me.mode==="latex"))b.clipboardData.setData("text/plain",ee.getAtoms(re,{includeChildren:!0}).map(me=>{var ge;return(ge=me.value)!=null?ge:""}).join(""));else{let me;le.length===1&&le[0].verbatimLatex!==void 0?me=le[0].verbatimLatex:me=ee.getValue(re,"latex-expanded"),b.clipboardData.setData("application/x-latex",me);try{b.clipboardData.setData("text/plain",y.options.onExport(y,me,re))}catch(ge){}if(le.length===1){const ge=le[0];(ge.type==="root"||ge.type==="group")&&(le=ge.body.filter(Se=>Se.type!=="first"))}try{b.clipboardData.setData("application/json+mathlive",JSON.stringify(le.map(ge=>ge.toJson())))}catch(ge){}if((E=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&E.ComputeEngine){const ge=window.MathfieldElement.computeEngine;if(ge)try{const Se=ge.jsonSerializationOptions;ge.jsonSerializationOptions={metadata:["latex"]};const Pe=ge.parse(ee.getValue(re,"latex-unstyled"));ge.jsonSerializationOptions=Se;const st=JSON.stringify(Pe.json);st&&b.clipboardData.setData("application/json",st)}catch(Se){}}}b.preventDefault()}static insert(y,b,E={}){var ee;const re=E.mode==="auto"?y.mode:(ee=E.mode)!=null?ee:y.mode;return rh._modes[re].insert(y,b,E)}onPaste(y,b){return!1}insert(y,b,E){return!1}};bf._modes={};var ma=bf,lh=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],Od={"\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\infty":"alt+[Digit5]","\\differentialD":"alt+d","\\partial":"shift+alt+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"shift+alt+o","\\~":"~"};function _l(a){var y;return((y=a.element)==null?void 0:y.mathfield)===a}function Kl(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=Kl(a);if(!y)return null;const b=y.getBoundingClientRect();return{x:b.right,y:b.bottom,height:b.height}}function Nd(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 Rd(a,y,b){if(!y)return null;const E=a.field.getBoundingClientRect(),ee=y.right-y.left,re=y.bottom-y.top,le=Math.ceil(y.left-E.left+a.field.scrollLeft*b),me=Math.ceil(y.top-E.top);return{left:le,right:le+ee,top:me,bottom:me+re}}function Fd(a){const y=a.getBoundingClientRect(),b=parseInt(getComputedStyle(a).marginRight),E={top:y.top-1,bottom:y.bottom,left:y.left,right:y.right-1+b};if(a.children.length===0||a.tagName.toUpperCase()==="SVG")return E;for(const ee of a.children)if(ee.nodeType===1&&"atomId"in ee.dataset&&!ee.classList.contains("pstrut")){const re=Fd(ee);E.left=Math.min(E.left,re.left),E.right=Math.max(E.right,re.right),E.top=Math.min(E.top,re.top),E.bottom=Math.max(E.bottom,re.bottom)}return E}function uu(a,y){var b,E;if(!y.id)return null;let ee=(E=(b=a.atomBoundsCache)==null?void 0:b.get(y.id))!=null?E:null;if(ee!==null)return ee;const re=a.field.querySelector(`[data-atom-id="${y.id}"]`);return ee=re?Fd(re):null,a.atomBoundsCache&&(ee?a.atomBoundsCache.set(y.id,ee):a.atomBoundsCache.delete(y.id)),ee!=null?ee:null}function xf(a,y,b){const E=new Map;for(const ee of a.model.getAtoms(y,{includeChildren:!0})){if(b!=null&&b.excludeAtomsWithBackground&&ee.style.backgroundColor)continue;const re=a.field,le=re.offsetWidth;let ge=Math.floor(re.getBoundingClientRect().width)/le;ge=isNaN(ge)?1:ge;const Se=Rd(a,uu(a,ee),ge);if(Se){const Pe=Nd(ee);if(E.has(Pe)){const st=E.get(Pe);E.set(Pe,{left:Math.min(st.left,Se.left),right:Math.max(st.right,Se.right),top:Math.min(st.top,Se.top),bottom:Math.max(st.bottom,Se.bottom)})}else E.set(Pe,Se)}}return[...E.values()]}function zd(a,y){return a.model.selection.ranges.reduce((b,E)=>b.concat(...xf(a,E,y)),[])}function _d(a,y){return a==="*"||y==="none"?!0:y==="same-origin"?!window.origin||a===window.origin:typeof y=="function"?y(a):!1}function od(a){let y=0,b=0;const E=a.offsetWidth,ee=a.offsetHeight;for(;a instanceof HTMLElement;)y+=a.offsetTop,b+=a.offsetLeft,a=a.offsetParent;return new DOMRect(b,y,E,ee)}var wf=`@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;
|
|
|
}
|
|
|
`,po=`.ML__container {
|
|
|
min-height: auto !important;
|
|
|
--_hue: var(--hue, 212);
|
|
|
--_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));
|
|
|
--_placeholder-opacity: var(--placeholder-opacity, 0.4);
|
|
|
--_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
|
|
|
}
|
|
|
.ML__sr-only {
|
|
|
position: absolute;
|
|
|
width: 1px;
|
|
|
height: 1px;
|
|
|
margin: -1px;
|
|
|
padding: 0;
|
|
|
overflow: hidden;
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
clip-path: inset(50%);
|
|
|
white-space: nowrap;
|
|
|
border: 0;
|
|
|
}
|
|
|
.ML__is-inline {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__base {
|
|
|
visibility: inherit;
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
cursor: text;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
box-sizing: content-box;
|
|
|
border: 0;
|
|
|
outline: 0;
|
|
|
vertical-align: baseline;
|
|
|
font-weight: inherit;
|
|
|
font-family: inherit;
|
|
|
font-style: inherit;
|
|
|
text-decoration: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__strut,
|
|
|
.ML__strut--bottom {
|
|
|
display: inline-block;
|
|
|
min-height: 0.5em;
|
|
|
}
|
|
|
.ML__small-delim {
|
|
|
font-family: KaTeX_Main;
|
|
|
}
|
|
|
/* Text mode */
|
|
|
.ML__text {
|
|
|
font-family: var(--_text-font-family);
|
|
|
white-space: pre;
|
|
|
}
|
|
|
/* Use cmr for 'math upright' */
|
|
|
.ML__cmr {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-style: normal;
|
|
|
}
|
|
|
.ML__mathit {
|
|
|
font-family: KaTeX_Math;
|
|
|
/* The KaTeX_Math font is italic by default, so the font-style below is only
|
|
|
useful when a fallback font is used
|
|
|
*/
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__mathbf {
|
|
|
font-family: KaTeX_Main;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
/* Lowercase greek symbols should stick to math font when \\mathbf is applied
|
|
|
to match TeX idiosyncratic behavior */
|
|
|
.lcGreek.ML__mathbf {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: normal;
|
|
|
}
|
|
|
.ML__mathbfit {
|
|
|
font-family: KaTeX_Math;
|
|
|
font-weight: bold;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__ams {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
/* Blackboard */
|
|
|
.ML__bb {
|
|
|
font-family: KaTeX_AMS;
|
|
|
}
|
|
|
.ML__cal {
|
|
|
font-family: KaTeX_Caligraphic;
|
|
|
}
|
|
|
.ML__frak {
|
|
|
font-family: KaTeX_Fraktur;
|
|
|
}
|
|
|
.ML__tt {
|
|
|
font-family: KaTeX_Typewriter;
|
|
|
}
|
|
|
.ML__script {
|
|
|
font-family: KaTeX_Script;
|
|
|
}
|
|
|
.ML__sans {
|
|
|
font-family: KaTeX_SansSerif;
|
|
|
}
|
|
|
.ML__series_ul {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_el {
|
|
|
font-weight: 100;
|
|
|
}
|
|
|
.ML__series_l {
|
|
|
font-weight: 200;
|
|
|
}
|
|
|
.ML__series_sl {
|
|
|
font-weight: 300;
|
|
|
}
|
|
|
.ML__series_sb {
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
.ML__bold,
|
|
|
.ML__boldsymbol {
|
|
|
font-weight: 700;
|
|
|
}
|
|
|
.ML__series_eb {
|
|
|
font-weight: 800;
|
|
|
}
|
|
|
.ML__series_ub {
|
|
|
font-weight: 900;
|
|
|
}
|
|
|
.ML__series_uc {
|
|
|
font-stretch: ultra-condensed;
|
|
|
}
|
|
|
.ML__series_ec {
|
|
|
font-stretch: extra-condensed;
|
|
|
}
|
|
|
.ML__series_c {
|
|
|
font-stretch: condensed;
|
|
|
}
|
|
|
.ML__series_sc {
|
|
|
font-stretch: semi-condensed;
|
|
|
}
|
|
|
.ML__series_sx {
|
|
|
font-stretch: semi-expanded;
|
|
|
}
|
|
|
.ML__series_x {
|
|
|
font-stretch: expanded;
|
|
|
}
|
|
|
.ML__series_ex {
|
|
|
font-stretch: extra-expanded;
|
|
|
}
|
|
|
.ML__series_ux {
|
|
|
font-stretch: ultra-expanded;
|
|
|
}
|
|
|
.ML__it {
|
|
|
font-style: italic;
|
|
|
}
|
|
|
.ML__shape_ol {
|
|
|
-webkit-text-stroke: 1px black;
|
|
|
text-stroke: 1px black;
|
|
|
color: transparent;
|
|
|
}
|
|
|
.ML__shape_sc {
|
|
|
font-variant: small-caps;
|
|
|
}
|
|
|
.ML__shape_sl {
|
|
|
font-style: oblique;
|
|
|
}
|
|
|
/* First level emphasis */
|
|
|
.ML__emph {
|
|
|
color: #bc2612;
|
|
|
}
|
|
|
/* Second level emphasis */
|
|
|
.ML__emph .ML__emph {
|
|
|
color: #0c7f99;
|
|
|
}
|
|
|
.ML__highlight {
|
|
|
color: #007cb2;
|
|
|
background: #edd1b0;
|
|
|
}
|
|
|
.ML__center {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__label_padding {
|
|
|
padding: 0 0.5em;
|
|
|
}
|
|
|
.ML__frac-line {
|
|
|
width: 100%;
|
|
|
min-height: 1px;
|
|
|
}
|
|
|
.ML__frac-line:after {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: max(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
/* There's a bug since Chrome 62 where
|
|
|
sub-pixel border lines don't draw at some zoom
|
|
|
levels (110%, 90%).
|
|
|
Setting the min-height used to work around it, but that workaround
|
|
|
broke in Chrome 84 or so.
|
|
|
Setting the background (and the min-height) seems to work for now.
|
|
|
*/
|
|
|
background: currentColor;
|
|
|
box-sizing: content-box;
|
|
|
/* Vuetify sets the box-sizing to inherit
|
|
|
causes the fraction line to not draw at all sizes (see #26) */
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__sqrt-sign {
|
|
|
display: inline-block;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__sqrt-line {
|
|
|
display: inline-block;
|
|
|
height: max(1px, 0.04em);
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__sqrt-line:before {
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: min(-1px, -0.04em);
|
|
|
min-height: max(1px, 0.04em);
|
|
|
/* Ensure the line is visible when printing even if "turn off background images" is on*/
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
background: currentColor;
|
|
|
/* On some versions of Firefox on Windows, the line fails to
|
|
|
draw at some zoom levels, but setting the transform triggers
|
|
|
the hardware accelerated path, which works */
|
|
|
transform: translate(0, 0);
|
|
|
}
|
|
|
.ML__sqrt-line:after {
|
|
|
border-bottom-width: 1px;
|
|
|
content: ' ';
|
|
|
display: block;
|
|
|
margin-top: -0.1em;
|
|
|
}
|
|
|
.ML__sqrt-index {
|
|
|
margin-left: 0.27777778em;
|
|
|
margin-right: -0.55555556em;
|
|
|
}
|
|
|
.ML__delim-size1 {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-size2 {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__delim-size3 {
|
|
|
font-family: KaTeX_Size3;
|
|
|
}
|
|
|
.ML__delim-size4 {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size1 > span {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__delim-mult .delim-size4 > span {
|
|
|
font-family: KaTeX_Size4;
|
|
|
}
|
|
|
.ML__accent-body > span {
|
|
|
font-family: KaTeX_Main;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__accent-vec {
|
|
|
position: relative;
|
|
|
left: 0.24em;
|
|
|
}
|
|
|
/** The markup for a LaTeX formula, either in an editable mathfield or
|
|
|
in a static display.
|
|
|
*/
|
|
|
.ML__latex {
|
|
|
display: inline-block;
|
|
|
direction: ltr;
|
|
|
text-align: left;
|
|
|
text-indent: 0;
|
|
|
text-rendering: auto;
|
|
|
font-family: KaTeX_Main, 'Times New Roman', serif;
|
|
|
font-style: normal;
|
|
|
font-size-adjust: none;
|
|
|
font-stretch: normal;
|
|
|
font-variant-caps: normal;
|
|
|
letter-spacing: normal;
|
|
|
line-height: 1.2;
|
|
|
word-wrap: normal;
|
|
|
word-spacing: normal;
|
|
|
white-space: nowrap;
|
|
|
text-shadow: none;
|
|
|
-webkit-user-select: none;
|
|
|
user-select: none;
|
|
|
width: min-content;
|
|
|
}
|
|
|
.ML__latex .style-wrap {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .mfrac {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .left-right {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist-t {
|
|
|
display: inline-table;
|
|
|
table-layout: fixed;
|
|
|
border-collapse: collapse;
|
|
|
}
|
|
|
.ML__latex .vlist-r {
|
|
|
display: table-row;
|
|
|
}
|
|
|
.ML__latex .vlist {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span {
|
|
|
display: block;
|
|
|
height: 0;
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .vlist > span > span {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .vlist > span > .pstrut {
|
|
|
overflow: hidden;
|
|
|
width: 0;
|
|
|
}
|
|
|
.ML__latex .vlist-t2 {
|
|
|
margin-right: -2px;
|
|
|
}
|
|
|
.ML__latex .vlist-s {
|
|
|
display: table-cell;
|
|
|
vertical-align: bottom;
|
|
|
font-size: 1px;
|
|
|
width: 2px;
|
|
|
min-width: 2px;
|
|
|
}
|
|
|
.ML__latex .msubsup {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .negativethinspace {
|
|
|
display: inline-block;
|
|
|
margin-left: -0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thinspace {
|
|
|
display: inline-block;
|
|
|
width: 0.16667em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .mediumspace {
|
|
|
display: inline-block;
|
|
|
width: 0.22222em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .thickspace {
|
|
|
display: inline-block;
|
|
|
width: 0.27778em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .enspace {
|
|
|
display: inline-block;
|
|
|
width: 0.5em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .quad {
|
|
|
display: inline-block;
|
|
|
width: 1em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .qquad {
|
|
|
display: inline-block;
|
|
|
width: 2em;
|
|
|
height: 0.71em;
|
|
|
}
|
|
|
.ML__latex .llap,
|
|
|
.ML__latex .rlap {
|
|
|
width: 0;
|
|
|
position: relative;
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner,
|
|
|
.ML__latex .rlap > .inner {
|
|
|
position: absolute;
|
|
|
}
|
|
|
.ML__latex .llap > .fix,
|
|
|
.ML__latex .rlap > .fix {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .llap > .inner {
|
|
|
right: 0;
|
|
|
}
|
|
|
.ML__latex .rlap > .inner {
|
|
|
left: 0;
|
|
|
}
|
|
|
.ML__latex .rule {
|
|
|
display: inline-block;
|
|
|
border: solid 0;
|
|
|
position: relative;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line,
|
|
|
.ML__latex .underline .underline-line {
|
|
|
width: 100%;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:before,
|
|
|
.ML__latex .underline .underline-line:before {
|
|
|
content: '';
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
display: block;
|
|
|
}
|
|
|
.ML__latex .overline .overline-line:after,
|
|
|
.ML__latex .underline .underline-line:after {
|
|
|
border-bottom-style: solid;
|
|
|
border-bottom-width: max(1px, 0.04em);
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
print-color-adjust: exact;
|
|
|
content: '';
|
|
|
display: block;
|
|
|
margin-top: -1px;
|
|
|
}
|
|
|
.ML__latex .stretchy {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .stretchy:before,
|
|
|
.ML__latex .stretchy:after {
|
|
|
content: '';
|
|
|
}
|
|
|
.ML__latex .stretchy svg {
|
|
|
display: block;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
height: inherit;
|
|
|
fill: currentColor;
|
|
|
stroke: currentColor;
|
|
|
fill-rule: nonzero;
|
|
|
fill-opacity: 1;
|
|
|
stroke-width: 1;
|
|
|
stroke-linecap: butt;
|
|
|
stroke-linejoin: miter;
|
|
|
stroke-miterlimit: 4;
|
|
|
stroke-dasharray: none;
|
|
|
stroke-dashoffset: 0;
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-2 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 50.2%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-2-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
left: 25%;
|
|
|
width: 50%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-3-of-3 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
right: 0;
|
|
|
width: 25.1%;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .slice-1-of-1 {
|
|
|
display: inline-flex;
|
|
|
position: absolute;
|
|
|
width: 100%;
|
|
|
left: 0;
|
|
|
overflow: hidden;
|
|
|
}
|
|
|
.ML__latex .nulldelimiter {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-group {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .op-symbol {
|
|
|
position: relative;
|
|
|
}
|
|
|
.ML__latex .op-symbol.small-op {
|
|
|
font-family: KaTeX_Size1;
|
|
|
}
|
|
|
.ML__latex .op-symbol.large-op {
|
|
|
font-family: KaTeX_Size2;
|
|
|
}
|
|
|
.ML__latex .mtable .vertical-separator {
|
|
|
display: inline-block;
|
|
|
min-width: 1px;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.ML__latex .mtable .arraycolsep {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-m > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-c > .vlist-t {
|
|
|
text-align: center;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-l > .vlist-t {
|
|
|
text-align: left;
|
|
|
}
|
|
|
.ML__latex .mtable .col-align-r > .vlist-t {
|
|
|
text-align: right;
|
|
|
}
|
|
|
.ML__error {
|
|
|
display: inline-block;
|
|
|
background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);
|
|
|
background-color: hsla(341, 100%, 40%, 0.1);
|
|
|
background-repeat: repeat-x;
|
|
|
background-size: 3px 3px;
|
|
|
padding-bottom: 3px;
|
|
|
background-position: 0 100%;
|
|
|
}
|
|
|
.ML__error > .ML__error {
|
|
|
background: transparent;
|
|
|
padding: 0;
|
|
|
}
|
|
|
.ML__placeholder {
|
|
|
color: var(--_placeholder-color);
|
|
|
opacity: var(--_placeholder-opacity);
|
|
|
padding-left: 0.4ex;
|
|
|
padding-right: 0.4ex;
|
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
|
}
|
|
|
.ML__notation {
|
|
|
position: absolute;
|
|
|
box-sizing: border-box;
|
|
|
line-height: 0;
|
|
|
}
|
|
|
/* This class is used to implement the \`\\mathtip\` and \`\\texttip\` commands
|
|
|
For UI elements, see \`[data-ML__tooltip]\`
|
|
|
*/
|
|
|
.ML__tooltip-container {
|
|
|
position: relative;
|
|
|
transform: scale(0);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content {
|
|
|
position: fixed;
|
|
|
display: inline-table;
|
|
|
visibility: hidden;
|
|
|
z-index: 2;
|
|
|
width: max-content;
|
|
|
max-width: 400px;
|
|
|
padding: 12px 12px;
|
|
|
border-radius: 8px;
|
|
|
background: #616161;
|
|
|
--_selection-color: #fff;
|
|
|
color: #fff;
|
|
|
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
|
|
|
opacity: 0;
|
|
|
transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__text {
|
|
|
white-space: normal;
|
|
|
}
|
|
|
.ML__tooltip-container .ML__tooltip-content .ML__base {
|
|
|
display: contents;
|
|
|
}
|
|
|
.ML__tooltip-container:hover .ML__tooltip-content {
|
|
|
visibility: visible;
|
|
|
opacity: 1;
|
|
|
font-size: 0.75em;
|
|
|
transform: scale(1) translate(0, 3em);
|
|
|
}
|
|
|
`,Sf=`#mathlive-environment-popover.is-visible {
|
|
|
visibility: visible;
|
|
|
}
|
|
|
#mathlive-environment-popover {
|
|
|
--_environment-panel-height: var(--environment-panel-height, 70px);
|
|
|
--_accent-color: var(--accent-color, #aaa);
|
|
|
--_background: var(--environment-panel-background, #fff);
|
|
|
--_button-background: var(--environment-panel-button-background, white);
|
|
|
--_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);
|
|
|
--_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);
|
|
|
--_button-text: var(--environment-panel-button-text, #e3e4e8);
|
|
|
position: absolute;
|
|
|
width: calc(var(--_environment-panel-height) * 2);
|
|
|
height: var(--_environment-panel-height);
|
|
|
border-radius: 4px;
|
|
|
border: 1.5px solid var(--_accent-color);
|
|
|
background-color: var(--_background);
|
|
|
box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));
|
|
|
pointer-events: all;
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons {
|
|
|
height: calc(var(--_environment-panel-height) * 5/4);
|
|
|
width: calc(var(--_environment-panel-height) * 5/4);
|
|
|
margin-left: calc(0px - var(--_environment-panel-height) * 0.16);
|
|
|
margin-top: calc(0px - var(--_environment-panel-height) * 0.19);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .font {
|
|
|
fill: white;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons circle {
|
|
|
fill: #7f7f7f;
|
|
|
transition: fill 300ms;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {
|
|
|
fill-opacity: 1;
|
|
|
fill: var(--_background);
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-width: 3px;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons line {
|
|
|
stroke: var(--_accent-color);
|
|
|
stroke-opacity: 0;
|
|
|
stroke-width: 40;
|
|
|
pointer-events: none;
|
|
|
transition: stroke-opacity 300ms;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {
|
|
|
stroke-opacity: 1;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls {
|
|
|
height: 100%;
|
|
|
width: 50%;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {
|
|
|
width: var(--_environment-panel-height);
|
|
|
height: var(--_environment-panel-height);
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-around;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {
|
|
|
pointer-events: all;
|
|
|
margin-top: 2px;
|
|
|
width: calc(var(--_environment-panel-height) / 3 * 28 / 24);
|
|
|
height: calc(var(--_environment-panel-height) / 3 - 2px);
|
|
|
border-radius: calc(var(--_environment-panel-height) / 25);
|
|
|
background-color: var(--_button-background);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {
|
|
|
background-color: var(--_button-background-hover);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {
|
|
|
stroke: var(--_button-text);
|
|
|
stroke-width: 2;
|
|
|
stroke-linecap: round;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {
|
|
|
fill-opacity: 0;
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {
|
|
|
pointer-events: none;
|
|
|
background-color: var(--_button-background-active);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {
|
|
|
stroke: var(--_accent-color);
|
|
|
}
|
|
|
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {
|
|
|
fill: var(--_accent-color);
|
|
|
}
|
|
|
`,ch=`/* 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;
|
|
|
}
|
|
|
`,du=`/* 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);*/
|
|
|
}
|
|
|
`,uh=`.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));
|
|
|
}
|
|
|
`,sd=`: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;
|
|
|
}
|
|
|
`,bo;function Zc(a){let y="";switch(a){case"mathfield-element":y=`
|
|
|
:host { display: inline-block; background-color: field; color: fieldtext; border-width: 1px; border-style: solid; border-color: #acacac; border-radius: 2px; padding:4px;}
|
|
|
:host([hidden]) { display: none; }
|
|
|
:host([disabled]), :host([disabled]:focus), :host([disabled]:focus-within) { outline: none; opacity: .5; }
|
|
|
:host(:focus), :host(:focus-within) {
|
|
|
outline: Highlight auto 1px; /* For Firefox */
|
|
|
outline: -webkit-focus-ring-color auto 1px;
|
|
|
}
|
|
|
:host([readonly]:focus), :host([readonly]:focus-within),
|
|
|
:host([read-only]:focus), :host([read-only]:focus-within) {
|
|
|
outline: none;
|
|
|
}
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
|
:host(:not(:focus)) :first-child { pointer-events: none !important; }
|
|
|
}`;break;case"core":y=po;break;case"mathfield":y=wf;break;case"environment-popover":y=Sf;break;case"suggestion-popover":y=ch;break;case"keystroke-caption":y=du;break;case"virtual-keyboard":y=uh;break;case"ui":y=sd;break;case"menu":y=dh;break;default:debugger}return y}function fu(a){return bo||(bo={}),bo[a]||(bo[a]=new CSSStyleSheet,bo[a].replaceSync(Zc(a))),bo[a]}var fc;function Bl(a){var y;if(!("adoptedStyleSheets"in document)){if(window.document.getElementById(`mathlive-style-${a}`))return;const b=window.document.createElement("style");b.id=`mathlive-style-${a}`,b.append(window.document.createTextNode(Zc(a))),window.document.head.appendChild(b);return}if(fc||(fc={}),((y=fc[a])!=null?y:0)!==0)fc[a]+=1;else{const b=fu(a);document.adoptedStyleSheets=[...document.adoptedStyleSheets,b],fc[a]=1}}function x(a){if("adoptedStyleSheets"in document&&fc!=null&&fc[a]&&(fc[a]-=1,fc[a]<=0)){const y=bo[a];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(b=>b!==y)}}var z=class Ap extends sr{constructor(y){var b;super(Me(ve({},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 Ap(y)}toJson(){return Me(ve({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(y){var b;const E=new Wa({parent:y,mathstyle:"cramp"},this.style),ee=(b=sr.createBox(E,this.body))!=null?b:new Vr("\u25A2",{style:this.style});let re=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(re=ee.skew);let le=Math.min(ee.height,ns),me;if(this.svgAccent)me=al(this.svgAccent),le=E.metrics.bigOpSpacing1-le;else if(this.accent){const Se=new Vr(this.accent,{fontFamily:"Main-Regular"});Se.italic=0;const Pe=this.accent===8407?" ML__accent-vec":"";me=new Vr(new Vr(Se),{classes:"ML__accent-body"+Pe})}me=new oo({shift:0,children:[{box:new Vr(ee)},-le,{box:me,marginLeft:ee.left+2*re,classes:["ML__center"]}]});const ge=new Vr(me,{type:"lift"});return this.caret&&(ge.caret=this.caret),this.bind(E,ge.wrap(E)),this.attachSupsub(E,{base:ge})}},ne={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},te=Object.fromEntries(Object.entries(ne).map(([a,y])=>[y,a]));function ie(a){var y;return(y={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"\u2223":8739,"\u2225":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[a])!=null?y:a.codePointAt(0)}function fe(a,y,b,E){var ee;const le=new Vr(ie(a),{fontFamily:"Main-Regular",isSelected:E.isSelected,classes:"ML__small-delim "+((ee=E.classes)!=null?ee:"")}).wrap(y);return b&&le.setTop((1-y.scalingFactor)*ts),le}function we(a,y,b,E,ee){var re,le;const me=new Wa({parent:E,mathstyle:"textstyle"},ee==null?void 0:ee.style),ge=new Vr(ie(a),{fontFamily:`Size${y}-Regular`,isSelected:ee.isSelected,classes:((re=ee.classes)!=null?re:"")+` ML__delim-size${y}`,type:(le=ee.type)!=null?le:"ignore"}).wrap(me);return b&&ge.setTop((1-me.scalingFactor)*ts),ge}function Te(a,y,b,E,ee){var re;let le,me,ge,Se;le=ge=Se=ie(a),me=null;let Pe="Size1-Regular";a==="\\vert"||a==="\\lvert"||a==="\\rvert"||a==="\\mvert"||a==="\\mid"?ge=le=Se=8739:a==="\\Vert"||a==="\\lVert"||a==="\\rVert"||a==="\\mVert"||a==="\\|"?ge=le=Se=8741:a==="\\uparrow"?ge=Se=9168:a==="\\Uparrow"?ge=Se=8214:a==="\\downarrow"?le=ge=9168:a==="\\Downarrow"?le=ge=8214:a==="\\updownarrow"?(le=8593,ge=9168,Se=8595):a==="\\Updownarrow"?(le=8657,ge=8214,Se=8659):a==="["||a==="\\lbrack"?(le=9121,ge=9122,Se=9123,Pe="Size4-Regular"):a==="]"||a==="\\rbrack"?(le=9124,ge=9125,Se=9126,Pe="Size4-Regular"):a==="\\lfloor"||a==="\u230A"?(ge=le=9122,Se=9123,Pe="Size4-Regular"):a==="\\lceil"||a==="\u2308"?(le=9121,ge=Se=9122,Pe="Size4-Regular"):a==="\\rfloor"||a==="\u230B"?(ge=le=9125,Se=9126,Pe="Size4-Regular"):a==="\\rceil"||a==="\u2309"?(le=9124,ge=Se=9125,Pe="Size4-Regular"):a==="("||a==="\\lparen"?(le=9115,ge=9116,Se=9117,Pe="Size4-Regular"):a===")"||a==="\\rparen"?(le=9118,ge=9119,Se=9120,Pe="Size4-Regular"):a==="\\{"||a==="\\lbrace"?(le=9127,me=9128,Se=9129,ge=9130,Pe="Size4-Regular"):a==="\\}"||a==="\\rbrace"?(le=9131,me=9132,Se=9133,ge=9130,Pe="Size4-Regular"):a==="\\lgroup"||a==="\u27EE"?(le=9127,Se=9129,ge=9130,Pe="Size4-Regular"):a==="\\rgroup"||a==="\u27EF"?(le=9131,Se=9133,ge=9130,Pe="Size4-Regular"):a==="\\lmoustache"||a==="\u23B0"?(le=9127,Se=9133,ge=9130,Pe="Size4-Regular"):a==="\\rmoustache"||a==="\u23B1"?(le=9131,Se=9129,ge=9130,Pe="Size4-Regular"):a==="\\surd"?(le=57345,Se=9143,ge=57344,Pe="Size4-Regular"):a==="\\ulcorner"?(le=9484,ge=Se=32):a==="\\urcorner"?(le=9488,ge=Se=32):a==="\\llcorner"?(Se=9492,ge=le=32):a==="\\lrcorner"&&(le=9496,ge=le=32);const st=ms(le,Pe),kt=st.height+st.depth,Vt=ms(ge,Pe),sn=Vt.height+Vt.depth,Yn=ms(Se,Pe),Yr=Yn.height+Yn.depth;let Zn=0,hr=1;if(me!==null){const Ps=ms(me,Pe);Zn=Ps.height+Ps.depth,hr=2}const ni=kt+Yr+Zn,Sr=Math.max(0,Math.ceil((y-ni)/(hr*sn))),Ti=ni+Sr*hr*sn;let Ui=ts;b&&(Ui=Ui*E.scalingFactor);const Hi=Ti/2-Ui,ja=.008,mo=[];mo.push({box:new Vr(Se,{fontFamily:Pe})}),mo.push(-ja);const si=new Vr(ge,{fontFamily:Pe});if(me===null)for(let Ps=0;Ps<Sr;Ps++)mo.push({box:si});else{for(let Ps=0;Ps<Sr;Ps++)mo.push({box:si});mo.push(-ja),mo.push({box:new Vr(me,{fontFamily:Pe})}),mo.push(-ja);for(let Ps=0;Ps<Sr;Ps++)mo.push({box:si})}mo.push(-ja),mo.push({box:new Vr(le,{fontFamily:Pe})});let Zl="";Pe==="Size1-Regular"?Zl=" delim-size1":Pe==="Size4-Regular"&&(Zl=" delim-size4");const Tc=new oo({bottom:Hi,children:mo},{classes:Zl});return new Vr(Tc,Me(ve({},ee!=null?ee:{}),{classes:((re=ee==null?void 0:ee.classes)!=null?re:"")+" ML__delim-mult"}))}var He=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),ot=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),jt=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),un=[0,1.2,1.8,2.4,3];function Rn(a,y,b,E){return a===void 0||a==="."?Ii(b,E.classes):(a==="<"||a==="\\lt"||a==="\u27E8"?a="\\langle":(a===">"||a==="\\gt"||a==="\u27E9")&&(a="\\rangle"),He.has(a)||jt.has(a)?we(a,y,!1,b,E):ot.has(a)?Te(a,un[y],!1,b,E):(console.assert(!1,"Unknown delimiter '"+a+"'"),null))}var On=[{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}],lr=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],Dr=[{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 ai(a){return a.type==="small"?"Main-Regular":a.type==="large"?"Size"+a.size+"-Regular":(console.assert(a.type==="stack"),"Size4-Regular")}function Ci(a,y,b,E){const ee={"-4":0,"-3":1,0:2}[E.mathstyle.sizeDelta];for(let re=ee;re<b.length&&b[re].type!=="stack";re++){const le=ms(a,ai(b[re]));if(le.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let me=le.height+le.depth;if(b[re].type==="small"&&(b[re].mathstyle==="scriptscriptstyle"?me*=Math.max(cs[Math.max(1,E.size-2)],E.minFontScale):b[re].mathstyle==="scriptstyle"&&(me*=Math.max(cs[Math.max(1,E.size-1)],E.minFontScale))),me>y)return b[re]}return b[b.length-1]}function Bi(a,y,b,E,ee,re){if(!y||y.length===0||y===".")return Ii(ee);y==="<"||y==="\\lt"?y="\\langle":(y===">"||y==="\\gt")&&(y="\\rangle");let le;jt.has(y)?le=On:He.has(y)?le=Dr:le=lr;const me=Ci(ie(y),b,le,ee),ge=new Wa({parent:ee,mathstyle:me.mathstyle},re==null?void 0:re.style);return me.type==="small"?fe(y,ge,E,Me(ve({},re),{type:a})):me.type==="large"?we(y,me.size,E,ge,Me(ve({},re),{type:a})):(console.assert(me.type==="stack"),Te(y,b,E,ge,Me(ve({},re),{type:a})))}function gi(a,y,b,E,ee,re){if(y===".")return Ii(ee,re==null?void 0:re.classes);const le=ts*ee.scalingFactor,me=901,ge=5/ws,Se=Math.max(b-le,E+le),Pe=Math.max(Se/500*me,2*Se-ge);return Bi(a,y,Pe,!0,ee,re)}function Ii(a,y){const b=new Vr(null,{classes:" nulldelimiter "+(y!=null?y:""),type:"ignore"});return b.width=a.getRegisterAsEm("nulldelimiterspace"),b.wrap(new Wa({parent:a,mathstyle:"textstyle"}))}var Ji=class Bp extends sr{constructor(y){var b;super({type:"placeholder",command:"\\placeholder",mode:(b=y==null?void 0:y.mode)!=null?b:"math",style:y==null?void 0:y.style}),this.captureSelection=!0}static fromJson(y){return new Bp(y)}toJson(){return super.toJson()}render(y){let b;return this.value=y.placeholderSymbol,typeof y.renderPlaceholder=="function"?b=y.renderPlaceholder(y):b=this.createBox(y),this.caret&&(b.classes+=" ML__placeholder-selected"),b}_serialize(y){return y.skipPlaceholders?"":"\\placeholder{}"}},ea=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],Na=["cases","dcases","rcases"],xo=["align","align*","aligned","gather","gathered","split"],Ms=["array","subequations","eqnarray"];function Ko(a){return Ms.concat(xo).concat(Na).concat(ea).includes(a)}function qs(a){return ea.includes(a)}function $s(a){return Na.includes(a)}function ds(a){return xo.includes(a)}function el(a,y,b){let E=0;for(const Se of b)"align"in Se&&(E+=1);let ee=0;const re=[];for(const Se of y){let Pe=0;for(ee=Math.max(ee,Math.min(Se.length,E));Pe<Se.length;){const st=[],kt=Math.min(Se.length,Pe+E);for(;Pe<kt;){const Vt=Se[Pe];Vt.length===0?st.push([new sr({type:"first",mode:a.mode})]):Vt[0].type!=="first"?st.push([new sr({type:"first",mode:a.mode}),...Vt]):(console.assert(!Vt.slice(1).some(sn=>sn.type==="first")),st.push(Vt)),Pe+=1}re.push(st)}}re.length>0&&re[re.length-1].length===1&&re[re.length-1][0].length===1&&re[re.length-1][0][0].type==="first"&&re.pop();const le=[];for(const Se of re){if(Se.length!==ee)for(let Pe=Se.length;Pe<ee;Pe++)Se.push([new sr({type:"first",mode:a.mode}),new Ji]);le.push(Se)}let me=0,ge=0;for(const Se of le){ge=0;for(const Pe of Se){for(const st of Pe)st.parent=a,st.parentBranch=[me,ge];ge+=1}me+=1}return a.isDirty=!0,le}var ya=class Dp extends sr{constructor(y,b,E,ee={}){var re;super({type:"array"}),this.environmentName=y,this.rowGaps=E,ee.mathstyleName&&(this.mathstyleName=ee.mathstyleName),ee.columns&&(ee.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=ee.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=el(this,b,this.colFormat),ee.leftDelim&&(this.leftDelim=ee.leftDelim),ee.rightDelim&&(this.rightDelim=ee.rightDelim),ee.arraycolsep!==void 0&&(this.arraycolsep=ee.arraycolsep),this.colSeparationType=ee.colSeparationType,ee.arraystretch!==void 0&&(this.arraystretch=ee.arraystretch),this.minColumns=(re=ee.minColumns)!=null?re:1}static fromJson(y){return new Dp(y.environmentName,y.array,y.rowGaps,y)}toJson(){const y=Me(ve({},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(Lu(y))return(b=this.array[y[0]][y[1]])!=null?b:void 0}createBranch(y){var b;return Lu(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(uc(y))return super.removeBranch(y);const b=this.branch(y);return this.array[y[0]][y[1]]=void 0,b.forEach(E=>{E.parent=void 0,E.parentBranch=void 0}),console.assert(b[0].type==="first"),b.shift(),this.isDirty=!0,b}get hasChildren(){return this.children.length>0}get children(){const y=[];for(const b of this.array)for(const E of b)if(E)for(const ee of E)y.push(...ee.children),y.push(ee);return[...y,...super.children]}render(y){var b,E,ee,re,le,me;const ge=new Wa({parent:y,mathstyle:this.mathstyleName},this.style),Se=ge.getRegisterAsEm("arrayrulewidth"),Pe=ge.getRegisterAsEm("arraycolsep"),st=ge.getRegisterAsEm("doublerulesep"),kt=(E=(b=this.arraystretch)!=null?b:ge.getRegisterAsNumber("arraystretch"))!=null?E:1;let Vt=typeof this.arraycolsep=="number"?this.arraycolsep:Pe;this.colSeparationType==="small"&&(Vt=.2778*(new Wa({parent:y,mathstyle:"scriptstyle"}).scalingFactor/y.scalingFactor));const sn=kt*il,Yn=.7*sn,Yr=.3*sn;let Zn=0;const hr=[];let ni=0;const Sr=this.array.length;for(let So=0;So<Sr;++So){const os=this.array[So];ni=Math.max(ni,os.length);const Ts=new Wa({parent:ge,mathstyle:this.mathstyleName},this.style);let Oc=Yn/Ts.scalingFactor,Nc=Yr/Ts.scalingFactor;const Rc={cells:[],height:0,depth:0,pos:0};for(const mc of os){const e0=(ee=sr.createBox(Ts,mc,{type:"ignore"}))!=null?ee:new Vr(null,{type:"ignore"});Nc=Math.max(Nc,e0.depth),Oc=Math.max(Oc,e0.height),Rc.cells.push(e0)}let Fc=(re=kl(this.rowGaps[So]))!=null?re:0;Fc>0&&(Fc+=Yr,Nc=Math.max(Nc,Fc),Fc=0),So<Sr-1&&!qs(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(Nc+=ge.getRegisterAsEm("jot")),Rc.height=Oc,Rc.depth=Nc,Zn+=Oc,Rc.pos=Zn,Zn+=Nc+Fc,hr.push(Rc)}const Ti=Zn/2+ts,Ui=[];for(let So=0;So<ni;So++){const os=[];for(const Ts of hr){const Oc=Ts.cells[So];Oc.depth=Ts.depth,Oc.height=Ts.height,os.push({box:Oc,shift:Ts.pos-Ti})}os.length>0&&Ui.push(new oo({individualShift:os}))}const Hi=[];let ja=!1,mo=!1,si=0,Zl=!this.leftDelim;const{colFormat:Tc}=this;for(const So of Tc){if("align"in So&&si>=Ui.length)break;if("align"in So)ja?Hi.push(Ho(2*Vt)):(mo||Zl)&&Hi.push(Ho(Vt)),Hi.push(new Vr(Ui[si],{classes:"col-align-"+So.align})),si++,ja=!0,mo=!1,Zl=!1;else if("gap"in So){if(typeof So.gap=="number")Hi.push(Ho(So.gap));else{const os=Yo(y,hr,Ti,So.gap);os&&Hi.push(os)}ja=!1,mo=!1,Zl=!1}else if("separator"in So){const os=new Vr(null,{classes:"vertical-separator"});os.height=Zn,os.setStyle("height",Zn,"em"),os.setStyle("border-right",`${Se}em ${So.separator} currentColor`),os.setStyle("vertical-align",-(Zn-Ti),"em");let Ts=0;mo?Ts=st-Se:ja&&(Ts=Vt-Se),os.left=Ts,Hi.push(os),ja=!1,mo=!0,Zl=!1}}ja&&!this.rightDelim&&Hi.push(Ho(Vt));const ec=new Vr(Hi,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(ec.caret=this.caret),this.bind(y,ec);const Ps=ec.height,jl=ec.depth,gl=this.bind(y,new Vr([this.bind(y,gi("open",(le=this.leftDelim)!=null?le:".",Ps,jl,ge,{isSelected:this.isSelected})),ec,this.bind(y,gi("close",(me=this.rightDelim)!=null?me:".",Ps,jl,ge,{isSelected:this.isSelected}))],{type:"ord"}));return gl?(gl.setStyle("display","inline-block"),this.caret&&(gl.caret=this.caret),this.bind(y,this.attachSupsub(y,{base:gl}))):null}_serialize(y){var b;const E=[];if(this.environmentName==="lines"?E.push("{\\displaylines"):E.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(E.push("{"),this.colFormat!==void 0)for(const ee of this.colFormat)"align"in ee&&typeof ee.align=="string"?E.push(ee.align):"separator"in ee&&ee.separator==="solid"?E.push("|"):"separator"in ee&&ee.separator==="dashed"&&E.push(":");E.push("}")}for(let ee=0;ee<this.array.length;ee++){for(let re=0;re<this.array[ee].length;re++)re>0&&E.push(" & "),E.push(sr.serialize(this.array[ee][re],y));if(ee<this.array.length-1){const re=this.rowGaps[ee];re!=null&&re.dimension?E.push(`\\\\[${re.dimension} ${(b=re.unit)!=null?b:"pt"}] `):E.push("\\\\ ")}}return this.environmentName==="lines"?E.push("}"):E.push(`\\end{${this.environmentName}}`),Ba(E)}getCell(y,b){return this.array[y][b]}setCell(y,b,E){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[y][b]!==void 0);for(const re of this.array[y][b])re.parent=void 0,re.parentBranch=void 0;let ee=E;(E.length===0||E[0].type!=="first")&&(ee=[new sr({type:"first",mode:this.mode}),...E]),this.array[y][b]=ee;for(const re of ee)re.parent=this,re.parentBranch=[y,b];this.isDirty=!0}addRowBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(Go(this));this.array.splice(y,0,b);for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const le of re)le.parentBranch=[E,ee]}this.isDirty=!0}addRowAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));const b=[];for(let E=0;E<this.colCount;E++)b.push(Go(this));this.array.splice(y+1,0,b);for(let E=y+1;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const le of re)le.parentBranch=[E,ee]}this.isDirty=!0}removeRow(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>y);const b=this.array.splice(y,1);for(const E of b)for(const ee of E)if(ee)for(const re of ee)re.parent=void 0,re.parentBranch=void 0;for(let E=y;E<this.rowCount;E++)for(let ee=0;ee<this.colCount;ee++){const re=this.array[E][ee];if(re)for(const le of re)le.parentBranch=[E,ee]}this.isDirty=!0}addColumnBefore(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y,0,Go(this));for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const re of ee)re.parentBranch=[b,E]}this.isDirty=!0}addColumnAfter(y){console.assert(this.type==="array"&&Array.isArray(this.array));for(const b of this.array)b.splice(y+1,0,Go(this));for(let b=0;b<this.rowCount;b++)for(let E=y+1;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const re of ee)re.parentBranch=[b,E]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(y){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>y);for(const b of this.array){const E=b.splice(y,1);for(const ee of E)if(ee)for(const re of ee)re.parent=void 0,re.parentBranch=void 0}for(let b=0;b<this.rowCount;b++)for(let E=y;E<this.colCount;E++){const ee=this.array[b][E];if(ee)for(const re of ee)re.parentBranch=[b,E]}this.isDirty=!0}get cells(){const y=[];for(const b of this.array)for(const E of b)E&&y.push(E.filter(ee=>ee.type!=="first"));return y}};function Go(a){const y=new sr({type:"first",mode:a.mode});y.parent=a;const b=new Ji;return b.parent=a,[y,b]}function Ho(a){const y=new Vr(null,{classes:"arraycolsep"});return y.width=a,y}function Yo(a,y,b,E){if(!E)return null;const ee=[];for(const re of y){const le=sr.createBox(a,E,{type:"ignore"});le&&(le.depth=re.depth,le.height=re.height,ee.push({box:le,shift:re.pos-b}))}return new oo({individualShift:ee}).wrap(a)}var is=class Lp extends sr{constructor(y){super({mode:y.mode,command:y.command,style:y.style,body:y.body,type:"box"}),this.framecolor=y.framecolor,this.backgroundcolor=y.backgroundcolor,this.padding=y.padding,this.offset=y.offset,this.border=y.border}static fromJson(y){return new Lp(y)}toJson(){return Me(ve({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(y){var b,E,ee,re;const le=sr.createBox(y,this.body,{type:"lift"});if(!le)return null;const me=y.toEm((b=this.offset)!=null?b:{dimension:0});le.depth+=me,le.setStyle("display","inline-block"),le.setStyle("position","relative"),le.setStyle("height",Math.floor(100*le.height+le.depth)/100,"em"),le.setStyle("vertical-align",-Math.floor(100*le.height)/100,"em");const ge=new Wa({parent:y},this.style),Se=ge.toEm((E=this.padding)!=null?E:{register:"fboxsep"}),Pe=new Vr(null,{classes:"ML__box"});Pe.height=le.height+Se,Pe.depth=le.depth+Se,Pe.setStyle("box-sizing","border-box"),Pe.setStyle("position","absolute"),Pe.setStyle("top",-Se+.3,"em"),Pe.setStyle("left",0),Pe.setStyle("height",Pe.height+Pe.depth,"em"),Pe.setStyle("width","100%"),this.backgroundcolor&&Pe.setStyle("background-color",(ee=ge.toColor(this.backgroundcolor))!=null?ee:"transparent"),this.framecolor&&Pe.setStyle("border",`${ge.getRegisterAsEm("fboxrule",2)}em solid ${(re=ge.toColor(this.framecolor))!=null?re:"black"}`),this.border&&Pe.setStyle("border",this.border);const st=new Vr([Pe,le],{type:"lift"});return st.setStyle("display","inline-block"),st.setStyle("position","relative"),st.setStyle("line-height",0),st.height=le.height+Se+(me>0?me:0),st.depth=le.depth+Se+(me<0?-me:0),st.setStyle("padding-left",Se,"em"),st.setStyle("padding-right",Se,"em"),st.setStyle("height",Math.floor(100*(le.height+le.depth+2*Se+Math.abs(me)))/100,"em"),st.setStyle("margin-top",-Se,"em"),st.setStyle("top",Math.floor(100*(le.depth-le.height+2*Se-me))/100,"em"),st.setStyle("vertical-align",Math.floor(100*(le.depth+2*Se))/100,"em"),this.caret&&(st.caret=this.caret),this.attachSupsub(y,{base:st})}_serialize(y){return y.skipStyles?Ba([this.bodyToLatex(y),this.supsubToLatex(y)]):super._serialize(y)}},jc=class Ip extends sr{constructor(y,b){var E;super({type:"composition",mode:(E=b==null?void 0:b.mode)!=null?E:"math",value:y})}static fromJson(y){return new Ip(y.value,y)}toJson(){return super.toJson()}get computedStyle(){return{}}render(y){const b=new Vr(this.value,{classes:"ML__composition",type:"composition"});return this.bind(y,b),this.caret&&(b.caret=this.caret),b}_serialize(y){return""}},sl=class Pp extends sr{constructor(y){super({type:"error",value:y,command:y,mode:"math"}),this.verbatimLatex=y}static fromJson(y){return new Pp(y.command)}toJson(){return super.toJson()}render(y){const b=this.createBox(y,{classes:"ML__error"});return this.caret&&(b.caret=this.caret),b}},Ds=class Tp extends sr{constructor(y,b,E){super({type:"group",mode:b,style:E}),this.body=y,this.boxType=y.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,y&&y.length===1&&y[0].command===","&&(this.captureSelection=!0)}static fromJson(y){return new Tp(y.body,y.mode,y.style)}render(y){const b=sr.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=dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):`{${this.bodyToLatex(y)}}`}},no=class Op extends sr{constructor(y,b,E){super({type:"leftright",style:E.style,displayContainsHighlight:!0}),this.variant=y,this.body=b,this.leftDelim=E.leftDelim,this.rightDelim=E.rightDelim}static fromJson(y){var b;return new Op((b=y.variant)!=null?b:"",y.body,y)}toJson(){const y=super.toJson();return this.variant&&(y.variant=this.variant),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),y}_serialize(y){var b,E;const ee=this.matchingRightDelim();return this.variant==="left...right"?Ba(["\\left",(b=this.leftDelim)!=null?b:".",this.bodyToLatex(y),"\\right",ee]):this.variant==="mleft...mright"?Ba(["\\mleft",(E=this.leftDelim)!=null?E:".",this.bodyToLatex(y),"\\mright",ee]):Ba([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(y),ee])}matchingRightDelim(){var y,b;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const E=(y=this.leftDelim)!=null?y:".";return(b=ne[E])!=null?b:E}render(y){var b,E;const ee=new Wa({parent:y},this.style);console.assert(this.body!==void 0);const re=new Wa({parent:y,mathstyle:"textstyle"},this.style),le=(b=sr.createBox(ee,this.body,{type:"inner"}))!=null?b:new Vr(null,{type:"inner"}),me=le.height/re.scalingFactor,ge=le.depth/re.scalingFactor,Se=[];if(this.leftDelim&&Se.push(this.bind(re,gi("open",this.leftDelim,me,ge,re,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),le&&(gs(le.children,this,ee,me,ge),Se.push(le)),this.rightDelim){let Vt=this.containsCaret?" ML__contains-caret":"",sn=this.rightDelim;sn==="?"&&(ee.smartFence?(sn=this.matchingRightDelim(),Vt+=" ML__smart-fence__close"):sn="."),Se.push(this.bind(re,gi("close",sn,me,ge,re,{isSelected:this.isSelected,classes:Vt+" ML__close",mode:this.mode,style:this.style})))}let Pe=this.variant==="mleft...mright";const st=this.leftSibling;st&&(!Pe&&st.isFunction&&(Pe=!0),!Pe&&st.type==="subsup"&&((E=st.leftSibling)!=null&&E.isFunction)&&(Pe=!0));const kt=new Vr(Se,{type:Pe?"close":"inner",classes:"left-right"});return kt.setStyle("margin-top",`${-le.depth}em`),kt.setStyle("height",`${le.height+le.depth}em`),this.caret&&(kt.caret=this.caret),this.bind(ee,kt.wrap(ee))}};function gs(a,y,b,E,ee){if(a)for(let re=0;re<a.length;re++){const le=a[re];le.type==="middle"?(a[re]=y.bind(b,gi("inner",le.value,E,ee,b,{isSelected:y.isSelected})),a[re].caret=le.caret,a[re].isSelected=le.isSelected,a[re].cssId=le.cssId,a[re].htmlData=le.htmlData,a[re].htmlStyle=le.htmlStyle,a[re].attributes=le.attributes,a[re].cssProperties=le.cssProperties):le.children&&gs(le.children,y,b,E,ee)}}var ld=class Np extends sr{constructor(y,b){var E;super({type:"macro",command:y,style:b.style}),this.body=b.body,b.captureSelection===void 0?b.args?this.captureSelection=!1:this.captureSelection=!0:this.captureSelection=b.captureSelection,this.macroArgs=b.args,this.expand=(E=b.expand)!=null?E:!1}static fromJson(y){return new Np(y.command,y)}toJson(){const y=super.toJson();return this.expand&&(y.expand=!0),this.captureSelection!==void 0&&(y.captureSelection=this.captureSelection),this.macroArgs&&(y.args=this.macroArgs),y}_serialize(y){var b;return y.expandMacro&&this.expand?this.bodyToLatex(y):this.command+((b=this.macroArgs)!=null?b:"")}render(y){const b=sr.createBox(y,this.body);return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},hc=class Rp extends sr{constructor(){super({type:"macro-argument"})}static fromJson(y){return new Rp}toJson(){return super.toJson()}_serialize(y){return""}render(y){return null}},kc=class Fp extends sr{constructor(y,b,E=!1,ee,re){var le;super({type:"prompt",mode:(le=re==null?void 0:re.mode)!=null?le:"math",style:re==null?void 0:re.style,command:"\\placeholder"}),this.body=ee,this.correctness=b,this.placeholderId=y,this.locked=E,this.captureSelection=this.locked}static fromJson(y){return new Fp(y.placeholderId,y.correctness,y.locked,y.body,y)}toJson(){const y=super.toJson();return this.placeholderId&&(y.placeholderId=this.placeholderId),this.body||delete y.body,this.body&&(y.body=this.body.filter(b=>b.type!=="first").map(b=>b.toJson())),this.correctness&&(y.correctness=this.correctness),y.locked=this.locked,y}render(y){const b=new Wa({parent:y}),E=b.getRegisterAsEm("fboxsep"),ee=E,re=E,le=sr.createBox(y,this.body);if(!le)return null;le.height||(le.height=b.metrics.xHeight),le.setStyle("vertical-align",-le.height,"em"),this.correctness==="correct"?le.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&le.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const me=new Vr(le,{type:"ord"});me.setStyle("display","inline-block"),me.setStyle("height",le.height+le.depth,"em"),me.setStyle("vertical-align",-re,"em");let ge="ML__prompt ";this.locked?ge+=" ML__lockedPromptBox ":ge+=" ML__editablePromptBox ",this.correctness==="correct"?ge+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(ge+=" ML__incorrectPromptBox "),this.containsCaret&&(ge+=" ML__focusedPromptBox ");const Se=new Vr(null,{classes:ge,attributes:{part:"prompt"}});Se.height=me.height+re,Se.depth=me.depth+re,Se.width=me.width+2*ee,Se.setStyle("box-sizing","border-box"),Se.setStyle("position","absolute"),Se.setStyle("height",me.height+me.depth+2*re,"em"),ee===0&&Se.setStyle("width","100%"),ee!==0&&(Se.setStyle("width",`calc(100% + ${2*ee}em)`),Se.setStyle("top",E,"em"),Se.setStyle("left",-ee,"em")),(!this.body||this.body.length===1)&&(Se.width=3*ee,Se.setStyle("width",`calc(100% + ${3*ee}em)`),Se.setStyle("left",-1.5*ee,"em"));let Pe="";this.correctness==="incorrect"&&(Pe+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),Pe&&(Se.svgOverlay=Pe);const st=new Vr([Se,me],{classes:"ML__prompt-atom"});return st.setStyle("position","relative"),st.setStyle("display","inline-block"),st.setStyle("line-height",0),st.height=me.height+re+.2,st.depth=me.depth+re,st.left=ee,st.right=ee,st.setStyle("height",me.height+re,"em"),st.setStyle("top",me.depth-me.height,"em"),st.setStyle("vertical-align",me.depth+re,"em"),st.setStyle("margin-left",.5,"em"),st.setStyle("margin-right",.5,"em"),this.caret&&(st.caret=this.caret),this.bind(b,this.attachSupsub(y,{base:st}))}_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]"),ho(ee,E)}},Jl=class zp extends sr{constructor(y){super({type:"subsup",style:y==null?void 0:y.style}),this.subsupPlacement="auto"}static fromJson(y){const b=new zp(y);for(const E of cu)y[E]&&b.setChildren(y[E],E);return b}render(y){var b;const E=new Wa({parent:y,isPhantom:!0}),ee=this.leftSibling,re=(b=ee.render(E))!=null?b:new Vr(null),le=new Vr(null);return le.height=re.height,le.depth=re.depth,this.attachSupsub(y,{base:le,isCharacterBox:ee.isCharacterBox(),type:"ignore"})}_serialize(y){return this.supsubToLatex(y)}};function fs(a){return a?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(a):!1}var Vc=class{constructor(a,y,b){this.errors=[],this.index=0,this.endCount=0;var E,ee,re,le;b!=null||(b={}),this.tokens=a,this.context=y instanceof Wa&&!(b!=null&&b.parseMode)&&!b.mathstyle?y:new Wa({from:y,mathstyle:b.mathstyle},b.style),this.args=(E=b.args)!=null?E:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(ee=b.style)!=null?ee:{},parseMode:(re=b.parseMode)!=null?re:"math",mathstyle:(le=b.mathstyle)!=null?le:"displaystyle",tabular:!1}}beginContext(a){var y,b,E;const ee=this.parsingContext,re={parent:ee,mathlist:[],style:ve({},ee.style),parseMode:(y=a==null?void 0:a.mode)!=null?y:ee.parseMode,mathstyle:(b=a==null?void 0:a.mathstyle)!=null?b:ee.mathstyle,tabular:(E=a==null?void 0:a.tabular)!=null?E:!1};this.parsingContext=re}endContext(){this.parsingContext=this.parsingContext.parent}onError(a){this.errors.push(ve({before:pl(this.tokens.slice(this.index,this.index+10)),after:pl(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 ve({},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 Jl({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=dt(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?Ls(y,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new Ji({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(a){let y=this.tokens[this.index];for(;y&&y!==a;)y=this.tokens[++this.index];y===a&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(a){const y=this.index;let b=this.end(),E="";for(;!b;){const re=this.get();fs(re)?(E+=re,b=this.end()||E.length>=a.length):b=!0}const ee=a.toUpperCase()===E.toUpperCase();return ee||(this.index=y),ee}scanString(){let a="";for(;!this.end();){const y=this.peek();if(y==="]")return a;if(y==="<space>")a+=" ";else if(y.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),a+=y.substring(1);else if(fs(y))a+=y;else return a;this.next()}return a}scanBalancedString(){let a="",y=this.end(),b=1;for(;!y;){const E=this.get();E==="<space>"?a+=" ":E==="<{>"?(a+="{",b+=1):E==="<}>"?(b-=1,b>0?a+="}":this.index-=1):E==="<$>"?a+="$":E==="<$$>"?a+="$$":a+=E,y=b===0||this.end()}return a}scanLiteralGroup(){var a;if(!this.match("<{>"))return"";let y="",b=1;for(;b>0&&!this.end();){const E=this.get();E==="<}>"?(b-=1,b>0&&(y+="}")):E==="<{>"?(b+=1,y+="{"):(/\\[a-zA-Z]+$/.test(y)&&/^[a-zA-Z]/.test(E)&&(y+=" "),y+=(a={"<space>":" ","<$$>":"$$","<$>":"$"}[E])!=null?a:E)}return y}scanNumber(a=!0){var y,b;let E=!1,ee=this.peek();for(;ee==="<space>"||ee==="+"||ee==="-";)this.get(),ee==="-"&&(E=!E),ee=this.peek();a=!!a;let re=10,le=/\d/;if(this.match("'"))re=8,le=/[0-7]/,a=!0;else if(this.match('"'))re=16,le=/[\dA-F]/,a=!0;else if(this.match("x"))re=16,le=/[\dA-Fa-f]/,a=!0;else if(this.match("`"))return ee=this.get(),ee?ee.length===2&&ee.startsWith("\\")?{number:(E?-1:1)*((y=ee.codePointAt(1))!=null?y:0),base:"alpha"}:{number:(E?-1:1)*((b=ee.codePointAt(0))!=null?b:0),base:"alpha"}:null;let me="";for(;this.hasPattern(le);)me+=this.get();if(!a&&(this.match(".")||this.match(",")))for(me+=".";this.hasPattern(le);)me+=this.get();const ge=a?Number.parseInt(me,re):Number.parseFloat(me);return Number.isNaN(ge)?null:{number:E?-ge:ge,base:re===16?"hexadecimal":re===8?"octal":"decimal"}}scanRegister(){var a;const y=this.index,b=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return b;let E=!1;if(b===null)for(;;){const re=this.peek();if(re==="-")E=!E;else if(re!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const re=this.get();return re.startsWith("\\")?b?{register:re,global:!0,factor:(E?-1:1)*b.number}:E?{register:re,global:!0,factor:-1}:{register:re,global:!0}:(this.index=y,null)}let ee=this.get();return ee!=null&&ee.startsWith("\\")?(ee=ee.substring(1),this.context.registers[ee]?!E||b!==null?{register:ee,factor:(E?-1:1)*((a=b==null?void 0:b.number)!=null?a:1)}:{register:ee}:(this.index=y,null)):(this.index=y,null)}scanValue(){const a=this.scanRegister();if(a)return a;const y=this.index,b=this.scanGlueOrDimen();if(b&&("unit"in b||"glue"in b&&"unit"in b.glue))return b;this.index=y;const E=this.scanNumber();if(E)return E;if(this.end()||!fs(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=Ie(a);if(!y)return this.onError({code:"unknown-environment",arg:a}),null;const b=[];if(y.params)for(const me of y.params)if(me.isOptional)b.push(this.scanOptionalArgument(me.type));else{const ge=this.scanArgument(me.type);ge||this.onError({code:"missing-argument",arg:a}),b.push(ge)}this.beginContext({tabular:y.tabular});const E=[],ee=[];let re=[],le=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:a}),le=!0),!le&&this.match("\\end")&&(this.scanArgument("string")!==a&&this.onError({code:"unbalanced-environment",arg:a}),le=!0),!le)if(this.matchColumnSeparator())re.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){re.push(this.mathlist),this.mathlist=[];let me=null;this.skipWhitespace(),this.match("[")&&(me=this.scanDimen(),this.skipWhitespace(),this.match("]")),ee.push(me!=null?me:{dimension:0}),E.push(re),re=[]}else this.mathlist.push(...this.scan(me=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(me)));while(!le);return re.push(this.mathlist),re.length>0&&E.push(re),this.endContext(),y.createAtom(a,E,ee,b)}scanExpression(){const a=this.mathlist;if(this.mathlist=[],this.parseExpression()){const y=this.mathlist;return this.mathlist=a,y}return this.mathlist=a,null}scan(a){this.beginContext(),a||(a=le=>le==="<}>");let y="",b=null,E=[],ee=null;for(;!this.end()&&!a(this.peek());)this.hasInfixCommand()&&!y?(y=this.get(),b=dt(y,"math"),b&&(E=this.scanArguments(b)[1]),ee=this.mathlist,this.mathlist=[]):this.parseExpression();let re;return y?(console.assert(!!b),E.unshift(this.mathlist),ee&&E.unshift(ee),re=[b.createAtom({command:y,args:E,style:this.style,mode:this.parseMode})]):re=this.mathlist,this.endContext(),re}scanGroup(){const a=this.index;if(!this.match("<{>"))return null;const y=this.scan(E=>E==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const b=new Ds(y,this.parseMode,this.style);return b.verbatimLatex=pl(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 no("",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(!fs(a)&&!a.startsWith("\\"))return null;this.next();const y=dt(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 sl("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new sl("\\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 sl(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 no(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 sr({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):y.addChild(new sr({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&y.addChildren(at(this.scanArgument("expression")),a==="_"?"subscript":"superscript"),a=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const a=this.match("\\limits"),y=!a&&this.match("\\nolimits"),b=!y&&!a&&this.match("\\displaylimits");if(!a&&!y&&!b)return!1;const E=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return E===null?!1:(E.explicitSubsupPlacement=!0,a&&(E.subsupPlacement="over-under"),y&&(E.subsupPlacement="adjacent"),b&&(E.subsupPlacement="auto"),!0)}scanArguments(a){if(!(a!=null&&a.params))return[void 0,[]];let y;const b=[];let E=a.infix?2:0;for(;E<a.params.length;){const ee=a.params[E];ee.type==="rest"?b.push(this.scan(re=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(re))):ee.isOptional?b.push(this.scanOptionalArgument(ee.type)):ee.type.endsWith("*")?y=ee.type.slice(0,-1):b.push(this.scanArgument(ee.type)),E+=1}return[y,b]}scanSymbolOrLiteral(){const a=this.peek();if(!a)return null;this.next();let y;if(fs(a)){const b=Us.createAtom(this.parseMode,a,ve({},this.style));return b?[b]:null}if(y=this.scanMacro(a),y)return[y];if(a.startsWith("\\")){const b=dt(a,this.parseMode);if(!b)return this.onError({code:"unknown-command",arg:a}),[new sl(a)];if(b.definitionType==="symbol"){const E=ve({},this.style);b.variant&&(E.variant=b.variant),y=new sr({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 sl(a)];b.createAtom&&(y=b.createAtom({command:a,args:[],style:this.style,mode:this.parseMode}))}}return y?[y]:null}scanArgument(a){var y;this.skipFiller();const b=this.parseMode;if(a==="auto"&&(a=b),!this.match("<{>")){if(a==="string")return this.scanString();if(a==="value")return this.scanValue();if(a==="delim")return(y=this.scanDelim())!=null?y:".";if(a==="expression")return this.scanExpression();if(a==="math"){a!==b&&this.beginContext({mode:"math"});const ee=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ee}if(a==="text"){a!==b&&this.beginContext({mode:"text"});const ee=this.scanSymbolOrLiteral();return a!==b&&this.endContext(),ee}return a==="balanced-string"||console.assert(!1),null}if(a==="text"){this.beginContext({mode:"text"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}if(a==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}let E=null;if(a==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const ee=this.mathlist;return this.endContext(),{group:ee}}return a==="string"?E=this.scanString():a==="balanced-string"?E=this.scanBalancedString():a==="colspec"?E=this.scanColspec():a==="value"&&(E=this.scanValue()),this.skipUntilToken("<}>"),E}scanOptionalArgument(a){if(a=a==="auto"?this.parseMode:a,this.skipFiller(),!this.match("["))return null;let y=null;for(;!this.end()&&!this.match("]");)if(a==="string")y=this.scanString();else if(a==="value")y=this.scanValue();else if(a==="colspec")y=this.scanColspec();else if(a==="bbox"){const b={},E=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const ee of E){const re=ee.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(re)b.padding={dimension:parseInt(re[1]),unit:re[2]};else{const le=ee.match(/^\s*border\s*:\s*(.*)/);le?b.border=le[1]:b.backgroundcolor={string:ee}}}y=b}else a==="math"&&(this.beginContext({mode:"math"}),y=this.mathlist.concat(this.scan(b=>b==="]")),this.endContext());return y}scanSymbolOrCommand(a){var y,b,E;if(a==="\\placeholder"){const me=this.scanOptionalArgument("string"),ge=this.scanOptionalArgument("math"),Se=sr.serialize(ge,{defaultMode:"math"});let Pe=[],st;!st&&Se==="correct"?st="correct":!st&&Se==="incorrect"?st="incorrect":Se!==""&&(Pe=ge);const kt=this.scanOptionalArgument("string")==="locked",Vt=this.scanArgument("auto");let sn;return Vt&&Array.isArray(Vt)&&Vt.length>0?sn=Vt:Vt&&typeof Vt=="object"&&"group"in Vt?sn=Vt.group:sn=Pe,me?[new kc(me,st,kt,sn!=null?sn:Pe,{mode:this.parseMode,style:this.style})]:[new Ji({mode:this.parseMode,style:this.style})]}if(a==="\\renewcommand"||a==="\\newcommand"||a==="\\providecommand"||a==="\\def"){const me=this.index,ge=this.scanLiteralGroup()||this.next();if(!ge)return null;if(this.context.registers[ge.substring(1)]){const Se=this.scanArgument("string");Se!==null&&(this.context.registers[ge.substring(1)]=Se);const Pe=Ba([a,pl(this.tokens.slice(me,this.index))]);return[new sr({type:"text",value:"",verbatimLatex:Pe})]}}let ee=this.scanMacro(a);if(ee)return[ee];const re=dt(a,this.parseMode);if(!re)return this.parseMode==="text"?(/[a-zA-Z]/.test((y=this.peek())!=null?y:"")&&(a+=" "),[...a].map(me=>new sr({type:"text",value:me,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:a}),[new sl(a)]);const le=this.index;if(re.definitionType==="symbol"){const me=ve({},this.style);re.variant&&(me.variant=re.variant),ee=new sr({type:re.type,command:a,style:me,value:String.fromCodePoint(re.codepoint),mode:this.parseMode})}else{if(re.ifMode&&!re.ifMode.includes(this.parseMode))return[];const me=this.parseMode;re.applyMode&&(this.parseMode=re.applyMode);let ge,Se=[];if(re.parse?Se=re.parse(this):[ge,Se]=this.scanArguments(re),this.parseMode=me,re.applyMode&&!re.applyStyle&&!re.createAtom)return at(Se[0]);if(re.infix)return this.onError({code:"too-many-infix-commands",arg:a}),null;if(typeof re.createAtom=="function")ee=re.createAtom({command:a,args:Se,style:this.style,mode:this.parseMode}),ge&&(ee.body=at(this.scanArgument(ge)));else if(typeof re.applyStyle=="function"){const Pe=ve(ve({},this.style),re.applyStyle(a,Se,this.context)),st=this.parseMode;if(re.applyMode&&(this.parseMode=re.applyMode),ge){const kt=this.style;this.style=Pe;const Vt=this.scanArgument(ge);return this.style=kt,this.parseMode=st,at(Vt)}this.style=Pe}else ee=new sr({type:"mord",command:(b=re.command)!=null?b:a,style:ve({},this.style),value:a,mode:(E=re.applyMode)!=null?E:this.parseMode})}if(!ee)return null;if(ee instanceof sr&&ee.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(a)){const me=Ba([a,pl(this.tokens.slice(le,this.index))]);me&&(ee.verbatimLatex=me)}if(ee.verbatimLatex===null&&(ee.verbatimLatex=void 0),ee.isFunction&&this.smartFence){const me=this.scanSmartFence();if(me)return[ee,me]}return[ee]}scanSymbolCommandOrLiteral(){const a=this.get();if(!a)return null;if(fs(a)){const y=Us.createAtom(this.parseMode,a,ve({},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 dc(" "," ",this.style)]:null:(a==="<}>"?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:a}),null)}scanMacro(a){var y;const b=this.context.getMacro(a);if(!b)return null;const E=this.index,ee=b.args,re={"?":(y=this.args)==null?void 0:y.call(this,"?")};for(let le=1;le<=ee;le++){let me=this.scanLiteralGroup();if(!me){const ge=this.index;this.scanExpression(),me=pl(this.tokens.slice(ge,this.index))}re[le]=me}return new ld(a,{expand:b.expand,captureSelection:b.captureSelection,args:E===this.index?null:pl(this.tokens.slice(E,this.index)),style:this.parsingContext.style,body:Ls(b.def,{context:this.context,parseMode:this.parseMode,args:le=>re[le],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var a,y,b,E;let ee=(E=(b=(y=(a=this.scanEnvironment())!=null?a:this.scanModeShift())!=null?y:this.scanModeSet())!=null?b:this.scanGroup())!=null?E:this.scanLeftRight();if(ee===null){if(this.parseSupSub()||this.parseLimits())return!0;ee=this.scanSymbolCommandOrLiteral()}return ee?(Array.isArray(ee)?this.mathlist.push(...ee):this.mathlist.push(ee),!0):!1}};function Ls(a,y){var b,E,ee,re;const le=(b=y==null?void 0:y.args)!=null?b:void 0,me=new Vc(Cl(a,le),y==null?void 0:y.context,{args:le,mathstyle:(E=y==null?void 0:y.mathstyle)!=null?E:"displaystyle",parseMode:(ee=y==null?void 0:y.parseMode)!=null?ee:"math",style:(re=y==null?void 0:y.style)!=null?re:{}}),ge=[];for(;!me.end();)ge.push(...me.scan(()=>!1));return ge}function t0(a,y){var b;const E=new Vc(Cl(a,null),y==null?void 0:y.context,{mathstyle:"displaystyle",parseMode:(b=y==null?void 0:y.parseMode)!=null?b:"math"});for(;!E.end();)E.scan();return E.errors}var n0=class _p extends sr{constructor(y,b){super({type:"chem"},{command:y,mode:"math"});const E=Fo.go(_r.go(b,y==="\\pu"?"pu":"ce"),!1);this.body=Ls(E),this._verbatimLatex=y+"{"+b+"}",this.arg=b,this.captureSelection=!0}static fromJson(y){return new _p(y.command,y.arg)}set verbatimLatex(y){}get verbatimLatex(){return this._verbatimLatex}toJson(){return Me(ve({},super.toJson()),{arg:this.arg})}render(y){const b=sr.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}};lt(["ce","pu"],"{chemformula:balanced-string}",{createAtom:a=>{var y;return new n0(a.command,(y=a.args[0])!=null?y:"")}});var _r={go:function(a,y){if(!a)return[];y===void 0&&(y="ce");var b="0",E={};E.parenthesisLevel=0,a=a.replace(/\n/g," "),a=a.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),a=a.replace(/[\u2026]/g,"...");for(var ee,re=10,le=[];;){ee!==a?(re=10,ee=a):re--;var me=_r.stateMachines[y],ge=me.transitions[b]||me.transitions["*"];e:for(var Se=0;Se<ge.length;Se++){var Pe=_r.patterns.match_(ge[Se].pattern,a);if(Pe){for(var st=ge[Se].task,kt=0;kt<st.action_.length;kt++){var Vt;if(me.actions[st.action_[kt].type_])Vt=me.actions[st.action_[kt].type_](E,Pe.match_,st.action_[kt].option);else if(_r.actions[st.action_[kt].type_])Vt=_r.actions[st.action_[kt].type_](E,Pe.match_,st.action_[kt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+st.action_[kt].type_+")"];_r.concatArray(le,Vt)}if(b=st.nextState||b,a.length>0){if(st.revisit||(a=Pe.remainder),!st.toContinue)break e}else return le}}if(re<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(a,y){if(y)if(Object.prototype.toString.call(y)==="[object Array]")for(var b=0;b<y.length;b++)a.push(y[b]);else a.push(y)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"(-)(9)^(-9)":function(a){var y=a.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return y&&y[0]?{match_:y.slice(1),remainder:a.substr(y[0].length)}:null},"state of aggregation $":function(a){var y=_r.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 _r.patterns.findObserveGroups(a,"^{","","","}")},"^($...$)":function(a){return _r.patterns.findObserveGroups(a,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(a){return _r.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(a){return _r.patterns.findObserveGroups(a,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(a){return _r.patterns.findObserveGroups(a,"_{","","","}")},"_($...$)":function(a){return _r.patterns.findObserveGroups(a,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(a){return _r.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(a){return _r.patterns.findObserveGroups(a,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(a){return _r.patterns.findObserveGroups(a,"","{","}","")},"{(...)}":function(a){return _r.patterns.findObserveGroups(a,"{","","","}")},"$...$":function(a){return _r.patterns.findObserveGroups(a,"","$","$","")},"${(...)}$":function(a){return _r.patterns.findObserveGroups(a,"${","","","}$")},"$(...)$":function(a){return _r.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 _r.patterns.findObserveGroups(a,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(a){return _r.patterns.findObserveGroups(a,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(a){return _r.patterns.findObserveGroups(a,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(a){return _r.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 _r.patterns.findObserveGroups(a,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(a){return _r.patterns.findObserveGroups(a,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(a){return _r.patterns.findObserveGroups(a,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(a){return _r.patterns.findObserveGroups(a,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(a){return _r.patterns.findObserveGroups(a,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(a){return _r.patterns.findObserveGroups(a,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(a){return _r.patterns.findObserveGroups(a,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(a){return _r.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=_r.patterns.findObserveGroups(a,"","$","$","");return b&&(y=b.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),y)?{match_:y[0],remainder:a.substr(y[0].length)}:null},amount2:function(a){return this.amount(a)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(a){if(a.match(/^\([a-z]+\)$/))return null;var y=a.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return y?{match_:y[0],remainder:a.substr(y[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(a,y,b,E,ee,re,le,me,ge,Se){var Pe=function(Zn,hr){if(typeof hr=="string")return Zn.indexOf(hr)!==0?null:hr;var ni=Zn.match(hr);return ni?ni[0]:null},st=function(Zn,hr,ni){for(var Sr=0;hr<Zn.length;){var Ti=Zn.charAt(hr),Ui=Pe(Zn.substr(hr),ni);if(Ui!==null&&Sr===0)return{endMatchBegin:hr,endMatchEnd:hr+Ui.length};if(Ti==="{")Sr++;else if(Ti==="}"){if(Sr===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];Sr--}hr++}return Sr>0,null},kt=Pe(a,y);if(kt===null||(a=a.substr(kt.length),kt=Pe(a,b),kt===null))return null;var Vt=st(a,kt.length,E||ee);if(Vt===null)return null;var sn=a.substring(0,E?Vt.endMatchEnd:Vt.endMatchBegin);if(re||le){var Yn=this.findObserveGroups(a.substr(Vt.endMatchEnd),re,le,me,ge);if(Yn===null)return null;var Yr=[sn,Yn.match_];return{match_:Se?Yr.join(""):Yr,remainder:Yn.remainder}}else return{match_:sn,remainder:a.substr(Vt.endMatchEnd)}},match_:function(a,y){var b=_r.patterns.patterns[a];if(b===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+a+")"];if(typeof b=="function")return _r.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 _r.go(y,"text")},"{text}":function(a,y){var b=["{"];return _r.concatArray(b,_r.go(y,"text")),b.push("}"),b},"tex-math":function(a,y){return _r.go(y,"tex-math")},"tex-math tight":function(a,y){return _r.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 _r.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 _r.go(y,"9,9")}},createTransitions:function(a){var y,b,E,ee,re={};for(y in a)for(b in a[y])for(E=b.split("|"),a[y][b].stateArray=E,ee=0;ee<E.length;ee++)re[E[ee]]=[];for(y in a)for(b in a[y])for(E=a[y][b].stateArray||[],ee=0;ee<E.length;ee++){var le=a[y][b];if(le.action_){le.action_=[].concat(le.action_);for(var me=0;me<le.action_.length;me++)typeof le.action_[me]=="string"&&(le.action_[me]={type_:le.action_[me]})}else le.action_=[];for(var ge=y.split("|"),Se=0;Se<ge.length;Se++)if(E[ee]==="*")for(var Pe in re)re[Pe].push({pattern:ge[Se],task:le});else re[E[ee]].push({pattern:ge[Se],task:le})}return re},stateMachines:{}};_r.stateMachines={ce:{transitions:_r.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 _r.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 _r.concatArray(b,this.output(a)),_r.concatArray(b,_r.actions.bond(a,y,"-")),b}else a.d=y},"- after o/d":function(a,y,b){var E=_r.patterns.match_("orbital",a.o||""),ee=_r.patterns.match_("one lowercase greek letter $",a.o||""),re=_r.patterns.match_("one lowercase latin letter $",a.o||""),le=_r.patterns.match_("$one lowercase latin letter$ $",a.o||""),me=y==="-"&&(E&&E.remainder===""||ee||re||le);me&&!a.a&&!a.b&&!a.p&&!a.d&&!a.q&&!E&&re&&(a.o="$"+a.o+"$");var ge=[];return me?(_r.concatArray(ge,this.output(a)),ge.push({type_:"hyphen"})):(E=_r.patterns.match_("digits",a.d||""),b&&E&&E.remainder===""?(_r.concatArray(ge,_r.actions["d="](a,y)),_r.concatArray(ge,this.output(a))):(_r.concatArray(ge,this.output(a)),_r.concatArray(ge,_r.actions.bond(a,y,"-")))),ge},"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:_r.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"&&_r.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:_r.go(a.a,"a"),b:_r.go(a.b,"bd"),p:_r.go(a.p,"pq"),o:_r.go(a.o,"o"),q:_r.go(a.q,"pq"),d:_r.go(a.d,a.dType==="oxidation"?"oxidation":"bd"),dType:a.dType}));else{var ee;a.rdt==="M"?ee=_r.go(a.rd,"tex-math"):a.rdt==="T"?ee=[{type_:"text",p1:a.rd||""}]:ee=_r.go(a.rd);var re;a.rqt==="M"?re=_r.go(a.rq,"tex-math"):a.rqt==="T"?re=[{type_:"text",p1:a.rq||""}]:re=_r.go(a.rq),E={type_:"arrow",r:a.r,rd:ee,rq:re}}for(var le in a)le!=="parenthesisLevel"&&le!=="beginsWithBond"&&delete a[le];return E},"oxidation-output":function(a,y){var b=["{"];return _r.concatArray(b,_r.go(y,"oxidation")),b.push("}"),b},"frac-output":function(a,y){return{type_:"frac-ce",p1:_r.go(y[0]),p2:_r.go(y[1])}},"overset-output":function(a,y){return{type_:"overset",p1:_r.go(y[0]),p2:_r.go(y[1])}},"underset-output":function(a,y){return{type_:"underset",p1:_r.go(y[0]),p2:_r.go(y[1])}},"underbrace-output":function(a,y){return{type_:"underbrace",p1:_r.go(y[0]),p2:_r.go(y[1])}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:_r.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:_r.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:_r.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:_r.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:_r.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:_r.go(y,"o")}},"color-output":function(a,y){return{type_:"color",color1:y[0],color2:_r.go(y[1],"pq")}}}},bd:{transitions:_r.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:_r.go(y[1],"bd")}}}},oxidation:{transitions:_r.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:_r.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:_r.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:_r.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:_r.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]&&(_r.concatArray(b,_r.go(y[1],"pu-9,9")),y[2]&&(y[2].match(/[,.]/)?_r.concatArray(b,_r.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]),_r.concatArray(b,_r.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=_r.patterns.match_("{(...)}",a.d||"");b&&b.remainder===""&&(a.d=b.match_);var E=_r.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:_r.go(a.d,"pu"),q:_r.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_:"/"}),_r.concatArray(y,ee.q))}else y=_r.go(a.d,"pu-2");for(var re in a)delete a[re];return y}}},"pu-2":{transitions:_r.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=_r.patterns.match_("{(...)}",a.rm||"");b&&b.remainder===""?y=_r.go(b.match_,"pu"):y={type_:"rm",p1:a.rm}}for(var E in a)delete a[E];return y}}},"pu-9,9":{transitions:_r.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 Fo={go:function(a,y){if(!a)return"";for(var b="",E=!1,ee=0;ee<a.length;ee++){var re=a[ee];typeof re=="string"?b+=re:(b+=Fo._go2(re),re.type_==="1st-level escape"&&(E=!0))}return!y&&!E&&b&&(b="{"+b+"}"),b},_goInner:function(a){return a&&Fo.go(a,!0)},_go2:function(a){var y;switch(a.type_){case"chemfive":y="";var b={a:Fo._goInner(a.a),b:Fo._goInner(a.b),p:Fo._goInner(a.p),o:Fo._goInner(a.o),q:Fo._goInner(a.q),d:Fo._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 "+Fo._goInner(a.p1);break;case"state of aggregation subscript":y="\\mskip1mu "+Fo._goInner(a.p1);break;case"bond":if(y=Fo._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{"+Fo._goInner(a.p1)+"}{"+Fo._goInner(a.p2)+"}";y="\\mathchoice{\\textstyle"+ee+"}{"+ee+"}{"+ee+"}{"+ee+"}";break;case"tex-math":y=a.p1+" ";break;case"frac-ce":y="\\frac{"+Fo._goInner(a.p1)+"}{"+Fo._goInner(a.p2)+"}";break;case"overset":y="\\overset{"+Fo._goInner(a.p1)+"}{"+Fo._goInner(a.p2)+"}";break;case"underset":y="\\underset{"+Fo._goInner(a.p1)+"}{"+Fo._goInner(a.p2)+"}";break;case"underbrace":y="\\underbrace{"+Fo._goInner(a.p1)+"}_{"+Fo._goInner(a.p2)+"}";break;case"color":y="{\\color{"+a.color1+"}{"+Fo._goInner(a.color2)+"}}";break;case"color0":y="\\color{"+a.color+"}";break;case"arrow":var re={rd:Fo._goInner(a.rd),rq:Fo._goInner(a.rq)},le=Fo._getArrow(a.r);re.rd||re.rq?a.r==="<=>"||a.r==="<=>>"||a.r==="<<=>"||a.r==="<-->"?(le="\\long"+le,re.rd&&(le="\\overset{"+re.rd+"}{"+le+"}"),re.rq&&(a.r==="<-->"?le="\\underset{\\lower2mu{"+re.rq+"}}{"+le+"}":le="\\underset{\\lower6mu{"+re.rq+"}}{"+le+"}"),le=" {}\\mathrel{"+le+"}{} "):(re.rq&&(le+="[{"+re.rq+"}]"),le+="{"+re.rd+"}",le=" {}\\mathrel{\\x"+le+"}{} "):le=" {}\\mathrel{\\long"+le+"}{} ",y=le;break;case"operator":y=Fo._getOperator(a.kind_);break;case"1st-level escape":y=a.p1+" ";break;case"space":y=" ";break;case"entitySkip":y="~";break;case"pu-space-1":y="~";break;case"pu-space-2":y="\\mkern3mu ";break;case"1000 separator":y="\\mkern2mu ";break;case"commaDecimal":y="{,}";break;case"comma enumeration L":y="{"+a.p1+"}\\mkern6mu ";break;case"comma enumeration M":y="{"+a.p1+"}\\mkern3mu ";break;case"comma enumeration S":y="{"+a.p1+"}\\mkern1mu ";break;case"hyphen":y="\\text{-}";break;case"addition compound":y="\\,{\\cdot}\\,";break;case"electron dot":y="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":y="{\\times}";break;case"prime":y="\\prime ";break;case"cdot":y="\\cdot ";break;case"tight cdot":y="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":y="\\times ";break;case"circa":y="{\\sim}";break;case"^":y="uparrow";break;case"v":y="downarrow";break;case"ellipsis":y="\\ldots ";break;case"/":y="/";break;case" / ":y="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return y},_getArrow:function(a){switch(a){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(a){switch(a){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(a){switch(a){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function M1(a){}function k1(a){}var r0=class Kp extends sr{constructor(y){super(Me(ve({},y),{type:"delim"})),this.value=y.delim,this.size=y.size}static fromJson(y){return new Kp(y)}toJson(){return Me(ve({},super.toJson()),{delim:this.value,size:this.size})}render(y){return new Vr(this.value,{type:"middle"})}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):ho(this.command,this.value)}},i0=class Hp extends sr{constructor(y){super(Me(ve({},y),{type:"sizeddelim",value:y.delim})),this.delimType=y.delimType,this.size=y.size}static fromJson(y){return new Hp(y)}toJson(){return Me(ve({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(y){let b=Rn(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=dt(this.command,this.mode);return b!=null&&b.serialize?b.serialize(this,y):ho(this.command,this.value)}},Kd=class Wp extends sr{constructor(y,b,E,ee){var re,le;super({type:"enclose",command:y,style:ee.style}),this.body=b,this.backgroundcolor=ee.backgroundcolor,E.updiagonalarrow&&(E.updiagonalstrike=!1),E.box&&(E.left=!1,E.right=!1,E.bottom=!1,E.top=!1),this.notation=E,this.shadow=(re=ee.shadow)!=null?re:"none",this.strokeWidth=(le=ee.strokeWidth)!=null?le:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=ee.strokeStyle,this.svgStrokeStyle=ee.svgStrokeStyle,this.strokeColor=ee.strokeColor,this.borderStyle=ee.borderStyle,this.padding=ee.padding,this.captureSelection=!1}static fromJson(y){return new Wp(y.command,y.body,y.notation,y)}toJson(){return Me(ve({},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=dt(this.command,this.mode);if(E!=null&&E.serialize)return E.serialize(this,y);let ee=(b=this.command)!=null?b:"";if(this.command==="\\enclose"){ee+="{"+Object.keys(this.notation).join(" ")+"}";let re="",le="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(re+=le+'mathbackground="'+this.backgroundcolor+'"',le=","),this.shadow&&this.shadow!=="auto"&&(re+=le+'shadow="'+this.shadow+'"',le=","),this.strokeWidth||this.strokeStyle!=="solid"?(re+=le+this.borderStyle,le=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(re+=le+'mathcolor="'+this.strokeColor+'"',le=","),re&&(ee+=`[${re}]`)}return ho(ee,this.bodyToLatex(y))}render(y){const b=new Wa({parent:y},this.style),E=sr.createBox(b,this.body);if(!E)return null;const ee=im(this.borderStyle),re=b.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});E.setStyle("position","relative"),E.setStyle("display","inline-block"),E.setStyle("top",re,"em"),E.setStyle("height",E.height+E.depth,"em"),E.setStyle("width",E.width,"em");const le=new Vr(null,{classes:"ML__notation"});let me=E.height+E.depth+2*re;const ge=E.width+2*re;let Se="";if(this.notation.horizontalstrike&&(Se+=this.line(3,50,97,50)),this.notation.verticalstrike&&(Se+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(Se+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(Se+=this.line(3,3,97,97)),this.notation.updiagonalarrow){Se+=this.line(re.toString(),(re+E.depth+E.height).toString(),(re+E.width).toString(),re.toString());const sn=.03*Math.sqrt(ge*ge+me*me)*1,Yn=E.width*sn,Yr=(E.depth+E.height)*sn,Zn=re+E.width;let hr=re;hr+Yr-.4*Yn<0&&(hr=.4*Yn-Yr),Se+='<polygon points="',Se+=`${Zn},${hr} ${Zn-Yn-.4*Yr},${hr+Yr-.4*Yn} `,Se+=`${Zn-.7*Yn},${hr+.7*Yr} ${Zn-Yn+.4*Yr},${hr+Yr+.4*Yn} `,Se+=`${Zn},${hr}`,Se+=`" stroke='none' fill="${this.strokeColor}"`,Se+="/>"}let Pe=0;if(this.notation.phasorangle){const kt=a0(b),Vt=(E.height+E.depth+2*kt+re).toString(),sn=(E.height+E.depth)/2;Se+=this.line(re.toString(),Vt,(re+sn+E.width).toString(),Vt),Se+=this.line(re.toString(),Vt,(re+sn).toString(),(re-kt).toString()),me+=kt,Pe=sn,E.left+=me/2-re}if(this.notation.longdiv){const kt=a0(b);me+=kt,Se+=this.line(re.toString(),re.toString(),(re+E.width).toString(),re.toString());const Vt=.3;Pe=Vt+kt,E.left+=Vt+kt,E.setTop(re+kt),Se+='<path d="',Se+=`M ${re} ${re} a${Vt} ${(E.depth+E.height+2*kt)/2}, 0, 1, 1, 0 ${E.depth+E.height+2*kt} "`,Se+=` stroke-width="${am(b)}" stroke="${this.strokeColor}" fill="none"`,Se+="/>"}if(le.width=E.width+2*re+Pe,le.height=E.height+re,le.depth=E.depth+re,le.setStyle("box-sizing","border-box"),le.setStyle("left",`calc(-${ee} / 2 )`),le.setStyle("height",`${Math.floor(100*me)/100}em`),le.setStyle("top",`calc(${ee} / 2 )`),this.backgroundcolor&&le.setStyle("background-color",this.backgroundcolor),this.notation.box&&le.setStyle("border","1px solid red"),this.notation.actuarial&&(le.setStyle("border-top",this.borderStyle),le.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(le.setStyle("border-bottom",this.borderStyle),le.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(le.setStyle("border-radius","8px"),le.setStyle("border",this.borderStyle)),this.notation.circle&&(le.setStyle("border-radius","50%"),le.setStyle("border",this.borderStyle)),this.notation.top&&le.setStyle("border-top",this.borderStyle),this.notation.left&&le.setStyle("border-left",this.borderStyle),this.notation.right&&le.setStyle("border-right",this.borderStyle),this.notation.bottom&&le.setStyle("border-bottom",this.borderStyle),Se){let kt="";this.shadow==="auto"&&(kt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(kt+=`filter: drop-shadow(${this.shadow})`),kt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,kt+=' stroke-linecap="round"',this.svgStrokeStyle&&(kt+=` stroke-dasharray="${this.svgStrokeStyle}"`),le.svgStyle=kt,le.svgOverlay=Se}const st=new Vr([le,E]);return st.setStyle("position","relative"),st.setStyle("vertical-align",re,"em"),st.setStyle("height",`${Math.floor(100*(E.height+E.depth+2*re))/100}em`),st.setStyle("display","inline-block"),st.height=le.height,st.depth=le.depth,st.width=le.width-2*re,st.left=re,st.right=re,this.caret&&(st.caret=this.caret),st.wrap(b)}line(y,b,E,ee){return`<line x1="${Cf(y)}" y1="${Cf(b)}" x2="${Cf(E)}" y2="${Cf(ee)}" vector-effect="non-scaling-stroke"></line>`}};function Cf(a){return typeof a=="number"?`${Math.floor(100*a)/100}%`:a}function im(a){if(!a)return"1px";const y=a.match(/([0-9][a-zA-Z\%]+)/);return y===null?"1px":y[1]}function am(a){return(Math.floor(100*a.metrics.sqrtRuleThickness/a.scalingFactor)/100/10).toString()+"em"}function a0(a){const y=a.isDisplayStyle?ns:a.metrics.defaultRuleThickness;return a.metrics.defaultRuleThickness+a.scalingFactor*y/4}var cd=class Zp extends sr{constructor(y,b,E){var ee,re;super(Me(ve({},E),{type:"genfrac",displayContainsHighlight:!0})),this.above=y,this.below=b,this.hasBarLine=(ee=E==null?void 0:E.hasBarLine)!=null?ee:!0,this.continuousFraction=(re=E==null?void 0:E.continuousFraction)!=null?re:!1,this.numerPrefix=E==null?void 0:E.numerPrefix,this.denomPrefix=E==null?void 0:E.denomPrefix,this.mathstyleName=E==null?void 0:E.mathstyleName,this.leftDelim=E==null?void 0:E.leftDelim,this.rightDelim=E==null?void 0:E.rightDelim,this.fractionNavigationOrder=E==null?void 0:E.fractionNavigationOrder}static fromJson(y){return new Zp(y.above,y.below,y)}toJson(){const y={};return this.continuousFraction&&(y.continuousFraction=!0),this.numerPrefix&&(y.numerPrefix=this.numerPrefix),this.denomPrefix&&(y.denomPrefix=this.denomPrefix),this.leftDelim&&(y.leftDelim=this.leftDelim),this.rightDelim&&(y.rightDelim=this.rightDelim),this.hasBarLine||(y.hasBarLine=!1),this.mathstyleName&&(y.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(y.fractionNavigationOrder=this.fractionNavigationOrder),ve(ve({},super.toJson()),y)}get children(){if(this._children)return this._children;const y=[];if(this.fractionNavigationOrder==="denominator-numerator"){for(const b of this.below)y.push(...b.children),y.push(b);for(const b of this.above)y.push(...b.children),y.push(b)}else{for(const b of this.above)y.push(...b.children),y.push(b);for(const b of this.below)y.push(...b.children),y.push(b)}return this._children=y,y}render(y){var b,E;const ee=new Wa({parent:y,mathstyle:this.mathstyleName},this.style),re=ee.metrics,le=new Wa({parent:ee,mathstyle:this.continuousFraction?"":"numerator"},this.style),me=this.numerPrefix?new Vr([new Vr(this.numerPrefix),sr.createBox(le,this.above)],{isTight:le.isTight,type:"ignore"}):(b=sr.createBox(le,this.above,{type:"ignore"}))!=null?b:new Vr(null,{type:"ignore"}),ge=new Wa({parent:ee,mathstyle:this.continuousFraction?"":"denominator"},this.style),Se=this.denomPrefix?new Vr([new Vr(this.denomPrefix),sr.createBox(ge,this.below,{type:"ignore"})]):(E=sr.createBox(ge,this.below,{type:"ignore"}))!=null?E:new Vr(null,{type:"ignore"}),Pe=this.hasBarLine?re.defaultRuleThickness:0;let st,kt=0,Vt;ee.isDisplayStyle?(st=le.metrics.num1,kt=Pe>0?3*Pe:7*Pe,Vt=ge.metrics.denom1):(Pe>0?(st=le.metrics.num2,kt=Pe):(st=le.metrics.num3,kt=3*re.defaultRuleThickness),Vt=ge.metrics.denom2);const sn=[];this.isSelected&&sn.push("ML__selected");const Yn=me.depth,Yr=Se.height;let Zn;if(Pe<=0){const Hi=st-Yn-(Yr-Vt);Hi<kt&&(st+=(kt-Hi)/2,Vt+=(kt-Hi)/2),Zn=new oo({individualShift:[{box:me,shift:-st,classes:[...sn,"ML__center"]},{box:Se,shift:Vt,classes:[...sn,"ML__center"]}]}).wrap(ee)}else{const Hi=new Vr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Hi.softWidth=Math.max(me.width,Se.width),Hi.height=Pe/2,Hi.depth=Pe/2;const ja=ts+Pe/2;st<kt+Yn+ja&&(st=kt+Yn+ja);const mo=ts-Pe/2;Vt<kt+Yr-mo&&(Vt=kt+Yr-mo),Zn=new oo({individualShift:[{box:Se,shift:Vt,classes:[...sn,"ML__center"]},{box:Hi,shift:-mo,classes:sn},{box:me,shift:-st,classes:[...sn,"ML__center"]}]}).wrap(ee)}const hr=ee.isDisplayStyle?re.delim1:re.delim2,ni=this.leftDelim?this.bind(y,Bi("open",this.leftDelim,hr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):Ii(ee,"open");let Sr=null;this.continuousFraction?Sr=new Vr(null,{type:"close"}):this.rightDelim?Sr=this.bind(y,Bi("close",this.rightDelim,hr,!0,y,{style:this.style,mode:this.mode,isSelected:this.isSelected})):Sr=Ii(ee,"close");const Ti=new Vr([ni,Zn,Sr],{isTight:ee.isTight,type:"inner",classes:"mfrac"}),Ui=this.bind(y,Ti);return this.caret&&(Ui.caret=this.caret),this.attachSupsub(y,{base:Ui})}},Ks=class jp extends sr{constructor(y,b){var E;super({type:"latex",value:y,mode:"latex"}),this.isSuggestion=(E=b==null?void 0:b.isSuggestion)!=null?E:!1,this.isError=!1}static fromJson(y){const b=new jp(y.value);return y.isSuggestion&&(b.isSuggestion=!0),y.isError&&(b.isError=!0),b}toJson(){const y={};return this.isSuggestion&&(y.isSuggestion=!0),this.isError&&(y.isError=!0),ve({type:"latex",value:this.value},y)}get computedStyle(){return{}}render(y){const b=new Vr(this.value,{classes:this.isSuggestion?"ML__suggestion":this.isError?"ML__error":"",type:"latex",maxFontSize:1});return b?(this.caret&&(b.caret=this.caret),this.bind(y,b)):null}},Hd=class Vp extends sr{constructor(y){super({type:"latexgroup",mode:"latex"}),this.body=[...y].map(b=>new Ks(b)),this.skipBoundary=!1}static fromJson(y){return new Vp("")}toJson(){return super.toJson()}render(y){const b=sr.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 Up extends sr{constructor(y,b){super(Me(ve({},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 Up(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 Vr(this.value,{fontFamily:E?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(E?"large-op":"small-op"),type:"op",maxFontSize:y.scalingFactor,isSelected:this.isSelected});if(!ee)return null;ee.right=ee.italic;const re=(ee.height-ee.depth)/2-ts*y.scalingFactor,le=ee.italic;ee.setTop(re);let me=ee;if(this.superscript||this.subscript){const ge=(b=this.subsupPlacement)!=null?b:"auto";me=ge==="over-under"||ge==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:ee,baseShift:re,slant:le}):this.attachSupsub(y,{base:ee})}return new Vr(this.bind(y,me),{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=dt(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)),Ba(E)}},Tu=class Gp extends sr{constructor(y){const b=y.body;super(Me(ve({},y),{type:"overlap",body:typeof b=="string"?[new sr({value:b})]:b,style:y==null?void 0:y.style})),this.skipBoundary=!0,this.align=y==null?void 0:y.align,this.boxType=y==null?void 0:y.boxType}static fromJson(y){return new Gp(y)}toJson(){const y={};return this.align&&(y.align=this.align),this.boxType&&(y.boxType=this.boxType),ve(ve({},super.toJson()),y)}render(y){const b=sr.createBox(y,this.body,{classes:"inner"});return b?(this.caret&&(b.caret=this.caret),this.bind(y,new Vr([b,new Vr(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},ql=class Yp extends sr{constructor(y){var b,E,ee,re;super({type:"overunder",command:y.command,style:y.style,mode:y.mode,body:y.body,skipBoundary:(b=y.skipBoundary)!=null?b:!0}),this.subsupPlacement=y.supsubPlacement,this.svgAbove=y.svgAbove,this.svgBelow=y.svgBelow,this.svgBody=y.svgBody,this.above=y.above,this.below=y.below,this.boxType=(E=y.boxType)!=null?E:"ord",this.paddedBody=(ee=y.paddedBody)!=null?ee:!1,this.paddedLabels=(re=y.paddedLabels)!=null?re:!1}static fromJson(y){return new Yp(y)}toJson(){const y=super.toJson();return this.skipBoundary||(y.skipBoundary=!1),this.subsupPlacement&&(y.subsupPlacement=this.subsupPlacement),this.svgAbove&&(y.svgAbove=this.svgAbove),this.svgBelow&&(y.svgBelow=this.svgBelow),this.svgBody&&(y.svgBody=this.svgBody),this.boxType!=="ord"&&(y.boxType=this.boxType),this.paddedBody&&(y.paddedBody=!0),this.paddedLabels&&(y.paddedLabels=!0),y}render(y){let b=this.svgBody?al(this.svgBody):sr.createBox(y,this.body,{type:"ignore"});const E=new Wa({parent:y,mathstyle:"scriptstyle"},this.style);let ee=null;this.svgAbove?ee=al(this.svgAbove):this.above&&(ee=sr.createBox(E,this.above,{type:"ignore"}));let re=null;this.svgBelow?re=al(this.svgBelow):this.below&&(re=sr.createBox(E,this.below,{type:"ignore"})),this.paddedBody&&(b=new Vr([Ii(y,"open"),b,Ii(y,"close")],{type:"ignore"}));let le=om(y,{base:b,above:ee,below:re,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return le?(this.subsupPlacement==="over-under"?le=this.attachLimits(y,{base:le,type:le.type}):le=this.attachSupsub(y,{base:le}),this.caret&&(le.caret=this.caret),this.bind(y,le)):null}};function om(a,y){if(!y.base)return null;if(!y.above&&!y.below){const me=new Vr(y.base,{type:y.type});return me.setStyle("position","relative"),me}let b=0;y.above&&(b=a.metrics.bigOpSpacing5);let E=null;const ee=y.base,re=0,le=["ML__center"];if(y.paddedAboveBelow&&le.push("ML__label_padding"),y.below&&y.above){const me=a.metrics.bigOpSpacing5+y.below.height+y.below.depth+ee.depth+re;E=new oo({bottom:me,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:le},{box:ee,classes:["ML__center"]},b,{box:y.above,classes:le},a.metrics.bigOpSpacing5]})}else y.below?E=new oo({top:ee.height-re,children:[a.metrics.bigOpSpacing5,{box:y.below,classes:le},{box:ee,classes:["ML__center"]}]}):y.above&&(E=new oo({bottom:ee.depth+re,children:[{box:ee,classes:["ML__center"]},b,{box:y.above,classes:le},a.metrics.bigOpSpacing5]}));return new Vr(E,{type:y.type})}var Wd=class Xp extends sr{constructor(y){var b,E,ee,re;super(Me(ve({},y),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(b=y.isInvisible)!=null?b:!1,this.smashDepth=(E=y.smashDepth)!=null?E:!1,this.smashHeight=(ee=y.smashHeight)!=null?ee:!1,this.smashWidth=(re=y.smashWidth)!=null?re:!1}static fromJson(y){return new Xp(y)}toJson(){const y={};return this.isInvisible&&(y.isInvisible=!0),this.smashDepth&&(y.smashDepth=!0),this.smashHeight&&(y.smashHeight=!0),this.smashWidth&&(y.smashWidth=!0),ve(ve({},super.toJson()),y)}render(y){const b=new Wa({parent:y,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),sr.createBox(b,this.body,{classes:"inner"});const E=sr.createBox(this.isInvisible?b:y,this.body);if(!E)return null;if(this.smashWidth){const ee=new Vr(null,{classes:"fix"});return new Vr([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 oo({firstBaseline:[{box:E}]},{type:E.type}).wrap(y)}},Zd=class Qp extends sr{constructor(y){var b;super(ve({type:"spacing"},y)),this.width=y==null?void 0:y.width,this._braced=(b=y==null?void 0:y.braced)!=null?b:!1}static fromJson(y){return new Qp(y)}toJson(){const y=super.toJson();return this.width!==void 0&&(y.width=this.width),this._braced&&(y.braced=!0),y}render(y){var b;if(this.command==="space")return new Vr(this.mode==="math"?null:" ");let E;if(this.width!==void 0)E=new Vr(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 Vr(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=dt(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}{${Ro(this.width)}}`:`${ee}${Ro(this.width)}`}},o0=class Jp extends sr{constructor(y){var b;super(Me(ve({},y),{type:"surd",mode:(b=y.mode)!=null?b:"math",style:y.style,displayContainsHighlight:!0,body:y.body})),this.above=y.index}static fromJson(y){return new Jp(Me(ve({},y),{index:y.above}))}_serialize(y){if(!(y.expandMacro||y.skipStyles||y.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const b=dt(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")?ho(`${E}[${this.aboveToLatex(y)}]`,ee):/^[0-9]$/.test(ee)?`${E}${ee}`:ho(E,ee)}get children(){if(this._children)return this._children;const y=[];if(this.above)for(const b of this.above)y.push(...b.children),y.push(b);if(this.body)for(const b of this.body)y.push(...b.children),y.push(b);return this._children=y,y}render(y){var b;const E=new Wa({parent:y,mathstyle:"cramp"},this.style),ee=(b=sr.createBox(E,this.body,{type:"inner"}))!=null?b:new Vr(null),re=E.scalingFactor,le=E.metrics.defaultRuleThickness/re,me=y.isDisplayStyle?ns:le,ge=new Vr(null,{classes:"ML__sqrt-line",style:this.style});ge.height=le,ge.softWidth=ee.width;let Se=re*(le+me/4);const st=Math.max(re*2*me,ee.height+ee.depth)+Se+le,kt=new Wa({parent:y},this.style),Vt=this.bind(kt,new Vr(Bi("inner","\\surd",st,!1,kt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!Vt)return null;const sn=Vt.height+Vt.depth-le;sn>ee.height+ee.depth+Se&&(Se=(Se+sn-(ee.height+ee.depth))/2),Vt.setTop(Vt.height-ee.height-Se);const Yn=this.bind(y,new oo({firstBaseline:[{box:new Vr(ee)},Se-2*le,{box:ge},le]})),Yr=sr.createBox(new Wa({parent:y,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!Yr){const ni=new Vr([Vt,Yn],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return ni.setStyle("display","inline-block"),ni.setStyle("height",ni.height+ni.depth,"em"),this.caret&&(ni.caret=this.caret),this.bind(y,ni)}const Zn=new oo({shift:-.6*(Math.max(Vt.height,Yn.height)-Math.max(Vt.depth,Yn.depth)),children:[{box:Yr}]}),hr=new Vr([new Vr(Zn,{classes:"ML__sqrt-index",type:"ignore"}),Vt,Yn],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return hr.height=Vt.height,hr.depth=Vt.depth,this.caret&&(hr.caret=this.caret),this.bind(y,hr)}},sm=class extends Vr{constructor(a){super(null,{type:"skip"}),this._width=a}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function Ef(a,y){if(!a.parent)return;const b=a.parent.children,E=b.indexOf(a);let ee=E-1;for(;ee>=0&&b[ee].type==="ignore";)ee-=1;if(ee<0&&a.parent.parent&&a.parent.type==="lift"){Ef(a.parent,y);return}E>0&&b[E-1].type==="skip"?b[E-1].width+=y:b.splice(E,0,new 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){Vd(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 jd(a,y){if(!a.children)return a;const b=a.children;um(b);const E=y.getRegisterAsEm("thinmuskip"),ee=y.getRegisterAsEm("medmuskip"),re=y.getRegisterAsEm("thickmuskip");return Vd(b,(le,me)=>{var ge,Se,Pe;if(!le)return;const st=le.type,kt=me.isTight?(ge=cm[st])!=null?ge:null:(Se=lm[st])!=null?Se:null,Vt=(Pe=kt==null?void 0:kt[me.type])!=null?Pe:null;Vt===3&&Ef(me,E),Vt===4&&Ef(me,ee),Vt===5&&Ef(me,re)}),a}function Vd(a,y,b=void 0){if(!a)return b;a=[...a];for(const E of a)E.type==="lift"?b=Vd(E.children,y,b):E.type==="ignore"?Vd(E.children,y):(y(b,E),Vd(E.children,y),b=E);return b}var hh=class qp extends sr{constructor(y){super({type:"tooltip",command:y.command,mode:y.mode,style:y.style,body:y.body,displayContainsHighlight:!0}),this.tooltip=new sr({type:"root",mode:y.content,body:y.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(y){return new qp(Me(ve({},y),{tooltip:hu(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(ve({},super.toJson()),{tooltip:b})}render(y){const b=sr.createBox(new Wa,this.body);if(!b)return null;const E=new Wa({parent:y,mathstyle:"displaystyle"},{fontSize:co}),ee=ou(jd(new Vr(this.tooltip.render(E),{classes:"ML__tooltip-content"}),E)),re=new Vr([ee,b],{classes:"ML__tooltip-container"});return this.caret&&(re.caret=this.caret),this.bind(y,re)}},Ou=class $p extends sr{constructor(y,b){super(Me(ve({},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 $p(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 Vr(this.value,{type:"op",mode:"math",maxFontSize:y.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:y.letterShapeStyle});let ee=E;if(this.superscript||this.subscript){const re=(b=this.subsupPlacement)!=null?b:"auto";ee=re==="over-under"||re==="auto"&&y.isDisplayStyle?this.attachLimits(y,{base:E}):this.attachSupsub(y,{base:E})}return new Vr(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=dt(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)),Ba(E)}};function hu(a){if(Fe(a))return a.map(E=>hu(E));if(typeof a=="string")return sr.fromJson(a);a=ve({},a);for(const E of cu)a[E]&&(a[E]=hu(a[E]));a.args&&(a.args=dm(a.args)),a.array&&(a.array=hu(a.array));const y=a.type;let b;y==="accent"&&(b=z.fromJson(a)),y==="array"&&(b=ya.fromJson(a)),y==="box"&&(b=is.fromJson(a)),y==="chem"&&(b=n0.fromJson(a)),y==="composition"&&(b=jc.fromJson(a)),y==="delim"&&(b=r0.fromJson(a)),y==="enclose"&&(b=Kd.fromJson(a)),y==="error"&&(b=sl.fromJson(a)),y==="extensible-symbol"&&(b=fh.fromJson(a)),y==="genfrac"&&(b=cd.fromJson(a)),y==="group"&&(b=Ds.fromJson(a)),y==="latex"&&(b=Ks.fromJson(a)),y==="latexgroup"&&(b=Hd.fromJson(a)),y==="leftright"&&(b=no.fromJson(a)),y==="macro"&&(b=ld.fromJson(a)),y==="macro-argument"&&(b=hc.fromJson(a)),y==="operator"&&(b=Ou.fromJson(a)),y==="overlap"&&(b=Tu.fromJson(a)),y==="overunder"&&(b=ql.fromJson(a)),y==="placeholder"&&(b=Ji.fromJson(a)),y==="prompt"&&(b=kc.fromJson(a)),y==="phantom"&&(b=Wd.fromJson(a)),y==="sizeddelim"&&(b=i0.fromJson(a)),y==="spacing"&&(b=Zd.fromJson(a)),y==="subsup"&&(b=Jl.fromJson(a)),y==="surd"&&(b=o0.fromJson(a)),y==="text"&&(b=dc.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=sr.fromJson(a));for(const E of cu)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=>hu(b))}:typeof y=="object"&&"atoms"in y?y.atoms.map(b=>hu(b)):y)}var s0={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},ph={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^’‘]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},l0=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,fm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,hm=[/^[a-z]$/,/^[A-Z]$/,l0,fm],pm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},mm=class extends Us{constructor(){super("math")}createAtom(a,y,b){var E,ee,re,le;if(y===null)return new sr({type:"mord",mode:"math",command:a,value:a,style:b});const me=window.MathfieldElement.isFunction((E=y.command)!=null?E:a);if(y.definitionType==="symbol"){const Se=new sr({type:(ee=y.type)!=null?ee:"mord",mode:"math",command:(re=y.command)!=null?re:a,value:String.fromCodePoint(y.codepoint),style:b});return me&&(Se.isFunction=!0),a.startsWith("\\")&&(Se.verbatimLatex=a),Se}const ge=new sr({type:"mord",mode:"math",command:(le=y.command)!=null?le:a,value:a,style:b});return me&&(ge.isFunction=!0),a.startsWith("\\")&&(ge.verbatimLatex=a),ge}serialize(a,y){const b=gm(a,Me(ve({},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((me,ge)=>{var Se;me.test(a.value)&&pm[(Se=y.letterShapeStyle)!=null?Se:"tex"][ge]==="it"&&(E="italic")}),E==="up"&&(E=void 0);const ee=E?b+"-"+E:b;console.assert(s0[ee]!==void 0);const[re,le]=s0[ee];return ph[b]&&!ph[b].test(a.value)?(a.value=Pt(a.value,b,E),null):(l0.test(a.value)&&(a.classes+=" lcGreek"),le&&(a.classes+=" "+le),re)}};function gm(a,y){const{parent:b}=a[0],E=c0(b);return No(a,"variant").map(ee=>{const re=c0(ee[0]);let le="";re&&re!==E&&(le={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[re],console.assert(le!==void 0));const me=Ba(ee.map(ge=>ge._serialize(y)));return le?ho(le,me):me})}function c0(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 No(a,"fontShape").map(b=>{const E=vm(b,y),{fontShape:ee}=b[0].style;let re="";return ee==="it"&&(re="\\textit"),ee==="sl"&&(re="\\textsl"),ee==="sc"&&(re="\\textsc"),ee==="n"&&(re="\\textup"),!re&&ee?`{${ho("\\fontshape",ee)}${Ba(E)}}`:re?ho(re,Ba(E)):Ba(E)})}function bm(a,y){return No(a,"fontSeries").map(b=>{const E=ym(b,y),{fontSeries:ee}=b[0].style;let re="";return ee==="b"&&(re="\\textbf"),ee==="l"&&(re="\\textlf"),ee==="m"&&(re="\\textmd"),ee&&!re?`{${ho("\\fontseries",ee)}${Ba(E)}}`:re?ho(re,Ba(E)):Ba(E)})}function xm(a,y){return No(a,"fontSize").map(b=>{var E,ee;const re=bm(b,y),le=(ee=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(E=b[0].style.fontSize)!=null?E:""])!=null?ee:"";return le?`${le} ${Ba(re)}`:Ba(re)})}function wm(a,y,b){return No(a,"fontFamily").map(E=>{var ee,re;const le=xm(E,y),me=(re={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(ee=E[0].style.fontFamily)!=null?ee:""])!=null?re:"";return me?`\\${me}{${Ba(le)}}`:E[0].style.fontFamily?`{\\fontfamily{${E[0].style.fontFamily}} ${Ba(le)}}`:b?`\\text{${Ba(le)}}`:Ba(le)})}var u0={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},Sm=class extends Us{constructor(){super("text")}createAtom(a,y,b){return y&&y.definitionType==="symbol"?new dc(a,String.fromCodePoint(y.codepoint),b!=null?b:{}):null}serialize(a,y){return wm(a,Me(ve({},y),{defaultMode:"text"}),y.defaultMode!=="text")}getFont(a,y){var b,E,ee,re,le;const{fontFamily:me}=y;if(u0[me]?a.classes+=" "+u0[me]:me&&a.setStyle("font-family",me),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 ge=y.fontSeries.match(/(.?[lbm])?(.?[cx])?/);ge&&(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=ge[1])!=null?E:""])!=null?ee:"",a.classes+=" ",a.classes+=(le={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(re=ge[2])!=null?re:""])!=null?le:"")}return"Main-Regular"}};new Sm;var Cm=class extends Us{constructor(){super("latex")}createAtom(a){return new Ks(a)}serialize(a,y){return a.filter(b=>b instanceof Ks&&!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:["","=","","="]}},d0={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","\xE1","\xC1"],KeyB:["b","B","",""],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\xE9","\xC9"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","\xED","\xCD"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","\xF8","\xD8"],KeyM:["m","M","\xB5",""],KeyN:["n","N","\xF1","\xD1"],KeyO:["o","O","\xF3","\xD3"],KeyP:["p","P","\xF6","\xD6"],KeyQ:["q","Q","\xE4","\xC4"],KeyR:["r","R","\xAE",""],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\xFE","\xDE"],KeyU:["u","U","\xFA","\xDA"],KeyV:["v","V","",""],KeyW:["w","W","\xE5","\xC5"],KeyX:["x","X","",""],KeyY:["y","Y","\xFC","\xDC"],KeyZ:["z","Z","\xE6","\xC6"],Digit1:["1","!","\xA1","\xB9"],Digit2:["2","@","\xB2",""],Digit3:["3","#","\xB3",""],Digit4:["4","$","\xA4","\xA3"],Digit5:["5","%","\u20AC",""],Digit6:["6","^","\xBC",""],Digit7:["7","&","\xBD",""],Digit8:["8","*","\xBE",""],Digit9:["9","(","\u2018",""],Digit0:["0",")","\u2019",""],Space:[" "," ","",""],Minus:["-","_","\xA5",""],Equal:["=","+","\xD7","\xF7"],BracketLeft:["[","{","\xAB",""],BracketRight:["]","}","\xBB",""],Backslash:["\\","|","\xAC","\xA6"],Semicolon:[";",":","\xB6","\xB0"],Quote:["'",'"',"\xB4","\xA8"],Backquote:["`","~","",""],Comma:[",","<","\xE7","\xC7"],Period:[".",">","",""],Slash:["/","?","\xBF",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},f0={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},Mm={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},km={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Am={id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","\u03A9"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:[",","?","\u0301","\u030B"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["z","Z","\xAB","<"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["w","W","\u0142","\u0141"],Digit1:["&","1","\xB9","\xA1"],Digit2:["\xE9","2","~","\u215B"],Digit3:['"',"3","#","\xA3"],Digit4:["'","4","{","$"],Digit5:["(","5","[","\u215C"],Digit6:["-","6","|","\u215D"],Digit7:["\xE8","7","`","\u215E"],Digit8:["_","8","\\","\u2122"],Digit9:["\xE7","9","^","\xB1"],Digit0:["\xE0","0","@","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:[")","\xB0","]","\xBF"],Equal:["=","+","}","\u0328"],BracketLeft:["\u0302","\u0308","\u0308","\u030A"],BracketRight:["$","\xA3","\xA4","\u0304"],Backslash:["*","\xB5","\u0300","\u0306"],Semicolon:["m","M","\xB5","\xBA"],Quote:["\xF9","%","\u0302","\u030C"],Backquote:["\xB2","~","\xAC","\xAC"],Comma:[";",".","\u2500","\xD7"],Period:[":","/","\xB7","\xF7"],Slash:["!","\xA7","\u0323","\u0307"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"]}},Bm={id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u2039"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\u2122"],KeyE:["e","E","\u20AC","\u2030"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\xCC"],KeyH:["h","H","\xAA","\xD3"],KeyI:["i","I","\u2044","\xDB"],KeyJ:["j","J","\xBA","\u0131"],KeyK:["k","K","\u2206","\u02C6"],KeyL:["l","L","@","\uFB02"],KeyM:["m","M","\xB5","\u02D8"],KeyN:["n","N","~","\u203A"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\xAB","\xBB"],KeyR:["r","R","\xAE","\xB8"],KeyS:["s","S","\u201A","\xCD"],KeyT:["t","T","\u2020","\u02DD"],KeyU:["u","U","\xA8","\xC1"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\xD9"],KeyY:["z","Z","\u03A9","\u02C7"],KeyZ:["y","Y","\xA5","\u2021"],Digit1:["1","!","\xA1","\xAC"],Digit2:["2",'"',"\u201C","\u201D"],Digit3:["3","\xA7","\xB6","#"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","[","\uFB01"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","\u02DC"],Digit9:["9",")","}","\xB7"],Digit0:["0","=","\u2260","\xAF"],Space:[" "," "," "," "],Minus:["\xDF","?","\xBF","\u02D9"],Equal:["\xB4","`","'","\u02DA"],BracketLeft:["\xFC","\xDC","\u2022","\xB0"],BracketRight:["+","*","\xB1","\uF8FF"],Backslash:["#","'","\u2018","\u2019"],Semicolon:["\xF6","\xD6","\u0153","\u0152"],Quote:["\xE4","\xC4","\xE6","\xC6"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u221E","\u02DB"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","\xB0","\u201E","\u201C"],NumpadEqual:["=","=","=","="]}},Dm={id:"windows.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","\xB5",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"\xB2",""],Digit3:["3","\xA7","\xB3",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["\xDF","?","\\","\u1E9E"],Equal:["\xB4","`","",""],BracketLeft:["\xFC","\xDC","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["\xF6","\xD6","",""],Quote:["\xE4","\xC4","",""],Backquote:["^","\xB0","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}},Lm={id:"linux.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201C","\u2018"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0323","\u0307"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","\u201D","\u2019"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\u017F","\u1E9E"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201E","\u201A"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xAB","\u2039"],KeyY:["z","Z","\u2190","\xA5"],KeyZ:["y","Y","\xBB","\u203A"],Digit1:["1","!","\xB9","\xA1"],Digit2:["2",'"',"\xB2","\u215B"],Digit3:["3","\xA7","\xB3","\xA3"],Digit4:["4","$","\xBC","\xA4"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["\xDF","?","\\","\xBF"],Equal:["\u0301","\u0300","\u0327","\u0328"],BracketLeft:["\xFC","\xDC","\u0308","\u030A"],BracketRight:["+","*","~","\xAF"],Backslash:["#","'","\u2019","\u0306"],Semicolon:["\xF6","\xD6","\u030B","\u0323"],Quote:["\xE4","\xC4","\u0302","\u030C"],Backquote:["\u0302","\xB0","\u2032","\u2033"],Comma:[",",";","\xB7","\xD7"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],PrintScreen:["","","",""],PageUp:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",",","",","],IntlBackslash:["<",">","|","\u0331"],AltRight:["\r","\r","\r","\r"],MetaRight:[".",".",".","."]}},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"]}},Pm={id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","\xB7","#",""],Digit4:["4","$","~",""],Digit5:["5","%","\u20AC",""],Digit6:["6","&","\xAC",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["\xA1","\xBF","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["\xE7","\xC7","}",""],Semicolon:["\xF1","\xD1","",""],Quote:["\xB4","\xA8","{",""],Backquote:["\xBA","\xAA","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Tm={id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["z","Z","\xAB","<"],Digit1:["1","!","|","\xA1"],Digit2:["2",'"',"@","\u215B"],Digit3:["3","\xB7","#","\xA3"],Digit4:["4","$","~","$"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["'","?","\\","\xBF"],Equal:["\xA1","\xBF","\u0303","~"],BracketLeft:["\u0300","\u0302","[","\u030A"],BracketRight:["+","*","]","\u0304"],Backslash:["\xE7","\xC7","}","\u0306"],Semicolon:["\xF1","\xD1","~","\u030B"],Quote:["\u0301","\u0308","{","{"],Backquote:["\xBA","\xAA","\\","\\"],Comma:[",",";","\u2500","\xD7"],Period:[".",":","\xB7","\xF7"],Slash:["-","_","\u0323","\u0307"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function h0(a){const y=a.split("+"),b={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:y.pop()};return y.includes("shift")&&(b.shift=!0),y.includes("alt")&&(b.alt=!0),y.includes("ctrl")&&(b.ctrl=!0),y.includes("cmd")&&(b.cmd=!0),y.includes("win")&&(b.win=!0),y.includes("meta")&&(b.meta=!0),b}function ud(a){let y="";return a.shift&&(y+="shift+"),a.alt&&(y+="alt+"),a.ctrl&&(y+="ctrl+"),a.cmd&&(y+="cmd+"),a.win&&(y+="win+"),a.meta&&(y+="meta+"),y+a.key}var Om={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},Ud=[],Gd;function gh(){switch(ft()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function Hl(a){(!a.platform||a.platform===gh())&&Ud.push(a)}function Nm(a,y){var b;const E={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!a)return E;for(const[ee,re]of Object.entries(y.mapping)){if(re[0]===a)return E.key=`[${ee}]`,E;if(re[1]===a)return E.shift=!0,E.key=`[${ee}]`,E;if(re[2]===a)return E.alt=!0,E.key=`[${ee}]`,E;if(re[3]===a)return E.shift=!0,E.alt=!0,E.key=`[${ee}]`,E}return E.key=(b=Om[a])!=null?b:"",E}function Rm(a){if(a.code)return a;const y=Object.entries(Yd().mapping);let b=!1,E=!1,ee="";for(let re=0;re<4;re++){for(const[le,me]of y)if(me[re]===a.key){ee=le,re===3?(b=!0,E=!0):re===2?b=!0:re===1&&(E=!0);break}if(ee)break}return new KeyboardEvent(a.type,Me(ve({},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 Ud)((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);Ud.sort((ee,re)=>re.score-ee.score)}function zm(a){Gd=Ud.find(y=>a.startsWith(y.locale))}function Yd(){return Gd!=null?Gd:Ud[0]}function _m(){switch(gh()){case"apple":return mh;case"windows":return d0;case"linux":return f0}return mh}switch(gh()){case"apple":Hl(mh),Hl(Mm),Hl(Im),Hl(Bm);break;case"windows":Hl(d0),Hl(km),Hl(Pm),Hl(Dm);break;case"linux":Hl(f0),Hl(Am),Hl(Tm),Hl(Lm);break}Hl(Em);function vh(a){var y;const b=/macos|ios/.test(ft()),E=a.split("+");let ee="";for(const re of E)ee&&(ee+=b?"\u2009":'<span class="ML__shortcut-join">+</span>'),re.startsWith("[Key")?ee+=re.slice(4,5):re.startsWith("Key")?ee+=re.slice(3,4):re.startsWith("[Digit")?ee+=re.slice(6,7):re.startsWith("Digit")?ee+=re.slice(5,6):ee+=(y={cmd:"\u2318",meta:b?"\u2318":"Ctrl",shift:b?"\u21E7":"Shift",alt:b?"\u2325":"Alt",ctrl:b?"\u2303":"Ctrl","\n":b?"\u23CE":"Return","[return]":b?"\u23CE":"Return","[enter]":b?"\u2324":"Enter","[tab]":b?"\u21E5":"Tab","[escape]":"Esc","[backspace]":b?"\u232B":"Backspace","[delete]":b?"\u2326":"Del","[pageup]":b?"\u21DE":"Page Up","[pagedown]":b?"\u21DF":"Page Down","[home]":b?"\u2912":"Home","[end]":b?"\u2913":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[re.toLowerCase()])!=null?y:re.toUpperCase();return ee}function Mf(a){if(a instanceof MouseEvent||a instanceof PointerEvent)return{x:a.clientX,y:a.clientY};if(a instanceof TouchEvent){const y=[...a.touches].reduce((E,ee)=>({x:E.x+ee.clientX,y:E.y+ee.clientY}),{x:0,y:0}),b=a.touches.length;return{x:y.x/b,y:y.y/b}}}function Nu(a){const y={alt:!1,control:!1,shift:!1,meta:!1};return(a instanceof MouseEvent||a instanceof PointerEvent||a instanceof TouchEvent||a instanceof KeyboardEvent)&&(a.altKey&&(y.alt=!0),a.ctrlKey&&(y.control=!0),a.metaKey&&(y.meta=!0),a.shiftKey&&(y.shift=!0)),y}function Km(a,y){return!a&&y||a&&!y?!1:!a||!y?!0:a.alt===y.alt&&a.control===y.control&&a.shift===y.shift&&a.meta===y.meta}var Hm=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function kf(a){return a.ctrlKey||a.metaKey||["Dead","Process"].includes(a.key)?!1:a.code===""?!0:Hm.has(a.code)}function Af(){var a;let y=document.activeElement;for(;(a=y==null?void 0:y.shadowRoot)!=null&&a.activeElement;)y=y.shadowRoot.activeElement;return y}var Ac=class Xc{static get scrim(){return Xc._scrim||(Xc._scrim=new Xc),Xc._scrim}static open(y){Xc.scrim.open(y)}static close(){Xc.scrim.close()}static get state(){return Xc.scrim.state}static get element(){return Xc.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=Af();const{element:E}=this;((b=y==null?void 0:y.root)!=null?b:document.body).appendChild(E),E.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const ee=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const re=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${re+ee}px`,y!=null&&y.child&&E.append(y.child),this.state="open"}close(){var y,b,E,ee;if(this.state!=="open"){console.assert(this.element.parentElement!==null);return}this.state="closing",typeof this.onDismiss=="function"&&this.onDismiss(),this.onDismiss=void 0;const{element:re}=this;re.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),re.remove(),document.body.style.overflow=(y=this.savedOverflow)!=null?y:"",document.body.style.marginRight=(b=this.savedMarginRight)!=null?b:"",Af()!==this.savedActiveElement&&((ee=(E=this.savedActiveElement)==null?void 0:E.focus)==null||ee.call(E)),re.innerHTML="",this.state="closed"}handleEvent(y){this.lightDismiss&&(y.target===this._element&&y.type==="click"?(this.close(),y.preventDefault(),y.stopPropagation()):y.target===document&&(y.type==="touchmove"||y.type==="scroll")&&(this.close(),y.preventDefault(),y.stopPropagation()))}};function Wm(a,y,b){let E=null,ee=null,re=!1,le=!1,me=!1;const ge=new AbortController,Se=ge.signal;return a.addEventListener("keydown",Pe=>{if(re||Pe.key==="Process"||Pe.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(Pe.code)){E=null;return}E=Pe,ee=null,b.onKeystroke(Pe)?a.textContent="":E=null},{capture:!0,signal:Se}),a.addEventListener("keypress",Pe=>{re||(E&&ee&&b.onKeystroke(E),ee=Pe)},{capture:!0,signal:Se}),a.addEventListener("compositionstart",Pe=>{a.textContent="",re=!0,b.onCompositionStart(Pe.data)},{capture:!0,signal:Se}),a.addEventListener("compositionupdate",Pe=>{re&&b.onCompositionUpdate(Pe.data)},{capture:!0,signal:Se}),a.addEventListener("compositionend",Pe=>{a.textContent="",re&&(re=!1,b.onCompositionEnd(Pe.data))},{capture:!0,signal:Se}),a.addEventListener("beforeinput",Pe=>Pe.stopImmediatePropagation(),{signal:Se}),a.addEventListener("input",Pe=>{var st;if(!re&&(a.textContent="",Pe.inputType!=="insertCompositionText")){if(Pe.inputType==="insertFromPaste"){Pe.preventDefault(),Pe.stopPropagation();return}b.onInput((st=Pe.data)!=null?st:""),Pe.preventDefault(),Pe.stopPropagation()}},{signal:Se}),a.addEventListener("paste",Pe=>{a.focus({preventScroll:!0}),a.textContent="",b.onPaste(Pe)||Pe.preventDefault(),Pe.stopImmediatePropagation()},{signal:Se}),a.addEventListener("cut",Pe=>b.onCut(Pe),{capture:!0,signal:Se}),a.addEventListener("copy",Pe=>b.onCopy(Pe),{capture:!0,signal:Se}),a.addEventListener("blur",Pe=>{var st,kt;if(((kt=(st=Pe.relatedTarget)==null?void 0:st._mathfield)==null?void 0:kt.element)===y){a.focus({preventScroll:!0}),Pe.preventDefault(),Pe.stopPropagation();return}const Vt=Ac.state;if(Vt==="open"||Vt==="opening"){Pe.preventDefault(),Pe.stopPropagation();return}if(Pe.relatedTarget===Pe.target.getRootNode().host){Pe.preventDefault(),Pe.stopPropagation();return}me||le||(me=!0,E=null,ee=null,b.onBlur(),me=!1)},{capture:!0,signal:Se}),a.addEventListener("focus",Pe=>{me||le||(le=!0,b.onFocus(),le=!1)},{capture:!0,signal:Se}),{dispose:()=>ge.abort(),cancelComposition:()=>{re&&(a.blur(),requestAnimationFrame(()=>a.focus({preventScroll:!0})))},blur:()=>{typeof a.blur=="function"&&a.blur()},focus:()=>{!le&&typeof a.focus=="function"&&a.focus({preventScroll:!0})},hasFocus:()=>Af()===a,setAriaLabel:Pe=>a.setAttribute("aria-label",Pe),setValue:Pe=>{var st;a.textContent=Pe,a.style.left="-1000px",(st=window.getSelection())==null||st.selectAllChildren(a)},moveTo:(Pe,st)=>{a.style.top=`${st}px`,a.style.left=`${Pe}px`}}}function dd(a){var y;if(!a||!kf(a))return"";let b;return a.key==="Unidentified"&&a.target&&(b=a.target.value),b=(y=b!=null?b:a.key)!=null?y:a.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(b)&&(b=""),b}function p0(a){a=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(pt()){const y=ft(),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=ud(h0(p0(b))),ee=ud({key:b.key,shift:b.shiftKey,alt:b.altKey,ctrl:b.ctrlKey,meta:b.metaKey||b.ctrlKey&&/macos|ios/.test(ft()),cmd:!1,win:!1});for(let re=a.length-1;re>=0;re--)if((a[re].key===E||a[re].key===ee)&&(!a[re].ifMode||a[re].ifMode===y))return a[re].command;return""}function m0(a){let y=a;return Fe(y)&&(y=y.length>0?y[0]+"("+y.slice(1).join("")+")":""),y}function Vm(a,y){let b=[];if(typeof y=="string"){const re=Od[y];Fe(re)?b=re.slice():re&&b.push(re)}const E=m0(y),ee=new RegExp("^"+E.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const re of a)ee.test(m0(re.command))&&b.push(re.key);return b.map(vh)}function Um(a,y){if(a.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(a.ifPlatform))throw new Error(`Unexpected platform "${a.ifPlatform}" for keybinding ${a.key}`);if(a.ifLayout!==void 0&&(y.score===0||!a.ifLayout.includes(y.id)))return;const b=h0(a.key);let E=a.ifPlatform;if(b.cmd){if(E&&E!=="macos"&&E!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+E+`"
|
|
|
"cmd" modifier can only be used with macOS or iOS platform.`);E||(E=ft()==="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(ve({},a),{key:ud(b)});const ee=Nm(b.key,y);if(!ee)return Me(ve({},a),{key:ud(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 ${ud(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(ve({},a),{key:ud(ee)})}function yh(a){if(Array.isArray(a)){const y=[...a];return y.shift()+"("+y.map(b=>typeof b=="string"?`"${b}"`:b.toString()).join(", ")+")"}return a}function Gm(a,y){const b=[],E=[];for(const ee of a)try{const re=Um(ee,y);if(!re)continue;const le=E.find(me=>me.key===re.key&&me.ifMode===re.ifMode);if(le)throw new Error(`Ambiguous key binding ${ee.key} (${yh(ee.command)}) matches ${le.key} (${yh(le.command)}) with the ${y.displayName} keyboard layout`);E.push(re)}catch(re){re instanceof Error&&b.push(re.message)}return[E,b]}var Ym=class extends ma{constructor(){super("latex")}createAtom(a){return new Ks(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"}),Xo(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(Bs(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const re=[];for(const ge of y)ce.test(ge)&&re.push(new Ks(ge));let le=a.at(a.position);if(le instanceof Hd&&(le=le.lastChild),!(le.parent instanceof Hd)){const ge=new Hd("");le.parent.addChildAfter(ge,le),le=ge.firstChild}const me=le.parent.addChildrenAfter(re,le);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(me)):me&&(a.position=a.offsetOf(me))),a.contentDidChange({data:y,inputType:"insertText"}),a.silenceNotifications=E,!0}};function Xm(a){return a.atoms.find(y=>y.type==="latexgroup")}function Xd(a){var y,b;const E=a.atoms.find(ee=>ee.type==="latexgroup");return E?(b=(y=E.body)==null?void 0:y.filter(ee=>ee.type==="latex"))!=null?b:[]:[]}function g0(a,y){var b;let E=0,ee=!1;const re=Number.isFinite(y==null?void 0:y.before)?(b=y==null?void 0:y.before)!=null?b:0:a.lastOffset;for(;E<=re&&!ee;){const ge=a.at(E);ee=ge instanceof Ks&&ge.isSuggestion,ee||E++}if(!ee)return[void 0,void 0];let le=E,me=!1;for(;le<=re&&!me;){const ge=a.at(le);me=!(ge instanceof Ks&&ge.isSuggestion),me||le++}return[E-1,le-1]}new Ym;function Bf(a){const y=Xd(a.model).filter(b=>b.isSuggestion);if(y.length!==0){a.model.position=a.model.offsetOf(y[0].leftSibling);for(const b of y)b.parent.removeChild(b)}}function Qd(a,y){var b;const{model:E}=a;Bf(a);for(const Pe of Xd(E))Pe.isError=!1;if(!E.selectionIsCollapsed||a.options.popoverPolicy==="off"){hd(a);return}const ee=[];let re=E.at(E.position);for(;re&&re instanceof Ks&&/^[a-zA-Z\*]$/.test(re.value);)re=re.leftSibling;if(re&&re instanceof Ks&&re.value==="\\")for(ee.push(re),re=re.rightSibling;re&&re instanceof Ks&&/^[a-zA-Z\*]$/.test(re.value);)ee.push(re),re=re.rightSibling;const le=ee.map(Pe=>Pe.value).join(""),me=Be(a,le);if(me.length===0){if(/^\\[a-zA-Z\*]+$/.test(le))for(const Pe of ee)Pe.isError=!0;hd(a);return}const ge=(b=y==null?void 0:y.atIndex)!=null?b:0;a.suggestionIndex=ge<0?me.length-1:ge%me.length;const Se=me[a.suggestionIndex];if(Se!==le){const Pe=ee[ee.length-1];Pe.parent.addChildrenAfter([...Se.slice(le.length-Se.length)].map(st=>new Ks(st,{isSuggestion:!0})),Pe),Ru(a,{interactive:!0})}Jm(a,me)}function v0(a){const[y,b]=g0(a,{before:a.position});if(y===void 0||b===void 0)return!1;let E=!1;return a.getAtoms([y,b]).forEach(ee=>{ee.isSuggestion&&(ee.isSuggestion=!1,E=!0)}),E}function fd(a,y="accept",b){var E,ee;hd(a);const re=Xm(a.model);if(!re)return!1;if(y==="accept-suggestion"||y==="accept-all"){const Se=Xd(a.model).filter(Pe=>Pe.isSuggestion);if(Se.length!==0){for(const Pe of Se)Pe.isSuggestion=!1;a.model.position=a.model.offsetOf(Se[Se.length-1])}if(y==="accept-suggestion")return Se.length!==0}const me=Xd(a.model).filter(Se=>!Se.isSuggestion).map(Se=>Se.value).join(""),ge=re.leftSibling;return re.parent.removeChild(re),a.model.position=a.model.offsetOf(ge),a.switchMode((E=b==null?void 0:b.mode)!=null?E:"math"),y==="reject"||(ma.insert(a.model,me,{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 Df(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 Wa({from:a.context}),E=new sr({mode:"math",type:"root",body:Ls(y,{context:b})}),ee=ou(jd(new Vr(E.render(b),{classes:"ML__base"}),b));return su(ee,{classes:"ML__latex"}).toMarkup()}function Jm(a,y){var b;if(y.length===0){hd(a);return}let E="";for(const[re,le]of y.entries()){const me=le,ge=Qm(a,le),Se=Vm(a.keybindings,me).join("<br>");E+=`<li role="button" data-command="${me}" ${re===a.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${me}</span><span class="ML__popover__command">${ge}</span>`,Se&&(E+=`<span class="ML__popover__keybinding">${Se}</span>`),E+="</li>"}const ee=qm(a,`<ul>${E}</ul>`);xh()&&((b=ee.querySelector(".ML__popover__current"))==null||b.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var re;ee&&!xh()&&(ee.classList.add("is-visible"),Lf(a),(re=ee.querySelector(".ML__popover__current"))==null||re.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function xh(){const a=document.getElementById("mathlive-suggestion-popover");return a?a.classList.contains("is-visible"):!1}function Lf(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(()=>Lf(a),32);return}const E=Mc(a.field);if(!E)return;const ee=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,re=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,le=window.innerWidth-document.documentElement.clientWidth,me=window.innerHeight-document.documentElement.clientHeight,ge=window.mathVirtualKeyboard.boundingRect.height,Se=document.getElementById("mathlive-suggestion-popover");E.x+Se.offsetWidth/2>re-le?Se.style.left=`${re-Se.offsetWidth-le}px`:E.x-Se.offsetWidth/2<0?Se.style.left="0":Se.style.left=`${E.x-Se.offsetWidth/2}px`;const Pe=E.y-E.height;ee-me-ge-E.y<Pe?(Se.classList.add("ML__popover--reverse-direction"),Se.classList.remove("top-tip"),Se.classList.add("bottom-tip"),Se.style.top=`${E.y-E.height-Se.offsetHeight-15}px`):(Se.classList.remove("ML__popover--reverse-direction"),Se.classList.add("top-tip"),Se.classList.remove("bottom-tip"),Se.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 qm(a,y){let b=document.getElementById("mathlive-suggestion-popover");return b||(b=Df("mathlive-suggestion-popover"),Bl("suggestion-popover"),Bl("core"),b.addEventListener("pointerdown",E=>E.preventDefault()),b.addEventListener("click",E=>{let ee=E.target;for(;ee&&!ee.dataset.command;)ee=ee.parentElement;ee&&(fd(a,"reject"),ma.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 $m(){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 If=null,y0,b0,wh=((b0=(y0=globalThis==null?void 0:globalThis.document)==null?void 0:y0.currentScript)==null?void 0:b0.src)||eg();function x0(a){return yu(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(a))return new URL(a).href;if(If===null)try{const y=yield fetch(wh,{method:"HEAD"});y.status===200&&(If=y.url)}catch(y){console.error(`Invalid URL "${a}" (relative to "${wh}")`)}return new URL(a,If!=null?If:wh).href})}function tg(a,y,b={}){return new FontFace(a,`url(${y}.woff2) format('woff2')`,b)}var Wl="not-loaded";function ng(){return yu(this,null,function*(){return Wl="not-loaded",Pf()})}function Pf(){return yu(this,null,function*(){var a;if(Wl!=="not-loaded")return;if(Wl="loading",(a=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?a:!1){Wl="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const b=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],E=Array.from(document.fonts).map(le=>le.family);if(b.every(le=>E.includes(le))){Wl="ready";return}if(!window.MathfieldElement.fontsDirectory){Wl="not-loaded";return}const ee=yield x0(window.MathfieldElement.fontsDirectory);if(!ee){document.body.classList.add("ML__fonts-did-not-load"),Wl="error";return}const re=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(le=>tg(le[0].replace(/-[a-zA-Z]+$/,""),`${ee}/${le[0]}`,le[1]));try{(yield Promise.all(re.map(me=>{try{return me.load()}catch(ge){}}))).forEach(me=>document.fonts.add(me)),Wl="ready";return}catch(le){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${ee}"`,{cause:le}),document.body.classList.add("ML__fonts-did-not-load")}Wl="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 Xo(a,y){a&&(a.dirty||(a.dirty=!0,requestAnimationFrame(()=>{_l(a)&&a.dirty&&(a.atomBoundsCache=new Map,Ru(a,y),a.atomBoundsCache=void 0)})))}function ig(a,y){var b;y=y!=null?y:{};const E=new Wa({from:Me(ve({},a.context),{atomIdsSettings:{seed:y.forHighlighting?rg(sr.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 su(jd(ee,E),{classes:a.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function w0(a,y){const{model:b}=a;b.root.caret=void 0,b.root.isSelected=!1,b.root.containsCaret=!0;for(const ee of b.atoms)ee.caret=void 0,ee.isSelected=!1,ee.containsCaret=!1;if(b.selectionIsCollapsed){const ee=b.at(b.position);ee.caret=a.model.mode;let re=ee.parent;for(;re;)re.containsCaret=!0,re=re.parent}else{const ee=b.getAtoms(b.selection,{includeChildren:!0});for(const re of ee)re.isSelected=!0}return ig(a,y).toMarkup()}function Ru(a,y){if(!_l(a))return;y!=null||(y={});const b=a.element.querySelector("[part=virtual-keyboard-toggle]");b&&(b.style.display=a.hasEditableContent?"":"none");const E=a.field;if(!E)return;const ee=a.isSelectionEditable&&a.hasFocus(),re=E.classList.contains("ML__focused");re&&!ee?E.classList.remove("ML__focused"):!re&&ee&&E.classList.add("ML__focused");let le=w0(a,y);const me=a.element.querySelector("[part=menu-toggle]");if(me&&(a.model.atoms.length<=1||a.disabled||a.readOnly&&!a.hasEditableContent||a.userSelect==="none"?me.style.display="none":me.style.display=""),a.model.atoms.length<=1){const ge=a.options.contentPlaceholder;ge&&(le+=`<span part=placeholder class="ML__content-placeholder">${Is(ge)}</span>`)}E.innerHTML=window.MathfieldElement.createHTML(le),Tf(a,y.interactive),a.dirty=!1}function Tf(a,y){const b=a.field;if(!b)return;for(const me of b.querySelectorAll(".ML__selection, .ML__contains-highlight"))me.remove();!(y!=null&&y)&&Wl!=="error"&&Wl!=="ready"&&setTimeout(()=>{Wl==="ready"?Tf(a):setTimeout(()=>Tf(a),128)},32);const E=a.model,ee=b.offsetWidth,re=b.getBoundingClientRect().width;let le=Math.floor(re)/ee;if(le=isNaN(le)?1:le,E.selectionIsCollapsed){Lf(a,{deferred:!0});let me=E.at(E.position);for(;me&&me.type!=="prompt"&&!(me.containsCaret&&me.displayContainsHighlight);)me=me.parent;if(me!=null&&me.containsCaret&&me.displayContainsHighlight){const ge=Rd(a,uu(a,me),le);if(ge){ge.left/=le,ge.right/=le,ge.top/=le,ge.bottom/=le;const Se=document.createElement("div");Se.classList.add("ML__contains-highlight"),Se.style.position="absolute",Se.style.left=`${ge.left+1}px`,Se.style.top=`${Math.ceil(ge.top)}px`,Se.style.width=`${Math.ceil(ge.right-ge.left)}px`,Se.style.height=`${Math.ceil(ge.bottom-ge.top)}px`,b.insertBefore(Se,b.childNodes[0])}}return}for(const me of ag(zd(a,{excludeAtomsWithBackground:!0}))){me.left/=le,me.right/=le,me.top/=le,me.bottom/=le;const ge=document.createElement("div");ge.classList.add("ML__selection"),ge.style.position="absolute",ge.style.left=`${me.left}px`,ge.style.top=`${me.top}px`,ge.style.width=`${Math.ceil(me.right-me.left)}px`,ge.style.height=`${Math.ceil(me.bottom-me.top-1)}px`,b.insertBefore(ge,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 S0=3,Bc;function Dl(a,y){y=ve({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},y!=null?y:{}),Bc||(Bc={});for(const b of Object.keys(a))console.assert(!Bc[b],"Selector already defined: ",b),Bc[b]=Me(ve({},y),{fn:a[b]})}function Sh(a){let y;if(Array.isArray(a)){if(a[0]==="performWithFeedback")return Sh(a[1]);y=a[0]}else y=a;return y=y.replace(/-\w/g,b=>b[1].toUpperCase()),Bc[y]}function pd(a){var y;return(y=Sh(a))==null?void 0:y.target}function og(a,y){var b;if(!y)return!1;let E,ee=[],re=!1,le=!1;Fe(y)?(E=y[0],ee=y.slice(1)):E=y,E=E.replace(/-\w/g,Se=>Se[1].toUpperCase());const me=Bc[E],ge=me==null?void 0:me.target;if(ge==="model"){if(!a.isSelectionEditable&&(me!=null&&me.changeContent))return a.model.announce("plonk"),!1;/^(delete|add)/.test(E)&&(E!=="deleteBackward"&&a.flushInlineShortcutBuffer(),a.snapshot(E)),/^complete/.test(E)||Bf(a),Bc[E].fn(a.model,...ee),Qd(a),le=!0,re=!0}else if(ge==="virtual-keyboard")le=(b=window.mathVirtualKeyboard.executeCommand(y))!=null?b:!1,re=!0;else if(Bc[E]){if(!a.isSelectionEditable&&(me!=null&&me.changeContent))return a.model.announce("plonk"),!1;/^(undo|redo)/.test(E)&&a.flushInlineShortcutBuffer(),le=Bc[E].fn(a,...ee),re=!0}else throw new Error(`Unknown command "${E}"`);return ge!=="virtual-keyboard"&&(!a.model.selectionIsCollapsed||me!=null&&me.changeSelection&&y!=="deleteBackward")&&(a.flushInlineShortcutBuffer(),me!=null&&me.changeContent||a.stopCoalescingUndo(),a.defaultStyle={}),le&&Xo(a),re}function sg(a,y){var b;if(!a)return!1;a.focus(),vp.keypressVibration&&je()&&navigator.vibrate(S0);const E=Sh(y);window.MathfieldElement.playSound((b=E==null?void 0:E.audioFeedback)!=null?b:"keypress");const ee=a.executeCommand(y);return a.scrollIntoView(),ee}Dl({performWithFeedback:(a,y)=>sg(a,y)});function lg(a){return Qd(a,{atIndex:a.suggestionIndex+1}),!1}function cg(a){return Qd(a,{atIndex:a.suggestionIndex-1}),!1}Dl({complete:fd},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),Dl({nextSuggestion:lg,previousSuggestion:cg},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var Of="mathlive#virtual-keyboard-message";function Ch(a){var y;return a.type!=="message"?!1:((y=a.data)==null?void 0:y.type)===Of}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(!_d(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");this.handleMessage(y.data)}}handleMessage(y){const{action:b}=y;if(b==="execute-command"){const{command:E}=y;pd(E)==="virtual-keyboard"&&this.executeCommand(E);return}if(b==="synchronize-proxy"){this._boundingRect=y.boundingRect,this._isShifted=y.isShifted;return}if(b==="geometry-changed"){this._boundingRect=y.boundingRect,this.dispatchEvent(new Event("geometrychange"));return}}sendMessage(y,b={}){if(!window.top)throw new DOMException("A frame does not have access to the top window and can\u2018t communicate with the keyboard. Review virtualKeyboardTargetOrigin and originValidator on mathfields embedded in an iframe","SecurityError");window.top.postMessage(ve({type:Of,action:y},b),this.targetOrigin)}},C0={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]"]]}},Nf={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"}]},Jd;function E0(a,y){var b,E,ee;const re=pu.singleton;if(!re)return;const le=md(a),me=(E=(b=re.getKeycap(le==null?void 0:le.id))==null?void 0:b.variants)!=null?E:"";if(typeof me=="string"&&!M0(me)||Array.isArray(me)&&me.length===0){y==null||y();return}const ge={};let Se="";for(const Yn of fg(me)){const Yr=A0(Yn),Zn=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);ge[Zn]=Yr;const[hr,ni]=Rf(Yr);Se+=`<div id=${Zn} class="item ${ni}">${hr}</div>`}const Pe=document.createElement("div");Pe.setAttribute("aria-hidden","true"),Pe.className="MLK__variant-panel",Pe.style.height="auto";const st=Object.keys(ge).length;let kt=5;st===1?kt=1:st===2||st===4?kt=2:st===3||st===5||st===6?kt=3:st>=7&&st<14&&(kt=4),Pe.style.width=`calc(var(--variant-keycap-length) * ${kt} + 12px)`,Pe.innerHTML=vp.createHTML(Se),Ac.open({root:(ee=re==null?void 0:re.container)==null?void 0:ee.querySelector(".ML__keyboard"),child:Pe}),Jd=new AbortController;const{signal:Vt}=Jd,sn=a==null?void 0:a.getBoundingClientRect();if(sn){sn.top-Pe.clientHeight<0&&(Pe.style.width="auto",st<=6?Pe.style.height="56px":st<=12?Pe.style.height="108px":st<=18?Pe.style.height="205px":Pe.classList.add("compact"));const Yn=Math.max(0,Math.min(window.innerWidth-Pe.offsetWidth,(sn.left+sn.right-Pe.offsetWidth)/2)),Yr=sn.top-Pe.clientHeight+5;Pe.style.transform=`translate(${Yn}px, ${Yr}px)`,Pe.classList.add("is-visible"),requestAnimationFrame(()=>{Pe.addEventListener("pointerup",Zn=>{const hr=md(Zn.target);!(hr!=null&&hr.id)||!ge[hr.id]||(Eh(ge[hr.id]),qd(),y==null||y(),Zn.preventDefault())},{capture:!0,passive:!1,signal:Vt}),Pe.addEventListener("pointerenter",Zn=>{const hr=md(Zn.target);!(hr!=null&&hr.id)||!ge[hr.id]||hr.classList.add("is-active")},{capture:!0,signal:Vt}),Pe.addEventListener("pointerleave",Zn=>{const hr=md(Zn.target);!(hr!=null&&hr.id)||!ge[hr.id]||hr.classList.remove("is-active")},{capture:!0,signal:Vt}),window.addEventListener("pointercancel",()=>{qd(),y==null||y()},{signal:Vt}),window.addEventListener("pointerup",()=>{qd(),y==null||y()},{signal:Vt})})}}function qd(){Jd==null||Jd.abort(),Jd=null,Ac.state==="open"&&Ac.close()}function dg(a){if(a==="foreground-color"){const y=[];for(const b of Object.keys(et))y.push({class:"swatch-button",label:'<span style="border: 3px solid '+et[b]+'"></span>',command:["applyStyle",{color:b}]});return y}if(a==="background-color"){const y=[];for(const b of Object.keys(Je))y.push({class:"swatch-button",label:'<span style="background:'+Je[b]+'"></span>',command:["applyStyle",{backgroundColor:b}]});return y}}function M0(a){return Nf[a]!==void 0}function fg(a){var y;return typeof a!="string"?a:(Nf[a]||(Nf[a]=(y=dg(a))!=null?y:[]),Nf[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 $d(a){if(!a)return"";const y=new Wa,b=new sr({mode:"math",type:"root",body:Ls(a,{context:y,args:ee=>ee==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),E=ou(jd(new Vr(b.render(y),{classes:"ML__base"}),y));return su(E,{classes:"ML__latex"}).toMarkup()}function ef(a){var y;if(Array.isArray(a))return a.map(E=>ef(E)).flat();const b=typeof a=="string"?{markup:a}:a;return"rows"in b&&Array.isArray(b.rows)&&(b.rows=b.rows.map(E=>E.map(ee=>A0(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 me=Yd();me&&(E=me.virtualLayout),(!E||E==="auto")&&(E=(a={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[ht.locale.slice(0,2)])!=null?a:"qwerty")}const ee={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},re=(y=ee[E])!=null?y:ee.qwerty,le=E==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const me of re){const ge=[];for(const Se of me)/[a-z]/.test(Se)?ge.push({label:Se,class:"hide-shift",shift:{label:Se.toUpperCase()},variants:M0(Se)?Se:void 0}):Se==="~"?E!=="dvorak"?ge.push("[backspace]"):ge.push({label:"[backspace]",width:1}):Se==="^"?ge.push("[shift]"):Se===" "&&ge.push("[separator-5]");le.push(ge)}return le.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:ef({rows:le})}}function k0(a){if(a==="alphabetic")return mg();if(typeof a=="string")return console.assert(C0[a]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${a}"`),k0(C0[a]);let y;if("rows"in a&&Array.isArray(a.rows)){console.assert(!("layers"in a||"markup"in a),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const ee=a,{rows:re}=ee,le=vt(ee,["rows"]);y=Me(ve({},le),{layers:ef({rows:a.rows})})}else if("markup"in a&&typeof a.markup=="string"){const ee=a,{markup:re}=ee,le=vt(ee,["markup"]);y=Me(ve({},le),{layers:ef(a.markup)})}else y=ve({},a),"layers"in a?y.layers=ef(a.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let b=!1,E=!1;for(const ee of y.layers)if(ee.rows)for(const re of ee.rows.flat()){gd(re)&&(b=!0);const le=re.command;typeof le=="string"&&["undo","redo","cut","copy","paste"].includes(le)&&(E=!0)}return(!("displayShiftedKeycaps"in a)||a.displayShiftedKeycaps===void 0)&&(y.displayShiftedKeycaps=b),(!("displayEditToolbar"in a)||a.displayEditToolbar===void 0)&&(y.displayEditToolbar=!E),y}function gg(a,y){var b,E;let ee='<div class="left">';if(a.normalizedLayouts.length>1)for(const[re,le]of a.normalizedLayouts.entries()){const me=le,ge=[re===y?"selected":"layer-switch"];me.tooltip&&ge.push("MLK__tooltip"),me.labelClass&&ge.push(...me.labelClass.split(" ")),ee+=`<div class="${ge.join(" ")}"`,me.tooltip&&(ee+=" data-tooltip='"+((b=nt(me.tooltip))!=null?b:me.tooltip)+"' "),re!==y&&(ee+=`data-layer="${me.layers[0].id}"`),ee+=`>${(E=me.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 re={undo:`<div class='action ${y.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${nt("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${y.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${nt("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${nt("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${nt("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${nt("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return b+=ee.map(le=>re[le]).join(""),b}function yg(a){for(const y of a)bg(y)}function bg(a){const y=pu.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]=Rf(b);a.innerHTML=window.MathfieldElement.createHTML(E)}}function xg(){Bl("virtual-keyboard"),Bl("core"),Pf()}function wg(){x("core"),x("virtual-keyboard")}var Sg=`<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(Sg+a.normalizedLayouts.map((le,me)=>Eg(a,le,me)).join(""));const E=document.createElement("div");E.className="MLK__backdrop",E.appendChild(b),y.appendChild(E),y.addEventListener("pointerdown",kg,{passive:!1});const ee=y.querySelectorAll(".ML__edit-toolbar");if(ee)for(const le of ee)le.addEventListener("click",me=>{var ge,Se;let Pe=me.target,st="";for(;Pe&&!st;)st=(ge=Pe==null?void 0:Pe.getAttribute("data-command"))!=null?ge:"",Pe=(Se=Pe==null?void 0:Pe.parentElement)!=null?Se:null;st&&a.executeCommand(JSON.parse(st))});yg(y.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const re=y.querySelectorAll(".MLK__layer");console.assert(re.length>0,"No virtual keyboards available");for(const le of re)le.addEventListener("pointerdown",me=>me.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 re=a.registerKeycap(ee),[le,me]=Rf(ee);/(^|\s)separator/.test(me)?b+=`<div class="${me}"`:b+=`<div tabindex="-1" id="${re}" class="${me}"`,ee.tooltip&&(b+=` data-tooltip="${ee.tooltip}"`),b+=`>${le}</div>`}b+="</div>"}b+="</div>"}else y.markup&&(b+=y.markup);return y.container&&(b+="</div>"),y.backdrop&&(b+="</div>"),b}function Rf(a,y={shifted:!1}){var b,E,ee,re,le,me,ge;let Se="",Pe=(b=a.class)!=null?b:"";if(y.shifted&&gd(a)&&(Pe+=" is-active"),y.shifted&&"shift"in a)typeof a.shift=="string"?Se=$d(a.shift):typeof a.shift=="object"&&(Se=a.shift.label?a.shift.label:(E=$d(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?E:""),typeof a.shift=="object"&&(Pe=(re=(ee=a.shift.class)!=null?ee:a.class)!=null?re:"");else{if(Se=a.label?a.label:(le=$d(a.latex||a.insert||"")||a.key)!=null?le:"",a.shift){let st;typeof a.shift=="string"?st=$d(a.shift):a.shift.label?st=a.shift.label:st=(me=$d(a.shift.latex||a.shift.insert||"")||a.shift.key)!=null?me:"",Se+=`<span class="MLK__shift">${st}</span>`}a.aside&&(Se+=`<aside>${a.aside}</aside>`)}return a.layer&&!/layer-switch/.test(Pe)&&(Pe+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(Pe)||(Pe+=" MLK__keycap"),!/\bw[0-9]+\b/.test(Pe)&&a.width&&(Pe+=(ge={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[a.width])!=null?ge:""),[Se,Pe||"MLK__keycap"]}var Fu={"[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 A0(a){var y;if(typeof a=="string"){if(a==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(a="[,]"),!Fu[a])return{latex:a};a={label:a}}let b;return"label"in a&&a.label&&Fu[a.label]&&(b=Me(ve(ve({},Fu[a.label]),a),{label:Fu[a.label].label})),"key"in a&&a.key&&Fu[a.key]&&(b=Me(ve(ve({},Fu[a.key]),a),{key:Fu[a.key].key})),b?(b.command==="insertDecimalSeparator"&&(b.label=(y=window.MathfieldElement.decimalSeparator)!=null?y:"."),a.label==="[action]"&&(b=ve(ve({},b),window.mathVirtualKeyboard.actionKeycap)),a.label==="[shift]"&&(b=ve(ve({},b),window.mathVirtualKeyboard.shiftKeycap)),a.label==="[backspace]"&&(b=ve(ve({},b),window.mathVirtualKeyboard.backspaceKeycap)),a.label==="[tab]"&&(b=ve(ve({},b),window.mathVirtualKeyboard.tabKeycap)),b):a}var tf;function kg(a){var y;if(a.button!==0)return;const b=pu.singleton;if(!b)return;let E=a.target;for(;E&&!E.getAttribute("data-layer");)E=E.parentElement;if(E){b.currentLayer=(y=E.getAttribute("data-layer"))!=null?y:"",a.preventDefault();return}const ee=md(a.target);if(!(ee!=null&&ee.id))return;const re=b.getKeycap(ee.id);if(!re)return;console.assert(a.type==="pointerdown");const le=new AbortController,me=le.signal;ee.classList.add("is-pressed"),ee.addEventListener("pointerenter",Ff(le),{capture:!0,signal:me}),ee.addEventListener("pointerleave",Ff(le),{capture:!0,signal:me}),ee.addEventListener("pointercancel",Ff(le),{signal:me}),ee.addEventListener("pointerup",Ff(le),{signal:me}),gd(re)&&(ee.classList.add("is-active"),b.shiftPressCount++),re.variants&&(tf&&clearTimeout(tf),tf=setTimeout(()=>{ee.classList.contains("is-pressed")&&(ee.classList.remove("is-pressed"),ee.classList.add("is-active"),a.target&&"releasePointerCapture"in a.target&&a.target.releasePointerCapture(a.pointerId),E0(ee,()=>{le.abort(),ee==null||ee.classList.remove("is-active")}))},300)),a.preventDefault()}function Ff(a){return y=>{const b=md(y.target);if(!(b!=null&&b.id))return;const E=pu.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"),gd(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"),gd(ee)&&(E.shiftPressCount--,b.classList.toggle("is-active",E.isShifted));return}if(y.type==="pointerup"){tf&&clearTimeout(tf),gd(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=pu.singleton)==null||y.executeCommand(b)}function Ag(a){if(a.nodeType!==1)return!1;const y=a.classList;return y.contains("MLK__keycap")||y.contains("shift")||y.contains("action")||y.contains("fnbutton")||y.contains("bigfnbutton")}function md(a){if(!a)return;let y=a;for(;y&&!Ag(y);)y=y.parentElement;return y!=null?y:void 0}function gd(a){return!!a.class&&/(^|\s)shift($|\s)/.test(a.class)}var pu=class tm{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var y,b,E;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(b=(y=window.document)==null?void 0:y.body)!=null?b:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(ee=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(E=window.top)==null||E.addEventListener("message",this)}catch(ee){window.addEventListener("message",this)}document.body.addEventListener("focusin",ee=>{const re=ee.target;re!=null&&re.isConnected&&setTimeout(()=>{const le=B0();le&&!le.readOnly&&le.mathVirtualKeyboardPolicy==="auto"&&Ke()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",ee=>{ee.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{B0()||this.hide()},300)})}get currentLayer(){var y,b,E;return(E=(b=(y=this._element)==null?void 0:y.querySelector(".MLK__layer.is-visible"))==null?void 0:b.id)!=null?E:""}set currentLayer(y){var b;if(!this._element){this.latentLayer=y;return}let E=y?this._element.querySelector(`#${y}.MLK__layer`):null;E||(E=this._element.querySelector(".MLK__layer")),E&&((b=this._element.querySelector(".MLK__layer.is-visible"))==null||b.classList.remove("is-visible"),E.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(y){var b;this._shiftPressCount=y>2||y<0?0:y,(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(y){const b="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[b]=y,b}getKeycap(y){return y?this.keycapRegistry[y]:void 0}getLayer(y){const b=this.normalizedLayouts;for(const E of b)for(const ee of E.layers)if(ee.id===y)return ee}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(y){this._alphabeticLayout=y,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(y){this._actionKeycap=typeof y=="string"?{label:y}:y}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(y){this._shiftKeycap=typeof y=="string"?{label:y}:y}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(y){this._backspaceKeycap=typeof y=="string"?{label:y}:y}get tabKeycap(){return this._tabKeycap}set tabKeycap(y){this._tabKeycap=typeof y=="string"?{label:y}:y}get layouts(){return this._layouts}set layouts(y){this.updateNormalizedLayouts(y),this.rebuild()}updateNormalizedLayouts(y){const b=Array.isArray(y)?[...y]:[y],E=b.findIndex(ee=>ee==="default");E>=0&&b.splice(E,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(b),this._normalizedLayouts=b.map(ee=>k0(ee))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(y){this._editToolbar=y,this.rebuild()}get container(){return this._container}set container(y){this._container=y,this.rebuild()}static get singleton(){if(this._singleton===void 0)try{this._singleton=new tm}catch(y){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(y,b,E){this.listeners[y]||(this.listeners[y]=new Set),this.listeners[y].has(b)||this.listeners[y].add(b)}dispatchEvent(y){return!this.listeners[y.type]||this.listeners[y.type].size===0?!0:(this.listeners[y.type].forEach(b=>{typeof b=="function"?b(y):b==null||b.handleEvent(y)}),!y.defaultPrevented)}removeEventListener(y,b,E){this.listeners[y]&&this.listeners[y].delete(b)}get element(){return this._element}set element(y){var b;this._element!==y&&((b=this._element)==null||b.remove(),this._element=y)}get visible(){return this._visible}set visible(y){y?this.show():this.hide()}get boundingRect(){var y;if(!this._visible)return new DOMRect;const b=(y=this._element)==null?void 0:y.getElementsByClassName("MLK__plate")[0];return b?b.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var y,b;const E=this.boundingRect.height;if(this.container===document.body){(y=this._element)==null||y.style.setProperty("--_keyboard-height",`calc(${E}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const ee=E-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${ee}px)`:`${ee}px`}else(b=this._element)==null||b.style.setProperty("--_keyboard-height",`${E}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const y=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=y,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const y=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(y&&(y.backdrop||y.container)));const b=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(b)for(const E of b){const ee=this.getKeycap(E.id);if(ee){const[re,le]=Rf(ee,{shifted:this.isShifted});E.innerHTML=window.MathfieldElement.createHTML(re),E.className=le}}}show(y){var b;if(this._visible)return;const E=this.container;if(E&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const ee=this._element.getElementsByClassName("MLK__plate")[0];if(ee&&this.observer.observe(ee),E===window.document.body){const re=E.style.paddingBottom;this.originalContainerBottomPadding=re;const le=ee.offsetHeight-1;E.style.paddingBottom=re?`calc(${re} + ${le}px)`:`${le}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(b=this._element)==null||b.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,y!=null&&y.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var ee;return(ee=this._element)==null?void 0:ee.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(y){var b;const E=this.container;if(E&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const ee=this._element.getElementsByClassName("MLK__plate")[0];ee&&this.observer.unobserve(ee),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),qd(),wg(),(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)&&E0(b.target),b.preventDefault(),b.stopPropagation())},{capture:!0}),(y=this.container)==null||y.appendChild(this.element)}handleEvent(y){if(Ch(y)){if(!_d(y.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${y.origin}) cannot be handled`,"SecurityError");y.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:y.data.action!=="update-setting"&&y.data.action!=="proxy-created"&&y.data.action!=="execute-command"&&(console.assert(y.source!==void 0),this.connectedMathfieldWindow=y.source),this.handleMessage(y.data,y.source)}if(this._element)switch(y.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":y.button!==2&&y.preventDefault();break;case"keydown":{y.key==="Shift"&&!y.repeat&&(this.shiftPressCount=1);break}case"keyup":{(y.key==="Shift"||!y.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(y,b){const{action:E}=y;if(E==="execute-command"){const{command:ee}=y,re=pd(ee);if(window.top!==void 0&&re!=="virtual-keyboard")return;this.executeCommand(ee);return}if((E==="connect"||E==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b),E!=="disconnect"&&window===window.top){if(E==="show"){typeof y.animate!="undefined"?this.show({animate:y.animate}):this.show();return}if(E==="hide"){typeof y.animate!="undefined"?this.hide({animate:y.animate}):this.hide();return}if(E==="update-setting"){y.alphabeticLayout&&(this.alphabeticLayout=y.alphabeticLayout),y.layouts&&(this.layouts=y.layouts),y.editToolbar&&(this.editToolbar=y.editToolbar);return}if(E==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},b);return}}}sendMessage(y,b,E){if(E||(E=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||E===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:ve({type:Of,action:y},b)}));return}if(E)E.postMessage(ve({type:Of,action:y},b),{targetOrigin:this.targetOrigin});else if(b.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:b.command})),y==="execute-command"&&Array.isArray(b.command)&&b.command[0]==="insert"){const ee=b.command[1].split("");for(const re of ee)this.dispatchEvent(new KeyboardEvent("keydown",{key:re,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:re,bubbles:!0}))}}stateWillChange(y){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:y},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(y){const b=this._element;if(!b)return;b.classList.toggle("is-math-mode",y.mode==="math"),b.classList.toggle("is-text-mode",y.mode==="text"),b.classList.toggle("can-undo",y.canUndo),b.classList.toggle("can-redo",y.canRedo),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-copy",!y.selectionIsCollapsed),b.classList.toggle("can-paste",!0);const E=b.querySelectorAll(".ML__edit-toolbar");if(E)for(const ee of E)ee.innerHTML=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=pd(y);return Fe(y)?(b=y[0],b==="performWithFeedback"&&(y=y.slice(1),ee=pd(y)),E=y.slice(1)):b=y,b=b.replace(/-\w/g,re=>re[1].toUpperCase()),ee==="virtual-keyboard"?Bc[b].fn(void 0,...E):(this.sendMessage("execute-command",{command:y}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function B0(){var a,y;let b=Af(),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(pt()&&!("mathVirtualKeyboard"in window))if(window===window.top){const a=pu.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>a})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>ug.singleton,configurable:!0});function zf(a){const y={};for(const b of Object.keys(a))switch(b){case"scriptDepth":const E=a.scriptDepth;if(Fe(E))y.scriptDepth=[E[0],E[1]];else if(typeof E=="number")y.scriptDepth=[E,E];else if(typeof E=="string"){const[re,le]=E.split(",").map(me=>parseInt(me.trim()));y.scriptDepth=[re,le]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let ee=a.mathVirtualKeyboardPolicy.toLowerCase();if(ee==="sandboxed"){if(window!==window.top){const re=pu.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>re})}ee="manual"}y.mathVirtualKeyboardPolicy=ee;break;case"letterShapeStyle":a.letterShapeStyle==="auto"?ht.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=De(a.macros);break;default:Fe(a[b])?y[b]=[...a[b]]:typeof a[b]=="object"&&!(a[b]instanceof Element)&&b!=="computeEngine"?y[b]=ve({},a[b]):y[b]=a[b]}return y}function zu(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:Fe(a[ee])?E[ee]=[...a[ee]]:typeof a[ee]=="object"&&!(a[ee]instanceof Element)&&ee!=="computeEngine"?E[ee]=ve({},a[ee]):E[ee]=a[ee];return typeof y=="string"?E[y]:E}function _f(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:bt,backgroundColorMap:Oe,letterShapeStyle:ht.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:lh,inlineShortcuts:gf,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:sh,value:""}}function D0(a){return a.defaultMode==="inline-math"?"math":a.defaultMode}function mu(a,y){!a||!y||(Fe(a)?a.forEach(b=>mu(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),mu(a.body,y),mu(a.above,y),mu(a.below,y),mu(a.subscript,y),mu(a.superscript,y)))}function Mh(a,y,b,E){function ee(le,me){for(const ge of re)if(ge.style[le]!==me)return!1;return!0}if(y=a.normalizeRange(y),y[0]===y[1])return!1;const re=a.getAtoms(y,{includeChildren:!0});E.operation==="toggle"&&(b.color&&ee("color",b.color)&&(b.color="none",delete b.verbatimColor),b.backgroundColor&&ee("backgroundColor",b.backgroundColor)&&(b.backgroundColor="none",delete b.verbatimBackgroundColor),b.fontFamily&&ee("fontFamily",b.fontFamily)&&(b.fontFamily="none"),b.fontSeries&&ee("fontSeries",b.fontSeries)&&(b.fontSeries="auto"),b.fontShape&&ee("fontShape",b.fontShape)&&(b.fontShape="auto"),b.fontSize&&ee("fontSize",b.fontSize)&&(b.fontSize=co),b.variant&&ee("variant",b.variant)&&(b.variant="normal"),b.variantStyle&&ee("variantStyle",b.variantStyle)&&(b.variantStyle=""));for(const le of re)le.applyStyle(b);return!0}function Bg(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 jc(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)}Ct(["math","displaymath"],$l),Ct("center",$l),lt("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 ya("lines",a.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),rn("array","{columns:colspec}",(a,y,b,E)=>new ya(a,kh(y),b,{columns:E[0],mathstyleName:"textstyle"})),rn(["equation","equation*","subequations"],"",(a,y,b)=>new ya(a,kh(y),b,{columns:[{align:"c"}]})),rn(["multline","multline*"],"",$l),rn(["align","align*","aligned","eqnarray"],"",$l),rn("split","",$l),rn(["gather","gathered"],"",$l),rn(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",$l),rn(["smallmatrix","smallmatrix*"],"[columns:colspec]",$l),rn(["cases","dcases","rcases"],"",$l);function Lg(a){for(const y of a)for(const b of y)if(b.length>0)return!1;return!0}function kh(a,y=1){return Lg(a)?Array(y).fill([[new sr({type:"first"}),new Ji]]):a.map(b=>b.length===0?[[new sr({type:"first"})]]:b.map(E=>E.length===0?[new sr({type:"first"})]:(E[0].type!=="first"&&E.unshift(new sr({type:"first"})),E)))}function $l(a,y=[[[]]],b=[],E=[]){switch(y=kh(y,["split","align","align*","aligned","eqnarray"].includes(a)?2:1),a){case"math":return new ya(a,y,b,{mathstyleName:"textstyle"});case"displaymath":return new ya(a,y,b,{mathstyleName:"textstyle"});case"center":return new ya(a,y,b,{columns:[{align:"c"}]});case"multline":case"multline*":return new ya(a,y,b,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new ya(a,y,b,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new ya(a,y,b,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new ya(a,y,b,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:_u(E[0])});case"bmatrix":case"bmatrix*":return new ya(a,y,b,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:_u(E[0])});case"Bmatrix":case"Bmatrix*":return new ya(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:_u(E[0])});case"vmatrix":case"vmatrix*":return new ya(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:_u(E[0])});case"Vmatrix":case"Vmatrix*":return new ya(a,y,b,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:_u(E[0])});case"matrix":case"matrix*":return new ya(a,y,b,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:_u(E==null?void 0:E[0])});case"smallmatrix":case"smallmatrix*":return new ya(a,y,b,{mathstyleName:"scriptstyle",columns:_u(E==null?void 0:E[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new ya(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 ya(a,y,b,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new ya(a,y,b,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let ee=0;for(const me of y)ee=Math.max(ee,me.length);const re=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let le=2;for(;le<ee;)re.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),le+=2;return re.push({gap:0}),new ya(a,y,b,{arraycolsep:0,columns:re,minColumns:2})}}return new ya(a,y,b,{mathstyleName:"textstyle"})}function _u(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 ya);)b=b.parent;if(b&&b.type==="array"&&b.environmentName,!b||!(b.parent instanceof ya)){const E=a.at(a.position);if(b=E,!b.parent.parent){let ee=a.extractAtoms([a.position,a.lastOffset]),re=a.extractAtoms([0,a.position]);re.length===0&&(re=Wf()),ee.length===0&&(ee=Wf());let le;return y.endsWith("column")?(le=$l("split",[[re,ee]]),a.root=le,Ku(le,0,0)?Hu(a,le,0,0):Ku(le,0,1)?Hu(a,le,0,1):a.position=a.offsetOf(E)):(le=$l("lines",[[re],[ee]]),a.root=le,Ku(le,0,0)?Hu(a,le,0,0):Ku(le,1,0)?Hu(a,le,1,0):a.position=a.offsetOf(E)),[void 0,[0,0]]}if(b.parent instanceof no){const ee=b.parent;let re=a.extractAtoms([a.position,a.offsetOf(ee.lastChild)]),le=a.extractAtoms([a.offsetOf(ee.firstChild),a.position]);le.length===0&&(le=Wf()),re.length===0&&(re=Wf());let me="pmatrix";const ge=ee.leftDelim,Se=ee.rightDelim;ge==="("&&(Se===")"||Se==="?")?me="pmatrix":(ge==="["||ge==="\\lbrack")&&(Se==="]"||Se==="\\rbrack"||Se==="?")?me="bmatrix":ge==="\\vert"&&Se==="\\vert"?me="vmatrix":ge==="\\Vert"&&Se==="\\Vert"?me="Vmatrix":(ge==="{"||ge==="\\lbrace")&&(Se==="."||Se==="?")&&(me="cases");const Pe=$l(me,y.endsWith("column")?[[le,re]]:[[le],[re]]);return ee.parent.addChildBefore(Pe,ee),ee.parent.removeChild(ee),Ku(Pe,0,0)?Hu(a,Pe,0,0):y.endsWith("column")?Ku(Pe,0,1)?Hu(a,Pe,0,1):a.position=a.offsetOf(b):Ku(Pe,1,0)?Hu(a,Pe,1,0):a.position=a.offsetOf(b),[void 0,[0,0]]}}return b&&b.parent instanceof ya?[b.parent,b.parentBranch]:[void 0,[0,0]]}function Ku(a,y,b){const E=a.getCell(y,b);return!E||E.length!==2?!1:E[1].type==="placeholder"}function Pg(a,y,b,E){const ee=y.getCell(b,E);return ee?[a.offsetOf(ee[0]),a.offsetOf(ee[ee.length-1])]:-1}function Hu(a,y,b,E){const ee=Pg(a,y,b,E);typeof ee!="number"&&a.setSelection(ee)}function Kf(a,y,b,E,ee){const re=y.getCell(b,E);re&&a.setPositionHandlingPlaceholder(a.offsetOf(re[ee==="start"?0:re.length-1]))}function Hf(a,y){const[b,[E,ee]]=Ig(a,y);if(b)switch(y){case"after row":b.addRowAfter(E),Kf(a,b,E+1,0,"end");break;case"after column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnAfter(ee),Kf(a,b,E,ee+1,"end");break;case"before row":b.addRowBefore(E),Kf(a,b,E,0,"start");break;case"before column":if(b.maxColumns<=b.colCount){a.announce("plonk");return}b.addColumnBefore(ee),Kf(a,b,E,ee,"start");break}}function L0(a){return a.contentWillChange({inputType:"insertText"})?(Hf(a,"after row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Tg(a){return a.contentWillChange({inputType:"insertText"})?(Hf(a,"before row"),a.contentDidChange({inputType:"insertText"}),!0):!1}function I0(a){return a.contentWillChange({inputType:"insertText"})?(Hf(a,"after column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function Og(a){return a.contentWillChange({inputType:"insertText"})?(Hf(a,"before column"),a.contentDidChange({inputType:"insertText"}),!0):!1}function P0(a,y){if(!a.contentWillChange({}))return!1;a.mathfield.snapshot();let b=".",E=".";switch(y){case"pmatrix":case"pmatrix*":b="(",E=")";break;case"bmatrix":case"bmatrix*":b="[",E="]";break;case"Bmatrix":case"Bmatrix*":b="\\lbrace",E="\\rbrace";break;case"vmatrix":case"vmatrix*":b="\\vert",E="\\vert";break;case"Vmatrix":case"Vmatrix*":b="\\Vert",E="\\Vert";break;case"matrix":case"matrix*":b=".",E=".";break;case"cases":case"dcases":b="\\lbrace";break;case"rcases":E="\\rbrace";break}const ee=a.at(a.position),re=ee.type==="array"?ee:a.parentEnvironment;return re.environmentName=y,re.leftDelim=b,re.rightDelim=E,a.contentDidChange({}),!0}function T0(a,y){let b=a.at(a.position);for(;b&&!(Array.isArray(b.parentBranch)&&b.parent instanceof ya);)b=b.parent;if(Array.isArray(b==null?void 0:b.parentBranch)&&(b==null?void 0:b.parent)instanceof ya){const E=b.parent,ee=b.parentBranch;let re;switch(y){case"row":if(E.rowCount>1){E.removeRow(ee[0]);const le=E.getCell(Math.max(0,ee[0]-1),ee[1]);re=a.offsetOf(le[le.length-1])}break;case"column":if(E.colCount>E.minColumns){E.removeColumn(ee[1]);const le=E.getCell(ee[0],Math.max(0,ee[1]-1));re=a.offsetOf(le[le.length-1])}break}re&&a.setPositionHandlingPlaceholder(re)}}function Ng(a){return a.contentWillChange({inputType:"deleteContent"})?(T0(a,"row"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}function Rg(a){return a.contentWillChange({inputType:"deleteContent"})?(T0(a,"column"),a.contentDidChange({inputType:"deleteContent"}),!0):!1}Dl({addRowAfter:L0,addColumnAfter:I0,addRowBefore:Tg,addColumnBefore:Og,removeRow:Ng,removeColumn:Rg,setEnvironment:P0},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Wf(){return[new Ji]}var O0=class nm{constructor(y){this.recording=!1,this.model=y,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(y){y&&this.index>=0&&(this.stack[this.index].selection=y),this.lastOp=""}undo(){return this.canUndo()?(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0):!1}redo(){return this.canRedo()?(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0):!1}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(y){return this.recording?(y&&y===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>nm.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=y!=null?y:"",!0):!1}};O0.maximumDepth=1e3;var Fg=O0;function Ah(a,y,b){if(a.at(y).mode!=="text")return y;const E=b==="backward"?-1:1;let ee;if(he.test(a.at(y).value)){let re=y,le;do le=a.at(re).mode==="text"&&he.test(a.at(re).value),re+=E;while(a.at(re)&&le);ee=a.at(re)?re-2*E:re-E}else if(/\s/.test(a.at(y).value)){let re=y;for(;a.at(re)&&a.at(re).mode==="text"&&/\s/.test(a.at(re).value);)re+=E;if(!a.at(re))ee=re-E;else{let le=!0;do le=a.at(re).mode==="text"&&!/\s/.test(a.at(re).value),re+=E;while(a.at(re)&&le);ee=a.at(re)?re-2*E:re-E}}else{let re=y;for(;a.at(re)&&a.at(re).mode==="text"&&!/\s/.test(a.at(re).value);)re+=E;ee=a.at(re)?re:re-E;let le=!0;for(;a.at(re)&≤)le=a.at(re).mode==="text"&&/\s/.test(a.at(re).value),le&&(ee=re),re+=E;ee=a.at(re)?re-2*E:re-E}return ee-(E>0?0:1)}function vd(a,y,b){var E,ee,re,le,me,ge,Se;const Pe=a.position;(E=b==null?void 0:b.extend)!=null&&E||a.collapseSelection(y);let st=a.at(a.position);if(y==="forward"&&(st.type==="subsup"?(st=st.rightSibling,st||(st=a.at(a.position+1))):st=a.at(a.position+1)),!st)return a.announce("plonk"),!1;let kt=a.offsetOf(st);if(st instanceof dc)kt=Ah(a,kt,y);else if(st instanceof Ks)if(st.isSuggestion)for(console.assert(y==="forward");st&&st instanceof Ks;)st.isSuggestion=!1,kt=a.offsetOf(st),st=st.rightSibling;else if(y==="forward"){if(st=st.rightSibling,!st||!(st instanceof Ks))return a.announce("plonk"),!1;for(;st&&st instanceof Ks&&/[a-zA-Z\*]/.test(st.value);)kt=a.offsetOf(st),st=st.rightSibling}else{if(st=st.leftSibling,!st||!(st instanceof Ks))return a.announce("plonk"),!1;for(;st&&st instanceof Ks&&/[a-zA-Z\*]/.test(st.value);)kt=a.offsetOf(st),st=st.leftSibling}else if(y==="forward"&&st.type==="mopen"){let Vt=0;do st.type==="mopen"?Vt+=1:st.type==="mclose"&&(Vt-=1),st=st.rightSibling;while(!st.isLastSibling&&Vt!==0);kt=a.offsetOf(st.leftSibling)}else if(y==="backward"&&st.type==="mclose"){let Vt=0;do st.type==="mopen"?Vt+=1:st.type==="mclose"&&(Vt-=1),st=st.leftSibling;while(!st.isFirstSibling&&Vt!==0);kt=a.offsetOf(st)}else if(y==="backward")if(st.type==="first")for(;kt>0&&st.type==="first";)kt-=1,st=a.at(kt);else{const Vt=st.type;st.type==="subsup"&&(kt=a.offsetOf(a.at(kt).leftSibling)),kt-=1;let sn=(ee=a.at(kt))==null?void 0:ee.type;for(;kt>=0&&sn===Vt;)((re=a.at(kt))==null?void 0:re.type)==="subsup"?kt=a.offsetOf(a.at(kt).leftSibling):kt-=1,sn=a.at(kt).type}else{const{type:Vt}=st;let sn=(le=a.at(kt))==null?void 0:le.type;const{lastOffset:Yn}=a;for(;kt<=Yn&&(sn===Vt||sn==="subsup");){for(;((me=a.at(kt).rightSibling)==null?void 0:me.type)==="subsup";)kt=a.offsetOf(a.at(kt).rightSibling);kt+=1,sn=(ge=a.at(kt))==null?void 0:ge.type}kt-=1}if((Se=b==null?void 0:b.extend)!=null&&Se){if(!a.setSelection(a.anchor,kt))return a.announce("plonk"),!1}else{if(kt===a.position)return a.announce("plonk"),!1;a.position=kt}return a.announce("move",Pe),a.mathfield.stopCoalescingUndo(),!0}function Dc(a,y,b){var E,ee;if(b=b!=null?b:{extend:!1},a.mathfield.adoptStyle=y==="backward"?"right":"left",y!=="forward"){const[me,ge]=g0(a);me!==void 0&&ge!==void 0&&a.deleteAtoms([me,ge])}if(y==="upward")return _g(a,b);if(y==="downward")return Kg(a,b);if(b.extend){let me=Zf(a,a.position,y);me<0&&(me=0),me>a.lastOffset&&(me=a.lastOffset);const ge=a.setSelection(a.anchor,me);return a.mathfield.stopCoalescingUndo(),ge}if(a.selectionIsPlaceholder){a.collapseSelection(y);const me=Dc(a,y);return a.mathfield.stopCoalescingUndo(),me}let re=a.position;const le=re;if(a.collapseSelection(y)?(re=a.position,N0(a,re)||(re=Zf(a,re,y))):re=Zf(a,re,y),re<0||re>a.lastOffset){let me=!0;return a.silenceNotifications||(me=(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),me&&a.announce("plonk"),me}return a.setPositionHandlingPlaceholder(re),a.mathfield.stopCoalescingUndo(),a.announce("move",le),!0}function Zf(a,y,b){return y=y+(b==="forward"?1:-1),y<0||y>a.lastOffset||N0(a,y)?y:Zf(a,y,b)}function N0(a,y){var b;const E=a.at(y);let ee=E.parent;for(;ee&&!ee.inCaptureSelection;)ee=ee.parent;return!(ee!=null&&ee.inCaptureSelection||(b=E.parent)!=null&&b.skipBoundary&&(!E.isFirstSibling&&E.isLastSibling||E.type==="first")||a.mathfield.hasEditablePrompts&&!E.parentPrompt)}function zg(a,y,b){let E=1/0,ee=0;for(;ee<y.length;ee++){const re=od(a.getHTMLElement(y[ee])).right,le=Math.abs(b-re);if(le<=E)E=le;else break}return y[ee-1]}function jf(a,y,b,E,ee){const re=a.mathfield.hasEditablePrompts,le=re?b.filter(Se=>Se.type==="prompt"&&!Se.captureSelection):b,me=od(a.mathfield.getHTMLElement(y)).right,ge=a.offsetOf(zg(a.mathfield,le,me))-(re?1:0);if(E){const[Se,Pe]=a.selection.ranges[0];let st;ge<(ee==="up"?Se:Pe)?st={ranges:[[ge,Pe]],direction:"backward"}:st={ranges:[[Se,ge]],direction:"forward"},a.setSelection(st)}else a.setPositionHandlingPlaceholder(ge);a.announce(`move ${ee}`)}function _g(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("backward");const re=()=>{var ge,Se;let Pe=!0;return a.silenceNotifications||(Pe=(Se=(ge=a.mathfield.host)==null?void 0:ge.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Se:!0),a.announce(Pe?"plonk":"line"),Pe},le=a.at(a.position);let me=le;for(;me&&me.parentBranch!=="below"&&!(Array.isArray(me.parentBranch)&&me.parent instanceof ya);)me=me.parent;if(Array.isArray(me==null?void 0:me.parentBranch)&&me.parent instanceof ya){const ge=me.parent;if(me.parentBranch[0]<1)return re();const Se=me.parentBranch[0]-1,Pe=ge.array[Se][me.parentBranch[1]];if(!Pe.some(kt=>kt.type==="prompt"&&!kt.captureSelection)&&a.mathfield.hasEditablePrompts)return re();jf(a,le,Pe,ee,"up")}else if(me){const ge=(E=me.parent.branch("above"))!=null?E:me.parent.createBranch("above");if(!ge.some(Pe=>Pe.type==="prompt"&&Pe.placeholderId)&&a.mathfield.hasEditablePrompts)return re();jf(a,le,ge,ee,"up")}else return re();return a.mathfield.stopCoalescingUndo(),!0}function Kg(a,y){var b,E;const ee=(b=y==null?void 0:y.extend)!=null?b:!1;ee||a.collapseSelection("forward");const re=()=>{var ge,Se;let Pe=!0;return a.silenceNotifications||(Pe=(Se=(ge=a.mathfield.host)==null?void 0:ge.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Se:!0),a.announce(Pe?"plonk":"line"),Pe},le=a.at(a.position);let me=le;for(;me&&me.parentBranch!=="above"&&!(Array.isArray(me.parentBranch)&&me.parent instanceof ya);)me=me.parent;if(Array.isArray(me==null?void 0:me.parentBranch)&&me.parent instanceof ya){const ge=me.parent;if(me.parentBranch[0]+1>ge.array.length-1)return re();const Se=me.parentBranch[0]+1,Pe=ge.array[Se][me.parentBranch[1]];if(!Pe.some(kt=>kt.type==="prompt"&&!kt.captureSelection)&&a.mathfield.hasEditablePrompts)return re();jf(a,le,Pe,ee,"down")}else if(me){const ge=(E=me.parent.branch("below"))!=null?E:me.parent.createBranch("below");if(!ge.some(Pe=>Pe.type==="prompt")&&a.mathfield.hasEditablePrompts)return re();jf(a,le,ge,ee,"down")}else return re();return!0}function R0(a){const y=a.position,b=a.at(y).parent;return b!=null&&b.parent?(a.position=a.offsetOf(b),a.mathfield.stopCoalescingUndo(),a.announce("move",y),!0):(a.announce("plonk"),!1)}function Hg(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!1):E=!0,b=b.parent;return E?y:0}function Wg(a){let y=0,b=a.at(a.position),E=!1;for(;b;)(!b.hasEmptyBranch("superscript")||!b.hasEmptyBranch("subscript"))&&(y+=1),b.hasEmptyBranch("superscript")?b.hasEmptyBranch("subscript")||(E=!0):E=!1,b=b.parent;return E?y:0}function F0(a){var y;if(a.collapseSelection(),Hg(a)>=a.mathfield.options.scriptDepth[1])return a.announce("plonk"),!1;let b=a.at(a.position);return b.subsupPlacement===void 0&&(((y=b.rightSibling)==null?void 0:y.type)!=="subsup"&&b.parent.addChildAfter(new Jl({style:b.computedStyle}),b),b=b.rightSibling),b.createBranch("superscript"),a.setSelection(a.getSiblingsRange(a.offsetOf(b.superscript[0]))),!0}function z0(a){var y;if(a.collapseSelection(),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 Jl({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(ge){const Se=[],Pe=[];return[...ge.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(y).forEach((kt,Vt)=>{const sn=E(kt);sn===0?Se.push(kt):Pe.push({documentOrder:Vt,tabIndex:sn,node:kt})}),Pe.sort((kt,Vt)=>kt.tabIndex===Vt.tabIndex?kt.documentOrder-Vt.documentOrder:kt.tabIndex-Vt.tabIndex).map(kt=>kt.node).concat(Se)}function y(ge){return!(!b(ge)||ee(ge)||E(ge)<0)}function b(ge){return!(ge.disabled||ge.type==="hidden"&&ge.tagName.toUpperCase()==="INPUT"||me(ge))}function E(ge){var Se;const Pe=Number.parseInt((Se=ge.getAttribute("tabindex"))!=null?Se:"NaN",10);return Number.isNaN(Pe)?ge.contentEditable==="true"||(ge.nodeName==="AUDIO"||ge.nodeName==="VIDEO")&&ge.getAttribute("tabindex")===null?0:ge.tabIndex:Pe}function ee(ge){return ge.tagName.toUpperCase()==="INPUT"&&ge.type==="radio"&&!le(ge)}function re(ge,Se){for(const Pe of ge)if(Pe.checked&&Pe.form===Se)return Pe;return null}function le(ge){var Se;if(!ge.name)return!0;const st=((Se=ge.form)!=null?Se:ge.ownerDocument).querySelectorAll('input[type="radio"][name="'+ge.name+'"]'),kt=re(st,ge.form);return!kt||kt===ge}function me(ge){if(!pt()||ge===document.activeElement||ge.contains(document.activeElement))return!1;if(getComputedStyle(ge).visibility==="hidden")return!0;const Se=ge.getBoundingClientRect();if(Se.width===0||Se.height===0)return!0;for(;ge;){if(getComputedStyle(ge).display==="none")return!0;ge=ge.parentElement}return!1}return pt()?a(document.body):[]}function ll(a,y,b="forward"){const E=a.position;if(Array.isArray(y)){const ee=a.offsetOf(y[0]),re=a.offsetOf(y[y.length-1]);return b==="forward"?a.setSelection(ee,re):a.setSelection(re,ee),a.announce("move",E),a.mathfield.stopCoalescingUndo(),!0}return b==="forward"?ll(a,[y.leftSibling,y]):ll(a,[y,y.leftSibling])}function pc(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 Vf(a,y,b=!0){var E,ee;const re=y==="forward"?1:-1;a.at(a.anchor).type==="placeholder"&&Dc(a,y);let le;const me=a.at(a.anchor).parentPrompt;me?y==="forward"?le=a.offsetOf(me)+1:le=a.offsetOf(me.leftSibling):le=Math.max(a.position+re,0);const ge=Bh(a,le,y);if(!ge||y==="forward"&&a.offsetOf(ge)<le||y==="backward"&&a.offsetOf(ge)>le){if(!b||!((ee=(E=a.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("move-out",{detail:{direction:y},cancelable:!0,bubbles:!0,composed:!0})))==null||ee))return a.announce("plonk"),!1;const Pe=Zg();if(!document.activeElement||Pe.length<=1)return a.announce("plonk"),!1;let st=Pe.indexOf(document.activeElement)+re;return st<0&&(st=Pe.length-1),st>=Pe.length&&(st=0),Pe[st].focus(),a.mathfield.stopCoalescingUndo(),!0}return pc(a,ge),!0}function Bh(a,y=0,b="forward"){return a.findAtom(E=>E.type==="placeholder"||E.type==="prompt"||!a.mathfield.readOnly&&E.treeDepth>2&&E.isFirstSibling&&E.isLastSibling,y,b)}Dl({moveToOpposite:a=>{const y={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},b=a.at(a.position),{parent:E}=b;if(!E)return a.announce("plonk"),!1;const ee=b.parentBranch;let re;if(typeof ee=="string"&&(re=y[ee]),!re){const me=b.subsupPlacement?z0(a):F0(a);return a.mathfield.stopCoalescingUndo(),me}E.branch(re)||E.createBranch(re);const le=a.setSelection(a.getBranchRange(a.offsetOf(E),re));return a.mathfield.stopCoalescingUndo(),le},moveBeforeParent:a=>{const{parent:y}=a.at(a.position);return y?(a.position=a.offsetOf(y),a.mathfield.stopCoalescingUndo(),!0):(a.announce("plonk"),!1)},moveAfterParent:a=>R0(a),moveToNextChar:a=>Dc(a,"forward"),moveToPreviousChar:a=>Dc(a,"backward"),moveUp:a=>Dc(a,"upward"),moveDown:a=>Dc(a,"downward"),moveToNextWord:a=>vd(a,"forward"),moveToPreviousWord:a=>vd(a,"backward"),moveToGroupStart:a=>{const y=a.offsetOf(a.at(a.position).firstSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:a=>{const y=a.offsetOf(a.at(a.position).lastSibling);return y===a.position?(a.announce("plonk"),!1):(a.position=y,a.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:a=>{var y,b,E,ee;if(a.position===a.lastOffset&&a.anchor===a.lastOffset)return Vf(a,"forward");const re=a.at(a.position);if(re.mode==="text"){if(a.selectionIsCollapsed){let kt=re;for(;kt&&kt.mode==="text";)kt=kt.leftSibling;let Vt=re;for(;((y=Vt.rightSibling)==null?void 0:y.mode)==="text";)Vt=Vt.rightSibling;if(kt&&Vt)return ll(a,[kt,Vt])}if(re.rightSibling.mode==="text"){let kt=re;for(;kt&&kt.mode==="text";)kt=kt.rightSibling;return kt?(pc(a,(b=kt.leftSibling)!=null?b:kt),a.mathfield.switchMode("math"),!0):pc(a,a.lastOffset)}}const me=a.at(a.anchor).parentPrompt,ge=me?a.offsetOf(me)+1:Math.max(a.position+1,0),Se=Bh(a,ge,"forward");if(Se)return pc(a,Se);const Pe=_0(a,re,kt=>kt.type==="leftright"||kt.type==="text","forward");if(Pe){if(Pe.mode==="text"){let kt=Pe;for(;kt&&kt.mode==="text";)kt=kt.rightSibling;return ll(a,[(E=Pe.leftSibling)!=null?E:Pe,(ee=kt.leftSibling)!=null?ee:kt])}return ll(a,Pe)}const st=re.parent;if(st){if(st.type==="leftright"||st.type==="surd")return ll(a,st);if(re.parentBranch==="superscript"&&st.subscript)return ll(a,st.subscript);if(re.parentBranch==="above"&&st.below)return ll(a,st.below);if(re.parentBranch==="superscript"||re.parentBranch==="subscript")return pc(a,st);if(re.parentBranch==="above"||re.parentBranch==="below")return ll(a,st)}return pc(a,a.lastOffset)},moveToPreviousGroup:a=>{var y;if(a.position===0&&a.anchor===0)return Vf(a,"backward");let b=a.at(a.position);const E=b.mode;if(E==="text"){if(a.selectionIsCollapsed){let me=b;for(;me&&me.mode==="text";)me=me.leftSibling;let ge=b;for(;((y=ge.rightSibling)==null?void 0:y.mode)==="text";)ge=ge.rightSibling;if(me&&ge)return ll(a,[me,ge])}for(;b&&b.mode==="text";)b=b.leftSibling;return b?pc(a,b):pc(a,0)}const ee=a.at(a.anchor).parentPrompt,re=ee?a.offsetOf(ee.leftSibling):Math.max(a.position-1,0),le=Bh(a,re,"backward");if(le)return pc(a,le);if(E==="math"){const me=_0(a,b,Se=>Se.type==="leftright"||Se.type==="text","backward");if(me){if(me.mode==="text"){let Se=me;for(;Se&&Se.mode==="text";)Se=Se.leftSibling;return ll(a,[me,Se])}return ll(a,me)}const ge=b.parent;if(ge){if(ge.type==="leftright"||ge.type==="surd")return ll(a,ge);if(b.parentBranch==="subscript"&&ge.superscript)return ll(a,ge.superscript);if(b.parentBranch==="below"&&ge.above)return ll(a,ge.above);if(b.parentBranch==="superscript"||b.parentBranch==="subscript")return pc(a,ge);if(b.parentBranch==="above"||b.parentBranch==="below")return ll(a,ge)}return pc(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:F0,moveToSubscript:z0},{target:"model",changeSelection:!0}),Dl({moveToNextPlaceholder:a=>Vf(a,"forward"),moveToPreviousPlaceholder:a=>Vf(a,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function _0(a,y,b,E){if(E==="forward"){let re=y.rightSibling;for(;re&&!b(re);)re=re.rightSibling;return re}let ee=y.leftSibling;for(;ee&&!b(ee);)ee=ee.leftSibling;return ee}function Uf(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1,re="";for(;!ee;){const le=a.at(E);ee=y===0||le===void 0||le.type==="first"||le.mode!=="math"||!(le.type&&/mord|mpunct|operator/.test(le.type)||le.type==="mop"&&/[a-zA-Z ]+/.test(le.value))||!le.hasEmptyBranch("superscript")||!le.hasEmptyBranch("subscript")||typeof b=="function"&&!b(le),ee||(le.mode="text",le.command=le.value,le.verbatimLatex=void 0,re+=le.value),E-=1,y-=1}a.contentDidChange({data:re,inputType:"insertText"})}function Wu(a,y,b){typeof y=="function"&&(b=y,y=1/0),y===void 0&&(y=1/0);let E=a.position,ee=!1;const re=[];for(;!ee;){const le=a.at(E);ee=y===0||!le||le.type==="first"||le.isFirstSibling||le.mode!=="text"||le.value===" "||typeof b=="function"&&!b(le),ee||(re.push(sr.serialize([le],{defaultMode:"math"})),le.mode="math"),E-=1,y-=1}Dh(a),a.contentDidChange({data:Ba(re),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 Vg(a,y,b){const{model:E}=a;if(E.mode==="latex"||!E.at(E.position).isLastSibling||!b||!kf(b))return!1;const ee=dd(b);if(!E.selectionIsCollapsed)return!!(a.model.mode==="text"&&/[/_^]/.test(ee));const re=jg(E)+ee;if(a.model.mode==="text"){if(y==="Esc"||/[/\\]/.test(ee))return!0;if(/[\^_]/.test(ee))return/(^|\s)[a-zA-Z][^_]$/.test(re)&&Wu(E,1),!0;const le={")":"(","}":"{","]":"["}[ee],{parent:me}=E.at(E.position);if(le&&me instanceof no&&me.leftDelim===le)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(re))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(ee))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(re))return Wu(E,1),!1;if(/\D\.[^\d\s]$/.test(re)){Wu(E,1);const ge=E.at(E.position);return ge.value="\u22C5",ge.style.variant="normal",ge.command="\\cdot",ge.verbatimLatex=void 0,E.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(re)||/\.\d$/.test(re)||/\([\d+\-.]$/.test(re))return Wu(E,1),!0;if(/\([a-z][,;]$/.test(re))return Wu(E,2),!0;if(/[\d+\-=><*|]$/.test(ee))return Dh(E),!0}else{if(y==="[Space]")return Uf(E,void 0,le=>/[a-z][:,;.]$/.test(le.value)),!0;if(/[a-zA-Z]{3,}$/.test(re)&&!/(dxd|abc|xyz|uvw)$/.test(re))return Uf(E,void 0,le=>/[a-zA-Z]/.test(le.value)),!0;if(/(^|\W)(if)$/i.test(re))return Uf(E,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(re)&&!/(αβγ)$/.test(re))return Uf(E,void 0,le=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(le.value)),!0;if(ee==="?"||ee==="."&&!/[\d-+]\.$/.test(re))return!0}return!1}function Ug(a,y){if(!a.isSelectionEditable||!a.keystrokeCaptionVisible)return;const b=K0(),E=a.element.getBoundingClientRect();b.style.left=`${E.left}px`,b.style.top=`${E.top-64}px`,b.innerHTML=window.MathfieldElement.createHTML("<span>"+(vh(y)||y)+"</span>"+b.innerHTML),b.style.visibility="visible",setTimeout(()=>{b.childNodes.length>0&&b.childNodes[b.childNodes.length-1].remove(),b.childNodes.length===0&&(b.style.visibility="hidden")},3e3)}function Gg(a){if(a.keystrokeCaptionVisible=!a.keystrokeCaptionVisible,a.keystrokeCaptionVisible){const y=K0();y.innerHTML=""}else{const y=Df("mathlive-keystroke-caption-panel");y.style.visibility="hidden"}return!1}function K0(){const a=document.getElementById("mathlive-keystroke-caption-panel");return a||(Bl("keystroke-caption"),Bl("core"),Df("mathlive-keystroke-caption-panel"))}function Yg(){document.getElementById("mathlive-keystroke-caption-panel")&&(bh("mathlive-keystroke-caption-panel"),x("core"),x("keystroke-caption"))}function H0(a,y){var b,E,ee;const{model:re}=a,le=p0(y);if(y.isTrusted){Fm(y);const Vt=Yd();a.keyboardLayout!==Vt.id&&(a.keyboardLayout=Vt.id,a._keybindings=void 0)}if(clearTimeout(a.inlineShortcutBufferFlushTimer),a.inlineShortcutBufferFlushTimer=0,Ug(a,le),y.isTrusted&&y.defaultPrevented)return a.flushInlineShortcutBuffer(),!1;let me,ge="",Se;const Pe=a.inlineShortcutBuffer;if(a.isSelectionEditable){if(re.mode==="math")if(le==="[Backspace]")Pe.pop();else if(!kf(y))a.flushInlineShortcutBuffer();else{const Vt=dd(y),sn=[...(E=(b=Pe[Pe.length-1])==null?void 0:b.keystrokes)!=null?E:[],Vt];Pe.push({state:re.getState(),keystrokes:sn,leftSiblings:Xg(a)});let Yn=0,Yr="";for(;!me&&Yn<sn.length;)Se=Pe.length-(sn.length-Yn),Yr=sn.slice(Yn).join(""),me=Pd(Pe[Se].leftSiblings,Yr,a.options.inlineShortcuts),!me&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(Yr)&&(me=a.options.onInlineShortcut(a,Yr)),Yn+=1;a.flushInlineShortcutBuffer({defer:!0})}a.options.smartMode&&(me?a.switchMode("math"):Vg(a,le,y)&&(a.switchMode({math:"text",text:"math"}[re.mode]),ge=""))}if(!me){if(ge||(ge=jm(a.keybindings,re.mode,y)),!ge&&(le==="[Enter]"||le==="[Return]")){let Vt=!1;return re.contentWillChange({inputType:"insertLineBreak"})&&(a.host&&(Vt=!a.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),Vt||y.preventDefault&&(y.preventDefault(),y.stopPropagation()),re.contentDidChange({inputType:"insertLineBreak"})),Vt}if((!ge||le==="[Space]")&&re.mode==="math"){if(le==="[Space]"){if(a.adoptStyle="none",a.flushInlineShortcutBuffer(),a.options.mathModeSpace)return ma.insert(re,a.options.mathModeSpace,{format:"latex",mode:"math"}),a.snapshot("insert-space"),ge="",a.dirty=!0,a.scrollIntoView(),y.preventDefault&&(y.preventDefault(),y.stopPropagation()),!1;const Vt=re.at(re.position+1),sn=re.at(re.position-1);if((Vt==null?void 0:Vt.mode)==="text"||(sn==null?void 0:sn.mode)==="text")return ma.insert(re," ",{mode:"text"}),a.snapshot("insert-space"),a.dirty=!0,a.scrollIntoView(),!1}(ee=re.at(re.position))!=null&&ee.isDigit()&&window.MathfieldElement.decimalSeparator===","&&dd(y)===","&&(ge="insertDecimalSeparator")}}if(!me&&!ge){if(re.mathfield.smartFence){if(Ih(re,dd(y),a.effectiveStyle))return a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}else{const{parent:Vt}=re.at(re.position);if(Vt instanceof no&&Vt.rightDelim==="?"&&re.at(re.position).isLastSibling&&/^[)}\]|]$/.test(le))return a.snapshot(),Vt.isDirty=!0,Vt.rightDelim=le,re.position+=1,re.selectionDidChange(),re.contentDidChange({data:dd(y),inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1;if(!re.selectionIsCollapsed){const sn=dd(y);if(sn==="("||sn==="{"||sn==="["){const Yn={"(":"(","{":"\\lbrace","[":"\\lbrack"}[sn],Yr={"(":")","{":"\\rbrace","[":"\\rbrack"}[sn],[Zn,hr]=Bs(re.selection);return a.snapshot(),re.position=hr,ma.insert(re,Yr,{format:"latex"}),re.position=Zn,ma.insert(re,Yn,{format:"latex"}),re.setSelection(Zn+1,hr+1),re.contentDidChange({data:sn,inputType:"insertText"}),a.snapshot("insert-fence"),a.dirty=!0,a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}}}return!0}const st=re.at(Math.max(re.position,re.anchor)),{parent:kt}=st;if(ge==="moveAfterParent"&&(kt==null?void 0:kt.type)==="leftright"&&st.isLastSibling&&a.options.smartFence&&Ih(re,".",a.defaultStyle)&&(ge="",Xo(a)),a.keyboardDelegate.cancelComposition(),ge)a.executeCommand(ge);else if(me){const Vt=a.effectiveStyle;re.setState(Pe[Se].state);const sn=Pe[Pe.length-1].keystrokes;for(const Yn of sn)ma.insert(re,Yn,{silenceNotifications:!0,style:Vt});a.snapshot("insert-shortcut"),re.setState(Pe[Se].state),re.deferNotifications({content:!0,selection:!0,data:me,type:"insertText"},()=>(ma.insert(re,me,{format:"latex",style:Vt}),Dh(a.model),me.endsWith(" ")&&(a.switchMode("text"),ma.insert(re," ",{style:Vt,mode:"text"})),a.snapshot(),re.selectionIsCollapsed||a.flushInlineShortcutBuffer(),!0)),a.dirty=!0,re.announce("replacement")}return a.scrollIntoView(),y.preventDefault&&y.preventDefault(),!1}function Lh(a,y,b){const{model:E}=a;if(!a.isSelectionEditable){E.announce("plonk");return}b!=null||(b={}),b.focus&&a.focus(),b.feedback&&window.MathfieldElement.playSound("keypress"),typeof b.mode=="string"&&(a.switchMode(b.mode),a.snapshot());let ee=Sl(y);const re=window.mathVirtualKeyboard;if(re!=null&&re.isShifted&&(ee=typeof ee=="string"?ee.toUpperCase():ee.map(ge=>ge.toUpperCase())),b.simulateKeystroke){let ge=!0;for(const Se of ee)H0(a,new KeyboardEvent("keypress",{key:Se}))&&(ge=!1);if(ge)return}const le=E.at(E.position),me=ve(ve({},le.computedStyle),a.defaultStyle);if(E.selectionIsCollapsed||(E.deleteAtoms(Bs(E.selection)),a.snapshot("delete")),E.mode==="latex")E.deferNotifications({content:!0,selection:!0,data:y,type:"insertText"},()=>{Bf(a);for(const ge of ee)ma.insert(E,ge);a.snapshot("insert-latex"),Qd(a)});else if(E.mode==="text"){for(const ge of ee)ma.insert(E,ge,{style:me});a.snapshot("insert-text")}else if(E.mode==="math")for(const ge of ee)Qg(a,ge,me,le);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 re={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[y];if(y===" "&&a.options.mathModeSpace&&(re=["insert",a.options.mathModeSpace]),re){a.executeCommand(re);return}if(/\d/.test(y)&&a.options.smartSuperscript&&E.parentBranch==="superscript"&&E.parent.type!=="mop"&&E.parent.type!=="operator"&&E.parent.type!=="extensible-symbol"&&E.hasNoSiblings){Jg(ee),ma.insert(ee,y,{style:b}),a.snapshot(),R0(ee),a.snapshot();return}if(/[a-zA-Z0-9]/.test(y)&&a.adoptStyle!=="none"){const le=a.adoptStyle==="left"?E:E.parent?E.rightSibling:null;(le==null?void 0:le.type)==="mord"&&/[a-zA-Z0-9]/.test(le.value)&&(b=ve({},b),le.style.variant&&(b.variant=le.style.variant),le.style.variantStyle&&(b.variantStyle=le.style.variantStyle))}ma.insert(ee,y,{style:b}),a.snapshot(`insert-${ee.at(ee.position).type}`)}function Jg(a){a.selectionIsCollapsed||(a.deleteAtoms(Bs(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,re={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[y];if(!re)return!1;const le=te[re],me=ne[re];if(!a.selectionIsCollapsed){a.mathfield.snapshot();const[ge,Se]=Bs(a.selection),Pe=a.extractAtoms([ge,Se]),st=ee.addChildrenAfter([new no("left...right",Pe,{leftDelim:re,rightDelim:me})],a.at(ge));return a.setSelection(a.offsetOf(st.firstChild),a.offsetOf(st.lastChild)),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(re==="|"){const ge=ee instanceof no?ee.leftDelim+ee.rightDelim:"";if(ge==="\\lbrace\\rbrace"||ge==="\\{\\}"||ge==="\\lbrace?")return a.mathfield.snapshot(),ma.insert(a,"\\,\\middle\\vert\\,",{format:"latex",style:b}),a.mathfield.snapshot("insert-fence"),a.contentDidChange({data:re,inputType:"insertText"}),!0}if(me){if(ee instanceof no&&ee.firstChild===E&&(ee.leftDelim==="?"||ee.leftDelim==="."))return ee.leftDelim=re,ee.isDirty=!0,a.mathfield.snapshot(),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(!(ee instanceof no)){let st=E;for(;st&&!(st.type==="mclose"&&st.value===me);)st=st.rightSibling;if(st){a.mathfield.snapshot();const kt=a.extractAtoms([a.offsetOf(E),a.offsetOf(st)]);return kt.pop(),ee.addChildrenAfter([new no("left...right",kt,{leftDelim:re,rightDelim:me})],E),a.position=a.offsetOf(ee.firstChild)+1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}}const ge=a.offsetOf(E.lastSibling);let Se;for(Se=a.position;Se<=ge;Se++){const st=a.at(Se);if(st instanceof no&&(st.leftDelim==="?"||st.leftDelim===".")&&W0(re,st.rightDelim))break}const Pe=a.at(Se);if(Se<=ge&&Pe instanceof no){Pe.leftDelim=re,a.mathfield.snapshot();let st=a.extractAtoms([a.position,Se-1]);return st=st.filter(kt=>kt.type!=="first"),Pe.addChildren(st,Pe.parentBranch),a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(ee instanceof no&&(ee.leftDelim==="?"||ee.leftDelim===".")&&W0(re,ee.rightDelim)){ee.isDirty=!0,ee.leftDelim=re,a.mathfield.snapshot();const st=a.extractAtoms([a.offsetOf(E.firstSibling),a.position]);for(const kt of st)ee.parent.addChildBefore(kt,ee);return a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}if(!(ee instanceof no&&ee.leftDelim==="|")){if(a.mathfield.snapshot(),ma.insert(a,`\\left${re}\\right?`,{format:"latex",style:b}),E.lastSibling.type!=="first"){const st=a.offsetOf(E.lastSibling),kt=a.extractAtoms([a.position,st]);a.at(a.position).body=kt,a.position-=1}return a.mathfield.snapshot("insert-fence"),!0}}if(le){let ge=E;for(;ge;){if(ge.type==="mopen"&&ge.value===le){a.mathfield.snapshot();const Vt=ge.leftSibling,sn=a.extractAtoms([a.offsetOf(ge.leftSibling),a.offsetOf(E)]);sn.shift();const Yn=new no("left...right",sn,{leftDelim:le,rightDelim:re});return ee.addChildrenAfter([Yn],Vt),a.position=a.offsetOf(Yn),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0}ge=ge.leftSibling}if(ee instanceof no&&E.isLastSibling&&Ph(ee.leftDelim,re))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=re,a.position+=1,a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const Se=a.offsetOf(E.firstSibling);let Pe;for(Pe=a.position;Pe>=Se;Pe--){const Vt=a.at(Pe);if(Vt instanceof no&&(Vt.rightDelim==="?"||Vt.rightDelim===".")&&Ph(Vt.leftDelim,re))break}const st=a.at(Pe);if(Pe>=Se&&st instanceof no)return a.mathfield.snapshot(),st.rightDelim=re,st.addChildren(a.extractAtoms([Pe,a.position]),st.parentBranch),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;if(ee instanceof no&&(ee.rightDelim==="?"||ee.rightDelim===".")&&Ph(ee.leftDelim,re))return a.mathfield.snapshot(),ee.isDirty=!0,ee.rightDelim=re,ee.parent.addChildren(a.extractAtoms([a.position,a.offsetOf(E.lastSibling)]),ee.parentBranch),a.position=a.offsetOf(ee),a.contentDidChange({data:re,inputType:"insertText"}),a.mathfield.snapshot("insert-fence"),!0;const kt=ee.parent;return kt instanceof no&&(kt.rightDelim==="?"||kt.rightDelim===".")&&a.at(a.position).isLastSibling?(a.position=a.offsetOf(kt),Ih(a,re,b)):!1}return!1}function Ph(a,y){return a?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y):ne[a]===y:!0}function W0(a,y){return y?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(y)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(a):te[y]===a:!0}Dl({undo:a=>(a.undo(),!0),redo:a=>(a.redo(),!0),scrollIntoView:a=>(a.scrollIntoView(),!0),scrollToStart:a=>(a.field.scroll(0,0),!0),scrollToEnd:a=>{const y=a.field.getBoundingClientRect();return a.field.scroll(y.left-window.scrollX,0),!0},toggleKeystrokeCaption:Gg,toggleContextMenu:a=>{const y=a.toggleContextMenu();return y||a.model.announce("plonk"),y},plonk:a=>(a.model.announce("plonk"),!0),switchMode:(a,y,b,E)=>(a.switchMode(y,b,E),!0),insert:(a,y,b)=>a.insert(y,b),typedText:(a,y,b)=>(Lh(a,y,b),!0),insertDecimalSeparator:a=>{const y=a.model;return y.mode==="math"&&window.MathfieldElement.decimalSeparator===","&&y.at(Math.max(y.position,y.anchor)).isDigit()?(a.insert("{,}",{format:"latex"}),a.snapshot("insert-mord"),!0):(a.insert("."),!0)},commit:a=>{var y;return a.model.contentWillChange({inputType:"insertLineBreak"})&&((y=a.host)==null||y.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),a.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(a,y,b)=>{const E=a.getPrompts();let ee="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),re=0;for(;E.includes(ee)&&re<100;){if(re===99)return console.error("could not find a unique ID after 100 tries"),!1;ee="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),re++}return a.insert(`\\placeholder[${y!=null?y:ee}]{}`,b),!0}}),Dl({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"}),Dl({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})&&(Qd(a),a.startRecording(),a.snapshot("paste"),a.model.contentDidChange({inputType:"insertFromPaste"}),Xo(a))):a.model.announce("plonk"),a.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function qg(a,y){a.flushInlineShortcutBuffer(),a.stopCoalescingUndo();const b=Th(a,y),{model:E}=a;return E.selectionIsCollapsed?(a.defaultStyle.fontSeries&&b.fontSeries===a.defaultStyle.fontSeries&&(b.fontSeries="auto"),b.fontShape&&b.fontShape===a.defaultStyle.fontShape&&(b.fontShape="auto"),b.color&&b.color===a.defaultStyle.color&&(b.color="none"),b.backgroundColor&&b.backgroundColor===a.defaultStyle.backgroundColor&&(b.backgroundColor="none"),b.fontSize&&b.fontSize===a.defaultStyle.fontSize&&(b.fontSize="auto"),a.defaultStyle=ve(ve({},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}Dl({applyStyle:qg},{target:"mathfield",canUndo:!0,changeContent:!0});function Th(a,y){var b,E,ee,re,le,me,ge,Se,Pe,st;const kt={};if(typeof y.color=="string"){const sn=(E=a.colorMap((b=y.color)!=null?b:y.verbatimColor))!=null?E:"none";sn!==y.color&&(kt.verbatimColor=(ee=y.verbatimColor)!=null?ee:y.color),kt.color=sn}if(typeof y.backgroundColor=="string"){const sn=(le=a.backgroundColorMap((re=y.backgroundColor)!=null?re:y.verbatimBackgroundColor))!=null?le:"none";sn!==y.backgroundColor&&(kt.verbatimBackgroundColor=(me=y.verbatimBackgroundColor)!=null?me:y.backgroundColor),kt.backgroundColor=sn}typeof y.fontFamily=="string"&&(kt.fontFamily=y.fontFamily),typeof y.series=="string"&&(kt.fontSeries=y.series),typeof y.fontSeries=="string"&&(kt.fontSeries=y.fontSeries.toLowerCase()),kt.fontSeries&&(kt.fontSeries=(ge={bold:"b",medium:"m",normal:"m"}[kt.fontSeries])!=null?ge:kt.fontSeries),typeof y.shape=="string"&&(kt.fontShape=y.shape),typeof y.fontShape=="string"&&(kt.fontShape=y.fontShape.toLowerCase()),kt.fontShape&&(kt.fontShape=(Se={italic:"it",up:"n",upright:"n",normal:"n"}[kt.fontShape])!=null?Se:kt.fontShape),y.variant&&(kt.variant=y.variant.toLowerCase()),y.variantStyle&&(kt.variantStyle=y.variantStyle.toLowerCase());const Vt=(Pe=y.size)!=null?Pe:y.fontSize;return typeof Vt=="number"?kt.fontSize=Math.max(1,Math.min(10,Vt)):typeof Vt=="string"&&(kt.fontSize=(st={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[Vt.toLowerCase()])!=null?st:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[Vt]),kt}function Oh(a){let[y,b]=Bs(a.selection);if(y=Z0(a,y,"backward"),b=Z0(a,b,"forward"),y===b){const E=a.at(y);if(E.type==="leftright")return a.setSelection(a.offsetOf(E.firstChild)-1,b);if(E.type==="first"&&(E.parent.type==="leftright"||E.parent.type==="surd"))return a.setSelection(y-1,a.offsetOf(E.parent.lastChild)+1);a.setSelection(y-1,b)}else a.setSelection(y,b);return!0}function Z0(a,y,b){var E,ee,re;let le=a.at(y);if(!le)return y;const me=b==="forward"?1:-1;if(le.mode==="text"){for(;le&&!(le.mode!=="text"||!he.test(le.value));)y+=me,le=a.at(y);return b==="backward"?y-1:y}if(le.mode==="latex"){if(/[a-zA-Z\*]/.test(le.value))if(b==="backward")for(;le&&le.mode==="latex"&&le.value!=="\\"&&/[a-zA-Z]/.test(le.value);)y+=me,le=a.at(y);else for(;le&&le.mode==="latex"&&/[a-zA-Z\*]/.test(le.value);)y+=me,le=a.at(y);else if(le.value==="{"){if(b==="forward"){for(;le&&le.mode==="latex"&&le.value!=="}";)y+=me,le=a.at(y);return y}return y-1}else if(le.value==="}"){if(b==="backward"){for(;le&&le.mode==="latex"&&le.value!=="{";)y+=me,le=a.at(y);return y-1}return y}return y-1}if(le.mode==="math"){if(le.isDigit()){for(;(E=a.at(y+me))!=null&&E.isDigit();)y+=me;return b==="backward"?y-1:y}if(le.style.variant||le.style.variantStyle){let ge=(ee=a.at(y))==null?void 0:ee.style;for(;ge&&ge.variant===le.style.variant&&ge.variantStyle===le.style.variantStyle;)ge=(re=a.at(y+me))==null?void 0:re.style,y+=me;return b==="backward"?y-1:y}return y}return y}Dl({selectGroup:a=>{const y=Oh(a);return y||a.announce("plonk"),y},selectAll:a=>a.setSelection(0,a.lastOffset),extendSelectionForward:a=>Dc(a,"forward",{extend:!0}),extendSelectionBackward:a=>Dc(a,"backward",{extend:!0}),extendToNextWord:a=>vd(a,"forward",{extend:!0}),extendToPreviousWord:a=>vd(a,"backward",{extend:!0}),extendSelectionUpward:a=>Dc(a,"upward",{extend:!0}),extendSelectionDownward:a=>Dc(a,"downward",{extend:!0}),extendToNextBoundary:a=>vd(a,"forward",{extend:!0}),extendToPreviousBoundary:a=>vd(a,"backward",{extend:!0}),extendToGroupStart:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).firstSibling));return y||a.announce("plonk"),y},extendToGroupEnd:a=>{const y=a.setSelection(a.anchor,a.offsetOf(a.at(a.position).lastSibling));return y||a.announce("plonk"),y},extendToMathFieldStart:a=>{const y=a.setSelection(a.anchor,0);return y||a.announce("plonk"),y},extendToMathFieldEnd:a=>{const y=a.setSelection(a.anchor,a.lastOffset);return y||a.announce("plonk"),y}},{target:"model",changeSelection:!0});var Zu=null,nf=0,Gf=class tc{static start(y,b,E,ee){var re;tc.element=y,(re=tc.controller)==null||re.abort(),tc.controller=new AbortController;const le={signal:tc.controller.signal};"PointerEvent"in window?(y.addEventListener("pointermove",E,le),y.addEventListener("pointerup",ee,le),y.addEventListener("pointercancel",ee,le),Nh(b)&&(tc.pointerId=b.pointerId,y.setPointerCapture(b.pointerId))):(window.addEventListener("mousemove",E,le),window.addEventListener("blur",ee,le),window.addEventListener("mouseup",ee,le))}static stop(){var y;(y=tc.controller)==null||y.abort(),tc.controller=void 0,typeof tc.pointerId=="number"&&(tc.element.releasePointerCapture(tc.pointerId),tc.pointerId=void 0)}};function Nh(a){return a!==null&&globalThis.PointerEvent!==void 0&&a instanceof PointerEvent}function j0(a,y){var b;if(y.buttons>1)return;a.atomBoundsCache=new Map;const E=a;let ee,re=!1,le=!1,me="none",ge=!1,Se=!1;const Pe=y.clientX,st=y.clientY,kt=Date.now(),Vt=E.field,sn=setInterval(()=>{ge?Vt.scroll({top:0,left:Vt.scrollLeft-16}):Se&&Vt.scroll({top:0,left:Vt.scrollLeft+16})},32);function Yn(){Gf.stop(),re=!1,clearInterval(sn),a.element.classList.remove("tracking"),y&&y.preventDefault()}function Yr(hr){if(!E.hasFocus()){Yn();return}const ni=hr.clientX,Sr=hr.clientY,Ti=Nh(hr)&&hr.pointerType==="touch"?20:5;if(Date.now()<kt+500&&Math.abs(Pe-ni)<Ti&&Math.abs(st-Sr)<Ti){hr.preventDefault(),hr.stopPropagation();return}const Ui=Vt.getBoundingClientRect();Se=ni>Ui.right,ge=ni<Ui.left;let Hi=ee;Nh(hr)&&(hr.isPrimary||(Hi=rf(E,hr.clientX,hr.clientY,{bias:0})));const ja=rf(E,ni,Sr,{bias:ni<=Pe?ni===Pe?0:-1:1});Hi>=0&&ja>=0&&(E.model.extendSelectionTo(Hi,ja),Xo(a)),le&&Oh(E.model)}Zu&&Math.abs(Zu.x-Pe)<5&&Math.abs(Zu.y-st)<5&&Date.now()<Zu.time+500?(nf+=1,Zu.time=kt):(Zu={x:Pe,y:st,time:kt},nf=1);const Zn=Vt.getBoundingClientRect();if(Pe>=Zn.left&&Pe<=Zn.right&&st>=Zn.top&&st<=Zn.bottom){if(a.flushInlineShortcutBuffer(),a.adoptStyle="left",ee=rf(a,Pe,st,{bias:0}),ee>=0){if(a.element.classList.add("tracking"),y.shiftKey){const hr=a.model.selectionIsCollapsed;a.model.extendSelectionTo(a.model.anchor,ee),v0(a.model)||hr?me="all":me="selection"}else a.model.at(ee).type==="placeholder"?(a.model.setSelection(ee-1,ee),me="selection"):((b=a.model.at(ee).rightSibling)==null?void 0:b.type)==="placeholder"?(a.model.setSelection(ee,ee+1),me="selection"):(a.model.position=ee,v0(a.model)?me="all":me="selection");a.defaultStyle={},y.detail===3||nf>2?(Yn(),(y.detail===3||nf===3)&&(a.model.selection={ranges:[[0,a.model.lastOffset]]},me="all")):re||(re=!0,Gf.start(Vt,y,Yr,Yn),(y.detail===2||nf===2)&&(le=!0,Oh(a.model),me="all"))}a.hasFocus()||(me="none",a.focus({preventScroll:!0}))}else Zu=null;a.stopCoalescingUndo(),me!=="none"&&(a.model.selectionIsCollapsed&&(me="all"),Xo(a)),y.preventDefault()}function $g(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 V0(a,y,b,E,ee){if(!b.id)return[1/0,null];if(y.has(b.id))return y.get(b.id);const re=uu(a,b);if(!re)return[1/0,null];let le=[1/0,null];if(b.hasChildren&&!b.captureSelection&&E>=re.left&&E<=re.right)for(const me of b.children){const ge=V0(a,y,me,E,ee);ge[0]<=le[0]&&(le=ge)}return le[1]||(le=[$g(E,ee,re),b]),y.set(b.id,le),le}function ev(a,y,b){const[,E]=V0(a,new Map,a.model.root,y,b);return E}function rf(a,y,b,E){var ee;const re=a.field.querySelector(".ML__latex").getBoundingClientRect();if(!re)return 0;if(y>re.right||b>re.bottom+8)return a.model.lastOffset;if(y<re.left||b<re.top-8)return 0;E=E!=null?E:{},E.bias=(ee=E.bias)!=null?ee:0;let le=ev(a,y,b);const me=[];let ge=le;for(;ge;)me.unshift(ge),ge=ge.parent;for(const Pe of me)if(Pe.captureSelection){le=Pe;break}let Se=a.model.offsetOf(le);if(Se<0)return-1;if(le.leftSibling)if(E.bias===0&&le.type!=="placeholder"){const Pe=uu(a,le);Pe&&y<(Pe.left+Pe.right)/2&&(Se=a.model.offsetOf(le.leftSibling))}else E.bias<0&&(Se=a.model.offsetOf(le.leftSibling));return Se}var tv=class extends ma{constructor(){super("math")}onPaste(a,y){if(!y||!a.model.contentWillChange({data:typeof y=="string"?y:null,dataTransfer:typeof y=="string"?null:y,inputType:"insertFromPaste"}))return!1;let b="",E="auto",ee=typeof y!="string"?y.getData("application/json+mathlive"):"";if(ee)try{const re=JSON.parse(ee);if(re&&Array.isArray(re)){a.snapshot();const le=hu(re),{model:me}=a;me.selectionIsCollapsed||me.deleteAtoms(Bs(me.selection));const ge=me.at(me.position);if(ge.parent instanceof ya){console.assert(ge.parentBranch!==void 0);const Se=[];let Pe=[];le[0].type==="first"&&le.shift(),le[le.length-1].type==="first"&&le.pop();for(const sn of le)sn.type==="first"&&Pe.length>0?(Se.push(Pe),Pe=[sn]):Pe.push(sn);Pe.length>0&&Se.push(Pe);let st=Number(ge.parentBranch[0]),kt=Number(ge.parentBranch[1]);const Vt=ge.parent.maxColumns;for(;ge.parent.colCount-kt<Se.length&&ge.parent.colCount<Vt;)ge.parent.addColumn();ge.parent.addChildrenAfter(Se[0],ge);for(let sn=1;sn<Se.length;sn++)kt++,kt>=Vt&&(kt=0,ge.parent.addRowAfter(st),st++),ge.parent.setCell(st,kt,Se[sn])}else ge.parent.addChildrenAfter(le.filter(Se=>Se.type!=="first"),ge);return me.position=me.offsetOf(le[le.length-1]),me.contentDidChange({inputType:"insertFromPaste"}),Xo(a),!0}}catch(re){}if(ee=typeof y!="string"?y.getData("application/json"):"",ee&&window.MathfieldElement.computeEngine)try{const re=JSON.parse(ee);if(typeof re=="object"&&"latex"in re&&re.latex&&(b=re.latex),!b){const le=window.MathfieldElement.computeEngine.box(re);le&&!le.has("Error")&&(b=le.latex)}b||(E="latex")}catch(re){}if(!b&&typeof y!="string"&&(b=y.getData("application/x-latex"),b&&(E="latex")),b||(b=typeof y=="string"?y:y.getData("text/plain")),b){let re;return[re,b]=Ec(b),E==="auto"&&re&&(E="latex"),a.stopCoalescingUndo(),a.stopRecording(),this.insert(a.model,b,{format:E})&&(a.startRecording(),a.snapshot("paste"),Xo(a)),a.startRecording(),!0}return!1}insert(a,y,b){var E,ee;const re=typeof y=="string"?y:(ee=(E=window.MathfieldElement.computeEngine)==null?void 0:E.box(y).latex)!=null?ee:"";if(!b.silenceNotifications&&!a.contentWillChange({data:re,inputType:"insertText"}))return!1;b.insertionMode||(b.insertionMode="replaceSelection"),b.selectionMode||(b.selectionMode="placeholder"),b.format||(b.format="auto");const{silenceNotifications:le}=a;b.silenceNotifications&&(a.silenceNotifications=!0);const me=a.silenceNotifications;a.silenceNotifications=!0;const ge={"?":"\\placeholder{}","@":"\\placeholder{}"};ge[0]=b.insertionMode==="replaceAll"?"":a.getValue(a.selection,"latex-unstyled"),b.insertionMode==="replaceSelection"&&!a.selectionIsCollapsed?a.deleteAtoms(Bs(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 Se=-1;ge[0]?ge["@"]=ge[0]:typeof y=="string"&&/(^|[^\\])#@/.test(y)&&(Se=rv(a),Se>=0&&(ge["@"]=a.getValue(Se,a.position,"latex"))),ge[0]||(ge[0]=ge["?"]);let Pe=!1;const st=ni=>(Pe=!0,ge[ni]);let[kt,Vt]=U0(a,y,st,b);if(!Vt)return!1;const sn=Vt.length===1&&Vt[0].type==="genfrac";sn&&Se>=0&&typeof a.mathfield.options.isImplicitFunction=="function"&&a.mathfield.options.isImplicitFunction(a.at(a.position).command)?(ge["@"]=ge["?"],Pe=!1,[kt,Vt]=U0(a,y,st,b)):Se>=0&&a.deleteAtoms([Se,a.position]);const{parent:Yn}=a.at(a.position),Yr=Yn.hasEmptyBranch("body");if(sn&&kt!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Yn instanceof no&&Yn.leftDelim==="("&&Yr){const ni=Yn.parent,Sr=Yn.parentBranch;ni.removeChild(Yn),ni.setChildren(Vt,Sr)}const Zn=a.at(a.position);Zn.parent.addChildrenAfter(Vt,Zn),kt==="latex"&&typeof y=="string"&&(Yn==null?void 0:Yn.type)==="root"&&Yr&&!Pe&&(Yn.verbatimLatex=y),a.silenceNotifications=me;const hr=Vt[Vt.length-1];if(b.selectionMode==="placeholder"){const ni=Vt.flatMap(Sr=>[Sr,...Sr.children]).find(Sr=>Sr.type==="placeholder");if(ni){const Sr=a.offsetOf(ni);a.setSelection(Sr-1,Sr),a.announce("move")}else hr&&(a.position=a.offsetOf(hr))}else b.selectionMode==="before"||(b.selectionMode==="after"?hr&&(a.position=a.offsetOf(hr)):b.selectionMode==="item"&&a.setSelection(a.anchor,a.offsetOf(hr)));return a.contentDidChange({data:re,inputType:"insertText"}),a.silenceNotifications=le,!0}};function U0(a,y,b,E){var ee;let re,le=[];if(typeof y!="string"||E.format==="math-json"){const me=window.MathfieldElement.computeEngine;if(!me)return["math-json",[]];[re,y]=["latex",me.box(y).latex],le=Ls(y,{context:a.mathfield.context})}else typeof y=="string"&&E.format==="ascii-math"?([re,y]=Pu(y,{format:"ascii-math",inlineShortcuts:a.mathfield.options.inlineShortcuts}),le=Ls(y,{context:a.mathfield.context}),re!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Yf(le)):(E.format==="auto"||(ee=E.format)!=null&&ee.startsWith("latex"))&&(E.format==="auto"&&([re,y]=Pu(y,{format:"auto",inlineShortcuts:a.mathfield.options.inlineShortcuts})),E.format==="latex"&&([,y]=Ec(y)),le=Ls(y,{context:a.mathfield.context,args:b}),E.format!=="latex"&&a.mathfield.options.removeExtraneousParentheses&&Yf(le));return mu(le,E.style),[re!=null?re:"latex",le]}function nv(a){if(!a||(console.assert(a[0].type==="first"),a.length>1))return null;const y=a[0];return y instanceof no&&y.leftDelim==="("&&y.rightDelim===")"?y.removeBranch("body"):null}function Yf(a){if(a){for(let y=0;a[y];y++){const b=a[y];if(b instanceof no&&b.leftDelim==="("){let E=0,ee=0,re=0;for(let le=0;b.body[le];le++)b.body[le].type==="genfrac"&&(E++,ee=le),re++;re===0&&E===1&&(a[y]=b.body[ee])}}for(const y of a){for(const b of y.branches)if(!y.hasEmptyBranch(b)){Yf(y.branch(b));const E=nv(y.branch(b));E&&y.setChildren(E,b)}if(y instanceof ya)for(const b of y.cells)Yf(b)}}}function rv(a){let y=a.at(a.position);if(y.mode==="text"){for(;!y.isFirstSibling&&y.mode==="text";)y=y.leftSibling;return a.offsetOf(y)}const b=y;let E=!1;if(y.type==="mclose"){const ee=te[y.value];for(;!y.isFirstSibling&&!(y.type==="mopen"&&y.value===ee);)y=y.leftSibling;y.isFirstSibling||(y=y.leftSibling),E=!0}else y.type==="leftright"&&(y=y.leftSibling,E=!0);if(E)for(;!y.isFirstSibling&&(y.isFunction||G0(y));)y=y.leftSibling;else{const ee=[];for(;!y.isFirstSibling&&(G0(y)||ee.length>0);)y.type==="mclose"&&ee.unshift(y.value),y.type==="mopen"&&ee.length>0&&y.value===te[ee[0]]&&ee.shift(),y=y.leftSibling}return b===y?-1:a.offsetOf(y)}function G0(a){return a.isDigit()?!0:a.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(a.type)?!a.isExtensibleSymbol:!1}new tv;var iv=class extends ma{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"),Xo(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(Bs(a.selection)):b.insertionMode==="replaceAll"?(a.root.setChildren([],"body"),a.position=0):b.insertionMode==="insertBefore"?a.collapseSelection("backward"):b.insertionMode==="insertAfter"&&a.collapseSelection("forward");const re=av(y,a.mathfield.context);if(mu(re,b.style),!re)return!1;const le=a.at(a.position),me=le.parent.addChildrenAfter(re,le);return a.silenceNotifications=ee,b.selectionMode==="before"||(b.selectionMode==="item"?a.setSelection(a.anchor,a.offsetOf(me)):me&&(a.position=a.offsetOf(me))),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 "),Ls(a,{context:y,parseMode:"text"})}new iv;function Lc(a){return{value:a.model.getValue(),selectionIsCollapsed:a.model.selectionIsCollapsed,canUndo:a.canUndo(),canRedo:a.canRedo(),style:a.selectionStyle,mode:a.model.mode}}var Bo=4,ml=20,vs=2*(ml+Bo),Xf=(a,y)=>`
|
|
|
<line x1="${a+ml}" y1="${y+ml}"
|
|
|
x2="${a>y?a+ml:7*ml+10*Bo}"
|
|
|
y2="${a<y?y+ml:7*ml+10*Bo}"/>
|
|
|
<svg id="plus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.34-3.33,3.34h-6.67v6.66c0,1.84-1.49,3.34-3.33,3.34s-3.34-1.5-3.34-3.34v-6.66h-6.66c-1.84,0-3.34-1.5-3.34-3.34s1.5-3.33,3.34-3.33h6.66v-6.67c0-1.84,1.5-3.33,3.34-3.33s3.33,1.49,3.33,3.33v6.67h6.67c1.84,0,3.33,1.49,3.33,3.33Z"/>
|
|
|
</svg>`,Y0=(a,y)=>`
|
|
|
<line x1="${a+ml}" y1="${y+ml}"
|
|
|
x2="${a>y?a+ml:7*ml+10*Bo}"
|
|
|
y2="${a<y?y+ml:7*ml+10*Bo}"/>
|
|
|
<svg id="minus" viewBox="0 0 40 40" x="${a}" y="${y}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<path class="font" d="m33.33,20c0,1.84-1.49,3.33-3.33,3.33H10c-1.84,0-3.34-1.49-3.34-3.33s1.5-3.34,3.34-3.34h20c1.84,0,3.33,1.5,3.33,3.34Z"/>
|
|
|
</svg>`,Qf=(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*ml+10*Bo+5} ${8*ml+10*Bo+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${vs+Bo}"
|
|
|
height="${3*vs}"
|
|
|
width="${vs}"
|
|
|
rx="${vs/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${vs+Bo}"
|
|
|
y="0"
|
|
|
height="${vs}"
|
|
|
width="${3*vs}"
|
|
|
rx="${vs/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${Qf(2*(Bo+vs),2*Bo+3*vs,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${Qf(2*(Bo+vs),2*Bo+vs,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${Qf(2*Bo+3*vs,2*(Bo+vs),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${Qf(2*Bo+vs,2*(Bo+vs),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${Xf(2*Bo+vs,Bo)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${Y0(2*Bo+2*vs,Bo)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${Xf(2*Bo+3*vs,Bo)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${Xf(Bo,2*Bo+vs)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${Y0(Bo,2*Bo+2*vs)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${Xf(Bo,2*Bo+3*vs)}
|
|
|
</g>
|
|
|
</svg>`,sv=a=>`
|
|
|
<svg id="matrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","matrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,lv=a=>`
|
|
|
<svg id="pmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","pmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
|
|
|
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/></svg>`,X0=a=>`
|
|
|
<svg id="Bmatrix" class="${a}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","Bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,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:X0,vmatrix:uv,Vmatrix:dv},Fh={cases:fv,rcases:hv,Bmatrix:X0};function pv(a){var y,b;const E=(y=a.model.parentEnvironment)==null?void 0:y.array;if(!E)return;let ee=0;E.forEach(sn=>{(!ee||sn.length>ee)&&(ee=sn.length)});let re=document.getElementById("mathlive-environment-popover");re||(re=Df("mathlive-environment-popover"),Bl("environment-popover"),Bl("core"),re.setAttribute("aria-hidden","true"));let le;const me=re.querySelector(".MLEP__environment-controls");me?le=me:(le=document.createElement("div"),re.innerHTML="",re.appendChild(le)),le.className="MLEP__environment-controls",le.style.display="flex",le.style.width="100%",le.style.height="100%",le.style.boxSizing="border-box",le.innerHTML=ov;let ge=[],Se="";const Pe=a.model.parentEnvironment.environmentName;if(qs(Pe)){const sn=gv(Pe);Se=Rh[sn]("active");const Yn=Rh,{[sn]:Yr}=Yn,Zn=vt(Yn,[_e(sn)]);ge=Object.values(Zn).map(hr=>hr("inactive"))}else if($s(Pe)){const sn=vv(Pe);Se=Fh[sn]("active");const Yn=Fh,{[sn]:Yr}=Yn,Zn=vt(Yn,[_e(sn)]);ge=Object.values(Zn).map(hr=>hr("inactive"))}else ds(Pe)&&(Se=Rh.matrix("active"),ge=Object.values(Fh).map(sn=>sn("inactive")));const st=document.createElement("div");st.className="MLEP__environment-delimiter-controls",st.style.display="flex",st.style.flexDirection="column",st.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${Se}
|
|
|
${ge.join("")}
|
|
|
</div>`,Se&&le.appendChild(st),le.querySelectorAll("[data-command]").forEach(sn=>{const Yn=sn.dataset.command;let Yr=Yn;try{Yr=JSON.parse(Yn)}catch(Zn){}sn.addEventListener("mousedown",Zn=>Zn.preventDefault()),Yr&&sn.addEventListener("click",()=>a.executeCommand(Yr))});const Vt=(b=a.field)==null?void 0:b.getBoundingClientRect();Vt&&(re.style.top=`${window.scrollY+(Vt.top-re.clientHeight-15)}px`,re.style.left=`${Vt.left+20}px`,re.classList.add("is-visible"))}function zh(){const a=document.getElementById("mathlive-environment-popover");a==null||a.classList.remove("is-visible")}function mv(){document.getElementById("mathlive-environment-popover")&&(bh("mathlive-environment-popover"),x("environment-popover"),x("core"))}function Jf(a){if(!a.hasFocus())return;let y=!1;if(a.model.mode==="math"){const b=a.model.parentEnvironment;if(b!=null&&b.array&&Ko(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 Q0(a){const y=getComputedStyle(a).direction;return y==="ltr"||y==="rtl"?y:"ltr"}function J0(a,y,b){return y==="left"||y==="leading"&&b==="ltr"||y==="trailing"&&b==="rtl"?a.left:a.right}function _h(a,y,b,E){return b==="middle"?a-y/2:b==="start"&&E==="rtl"||b==="end"&&E==="ltr"||b==="top"||b==="right"?Math.max(0,a-y):a}function 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 re=(b=Q0(a))!=null?b:"ltr";a.style.position="fixed",a.style.left="",a.style.top="",a.style.right="",a.style.bottom="",a.style.height="",a.style.width="";const le=a.getBoundingClientRect(),me=Number.isFinite(y.maxHeight)?Math.min(y.maxHeight,window.innerHeight):window.innerHeight;let ge=Math.min(me,(E=y.height)!=null?E:le.height),Se=_h(y.location.y,ge,y.verticalPos,re);Se+ge>window.innerHeight-8&&(y.alternateLocation?(Se=_h(y.alternateLocation.y,ge,y.verticalPos,re),Se+ge>window.innerHeight-8&&(Se=void 0)):Se=void 0),Number.isFinite(Se)||(Se=Math.max(8,window.innerHeight-8-ge),8+ge>window.innerHeight-8&&(a.style.bottom="8px")),ge=Math.min(Se+ge,window.innerHeight-8)-Se;const Pe=Number.isFinite(y.maxWidth)?Math.min(y.maxWidth,window.innerWidth):window.innerWidth;let st=Math.min(Pe,(ee=y.width)!=null?ee:le.width),kt=_h(y.location.x,st,y.horizontalPos,re);kt+st>window.innerWidth-8&&(y.alternateLocation?(kt=yv(y.alternateLocation.x,st,y.verticalPos,re),kt+st>window.innerWidth-8&&(kt=void 0)):kt=void 0),Number.isFinite(kt)||(kt=Math.max(8,window.innerWidth-8-st),8+st>window.innerWidth-8&&(a.style.right="8px")),st=Math.min(kt+st,window.innerWidth-8)-kt,re==="rtl"?a.style.right=`${Math.ceil(window.innerWidth-kt-st).toString()}px`:a.style.left=`${Math.ceil(kt).toString()}px`,a.style.top=`${Math.ceil(Se).toString()}px`,ge!==le.height&&(a.style.height=`${Math.ceil(ge).toString()}px`),st!==le.width&&(a.style.width=`${Math.ceil(st).toString()}px`)}function xv(a,y){return Math.hypot(y.x-a.x,y.y-a.y)}function yd(a){return"submenu"in a}function Ic(a){return"type"in a&&a.type==="command"||"onMenuSelect"in a||"id"in a}function Kh(a){return"type"in a&&a.type==="divider"}function Hh(a){return"type"in a&&a.type==="heading"}var q0={};function Wh(a){let y=q0[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,q0[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 $0=80,ep=class{constructor(a,y){this._element=null;var b;this.parentMenu=y,this._declaration=a,yd(a)?(this.type="submenu",this.submenu=new tp(a.submenu,{parentMenu:y,submenuClass:a.submenuClass,columnCount:a.columnCount})):this.type=(b=a.type)!=null?b:"command",this.hasCheck=Ic(a)&&a.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var a,y;(a=this._abortController)==null||a.abort(),this._abortController=void 0,(y=this._element)==null||y.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var a;return(a=this._label)!=null?a:""}set label(a){a===void 0&&(a=""),a!==this._label&&(this._label=a,this.dirty=!0)}get visible(){return this._visible}set visible(a){a!==this._visible&&(this._visible=a,this.dirty=!0)}get enabled(){return this._enabled}set enabled(a){this._enabled=a,this.element&&(a?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(a){this._checked=a,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(a){a!==this._tooltip&&(this._tooltip=a,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(a){a!==this._ariaLabel&&(this._ariaLabel=a,this.dirty=!0)}get active(){var a,y;return(y=(a=this.element)==null?void 0:a.classList.contains("active"))!=null?y:!1}set active(a){this.element&&this.element.classList.toggle("active",a)}updateState(a){var y,b,E;const ee=this._declaration;if(Kh(ee)){this.enabled=!1,this.checked=!1;return}Hh(ee)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Ic(ee)&&(this.checked=Ic(ee)&&((y=bd(ee.checked,a))!=null?y:!1)),(Ic(ee)||yd(ee))&&(this.enabled=(b=bd(ee.enabled,a))!=null?b:!0,this.visible=(E=bd(ee.visible,a))!=null?E:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(a),this.submenu.visible||(this.visible=!1))),(Ic(ee)||Hh(ee)||yd(ee))&&(this.label=bd(ee.label,a),this.tooltip=bd(ee.tooltip,a),this.ariaLabel=bd(ee.ariaLabel,a)),this._element&&this.updateElement()}set dirty(a){console.assert(a===!0),a&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const a=this.element;a.textContent="",this.enabled?a.removeAttribute("aria-disabled"):a.setAttribute("aria-disabled","true"),this.checked===!0?(a.setAttribute("aria-checked","true"),a.append(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),Ic(this._declaration)&&this._declaration.keyboardShortcut){const b=document.createElement("kbd");b.innerHTML=vh(this._declaration.keyboardShortcut),a.append(b)}this.type==="submenu"&&a.append(Wh("trailing-chevron"))}get element(){if(this._element)return this._element;if(Kh(this._declaration)){const b=document.createElement("li");return b.setAttribute("part","menu-divider"),b.setAttribute("role","divider"),this._element=b,b}const a=document.createElement("li");this._element=a,(Ic(this._declaration)||Hh(this._declaration)||yd(this._declaration))&&this._declaration.class&&(a.className=this._declaration.class),a.setAttribute("part","menu-item"),a.setAttribute("tabindex","-1"),this.hasCheck?a.setAttribute("role","menuitemcheckbox"):a.setAttribute("role","menuitem"),this.type==="submenu"&&(a.setAttribute("aria-haspopup","true"),a.setAttribute("aria-expanded","false"));const y=this.abortController.signal;return a.addEventListener("pointerenter",this,{signal:y}),a.addEventListener("pointerleave",this,{signal:y}),a.addEventListener("pointerup",this,{signal:y}),a.addEventListener("click",this,{signal:y}),this._element}dispatchSelect(){if(!Ic(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()},$0)},$0)}openSubmenu(a){var y;if(this.type!=="submenu"||!this.element)return;if((y=a==null?void 0:a.withDelay)!=null&&y){this.rootMenu.scheduleOperation(()=>this.openSubmenu());return}const b=this.element.getBoundingClientRect(),E=Q0(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:J0(b,"trailing",E),y:b.top-4},alternateLocation:{x:J0(b,"leading",E),y:b.top-4}})}movingTowardSubmenu(a){if(!this.element||this.type!=="submenu")return!1;const y=this.rootMenu.lastMoveEvent;if(!y)return!1;const b=a.timeStamp-y.timeStamp;if(b>500)return!1;const E=a.clientX-y.clientX;if(wv(E,y.clientY-a.clientY,b)<=.2)return!1;let re="right";if(this.submenu.element){const le=this.submenu.element.getBoundingClientRect(),me=this.element.getBoundingClientRect();le.left<me.left+me.width/2&&(re="left")}return re==="right"?E>0:E<0}};function wv(a,y,b){return Math.hypot(a,y)/b}function bd(a,y){return a===void 0||typeof a!="function"?a:(y!=null||(y={alt:!1,control:!1,shift:!1,meta:!1}),a(y))}var tp=class Ad{constructor(y,b){this._element=null,this._activeMenuItem=null,this._dirty=!0;var E,ee;this.parentMenu=(E=b==null?void 0:b.parentMenu)!=null?E:null,this._submenuClass=b==null?void 0:b.submenuClass,this.columnCount=(ee=b==null?void 0:b.columnCount)!=null?ee:1,this.isSubmenuOpen=!1,this.menuItems=y}get children(){return this._menuItems}set menuItems(y){const b=this.parentMenu;this.dispose(),this.parentMenu=b,y=[...y],this._menuItems=y.map(E=>E.onCreate?E.onCreate(E,this):new ep(E,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var y;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(y=this._menuItems)==null||y.forEach(b=>b.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(y){if(y.type==="wheel"&&this._element){const b=y;this._element.scrollBy(0,b.deltaY),y.stopPropagation()}}dispatchEvent(y){return this.rootMenu.dispatchEvent(y)}get rootMenu(){return this.parentMenu.rootMenu}updateState(y){var b,E,ee;this._menuItems.forEach(Se=>Se.updateState(y));const re=this.hasCheck;this.hasCheck=this._menuItems.some(Se=>Se.visible&&Se.hasCheck),this.hasCheck!==re&&this._menuItems.forEach(Se=>Se.updateState(y));let le,me=0;for(const Se of this._menuItems)Se.type==="heading"?(le&&me===0&&(le.visible=!1),le=Se,me=0):Se.type==="divider"&&le?(le.visible=me>0,le=void 0,me=0):le&&Se.visible&&(me+=1);le&&(le.visible=me>0);let ge=!0;for(const Se of this._menuItems)Se.type==="divider"?(Se.visible=!ge,ge=!0):Se.visible&&(ge=!1);(b=this.activeMenuItem)!=null&&b.visible||(this.activeMenuItem=null),!((E=this.activeMenuItem)!=null&&E.enabled)&&((ee=this.activeMenuItem)==null?void 0:ee.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible&&y.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(y=>y.type!=="divider"&&y.visible)}set dirty(y){console.assert(y===!0),this._dirty!==y&&y&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var y;if(this._element){this._element.textContent="";for(const{element:b,visible:E}of this._menuItems)b&&E&&this._element.append(b);(y=this._element.querySelector("li:first-of-type"))==null||y.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const y=document.createElement("menu");y.setAttribute("role","menu"),y.setAttribute("tabindex","-1"),y.setAttribute("aria-orientation","vertical"),y.setAttribute("part","ui-menu-container"),this._submenuClass&&y.classList.add(this._submenuClass),y.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const b=this._abortController.signal;return y.addEventListener("focus",this,{signal:b}),y.addEventListener("wheel",this,{passive:!0,signal:b}),this._element=y,this.updateElement(),y}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(y){var b,E,ee,re;if(this.rootMenu.cancelDelayedOperation(),y!==this._activeMenuItem){if(this.activeMenuItem){const le=this.activeMenuItem;le.active=!1,(b=le.submenu)==null||b.hide()}if(!((E=y==null?void 0:y.visible)==null||E)){this._activeMenuItem=null;return}this._activeMenuItem=y,y&&(y.active=!0)}y?(ee=y.element)==null||ee.focus({preventScroll:!0}):(re=this._element)==null||re.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let y=0,b=!1;const E=this._menuItems;for(;!b&&y<=E.length-1;){const ee=E[y];b=ee.type!=="divider"&&ee.visible&&ee.enabled,y+=1}return b?E[y-1]:null}get lastMenuItem(){this.updateIfDirty();const y=this._menuItems;let b=y.length-1,E=!1;for(;!E&&b>=0;){const ee=y[b];E=ee.type!=="divider"&&ee.visible&&ee.enabled,b-=1}return E?y[b+1]:null}nextMenuItem(y){if(y===0)return this._activeMenuItem;if(!this._activeMenuItem)return y>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const b=this._menuItems.indexOf(this.firstMenuItem),E=this._menuItems.indexOf(this.lastMenuItem);let ee=this._menuItems.indexOf(this._activeMenuItem),re=1;for(;ee>=b&&ee<=E;){ee+=y>0?1:-1;const le=this._menuItems[ee];if(!le)break;if(le.visible&&le.enabled){if(re===Math.abs(y))return this._menuItems[ee];re+=1}}return y>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(y){this.updateIfDirty();const E=this._menuItems.filter(ee=>ee.visible&&ee.enabled).indexOf(y);return E<0?-1:E%this.columnCount}static get collator(){return Ad._collator||(Ad._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Ad._collator}findMenuItem(y){var b;this.updateIfDirty();const E=this._menuItems.filter(me=>me.type!=="divider"&&me.visible&&me.enabled);if(E.length===0)return null;const ee=Math.max(...E.map(me=>me.label.length))-y.length;if(ee<0)return null;let re=null,le=0;for(;le<ee&&!re;)re=(b=E.find(me=>Ad.collator.compare(y,me.label.substring(le,y.length))===0))!=null?b:null,le++;return re}show(y){return!this.visible||!y.container?!1:(this.updateElement(),y.container.appendChild(this.element),Bt()&&(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,re;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),Bt()&&((y=this._element)!=null&&y.popover)&&this.element.hidePopover(),(E=(b=this.parentMenu)==null?void 0:b.element)==null||E.focus(),(re=(ee=this._element)==null?void 0:ee.parentNode)==null||re.removeChild(this._element)}set openSubmenu(y){var b,E,ee,re;const le=y!==null;((b=this.activeMenuItem)==null?void 0:b.type)==="submenu"&&((E=this.activeMenuItem.element)==null||E.setAttribute("aria-expanded",le.toString())),(re=(ee=this.activeMenuItem)==null?void 0:ee.element)==null||re.classList.toggle("is-submenu-open",le),this.isSubmenuOpen=le}},np=class rm extends tp{constructor(y,b){var E;super(y),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(E=b==null?void 0:b.host)!=null?E:null,this.isDynamic=y.some(rp),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(y){Km(this._modifiers,y)||(this._modifiers=y,this.dirty=!0)}get activeSubmenu(){let y=this;for(;y.isSubmenuOpen;)y=y.activeMenuItem.submenu;return y}set dirty(y){this._updating||(console.assert(y===!0),this._dirty!==y&&(this._dirty=!0,y&&setTimeout(()=>{this.updateState(this.modifiers),this.updateElement()})))}updateState(y){this._updating=!0,this.modifiers=y!=null?y:this.modifiers,super.updateState(this.modifiers),this._updating=!1}handleKeyupEvent(y){this.isDynamic&&(this.modifiers=Nu(y)),y.stopImmediatePropagation()}handleKeydownEvent(y){var b,E,ee;if(y.key==="Tab"||y.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Nu(y));let re=!0;const le=this.activeSubmenu,me=le.activeMenuItem;switch(y.key){case" ":case"Space":case"Return":case"Enter":me==null||me.select(Nu(y));break;case"ArrowRight":if((me==null?void 0:me.type)==="submenu")me.select(Nu(y)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!me)le.activeMenuItem=le.firstMenuItem;else{const ge=(b=le.getMenuItemColumn(me))!=null?b:-1;if(ge>=0&&ge<((E=le.columnCount)!=null?E:1)-1){const Se=le.nextMenuItem(1);Se&&(le.activeMenuItem=Se)}}break;case"ArrowLeft":if(le===this.rootMenu)me||(le.activeMenuItem=le.firstMenuItem);else if((me&&(ee=le.getMenuItemColumn(me))!=null?ee:-1)<=0||!me){le.hide();const Se=le.parentMenu.activeMenuItem;if(Se){const{element:Pe}=Se;Pe==null||Pe.focus(),Pe==null||Pe.classList.remove("is-submenu-open")}}else{const Se=le.nextMenuItem(-1);Se&&(le.activeMenuItem=Se)}break;case"ArrowDown":le.activeMenuItem=le.nextMenuItem(le.columnCount);break;case"ArrowUp":le.activeMenuItem=le.nextMenuItem(-le.columnCount);break;case"Home":case"PageUp":le.activeMenuItem=le.firstMenuItem;break;case"End":case"PageDown":le.activeMenuItem=le.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const ge=le.findMenuItem(this.typingBuffer);ge&&(le.activeMenuItem=ge),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(kf(y)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=y.key;const ge=le.findMenuItem(this.typingBuffer);ge&&(le.activeMenuItem=ge),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else re=!1}re&&(y.preventDefault(),y.stopPropagation())}handleEvent(y){if(y.type==="keydown")this.handleKeydownEvent(y);else if(y.type==="keyup")this.handleKeyupEvent(y);else if(y.type==="pointermove")this.lastMoveEvent=y;else if(y.type==="pointerup"&&y.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(y.type==="contextmenu"){y.preventDefault(),y.stopPropagation();return}super.handleEvent(y)}dispatchEvent(y){return this._host?this._host.dispatchEvent(y):!0}get scrim(){return Ac.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),Ac.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),Ac.state==="open"&&Ac.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(ve({},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,Ac.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(y){this.cancelDelayedOperation();const b=rm.SUBMENU_DELAY;if(b<=0){y();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,y()},b)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};np.SUBMENU_DELAY=120;var Sv=np;function rp(a){return Kh(a)?!1:typeof a.label=="function"||typeof a.ariaLabel=="function"||typeof a.tooltip=="function"||(Ic(a)||yd(a))&&(typeof a.enabled=="function"||typeof a.visible=="function")||Ic(a)&&typeof a.checked=="function"?!0:yd(a)?a.submenu.some(rp):!1}var qf=class{};qf.DELAY=300,qf.MAX_DISTANCE=10;function Cv(a){return new Promise((y,b)=>{const E=Mf(a);E||y(!1);let ee=E;const re=setTimeout(()=>{le.abort(),y(xv(ee,E)<qf.MAX_DISTANCE)},qf.DELAY),le=new AbortController,me=le.signal;for(const ge of["pointermove","pointerup","pointercancel"])window.addEventListener(ge,Se=>{if(Se.type==="pointerup"||Se.type==="pointercancel")clearTimeout(re),le.abort(),y(!1);else if(Se.type==="pointermove"){const Pe=Mf(Se);Pe&&(ee=Pe)}},{passive:!0,signal:me})})}function ip(a,y,b){return yu(this,null,function*(){if(a.type==="contextmenu"){const E=a;if(b.show({target:y,location:Mf(E),modifiers:Nu(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:Nu(E)}))return a.preventDefault(),a.stopPropagation(),!0}}if(a.type==="pointerdown"&&a.pointerType!=="mouse"&&a.button===0){let E=a.target;for(;E&&y!==E;)E=E.parentNode;if(!E||!b.visible)return!1;const ee=Mf(a);if(yield Cv(a))return b.state!=="closed"?!1:(b.show({target:y,location:ee}),!0)}return!1})}var ap={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};lt(Object.keys(ap),"{body:auto}",{createAtom:a=>new z(Me(ve({},a),{body:at(a.args[0]),accentChar:ap[a.command.slice(1)]}))}),lt(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:a=>{const y=Ve(at(a.args[0]));return new z(Me(ve({},a),{body:at(a.args[0]),svgAccent:a.command.slice(1)+(y.length>5?"4":["1","1","2","2","3","3"][y.length])}))}}),lt(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:a=>new z(Me(ve({},a),{body:at(a.args[0]),svgAccent:"overarc"}))}),lt(["underarc","underparen"],"{body:auto}",{createAtom:a=>new ql(Me(ve({},a),{body:at(a.args[0]),svgBelow:"underarc"}))}),lt("utilde","{body:auto}",{createAtom:a=>{const y=at(a.args[0]),b=Ve(y),E="widetilde"+(b.length>5?"4":["1","1","2","2","3","3"][b.length]);return new ql(Me(ve({},a),{body:y,svgBelow:E,boxType:xc(y)}))}}),lt("^","{:string}",{createAtom:a=>{var y;return new sr(Me(ve({},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:"^"}))}}),lt("`","{:string}",{createAtom:a=>{var y;return new sr(Me(ve({},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:"`"}))}}),lt("'","{:string}",{createAtom:a=>{var y;return new sr(Me(ve({},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:"'"}))}}),lt('"',"{:string}",{createAtom:a=>{var y,b;return new sr(Me(ve({},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]:'"'}))}}),lt(".","{:string}",{createAtom:a=>{var y,b;return new sr(Me(ve({},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]:"."}))}}),lt("=","{:string}",{createAtom:a=>{var y,b;return new sr(Me(ve({},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]:"="}))}}),lt("~","{:string}",{createAtom:a=>{var y;return new sr(Me(ve({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"}))}}),lt("c","{:string}",{createAtom:a=>{var y;return new sr(Me(ve({},a),{type:"mord",isFunction:!1,limits:"adjacent",value:a.args[0]&&(y={c:"\xE7",C:"\xC7"}[a.args[0]])!=null?y:""}))}}),lt("enclose","{notation:string}[style:string]{body:auto}",{createAtom:a=>{var y,b;const E=a.args,ee={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(y=a.style)!=null?y:{}};if(E[1]){const le=E[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const me of le){const ge=me.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(ge)ee.strokeWidth=ge[1],ee.strokeStyle=ge[2],ee.strokeColor=ge[3];else{const Se=me.match(/\s*([a-z]*)\s*=\s*"(.*)"/);Se&&(Se[1]==="mathbackground"?ee.backgroundcolor=Se[2]:Se[1]==="mathcolor"?ee.strokeColor=Se[2]:Se[1]==="padding"?ee.padding=Se[2]:Se[1]==="shadow"&&(ee.shadow=Se[2]))}}ee.strokeStyle==="dashed"?ee.svgStrokeStyle="5,5":ee.strokeStyle==="dotted"&&(ee.svgStrokeStyle="1,5")}ee.borderStyle=`${ee.strokeWidth} ${ee.strokeStyle} ${ee.strokeColor}`;const re={};return((b=E[0])!=null?b:"").split(/[, ]/).filter(le=>le.length>0).forEach(le=>{re[le.toLowerCase()]=!0}),new Kd(a.command,at(E[2]),re,ee)}}),lt("cancel","{body:auto}",{createAtom:a=>{var y;return new Kd(a.command,at(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:{}})}}),lt("bcancel","{body:auto}",{createAtom:a=>{var y;return new Kd(a.command,at(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:{}})}}),lt("xcancel","{body:auto}",{createAtom:a=>{var y;return new Kd(a.command,at(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:{}})}}),lt(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:a=>{var y;return new ql(Me(ve({},a),{body:at((y=a.args)==null?void 0:y[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:a.command.slice(1)}))}}),lt("overbrace","{:auto}",{createAtom:a=>new ql(Me(ve({},a),{body:at(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:a.command.slice(1)}))}),lt(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:a=>new ql(Me(ve({},a),{body:at(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:a.command.slice(1)}))}),lt(["underbrace"],"{:auto}",{createAtom:a=>new ql(Me(ve({},a),{body:at(a.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:a.command.slice(1)}))}),lt(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:a=>{var y,b,E,ee,re;return new ql(Me(ve({},a),{svgBody:a.command.slice(1),above:((b=at((y=a.args)==null?void 0:y[1]))==null?void 0:b.length)===0?void 0:at((E=a.args)==null?void 0:E[1]),below:(re=at((ee=a.args)==null?void 0:ee[0]))!=null?re:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(a,y)=>a.command+(a.hasEmptyBranch("below")?"":`[${a.belowToLatex(y)}]`)+`{${a.aboveToLatex(y)}}${a.supsubToLatex(y)}`}),lt(["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 Ou(a.command.slice(1),Me(ve({},a),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),lt(["liminf","limsup"],"",{ifMode:"math",createAtom:a=>new Ou({"\\liminf":"lim inf","\\limsup":"lim sup"}[a.command],Me(ve({},a),{limits:"over-under",variant:"main"}))}),lt(["lim","mod"],"",{ifMode:"math",createAtom:a=>new Ou(a.command.slice(1),Me(ve({},a),{limits:"over-under",variant:"main"}))}),lt(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:a=>new Ou(a.command.slice(1),Me(ve({},a),{limits:"over-under",isFunction:!0,variant:"main"}))}),lt(["ang"],"{:math}",{ifMode:"math",createAtom:a=>new sr(Me(ve({},a),{body:at(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 Vr("\xB0",{style:Me(ve({},a.style),{variant:"normal",variantStyle:"up"})});return new Vr([b,ee],{type:"inner",isSelected:a.isSelected,caret:E})}}),lt("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:a=>new o0(Me(ve({},a),{body:at(a.args[1]),index:a.args[0]?at(a.args[0]):void 0}))}),lt(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:a=>{const y=ve({},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 cd(E[0]?at(E[0]):[new Ji],E[1]?at(E[1]):[new Ji],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}`:ho(a.command,b,E)}}),lt(["brace","brack"],"",{infix:!0,createAtom:a=>new cd(at(a.args[0]),at(a.args[1]),Me(ve({},a),{hasBarLine:!1,leftDelim:a.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:a.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(a,y)=>Ba([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),lt(["over","atop","choose"],"",{infix:!0,createAtom:a=>{let y,b;const E=a.args;return a.command==="\\choose"&&(y="(",b=")"),new cd(at(E[0]),at(E[1]),Me(ve({},a),{hasBarLine:a.command==="\\over",leftDelim:y,rightDelim:b}))},serialize:(a,y)=>Ba([a.aboveToLatex(y),a.command,a.belowToLatex(y)])}),lt(["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 cd(at(E[0]),at(E[1]),Me(ve({},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)}`}),lt("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:a=>new cd(at(a.args[0]),at(a.args[1]),Me(ve({},a),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),lt(["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(ve({},a),{limits:"auto",variant:"main"}))}),lt("smallint","",{ifMode:"math",createAtom:a=>new Ou("\u222B",Me(ve({},a),{limits:"adjacent",variant:"main"}))});var op={int:"\u222B",iint:"\u222C",iiint:"\u222D",oint:"\u222E",oiint:"\u222F",oiiint:"\u2230",intclockwise:"\u2231",varointclockwise:"\u2232",ointctrclockwise:"\u2233",intctrclockwise:"\u2A11",sqcup:"\u2294",sqcap:"\u2293",uplus:"\u228E",wr:"\u2240",amalg:"\u2A3F",Cap:"\u22D2",Cup:"\u22D3",doublecap:"\u22D2",doublecup:"\u22D3"};lt(Object.keys(op),"",{ifMode:"math",createAtom:a=>{const y=a.command,b=op[y.slice(1)];return new fh(b,Me(ve({},a),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[b]}))}}),lt(["Re","Im"],"",{ifMode:"math",createAtom:a=>new Ou({"\\Re":"\u211C","\\Im":"\u2111"}[a.command],Me(ve({},a),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),lt("middle","{:delim}",{ifMode:"math",createAtom:a=>{var y;return new r0(Me(ve({},a),{delim:(y=a.args[0])!=null?y:"|",size:1}))}}),lt("the","{:value}",{createAtom:a=>new sr(Me(ve({},a),{captureSelection:!0,verbatimLatex:null})),render:(a,y)=>{var b;const E=new Wa({parent:y},a.style);let ee="";a.isSelected&&(ee+=" ML__selected");const re=E.evaluate(a.args[0]);return new Vr(((b=Ro(re))!=null?b:"").split("").map(le=>new Vr(le,{type:"ord",classes:ee,mode:a.mode,isSelected:a.isSelected,style:ve({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=Ro(a.args[0]))!=null?y:"\\relax"}`}}),lt("mathtip","{:auto}{:math}",{createAtom:a=>new hh(Me(ve({},a),{body:at(a.args[0]),tooltip:at(a.args[1]),content:"math"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${sr.serialize([a.tooltip],Me(ve({},y),{defaultMode:"math"}))}}`}),lt("texttip","{:auto}{:text}",{createAtom:a=>new hh(Me(ve({},a),{body:at(a.args[0]),tooltip:at(a.args[1]),content:"text"})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\texttip{${a.bodyToLatex(y)}}{${sr.serialize([a.tooltip],Me(ve({},y),{defaultMode:"text"}))}}`}),lt("error","{:math}",{createAtom:a=>new sr(Me(ve({},a),{body:at(a.args[0])})),serialize:(a,y)=>`\\error{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__error"})}),lt("ensuremath","{:math}",{createAtom:a=>new sr(Me(ve({},a),{body:at(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(Me(ve({},y),{defaultMode:"math"}))}}`}),lt("color","{:value}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Ro(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),lt("textcolor","{:value}{content:auto*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimColor:(E=Ro(y[0]))!=null?E:void 0,color:b.toColor((ee=y[0])!=null?ee:{string:"red"})}}}),lt("boxed","{content:math}",{createAtom:a=>new is(Me(ve({},a),{body:at(a.args[0]),framecolor:{string:"black"}}))}),lt("colorbox","{:value}{:text*}",{applyStyle:(a,y,b)=>{var E,ee;return{verbatimBackgroundColor:(E=Ro(y[0]))!=null?E:void 0,backgroundColor:b.toBackgroundColor((ee=y[0])!=null?ee:{string:"yellow"})}}}),lt("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:a=>{var y,b;return new is(Me(ve({},a),{body:at(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(ve({},y),{defaultMode:"text"})):ho(a.command,(b=Ro(a.framecolor))!=null?b:"",(E=Ro(a.backgroundcolor))!=null?E:"",a.bodyToLatex(Me(ve({},y),{defaultMode:"text"})))}}),lt("bbox","[:bbox]{body:auto}",{createAtom:a=>{var y;const b=a.args[0],E=at(a.args[1]);return b?new is(Me(ve({},a),{body:E,padding:b.padding,border:b.border,backgroundcolor:(y=b.backgroundcolor)!=null?y:void 0})):new is(Me(ve({},a),{body:E}))},serialize:(a,y)=>{var b,E;if(y.skipStyles)return a.bodyToLatex(y);let ee=a.command;if(Number.isFinite(a.padding)||a.border!==void 0||a.backgroundcolor!==void 0){const re=[];a.padding&&re.push((b=Ro(a.padding))!=null?b:""),a.border&&re.push(`border: ${a.border}`),a.backgroundcolor&&re.push((E=Ro(a.backgroundcolor))!=null?E:""),ee+=`[${re.join(",")}]`}return ho(ee,a.bodyToLatex(y))}}),lt(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:a=>new sr(Me(ve({},a),{body:at(a.args[0])})),render:(a,y)=>{const b=new Wa({parent:y,mathstyle:a.command.slice(1)},a.style),E=sr.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):`{${Ba([a.command,a.bodyToLatex(y)])}}`}),lt(["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]})}),lt("fontseries","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontSeries:(b=y[0])!=null?b:"auto"}}}),lt("fontshape","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontShape:(b=y[0])!=null?b:"auto"}}}),lt("fontfamily","{:string}",{ifMode:"text",applyStyle:(a,y)=>{var b;return{fontFamily:(b=y[0])!=null?b:"roman"}}}),lt("selectfont","",{ifMode:"text",applyStyle:()=>({})}),lt("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),lt(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:a=>new sr(Me(ve({},a),{body:at(a.args[0])})),serialize:(a,y)=>`${a.command}{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__boldsymbol"})}),lt("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),lt("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),lt("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),lt("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),lt("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),lt("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),lt("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),lt("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),lt("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),lt("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),lt("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),lt("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),lt("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),lt("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),lt("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),lt("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),lt("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),lt("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),lt("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),lt("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),lt("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),lt("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),lt("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),lt("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),lt("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),lt("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),lt("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),lt(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),lt(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),lt("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),lt("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),lt("mbox","{:text}",{ifMode:"math",createAtom:a=>new sr(Me(ve({},a),{type:"mord",body:at(a.args[0]),mode:"math"})),serialize:(a,y)=>ho("\\mbox",a.bodyToLatex(Me(ve({},y),{defaultMode:"text"})))}),lt("text","{:text}",{ifMode:"math",applyMode:"text"}),lt(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:a=>new sr(Me(ve({},a),{body:at(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:""})}}),lt(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:a=>new sr(Me(ve({},a),{body:at(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}}),lt("htmlData","{data:string}{content:auto}",{createAtom:a=>new sr(Me(ve({},a),{body:at(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}}),lt(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:a=>new sr(Me(ve({},a),{body:at(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}}),lt("em","{:rest}",{createAtom:a=>new sr(Me(ve({},a),{body:at(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"})}),lt("emph","{:auto}",{createAtom:a=>new sr(Me(ve({},a),{body:at(a.args[1])})),serialize:(a,y)=>y.skipStyles?a.bodyToLatex(y):`\\emph{${a.bodyToLatex(y)}}`,render:(a,y)=>a.createBox(y,{classes:"ML__emph",boxType:"lift"})});var sp={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};lt(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:a=>{var y;return new i0(Me(ve({},a),{delim:(y=a.args[0])!=null?y:".",size:sp[a.command].size,delimType:sp[a.command].mclass}))}}),lt(["hspace","hspace*"],"{width:value}",{createAtom:a=>{var y;return new Zd(Me(ve({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),lt(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:a=>{var y;return new Zd(Me(ve({},a),{width:(y=a.args[0])!=null?y:{dimension:0}}))}}),lt("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:a=>new sr(a),render:(a,y)=>{let b=0;const E=y.mathstyle.id;(E===Wc||E===Fl)&&(b=1),(E===zl||E===Cs)&&(b=2),(E===Gs||E===us)&&(b=3);const ee=at(a.args[b]);return sr.createBox(y,ee)},serialize:(a,y)=>`\\mathchoice{${sr.serialize(a.args[0],y)}}{${sr.serialize(a.args[1],y)}}{${sr.serialize(a.args[2],y)}}{${sr.serialize(a.args[3],y)}}`}),lt("mathop","{:auto}",{createAtom:a=>new sr(Me(ve({},a),{type:"mop",body:at(a.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(a,y)=>{var b;let E=sr.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 Vr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[ho(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)),Ba(b)}}),lt(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:a=>new sr(Me(ve({},a),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[a.command],body:at(a.args[0])}))}),lt(["operatorname","operatorname*"],"{operator:math}",{createAtom:a=>{const y=at(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 sr(Me(ve({},a),{type:"mop",body:y,isFunction:!0,limits:a.command==="\\operatorname"?"adjacent":"over-under"}))},render:(a,y)=>{var b;let E=sr.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 Vr(a.bind(y,E),{type:"op",isSelected:a.isSelected,classes:"op-group"})},serialize:(a,y)=>{const b=[ho(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)),Ba(b)}}),lt(["char","unicode"],"{charcode:value}",{createAtom:a=>new sr(Me(ve({},a),{type:a.mode==="text"?"text":"mord"})),serialize:a=>{var y;return`${a.command}${Ro((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)}}),lt("rule","[raise:value]{width:value}{thickness:value}",{createAtom:a=>new sr(a),render:(a,y)=>{var b,E,ee;const re=new Wa({parent:y,mathstyle:"textstyle"},a.style),le=re.toEm((b=a.args[0])!=null?b:{dimension:0}),me=re.toEm((E=a.args[1])!=null?E:{dimension:10}),ge=re.toEm((ee=a.args[2])!=null?ee:{dimension:10}),Se=new Vr(null,{classes:"rule",type:"ord"});return Se.width=me,Se.height=ge+le,Se.depth=-le,Se.setStyle("border-right-width",me,"em"),Se.setStyle("border-top-width",ge,"em"),Se.setStyle("border-color",a.style.color),Se.setStyle("vertical-align",le,"em"),a.isSelected&&Se.setStyle("opacity","50%"),a.bind(re,Se),a.caret&&(Se.caret=a.caret),Se.wrap(y)},serialize:a=>`\\rule${a.args[0]?`[${Ro(a.args[0])}]`:""}{${Ro(a.args[1])}}{${Ro(a.args[2])}}`}),lt(["overline","underline"],"{:auto}",{createAtom:a=>new sr(Me(ve({},a),{body:at(a.args[0])})),render:(a,y)=>{const b=a.command.substring(1),E=new Wa({parent:y,mathstyle:"cramp"},a.style),ee=sr.createBox(E,a.body);if(!ee)return null;const re=E.metrics.defaultRuleThickness/E.scalingFactor,le=new Vr(null,{classes:b+"-line"});le.height=re,le.maxFontSize=re*1.125*E.scalingFactor;let me;return b==="overline"?me=new oo({shift:0,children:[{box:ee},3*re,{box:le},re]}):me=new oo({top:ee.height,children:[re,{box:le},3*re,{box:ee}]}),a.caret&&(me.caret=a.caret),new Vr(me,{classes:b,type:"ignore"})}}),lt("overset","{:auto}{base:auto}",{createAtom:a=>{const y=at(a.args[1]);return new ql(Me(ve({},a),{above:at(a.args[0]),body:y,skipBoundary:!1,boxType:xc(y)}))},serialize:(a,y)=>ho(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),lt("underset","{:auto}{base:auto}",{createAtom:a=>{const y=at(a.args[1]);return new ql(Me(ve({},a),{below:at(a.args[0]),body:y,skipBoundary:!1,boxType:xc(y)}))},serialize:(a,y)=>ho(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),lt("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:a=>{const y=at(a.args[2]);return new ql(Me(ve({},a),{above:at(a.args[0]),below:at(a.args[1]),body:y,skipBoundary:!1,boxType:xc(y)}))},serialize:(a,y)=>ho(a.command,a.belowToLatex(y),a.bodyToLatex(y))}),lt(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:a=>new ql(Me(ve({},a),{body:at(a.args[2]),above:at(a.args[1]),below:at(a.args[0]),skipBoundary:!1,boxType:a.command==="\\stackrel"?"rel":"bin"})),serialize:(a,y)=>ho(a.command,a.aboveToLatex(y),a.bodyToLatex(y))}),lt("smash","[:string]{:auto}",{createAtom:a=>{var y,b,E,ee;return new Wd(Me(ve({},a),{body:at(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}))}}),lt(["vphantom"],"{:auto}",{createAtom:a=>new Wd(Me(ve({},a),{body:at(a.args[0]),isInvisible:!0,smashWidth:!0}))}),lt(["hphantom"],"{:auto}",{createAtom:a=>new Wd(Me(ve({},a),{body:at(a.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),lt(["phantom"],"{:auto}",{createAtom:a=>new Wd(Me(ve({},a),{body:at(a.args[0]),isInvisible:!0}))}),lt("not","{:math}",{createAtom:a=>{const y=at(a.args[0]);return y.length===0?new sr(Me(ve({},a),{type:"mrel",value:"\uE020"})):new sr(Me(ve({},a),{body:[new Tu(Me(ve({},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{${sr.serialize(b.group,y)}}`:`\\not${sr.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":xc(at(a.args[0])),ee=sr.createBox(y,a.body,{type:E});return a.caret&&(ee.caret=a.caret),a.bind(y,ee)}}),lt(["ne","neq"],"",{createAtom:a=>new sr(Me(ve({},a),{type:"mrel",body:[new Tu(Me(ve({},a),{body:"\uE020",align:"right",boxType:"rel"})),new sr(Me(ve({},a),{value:"="}))],captureSelection:!0})),serialize:a=>a.command}),lt("rlap","{:auto}",{createAtom:a=>new Tu(Me(ve({},a),{body:at(a.args[0]),align:"right"}))}),lt("llap","{:auto}",{createAtom:a=>new Tu(Me(ve({},a),{body:at(a.args[0]),align:"left"}))}),lt("mathrlap","{:math}",{createAtom:a=>new Tu(Me(ve({},a),{body:at(a.args[0]),align:"left"}))}),lt("mathllap","{:math}",{createAtom:a=>new Tu(Me(ve({},a),{body:at(a.args[0]),align:"left"}))}),lt("raisebox","{:value}{:text}",{createAtom:a=>{var y;return new is(Me(ve({},a),{body:at(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return ho("\\raisebox",(b=Ro(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),lt("raise","{:value}{:auto}",{createAtom:a=>{var y;return new is(Me(ve({},a),{body:at(a.args[1]),padding:{dimension:0},offset:(y=a.args[0])!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b;return ho("\\raise",(b=Ro(a.offset))!=null?b:"0pt",a.bodyToLatex(y))}}),lt("lower","{:value}{:auto}",{createAtom:a=>{var y;return new is(Me(ve({},a),{body:at(a.args[1]),padding:{dimension:0},offset:(y=ol(a.args[0],-1))!=null?y:{dimension:0}}))},serialize:(a,y)=>{var b,E;return ho("\\lower",(E=Ro(ol((b=a.offset)!=null?b:{dimension:0},-1)))!=null?E:"0pt",a.bodyToLatex(y))}}),ke("0123456789/@.?!"),gt(65,90),gt(97,122),ke([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),ke([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),ke([["\\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]]),ke([["\\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"),ke([["\\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"]]),ke([["\\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"]]),ke([["\\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"),ke([["+",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"),ke([["\\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"),ke([["\\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]]),ke([["=",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"),ke([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),ke([["\\wp",8472],["\\aleph",8501]]),ke([["\\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"),ke([["\\ ",160],["~",160]],"space"),lt(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:a=>new Zd(a)}),lt("space","",{createAtom:a=>new Zd(a)}),ke([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),ke([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),ke([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var lp="<mo>⁡</mo>",$f="<mo>⁢</mo>";function eh(a){return a.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function wo(a,y){return!a||!y.generateID?"":` extid="${a}"`}function Ev(a,y,b){var E,ee,re,le,me,ge,Se,Pe,st,kt,Vt;let sn=!1;y=y!=null?y:a.atoms.length;let Yn="",Yr="",Zn=a.atoms[a.index];const hr=(ee=(E=Zn.style)==null?void 0:E.variant)!=null?ee:"",ni=(le=(re=Zn.style)==null?void 0:re.variantStyle)!=null?le:"";let Sr="";if(hr||ni){const Ui=Pt(Zn.value,(me=Zn.style)==null?void 0:me.variant,(ge=Zn.style)==null?void 0:ge.variantStyle);if(Ui!==Zn.value)return a.index+=1,Yn=`<mi${wo(Zn.id,b)}>${Ui}</mi>`,Uc(Yn,a,b)||(a.mathML+=Yn,a.lastType="mi"),!0;Sr=(Se={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"}[ni+hr])!=null?Se:"",Sr=` mathvariant="${Sr}"`}const Ti={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(Zn.command==="!")return a.index+=1,Yn="<mo>!</mo>",Uc(Yn,a,b)||(a.mathML+=Yn,a.lastType="mo"),!0;if(Ti[Zn.command]){a.index+=1;let Ui=`<mi${wo(Zn.id,b)}${Sr}>${Ti[Zn.command]}</mi>`;return(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mtext"||a.lastType==="fence")&&(Ui=$f+Ui),Uc(Ui,a,b)||(a.mathML+=Ui,a.lastType="mi"),!0}if(Zn.command==="\\operatorname")Yr=xd(Zn.body),a.index+=1;else if(hr||ni)for(;a.index<y&&(Zn.type==="mord"||Zn.type==="macro")&&!Zn.isDigit()&&hr===((st=(Pe=Zn.style)==null?void 0:Pe.variant)!=null?st:"")&&ni===((Vt=(kt=Zn.style)==null?void 0:kt.variantStyle)!=null?Vt:"");)Yr+=xd([Zn]),a.index+=1,Zn=a.atoms[a.index];else(Zn.type==="mord"||Zn.type==="macro")&&!Zn.isDigit()&&(Yr+=xd([Zn]),a.index+=1);if(Yr.length>0){sn=!0,Yn=`<mi${Sr}>${Yr}</mi>`;const Ui=a.lastType;Yn.endsWith(">f</mi>")||Yn.endsWith(">g</mi>")?(Yn+=lp,a.lastType="applyfunction"):a.lastType=/^<mo>(.*)<\/mo>$/.test(Yn)?"mo":"mi",Uc(Yn,a,b)||((Ui==="mi"||Ui==="mn"||Ui==="mtext"||Ui==="fence")&&(Yn=$f+Yn),a.mathML+=Yn)}return sn}function Mv(a){return a.index<a.atoms.length&&a.atoms[a.index].superscript&&a.atoms[a.index].type==="subsup"}function kv(a){let y=-1,b=a.index,E=!1,ee=!1;for(;b<a.atoms.length&&!E&&!ee;){const re=a.atoms[b];E=!re.isDigit(),ee=!E&&re.superscript!==void 0,b++}return ee&&(y=b-1),y}function Uc(a,y,b){var E;let ee=y.atoms[y.index-1];if(!ee)return!1;if(!ee.superscript&&!ee.subscript)if(((E=y.atoms[y.index])==null?void 0:E.type)==="subsup")ee=y.atoms[y.index],y.index+=1;else return!1;const re=y.lastType;y.lastType="";const le=ro(ee.superscript,b);y.lastType="";const me=ro(ee.subscript,b);if(y.lastType=re,!le&&!me)return!1;let ge="";return le&&me?ge=`<msubsup>${a}${me}${le}</msubsup>`:le?ge=`<msup>${a}${le}</msup>`:me&&(ge=`<msub>${a}${me}</msub>`),y.mathML+=ge,y.lastType="",!0}function Av(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 ${wo(a.atoms[E].id,b)}>${ee}</mtext>`,a.lastType="mtext",!0):!1}function Bv(a,y,b){y=y!=null?y:a.atoms.length;const E=a.index;let ee="",re=kv(a);for(re>=0&&re<y&&(y=re);a.index<y&&a.atoms[a.index].isDigit();)ee+=a.atoms[a.index].asDigit(),a.index+=1;return ee.length<=0?!1:(ee="<mn"+wo(a.atoms[E].id,b)+">"+ee+"</mn>",re<0&&Mv(a)&&(re=a.index,a.index+=1),Uc(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="",re="";if(a.index<y&&a.atoms[a.index].type==="mopen"){let le=!1,me=0;const ge=a.index;let Se=-1,Pe=ge+1;for(;Pe<y&&!le;)a.atoms[Pe].type==="mopen"?me+=1:a.atoms[Pe].type==="mclose"&&(me-=1),me===-1&&(le=!0,Se=Pe),Pe+=1;le&&(ee="<mrow>",ee+=ju(a.atoms[ge],b),ee+=ro(a.atoms,b,ge+1,Se),ee+=ju(a.atoms[Se],b),ee+="</mrow>",a.index=Se+1,(a.lastType==="mi"||a.lastType==="mn"||a.lastType==="mfrac"||a.lastType==="fence")&&(a.mathML+=$f),Uc(ee,a,b)&&(E=!0,a.lastType="",ee=""),re="fence")}return ee.length>0&&(E=!0,a.mathML+=ee,a.lastType=re),E}function Lv(a,y,b){let E=!1;y=y!=null?y:a.atoms.length;let ee="",re="";const le=a.atoms[a.index];if(!le)return!1;const me={"\\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(me[le.command]){a.index+=1;const ge=`<mo${wo(le.id,b)}>${me[le.command]}</mo>`;return Uc(ge,a,b)||(a.mathML+=ge,a.lastType="mo"),!0}if(a.index<y&&(le.type==="mbin"||le.type==="mrel"))ee+=Zh(a.atoms[a.index],b),a.index+=1,re="mo";else if(a.index<y&&(le.type==="mop"||le.type==="operator"||le.type==="extensible-symbol")){if(le.subsupPlacement==="over-under"&&(le.superscript||le.subscript)){const ge=ju(le,b);return le.superscript&&le.subscript?(ee+="<munderover>"+ge,ee+=ro(le.subscript,b),ee+=ro(le.superscript,b),ee+="</munderover>"):le.superscript?(ee+="<mover>"+ge,ee+=ro(le.superscript,b),ee+="</mover>"):le.subscript&&(ee+="<munder>"+ge,ee+=ro(le.subscript,b),ee+="</munder>"),a.mathML+=ee,a.lastType="mo",a.index+=1,!0}{const ge=a.atoms[a.index],Se=ge.value==="\\operatorname",Pe=Se?'<mi class="MathML-Unit"'+wo(ge.id,b)+">"+xd(ge.value)+"</mi>":ju(ge,b);ee+=Pe,!Se&&!/^<mo>(.*)<\/mo>$/.test(Pe)?(ee+=lp,re="applyfunction"):re=Se?"mi":"mo"}(a.lastType==="mi"||a.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(ee)&&(ee=$f+ee),a.index+=1}return ee.length>0&&(E=!0,Uc(ee,a,b)||(a.mathML+=ee,a.lastType=re)),E}function ro(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 sr)ee.mathML=Zh(a,y);else if(Array.isArray(a)){ee.atoms=a;let re=0;for(E=E||(a?a.length:0);ee.index<E;)if(Av(ee,E,y)||Bv(ee,E,y)||Ev(ee,E,y)||Lv(ee,E,y)||Dv(ee,E,y))re+=1;else if(ee.index<E){let le=Zh(ee.atoms[ee.index],y);ee.lastType==="mn"&&le.length>0&&ee.atoms[ee.index].type==="genfrac"&&(le="<mo>⁤</mo>"+le),ee.atoms[ee.index].type==="genfrac"?ee.lastType="mfrac":ee.lastType="",ee.index+=1,Uc(le,ee,y)?re+=1:le.length>0&&(ee.mathML+=le,re+=1)}re>1&&(ee.mathML="<mrow>"+ee.mathML+"</mrow>")}return ee.mathML}function ju(a,y){let b="";const E=xd(a.value);return E&&(b="<mo"+wo(a.id,y)+">"+E+"</mo>"),b}function xd(a){if(!a)return"";if(typeof a=="string")return eh(a);if(!Array.isArray(a)&&typeof a.body=="string")return eh(a.body);let y="";for(const b of a)typeof b.value=="string"&&(y+=b.value);return eh(y)}function Zh(a,y){var b,E,ee,re,le,me,ge,Se,Pe,st,kt,Vt,sn,Yn,Yr,Zn,hr,ni,Sr,Ti,Ui,Hi;if(a.mode==="text")return`<mi${wo(a.id,y)}>${a.value}</mi>`;const ja={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"},mo={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let si="",Zl="",Tc,ec,Ps,jl,gl,So;const{command:os}=a;if(a.command==="\\error")return`<merror${wo(a.id,y)}>${ro(a.body,y)}</merror>`;const Ts={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Oc={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(a.type){case"first":break;case"group":case"root":si=ro(a.body,y);break;case"array":if((a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(si+="<mrow>",a.leftDelim&&a.leftDelim!=="."&&(si+="<mo>"+(Ts[a.leftDelim]||a.leftDelim)+"</mo>")),si+="<mtable",a.colFormat){for(si+=' columnalign="',Ps=0;Ps<a.colFormat.length;Ps++)a.colFormat[Ps].align&&(si+={l:"left",c:"center",r:"right"}[a.colFormat[Ps].align]+" ");si+='"'}for(si+=">",ec=0;ec<a.array.length;ec++){for(si+="<mtr>",Tc=0;Tc<a.array[ec].length;Tc++)si+="<mtd>"+ro(a.array[ec][Tc],y)+"</mtd>";si+="</mtr>"}si+="</mtable>",(a.leftDelim&&a.leftDelim!=="."||a.rightDelim&&a.rightDelim!==".")&&(a.rightDelim&&a.rightDelim!=="."&&(si+="<mo>"+(Ts[a.leftDelim]||a.rightDelim)+"</mo>"),si+="</mrow>");break;case"genfrac":(a.leftDelim||a.rightDelim)&&(si+="<mrow>"),a.leftDelim&&a.leftDelim!=="."&&(si+="<mo"+wo(a.id,y)+">"+(Ts[a.leftDelim]||a.leftDelim)+"</mo>"),a.hasBarLine?(si+="<mfrac>",si+=ro(a.above,y)||"<mi> </mi>",si+=ro(a.below,y)||"<mi> </mi>",si+="</mfrac>"):(si+="<mtable"+wo(a.id,y)+">",si+="<mtr>"+ro(a.above,y)+"</mtr>",si+="<mtr>"+ro(a.below,y)+"</mtr>",si+="</mtable>"),a.rightDelim&&a.rightDelim!=="."&&(si+="<mo"+wo(a.id,y)+">"+(Ts[a.rightDelim]||a.rightDelim)+"</mo>"),(a.leftDelim||a.rightDelim)&&(si+="</mrow>");break;case"surd":a.hasEmptyBranch("above")?(si+="<msqrt"+wo(a.id,y)+">",si+=ro(a.body,y),si+="</msqrt>"):(si+="<mroot"+wo(a.id,y)+">",si+=ro(a.body,y),si+=ro(a.above,y),si+="</mroot>");break;case"leftright":const Nc=a,Rc=Nc.leftDelim;si="<mrow>",Rc&&Rc!=="."&&(si+=`<mo${wo(a.id,y)}>${(b=Ts[Rc])!=null?b:Rc}</mo>`),a.body&&(si+=ro(a.body,y));const Fc=Nc.matchingRightDelim();Fc&&Fc!=="."&&(si+=`<mo${wo(a.id,y)}>${(E=Ts[Fc])!=null?E:Fc}</mo>`),si+="</mrow>";break;case"sizeddelim":case"delim":si+=`<mo${wo(a.id,y)}>${Ts[a.value]||a.value}</mo>`;break;case"accent":si+='<mover accent="true"'+wo(a.id,y)+">",si+=ro(a.body,y),si+="<mo>"+(Oc[os]||a.accent)+"</mo>",si+="</mover>";break;case"line":case"overlap":break;case"overunder":gl=a.above,jl=a.below,(a.svgAbove||gl)&&(a.svgBelow||jl)?So=a.body:gl&&gl.length>0?(So=a.body,(re=(ee=a.body)==null?void 0:ee[0])!=null&&re.below?(jl=a.body[0].below,So=a.body[0].body):((me=(le=a.body)==null?void 0:le[0])==null?void 0:me.type)==="first"&&((Se=(ge=a.body)==null?void 0:ge[1])!=null&&Se.below)&&(jl=a.body[1].below,So=a.body[1].body)):jl&&jl.length>0&&(So=a.body,(st=(Pe=a.body)==null?void 0:Pe[0])!=null&&st.above?(gl=a.body[0].above,So=a.body[0].body):((Vt=(kt=a.body)==null?void 0:kt[0])==null?void 0:Vt.type)==="first"&&((Yn=(sn=a.body)==null?void 0:sn[1])!=null&&Yn.above)&&(gl=a.body[1].overscript,So=a.body[1].body)),(a.svgAbove||gl)&&(a.svgBelow||jl)?(si+=`<munderover ${wo(a.id,y)}>`,si+=(Yr=ja[a.svgBody])!=null?Yr:ro(So,y),si+=(Zn=ja[a.svgBelow])!=null?Zn:ro(jl,y),si+=(hr=ja[a.svgAbove])!=null?hr:ro(gl,y),si+="</munderover>"):a.svgAbove||gl?(si+=`<mover ${wo(a.id,y)}>`+((ni=ja[a.svgBody])!=null?ni:ro(So,y)),si+=(Sr=ja[a.svgAbove])!=null?Sr:ro(gl,y),si+="</mover>"):(a.svgBelow||jl)&&(si+=`<munder ${wo(a.id,y)}>`+((Ti=ja[a.svgBody])!=null?Ti:ro(So,y)),si+=(Ui=ja[a.svgBelow])!=null?Ui:ro(jl,y),si+="</munder>");break;case"placeholder":si+="?";break;case"mord":{si=typeof a.value=="string"?a.value:os,os==="\\char"?si="&#x"+("000000"+a.args[0].number.toString(16)).slice(-4)+";":si.length>0&&si.startsWith("\\")&&(typeof a.value=="string"&&a.value.charCodeAt(0)>255?si="&#x"+("000000"+a.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof a.value=="string"?si=a.value.charAt(0):(console.error("Did not expect this"),si=""));const mc=/\d/.test(si)?"mn":"mi";si=`<${mc}${wo(a.id,y)}>${eh(si)}</${mc}>`;break}case"mbin":case"mrel":case"minner":si=ju(a,y);break;case"mpunct":si='<mo separator="true"'+wo(a.id,y)+">"+os+"</mo>";break;case"mop":case"operator":case"extensible-symbol":a.body!=="\u200B"&&(si="<mo"+wo(a.id,y)+">",si+=os==="\\operatorname"?a.body:os||a.body,si+="</mo>");break;case"box":si='<menclose notation="box"',a.backgroundcolor&&(si+=' mathbackground="'+a.backgroundcolor+'"'),si+=wo(a.id,y)+">"+ro(a.body,y)+"</menclose>";break;case"spacing":si+='<mspace width="'+((Hi=mo[os])!=null?Hi:0)+'em"/>';break;case"enclose":si='<menclose notation="';for(const mc in a.notation)Object.prototype.hasOwnProperty.call(a.notation,mc)&&a.notation[mc]&&(si+=Zl+mc,Zl=" ");si+=wo(a.id,y)+'">'+ro(a.body,y)+"</menclose>";break;case"prompt":si='<menclose notation="roundexbox""">'+ro(a.body,y)+"</menclose>";break;case"space":si+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":si+=ju(a,y);break;case"mclose":si+=ju(a,y);break;case"macro":{const mc=a.command+xd(a.macroArgs);mc&&(si+=`<mo ${wo(a.id,y)}>${mc}</mo>`)}break;case"latexgroup":si+=ro(a.body,y);break;case"latex":si+="<mtext"+wo(a.id,y)+">"+a.value+"</mtext>";break;case"tooltip":si+=ro(a.body,y);break;case"text":si+=`<mtext ${wo(a.id,y)}x>${a.value}</mtext>`;break;default:if(a.command==="\\displaystyle")return`<mrow ${wo(a.id,y)} displaystyle="true">${ro(a.body,y)}</mrow>`;if(a.command==="\\textstyle")return`<mrow ${wo(a.id,y)} displaystyle="false">${ro(a.body,y)}</mrow>`;console.info("Unexpected element in conversion to MathML:",a)}return si}var wd={"\\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 af(a){let y=0;if(Fe(a))for(const b of a)b.type!=="first"&&(y+=1);return y===1}function Pv(a){if(Fe(a)){for(const y of a)if(y.type!=="first"&&y.id)return y.id.toString()}return""}function cp(a){let y="";if(Fe(a))for(const b of a)b.type!=="first"&&typeof b.value=="string"&&(y+=b.value);return y}function Tv(a){return a?a.map(y=>y.value).join(""):""}function Ka(a,y){var b,E,ee,re,le;function me(Pe){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(Pe)?` <say-as interpret-as="character">${Pe}</say-as>`:/[A-Z]/.test(Pe)?`capital <say-as interpret-as="character">${Pe.toLowerCase()}</say-as>`:Pe:/[a-z]/.test(Pe)?" '"+Pe.toUpperCase()+"'":/[A-Z]/.test(Pe)?" 'capital "+Pe.toUpperCase()+"'":Pe}function ge(Pe){return"<emphasis>"+Pe+"</emphasis>"}if(!y)return"";let Se="";if(Fe(y)){let Pe=!1,st=!1;for(let kt=0;kt<y.length;kt++)y[kt].type!=="first"&&(y[kt].mode!=="text"&&(st=!1),kt<y.length-2&&y[kt].type==="mopen"&&y[kt+2].type==="mclose"&&y[kt+1].type==="mord"?(Se+=" of ",Se+=ge(Ka(a,y[kt+1])),kt+=2):y[kt].mode==="text"?st?Se+=(b=y[kt].value)!=null?b:" ":(st=!0,Se+=Ka("text",y[kt])):y[kt].isDigit()?Pe?Se+=y[kt].asDigit():(Pe=!0,Se+=Ka(a,y[kt])):(Pe=!1,Se+=Ka(a,y[kt])))}else if(y.mode==="text")y.id&&a==="math"&&(Se+='<mark name="'+y.id.toString()+'"/>'),Se+=y.value;else{y.id&&a==="math"&&(Se+='<mark name="'+y.id.toString()+'"/>');let Pe="",st="",kt="",Vt=!1;const{command:sn}=y;switch(sn){case"\\vec":return"vector "+Ka(a,y.body);case"\\acute":return Ka(a,y.body)+" acute";case"\\grave":return Ka(a,y.body)+" grave";case"\\dot":return"dot over"+Ka(a,y.body);case"\\ddot":return"double dot over"+Ka(a,y.body);case"\\mathring":return"ring over"+Ka(a,y.body);case"\\tilde":case"\\widetilde":return"tilde over"+Ka(a,y.body);case"\\bar":return Ka(a,y.body)+" bar";case"\\breve":return Ka(a,y.body)+" breve";case"\\check":case"\\widecheck":return"check over "+Ka(a,y.body);case"\\hat":case"\\widehat":return"hat over"+Ka(a,y.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+Ka(a,y.body);case"\\underarc":case"\\underparen":return"arc under "+Ka(a,y.body)}switch(y.type){case"prompt":const Yn=y.body.length>1?'start input . <break time="500ms"/> '+Ka(a,y.body)+'. <break time="500ms"/> end input':"blank";Se+=' <break time="300ms"/> '+Yn+'. <break time="700ms"/>'+((E=y.correctness)!=null?E:"")+' . <break time="700ms"/> ';break;case"array":const Yr=y.array,Zn=y.environmentName;if(Object.keys(jh).includes(Zn)){Se+=` begin ${jh[Zn]} `;for(let Sr=0;Sr<Yr.length;Sr++){Sr>0&&(Se+=","),Se+=` row ${Sr+1} `;for(let Ti=0;Ti<Yr[Sr].length;Ti++)Ti>0&&(Se+=","),Se+=` column ${Ti+1}: `,Se+=Ka("math",Yr[Sr][Ti])}Se+=` end ${jh[Zn]} `}break;case"group":sn==="\\ne"?Se+=" not equal ":(sn==="\\not"&&(Se+=" not "),Se+=Ka("math",y.body));break;case"root":Se+=Ka("math",y.body);break;case"genfrac":if(Pe=Ka("math",y.above),st=Ka("math",y.below),af(y.above)&&af(y.below)){const Ti={"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 "}[cp(y.above)+"/"+cp(y.below)];Ti?Se=Ti:Se+=Pe+" over "+st}else Se+=' the fraction <break time="150ms"/>'+Pe+' over <break time="150ms"/>'+st+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(kt=Ka("math",y.body),y.hasEmptyBranch("above"))Se+=af(y.body)?" the square root of "+kt+" , ":' the square root of <break time="200ms"/>'+kt+'. <break time="200ms"/> End square root';else{let Sr=Ka("math",y.above);Sr=Sr.trim();const Ti=Sr.replace(/<mark([^/]*)\/>/g,"");Ti==="3"?Se+=' the cube root of <break time="200ms"/>'+kt+'. <break time="200ms"/> End cube root':Ti==="n"?Se+=' the nth root of <break time="200ms"/>'+kt+'. <break time="200ms"/> End root':Se+=' the root with index: <break time="200ms"/>'+Sr+', of <break time="200ms"/>'+kt+'. <break time="200ms"/> End root'}break;case"leftright":{const Sr=y;Se+=(ee=Sr.leftDelim?wd[Sr.leftDelim]:void 0)!=null?ee:Sr.leftDelim,Se+=Ka("math",y.body),Se+=(re=Sr.rightDelim?wd[Sr.rightDelim]:void 0)!=null?re:Sr.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const hr=sn.replace(/^\\/g,""),ni=fn()[hr];ni&&(ni!=null&&ni.expand?Se+=Ka("math",y.body):Se+=`${hr} `);break;case"placeholder":Se+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(sn==="\\mathbin"||sn==="\\mathrel"||sn==="\\mathopen"||sn==="\\mathclose"||sn==="\\mathpunct"||sn==="\\mathord"||sn==="\\mathinner"){Se=Ka(a,y.body);break}let Sr=y.isDigit()?y.asDigit():y.value,Ti=y.command;if((y.type==="delim"||y.type==="sizeddelim")&&(Ti=y.value,Sr=Ti),a==="text")Se+=Sr;else{if(y.type==="mbin"&&(Se+='<break time="150ms"/>'),Sr){const Ui=wd[Sr]||(Ti?wd[Ti.trim()]:"");if(Ui)Se+=" "+Ui;else{const Hi=Ti?Iv(Ti.trim()):"";Se+=Hi||me(Sr)}}else Se+=Ka("math",y.body);y.type==="mbin"&&(Se+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(y.value!=="\u200B"){const Sr=y.command;if(Sr==="\\sum")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Ti=Ka("math",y.superscript);Ti=Ti.trim();let Ui=Ka("math",y.subscript);Ui=Ui.trim(),Se+=' the summation from <break time="200ms"/>'+Ui+'<break time="200ms"/> to <break time="200ms"/>'+Ti+'<break time="200ms"/> of <break time="150ms"/>',Vt=!0}else if(y.hasEmptyBranch("subscript"))Se+=" the summation of";else{let Ti=Ka("math",y.subscript);Ti=Ti.trim(),Se+=' the summation from <break time="200ms"/>'+Ti+'<break time="200ms"/> of <break time="150ms"/>',Vt=!0}else if(Sr==="\\prod")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Ti=Ka("math",y.superscript);Ti=Ti.trim();let Ui=Ka("math",y.subscript);Ui=Ui.trim(),Se+=' the product from <break time="200ms"/>'+Ui+'<break time="200ms"/> to <break time="200ms"/>'+Ti+'<break time="200ms"/> of <break time="150ms"/>',Vt=!0}else if(y.hasEmptyBranch("subscript"))Se+=" the product of ";else{let Ti=Ka("math",y.subscript);Ti=Ti.trim(),Se+=' the product from <break time="200ms"/>'+Ti+'<break time="200ms"/> of <break time="150ms"/>',Vt=!0}else if(Sr==="\\int")if(!y.hasEmptyBranch("superscript")&&!y.hasEmptyBranch("subscript")){let Ti=Ka("math",y.superscript);Ti=Ti.trim();let Ui=Ka("math",y.subscript);Ui=Ui.trim(),Se+=' the integral from <break time="200ms"/>'+ge(Ui)+'<break time="200ms"/> to <break time="200ms"/>'+ge(Ti)+' <break time="200ms"/> of ',Vt=!0}else Se+=' the integral of <break time="200ms"/> ';else if(typeof y.value=="string"){const Ti=(le=wd[y.value])!=null?le:y.command?wd[y.command]:void 0;Se+=Ti||" "+y.value}else y.command&&(y.command==="\\mathop"?Se+=Ka("math",y.body):y.command==="\\operatorname"?Se+=Tv(y.body):Se+=y.command.startsWith("\\")?" "+y.command.slice(1):" "+y.command)}break;case"enclose":kt=Ka("math",y.body),Se+=" crossed out "+kt+". End crossed out.";break;case"space":case"spacing":break}if(!Vt&&!y.hasEmptyBranch("superscript")){let Yn=Ka(a,y.superscript);Yn=Yn.trim();const Yr=Yn.replace(/<[^>]*>/g,"");if(af(y.superscript)){if(a==="math"){const Zn=Pv(y.superscript);Zn&&(Se+='<mark name="'+Zn+'"/>')}Yr==="\u2032"?Se+=" prime ":Yr==="2"?Se+=" squared ":Yr==="3"?Se+=" cubed ":Number.isNaN(Number.parseInt(Yr))?Se+=" to the "+Yn+"; ":Se+=' to the <say-as interpret-as="ordinal">'+Yr+"</say-as> power; "}else Number.isNaN(Number.parseInt(Yr))?Se+=" raised to the "+Yn+"; ":Se+=' raised to the <say-as interpret-as="ordinal">'+Yr+"</say-as> power; "}if(!Vt&&!y.hasEmptyBranch("subscript")){let Yn=Ka("math",y.subscript);Yn=Yn.trim(),Se+=af(y.subscript)?" sub "+Yn:" subscript "+Yn+". End subscript. "}}return Se}function Sd(a){var y,b;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const ee=ro(a);if(ee){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(y=window.MathfieldElement.textToSpeechRulesOptions)!=null?y:{},window.MathfieldElement.textToSpeechRulesOptions=Me(ve({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=Me(ve({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=Me(ve({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const re=(b=window.SRE)!=null?b:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&re.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let le="";try{le=re.toSpeech(ee)}catch(me){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",me)}return le}return""}let E=Ka("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"&&ft()==="macos"?E=E.replace(/<mark([^/]*)\/>/g,"").replace(/<emphasis>/g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(/<break time="(\d*)ms"\/>/g,"[[slc $1]]").replace(/<say-as[^>]*>/g,"").replace(/<\/say-as>/g,""):E=E.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return E}var of={"\\ne":"\u2260","\\neq":"\u2260","\u2212":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},sf={"\\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 Ov(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 as(a){var y,b,E,ee,re,le,me,ge,Se,Pe,st,kt,Vt;if(!a)return"";if(Fe(a)){if(a.length===0)return"";if(a[0].mode==="latex")return a.map(as).join("");if(a[0].mode==="text"){let ni=0,Sr="";for(;((y=a[ni])==null?void 0:y.mode)==="text";)Sr+=a[ni].body?as(a[ni].body):a[ni].value,ni++;return`"${Sr}" ${as(a.slice(ni))}`}let Zn=0;const hr=[];for(;a[Zn]&&a[Zn].mode==="math";){let ni="";for(;a[Zn]&&a[Zn].type==="mord"&&/\d/.test(a[Zn].value);)ni+=a[Zn++].value;ni?hr.push(ni):hr.push(as(a[Zn++]))}return hr.push(as(a.slice(Zn))),Ov(hr)}if(a.mode==="text")return`"${a.value}"`;let sn="";const{command:Yn}=a;let Yr;if(Yn==="\\placeholder")return`(${as(a.body)})`;switch(a.type){case"accent":const Zn={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Yn];sn=`${Zn!=null?Zn:""} ${as(a.body)} `;break;case"first":return"";case"latexgroup":return a.body.map(Hi=>Hi.value).join("");case"group":case"root":sn=(b=of[Yn])!=null?b:as(a.body);break;case"genfrac":{const Hi=a;(Hi.leftDelim||Hi.rightDelim)&&(sn=Hi.leftDelim==="."||!Hi.leftDelim?"{:":Hi.leftDelim),Hi.hasBarLine?(sn+="(",sn+=as(Hi.above),sn+=")/(",sn+=as(Hi.below),sn+=")"):(sn+="("+as(Hi.above)+"),",sn+="("+as(Hi.below)+")"),(Hi.leftDelim||Hi.rightDelim)&&(sn+=Hi.rightDelim==="."||!Hi.rightDelim?"{:":Hi.rightDelim)}break;case"surd":sn+=a.hasEmptyBranch("above")?"sqrt("+as(a.body)+")":"root("+as(a.above)+")("+as(a.body)+")";break;case"latex":sn=a.value;break;case"leftright":{const Hi=a,ja=Hi.leftDelim;sn+=ja==="."||!ja?"{:":ja,sn+=as(Hi.body);const mo=Hi.matchingRightDelim();sn+=mo==="."||!mo?":}":mo}break;case"sizeddelim":case"delim":sn=a.value;break;case"overlap":break;case"overunder":break;case"mord":sn=(ee=(E=of[Yn])!=null?E:Yn)!=null?ee:typeof a.value=="string"?a.value:"",sn.startsWith("\\")&&(sn+=" "),Yr=Yn?Yn.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,Yr?sn=String.fromCodePoint(Number.parseInt("0x"+Yr[1])):sn.length>0&&sn.startsWith("\\")&&(sn=typeof a.value=="string"?a.value.charAt(0):a.command),sn=Nv(sn,a.style);break;case"mbin":case"mrel":case"minner":sn=(le=(re=of[Yn])!=null?re:sf[Yn])!=null?le:a.value;break;case"mopen":case"mclose":sn=a.value;break;case"mpunct":sn=(me=sf[Yn])!=null?me:Yn;break;case"mop":case"operator":case"extensible-symbol":a.value!=="\u200B"&&(sf[Yn]?sn=sf[Yn]:sn=Yn==="\\operatorname"?as(a.body):(ge=a.value)!=null?ge:Yn,sn+=" ");break;case"array":const hr=a.array,ni=a.environmentName,Sr=(Se={bmatrix:["[","]"],"bmatrix*":["[","]"]}[ni])!=null?Se:["(",")"],Ti=[];for(const Hi of hr){const ja=[];for(const mo of Hi)ja.push(Sr[0]+as(mo)+Sr[1]);Ti.push(ja.join(","))}const Ui=(Pe={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[ni])!=null?Pe:["(",")"];sn=Ui[0]+Ti.join(",")+Ui[1];break;case"box":break;case"spacing":sn=(st=of[Yn])!=null?st:" ";break;case"enclose":sn="("+as(a.body)+")";break;case"space":sn=" ";break;case"subsup":sn="";break;case"macro":sn=(Vt=(kt=of[Yn])!=null?kt:sf[Yn])!=null?Vt:as(a.body);break}if(!a.hasEmptyBranch("subscript")){sn+="_";const Zn=as(a.subscript);sn+=Zn.length!==1?`(${Zn})`:Zn}if(!a.hasEmptyBranch("superscript")){sn+="^";const Zn=as(a.superscript);sn+=Zn.length!==1?`(${Zn})`:Zn}return sn}function Nv(a,y){if(!y)return a;let b=a;return y.variant==="double-struck"&&(b=`bbb "${b}"`),y.variant==="script"&&(b=`cc "${b}"`),y.variant==="fraktur"&&(b=`fr "${b}"`),y.variant==="sans-serif"&&(b=`sf "${b}"`),y.variant==="monospace"&&(b=`tt "${b}"`),y.variantStyle==="bold"&&(b=`bb "${b}"`),y.color?`color({${y.color}})(${b})`:b}function Is(a,y){var b,E;y!=null||(y={}),y.mathstyle=(b=y.mathstyle)!=null?b:"displaystyle";const ee=new Wa({from:Me(ve({},nd()),{renderPlaceholder:()=>new Vr(160,{maxFontSize:1}),letterShapeStyle:(E=y==null?void 0:y.letterShapeStyle)!=null?E:"tex"}),mathstyle:y.mathstyle}),le=new sr({mode:"math",type:"root",body:Ls(a,{context:ee,parseMode:"math",mathstyle:y.mathstyle})}).render(ee);return le?(ou(jd(le,ee)),su(le,{classes:"ML__latex"}).toMarkup()):""}function A1(a){return t0(a,{context:nd()})}function Rv(a,y={}){return ro(Ls(a,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),y)}function Fv(a){const y=Ls(a,{parseMode:"math",mathstyle:"displaystyle"});return Sd(y)}var th;function zv(a){var y,b;if(!th){const E=(y=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:y.ComputeEngine;E?th=new E:console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
|
|
|
|
|
|
Load the library, for example with:
|
|
|
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}return(b=th==null?void 0:th.box(a).latex)!=null?b:""}function B1(a,y="math"){return as(new sr({type:"root",body:Ls(a,{parseMode:y})}))}function D1(a){return Pu(a,{format:"ascii-math"})[1]}function Vh(a){if(typeof a=="string"){const y=_v(a);if(!y)throw new Error(`Invalid color: ${a}`);return y}return"C"in a?Hv(a):"a"in a?up(a):a}function Cd(a){return a<0?0:a>255?255:Math.round(a)}function _v(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 Uh(a){const[y,b,E]=[a.L,a.C,a.H],ee=E*Math.PI/180,re={L:y,a:b*Math.cos(ee),b:b*Math.sin(ee)};return a.alpha!==void 0&&(re.alpha=a.alpha),re}function Kv(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.sqrt(b*b+E*E),le=Math.atan2(E,b)*180/Math.PI,me={L:y,C:ee,H:le};return a.alpha!==void 0&&(me.alpha=a.alpha),me}function Gh(a){const[y,b,E]=[a.L,a.a,a.b],ee=Math.pow(.9999999984505198*y+.39633779217376786*b+.2158037580607588*E,3),re=Math.pow(1.00000000888176*y-.10556134232365635*b-.0638541747717059*E,3),le=Math.pow(y*1.000000054672411-.0894841820949657*b-1.2914855378640917*E,3),me=4.076741661347994*ee-3.307711590408193*re+.230969928729428*le,ge=-1.2684380040921763*ee+2.6097574006633715*re-.3413193963102197*le,Se=-.004196086541837188*ee-.7034186144594493*re+1.7076147009309444*le,Pe=st=>{const kt=Math.abs(st);return kt<=.0031308?st*12.92:(Math.sign(st)||1)*(1.055*Math.pow(kt,1/2.4)-.055)};return[Pe(me),Pe(ge),Pe(Se)]}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=Cd(b*255),E=Cd(E*255),ee=Cd(ee*255),y!==void 0?{r:b,g:E,b:ee,alpha:y}:{r:b,g:E,b:ee}}function up(a){let[y,b,E]=Gh(a);if(Yh([y,b,E]))return Xh([y,b,E],a.alpha);const ee=Kv(a);if(ee.C=0,[y,b,E]=Gh(Uh(ee)),!Yh([y,b,E]))return Xh([y,b,E],a.alpha);let re=0,le=a.L,me=(re+le)/2;ee.C=me;const ge=.36/Math.pow(2,12);for(;le-re>ge;)me=(re+le)/2,ee.C=me,[y,b,E]=Gh(Uh(ee)),Yh([y,b,E])?re=me:le=me;return Xh([y,b,E],a.alpha)}function Hv(a){return up(Uh(a))}function dp(a,y){const b=Vh(a),E=Vh(y),ee=.56,re=.57,le=.62,me=.65,ge=.022,Se=1.414,Pe=.1,st=5e-4,kt=1.14,Vt=.027,sn=1.14,Yn=.027;function Yr(Hi){return Hi>=ge?Hi:Hi+zc(ge-Hi,Se)}function Zn(Hi){return(Hi<0?-1:1)*Math.pow(Math.abs(Hi),2.4)}const hr=Yr(Zn(E.r/255)*.2126729+Zn(E.g/255)*.7151522+Zn(E.b/255)*.072175),ni=Yr(Zn(b.r/255)*.2126729+Zn(b.g/255)*.7151522+Zn(b.b/255)*.072175);let Sr,Ti,Ui;return Math.abs(ni-hr)<st?Ti=0:ni>hr?(Sr=zc(ni,ee)-zc(hr,re),Ti=Sr*kt):(Sr=zc(ni,me)-zc(hr,le),Ti=Sr*sn),Math.abs(Ti)<Pe?Ui=0:Ti>0?Ui=Ti-Yn:Ui=Ti+Vt,Ui*100}function fp(a,y,b){b!=null||(b="#fff"),y!=null||(y="#000");const E=dp(a,b),ee=dp(a,y);return Math.abs(E)>Math.abs(ee)?b:y}function Wv(a){const y=Vh(a);let b=((1<<24)+(Cd(y.r)<<16)+(Cd(y.g)<<8)+Cd(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 Io(a){const y=hp(a);let b="";for(const E of y){if(typeof E.value!="string")return"";b+=E.value}return b}function hp(a){const b=a.model.selection.ranges;return b.length!==1?[]:a.model.getAtoms(b[0])}function Zv(a,y){const b=hp(a);if(b.length!==1)return!1;const E=ph[y];return E?!!E.test(b[0].value):!1}function jv(a,y){return Io(a).length>0}function Vv(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 Uv(a){return[{label:()=>Is(`\\vec{${Io(a)}}`),visible:()=>Io(a).length===1,onMenuSelect:()=>a.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Is(`\\overrightarrow{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Is(`\\overleftarrow{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Is(`\\dot{${Io(a)}}`),visible:()=>Io(a).length===1,onMenuSelect:()=>a.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Is(`\\ddot{${Io(a)}}`),visible:()=>Io(a).length===1,onMenuSelect:()=>a.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Is(`\\bar{${Io(a)}}`),visible:()=>Io(a).length===1,onMenuSelect:()=>a.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Is(`\\overline{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Is(`\\overgroup{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Is(`\\overbrace{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Is(`\\underline{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Is(`\\undergroup{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Is(`\\underbrace{${Io(a)}}`),visible:()=>Io(a).length>0,onMenuSelect:()=>a.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function Gv(a){return[{label:()=>Is(`\\boxed{${a.getValue(a.model.selection)}}}`),onMenuSelect:()=>a.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Is(`\\bbox[5px, border: 2px solid red]{${a.getValue(a.model.selection)}}`),onMenuSelect:()=>a.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Is(`\\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(Je))y.push({class:(Wv(fp(Je[b]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${Je[b]} "></span>`,ariaLabel:()=>{var E;return(E=nt(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({backgroundColor:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({backgroundColor:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}function Xv(a){const y=[];for(const b of Object.keys(et))y.push({class:(fp(et[b])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${et[b]} "></span>`,ariaLabel:()=>{var E;return(E=nt(b))!=null?E:b},checked:()=>{var E;return{some:"mixed",all:!0}[(E=a.queryStyle({color:b}))!=null?E:!1]},onMenuSelect:()=>{a.applyStyle({color:b},{operation:"toggle"}),a.adoptStyle="none"}});return y}var Qv=class extends ep{constructor(a,y,b,E){super(a,y),this.row=b,this.col=E}set active(a){const y=this.parentMenu.children;if(a)for(const b of y)b.element.classList.toggle("active",b.row<=this.row&&b.col<=this.col);else for(const b of y)b.element.classList.remove("active")}};function Jv(a){const y=[];for(let b=1;b<=5;b++)for(let E=1;E<=5;E++)y.push({onCreate:(ee,re)=>new Qv(ee,re,b,E),label:"\u2610",tooltip:()=>nt("tooltip.row-by-col",b,E),data:{row:b,col:E},onMenuSelect:()=>{a.insert(`\\begin{pmatrix}${Array(b).fill(Array(E).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return y}function qv(a){return[{label:()=>nt("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>a.executeCommand("addRowBefore"),visible:()=>Vu(a)},{label:()=>nt("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>a.executeCommand("addRowAfter"),visible:()=>Vu(a)},{label:()=>nt("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>a.executeCommand("addColumnBefore"),visible:()=>Vu(a),enabled:()=>{const y=a.model.parentEnvironment;if(!y)return!1;const[b,E]=e1(a);return b<y.maxColumns}},{label:()=>nt("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>a.executeCommand("addColumnAfter"),visible:()=>Vu(a)},{type:"divider"},{label:()=>nt("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>a.executeCommand("removeRow"),visible:()=>Vu(a)},{label:()=>nt("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>a.executeCommand("removeColumn"),visible:()=>Vu(a)},{type:"divider"},{label:()=>nt("menu.borders"),visible:()=>($v(a)||Vu(a))&&a.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>lf(a,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>lf(a,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>lf(a,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>lf(a,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>lf(a,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>nt("menu.insert matrix"),id:"insert-matrix",visible:()=>a.isSelectionEditable,submenu:Jv(a),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>nt("menu.mode"),id:"mode",visible:()=>a.isSelectionEditable&&a.model.selectionIsCollapsed,submenu:[{label:()=>nt("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{fd(a,"accept-all"),a.executeCommand(["switchMode","math"])},checked:()=>a.model.mode==="math"},{label:()=>nt("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{fd(a,"accept-all"),a.executeCommand(["switchMode","text"])},checked:()=>a.model.mode==="text"},{label:()=>nt("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>a.executeCommand(["switchMode","latex"]),checked:()=>a.model.mode==="latex"}]},{type:"divider"},{label:()=>nt("menu.font-style"),id:"variant",visible:()=>a.isSelectionEditable,submenu:Vv(a),submenuClass:"variant-submenu"},{label:()=>nt("menu.color"),id:"color",visible:()=>a.isSelectionEditable,submenu:Xv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>nt("menu.background-color"),id:"background-color",visible:()=>a.isSelectionEditable,submenu:Yv(a),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>nt("menu.accent"),id:"accent",visible:()=>a.isSelectionEditable,submenu:Uv(a),submenuClass:"variant-submenu"},{label:()=>nt("menu.decoration"),id:"decoration",visible:()=>a.isSelectionEditable&&Io(a).length>0,submenu:Gv(a),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>nt("menu.evaluate"),id:"ce-evaluate",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const y=t1(a);if(!y){a.model.announce("plonk");return}a.model.selectionIsCollapsed?(a.model.position=a.model.lastOffset,a.insert(`=${y}`,{insertionMode:"insertAfter",selectionMode:"item"})):a.insert(y,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>nt("menu.simplify"),id:"ce-simplify",visible:()=>a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var y,b;if(a.model.selectionIsCollapsed){const E=(y=a.expression)==null?void 0:y.simplify();if(a.model.position=a.model.lastOffset,!E){a.model.announce("plonk");return}a.insert(`=${E.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection)).simplify();if(!E){a.model.announce("plonk");return}a.insert(E.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var y;if(window.MathfieldElement.computeEngine===null)return"";const b=(y=a.expression)==null?void 0:y.unknowns[0];return b?nt("menu.solve-for",Is(b)):nt("menu.solve")},id:"ce-solve",visible:()=>{var y;return a.isSelectionEditable&&window.MathfieldElement.computeEngine!==null&&((y=a.expression)==null?void 0:y.unknowns.length)===1&&a.expression.unknowns[0]!=="Nothing"},onMenuSelect:()=>{var y;const b=a.expression,E=b==null?void 0:b.unknowns[0],ee=(y=b.solve(E))==null?void 0:y.map(re=>{var le;return(le=re.simplify().latex)!=null?le:""});if(!ee){a.model.announce("plonk");return}a.insert(`${E}=${ee.length===1?ee[0]:"\\left\\lbrace"+(ee==null?void 0:ee.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>nt("menu.cut"),onMenuSelect:()=>a.executeCommand("cutToClipboard"),visible:()=>!a.options.readOnly&&a.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>nt("menu.copy"),id:"copy",submenu:[{label:()=>nt("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>ma.copyToClipboard(a,"latex"),keyboardShortcut:"meta+C"},{label:()=>nt("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>ma.copyToClipboard(a,"ascii-math")},{label:()=>nt("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>ma.copyToClipboard(a,"math-ml")}]},{label:()=>nt("menu.paste"),id:"paste",onMenuSelect:()=>a.executeCommand("pasteFromClipboard"),visible:()=>a.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>nt("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>a.executeCommand("selectAll")}]}function Vu(a){var y;return!!((y=a.model.parentEnvironment)!=null&&y.array)}function $v(a){return a.model.at(a.model.position).type==="array"}function e1(a){var y;const b=(y=a.model.parentEnvironment)==null?void 0:y.array;return b?[b.length,b.reduce((E,ee)=>Math.max(E,ee.length),0)]:[0,0]}function lf(a,y){Bf(a),a.flushInlineShortcutBuffer(),P0(a.model,y),Xo(a)}function t1(a){var y,b;let E;if(a.model.selectionIsCollapsed?E=(y=window.MathfieldElement.computeEngine)==null?void 0:y.parse(a.getValue(),{canonical:!1}):E=(b=window.MathfieldElement.computeEngine)==null?void 0:b.parse(a.getValue(a.model.selection),{canonical:!1}),!E)return"";let ee=E.evaluate();return ee.isSame(E)&&(ee=E.N()),ee.latex}function Qh(a,y,b,E){return{label:()=>Is(`\\${b}{${Io(a)}}`),tooltip:()=>{var ee;return(ee=nt(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:()=>Is(`\\${b}{${Io(a)}}`),tooltip:()=>{var ee;return(ee=nt(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 Ed(a,y){return a+Sd(y)}Dl({speak:(a,y,b)=>n1(a,y,b)},{target:"mathfield"});function n1(a,y,b){var E,ee;b=b!=null?b:{withHighlighting:!1};const{model:re}=a;function le(Pe){let st=null;switch(Pe){case"all":st=re.root;break;case"selection":st=re.getAtoms(re.selection);break;case"left":{st=re.getAtoms(re.offsetOf(re.at(re.position).leftSibling),re.position);break}case"right":{st=re.getAtoms(re.position,re.offsetOf(re.at(re.position).rightSibling));break}case"group":st=re.getAtoms(re.getSiblingsRange(re.position));break;case"parent":{const{parent:kt}=re.at(re.position);kt!=null&&kt.parent?st=kt:st=re.root;break}default:st=re.root}return st}function me(Pe){let st="";switch(Pe){case"all":console.log("Internal failure: speak all failed");break;case"selection":st="no selection";break;case"left":st="at start";break;case"right":st="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":st="no parent";break;default:console.log('unknown speak_ param value: "'+Pe+'"');break}return st}const ge=le(y);if(ge===null)return(ee=(E=window.MathfieldElement).speakHook)==null||ee.call(E,me(y)),!1;(b.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const Se=Sd(ge);return pt()&&b.withHighlighting?(vu().readAloudMathfield=a,Ru(a,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(a.field,Se)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(Se),!1}function r1(a){var y,b;if(!pt()){console.log("Speak:",a);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const E=new SpeechSynthesisUtterance(a);window.speechSynthesis.speak(E)}else if(window.MathfieldElement.speechEngine==="amazon")if(!("AWS"in window))console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else{const E=new window.AWS.Polly({apiVersion:"2016-06-10"}),ee={OutputFormat:"mp3",VoiceId:(y=window.MathfieldElement.speechEngineVoice)!=null?y:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes((b=window.MathfieldElement.speechEngineVoice)!=null?b:"Joanna")?"neural":"standard",Text:a,TextType:"ssml"};E.synthesizeSpeech(ee,(re,le)=>{if(re)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);else if(le!=null&&le.AudioStream){const me=new Uint8Array(le.AudioStream),ge=new Blob([me.buffer],{type:"audio/mpeg"}),Se=URL.createObjectURL(ge);new Audio(Se).play().catch(st=>console.log(st))}else console.log("polly.synthesizeSpeech():",le)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function pp(a){var y;let b;if(a.parent.type==="prompt")a.parentBranch==="body"&&(b="prompt");else if(a.parentBranch==="body")b=a.type&&(y={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[a.type])!=null?y:"parent";else if(a.parent.type==="genfrac"){if(a.parentBranch==="above")return"numerator";if(a.parentBranch==="below")return"denominator"}else a.parent.type==="surd"?a.parentBranch==="above"&&(b="index"):a.parentBranch==="superscript"?b="superscript":a.parentBranch==="subscript"&&(b="subscript");return b||console.log("unknown relationship"),b!=null?b:"parent"}function i1(a,y,b,E){let ee="";if(y==="plonk")window.MathfieldElement.playSound("plonk"),a.flushInlineShortcutBuffer();else if(y==="delete")ee=Ed("deleted: ",E);else if(y==="focus"||y.includes("move"))ee=a1(a.model,b)+(a.model.selectionIsCollapsed?"":"selected: ")+o1(a.model);else if(y==="replacement")ee=Ed("",a.model.at(a.model.position));else if(y==="line"){const re=Ed("",a.model.root);a.keyboardDelegate.setAriaLabel(re)}else ee=E?Ed(y+" ",E):y;if(ee){const re=a.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";a.ariaLiveText.textContent=ee+re}}function a1(a,y){if(Number.isNaN(y))return"";const b=a.at(y);if(!b||b.treeDepth<=a.at(a.position).treeDepth)return"";let E="",ee=b.parent;const re=a.at(a.position).parent;for(;ee!==a.root&&ee!==re;)E+=`out of ${pp(ee)};`,ee=ee.parent;return E}function o1(a){if(!a.selectionIsCollapsed)return Ed("",a.getAtoms(a.selection));let y="";const b=a.at(a.position),E=pp(b);return b.isFirstSibling&&(y=(E?"start of "+E:"unknown")+": "),b.isLastSibling?b.isFirstSibling||(y+=E?"end of "+E:"unknown"):y+=Ed("",b),y}var s1=class{constructor(a,y,b){this.mathfield=a,this.mode=y,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=b}dispose(){this.mathfield=void 0}getState(){const a={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(a.direction=this.selection.direction),{content:this.root.toJson(),selection:a,mode:this.mode}}setState(a,y){var b;const E=this.silenceNotifications;this.silenceNotifications=(b=y==null?void 0:y.silenceNotifications)!=null?b:!0;let ee={};if((y==null?void 0:y.type)==="undo"&&(ee={inputType:"historyUndo"}),(y==null?void 0:y.type)==="redo"&&(ee={inputType:"historyRedo"}),this.contentWillChange(ee)){const re=this.silenceNotifications;this.silenceNotifications=!0,this.mode=a.mode,this.root=hu(a.content),this.selection=a.selection,this.silenceNotifications=re,this.contentDidChange(ee)}this.silenceNotifications=E}get atoms(){return this.root.children}get selection(){return this._selection}set selection(a){this.setSelection(a)}setSelection(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{var b,E,ee;const re=this.normalizeSelection(a,y);if(re===void 0)throw new TypeError("Invalid selection");if(re.ranges.length===1&&re.ranges[0][0]===re.ranges[0][1]){const Pe=re.ranges[0][0];if(!this.mathfield.dirty&&!((b=this.at(Pe))!=null&&b.parentPrompt)&&this.mathfield.hasEditablePrompts){if((E=this.at(Pe-1))!=null&&E.parentPrompt){this._anchor=this.normalizeOffset(Pe-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((ee=this.at(Pe+1))!=null&&ee.parentPrompt){this._anchor=this.normalizeOffset(Pe+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=Pe,this._position=Pe,this._selection=re;return}const le=Bs(re);re.direction==="backward"?[this._position,this._anchor]=le:[this._anchor,this._position]=le;const me=this.at(le[0]+1),ge=this.at(le[1]),Se=sr.commonAncestor(me,ge);(Se==null?void 0:Se.type)==="array"&&me.parent===Se&&ge.parent===Se?this._selection={ranges:[le],direction:re.direction}:this._selection={ranges:[le],direction:re.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(a){var y;const b=this.at(a);(b==null?void 0:b.type)==="placeholder"?this.setSelection(a-1,a):((y=b==null?void 0:b.rightSibling)==null?void 0:y.type)==="placeholder"?this.setSelection(a,a+1):this.position=a,b instanceof Ks&&b.isSuggestion&&(b.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(a){this.setSelection(a,a)}get anchor(){return this._anchor}get selectionIsCollapsed(){return this._anchor===this._position}get selectionIsPlaceholder(){return Math.abs(this._anchor-this._position)===1?this.at(Math.max(this._anchor,this._position)).type==="placeholder":!1}collapseSelection(a="forward"){return this._anchor===this._position?!1:(a==="backward"?this.position=Math.min(this._anchor,this._position):this.position=Math.max(this._anchor,this._position),!0)}get lastOffset(){return this.atoms.length-1}at(a){return this.atoms[a]}offsetOf(a){return this.atoms.indexOf(a)}getSiblingsRange(a){const y=this.at(a),{parent:b}=y;if(!b)return[0,this.lastOffset];const E=y.parent.branch(y.parentBranch);return[this.offsetOf(E[0]),this.offsetOf(E[E.length-1])]}getBranchRange(a,y){const b=this.at(a).branch(y);return[this.offsetOf(b[0]),this.offsetOf(b[b.length-1])]}getAtoms(a,y,b){let E=b!=null?b:{};if(id(a)){if(E=y!=null?y:{},a.ranges.length>1)return a.ranges.reduce((Se,Pe)=>[...Se,...this.getAtoms(Pe,E)],[]);a=a.ranges[0]}let ee,re;if(Sc(a)){if(ee=a,!Sc(y))return[];re=y}else[ee,re]=a,E=y!=null?y:{};if(!Number.isFinite(ee))return[];E.includeChildren===void 0&&(E.includeChildren=!1),ee<0&&(ee=this.lastOffset-ee+1),re<0&&(re=this.lastOffset-re+1);const le=Math.min(ee,re)+1,me=Math.max(ee,re);if(!E.includeChildren&&le===1&&me===this.lastOffset)return[this.root];let ge=[];for(let Se=le;Se<=me;Se++){const Pe=this.atoms[Se];mp(this,Pe,le,me)&&ge.push(Pe)}return E.includeChildren||(ge=ge.filter(Se=>{let Pe=!1,{parent:st}=Se;for(;st&&!Pe;)Pe=mp(this,st,le,me),st=st.parent;return!Pe})),ge}getAllAtoms(a=0){const y=[],b=this.lastOffset;for(let E=a;E<=b;E++)y.push(this.atoms[E]);for(let E=0;E<a;E++)y.push(this.atoms[E]);return y}findAtom(a,y=0,b="forward"){let E;const ee=this.lastOffset;if(b==="forward"){for(let re=y;re<=ee;re++)if(E=this.atoms[re],a(E))return E;for(let re=0;re<y;re++)if(E=this.atoms[re],a(E))return E;return}for(let re=y;re>=0;re--)if(E=this.atoms[re],a(E))return E;for(let re=ee;re>y;re--)if(E=this.atoms[re],a(E))return E}extractAtoms(a){let y=this.getAtoms(a);if(y.length===1&&!y[0].parent)if(y[0].type==="root")y=[...y[0].body],y.shift();else return y=this.root.cells.flat(),this.root=new sr({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 sr.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 ro(a);if(b==="spoken")return Sd(a);if(b==="spoken-text"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const ee=Sd(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}if(b==="spoken-ssml"||b==="spoken-ssml-with-highlighting"){const E=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const ee=Sd(a);return window.MathfieldElement.textToSpeechMarkup=E,ee}return b==="ascii-math"?as(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(Sc(a)&&Sc(y)?(E=[this.normalizeRange([a,y])],ee=b):rd(a)?(E=[this.normalizeRange(a)],ee=y):id(a)?(E=a.ranges,ee=y):(E=[this.normalizeRange([0,-1])],ee=a),ee!=null||(ee="latex"),ee==="math-json"){if(!window.MathfieldElement.computeEngine)return window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`The CortexJS Compute Engine library is not available.
|
|
|
Load the library, for example with:
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),'["Error", "compute-engine-not-available"]';const re=this.getValue({ranges:E},"latex-unstyled");try{const le=window.MathfieldElement.computeEngine.parse(re);return JSON.stringify(le.json)}catch(le){return JSON.stringify(["Error",`'${le.toString()}'`])}}if(ee.startsWith("latex")){const re={expandMacro:ee==="latex-expanded",skipStyles:ee==="latex-unstyled",skipPlaceholders:ee==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return Ba(E.map(le=>sr.serialize(this.getAtoms(le),re)))}return E.map(re=>this.getAtoms(re).map(le=>this.atomToString(le,ee)).join("")).join("")}extendSelectionTo(a,y){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const b=this.normalizeRange([a,y]);let[E,ee]=b,{parent:re}=this.at(ee);if(re&&(re.type==="genfrac"||re.type==="subsup"))for(;re!==this.root&&qh(this,re,[E,ee]);)ee=this.offsetOf(re),re=re.parent;for(re=this.at(E).parent;re!==this.root&&qh(this,re,[E,ee]);)E=this.offsetOf(re.leftSibling),re=re.parent;if(re=this.at(ee).parent,(re==null?void 0:re.type)==="genfrac")for(;re!==this.root&&qh(this,re,[E,ee]);)ee=this.offsetOf(re),console.assert(ee>=0),re=re.parent;this._position=this.normalizeOffset(y),this._selection={ranges:[[E,ee]],direction:"none"}})}announce(a,y,b=[]){var E,ee;((ee=(E=this.mathfield.host)==null?void 0:E.dispatchEvent(new CustomEvent("announce",{detail:{command:a,previousPosition:y,atoms:b},cancelable:!0,bubbles:!0,composed:!0})))!=null?ee:!0)&&i1(this.mathfield,a,y,b)}deferNotifications(a,y){const b=this._selection,E=this._anchor,ee=this._position,re=this.silenceNotifications;this.silenceNotifications=!0;const le=this.root.changeCounter;y();const me=this.root.changeCounter!==le,ge=E!==this._anchor||ee!==this._position||Iu(this._selection,b)==="different";return this.silenceNotifications=re,a.content&&me&&this.contentDidChange({inputType:a.type}),a.selection&&ge&&this.selectionDidChange(),me||ge}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(Sc(a)){const ee=this.normalizeOffset(a);if(Sc(y)){const re=this.normalizeOffset(y);E=ee<=re?{ranges:[[ee,re]],direction:"none"}:{ranges:[[re,ee]],direction:"backward"}}else E={ranges:[[ee,ee]],direction:"none"}}else if(rd(a)){const ee=this.normalizeOffset(a[0]),re=this.normalizeOffset(a[1]);E=ee<=re?{ranges:[[ee,re]],direction:"none"}:{ranges:[[re,ee]],direction:"backward"}}else id(a)&&(E={ranges:a.ranges.map(ee=>this.normalizeRange(ee)),direction:(b=a.direction)!=null?b:"none"});return console.assert(E!==void 0),E}get parentEnvironment(){let a=this.at(this.position).parent;if(a){for(;a.parent&&a.type!=="array";)a=a.parent;if(a.type==="array")return a}}get cell(){var a;let y=this.at(this.position);if(y){for(;y&&((a=y.parent)==null?void 0:a.type)!=="array";)y=y.parent;if(!(!(y!=null&&y.parent)||y.parent.type!=="array"))return y.parentBranch}}contentWillChange(a={}){if(this.silenceNotifications||!this.mathfield)return!0;const y=this.silenceNotifications;this.silenceNotifications=!0;const b=this.mathfield.onContentWillChange(a);return this.silenceNotifications=y,b}contentDidChange(a){var y;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Lc(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(ve({},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(Lc(this.mathfield)),this.silenceNotifications))return;const a=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=a}};function mp(a,y,b,E){const ee=a.offsetOf(y);if(ee<b||ee>E)return!1;if(!y.hasChildren)return!0;const re=a.offsetOf(y.firstChild);if(re>=b&&re<=E){const le=a.offsetOf(y.lastChild);if(le>=b&&le<=E)return!0}return!1}function qh(a,y,b){if(!(y!=null&&y.hasChildren))return!1;const[E,ee]=b,re=a.offsetOf(y.firstChild),le=a.offsetOf(y.lastChild);return re>=E&&re<=ee&&le>=re&&le<=ee}function cf(a,y,b,E){var ee,re,le,me,ge,Se;const Pe=b.parent;if(Pe&&b instanceof no){const st=!E&&y==="forward"||E==="body"&&y==="backward";let kt=st?a.offsetOf(b.firstChild):a.offsetOf(b.lastChild);return st?b.rightDelim!=="?"&&b.rightDelim!=="."?(b.leftDelim=".",b.isDirty=!0):(Pe.addChildrenAfter(b.removeBranch("body"),b),Pe.removeChild(b),kt--):b.leftDelim!=="?"&&b.leftDelim!=="."?(b.rightDelim=".",b.isDirty=!0):(Pe.addChildrenAfter(b.removeBranch("body"),b),Pe.removeChild(b),kt--),a.position=kt,!0}if(Pe&&b.type==="surd"){if(y==="forward"&&!E||y==="backward"&&E==="body"){const st=b.leftSibling;b.hasChildren&&Pe.addChildrenAfter(b.removeBranch("body"),b),Pe.removeChild(b),a.position=a.offsetOf(st)}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),Pe.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(Pe&&(b.type==="box"||b.type==="enclose")){const st=E&&y==="backward"||!E&&y==="forward"?b.leftSibling:b.lastChild;return Pe.addChildrenAfter(b.removeBranch("body"),b),Pe.removeChild(b),a.position=a.offsetOf(st),!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 st=uf.fractionNavigationOrder==="numerator-denominator"?"above":"below",kt=st==="above"?"below":"above";if(Pe&&(y==="forward"&&E===st||y==="backward"&&E===kt)){const Vt=b.removeBranch(st),sn=b.removeBranch(kt);return Pe.addChildrenAfter([...Vt,...sn],b),Pe.removeChild(b),a.position=a.offsetOf(Vt.length>0?Vt[Vt.length-1]:sn[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 st=y==="forward"?(le=(ee=b.superscript)==null?void 0:ee[0])!=null?le:(re=b.subscript)==null?void 0:re[0]:(Se=(me=b.subscript)==null?void 0:me[0].lastSibling)!=null?Se:(ge=b.superscript)==null?void 0:ge[0].lastSibling;return st&&(a.position=a.offsetOf(st)),!0}return!1}if(!b.hasChildren&&b.type==="subsup"){const st=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);return b.parent.removeChild(b),a.position=st,!0}if(E==="superscript")if(y==="backward"){const st=a.offsetOf(b.firstChild)-1;console.assert(st>=0),a.position=st}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 st=y==="forward"?a.offsetOf(b):Math.max(0,a.offsetOf(b)-1);b.parent.removeChild(b),a.position=st}return!0}if((Pe==null?void 0:Pe.type)==="genfrac"&&!E&&b.type!=="first"){let st=a.offsetOf(b.leftSibling);return Pe.removeChild(b),Pe.hasEmptyBranch("above")&&Pe.hasEmptyBranch("below")?(st=a.offsetOf(Pe.leftSibling),Pe.parent.removeChild(Pe),a.announce("delete",void 0,[Pe]),a.position=st,!0):(a.announce("delete",void 0,[b]),a.position=st,!0)}if(y==="backward"&&((Pe==null?void 0:Pe.command)==="\\ln"||(Pe==null?void 0:Pe.command)==="\\log")&&b.parentBranch!=="body"){const st=a.offsetOf(Pe.leftSibling);return Pe.parent.removeChild(Pe),a.announce("delete",void 0,[Pe]),a.position=st,!0}return!1}function l1(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&&cf(a,"backward",y))){if(y!=null&&y.isFirstSibling){if(cf(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])}}):Pc(a,Bs(a.selection),"deleteContentBackward")}function c1(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&&cf(a,"forward",E))return;if(E){if(a.at(a.position).isLastSibling&&cf(a,"forward",E.parent,E.parentBranch))return}else{if(E=a.at(a.position),E.isLastSibling&&cf(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])}):Pc(a,Bs(a.selection),"deleteContentForward")}function Pc(a,y,b){const E=a.getAtoms(y);if(E.length>0&&E[0].parent){let ee=E[0].parent.firstChild;ee.type==="first"&&(ee=ee.rightSibling);const re=E[E.length-1].parent.lastChild;let le=E[0];le.type==="first"&&(le=le.rightSibling);const me=E[E.length-1];if(le===ee&&me===re){const ge=E[0].parent;ge.parent&&ge.type!=="prompt"&&(y=[a.offsetOf(ge.leftSibling),a.offsetOf(ge)])}if(E.length===1&&E[0].type==="placeholder"&&E[0].parent.type==="genfrac"){const ge=E[0].parent,Se=E[0].parentBranch==="below"?"above":"below",Pe=a.offsetOf(ge.leftSibling);return a.deferNotifications({content:!0,selection:!0,type:b},()=>{var st,kt;const Vt=ge.removeBranch(Se);if(Vt.length===1&&Vt[0].type==="placeholder")(kt=ge.parent)==null||kt.removeChild(ge),a.position=Math.max(0,Pe);else{const sn=ge.parent.addChildrenAfter(Vt,ge);(st=ge.parent)==null||st.removeChild(ge),a.position=a.offsetOf(sn)}})}}return a.deferNotifications({content:!0,selection:!0,type:b},()=>a.deleteAtoms(y))}Dl({deleteAll:a=>a.contentWillChange({inputType:"deleteContent"})&&Pc(a,[0,-1],"deleteContent"),deleteForward:a=>c1(a),deleteBackward:a=>l1(a),deleteNextWord:a=>a.contentWillChange({inputType:"deleteWordForward"})&&Pc(a,[a.anchor,Ah(a,a.position,"forward")],"deleteWordForward"),deletePreviousWord:a=>a.contentWillChange({inputType:"deleteWordBackward"})&&Pc(a,[a.anchor,Ah(a,a.position,"backward")],"deleteWordBackward"),deleteToGroupStart:a=>a.contentWillChange({inputType:"deleteSoftLineBackward"})&&Pc(a,[a.anchor,a.offsetOf(a.at(a.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:a=>a.contentWillChange({inputType:"deleteSoftLineForward"})&&Pc(a,[a.anchor,a.offsetOf(a.at(a.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:a=>a.contentWillChange({inputType:"deleteHardLineBackward"})&&Pc(a,[a.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:a=>a.contentWillChange({inputType:"deleteHardLineForward"})&&Pc(a,[a.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var u1=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${nt("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,d1=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${nt("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,f1=class{constructor(a,y){this.focusBlurInProgress=!1;var b,E,ee;this.options=ve(Me(ve({},_f()),{macros:fn(),registers:Ql()}),zf(y)),this.eventController=new AbortController;const re=this.eventController.signal;y.eventSink&&(this.host=y.eventSink),this.element=a,a.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let le=(E=(b=y.value)!=null?b:this.element.textContent)!=null?E:"";le=le.trim();const me=D0(this.options),ge=new sr({type:"root",mode:me,body:Ls(le,{context:this.context})});this.model=new s1(this,me,ge),this.undoManager=new Fg(this.model);const Se=[];if(Se.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>"),Se.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),Se.push("<span part=content class=ML__content>"),Se.push(w0(this)),Se.push("</span>"),window.mathVirtualKeyboard&&(Se.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">`),Se.push(u1),Se.push("</div>")),Se.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),Se.push(d1),Se.push("</div>"),Se.push("</span>"),Se.push("<span class=ML__sr-only>"),Se.push("<span role=status aria-live=assertive aria-atomic=true></span>"),Se.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(Se.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=ht.subscribe(()=>ht.update(this.element)),ht.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",st=>st.stopImmediatePropagation(),{capture:!1,signal:re}),this.field.addEventListener("wheel",this,{passive:!1,signal:re}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:re}):this.field.addEventListener("mousedown",this,{signal:re}),(ee=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||ee.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(Lc(this)))},{signal:re}),this._menu=new Sv(qv(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:re});const Pe=this.element.querySelector("[part=menu-toggle]");Pe==null||Pe.addEventListener("pointerdown",st=>{if(st.currentTarget!==Pe||this._menu.state!=="closed")return;this.element.classList.add("tracking");const kt=Pe.getBoundingClientRect();this._menu.modifiers=Nu(st),this._menu.show({target:Pe,location:{x:kt.left,y:kt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),st.preventDefault(),st.stopPropagation()},{signal:re}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(Pe.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:re}),document.addEventListener("scroll",this,{signal:re}),this.resizeObserver=new ResizeObserver(()=>Xo(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:re}),Gd&&!ht.locale.startsWith(Gd.locale)&&zm(ht.locale),Wl!=="ready"&&document.fonts.ready.then(()=>Tf(this)),a.querySelector("[part=container]").style.removeProperty("visibility"),this.undoManager.startRecording(),this.undoManager.snapshot("set-value")}get defaultStyle(){return this._defaultStyle}set defaultStyle(a){this._defaultStyle=a}get effectiveStyle(){if(this.adoptStyle==="none")return this.defaultStyle;const a=this.model.at(this.model.position),y=this.adoptStyle==="right"?a.rightSibling:a;if(!y)return this.defaultStyle;if(y.type==="group"){const b=y.branch("body");return!b||b.length<2?{}:this.adoptStyle==="right"?b[1].computedStyle:b[b.length-1].computedStyle}return y.computedStyle}connectToVirtualKeyboard(){this.connectedToVirtualKeyboard||(this.connectedToVirtualKeyboard=!0,window.addEventListener("message",this,{signal:this.eventController.signal}),window.mathVirtualKeyboard.connect(),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Lc(this)),Jf(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,re=this.element.querySelector("[part=container]");return this._menu.show({target:re,location:E,modifiers:ee})}get colorMap(){return a=>{var y,b,E;return(E=(b=(y=this.options).colorMap)==null?void 0:b.call(y,a))!=null?E:bt(a)}}get backgroundColorMap(){return a=>{var y,b,E,ee,re,le;return(le=(re=(b=(y=this.options).backgroundColorMap)==null?void 0:b.call(y,a))!=null?re:(ee=(E=this.options).colorMap)==null?void 0:ee.call(E,a))!=null?le:Oe(a)}}get smartFence(){var a;return(a=this.options.smartFence)!=null?a:!1}get readOnly(){var a;return(a=this.options.readOnly)!=null?a:!1}get disabled(){var a,y;return(y=(a=this.host)==null?void 0:a.disabled)!=null?y:!1}get contentEditable(){return this.host?this.host.getAttribute("contenteditable")!=="false":!1}get userSelect(){if(!this.host)return"";const a=getComputedStyle(this.host);return a.getPropertyValue("user-select")||a.getPropertyValue("-webkit-user-select")}get hasEditableContent(){return this.disabled||!this.contentEditable?!1:!this.readOnly||this.hasEditablePrompts}get hasEditablePrompts(){return this.readOnly&&!this.disabled&&this.contentEditable&&this.model.findAtom(a=>a.type==="prompt"&&!a.locked)!==void 0}get isSelectionEditable(){if(this.disabled||!this.contentEditable)return!1;if(!this.readOnly)return!0;const a=this.model.at(this.model.anchor),y=this.model.at(this.model.position),b=sr.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=ve({},a[0].style);for(const b of a)for(const[E,ee]of Object.entries(b.style))y[E]!==ee&&delete y[E];return y}queryStyle(a){const y=Th(this,a);"verbatimColor"in y&&delete y.verbatimColor,"verbatimBackgroundColor"in y&&delete y.verbatimBackgroundColor;const b=Object.keys(y).length;if(b===0)return"all";if(b>1){for(const ge of Object.keys(y)){const Se=this.queryStyle({[ge]:y[ge]});if(Se==="none")return"none";if(Se==="some")return"some"}return"all"}const E=Object.keys(y)[0],ee=y[E];if(this.model.selectionIsCollapsed)return this.effectiveStyle[E]===ee?"all":"none";const re=this.model.getAtoms(this.model.selection,{includeChildren:!0});let le=re.length;if(le===0)return"none";let me=0;for(const ge of re){if(ge.type==="first"){le-=1;continue}ge.style[E]===ee&&(me+=1)}return me===0?"none":me===le?"all":"some"}get keybindings(){var a,y;if(this._keybindings)return this._keybindings;const[b,E]=Gm(this.options.keybindings,(a=Yd())!=null?a:_m());return((y=Yd())==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=ve(ve({},this.options),zf(a)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let b=this.options.defaultMode;b==="inline-math"&&(b="math"),((y=this.model.root.firstChild)==null?void 0:y.mode)!==b&&(this.model.root.firstChild.mode=b),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const E=sr.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in a||this.model.getValue()!==E)&&ma.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)&&Xo(this)}getOptions(a){return zu(this.options,a)}getOption(a){return zu(this.options,a)}handleEvent(a){return yu(this,null,function*(){var y;if(_l(this)){if(Ch(a)){if(!_d(a.origin,(y=this.options.originValidator)!=null?y:"none"))throw new DOMException(`Message from unknown origin (${a.origin}) cannot be handled`,"SecurityError");const{action:b}=a.data;if(b==="execute-command"){const E=a.data.command;if(pd(E)==="virtual-keyboard")return;this.executeCommand(E)}else b==="update-state"||(b==="focus"?this.focus({preventScroll:!0}):b==="blur"&&this.blur());return}switch(a.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":this.userSelect!=="none"&&j0(this,a);break;case"pointerdown":this.userSelect!=="none"&&(j0(this,a),a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&Gf.stop());break;case"contextmenu":this.userSelect!=="none"&&a.shiftKey===!1&&(yield ip(a,this.element.querySelector("[part=container]"),this._menu))&&Gf.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&Jf(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>_l(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>_l(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(a);break;default:console.warn("Unexpected event type",a.type)}}})}dispose(){if(!_l(this))return;ht.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(),$m(),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 pd(a)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(a),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(Lc(this))),!1):og(this,a)}get errors(){return t0(this.model.getValue(),{context:this.context})}getValue(a,y,b){return this.model.getValue(a,y,b)}setValue(a,y){var b;y=y!=null?y:{mode:"math"},y.insertionMode===void 0&&(y.insertionMode="replaceAll"),(y.format===void 0||y.format==="auto")&&(y.format="latex"),(y.mode===void 0||y.mode==="auto")&&(y.mode=(b=ah(this.model,this.model.position))!=null?b:"math");const E=this.undoManager.canUndo();ma.insert(this.model,a,y)&&(Xo(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&&Ru(this,{interactive:!0});const y=this.field.getBoundingClientRect();let b=null;if(this.model.selectionIsCollapsed)b=Mc(this.field);else{const E=zd(this);if(E.length>0){let ee=-1/0,re=-1/0;for(const le of E)le.right>ee&&(ee=le.right),le.top<re&&(re=le.top);b={x:ee+y.left-this.field.scrollLeft,y:re+y.top-this.field.scrollTop,height:0}}}if(this.host&&b){const E=this.host.getBoundingClientRect(),ee=b.y;let re=this.host.scrollTop;ee<E.top?re=ee-E.top+this.host.scrollTop:ee>E.bottom&&(re=ee-E.bottom+this.host.scrollTop+b.height),this.host.scroll({top:re,left:0})}if(b){const E=b.x-window.scrollX;let ee=this.field.scrollLeft;E<y.left?ee=E-y.left+this.field.scrollLeft-20:E>y.right&&(ee=E-y.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:ee})}}insert(a,y){return typeof a!="string"||a.length===0&&((y==null?void 0:y.insertionMode)==="insertBefore"||(y==null?void 0:y.insertionMode)==="insertAfter")||a.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),y=y!=null?y:{mode:"math"},y.focus&&this.focus(),y.feedback&&(window.MathfieldElement.keypressVibration&&je()&&navigator.vibrate(S0),window.MathfieldElement.playSound("keypress")),a==="\\\\"?L0(this.model):a==="&"?I0(this.model):this.model.selectionIsCollapsed?ma.insert(this.model,a,ve({style:this.model.at(this.model.position).computedStyle},y)):ma.insert(this.model,a,y),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Xo(this),y.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(a,y="",b=""){var E;if(this.model.mode===a||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const ee=this.model.mode;if(this.model.mode=a,!((E=this.host)!=null&&E.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=ee;return}const re=this.model.mode,{model:le}=this;le.deferNotifications({content:!!b||!!y,selection:!0,type:"insertText"},()=>{let me=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),y&&a!=="latex"){const ge=Ls(y,{context:this.context,parseMode:a});le.collapseSelection("forward");const Se=le.at(le.position);le.position=le.offsetOf(Se.parent.addChildrenAfter(ge,Se)),me=!0}if(this.model.mode=a,a==="latex"){let ge=le.selectionIsCollapsed;fd(this,"accept");let Se,Pe=le.at(le.position);if(ge)Se="\\";else{const kt=Bs(le.selection);Se=this.model.getValue(kt,"latex");const Vt=this.model.extractAtoms(kt);Vt.length===1&&Vt[0].type==="placeholder"&&(Se=y,ge=!0),Pe=le.at(kt[0])}const st=new Hd(Se);Pe.parent.addChildAfter(st,Pe),ge?le.position=le.offsetOf(st.lastChild):le.setSelection(le.offsetOf(st.firstChild),le.offsetOf(st.lastChild))}else Xd(le).forEach(ge=>{ge.isError=!1});if(b){const ge=Ls(b,{context:this.context,parseMode:re});le.collapseSelection("forward");const Se=le.at(le.position);le.position=le.offsetOf(Se.parent.addChildrenAfter(ge,Se)),me=!0}return Xo(this),this.undoManager.snapshot(a==="latex"?"insert-latex":"insert"),me}),this.model.mode=a,window.mathVirtualKeyboard.update(Lc(this))}hasFocus(){return!this.blurred}focus(a){var y;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),(y=a==null?void 0:a.preventScroll)!=null&&y||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(a,y={}){var b,E;const ee={operation:"set",silenceNotifications:!1};rd(y)?ee.range=y:(y.operation==="toggle"&&(ee.operation="toggle"),ee.range=y.range,ee.silenceNotifications=(b=y.silenceNotifications)!=null?b:!1);const re=Th(this,a),le=(E=ee.operation)!=null?E:"set";if(ee.range===void 0&&this.model.selectionIsCollapsed){if(le==="set"){this.defaultStyle=ve(ve({},this.defaultStyle),re);return}const me=ve({},this.defaultStyle);for(const ge of Object.keys(re))me[ge]===re[ge]?(ge==="color"&&delete me.verbatimColor,ge==="backgroundColor"&&delete me.verbatimBackgroundColor,delete me[ge]):me[ge]=re[ge];this.defaultStyle=me;return}this.model.deferNotifications({content:!ee.silenceNotifications,type:"insertText"},()=>{if(ee.range===void 0)for(const me of this.model.selection.ranges)Mh(this.model,me,re,{operation:le});else Mh(this.model,ee.range,re,{operation:le})}),Xo(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=rf(this,a,y,{bias:0});if(b<0)return!1;const E=this.model.position;return this.model.position=b,this.model.announce("move",E),Xo(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(ve({},b),{insertionMode:"replaceSelection"}))}b!=null&&b.silenceNotifications&&(this.valueOnFocus=this.getValue()),Xo(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),Xo(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(Lc(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(Lc(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(Lc(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:D0(this.options);this.model.mode!==ee&&(this.model.mode==="latex"?(fd(this,"accept",{mode:ee}),b.position=b.offsetOf(E)):this.switchMode(ee))}(y=this.host)==null||y.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(Lc(this)),Jf(this)}onContentWillChange(a){var y,b,E;return(E=(b=this.host)==null?void 0:b.dispatchEvent(new InputEvent("beforeinput",Me(ve({},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(),Ru(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})),Xo(this),this.focusBlurInProgress=!1,zh();const E=new AbortController,ee=E.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{_l(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:ee})},{once:!0,signal:ee}),setTimeout(()=>E.abort(),100)}onInput(a){Lh(this,a)}onKeystroke(a){return H0(this,a)}onCompositionStart(a){this.model.deleteAtoms(Bs(this.model.selection));const y=Mc(this.field);y&&requestAnimationFrame(()=>{Ru(this),this.keyboardDelegate.moveTo(y.x,y.y-y.height)})}onCompositionUpdate(a){Bg(this.model,a),Xo(this)}onCompositionEnd(a){Dg(this.model),Lh(this,a,{simulateKeystroke:!0})}onCut(a){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),ma.onCopy(this,a),Pc(this.model,Bs(this.model.selection),"deleteByCut"),this.snapshot("cut"),Xo(this))}onCopy(a){ma.onCopy(this,a)}onPaste(a){let y=this.isSelectionEditable;return y&&(y=ma.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(),Lf(this),Jf(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=>Ft(b,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function gp(a){if(a&&(a.classList.remove("ML__highlight"),a.children))for(const y of a.children)gp(y)}function $h(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&&$h(E)})):(a.classList.remove("ML__highlight"),a.children&&a.children.length>0&&[...a.children].forEach(E=>{E instanceof HTMLElement&&$h(E,y)})))}function h1(a,y){var b;if(!pt())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"]};vu().readAloudElement=a,E.synthesizeSpeech(ee,(re,le)=>{if(re){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${re}`);return}if(!(le!=null&&le.AudioStream)){console.log("polly.synthesizeSpeech():",le);return}const me=new TextDecoder("utf-8").decode(new Uint8Array(le.AudioStream));vu().readAloudMarks=me.split(`
|
|
|
`).map(ge=>ge?JSON.parse(ge):{}),vu().readAloudTokens=[];for(const ge of vu().readAloudMarks)ge.value&&vu().readAloudTokens.push(ge.value);vu().readAloudCurrentMark="",ee.OutputFormat="mp3",ee.SpeechMarkTypes=[],E.synthesizeSpeech(ee,(ge,Se)=>{if(ge){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${y}") error:${ge}`);return}if(!(Se!=null&&Se.AudioStream))return;const Pe=new Uint8Array(Se.AudioStream),st=new Blob([Pe.buffer],{type:"audio/mpeg"}),kt=URL.createObjectURL(st),Vt=vu();Vt.readAloudAudio?Vt.readAloudAudio.pause():(Vt.readAloudAudio=new Audio,Vt.readAloudAudio.addEventListener("ended",()=>{const sn=Vt.readAloudMathfield;Vt.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),sn?(Ru(sn),Vt.readAloudElement=null,Vt.readAloudMathfield=null,Vt.readAloudTokens=[],Vt.readAloudMarks=[],Vt.readAloudCurrentMark=""):gp(Vt.readAloudElement)}),Vt.readAloudAudio.addEventListener("timeupdate",()=>{let sn="";const Yn=Vt.readAloudAudio.currentTime*1e3+100;for(const Yr of Vt.readAloudMarks)Yr.time<Yn&&(sn=Yr.value);Vt.readAloudCurrentMark!==sn&&(Vt.readAloudCurrentToken=sn,sn&&sn===Vt.readAloudFinalToken?Vt.readAloudAudio.pause():(Vt.readAloudCurrentMark=sn,$h(Vt.readAloudElement,Vt.readAloudCurrentMark)))})),Vt.readAloudAudio.src=kt,Vt.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Vt.readAloudAudio.play()})})}pt()||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 Ja=new WeakMap,p1=.5,gu={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 = ..."},Hs=class Uu extends HTMLElement{static get formAssociated(){return Md()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(y){y!==this._fontsDirectory&&(this._fontsDirectory=y,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 ht.locale}static set locale(y){y==="auto"&&(y=navigator.language.slice(0,5)),ht.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 ht.strings}static set strings(y){ht.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 yu(this,null,function*(){delete this.audioBuffers[y];let b="";switch(y){case"keypress":b=this._keypressSound.default;break;case"return":b=this._keypressSound.return;break;case"spacebar":b=this._keypressSound.spacebar;break;case"delete":b=this._keypressSound.delete;break;case"plonk":b=this.plonkSound;break}if(typeof b!="string")return;b=b.trim();const E=this.soundsDirectory;if(!(E==null||E==="null"||b==="none"||b==="null"))try{const re=yield(yield fetch(yield x0(`${E}/${b}`))).arrayBuffer(),le=yield this.audioContext.decodeAudioData(re);this.audioBuffers[y]=le}catch(ee){}})}static playSound(y){return yu(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[y]||(yield this.loadSound(y)),!this.audioBuffers[y])return;const b=this.audioContext.createBufferSource();b.buffer=this.audioBuffers[y];const E=this.audioContext.createGain();E.gain.value=p1,b.connect(E).connect(this.audioContext.destination),b.start()})}constructor(y){if(super(),y){const b=[];for(const E of Object.keys(y))if(gu[E])if(gu[E].startsWith("mf."))if(gu[E].startsWith(`mf.${E}`))b.push(`Option \`${E}\` cannot be used as a constructor option. Use ${gu[E]}`);else{const ee=gu[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 ${gu[E]}`);if(b.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const E of b)console.warn(E);console.groupEnd()}}if(Md()&&(this._internals=this.attachInternals(),this._internals.role="math",this._internals.ariaLabel="math input field",this._internals.ariaMultiLine="false"),this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot&&"adoptedStyleSheets"in this.shadowRoot){this.shadowRoot.adoptedStyleSheets=[fu("core"),fu("mathfield"),fu("mathfield-element"),fu("ui"),fu("menu")],this.shadowRoot.appendChild(document.createElement("span"));const b=document.createElement("slot");b.style.display="none",this.shadowRoot.appendChild(b)}else this.shadowRoot.innerHTML="<style>"+Zc("core")+Zc("mathfield")+Zc("mathfield-element")+Zc("ui")+Zc("menu")+'</style><span></span><slot style="display:none"></slot>';y&&this._setOptions(y),this.shadowRoot.addEventListener("slotchange",()=>{var b;const E=this.shadowRoot.querySelector("slot:not([name])");this.value=(b=E==null?void 0:E.assignedNodes().map(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=Uu.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?zu(this._mathfield.options,y):Ja.has(this)?ve({},zu(ve(ve({},_f()),zf(Ja.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?zu(this._mathfield.options,y):Ja.has(this)?zu(ve(ve({},_f()),zf(Ja.get(this).options)),y):null}reflectAttributes(){const y=_f(),b=this._getOptions();Object.keys(Uu.optionsAttributes).forEach(E=>{const ee=Gc(E);Uu.optionsAttributes[E]==="on/off"?y[ee]!==b[ee]?this.setAttribute(E,b[ee]?"on":"off"):this.removeAttribute(E):y[ee]!==b[ee]&&(Uu.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(Ja.has(this)){const b=ve(ve({},Ja.get(this).options),y);Ja.set(this,Me(ve({},Ja.get(this)),{selection:{ranges:b.readOnly?[[0,0]]:[[0,-1]]},options:b}))}else Ja.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))gu[b]&&console.warn(`\`mf.setOptions({${b}:...})\` -> ${gu[b]}`);console.groupEnd(),this._setOptions(y)}executeCommand(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.executeCommand(y))!=null?E:!1}getValue(y,b,E){var ee,re;if(this._mathfield)return this._mathfield.model.getValue(y,b,E);if(Ja.has(this)){let le,me,ge;if(id(y)?([le,me]=y.ranges[0],ge=b):rd(y)?([le,me]=y,ge=b):Sc(y)&&Sc(b)?(le=y,me=b,ge=E):(le=0,me=-1,ge=y),(ge===void 0||ge==="latex")&&le===0&&me===-1)return(re=(ee=Ja.get(this).value)!=null?ee:this.textContent)!=null?re:""}return""}setValue(y,b){if(this._mathfield&&y!==void 0){b!=null||(b={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(y,b);return}if(Ja.has(this)){const ee=Ja.get(this).options;Ja.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:ee,menuItems:void 0});return}const E=df(this);Ja.set(this,{value:y,selection:{ranges:[[-1,-1]],direction:"forward"},options:E,menuItems:void 0})}hasFocus(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.hasFocus())!=null?b:!1}focus(){var y;(y=this._mathfield)==null||y.focus()}blur(){var y;(y=this._mathfield)==null||y.blur()}select(){var y;(y=this._mathfield)==null||y.select()}insert(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.insert(y,b))!=null?ee:!1}applyStyle(y,b){var E;return(E=this._mathfield)==null?void 0:E.applyStyle(y,b)}queryStyle(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.queryStyle(y))!=null?E:"none"}get caretPoint(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.getCaretPoint())!=null?b:null}set caretPoint(y){var b;y&&((b=this._mathfield)==null||b.setCaretPoint(y.x,y.y))}setCaretPoint(y,b){var E,ee;return(ee=(E=this._mathfield)==null?void 0:E.setCaretPoint(y,b))!=null?ee:!1}offsetFromPoint(y,b,E){return this._mathfield?rf(this._mathfield,y,b,E):-1}hitboxFromOffset(y){if(!this._mathfield)return null;const b=this._mathfield.model.at(y);if(!b)return null;const E=uu(this._mathfield,b);return E?new DOMRect(E.left,E.top,E.right-E.left,E.bottom-E.top):null}resetUndo(){var y;(y=this._mathfield)==null||y.resetUndo()}canUndo(){return this._mathfield?this._mathfield.canUndo():!1}canRedo(){return this._mathfield?this._mathfield.canRedo():!1}handleEvent(y){var b,E,ee,re;Ac.state==="closed"&&((E=(b=this._mathfield)==null?void 0:b.menu)==null?void 0:E.state)==="closed"&&(y.type==="pointerdown"&&this.onPointerDown(),y.type==="focus"&&((ee=this._mathfield)==null||ee.focus()),y.type==="blur"&&((re=this._mathfield)==null||re.blur()))}connectedCallback(){var y,b,E,ee;const re=window.getComputedStyle(this),le=this.shadowRoot,me=re.userSelect!=="none";if(me)le.host.addEventListener("pointerdown",this,!0);else{const Pe=le.querySelector("span");Pe.style.pointerEvents="none"}le.host.addEventListener("focus",this,!0),le.host.addEventListener("blur",this,!0),Md()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),me&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const ge=le.querySelector("slot:not([name])");if(ge)try{this._style=ge.assignedElements().filter(Pe=>Pe.tagName.toLowerCase()==="style").map(Pe=>Pe.textContent).join("")}catch(Pe){console.error(Pe)}if(this._style){const Pe=document.createElement("style");Pe.textContent=this._style,le.appendChild(Pe)}let Se="";if(this.hasAttribute("value")?Se=this.getAttribute("value"):Se=(y=ge==null?void 0:ge.assignedNodes().map(Pe=>Pe.nodeType===3?Pe.textContent:"").join("").trim())!=null?y:"",this._mathfield=new f1(le.querySelector(":host > span"),Me(ve({},(E=(b=Ja.get(this))==null?void 0:b.options)!=null?E:df(this)),{eventSink:this,value:Se})),!Ja.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const Pe of Object.keys(Uu.optionsAttributes))this.upgradeProperty(Gc(Pe))}if(!((ee=this._mathfield)!=null&&ee.model)){this._mathfield=null;return}if(Ja.has(this)){const Pe=this._mathfield,st=Ja.get(this),kt=st.menuItems;Pe.model.deferNotifications({content:!1,selection:!1},()=>{const Vt=st.value;Vt!==void 0&&Pe.setValue(Vt),Pe.model.selection=st.selection,Ja.delete(this)}),kt&&(this.menuItems=kt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),Pf()}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=zu(this._mathfield.options,Object.keys(Uu.optionsAttributes).map(ee=>Gc(ee)));Ja.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":Xo(this._mathfield);break;case"disabled":this.disabled=ee;break;case"read-only":case"readonly":this.readOnly=ee;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(y){const b=!!y;b?(this.setAttribute("readonly",""),Md()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(Md()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:b})}get disabled(){return this.hasAttribute("disabled")}set disabled(y){var b;const E=!!y;E?this.setAttribute("disabled",""):this.removeAttribute("disabled"),Md()?this._internals.ariaDisabled=E?"true":"false":this.setAttribute("aria-disabled",E?"true":"false"),E&&((b=this._mathfield)!=null&&b.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(y){this.setValue(y)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(y){this._setOptions({defaultMode:y})}get macros(){return this._getOption("macros")}set macros(y){this._setOptions({macros:y})}get registers(){const y=this;return new Proxy({},{get:(b,E)=>{if(typeof E=="string")return y._getOption("registers")[E]},set(b,E,ee){return typeof E!="string"?!1:(y._setOptions({registers:Me(ve({},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=Ja.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}Ja.has(this)?Ja.set(this,Me(ve({},Ja.get(this)),{menuItems:y})):Ja.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:df(this),menuItems:y})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(y){this._setOptions({mathVirtualKeyboardPolicy:y})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(y){this._setOptions({inlineShortcuts:y})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(y){this._setOptions({inlineShortcutTimeout:y})}get keybindings(){return this._getOption("keybindings")}set keybindings(y){this._setOptions({keybindings:y})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(y){this._setOptions({onInlineShortcut:y})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(y){this._setOptions({onScrollIntoView:y})}get onExport(){return this._getOption("onExport")}set onExport(y){this._setOptions({onExport:y})}get readOnly(){return this._getOption("readOnly")}set readOnly(y){this._setOptions({readOnly:y})}get isSelectionEditable(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.isSelectionEditable)!=null?b:!1}setPromptState(y,b,E){var ee;(ee=this._mathfield)==null||ee.setPromptState(y,b,E)}getPromptState(y){var b,E;return(E=(b=this._mathfield)==null?void 0:b.getPromptState(y))!=null?E:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(y){this._setOptions({virtualKeyboardTargetOrigin:y})}get selection(){return this._mathfield?this._mathfield.model.selection:Ja.has(this)?Ja.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,Xo(this._mathfield);return}if(Ja.has(this)){Ja.set(this,Me(ve({},Ja.get(this)),{selection:y}));return}Ja.set(this,{value:void 0,selection:y,options:df(this),menuItems:void 0})}get selectionIsCollapsed(){const y=this.selection;return y.ranges.length===1&&y.ranges[0][0]===y.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:Ja.has(this)?Ja.get(this).selection.ranges[0][0]:0}set position(y){if(this._mathfield&&(this._mathfield.model.position=y,Xo(this._mathfield)),Ja.has(this)){Ja.set(this,Me(ve({},Ja.get(this)),{selection:{ranges:[[y,y]]}}));return}Ja.set(this,{value:void 0,selection:{ranges:[[y,y]]},options:df(this),menuItems:void 0})}getOffsetDepth(y){var b,E;return this._mathfield?((E=(b=this._mathfield.model.at(y))==null?void 0:b.treeDepth)!=null?E:2)-2:0}get lastOffset(){var y,b;return(b=(y=this._mathfield)==null?void 0:y.model.lastOffset)!=null?b:-1}};Hs.version="0.98.5",Hs._fontsDirectory="./fonts",Hs._soundsDirectory="./sounds",Hs.keypressVibration=!0,Hs._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},Hs._plonkSound="plonk.wav",Hs.audioBuffers={},Hs.createHTML=a=>a,Hs._speechEngineRate="100%",Hs._speechEngineVoice="Joanna",Hs._textToSpeechMarkup="",Hs._textToSpeechRules="mathlive",Hs._textToSpeechRulesOptions={},Hs.speakHook=r1,Hs.readAloudHook=h1,Hs._decimalSeparator=".",Hs.fractionNavigationOrder="numerator-denominator",Hs._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 uf=Hs;function Gc(a){return a.replace(/[^a-zA-Z\d]+(.)/g,(y,b)=>b.toUpperCase())}function df(a){const y={readOnly:!1},b=uf.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[Gc(E)]=!0:b[E]==="on/off"?ee==="on"?y[Gc(E)]=!0:ee==="off"?y[Gc(E)]=!1:y[Gc(E)]=void 0:b[E]==="number"?y[Gc(E)]=Number.parseFloat(ee!=null?ee:"0"):y[Gc(E)]=ee}}),y}function Md(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var vp=uf,yp,bp,xp,wp;if(pt()&&!((yp=window.customElements)!=null&&yp.get("math-field"))){(xp=window[bp=Symbol.for("io.cortexjs.mathlive")])!=null||(window[bp]={});const a=window[Symbol.for("io.cortexjs.mathlive")];a.version="0.98.5",window.MathfieldElement=uf,(wp=window.customElements)==null||wp.define("math-field",uf)}function m1(a,y,b){let E=b,ee=0;const re=a.length;for(;E<y.length;){const le=y[E];if(ee<=0&&y.slice(E,E+re)===a)return E;le==="\\"?E++:le==="{"?ee++:le==="}"&&ee--,E++}return-1}function nh(a,y,b,E,ee="latex"){const re=[];for(const le of a)if(le.type==="text"){const me=le.data;let ge=!0,Se=0,Pe;Pe=me.indexOf(y),Pe!==-1&&(Se=Pe,Se>0&&re.push({type:"text",data:me.slice(0,Se)}),ge=!1);let st=!1;for(;!st;){if(ge){if(Pe=me.indexOf(y,Se),Pe===-1){st=!0;break}Se!==Pe&&re.push({type:"text",data:me.slice(Se,Pe)}),Se=Pe}else{if(Pe=m1(b,me,Se+y.length),Pe===-1){st=!0;break}let kt=me.slice(Se+y.length,Pe);ee==="ascii-math"&&([,kt]=Pu(kt,{format:"ascii-math"})),re.push({type:"math",data:kt,rawData:me.slice(Se,Pe+b.length),mathstyle:E}),Se=Pe+b.length}ge=!ge}Se<me.length&&re.push({type:"text",data:me.slice(Se)})}else re.push(le);return re}function Sp(a,y,b){let E=[{type:"text",data:a}];return y!=null&&y.inline&&y.inline.forEach(([ee,re])=>{E=nh(E,ee,re,"textstyle")}),y!=null&&y.display&&y.display.forEach(([ee,re])=>{E=nh(E,ee,re,"displaystyle")}),b!=null&&b.inline&&b.inline.forEach(([ee,re])=>{E=nh(E,ee,re,"textstyle","ascii-math")}),b!=null&&b.display&&b.display.forEach(([ee,re])=>{E=nh(E,ee,re,"displaystyle","ascii-math")}),E}function g1(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 v1(a,y,b,E){try{const ee=y.renderToMarkup(a,{mathstyle:b,format:"html"}),re=document.createElement("span");return re.dataset.latex=a,re.style.display=b==="displaystyle"?"flex":"inline-flex",re.setAttribute("aria-hidden","true"),re.setAttribute("translate","no"),re.innerHTML=window.MathfieldElement.createHTML(ee),re}catch(ee){if(console.error("Could not parse'"+a+"' with ",ee),E)return document.createTextNode(a)}return null}function kd(a,y,b,E){var ee;const re=v1(a,b,y||"textstyle",E),le=(ee=b.renderAccessibleContent)!=null?ee:"";if(re&&/\b(mathml|speakable-text)\b/i.test(le)){const me=document.createElement("span");if(/\bmathml\b/i.test(le)&&b.renderToMathML&&me.append(g1(a,b)),/\bspeakable-text\b/i.test(le)&&b.renderToSpeakableText){const ge=document.createElement("span");ge.setAttribute("translate","no");const Se=b.renderToSpeakableText(a);ge.innerHTML=window.MathfieldElement.createHTML(Se),ge.className="ML__sr-only",me.append(ge)}return me.append(re),me}return re}function y1(a,y){var b,E,ee;let re=null;if((b=y.TeX)!=null&&b.processEnvironments&&/^\s*\\begin/.test(a)){re=document.createDocumentFragment();const le=kd(a,"",y,!0);le&&re.appendChild(le)}else{if(!a.trim())return null;const le=Sp(a,(E=y.TeX)==null?void 0:E.delimiters,(ee=y.asciiMath)==null?void 0:ee.delimiters);if(le.length===1&&le[0].type==="text")return null;re=document.createDocumentFragment();for(const me of le)if(me.type==="text")re.appendChild(document.createTextNode(me.data));else{const ge=kd(me.data,me.mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);ge&&re.appendChild(ge)}}return re}function Cp(a,y){var b,E,ee,re,le,me,ge,Se,Pe,st,kt,Vt,sn,Yn,Yr,Zn;if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const hr=(b=a.childNodes[0].textContent)!=null?b:"";if((E=y.TeX)!=null&&E.processEnvironments&&/^\s*\\begin/.test(hr)){a.textContent="";const Sr=kd(hr,"",y,!0);Sr&&a.append(Sr);return}const ni=Sp(hr,(ee=y.TeX)==null?void 0:ee.delimiters,(re=y.asciiMath)==null?void 0:re.delimiters);if(ni.length===1&&ni[0].type==="math"){a.textContent="";const Sr=kd(ni[0].data,ni[0].mathstyle==="textstyle"?"textstyle":"displaystyle",y,!0);Sr&&a.append(Sr);return}if(ni.length===1&&ni[0].type==="text")return}for(let hr=a.childNodes.length-1;hr>=0;hr--){const ni=a.childNodes[hr];if(ni.nodeType===3){const Sr=y1((le=ni.textContent)!=null?le:"",y);Sr&&(hr+=Sr.childNodes.length-1,ni.replaceWith(Sr))}else if(ni.nodeType===1){const Sr=ni,Ti=ni.nodeName.toLowerCase();if(Ti==="script"){const Ui=ni;let Hi;if((me=y.processScriptTypePattern)!=null&&me.test(Ui.type))Hi=(ge=Ui.textContent)!=null?ge:"";else if((Se=y.processMathJSONScriptTypePattern)!=null&&Se.test(Ui.type))try{Hi=(st=y.serializeToLatex)==null?void 0:st.call(y,JSON.parse((Pe=Ui.textContent)!=null?Pe:""))}catch(ja){console.error(ja)}if(Hi){let ja="textstyle";for(const si of Ui.type.split(";")){const[Zl,Tc]=si.toLowerCase().split("=");Zl.trim()==="mode"&&(ja=Tc.trim()==="display"?"displaystyle":"textstyle")}const mo=kd(Hi,ja,y,!0);mo&&Ui.parentNode.replaceChild(mo,Ui)}}else if(((Vt=(kt=y.processClassPattern)==null?void 0:kt.test(Sr.className))!=null?Vt:!1)||!((Yn=(sn=y.skipTags)==null?void 0:sn.includes(Ti))!=null&&Yn||(Zn=(Yr=y.ignoreClassPattern)==null?void 0:Yr.test(Sr.className))!=null&&Zn))if(a.childNodes.length===1&&a.childNodes[0].nodeType===3){const Hi=a.textContent;a.textContent="";const ja=kd(Hi!=null?Hi:"","displaystyle",y,!0);ja&&a.append(ja)}else Cp(Sr,y)}}}var b1={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function x1(a,y){var b,E,ee,re;try{const le=ve(ve({},b1),y);le.ignoreClassPattern=new RegExp((b=le.ignoreClass)!=null?b:""),le.processClassPattern=new RegExp((E=le.processClass)!=null?E:""),le.processScriptTypePattern=new RegExp((ee=le.processScriptType)!=null?ee:""),le.processMathJSONScriptTypePattern=new RegExp((re=le.processMathJSONScriptType)!=null?re:""),Pf(),Bl("core"),Cp(a,le)}catch(le){le instanceof Error?console.error("renderMathInElement(): "+le.message):console.error("renderMathInElement(): Could not render math for element",a)}}function w1(a,y){const b=pu.singleton;return b?(b.show(),qd(),b.currentLayer=y,b.render(),b.focus(),!0):!1}function S1(){const a=window.mathVirtualKeyboard;return a.visible?a.hide({animate:!0}):a.show({animate:!0}),!1}Dl({switchKeyboardLayer:w1,toggleVirtualKeyboard:S1,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function vu(){var a,y;return(y=globalThis[a=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[a]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function L1(){return console.warn("%cMathLive 0.98.5: %cmakeSharedVirtualKeyboard() is deprecated. \n Use `window.mathVirtualKeyboard` to access the virtual keyboard instance.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),window.mathVirtualKeyboard}function I1(a){E1(document.body,a)}function C1(a){if(typeof a=="string"){const y=document.getElementById(a);if(y===null)throw new Error(`The element with ID "${a}" could not be found.`);return y}return typeof a=="string"?null:a}function E1(a,y){var b,E,ee,re;const le=C1(a);if(!le)return;const me=y!=null?y:{};(b=me.renderToMarkup)!=null||(me.renderToMarkup=Is),(E=me.renderToMathML)!=null||(me.renderToMathML=Rv),(ee=me.renderToSpeakableText)!=null||(me.renderToSpeakableText=Fv),(re=me.serializeToLatex)!=null||(me.serializeToLatex=zv),x1(le,me)}var P1={mathlive:"0.98.5"}},16722:function(Mn,tn,oe){"use strict";oe.d(tn,{Z:function(){return ve}});const ae=Me=>typeof Me=="object"&&Me!=null&&Me.nodeType===1,Ae=(Me,_e)=>(!_e||Me!=="hidden")&&Me!=="visible"&&Me!=="clip",Le=(Me,_e)=>{if(Me.clientHeight<Me.scrollHeight||Me.clientWidth<Me.scrollWidth){const vt=getComputedStyle(Me,null);return Ae(vt.overflowY,_e)||Ae(vt.overflowX,_e)||(Fe=>{const qe=(pt=>{if(!pt.ownerDocument||!pt.ownerDocument.defaultView)return null;try{return pt.ownerDocument.defaultView.frameElement}catch(Ke){return null}})(Fe);return!!qe&&(qe.clientHeight<Fe.scrollHeight||qe.clientWidth<Fe.scrollWidth)})(Me)}return!1},ct=(Me,_e,vt,Fe,qe,pt,Ke,je)=>pt<Me&&Ke>_e||pt>Me&&Ke<_e?0:pt<=Me&&je<=vt||Ke>=_e&&je>=vt?pt-Me-Fe:Ke>_e&&je<vt||pt<Me&&je>vt?Ke-_e+qe:0,xe=Me=>{const _e=Me.parentElement;return _e==null?Me.getRootNode().host||null:_e},Ee=(Me,_e)=>{var vt,Fe,qe,pt;if(typeof document=="undefined")return[];const{scrollMode:Ke,block:je,inline:ft,boundary:mt,skipOverflowHiddenElements:Bt}=_e,ht=typeof mt=="function"?mt:xt=>xt!==mt;if(!ae(Me))throw new TypeError("Invalid target");const nt=document.scrollingElement||document.documentElement,Re=[];let Ce=Me;for(;ae(Ce)&&ht(Ce);){if(Ce=xe(Ce),Ce===nt){Re.push(Ce);break}Ce!=null&&Ce===document.body&&Le(Ce)&&!Le(document.documentElement)||Ce!=null&&Le(Ce,Bt)&&Re.push(Ce)}const Je=(Fe=(vt=window.visualViewport)==null?void 0:vt.width)!=null?Fe:innerWidth,et=(pt=(qe=window.visualViewport)==null?void 0:qe.height)!=null?pt:innerHeight,{scrollX:wt,scrollY:Qe}=window,{height:bt,width:Oe,top:Lt,right:tt,bottom:Ut,left:At}=Me.getBoundingClientRect(),{top:Mt,right:Wt,bottom:It,left:Ge}=(xt=>{const Ue=window.getComputedStyle(xt);return{top:parseFloat(Ue.scrollMarginTop)||0,right:parseFloat(Ue.scrollMarginRight)||0,bottom:parseFloat(Ue.scrollMarginBottom)||0,left:parseFloat(Ue.scrollMarginLeft)||0}})(Me);let be=je==="start"||je==="nearest"?Lt-Mt:je==="end"?Ut+It:Lt+bt/2-Mt+It,Ye=ft==="center"?At+Oe/2-Ge+Wt:ft==="end"?tt+Wt:At-Ge;const Pt=[];for(let xt=0;xt<Re.length;xt++){const Ue=Re[xt],{height:at,width:Ot,top:kn,right:Kt,bottom:gn,left:nn}=Ue.getBoundingClientRect();if(Ke==="if-needed"&&Lt>=0&&At>=0&&Ut<=et&&tt<=Je&&(Ue===nt&&!Le(Ue)||Lt>=kn&&Ut<=gn&&At>=nn&&tt<=Kt))return Pt;const Gt=getComputedStyle(Ue),Xt=parseInt(Gt.borderLeftWidth,10),ye=parseInt(Gt.borderTopWidth,10),ue=parseInt(Gt.borderRightWidth,10),ce=parseInt(Gt.borderBottomWidth,10);let de=0,he=0;const se="offsetWidth"in Ue?Ue.offsetWidth-Ue.clientWidth-Xt-ue:0,ke="offsetHeight"in Ue?Ue.offsetHeight-Ue.clientHeight-ye-ce:0,gt="offsetWidth"in Ue?Ue.offsetWidth===0?0:Ot/Ue.offsetWidth:0,Ie="offsetHeight"in Ue?Ue.offsetHeight===0?0:at/Ue.offsetHeight:0;if(nt===Ue)de=je==="start"?be:je==="end"?be-et:je==="nearest"?ct(Qe,Qe+et,et,ye,ce,Qe+be,Qe+be+bt,bt):be-et/2,he=ft==="start"?Ye:ft==="center"?Ye-Je/2:ft==="end"?Ye-Je:ct(wt,wt+Je,Je,Xt,ue,wt+Ye,wt+Ye+Oe,Oe),de=Math.max(0,de+Qe),he=Math.max(0,he+wt);else{de=je==="start"?be-kn-ye:je==="end"?be-gn+ce+ke:je==="nearest"?ct(kn,gn,at,ye,ce+ke,be,be+bt,bt):be-(kn+at/2)+ke/2,he=ft==="start"?Ye-nn-Xt:ft==="center"?Ye-(nn+Ot/2)+se/2:ft==="end"?Ye-Kt+ue+se:ct(nn,Kt,Ot,Xt,ue+se,Ye,Ye+Oe,Oe);const{scrollLeft:Be,scrollTop:yt}=Ue;de=Ie===0?0:Math.max(0,Math.min(yt+de/Ie,Ue.scrollHeight-at/Ie+ke)),he=gt===0?0:Math.max(0,Math.min(Be+he/gt,Ue.scrollWidth-Ot/gt+se)),be+=yt-de,Ye+=Be-he}Pt.push({el:Ue,top:de,left:he})}return Pt},pe=Me=>Me===!1?{block:"end",inline:"nearest"}:(_e=>_e===Object(_e)&&Object.keys(_e).length!==0)(Me)?Me:{block:"start",inline:"nearest"};function ve(Me,_e){if(!Me.isConnected||!(qe=>{let pt=qe;for(;pt&&pt.parentNode;){if(pt.parentNode===document)return!0;pt=pt.parentNode instanceof ShadowRoot?pt.parentNode.host:pt.parentNode}return!1})(Me))return;const vt=(qe=>{const pt=window.getComputedStyle(qe);return{top:parseFloat(pt.scrollMarginTop)||0,right:parseFloat(pt.scrollMarginRight)||0,bottom:parseFloat(pt.scrollMarginBottom)||0,left:parseFloat(pt.scrollMarginLeft)||0}})(Me);if((qe=>typeof qe=="object"&&typeof qe.behavior=="function")(_e))return _e.behavior(Ee(Me,_e));const Fe=typeof _e=="boolean"||_e==null?void 0:_e.behavior;for(const{el:qe,top:pt,left:Ke}of Ee(Me,pe(_e))){const je=pt-vt.top+vt.bottom,ft=Ke-vt.left+vt.right;qe.scroll({top:je,left:ft,behavior:Fe})}}}}]);
|
|
|
}()); |